@wix/payments 1.0.325 → 1.0.327

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- import*as e from"react";import t,{Suspense as n,createContext as r,createElement as i,startTransition as a,useCallback as o,useContext as s,useEffect as c,useMemo as l,useRef as u,useState as d}from"react";import*as f from"react-dom";import p from"react-dom";import{jsx as m,jsxs as h}from"react/jsx-runtime";import{useService as g}from"@wix/services-manager-react";var _=Object.defineProperty,v=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},y=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),b=(e,t)=>{let n={};for(var r in e)_(n,r,{get:e[r],enumerable:!0});return t||_(n,Symbol.toStringTag,{value:`Module`}),n},x={};function S(e,t=!1,n=e=>e){return()=>({__type:`event-definition`,type:e,isDomainEvent:t,transformations:n})}var C=e=>{switch(e){case`get`:case`GET`:return`GET`;case`post`:case`POST`:return`POST`;case`put`:case`PUT`:return`PUT`;case`delete`:case`DELETE`:return`DELETE`;case`patch`:case`PATCH`:return`PATCH`;case`head`:case`HEAD`:return`HEAD`;case`options`:case`OPTIONS`:return`OPTIONS`;default:throw Error(`Unknown method: ${e}`)}},ee=e=>t=>async n=>{let r,i=t=>{if(r=e(n)(t),r.url===void 0)throw Error(`Url was not successfully created for this request, please reach out to support channels for assistance.`);let{method:i,url:a,params:o}=r;return{...r,method:C(i),url:a,data:r.data,params:o}};try{let e=await t.request(i);if(r===void 0)throw Error(`Request options were not created for this request, please reach out to support channels for assistance.`);let n=Array.isArray(r.transformResponse)?r.transformResponse:[r.transformResponse],a=e.data;return n.forEach(t=>{t&&(a=t(e.data,e.headers))}),a}catch(e){throw typeof e==`object`&&e&&`response`in e&&typeof e.response==`object`&&e.response!==null&&`data`in e.response?e.response.data:e}},w=e=>e.__isAmbassador?!0:!!e().__isAmbassador,T=`__metadata`,E=`edge.wixapis.com`,te=class extends Error{message;response;constructor(e,t){super(e),this.message=e,this.response=t}async details(){let e=await this.response.json();return ne(this.response.status,e?.message,e?.details,{requestId:this.response.headers.get(`X-Wix-Request-Id`),details:e})}},ne=(e,t,n,r)=>({details:{...!n?.validationError&&{applicationError:{description:t,code:e,data:r}},...n},message:t,requestId:r?.requestId}),re=e=>e?.method&&[`post`,`put`,`patch`].includes(e.method.toLocaleLowerCase())&&e.body?{"Content-Type":`application/json`}:{},ie=e=>e&&typeof e==`object`&&!Array.isArray(e),D=e=>e.__type===`host`;function O(e,t){return e.create(t)}var ae=`x-wix-bi-gateway`;function oe(e,t,n){return{[ae]:se({environment:`js-sdk${n?`-${n}`:``}`,"package-name":e.packageName??t?.PACKAGE_NAME,"method-fqn":e.methodFqn,entity:e.entityFqdn})}}function se(e){return Object.entries(e).filter(([e,t])=>!!t).map(([e,t])=>`${e}=${t}`).join(`,`)}function ce(e){let t=globalThis.__wix_context__,n={client:x.client,elevatedClient:x.elevatedClient},r;globalThis.__wix_context__=void 0,x.client=void 0,x.elevatedClient=void 0,typeof $wixContext<`u`&&(r={client:$wixContext?.client,elevatedClient:$wixContext?.elevatedClient},delete $wixContext.client,delete $wixContext.elevatedClient);try{return e()}finally{globalThis.__wix_context__=t,x.client=n.client,x.elevatedClient=n.elevatedClient,typeof $wixContext<`u`&&($wixContext.client=r.client,$wixContext.elevatedClient=r.elevatedClient)}}var le={id:`_id`,createdDate:`_createdDate`,updatedDate:`_updatedDate`};function k(e){return me(e).map(e=>e.toLocaleUpperCase()).join(`_`)}var ue=/([\p{Ll}\d])(\p{Lu})/gu,de=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,fe=`$1\0$2`,pe=/[^\p{L}\d]+/giu;function me(e){let t=e.trim();t=t.replace(ue,fe).replace(de,fe),t=t.replace(pe,`\0`);let n=0,r=t.length;for(;t.charAt(n)===`\0`;)n++;if(n===r)return[];for(;t.charAt(r-1)===`\0`;)r--;return t.slice(n,r).split(/\0/g)}var he=e=>`validationError`in(e.response?.data?.details??{}),ge=e=>`applicationError`in(e.response?.data?.details??{}),_e=e=>(e.response?.status??-1)>=400&&(e.response?.status??-1)<500;function ve(e,t={explicitPathsToArguments:{},spreadPathsToArguments:{},singleArgumentUnchanged:!1},n=[]){if(typeof e!=`object`||!e)throw e;if(he(e))return ye(e,t,n);if(ge(e))return xe(e);if(_e(e)){let t=e.response?.status,n=e.response?.statusText??`UNKNOWN`,r=e.response?.data?.message??n,i={applicationError:{description:n,code:k(n),data:{}},requestId:e.requestId};return be(e,{message:JSON.stringify({message:r,details:i},null,2),extraProperties:{details:i,status:t}})}return Se(e)}var ye=(e,t,n)=>{let r=e.response?.data,i=e.requestId,{fieldViolations:a}=r.details.validationError,o=Ce(t,a,n)?.sort((e,t)=>e.field<t.field?-1:1),s=`INVALID_ARGUMENT: ${o?.map(({field:e,description:t})=>`"${e}" ${t}`)?.join(`, `)}`,c={validationError:{fieldViolations:o},requestId:i};return be(e,{message:JSON.stringify({message:s,details:c},null,2),extraProperties:{details:c,status:e.response?.status,requestId:i}})},be=(e,{message:t,extraProperties:n})=>Object.assign(e,{...n,message:t}),xe=e=>{let t=e.response?.status,n=e.response?.statusText??`UNKNOWN`,r=e.response?.data?.message??n,i=e.response?.data?.details?.applicationError?.description??n,a=e.response?.data?.details?.applicationError?.code??k(n),o=e.response?.data?.details?.applicationError?.data??{},s=r===i?r:`${r}: ${i}`,c={applicationError:{description:i,code:a,data:o},requestId:e.requestId};return be(e,{message:JSON.stringify({message:s,details:c},null,2),extraProperties:{details:c,status:t,requestId:e.requestId}})},Se=e=>be(e,{message:e.requestId?`System error occurred, request-id: ${e.requestId}`:`System error occurred: ${JSON.stringify(e)}`,extraProperties:{requestId:e.requestId,status:e.response?.status,code:k(e.response?.statusText??`UNKNOWN`),...!e.response&&{runtimeError:e}}}),Ce=({spreadPathsToArguments:e,explicitPathsToArguments:t,singleArgumentUnchanged:n},r,i)=>{let a={...e,...t},o=Object.keys(a);return r?.filter(e=>!r.some(t=>t.field.length>e.field.length&&t.field.startsWith(e.field)&&o.includes(t.field))).map(e=>{let r=t[e.field];if(r)return{...e,field:we(r,i)};let s=o?.sort((e,t)=>t.length-e.length)?.find(t=>e.field.startsWith(t));if(s){let t=a[s];if(t)return{...e,field:e.field.replace(s,we(t,i))}}return n?{...e,field:`${i[0]}.${e.field}`}:e})},we=(e,t)=>{let n=Te(e);return n==null?e:e.replace(`$[${n}]`,t[n])},Te=e=>{let t=e.match(/\$\[(?<argIndex>\d+)\]/);return t&&t.groups&&Number(t.groups.argIndex)};function Ee(e,t,n,r,i,a,o,s,c,l,u){return ce(()=>e({request:async e=>{let i=e({host:s?.HTTPHost||`www.wixapis.com`}),a=i;a.method===`GET`&&a.fallback?.length&&(a.params?.toString().length??0)>4e3&&(a=i.fallback[0]);let o=s?.HTTPHost??`www.wixapis.com`,u=`https://${l?E:o}${a.url}`;a.params&&a.params.toString()&&(u+=`?${a.params.toString()}`);try{let e=oe(i,t,c),o={method:a.method,...a.data&&{body:JSON.stringify(a.data)},headers:{...e}},s=await n(u,o);if(s.status!==200){let e=null;try{e=await s.json()}catch{}let t=Oe(s.status,e?.message??s.statusText,e?.details,{requestId:s.headers.get(`X-Wix-Request-Id`),details:e}),n=ve(t);throw r?.handleError(n,{requestOptions:{url:a.url,method:a.method,entityFqdn:i.entityFqdn,methodFqn:i.methodFqn}}),t}let l=await s.json();return{data:a.migrationOptions?.optInTransformResponse&&a.transformResponse?Array.isArray(a.transformResponse)?a.transformResponse[0](l):a.transformResponse(l):l,headers:s.headers,status:s.status,statusText:s.statusText}}catch(e){throw e.message?.includes(`fetch is not defined`)&&console.error(`Node.js v18+ is required`),e}},fetchWithAuth:n,wixAPIFetch:i,getActiveToken:a,getAuthHeaders:o},{validateRequestSchema:u}))}var De=class extends Error{response;requestId;constructor(e){super(),this.response=e.response,this.requestId=e.requestId}},Oe=(e,t,n,r)=>new De({response:{data:{details:{...!n?.validationError&&{applicationError:{description:t,code:e,data:r}},...n},message:t},status:e},requestId:r?.requestId}),ke=`.`;function Ae(e,t,n){if(e==null)throw Error(`Cannot set value on null or undefined`);let r=je(t),i=e;for(let e=0;e<r.length;e++){let t=r[e];if(e===r.length-1){i[t]=n;break}let a=r[e+1];(!(t in i)||i[t]==null||typeof i[t]!=`object`||i[t]===null)&&(i[t]=typeof a==`number`?[]:{}),i=i[t]}return e}function je(e){return Array.isArray(e)?e:e.split(ke).map(e=>Me(e)?Number(e):e)}function Me(e){return/^\d+$/.test(e)}function Ne(e){let t={};for(let[n,r]of Object.entries(e))Pe(n)||Ae(t,je(n),r);return t}function Pe(e){return e===`__proto__`||e===`constructor`||e===`prototype`}var Fe=class{BRACKET_PATTERN=/\[(\d+)\]/g;NUMERIC_PATTERN=/^\d+$/;ESCAPED_DOT_PATTERN=/\\\./g;ESCAPED_LEFT_BRACKET_PATTERN=/\\\[/g;ESCAPED_RIGHT_BRACKET_PATTERN=/\\\]/g;SPLIT_PATTERN=/\.|\[(\d+)\]/g;DOT_BEFORE_BRACKET_PATTERN=/\.\[/g;ESCAPED_DOT_PLACEHOLDER=`__DOT__`;ESCAPED_RIGHT_BRACKET_PLACEHOLDER=`__RB__`;ESCAPED_LEFT_BRACKET_PLACEHOLDER=`__LB__`;modifiedFields;cleanedModifiedFields;constructor(e){this.modifiedFields=e}replaceEscapedCharacters(e){return e.replace(this.ESCAPED_DOT_PATTERN,this.ESCAPED_DOT_PLACEHOLDER).replace(this.ESCAPED_LEFT_BRACKET_PATTERN,this.ESCAPED_LEFT_BRACKET_PLACEHOLDER).replace(this.ESCAPED_RIGHT_BRACKET_PATTERN,this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER)}restoreEscapedCharacters(e){return e.replace(this.ESCAPED_DOT_PLACEHOLDER,`\\.`).replace(this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER,`\\]`).replace(this.ESCAPED_LEFT_BRACKET_PLACEHOLDER,`\\[`)}unflatten(){return this.cleanedModifiedFields=Object.fromEntries(Object.entries(this.modifiedFields).map(([e,t])=>[this.replaceEscapedCharacters(this.bracketToDotNotation(e)),t])),Ne(this.cleanedModifiedFields)}flatten(e){let t={};for(let n of Object.keys(this.cleanedModifiedFields)){let r=this.splitPath(n),i=this.navigatePath(e,r);t={...t,...i}}return Object.fromEntries(Object.entries(t).map(([e,t])=>[this.restoreEscapedCharacters(e),t]))}splitPath(e){let t=[],n=0,r=Array.from(e.matchAll(this.SPLIT_PATTERN));for(let i of r)i.index>n&&t.push(e.substring(n,i.index)),i[1]&&t.push(i[1]),n=i.index+i[0].length;return n<e.length&&t.push(e.substring(n)),t}navigatePath(e,t){let n=e,r=[],i=e=>{if(!Array.isArray(n))throw Error(`Expected array at path ${this.buildPathString(r)}, but got ${typeof n}`);r.push(`[${e}]`),n=n[parseInt(e,10)]},a=(e,t)=>{let i=e in le?le[e]:void 0;if(i&&i in t){r.push(i),n=t[i];return}let a=ze(e);if(a&&a in t){r.push(a),n=t[a];return}throw Error(`Cannot find key '${e}' or its transformations at path ${this.buildPathString(r)}`)},o=(e,t)=>{r.push(e),n=t[e]};for(let e of t){if(this.NUMERIC_PATTERN.test(e)){i(e);continue}if(typeof n!=`object`||!n)throw Error(`Cannot access property '${e}' on ${typeof n} at path ${this.buildPathString(r)}`);let t=n;if(e in n){o(e,t);continue}a(e,t)}return{[this.buildPathString(r)]:n}}buildPathString(e){return e.join(`.`).replace(this.DOT_BEFORE_BRACKET_PATTERN,`[`)}bracketToDotNotation(e){return e.replace(this.BRACKET_PATTERN,(t,n,r)=>r>0&&e[r-1]===`\\`?t:`.`+n)}};function Ie(e,t){let n=e?.modifiedFields;if(!n)return null;let r=Le(n);if(!r)return null;let{unflattenedModifiedFields:i,modifiedFieldsManipulator:a}=r;e={...e,modifiedFields:i};let o=t(e),s=o?.modifiedFields;if(!s)return null;let c=Re(s,a);return c===null?null:(o.modifiedFields=c,o)}function Le(e){if(typeof e==`object`&&e&&!Array.isArray(e))try{let t=new Fe(e);return{unflattenedModifiedFields:t.unflatten(),modifiedFieldsManipulator:t}}catch{return null}return null}function Re(e,t){if(typeof e==`object`&&e&&!Array.isArray(e))try{return t.flatten(e)}catch{return null}return null}function ze(e){return e.replace(/[-_\s]+(.)?/g,(e,t)=>t?t.toUpperCase():``).replace(/^./,e=>e.toLowerCase())}function Be(){return{emit(e,...t){for(let n=0,r=this.events[e]||[],i=r.length;n<i;n++)r[n](...t)},events:{},on(e,t){return(this.events[e]||=[]).push(t),()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}}}var Ve=e=>e.__type===`event-definition`;function He(e,t,n,r){let i;if(e.isDomainEvent){let{deletedEvent:e,actionEvent:t,createdEvent:a,updatedEvent:o,...s}=n,c={...r,...s};i=e?e?.deletedEntity?{entity:e?.deletedEntity,metadata:c}:{metadata:c}:t?{data:t.body,metadata:c}:o?{entity:o.currentEntity,metadata:c,...o.modifiedFields?{modifiedFields:o.modifiedFields}:{}}:{entity:a?.entity,metadata:c}}else i={data:n,metadata:r};let a=e.transformations??(e=>e),o=i,s=i;if(s.modifiedFields){let e=s.modifiedFields;if(typeof e==`object`&&e&&!Array.isArray(e)){o=structuredClone(i);let e=Ie(s,a);if(e)return t(e)}}return t(a(o))}function Ue(e){let t=new Map,n=Be();return{initModule(e){return r=>{let i=t.get(e.type)??[];i.push({eventDefinition:e,handler:r}),t.set(e.type,i),n.emit(`registered`,e)}},client:{...n,getRegisteredEvents:()=>t,async process(e,n={expectedEvents:[]}){let{eventType:r,identity:i,instanceId:a,payload:o,accountInfo:s}=await this.parseJWT(e),c=[...n.expectedEvents,...Array.from(t.keys()).map(e=>({type:e}))];if(c.length>0&&!c.some(({type:e})=>e===r))throw Error(`Unexpected event type: ${r}. Expected one of: ${c.map(e=>e.type).join(`, `)}`);let l=t.get(r)??[];return await Promise.all(l.map(({eventDefinition:e,handler:t})=>He(e,t,o,{instanceId:a,identity:i,accountInfo:s}))),{instanceId:a,eventType:r,payload:o,identity:i,accountInfo:s}},async processRequest(e,t){let n=await e.text();return this.process(n,t)},async parseJWT(t){let n=e();if(!n.decodeJWT)throw Error(`decodeJWT is not supported by the authentication strategy`);let{decoded:r,valid:i}=await n.decodeJWT(t);if(!i)throw Error(`JWT is not valid`);if(typeof r.data!=`string`)throw Error(`Unexpected type of JWT data: expected string, got ${typeof r.data}`);let a=JSON.parse(r.data),o=a.eventType,s=a.accountInfo,c=a.instanceId,l=a.identity?JSON.parse(a.identity):void 0;return{instanceId:c,eventType:o,payload:JSON.parse(a.data),identity:l,accountInfo:s}},async parseRequest(e){let t=await e.text();return this.parseJWT(t)},async executeHandlers(e){let n=Array.from(t.keys()).map(e=>({type:e}));if(n.length>0&&!n.some(({type:t})=>t===e.eventType))throw Error(`Unexpected event type: ${e.eventType}. Expected one of: ${n.map(e=>e.type).join(`, `)}`);let r=t.get(e.eventType)??[];await Promise.all(r.map(({eventDefinition:t,handler:n})=>He(t,n,e.payload,{instanceId:e.instanceId,identity:e.identity})))},apps:{AppInstalled:S(`AppInstalled`)(),AppRemoved:S(`AppRemoved`)()}}}}var We=e=>e.__type===`service-plugin-definition`;function Ge(e){let t=new Map,n=Be();return{initModule(e){return r=>{let i=t.get(e.componentType.toLowerCase())??[];i.push({servicePluginDefinition:e,implementation:r}),t.set(e.componentType.toLowerCase(),i),n.emit(`registered`,e)}},client:{...n,getRegisteredServicePlugins:()=>t,async parseJWT(t){let n=e();if(!n.decodeJWT)throw Error(`decodeJWT is not supported by the authentication strategy`);let{decoded:r,valid:i}=await n.decodeJWT(t,!0);if(!i)throw Error(`JWT is not valid`);if(typeof r.data!=`object`||r.data===null||!(`metadata`in r.data)||typeof r.data.metadata!=`object`||r.data.metadata===null||!(`appExtensionType`in r.data.metadata)||typeof r.data.metadata.appExtensionType!=`string`)throw Error(`Unexpected JWT data: expected object with metadata.appExtensionType string`);return r.data},async process(e){let t=await this.parseJWT(e.body);return this.executeHandler(t,e.url)},async parseRequest(e){let t=await e.text();return this.parseJWT(t)},async processRequest(e){let t=await this.parseRequest(e);return this.processParsedRequest(t,e.url)},async processParsedRequest(e,t){try{let n=await this.executeHandler(e,t);return Response.json(n)}catch(e){if(e.errorType===`SPI`&&e.applicationCode&&e.httpCode)return Response.json({applicationError:{code:e.applicationCode,data:e.data}},{status:e.httpCode});throw e}},async executeHandler(e,n){let r=e.metadata.appExtensionType.toLowerCase(),i=t.get(r)??[];if(i.length===0)throw Error(`No service plugin implementations found for component type ${r}`);if(i.length>1)throw Error(`Multiple service plugin implementations found for component type ${r}. This is currently not supported`);let{implementation:a,servicePluginDefinition:o}=i[0],s=o.methods.find(e=>n.endsWith(e.primaryHttpMappingPath));if(!s)throw Error(`Unexpect request: request url did not match any method: `+n);let c=a[s.name];if(!c)throw Error(`Got request for service plugin method ${s.name} but no implementation was provided. Available methods: ${Object.keys(a).join(`, `)}`);return s.transformations.toREST(await c(s.transformations.fromREST(e)))}}}}var Ke=`X-Wix-Consistent`;function qe(e){let t=e.headers||{Authorization:``},n={getAuthHeaders:e=>Promise.resolve({headers:{}})},r=e.auth,i=typeof r==`function`?r:()=>r??n,a=()=>i().getAuthHeaders(e.host),o=()=>e.fetch??fetch,s=async(n,r)=>{let i=o(),s=await a(),c={...r?.headers??{},...s.headers,...e.host?.essentials?.passThroughHeaders,...t[`X-Wix-Consistent`]?{[Ke]:t[Ke]}:{}},l=e.host?.getErrorHandler?.();try{if(typeof n==`string`||n instanceof URL){let e=await i(n,{...r,headers:c});l?.handleError(e,{requestOptions:{url:n.toString(),method:r?.method}});let a=Je(e);return a&&(t[Ke]=a),e}{for(let[e,t]of Object.entries(c))typeof t==`string`&&n.headers.set(e,t);let e=await i(n,r);l?.handleError(e,{requestOptions:{url:n.url,method:r?.method}});let a=Je(e);return a&&(t[Ke]=a),e}}catch(e){throw l?.handleError(e,{requestOptions:{url:typeof n==`string`||n instanceof URL?n.toString():n.url,method:r?.method}}),e}},{client:c,initModule:l}=Ge(i),{client:u,initModule:d}=Ue(i),f=async(n,r)=>{let i=o(),s=await a(),c=re(r),l=await i(n,{...r,headers:{...c,...t,...s?.headers,...r?.headers,...e.host?.essentials?.passThroughHeaders,...t[`X-Wix-Consistent`]?{[Ke]:t[Ke]}:{}}}),u=Je(l);return u&&(t[Ke]=u),l},p=(t,n)=>{if(Ve(t))return d(t);if(We(t))return l(t);if(D(t)&&e.host)return O(t,e.host);if(typeof t==`function`){if(`__type`in t&&t.__type===`wix_spi_error`)return t;let r=e.host?.apiBaseUrl??`www.wixapis.com`,o=e.useCDN===void 0?i().shouldUseCDN:e.useCDN;return Ee(ce(()=>w(t))?ee(t):t,n??{},f,e.host?.getErrorHandler?.(),(e,t)=>{let n=new URL(e,`https://${r}`);return n.host=r,n.protocol=`https`,f(n.toString(),t)},i().getActiveToken,async()=>a(),{HTTPHost:r},e.host?.name,o,e.validateRequestSchema)}return ie(t)?Object.fromEntries(Object.entries(t).map(([e,n])=>[e,p(n,t[T])])):t},m=e=>{for(let n in e)t[n]=e[n]};return{...e.modules?p(e.modules):{},get auth(){let t=i();return t.getAuthHeaders=t.getAuthHeaders.bind(void 0,e.host),t},setHeaders:m,use:p,enableContext(e,t={elevated:!1}){e===`global`?globalThis.__wix_context__==null?t.elevated?globalThis.__wix_context__={elevatedClient:this}:globalThis.__wix_context__={client:this}:t.elevated?globalThis.__wix_context__.elevatedClient=this:globalThis.__wix_context__.client=this:t.elevated?x.elevatedClient=this:x.client=this},fetch:(t,n)=>{let r=e.host?.apiBaseUrl??`www.wixapis.com`,i=new URL(t,`https://${r}`);return i.host=r,i.protocol=`https`,f(i.toString(),n)},fetchWithAuth:s,async graphql(t,n,r={apiVersion:`alpha`}){let i=e?.host?.apiBaseUrl??`www.wixapis.com`,a=await f(`https://${i}/graphql/${r.apiVersion}`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({query:t,variables:n})});if(a.status!==200)throw new te(`GraphQL request failed with status ${a.status}`,a);let{data:o,errors:s}=await a.json();return{data:o??{},errors:s}},webhooks:u,servicePlugins:c}}function Je(e){return e.headers?.get(`X-Wix-Consistent`)??e.headers?.get(`x-wix-consistent`)}var Ye={_id:`id`,_createdDate:`createdDate`,_updatedDate:`updatedDate`},Xe={id:`_id`,createdDate:`_createdDate`,updatedDate:`_updatedDate`};function Ze(e,t){return e?.split(`.`).map(e=>t?.[e]??e).join(`.`)}var Qe=`sort.fieldName`;function $e(e,t,n){return(e===Qe||e.endsWith(`.${Qe}`))&&typeof t==`string`?Ze(t,n):t}function et(e,t,n){let r=e=>n.includes(e),i=(e,n)=>{if(Array.isArray(e))e.forEach(e=>{i(e,n)});else if(typeof e==`object`&&e){let a=e;Object.keys(a).forEach(e=>{let o=n===``?e:`${n}.${e}`;if(r(o))return;let s=tt(e,t);s!==e&&!(s in a)&&(a[s]=a[e],delete a[e]),a[s]=$e(o,a[s],t),i(a[s],o)})}};return i(e,``),e}function tt(e,t){let n;return n=e.includes(`.`)?e.split(`.`).map(e=>t[e]??e).join(`.`):t[e]??e,n}function nt(e,t=[]){return et(e,Ye,t)}function rt(e,t=[]){return et(e,Xe,t)}function it(e){return e?new Date(e):void 0}function at(e,{path:t,isRepeated:n,isMap:r},i){let a=t.split(`.`);if(a.length===1&&t in e)return e[t]=n?e[t].map(i):r?Object.fromEntries(Object.entries(e[t]).map(([e,t])=>[e,i(t)])):i(e[t]),e;let[o,...s]=a;if(o.endsWith(`{}`)){let t=o.slice(0,-2);e[t]=Object.fromEntries(Object.entries(e[t]).map(([e,t])=>[e,at(t,{path:s.join(`.`),isRepeated:n,isMap:r},i)]))}else Array.isArray(e[o])?e[o]=e[o].map(e=>at(e,{path:s.join(`.`),isRepeated:n,isMap:r},i)):o in e&&typeof e[o]==`object`&&e[o]!==null?e[o]=at(e[o],{path:s.join(`.`),isRepeated:n,isMap:r},i):o===`*`&&Object.keys(e).reduce((t,a)=>(t[a]=at(e[a],{path:s.join(`.`),isRepeated:n,isMap:r},i),t),e);return e}function ot(e,t){return t.reduce((e,{paths:t,transformFn:n})=>t.reduce((e,t)=>at(e,t,n),e),e)}function st(e){return ft(e).map(e=>e.toLocaleUpperCase()).join(`_`)}var ct=/([\p{Ll}\d])(\p{Lu})/gu,lt=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,ut=`$1\0$2`,dt=/[^\p{L}\d]+/giu;function ft(e){let t=e.trim();t=t.replace(ct,ut).replace(lt,ut),t=t.replace(dt,`\0`);let n=0,r=t.length;for(;t.charAt(n)===`\0`;)n++;if(n===r)return[];for(;t.charAt(r-1)===`\0`;)r--;return t.slice(n,r).split(/\0/g)}var pt=e=>`validationError`in(e.response?.data?.details??{}),A=e=>`applicationError`in(e.response?.data?.details??{}),j=e=>(e.response?.status??-1)>=400&&(e.response?.status??-1)<500;function mt(e,t={explicitPathsToArguments:{},spreadPathsToArguments:{},singleArgumentUnchanged:!1},n=[]){if(typeof e!=`object`||!e)throw e;if(pt(e))return M(e,t,n);if(A(e))return N(e);if(j(e)){let t=e.response?.status,n=e.response?.statusText??`UNKNOWN`,r=e.response?.data?.message??n,i={applicationError:{description:n,code:st(n),data:{}},requestId:e.requestId};return ht(e,{message:JSON.stringify({message:r,details:i},null,2),extraProperties:{details:i,status:t}})}return gt(e)}var M=(e,t,n)=>{let r=e.response?.data,i=e.requestId,{fieldViolations:a}=r.details.validationError,o=_t(t,a,n)?.sort((e,t)=>e.field<t.field?-1:1),s=`INVALID_ARGUMENT: ${o?.map(({field:e,description:t})=>`"${e}" ${t}`)?.join(`, `)}`,c={validationError:{fieldViolations:o},requestId:i};return ht(e,{message:JSON.stringify({message:s,details:c},null,2),extraProperties:{details:c,status:e.response?.status,requestId:i}})},ht=(e,{message:t,extraProperties:n})=>Object.assign(e,{...n,message:t}),N=e=>{let t=e.response?.status,n=e.response?.statusText??`UNKNOWN`,r=e.response?.data?.message??n,i=e.response?.data?.details?.applicationError?.description??n,a=e.response?.data?.details?.applicationError?.code??st(n),o=e.response?.data?.details?.applicationError?.data??{},s=r===i?r:`${r}: ${i}`,c={applicationError:{description:i,code:a,data:o},requestId:e.requestId};return ht(e,{message:JSON.stringify({message:s,details:c},null,2),extraProperties:{details:c,status:t,requestId:e.requestId}})},gt=e=>ht(e,{message:e.requestId?`System error occurred, request-id: ${e.requestId}`:`System error occurred: ${JSON.stringify(e)}`,extraProperties:{requestId:e.requestId,status:e.response?.status,code:st(e.response?.statusText??`UNKNOWN`),...!e.response&&{runtimeError:e}}}),_t=({spreadPathsToArguments:e,explicitPathsToArguments:t,singleArgumentUnchanged:n},r,i)=>{let a={...e,...t},o=Object.keys(a);return r?.filter(e=>!r.some(t=>t.field.length>e.field.length&&t.field.startsWith(e.field)&&o.includes(t.field))).map(e=>{let r=t[e.field];if(r)return{...e,field:vt(r,i)};let s=o?.sort((e,t)=>t.length-e.length)?.find(t=>e.field.startsWith(t));if(s){let t=a[s];if(t)return{...e,field:e.field.replace(s,vt(t,i))}}return n?{...e,field:`${i[0]}.${e.field}`}:e})},vt=(e,t)=>{let n=yt(e);return n==null?e:e.replace(`$[${n}]`,t[n])},yt=e=>{let t=e.match(/\$\[(?<argIndex>\d+)\]/);return t&&t.groups&&Number(t.groups.argIndex)};function P(){let e=typeof $wixContext<`u`&&$wixContext.initWixModules?$wixContext.initWixModules:globalThis.__wix_context__!==void 0&&globalThis.__wix_context__.initWixModules?globalThis.__wix_context__.initWixModules:void 0;if(e)return{initWixModules(t,n){return bt(()=>e(t,n))},fetchWithAuth(){throw Error(`fetchWithAuth is not available in this context`)},graphql(){throw Error(`graphql is not available in this context`)}};let t=typeof $wixContext<`u`?$wixContext.client:x.client===void 0?globalThis.__wix_context__===void 0?void 0:globalThis.__wix_context__.client:x.client,n=typeof $wixContext<`u`?$wixContext.elevatedClient:x.elevatedClient===void 0?globalThis.__wix_context__===void 0?void 0:globalThis.__wix_context__.elevatedClient:x.elevatedClient;if(t||n)return{initWixModules(e,r){if(r){if(!n)throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);return bt(()=>n.use(e))}if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return bt(()=>t.use(e))},fetchWithAuth:(e,n)=>{if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return t.fetchWithAuth(e,n)},getAuth(){if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return t.auth},async graphql(e,n,r){if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return t.graphql(e,n,r)}}}function bt(e){let t=globalThis.__wix_context__,n={client:x.client,elevatedClient:x.elevatedClient},r;globalThis.__wix_context__=void 0,x.client=void 0,x.elevatedClient=void 0,typeof $wixContext<`u`&&(r={client:$wixContext?.client,elevatedClient:$wixContext?.elevatedClient},delete $wixContext.client,delete $wixContext.elevatedClient);try{return e()}finally{globalThis.__wix_context__=t,x.client=n.client,x.elevatedClient=n.elevatedClient,typeof $wixContext<`u`&&($wixContext.client=r.client,$wixContext.elevatedClient=r.elevatedClient)}}function xt(e,t){return{...e,...Object.fromEntries(t.map(t=>[t,(...n)=>{let r=P();if(!r)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return r.initWixModules(e)[t].apply(void 0,n)}]))}}function St(e,t){return((...n)=>{let r=P();return r?r.initWixModules(e,t).apply(void 0,n):e.apply(void 0,n)})}function F(e,t=!1){return St(e,t)}function Ct(e,t){let n=I(e),r=Object.entries(n).some(([e,t])=>e.includes(`.`)||Array.isArray(t)&&t.some(e=>typeof e==`object`));return t&&r?new URLSearchParams({".r":Et(JSON.stringify(e))}):Object.entries(n).reduce((e,[t,n])=>((Array.isArray(n)?n:[n]).forEach(r=>{r==null||Array.isArray(n)&&typeof r==`object`||e.append(t,r)}),e),new URLSearchParams)}function wt(e){let t=zt(Lt(e.host),e.domainToMappings);return Jt(Gt(e.protoPath,e.data||{}),t)}function I(e,t=``){let n={};return Object.entries(e).forEach(([e,r])=>{let i=typeof r==`object`&&!!r&&!Array.isArray(r),a=Tt(t,e);if(i){let e=I(r,a);Object.assign(n,e)}else n[a]=r}),n}function Tt(e,t){return`${e}${e?`.`:``}${t}`}var Et=e=>{let t=new TextEncoder().encode(e);return(typeof btoa<`u`?btoa(String.fromCodePoint(...t)):Buffer.from(e,`utf-8`).toString(`base64`)).replace(/=/g,``).replace(/\+/g,`-`).replace(/\//g,`_`)},Dt=[`wix.com`,`editorx.com`],Ot=`_`,kt=`*.`,At=RegExp(`\\.(${Dt.join(`|`)})$`),jt=[`42.wixprod.net`,`uw2-edt-1.wixprod.net`,`virginia-edt.wixprod.net`],Mt={"payments.base44.com":`manage.wix.com`,"create.editorx.com":`editor.editorx.com`},Nt=`dev.wix-code.com`,Pt=/{(.*)}/,Ft=RegExp(`\\.(${jt.join(`|`)})$`),It=RegExp(`.*\\.${Nt}$`);function Lt(e){return Rt(e).replace(At,`._base_domain_`).replace(Ft,`._api_base_domain_`).replace(It,`*.dev.wix-code.com`)}function Rt(e){return Mt[e]??e}function zt(e,t){let n=t[e];if(n)return n;let r=Bt(e,t)??Vt(e,t);if(!r){if(Ut(e)){let e=t[Wt];if(e)return e}let n=t[Ot];if(n)return n}return r??[]}function Bt(e,t){return Object.entries(t).find(([t])=>{let[,...n]=e.split(`.`);return n.join(`.`)===t})?.[1]}function Vt(e,t){let[n]=Object.entries(t).filter(([t])=>Ht(e,t)).sort(([e],[t])=>t.length-e.length);if(!n)return;let[,r]=n;return r}function Ht(e,t){if(!t.startsWith(kt))return!1;let n=t.slice(1);return e.length>n.length&&e.endsWith(n)}function Ut(e){return!!e.match(/\._base_domain_$/)}var Wt=`www._base_domain_`;function Gt(e,t){return e.split(`/`).map(e=>Kt(e,t)).join(`/`)}function Kt(e,t){let n=e.match(Pt)||[],r=n[1];return r?qt(t,r,e,e.replace(n[0],``)):e}function qt(e,t,n,r){let i=e;for(let e of t.split(`.`)){if(!i)return n;i=i[e]}return`${i}${r}`}function Jt(e,t){let n=t?.find(t=>e.startsWith(t.destPath));return n?n.srcPath+e.slice(n.destPath.length):e}var Yt=`modulepreload`,Xt=function(e,t){return new URL(e,t).href},Zt={},L=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Xt(t,n),t=s(t),t in Zt)return;Zt[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Yt,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},R=(e,t)=>{e.searchParams.set(`lang`,t)},Qt=(e,t)=>{let n=e.hostname.split(`.`);n[0]===`www`&&(n=n.slice(1)),n=[t,...n],e.hostname=n.join(`.`)},$t=(e,t)=>{e.pathname=`/${t}${e.pathname}`},en=(e,t)=>{if(!t.languageCode||!t?.resolutionMethod)return e;let n=new URL(e);return(t?.resolutionMethod===`QUERY_PARAM`?R:t?.resolutionMethod===`SUBDOMAIN`?Qt:$t)(n,t.languageCode),n.href},tn=(e,t)=>{if(!e?.length)return e;let n;try{n=new URL(e)}catch{return e}n.searchParams.delete(`lang`);let r=n.pathname.split(`/`)[1]?.toLowerCase();if(t.includes(r??``)){let e=n.pathname.split(`/`);e.splice(1,1),n.pathname=e.join(`/`)}let i=n.hostname.split(`.`)[0]?.toLowerCase();if(t.includes(i??``)){let e=n.hostname.split(`.`);e.shift(),n.hostname=e.join(`.`)}return n.href},nn=`x-wix-currency`,rn=()=>{let e=dn(`currency`);if(e)return{[nn]:e}},an=`x-wix-linguist`,on=`00000000-0000-0000-0000-000000000000`,sn=`false`,cn=()=>{let e=dn(`language`),t=dn(`locale`);if(e)return{[an]:[e,t||e,sn,on].join(`|`)}};function ln(){let e=null,t=null;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var un=()=>(typeof window<`u`?window.commonConfig:void 0)??globalThis.commonConfig,dn=e=>un()?.[e],fn=({createHost:e})=>({__type:`host`,create:e=>({}),host:t=>{let{applicationId:n,componentId:r}=t??{},i=typeof window<`u`?window.wixEmbedsAPI:void 0,a=e(t),o=mn();return{...a,apiBaseUrl:o,getMonitoringClient:i?.getMonitoringClientFunction?.(n,r),essentials:{language:dn(`language`),locale:dn(`locale`),get passThroughHeaders(){let e={...cn(),...rn()};return Object.keys(e).length>0?e:void 0}}}},auth:e=>{let t=typeof window<`u`?window.wixEmbedsAPI:void 0;!e&&pn()&&(e=t?.getAccessTokenFunction?.());let n=!1,{resolve:r,promise:i}=ln();return{getAuthHeaders:async()=>{if(!e&&n&&(e=await i),!e)throw Error(`Failed to resolve auth token`);return{headers:{Authorization:await e()}}},getAccessTokenInjector:()=>(n=!0,e=>{r(e)})}}});function pn(){return typeof document<`u`&&document.currentScript?.tagName===`SCRIPT`}function mn(){let e=(typeof window<`u`?window.wixEmbedsAPI:void 0)?.getExternalBaseUrl?.();if(!e)return;let t=new URL(e);return t?.pathname&&t.pathname!==`/`?`${t.hostname}${t.pathname}`:t.hostname}var hn=({clientSdk:e,applicationId:t})=>({invoke:async({namespace:n,method:r,args:i})=>{if(!e)throw Error(`Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction`);return e.invoke({namespace:n,method:r,args:i,applicationId:t,accessToken:`accessToken`})},getAccessToken:()=>{throw Error(`Not implemented`)},observeState:()=>({disconnect:()=>{}})}),gn=fn({createHost:function(e){let t=(typeof $wixContext<`u`?$wixContext.clientSdk:void 0)??e?.clientSdk??(typeof window<`u`?window?.clientSdk:void 0),{applicationId:n}=e||{};if(!n)throw Error(`"createHost" was called without a required field "applicationId"`);return{channel:hn({clientSdk:t,applicationId:n}),close:()=>{}}}}),_n=(e,t)=>{let n=gn.host({applicationId:e,componentId:t}),r=gn.auth();return qe({auth:r,host:n}).enableContext(`module`),r.getAccessTokenInjector()},vn=e=>_n(`4aebd0cb-fbdb-4da7-b5d1-d05660a30172`,e),yn=Symbol(`use-promise.status`),bn=Symbol(`use-promise.value`),xn=Symbol(`use-promise.reason`);function Sn(e){if(e[yn]===`fulfilled`)return e[bn];throw e[yn]===`rejected`?e[xn]:e[yn]===`pending`?e:(e[yn]=`pending`,e.then(t=>{e[yn]=`fulfilled`,e[bn]=t},t=>{e[yn]=`rejected`,e[xn]=t}),e)}var z;(function(e){e[e.literal=0]=`literal`,e[e.argument=1]=`argument`,e[e.number=2]=`number`,e[e.date=3]=`date`,e[e.time=4]=`time`,e[e.select=5]=`select`,e[e.plural=6]=`plural`,e[e.pound=7]=`pound`})(z||={});function Cn(e){return e.type===z.literal}function wn(e){return e.type===z.argument}function Tn(e){return e.type===z.number}function En(e){return e.type===z.date}function Dn(e){return e.type===z.time}function On(e){return e.type===z.select}function kn(e){return e.type===z.plural}function An(e){return e.type===z.pound}function jn(e){return!!(e&&typeof e==`object`&&e.type===0)}function Mn(e){return!!(e&&typeof e==`object`&&e.type===1)}var Nn=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),B=function(){return B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},B.apply(this,arguments)},Pn=function(e){Nn(t,e);function t(n,r,i,a){var o=e.call(this)||this;return o.message=n,o.expected=r,o.found=i,o.location=a,o.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(o,t),o}return t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+n(e)})}function i(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+n(e)})}function a(e){switch(e.type){case`literal`:return`"`+r(e.text)+`"`;case`class`:var t=e.parts.map(function(e){return Array.isArray(e)?i(e[0])+`-`+i(e[1]):i(e)});return`[`+(e.inverted?`^`:``)+t+`]`;case`any`:return`any character`;case`end`:return`end of input`;case`other`:return e.description}}function o(e){var t=e.map(a),n,r;if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function s(e){return e?`"`+r(e)+`"`:`end of input`}return`Expected `+o(e)+` but `+s(t)+` found.`},t}(Error);function Fn(e,t){t=t===void 0?{}:t;var n={},r={start:Dt},i=Dt,a=function(e){return e.join(``)},o=function(e){return B({type:z.literal,value:e},un())},s=`#`,c=P(`#`,!1),l=function(){return B({type:z.pound},un())},u=F(`argumentElement`),d=`{`,f=P(`{`,!1),p=`}`,m=P(`}`,!1),h=function(e){return B({type:z.argument,value:e},un())},g=F(`numberSkeletonId`),_=/^['\/{}]/,v=bt([`'`,`/`,`{`,`}`],!1,!1),y=xt(),b=F(`numberSkeletonTokenOption`),x=`/`,S=P(`/`,!1),C=function(e){return e},ee=F(`numberSkeletonToken`),w=function(e,t){return{stem:e,options:t}},T=function(e){return B({type:0,tokens:e},un())},E=`::`,te=P(`::`,!1),ne=function(e){return e},re=function(){return sn.push(`numberArgStyle`),!0},ie=function(e){return sn.pop(),e.replace(/\s*$/,``)},D=`,`,O=P(`,`,!1),ae=`number`,oe=P(`number`,!1),se=function(e,t,n){return B({type:t===`number`?z.number:t===`date`?z.date:z.time,style:n&&n[2],value:e},un())},ce=`'`,le=P(`'`,!1),k=/^[^']/,ue=bt([`'`],!0,!1),de=/^[^a-zA-Z'{}]/,fe=bt([[`a`,`z`],[`A`,`Z`],`'`,`{`,`}`],!0,!1),pe=/^[a-zA-Z]/,me=bt([[`a`,`z`],[`A`,`Z`]],!1,!1),he=function(e){return B({type:1,pattern:e},un())},ge=function(){return sn.push(`dateOrTimeArgStyle`),!0},_e=`date`,ve=P(`date`,!1),ye=`time`,be=P(`time`,!1),xe=`plural`,Se=P(`plural`,!1),Ce=`selectordinal`,we=P(`selectordinal`,!1),Te=`offset:`,Ee=P(`offset:`,!1),De=function(e,t,n,r){return B({type:z.plural,pluralType:t===`plural`?`cardinal`:`ordinal`,value:e,offset:n?n[2]:0,options:r.reduce(function(e,t){var n=t.id,r=t.value,i=t.location;return n in e&&yt(`Duplicate option "`+n+`" in plural element: "`+_t()+`"`,vt()),e[n]={value:r,location:i},e},{})},un())},Oe=`select`,ke=P(`select`,!1),Ae=function(e,t){return B({type:z.select,value:e,options:t.reduce(function(e,t){var n=t.id,r=t.value,i=t.location;return n in e&&yt(`Duplicate option "`+n+`" in select element: "`+_t()+`"`,vt()),e[n]={value:r,location:i},e},{})},un())},je=`=`,Me=P(`=`,!1),Ne=function(e){return sn.push(`select`),!0},Pe=function(e,t){return sn.pop(),B({id:e,value:t},un())},Fe=function(e){return sn.push(`plural`),!0},Ie=function(e,t){return sn.pop(),B({id:e,value:t},un())},Le=F(`whitespace`),Re=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ze=bt([[` `,`\r`],` `,`…`,`\xA0`,` `,[` `,` `],`\u2028`,`\u2029`,` `,` `,` `],!1,!1),Be=F(`syntax pattern`),Ve=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,He=bt([[`!`,`/`],[`:`,`@`],[`[`,`^`],"`",[`{`,`~`],[`¡`,`§`],`©`,`«`,`¬`,`®`,`°`,`±`,`¶`,`»`,`¿`,`×`,`÷`,[`‐`,`‧`],[`‰`,`‾`],[`⁁`,`⁓`],[`⁕`,`⁞`],[`←`,`⑟`],[`─`,`❵`],[`➔`,`⯿`],[`⸀`,`⹿`],[`、`,`〃`],[`〈`,`〠`],`〰`,`﴾`,`﴿`,`﹅`,`﹆`],!1,!1),Ue=F(`optional whitespace`),We=F(`number`),Ge=`-`,Ke=P(`-`,!1),qe=function(e,t){return t?e?-t:t:0},Je=F(`double apostrophes`),Ye=`''`,Xe=P(`''`,!1),Ze=function(){return`'`},Qe=function(e,t){return e+t.replace(`''`,`'`)},$e=function(e){return e!==`{`&&!(ln()&&e===`#`)&&!(cn()&&e===`}`)},et=`
2
- `,tt=P(`
3
- `,!1),nt=function(e){return e===`{`||e===`}`||ln()&&e===`#`},rt=F(`argNameOrNumber`),it=F(`argNumber`),at=`0`,ot=P(`0`,!1),st=function(){return 0},ct=/^[1-9]/,lt=bt([[`1`,`9`]],!1,!1),ut=/^[0-9]/,dt=bt([[`0`,`9`]],!1,!1),ft=function(e){return parseInt(e.join(``),10)},pt=F(`argName`),A=0,j=0,mt=[{line:1,column:1}],M=0,ht=[],N=0,gt;if(t.startRule!==void 0){if(!(t.startRule in r))throw Error(`Can't start parsing from rule "`+t.startRule+`".`);i=r[t.startRule]}function _t(){return e.substring(j,A)}function vt(){return wt(j,A)}function yt(e,t){throw t=t===void 0?wt(j,A):t,Tt(e,t)}function P(e,t){return{type:`literal`,text:e,ignoreCase:t}}function bt(e,t,n){return{type:`class`,parts:e,inverted:t,ignoreCase:n}}function xt(){return{type:`any`}}function St(){return{type:`end`}}function F(e){return{type:`other`,description:e}}function Ct(t){var n=mt[t],r;if(n)return n;for(r=t-1;!mt[r];)r--;for(n=mt[r],n={line:n.line,column:n.column};r<t;)e.charCodeAt(r)===10?(n.line++,n.column=1):n.column++,r++;return mt[t]=n,n}function wt(e,t){var n=Ct(e),r=Ct(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function I(e){A<M||(A>M&&(M=A,ht=[]),ht.push(e))}function Tt(e,t){return new Pn(e,[],``,t)}function Et(e,t,n){return new Pn(Pn.buildMessage(e,t),e,t,n)}function Dt(){return Ot()}function Ot(){for(var e=[],t=kt();t!==n;)e.push(t),t=kt();return e}function kt(){var e=jt();return e===n&&(e=Nt(),e===n&&(e=Gt(),e===n&&(e=Kt(),e===n&&(e=qt(),e===n&&(e=Mt()))))),e}function At(){var e=A,t=[],r=$t();if(r===n&&(r=en(),r===n&&(r=tn())),r!==n)for(;r!==n;)t.push(r),r=$t(),r===n&&(r=en(),r===n&&(r=tn()));else t=n;return t!==n&&(j=e,t=a(t)),e=t,e}function jt(){var e=A,t=At();return t!==n&&(j=e,t=o(t)),e=t,e}function Mt(){var t=A,r;return e.charCodeAt(A)===35?(r=s,A++):(r=n,N===0&&I(c)),r!==n&&(j=t,r=l()),t=r,t}function Nt(){var t,r,i,a,o,s;return N++,t=A,e.charCodeAt(A)===123?(r=d,A++):(r=n,N===0&&I(f)),r===n?(A=t,t=n):(i=R(),i===n?(A=t,t=n):(a=rn(),a===n?(A=t,t=n):(o=R(),o===n?(A=t,t=n):(e.charCodeAt(A)===125?(s=p,A++):(s=n,N===0&&I(m)),s===n?(A=t,t=n):(j=t,r=h(a),t=r))))),N--,t===n&&(r=n,N===0&&I(u)),t}function Pt(){var t,r,i,a,o;if(N++,t=A,r=[],i=A,a=A,N++,o=Zt(),o===n&&(_.test(e.charAt(A))?(o=e.charAt(A),A++):(o=n,N===0&&I(v))),N--,o===n?a=void 0:(A=a,a=n),a===n?(A=i,i=n):(e.length>A?(o=e.charAt(A),A++):(o=n,N===0&&I(y)),o===n?(A=i,i=n):(a=[a,o],i=a)),i!==n)for(;i!==n;)r.push(i),i=A,a=A,N++,o=Zt(),o===n&&(_.test(e.charAt(A))?(o=e.charAt(A),A++):(o=n,N===0&&I(v))),N--,o===n?a=void 0:(A=a,a=n),a===n?(A=i,i=n):(e.length>A?(o=e.charAt(A),A++):(o=n,N===0&&I(y)),o===n?(A=i,i=n):(a=[a,o],i=a));else r=n;return t=r===n?r:e.substring(t,A),N--,t===n&&(r=n,N===0&&I(g)),t}function Ft(){var t,r,i;return N++,t=A,e.charCodeAt(A)===47?(r=x,A++):(r=n,N===0&&I(S)),r===n?(A=t,t=n):(i=Pt(),i===n?(A=t,t=n):(j=t,r=C(i),t=r)),N--,t===n&&(r=n,N===0&&I(b)),t}function It(){var e,t,r,i,a;if(N++,e=A,t=R(),t!==n){if(r=Pt(),r!==n){for(i=[],a=Ft();a!==n;)i.push(a),a=Ft();i===n?(A=e,e=n):(j=e,t=w(r,i),e=t)}else A=e,e=n}else A=e,e=n;return N--,e===n&&(t=n,N===0&&I(ee)),e}function Lt(){var e=A,t=[],r=It();if(r!==n)for(;r!==n;)t.push(r),r=It();else t=n;return t!==n&&(j=e,t=T(t)),e=t,e}function Rt(){var t=A,r,i;return e.substr(A,2)===E?(r=E,A+=2):(r=n,N===0&&I(te)),r===n?(A=t,t=n):(i=Lt(),i===n?(A=t,t=n):(j=t,r=ne(i),t=r)),t===n&&(t=A,j=A,r=re(),r=r?void 0:n,r===n?(A=t,t=n):(i=At(),i===n?(A=t,t=n):(j=t,r=ie(i),t=r))),t}function zt(){var t=A,r,i,a,o,s,c,l,u,h,g,_,v;return e.charCodeAt(A)===123?(r=d,A++):(r=n,N===0&&I(f)),r===n?(A=t,t=n):(i=R(),i===n?(A=t,t=n):(a=rn(),a===n?(A=t,t=n):(o=R(),o===n?(A=t,t=n):(e.charCodeAt(A)===44?(s=D,A++):(s=n,N===0&&I(O)),s===n?(A=t,t=n):(c=R(),c===n?(A=t,t=n):(e.substr(A,6)===ae?(l=ae,A+=6):(l=n,N===0&&I(oe)),l===n?(A=t,t=n):(u=R(),u===n?(A=t,t=n):(h=A,e.charCodeAt(A)===44?(g=D,A++):(g=n,N===0&&I(O)),g===n?(A=h,h=n):(_=R(),_===n?(A=h,h=n):(v=Rt(),v===n?(A=h,h=n):(g=[g,_,v],h=g))),h===n&&(h=null),h===n?(A=t,t=n):(g=R(),g===n?(A=t,t=n):(e.charCodeAt(A)===125?(_=p,A++):(_=n,N===0&&I(m)),_===n?(A=t,t=n):(j=t,r=se(a,l,h),t=r))))))))))),t}function Bt(){var t=A,r,i,a;if(e.charCodeAt(A)===39?(r=ce,A++):(r=n,N===0&&I(le)),r!==n){if(i=[],a=$t(),a===n&&(k.test(e.charAt(A))?(a=e.charAt(A),A++):(a=n,N===0&&I(ue))),a!==n)for(;a!==n;)i.push(a),a=$t(),a===n&&(k.test(e.charAt(A))?(a=e.charAt(A),A++):(a=n,N===0&&I(ue)));else i=n;i===n?(A=t,t=n):(e.charCodeAt(A)===39?(a=ce,A++):(a=n,N===0&&I(le)),a===n?(A=t,t=n):(r=[r,i,a],t=r))}else A=t,t=n;if(t===n){if(t=[],r=$t(),r===n&&(de.test(e.charAt(A))?(r=e.charAt(A),A++):(r=n,N===0&&I(fe))),r!==n)for(;r!==n;)t.push(r),r=$t(),r===n&&(de.test(e.charAt(A))?(r=e.charAt(A),A++):(r=n,N===0&&I(fe)));else t=n}return t}function Vt(){var t=[],r;if(pe.test(e.charAt(A))?(r=e.charAt(A),A++):(r=n,N===0&&I(me)),r!==n)for(;r!==n;)t.push(r),pe.test(e.charAt(A))?(r=e.charAt(A),A++):(r=n,N===0&&I(me));else t=n;return t}function Ht(){var t=A,r=A,i=[],a=Bt();if(a===n&&(a=Vt()),a!==n)for(;a!==n;)i.push(a),a=Bt(),a===n&&(a=Vt());else i=n;return r=i===n?i:e.substring(r,A),r!==n&&(j=t,r=he(r)),t=r,t}function Ut(){var t=A,r,i;return e.substr(A,2)===E?(r=E,A+=2):(r=n,N===0&&I(te)),r===n?(A=t,t=n):(i=Ht(),i===n?(A=t,t=n):(j=t,r=ne(i),t=r)),t===n&&(t=A,j=A,r=ge(),r=r?void 0:n,r===n?(A=t,t=n):(i=At(),i===n?(A=t,t=n):(j=t,r=ie(i),t=r))),t}function Wt(){var t=A,r,i,a,o,s,c,l,u,h,g,_,v;return e.charCodeAt(A)===123?(r=d,A++):(r=n,N===0&&I(f)),r===n?(A=t,t=n):(i=R(),i===n?(A=t,t=n):(a=rn(),a===n?(A=t,t=n):(o=R(),o===n?(A=t,t=n):(e.charCodeAt(A)===44?(s=D,A++):(s=n,N===0&&I(O)),s===n?(A=t,t=n):(c=R(),c===n?(A=t,t=n):(e.substr(A,4)===_e?(l=_e,A+=4):(l=n,N===0&&I(ve)),l===n&&(e.substr(A,4)===ye?(l=ye,A+=4):(l=n,N===0&&I(be))),l===n?(A=t,t=n):(u=R(),u===n?(A=t,t=n):(h=A,e.charCodeAt(A)===44?(g=D,A++):(g=n,N===0&&I(O)),g===n?(A=h,h=n):(_=R(),_===n?(A=h,h=n):(v=Ut(),v===n?(A=h,h=n):(g=[g,_,v],h=g))),h===n&&(h=null),h===n?(A=t,t=n):(g=R(),g===n?(A=t,t=n):(e.charCodeAt(A)===125?(_=p,A++):(_=n,N===0&&I(m)),_===n?(A=t,t=n):(j=t,r=se(a,l,h),t=r))))))))))),t}function Gt(){var e=zt();return e===n&&(e=Wt()),e}function Kt(){var t=A,r,i,a,o,s,c,l,u,h,g,_,v,y,b,x;if(e.charCodeAt(A)===123?(r=d,A++):(r=n,N===0&&I(f)),r!==n){if(i=R(),i!==n){if(a=rn(),a!==n){if(o=R(),o!==n){if(e.charCodeAt(A)===44?(s=D,A++):(s=n,N===0&&I(O)),s!==n){if(c=R(),c!==n){if(e.substr(A,6)===xe?(l=xe,A+=6):(l=n,N===0&&I(Se)),l===n&&(e.substr(A,13)===Ce?(l=Ce,A+=13):(l=n,N===0&&I(we))),l!==n){if(u=R(),u!==n){if(e.charCodeAt(A)===44?(h=D,A++):(h=n,N===0&&I(O)),h!==n){if(g=R(),g!==n){if(_=A,e.substr(A,7)===Te?(v=Te,A+=7):(v=n,N===0&&I(Ee)),v===n?(A=_,_=n):(y=R(),y===n?(A=_,_=n):(b=Qt(),b===n?(A=_,_=n):(v=[v,y,b],_=v))),_===n&&(_=null),_!==n){if(v=R(),v!==n){if(y=[],b=Xt(),b!==n)for(;b!==n;)y.push(b),b=Xt();else y=n;y===n?(A=t,t=n):(b=R(),b===n?(A=t,t=n):(e.charCodeAt(A)===125?(x=p,A++):(x=n,N===0&&I(m)),x===n?(A=t,t=n):(j=t,r=De(a,l,_,y),t=r)))}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n;return t}function qt(){var t=A,r,i,a,o,s,c,l,u,h,g,_,v,y;if(e.charCodeAt(A)===123?(r=d,A++):(r=n,N===0&&I(f)),r!==n){if(i=R(),i!==n){if(a=rn(),a!==n){if(o=R(),o!==n){if(e.charCodeAt(A)===44?(s=D,A++):(s=n,N===0&&I(O)),s!==n){if(c=R(),c!==n){if(e.substr(A,6)===Oe?(l=Oe,A+=6):(l=n,N===0&&I(ke)),l!==n){if(u=R(),u!==n){if(e.charCodeAt(A)===44?(h=D,A++):(h=n,N===0&&I(O)),h!==n){if(g=R(),g!==n){if(_=[],v=Yt(),v!==n)for(;v!==n;)_.push(v),v=Yt();else _=n;_===n?(A=t,t=n):(v=R(),v===n?(A=t,t=n):(e.charCodeAt(A)===125?(y=p,A++):(y=n,N===0&&I(m)),y===n?(A=t,t=n):(j=t,r=Ae(a,_),t=r)))}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n}else A=t,t=n;return t}function Jt(){var t=A,r=A,i,a;return e.charCodeAt(A)===61?(i=je,A++):(i=n,N===0&&I(Me)),i===n?(A=r,r=n):(a=Qt(),a===n?(A=r,r=n):(i=[i,a],r=i)),t=r===n?r:e.substring(t,A),t===n&&(t=on()),t}function Yt(){var t=A,r=R(),i,a,o,s,c,l;return r===n?(A=t,t=n):(i=on(),i===n?(A=t,t=n):(a=R(),a===n?(A=t,t=n):(e.charCodeAt(A)===123?(o=d,A++):(o=n,N===0&&I(f)),o===n?(A=t,t=n):(j=A,s=Ne(i),s=s?void 0:n,s===n?(A=t,t=n):(c=Ot(),c===n?(A=t,t=n):(e.charCodeAt(A)===125?(l=p,A++):(l=n,N===0&&I(m)),l===n?(A=t,t=n):(j=t,r=Pe(i,c),t=r))))))),t}function Xt(){var t=A,r=R(),i,a,o,s,c,l;return r===n?(A=t,t=n):(i=Jt(),i===n?(A=t,t=n):(a=R(),a===n?(A=t,t=n):(e.charCodeAt(A)===123?(o=d,A++):(o=n,N===0&&I(f)),o===n?(A=t,t=n):(j=A,s=Fe(i),s=s?void 0:n,s===n?(A=t,t=n):(c=Ot(),c===n?(A=t,t=n):(e.charCodeAt(A)===125?(l=p,A++):(l=n,N===0&&I(m)),l===n?(A=t,t=n):(j=t,r=Ie(i,c),t=r))))))),t}function Zt(){var t;return N++,Re.test(e.charAt(A))?(t=e.charAt(A),A++):(t=n,N===0&&I(ze)),N--,t===n&&N===0&&I(Le),t}function L(){var t;return N++,Ve.test(e.charAt(A))?(t=e.charAt(A),A++):(t=n,N===0&&I(He)),N--,t===n&&N===0&&I(Be),t}function R(){var t,r,i;for(N++,t=A,r=[],i=Zt();i!==n;)r.push(i),i=Zt();return t=r===n?r:e.substring(t,A),N--,t===n&&(r=n,N===0&&I(Ue)),t}function Qt(){var t,r,i;return N++,t=A,e.charCodeAt(A)===45?(r=Ge,A++):(r=n,N===0&&I(Ke)),r===n&&(r=null),r===n?(A=t,t=n):(i=an(),i===n?(A=t,t=n):(j=t,r=qe(r,i),t=r)),N--,t===n&&(r=n,N===0&&I(We)),t}function $t(){var t,r;return N++,t=A,e.substr(A,2)===Ye?(r=Ye,A+=2):(r=n,N===0&&I(Xe)),r!==n&&(j=t,r=Ze()),t=r,N--,t===n&&(r=n,N===0&&I(Je)),t}function en(){var t=A,r,i,a,o,s;if(e.charCodeAt(A)===39?(r=ce,A++):(r=n,N===0&&I(le)),r!==n){if(i=nn(),i!==n){for(a=A,o=[],e.substr(A,2)===Ye?(s=Ye,A+=2):(s=n,N===0&&I(Xe)),s===n&&(k.test(e.charAt(A))?(s=e.charAt(A),A++):(s=n,N===0&&I(ue)));s!==n;)o.push(s),e.substr(A,2)===Ye?(s=Ye,A+=2):(s=n,N===0&&I(Xe)),s===n&&(k.test(e.charAt(A))?(s=e.charAt(A),A++):(s=n,N===0&&I(ue)));a=o===n?o:e.substring(a,A),a===n?(A=t,t=n):(e.charCodeAt(A)===39?(o=ce,A++):(o=n,N===0&&I(le)),o===n&&(o=null),o===n?(A=t,t=n):(j=t,r=Qe(i,a),t=r))}else A=t,t=n}else A=t,t=n;return t}function tn(){var t=A,r=A,i,a;return e.length>A?(i=e.charAt(A),A++):(i=n,N===0&&I(y)),i===n?(A=r,r=n):(j=A,a=$e(i),a=a?void 0:n,a===n?(A=r,r=n):(i=[i,a],r=i)),r===n&&(e.charCodeAt(A)===10?(r=et,A++):(r=n,N===0&&I(tt))),t=r===n?r:e.substring(t,A),t}function nn(){var t=A,r=A,i,a;return e.length>A?(i=e.charAt(A),A++):(i=n,N===0&&I(y)),i===n?(A=r,r=n):(j=A,a=nt(i),a=a?void 0:n,a===n?(A=r,r=n):(i=[i,a],r=i)),t=r===n?r:e.substring(t,A),t}function rn(){var t,r;return N++,t=A,r=an(),r===n&&(r=on()),t=r===n?r:e.substring(t,A),N--,t===n&&(r=n,N===0&&I(rt)),t}function an(){var t,r,i,a,o;if(N++,t=A,e.charCodeAt(A)===48?(r=at,A++):(r=n,N===0&&I(ot)),r!==n&&(j=t,r=st()),t=r,t===n){if(t=A,r=A,ct.test(e.charAt(A))?(i=e.charAt(A),A++):(i=n,N===0&&I(lt)),i!==n){for(a=[],ut.test(e.charAt(A))?(o=e.charAt(A),A++):(o=n,N===0&&I(dt));o!==n;)a.push(o),ut.test(e.charAt(A))?(o=e.charAt(A),A++):(o=n,N===0&&I(dt));a===n?(A=r,r=n):(i=[i,a],r=i)}else A=r,r=n;r!==n&&(j=t,r=ft(r)),t=r}return N--,t===n&&(r=n,N===0&&I(it)),t}function on(){var t,r,i,a,o;if(N++,t=A,r=[],i=A,a=A,N++,o=Zt(),o===n&&(o=L()),N--,o===n?a=void 0:(A=a,a=n),a===n?(A=i,i=n):(e.length>A?(o=e.charAt(A),A++):(o=n,N===0&&I(y)),o===n?(A=i,i=n):(a=[a,o],i=a)),i!==n)for(;i!==n;)r.push(i),i=A,a=A,N++,o=Zt(),o===n&&(o=L()),N--,o===n?a=void 0:(A=a,a=n),a===n?(A=i,i=n):(e.length>A?(o=e.charAt(A),A++):(o=n,N===0&&I(y)),o===n?(A=i,i=n):(a=[a,o],i=a));else r=n;return t=r===n?r:e.substring(t,A),N--,t===n&&(r=n,N===0&&I(pt)),t}var sn=[`root`];function cn(){return sn.length>1}function ln(){return sn[sn.length-1]===`plural`}function un(){return t&&t.captureLocation?{location:vt()}:{}}if(gt=i(),gt!==n&&A===e.length)return gt;throw gt!==n&&A<e.length&&I(St()),Et(ht,M<e.length?e.charAt(M):null,M<e.length?wt(M,M+1):wt(M,M))}var In=Fn,Ln=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},Rn=/(^|[^\\])#/g;function zn(e){e.forEach(function(e){(kn(e)||On(e))&&Object.keys(e.options).forEach(function(t){for(var n,r=e.options[t],i=-1,a=void 0,o=0;o<r.value.length;o++){var s=r.value[o];if(Cn(s)&&Rn.test(s.value)){i=o,a=s;break}}if(a){var c=In(a.value.replace(Rn,`$1{`+e.value+`, number}`));(n=r.value).splice.apply(n,Ln([i,1],c))}zn(r.value)})})}var V=function(){return V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},V.apply(this,arguments)},Bn=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Vn(e){var t={};return e.replace(Bn,function(e){var n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`short`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return``}),t}function Hn(e){return e.replace(/^(.*?)-/,``)}var Un=/^\.(?:(0+)(\+|#+)?)?$/g,Wn=/^(@+)?(\+|#+)?$/g;function Gn(e){var t={};return e.replace(Wn,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function Kn(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:return{currencySign:`accounting`};case`sign-always`:return{signDisplay:`always`};case`sign-accounting-always`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:return{signDisplay:`never`}}}function qn(e){return Kn(e)||{}}function Jn(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case`percent`:t.style=`percent`;continue;case`currency`:t.style=`currency`,t.currency=i.options[0];continue;case`group-off`:t.useGrouping=!1;continue;case`precision-integer`:t.maximumFractionDigits=0;continue;case`measure-unit`:t.style=`unit`,t.unit=Hn(i.options[0]);continue;case`compact-short`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t=V(V(V({},t),{notation:`scientific`}),i.options.reduce(function(e,t){return V(V({},e),qn(t))},{}));continue;case`engineering`:t=V(V(V({},t),{notation:`engineering`}),i.options.reduce(function(e,t){return V(V({},e),qn(t))},{}));continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue}if(Un.test(i.stem)){if(i.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);i.stem.replace(Un,function(e,n,r){return e===`.`?t.maximumFractionDigits=0:r===`+`?t.minimumFractionDigits=r.length:n[0]===`#`?t.maximumFractionDigits=n.length:(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+(typeof r==`string`?r.length:0)),``}),i.options.length&&(t=V(V({},t),Gn(i.options[0])));continue}if(Wn.test(i.stem)){t=V(V({},t),Gn(i.stem));continue}var a=Kn(i.stem);a&&(t=V(V({},t),a))}return t}function Yn(e,t){var n=In(e,t);return(!t||t.normalizeHashtagInPlural!==!1)&&zn(n),n}var Xn=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};function Zn(e){return JSON.stringify(e.map(function(e){return e&&typeof e==`object`?Qn(e):e}))}function Qn(e){return Object.keys(e).sort().map(function(t){var n={};return n[t]=e[t],n})}var $n=function(e,t){return t===void 0&&(t={}),function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=Zn(r),o=a&&t[a];return o||(o=new((n=e).bind.apply(n,Xn([void 0],r))),a&&(t[a]=o)),o}},er=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),tr=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},nr=function(e){er(t,e);function t(t,n){var r=e.call(this,t)||this;return r.variableId=n,r}return t}(Error);function rr(e){return e.length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return!n||n.type!==0||t.type!==0?e.push(t):n.value+=t.value,e},[])}function ir(e,t,n,r,i,a,o){if(e.length===1&&Cn(e[0]))return[{type:0,value:e[0].value}];for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c];if(Cn(u)){s.push({type:0,value:u.value});continue}if(An(u)){typeof a==`number`&&s.push({type:0,value:n.getNumberFormat(t).format(a)});continue}var d=u.value;if(!(i&&d in i))throw new nr(`The intl string context variable "`+d+`" was not provided to the string "`+o+`"`);var f=i[d];if(wn(u)){(!f||typeof f==`string`||typeof f==`number`)&&(f=typeof f==`string`||typeof f==`number`?String(f):``),s.push({type:1,value:f});continue}if(En(u)){var p=typeof u.style==`string`?r.date[u.style]:void 0;s.push({type:0,value:n.getDateTimeFormat(t,p).format(f)});continue}if(Dn(u)){var p=typeof u.style==`string`?r.time[u.style]:Mn(u.style)?Vn(u.style.pattern):void 0;s.push({type:0,value:n.getDateTimeFormat(t,p).format(f)});continue}if(Tn(u)){var p=typeof u.style==`string`?r.number[u.style]:jn(u.style)?Jn(u.style.tokens):void 0;s.push({type:0,value:n.getNumberFormat(t,p).format(f)});continue}if(On(u)){var m=u.options[f]||u.options.other;if(!m)throw RangeError(`Invalid values for "`+u.value+`": "`+f+`". Options are "`+Object.keys(u.options).join(`", "`)+`"`);s.push.apply(s,ir(m.value,t,n,r,i));continue}if(kn(u)){var m=u.options[`=`+f];if(!m){if(!Intl.PluralRules)throw new nr(`Intl.PluralRules is not available in this environment.
1
+ import*as e from"react";import t,{Suspense as n,createContext as r,createElement as i,startTransition as a,useCallback as o,useContext as s,useEffect as c,useMemo as l,useRef as u,useState as d}from"react";import*as f from"react-dom";import p from"react-dom";import{jsx as m,jsxs as h}from"react/jsx-runtime";import{useService as g}from"@wix/services-manager-react";var _=Object.defineProperty,v=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},y=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),b=(e,t)=>{let n={};for(var r in e)_(n,r,{get:e[r],enumerable:!0});return t||_(n,Symbol.toStringTag,{value:`Module`}),n},x={};function S(e,t=!1,n=e=>e){return()=>({__type:`event-definition`,type:e,isDomainEvent:t,transformations:n})}var C=e=>{switch(e){case`get`:case`GET`:return`GET`;case`post`:case`POST`:return`POST`;case`put`:case`PUT`:return`PUT`;case`delete`:case`DELETE`:return`DELETE`;case`patch`:case`PATCH`:return`PATCH`;case`head`:case`HEAD`:return`HEAD`;case`options`:case`OPTIONS`:return`OPTIONS`;default:throw Error(`Unknown method: ${e}`)}},ee=e=>t=>async n=>{let r,i=t=>{if(r=e(n)(t),r.url===void 0)throw Error(`Url was not successfully created for this request, please reach out to support channels for assistance.`);let{method:i,url:a,params:o}=r;return{...r,method:C(i),url:a,data:r.data,params:o}};try{let e=await t.request(i);if(r===void 0)throw Error(`Request options were not created for this request, please reach out to support channels for assistance.`);let n=Array.isArray(r.transformResponse)?r.transformResponse:[r.transformResponse],a=e.data;return n.forEach(t=>{t&&(a=t(e.data,e.headers))}),a}catch(e){throw typeof e==`object`&&e&&`response`in e&&typeof e.response==`object`&&e.response!==null&&`data`in e.response?e.response.data:e}},w=e=>e.__isAmbassador?!0:!!e().__isAmbassador,T=`__metadata`,E=`edge.wixapis.com`,D=class extends Error{message;response;constructor(e,t){super(e),this.message=e,this.response=t}async details(){let e=await this.response.json();return te(this.response.status,e?.message,e?.details,{requestId:this.response.headers.get(`X-Wix-Request-Id`),details:e})}},te=(e,t,n,r)=>({details:{...!n?.validationError&&{applicationError:{description:t,code:e,data:r}},...n},message:t,requestId:r?.requestId}),ne=e=>e?.method&&[`post`,`put`,`patch`].includes(e.method.toLocaleLowerCase())&&e.body?{"Content-Type":`application/json`}:{},re=e=>e&&typeof e==`object`&&!Array.isArray(e),O=e=>e.__type===`host`;function k(e,t){return e.create(t)}var ie=`x-wix-bi-gateway`;function ae(e,t,n){return{[ie]:oe({environment:`js-sdk${n?`-${n}`:``}`,"package-name":e.packageName??t?.PACKAGE_NAME,"method-fqn":e.methodFqn,entity:e.entityFqdn})}}function oe(e){return Object.entries(e).filter(([e,t])=>!!t).map(([e,t])=>`${e}=${t}`).join(`,`)}function se(e){let t=globalThis.__wix_context__,n={client:x.client,elevatedClient:x.elevatedClient},r;globalThis.__wix_context__=void 0,x.client=void 0,x.elevatedClient=void 0,typeof $wixContext<`u`&&(r={client:$wixContext?.client,elevatedClient:$wixContext?.elevatedClient},delete $wixContext.client,delete $wixContext.elevatedClient);try{return e()}finally{globalThis.__wix_context__=t,x.client=n.client,x.elevatedClient=n.elevatedClient,typeof $wixContext<`u`&&($wixContext.client=r.client,$wixContext.elevatedClient=r.elevatedClient)}}var ce={id:`_id`,createdDate:`_createdDate`,updatedDate:`_updatedDate`};function A(e){return pe(e).map(e=>e.toLocaleUpperCase()).join(`_`)}var le=/([\p{Ll}\d])(\p{Lu})/gu,ue=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,de=`$1\0$2`,fe=/[^\p{L}\d]+/giu;function pe(e){let t=e.trim();t=t.replace(le,de).replace(ue,de),t=t.replace(fe,`\0`);let n=0,r=t.length;for(;t.charAt(n)===`\0`;)n++;if(n===r)return[];for(;t.charAt(r-1)===`\0`;)r--;return t.slice(n,r).split(/\0/g)}var me=e=>`validationError`in(e.response?.data?.details??{}),he=e=>`applicationError`in(e.response?.data?.details??{}),ge=e=>(e.response?.status??-1)>=400&&(e.response?.status??-1)<500;function _e(e,t={explicitPathsToArguments:{},spreadPathsToArguments:{},singleArgumentUnchanged:!1},n=[]){if(typeof e!=`object`||!e)throw e;if(me(e))return ve(e,t,n);if(he(e))return be(e);if(ge(e)){let t=e.response?.status,n=e.response?.statusText??`UNKNOWN`,r=e.response?.data?.message??n,i={applicationError:{description:n,code:A(n),data:{}},requestId:e.requestId};return ye(e,{message:JSON.stringify({message:r,details:i},null,2),extraProperties:{details:i,status:t}})}return xe(e)}var ve=(e,t,n)=>{let r=e.response?.data,i=e.requestId,{fieldViolations:a}=r.details.validationError,o=Se(t,a,n)?.sort((e,t)=>e.field<t.field?-1:1),s=`INVALID_ARGUMENT: ${o?.map(({field:e,description:t})=>`"${e}" ${t}`)?.join(`, `)}`,c={validationError:{fieldViolations:o},requestId:i};return ye(e,{message:JSON.stringify({message:s,details:c},null,2),extraProperties:{details:c,status:e.response?.status,requestId:i}})},ye=(e,{message:t,extraProperties:n})=>Object.assign(e,{...n,message:t}),be=e=>{let t=e.response?.status,n=e.response?.statusText??`UNKNOWN`,r=e.response?.data?.message??n,i=e.response?.data?.details?.applicationError?.description??n,a=e.response?.data?.details?.applicationError?.code??A(n),o=e.response?.data?.details?.applicationError?.data??{},s=r===i?r:`${r}: ${i}`,c={applicationError:{description:i,code:a,data:o},requestId:e.requestId};return ye(e,{message:JSON.stringify({message:s,details:c},null,2),extraProperties:{details:c,status:t,requestId:e.requestId}})},xe=e=>ye(e,{message:e.requestId?`System error occurred, request-id: ${e.requestId}`:`System error occurred: ${JSON.stringify(e)}`,extraProperties:{requestId:e.requestId,status:e.response?.status,code:A(e.response?.statusText??`UNKNOWN`),...!e.response&&{runtimeError:e}}}),Se=({spreadPathsToArguments:e,explicitPathsToArguments:t,singleArgumentUnchanged:n},r,i)=>{let a={...e,...t},o=Object.keys(a);return r?.filter(e=>!r.some(t=>t.field.length>e.field.length&&t.field.startsWith(e.field)&&o.includes(t.field))).map(e=>{let r=t[e.field];if(r)return{...e,field:Ce(r,i)};let s=o?.sort((e,t)=>t.length-e.length)?.find(t=>e.field.startsWith(t));if(s){let t=a[s];if(t)return{...e,field:e.field.replace(s,Ce(t,i))}}return n?{...e,field:`${i[0]}.${e.field}`}:e})},Ce=(e,t)=>{let n=we(e);return n==null?e:e.replace(`$[${n}]`,t[n])},we=e=>{let t=e.match(/\$\[(?<argIndex>\d+)\]/);return t&&t.groups&&Number(t.groups.argIndex)};function Te(e,t,n,r,i,a,o,s,c,l,u){return se(()=>e({request:async e=>{let i=e({host:s?.HTTPHost||`www.wixapis.com`}),a=i;a.method===`GET`&&a.fallback?.length&&(a.params?.toString().length??0)>4e3&&(a=i.fallback[0]);let o=s?.HTTPHost??`www.wixapis.com`,u=`https://${l?E:o}${a.url}`;a.params&&a.params.toString()&&(u+=`?${a.params.toString()}`);try{let e=ae(i,t,c),o={method:a.method,...a.data&&{body:JSON.stringify(a.data)},headers:{...e}},s=await n(u,o);if(s.status!==200){let e=null;try{e=await s.json()}catch{}let t=De(s.status,e?.message??s.statusText,e?.details,{requestId:s.headers.get(`X-Wix-Request-Id`),details:e}),n=_e(t);throw r?.handleError(n,{requestOptions:{url:a.url,method:a.method,entityFqdn:i.entityFqdn,methodFqn:i.methodFqn}}),t}let l=await s.json();return{data:a.migrationOptions?.optInTransformResponse&&a.transformResponse?Array.isArray(a.transformResponse)?a.transformResponse[0](l):a.transformResponse(l):l,headers:s.headers,status:s.status,statusText:s.statusText}}catch(e){throw e.message?.includes(`fetch is not defined`)&&console.error(`Node.js v18+ is required`),e}},fetchWithAuth:n,wixAPIFetch:i,getActiveToken:a,getAuthHeaders:o},{validateRequestSchema:u}))}var Ee=class extends Error{response;requestId;constructor(e){super(),this.response=e.response,this.requestId=e.requestId}},De=(e,t,n,r)=>new Ee({response:{data:{details:{...!n?.validationError&&{applicationError:{description:t,code:e,data:r}},...n},message:t},status:e},requestId:r?.requestId}),Oe=`.`;function ke(e,t,n){if(e==null)throw Error(`Cannot set value on null or undefined`);let r=Ae(t),i=e;for(let e=0;e<r.length;e++){let t=r[e];if(e===r.length-1){i[t]=n;break}let a=r[e+1];(!(t in i)||i[t]==null||typeof i[t]!=`object`||i[t]===null)&&(i[t]=typeof a==`number`?[]:{}),i=i[t]}return e}function Ae(e){return Array.isArray(e)?e:e.split(Oe).map(e=>je(e)?Number(e):e)}function je(e){return/^\d+$/.test(e)}function Me(e){let t={};for(let[n,r]of Object.entries(e))Ne(n)||ke(t,Ae(n),r);return t}function Ne(e){return e===`__proto__`||e===`constructor`||e===`prototype`}var Pe=class{BRACKET_PATTERN=/\[(\d+)\]/g;NUMERIC_PATTERN=/^\d+$/;ESCAPED_DOT_PATTERN=/\\\./g;ESCAPED_LEFT_BRACKET_PATTERN=/\\\[/g;ESCAPED_RIGHT_BRACKET_PATTERN=/\\\]/g;SPLIT_PATTERN=/\.|\[(\d+)\]/g;DOT_BEFORE_BRACKET_PATTERN=/\.\[/g;ESCAPED_DOT_PLACEHOLDER=`__DOT__`;ESCAPED_RIGHT_BRACKET_PLACEHOLDER=`__RB__`;ESCAPED_LEFT_BRACKET_PLACEHOLDER=`__LB__`;modifiedFields;cleanedModifiedFields;constructor(e){this.modifiedFields=e}replaceEscapedCharacters(e){return e.replace(this.ESCAPED_DOT_PATTERN,this.ESCAPED_DOT_PLACEHOLDER).replace(this.ESCAPED_LEFT_BRACKET_PATTERN,this.ESCAPED_LEFT_BRACKET_PLACEHOLDER).replace(this.ESCAPED_RIGHT_BRACKET_PATTERN,this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER)}restoreEscapedCharacters(e){return e.replace(this.ESCAPED_DOT_PLACEHOLDER,`\\.`).replace(this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER,`\\]`).replace(this.ESCAPED_LEFT_BRACKET_PLACEHOLDER,`\\[`)}unflatten(){return this.cleanedModifiedFields=Object.fromEntries(Object.entries(this.modifiedFields).map(([e,t])=>[this.replaceEscapedCharacters(this.bracketToDotNotation(e)),t])),Me(this.cleanedModifiedFields)}flatten(e){let t={};for(let n of Object.keys(this.cleanedModifiedFields)){let r=this.splitPath(n),i=this.navigatePath(e,r);t={...t,...i}}return Object.fromEntries(Object.entries(t).map(([e,t])=>[this.restoreEscapedCharacters(e),t]))}splitPath(e){let t=[],n=0,r=Array.from(e.matchAll(this.SPLIT_PATTERN));for(let i of r)i.index>n&&t.push(e.substring(n,i.index)),i[1]&&t.push(i[1]),n=i.index+i[0].length;return n<e.length&&t.push(e.substring(n)),t}navigatePath(e,t){let n=e,r=[],i=e=>{if(!Array.isArray(n))throw Error(`Expected array at path ${this.buildPathString(r)}, but got ${typeof n}`);r.push(`[${e}]`),n=n[parseInt(e,10)]},a=(e,t)=>{let i=e in ce?ce[e]:void 0;if(i&&i in t){r.push(i),n=t[i];return}let a=Re(e);if(a&&a in t){r.push(a),n=t[a];return}throw Error(`Cannot find key '${e}' or its transformations at path ${this.buildPathString(r)}`)},o=(e,t)=>{r.push(e),n=t[e]};for(let e of t){if(this.NUMERIC_PATTERN.test(e)){i(e);continue}if(typeof n!=`object`||!n)throw Error(`Cannot access property '${e}' on ${typeof n} at path ${this.buildPathString(r)}`);let t=n;if(e in n){o(e,t);continue}a(e,t)}return{[this.buildPathString(r)]:n}}buildPathString(e){return e.join(`.`).replace(this.DOT_BEFORE_BRACKET_PATTERN,`[`)}bracketToDotNotation(e){return e.replace(this.BRACKET_PATTERN,(t,n,r)=>r>0&&e[r-1]===`\\`?t:`.`+n)}};function Fe(e,t){let n=e?.modifiedFields;if(!n)return null;let r=Ie(n);if(!r)return null;let{unflattenedModifiedFields:i,modifiedFieldsManipulator:a}=r;e={...e,modifiedFields:i};let o=t(e),s=o?.modifiedFields;if(!s)return null;let c=Le(s,a);return c===null?null:(o.modifiedFields=c,o)}function Ie(e){if(typeof e==`object`&&e&&!Array.isArray(e))try{let t=new Pe(e);return{unflattenedModifiedFields:t.unflatten(),modifiedFieldsManipulator:t}}catch{return null}return null}function Le(e,t){if(typeof e==`object`&&e&&!Array.isArray(e))try{return t.flatten(e)}catch{return null}return null}function Re(e){return e.replace(/[-_\s]+(.)?/g,(e,t)=>t?t.toUpperCase():``).replace(/^./,e=>e.toLowerCase())}function ze(){return{emit(e,...t){for(let n=0,r=this.events[e]||[],i=r.length;n<i;n++)r[n](...t)},events:{},on(e,t){return(this.events[e]||=[]).push(t),()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}}}var Be=e=>e.__type===`event-definition`;function Ve(e,t,n,r){let i;if(e.isDomainEvent){let{deletedEvent:e,actionEvent:t,createdEvent:a,updatedEvent:o,...s}=n,c={...r,...s};i=e?e?.deletedEntity?{entity:e?.deletedEntity,metadata:c}:{metadata:c}:t?{data:t.body,metadata:c}:o?{entity:o.currentEntity,metadata:c,...o.modifiedFields?{modifiedFields:o.modifiedFields}:{}}:{entity:a?.entity,metadata:c}}else i={data:n,metadata:r};let a=e.transformations??(e=>e),o=i,s=i;if(s.modifiedFields){let e=s.modifiedFields;if(typeof e==`object`&&e&&!Array.isArray(e)){o=structuredClone(i);let e=Fe(s,a);if(e)return t(e)}}return t(a(o))}function He(e){let t=new Map,n=ze();return{initModule(e){return r=>{let i=t.get(e.type)??[];i.push({eventDefinition:e,handler:r}),t.set(e.type,i),n.emit(`registered`,e)}},client:{...n,getRegisteredEvents:()=>t,async process(e,n={expectedEvents:[]}){let{eventType:r,identity:i,instanceId:a,payload:o,accountInfo:s}=await this.parseJWT(e),c=[...n.expectedEvents,...Array.from(t.keys()).map(e=>({type:e}))];if(c.length>0&&!c.some(({type:e})=>e===r))throw Error(`Unexpected event type: ${r}. Expected one of: ${c.map(e=>e.type).join(`, `)}`);let l=t.get(r)??[];return await Promise.all(l.map(({eventDefinition:e,handler:t})=>Ve(e,t,o,{instanceId:a,identity:i,accountInfo:s}))),{instanceId:a,eventType:r,payload:o,identity:i,accountInfo:s}},async processRequest(e,t){let n=await e.text();return this.process(n,t)},async parseJWT(t){let n=e();if(!n.decodeJWT)throw Error(`decodeJWT is not supported by the authentication strategy`);let{decoded:r,valid:i}=await n.decodeJWT(t);if(!i)throw Error(`JWT is not valid`);if(typeof r.data!=`string`)throw Error(`Unexpected type of JWT data: expected string, got ${typeof r.data}`);let a=JSON.parse(r.data),o=a.eventType,s=a.accountInfo,c=a.instanceId,l=a.identity?JSON.parse(a.identity):void 0;return{instanceId:c,eventType:o,payload:JSON.parse(a.data),identity:l,accountInfo:s}},async parseRequest(e){let t=await e.text();return this.parseJWT(t)},async executeHandlers(e){let n=Array.from(t.keys()).map(e=>({type:e}));if(n.length>0&&!n.some(({type:t})=>t===e.eventType))throw Error(`Unexpected event type: ${e.eventType}. Expected one of: ${n.map(e=>e.type).join(`, `)}`);let r=t.get(e.eventType)??[];await Promise.all(r.map(({eventDefinition:t,handler:n})=>Ve(t,n,e.payload,{instanceId:e.instanceId,identity:e.identity})))},apps:{AppInstalled:S(`AppInstalled`)(),AppRemoved:S(`AppRemoved`)()}}}}var Ue=e=>e.__type===`service-plugin-definition`;function We(e){let t=new Map,n=ze();return{initModule(e){return r=>{let i=t.get(e.componentType.toLowerCase())??[];i.push({servicePluginDefinition:e,implementation:r}),t.set(e.componentType.toLowerCase(),i),n.emit(`registered`,e)}},client:{...n,getRegisteredServicePlugins:()=>t,async parseJWT(t){let n=e();if(!n.decodeJWT)throw Error(`decodeJWT is not supported by the authentication strategy`);let{decoded:r,valid:i}=await n.decodeJWT(t,!0);if(!i)throw Error(`JWT is not valid`);if(typeof r.data!=`object`||r.data===null||!(`metadata`in r.data)||typeof r.data.metadata!=`object`||r.data.metadata===null||!(`appExtensionType`in r.data.metadata)||typeof r.data.metadata.appExtensionType!=`string`)throw Error(`Unexpected JWT data: expected object with metadata.appExtensionType string`);return r.data},async process(e){let t=await this.parseJWT(e.body);return this.executeHandler(t,e.url)},async parseRequest(e){let t=await e.text();return this.parseJWT(t)},async processRequest(e){let t=await this.parseRequest(e);return this.processParsedRequest(t,e.url)},async processParsedRequest(e,t){try{let n=await this.executeHandler(e,t);return Response.json(n)}catch(e){if(e.errorType===`SPI`&&e.applicationCode&&e.httpCode)return Response.json({applicationError:{code:e.applicationCode,data:e.data}},{status:e.httpCode});throw e}},async executeHandler(e,n){let r=e.metadata.appExtensionType.toLowerCase(),i=t.get(r)??[];if(i.length===0)throw Error(`No service plugin implementations found for component type ${r}`);if(i.length>1)throw Error(`Multiple service plugin implementations found for component type ${r}. This is currently not supported`);let{implementation:a,servicePluginDefinition:o}=i[0],s=o.methods.find(e=>n.endsWith(e.primaryHttpMappingPath));if(!s)throw Error(`Unexpect request: request url did not match any method: `+n);let c=a[s.name];if(!c)throw Error(`Got request for service plugin method ${s.name} but no implementation was provided. Available methods: ${Object.keys(a).join(`, `)}`);return s.transformations.toREST(await c(s.transformations.fromREST(e)))}}}}var Ge=`X-Wix-Consistent`;function Ke(e){let t=e.headers||{Authorization:``},n={getAuthHeaders:e=>Promise.resolve({headers:{}})},r=e.auth,i=typeof r==`function`?r:()=>r??n,a=()=>i().getAuthHeaders(e.host),o=()=>e.fetch??fetch,s=async(n,r)=>{let i=o(),s=await a(),c={...r?.headers??{},...s.headers,...e.host?.essentials?.passThroughHeaders,...t[`X-Wix-Consistent`]?{[Ge]:t[Ge]}:{}},l=e.host?.getErrorHandler?.();try{if(typeof n==`string`||n instanceof URL){let e=await i(n,{...r,headers:c});l?.handleError(e,{requestOptions:{url:n.toString(),method:r?.method}});let a=qe(e);return a&&(t[Ge]=a),e}{for(let[e,t]of Object.entries(c))typeof t==`string`&&n.headers.set(e,t);let e=await i(n,r);l?.handleError(e,{requestOptions:{url:n.url,method:r?.method}});let a=qe(e);return a&&(t[Ge]=a),e}}catch(e){throw l?.handleError(e,{requestOptions:{url:typeof n==`string`||n instanceof URL?n.toString():n.url,method:r?.method}}),e}},{client:c,initModule:l}=We(i),{client:u,initModule:d}=He(i),f=async(n,r)=>{let i=o(),s=await a(),c=ne(r),l=await i(n,{...r,headers:{...c,...t,...s?.headers,...r?.headers,...e.host?.essentials?.passThroughHeaders,...t[`X-Wix-Consistent`]?{[Ge]:t[Ge]}:{}}}),u=qe(l);return u&&(t[Ge]=u),l},p=(t,n)=>{if(Be(t))return d(t);if(Ue(t))return l(t);if(O(t)&&e.host)return k(t,e.host);if(typeof t==`function`){if(`__type`in t&&t.__type===`wix_spi_error`)return t;let r=e.host?.apiBaseUrl??`www.wixapis.com`,o=e.useCDN===void 0?i().shouldUseCDN:e.useCDN;return Te(se(()=>w(t))?ee(t):t,n??{},f,e.host?.getErrorHandler?.(),(e,t)=>{let n=new URL(e,`https://${r}`);return n.host=r,n.protocol=`https`,f(n.toString(),t)},i().getActiveToken,async()=>a(),{HTTPHost:r},e.host?.name,o,e.validateRequestSchema)}return re(t)?Object.fromEntries(Object.entries(t).map(([e,n])=>[e,p(n,t[T])])):t},m=e=>{for(let n in e)t[n]=e[n]};return{...e.modules?p(e.modules):{},get auth(){let t=i();return t.getAuthHeaders=t.getAuthHeaders.bind(void 0,e.host),t},setHeaders:m,use:p,enableContext(e,t={elevated:!1}){e===`global`?globalThis.__wix_context__==null?t.elevated?globalThis.__wix_context__={elevatedClient:this}:globalThis.__wix_context__={client:this}:t.elevated?globalThis.__wix_context__.elevatedClient=this:globalThis.__wix_context__.client=this:t.elevated?x.elevatedClient=this:x.client=this},fetch:(t,n)=>{let r=e.host?.apiBaseUrl??`www.wixapis.com`,i=new URL(t,`https://${r}`);return i.host=r,i.protocol=`https`,f(i.toString(),n)},fetchWithAuth:s,async graphql(t,n,r={apiVersion:`alpha`}){let i=e?.host?.apiBaseUrl??`www.wixapis.com`,a=await f(`https://${i}/graphql/${r.apiVersion}`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({query:t,variables:n})});if(a.status!==200)throw new D(`GraphQL request failed with status ${a.status}`,a);let{data:o,errors:s}=await a.json();return{data:o??{},errors:s}},webhooks:u,servicePlugins:c}}function qe(e){return e.headers?.get(`X-Wix-Consistent`)??e.headers?.get(`x-wix-consistent`)}var Je={_id:`id`,_createdDate:`createdDate`,_updatedDate:`updatedDate`},Ye={id:`_id`,createdDate:`_createdDate`,updatedDate:`_updatedDate`};function Xe(e,t){return e?.split(`.`).map(e=>t?.[e]??e).join(`.`)}var Ze=`sort.fieldName`;function Qe(e,t,n){return(e===Ze||e.endsWith(`.${Ze}`))&&typeof t==`string`?Xe(t,n):t}function $e(e,t,n){let r=e=>n.includes(e),i=(e,n)=>{if(Array.isArray(e))e.forEach(e=>{i(e,n)});else if(typeof e==`object`&&e){let a=e;Object.keys(a).forEach(e=>{let o=n===``?e:`${n}.${e}`;if(r(o))return;let s=et(e,t);s!==e&&!(s in a)&&(a[s]=a[e],delete a[e]),a[s]=Qe(o,a[s],t),i(a[s],o)})}};return i(e,``),e}function et(e,t){let n;return n=e.includes(`.`)?e.split(`.`).map(e=>t[e]??e).join(`.`):t[e]??e,n}function tt(e,t=[]){return $e(e,Je,t)}function nt(e,t=[]){return $e(e,Ye,t)}function rt(e){return e?new Date(e):void 0}function it(e,{path:t,isRepeated:n,isMap:r},i){let a=t.split(`.`);if(a.length===1&&t in e)return e[t]=n?e[t].map(i):r?Object.fromEntries(Object.entries(e[t]).map(([e,t])=>[e,i(t)])):i(e[t]),e;let[o,...s]=a;if(o.endsWith(`{}`)){let t=o.slice(0,-2);e[t]=Object.fromEntries(Object.entries(e[t]).map(([e,t])=>[e,it(t,{path:s.join(`.`),isRepeated:n,isMap:r},i)]))}else Array.isArray(e[o])?e[o]=e[o].map(e=>it(e,{path:s.join(`.`),isRepeated:n,isMap:r},i)):o in e&&typeof e[o]==`object`&&e[o]!==null?e[o]=it(e[o],{path:s.join(`.`),isRepeated:n,isMap:r},i):o===`*`&&Object.keys(e).reduce((t,a)=>(t[a]=it(e[a],{path:s.join(`.`),isRepeated:n,isMap:r},i),t),e);return e}function at(e,t){return t.reduce((e,{paths:t,transformFn:n})=>t.reduce((e,t)=>it(e,t,n),e),e)}function ot(e){return dt(e).map(e=>e.toLocaleUpperCase()).join(`_`)}var st=/([\p{Ll}\d])(\p{Lu})/gu,ct=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,lt=`$1\0$2`,ut=/[^\p{L}\d]+/giu;function dt(e){let t=e.trim();t=t.replace(st,lt).replace(ct,lt),t=t.replace(ut,`\0`);let n=0,r=t.length;for(;t.charAt(n)===`\0`;)n++;if(n===r)return[];for(;t.charAt(r-1)===`\0`;)r--;return t.slice(n,r).split(/\0/g)}var ft=e=>`validationError`in(e.response?.data?.details??{}),j=e=>`applicationError`in(e.response?.data?.details??{}),M=e=>(e.response?.status??-1)>=400&&(e.response?.status??-1)<500;function pt(e,t={explicitPathsToArguments:{},spreadPathsToArguments:{},singleArgumentUnchanged:!1},n=[]){if(typeof e!=`object`||!e)throw e;if(ft(e))return mt(e,t,n);if(j(e))return N(e);if(M(e)){let t=e.response?.status,n=e.response?.statusText??`UNKNOWN`,r=e.response?.data?.message??n,i={applicationError:{description:n,code:ot(n),data:{}},requestId:e.requestId};return ht(e,{message:JSON.stringify({message:r,details:i},null,2),extraProperties:{details:i,status:t}})}return gt(e)}var mt=(e,t,n)=>{let r=e.response?.data,i=e.requestId,{fieldViolations:a}=r.details.validationError,o=_t(t,a,n)?.sort((e,t)=>e.field<t.field?-1:1),s=`INVALID_ARGUMENT: ${o?.map(({field:e,description:t})=>`"${e}" ${t}`)?.join(`, `)}`,c={validationError:{fieldViolations:o},requestId:i};return ht(e,{message:JSON.stringify({message:s,details:c},null,2),extraProperties:{details:c,status:e.response?.status,requestId:i}})},ht=(e,{message:t,extraProperties:n})=>Object.assign(e,{...n,message:t}),N=e=>{let t=e.response?.status,n=e.response?.statusText??`UNKNOWN`,r=e.response?.data?.message??n,i=e.response?.data?.details?.applicationError?.description??n,a=e.response?.data?.details?.applicationError?.code??ot(n),o=e.response?.data?.details?.applicationError?.data??{},s=r===i?r:`${r}: ${i}`,c={applicationError:{description:i,code:a,data:o},requestId:e.requestId};return ht(e,{message:JSON.stringify({message:s,details:c},null,2),extraProperties:{details:c,status:t,requestId:e.requestId}})},gt=e=>ht(e,{message:e.requestId?`System error occurred, request-id: ${e.requestId}`:`System error occurred: ${JSON.stringify(e)}`,extraProperties:{requestId:e.requestId,status:e.response?.status,code:ot(e.response?.statusText??`UNKNOWN`),...!e.response&&{runtimeError:e}}}),_t=({spreadPathsToArguments:e,explicitPathsToArguments:t,singleArgumentUnchanged:n},r,i)=>{let a={...e,...t},o=Object.keys(a);return r?.filter(e=>!r.some(t=>t.field.length>e.field.length&&t.field.startsWith(e.field)&&o.includes(t.field))).map(e=>{let r=t[e.field];if(r)return{...e,field:vt(r,i)};let s=o?.sort((e,t)=>t.length-e.length)?.find(t=>e.field.startsWith(t));if(s){let t=a[s];if(t)return{...e,field:e.field.replace(s,vt(t,i))}}return n?{...e,field:`${i[0]}.${e.field}`}:e})},vt=(e,t)=>{let n=yt(e);return n==null?e:e.replace(`$[${n}]`,t[n])},yt=e=>{let t=e.match(/\$\[(?<argIndex>\d+)\]/);return t&&t.groups&&Number(t.groups.argIndex)};function P(){let e=typeof $wixContext<`u`&&$wixContext.initWixModules?$wixContext.initWixModules:globalThis.__wix_context__!==void 0&&globalThis.__wix_context__.initWixModules?globalThis.__wix_context__.initWixModules:void 0;if(e)return{initWixModules(t,n){return bt(()=>e(t,n))},fetchWithAuth(){throw Error(`fetchWithAuth is not available in this context`)},graphql(){throw Error(`graphql is not available in this context`)}};let t=typeof $wixContext<`u`?$wixContext.client:x.client===void 0?globalThis.__wix_context__===void 0?void 0:globalThis.__wix_context__.client:x.client,n=typeof $wixContext<`u`?$wixContext.elevatedClient:x.elevatedClient===void 0?globalThis.__wix_context__===void 0?void 0:globalThis.__wix_context__.elevatedClient:x.elevatedClient;if(t||n)return{initWixModules(e,r){if(r){if(!n)throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);return bt(()=>n.use(e))}if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return bt(()=>t.use(e))},fetchWithAuth:(e,n)=>{if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return t.fetchWithAuth(e,n)},getAuth(){if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return t.auth},async graphql(e,n,r){if(!t)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return t.graphql(e,n,r)}}}function bt(e){let t=globalThis.__wix_context__,n={client:x.client,elevatedClient:x.elevatedClient},r;globalThis.__wix_context__=void 0,x.client=void 0,x.elevatedClient=void 0,typeof $wixContext<`u`&&(r={client:$wixContext?.client,elevatedClient:$wixContext?.elevatedClient},delete $wixContext.client,delete $wixContext.elevatedClient);try{return e()}finally{globalThis.__wix_context__=t,x.client=n.client,x.elevatedClient=n.elevatedClient,typeof $wixContext<`u`&&($wixContext.client=r.client,$wixContext.elevatedClient=r.elevatedClient)}}function xt(e,t){return{...e,...Object.fromEntries(t.map(t=>[t,(...n)=>{let r=P();if(!r)throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);return r.initWixModules(e)[t].apply(void 0,n)}]))}}function St(e,t){return((...n)=>{let r=P();return r?r.initWixModules(e,t).apply(void 0,n):e.apply(void 0,n)})}function F(e,t=!1){return St(e,t)}function Ct(e,t){let n=I(e),r=Object.entries(n).some(([e,t])=>e.includes(`.`)||Array.isArray(t)&&t.some(e=>typeof e==`object`));return t&&r?new URLSearchParams({".r":Et(JSON.stringify(e))}):Object.entries(n).reduce((e,[t,n])=>((Array.isArray(n)?n:[n]).forEach(r=>{r==null||Array.isArray(n)&&typeof r==`object`||e.append(t,r)}),e),new URLSearchParams)}function wt(e){let t=zt(Lt(e.host),e.domainToMappings);return Jt(Gt(e.protoPath,e.data||{}),t)}function I(e,t=``){let n={};return Object.entries(e).forEach(([e,r])=>{let i=typeof r==`object`&&!!r&&!Array.isArray(r),a=Tt(t,e);if(i){let e=I(r,a);Object.assign(n,e)}else n[a]=r}),n}function Tt(e,t){return`${e}${e?`.`:``}${t}`}var Et=e=>{let t=new TextEncoder().encode(e);return(typeof btoa<`u`?btoa(String.fromCodePoint(...t)):Buffer.from(e,`utf-8`).toString(`base64`)).replace(/=/g,``).replace(/\+/g,`-`).replace(/\//g,`_`)},Dt=[`wix.com`,`editorx.com`],Ot=`_`,kt=`*.`,At=RegExp(`\\.(${Dt.join(`|`)})$`),jt=[`42.wixprod.net`,`uw2-edt-1.wixprod.net`,`virginia-edt.wixprod.net`],Mt={"payments.base44.com":`manage.wix.com`,"create.editorx.com":`editor.editorx.com`},Nt=`dev.wix-code.com`,Pt=/{(.*)}/,Ft=RegExp(`\\.(${jt.join(`|`)})$`),It=RegExp(`.*\\.${Nt}$`);function Lt(e){return Rt(e).replace(At,`._base_domain_`).replace(Ft,`._api_base_domain_`).replace(It,`*.dev.wix-code.com`)}function Rt(e){return Mt[e]??e}function zt(e,t){let n=t[e];if(n)return n;let r=Bt(e,t)??Vt(e,t);if(!r){if(Ut(e)){let e=t[Wt];if(e)return e}let n=t[Ot];if(n)return n}return r??[]}function Bt(e,t){return Object.entries(t).find(([t])=>{let[,...n]=e.split(`.`);return n.join(`.`)===t})?.[1]}function Vt(e,t){let[n]=Object.entries(t).filter(([t])=>Ht(e,t)).sort(([e],[t])=>t.length-e.length);if(!n)return;let[,r]=n;return r}function Ht(e,t){if(!t.startsWith(kt))return!1;let n=t.slice(1);return e.length>n.length&&e.endsWith(n)}function Ut(e){return!!e.match(/\._base_domain_$/)}var Wt=`www._base_domain_`;function Gt(e,t){return e.split(`/`).map(e=>Kt(e,t)).join(`/`)}function Kt(e,t){let n=e.match(Pt)||[],r=n[1];return r?qt(t,r,e,e.replace(n[0],``)):e}function qt(e,t,n,r){let i=e;for(let e of t.split(`.`)){if(!i)return n;i=i[e]}return`${i}${r}`}function Jt(e,t){let n=t?.find(t=>e.startsWith(t.destPath));return n?n.srcPath+e.slice(n.destPath.length):e}var Yt=`modulepreload`,Xt=function(e,t){return new URL(e,t).href},Zt={},L=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Xt(t,n),t=s(t),t in Zt)return;Zt[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Yt,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},R=`x-wix-currency`,Qt=()=>{let e=on(`currency`);if(e)return{[R]:e}},$t=`x-wix-linguist`,en=`00000000-0000-0000-0000-000000000000`,tn=`false`,nn=()=>{let e=on(`language`),t=on(`locale`);if(e)return{[$t]:[e,t||e,tn,en].join(`|`)}};function rn(){let e=null,t=null;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var an=()=>(typeof window<`u`?window.commonConfig:void 0)??globalThis.commonConfig,on=e=>an()?.[e],sn=({createHost:e})=>({__type:`host`,create:e=>({}),host:t=>{let{applicationId:n,componentId:r}=t??{},i=typeof window<`u`?window.wixEmbedsAPI:void 0,a=e(t),o=ln();return{...a,apiBaseUrl:o,getMonitoringClient:i?.getMonitoringClientFunction?.(n,r),essentials:{language:on(`language`),locale:on(`locale`),get passThroughHeaders(){let e={...nn(),...Qt()};return Object.keys(e).length>0?e:void 0}}}},auth:e=>{let t=typeof window<`u`?window.wixEmbedsAPI:void 0;!e&&cn()&&(e=t?.getAccessTokenFunction?.());let n=!1,{resolve:r,promise:i}=rn();return{getAuthHeaders:async()=>{if(!e&&n&&(e=await i),!e)throw Error(`Failed to resolve auth token`);return{headers:{Authorization:await e()}}},getAccessTokenInjector:()=>(n=!0,e=>{r(e)})}}});function cn(){return typeof document<`u`&&document.currentScript?.tagName===`SCRIPT`}function ln(){let e=(typeof window<`u`?window.wixEmbedsAPI:void 0)?.getExternalBaseUrl?.();if(!e)return;let t=new URL(e);return t?.pathname&&t.pathname!==`/`?`${t.hostname}${t.pathname}`:t.hostname}var un=({clientSdk:e,applicationId:t})=>({invoke:async({namespace:n,method:r,args:i})=>{if(!e)throw Error(`Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction`);return e.invoke({namespace:n,method:r,args:i,applicationId:t,accessToken:`accessToken`})},getAccessToken:()=>{throw Error(`Not implemented`)},observeState:()=>({disconnect:()=>{}})}),dn=sn({createHost:function(e){let t=(typeof $wixContext<`u`?$wixContext.clientSdk:void 0)??e?.clientSdk??(typeof window<`u`?window?.clientSdk:void 0),{applicationId:n}=e||{};if(!n)throw Error(`"createHost" was called without a required field "applicationId"`);return{channel:un({clientSdk:t,applicationId:n}),close:()=>{}}}}),fn=(e,t)=>{let n=dn.host({applicationId:e,componentId:t}),r=dn.auth();return Ke({auth:r,host:n}).enableContext(`module`),r.getAccessTokenInjector()},pn=e=>fn(`4aebd0cb-fbdb-4da7-b5d1-d05660a30172`,e),mn=Symbol(`use-promise.status`),hn=Symbol(`use-promise.value`),gn=Symbol(`use-promise.reason`);function _n(e){if(e[mn]===`fulfilled`)return e[hn];throw e[mn]===`rejected`?e[gn]:e[mn]===`pending`?e:(e[mn]=`pending`,e.then(t=>{e[mn]=`fulfilled`,e[hn]=t},t=>{e[mn]=`rejected`,e[gn]=t}),e)}var z;(function(e){e[e.literal=0]=`literal`,e[e.argument=1]=`argument`,e[e.number=2]=`number`,e[e.date=3]=`date`,e[e.time=4]=`time`,e[e.select=5]=`select`,e[e.plural=6]=`plural`,e[e.pound=7]=`pound`})(z||={});function vn(e){return e.type===z.literal}function yn(e){return e.type===z.argument}function bn(e){return e.type===z.number}function xn(e){return e.type===z.date}function Sn(e){return e.type===z.time}function Cn(e){return e.type===z.select}function wn(e){return e.type===z.plural}function Tn(e){return e.type===z.pound}function En(e){return!!(e&&typeof e==`object`&&e.type===0)}function Dn(e){return!!(e&&typeof e==`object`&&e.type===1)}var On=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),B=function(){return B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},B.apply(this,arguments)},kn=function(e){On(t,e);function t(n,r,i,a){var o=e.call(this)||this;return o.message=n,o.expected=r,o.found=i,o.location=a,o.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(o,t),o}return t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+n(e)})}function i(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+n(e)})}function a(e){switch(e.type){case`literal`:return`"`+r(e.text)+`"`;case`class`:var t=e.parts.map(function(e){return Array.isArray(e)?i(e[0])+`-`+i(e[1]):i(e)});return`[`+(e.inverted?`^`:``)+t+`]`;case`any`:return`any character`;case`end`:return`end of input`;case`other`:return e.description}}function o(e){var t=e.map(a),n,r;if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function s(e){return e?`"`+r(e)+`"`:`end of input`}return`Expected `+o(e)+` but `+s(t)+` found.`},t}(Error);function An(e,t){t=t===void 0?{}:t;var n={},r={start:Dt},i=Dt,a=function(e){return e.join(``)},o=function(e){return B({type:z.literal,value:e},un())},s=`#`,c=P(`#`,!1),l=function(){return B({type:z.pound},un())},u=F(`argumentElement`),d=`{`,f=P(`{`,!1),p=`}`,m=P(`}`,!1),h=function(e){return B({type:z.argument,value:e},un())},g=F(`numberSkeletonId`),_=/^['\/{}]/,v=bt([`'`,`/`,`{`,`}`],!1,!1),y=xt(),b=F(`numberSkeletonTokenOption`),x=`/`,S=P(`/`,!1),C=function(e){return e},ee=F(`numberSkeletonToken`),w=function(e,t){return{stem:e,options:t}},T=function(e){return B({type:0,tokens:e},un())},E=`::`,D=P(`::`,!1),te=function(e){return e},ne=function(){return sn.push(`numberArgStyle`),!0},re=function(e){return sn.pop(),e.replace(/\s*$/,``)},O=`,`,k=P(`,`,!1),ie=`number`,ae=P(`number`,!1),oe=function(e,t,n){return B({type:t===`number`?z.number:t===`date`?z.date:z.time,style:n&&n[2],value:e},un())},se=`'`,ce=P(`'`,!1),A=/^[^']/,le=bt([`'`],!0,!1),ue=/^[^a-zA-Z'{}]/,de=bt([[`a`,`z`],[`A`,`Z`],`'`,`{`,`}`],!0,!1),fe=/^[a-zA-Z]/,pe=bt([[`a`,`z`],[`A`,`Z`]],!1,!1),me=function(e){return B({type:1,pattern:e},un())},he=function(){return sn.push(`dateOrTimeArgStyle`),!0},ge=`date`,_e=P(`date`,!1),ve=`time`,ye=P(`time`,!1),be=`plural`,xe=P(`plural`,!1),Se=`selectordinal`,Ce=P(`selectordinal`,!1),we=`offset:`,Te=P(`offset:`,!1),Ee=function(e,t,n,r){return B({type:z.plural,pluralType:t===`plural`?`cardinal`:`ordinal`,value:e,offset:n?n[2]:0,options:r.reduce(function(e,t){var n=t.id,r=t.value,i=t.location;return n in e&&yt(`Duplicate option "`+n+`" in plural element: "`+_t()+`"`,vt()),e[n]={value:r,location:i},e},{})},un())},De=`select`,Oe=P(`select`,!1),ke=function(e,t){return B({type:z.select,value:e,options:t.reduce(function(e,t){var n=t.id,r=t.value,i=t.location;return n in e&&yt(`Duplicate option "`+n+`" in select element: "`+_t()+`"`,vt()),e[n]={value:r,location:i},e},{})},un())},Ae=`=`,je=P(`=`,!1),Me=function(e){return sn.push(`select`),!0},Ne=function(e,t){return sn.pop(),B({id:e,value:t},un())},Pe=function(e){return sn.push(`plural`),!0},Fe=function(e,t){return sn.pop(),B({id:e,value:t},un())},Ie=F(`whitespace`),Le=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Re=bt([[` `,`\r`],` `,`…`,`\xA0`,` `,[` `,` `],`\u2028`,`\u2029`,` `,` `,` `],!1,!1),ze=F(`syntax pattern`),Be=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,Ve=bt([[`!`,`/`],[`:`,`@`],[`[`,`^`],"`",[`{`,`~`],[`¡`,`§`],`©`,`«`,`¬`,`®`,`°`,`±`,`¶`,`»`,`¿`,`×`,`÷`,[`‐`,`‧`],[`‰`,`‾`],[`⁁`,`⁓`],[`⁕`,`⁞`],[`←`,`⑟`],[`─`,`❵`],[`➔`,`⯿`],[`⸀`,`⹿`],[`、`,`〃`],[`〈`,`〠`],`〰`,`﴾`,`﴿`,`﹅`,`﹆`],!1,!1),He=F(`optional whitespace`),Ue=F(`number`),We=`-`,Ge=P(`-`,!1),Ke=function(e,t){return t?e?-t:t:0},qe=F(`double apostrophes`),Je=`''`,Ye=P(`''`,!1),Xe=function(){return`'`},Ze=function(e,t){return e+t.replace(`''`,`'`)},Qe=function(e){return e!==`{`&&!(ln()&&e===`#`)&&!(cn()&&e===`}`)},$e=`
2
+ `,et=P(`
3
+ `,!1),tt=function(e){return e===`{`||e===`}`||ln()&&e===`#`},nt=F(`argNameOrNumber`),rt=F(`argNumber`),it=`0`,at=P(`0`,!1),ot=function(){return 0},st=/^[1-9]/,ct=bt([[`1`,`9`]],!1,!1),lt=/^[0-9]/,ut=bt([[`0`,`9`]],!1,!1),dt=function(e){return parseInt(e.join(``),10)},ft=F(`argName`),j=0,M=0,pt=[{line:1,column:1}],mt=0,ht=[],N=0,gt;if(t.startRule!==void 0){if(!(t.startRule in r))throw Error(`Can't start parsing from rule "`+t.startRule+`".`);i=r[t.startRule]}function _t(){return e.substring(M,j)}function vt(){return wt(M,j)}function yt(e,t){throw t=t===void 0?wt(M,j):t,Tt(e,t)}function P(e,t){return{type:`literal`,text:e,ignoreCase:t}}function bt(e,t,n){return{type:`class`,parts:e,inverted:t,ignoreCase:n}}function xt(){return{type:`any`}}function St(){return{type:`end`}}function F(e){return{type:`other`,description:e}}function Ct(t){var n=pt[t],r;if(n)return n;for(r=t-1;!pt[r];)r--;for(n=pt[r],n={line:n.line,column:n.column};r<t;)e.charCodeAt(r)===10?(n.line++,n.column=1):n.column++,r++;return pt[t]=n,n}function wt(e,t){var n=Ct(e),r=Ct(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function I(e){j<mt||(j>mt&&(mt=j,ht=[]),ht.push(e))}function Tt(e,t){return new kn(e,[],``,t)}function Et(e,t,n){return new kn(kn.buildMessage(e,t),e,t,n)}function Dt(){return Ot()}function Ot(){for(var e=[],t=kt();t!==n;)e.push(t),t=kt();return e}function kt(){var e=jt();return e===n&&(e=Nt(),e===n&&(e=Gt(),e===n&&(e=Kt(),e===n&&(e=qt(),e===n&&(e=Mt()))))),e}function At(){var e=j,t=[],r=$t();if(r===n&&(r=en(),r===n&&(r=tn())),r!==n)for(;r!==n;)t.push(r),r=$t(),r===n&&(r=en(),r===n&&(r=tn()));else t=n;return t!==n&&(M=e,t=a(t)),e=t,e}function jt(){var e=j,t=At();return t!==n&&(M=e,t=o(t)),e=t,e}function Mt(){var t=j,r;return e.charCodeAt(j)===35?(r=s,j++):(r=n,N===0&&I(c)),r!==n&&(M=t,r=l()),t=r,t}function Nt(){var t,r,i,a,o,s;return N++,t=j,e.charCodeAt(j)===123?(r=d,j++):(r=n,N===0&&I(f)),r===n?(j=t,t=n):(i=R(),i===n?(j=t,t=n):(a=rn(),a===n?(j=t,t=n):(o=R(),o===n?(j=t,t=n):(e.charCodeAt(j)===125?(s=p,j++):(s=n,N===0&&I(m)),s===n?(j=t,t=n):(M=t,r=h(a),t=r))))),N--,t===n&&(r=n,N===0&&I(u)),t}function Pt(){var t,r,i,a,o;if(N++,t=j,r=[],i=j,a=j,N++,o=Zt(),o===n&&(_.test(e.charAt(j))?(o=e.charAt(j),j++):(o=n,N===0&&I(v))),N--,o===n?a=void 0:(j=a,a=n),a===n?(j=i,i=n):(e.length>j?(o=e.charAt(j),j++):(o=n,N===0&&I(y)),o===n?(j=i,i=n):(a=[a,o],i=a)),i!==n)for(;i!==n;)r.push(i),i=j,a=j,N++,o=Zt(),o===n&&(_.test(e.charAt(j))?(o=e.charAt(j),j++):(o=n,N===0&&I(v))),N--,o===n?a=void 0:(j=a,a=n),a===n?(j=i,i=n):(e.length>j?(o=e.charAt(j),j++):(o=n,N===0&&I(y)),o===n?(j=i,i=n):(a=[a,o],i=a));else r=n;return t=r===n?r:e.substring(t,j),N--,t===n&&(r=n,N===0&&I(g)),t}function Ft(){var t,r,i;return N++,t=j,e.charCodeAt(j)===47?(r=x,j++):(r=n,N===0&&I(S)),r===n?(j=t,t=n):(i=Pt(),i===n?(j=t,t=n):(M=t,r=C(i),t=r)),N--,t===n&&(r=n,N===0&&I(b)),t}function It(){var e,t,r,i,a;if(N++,e=j,t=R(),t!==n){if(r=Pt(),r!==n){for(i=[],a=Ft();a!==n;)i.push(a),a=Ft();i===n?(j=e,e=n):(M=e,t=w(r,i),e=t)}else j=e,e=n}else j=e,e=n;return N--,e===n&&(t=n,N===0&&I(ee)),e}function Lt(){var e=j,t=[],r=It();if(r!==n)for(;r!==n;)t.push(r),r=It();else t=n;return t!==n&&(M=e,t=T(t)),e=t,e}function Rt(){var t=j,r,i;return e.substr(j,2)===E?(r=E,j+=2):(r=n,N===0&&I(D)),r===n?(j=t,t=n):(i=Lt(),i===n?(j=t,t=n):(M=t,r=te(i),t=r)),t===n&&(t=j,M=j,r=ne(),r=r?void 0:n,r===n?(j=t,t=n):(i=At(),i===n?(j=t,t=n):(M=t,r=re(i),t=r))),t}function zt(){var t=j,r,i,a,o,s,c,l,u,h,g,_,v;return e.charCodeAt(j)===123?(r=d,j++):(r=n,N===0&&I(f)),r===n?(j=t,t=n):(i=R(),i===n?(j=t,t=n):(a=rn(),a===n?(j=t,t=n):(o=R(),o===n?(j=t,t=n):(e.charCodeAt(j)===44?(s=O,j++):(s=n,N===0&&I(k)),s===n?(j=t,t=n):(c=R(),c===n?(j=t,t=n):(e.substr(j,6)===ie?(l=ie,j+=6):(l=n,N===0&&I(ae)),l===n?(j=t,t=n):(u=R(),u===n?(j=t,t=n):(h=j,e.charCodeAt(j)===44?(g=O,j++):(g=n,N===0&&I(k)),g===n?(j=h,h=n):(_=R(),_===n?(j=h,h=n):(v=Rt(),v===n?(j=h,h=n):(g=[g,_,v],h=g))),h===n&&(h=null),h===n?(j=t,t=n):(g=R(),g===n?(j=t,t=n):(e.charCodeAt(j)===125?(_=p,j++):(_=n,N===0&&I(m)),_===n?(j=t,t=n):(M=t,r=oe(a,l,h),t=r))))))))))),t}function Bt(){var t=j,r,i,a;if(e.charCodeAt(j)===39?(r=se,j++):(r=n,N===0&&I(ce)),r!==n){if(i=[],a=$t(),a===n&&(A.test(e.charAt(j))?(a=e.charAt(j),j++):(a=n,N===0&&I(le))),a!==n)for(;a!==n;)i.push(a),a=$t(),a===n&&(A.test(e.charAt(j))?(a=e.charAt(j),j++):(a=n,N===0&&I(le)));else i=n;i===n?(j=t,t=n):(e.charCodeAt(j)===39?(a=se,j++):(a=n,N===0&&I(ce)),a===n?(j=t,t=n):(r=[r,i,a],t=r))}else j=t,t=n;if(t===n){if(t=[],r=$t(),r===n&&(ue.test(e.charAt(j))?(r=e.charAt(j),j++):(r=n,N===0&&I(de))),r!==n)for(;r!==n;)t.push(r),r=$t(),r===n&&(ue.test(e.charAt(j))?(r=e.charAt(j),j++):(r=n,N===0&&I(de)));else t=n}return t}function Vt(){var t=[],r;if(fe.test(e.charAt(j))?(r=e.charAt(j),j++):(r=n,N===0&&I(pe)),r!==n)for(;r!==n;)t.push(r),fe.test(e.charAt(j))?(r=e.charAt(j),j++):(r=n,N===0&&I(pe));else t=n;return t}function Ht(){var t=j,r=j,i=[],a=Bt();if(a===n&&(a=Vt()),a!==n)for(;a!==n;)i.push(a),a=Bt(),a===n&&(a=Vt());else i=n;return r=i===n?i:e.substring(r,j),r!==n&&(M=t,r=me(r)),t=r,t}function Ut(){var t=j,r,i;return e.substr(j,2)===E?(r=E,j+=2):(r=n,N===0&&I(D)),r===n?(j=t,t=n):(i=Ht(),i===n?(j=t,t=n):(M=t,r=te(i),t=r)),t===n&&(t=j,M=j,r=he(),r=r?void 0:n,r===n?(j=t,t=n):(i=At(),i===n?(j=t,t=n):(M=t,r=re(i),t=r))),t}function Wt(){var t=j,r,i,a,o,s,c,l,u,h,g,_,v;return e.charCodeAt(j)===123?(r=d,j++):(r=n,N===0&&I(f)),r===n?(j=t,t=n):(i=R(),i===n?(j=t,t=n):(a=rn(),a===n?(j=t,t=n):(o=R(),o===n?(j=t,t=n):(e.charCodeAt(j)===44?(s=O,j++):(s=n,N===0&&I(k)),s===n?(j=t,t=n):(c=R(),c===n?(j=t,t=n):(e.substr(j,4)===ge?(l=ge,j+=4):(l=n,N===0&&I(_e)),l===n&&(e.substr(j,4)===ve?(l=ve,j+=4):(l=n,N===0&&I(ye))),l===n?(j=t,t=n):(u=R(),u===n?(j=t,t=n):(h=j,e.charCodeAt(j)===44?(g=O,j++):(g=n,N===0&&I(k)),g===n?(j=h,h=n):(_=R(),_===n?(j=h,h=n):(v=Ut(),v===n?(j=h,h=n):(g=[g,_,v],h=g))),h===n&&(h=null),h===n?(j=t,t=n):(g=R(),g===n?(j=t,t=n):(e.charCodeAt(j)===125?(_=p,j++):(_=n,N===0&&I(m)),_===n?(j=t,t=n):(M=t,r=oe(a,l,h),t=r))))))))))),t}function Gt(){var e=zt();return e===n&&(e=Wt()),e}function Kt(){var t=j,r,i,a,o,s,c,l,u,h,g,_,v,y,b,x;if(e.charCodeAt(j)===123?(r=d,j++):(r=n,N===0&&I(f)),r!==n){if(i=R(),i!==n){if(a=rn(),a!==n){if(o=R(),o!==n){if(e.charCodeAt(j)===44?(s=O,j++):(s=n,N===0&&I(k)),s!==n){if(c=R(),c!==n){if(e.substr(j,6)===be?(l=be,j+=6):(l=n,N===0&&I(xe)),l===n&&(e.substr(j,13)===Se?(l=Se,j+=13):(l=n,N===0&&I(Ce))),l!==n){if(u=R(),u!==n){if(e.charCodeAt(j)===44?(h=O,j++):(h=n,N===0&&I(k)),h!==n){if(g=R(),g!==n){if(_=j,e.substr(j,7)===we?(v=we,j+=7):(v=n,N===0&&I(Te)),v===n?(j=_,_=n):(y=R(),y===n?(j=_,_=n):(b=Qt(),b===n?(j=_,_=n):(v=[v,y,b],_=v))),_===n&&(_=null),_!==n){if(v=R(),v!==n){if(y=[],b=Xt(),b!==n)for(;b!==n;)y.push(b),b=Xt();else y=n;y===n?(j=t,t=n):(b=R(),b===n?(j=t,t=n):(e.charCodeAt(j)===125?(x=p,j++):(x=n,N===0&&I(m)),x===n?(j=t,t=n):(M=t,r=Ee(a,l,_,y),t=r)))}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n;return t}function qt(){var t=j,r,i,a,o,s,c,l,u,h,g,_,v,y;if(e.charCodeAt(j)===123?(r=d,j++):(r=n,N===0&&I(f)),r!==n){if(i=R(),i!==n){if(a=rn(),a!==n){if(o=R(),o!==n){if(e.charCodeAt(j)===44?(s=O,j++):(s=n,N===0&&I(k)),s!==n){if(c=R(),c!==n){if(e.substr(j,6)===De?(l=De,j+=6):(l=n,N===0&&I(Oe)),l!==n){if(u=R(),u!==n){if(e.charCodeAt(j)===44?(h=O,j++):(h=n,N===0&&I(k)),h!==n){if(g=R(),g!==n){if(_=[],v=Yt(),v!==n)for(;v!==n;)_.push(v),v=Yt();else _=n;_===n?(j=t,t=n):(v=R(),v===n?(j=t,t=n):(e.charCodeAt(j)===125?(y=p,j++):(y=n,N===0&&I(m)),y===n?(j=t,t=n):(M=t,r=ke(a,_),t=r)))}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n}else j=t,t=n;return t}function Jt(){var t=j,r=j,i,a;return e.charCodeAt(j)===61?(i=Ae,j++):(i=n,N===0&&I(je)),i===n?(j=r,r=n):(a=Qt(),a===n?(j=r,r=n):(i=[i,a],r=i)),t=r===n?r:e.substring(t,j),t===n&&(t=on()),t}function Yt(){var t=j,r=R(),i,a,o,s,c,l;return r===n?(j=t,t=n):(i=on(),i===n?(j=t,t=n):(a=R(),a===n?(j=t,t=n):(e.charCodeAt(j)===123?(o=d,j++):(o=n,N===0&&I(f)),o===n?(j=t,t=n):(M=j,s=Me(i),s=s?void 0:n,s===n?(j=t,t=n):(c=Ot(),c===n?(j=t,t=n):(e.charCodeAt(j)===125?(l=p,j++):(l=n,N===0&&I(m)),l===n?(j=t,t=n):(M=t,r=Ne(i,c),t=r))))))),t}function Xt(){var t=j,r=R(),i,a,o,s,c,l;return r===n?(j=t,t=n):(i=Jt(),i===n?(j=t,t=n):(a=R(),a===n?(j=t,t=n):(e.charCodeAt(j)===123?(o=d,j++):(o=n,N===0&&I(f)),o===n?(j=t,t=n):(M=j,s=Pe(i),s=s?void 0:n,s===n?(j=t,t=n):(c=Ot(),c===n?(j=t,t=n):(e.charCodeAt(j)===125?(l=p,j++):(l=n,N===0&&I(m)),l===n?(j=t,t=n):(M=t,r=Fe(i,c),t=r))))))),t}function Zt(){var t;return N++,Le.test(e.charAt(j))?(t=e.charAt(j),j++):(t=n,N===0&&I(Re)),N--,t===n&&N===0&&I(Ie),t}function L(){var t;return N++,Be.test(e.charAt(j))?(t=e.charAt(j),j++):(t=n,N===0&&I(Ve)),N--,t===n&&N===0&&I(ze),t}function R(){var t,r,i;for(N++,t=j,r=[],i=Zt();i!==n;)r.push(i),i=Zt();return t=r===n?r:e.substring(t,j),N--,t===n&&(r=n,N===0&&I(He)),t}function Qt(){var t,r,i;return N++,t=j,e.charCodeAt(j)===45?(r=We,j++):(r=n,N===0&&I(Ge)),r===n&&(r=null),r===n?(j=t,t=n):(i=an(),i===n?(j=t,t=n):(M=t,r=Ke(r,i),t=r)),N--,t===n&&(r=n,N===0&&I(Ue)),t}function $t(){var t,r;return N++,t=j,e.substr(j,2)===Je?(r=Je,j+=2):(r=n,N===0&&I(Ye)),r!==n&&(M=t,r=Xe()),t=r,N--,t===n&&(r=n,N===0&&I(qe)),t}function en(){var t=j,r,i,a,o,s;if(e.charCodeAt(j)===39?(r=se,j++):(r=n,N===0&&I(ce)),r!==n){if(i=nn(),i!==n){for(a=j,o=[],e.substr(j,2)===Je?(s=Je,j+=2):(s=n,N===0&&I(Ye)),s===n&&(A.test(e.charAt(j))?(s=e.charAt(j),j++):(s=n,N===0&&I(le)));s!==n;)o.push(s),e.substr(j,2)===Je?(s=Je,j+=2):(s=n,N===0&&I(Ye)),s===n&&(A.test(e.charAt(j))?(s=e.charAt(j),j++):(s=n,N===0&&I(le)));a=o===n?o:e.substring(a,j),a===n?(j=t,t=n):(e.charCodeAt(j)===39?(o=se,j++):(o=n,N===0&&I(ce)),o===n&&(o=null),o===n?(j=t,t=n):(M=t,r=Ze(i,a),t=r))}else j=t,t=n}else j=t,t=n;return t}function tn(){var t=j,r=j,i,a;return e.length>j?(i=e.charAt(j),j++):(i=n,N===0&&I(y)),i===n?(j=r,r=n):(M=j,a=Qe(i),a=a?void 0:n,a===n?(j=r,r=n):(i=[i,a],r=i)),r===n&&(e.charCodeAt(j)===10?(r=$e,j++):(r=n,N===0&&I(et))),t=r===n?r:e.substring(t,j),t}function nn(){var t=j,r=j,i,a;return e.length>j?(i=e.charAt(j),j++):(i=n,N===0&&I(y)),i===n?(j=r,r=n):(M=j,a=tt(i),a=a?void 0:n,a===n?(j=r,r=n):(i=[i,a],r=i)),t=r===n?r:e.substring(t,j),t}function rn(){var t,r;return N++,t=j,r=an(),r===n&&(r=on()),t=r===n?r:e.substring(t,j),N--,t===n&&(r=n,N===0&&I(nt)),t}function an(){var t,r,i,a,o;if(N++,t=j,e.charCodeAt(j)===48?(r=it,j++):(r=n,N===0&&I(at)),r!==n&&(M=t,r=ot()),t=r,t===n){if(t=j,r=j,st.test(e.charAt(j))?(i=e.charAt(j),j++):(i=n,N===0&&I(ct)),i!==n){for(a=[],lt.test(e.charAt(j))?(o=e.charAt(j),j++):(o=n,N===0&&I(ut));o!==n;)a.push(o),lt.test(e.charAt(j))?(o=e.charAt(j),j++):(o=n,N===0&&I(ut));a===n?(j=r,r=n):(i=[i,a],r=i)}else j=r,r=n;r!==n&&(M=t,r=dt(r)),t=r}return N--,t===n&&(r=n,N===0&&I(rt)),t}function on(){var t,r,i,a,o;if(N++,t=j,r=[],i=j,a=j,N++,o=Zt(),o===n&&(o=L()),N--,o===n?a=void 0:(j=a,a=n),a===n?(j=i,i=n):(e.length>j?(o=e.charAt(j),j++):(o=n,N===0&&I(y)),o===n?(j=i,i=n):(a=[a,o],i=a)),i!==n)for(;i!==n;)r.push(i),i=j,a=j,N++,o=Zt(),o===n&&(o=L()),N--,o===n?a=void 0:(j=a,a=n),a===n?(j=i,i=n):(e.length>j?(o=e.charAt(j),j++):(o=n,N===0&&I(y)),o===n?(j=i,i=n):(a=[a,o],i=a));else r=n;return t=r===n?r:e.substring(t,j),N--,t===n&&(r=n,N===0&&I(ft)),t}var sn=[`root`];function cn(){return sn.length>1}function ln(){return sn[sn.length-1]===`plural`}function un(){return t&&t.captureLocation?{location:vt()}:{}}if(gt=i(),gt!==n&&j===e.length)return gt;throw gt!==n&&j<e.length&&I(St()),Et(ht,mt<e.length?e.charAt(mt):null,mt<e.length?wt(mt,mt+1):wt(mt,mt))}var jn=An,Mn=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},Nn=/(^|[^\\])#/g;function Pn(e){e.forEach(function(e){(wn(e)||Cn(e))&&Object.keys(e.options).forEach(function(t){for(var n,r=e.options[t],i=-1,a=void 0,o=0;o<r.value.length;o++){var s=r.value[o];if(vn(s)&&Nn.test(s.value)){i=o,a=s;break}}if(a){var c=jn(a.value.replace(Nn,`$1{`+e.value+`, number}`));(n=r.value).splice.apply(n,Mn([i,1],c))}Pn(r.value)})})}var V=function(){return V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},V.apply(this,arguments)},Fn=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function In(e){var t={};return e.replace(Fn,function(e){var n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`short`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return``}),t}function Ln(e){return e.replace(/^(.*?)-/,``)}var Rn=/^\.(?:(0+)(\+|#+)?)?$/g,zn=/^(@+)?(\+|#+)?$/g;function Bn(e){var t={};return e.replace(zn,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function Vn(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:return{currencySign:`accounting`};case`sign-always`:return{signDisplay:`always`};case`sign-accounting-always`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:return{signDisplay:`never`}}}function Hn(e){return Vn(e)||{}}function Un(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case`percent`:t.style=`percent`;continue;case`currency`:t.style=`currency`,t.currency=i.options[0];continue;case`group-off`:t.useGrouping=!1;continue;case`precision-integer`:t.maximumFractionDigits=0;continue;case`measure-unit`:t.style=`unit`,t.unit=Ln(i.options[0]);continue;case`compact-short`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t=V(V(V({},t),{notation:`scientific`}),i.options.reduce(function(e,t){return V(V({},e),Hn(t))},{}));continue;case`engineering`:t=V(V(V({},t),{notation:`engineering`}),i.options.reduce(function(e,t){return V(V({},e),Hn(t))},{}));continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue}if(Rn.test(i.stem)){if(i.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);i.stem.replace(Rn,function(e,n,r){return e===`.`?t.maximumFractionDigits=0:r===`+`?t.minimumFractionDigits=r.length:n[0]===`#`?t.maximumFractionDigits=n.length:(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+(typeof r==`string`?r.length:0)),``}),i.options.length&&(t=V(V({},t),Bn(i.options[0])));continue}if(zn.test(i.stem)){t=V(V({},t),Bn(i.stem));continue}var a=Vn(i.stem);a&&(t=V(V({},t),a))}return t}function Wn(e,t){var n=jn(e,t);return(!t||t.normalizeHashtagInPlural!==!1)&&Pn(n),n}var Gn=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};function Kn(e){return JSON.stringify(e.map(function(e){return e&&typeof e==`object`?qn(e):e}))}function qn(e){return Object.keys(e).sort().map(function(t){var n={};return n[t]=e[t],n})}var Jn=function(e,t){return t===void 0&&(t={}),function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=Kn(r),o=a&&t[a];return o||(o=new((n=e).bind.apply(n,Gn([void 0],r))),a&&(t[a]=o)),o}},Yn=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),Xn=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},Zn=function(e){Yn(t,e);function t(t,n){var r=e.call(this,t)||this;return r.variableId=n,r}return t}(Error);function Qn(e){return e.length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return!n||n.type!==0||t.type!==0?e.push(t):n.value+=t.value,e},[])}function $n(e,t,n,r,i,a,o){if(e.length===1&&vn(e[0]))return[{type:0,value:e[0].value}];for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c];if(vn(u)){s.push({type:0,value:u.value});continue}if(Tn(u)){typeof a==`number`&&s.push({type:0,value:n.getNumberFormat(t).format(a)});continue}var d=u.value;if(!(i&&d in i))throw new Zn(`The intl string context variable "`+d+`" was not provided to the string "`+o+`"`);var f=i[d];if(yn(u)){(!f||typeof f==`string`||typeof f==`number`)&&(f=typeof f==`string`||typeof f==`number`?String(f):``),s.push({type:1,value:f});continue}if(xn(u)){var p=typeof u.style==`string`?r.date[u.style]:void 0;s.push({type:0,value:n.getDateTimeFormat(t,p).format(f)});continue}if(Sn(u)){var p=typeof u.style==`string`?r.time[u.style]:Dn(u.style)?In(u.style.pattern):void 0;s.push({type:0,value:n.getDateTimeFormat(t,p).format(f)});continue}if(bn(u)){var p=typeof u.style==`string`?r.number[u.style]:En(u.style)?Un(u.style.tokens):void 0;s.push({type:0,value:n.getNumberFormat(t,p).format(f)});continue}if(Cn(u)){var m=u.options[f]||u.options.other;if(!m)throw RangeError(`Invalid values for "`+u.value+`": "`+f+`". Options are "`+Object.keys(u.options).join(`", "`)+`"`);s.push.apply(s,$n(m.value,t,n,r,i));continue}if(wn(u)){var m=u.options[`=`+f];if(!m){if(!Intl.PluralRules)throw new Zn(`Intl.PluralRules is not available in this environment.
4
4
  Try polyfilling it using "@formatjs/intl-pluralrules"
5
- `);var h=n.getPluralRules(t,{type:u.pluralType}).select(f-(u.offset||0));m=u.options[h]||u.options.other}if(!m)throw RangeError(`Invalid values for "`+u.value+`": "`+f+`". Options are "`+Object.keys(u.options).join(`", "`)+`"`);s.push.apply(s,ir(m.value,t,n,r,i,f-(u.offset||0)));continue}}return rr(s)}function ar(e,t,n,r,i,a){var o=ir(e,t,n,r,i,void 0,a);return o.length===1?o[0].value:o.reduce(function(e,t){return e+=t.value},``)}var or,sr=`@@`,cr=/@@(\d+_\d+)@@/g,lr=0;function ur(){return Date.now()+`_`+ ++lr}function dr(e,t){return e.split(cr).filter(Boolean).map(function(e){return t[e]==null?e:t[e]}).reduce(function(e,t){return e.length&&typeof t==`string`&&typeof e[e.length-1]==`string`?e[e.length-1]+=t:e.push(t),e},[])}var fr=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,pr=Date.now()+`@@`,mr=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`];function hr(e,t,n){var r=e.tagName,i=e.outerHTML,a=e.textContent,o=e.childNodes;if(!r)return dr(a||``,t);r=r.toLowerCase();var s=~mr.indexOf(r),c=n[r];if(c&&s)throw new nr(r+` is a self-closing tag and can not be used, please use another tag name.`);if(!o.length)return[i];var l=Array.prototype.slice.call(o).reduce(function(e,r){return e.concat(hr(r,t,n))},[]);return c?typeof c==`function`?[c.apply(void 0,l)]:[c]:tr([`<`+r+`>`],l,[`</`+r+`>`])}function gr(e,t,n,r,i,a){var o=ir(e,t,n,r,i,void 0,a),s={},c=o.reduce(function(e,t){if(t.type===0)return e+=t.value;var n=ur();return s[n]=t.value,e+=``+sr+n+sr},``);if(!fr.test(c))return dr(c,s);if(!i)throw new nr(`Message has placeholders but no values was given`);if(typeof DOMParser>`u`)throw new nr(`Cannot format XML message without DOMParser`);or||=new DOMParser;var l=or.parseFromString(`<formatted-message id="`+pr+`">`+c+`</formatted-message>`,`text/html`).getElementById(pr);if(!l)throw new nr(`Malformed HTML message `+c);var u=Object.keys(i).filter(function(e){return!!l.getElementsByTagName(e).length});if(!u.length)return dr(c,s);var d=u.filter(function(e){return e!==e.toLowerCase()});if(d.length)throw new nr(`HTML tag must be lowercased but the following tags are not: `+d.join(`, `));return Array.prototype.slice.call(l.childNodes).reduce(function(e,t){return e.concat(hr(t,s,i))},[])}var _r=function(){return _r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_r.apply(this,arguments)};function vr(e,t){return t?_r(_r(_r({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=_r(_r({},e[r]),t[r]||{}),n},{})):e}function yr(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=vr(e[r],t[r]),n},_r({},e)):e}function br(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:$n(Intl.NumberFormat,e.number),getDateTimeFormat:$n(Intl.DateTimeFormat,e.dateTime),getPluralRules:$n(Intl.PluralRules,e.pluralRules)}}var xr=function(){function e(t,n,r,i){var a=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){return ar(a.ast,a.locales,a.formatters,a.formats,e,a.message)},this.formatToParts=function(e){return ir(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.formatHTMLMessage=function(e){return gr(a.ast,a.locales,a.formatters,a.formats,e,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=yr(e.formats,r),this.locales=n,this.formatters=i&&i.formatters||br(this.formatterCache)}return e.defaultLocale=new Intl.NumberFormat().resolvedOptions().locale,e.__parse=Yn,e.formats={number:{currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}},e}();function Sr(){return{memoize:!0,memoizeFallback:!1,bindI18n:``,bindI18nStore:void 0,parseErrorHandler:(e,t,n)=>n}}var Cr=class{options;formats;type;mem;constructor(e){this.type=`i18nFormat`,this.mem={},this.init(null,e)}init(e,t){let n=e&&e.options&&e.options.i18nFormat||{};if(this.options=Ar(n,t,this.options||{},Sr()),this.formats=this.options?.formats,e){let{bindI18n:t,bindI18nStore:n,memoize:r}=this.options;e.IntlMessageFormat=xr,e.ICU=this,r&&(t&&e.on(t,()=>this.clearCache()),n&&e.store.on(n,()=>this.clearCache()))}this.options?.localeData&&(Object.prototype.toString.apply(this.options.localeData)===`[object Array]`?this.options.localeData.forEach(e=>this.addLocaleData(e)):this.addLocaleData(this.options.localeData))}addLocaleData(e){(Array.isArray(e)?e:[e]).forEach(e=>{e&&e.locale&&xr.__addLocaleData(e)})}addUserDefinedFormats(e){this.formats=this.formats?{...this.formats,...e}:e}parse(e,t,n,r,i,a){let o=a&&a.resolved&&a.resolved.res,s=this.options?.memoize&&`${n}.${r}.${i.replace(/\./g,`###`)}`,c;this.options?.memoize&&(c=Er(this.mem,s));try{return c||(c=new xr(e,n,this.formats),this.options?.memoize&&(this.options.memoizeFallback||!a||o)&&Tr(this.mem,s,c)),c.format(t)}catch(n){return this.options?.parseErrorHandler?.(n,i,e,t)}}addLookupKeys(e){return e}clearCache(){this.mem={}}};Cr.type=`i18nFormat`;function wr(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}function i(){return!e||typeof e==`string`}let a=typeof t==`string`?t.split(`.`):[].concat(t);for(;a.length>1;){if(i())return{};let t=r(a.shift());!e[t]&&n&&(e[t]=new n),e=e[t]}return i()?{}:{obj:e,k:r(a.shift())}}function Tr(e,t,n){let{obj:r,k:i}=wr(e,t,Object);r[i]=n}function Er(e,t){let{obj:n,k:r}=wr(e,t);if(n)return n[r]}var Dr=[],Or=Dr.forEach,kr=Dr.slice;function Ar(e){return Or.call(kr.call(arguments,1),function(t){if(t)for(let n in t)e[n]===void 0&&(e[n]=t[n])}),e}var H=e=>typeof e==`string`,jr=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Mr=e=>e==null?``:String(e),Nr=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Pr=/###/g,Fr=e=>e&&e.includes(`###`)?e.replace(Pr,`.`):e,Ir=e=>!e||H(e),Lr=(e,t,n)=>{let r=H(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Ir(e))return{};let t=Fr(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Ir(e)?{}:{obj:e,k:Fr(r[i])}},Rr=(e,t,n)=>{let{obj:r,k:i}=Lr(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Lr(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Lr(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},zr=(e,t,n,r)=>{let{obj:i,k:a}=Lr(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Br=(e,t)=>{let{obj:n,k:r}=Lr(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Vr=(e,t,n)=>{let r=Br(e,n);return r===void 0?Br(t,n):r},Hr=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(Object.prototype.hasOwnProperty.call(e,r)?H(e[r])||e[r]instanceof String||H(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Hr(e[r],t[r],n):e[r]=t[r]);return e},Ur=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Wr={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},Gr=e=>H(e)?e.replace(/[&<>"'\/]/g,e=>Wr[e]):e,Kr=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},qr=[` `,`,`,`?`,`!`,`;`],Jr=new Kr(20),Yr=(e,t,n)=>{t||=``,n||=``;let r=qr.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=Jr.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},Xr=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},Zr=e=>e?.replace(/_/g,`-`),Qr={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)}},$r=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||Qr,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,n,r){return r&&!this.debug?null:(e=e.map(e=>H(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),H(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},ei=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},ti=class extends ei{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(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,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):H(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Br(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!H(n)?s:Xr(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Rr(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(H(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Br(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Hr(s,n,i):s={...s,...n},Rr(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=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}},ni={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},ri=Symbol(`i18next/PATH_KEY`);function ii(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===ri?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function ai(e,t){let{[ri]:n}=e(ii()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var oi=e=>!H(e)&&typeof e!=`boolean`&&typeof e!=`number`,si=class e extends ei{constructor(e,t={}){super(),Nr([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=$r.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=oi(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Yr(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:H(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:H(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=ai(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?ai(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!H(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,ee=b&&!i.ordinal&&i.count===0,w=ee&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,T=m;y&&!m&&x&&(T=w);let E=oi(T),te=Object.prototype.toString.apply(T);if(y&&T&&E&&!_.includes(te)&&!(H(v)&&Array.isArray(T))){if(!i.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(h,T,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(T),t=e?[]:{},n=e?g:h;for(let e in T)if(Object.prototype.hasOwnProperty.call(T,e)){let r=`${n}${o}${e}`;t[e]=x&&!m?this.translate(r,{...i,defaultValue:oi(w)?w[e]:void 0,joinArrays:!1,ns:c}):this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=T[e])}m=t}}else if(y&&H(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=w),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&w!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?w:m),o){let e=this.resolve(s,{...i,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,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);ee&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||w)})}):n(e,s,w))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=H(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!H(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=H(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=ni.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return H(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?ai(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!H(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(H(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.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!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!H(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},ci=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$r.create(`languageUtils`)}getScriptPartFromCode(e){if(e=Zr(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=Zr(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(H(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),H(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return H(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):H(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}},li={zero:0,one:1,two:2,few:3,many:4,other:5},ui={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},di=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=$r.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=Zr(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),ui;if(!e.match(/-|_/))return ui;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>li[e]-li[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},fi=(e,t,n,r=`.`,i=!0)=>{let a=Vr(e,t,n);return!a&&i&&H(n)&&(a=Xr(e,n,r),a===void 0&&(a=Xr(t,n,r))),a},pi=e=>e.replace(/\$/g,`$$$$`),mi=class{constructor(e={}){this.logger=$r.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?Gr:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?Ur(i):a||`{{`,this.suffix=o?Ur(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?Ur(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?Ur(l):``,this.nestingPrefix=d?Ur(d):f||Ur(`$t(`),this.nestingSuffix=p?Ur(p):m||Ur(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new 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,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=fi(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(fi(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0){if(typeof l==`function`){let t=l(e,i,r);a=H(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``}else!H(a)&&!this.useRawValueToEscape&&(a=Mr(a));let s=t.safeValue(a);if(e=e.replace(i[0],pi(s)),u?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${Ur(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!H(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/s.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!H(i))return i;H(i)||(i=Mr(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},hi=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},gi=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(Zr(r),i),t[o]=s),s(n)}},_i=e=>(t,n,r)=>e(Zr(n),r)(t),vi=class{constructor(e={}){this.logger=$r.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?gi:_i;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=gi(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator),a=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf(`(`)>-1&&!t.includes(`)`)&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;a.push(t)}return a.reduce((e,t)=>{let{formatName:i,formatOptions:a}=hi(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}},yi=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},bi=class extends ei{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=$r.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{zr(n.loaded,[i],a),yi(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{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(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();H(e)&&(e=this.languageUtils.toResolveHierarchy(e)),H(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(n!=null&&n!==``){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}},xi=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,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(typeof e[1]==`object`&&(t=e[1]),H(e[1])&&(t.defaultValue=e[1]),H(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Si=e=>(H(e.ns)&&(e.ns=[e.ns]),H(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),H(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),Ci=()=>{},wi=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},U=class e extends ei{constructor(e={},t){if(super(),this.options=Si(e),this.services={},this.logger=$r,this.modules={external:[]},wi(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,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(H(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=xi();this.options={...n,...this.options,...Si(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?$r.init(r(this.modules.logger),this.options):$r.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:vi;let t=new ci(this.options);this.store=new ti(this.options.resources,this.options);let n=this.services;n.logger=$r,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new di(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new mi(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new bi(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new si(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||=Ci,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(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 i=jr(),a=()=>{let e=(e,n)=>{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),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=Ci){let n=t,r=H(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):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),n(e)})}else n(null)}reloadResources(e,t,n){let r=jr();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=Ci,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}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 e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&ni.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=jr();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=H(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(H(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=ai(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=ai(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=ai(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return H(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}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;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=jr();return this.options.ns?(H(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=jr();H(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(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{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new ci(xi());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Ci){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new ti(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...xi().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new mi(n)}return a.translator=new si(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();U.createInstance,U.dir,U.init,U.loadResources,U.reloadResources,U.use,U.changeLanguage,U.getFixedT,U.t,U.exists,U.setDefaultNamespace,U.hasLoadedNamespace,U.loadNamespaces,U.loadLanguages;var Ti=({locale:e,asyncMessagesLoader:t,messages:n,useSuspense:r=!1,disableAutoInit:i=!1,bindI18n:a},{icu:o}={})=>{let s={lng:e,fallbackLng:`en`,keySeparator:!1,react:{useSuspense:r,bindI18n:a},_polyfill:{isLoading:!1}},c=U.createInstance(i?s:void 0);return o&&c.use(o),t&&c.use({type:`backend`,read:async(e,n,r)=>{try{return r(null,await t(e))}catch(e){return r(e,null)}}}),n&&(s.resources={[e]:{translation:n}}),i||c.init(s),c};function Ei({icuOptions:e={},...t}){let{parseErrorHandler:n=void 0}=t;return Ti(t,{icu:new Cr({parseErrorHandler:n,bindI18n:t.bindI18n,...e})})}var Di=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);Pi(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},Oi={},ki=(e,t,n,r)=>{Pi(n)&&Oi[n]||(Pi(n)&&(Oi[n]=new Date),Di(e,t,n,r))},Ai=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},ji=(e,t,n)=>{e.loadNamespaces(t,Ai(e,n))},Mi=(e,t,n,r)=>{if(Pi(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return ji(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Ai(e,r))},Ni=(e,t,n={})=>!t.languages||!t.languages.length?(ki(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),Pi=e=>typeof e==`string`,Fi=e=>typeof e==`object`&&!!e,Ii=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Li={"&amp;":`&`,"&#38;":`&`,"&lt;":`<`,"&#60;":`<`,"&gt;":`>`,"&#62;":`>`,"&apos;":`'`,"&#39;":`'`,"&quot;":`"`,"&#34;":`"`,"&nbsp;":` `,"&#160;":` `,"&copy;":`©`,"&#169;":`©`,"&reg;":`®`,"&#174;":`®`,"&hellip;":`…`,"&#8230;":`…`,"&#x2F;":`/`,"&#47;":`/`},Ri=e=>Li[e],zi={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(Ii,Ri)},Bi=()=>zi,Vi,Hi=()=>Vi,Ui=r(),Wi=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},Gi=(e,t)=>{let n=u();return c(()=>{n.current=t?n.current:e},[e,t]),n.current},Ki=(e,t,n,r)=>e.getFixedT(t,n,r),qi=(e,t,n,r)=>o(Ki(e,t,n,r),[e,t,n,r]),Ji=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=s(Ui)||{},a=n||r||Hi();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Wi),!a){ki(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next`);let e=(e,t)=>Pi(t)?t:Fi(t)&&Pi(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}a.options.react?.wait&&ki(a,`DEPRECATED_OPTION`,`useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);let o={...Bi(),...a.options.react,...t},{useSuspense:l,keyPrefix:f}=o,p=e||i||a.options?.defaultNS;p=Pi(p)?[p]:p||[`translation`],a.reportNamespaces.addUsedNamespaces?.(p);let m=(a.isInitialized||a.initializedStoreOnce)&&p.every(e=>Ni(e,a,o)),h=qi(a,t.lng||null,o.nsMode===`fallback`?p:p[0],f),g=()=>h,_=()=>Ki(a,t.lng||null,o.nsMode===`fallback`?p:p[0],f),[v,y]=d(g),b=p.join();t.lng&&(b=`${t.lng}${b}`);let x=Gi(b),S=u(!0);c(()=>{let{bindI18n:e,bindI18nStore:n}=o;S.current=!0,!m&&!l&&(t.lng?Mi(a,t.lng,p,()=>{S.current&&y(_)}):ji(a,p,()=>{S.current&&y(_)})),m&&x&&x!==b&&S.current&&y(_);let r=()=>{S.current&&y(_)};return e&&a?.on(e,r),n&&a?.store.on(n,r),()=>{S.current=!1,a&&e&&e?.split(` `).forEach(e=>a.off(e,r)),n&&a&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,b]),c(()=>{S.current&&m&&y(g)},[a,f,m]);let C=[v,a,m];if(C.t=v,C.i18n=a,C.ready=m,m||!m&&!l)return C;throw new Promise(e=>{t.lng?Mi(a,t.lng,p,()=>e()):ji(a,p,()=>e())})};function Yi({i18n:e,defaultNS:t,children:n}){let r=l(()=>({i18n:e,defaultNS:t}),[e,t]);return i(Ui.Provider,{value:r},n)}function Xi(e){return xt({__type:`host`,create:t=>Object.entries(e).reduce((e,[n,r])=>({...e,[n]:r(t)}),{})},Object.keys(e))}function Zi(e){"@babel/helpers - typeof";return Zi=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Zi(e)}function Qi(e,t){if(Zi(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Zi(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function $i(e){var t=Qi(e,`string`);return Zi(t)==`symbol`?t:t+``}function W(e,t,n){return(t=$i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ea(e){return{evid:100,src:176,endpoint:``,params:e}}function ta(e){return{evid:101,src:176,endpoint:``,params:e}}function na(e){return{evid:102,src:176,endpoint:``,params:e}}function ra(e){return{evid:103,src:176,endpoint:``,params:e}}function ia(e){return{evid:404,src:176,endpoint:``,params:e}}function aa(e){return e}function oa(e,t){var n;let{errorAccessor:r,requestOptions:i}=t,{biLogger:a,onlineManager:o,webWindow:s,environment:c,biDefaultsOverrides:l}=e,{statusCode:u,errorData:d,errorDetails:f,errorMessage:p,exceptionMessage:m,httpError:h,errorHandlerState:g}=r,_=h?.config;a.report(aa(ia)({artifact_id:c.artifactId,full_artifact_id:c.fullArtifactId,hostingEnvironment:l?.hostingEnvironment,app_id:l?.app_id,artifactVersion:c.version,error_code:u,error_json:d?JSON.stringify(d):void 0,exception_message:m,error_message:p,client_error_code:r?.clientCode,error_type:f!=null&&f.applicationError?`applicationError`:f!=null&&f.validationError?`validationError`:void 0,request_id:h?.requestId,hasInternetConnection:o.onLine,pageUrl:s==null||(n=s.location)==null?void 0:n.href,session_id:g?.sessionId,serverUrl:_?.url||i?.url,method:_?.method||i?.method||`unknown`,entity_fqdn:_?.entityFqdn||i?.entityFqdn,method_fqn:_?.methodFqn||i?.methodFqn,server_artifactid:_?.artifactId}))}var sa={400:`INVALID_ARGUMENT`,401:`UNAUTHENTICATED`,403:`PERMISSION_DENIED`,404:`NOT_FOUND`,409:`ALREADY_EXISTS`,428:`FAILED_PRECONDITION`,429:`RESOURCE_EXHAUSTED`,499:`CANCELED`,500:`INTERNAL`,501:`NOT_IMPLEMENTED`,502:`BAD_GATEWAY`,503:`UNAVAILABLE`};function ca(e){let{errorAccessor:t,errorCodesMap:n}=e,{applicationError:r,statusCode:i,error:a,validationError:o}=t;if(r){let{code:e}=r,t=n.applicationError?.[e];if(t===!1)return null;if(t)return t(r,a)}if(n.validationError){var s;let e=Object.keys(n.validationError),t=o==null||(s=o.fieldViolations)==null?void 0:s.find(t=>{let{ruleName:n}=t;return e.includes(n)});if(t!=null&&t.ruleName){let e=n.validationError?.[t.ruleName];if(e)return e(a)}}let c=i==null?null:sa[i],l={...n.serverError?{INTERNAL:n.serverError,NOT_IMPLEMENTED:n.serverError,BAD_GATEWAY:n.serverError,UNAVAILABLE:n.serverError}:{},...n.statusCodeError},u=c==null?null:l[c];return u?u(a):null}var la=class{constructor(e){W(this,`errorAccessor`,void 0),W(this,`errorCodesMap`,void 0),W(this,`commonErrorsMapState`,void 0),W(this,`onlineManager`,void 0),W(this,`consumerResolvedError`,void 0),W(this,`commonResolvedError`,void 0),this.commonErrorsMapState=e.commonErrorsMapState,this.errorAccessor=e.errorAccessor,this.errorCodesMap=e.errorCodesMap,this.onlineManager=e.onlineManager}get commonErrors(){return this.commonErrorsMapState.commonErrors}_resolveNetworkError(){let{onlineManager:e,commonErrors:t,errorAccessor:n}=this;return t?e.onLine?t.getNetworkErrorShowErrorProps(n):t.connectionErrorShowErrorProps:null}_resolveCommonError(){let{errorAccessor:e,commonErrors:t,errorCodesMap:n}=this,{error:r,httpError:i,validationError:a}=e;if(i==null)return this._resolveNetworkError();if(!t)return null;if(a){var o;return(o=t.commonErrorsMap.statusCodeError)==null||o.INVALID_ARGUMENT==null?void 0:o.INVALID_ARGUMENT(r)}return ca({errorAccessor:e,errorCodesMap:t.commonErrorsMap})||((n==null||n.serverError==null?void 0:n.serverError(r))??t.defaultErrorShowErrorProps)}_resolveConsumerError(){let{errorCodesMap:e,errorAccessor:t}=this,{httpError:n}=t;return n==null||e==null?null:ca({errorAccessor:t,errorCodesMap:e})}resolve(){this.consumerResolvedError=this._resolveConsumerError(),this.consumerResolvedError??(this.commonResolvedError=this._resolveCommonError())}get errorToShow(){return this.consumerResolvedError??this.commonResolvedError}};function ua(e,t){let{commonErrorsMapState:n,onlineManager:r}=e,{errorAccessor:i,errorCodesMap:a}=t,o=new la({errorAccessor:i,errorCodesMap:a,commonErrorsMapState:n,onlineManager:r});return o.resolve(),o}function da(e){return typeof e.biLoggerOrFactory==`function`?e.biLoggerOrFactory().logger():e.biLoggerOrFactory}function fa(e){return e!=null}function pa(e){return fa(e)&&e.response!=null}function ma(e){return fa(e)&&e.message!=null}function ha(e){return fa(e)&&e.details!=null}function ga(e){return e!=null}function _a(e){return ga(e)&&e.status!=null}function va(e){return{response:{data:{details:e.details},status:e.status},requestId:e.requestId}}function ya(e){return{response:{data:e._errorHandlerState?.responseData,status:e.status},requestId:e.headers.get(`X-Wix-Request-Id`)}}var ba=class{constructor(e){W(this,`inputError`,void 0),W(this,`_error`,void 0),W(this,`_httpError`,void 0),W(this,`_errorDetails`,void 0),this.inputError=e.error}get error(){let{inputError:e}=this;return this._error??=typeof Response<`u`&&e instanceof Response||e instanceof Error?e:null}get exceptionMessage(){return this.error?.message}get httpError(){let{inputError:e}=this;return this._httpError??=pa(e)?e:typeof Response<`u`&&e instanceof Response?ya(e):_a(e)?va(e):null}get errorHandlerState(){let{error:e}=this;return e?e._errorHandlerState??={}:null}get clientCode(){return this.httpError?.code}get errorResponse(){return this.httpError?.response}get statusCode(){return this.errorResponse?.status}get errorData(){return this.errorResponse?.data}get errorDetails(){let{errorData:e}=this;return this._errorDetails??=ha(e)?e.details:null}get errorMessage(){let{errorData:e}=this;return ma(e)?e.message:void 0}get applicationError(){return this.errorDetails?.applicationError}get validationError(){return this.errorDetails?.validationError}},xa=b({default:()=>Sa}),Sa,Ca=v((()=>{Sa={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),wa=b({default:()=>Ta}),Ta,Ea=v((()=>{Ta={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Da=b({default:()=>Oa}),Oa,ka=v((()=>{Oa={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Aa=b({default:()=>ja}),ja,Ma=v((()=>{ja={"errorHandler.common-error.permission-denied.site":`Nemáte oprávnění provést tuto akci. Požádejte o\xA0přístup vlastníka webu.`,"errorHandler.uncommon-error.NotImplemented":`Tato akce není momentálně dostupná.`,"errorHandler.common-error.conflict":`Změny nelze uložit, protože tato stránka byla aktualizována někde jinde. Poznamenejte si změny, obnovte stránku a zkuste ji upravit znovu.`,"errorHandler.common-error.permission-denied.app":`Pro tuto akci nemáte oprávnění. Požádejte o\xA0přístup vlastníka aplikace.`,"errorHandler.common-error.permission-denied.workspace":`Pro tuto akci nemáte oprávnění. Požádejte o\xA0přístup vlastníka pracovního prostoru.`,"errorHandler.common-error.CheckStatus.cta":`Stránka se stavem kontroly`,"errorHandler.common-error.refresh.cta":`Obnovit`,"errorHandler.common-error.noConnection":`Vypadá to, že jste offline. Zkontrolujte připojení a zkuste to znovu.`,"errorHandler.common-error.resource-exhausted":`Příliš mnoho akcí bylo provedeno příliš rychle. Chvíli počkejte a zkuste to znovu.`,"errorHandler.common-error.unauthenticated.cta":`Přihlásit se`,"errorHandler.common-error.goBack.cta":`Vrátit se`,"errorHandler.common-error.not-found":`Vypadá to, že tato položka již neexistuje.`,"errorHandler.common-error.captchaRequired.verify.cta":`Ověřit`,"errorHandler.common-error.tryAgain.cta":`Zkusit znovu`,"errorHandler.requestID.tooltip.cta":`Kopírovat ID`,"errorHandler.common-error.permission-denied":`Nemáte potřebná oprávnění. Požádejte o\xA0přístup vlastníka.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`Máme technické potíže. Zkuste to znovu nebo obnovte stránku.`,"errorHandler.common-error.unauthenticated":`Jste odhlášeni. Pro pokračování se přihlaste.`,"errorHandler.common-error.networkError":`Objevily se potíže při připojování k vaší síti. Zkontrolujte připojení a zkuste to znovu.`,"errorHandler.common-error.technicalIssue":`Máme technické potíže. Zkuste to znovu nebo obnovte stránku.`,"errorHandler.common-error.captchaRequired":`Pokud chcete pokračovat, bude potřeba ověřit, zda jste člověk.`,"errorHandler.common-error.technicalIssue.generic":`Máme technické potíže. Zkuste to znovu nebo obnovte stránku.`,"errorHandler.common-error.validationBasic":`Některá pole obsahují neplatné nebo chybějící údaje.`,"errorHandler.requestID.tooltip.cta.copied-success":`Zkopírováno!`}})),Na=b({default:()=>Pa}),Pa,Fa=v((()=>{Pa={"errorHandler.common-error.permission-denied.site":`Du har ikke tilladelse til at gøre dette. Anmod om adgang fra hjemmesideejeren.`,"errorHandler.uncommon-error.NotImplemented":`Denne handling er ikke tilgængelig lige nu.`,"errorHandler.common-error.conflict":`Ændringerne kan ikke gemmes, fordi denne side er blevet ændret et andet sted. Noter dine ændringer, genindlæs, og prøv derefter at redigere igen.`,"errorHandler.common-error.permission-denied.app":`Du har ikke tilladelse til at udføre denne handling. Anmod om adgang fra app-ejeren.`,"errorHandler.common-error.permission-denied.workspace":`Du har ikke tilladelse til at udføre denne handling. Anmod om adgang fra ejer af workspace.`,"errorHandler.common-error.CheckStatus.cta":`Tjek statussiden`,"errorHandler.common-error.refresh.cta":`Genindlæs`,"errorHandler.common-error.noConnection":`Det ser ud til, at du er offline. Tjek forbindelsen, og prøv igen.`,"errorHandler.common-error.resource-exhausted":`For mange handlinger blev udført for hurtigt. Vent et øjeblik og prøv igen.`,"errorHandler.common-error.unauthenticated.cta":`Log ind`,"errorHandler.common-error.goBack.cta":`Gå tilbage`,"errorHandler.common-error.not-found":`Det ser ud til, at dette ikke eksisterer længere.`,"errorHandler.common-error.captchaRequired.verify.cta":`Bekræft`,"errorHandler.common-error.tryAgain.cta":`Prøv igen`,"errorHandler.requestID.tooltip.cta":`Kopiér ID`,"errorHandler.common-error.permission-denied":`Du har ikke de nødvendige tilladelser. Anmod om adgang fra ejeren.`,"errorHandler.requestID.tooltip.description":`Hvis du rapporterer denne fejl til kundeservice, skal du dele dette anmodnings-ID, så de kan undersøge sagen.`,"errorHandler.common-error.technicalIssue-unmappedError":`Der er opstået et teknisk problem hos os. Prøv igen, eller opdater.`,"errorHandler.common-error.unauthenticated":`Du er logget ud. Log ind igen for at fortsætte.`,"errorHandler.common-error.networkError":`Der opstod et problem med at oprette forbindelse til dit netværk. Tjek forbindelsen, og prøv igen.`,"errorHandler.common-error.technicalIssue":`Der er opstået et teknisk problem hos os. Prøv igen, eller opdater.`,"errorHandler.common-error.captchaRequired":`Bekræft, at du er et menneske for at fortsætte.`,"errorHandler.common-error.technicalIssue.generic":`Der er opstået et teknisk problem hos os. Prøv igen, eller opdater.`,"errorHandler.common-error.validationBasic":`Nogle felter har ugyldige eller manglende oplysninger.`,"errorHandler.requestID.tooltip.cta.copied-success":`Kopieret!`}})),Ia=b({default:()=>La}),La,Ra=v((()=>{La={"errorHandler.common-error.permission-denied.site":`Du bist nicht zu dieser Aktion berechtigt. Bitte den Website-Eigentümer um Zugriff.`,"errorHandler.uncommon-error.NotImplemented":`Diese Aktion ist zurzeit nicht verfügbar.`,"errorHandler.common-error.conflict":`Die Änderungen konnten nicht gespeichert werden, da die Seite an anderer Stelle aktualisiert wurde. Mache Notiz von deinen Änderungen, aktualisiere die Seite und versuche erneut, sie zu bearbeiten.`,"errorHandler.common-error.permission-denied.app":`Du bist zu dieser Aktion nicht berechtigt. Bitte den App-Eigentümer um Zugriff.`,"errorHandler.common-error.permission-denied.workspace":`Du bist zu dieser Aktion nicht berechtigt. Bitte den Workspace-Eigentümer um Zugriff.`,"errorHandler.common-error.CheckStatus.cta":`Statusseite prüfen`,"errorHandler.common-error.refresh.cta":`Aktualisieren`,"errorHandler.common-error.noConnection":`Du bist offline. Überprüfe deine Verbindung und versuche es erneut.`,"errorHandler.common-error.resource-exhausted":`Zu viele Aktionen wurden zu schnell durchgeführt. Warte kurz und versuche es erneut.`,"errorHandler.common-error.unauthenticated.cta":`Anmelden`,"errorHandler.common-error.goBack.cta":`Zurück`,"errorHandler.common-error.not-found":`Dieses Element gibt es nicht mehr.`,"errorHandler.common-error.captchaRequired.verify.cta":`Bestätigen`,"errorHandler.common-error.tryAgain.cta":`Erneut versuchen`,"errorHandler.requestID.tooltip.cta":`ID kopieren`,"errorHandler.common-error.permission-denied":`Du hast nicht die erforderlichen Berechtigungen. Bitte den Eigentümer um Zugriff.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`Es gab ein technisches Problem. Versuche es erneut oder aktualisiere die Seite.`,"errorHandler.common-error.unauthenticated":`Du bist abgemeldet. Melde dich an, um fortzufahren.`,"errorHandler.common-error.networkError":`Es gab ein Netzwerkproblem. Überprüfe deine Verbindung und versuche es erneut.`,"errorHandler.common-error.technicalIssue":`Es gab ein technisches Problem. Versuche es erneut oder aktualisiere die Seite.`,"errorHandler.common-error.captchaRequired":`Um fortzufahren, bestätige, dass du kein Roboter bist.`,"errorHandler.common-error.technicalIssue.generic":`Es gab ein technisches Problem. Versuche es erneut oder aktualisiere die Seite.`,"errorHandler.common-error.validationBasic":`Einige Felder enthalten ungültige oder fehlende Informationen.`,"errorHandler.requestID.tooltip.cta.copied-success":`Kopiert`}})),za=b({default:()=>Ba}),Ba,Va=v((()=>{Ba={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Ανανέωση`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Σύνδεση`,"errorHandler.common-error.goBack.cta":`Πίσω`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`επαλήθευση`,"errorHandler.common-error.tryAgain.cta":`Προσπαθήστε ξανά`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Ha=b({default:()=>Ua}),Ua,Wa=v((()=>{Ua={"errorHandler.common-error.conflict":`Can’t save changes because this page was updated somewhere else. Take note of your changes, then refresh and try editing again.`,"errorHandler.common-error.resource-exhausted":`Too many actions were done too quickly. Wait a minute and try again.`,"errorHandler.common-error.not-found":`It looks like this doesn't exist anymore.`,"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Request access from the site owner.`,"errorHandler.common-error.unauthenticated":`You’re logged out. Log back in to continue.`,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.common-error.technicalIssue":`There was a technical issue on our end. Try again or refresh.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Request access from the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Request access from the workspace owner.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.permission-denied":`You don't have the necessary permissions. Request access from the owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.uncommon-error.NotImplemented":`This action isn't available right now.`,"errorHandler.common-error.technicalIssue-unmappedError":`There was a technical issue on our end. Try again or refresh.`,"errorHandler.common-error.technicalIssue.generic":`There was a technical issue on our end. Try again or refresh.`,"errorHandler.requestID.tooltip.description":`If you report this error to Customer Care, share this request ID so they can investigate.`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Ga=b({default:()=>Ka}),Ka,qa=v((()=>{Ka={"errorHandler.common-error.permission-denied.site":`No tienes permiso para realizar esta acción. Solicita acceso al propietario del sitio.`,"errorHandler.uncommon-error.NotImplemented":`Esta acción no está disponible en este momento.`,"errorHandler.common-error.conflict":`No se pueden guardar los cambios porque esta página se actualizó en otro lugar. Ten en cuenta los cambios, actualiza e intenta editar nuevamente.`,"errorHandler.common-error.permission-denied.app":`No tienes permiso para realizar esta acción. Solicita acceso al propietario de la app.`,"errorHandler.common-error.permission-denied.workspace":`No tienes permiso para realizar esta acción. Solicita acceso al propietario del espacio de trabajo.`,"errorHandler.common-error.CheckStatus.cta":`Verificar estado de página`,"errorHandler.common-error.refresh.cta":`Actualizar`,"errorHandler.common-error.noConnection":`Parece que estás sin conexión. Comprueba tu conexión a Internet y vuelve a intentarlo.`,"errorHandler.common-error.resource-exhausted":`Se realizaron demasiadas acciones en muy poco tiempo. Espera un minuto y vuelve a intentarlo.`,"errorHandler.common-error.unauthenticated.cta":`Iniciar sesión`,"errorHandler.common-error.goBack.cta":`Volver`,"errorHandler.common-error.not-found":`Parece que esto ya no existe.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verificar`,"errorHandler.common-error.tryAgain.cta":`Reintentar`,"errorHandler.requestID.tooltip.cta":`Copiar ID`,"errorHandler.common-error.permission-denied":`No tienes los permisos necesarios. Solicita acceso al propietario.`,"errorHandler.requestID.tooltip.description":`Si informas de este error a Atención al Cliente, comparte este ID de solicitud para que puedan investigarlo.`,"errorHandler.common-error.technicalIssue-unmappedError":`Hubo un problema técnico de nuestra parte. Actualiza o inténtalo de nuevo.`,"errorHandler.common-error.unauthenticated":`Se ha cerrado la sesión de tu cuenta. Vuelve a iniciar sesión para continuar.`,"errorHandler.common-error.networkError":`Hubo un problema al conectarse a la red. Comprueba tu conexión a Internet y vuelve a intentarlo.`,"errorHandler.common-error.technicalIssue":`Hubo un problema técnico de nuestra parte. Actualiza o inténtalo de nuevo.`,"errorHandler.common-error.captchaRequired":`Para continuar, verifica que eres humano.`,"errorHandler.common-error.technicalIssue.generic":`Hubo un problema técnico de nuestra parte. Actualiza o inténtalo de nuevo.`,"errorHandler.common-error.validationBasic":`Algunos campos no contienen información válida o falta información.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copiado`}})),Ja=b({default:()=>Ya}),Ya,Xa=v((()=>{Ya={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Za=b({default:()=>Qa}),Qa,$a=v((()=>{Qa={"errorHandler.common-error.permission-denied.site":`Vous n'avez pas les autorisations nécessaires. Demandez l'accès au propriétaire du site.`,"errorHandler.uncommon-error.NotImplemented":`Cette action n'est pas disponible pour le moment.`,"errorHandler.common-error.conflict":`Impossible d'enregistrer les modifications car cette page a été mise à jour ailleurs. Prenez note de vos modifications, puis actualisez la page et réessayez de la modifier.`,"errorHandler.common-error.permission-denied.app":`Vous n'avez pas l'autorisation nécessaire pour effectuer cette action. Demandez l'accès au propriétaire de l'appli.`,"errorHandler.common-error.permission-denied.workspace":`Vous n'avez pas l'autorisation nécessaire pour effectuer cette action. Demandez l'accès au propriétaire de l'espace de travail.`,"errorHandler.common-error.CheckStatus.cta":`Voir la page de statut`,"errorHandler.common-error.refresh.cta":`Actualiser`,"errorHandler.common-error.noConnection":`Il semble que vous êtes hors ligne. Vérifiez votre connexion et réessayez.`,"errorHandler.common-error.resource-exhausted":`Trop d'actions ont été effectuées trop rapidement. Patientez une minute puis réessayez.`,"errorHandler.common-error.unauthenticated.cta":`Se connecter`,"errorHandler.common-error.goBack.cta":`Retour`,"errorHandler.common-error.not-found":`Il semble que cela n'existe plus.`,"errorHandler.common-error.captchaRequired.verify.cta":`Vérifier`,"errorHandler.common-error.tryAgain.cta":`Réessayer`,"errorHandler.requestID.tooltip.cta":`Copier l'ID`,"errorHandler.common-error.permission-denied":`Vous n'avez pas les autorisations nécessaires. Demandez l'accès au propriétaire.`,"errorHandler.requestID.tooltip.description":`Si vous signalez cette erreur à l'Assistance, partagez cet ID de demande pour qu'ils puissent enquêter.`,"errorHandler.common-error.technicalIssue-unmappedError":`Nous avons rencontré un problème technique. Veuillez réessayer ou actualiser la page.`,"errorHandler.common-error.unauthenticated":`Vous êtes déconnecté. Reconnectez-vous pour continuer.`,"errorHandler.common-error.networkError":`Un problème de connexion à votre réseau est survenu. Vérifiez votre connexion et réessayez.`,"errorHandler.common-error.technicalIssue":`Nous avons rencontré un problème technique. Veuillez réessayer ou actualiser la page.`,"errorHandler.common-error.captchaRequired":`Pour continuer, vérifiez que vous êtes un humain.`,"errorHandler.common-error.technicalIssue.generic":`Nous avons rencontré un problème technique. Veuillez réessayer ou actualiser la page.`,"errorHandler.common-error.validationBasic":`Certains champs contiennent des informations invalides ou manquantes.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copié.`}})),eo=b({default:()=>to}),to,no=v((()=>{to={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),ro=b({default:()=>io}),io,ao=v((()=>{io={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),oo=b({default:()=>so}),so,co=v((()=>{so={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),lo=b({default:()=>uo}),uo,fo=v((()=>{uo={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),po=b({default:()=>mo}),mo,ho=v((()=>{mo={"errorHandler.common-error.permission-denied.site":`Anda tidak memiliki izin untuk melakukan ini. Minta akses dari pemilik situs.`,"errorHandler.uncommon-error.NotImplemented":`Tindakan ini tidak tersedia saat ini.`,"errorHandler.common-error.conflict":`Tidak dapat menyimpan perubahan karena halaman ini diperbarui di tempat lain. Catat perubahan Anda, lalu muat ulang dan coba edit lagi.`,"errorHandler.common-error.permission-denied.app":`Anda tidak memiliki izin untuk melakukan tindakan ini. Minta akses dari pemilik aplikasi.`,"errorHandler.common-error.permission-denied.workspace":`Anda tidak memiliki izin untuk melakukan tindakan ini. Minta akses dari pemilik ruang kerja.`,"errorHandler.common-error.CheckStatus.cta":`Periksa Halaman Status`,"errorHandler.common-error.refresh.cta":`Muat Ulang`,"errorHandler.common-error.noConnection":`Sepertinya Anda sedang offline. Periksa koneksi Anda dan coba lagi.`,"errorHandler.common-error.resource-exhausted":`Terlalu banyak tindakan yang dilakukan terlalu cepat. Tunggu sebentar dan coba lagi.`,"errorHandler.common-error.unauthenticated.cta":`Login`,"errorHandler.common-error.goBack.cta":`Kembali`,"errorHandler.common-error.not-found":`Sepertinya ini tidak ada lagi.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verifikasi`,"errorHandler.common-error.tryAgain.cta":`Coba Lagi`,"errorHandler.requestID.tooltip.cta":`Salin ID`,"errorHandler.common-error.permission-denied":`Anda tidak memiliki izin yang diperlukan. Minta akses dari pemilik.`,"errorHandler.requestID.tooltip.description":`Jika Anda melaporkan kesalahan ini ke Layanan Pelanggan, bagikan ID permintaan ini agar mereka dapat menyelidikinya.`,"errorHandler.common-error.technicalIssue-unmappedError":`Ada masalah teknis di pihak kami. Coba lagi atau muat ulang.`,"errorHandler.common-error.unauthenticated":`Anda telah logout. Login kembali untuk melanjutkan.`,"errorHandler.common-error.networkError":`Terjadi masalah saat menghubungkan ke jaringan Anda. Periksa koneksi Anda dan coba lagi.`,"errorHandler.common-error.technicalIssue":`Ada masalah teknis di pihak kami. Coba lagi atau muat ulang.`,"errorHandler.common-error.captchaRequired":`Untuk melanjutkan, verifikasi bahwa Anda manusia.`,"errorHandler.common-error.technicalIssue.generic":`Ada masalah teknis di pihak kami. Coba lagi atau muat ulang.`,"errorHandler.common-error.validationBasic":`Beberapa kolom memiliki informasi yang tidak valid atau tidak memiliki informasi.`,"errorHandler.requestID.tooltip.cta.copied-success":`Disalin!`}})),go=b({default:()=>_o}),_o,vo=v((()=>{_o={"errorHandler.common-error.permission-denied.site":`Non hai l'autorizzazione per farlo. Richiedi l'accesso al proprietario del sito.`,"errorHandler.uncommon-error.NotImplemented":`Questa azione non è disponibile al momento.`,"errorHandler.common-error.conflict":`Impossibile salvare le modifiche perché la pagina è stata aggiornata altrove. Prendi nota delle modifiche, aggiorna la pagina e riprova.`,"errorHandler.common-error.permission-denied.app":`Non hai l'autorizzazione per eseguire quest'azione. Richiedi l'accesso al proprietario dell'app.`,"errorHandler.common-error.permission-denied.workspace":`Non hai l'autorizzazione per eseguire quest'azione. Richiedi l'accesso al proprietario dello spazio di lavoro.`,"errorHandler.common-error.CheckStatus.cta":`Controlla la pagina dello stato`,"errorHandler.common-error.refresh.cta":`Aggiorna`,"errorHandler.common-error.noConnection":`Sembra che tu sia offline. Verifica la connessione e riprova.`,"errorHandler.common-error.resource-exhausted":`C'è stato un problema tecnico interno. Riprova o ricarica la pagina.`,"errorHandler.common-error.unauthenticated.cta":`Accedi`,"errorHandler.common-error.goBack.cta":`Indietro`,"errorHandler.common-error.not-found":`Sembra che questo elemento non esista più.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verifica`,"errorHandler.common-error.tryAgain.cta":`Riprova.`,"errorHandler.requestID.tooltip.cta":`Copia ID`,"errorHandler.common-error.permission-denied":`Non hai l'autorizzazione. Richiedi l'accesso al proprietario.`,"errorHandler.requestID.tooltip.description":`Se segnali un errore all'Assistenza clienti, condividi l'ID di questa richiesta per aiutarli a indagare.`,"errorHandler.common-error.technicalIssue-unmappedError":`C'è stato un problema tecnico interno. Riprova o ricarica la pagina.`,"errorHandler.common-error.unauthenticated":`La connessione è stata interrotta. Accedi di nuovo per continuare.`,"errorHandler.common-error.networkError":`Si è verificato un problema di connessione alla rete. Verifica la connessione e riprova.`,"errorHandler.common-error.technicalIssue":`C'è stato un problema tecnico interno. Riprova o ricarica la pagina.`,"errorHandler.common-error.captchaRequired":`Per continuare, conferma di essere umano.`,"errorHandler.common-error.technicalIssue.generic":`C'è stato un problema tecnico interno. Riprova o ricarica la pagina.`,"errorHandler.common-error.validationBasic":`Alcuni campi contengono informazioni non valide o mancanti.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copiato!`}})),yo=b({default:()=>bo}),bo,xo=v((()=>{bo={"errorHandler.common-error.permission-denied.site":`これを行う権限がありません。サイト所有者にアクセス権をリクエストしてください。`,"errorHandler.uncommon-error.NotImplemented":`このアクションは現在ご利用いただけません。`,"errorHandler.common-error.conflict":`このページは別の場所で更新されたため、変更が保存されませんでした。変更内容を記録した上で、ページを再読み込みして再度お試しください。`,"errorHandler.common-error.permission-denied.app":`この操作を行う権限がありません。アプリのオーナーにアクセス権をリクエストしてください。`,"errorHandler.common-error.permission-denied.workspace":`このアクションを行う権限がありません。ワークスペースオーナーにアクセス権をリクエストしてください。`,"errorHandler.common-error.CheckStatus.cta":`ステータスページを確認する`,"errorHandler.common-error.refresh.cta":`再読み込みする`,"errorHandler.common-error.noConnection":`オフラインのようです。お手数ですが、接続状況を確認してもう一度お試しください。`,"errorHandler.common-error.resource-exhausted":`短い時間に多くの操作が行われました。お手数ですが、少しお待ちいただいてから、もう一度お試しください。`,"errorHandler.common-error.unauthenticated.cta":`ログイン`,"errorHandler.common-error.goBack.cta":`戻る`,"errorHandler.common-error.not-found":`このアイテムはもう存在しないようです。`,"errorHandler.common-error.captchaRequired.verify.cta":`確認する`,"errorHandler.common-error.tryAgain.cta":`もう一度試す`,"errorHandler.requestID.tooltip.cta":`ID をコピー`,"errorHandler.common-error.permission-denied":`必要な権限がありません。サイト所有者にアクセス権をリクエストしてください。`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`弊社側で技術的な問題が発生しました。お手数ですが、再度お試しになるかページを再読み込みしてください。`,"errorHandler.common-error.unauthenticated":`ログアウトしています。続行するには再度ログインしてください。`,"errorHandler.common-error.networkError":`ネットワーク接続中に問題が発生しました。お手数ですが、接続状況を確認してもう一度お試しください。`,"errorHandler.common-error.technicalIssue":`弊社側で技術的な問題が発生しました。お手数ですが、再度お試しになるかページを再読み込みしてください。`,"errorHandler.common-error.captchaRequired":`続行するには、あなたが人間であることを確認してください。`,"errorHandler.common-error.technicalIssue.generic":`弊社側で技術的な問題が発生しました。お手数ですが、再度お試しになるかページを再読み込みしてください。`,"errorHandler.common-error.validationBasic":`一部の項目には、情報が無効または不足しています。`,"errorHandler.requestID.tooltip.cta.copied-success":`コピー済み`}})),So=b({default:()=>Co}),Co,wo=v((()=>{Co={"errorHandler.common-error.permission-denied.site":`해당 권한이 없습니다. 사이트 소유자에게 액세스 권한을 요청하세요.`,"errorHandler.uncommon-error.NotImplemented":`현재 실행이 불가능한 작업입니다.`,"errorHandler.common-error.conflict":`페이지가 다른 곳에서 업데이트되어 변경사항을 저장할 수 없습니다. 변경사항을 기억한 다음 페이지를 새로고침하고 다시 편집해보세요.`,"errorHandler.common-error.permission-denied.app":`작업 권한이 없습니다. 앱 소유자에게 액세스 권한을 요청하세요.`,"errorHandler.common-error.permission-denied.workspace":`작업 권한이 없습니다. 워크스페이스 소유자에게 액세스 권한을 요청하세요.`,"errorHandler.common-error.CheckStatus.cta":`상태 페이지 확인`,"errorHandler.common-error.refresh.cta":`새로고침`,"errorHandler.common-error.noConnection":`현재 오프라인 상태입니다. 인터넷 연결 상태를 확인한 후 다시 시도해보세요.`,"errorHandler.common-error.resource-exhausted":`짧은 시간 안에 너무 많은 작업이 수행되었습니다. 잠시 후에 다시 시도해보세요.`,"errorHandler.common-error.unauthenticated.cta":`로그인`,"errorHandler.common-error.goBack.cta":`돌아가기`,"errorHandler.common-error.not-found":`더 이상 존재하지 않습니다.`,"errorHandler.common-error.captchaRequired.verify.cta":`인증`,"errorHandler.common-error.tryAgain.cta":`다시 시도`,"errorHandler.requestID.tooltip.cta":`ID 복사`,"errorHandler.common-error.permission-denied":`필요한 권한이 없습니다. 소유자에게 액세스 권한을 요청하세요.`,"errorHandler.requestID.tooltip.description":`고객지원팀에 오류를 신고하는 경우, 담당자가 문제를 확인할 수 있도록 본 요청 ID를 공유해주세요.`,"errorHandler.common-error.technicalIssue-unmappedError":`Wix에 기술적인 문제가 발생하였습니다. 다시 시도하거나 페이지를 새로고침하세요.`,"errorHandler.common-error.unauthenticated":`로그아웃 상태입니다. 로그인 후 계속 진행하세요.`,"errorHandler.common-error.networkError":`오류가 발생하여 네트워크에 연결할 수 없습니다. 인터넷 연결 상태를 확인한 후 다시 시도해보세요.`,"errorHandler.common-error.technicalIssue":`Wix에 기술적인 문제가 발생하였습니다. 다시 시도하거나 페이지를 새로고침하세요.`,"errorHandler.common-error.captchaRequired":`계속 진행하려면 본인임을 인증하세요.`,"errorHandler.common-error.technicalIssue.generic":`Wix에 기술적인 문제가 발생하였습니다. 다시 시도하거나 페이지를 새로고침하세요.`,"errorHandler.common-error.validationBasic":`일부 입력란에 유효하지 않거나 누락된 정보가 있습니다.`,"errorHandler.requestID.tooltip.cta.copied-success":`복사됨`}})),To=b({default:()=>Eo}),Eo,Do=v((()=>{Eo={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Oo=b({default:()=>ko}),ko,Ao=v((()=>{ko={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),jo=b({default:()=>Mo}),Mo,No=v((()=>{Mo={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Po=b({default:()=>Fo}),Fo,Io=v((()=>{Fo={"errorHandler.common-error.permission-denied.site":`Je hebt geen machtiging om dit te doen. Vraag toegang aan bij de website-eigenaar.`,"errorHandler.uncommon-error.NotImplemented":`Deze actie is momenteel niet beschikbaar.`,"errorHandler.common-error.conflict":`Kan wijzigingen niet opslaan, omdat deze pagina ergens anders is bijgewerkt. Noteer je wijzigingen, vernieuw de pagina en probeer het opnieuw.`,"errorHandler.common-error.permission-denied.app":`Je bent niet gemachtigd om deze actie uit te voeren. Vraag toegang aan bij de app-eigenaar.`,"errorHandler.common-error.permission-denied.workspace":`Je bent niet gemachtigd om deze actie uit te voeren. Vraag toegang aan bij de werkruimte-eigenaar.`,"errorHandler.common-error.CheckStatus.cta":`Statuspagina controleren`,"errorHandler.common-error.refresh.cta":`Vernieuwen`,"errorHandler.common-error.noConnection":`Het lijkt erop dat je offline bent. Controleer je internetverbinding en probeer het opnieuw.`,"errorHandler.common-error.resource-exhausted":`Er zijn te veel acties te snel uitgevoerd. Wacht even en probeer het opnieuw.`,"errorHandler.common-error.unauthenticated.cta":`inloggen`,"errorHandler.common-error.goBack.cta":`Terug`,"errorHandler.common-error.not-found":`Het lijkt erop dat dit niet meer bestaat.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verifiëren`,"errorHandler.common-error.tryAgain.cta":`Opnieuw proberen`,"errorHandler.requestID.tooltip.cta":`ID kopiëren`,"errorHandler.common-error.permission-denied":`Je hebt de benodigde machtigingen niet. Vraag toegang aan bij de eigenaar.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`Er is een technisch probleem opgetreden aan onze kant. Probeer het opnieuw of vernieuw de pagina.`,"errorHandler.common-error.unauthenticated":`Je bent uitgelogd. Log opnieuw in om verder te gaan.`,"errorHandler.common-error.networkError":`Er is een probleem opgetreden tijdens het koppelen aan je netwerk. Controleer je internetverbinding en probeer het opnieuw.`,"errorHandler.common-error.technicalIssue":`Er is een technisch probleem opgetreden aan onze kant. Probeer het opnieuw of vernieuw de pagina.`,"errorHandler.common-error.captchaRequired":`Om door te gaan, verifieer je dat je een mens bent.`,"errorHandler.common-error.technicalIssue.generic":`Er is een technisch probleem opgetreden aan onze kant. Probeer het opnieuw of vernieuw de pagina.`,"errorHandler.common-error.validationBasic":`Sommige velden bevatten ongeldige of ontbrekende informatie.`,"errorHandler.requestID.tooltip.cta.copied-success":`Gekopieerd`}})),Lo=b({default:()=>Ro}),Ro,zo=v((()=>{Ro={"errorHandler.common-error.permission-denied.site":`Du har ikke tillatelse til å gjøre dette. Be om tilgang fra nettstedets eier.`,"errorHandler.uncommon-error.NotImplemented":`Denne handlingen er ikke tilgjengelig akkurat nå.`,"errorHandler.common-error.conflict":`Kan ikke lagre endringene fordi denne siden ble oppdatert et annet sted. Merk endringene dine, oppdater deretter og prøv å redigere på nytt.`,"errorHandler.common-error.permission-denied.app":`Du har ikke tillatelse til å utføre denne handlingen. Be om tilgang fra appens eier.`,"errorHandler.common-error.permission-denied.workspace":`Du har ikke tillatelse til å utføre denne handlingen. Be om tilgang fra eieren av arbeidsområdet.`,"errorHandler.common-error.CheckStatus.cta":`Sjekk status-siden`,"errorHandler.common-error.refresh.cta":`Oppdater`,"errorHandler.common-error.noConnection":`Det ser ut til at du er frakoblet. Sjekk tilkoblingen og prøv igjen.`,"errorHandler.common-error.resource-exhausted":`For mange handlinger ble utført for raskt. Vent et øyeblikk og prøv igjen.`,"errorHandler.common-error.unauthenticated.cta":`Logg inn`,"errorHandler.common-error.goBack.cta":`Gå tilbake`,"errorHandler.common-error.not-found":`Det ser ut til at dette ikke eksisterer lenger.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verifiser`,"errorHandler.common-error.tryAgain.cta":`Prøv på nytt`,"errorHandler.requestID.tooltip.cta":`Kopier ID`,"errorHandler.common-error.permission-denied":`Du har ikke de nødvendige tillatelsene. Be om tilgang fra eieren.`,"errorHandler.requestID.tooltip.description":`Hvis du rapporterer denne feilen til brukerstøtte, må du dele denne forespørsels-ID-en, slik at de kan undersøke saken.`,"errorHandler.common-error.technicalIssue-unmappedError":`Det oppstod et teknisk problem hos oss. Prøv på nytt eller last oppdater.`,"errorHandler.common-error.unauthenticated":`Du er logget ut. Logg inn igjen for å fortsette.`,"errorHandler.common-error.networkError":`Det oppstod et problem med tilkoblingen til nettverket ditt. Sjekk tilkoblingen og prøv igjen.`,"errorHandler.common-error.technicalIssue":`Det oppstod et teknisk problem hos oss. Prøv på nytt eller oppdater.`,"errorHandler.common-error.captchaRequired":`For å fortsette må du verifisere at du er et menneske.`,"errorHandler.common-error.technicalIssue.generic":`Det oppstod et teknisk problem hos oss. Prøv på nytt eller oppdater.`,"errorHandler.common-error.validationBasic":`Noen felt har ugyldig eller manglende informasjon.`,"errorHandler.requestID.tooltip.cta.copied-success":`Kopiert!`}})),Bo=b({default:()=>Vo}),Vo,Ho=v((()=>{Vo={"errorHandler.common-error.permission-denied.site":`Nie masz uprawnień, aby to zrobić. Poproś właściciela strony o dostęp.`,"errorHandler.uncommon-error.NotImplemented":`Wykonanie tego działania jest w tej chwili niemożliwe.`,"errorHandler.common-error.conflict":`Nie można zapisać zmian, ponieważ ta strona została zaktualizowana w innym miejscu. Zanotuj zmiany, a następnie odśwież i spróbuj edytować ponownie.`,"errorHandler.common-error.permission-denied.app":`Nie masz uprawnień do wykonania tej czynności. Poproś właściciela aplikacji o dostęp.`,"errorHandler.common-error.permission-denied.workspace":`Nie masz uprawnień do wykonania tej czynności. Poproś właściciela obszaru roboczego o dostęp.`,"errorHandler.common-error.CheckStatus.cta":`Sprawdź stronę statusu`,"errorHandler.common-error.refresh.cta":`Odśwież`,"errorHandler.common-error.noConnection":`Wygląda na to, że jesteś offline. Sprawdź połączenie i spróbuj ponownie.`,"errorHandler.common-error.resource-exhausted":`Wiele działań zostało wykonanych zbyt szybko. Zaczekaj minutę i spróbuj ponownie.`,"errorHandler.common-error.unauthenticated.cta":`Zaloguj się`,"errorHandler.common-error.goBack.cta":`Wróć`,"errorHandler.common-error.not-found":`To już nie istnieje.`,"errorHandler.common-error.captchaRequired.verify.cta":`Zweryfikuj`,"errorHandler.common-error.tryAgain.cta":`Spróbuj ponownie`,"errorHandler.requestID.tooltip.cta":`Skopiuj identyfikator`,"errorHandler.common-error.permission-denied":`Nie masz wymaganych uprawnień. Poproś właściciela o dostęp.`,"errorHandler.requestID.tooltip.description":`Jeśli chcesz zgłosić ten błąd do działu obsługi klienta, podaj następujący identyfikator żądania, aby mogli przyjrzeć się tej sprawie.`,"errorHandler.common-error.technicalIssue-unmappedError":`Wystąpił problem techniczny po naszej stronie. Spróbuj ponownie lub odśwież.`,"errorHandler.common-error.unauthenticated":`Wylogowano. Zaloguj się ponownie, aby kontynuować.`,"errorHandler.common-error.networkError":`Wystąpił problem podczas połączenia z Twoją siecią. Sprawdź połączenie i spróbuj ponownie.`,"errorHandler.common-error.technicalIssue":`Wystąpił problem techniczny po naszej stronie. Spróbuj ponownie lub odśwież.`,"errorHandler.common-error.captchaRequired":`Aby kontynuować, potwierdź, że jesteś człowiekiem.`,"errorHandler.common-error.technicalIssue.generic":`Wystąpił problem techniczny po naszej stronie. Spróbuj ponownie lub odśwież.`,"errorHandler.common-error.validationBasic":`Niektóre pola zawierają nieprawidłowe lub brakujące informacje.`,"errorHandler.requestID.tooltip.cta.copied-success":`Skopiowano!`}})),Uo=b({default:()=>Wo}),Wo,Go=v((()=>{Wo={"errorHandler.common-error.permission-denied.site":`Você não tem permissão para fazer isso. Solicite acesso ao proprietário do site.`,"errorHandler.uncommon-error.NotImplemented":`Essa ação não está disponível no momento.`,"errorHandler.common-error.conflict":`Não é possível salvar as alterações porque essa página foi atualizada em outro lugar. Anote suas alterações, atualize e tente editar novamente.`,"errorHandler.common-error.permission-denied.app":`Você não tem permissão para fazer essa ação. Solicite acesso do proprietário do app.`,"errorHandler.common-error.permission-denied.workspace":`Você não tem permissão para fazer essa ação. Solicite acesso ao proprietário do espaço de trabalho.`,"errorHandler.common-error.CheckStatus.cta":`Verificar página de status`,"errorHandler.common-error.refresh.cta":`Atualizar`,"errorHandler.common-error.noConnection":`Parece que você está offline. Verifique sua conexão e tente novamente.`,"errorHandler.common-error.resource-exhausted":`Muitas ações foram feitas muito rapidamente. Aguarde alguns minutos e tente novamente.`,"errorHandler.common-error.unauthenticated.cta":`Fazer login`,"errorHandler.common-error.goBack.cta":`Voltar`,"errorHandler.common-error.not-found":`Parece que isso não existe mais.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verificar`,"errorHandler.common-error.tryAgain.cta":`Tentar novamente`,"errorHandler.requestID.tooltip.cta":`Copiar ID`,"errorHandler.common-error.permission-denied":`Você não tem as permissões necessárias. Solicite acesso ao proprietário.`,"errorHandler.requestID.tooltip.description":`Se você for reportar esse erro ao Apoio ao Cliente, compartilhe esse ID de solicitação para que eles possam investigar.`,"errorHandler.common-error.technicalIssue-unmappedError":`Houve um problema técnico no nosso sistema. Tente novamente ou atualize.`,"errorHandler.common-error.unauthenticated":`Sua conta está desconectada. Faça login novamente para continuar.`,"errorHandler.common-error.networkError":`Houve um problema na conexão com sua rede. Verifique sua conexão e tente novamente.`,"errorHandler.common-error.technicalIssue":`Houve um problema técnico no nosso sistema. Tente novamente ou atualize.`,"errorHandler.common-error.captchaRequired":`Para continuar, confirme que você é humano.`,"errorHandler.common-error.technicalIssue.generic":`Houve um problema técnico no nosso sistema. Tente novamente ou atualize.`,"errorHandler.common-error.validationBasic":`Alguns campos têm informações inválidas ou ausentes.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copiado`}})),Ko=b({default:()=>qo}),qo,Jo=v((()=>{qo={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Yo=b({default:()=>Xo}),Xo,Zo=v((()=>{Xo={"errorHandler.common-error.permission-denied.site":`У вас нет разрешения на это действие. Запросите доступ у владельца сайта.`,"errorHandler.uncommon-error.NotImplemented":`Сейчас это действие недоступно.`,"errorHandler.common-error.conflict":`Невозможно сохранить изменения, поскольку эта страница была обновлена в другом месте. Обратите внимание на изменения, затем обновите страницу и попробуйте редактировать снова.`,"errorHandler.common-error.permission-denied.app":`У вас нет разрешения для этого действия. Запросите доступ у владельца приложения.`,"errorHandler.common-error.permission-denied.workspace":`У вас нет разрешения для этого действия. Запросите доступ у владельца рабочего пространства.`,"errorHandler.common-error.CheckStatus.cta":`Проверить страницу статуса`,"errorHandler.common-error.refresh.cta":`Обновить`,"errorHandler.common-error.noConnection":`Похоже, вы оффлайн. Проверьте соединение и попробуйте снова.`,"errorHandler.common-error.resource-exhausted":`Слишком много действий выполнено слишком быстро. Попробуйте снова через минуту.`,"errorHandler.common-error.unauthenticated.cta":`Вход`,"errorHandler.common-error.goBack.cta":`Назад`,"errorHandler.common-error.not-found":`Похоже, этой опции больше нет.`,"errorHandler.common-error.captchaRequired.verify.cta":`Подтвердить`,"errorHandler.common-error.tryAgain.cta":`Попробовать еще раз`,"errorHandler.requestID.tooltip.cta":`Копировать ID`,"errorHandler.common-error.permission-denied":`У вас нет необходимых разрешений. Запросите доступ у владельца.`,"errorHandler.requestID.tooltip.description":`Если вы сообщите об ошибке команде поддержки, отправьте этот идентификатор запроса, чтобы они могли разобраться.`,"errorHandler.common-error.technicalIssue-unmappedError":`Возникла техническая проблема на нашей стороне. Попробуйте еще раз или обновите страницу.`,"errorHandler.common-error.unauthenticated":`Вы вышли из аккаунта. Войдите снова, чтобы продолжить.`,"errorHandler.common-error.networkError":`Возникла проблема при подключении к вашей сети. Проверьте подключение и попробуйте снова.`,"errorHandler.common-error.technicalIssue":`Возникла техническая проблема на нашей стороне. Попробуйте еще раз или обновите страницу.`,"errorHandler.common-error.captchaRequired":`Чтобы продолжить, подтвердите, что вы человек.`,"errorHandler.common-error.technicalIssue.generic":`Возникла техническая проблема на нашей стороне. Попробуйте еще раз или обновите страницу.`,"errorHandler.common-error.validationBasic":`В некоторых полях указана недействительная информация, или они не заполнены.`,"errorHandler.requestID.tooltip.cta.copied-success":`Скопировано!`}})),Qo=b({default:()=>$o}),$o,es=v((()=>{$o={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),ts=b({default:()=>ns}),ns,rs=v((()=>{ns={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),is=b({default:()=>as}),as,os=v((()=>{as={"errorHandler.common-error.permission-denied.site":`Du har inte behörighet till detta. Begär åtkomst från sidägaren.`,"errorHandler.uncommon-error.NotImplemented":`Den här åtgärden är inte tillgänglig just nu.`,"errorHandler.common-error.conflict":`Det går inte att spara ändringar eftersom den här sidan har uppdaterats någon annanstans. Kom ihåg dina ändringar. Uppdatera sedan sidan och försök att redigera igen.`,"errorHandler.common-error.permission-denied.app":`Du har inte behörighet att utföra den här åtgärden. Begär åtkomst från appägaren.`,"errorHandler.common-error.permission-denied.workspace":`Du har inte behörighet att utföra den här åtgärden. Begär åtkomst från arbetsytans ägare.`,"errorHandler.common-error.CheckStatus.cta":`Kontrollera statussidan`,"errorHandler.common-error.refresh.cta":`Uppdatera`,"errorHandler.common-error.noConnection":`Det verkar som att du är offline. Kontrollera din anslutning och försök igen.`,"errorHandler.common-error.resource-exhausted":`För många åtgärder gjordes för snabbt. Vänta en stund och försök sedan igen.`,"errorHandler.common-error.unauthenticated.cta":`Logga in`,"errorHandler.common-error.goBack.cta":`Gå tillbaka`,"errorHandler.common-error.not-found":`Det här objektet verkar inte finnas längre.`,"errorHandler.common-error.captchaRequired.verify.cta":`Bekräfta`,"errorHandler.common-error.tryAgain.cta":`Försök igen`,"errorHandler.requestID.tooltip.cta":`Kopiera ID`,"errorHandler.common-error.permission-denied":`Du har inte de nödvändiga behörigheterna. Begär åtkomst från ägaren.`,"errorHandler.requestID.tooltip.description":`Om du rapporterar det här felet till kundtjänst kan du dela detta förfrågnings-ID så att de kan undersöka.`,"errorHandler.common-error.technicalIssue-unmappedError":`Det uppstod ett tekniskt problem på vår sida. Försök igen eller uppdatera.`,"errorHandler.common-error.unauthenticated":`Du är utloggad. Logga in igen för att fortsätta.`,"errorHandler.common-error.networkError":`Det uppstod ett problem med att ansluta till ditt nätverk. Kontrollera din anslutning och försök igen.`,"errorHandler.common-error.technicalIssue":`Det uppstod ett tekniskt problem på vår sida. Försök igen eller uppdatera.`,"errorHandler.common-error.captchaRequired":`Bekräfta att du inte är en robot för att fortsätta.`,"errorHandler.common-error.technicalIssue.generic":`Det uppstod ett tekniskt problem på vår sida. Försök igen eller uppdatera.`,"errorHandler.common-error.validationBasic":`Vissa fält har uppgifter som är ogiltiga eller saknas.`,"errorHandler.requestID.tooltip.cta.copied-success":`Kopierad!`}})),ss=b({default:()=>cs}),cs,ls=v((()=>{cs={"errorHandler.common-error.permission-denied.site":`คุณไม่ได้รับอนุญาตให้ดำเนินการนี้ โปรดขออนุญาตจากเจ้าของเว็บไซต์เพื่อเข้าถึง`,"errorHandler.uncommon-error.NotImplemented":`ไม่สามารถดำเนินการนี้ได้ในขณะนี้`,"errorHandler.common-error.conflict":`ไม่สามารถบันทึกการแก้ไขเนื่องจากมีผู้อื่นอัปเดตหน้าเพจนี้ จดบันทึกสิ่งที่คุณแก้ไข จากนั้นรีเฟรชแล้วลองแก้ไขอีกครั้ง`,"errorHandler.common-error.permission-denied.app":`คุณไม่ได้รับอนุญาตให้ดำเนินการนี้ โปรดขออนุญาตจากเจ้าของแอปเพื่อเข้าถึง`,"errorHandler.common-error.permission-denied.workspace":`คุณไม่ได้รับอนุญาตให้ดำเนินการนี้ โปรดขออนุญาตจากเจ้าของพื้นที่ทำงานเพื่อเข้าถึง`,"errorHandler.common-error.CheckStatus.cta":`ตรวจสอบหน้าเพจสถานะ`,"errorHandler.common-error.refresh.cta":`รีเฟรช`,"errorHandler.common-error.noConnection":`ดูเหมือนคุณกำลังออฟไลน์ โปรดตรวจสอบการเชื่อมต่ออินเทอร์เน็ตจากนั้นลองอีกครั้ง`,"errorHandler.common-error.resource-exhausted":`มีการดำเนินการมากเกินไปในเวลาอันรวดเร็ว โปรดรอสักครู่แล้วลองอีกครั้ง`,"errorHandler.common-error.unauthenticated.cta":`เข้าสู่ระบบ`,"errorHandler.common-error.goBack.cta":`ย้อนกลับ`,"errorHandler.common-error.not-found":`ดูเหมือนว่าไม่มีข้อมูลนี้แล้ว`,"errorHandler.common-error.captchaRequired.verify.cta":`ยืนยัน`,"errorHandler.common-error.tryAgain.cta":`ลองอีกครั้ง`,"errorHandler.requestID.tooltip.cta":`คัดลอก ID`,"errorHandler.common-error.permission-denied":`คุณไม่ได้รับอนุญาตตามที่จำเป็น โปรดขออนุญาตจากเจ้าของเพื่อเข้าถึง`,"errorHandler.requestID.tooltip.description":`หากคุณรายงานปัญหานี้ให้ฝ่ายดูแลลูกค้าทราบ โปรดแจ้ง ID คำขอนี้เพื่อให้พวกเขาตรวจสอบได้`,"errorHandler.common-error.technicalIssue-unmappedError":`พบปัญหาทางเทคนิคในส่วนของเรา ลองอีกครั้งหรือรีเฟรช`,"errorHandler.common-error.unauthenticated":`คุณออกจากระบบแล้ว โปรดเข้าสู่ระบบใหม่เพื่อดำเนินการต่อ`,"errorHandler.common-error.networkError":`พบปัญหาในการเชื่อมต่อกับเครือข่ายของคุณ โปรดตรวจสอบการเชื่อมต่ออินเทอร์เน็ตจากนั้นลองอีกครั้ง`,"errorHandler.common-error.technicalIssue":`พบปัญหาทางเทคนิคในส่วนของเรา ลองอีกครั้งหรือรีเฟรช`,"errorHandler.common-error.captchaRequired":`โปรดยืนยันว่าคุณเป็นมนุษย์ เพื่อดำเนินการต่อ`,"errorHandler.common-error.technicalIssue.generic":`พบปัญหาทางเทคนิคในส่วนของเรา ลองอีกครั้งหรือรีเฟรช`,"errorHandler.common-error.validationBasic":`ข้อมูลในบางช่องไม่ถูกต้องหรือไม่ครบถ้วน`,"errorHandler.requestID.tooltip.cta.copied-success":`คัดลอกแล้ว !`}})),us=b({default:()=>ds}),ds,fs=v((()=>{ds={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),ps=b({default:()=>ms}),ms,hs=v((()=>{ms={"errorHandler.common-error.permission-denied.site":`Bu eylem için izniniz yok. Site sahibinden izin isteyin.`,"errorHandler.uncommon-error.NotImplemented":`Bu eylem şu anda kullanılamıyor.`,"errorHandler.common-error.conflict":`Bu sayfa başka bir yerde güncellendiği için değişiklikler kaydedilemiyor. Değişikliklerinizi not alın ve sayfayı yenileyip tekrar düzenlemeyi deneyin.`,"errorHandler.common-error.permission-denied.app":`Bu eylemi gerçekleştirme izniniz yok. Uygulama sahibinden izin isteyin.`,"errorHandler.common-error.permission-denied.workspace":`Bu eylemi gerçekleştirme izniniz yok. Çalışma alanı sahibinden izin isteyin.`,"errorHandler.common-error.CheckStatus.cta":`Durum Sayfası`,"errorHandler.common-error.refresh.cta":`Yenile`,"errorHandler.common-error.noConnection":`Çevrim dışısınız. Bağlantınızı kontrol edip tekrar deneyin.`,"errorHandler.common-error.resource-exhausted":`Kısa sürede çok fazla eylem gerçekleştirildi. Bir dakika bekleyip tekrar deneyin.`,"errorHandler.common-error.unauthenticated.cta":`Giriş Yap`,"errorHandler.common-error.goBack.cta":`Geri Dön`,"errorHandler.common-error.not-found":`Bu öge artık mevcut değil.`,"errorHandler.common-error.captchaRequired.verify.cta":`Doğrula`,"errorHandler.common-error.tryAgain.cta":`Tekrar Dene`,"errorHandler.requestID.tooltip.cta":`Kimliği kopyala`,"errorHandler.common-error.permission-denied":`Gerekli izinleriniz yok. Site sahibinden erişim isteyin.`,"errorHandler.requestID.tooltip.description":`Bu hatayı müşteri hizmetlerine bildirirseniz araştırılabilmesi için bu talep kimliğini paylaşın.`,"errorHandler.common-error.technicalIssue-unmappedError":`Bizim tarafımızda teknik bir sorun oluştu. Tekrar deneyin veya ekranı yenileyin.`,"errorHandler.common-error.unauthenticated":`Çıkış yaptınız. Devam etmek için tekrar giriş yapın.`,"errorHandler.common-error.networkError":`Ağınıza bağlanılırken bir sorun oluştu. Bağlantınızı kontrol edip tekrar deneyin.`,"errorHandler.common-error.technicalIssue":`Bizim tarafımızda teknik bir sorun oluştu. Tekrar deneyin veya ekranı yenileyin.`,"errorHandler.common-error.captchaRequired":`Devam etmek için insan olduğunuzu doğrulayın.`,"errorHandler.common-error.technicalIssue.generic":`Bizim tarafımızda teknik bir sorun oluştu. Tekrar deneyin veya ekranı yenileyin.`,"errorHandler.common-error.validationBasic":`Bazı alanlardaki bilgiler geçersiz veya eksik.`,"errorHandler.requestID.tooltip.cta.copied-success":`Kopyalandı!`}})),gs=b({default:()=>_s}),_s,vs=v((()=>{_s={"errorHandler.common-error.permission-denied.site":`У вас немає дозволу виконувати цю дію. Попросіть власника сайту надати вам доступ.`,"errorHandler.uncommon-error.NotImplemented":`Ця дія зараз недоступна.`,"errorHandler.common-error.conflict":`Не вдається зберегти зміни, бо цю сторінку оновлено в іншому місці. Запишіть зміни, оновіть і спробуйте відредагувати знову.`,"errorHandler.common-error.permission-denied.app":`У вас немає дозволу виконувати цю дію. Попросіть власника додатка надати вам доступ.`,"errorHandler.common-error.permission-denied.workspace":`У вас немає дозволу виконувати цю дію. Попросіть власника робочого простору надати вам доступ.`,"errorHandler.common-error.CheckStatus.cta":`Перевірте сторінку статусу`,"errorHandler.common-error.refresh.cta":`Перезавантажити`,"errorHandler.common-error.noConnection":`Схоже, що ви не в мережі. Перевірте підключення до інтернету та повторіть спробу.`,"errorHandler.common-error.resource-exhausted":`Забагато дій виконано зашвидко. Почекайте хвилину та спробуйте знову.`,"errorHandler.common-error.unauthenticated.cta":`Увійдіть`,"errorHandler.common-error.goBack.cta":`Повернутися`,"errorHandler.common-error.not-found":`Схоже, що цього більше не існує.`,"errorHandler.common-error.captchaRequired.verify.cta":`Підтвердити`,"errorHandler.common-error.tryAgain.cta":`Спробувати знову`,"errorHandler.requestID.tooltip.cta":`Копіювати ідентифікатор`,"errorHandler.common-error.permission-denied":`У вас немає потрібних дозволів. Попросіть власника надати вам доступ.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`У нас виникла технічна проблема. Спробуйте знову або оновіть.`,"errorHandler.common-error.unauthenticated":`Ви вийшли з акаунта. Увійдіть, щоб продовжити.`,"errorHandler.common-error.networkError":`Виникла проблема з підключенням до вашої мережі. Перевірте підключення до інтернету та повторіть спробу.`,"errorHandler.common-error.technicalIssue":`У нас виникла технічна проблема. Спробуйте знову або оновіть.`,"errorHandler.common-error.captchaRequired":`Щоб продовжити, підтвердьте, що ви людина.`,"errorHandler.common-error.technicalIssue.generic":`У нас виникла технічна проблема. Спробуйте знову або оновіть.`,"errorHandler.common-error.validationBasic":`Інформація в деяких полях відсутня або недійсна.`,"errorHandler.requestID.tooltip.cta.copied-success":`Скопійовано`}})),ys=b({default:()=>bs}),bs,xs=v((()=>{bs={"errorHandler.common-error.permission-denied.site":`Bạn không có quyền thực hiện thao tác này. Yêu cầu quyền truy cập từ chủ trang web.`,"errorHandler.uncommon-error.NotImplemented":`Hành động này hiện không khả dụng.`,"errorHandler.common-error.conflict":`Không thể lưu thay đổi vì trang này đã được cập nhật ở một nơi khác. Ghi chú lại các thay đổi của bạn, sau đó làm mới và thử chỉnh sửa lại.`,"errorHandler.common-error.permission-denied.app":`Bạn không có quyền thực hiện hành động này. Hãy cầu quyền truy cập từ chủ sở hữu ứng dụng.`,"errorHandler.common-error.permission-denied.workspace":`Bạn không có quyền thực hiện hành động này. Hãy yêu cầu quyền truy cập từ chủ sở hữu vùng làm việc.`,"errorHandler.common-error.CheckStatus.cta":`Kiểm tra trang trạng thái`,"errorHandler.common-error.refresh.cta":`Làm mới`,"errorHandler.common-error.noConnection":`Có vẻ bạn đang ngoại tuyến. Hãy kiểm tra kết nối rồi thử lại.`,"errorHandler.common-error.resource-exhausted":`Đã thực hiện quá nhiều thao tác trong thời gian ngắn. Hãy đợi một lát và thử lại.`,"errorHandler.common-error.unauthenticated.cta":`Đăng nhập`,"errorHandler.common-error.goBack.cta":`Quay lại`,"errorHandler.common-error.not-found":`Có vẻ như nội dung này không tồn tại nữa.`,"errorHandler.common-error.captchaRequired.verify.cta":`xác minh`,"errorHandler.common-error.tryAgain.cta":`Thử lại`,"errorHandler.requestID.tooltip.cta":`Sao chép ID`,"errorHandler.common-error.permission-denied":`Bạn không có đủ các quyền cần thiết. Hãy yêu cầu quyền truy cập từ chủ sở hữu.`,"errorHandler.requestID.tooltip.description":`Nếu bạn báo cáo lỗi này cho bộ phận Chăm sóc khách hàng, hãy chia sẻ ID yêu cầu này để họ có thể điều tra.`,"errorHandler.common-error.technicalIssue-unmappedError":`Chúng tôi đã gặp phải vấn đề kỹ thuật. Hãy thử lại hoặc làm mới.`,"errorHandler.common-error.unauthenticated":`Bạn đã đăng xuất. Đăng nhập lại để tiếp tục.`,"errorHandler.common-error.networkError":`Đã xảy ra sự cố khi kết nối với mạng của bạn. Hãy kiểm tra kết nối rồi thử lại.`,"errorHandler.common-error.technicalIssue":`Chúng tôi đã gặp phải vấn đề kỹ thuật. Hãy thử lại hoặc làm mới.`,"errorHandler.common-error.captchaRequired":`Để tiếp tục, hãy xác minh bạn là con người.`,"errorHandler.common-error.technicalIssue.generic":`Chúng tôi đã gặp phải vấn đề kỹ thuật. Hãy thử lại hoặc làm mới.`,"errorHandler.common-error.validationBasic":`Một số trường có thông tin không hợp lệ hoặc thiếu thông tin.`,"errorHandler.requestID.tooltip.cta.copied-success":`Đã sao chép!`}})),Ss=b({default:()=>Cs}),Cs,ws=v((()=>{Cs={"errorHandler.common-error.permission-denied.site":`您沒有執行此操作的權限。請向網站負責人請求存取權限。`,"errorHandler.uncommon-error.NotImplemented":`此操作暫不可用。`,"errorHandler.common-error.conflict":`無法儲存變更,因為頁面已在別處更新。請記下變更,然後重新整理並嘗試再次編輯。`,"errorHandler.common-error.permission-denied.app":`您沒有權限執行這個操作。請向應用程式負責人請求存取權限。`,"errorHandler.common-error.permission-denied.workspace":`您沒有權限執行這個操作。請向工作空間負責人請求存取權限。`,"errorHandler.common-error.CheckStatus.cta":`檢查狀態頁面`,"errorHandler.common-error.refresh.cta":`重新整理`,"errorHandler.common-error.noConnection":`您似乎已離線。請檢查連線並再試一次。`,"errorHandler.common-error.resource-exhausted":`過快完成過多操作。請稍候片刻,然後再試一次。`,"errorHandler.common-error.unauthenticated.cta":`登入`,"errorHandler.common-error.goBack.cta":`返回`,"errorHandler.common-error.not-found":`這似乎不再存在。`,"errorHandler.common-error.captchaRequired.verify.cta":`驗證`,"errorHandler.common-error.tryAgain.cta":`再試一次`,"errorHandler.requestID.tooltip.cta":`複製 ID`,"errorHandler.common-error.permission-denied":`您沒有必要的權限。請向負責人請求存取權限。`,"errorHandler.requestID.tooltip.description":`如果您向顧客服務報告此錯誤,請提供此請求 ID 以便調查。`,"errorHandler.common-error.technicalIssue-unmappedError":`我們這邊發生技術問題。請再試一次或者重新整理。`,"errorHandler.common-error.unauthenticated":`您已登出。若要繼續,請重新登入。`,"errorHandler.common-error.networkError":`連結到網路時發生問題。請檢查連線並再試一次。`,"errorHandler.common-error.technicalIssue":`我們這邊發生技術問題。請再試一次或者重新整理。`,"errorHandler.common-error.captchaRequired":`若要繼續,請驗證您是人類。`,"errorHandler.common-error.technicalIssue.generic":`我們這邊發生技術問題。請再試一次或者重新整理。`,"errorHandler.common-error.validationBasic":`某些欄位具有無效資訊或缺少資訊。`,"errorHandler.requestID.tooltip.cta.copied-success":`已複製!`}})),Ts={ar:()=>L(()=>Promise.resolve().then(()=>(Ca(),xa)),void 0,import.meta.url),bg:()=>L(()=>Promise.resolve().then(()=>(Ea(),wa)),void 0,import.meta.url),ca:()=>L(()=>Promise.resolve().then(()=>(ka(),Da)),void 0,import.meta.url),cs:()=>L(()=>Promise.resolve().then(()=>(Ma(),Aa)),void 0,import.meta.url),da:()=>L(()=>Promise.resolve().then(()=>(Fa(),Na)),void 0,import.meta.url),de:()=>L(()=>Promise.resolve().then(()=>(Ra(),Ia)),void 0,import.meta.url),el:()=>L(()=>Promise.resolve().then(()=>(Va(),za)),void 0,import.meta.url),en:()=>L(()=>Promise.resolve().then(()=>(Wa(),Ha)),void 0,import.meta.url),es:()=>L(()=>Promise.resolve().then(()=>(qa(),Ga)),void 0,import.meta.url),fi:()=>L(()=>Promise.resolve().then(()=>(Xa(),Ja)),void 0,import.meta.url),fr:()=>L(()=>Promise.resolve().then(()=>($a(),Za)),void 0,import.meta.url),he:()=>L(()=>Promise.resolve().then(()=>(no(),eo)),void 0,import.meta.url),hi:()=>L(()=>Promise.resolve().then(()=>(ao(),ro)),void 0,import.meta.url),hr:()=>L(()=>Promise.resolve().then(()=>(co(),oo)),void 0,import.meta.url),hu:()=>L(()=>Promise.resolve().then(()=>(fo(),lo)),void 0,import.meta.url),id:()=>L(()=>Promise.resolve().then(()=>(ho(),po)),void 0,import.meta.url),it:()=>L(()=>Promise.resolve().then(()=>(vo(),go)),void 0,import.meta.url),ja:()=>L(()=>Promise.resolve().then(()=>(xo(),yo)),void 0,import.meta.url),ko:()=>L(()=>Promise.resolve().then(()=>(wo(),So)),void 0,import.meta.url),lt:()=>L(()=>Promise.resolve().then(()=>(Do(),To)),void 0,import.meta.url),lv:()=>L(()=>Promise.resolve().then(()=>(Ao(),Oo)),void 0,import.meta.url),ms:()=>L(()=>Promise.resolve().then(()=>(No(),jo)),void 0,import.meta.url),nl:()=>L(()=>Promise.resolve().then(()=>(Io(),Po)),void 0,import.meta.url),no:()=>L(()=>Promise.resolve().then(()=>(zo(),Lo)),void 0,import.meta.url),pl:()=>L(()=>Promise.resolve().then(()=>(Ho(),Bo)),void 0,import.meta.url),pt:()=>L(()=>Promise.resolve().then(()=>(Go(),Uo)),void 0,import.meta.url),ro:()=>L(()=>Promise.resolve().then(()=>(Jo(),Ko)),void 0,import.meta.url),ru:()=>L(()=>Promise.resolve().then(()=>(Zo(),Yo)),void 0,import.meta.url),sk:()=>L(()=>Promise.resolve().then(()=>(es(),Qo)),void 0,import.meta.url),sl:()=>L(()=>Promise.resolve().then(()=>(rs(),ts)),void 0,import.meta.url),sv:()=>L(()=>Promise.resolve().then(()=>(os(),is)),void 0,import.meta.url),th:()=>L(()=>Promise.resolve().then(()=>(ls(),ss)),void 0,import.meta.url),tl:()=>L(()=>Promise.resolve().then(()=>(fs(),us)),void 0,import.meta.url),tr:()=>L(()=>Promise.resolve().then(()=>(hs(),ps)),void 0,import.meta.url),uk:()=>L(()=>Promise.resolve().then(()=>(vs(),gs)),void 0,import.meta.url),vi:()=>L(()=>Promise.resolve().then(()=>(xs(),ys)),void 0,import.meta.url),zh:()=>L(()=>Promise.resolve().then(()=>(ws(),Ss)),void 0,import.meta.url)},Es=e=>typeof e.default==`object`?e.default:e,Ds=async e=>{let t=Ts[e];if(t==null)throw Error(`@wix/cairo: Failed to find translations for locale '${e}'`);return Es(await t())},Os=class{constructor(e){W(this,`i18n`,void 0),W(this,`_initPromise`,void 0),W(this,`_ready`,void 0),W(this,`translate`,(e,t)=>this.i18n.t(e,t)),W(this,`getTranslateFn`,async()=>(await this.getInitPromise(),this.translate)),this.i18n=e.createI18n({asyncMessagesLoader:Ds,disableAutoInit:!0}),this._initPromise=new Promise(async e=>{var t,n;let r=!1,i=(t,n,a)=>{var o,s;t===`en`&&((o=(s=this.i18n).off)==null||o.call(s,`failedLoading`,i),r=!0,e(a))};(t=(n=this.i18n).on)==null||t.call(n,`failedLoading`,i);try{if(await this.i18n.init(),r)return;e(null),this._ready=!0}catch(t){e(t)}})}async getInitPromise(){let e=await this._initPromise;if(e)throw e}};function ks(e,t){var n;let{errorAccessor:r,errorCodesMap:i}=t,{biLogger:a}=e,{errorHandlerState:o,applicationError:s}=r,c=s?.code,l=i==null||(n=i.applicationError)==null?void 0:n[c];a.report(aa(ea)({error_opt_out:l===!1,is_override_error:String(i!=null),session_id:o?.sessionId}))}for(var G=[],As=0;As<256;++As)G.push((As+256).toString(16).slice(1));function js(e,t=0){return(G[e[t+0]]+G[e[t+1]]+G[e[t+2]]+G[e[t+3]]+`-`+G[e[t+4]]+G[e[t+5]]+`-`+G[e[t+6]]+G[e[t+7]]+`-`+G[e[t+8]]+G[e[t+9]]+`-`+G[e[t+10]]+G[e[t+11]]+G[e[t+12]]+G[e[t+13]]+G[e[t+14]]+G[e[t+15]]).toLowerCase()}var Ms,Ns=new Uint8Array(16);function Ps(){if(!Ms&&(Ms=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ms))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return Ms(Ns)}var Fs={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Is(e,t,n){if(Fs.randomUUID&&!t&&!e)return Fs.randomUUID();e||={};var r=e.random||(e.rng||Ps)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n||=0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return js(r)}function Ls(e,t){let{message:n,action:r,errorAccessor:i,errorResolution:a}=t,{biLogger:o,commonErrorsMapState:s,translations:c}=e,{errorHandlerState:l}=i,{consumerResolvedError:u}=a??{};o.report(aa(ta)({session_id:l?.sessionId,translated_message:n,action_text:r?.text,is_consumer_resolved_error:u!=null,common_errors_load_failed:String(s.commonErrors==null),isEn:c.i18n.language===`en`}))}function Rs(e,t){let{message:n,action:r,errorAccessor:i}=t,{biLogger:a,translations:o}=e;a.report(aa(na)({session_id:i.errorHandlerState?.sessionId,displayed_message:n,displayed_action:r?.text,action_was_provided:String(r?.onClick!=null),isEn:o.i18n.language===`en`}))}var zs=b({createCommonErrorsMapping:()=>Bs,createGetNetworkErrorShowErrorProps:()=>Us,getConnectionErrorShowErrorProps:()=>Vs,getDefaultErrorShowErrorProps:()=>Hs,setCommonErrors:()=>Ws});function Bs(e,t){let{webWindow:n}=t,r=n?.location;return{applicationError:{CAPTCHA_REQUIRED:()=>({message:e(`errorHandler.common-error.captchaRequired`)})},statusCodeError:{UNAUTHENTICATED:()=>({message:e(`errorHandler.common-error.unauthenticated`),action:n?{text:e(`errorHandler.common-error.unauthenticated.cta`),onClick:()=>{let e=new URL(`https://users.wix.com/signin`);e.searchParams.set(`redirectTo`,window.location.href),n.open==null||n.open(e.href,`_blank`)}}:void 0}),INVALID_ARGUMENT:()=>({message:e(`errorHandler.common-error.validationBasic`)}),PERMISSION_DENIED:()=>({message:e(`errorHandler.common-error.permission-denied.site`)}),NOT_FOUND:()=>({message:e(`errorHandler.common-error.not-found`)}),ALREADY_EXISTS:()=>({message:e(`errorHandler.common-error.conflict`),action:r?{text:e(`errorHandler.common-error.refresh.cta`),onClick:()=>{r.reload()}}:void 0}),UNAVAILABLE:()=>({message:e(`errorHandler.common-error.technicalIssue`)}),RESOURCE_EXHAUSTED:()=>({message:e(`errorHandler.common-error.resource-exhausted`)}),BAD_GATEWAY:()=>({message:e(`errorHandler.common-error.technicalIssue`)}),GATEWAY_TIMEOUT:()=>({message:e(`errorHandler.common-error.technicalIssue`)}),INTERNAL:()=>({message:e(`errorHandler.common-error.technicalIssue`)})}}}function Vs(e){return{message:e(`errorHandler.common-error.noConnection`)}}function Hs(e){return{message:e(`errorHandler.common-error.technicalIssue`)}}function Us(e){return t=>{let n=t.exceptionMessage?.toLowerCase();return n===`network error`?{message:e(`errorHandler.common-error.networkError`)}:n===`request aborted`||n===`timeout exceeded`?{message:e(`errorHandler.common-error.technicalIssue.generic`)}:{message:e(`errorHandler.common-error.technicalIssue-unmappedError`)}}}async function Ws(e){let{translations:t,errorMonitor:n}=e;try{let n=await t.getTranslateFn();e.commonErrors={commonErrorsMap:Bs(n,e),connectionErrorShowErrorProps:Vs(n),defaultErrorShowErrorProps:Hs(n),getNetworkErrorShowErrorProps:Us(n)}}catch(e){n.captureException(e)}}var Gs=v((()=>{})),Ks=()=>L(()=>Promise.resolve().then(()=>(Gs(),zs)),void 0,import.meta.url),qs=class{constructor(e){W(this,`translations`,void 0),W(this,`errorMonitor`,void 0),W(this,`webWindow`,void 0),W(this,`getErrorCodesMap`,void 0),W(this,`_initPromise`,void 0),W(this,`commonErrors`,void 0),this.translations=e.translations,this.errorMonitor=e.errorMonitor,this.webWindow=e.webWindow,this.getErrorCodesMap=e.getErrorCodesMap??Ks,this._initPromise=this._init()}async getInitPromise(){let e=await this._initPromise;if(e)throw e}async _init(){try{let{setCommonErrors:e}=await this.getErrorCodesMap();return await e(this),null}catch(e){return e}}};function Js(e,t){let{biLogger:n}=e,{errorAccessor:r}=t,{errorHandlerState:i}=r,a=i?.sessionId;a&&n.report(aa(ra)({session_id:a}))}var Ys=class{constructor(e){var t=this;W(this,`errorHandler`,void 0),W(this,`withErrorHandler`,async function(e,n,r){r===void 0&&(r={});let{errorHandler:i}=t,a={errorCodesMap:{validationError:n,statusCodeError:r.statusCodesOverrides,applicationError:Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r&&(e[n]=(e,t)=>r(t)),e},{}),serverError:r.serverErrorOverride}},o=await i.withErrorHandler(e,a);if(typeof Response<`u`&&o instanceof Response){let e=new ba({error:o});i._setErrorHandlerErrorCodesMap(e,a);let{errorHandlerState:t}=e;!o.ok&&t&&(t.responseData=await o.json().catch(()=>null))}return o}),W(this,`getResolvedError`,e=>{let{errorHandler:t}=this,{errorMonitor:n}=t;try{let n=new ba({error:e}),{httpError:r,errorHandlerState:i}=n,a=t._resolveError(n),o=i?.resolvedError,s=o?.message??`This action wasn't completed due to a technical issue.`,c=o?.action,l=o?.requestId??r?.requestId;return Ls(t,{message:s,action:c,errorAccessor:n,errorResolution:a}),{message:s,action:c,requestId:l,...o}}catch(e){throw console.error(e),n.captureException(e),e}}),W(this,`showError`,(e,t)=>{this.errorHandler.showError(e,t)}),W(this,`reportRetryAttempt`,e=>{this.errorHandler.reportRetryAttempt(e)}),W(this,`handleError`,(e,t)=>{let{errorHandler:n}=this;typeof Response<`u`&&e instanceof Response&&e.ok||n.handleError(e,t)}),this.errorHandler=e}};function Xs(e){return e==null?e:e.split(`,`)[0]?.trim()}var Zs=class{constructor(e){var t=this;W(this,`environment`,void 0),W(this,`biDefaultsOverrides`,void 0),W(this,`biLogger`,void 0),W(this,`errorMonitor`,void 0),W(this,`experiments`,void 0),W(this,`platformShowError`,void 0),W(this,`translations`,void 0),W(this,`commonErrorsMapState`,void 0),W(this,`onlineManager`,void 0),W(this,`webWindow`,void 0),W(this,`_skipWaitTranslations`,void 0),W(this,`v2`,void 0),W(this,`handleError`,function(e,n){if(n===void 0&&(n={}),t._isErrorHandlerDisabled())return;let{errorMonitor:r}=t;try{let r=new ba({error:e});t._setErrorHandlerSessionId(r),oa(t,{errorAccessor:r,requestOptions:n.requestOptions})}catch(e){console.error(e),r.captureException(e)}}),W(this,`withErrorHandler`,async(e,t)=>{try{return await e()}catch(e){let n=new ba({error:e});throw this._setErrorHandlerErrorCodesMap(n,t),e}}),W(this,`getResolvedError`,e=>{let{errorMonitor:t}=this;try{let t=new ba({error:e}),{applicationError:n,validationError:r,httpError:i,errorHandlerState:a}=t,o=this._resolveError(t),s=a?.resolvedError,c=s?.message??`This action wasn't completed due to a technical issue.`;return Ls(this,{message:c,action:s?.action,errorAccessor:t,errorResolution:o}),{message:c,action:s?.action,validationError:r,applicationError:n,httpError:i,requestId:Xs(i?.requestId)}}catch(e){throw console.error(e),t.captureException(e),e}}),W(this,`reportRetryAttempt`,e=>{let{errorMonitor:t}=this;try{let t=new ba({error:e});Js(this,{errorAccessor:t})}catch(e){console.error(e),t.captureException(e)}}),W(this,`showError`,(e,t)=>{let{platformShowError:n,errorMonitor:r}=this;if(n)try{let r=new ba({error:e}),{errorHandlerState:i}=r;this._resolveError(r);let a=i?.resolvedError,o={...a,...t},s=t?.message??a?.message??`This action wasn't completed due to a technical issue.`,c=t?.action??a?.action;Rs(this,{message:s,action:c,errorAccessor:r}),n({...o,requestId:Xs(r.httpError?.requestId),message:s,action:c!=null&&c.onClick?{text:c.text,onClick:c.onClick}:void 0})}catch(e){console.error(e),r.captureException(e)}}),this.environment=e.environment,this.biDefaultsOverrides=e.biDefaultsOverrides,this.biLogger=da(e),this.errorMonitor=e.createErrorMonitor({dsn:`https://831e1d96e7944c6aae0c9ed9d6babd35@sentry.wixpress.com/5896`}),this.experiments=e.createExperiments==null?void 0:e.createExperiments({scopes:[`error-handler`]}),this.platformShowError=e.showError,this.translations=new Os(e),this.onlineManager=e.onlineManager??(typeof navigator<`u`?navigator:{onLine:!0}),this.webWindow=e.webWindow??(typeof window<`u`?window:void 0),this.commonErrorsMapState=new qs(this),this.v2=new Ys(this)}_setErrorHandlerSessionId(e){let{errorHandlerState:t}=e;t&&(t.sessionId=Is())}_setErrorHandlerResolvedError(e,t){let{errorHandlerState:n}=e;n&&(n.resolvedError=t.errorToShow)}_setErrorHandlerErrorCodesMap(e,t){t===void 0&&(t={});let{errorCodesMap:n}=t;ks(this,{errorAccessor:e,errorCodesMap:n});let{errorHandlerState:r}=e;r&&(r.errorCodesMap=n)}_isErrorHandlerDisabled(){let{experiments:e}=this;return e!=null&&!e.enabled(`specs.os.EnableErrorHandlerInEditor`)}_resolveError(e,t){if(t===void 0&&(t={}),this._isErrorHandlerDisabled())return;let n=t.errorCodesMap??e.errorHandlerState?.errorCodesMap,r=ua(this,{errorAccessor:e,errorCodesMap:n});return this._setErrorHandlerResolvedError(e,r),r}toJSON(){return{}}},K=e=>typeof e==`string`,Qs=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},$s=e=>e==null?``:``+e,ec=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},tc=/###/g,nc=e=>e&&e.indexOf(`###`)>-1?e.replace(tc,`.`):e,rc=e=>!e||K(e),ic=(e,t,n)=>{let r=K(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(rc(e))return{};let t=nc(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return rc(e)?{}:{obj:e,k:nc(r[i])}},ac=(e,t,n)=>{let{obj:r,k:i}=ic(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=ic(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=ic(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},oc=(e,t,n,r)=>{let{obj:i,k:a}=ic(e,t,Object);i[a]=i[a]||[],i[a].push(n)},sc=(e,t)=>{let{obj:n,k:r}=ic(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},cc=(e,t,n)=>{let r=sc(e,n);return r===void 0?sc(t,n):r},lc=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?K(e[r])||e[r]instanceof String||K(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):lc(e[r],t[r],n):e[r]=t[r]);return e},uc=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),dc={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},fc=e=>K(e)?e.replace(/[&<>"'\/]/g,e=>dc[e]):e,pc=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},mc=[` `,`,`,`?`,`!`,`;`],hc=new pc(20),gc=(e,t,n)=>{t||=``,n||=``;let r=mc.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=hc.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},_c=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},vc=e=>e?.replace(/_/g,`-`),yc={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)}},bc=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||yc,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,n,r){return r&&!this.debug?null:(K(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},xc=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+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,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},Sc=class extends xc{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):K(n)&&i?o.push(...n.split(i)):o.push(n)));let s=sc(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!K(n)?s:_c(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),ac(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(K(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=sc(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?lc(s,n,i):s={...s,...n},ac(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=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}},Cc={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},wc=Symbol(`i18next/PATH_KEY`);function Tc(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===wc?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Ec(e,t){let{[wc]:n}=e(Tc()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var Dc={},Oc=e=>!K(e)&&typeof e!=`boolean`&&typeof e!=`number`,kc=class e extends xc{constructor(e,t={}){super(),ec([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=bc.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=Oc(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!gc(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:K(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:K(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=Ec(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?Ec(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!K(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,ee=b&&!i.ordinal&&i.count===0,w=ee&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,T=m;y&&!m&&x&&(T=w);let E=Oc(T),te=Object.prototype.toString.apply(T);if(y&&T&&E&&_.indexOf(te)<0&&!(K(v)&&Array.isArray(T))){if(!i.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(h,T,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(T),t=e?[]:{},n=e?g:h;for(let e in T)if(Object.prototype.hasOwnProperty.call(T,e)){let r=`${n}${o}${e}`;t[e]=x&&!m?this.translate(r,{...i,defaultValue:Oc(w)?w[e]:void 0,joinArrays:!1,ns:c}):this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=T[e])}m=t}}else if(y&&K(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=w),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&w!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?w:m),o){let e=this.resolve(s,{...i,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,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);ee&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||w)})}):n(e,s,w))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=K(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!K(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=K(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=Cc.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return K(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?Ec(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!K(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(K(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!Dc[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(Dc[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.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!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!K(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},Ac=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=bc.create(`languageUtils`)}getScriptPartFromCode(e){if(e=vc(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=vc(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(K(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),K(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return K(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):K(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},jc={zero:0,one:1,two:2,few:3,many:4,other:5},Mc={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},Nc=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=bc.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=vc(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),Mc;if(!e.match(/-|_/))return Mc;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>jc[e]-jc[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},Pc=(e,t,n,r=`.`,i=!0)=>{let a=cc(e,t,n);return!a&&i&&K(n)&&(a=_c(e,n,r),a===void 0&&(a=_c(t,n,r))),a},Fc=e=>e.replace(/\$/g,`$$$$`),Ic=class{constructor(e={}){this.logger=bc.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?fc:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?uc(i):a||`{{`,this.suffix=o?uc(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?uc(d):f||uc(`$t(`),this.nestingSuffix=p?uc(p):m||uc(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new 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,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=Pc(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(Pc(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Fc(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Fc(this.escape(e)):Fc(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0){if(typeof l==`function`){let t=l(e,i,r);a=K(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``}else!K(a)&&!this.useRawValueToEscape&&(a=$s(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${uc(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!K(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!K(i))return i;K(i)||(i=$s(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},Lc=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Rc=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(vc(r),i),t[o]=s),s(n)}},zc=e=>(t,n,r)=>e(vc(n),r)(t),Bc=class{constructor(e={}){this.logger=bc.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Rc:zc;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Rc(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=Lc(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}},Vc=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Hc=class extends xc{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=bc.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{oc(n.loaded,[i],a),Vc(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{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(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();K(e)&&(e=this.languageUtils.toResolveHierarchy(e)),K(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(n!=null&&n!==``){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}},Uc=()=>({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(typeof e[1]==`object`&&(t=e[1]),K(e[1])&&(t.defaultValue=e[1]),K(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Wc=e=>(K(e.ns)&&(e.ns=[e.ns]),K(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),K(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),Gc=()=>{},Kc=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},qc=`__i18next_supportNoticeShown`,Jc=()=>!!(typeof globalThis<`u`&&globalThis[qc]||typeof process<`u`&&{}.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`),Yc=()=>{typeof globalThis<`u`&&(globalThis[qc]=!0)},Xc=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)),q=class e extends xc{constructor(e={},t){if(super(),this.options=Wc(e),this.services={},this.logger=bc,this.modules={external:[]},Kc(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,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(K(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=Uc();this.options={...n,...this.options,...Wc(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!Xc(this)&&!Jc()&&(typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`),Yc());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?bc.init(r(this.modules.logger),this.options):bc.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Bc;let t=new Ac(this.options);this.store=new Sc(this.options.resources,this.options);let i=this.services;i.logger=bc,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new Nc(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.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===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new Ic(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Hc(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new kc(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||=Gc,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(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 i=Qs(),a=()=>{let e=(e,n)=>{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),i.resolve(n),t(e,n)};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?a():setTimeout(a,0),i}loadResources(e,t=Gc){let n=t,r=K(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):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),n(e)})}else n(null)}reloadResources(e,t,n){let r=Qs();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=Gc,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}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 e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&Cc.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let 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&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=Qs();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=K(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(K(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=Ec(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=Ec(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=Ec(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return K(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}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;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Qs();return this.options.ns?(K(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=Qs();K(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(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{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new Ac(Uc());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Gc){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Sc(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...Uc().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new Ic(n)}return a.translator=new kc(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();q.createInstance,q.dir,q.init,q.loadResources,q.reloadResources,q.use,q.changeLanguage,q.getFixedT,q.t,q.exists,q.setDefaultNamespace,q.hasLoadedNamespace,q.loadNamespaces,q.loadLanguages;function Zc(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}function i(){return!e||typeof e==`string`}for(var a=typeof t==`string`?t.split(`.`):[].concat(t);a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),e=e[o]}return i()?{}:{obj:e,k:r(a.shift())}}function Qc(e,t,n){var r=Zc(e,t,Object),i=r.obj,a=r.k;i[a]=n}function $c(e,t){var n=Zc(e,t),r=n.obj,i=n.k;if(r)return r[i]}var el=[],tl=el.forEach,nl=el.slice;function rl(e){return tl.call(nl.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var il=function(e,t){return il=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},il(e,t)};function al(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);il(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var J=function(){return J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},J.apply(this,arguments)};function ol(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function sl(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function cl(e,t){var n=t&&t.cache?t.cache:vl,r=t&&t.serializer?t.serializer:gl;return(t&&t.strategy?t.strategy:pl)(e,{cache:n,serializer:r})}function ll(e){return e==null||typeof e==`number`||typeof e==`boolean`}function ul(e,t,n,r){var i=ll(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function dl(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}function fl(e,t,n,r,i){return n.bind(t,e,r,i)}function pl(e,t){var n=e.length===1?ul:dl;return fl(e,this,n,t.cache.create(),t.serializer)}function ml(e,t){return fl(e,this,dl,t.cache.create(),t.serializer)}function hl(e,t){return fl(e,this,ul,t.cache.create(),t.serializer)}var gl=function(){return JSON.stringify(arguments)},_l=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),vl={create:function(){return new _l}},yl={variadic:ml,monadic:hl},Y;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`})(Y||={});var X;(function(e){e[e.literal=0]=`literal`,e[e.argument=1]=`argument`,e[e.number=2]=`number`,e[e.date=3]=`date`,e[e.time=4]=`time`,e[e.select=5]=`select`,e[e.plural=6]=`plural`,e[e.pound=7]=`pound`,e[e.tag=8]=`tag`})(X||={});var bl;(function(e){e[e.number=0]=`number`,e[e.dateTime=1]=`dateTime`})(bl||={});function xl(e){return e.type===X.literal}function Sl(e){return e.type===X.argument}function Cl(e){return e.type===X.number}function wl(e){return e.type===X.date}function Tl(e){return e.type===X.time}function El(e){return e.type===X.select}function Dl(e){return e.type===X.plural}function Ol(e){return e.type===X.pound}function kl(e){return e.type===X.tag}function Al(e){return!!(e&&typeof e==`object`&&e.type===bl.number)}function jl(e){return!!(e&&typeof e==`object`&&e.type===bl.dateTime)}var Ml=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Nl=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Pl(e){var t={};return e.replace(Nl,function(e){var n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}var Fl=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Il(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);for(var t=e.split(Fl).filter(function(e){return e.length>0}),n=[],r=0,i=t;r<i.length;r++){var a=i[r].split(`/`);if(a.length===0)throw Error(`Invalid number skeleton`);for(var o=a[0],s=a.slice(1),c=0,l=s;c<l.length;c++)if(l[c].length===0)throw Error(`Invalid number skeleton`);n.push({stem:o,options:s})}return n}function Ll(e){return e.replace(/^(.*?)-/,``)}var Rl=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,zl=/^(@+)?(\+|#+)?[rs]?$/g,Bl=/(\*)(0+)|(#+)(0+)|(0+)/g,Vl=/^(0+)$/;function Hl(e){var t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(zl,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function Ul(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:case`()`:return{currencySign:`accounting`};case`sign-always`:case`+!`:return{signDisplay:`always`};case`sign-accounting-always`:case`()!`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:case`+?`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:case`()?`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:case`+_`:return{signDisplay:`never`}}}function Wl(e){var t;if(e[0]===`E`&&e[1]===`E`?(t={notation:`engineering`},e=e.slice(2)):e[0]===`E`&&(t={notation:`scientific`},e=e.slice(1)),t){var n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!Vl.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function Gl(e){return Ul(e)||{}}function Kl(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=i.options[0];continue;case`group-off`:case`,_`:t.useGrouping=!1;continue;case`precision-integer`:case`.`:t.maximumFractionDigits=0;continue;case`measure-unit`:case`unit`:t.style=`unit`,t.unit=Ll(i.options[0]);continue;case`compact-short`:case`K`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:case`KK`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t=J(J(J({},t),{notation:`scientific`}),i.options.reduce(function(e,t){return J(J({},e),Gl(t))},{}));continue;case`engineering`:t=J(J(J({},t),{notation:`engineering`}),i.options.reduce(function(e,t){return J(J({},e),Gl(t))},{}));continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue;case`scale`:t.scale=parseFloat(i.options[0]);continue;case`rounding-mode-floor`:t.roundingMode=`floor`;continue;case`rounding-mode-ceiling`:t.roundingMode=`ceil`;continue;case`rounding-mode-down`:t.roundingMode=`trunc`;continue;case`rounding-mode-up`:t.roundingMode=`expand`;continue;case`rounding-mode-half-even`:t.roundingMode=`halfEven`;continue;case`rounding-mode-half-down`:t.roundingMode=`halfTrunc`;continue;case`rounding-mode-half-up`:t.roundingMode=`halfExpand`;continue;case`integer-width`:if(i.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);i.options[0].replace(Bl,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(Vl.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Rl.test(i.stem)){if(i.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);i.stem.replace(Rl,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});var a=i.options[0];a===`w`?t=J(J({},t),{trailingZeroDisplay:`stripIfInteger`}):a&&(t=J(J({},t),Hl(a)));continue}if(zl.test(i.stem)){t=J(J({},t),Hl(i.stem));continue}var o=Ul(i.stem);o&&(t=J(J({},t),o));var s=Wl(i.stem);s&&(t=J(J({},t),s))}return t}var ql={"001":[`H`,`h`],419:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AD:[`H`,`hB`],AE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AI:[`H`,`h`,`hb`,`hB`],AL:[`h`,`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AR:[`h`,`H`,`hB`,`hb`],AS:[`h`,`H`],AT:[`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],AW:[`H`,`hB`],AX:[`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BB:[`h`,`hb`,`H`,`hB`],BD:[`h`,`hB`,`H`],BE:[`H`,`hB`],BF:[`H`,`hB`],BG:[`H`,`hB`,`h`],BH:[`h`,`hB`,`hb`,`H`],BI:[`H`,`h`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BN:[`hb`,`hB`,`h`,`H`],BO:[`h`,`H`,`hB`,`hb`],BQ:[`H`],BR:[`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],BT:[`h`,`H`],BW:[`H`,`h`,`hb`,`hB`],BY:[`H`,`h`],BZ:[`H`,`h`,`hb`,`hB`],CA:[`h`,`hb`,`H`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CD:[`hB`,`H`],CF:[`H`,`h`,`hB`],CG:[`H`,`hB`],CH:[`H`,`hB`,`h`],CI:[`H`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CL:[`h`,`H`,`hB`,`hb`],CM:[`H`,`h`,`hB`],CN:[`H`,`hB`,`hb`,`h`],CO:[`h`,`H`,`hB`,`hb`],CP:[`H`],CR:[`h`,`H`,`hB`,`hb`],CU:[`h`,`H`,`hB`,`hb`],CV:[`H`,`hB`],CW:[`H`,`hB`],CX:[`H`,`h`,`hb`,`hB`],CY:[`h`,`H`,`hb`,`hB`],CZ:[`H`],DE:[`H`,`hB`],DG:[`H`,`h`,`hb`,`hB`],DJ:[`h`,`H`],DK:[`H`],DM:[`h`,`hb`,`H`,`hB`],DO:[`h`,`H`,`hB`,`hb`],DZ:[`h`,`hB`,`hb`,`H`],EA:[`H`,`h`,`hB`,`hb`],EC:[`h`,`H`,`hB`,`hb`],EE:[`H`,`hB`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],ER:[`h`,`H`],ES:[`H`,`hB`,`h`,`hb`],ET:[`hB`,`hb`,`h`,`H`],FI:[`H`],FJ:[`h`,`hb`,`H`,`hB`],FK:[`H`,`h`,`hb`,`hB`],FM:[`h`,`hb`,`H`,`hB`],FO:[`H`,`h`],FR:[`H`,`hB`],GA:[`H`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GE:[`H`,`hB`,`h`],GF:[`H`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GH:[`h`,`H`],GI:[`H`,`h`,`hb`,`hB`],GL:[`H`,`h`],GM:[`h`,`hb`,`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GQ:[`H`,`hB`,`h`,`hb`],GR:[`h`,`H`,`hb`,`hB`],GT:[`h`,`H`,`hB`,`hb`],GU:[`h`,`hb`,`H`,`hB`],GW:[`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],HK:[`h`,`hB`,`hb`,`H`],HN:[`h`,`H`,`hB`,`hb`],HR:[`H`,`hB`],HU:[`H`,`h`],IC:[`H`,`h`,`hB`,`hb`],ID:[`H`],IE:[`H`,`h`,`hb`,`hB`],IL:[`H`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IN:[`h`,`H`],IO:[`H`,`h`,`hb`,`hB`],IQ:[`h`,`hB`,`hb`,`H`],IR:[`hB`,`H`],IS:[`H`],IT:[`H`,`hB`],JE:[`H`,`h`,`hb`,`hB`],JM:[`h`,`hb`,`H`,`hB`],JO:[`h`,`hB`,`hb`,`H`],JP:[`H`,`K`,`h`],KE:[`hB`,`hb`,`H`,`h`],KG:[`H`,`h`,`hB`,`hb`],KH:[`hB`,`h`,`H`,`hb`],KI:[`h`,`hb`,`H`,`hB`],KM:[`H`,`h`,`hB`,`hb`],KN:[`h`,`hb`,`H`,`hB`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],KW:[`h`,`hB`,`hb`,`H`],KY:[`h`,`hb`,`H`,`hB`],KZ:[`H`,`hB`],LA:[`H`,`hb`,`hB`,`h`],LB:[`h`,`hB`,`hb`,`H`],LC:[`h`,`hb`,`H`,`hB`],LI:[`H`,`hB`,`h`],LK:[`H`,`h`,`hB`,`hb`],LR:[`h`,`hb`,`H`,`hB`],LS:[`h`,`H`],LT:[`H`,`h`,`hb`,`hB`],LU:[`H`,`h`,`hB`],LV:[`H`,`hB`,`hb`,`h`],LY:[`h`,`hB`,`hb`,`H`],MA:[`H`,`h`,`hB`,`hb`],MC:[`H`,`hB`],MD:[`H`,`hB`],ME:[`H`,`hB`,`h`],MF:[`H`,`hB`],MG:[`H`,`h`],MH:[`h`,`hb`,`H`,`hB`],MK:[`H`,`h`,`hb`,`hB`],ML:[`H`],MM:[`hB`,`hb`,`H`,`h`],MN:[`H`,`h`,`hb`,`hB`],MO:[`h`,`hB`,`hb`,`H`],MP:[`h`,`hb`,`H`,`hB`],MQ:[`H`,`hB`],MR:[`h`,`hB`,`hb`,`H`],MS:[`H`,`h`,`hb`,`hB`],MT:[`H`,`h`],MU:[`H`,`h`],MV:[`H`,`h`],MW:[`h`,`hb`,`H`,`hB`],MX:[`h`,`H`,`hB`,`hb`],MY:[`hb`,`hB`,`h`,`H`],MZ:[`H`,`hB`],NA:[`h`,`H`,`hB`,`hb`],NC:[`H`,`hB`],NE:[`H`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NI:[`h`,`H`,`hB`,`hb`],NL:[`H`,`hB`],NO:[`H`,`h`],NP:[`H`,`h`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],OM:[`h`,`hB`,`hb`,`H`],PA:[`h`,`H`,`hB`,`hb`],PE:[`h`,`H`,`hB`,`hb`],PF:[`H`,`h`,`hB`],PG:[`h`,`H`],PH:[`h`,`hB`,`hb`,`H`],PK:[`h`,`hB`,`H`],PL:[`H`,`h`],PM:[`H`,`hB`],PN:[`H`,`h`,`hb`,`hB`],PR:[`h`,`H`,`hB`,`hb`],PS:[`h`,`hB`,`hb`,`H`],PT:[`H`,`hB`],PW:[`h`,`H`],PY:[`h`,`H`,`hB`,`hb`],QA:[`h`,`hB`,`hb`,`H`],RE:[`H`,`hB`],RO:[`H`,`hB`],RS:[`H`,`hB`,`h`],RU:[`H`],RW:[`H`,`h`],SA:[`h`,`hB`,`hb`,`H`],SB:[`h`,`hb`,`H`,`hB`],SC:[`H`,`h`,`hB`],SD:[`h`,`hB`,`hb`,`H`],SE:[`H`],SG:[`h`,`hb`,`H`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SI:[`H`,`hB`],SJ:[`H`],SK:[`H`],SL:[`h`,`hb`,`H`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],SO:[`h`,`H`],SR:[`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],ST:[`H`,`hB`],SV:[`h`,`H`,`hB`,`hb`],SX:[`H`,`h`,`hb`,`hB`],SY:[`h`,`hB`,`hb`,`H`],SZ:[`h`,`hb`,`H`,`hB`],TA:[`H`,`h`,`hb`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TD:[`h`,`H`,`hB`],TF:[`H`,`h`,`hB`],TG:[`H`,`hB`],TH:[`H`,`h`],TJ:[`H`,`h`],TL:[`H`,`hB`,`hb`,`h`],TM:[`H`,`h`],TN:[`h`,`hB`,`hb`,`H`],TO:[`h`,`H`],TR:[`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],TW:[`hB`,`hb`,`h`,`H`],TZ:[`hB`,`hb`,`H`,`h`],UA:[`H`,`hB`,`h`],UG:[`hB`,`hb`,`H`,`h`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],UY:[`h`,`H`,`hB`,`hb`],UZ:[`H`,`hB`,`h`],VA:[`H`,`h`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VE:[`h`,`H`,`hB`,`hb`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],VN:[`H`,`h`],VU:[`h`,`H`],WF:[`H`,`hB`],WS:[`h`,`H`],XK:[`H`,`hB`,`h`],YE:[`h`,`hB`,`hb`,`H`],YT:[`H`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],ZW:[`H`,`h`],"af-ZA":[`H`,`h`,`hB`,`hb`],"ar-001":[`h`,`hB`,`hb`,`H`],"ca-ES":[`H`,`h`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],"en-HK":[`h`,`hb`,`H`,`hB`],"en-IL":[`H`,`h`,`hb`,`hB`],"en-MY":[`h`,`hb`,`H`,`hB`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"gu-IN":[`hB`,`hb`,`h`,`H`],"hi-IN":[`hB`,`h`,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ml-IN":[`hB`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],"ta-IN":[`hB`,`h`,`hb`,`H`],"te-IN":[`hB`,`h`,`H`],"zu-ZA":[`H`,`hB`,`hb`,`h`]};function Jl(e,t){for(var n=``,r=0;r<e.length;r++){var i=e.charAt(r);if(i===`j`){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(a&1),s=a<2?1:3+(a>>1),c=`a`,l=Yl(t);for((l==`H`||l==`k`)&&(s=0);s-->0;)n+=c;for(;o-->0;)n=l+n}else n+=i===`J`?`H`:i}return n}function Yl(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}var n=e.language,r;return n!==`root`&&(r=e.maximize().region),(ql[r||``]||ql[n||``]||ql[`${n}-001`]||ql[`001`])[0]}var Xl=RegExp(`^${Ml.source}*`),Zl=RegExp(`${Ml.source}*\$`);function Z(e,t){return{start:e,end:t}}var Ql=!!String.prototype.startsWith&&`_a`.startsWith(`a`,1),$l=!!String.fromCodePoint,eu=!!Object.fromEntries,tu=!!String.prototype.codePointAt,nu=!!String.prototype.trimStart,ru=!!String.prototype.trimEnd,iu=Number.isSafeInteger?Number.isSafeInteger:function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},au=!0;try{au=fu(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`).exec(`a`)?.[0]===`a`}catch{au=!1}var ou=Ql?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},su=$l?String.fromCodePoint:function(){for(var e=[...arguments],t=``,n=e.length,r=0,i;n>r;){if(i=e[r++],i>1114111)throw RangeError(i+` is not a valid code point`);t+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return t},cu=eu?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0];t[a]=i[1]}return t},lu=tu?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r=e.charCodeAt(t),i;return r<55296||r>56319||t+1===n||(i=e.charCodeAt(t+1))<56320||i>57343?r:(r-55296<<10)+(i-56320)+65536}},uu=nu?function(e){return e.trimStart()}:function(e){return e.replace(Xl,``)},du=ru?function(e){return e.trimEnd()}:function(e){return e.replace(Zl,``)};function fu(e,t){return new RegExp(e,t)}var pu;if(au){var mu=fu(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);pu=function(e,t){return mu.lastIndex=t,mu.exec(e)[1]??``}}else pu=function(e,t){for(var n=[];;){var r=lu(e,t);if(r===void 0||yu(r)||bu(r))break;n.push(r),t+=r>=65536?2:1}return su.apply(void 0,n)};var hu=function(){function e(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error(`parser can only be used once`);return this.parseMessage(0,``,!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){var o=this.clonePosition();this.bump(),r.push({type:X.pound,location:Z(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Y.UNMATCHED_CLOSING_TAG,Z(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&gu(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:X.literal,value:`<${r}/>`,location:Z(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!gu(this.char()))return this.error(Y.INVALID_TAG,Z(o,this.clonePosition()));var s=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:X.tag,value:r,children:a,location:Z(n,this.clonePosition())},err:null}:this.error(Y.INVALID_TAG,Z(o,this.clonePosition()))):this.error(Y.UNMATCHED_CLOSING_TAG,Z(s,this.clonePosition()))}return this.error(Y.UNCLOSED_TAG,Z(n,this.clonePosition()))}return this.error(Y.INVALID_TAG,Z(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&vu(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r=``;;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=Z(n,this.clonePosition());return{val:{type:X.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!_u(this.peek()||0))?(this.bump(),`<`):null},e.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39){if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}}else t.push(n);this.bump()}return su.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),su(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Z(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Y.EMPTY_ARGUMENT,Z(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Y.MALFORMED_ARGUMENT,Z(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Z(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:X.argument,value:r,location:Z(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Z(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Y.MALFORMED_ARGUMENT,Z(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=pu(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Z(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(Y.EXPECT_ARGUMENT_TYPE,Z(i,o));case`number`:case`date`:case`time`:this.bumpSpace();var s=null;if(this.bumpIf(`,`)){this.bumpSpace();var c=this.clonePosition(),l=this.parseSimpleArgStyleIfPossible();if(l.err)return l;var u=du(l.val);if(u.length===0)return this.error(Y.EXPECT_ARGUMENT_STYLE,Z(this.clonePosition(),this.clonePosition()));s={style:u,styleLocation:Z(c,this.clonePosition())}}var d=this.tryParseArgumentClose(r);if(d.err)return d;var f=Z(r,this.clonePosition());if(s&&ou(s?.style,`::`,0)){var p=uu(s.style.slice(2));if(a===`number`){var l=this.parseNumberSkeletonFromString(p,s.styleLocation);return l.err?l:{val:{type:X.number,value:n,location:f,style:l.val},err:null}}if(p.length===0)return this.error(Y.EXPECT_DATE_TIME_SKELETON,f);var m=p;this.locale&&(m=Jl(p,this.locale));var u={type:bl.dateTime,pattern:m,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?Pl(m):{}};return{val:{type:a===`date`?X.date:X.time,value:n,location:f,style:u},err:null}}return{val:{type:a===`number`?X.number:a===`date`?X.date:X.time,value:n,location:f,style:s?.style??null},err:null};case`plural`:case`selectordinal`:case`select`:var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(Y.EXPECT_SELECT_ARGUMENT_OPTIONS,Z(h,J({},h)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),_=0;if(a!==`select`&&g.value===`offset`){if(!this.bumpIf(`:`))return this.error(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Z(this.clonePosition(),this.clonePosition()));this.bumpSpace();var l=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(l.err)return l;this.bumpSpace(),g=this.parseIdentifierIfPossible(),_=l.val}var v=this.tryParsePluralOrSelectOptions(e,a,t,g);if(v.err)return v;var d=this.tryParseArgumentClose(r);if(d.err)return d;var y=Z(r,this.clonePosition());return a===`select`?{val:{type:X.select,value:n,options:cu(v.val),location:y},err:null}:{val:{type:X.plural,value:n,options:cu(v.val),offset:_,pluralType:a===`plural`?`cardinal`:`ordinal`,location:y},err:null};default:return this.error(Y.INVALID_ARGUMENT_TYPE,Z(i,o))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Z(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(Y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Z(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=Il(e)}catch{return this.error(Y.INVALID_NUMBER_SKELETON,t)}return{val:{type:bl.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Kl(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,c=r.value,l=r.location;;){if(c.length===0){var u=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){var d=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,Y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=Z(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}else break}if(s.has(c))return this.error(t===`select`?Y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c===`other`&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?Y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Z(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;o.push([c,{value:p.val,location:Z(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,l=i.location}return o.length===0?this.error(t===`select`?Y.EXPECT_SELECT_ARGUMENT_SELECTOR:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,Z(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Y.MISSING_OTHER_CLAUSE,Z(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=a*10+(o-48),this.bump();else break}var s=Z(r,this.clonePosition());return i?(a*=n,iu(a)?{val:a,err:null}:this.error(t,s)):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);var t=lu(this.message,e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(ou(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&yu(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null},e}();function gu(e){return e>=97&&e<=122||e>=65&&e<=90}function _u(e){return gu(e)||e===47}function vu(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function yu(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function bu(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function xu(e){e.forEach(function(e){if(delete e.location,El(e)||Dl(e))for(var t in e.options)delete e.options[t].location,xu(e.options[t].value);else Cl(e)&&Al(e.style)||(wl(e)||Tl(e))&&jl(e.style)?delete e.style.location:kl(e)&&xu(e.children)})}function Su(e,t){t===void 0&&(t={}),t=J({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new hu(e,t).parse();if(n.err){var r=SyntaxError(Y[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||xu(n.val),n.val}var Cu;(function(e){e.MISSING_VALUE=`MISSING_VALUE`,e.INVALID_VALUE=`INVALID_VALUE`,e.MISSING_INTL_API=`MISSING_INTL_API`})(Cu||={});var wu=function(e){al(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return t.prototype.toString=function(){return`[formatjs Error: ${this.code}] ${this.message}`},t}(Error),Tu=function(e){al(t,e);function t(t,n,r,i){return e.call(this,`Invalid values for "${t}": "${n}". Options are "${Object.keys(r).join(`", "`)}"`,Cu.INVALID_VALUE,i)||this}return t}(wu),Eu=function(e){al(t,e);function t(t,n,r){return e.call(this,`Value for "${t}" must be of type ${n}`,Cu.INVALID_VALUE,r)||this}return t}(wu),Du=function(e){al(t,e);function t(t,n){return e.call(this,`The intl string context variable "${t}" was not provided to the string "${n}"`,Cu.MISSING_VALUE,n)||this}return t}(wu),Q;(function(e){e[e.literal=0]=`literal`,e[e.object=1]=`object`})(Q||={});function Ou(e){return e.length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return!n||n.type!==Q.literal||t.type!==Q.literal?e.push(t):n.value+=t.value,e},[])}function ku(e){return typeof e==`function`}function Au(e,t,n,r,i,a,o){if(e.length===1&&xl(e[0]))return[{type:Q.literal,value:e[0].value}];for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c];if(xl(u)){s.push({type:Q.literal,value:u.value});continue}if(Ol(u)){typeof a==`number`&&s.push({type:Q.literal,value:n.getNumberFormat(t).format(a)});continue}var d=u.value;if(!(i&&d in i))throw new Du(d,o);var f=i[d];if(Sl(u)){(!f||typeof f==`string`||typeof f==`number`)&&(f=typeof f==`string`||typeof f==`number`?String(f):``),s.push({type:typeof f==`string`?Q.literal:Q.object,value:f});continue}if(wl(u)){var p=typeof u.style==`string`?r.date[u.style]:jl(u.style)?u.style.parsedOptions:void 0;s.push({type:Q.literal,value:n.getDateTimeFormat(t,p).format(f)});continue}if(Tl(u)){var p=typeof u.style==`string`?r.time[u.style]:jl(u.style)?u.style.parsedOptions:r.time.medium;s.push({type:Q.literal,value:n.getDateTimeFormat(t,p).format(f)});continue}if(Cl(u)){var p=typeof u.style==`string`?r.number[u.style]:Al(u.style)?u.style.parsedOptions:void 0;p&&p.scale&&(f*=p.scale||1),s.push({type:Q.literal,value:n.getNumberFormat(t,p).format(f)});continue}if(kl(u)){var m=u.children,h=u.value,g=i[h];if(!ku(g))throw new Eu(h,`function`,o);var _=g(Au(m,t,n,r,i,a).map(function(e){return e.value}));Array.isArray(_)||(_=[_]),s.push.apply(s,_.map(function(e){return{type:typeof e==`string`?Q.literal:Q.object,value:e}}))}if(El(u)){var v=u.options[f]||u.options.other;if(!v)throw new Tu(u.value,f,Object.keys(u.options),o);s.push.apply(s,Au(v.value,t,n,r,i));continue}if(Dl(u)){var v=u.options[`=${f}`];if(!v){if(!Intl.PluralRules)throw new wu(`Intl.PluralRules is not available in this environment.
5
+ `);var h=n.getPluralRules(t,{type:u.pluralType}).select(f-(u.offset||0));m=u.options[h]||u.options.other}if(!m)throw RangeError(`Invalid values for "`+u.value+`": "`+f+`". Options are "`+Object.keys(u.options).join(`", "`)+`"`);s.push.apply(s,$n(m.value,t,n,r,i,f-(u.offset||0)));continue}}return Qn(s)}function er(e,t,n,r,i,a){var o=$n(e,t,n,r,i,void 0,a);return o.length===1?o[0].value:o.reduce(function(e,t){return e+=t.value},``)}var tr,nr=`@@`,rr=/@@(\d+_\d+)@@/g,ir=0;function ar(){return Date.now()+`_`+ ++ir}function or(e,t){return e.split(rr).filter(Boolean).map(function(e){return t[e]==null?e:t[e]}).reduce(function(e,t){return e.length&&typeof t==`string`&&typeof e[e.length-1]==`string`?e[e.length-1]+=t:e.push(t),e},[])}var sr=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,cr=Date.now()+`@@`,lr=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`];function ur(e,t,n){var r=e.tagName,i=e.outerHTML,a=e.textContent,o=e.childNodes;if(!r)return or(a||``,t);r=r.toLowerCase();var s=~lr.indexOf(r),c=n[r];if(c&&s)throw new Zn(r+` is a self-closing tag and can not be used, please use another tag name.`);if(!o.length)return[i];var l=Array.prototype.slice.call(o).reduce(function(e,r){return e.concat(ur(r,t,n))},[]);return c?typeof c==`function`?[c.apply(void 0,l)]:[c]:Xn([`<`+r+`>`],l,[`</`+r+`>`])}function dr(e,t,n,r,i,a){var o=$n(e,t,n,r,i,void 0,a),s={},c=o.reduce(function(e,t){if(t.type===0)return e+=t.value;var n=ar();return s[n]=t.value,e+=``+nr+n+nr},``);if(!sr.test(c))return or(c,s);if(!i)throw new Zn(`Message has placeholders but no values was given`);if(typeof DOMParser>`u`)throw new Zn(`Cannot format XML message without DOMParser`);tr||=new DOMParser;var l=tr.parseFromString(`<formatted-message id="`+cr+`">`+c+`</formatted-message>`,`text/html`).getElementById(cr);if(!l)throw new Zn(`Malformed HTML message `+c);var u=Object.keys(i).filter(function(e){return!!l.getElementsByTagName(e).length});if(!u.length)return or(c,s);var d=u.filter(function(e){return e!==e.toLowerCase()});if(d.length)throw new Zn(`HTML tag must be lowercased but the following tags are not: `+d.join(`, `));return Array.prototype.slice.call(l.childNodes).reduce(function(e,t){return e.concat(ur(t,s,i))},[])}var fr=function(){return fr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},fr.apply(this,arguments)};function pr(e,t){return t?fr(fr(fr({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=fr(fr({},e[r]),t[r]||{}),n},{})):e}function mr(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=pr(e[r],t[r]),n},fr({},e)):e}function hr(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Jn(Intl.NumberFormat,e.number),getDateTimeFormat:Jn(Intl.DateTimeFormat,e.dateTime),getPluralRules:Jn(Intl.PluralRules,e.pluralRules)}}var gr=function(){function e(t,n,r,i){var a=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){return er(a.ast,a.locales,a.formatters,a.formats,e,a.message)},this.formatToParts=function(e){return $n(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.formatHTMLMessage=function(e){return dr(a.ast,a.locales,a.formatters,a.formats,e,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=mr(e.formats,r),this.locales=n,this.formatters=i&&i.formatters||hr(this.formatterCache)}return e.defaultLocale=new Intl.NumberFormat().resolvedOptions().locale,e.__parse=Wn,e.formats={number:{currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}},e}();function _r(){return{memoize:!0,memoizeFallback:!1,bindI18n:``,bindI18nStore:void 0,parseErrorHandler:(e,t,n)=>n}}var vr=class{options;formats;type;mem;constructor(e){this.type=`i18nFormat`,this.mem={},this.init(null,e)}init(e,t){let n=e&&e.options&&e.options.i18nFormat||{};if(this.options=Tr(n,t,this.options||{},_r()),this.formats=this.options?.formats,e){let{bindI18n:t,bindI18nStore:n,memoize:r}=this.options;e.IntlMessageFormat=gr,e.ICU=this,r&&(t&&e.on(t,()=>this.clearCache()),n&&e.store.on(n,()=>this.clearCache()))}this.options?.localeData&&(Object.prototype.toString.apply(this.options.localeData)===`[object Array]`?this.options.localeData.forEach(e=>this.addLocaleData(e)):this.addLocaleData(this.options.localeData))}addLocaleData(e){(Array.isArray(e)?e:[e]).forEach(e=>{e&&e.locale&&gr.__addLocaleData(e)})}addUserDefinedFormats(e){this.formats=this.formats?{...this.formats,...e}:e}parse(e,t,n,r,i,a){let o=a&&a.resolved&&a.resolved.res,s=this.options?.memoize&&`${n}.${r}.${i.replace(/\./g,`###`)}`,c;this.options?.memoize&&(c=xr(this.mem,s));try{return c||(c=new gr(e,n,this.formats),this.options?.memoize&&(this.options.memoizeFallback||!a||o)&&br(this.mem,s,c)),c.format(t)}catch(n){return this.options?.parseErrorHandler?.(n,i,e,t)}}addLookupKeys(e){return e}clearCache(){this.mem={}}};vr.type=`i18nFormat`;function yr(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}function i(){return!e||typeof e==`string`}let a=typeof t==`string`?t.split(`.`):[].concat(t);for(;a.length>1;){if(i())return{};let t=r(a.shift());!e[t]&&n&&(e[t]=new n),e=e[t]}return i()?{}:{obj:e,k:r(a.shift())}}function br(e,t,n){let{obj:r,k:i}=yr(e,t,Object);r[i]=n}function xr(e,t){let{obj:n,k:r}=yr(e,t);if(n)return n[r]}var Sr=[],Cr=Sr.forEach,wr=Sr.slice;function Tr(e){return Cr.call(wr.call(arguments,1),function(t){if(t)for(let n in t)e[n]===void 0&&(e[n]=t[n])}),e}var H=e=>typeof e==`string`,Er=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Dr=e=>e==null?``:String(e),Or=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},kr=/###/g,Ar=e=>e&&e.includes(`###`)?e.replace(kr,`.`):e,jr=e=>!e||H(e),Mr=(e,t,n)=>{let r=H(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(jr(e))return{};let t=Ar(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return jr(e)?{}:{obj:e,k:Ar(r[i])}},Nr=(e,t,n)=>{let{obj:r,k:i}=Mr(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Mr(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Mr(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Pr=(e,t,n,r)=>{let{obj:i,k:a}=Mr(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Fr=(e,t)=>{let{obj:n,k:r}=Mr(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Ir=(e,t,n)=>{let r=Fr(e,n);return r===void 0?Fr(t,n):r},Lr=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(Object.prototype.hasOwnProperty.call(e,r)?H(e[r])||e[r]instanceof String||H(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Lr(e[r],t[r],n):e[r]=t[r]);return e},Rr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),zr={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},Br=e=>H(e)?e.replace(/[&<>"'\/]/g,e=>zr[e]):e,Vr=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},Hr=[` `,`,`,`?`,`!`,`;`],Ur=new Vr(20),Wr=(e,t,n)=>{t||=``,n||=``;let r=Hr.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=Ur.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},Gr=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},Kr=e=>e?.replace(/_/g,`-`),qr={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)}},Jr=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||qr,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,n,r){return r&&!this.debug?null:(e=e.map(e=>H(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),H(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Yr=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},Xr=class extends Yr{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(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,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):H(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Fr(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!H(n)?s:Gr(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Nr(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(H(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Fr(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Lr(s,n,i):s={...s,...n},Nr(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=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}},Zr={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},Qr=Symbol(`i18next/PATH_KEY`);function $r(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===Qr?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function ei(e,t){let{[Qr]:n}=e($r()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var ti=e=>!H(e)&&typeof e!=`boolean`&&typeof e!=`number`,ni=class e extends Yr{constructor(e,t={}){super(),Or([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=Jr.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=ti(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Wr(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:H(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:H(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=ei(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?ei(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!H(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,ee=b&&!i.ordinal&&i.count===0,w=ee&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,T=m;y&&!m&&x&&(T=w);let E=ti(T),D=Object.prototype.toString.apply(T);if(y&&T&&E&&!_.includes(D)&&!(H(v)&&Array.isArray(T))){if(!i.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(h,T,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(T),t=e?[]:{},n=e?g:h;for(let e in T)if(Object.prototype.hasOwnProperty.call(T,e)){let r=`${n}${o}${e}`;t[e]=x&&!m?this.translate(r,{...i,defaultValue:ti(w)?w[e]:void 0,joinArrays:!1,ns:c}):this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=T[e])}m=t}}else if(y&&H(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=w),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&w!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?w:m),o){let e=this.resolve(s,{...i,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,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);ee&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||w)})}):n(e,s,w))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=H(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!H(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=H(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=Zr.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return H(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?ei(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!H(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(H(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.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!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!H(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},ri=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Jr.create(`languageUtils`)}getScriptPartFromCode(e){if(e=Kr(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=Kr(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(H(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),H(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return H(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):H(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}},ii={zero:0,one:1,two:2,few:3,many:4,other:5},ai={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},oi=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=Jr.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=Kr(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),ai;if(!e.match(/-|_/))return ai;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>ii[e]-ii[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},si=(e,t,n,r=`.`,i=!0)=>{let a=Ir(e,t,n);return!a&&i&&H(n)&&(a=Gr(e,n,r),a===void 0&&(a=Gr(t,n,r))),a},ci=e=>e.replace(/\$/g,`$$$$`),li=class{constructor(e={}){this.logger=Jr.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?Br:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?Rr(i):a||`{{`,this.suffix=o?Rr(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?Rr(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?Rr(l):``,this.nestingPrefix=d?Rr(d):f||Rr(`$t(`),this.nestingSuffix=p?Rr(p):m||Rr(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new 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,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=si(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(si(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0){if(typeof l==`function`){let t=l(e,i,r);a=H(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``}else!H(a)&&!this.useRawValueToEscape&&(a=Dr(a));let s=t.safeValue(a);if(e=e.replace(i[0],ci(s)),u?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${Rr(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!H(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/s.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!H(i))return i;H(i)||(i=Dr(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},ui=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},di=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(Kr(r),i),t[o]=s),s(n)}},fi=e=>(t,n,r)=>e(Kr(n),r)(t),pi=class{constructor(e={}){this.logger=Jr.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?di:fi;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=di(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator),a=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf(`(`)>-1&&!t.includes(`)`)&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;a.push(t)}return a.reduce((e,t)=>{let{formatName:i,formatOptions:a}=ui(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}},mi=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},hi=class extends Yr{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Jr.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Pr(n.loaded,[i],a),mi(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{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(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();H(e)&&(e=this.languageUtils.toResolveHierarchy(e)),H(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(n!=null&&n!==``){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}},gi=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,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(typeof e[1]==`object`&&(t=e[1]),H(e[1])&&(t.defaultValue=e[1]),H(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),_i=e=>(H(e.ns)&&(e.ns=[e.ns]),H(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),H(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),vi=()=>{},yi=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},U=class e extends Yr{constructor(e={},t){if(super(),this.options=_i(e),this.services={},this.logger=Jr,this.modules={external:[]},yi(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,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(H(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=gi();this.options={...n,...this.options,..._i(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?Jr.init(r(this.modules.logger),this.options):Jr.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:pi;let t=new ri(this.options);this.store=new Xr(this.options.resources,this.options);let n=this.services;n.logger=Jr,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new oi(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new li(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new hi(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new ni(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||=vi,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(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 i=Er(),a=()=>{let e=(e,n)=>{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),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=vi){let n=t,r=H(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):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),n(e)})}else n(null)}reloadResources(e,t,n){let r=Er();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=vi,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}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 e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&Zr.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=Er();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=H(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(H(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=ei(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=ei(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=ei(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return H(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}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;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Er();return this.options.ns?(H(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=Er();H(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(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{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new ri(gi());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=vi){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Xr(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...gi().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new li(n)}return a.translator=new ni(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();U.createInstance,U.dir,U.init,U.loadResources,U.reloadResources,U.use,U.changeLanguage,U.getFixedT,U.t,U.exists,U.setDefaultNamespace,U.hasLoadedNamespace,U.loadNamespaces,U.loadLanguages;var bi=({locale:e,asyncMessagesLoader:t,messages:n,useSuspense:r=!1,disableAutoInit:i=!1,bindI18n:a},{icu:o}={})=>{let s={lng:e,fallbackLng:`en`,keySeparator:!1,react:{useSuspense:r,bindI18n:a},_polyfill:{isLoading:!1}},c=U.createInstance(i?s:void 0);return o&&c.use(o),t&&c.use({type:`backend`,read:async(e,n,r)=>{try{return r(null,await t(e))}catch(e){return r(e,null)}}}),n&&(s.resources={[e]:{translation:n}}),i||c.init(s),c};function xi({icuOptions:e={},...t}){let{parseErrorHandler:n=void 0}=t;return bi(t,{icu:new vr({parseErrorHandler:n,bindI18n:t.bindI18n,...e})})}var Si=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);ki(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},Ci={},wi=(e,t,n,r)=>{ki(n)&&Ci[n]||(ki(n)&&(Ci[n]=new Date),Si(e,t,n,r))},Ti=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},Ei=(e,t,n)=>{e.loadNamespaces(t,Ti(e,n))},Di=(e,t,n,r)=>{if(ki(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Ei(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Ti(e,r))},Oi=(e,t,n={})=>!t.languages||!t.languages.length?(wi(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),ki=e=>typeof e==`string`,Ai=e=>typeof e==`object`&&!!e,ji=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Mi={"&amp;":`&`,"&#38;":`&`,"&lt;":`<`,"&#60;":`<`,"&gt;":`>`,"&#62;":`>`,"&apos;":`'`,"&#39;":`'`,"&quot;":`"`,"&#34;":`"`,"&nbsp;":` `,"&#160;":` `,"&copy;":`©`,"&#169;":`©`,"&reg;":`®`,"&#174;":`®`,"&hellip;":`…`,"&#8230;":`…`,"&#x2F;":`/`,"&#47;":`/`},Ni=e=>Mi[e],Pi={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(ji,Ni)},Fi=()=>Pi,Ii,Li=()=>Ii,Ri=r(),zi=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},Bi=(e,t)=>{let n=u();return c(()=>{n.current=t?n.current:e},[e,t]),n.current},Vi=(e,t,n,r)=>e.getFixedT(t,n,r),Hi=(e,t,n,r)=>o(Vi(e,t,n,r),[e,t,n,r]),Ui=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=s(Ri)||{},a=n||r||Li();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new zi),!a){wi(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next`);let e=(e,t)=>ki(t)?t:Ai(t)&&ki(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}a.options.react?.wait&&wi(a,`DEPRECATED_OPTION`,`useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);let o={...Fi(),...a.options.react,...t},{useSuspense:l,keyPrefix:f}=o,p=e||i||a.options?.defaultNS;p=ki(p)?[p]:p||[`translation`],a.reportNamespaces.addUsedNamespaces?.(p);let m=(a.isInitialized||a.initializedStoreOnce)&&p.every(e=>Oi(e,a,o)),h=Hi(a,t.lng||null,o.nsMode===`fallback`?p:p[0],f),g=()=>h,_=()=>Vi(a,t.lng||null,o.nsMode===`fallback`?p:p[0],f),[v,y]=d(g),b=p.join();t.lng&&(b=`${t.lng}${b}`);let x=Bi(b),S=u(!0);c(()=>{let{bindI18n:e,bindI18nStore:n}=o;S.current=!0,!m&&!l&&(t.lng?Di(a,t.lng,p,()=>{S.current&&y(_)}):Ei(a,p,()=>{S.current&&y(_)})),m&&x&&x!==b&&S.current&&y(_);let r=()=>{S.current&&y(_)};return e&&a?.on(e,r),n&&a?.store.on(n,r),()=>{S.current=!1,a&&e&&e?.split(` `).forEach(e=>a.off(e,r)),n&&a&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,b]),c(()=>{S.current&&m&&y(g)},[a,f,m]);let C=[v,a,m];if(C.t=v,C.i18n=a,C.ready=m,m||!m&&!l)return C;throw new Promise(e=>{t.lng?Di(a,t.lng,p,()=>e()):Ei(a,p,()=>e())})};function Wi({i18n:e,defaultNS:t,children:n}){let r=l(()=>({i18n:e,defaultNS:t}),[e,t]);return i(Ri.Provider,{value:r},n)}function Gi(e){return xt({__type:`host`,create:t=>Object.entries(e).reduce((e,[n,r])=>({...e,[n]:r(t)}),{})},Object.keys(e))}function Ki(e){"@babel/helpers - typeof";return Ki=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ki(e)}function qi(e,t){if(Ki(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ki(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ji(e){var t=qi(e,`string`);return Ki(t)==`symbol`?t:t+``}function W(e,t,n){return(t=Ji(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yi(e){return{evid:100,src:176,endpoint:``,params:e}}function Xi(e){return{evid:101,src:176,endpoint:``,params:e}}function Zi(e){return{evid:102,src:176,endpoint:``,params:e}}function Qi(e){return{evid:103,src:176,endpoint:``,params:e}}function $i(e){return{evid:404,src:176,endpoint:``,params:e}}function ea(e){return e}function ta(e,t){var n;let{errorAccessor:r,requestOptions:i}=t,{biLogger:a,onlineManager:o,webWindow:s,environment:c,biDefaultsOverrides:l}=e,{statusCode:u,errorData:d,errorDetails:f,errorMessage:p,exceptionMessage:m,httpError:h,errorHandlerState:g}=r,_=h?.config;a.report(ea($i)({artifact_id:c.artifactId,full_artifact_id:c.fullArtifactId,hostingEnvironment:l?.hostingEnvironment,app_id:l?.app_id,artifactVersion:c.version,error_code:u,error_json:d?JSON.stringify(d):void 0,exception_message:m,error_message:p,client_error_code:r?.clientCode,error_type:f!=null&&f.applicationError?`applicationError`:f!=null&&f.validationError?`validationError`:void 0,request_id:h?.requestId,hasInternetConnection:o.onLine,pageUrl:s==null||(n=s.location)==null?void 0:n.href,session_id:g?.sessionId,serverUrl:_?.url||i?.url,method:_?.method||i?.method||`unknown`,entity_fqdn:_?.entityFqdn||i?.entityFqdn,method_fqn:_?.methodFqn||i?.methodFqn,server_artifactid:_?.artifactId}))}var na={400:`INVALID_ARGUMENT`,401:`UNAUTHENTICATED`,403:`PERMISSION_DENIED`,404:`NOT_FOUND`,409:`ALREADY_EXISTS`,428:`FAILED_PRECONDITION`,429:`RESOURCE_EXHAUSTED`,499:`CANCELED`,500:`INTERNAL`,501:`NOT_IMPLEMENTED`,502:`BAD_GATEWAY`,503:`UNAVAILABLE`};function ra(e){let{errorAccessor:t,errorCodesMap:n}=e,{applicationError:r,statusCode:i,error:a,validationError:o}=t;if(r){let{code:e}=r,t=n.applicationError?.[e];if(t===!1)return null;if(t)return t(r,a)}if(n.validationError){var s;let e=Object.keys(n.validationError),t=o==null||(s=o.fieldViolations)==null?void 0:s.find(t=>{let{ruleName:n}=t;return e.includes(n)});if(t!=null&&t.ruleName){let e=n.validationError?.[t.ruleName];if(e)return e(a)}}let c=i==null?null:na[i],l={...n.serverError?{INTERNAL:n.serverError,NOT_IMPLEMENTED:n.serverError,BAD_GATEWAY:n.serverError,UNAVAILABLE:n.serverError}:{},...n.statusCodeError},u=c==null?null:l[c];return u?u(a):null}var ia=class{constructor(e){W(this,`errorAccessor`,void 0),W(this,`errorCodesMap`,void 0),W(this,`commonErrorsMapState`,void 0),W(this,`onlineManager`,void 0),W(this,`consumerResolvedError`,void 0),W(this,`commonResolvedError`,void 0),this.commonErrorsMapState=e.commonErrorsMapState,this.errorAccessor=e.errorAccessor,this.errorCodesMap=e.errorCodesMap,this.onlineManager=e.onlineManager}get commonErrors(){return this.commonErrorsMapState.commonErrors}_resolveNetworkError(){let{onlineManager:e,commonErrors:t,errorAccessor:n}=this;return t?e.onLine?t.getNetworkErrorShowErrorProps(n):t.connectionErrorShowErrorProps:null}_resolveCommonError(){let{errorAccessor:e,commonErrors:t,errorCodesMap:n}=this,{error:r,httpError:i,validationError:a}=e;if(i==null)return this._resolveNetworkError();if(!t)return null;if(a){var o;return(o=t.commonErrorsMap.statusCodeError)==null||o.INVALID_ARGUMENT==null?void 0:o.INVALID_ARGUMENT(r)}return ra({errorAccessor:e,errorCodesMap:t.commonErrorsMap})||((n==null||n.serverError==null?void 0:n.serverError(r))??t.defaultErrorShowErrorProps)}_resolveConsumerError(){let{errorCodesMap:e,errorAccessor:t}=this,{httpError:n}=t;return n==null||e==null?null:ra({errorAccessor:t,errorCodesMap:e})}resolve(){this.consumerResolvedError=this._resolveConsumerError(),this.consumerResolvedError??(this.commonResolvedError=this._resolveCommonError())}get errorToShow(){return this.consumerResolvedError??this.commonResolvedError}};function aa(e,t){let{commonErrorsMapState:n,onlineManager:r}=e,{errorAccessor:i,errorCodesMap:a}=t,o=new ia({errorAccessor:i,errorCodesMap:a,commonErrorsMapState:n,onlineManager:r});return o.resolve(),o}function oa(e){return typeof e.biLoggerOrFactory==`function`?e.biLoggerOrFactory().logger():e.biLoggerOrFactory}function sa(e){return e!=null}function ca(e){return sa(e)&&e.response!=null}function la(e){return sa(e)&&e.message!=null}function ua(e){return sa(e)&&e.details!=null}function da(e){return e!=null}function fa(e){return da(e)&&e.status!=null}function pa(e){return{response:{data:{details:e.details},status:e.status},requestId:e.requestId}}function ma(e){return{response:{data:e._errorHandlerState?.responseData,status:e.status},requestId:e.headers.get(`X-Wix-Request-Id`)}}var ha=class{constructor(e){W(this,`inputError`,void 0),W(this,`_error`,void 0),W(this,`_httpError`,void 0),W(this,`_errorDetails`,void 0),this.inputError=e.error}get error(){let{inputError:e}=this;return this._error??=typeof Response<`u`&&e instanceof Response||e instanceof Error?e:null}get exceptionMessage(){return this.error?.message}get httpError(){let{inputError:e}=this;return this._httpError??=ca(e)?e:typeof Response<`u`&&e instanceof Response?ma(e):fa(e)?pa(e):null}get errorHandlerState(){let{error:e}=this;return e?e._errorHandlerState??={}:null}get clientCode(){return this.httpError?.code}get errorResponse(){return this.httpError?.response}get statusCode(){return this.errorResponse?.status}get errorData(){return this.errorResponse?.data}get errorDetails(){let{errorData:e}=this;return this._errorDetails??=ua(e)?e.details:null}get errorMessage(){let{errorData:e}=this;return la(e)?e.message:void 0}get applicationError(){return this.errorDetails?.applicationError}get validationError(){return this.errorDetails?.validationError}},ga=b({default:()=>_a}),_a,va=v((()=>{_a={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),ya=b({default:()=>ba}),ba,xa=v((()=>{ba={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Sa=b({default:()=>Ca}),Ca,wa=v((()=>{Ca={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Ta=b({default:()=>Ea}),Ea,Da=v((()=>{Ea={"errorHandler.common-error.permission-denied.site":`Nemáte oprávnění provést tuto akci. Požádejte o\xA0přístup vlastníka webu.`,"errorHandler.uncommon-error.NotImplemented":`Tato akce není momentálně dostupná.`,"errorHandler.common-error.conflict":`Změny nelze uložit, protože tato stránka byla aktualizována někde jinde. Poznamenejte si změny, obnovte stránku a zkuste ji upravit znovu.`,"errorHandler.common-error.permission-denied.app":`Pro tuto akci nemáte oprávnění. Požádejte o\xA0přístup vlastníka aplikace.`,"errorHandler.common-error.permission-denied.workspace":`Pro tuto akci nemáte oprávnění. Požádejte o\xA0přístup vlastníka pracovního prostoru.`,"errorHandler.common-error.CheckStatus.cta":`Stránka se stavem kontroly`,"errorHandler.common-error.refresh.cta":`Obnovit`,"errorHandler.common-error.noConnection":`Vypadá to, že jste offline. Zkontrolujte připojení a zkuste to znovu.`,"errorHandler.common-error.resource-exhausted":`Příliš mnoho akcí bylo provedeno příliš rychle. Chvíli počkejte a zkuste to znovu.`,"errorHandler.common-error.unauthenticated.cta":`Přihlásit se`,"errorHandler.common-error.goBack.cta":`Vrátit se`,"errorHandler.common-error.not-found":`Vypadá to, že tato položka již neexistuje.`,"errorHandler.common-error.captchaRequired.verify.cta":`Ověřit`,"errorHandler.common-error.tryAgain.cta":`Zkusit znovu`,"errorHandler.requestID.tooltip.cta":`Kopírovat ID`,"errorHandler.common-error.permission-denied":`Nemáte potřebná oprávnění. Požádejte o\xA0přístup vlastníka.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`Máme technické potíže. Zkuste to znovu nebo obnovte stránku.`,"errorHandler.common-error.unauthenticated":`Jste odhlášeni. Pro pokračování se přihlaste.`,"errorHandler.common-error.networkError":`Objevily se potíže při připojování k vaší síti. Zkontrolujte připojení a zkuste to znovu.`,"errorHandler.common-error.technicalIssue":`Máme technické potíže. Zkuste to znovu nebo obnovte stránku.`,"errorHandler.common-error.captchaRequired":`Pokud chcete pokračovat, bude potřeba ověřit, zda jste člověk.`,"errorHandler.common-error.technicalIssue.generic":`Máme technické potíže. Zkuste to znovu nebo obnovte stránku.`,"errorHandler.common-error.validationBasic":`Některá pole obsahují neplatné nebo chybějící údaje.`,"errorHandler.requestID.tooltip.cta.copied-success":`Zkopírováno!`}})),Oa=b({default:()=>ka}),ka,Aa=v((()=>{ka={"errorHandler.common-error.permission-denied.site":`Du har ikke tilladelse til at gøre dette. Anmod om adgang fra hjemmesideejeren.`,"errorHandler.uncommon-error.NotImplemented":`Denne handling er ikke tilgængelig lige nu.`,"errorHandler.common-error.conflict":`Ændringerne kan ikke gemmes, fordi denne side er blevet ændret et andet sted. Noter dine ændringer, genindlæs, og prøv derefter at redigere igen.`,"errorHandler.common-error.permission-denied.app":`Du har ikke tilladelse til at udføre denne handling. Anmod om adgang fra app-ejeren.`,"errorHandler.common-error.permission-denied.workspace":`Du har ikke tilladelse til at udføre denne handling. Anmod om adgang fra ejer af workspace.`,"errorHandler.common-error.CheckStatus.cta":`Tjek statussiden`,"errorHandler.common-error.refresh.cta":`Genindlæs`,"errorHandler.common-error.noConnection":`Det ser ud til, at du er offline. Tjek forbindelsen, og prøv igen.`,"errorHandler.common-error.resource-exhausted":`For mange handlinger blev udført for hurtigt. Vent et øjeblik og prøv igen.`,"errorHandler.common-error.unauthenticated.cta":`Log ind`,"errorHandler.common-error.goBack.cta":`Gå tilbage`,"errorHandler.common-error.not-found":`Det ser ud til, at dette ikke eksisterer længere.`,"errorHandler.common-error.captchaRequired.verify.cta":`Bekræft`,"errorHandler.common-error.tryAgain.cta":`Prøv igen`,"errorHandler.requestID.tooltip.cta":`Kopiér ID`,"errorHandler.common-error.permission-denied":`Du har ikke de nødvendige tilladelser. Anmod om adgang fra ejeren.`,"errorHandler.requestID.tooltip.description":`Hvis du rapporterer denne fejl til kundeservice, skal du dele dette anmodnings-ID, så de kan undersøge sagen.`,"errorHandler.common-error.technicalIssue-unmappedError":`Der er opstået et teknisk problem hos os. Prøv igen, eller opdater.`,"errorHandler.common-error.unauthenticated":`Du er logget ud. Log ind igen for at fortsætte.`,"errorHandler.common-error.networkError":`Der opstod et problem med at oprette forbindelse til dit netværk. Tjek forbindelsen, og prøv igen.`,"errorHandler.common-error.technicalIssue":`Der er opstået et teknisk problem hos os. Prøv igen, eller opdater.`,"errorHandler.common-error.captchaRequired":`Bekræft, at du er et menneske for at fortsætte.`,"errorHandler.common-error.technicalIssue.generic":`Der er opstået et teknisk problem hos os. Prøv igen, eller opdater.`,"errorHandler.common-error.validationBasic":`Nogle felter har ugyldige eller manglende oplysninger.`,"errorHandler.requestID.tooltip.cta.copied-success":`Kopieret!`}})),ja=b({default:()=>Ma}),Ma,Na=v((()=>{Ma={"errorHandler.common-error.permission-denied.site":`Du bist nicht zu dieser Aktion berechtigt. Bitte den Website-Eigentümer um Zugriff.`,"errorHandler.uncommon-error.NotImplemented":`Diese Aktion ist zurzeit nicht verfügbar.`,"errorHandler.common-error.conflict":`Die Änderungen konnten nicht gespeichert werden, da die Seite an anderer Stelle aktualisiert wurde. Mache Notiz von deinen Änderungen, aktualisiere die Seite und versuche erneut, sie zu bearbeiten.`,"errorHandler.common-error.permission-denied.app":`Du bist zu dieser Aktion nicht berechtigt. Bitte den App-Eigentümer um Zugriff.`,"errorHandler.common-error.permission-denied.workspace":`Du bist zu dieser Aktion nicht berechtigt. Bitte den Workspace-Eigentümer um Zugriff.`,"errorHandler.common-error.CheckStatus.cta":`Statusseite prüfen`,"errorHandler.common-error.refresh.cta":`Aktualisieren`,"errorHandler.common-error.noConnection":`Du bist offline. Überprüfe deine Verbindung und versuche es erneut.`,"errorHandler.common-error.resource-exhausted":`Zu viele Aktionen wurden zu schnell durchgeführt. Warte kurz und versuche es erneut.`,"errorHandler.common-error.unauthenticated.cta":`Anmelden`,"errorHandler.common-error.goBack.cta":`Zurück`,"errorHandler.common-error.not-found":`Dieses Element gibt es nicht mehr.`,"errorHandler.common-error.captchaRequired.verify.cta":`Bestätigen`,"errorHandler.common-error.tryAgain.cta":`Erneut versuchen`,"errorHandler.requestID.tooltip.cta":`ID kopieren`,"errorHandler.common-error.permission-denied":`Du hast nicht die erforderlichen Berechtigungen. Bitte den Eigentümer um Zugriff.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`Es gab ein technisches Problem. Versuche es erneut oder aktualisiere die Seite.`,"errorHandler.common-error.unauthenticated":`Du bist abgemeldet. Melde dich an, um fortzufahren.`,"errorHandler.common-error.networkError":`Es gab ein Netzwerkproblem. Überprüfe deine Verbindung und versuche es erneut.`,"errorHandler.common-error.technicalIssue":`Es gab ein technisches Problem. Versuche es erneut oder aktualisiere die Seite.`,"errorHandler.common-error.captchaRequired":`Um fortzufahren, bestätige, dass du kein Roboter bist.`,"errorHandler.common-error.technicalIssue.generic":`Es gab ein technisches Problem. Versuche es erneut oder aktualisiere die Seite.`,"errorHandler.common-error.validationBasic":`Einige Felder enthalten ungültige oder fehlende Informationen.`,"errorHandler.requestID.tooltip.cta.copied-success":`Kopiert`}})),Pa=b({default:()=>Fa}),Fa,Ia=v((()=>{Fa={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Ανανέωση`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Σύνδεση`,"errorHandler.common-error.goBack.cta":`Πίσω`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`επαλήθευση`,"errorHandler.common-error.tryAgain.cta":`Προσπαθήστε ξανά`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),La=b({default:()=>Ra}),Ra,za=v((()=>{Ra={"errorHandler.common-error.conflict":`Can’t save changes because this page was updated somewhere else. Take note of your changes, then refresh and try editing again.`,"errorHandler.common-error.resource-exhausted":`Too many actions were done too quickly. Wait a minute and try again.`,"errorHandler.common-error.not-found":`It looks like this doesn't exist anymore.`,"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Request access from the site owner.`,"errorHandler.common-error.unauthenticated":`You’re logged out. Log back in to continue.`,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.common-error.technicalIssue":`There was a technical issue on our end. Try again or refresh.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Request access from the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Request access from the workspace owner.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.permission-denied":`You don't have the necessary permissions. Request access from the owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.uncommon-error.NotImplemented":`This action isn't available right now.`,"errorHandler.common-error.technicalIssue-unmappedError":`There was a technical issue on our end. Try again or refresh.`,"errorHandler.common-error.technicalIssue.generic":`There was a technical issue on our end. Try again or refresh.`,"errorHandler.requestID.tooltip.description":`If you report this error to Customer Care, share this request ID so they can investigate.`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Ba=b({default:()=>Va}),Va,Ha=v((()=>{Va={"errorHandler.common-error.permission-denied.site":`No tienes permiso para realizar esta acción. Solicita acceso al propietario del sitio.`,"errorHandler.uncommon-error.NotImplemented":`Esta acción no está disponible en este momento.`,"errorHandler.common-error.conflict":`No se pueden guardar los cambios porque esta página se actualizó en otro lugar. Ten en cuenta los cambios, actualiza e intenta editar nuevamente.`,"errorHandler.common-error.permission-denied.app":`No tienes permiso para realizar esta acción. Solicita acceso al propietario de la app.`,"errorHandler.common-error.permission-denied.workspace":`No tienes permiso para realizar esta acción. Solicita acceso al propietario del espacio de trabajo.`,"errorHandler.common-error.CheckStatus.cta":`Verificar estado de página`,"errorHandler.common-error.refresh.cta":`Actualizar`,"errorHandler.common-error.noConnection":`Parece que estás sin conexión. Comprueba tu conexión a Internet y vuelve a intentarlo.`,"errorHandler.common-error.resource-exhausted":`Se realizaron demasiadas acciones en muy poco tiempo. Espera un minuto y vuelve a intentarlo.`,"errorHandler.common-error.unauthenticated.cta":`Iniciar sesión`,"errorHandler.common-error.goBack.cta":`Volver`,"errorHandler.common-error.not-found":`Parece que esto ya no existe.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verificar`,"errorHandler.common-error.tryAgain.cta":`Reintentar`,"errorHandler.requestID.tooltip.cta":`Copiar ID`,"errorHandler.common-error.permission-denied":`No tienes los permisos necesarios. Solicita acceso al propietario.`,"errorHandler.requestID.tooltip.description":`Si informas de este error a Atención al Cliente, comparte este ID de solicitud para que puedan investigarlo.`,"errorHandler.common-error.technicalIssue-unmappedError":`Hubo un problema técnico de nuestra parte. Actualiza o inténtalo de nuevo.`,"errorHandler.common-error.unauthenticated":`Se ha cerrado la sesión de tu cuenta. Vuelve a iniciar sesión para continuar.`,"errorHandler.common-error.networkError":`Hubo un problema al conectarse a la red. Comprueba tu conexión a Internet y vuelve a intentarlo.`,"errorHandler.common-error.technicalIssue":`Hubo un problema técnico de nuestra parte. Actualiza o inténtalo de nuevo.`,"errorHandler.common-error.captchaRequired":`Para continuar, verifica que eres humano.`,"errorHandler.common-error.technicalIssue.generic":`Hubo un problema técnico de nuestra parte. Actualiza o inténtalo de nuevo.`,"errorHandler.common-error.validationBasic":`Algunos campos no contienen información válida o falta información.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copiado`}})),Ua=b({default:()=>Wa}),Wa,Ga=v((()=>{Wa={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Ka=b({default:()=>qa}),qa,Ja=v((()=>{qa={"errorHandler.common-error.permission-denied.site":`Vous n'avez pas les autorisations nécessaires. Demandez l'accès au propriétaire du site.`,"errorHandler.uncommon-error.NotImplemented":`Cette action n'est pas disponible pour le moment.`,"errorHandler.common-error.conflict":`Impossible d'enregistrer les modifications car cette page a été mise à jour ailleurs. Prenez note de vos modifications, puis actualisez la page et réessayez de la modifier.`,"errorHandler.common-error.permission-denied.app":`Vous n'avez pas l'autorisation nécessaire pour effectuer cette action. Demandez l'accès au propriétaire de l'appli.`,"errorHandler.common-error.permission-denied.workspace":`Vous n'avez pas l'autorisation nécessaire pour effectuer cette action. Demandez l'accès au propriétaire de l'espace de travail.`,"errorHandler.common-error.CheckStatus.cta":`Voir la page de statut`,"errorHandler.common-error.refresh.cta":`Actualiser`,"errorHandler.common-error.noConnection":`Il semble que vous êtes hors ligne. Vérifiez votre connexion et réessayez.`,"errorHandler.common-error.resource-exhausted":`Trop d'actions ont été effectuées trop rapidement. Patientez une minute puis réessayez.`,"errorHandler.common-error.unauthenticated.cta":`Se connecter`,"errorHandler.common-error.goBack.cta":`Retour`,"errorHandler.common-error.not-found":`Il semble que cela n'existe plus.`,"errorHandler.common-error.captchaRequired.verify.cta":`Vérifier`,"errorHandler.common-error.tryAgain.cta":`Réessayer`,"errorHandler.requestID.tooltip.cta":`Copier l'ID`,"errorHandler.common-error.permission-denied":`Vous n'avez pas les autorisations nécessaires. Demandez l'accès au propriétaire.`,"errorHandler.requestID.tooltip.description":`Si vous signalez cette erreur à l'Assistance, partagez cet ID de demande pour qu'ils puissent enquêter.`,"errorHandler.common-error.technicalIssue-unmappedError":`Nous avons rencontré un problème technique. Veuillez réessayer ou actualiser la page.`,"errorHandler.common-error.unauthenticated":`Vous êtes déconnecté. Reconnectez-vous pour continuer.`,"errorHandler.common-error.networkError":`Un problème de connexion à votre réseau est survenu. Vérifiez votre connexion et réessayez.`,"errorHandler.common-error.technicalIssue":`Nous avons rencontré un problème technique. Veuillez réessayer ou actualiser la page.`,"errorHandler.common-error.captchaRequired":`Pour continuer, vérifiez que vous êtes un humain.`,"errorHandler.common-error.technicalIssue.generic":`Nous avons rencontré un problème technique. Veuillez réessayer ou actualiser la page.`,"errorHandler.common-error.validationBasic":`Certains champs contiennent des informations invalides ou manquantes.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copié.`}})),Ya=b({default:()=>Xa}),Xa,Za=v((()=>{Xa={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Qa=b({default:()=>$a}),$a,eo=v((()=>{$a={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),to=b({default:()=>no}),no,ro=v((()=>{no={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),io=b({default:()=>ao}),ao,oo=v((()=>{ao={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),so=b({default:()=>co}),co,lo=v((()=>{co={"errorHandler.common-error.permission-denied.site":`Anda tidak memiliki izin untuk melakukan ini. Minta akses dari pemilik situs.`,"errorHandler.uncommon-error.NotImplemented":`Tindakan ini tidak tersedia saat ini.`,"errorHandler.common-error.conflict":`Tidak dapat menyimpan perubahan karena halaman ini diperbarui di tempat lain. Catat perubahan Anda, lalu muat ulang dan coba edit lagi.`,"errorHandler.common-error.permission-denied.app":`Anda tidak memiliki izin untuk melakukan tindakan ini. Minta akses dari pemilik aplikasi.`,"errorHandler.common-error.permission-denied.workspace":`Anda tidak memiliki izin untuk melakukan tindakan ini. Minta akses dari pemilik ruang kerja.`,"errorHandler.common-error.CheckStatus.cta":`Periksa Halaman Status`,"errorHandler.common-error.refresh.cta":`Muat Ulang`,"errorHandler.common-error.noConnection":`Sepertinya Anda sedang offline. Periksa koneksi Anda dan coba lagi.`,"errorHandler.common-error.resource-exhausted":`Terlalu banyak tindakan yang dilakukan terlalu cepat. Tunggu sebentar dan coba lagi.`,"errorHandler.common-error.unauthenticated.cta":`Login`,"errorHandler.common-error.goBack.cta":`Kembali`,"errorHandler.common-error.not-found":`Sepertinya ini tidak ada lagi.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verifikasi`,"errorHandler.common-error.tryAgain.cta":`Coba Lagi`,"errorHandler.requestID.tooltip.cta":`Salin ID`,"errorHandler.common-error.permission-denied":`Anda tidak memiliki izin yang diperlukan. Minta akses dari pemilik.`,"errorHandler.requestID.tooltip.description":`Jika Anda melaporkan kesalahan ini ke Layanan Pelanggan, bagikan ID permintaan ini agar mereka dapat menyelidikinya.`,"errorHandler.common-error.technicalIssue-unmappedError":`Ada masalah teknis di pihak kami. Coba lagi atau muat ulang.`,"errorHandler.common-error.unauthenticated":`Anda telah logout. Login kembali untuk melanjutkan.`,"errorHandler.common-error.networkError":`Terjadi masalah saat menghubungkan ke jaringan Anda. Periksa koneksi Anda dan coba lagi.`,"errorHandler.common-error.technicalIssue":`Ada masalah teknis di pihak kami. Coba lagi atau muat ulang.`,"errorHandler.common-error.captchaRequired":`Untuk melanjutkan, verifikasi bahwa Anda manusia.`,"errorHandler.common-error.technicalIssue.generic":`Ada masalah teknis di pihak kami. Coba lagi atau muat ulang.`,"errorHandler.common-error.validationBasic":`Beberapa kolom memiliki informasi yang tidak valid atau tidak memiliki informasi.`,"errorHandler.requestID.tooltip.cta.copied-success":`Disalin!`}})),uo=b({default:()=>fo}),fo,po=v((()=>{fo={"errorHandler.common-error.permission-denied.site":`Non hai l'autorizzazione per farlo. Richiedi l'accesso al proprietario del sito.`,"errorHandler.uncommon-error.NotImplemented":`Questa azione non è disponibile al momento.`,"errorHandler.common-error.conflict":`Impossibile salvare le modifiche perché la pagina è stata aggiornata altrove. Prendi nota delle modifiche, aggiorna la pagina e riprova.`,"errorHandler.common-error.permission-denied.app":`Non hai l'autorizzazione per eseguire quest'azione. Richiedi l'accesso al proprietario dell'app.`,"errorHandler.common-error.permission-denied.workspace":`Non hai l'autorizzazione per eseguire quest'azione. Richiedi l'accesso al proprietario dello spazio di lavoro.`,"errorHandler.common-error.CheckStatus.cta":`Controlla la pagina dello stato`,"errorHandler.common-error.refresh.cta":`Aggiorna`,"errorHandler.common-error.noConnection":`Sembra che tu sia offline. Verifica la connessione e riprova.`,"errorHandler.common-error.resource-exhausted":`C'è stato un problema tecnico interno. Riprova o ricarica la pagina.`,"errorHandler.common-error.unauthenticated.cta":`Accedi`,"errorHandler.common-error.goBack.cta":`Indietro`,"errorHandler.common-error.not-found":`Sembra che questo elemento non esista più.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verifica`,"errorHandler.common-error.tryAgain.cta":`Riprova.`,"errorHandler.requestID.tooltip.cta":`Copia ID`,"errorHandler.common-error.permission-denied":`Non hai l'autorizzazione. Richiedi l'accesso al proprietario.`,"errorHandler.requestID.tooltip.description":`Se segnali un errore all'Assistenza clienti, condividi l'ID di questa richiesta per aiutarli a indagare.`,"errorHandler.common-error.technicalIssue-unmappedError":`C'è stato un problema tecnico interno. Riprova o ricarica la pagina.`,"errorHandler.common-error.unauthenticated":`La connessione è stata interrotta. Accedi di nuovo per continuare.`,"errorHandler.common-error.networkError":`Si è verificato un problema di connessione alla rete. Verifica la connessione e riprova.`,"errorHandler.common-error.technicalIssue":`C'è stato un problema tecnico interno. Riprova o ricarica la pagina.`,"errorHandler.common-error.captchaRequired":`Per continuare, conferma di essere umano.`,"errorHandler.common-error.technicalIssue.generic":`C'è stato un problema tecnico interno. Riprova o ricarica la pagina.`,"errorHandler.common-error.validationBasic":`Alcuni campi contengono informazioni non valide o mancanti.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copiato!`}})),mo=b({default:()=>ho}),ho,go=v((()=>{ho={"errorHandler.common-error.permission-denied.site":`これを行う権限がありません。サイト所有者にアクセス権をリクエストしてください。`,"errorHandler.uncommon-error.NotImplemented":`このアクションは現在ご利用いただけません。`,"errorHandler.common-error.conflict":`このページは別の場所で更新されたため、変更が保存されませんでした。変更内容を記録した上で、ページを再読み込みして再度お試しください。`,"errorHandler.common-error.permission-denied.app":`この操作を行う権限がありません。アプリのオーナーにアクセス権をリクエストしてください。`,"errorHandler.common-error.permission-denied.workspace":`このアクションを行う権限がありません。ワークスペースオーナーにアクセス権をリクエストしてください。`,"errorHandler.common-error.CheckStatus.cta":`ステータスページを確認する`,"errorHandler.common-error.refresh.cta":`再読み込みする`,"errorHandler.common-error.noConnection":`オフラインのようです。お手数ですが、接続状況を確認してもう一度お試しください。`,"errorHandler.common-error.resource-exhausted":`短い時間に多くの操作が行われました。お手数ですが、少しお待ちいただいてから、もう一度お試しください。`,"errorHandler.common-error.unauthenticated.cta":`ログイン`,"errorHandler.common-error.goBack.cta":`戻る`,"errorHandler.common-error.not-found":`このアイテムはもう存在しないようです。`,"errorHandler.common-error.captchaRequired.verify.cta":`確認する`,"errorHandler.common-error.tryAgain.cta":`もう一度試す`,"errorHandler.requestID.tooltip.cta":`ID をコピー`,"errorHandler.common-error.permission-denied":`必要な権限がありません。サイト所有者にアクセス権をリクエストしてください。`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`弊社側で技術的な問題が発生しました。お手数ですが、再度お試しになるかページを再読み込みしてください。`,"errorHandler.common-error.unauthenticated":`ログアウトしています。続行するには再度ログインしてください。`,"errorHandler.common-error.networkError":`ネットワーク接続中に問題が発生しました。お手数ですが、接続状況を確認してもう一度お試しください。`,"errorHandler.common-error.technicalIssue":`弊社側で技術的な問題が発生しました。お手数ですが、再度お試しになるかページを再読み込みしてください。`,"errorHandler.common-error.captchaRequired":`続行するには、あなたが人間であることを確認してください。`,"errorHandler.common-error.technicalIssue.generic":`弊社側で技術的な問題が発生しました。お手数ですが、再度お試しになるかページを再読み込みしてください。`,"errorHandler.common-error.validationBasic":`一部の項目には、情報が無効または不足しています。`,"errorHandler.requestID.tooltip.cta.copied-success":`コピー済み`}})),_o=b({default:()=>vo}),vo,yo=v((()=>{vo={"errorHandler.common-error.permission-denied.site":`해당 권한이 없습니다. 사이트 소유자에게 액세스 권한을 요청하세요.`,"errorHandler.uncommon-error.NotImplemented":`현재 실행이 불가능한 작업입니다.`,"errorHandler.common-error.conflict":`페이지가 다른 곳에서 업데이트되어 변경사항을 저장할 수 없습니다. 변경사항을 기억한 다음 페이지를 새로고침하고 다시 편집해보세요.`,"errorHandler.common-error.permission-denied.app":`작업 권한이 없습니다. 앱 소유자에게 액세스 권한을 요청하세요.`,"errorHandler.common-error.permission-denied.workspace":`작업 권한이 없습니다. 워크스페이스 소유자에게 액세스 권한을 요청하세요.`,"errorHandler.common-error.CheckStatus.cta":`상태 페이지 확인`,"errorHandler.common-error.refresh.cta":`새로고침`,"errorHandler.common-error.noConnection":`현재 오프라인 상태입니다. 인터넷 연결 상태를 확인한 후 다시 시도해보세요.`,"errorHandler.common-error.resource-exhausted":`짧은 시간 안에 너무 많은 작업이 수행되었습니다. 잠시 후에 다시 시도해보세요.`,"errorHandler.common-error.unauthenticated.cta":`로그인`,"errorHandler.common-error.goBack.cta":`돌아가기`,"errorHandler.common-error.not-found":`더 이상 존재하지 않습니다.`,"errorHandler.common-error.captchaRequired.verify.cta":`인증`,"errorHandler.common-error.tryAgain.cta":`다시 시도`,"errorHandler.requestID.tooltip.cta":`ID 복사`,"errorHandler.common-error.permission-denied":`필요한 권한이 없습니다. 소유자에게 액세스 권한을 요청하세요.`,"errorHandler.requestID.tooltip.description":`고객지원팀에 오류를 신고하는 경우, 담당자가 문제를 확인할 수 있도록 본 요청 ID를 공유해주세요.`,"errorHandler.common-error.technicalIssue-unmappedError":`Wix에 기술적인 문제가 발생하였습니다. 다시 시도하거나 페이지를 새로고침하세요.`,"errorHandler.common-error.unauthenticated":`로그아웃 상태입니다. 로그인 후 계속 진행하세요.`,"errorHandler.common-error.networkError":`오류가 발생하여 네트워크에 연결할 수 없습니다. 인터넷 연결 상태를 확인한 후 다시 시도해보세요.`,"errorHandler.common-error.technicalIssue":`Wix에 기술적인 문제가 발생하였습니다. 다시 시도하거나 페이지를 새로고침하세요.`,"errorHandler.common-error.captchaRequired":`계속 진행하려면 본인임을 인증하세요.`,"errorHandler.common-error.technicalIssue.generic":`Wix에 기술적인 문제가 발생하였습니다. 다시 시도하거나 페이지를 새로고침하세요.`,"errorHandler.common-error.validationBasic":`일부 입력란에 유효하지 않거나 누락된 정보가 있습니다.`,"errorHandler.requestID.tooltip.cta.copied-success":`복사됨`}})),bo=b({default:()=>xo}),xo,So=v((()=>{xo={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Co=b({default:()=>wo}),wo,To=v((()=>{wo={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Eo=b({default:()=>Do}),Do,Oo=v((()=>{Do={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),ko=b({default:()=>Ao}),Ao,jo=v((()=>{Ao={"errorHandler.common-error.permission-denied.site":`Je hebt geen machtiging om dit te doen. Vraag toegang aan bij de website-eigenaar.`,"errorHandler.uncommon-error.NotImplemented":`Deze actie is momenteel niet beschikbaar.`,"errorHandler.common-error.conflict":`Kan wijzigingen niet opslaan, omdat deze pagina ergens anders is bijgewerkt. Noteer je wijzigingen, vernieuw de pagina en probeer het opnieuw.`,"errorHandler.common-error.permission-denied.app":`Je bent niet gemachtigd om deze actie uit te voeren. Vraag toegang aan bij de app-eigenaar.`,"errorHandler.common-error.permission-denied.workspace":`Je bent niet gemachtigd om deze actie uit te voeren. Vraag toegang aan bij de werkruimte-eigenaar.`,"errorHandler.common-error.CheckStatus.cta":`Statuspagina controleren`,"errorHandler.common-error.refresh.cta":`Vernieuwen`,"errorHandler.common-error.noConnection":`Het lijkt erop dat je offline bent. Controleer je internetverbinding en probeer het opnieuw.`,"errorHandler.common-error.resource-exhausted":`Er zijn te veel acties te snel uitgevoerd. Wacht even en probeer het opnieuw.`,"errorHandler.common-error.unauthenticated.cta":`inloggen`,"errorHandler.common-error.goBack.cta":`Terug`,"errorHandler.common-error.not-found":`Het lijkt erop dat dit niet meer bestaat.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verifiëren`,"errorHandler.common-error.tryAgain.cta":`Opnieuw proberen`,"errorHandler.requestID.tooltip.cta":`ID kopiëren`,"errorHandler.common-error.permission-denied":`Je hebt de benodigde machtigingen niet. Vraag toegang aan bij de eigenaar.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`Er is een technisch probleem opgetreden aan onze kant. Probeer het opnieuw of vernieuw de pagina.`,"errorHandler.common-error.unauthenticated":`Je bent uitgelogd. Log opnieuw in om verder te gaan.`,"errorHandler.common-error.networkError":`Er is een probleem opgetreden tijdens het koppelen aan je netwerk. Controleer je internetverbinding en probeer het opnieuw.`,"errorHandler.common-error.technicalIssue":`Er is een technisch probleem opgetreden aan onze kant. Probeer het opnieuw of vernieuw de pagina.`,"errorHandler.common-error.captchaRequired":`Om door te gaan, verifieer je dat je een mens bent.`,"errorHandler.common-error.technicalIssue.generic":`Er is een technisch probleem opgetreden aan onze kant. Probeer het opnieuw of vernieuw de pagina.`,"errorHandler.common-error.validationBasic":`Sommige velden bevatten ongeldige of ontbrekende informatie.`,"errorHandler.requestID.tooltip.cta.copied-success":`Gekopieerd`}})),Mo=b({default:()=>No}),No,Po=v((()=>{No={"errorHandler.common-error.permission-denied.site":`Du har ikke tillatelse til å gjøre dette. Be om tilgang fra nettstedets eier.`,"errorHandler.uncommon-error.NotImplemented":`Denne handlingen er ikke tilgjengelig akkurat nå.`,"errorHandler.common-error.conflict":`Kan ikke lagre endringene fordi denne siden ble oppdatert et annet sted. Merk endringene dine, oppdater deretter og prøv å redigere på nytt.`,"errorHandler.common-error.permission-denied.app":`Du har ikke tillatelse til å utføre denne handlingen. Be om tilgang fra appens eier.`,"errorHandler.common-error.permission-denied.workspace":`Du har ikke tillatelse til å utføre denne handlingen. Be om tilgang fra eieren av arbeidsområdet.`,"errorHandler.common-error.CheckStatus.cta":`Sjekk status-siden`,"errorHandler.common-error.refresh.cta":`Oppdater`,"errorHandler.common-error.noConnection":`Det ser ut til at du er frakoblet. Sjekk tilkoblingen og prøv igjen.`,"errorHandler.common-error.resource-exhausted":`For mange handlinger ble utført for raskt. Vent et øyeblikk og prøv igjen.`,"errorHandler.common-error.unauthenticated.cta":`Logg inn`,"errorHandler.common-error.goBack.cta":`Gå tilbake`,"errorHandler.common-error.not-found":`Det ser ut til at dette ikke eksisterer lenger.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verifiser`,"errorHandler.common-error.tryAgain.cta":`Prøv på nytt`,"errorHandler.requestID.tooltip.cta":`Kopier ID`,"errorHandler.common-error.permission-denied":`Du har ikke de nødvendige tillatelsene. Be om tilgang fra eieren.`,"errorHandler.requestID.tooltip.description":`Hvis du rapporterer denne feilen til brukerstøtte, må du dele denne forespørsels-ID-en, slik at de kan undersøke saken.`,"errorHandler.common-error.technicalIssue-unmappedError":`Det oppstod et teknisk problem hos oss. Prøv på nytt eller last oppdater.`,"errorHandler.common-error.unauthenticated":`Du er logget ut. Logg inn igjen for å fortsette.`,"errorHandler.common-error.networkError":`Det oppstod et problem med tilkoblingen til nettverket ditt. Sjekk tilkoblingen og prøv igjen.`,"errorHandler.common-error.technicalIssue":`Det oppstod et teknisk problem hos oss. Prøv på nytt eller oppdater.`,"errorHandler.common-error.captchaRequired":`For å fortsette må du verifisere at du er et menneske.`,"errorHandler.common-error.technicalIssue.generic":`Det oppstod et teknisk problem hos oss. Prøv på nytt eller oppdater.`,"errorHandler.common-error.validationBasic":`Noen felt har ugyldig eller manglende informasjon.`,"errorHandler.requestID.tooltip.cta.copied-success":`Kopiert!`}})),Fo=b({default:()=>Io}),Io,Lo=v((()=>{Io={"errorHandler.common-error.permission-denied.site":`Nie masz uprawnień, aby to zrobić. Poproś właściciela strony o dostęp.`,"errorHandler.uncommon-error.NotImplemented":`Wykonanie tego działania jest w tej chwili niemożliwe.`,"errorHandler.common-error.conflict":`Nie można zapisać zmian, ponieważ ta strona została zaktualizowana w innym miejscu. Zanotuj zmiany, a następnie odśwież i spróbuj edytować ponownie.`,"errorHandler.common-error.permission-denied.app":`Nie masz uprawnień do wykonania tej czynności. Poproś właściciela aplikacji o dostęp.`,"errorHandler.common-error.permission-denied.workspace":`Nie masz uprawnień do wykonania tej czynności. Poproś właściciela obszaru roboczego o dostęp.`,"errorHandler.common-error.CheckStatus.cta":`Sprawdź stronę statusu`,"errorHandler.common-error.refresh.cta":`Odśwież`,"errorHandler.common-error.noConnection":`Wygląda na to, że jesteś offline. Sprawdź połączenie i spróbuj ponownie.`,"errorHandler.common-error.resource-exhausted":`Wiele działań zostało wykonanych zbyt szybko. Zaczekaj minutę i spróbuj ponownie.`,"errorHandler.common-error.unauthenticated.cta":`Zaloguj się`,"errorHandler.common-error.goBack.cta":`Wróć`,"errorHandler.common-error.not-found":`To już nie istnieje.`,"errorHandler.common-error.captchaRequired.verify.cta":`Zweryfikuj`,"errorHandler.common-error.tryAgain.cta":`Spróbuj ponownie`,"errorHandler.requestID.tooltip.cta":`Skopiuj identyfikator`,"errorHandler.common-error.permission-denied":`Nie masz wymaganych uprawnień. Poproś właściciela o dostęp.`,"errorHandler.requestID.tooltip.description":`Jeśli chcesz zgłosić ten błąd do działu obsługi klienta, podaj następujący identyfikator żądania, aby mogli przyjrzeć się tej sprawie.`,"errorHandler.common-error.technicalIssue-unmappedError":`Wystąpił problem techniczny po naszej stronie. Spróbuj ponownie lub odśwież.`,"errorHandler.common-error.unauthenticated":`Wylogowano. Zaloguj się ponownie, aby kontynuować.`,"errorHandler.common-error.networkError":`Wystąpił problem podczas połączenia z Twoją siecią. Sprawdź połączenie i spróbuj ponownie.`,"errorHandler.common-error.technicalIssue":`Wystąpił problem techniczny po naszej stronie. Spróbuj ponownie lub odśwież.`,"errorHandler.common-error.captchaRequired":`Aby kontynuować, potwierdź, że jesteś człowiekiem.`,"errorHandler.common-error.technicalIssue.generic":`Wystąpił problem techniczny po naszej stronie. Spróbuj ponownie lub odśwież.`,"errorHandler.common-error.validationBasic":`Niektóre pola zawierają nieprawidłowe lub brakujące informacje.`,"errorHandler.requestID.tooltip.cta.copied-success":`Skopiowano!`}})),Ro=b({default:()=>zo}),zo,Bo=v((()=>{zo={"errorHandler.common-error.permission-denied.site":`Você não tem permissão para fazer isso. Solicite acesso ao proprietário do site.`,"errorHandler.uncommon-error.NotImplemented":`Essa ação não está disponível no momento.`,"errorHandler.common-error.conflict":`Não é possível salvar as alterações porque essa página foi atualizada em outro lugar. Anote suas alterações, atualize e tente editar novamente.`,"errorHandler.common-error.permission-denied.app":`Você não tem permissão para fazer essa ação. Solicite acesso do proprietário do app.`,"errorHandler.common-error.permission-denied.workspace":`Você não tem permissão para fazer essa ação. Solicite acesso ao proprietário do espaço de trabalho.`,"errorHandler.common-error.CheckStatus.cta":`Verificar página de status`,"errorHandler.common-error.refresh.cta":`Atualizar`,"errorHandler.common-error.noConnection":`Parece que você está offline. Verifique sua conexão e tente novamente.`,"errorHandler.common-error.resource-exhausted":`Muitas ações foram feitas muito rapidamente. Aguarde alguns minutos e tente novamente.`,"errorHandler.common-error.unauthenticated.cta":`Fazer login`,"errorHandler.common-error.goBack.cta":`Voltar`,"errorHandler.common-error.not-found":`Parece que isso não existe mais.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verificar`,"errorHandler.common-error.tryAgain.cta":`Tentar novamente`,"errorHandler.requestID.tooltip.cta":`Copiar ID`,"errorHandler.common-error.permission-denied":`Você não tem as permissões necessárias. Solicite acesso ao proprietário.`,"errorHandler.requestID.tooltip.description":`Se você for reportar esse erro ao Apoio ao Cliente, compartilhe esse ID de solicitação para que eles possam investigar.`,"errorHandler.common-error.technicalIssue-unmappedError":`Houve um problema técnico no nosso sistema. Tente novamente ou atualize.`,"errorHandler.common-error.unauthenticated":`Sua conta está desconectada. Faça login novamente para continuar.`,"errorHandler.common-error.networkError":`Houve um problema na conexão com sua rede. Verifique sua conexão e tente novamente.`,"errorHandler.common-error.technicalIssue":`Houve um problema técnico no nosso sistema. Tente novamente ou atualize.`,"errorHandler.common-error.captchaRequired":`Para continuar, confirme que você é humano.`,"errorHandler.common-error.technicalIssue.generic":`Houve um problema técnico no nosso sistema. Tente novamente ou atualize.`,"errorHandler.common-error.validationBasic":`Alguns campos têm informações inválidas ou ausentes.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copiado`}})),Vo=b({default:()=>Ho}),Ho,Uo=v((()=>{Ho={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Wo=b({default:()=>Go}),Go,Ko=v((()=>{Go={"errorHandler.common-error.permission-denied.site":`У вас нет разрешения на это действие. Запросите доступ у владельца сайта.`,"errorHandler.uncommon-error.NotImplemented":`Сейчас это действие недоступно.`,"errorHandler.common-error.conflict":`Невозможно сохранить изменения, поскольку эта страница была обновлена в другом месте. Обратите внимание на изменения, затем обновите страницу и попробуйте редактировать снова.`,"errorHandler.common-error.permission-denied.app":`У вас нет разрешения для этого действия. Запросите доступ у владельца приложения.`,"errorHandler.common-error.permission-denied.workspace":`У вас нет разрешения для этого действия. Запросите доступ у владельца рабочего пространства.`,"errorHandler.common-error.CheckStatus.cta":`Проверить страницу статуса`,"errorHandler.common-error.refresh.cta":`Обновить`,"errorHandler.common-error.noConnection":`Похоже, вы оффлайн. Проверьте соединение и попробуйте снова.`,"errorHandler.common-error.resource-exhausted":`Слишком много действий выполнено слишком быстро. Попробуйте снова через минуту.`,"errorHandler.common-error.unauthenticated.cta":`Вход`,"errorHandler.common-error.goBack.cta":`Назад`,"errorHandler.common-error.not-found":`Похоже, этой опции больше нет.`,"errorHandler.common-error.captchaRequired.verify.cta":`Подтвердить`,"errorHandler.common-error.tryAgain.cta":`Попробовать еще раз`,"errorHandler.requestID.tooltip.cta":`Копировать ID`,"errorHandler.common-error.permission-denied":`У вас нет необходимых разрешений. Запросите доступ у владельца.`,"errorHandler.requestID.tooltip.description":`Если вы сообщите об ошибке команде поддержки, отправьте этот идентификатор запроса, чтобы они могли разобраться.`,"errorHandler.common-error.technicalIssue-unmappedError":`Возникла техническая проблема на нашей стороне. Попробуйте еще раз или обновите страницу.`,"errorHandler.common-error.unauthenticated":`Вы вышли из аккаунта. Войдите снова, чтобы продолжить.`,"errorHandler.common-error.networkError":`Возникла проблема при подключении к вашей сети. Проверьте подключение и попробуйте снова.`,"errorHandler.common-error.technicalIssue":`Возникла техническая проблема на нашей стороне. Попробуйте еще раз или обновите страницу.`,"errorHandler.common-error.captchaRequired":`Чтобы продолжить, подтвердите, что вы человек.`,"errorHandler.common-error.technicalIssue.generic":`Возникла техническая проблема на нашей стороне. Попробуйте еще раз или обновите страницу.`,"errorHandler.common-error.validationBasic":`В некоторых полях указана недействительная информация, или они не заполнены.`,"errorHandler.requestID.tooltip.cta.copied-success":`Скопировано!`}})),qo=b({default:()=>Jo}),Jo,Yo=v((()=>{Jo={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),Xo=b({default:()=>Zo}),Zo,Qo=v((()=>{Zo={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),$o=b({default:()=>es}),es,ts=v((()=>{es={"errorHandler.common-error.permission-denied.site":`Du har inte behörighet till detta. Begär åtkomst från sidägaren.`,"errorHandler.uncommon-error.NotImplemented":`Den här åtgärden är inte tillgänglig just nu.`,"errorHandler.common-error.conflict":`Det går inte att spara ändringar eftersom den här sidan har uppdaterats någon annanstans. Kom ihåg dina ändringar. Uppdatera sedan sidan och försök att redigera igen.`,"errorHandler.common-error.permission-denied.app":`Du har inte behörighet att utföra den här åtgärden. Begär åtkomst från appägaren.`,"errorHandler.common-error.permission-denied.workspace":`Du har inte behörighet att utföra den här åtgärden. Begär åtkomst från arbetsytans ägare.`,"errorHandler.common-error.CheckStatus.cta":`Kontrollera statussidan`,"errorHandler.common-error.refresh.cta":`Uppdatera`,"errorHandler.common-error.noConnection":`Det verkar som att du är offline. Kontrollera din anslutning och försök igen.`,"errorHandler.common-error.resource-exhausted":`För många åtgärder gjordes för snabbt. Vänta en stund och försök sedan igen.`,"errorHandler.common-error.unauthenticated.cta":`Logga in`,"errorHandler.common-error.goBack.cta":`Gå tillbaka`,"errorHandler.common-error.not-found":`Det här objektet verkar inte finnas längre.`,"errorHandler.common-error.captchaRequired.verify.cta":`Bekräfta`,"errorHandler.common-error.tryAgain.cta":`Försök igen`,"errorHandler.requestID.tooltip.cta":`Kopiera ID`,"errorHandler.common-error.permission-denied":`Du har inte de nödvändiga behörigheterna. Begär åtkomst från ägaren.`,"errorHandler.requestID.tooltip.description":`Om du rapporterar det här felet till kundtjänst kan du dela detta förfrågnings-ID så att de kan undersöka.`,"errorHandler.common-error.technicalIssue-unmappedError":`Det uppstod ett tekniskt problem på vår sida. Försök igen eller uppdatera.`,"errorHandler.common-error.unauthenticated":`Du är utloggad. Logga in igen för att fortsätta.`,"errorHandler.common-error.networkError":`Det uppstod ett problem med att ansluta till ditt nätverk. Kontrollera din anslutning och försök igen.`,"errorHandler.common-error.technicalIssue":`Det uppstod ett tekniskt problem på vår sida. Försök igen eller uppdatera.`,"errorHandler.common-error.captchaRequired":`Bekräfta att du inte är en robot för att fortsätta.`,"errorHandler.common-error.technicalIssue.generic":`Det uppstod ett tekniskt problem på vår sida. Försök igen eller uppdatera.`,"errorHandler.common-error.validationBasic":`Vissa fält har uppgifter som är ogiltiga eller saknas.`,"errorHandler.requestID.tooltip.cta.copied-success":`Kopierad!`}})),ns=b({default:()=>rs}),rs,is=v((()=>{rs={"errorHandler.common-error.permission-denied.site":`คุณไม่ได้รับอนุญาตให้ดำเนินการนี้ โปรดขออนุญาตจากเจ้าของเว็บไซต์เพื่อเข้าถึง`,"errorHandler.uncommon-error.NotImplemented":`ไม่สามารถดำเนินการนี้ได้ในขณะนี้`,"errorHandler.common-error.conflict":`ไม่สามารถบันทึกการแก้ไขเนื่องจากมีผู้อื่นอัปเดตหน้าเพจนี้ จดบันทึกสิ่งที่คุณแก้ไข จากนั้นรีเฟรชแล้วลองแก้ไขอีกครั้ง`,"errorHandler.common-error.permission-denied.app":`คุณไม่ได้รับอนุญาตให้ดำเนินการนี้ โปรดขออนุญาตจากเจ้าของแอปเพื่อเข้าถึง`,"errorHandler.common-error.permission-denied.workspace":`คุณไม่ได้รับอนุญาตให้ดำเนินการนี้ โปรดขออนุญาตจากเจ้าของพื้นที่ทำงานเพื่อเข้าถึง`,"errorHandler.common-error.CheckStatus.cta":`ตรวจสอบหน้าเพจสถานะ`,"errorHandler.common-error.refresh.cta":`รีเฟรช`,"errorHandler.common-error.noConnection":`ดูเหมือนคุณกำลังออฟไลน์ โปรดตรวจสอบการเชื่อมต่ออินเทอร์เน็ตจากนั้นลองอีกครั้ง`,"errorHandler.common-error.resource-exhausted":`มีการดำเนินการมากเกินไปในเวลาอันรวดเร็ว โปรดรอสักครู่แล้วลองอีกครั้ง`,"errorHandler.common-error.unauthenticated.cta":`เข้าสู่ระบบ`,"errorHandler.common-error.goBack.cta":`ย้อนกลับ`,"errorHandler.common-error.not-found":`ดูเหมือนว่าไม่มีข้อมูลนี้แล้ว`,"errorHandler.common-error.captchaRequired.verify.cta":`ยืนยัน`,"errorHandler.common-error.tryAgain.cta":`ลองอีกครั้ง`,"errorHandler.requestID.tooltip.cta":`คัดลอก ID`,"errorHandler.common-error.permission-denied":`คุณไม่ได้รับอนุญาตตามที่จำเป็น โปรดขออนุญาตจากเจ้าของเพื่อเข้าถึง`,"errorHandler.requestID.tooltip.description":`หากคุณรายงานปัญหานี้ให้ฝ่ายดูแลลูกค้าทราบ โปรดแจ้ง ID คำขอนี้เพื่อให้พวกเขาตรวจสอบได้`,"errorHandler.common-error.technicalIssue-unmappedError":`พบปัญหาทางเทคนิคในส่วนของเรา ลองอีกครั้งหรือรีเฟรช`,"errorHandler.common-error.unauthenticated":`คุณออกจากระบบแล้ว โปรดเข้าสู่ระบบใหม่เพื่อดำเนินการต่อ`,"errorHandler.common-error.networkError":`พบปัญหาในการเชื่อมต่อกับเครือข่ายของคุณ โปรดตรวจสอบการเชื่อมต่ออินเทอร์เน็ตจากนั้นลองอีกครั้ง`,"errorHandler.common-error.technicalIssue":`พบปัญหาทางเทคนิคในส่วนของเรา ลองอีกครั้งหรือรีเฟรช`,"errorHandler.common-error.captchaRequired":`โปรดยืนยันว่าคุณเป็นมนุษย์ เพื่อดำเนินการต่อ`,"errorHandler.common-error.technicalIssue.generic":`พบปัญหาทางเทคนิคในส่วนของเรา ลองอีกครั้งหรือรีเฟรช`,"errorHandler.common-error.validationBasic":`ข้อมูลในบางช่องไม่ถูกต้องหรือไม่ครบถ้วน`,"errorHandler.requestID.tooltip.cta.copied-success":`คัดลอกแล้ว !`}})),as=b({default:()=>os}),os,ss=v((()=>{os={"errorHandler.common-error.permission-denied.site":`You don't have permission to do this. Contact the site owner.`,"errorHandler.uncommon-error.NotImplemented":`Unfortunately, this action isn’t available.`,"errorHandler.common-error.conflict":`This was recently updated somewhere else. Refresh the page to get the latest version.`,"errorHandler.common-error.permission-denied.app":`You don't have permission to perform this action. Contact the app owner.`,"errorHandler.common-error.permission-denied.workspace":`You don't have permission to perform this action. Contact the workspace owner.`,"errorHandler.common-error.CheckStatus.cta":`Check Status Page`,"errorHandler.common-error.refresh.cta":`Refresh`,"errorHandler.common-error.noConnection":`Looks like you're offline. Check your connection and try again.`,"errorHandler.common-error.resource-exhausted":`This action couldn't be completed due to a technical issue. Wait a minute and try again. `,"errorHandler.common-error.unauthenticated.cta":`Log In`,"errorHandler.common-error.goBack.cta":`Go Back`,"errorHandler.common-error.not-found":`It looks like this item doesn't exist anymore.`,"errorHandler.common-error.captchaRequired.verify.cta":`Verify`,"errorHandler.common-error.tryAgain.cta":`Try Again`,"errorHandler.requestID.tooltip.cta":`Copy ID`,"errorHandler.common-error.permission-denied":`You don't have permission to perform this action. Request access from the owner.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`This action wasn't completed due to a technical issue. Try again or refresh.`,"errorHandler.common-error.unauthenticated":`Your session has expired. Refresh the page to log in again.`,"errorHandler.common-error.networkError":`There was an issue connecting to your network. Check your connection and try again.`,"errorHandler.common-error.technicalIssue":`This action wasn't completed due to a technical issue.`,"errorHandler.common-error.captchaRequired":`To continue, verify you are human.`,"errorHandler.common-error.technicalIssue.generic":`This action wasn't completed due to a technical issue. Try again.`,"errorHandler.common-error.validationBasic":`Some fields have invalid or missing information.`,"errorHandler.requestID.tooltip.cta.copied-success":`Copied!`}})),cs=b({default:()=>ls}),ls,us=v((()=>{ls={"errorHandler.common-error.permission-denied.site":`Bu eylem için izniniz yok. Site sahibinden izin isteyin.`,"errorHandler.uncommon-error.NotImplemented":`Bu eylem şu anda kullanılamıyor.`,"errorHandler.common-error.conflict":`Bu sayfa başka bir yerde güncellendiği için değişiklikler kaydedilemiyor. Değişikliklerinizi not alın ve sayfayı yenileyip tekrar düzenlemeyi deneyin.`,"errorHandler.common-error.permission-denied.app":`Bu eylemi gerçekleştirme izniniz yok. Uygulama sahibinden izin isteyin.`,"errorHandler.common-error.permission-denied.workspace":`Bu eylemi gerçekleştirme izniniz yok. Çalışma alanı sahibinden izin isteyin.`,"errorHandler.common-error.CheckStatus.cta":`Durum Sayfası`,"errorHandler.common-error.refresh.cta":`Yenile`,"errorHandler.common-error.noConnection":`Çevrim dışısınız. Bağlantınızı kontrol edip tekrar deneyin.`,"errorHandler.common-error.resource-exhausted":`Kısa sürede çok fazla eylem gerçekleştirildi. Bir dakika bekleyip tekrar deneyin.`,"errorHandler.common-error.unauthenticated.cta":`Giriş Yap`,"errorHandler.common-error.goBack.cta":`Geri Dön`,"errorHandler.common-error.not-found":`Bu öge artık mevcut değil.`,"errorHandler.common-error.captchaRequired.verify.cta":`Doğrula`,"errorHandler.common-error.tryAgain.cta":`Tekrar Dene`,"errorHandler.requestID.tooltip.cta":`Kimliği kopyala`,"errorHandler.common-error.permission-denied":`Gerekli izinleriniz yok. Site sahibinden erişim isteyin.`,"errorHandler.requestID.tooltip.description":`Bu hatayı müşteri hizmetlerine bildirirseniz araştırılabilmesi için bu talep kimliğini paylaşın.`,"errorHandler.common-error.technicalIssue-unmappedError":`Bizim tarafımızda teknik bir sorun oluştu. Tekrar deneyin veya ekranı yenileyin.`,"errorHandler.common-error.unauthenticated":`Çıkış yaptınız. Devam etmek için tekrar giriş yapın.`,"errorHandler.common-error.networkError":`Ağınıza bağlanılırken bir sorun oluştu. Bağlantınızı kontrol edip tekrar deneyin.`,"errorHandler.common-error.technicalIssue":`Bizim tarafımızda teknik bir sorun oluştu. Tekrar deneyin veya ekranı yenileyin.`,"errorHandler.common-error.captchaRequired":`Devam etmek için insan olduğunuzu doğrulayın.`,"errorHandler.common-error.technicalIssue.generic":`Bizim tarafımızda teknik bir sorun oluştu. Tekrar deneyin veya ekranı yenileyin.`,"errorHandler.common-error.validationBasic":`Bazı alanlardaki bilgiler geçersiz veya eksik.`,"errorHandler.requestID.tooltip.cta.copied-success":`Kopyalandı!`}})),ds=b({default:()=>fs}),fs,ps=v((()=>{fs={"errorHandler.common-error.permission-denied.site":`У вас немає дозволу виконувати цю дію. Попросіть власника сайту надати вам доступ.`,"errorHandler.uncommon-error.NotImplemented":`Ця дія зараз недоступна.`,"errorHandler.common-error.conflict":`Не вдається зберегти зміни, бо цю сторінку оновлено в іншому місці. Запишіть зміни, оновіть і спробуйте відредагувати знову.`,"errorHandler.common-error.permission-denied.app":`У вас немає дозволу виконувати цю дію. Попросіть власника додатка надати вам доступ.`,"errorHandler.common-error.permission-denied.workspace":`У вас немає дозволу виконувати цю дію. Попросіть власника робочого простору надати вам доступ.`,"errorHandler.common-error.CheckStatus.cta":`Перевірте сторінку статусу`,"errorHandler.common-error.refresh.cta":`Перезавантажити`,"errorHandler.common-error.noConnection":`Схоже, що ви не в мережі. Перевірте підключення до інтернету та повторіть спробу.`,"errorHandler.common-error.resource-exhausted":`Забагато дій виконано зашвидко. Почекайте хвилину та спробуйте знову.`,"errorHandler.common-error.unauthenticated.cta":`Увійдіть`,"errorHandler.common-error.goBack.cta":`Повернутися`,"errorHandler.common-error.not-found":`Схоже, що цього більше не існує.`,"errorHandler.common-error.captchaRequired.verify.cta":`Підтвердити`,"errorHandler.common-error.tryAgain.cta":`Спробувати знову`,"errorHandler.requestID.tooltip.cta":`Копіювати ідентифікатор`,"errorHandler.common-error.permission-denied":`У вас немає потрібних дозволів. Попросіть власника надати вам доступ.`,"errorHandler.requestID.tooltip.description":`If the issue continues, contact Customer Care and share this Request ID with them so they can investigate.`,"errorHandler.common-error.technicalIssue-unmappedError":`У нас виникла технічна проблема. Спробуйте знову або оновіть.`,"errorHandler.common-error.unauthenticated":`Ви вийшли з акаунта. Увійдіть, щоб продовжити.`,"errorHandler.common-error.networkError":`Виникла проблема з підключенням до вашої мережі. Перевірте підключення до інтернету та повторіть спробу.`,"errorHandler.common-error.technicalIssue":`У нас виникла технічна проблема. Спробуйте знову або оновіть.`,"errorHandler.common-error.captchaRequired":`Щоб продовжити, підтвердьте, що ви людина.`,"errorHandler.common-error.technicalIssue.generic":`У нас виникла технічна проблема. Спробуйте знову або оновіть.`,"errorHandler.common-error.validationBasic":`Інформація в деяких полях відсутня або недійсна.`,"errorHandler.requestID.tooltip.cta.copied-success":`Скопійовано`}})),ms=b({default:()=>hs}),hs,gs=v((()=>{hs={"errorHandler.common-error.permission-denied.site":`Bạn không có quyền thực hiện thao tác này. Yêu cầu quyền truy cập từ chủ trang web.`,"errorHandler.uncommon-error.NotImplemented":`Hành động này hiện không khả dụng.`,"errorHandler.common-error.conflict":`Không thể lưu thay đổi vì trang này đã được cập nhật ở một nơi khác. Ghi chú lại các thay đổi của bạn, sau đó làm mới và thử chỉnh sửa lại.`,"errorHandler.common-error.permission-denied.app":`Bạn không có quyền thực hiện hành động này. Hãy cầu quyền truy cập từ chủ sở hữu ứng dụng.`,"errorHandler.common-error.permission-denied.workspace":`Bạn không có quyền thực hiện hành động này. Hãy yêu cầu quyền truy cập từ chủ sở hữu vùng làm việc.`,"errorHandler.common-error.CheckStatus.cta":`Kiểm tra trang trạng thái`,"errorHandler.common-error.refresh.cta":`Làm mới`,"errorHandler.common-error.noConnection":`Có vẻ bạn đang ngoại tuyến. Hãy kiểm tra kết nối rồi thử lại.`,"errorHandler.common-error.resource-exhausted":`Đã thực hiện quá nhiều thao tác trong thời gian ngắn. Hãy đợi một lát và thử lại.`,"errorHandler.common-error.unauthenticated.cta":`Đăng nhập`,"errorHandler.common-error.goBack.cta":`Quay lại`,"errorHandler.common-error.not-found":`Có vẻ như nội dung này không tồn tại nữa.`,"errorHandler.common-error.captchaRequired.verify.cta":`xác minh`,"errorHandler.common-error.tryAgain.cta":`Thử lại`,"errorHandler.requestID.tooltip.cta":`Sao chép ID`,"errorHandler.common-error.permission-denied":`Bạn không có đủ các quyền cần thiết. Hãy yêu cầu quyền truy cập từ chủ sở hữu.`,"errorHandler.requestID.tooltip.description":`Nếu bạn báo cáo lỗi này cho bộ phận Chăm sóc khách hàng, hãy chia sẻ ID yêu cầu này để họ có thể điều tra.`,"errorHandler.common-error.technicalIssue-unmappedError":`Chúng tôi đã gặp phải vấn đề kỹ thuật. Hãy thử lại hoặc làm mới.`,"errorHandler.common-error.unauthenticated":`Bạn đã đăng xuất. Đăng nhập lại để tiếp tục.`,"errorHandler.common-error.networkError":`Đã xảy ra sự cố khi kết nối với mạng của bạn. Hãy kiểm tra kết nối rồi thử lại.`,"errorHandler.common-error.technicalIssue":`Chúng tôi đã gặp phải vấn đề kỹ thuật. Hãy thử lại hoặc làm mới.`,"errorHandler.common-error.captchaRequired":`Để tiếp tục, hãy xác minh bạn là con người.`,"errorHandler.common-error.technicalIssue.generic":`Chúng tôi đã gặp phải vấn đề kỹ thuật. Hãy thử lại hoặc làm mới.`,"errorHandler.common-error.validationBasic":`Một số trường có thông tin không hợp lệ hoặc thiếu thông tin.`,"errorHandler.requestID.tooltip.cta.copied-success":`Đã sao chép!`}})),_s=b({default:()=>vs}),vs,ys=v((()=>{vs={"errorHandler.common-error.permission-denied.site":`您沒有執行此操作的權限。請向網站負責人請求存取權限。`,"errorHandler.uncommon-error.NotImplemented":`此操作暫不可用。`,"errorHandler.common-error.conflict":`無法儲存變更,因為頁面已在別處更新。請記下變更,然後重新整理並嘗試再次編輯。`,"errorHandler.common-error.permission-denied.app":`您沒有權限執行這個操作。請向應用程式負責人請求存取權限。`,"errorHandler.common-error.permission-denied.workspace":`您沒有權限執行這個操作。請向工作空間負責人請求存取權限。`,"errorHandler.common-error.CheckStatus.cta":`檢查狀態頁面`,"errorHandler.common-error.refresh.cta":`重新整理`,"errorHandler.common-error.noConnection":`您似乎已離線。請檢查連線並再試一次。`,"errorHandler.common-error.resource-exhausted":`過快完成過多操作。請稍候片刻,然後再試一次。`,"errorHandler.common-error.unauthenticated.cta":`登入`,"errorHandler.common-error.goBack.cta":`返回`,"errorHandler.common-error.not-found":`這似乎不再存在。`,"errorHandler.common-error.captchaRequired.verify.cta":`驗證`,"errorHandler.common-error.tryAgain.cta":`再試一次`,"errorHandler.requestID.tooltip.cta":`複製 ID`,"errorHandler.common-error.permission-denied":`您沒有必要的權限。請向負責人請求存取權限。`,"errorHandler.requestID.tooltip.description":`如果您向顧客服務報告此錯誤,請提供此請求 ID 以便調查。`,"errorHandler.common-error.technicalIssue-unmappedError":`我們這邊發生技術問題。請再試一次或者重新整理。`,"errorHandler.common-error.unauthenticated":`您已登出。若要繼續,請重新登入。`,"errorHandler.common-error.networkError":`連結到網路時發生問題。請檢查連線並再試一次。`,"errorHandler.common-error.technicalIssue":`我們這邊發生技術問題。請再試一次或者重新整理。`,"errorHandler.common-error.captchaRequired":`若要繼續,請驗證您是人類。`,"errorHandler.common-error.technicalIssue.generic":`我們這邊發生技術問題。請再試一次或者重新整理。`,"errorHandler.common-error.validationBasic":`某些欄位具有無效資訊或缺少資訊。`,"errorHandler.requestID.tooltip.cta.copied-success":`已複製!`}})),bs={ar:()=>L(()=>Promise.resolve().then(()=>(va(),ga)),void 0,import.meta.url),bg:()=>L(()=>Promise.resolve().then(()=>(xa(),ya)),void 0,import.meta.url),ca:()=>L(()=>Promise.resolve().then(()=>(wa(),Sa)),void 0,import.meta.url),cs:()=>L(()=>Promise.resolve().then(()=>(Da(),Ta)),void 0,import.meta.url),da:()=>L(()=>Promise.resolve().then(()=>(Aa(),Oa)),void 0,import.meta.url),de:()=>L(()=>Promise.resolve().then(()=>(Na(),ja)),void 0,import.meta.url),el:()=>L(()=>Promise.resolve().then(()=>(Ia(),Pa)),void 0,import.meta.url),en:()=>L(()=>Promise.resolve().then(()=>(za(),La)),void 0,import.meta.url),es:()=>L(()=>Promise.resolve().then(()=>(Ha(),Ba)),void 0,import.meta.url),fi:()=>L(()=>Promise.resolve().then(()=>(Ga(),Ua)),void 0,import.meta.url),fr:()=>L(()=>Promise.resolve().then(()=>(Ja(),Ka)),void 0,import.meta.url),he:()=>L(()=>Promise.resolve().then(()=>(Za(),Ya)),void 0,import.meta.url),hi:()=>L(()=>Promise.resolve().then(()=>(eo(),Qa)),void 0,import.meta.url),hr:()=>L(()=>Promise.resolve().then(()=>(ro(),to)),void 0,import.meta.url),hu:()=>L(()=>Promise.resolve().then(()=>(oo(),io)),void 0,import.meta.url),id:()=>L(()=>Promise.resolve().then(()=>(lo(),so)),void 0,import.meta.url),it:()=>L(()=>Promise.resolve().then(()=>(po(),uo)),void 0,import.meta.url),ja:()=>L(()=>Promise.resolve().then(()=>(go(),mo)),void 0,import.meta.url),ko:()=>L(()=>Promise.resolve().then(()=>(yo(),_o)),void 0,import.meta.url),lt:()=>L(()=>Promise.resolve().then(()=>(So(),bo)),void 0,import.meta.url),lv:()=>L(()=>Promise.resolve().then(()=>(To(),Co)),void 0,import.meta.url),ms:()=>L(()=>Promise.resolve().then(()=>(Oo(),Eo)),void 0,import.meta.url),nl:()=>L(()=>Promise.resolve().then(()=>(jo(),ko)),void 0,import.meta.url),no:()=>L(()=>Promise.resolve().then(()=>(Po(),Mo)),void 0,import.meta.url),pl:()=>L(()=>Promise.resolve().then(()=>(Lo(),Fo)),void 0,import.meta.url),pt:()=>L(()=>Promise.resolve().then(()=>(Bo(),Ro)),void 0,import.meta.url),ro:()=>L(()=>Promise.resolve().then(()=>(Uo(),Vo)),void 0,import.meta.url),ru:()=>L(()=>Promise.resolve().then(()=>(Ko(),Wo)),void 0,import.meta.url),sk:()=>L(()=>Promise.resolve().then(()=>(Yo(),qo)),void 0,import.meta.url),sl:()=>L(()=>Promise.resolve().then(()=>(Qo(),Xo)),void 0,import.meta.url),sv:()=>L(()=>Promise.resolve().then(()=>(ts(),$o)),void 0,import.meta.url),th:()=>L(()=>Promise.resolve().then(()=>(is(),ns)),void 0,import.meta.url),tl:()=>L(()=>Promise.resolve().then(()=>(ss(),as)),void 0,import.meta.url),tr:()=>L(()=>Promise.resolve().then(()=>(us(),cs)),void 0,import.meta.url),uk:()=>L(()=>Promise.resolve().then(()=>(ps(),ds)),void 0,import.meta.url),vi:()=>L(()=>Promise.resolve().then(()=>(gs(),ms)),void 0,import.meta.url),zh:()=>L(()=>Promise.resolve().then(()=>(ys(),_s)),void 0,import.meta.url)},xs=e=>typeof e.default==`object`?e.default:e,Ss=async e=>{let t=bs[e];if(t==null)throw Error(`@wix/cairo: Failed to find translations for locale '${e}'`);return xs(await t())},Cs=class{constructor(e){W(this,`i18n`,void 0),W(this,`_initPromise`,void 0),W(this,`_ready`,void 0),W(this,`translate`,(e,t)=>this.i18n.t(e,t)),W(this,`getTranslateFn`,async()=>(await this.getInitPromise(),this.translate)),this.i18n=e.createI18n({asyncMessagesLoader:Ss,disableAutoInit:!0}),this._initPromise=new Promise(async e=>{var t,n;let r=!1,i=(t,n,a)=>{var o,s;t===`en`&&((o=(s=this.i18n).off)==null||o.call(s,`failedLoading`,i),r=!0,e(a))};(t=(n=this.i18n).on)==null||t.call(n,`failedLoading`,i);try{if(await this.i18n.init(),r)return;e(null),this._ready=!0}catch(t){e(t)}})}async getInitPromise(){let e=await this._initPromise;if(e)throw e}};function ws(e,t){var n;let{errorAccessor:r,errorCodesMap:i}=t,{biLogger:a}=e,{errorHandlerState:o,applicationError:s}=r,c=s?.code,l=i==null||(n=i.applicationError)==null?void 0:n[c];a.report(ea(Yi)({error_opt_out:l===!1,is_override_error:String(i!=null),session_id:o?.sessionId}))}for(var G=[],Ts=0;Ts<256;++Ts)G.push((Ts+256).toString(16).slice(1));function Es(e,t=0){return(G[e[t+0]]+G[e[t+1]]+G[e[t+2]]+G[e[t+3]]+`-`+G[e[t+4]]+G[e[t+5]]+`-`+G[e[t+6]]+G[e[t+7]]+`-`+G[e[t+8]]+G[e[t+9]]+`-`+G[e[t+10]]+G[e[t+11]]+G[e[t+12]]+G[e[t+13]]+G[e[t+14]]+G[e[t+15]]).toLowerCase()}var Ds,Os=new Uint8Array(16);function ks(){if(!Ds&&(Ds=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ds))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return Ds(Os)}var As={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function js(e,t,n){if(As.randomUUID&&!t&&!e)return As.randomUUID();e||={};var r=e.random||(e.rng||ks)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n||=0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Es(r)}function Ms(e,t){let{message:n,action:r,errorAccessor:i,errorResolution:a}=t,{biLogger:o,commonErrorsMapState:s,translations:c}=e,{errorHandlerState:l}=i,{consumerResolvedError:u}=a??{};o.report(ea(Xi)({session_id:l?.sessionId,translated_message:n,action_text:r?.text,is_consumer_resolved_error:u!=null,common_errors_load_failed:String(s.commonErrors==null),isEn:c.i18n.language===`en`}))}function Ns(e,t){let{message:n,action:r,errorAccessor:i}=t,{biLogger:a,translations:o}=e;a.report(ea(Zi)({session_id:i.errorHandlerState?.sessionId,displayed_message:n,displayed_action:r?.text,action_was_provided:String(r?.onClick!=null),isEn:o.i18n.language===`en`}))}var Ps=b({createCommonErrorsMapping:()=>Fs,createGetNetworkErrorShowErrorProps:()=>Rs,getConnectionErrorShowErrorProps:()=>Is,getDefaultErrorShowErrorProps:()=>Ls,setCommonErrors:()=>zs});function Fs(e,t){let{webWindow:n}=t,r=n?.location;return{applicationError:{CAPTCHA_REQUIRED:()=>({message:e(`errorHandler.common-error.captchaRequired`)})},statusCodeError:{UNAUTHENTICATED:()=>({message:e(`errorHandler.common-error.unauthenticated`),action:n?{text:e(`errorHandler.common-error.unauthenticated.cta`),onClick:()=>{let e=new URL(`https://users.wix.com/signin`);e.searchParams.set(`redirectTo`,window.location.href),n.open==null||n.open(e.href,`_blank`)}}:void 0}),INVALID_ARGUMENT:()=>({message:e(`errorHandler.common-error.validationBasic`)}),PERMISSION_DENIED:()=>({message:e(`errorHandler.common-error.permission-denied.site`)}),NOT_FOUND:()=>({message:e(`errorHandler.common-error.not-found`)}),ALREADY_EXISTS:()=>({message:e(`errorHandler.common-error.conflict`),action:r?{text:e(`errorHandler.common-error.refresh.cta`),onClick:()=>{r.reload()}}:void 0}),UNAVAILABLE:()=>({message:e(`errorHandler.common-error.technicalIssue`)}),RESOURCE_EXHAUSTED:()=>({message:e(`errorHandler.common-error.resource-exhausted`)}),BAD_GATEWAY:()=>({message:e(`errorHandler.common-error.technicalIssue`)}),GATEWAY_TIMEOUT:()=>({message:e(`errorHandler.common-error.technicalIssue`)}),INTERNAL:()=>({message:e(`errorHandler.common-error.technicalIssue`)})}}}function Is(e){return{message:e(`errorHandler.common-error.noConnection`)}}function Ls(e){return{message:e(`errorHandler.common-error.technicalIssue`)}}function Rs(e){return t=>{let n=t.exceptionMessage?.toLowerCase();return n===`network error`?{message:e(`errorHandler.common-error.networkError`)}:n===`request aborted`||n===`timeout exceeded`?{message:e(`errorHandler.common-error.technicalIssue.generic`)}:{message:e(`errorHandler.common-error.technicalIssue-unmappedError`)}}}async function zs(e){let{translations:t,errorMonitor:n}=e;try{let n=await t.getTranslateFn();e.commonErrors={commonErrorsMap:Fs(n,e),connectionErrorShowErrorProps:Is(n),defaultErrorShowErrorProps:Ls(n),getNetworkErrorShowErrorProps:Rs(n)}}catch(e){n.captureException(e)}}var Bs=v((()=>{})),Vs=()=>L(()=>Promise.resolve().then(()=>(Bs(),Ps)),void 0,import.meta.url),Hs=class{constructor(e){W(this,`translations`,void 0),W(this,`errorMonitor`,void 0),W(this,`webWindow`,void 0),W(this,`getErrorCodesMap`,void 0),W(this,`_initPromise`,void 0),W(this,`commonErrors`,void 0),this.translations=e.translations,this.errorMonitor=e.errorMonitor,this.webWindow=e.webWindow,this.getErrorCodesMap=e.getErrorCodesMap??Vs,this._initPromise=this._init()}async getInitPromise(){let e=await this._initPromise;if(e)throw e}async _init(){try{let{setCommonErrors:e}=await this.getErrorCodesMap();return await e(this),null}catch(e){return e}}};function Us(e,t){let{biLogger:n}=e,{errorAccessor:r}=t,{errorHandlerState:i}=r,a=i?.sessionId;a&&n.report(ea(Qi)({session_id:a}))}var Ws=class{constructor(e){var t=this;W(this,`errorHandler`,void 0),W(this,`withErrorHandler`,async function(e,n,r){r===void 0&&(r={});let{errorHandler:i}=t,a={errorCodesMap:{validationError:n,statusCodeError:r.statusCodesOverrides,applicationError:Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r&&(e[n]=(e,t)=>r(t)),e},{}),serverError:r.serverErrorOverride}},o=await i.withErrorHandler(e,a);if(typeof Response<`u`&&o instanceof Response){let e=new ha({error:o});i._setErrorHandlerErrorCodesMap(e,a);let{errorHandlerState:t}=e;!o.ok&&t&&(t.responseData=await o.json().catch(()=>null))}return o}),W(this,`getResolvedError`,e=>{let{errorHandler:t}=this,{errorMonitor:n}=t;try{let n=new ha({error:e}),{httpError:r,errorHandlerState:i}=n,a=t._resolveError(n),o=i?.resolvedError,s=o?.message??`This action wasn't completed due to a technical issue.`,c=o?.action,l=o?.requestId??r?.requestId;return Ms(t,{message:s,action:c,errorAccessor:n,errorResolution:a}),{message:s,action:c,requestId:l,...o}}catch(e){throw console.error(e),n.captureException(e),e}}),W(this,`showError`,(e,t)=>{this.errorHandler.showError(e,t)}),W(this,`reportRetryAttempt`,e=>{this.errorHandler.reportRetryAttempt(e)}),W(this,`handleError`,(e,t)=>{let{errorHandler:n}=this;typeof Response<`u`&&e instanceof Response&&e.ok||n.handleError(e,t)}),this.errorHandler=e}};function Gs(e){return e==null?e:e.split(`,`)[0]?.trim()}var Ks=class{constructor(e){var t=this;W(this,`environment`,void 0),W(this,`biDefaultsOverrides`,void 0),W(this,`biLogger`,void 0),W(this,`errorMonitor`,void 0),W(this,`experiments`,void 0),W(this,`platformShowError`,void 0),W(this,`translations`,void 0),W(this,`commonErrorsMapState`,void 0),W(this,`onlineManager`,void 0),W(this,`webWindow`,void 0),W(this,`_skipWaitTranslations`,void 0),W(this,`v2`,void 0),W(this,`handleError`,function(e,n){if(n===void 0&&(n={}),t._isErrorHandlerDisabled())return;let{errorMonitor:r}=t;try{let r=new ha({error:e});t._setErrorHandlerSessionId(r),ta(t,{errorAccessor:r,requestOptions:n.requestOptions})}catch(e){console.error(e),r.captureException(e)}}),W(this,`withErrorHandler`,async(e,t)=>{try{return await e()}catch(e){let n=new ha({error:e});throw this._setErrorHandlerErrorCodesMap(n,t),e}}),W(this,`getResolvedError`,e=>{let{errorMonitor:t}=this;try{let t=new ha({error:e}),{applicationError:n,validationError:r,httpError:i,errorHandlerState:a}=t,o=this._resolveError(t),s=a?.resolvedError,c=s?.message??`This action wasn't completed due to a technical issue.`;return Ms(this,{message:c,action:s?.action,errorAccessor:t,errorResolution:o}),{message:c,action:s?.action,validationError:r,applicationError:n,httpError:i,requestId:Gs(i?.requestId)}}catch(e){throw console.error(e),t.captureException(e),e}}),W(this,`reportRetryAttempt`,e=>{let{errorMonitor:t}=this;try{let t=new ha({error:e});Us(this,{errorAccessor:t})}catch(e){console.error(e),t.captureException(e)}}),W(this,`showError`,(e,t)=>{let{platformShowError:n,errorMonitor:r}=this;if(n)try{let r=new ha({error:e}),{errorHandlerState:i}=r;this._resolveError(r);let a=i?.resolvedError,o={...a,...t},s=t?.message??a?.message??`This action wasn't completed due to a technical issue.`,c=t?.action??a?.action;Ns(this,{message:s,action:c,errorAccessor:r}),n({...o,requestId:Gs(r.httpError?.requestId),message:s,action:c!=null&&c.onClick?{text:c.text,onClick:c.onClick}:void 0})}catch(e){console.error(e),r.captureException(e)}}),this.environment=e.environment,this.biDefaultsOverrides=e.biDefaultsOverrides,this.biLogger=oa(e),this.errorMonitor=e.createErrorMonitor({dsn:`https://831e1d96e7944c6aae0c9ed9d6babd35@sentry.wixpress.com/5896`}),this.experiments=e.createExperiments==null?void 0:e.createExperiments({scopes:[`error-handler`]}),this.platformShowError=e.showError,this.translations=new Cs(e),this.onlineManager=e.onlineManager??(typeof navigator<`u`?navigator:{onLine:!0}),this.webWindow=e.webWindow??(typeof window<`u`?window:void 0),this.commonErrorsMapState=new Hs(this),this.v2=new Ws(this)}_setErrorHandlerSessionId(e){let{errorHandlerState:t}=e;t&&(t.sessionId=js())}_setErrorHandlerResolvedError(e,t){let{errorHandlerState:n}=e;n&&(n.resolvedError=t.errorToShow)}_setErrorHandlerErrorCodesMap(e,t){t===void 0&&(t={});let{errorCodesMap:n}=t;ws(this,{errorAccessor:e,errorCodesMap:n});let{errorHandlerState:r}=e;r&&(r.errorCodesMap=n)}_isErrorHandlerDisabled(){let{experiments:e}=this;return e!=null&&!e.enabled(`specs.os.EnableErrorHandlerInEditor`)}_resolveError(e,t){if(t===void 0&&(t={}),this._isErrorHandlerDisabled())return;let n=t.errorCodesMap??e.errorHandlerState?.errorCodesMap,r=aa(this,{errorAccessor:e,errorCodesMap:n});return this._setErrorHandlerResolvedError(e,r),r}toJSON(){return{}}},K=e=>typeof e==`string`,qs=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Js=e=>e==null?``:``+e,Ys=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Xs=/###/g,Zs=e=>e&&e.indexOf(`###`)>-1?e.replace(Xs,`.`):e,Qs=e=>!e||K(e),$s=(e,t,n)=>{let r=K(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Qs(e))return{};let t=Zs(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Qs(e)?{}:{obj:e,k:Zs(r[i])}},ec=(e,t,n)=>{let{obj:r,k:i}=$s(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=$s(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=$s(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},tc=(e,t,n,r)=>{let{obj:i,k:a}=$s(e,t,Object);i[a]=i[a]||[],i[a].push(n)},nc=(e,t)=>{let{obj:n,k:r}=$s(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},rc=(e,t,n)=>{let r=nc(e,n);return r===void 0?nc(t,n):r},ic=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?K(e[r])||e[r]instanceof String||K(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):ic(e[r],t[r],n):e[r]=t[r]);return e},ac=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),oc={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},sc=e=>K(e)?e.replace(/[&<>"'\/]/g,e=>oc[e]):e,cc=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},lc=[` `,`,`,`?`,`!`,`;`],uc=new cc(20),dc=(e,t,n)=>{t||=``,n||=``;let r=lc.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=uc.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},fc=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},pc=e=>e?.replace(/_/g,`-`),mc={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)}},hc=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||mc,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,n,r){return r&&!this.debug?null:(K(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},gc=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+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,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},_c=class extends gc{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):K(n)&&i?o.push(...n.split(i)):o.push(n)));let s=nc(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!K(n)?s:fc(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),ec(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(K(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=nc(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?ic(s,n,i):s={...s,...n},ec(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=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}},vc={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},yc=Symbol(`i18next/PATH_KEY`);function bc(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===yc?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function xc(e,t){let{[yc]:n}=e(bc()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var Sc={},Cc=e=>!K(e)&&typeof e!=`boolean`&&typeof e!=`number`,wc=class e extends gc{constructor(e,t={}){super(),Ys([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=hc.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=Cc(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!dc(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:K(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:K(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=xc(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?xc(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!K(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,ee=b&&!i.ordinal&&i.count===0,w=ee&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,T=m;y&&!m&&x&&(T=w);let E=Cc(T),D=Object.prototype.toString.apply(T);if(y&&T&&E&&_.indexOf(D)<0&&!(K(v)&&Array.isArray(T))){if(!i.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(h,T,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(T),t=e?[]:{},n=e?g:h;for(let e in T)if(Object.prototype.hasOwnProperty.call(T,e)){let r=`${n}${o}${e}`;t[e]=x&&!m?this.translate(r,{...i,defaultValue:Cc(w)?w[e]:void 0,joinArrays:!1,ns:c}):this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=T[e])}m=t}}else if(y&&K(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=w),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&w!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?w:m),o){let e=this.resolve(s,{...i,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,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);ee&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||w)})}):n(e,s,w))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=K(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!K(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=K(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=vc.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return K(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?xc(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!K(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(K(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!Sc[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(Sc[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.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!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!K(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},Tc=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=hc.create(`languageUtils`)}getScriptPartFromCode(e){if(e=pc(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=pc(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(K(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),K(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return K(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):K(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},Ec={zero:0,one:1,two:2,few:3,many:4,other:5},Dc={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},Oc=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=hc.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=pc(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),Dc;if(!e.match(/-|_/))return Dc;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Ec[e]-Ec[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},kc=(e,t,n,r=`.`,i=!0)=>{let a=rc(e,t,n);return!a&&i&&K(n)&&(a=fc(e,n,r),a===void 0&&(a=fc(t,n,r))),a},Ac=e=>e.replace(/\$/g,`$$$$`),jc=class{constructor(e={}){this.logger=hc.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?sc:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?ac(i):a||`{{`,this.suffix=o?ac(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?ac(d):f||ac(`$t(`),this.nestingSuffix=p?ac(p):m||ac(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new 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,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=kc(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(kc(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Ac(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Ac(this.escape(e)):Ac(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0){if(typeof l==`function`){let t=l(e,i,r);a=K(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``}else!K(a)&&!this.useRawValueToEscape&&(a=Js(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${ac(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!K(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!K(i))return i;K(i)||(i=Js(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},Mc=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Nc=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(pc(r),i),t[o]=s),s(n)}},Pc=e=>(t,n,r)=>e(pc(n),r)(t),Fc=class{constructor(e={}){this.logger=hc.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Nc:Pc;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Nc(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=Mc(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}},Ic=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Lc=class extends gc{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=hc.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{tc(n.loaded,[i],a),Ic(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{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(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();K(e)&&(e=this.languageUtils.toResolveHierarchy(e)),K(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(n!=null&&n!==``){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}},Rc=()=>({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(typeof e[1]==`object`&&(t=e[1]),K(e[1])&&(t.defaultValue=e[1]),K(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),zc=e=>(K(e.ns)&&(e.ns=[e.ns]),K(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),K(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),Bc=()=>{},Vc=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Hc=`__i18next_supportNoticeShown`,Uc=()=>!!(typeof globalThis<`u`&&globalThis[Hc]||typeof process<`u`&&{}.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`),Wc=()=>{typeof globalThis<`u`&&(globalThis[Hc]=!0)},Gc=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)),q=class e extends gc{constructor(e={},t){if(super(),this.options=zc(e),this.services={},this.logger=hc,this.modules={external:[]},Vc(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,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(K(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=Rc();this.options={...n,...this.options,...zc(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!Gc(this)&&!Uc()&&(typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`),Wc());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?hc.init(r(this.modules.logger),this.options):hc.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Fc;let t=new Tc(this.options);this.store=new _c(this.options.resources,this.options);let i=this.services;i.logger=hc,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new Oc(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.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===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new jc(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Lc(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new wc(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||=Bc,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(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 i=qs(),a=()=>{let e=(e,n)=>{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),i.resolve(n),t(e,n)};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?a():setTimeout(a,0),i}loadResources(e,t=Bc){let n=t,r=K(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):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),n(e)})}else n(null)}reloadResources(e,t,n){let r=qs();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=Bc,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}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 e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&vc.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let 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&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=qs();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=K(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(K(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=xc(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=xc(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=xc(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return K(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}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;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=qs();return this.options.ns?(K(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=qs();K(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(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{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new Tc(Rc());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Bc){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new _c(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...Rc().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new jc(n)}return a.translator=new wc(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();q.createInstance,q.dir,q.init,q.loadResources,q.reloadResources,q.use,q.changeLanguage,q.getFixedT,q.t,q.exists,q.setDefaultNamespace,q.hasLoadedNamespace,q.loadNamespaces,q.loadLanguages;function Kc(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}function i(){return!e||typeof e==`string`}for(var a=typeof t==`string`?t.split(`.`):[].concat(t);a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),e=e[o]}return i()?{}:{obj:e,k:r(a.shift())}}function qc(e,t,n){var r=Kc(e,t,Object),i=r.obj,a=r.k;i[a]=n}function Jc(e,t){var n=Kc(e,t),r=n.obj,i=n.k;if(r)return r[i]}var Yc=[],Xc=Yc.forEach,Zc=Yc.slice;function Qc(e){return Xc.call(Zc.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var $c=function(e,t){return $c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},$c(e,t)};function el(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);$c(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var J=function(){return J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},J.apply(this,arguments)};function tl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function nl(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function rl(e,t){var n=t&&t.cache?t.cache:pl,r=t&&t.serializer?t.serializer:dl;return(t&&t.strategy?t.strategy:cl)(e,{cache:n,serializer:r})}function il(e){return e==null||typeof e==`number`||typeof e==`boolean`}function al(e,t,n,r){var i=il(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function ol(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}function sl(e,t,n,r,i){return n.bind(t,e,r,i)}function cl(e,t){var n=e.length===1?al:ol;return sl(e,this,n,t.cache.create(),t.serializer)}function ll(e,t){return sl(e,this,ol,t.cache.create(),t.serializer)}function ul(e,t){return sl(e,this,al,t.cache.create(),t.serializer)}var dl=function(){return JSON.stringify(arguments)},fl=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),pl={create:function(){return new fl}},ml={variadic:ll,monadic:ul},Y;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`})(Y||={});var X;(function(e){e[e.literal=0]=`literal`,e[e.argument=1]=`argument`,e[e.number=2]=`number`,e[e.date=3]=`date`,e[e.time=4]=`time`,e[e.select=5]=`select`,e[e.plural=6]=`plural`,e[e.pound=7]=`pound`,e[e.tag=8]=`tag`})(X||={});var hl;(function(e){e[e.number=0]=`number`,e[e.dateTime=1]=`dateTime`})(hl||={});function gl(e){return e.type===X.literal}function _l(e){return e.type===X.argument}function vl(e){return e.type===X.number}function yl(e){return e.type===X.date}function bl(e){return e.type===X.time}function xl(e){return e.type===X.select}function Sl(e){return e.type===X.plural}function Cl(e){return e.type===X.pound}function wl(e){return e.type===X.tag}function Tl(e){return!!(e&&typeof e==`object`&&e.type===hl.number)}function El(e){return!!(e&&typeof e==`object`&&e.type===hl.dateTime)}var Dl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ol=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function kl(e){var t={};return e.replace(Ol,function(e){var n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}var Al=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function jl(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);for(var t=e.split(Al).filter(function(e){return e.length>0}),n=[],r=0,i=t;r<i.length;r++){var a=i[r].split(`/`);if(a.length===0)throw Error(`Invalid number skeleton`);for(var o=a[0],s=a.slice(1),c=0,l=s;c<l.length;c++)if(l[c].length===0)throw Error(`Invalid number skeleton`);n.push({stem:o,options:s})}return n}function Ml(e){return e.replace(/^(.*?)-/,``)}var Nl=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Pl=/^(@+)?(\+|#+)?[rs]?$/g,Fl=/(\*)(0+)|(#+)(0+)|(0+)/g,Il=/^(0+)$/;function Ll(e){var t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(Pl,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function Rl(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:case`()`:return{currencySign:`accounting`};case`sign-always`:case`+!`:return{signDisplay:`always`};case`sign-accounting-always`:case`()!`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:case`+?`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:case`()?`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:case`+_`:return{signDisplay:`never`}}}function zl(e){var t;if(e[0]===`E`&&e[1]===`E`?(t={notation:`engineering`},e=e.slice(2)):e[0]===`E`&&(t={notation:`scientific`},e=e.slice(1)),t){var n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!Il.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function Bl(e){return Rl(e)||{}}function Vl(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=i.options[0];continue;case`group-off`:case`,_`:t.useGrouping=!1;continue;case`precision-integer`:case`.`:t.maximumFractionDigits=0;continue;case`measure-unit`:case`unit`:t.style=`unit`,t.unit=Ml(i.options[0]);continue;case`compact-short`:case`K`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:case`KK`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t=J(J(J({},t),{notation:`scientific`}),i.options.reduce(function(e,t){return J(J({},e),Bl(t))},{}));continue;case`engineering`:t=J(J(J({},t),{notation:`engineering`}),i.options.reduce(function(e,t){return J(J({},e),Bl(t))},{}));continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue;case`scale`:t.scale=parseFloat(i.options[0]);continue;case`rounding-mode-floor`:t.roundingMode=`floor`;continue;case`rounding-mode-ceiling`:t.roundingMode=`ceil`;continue;case`rounding-mode-down`:t.roundingMode=`trunc`;continue;case`rounding-mode-up`:t.roundingMode=`expand`;continue;case`rounding-mode-half-even`:t.roundingMode=`halfEven`;continue;case`rounding-mode-half-down`:t.roundingMode=`halfTrunc`;continue;case`rounding-mode-half-up`:t.roundingMode=`halfExpand`;continue;case`integer-width`:if(i.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);i.options[0].replace(Fl,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(Il.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Nl.test(i.stem)){if(i.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);i.stem.replace(Nl,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});var a=i.options[0];a===`w`?t=J(J({},t),{trailingZeroDisplay:`stripIfInteger`}):a&&(t=J(J({},t),Ll(a)));continue}if(Pl.test(i.stem)){t=J(J({},t),Ll(i.stem));continue}var o=Rl(i.stem);o&&(t=J(J({},t),o));var s=zl(i.stem);s&&(t=J(J({},t),s))}return t}var Hl={"001":[`H`,`h`],419:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AD:[`H`,`hB`],AE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AI:[`H`,`h`,`hb`,`hB`],AL:[`h`,`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AR:[`h`,`H`,`hB`,`hb`],AS:[`h`,`H`],AT:[`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],AW:[`H`,`hB`],AX:[`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BB:[`h`,`hb`,`H`,`hB`],BD:[`h`,`hB`,`H`],BE:[`H`,`hB`],BF:[`H`,`hB`],BG:[`H`,`hB`,`h`],BH:[`h`,`hB`,`hb`,`H`],BI:[`H`,`h`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BN:[`hb`,`hB`,`h`,`H`],BO:[`h`,`H`,`hB`,`hb`],BQ:[`H`],BR:[`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],BT:[`h`,`H`],BW:[`H`,`h`,`hb`,`hB`],BY:[`H`,`h`],BZ:[`H`,`h`,`hb`,`hB`],CA:[`h`,`hb`,`H`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CD:[`hB`,`H`],CF:[`H`,`h`,`hB`],CG:[`H`,`hB`],CH:[`H`,`hB`,`h`],CI:[`H`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CL:[`h`,`H`,`hB`,`hb`],CM:[`H`,`h`,`hB`],CN:[`H`,`hB`,`hb`,`h`],CO:[`h`,`H`,`hB`,`hb`],CP:[`H`],CR:[`h`,`H`,`hB`,`hb`],CU:[`h`,`H`,`hB`,`hb`],CV:[`H`,`hB`],CW:[`H`,`hB`],CX:[`H`,`h`,`hb`,`hB`],CY:[`h`,`H`,`hb`,`hB`],CZ:[`H`],DE:[`H`,`hB`],DG:[`H`,`h`,`hb`,`hB`],DJ:[`h`,`H`],DK:[`H`],DM:[`h`,`hb`,`H`,`hB`],DO:[`h`,`H`,`hB`,`hb`],DZ:[`h`,`hB`,`hb`,`H`],EA:[`H`,`h`,`hB`,`hb`],EC:[`h`,`H`,`hB`,`hb`],EE:[`H`,`hB`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],ER:[`h`,`H`],ES:[`H`,`hB`,`h`,`hb`],ET:[`hB`,`hb`,`h`,`H`],FI:[`H`],FJ:[`h`,`hb`,`H`,`hB`],FK:[`H`,`h`,`hb`,`hB`],FM:[`h`,`hb`,`H`,`hB`],FO:[`H`,`h`],FR:[`H`,`hB`],GA:[`H`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GE:[`H`,`hB`,`h`],GF:[`H`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GH:[`h`,`H`],GI:[`H`,`h`,`hb`,`hB`],GL:[`H`,`h`],GM:[`h`,`hb`,`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GQ:[`H`,`hB`,`h`,`hb`],GR:[`h`,`H`,`hb`,`hB`],GT:[`h`,`H`,`hB`,`hb`],GU:[`h`,`hb`,`H`,`hB`],GW:[`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],HK:[`h`,`hB`,`hb`,`H`],HN:[`h`,`H`,`hB`,`hb`],HR:[`H`,`hB`],HU:[`H`,`h`],IC:[`H`,`h`,`hB`,`hb`],ID:[`H`],IE:[`H`,`h`,`hb`,`hB`],IL:[`H`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IN:[`h`,`H`],IO:[`H`,`h`,`hb`,`hB`],IQ:[`h`,`hB`,`hb`,`H`],IR:[`hB`,`H`],IS:[`H`],IT:[`H`,`hB`],JE:[`H`,`h`,`hb`,`hB`],JM:[`h`,`hb`,`H`,`hB`],JO:[`h`,`hB`,`hb`,`H`],JP:[`H`,`K`,`h`],KE:[`hB`,`hb`,`H`,`h`],KG:[`H`,`h`,`hB`,`hb`],KH:[`hB`,`h`,`H`,`hb`],KI:[`h`,`hb`,`H`,`hB`],KM:[`H`,`h`,`hB`,`hb`],KN:[`h`,`hb`,`H`,`hB`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],KW:[`h`,`hB`,`hb`,`H`],KY:[`h`,`hb`,`H`,`hB`],KZ:[`H`,`hB`],LA:[`H`,`hb`,`hB`,`h`],LB:[`h`,`hB`,`hb`,`H`],LC:[`h`,`hb`,`H`,`hB`],LI:[`H`,`hB`,`h`],LK:[`H`,`h`,`hB`,`hb`],LR:[`h`,`hb`,`H`,`hB`],LS:[`h`,`H`],LT:[`H`,`h`,`hb`,`hB`],LU:[`H`,`h`,`hB`],LV:[`H`,`hB`,`hb`,`h`],LY:[`h`,`hB`,`hb`,`H`],MA:[`H`,`h`,`hB`,`hb`],MC:[`H`,`hB`],MD:[`H`,`hB`],ME:[`H`,`hB`,`h`],MF:[`H`,`hB`],MG:[`H`,`h`],MH:[`h`,`hb`,`H`,`hB`],MK:[`H`,`h`,`hb`,`hB`],ML:[`H`],MM:[`hB`,`hb`,`H`,`h`],MN:[`H`,`h`,`hb`,`hB`],MO:[`h`,`hB`,`hb`,`H`],MP:[`h`,`hb`,`H`,`hB`],MQ:[`H`,`hB`],MR:[`h`,`hB`,`hb`,`H`],MS:[`H`,`h`,`hb`,`hB`],MT:[`H`,`h`],MU:[`H`,`h`],MV:[`H`,`h`],MW:[`h`,`hb`,`H`,`hB`],MX:[`h`,`H`,`hB`,`hb`],MY:[`hb`,`hB`,`h`,`H`],MZ:[`H`,`hB`],NA:[`h`,`H`,`hB`,`hb`],NC:[`H`,`hB`],NE:[`H`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NI:[`h`,`H`,`hB`,`hb`],NL:[`H`,`hB`],NO:[`H`,`h`],NP:[`H`,`h`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],OM:[`h`,`hB`,`hb`,`H`],PA:[`h`,`H`,`hB`,`hb`],PE:[`h`,`H`,`hB`,`hb`],PF:[`H`,`h`,`hB`],PG:[`h`,`H`],PH:[`h`,`hB`,`hb`,`H`],PK:[`h`,`hB`,`H`],PL:[`H`,`h`],PM:[`H`,`hB`],PN:[`H`,`h`,`hb`,`hB`],PR:[`h`,`H`,`hB`,`hb`],PS:[`h`,`hB`,`hb`,`H`],PT:[`H`,`hB`],PW:[`h`,`H`],PY:[`h`,`H`,`hB`,`hb`],QA:[`h`,`hB`,`hb`,`H`],RE:[`H`,`hB`],RO:[`H`,`hB`],RS:[`H`,`hB`,`h`],RU:[`H`],RW:[`H`,`h`],SA:[`h`,`hB`,`hb`,`H`],SB:[`h`,`hb`,`H`,`hB`],SC:[`H`,`h`,`hB`],SD:[`h`,`hB`,`hb`,`H`],SE:[`H`],SG:[`h`,`hb`,`H`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SI:[`H`,`hB`],SJ:[`H`],SK:[`H`],SL:[`h`,`hb`,`H`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],SO:[`h`,`H`],SR:[`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],ST:[`H`,`hB`],SV:[`h`,`H`,`hB`,`hb`],SX:[`H`,`h`,`hb`,`hB`],SY:[`h`,`hB`,`hb`,`H`],SZ:[`h`,`hb`,`H`,`hB`],TA:[`H`,`h`,`hb`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TD:[`h`,`H`,`hB`],TF:[`H`,`h`,`hB`],TG:[`H`,`hB`],TH:[`H`,`h`],TJ:[`H`,`h`],TL:[`H`,`hB`,`hb`,`h`],TM:[`H`,`h`],TN:[`h`,`hB`,`hb`,`H`],TO:[`h`,`H`],TR:[`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],TW:[`hB`,`hb`,`h`,`H`],TZ:[`hB`,`hb`,`H`,`h`],UA:[`H`,`hB`,`h`],UG:[`hB`,`hb`,`H`,`h`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],UY:[`h`,`H`,`hB`,`hb`],UZ:[`H`,`hB`,`h`],VA:[`H`,`h`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VE:[`h`,`H`,`hB`,`hb`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],VN:[`H`,`h`],VU:[`h`,`H`],WF:[`H`,`hB`],WS:[`h`,`H`],XK:[`H`,`hB`,`h`],YE:[`h`,`hB`,`hb`,`H`],YT:[`H`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],ZW:[`H`,`h`],"af-ZA":[`H`,`h`,`hB`,`hb`],"ar-001":[`h`,`hB`,`hb`,`H`],"ca-ES":[`H`,`h`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],"en-HK":[`h`,`hb`,`H`,`hB`],"en-IL":[`H`,`h`,`hb`,`hB`],"en-MY":[`h`,`hb`,`H`,`hB`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"gu-IN":[`hB`,`hb`,`h`,`H`],"hi-IN":[`hB`,`h`,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ml-IN":[`hB`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],"ta-IN":[`hB`,`h`,`hb`,`H`],"te-IN":[`hB`,`h`,`H`],"zu-ZA":[`H`,`hB`,`hb`,`h`]};function Ul(e,t){for(var n=``,r=0;r<e.length;r++){var i=e.charAt(r);if(i===`j`){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(a&1),s=a<2?1:3+(a>>1),c=`a`,l=Wl(t);for((l==`H`||l==`k`)&&(s=0);s-->0;)n+=c;for(;o-->0;)n=l+n}else n+=i===`J`?`H`:i}return n}function Wl(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}var n=e.language,r;return n!==`root`&&(r=e.maximize().region),(Hl[r||``]||Hl[n||``]||Hl[`${n}-001`]||Hl[`001`])[0]}var Gl=RegExp(`^${Dl.source}*`),Kl=RegExp(`${Dl.source}*\$`);function Z(e,t){return{start:e,end:t}}var ql=!!String.prototype.startsWith&&`_a`.startsWith(`a`,1),Jl=!!String.fromCodePoint,Yl=!!Object.fromEntries,Xl=!!String.prototype.codePointAt,Zl=!!String.prototype.trimStart,Ql=!!String.prototype.trimEnd,$l=Number.isSafeInteger?Number.isSafeInteger:function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},eu=!0;try{eu=su(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`).exec(`a`)?.[0]===`a`}catch{eu=!1}var tu=ql?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},nu=Jl?String.fromCodePoint:function(){for(var e=[...arguments],t=``,n=e.length,r=0,i;n>r;){if(i=e[r++],i>1114111)throw RangeError(i+` is not a valid code point`);t+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return t},ru=Yl?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0];t[a]=i[1]}return t},iu=Xl?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r=e.charCodeAt(t),i;return r<55296||r>56319||t+1===n||(i=e.charCodeAt(t+1))<56320||i>57343?r:(r-55296<<10)+(i-56320)+65536}},au=Zl?function(e){return e.trimStart()}:function(e){return e.replace(Gl,``)},ou=Ql?function(e){return e.trimEnd()}:function(e){return e.replace(Kl,``)};function su(e,t){return new RegExp(e,t)}var cu;if(eu){var lu=su(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);cu=function(e,t){return lu.lastIndex=t,lu.exec(e)[1]??``}}else cu=function(e,t){for(var n=[];;){var r=iu(e,t);if(r===void 0||mu(r)||hu(r))break;n.push(r),t+=r>=65536?2:1}return nu.apply(void 0,n)};var uu=function(){function e(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error(`parser can only be used once`);return this.parseMessage(0,``,!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){var o=this.clonePosition();this.bump(),r.push({type:X.pound,location:Z(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Y.UNMATCHED_CLOSING_TAG,Z(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&du(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:X.literal,value:`<${r}/>`,location:Z(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!du(this.char()))return this.error(Y.INVALID_TAG,Z(o,this.clonePosition()));var s=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:X.tag,value:r,children:a,location:Z(n,this.clonePosition())},err:null}:this.error(Y.INVALID_TAG,Z(o,this.clonePosition()))):this.error(Y.UNMATCHED_CLOSING_TAG,Z(s,this.clonePosition()))}return this.error(Y.UNCLOSED_TAG,Z(n,this.clonePosition()))}return this.error(Y.INVALID_TAG,Z(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&pu(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r=``;;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=Z(n,this.clonePosition());return{val:{type:X.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!fu(this.peek()||0))?(this.bump(),`<`):null},e.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39){if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}}else t.push(n);this.bump()}return nu.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),nu(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Z(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Y.EMPTY_ARGUMENT,Z(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Y.MALFORMED_ARGUMENT,Z(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Z(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:X.argument,value:r,location:Z(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Z(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Y.MALFORMED_ARGUMENT,Z(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=cu(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Z(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(Y.EXPECT_ARGUMENT_TYPE,Z(i,o));case`number`:case`date`:case`time`:this.bumpSpace();var s=null;if(this.bumpIf(`,`)){this.bumpSpace();var c=this.clonePosition(),l=this.parseSimpleArgStyleIfPossible();if(l.err)return l;var u=ou(l.val);if(u.length===0)return this.error(Y.EXPECT_ARGUMENT_STYLE,Z(this.clonePosition(),this.clonePosition()));s={style:u,styleLocation:Z(c,this.clonePosition())}}var d=this.tryParseArgumentClose(r);if(d.err)return d;var f=Z(r,this.clonePosition());if(s&&tu(s?.style,`::`,0)){var p=au(s.style.slice(2));if(a===`number`){var l=this.parseNumberSkeletonFromString(p,s.styleLocation);return l.err?l:{val:{type:X.number,value:n,location:f,style:l.val},err:null}}if(p.length===0)return this.error(Y.EXPECT_DATE_TIME_SKELETON,f);var m=p;this.locale&&(m=Ul(p,this.locale));var u={type:hl.dateTime,pattern:m,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?kl(m):{}};return{val:{type:a===`date`?X.date:X.time,value:n,location:f,style:u},err:null}}return{val:{type:a===`number`?X.number:a===`date`?X.date:X.time,value:n,location:f,style:s?.style??null},err:null};case`plural`:case`selectordinal`:case`select`:var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(Y.EXPECT_SELECT_ARGUMENT_OPTIONS,Z(h,J({},h)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),_=0;if(a!==`select`&&g.value===`offset`){if(!this.bumpIf(`:`))return this.error(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Z(this.clonePosition(),this.clonePosition()));this.bumpSpace();var l=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(l.err)return l;this.bumpSpace(),g=this.parseIdentifierIfPossible(),_=l.val}var v=this.tryParsePluralOrSelectOptions(e,a,t,g);if(v.err)return v;var d=this.tryParseArgumentClose(r);if(d.err)return d;var y=Z(r,this.clonePosition());return a===`select`?{val:{type:X.select,value:n,options:ru(v.val),location:y},err:null}:{val:{type:X.plural,value:n,options:ru(v.val),offset:_,pluralType:a===`plural`?`cardinal`:`ordinal`,location:y},err:null};default:return this.error(Y.INVALID_ARGUMENT_TYPE,Z(i,o))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,Z(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(Y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Z(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=jl(e)}catch{return this.error(Y.INVALID_NUMBER_SKELETON,t)}return{val:{type:hl.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Vl(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,c=r.value,l=r.location;;){if(c.length===0){var u=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){var d=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,Y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=Z(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}else break}if(s.has(c))return this.error(t===`select`?Y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c===`other`&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?Y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Z(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;o.push([c,{value:p.val,location:Z(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,l=i.location}return o.length===0?this.error(t===`select`?Y.EXPECT_SELECT_ARGUMENT_SELECTOR:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,Z(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Y.MISSING_OTHER_CLAUSE,Z(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=a*10+(o-48),this.bump();else break}var s=Z(r,this.clonePosition());return i?(a*=n,$l(a)?{val:a,err:null}:this.error(t,s)):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);var t=iu(this.message,e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(tu(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&mu(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null},e}();function du(e){return e>=97&&e<=122||e>=65&&e<=90}function fu(e){return du(e)||e===47}function pu(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function mu(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function hu(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function gu(e){e.forEach(function(e){if(delete e.location,xl(e)||Sl(e))for(var t in e.options)delete e.options[t].location,gu(e.options[t].value);else vl(e)&&Tl(e.style)||(yl(e)||bl(e))&&El(e.style)?delete e.style.location:wl(e)&&gu(e.children)})}function _u(e,t){t===void 0&&(t={}),t=J({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new uu(e,t).parse();if(n.err){var r=SyntaxError(Y[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||gu(n.val),n.val}var vu;(function(e){e.MISSING_VALUE=`MISSING_VALUE`,e.INVALID_VALUE=`INVALID_VALUE`,e.MISSING_INTL_API=`MISSING_INTL_API`})(vu||={});var yu=function(e){el(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return t.prototype.toString=function(){return`[formatjs Error: ${this.code}] ${this.message}`},t}(Error),bu=function(e){el(t,e);function t(t,n,r,i){return e.call(this,`Invalid values for "${t}": "${n}". Options are "${Object.keys(r).join(`", "`)}"`,vu.INVALID_VALUE,i)||this}return t}(yu),xu=function(e){el(t,e);function t(t,n,r){return e.call(this,`Value for "${t}" must be of type ${n}`,vu.INVALID_VALUE,r)||this}return t}(yu),Su=function(e){el(t,e);function t(t,n){return e.call(this,`The intl string context variable "${t}" was not provided to the string "${n}"`,vu.MISSING_VALUE,n)||this}return t}(yu),Q;(function(e){e[e.literal=0]=`literal`,e[e.object=1]=`object`})(Q||={});function Cu(e){return e.length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return!n||n.type!==Q.literal||t.type!==Q.literal?e.push(t):n.value+=t.value,e},[])}function wu(e){return typeof e==`function`}function Tu(e,t,n,r,i,a,o){if(e.length===1&&gl(e[0]))return[{type:Q.literal,value:e[0].value}];for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c];if(gl(u)){s.push({type:Q.literal,value:u.value});continue}if(Cl(u)){typeof a==`number`&&s.push({type:Q.literal,value:n.getNumberFormat(t).format(a)});continue}var d=u.value;if(!(i&&d in i))throw new Su(d,o);var f=i[d];if(_l(u)){(!f||typeof f==`string`||typeof f==`number`)&&(f=typeof f==`string`||typeof f==`number`?String(f):``),s.push({type:typeof f==`string`?Q.literal:Q.object,value:f});continue}if(yl(u)){var p=typeof u.style==`string`?r.date[u.style]:El(u.style)?u.style.parsedOptions:void 0;s.push({type:Q.literal,value:n.getDateTimeFormat(t,p).format(f)});continue}if(bl(u)){var p=typeof u.style==`string`?r.time[u.style]:El(u.style)?u.style.parsedOptions:r.time.medium;s.push({type:Q.literal,value:n.getDateTimeFormat(t,p).format(f)});continue}if(vl(u)){var p=typeof u.style==`string`?r.number[u.style]:Tl(u.style)?u.style.parsedOptions:void 0;p&&p.scale&&(f*=p.scale||1),s.push({type:Q.literal,value:n.getNumberFormat(t,p).format(f)});continue}if(wl(u)){var m=u.children,h=u.value,g=i[h];if(!wu(g))throw new xu(h,`function`,o);var _=g(Tu(m,t,n,r,i,a).map(function(e){return e.value}));Array.isArray(_)||(_=[_]),s.push.apply(s,_.map(function(e){return{type:typeof e==`string`?Q.literal:Q.object,value:e}}))}if(xl(u)){var v=u.options[f]||u.options.other;if(!v)throw new bu(u.value,f,Object.keys(u.options),o);s.push.apply(s,Tu(v.value,t,n,r,i));continue}if(Sl(u)){var v=u.options[`=${f}`];if(!v){if(!Intl.PluralRules)throw new yu(`Intl.PluralRules is not available in this environment.
6
6
  Try polyfilling it using "@formatjs/intl-pluralrules"
7
- `,Cu.MISSING_INTL_API,o);var y=n.getPluralRules(t,{type:u.pluralType}).select(f-(u.offset||0));v=u.options[y]||u.options.other}if(!v)throw new Tu(u.value,f,Object.keys(u.options),o);s.push.apply(s,Au(v.value,t,n,r,i,f-(u.offset||0)));continue}}return Ou(s)}function ju(e,t){return t?J(J(J({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=J(J({},e[r]),t[r]||{}),n},{})):e}function Mu(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=ju(e[r],t[r]),n},J({},e)):e}function Nu(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Pu(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:cl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,sl([void 0],t,!1)))},{cache:Nu(e.number),strategy:yl.variadic}),getDateTimeFormat:cl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,sl([void 0],t,!1)))},{cache:Nu(e.dateTime),strategy:yl.variadic}),getPluralRules:cl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,sl([void 0],t,!1)))},{cache:Nu(e.pluralRules),strategy:yl.variadic})}}var Fu=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(t.length===1)return t[0].value;var n=t.reduce(function(e,t){return!e.length||t.type!==Q.literal||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e},[]);return n.length<=1?n[0]||``:n},this.formatToParts=function(e){return Au(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var s=ol(o,[`formatters`]);this.ast=e.__parse(t,J(J({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=Mu(e.formats,r),this.formatters=i&&i.formatters||Pu(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(Intl.Locale!==void 0){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}},e.__parse=Su,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}},e}();function Iu(e,t){return Vu(e)||Bu(e,t)||Ru(e,t)||Lu()}function Lu(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
8
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ru(e,t){if(e){if(typeof e==`string`)return zu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zu(e,t)}}function zu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Bu(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function Vu(e){if(Array.isArray(e))return e}function Hu(e){"@babel/helpers - typeof";return Hu=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Hu(e)}function Uu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Uu(Object(n),!0).forEach(function(t){Gu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ku(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function qu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ju(e,t,n){return t&&qu(e.prototype,t),n&&qu(e,n),e}function Yu(){return{memoize:!0,memoizeFallback:!1,bindI18n:``,bindI18nStore:``,parseErrorHandler:function(e,t,n,r){return n},parseLngForICU:function(e){return e},escapeVariables:!1}}var Xu=function(){function e(t){Ku(this,e),this.type=`i18nFormat`,this.mem={},this.init(null,t)}return Ju(e,[{key:`init`,value:function(e,t){var n=this,r=e&&e.options&&e.options.i18nFormat||{};if(this.options=rl(r,t,this.options||{},Yu()),this.formats=this.options.formats,e){var i=this.options,a=i.bindI18n,o=i.bindI18nStore,s=i.memoize;e.IntlMessageFormat=Fu,e.ICU=this,s&&(a&&e.on(a,function(){return n.clearCache()}),o&&e.store.on(o,function(){return n.clearCache()}))}}},{key:`addUserDefinedFormats`,value:function(e){this.formats=this.formats?Wu(Wu({},this.formats),e):e}},{key:`parse`,value:function(e,t,n,r,i,a){var o=a&&a.resolved&&a.resolved.res,s=this.options.memoize&&`${n}.${r}.${i.replace(/\./g,`###`)}`,c;this.options.memoize&&(c=$c(this.mem,s));try{return c||(c=new Fu(e,this.options.parseLngForICU(n),this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!a||o)&&Qc(this.mem,s,c)),c.format(this.escapeVariableValues(t))}catch(n){return this.options.parseErrorHandler(n,i,e,t)}}},{key:`addLookupKeys`,value:function(e,t,n,r,i){return e}},{key:`clearCache`,value:function(){this.mem={}}},{key:`escapeVariableValues`,value:function(e){if(!this.options.escapeVariables||!e||Hu(e)!==`object`)return e;for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=Iu(r[n],2),a=i[0],o=i[1];t[a]=typeof o==`string`?o.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`):o}return t}}]),e}();Xu.type=`i18nFormat`;function Zu(e,t){let n=q.createInstance({lng:e.essentials?.locale||`en`,fallbackLng:`en`,keySeparator:!1}).use(Xu);return t&&n.use(Qu(t)),n}function Qu(e){return{type:`backend`,init:()=>{},read:async(t,n,r)=>{try{return r(null,await e(t))}catch(e){return r(e,null)}}}}function $u(e){return new Zs({environment:{artifactId:`sdk-essentials`},biDefaultsOverrides:{hostingEnvironment:e.name},biLoggerOrFactory:{async report(){}},showError:e.showError,createErrorMonitor:()=>({captureException(){}}),createI18n:({asyncMessagesLoader:t})=>Zu(e,t)}).v2}var ed=e=>t=>{if(t.getErrorHandler)return e(t.getErrorHandler());let n=$u(t);return t.getErrorHandler=()=>n,e($u(t))},td=Xi({withErrorHandler:ed(e=>e.withErrorHandler),getResolvedError:ed(e=>e.getResolvedError),showError:ed(e=>e.showError),reportRetryAttempt:ed(e=>e.reportRetryAttempt)}),nd=td.withErrorHandler,rd=td.getResolvedError;td.showError,td.reportRetryAttempt;var id=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ad={"&amp;":`&`,"&#38;":`&`,"&lt;":`<`,"&#60;":`<`,"&gt;":`>`,"&#62;":`>`,"&apos;":`'`,"&#39;":`'`,"&quot;":`"`,"&#34;":`"`,"&nbsp;":` `,"&#160;":` `,"&copy;":`©`,"&#169;":`©`,"&reg;":`®`,"&#174;":`®`,"&hellip;":`…`,"&#8230;":`…`,"&#x2F;":`/`,"&#47;":`/`},od=e=>ad[e],sd={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(id,od),transDefaultProps:void 0},cd=(e={})=>{sd={...sd,...e}},ld={type:`3rdParty`,init(e){cd(e.options.react)}},ud;(function(e){e.QUERY_PARAM=`QUERY_PARAM`,e.SUBDOMAIN=`SUBDOMAIN`,e.SUBDIRECTORY=`SUBDIRECTORY`})(ud||={});var dd={cs:`Čeština`,da:`Dansk`,de:`Deutsch`,en:`English`,es:`Español`,fr:`Français`,hi:`हिन्दी`,id:`Bahasa Indonesia`,it:`Italiano`,ja:`日本語`,ko:`한국어`,nl:`Nederlands`,no:`Norsk`,pl:`Polski`,pt:`Português`,ru:`Русский`,sv:`Svenska`,th:`ไทย`,tr:`Türkçe`,uk:`Українська`,vi:`Tiếng Việt`,zh:`繁體中文`,sq:`Shqip`,am:`አማርኛ`,ar:`العربية`,hy:`Հայերեն`,az:`Azərbaycan dili`,eu:`Euskara`,be:`Беларуская`,bn:`বাংলা`,bs:`Bosanski`,bg:`Български`,ca:`Català`,ny:`ChiCheŵa`,co:`Corsu`,hr:`Hrvatski`,et:`Eesti`,fj:`Vosa Vakaviti`,fi:`Suomi`,ga:`Gaeilge`,gl:`Galego`,ka:`ქართული`,el:`Ελληνικά`,gu:`ગુજરાતી`,ht:`Kreyòl Ayisyen`,ha:`Hausa`,he:`עברית`,hu:`Magyar`,is:`Íslenska`,ig:`Igbo`,kn:`ಕನ್ನಡ`,kk:`Қазақ тілі`,km:`ភាសាខ្មែរ`,ku:`Kurdî`,ky:`Кыргызча`,lb:`Lëtzebuergesch`,lo:`ລາວ`,la:`Latina`,lv:`Latviešu`,lt:`Lietuvių`,mk:`Македонски`,mg:`Malagasy`,ms:`Bahasa Melayu`,ml:`മലയാളം`,mt:`Malti`,mn:`Монгол`,ne:`नेपाली`,ps:`پښتو`,fa:`فارسی`,ro:`Română`,sm:`Gagana Samoa`,sr:`Српски`,sn:`Shona`,sd:`سنڌي`,si:`සිංහල`,sk:`Slovenčina`,sl:`Slovenščina`,so:`Soomaaliga`,su:`Basa Sunda`,sw:`Kiswahili`,tl:`Filipino`,tg:`Тоҷикӣ`,ta:`தமிழ்`,te:`తెలుగు`,tk:`Türkmen`,ur:`اردو`,uz:`O'zbek`,cy:`Cymraeg`,xh:`isiXhosa`,yi:`ייִדיש`,yo:`Yorùbá`,zu:`isiZulu`,kl:`Kalaallisut`,fo:`Føroyskt`,ln:`Lingála`,mi:`Māori`,mr:`मराठी`,my:`မြန်မာ`,se:`Sámegiella`,ug:`ئۇيغۇرچە`,qu:`Runa Simi`,aa:`Afar`,ab:`Аҧсуа`,ae:`Avestan`,ak:`Akan`,an:`Aragonés`,as:`অসমীয়া`,av:`Авар`,ay:`Aymar aru`,ba:`Башҡортса`,bh:`भोजपुरी`,bi:`Bislama`,bm:`Bamanankan`,bo:`བོད་སྐད་`,br:`Brezhoneg`,ce:`Нохчийн`,ch:`Chamoru`,cr:`ᓀᐦᐃᔭᐍᐏᐣ`,cu:`Црькъвьнословѣньскъ`,cv:`Чӑвашла`,dv:`ދިވެހިބަސް`,dz:`རྫོང་ཁ`,ee:`Eʋegbe`,eo:`Esperanto`,ff:`Fulah`,fy:`Frysk`,gd:`Gàidhlig`,gn:`Avañe'ẽ`,gv:`Gaelg`,ho:`Hiri Motu`,hz:`Otjiherero`,ia:`Interlingua`,ie:`Interlingue`,ii:`ꆈꌠꉙ`,ik:`Iñupiaq`,io:`Ido`,iu:`ᐃᓄᒃᑎᑐᑦ`,jv:`Basa Jawa`,ki:`Gikuyu`,kr:`Kanuri`,ks:`کٲشُر`,kw:`Kernewek`,lg:`Luganda`,li:`Limburgs`,lu:`Tshiluba`,mh:`Kajin M̧ajeļ`,na:`Dorerin Naoero`,nb:`Norsk Bokmål`,nd:`isiNdebele`,ng:`Oshiwambo`,nn:`Norsk Nynorsk`,nr:`isiNdebele (South)`,nv:`Diné Bizaad`,oc:`Occitan`,oj:`Anishinaabemowin`,om:`Afaan Oromoo`,or:`ଓଡ଼ିଆ`,os:`Ирон`,pa:`ਪੰਜਾਬੀ`,pi:`𑀅𑀯𑀢`,rm:`Rumantsch`,rn:`Ikirundi`,rw:`Kinyarwanda`,sa:`संस्कृतम्`,sc:`Sardu`,sg:`Sängö`,ss:`SiSwati`,st:`Sesotho`,ti:`ትግርኛ`,tn:`Setswana`,to:`Faka Tonga`,ts:`Xitsonga`,tt:`Татарча`,tw:`Twi`,ty:`Reo Tahiti`,ve:`Tshivenḓa`,vo:`Volapük`,wa:`Walon`,wo:`Wolof`,za:`Saɯ cueŋƅ`};function fd(){let e=pd();return e?md(e):[]}function pd(){let e=typeof globals<`u`?globals?.$ns?.[`wix-window`]?.multilingual:void 0,t=typeof window<`u`?window?.essentials?.multilingual:void 0;return e??t??globalThis?.__wix_site_metadata__?.multilingual}function md(e){try{if(e?.supportedLanguages?.length){let t=e.supportedLanguages,n=t.map(e=>e.languageCode).filter(Boolean),r=e.cleanUrl??vd(n);return t.map(e=>({id:e.languageCode,displayName:hd(e),regionalFormat:[e.locale?.languageCode,e.locale?.country].filter(Boolean).join(`-`),url:gd(e,r),primary:e.isPrimary,resolutionMethod:e.resolutionMethod}))}if(e?.siteLanguages?.length){let t=e.siteLanguages,n=vd(t.map(e=>e.languageCode).filter(Boolean));return t.map(e=>({id:e.languageCode,displayName:hd(e),regionalFormat:e.locale,url:gd(e,n),primary:e.isPrimaryLanguage,resolutionMethod:e.resolutionMethod?_d(e.resolutionMethod):void 0}))}}catch(e){return console.warn(`[Multilingual Manager] listSupportedLanguages failed`,e),[]}return console.warn(`[Multilingual Manager] listSupportedLanguages is not available`),[]}function hd(e){let t=dd[e.languageCode];if(t)return t;let n=e.name??e.countryCode;if(n)return n}function gd(e,t){if(e.url||!t||!e.resolutionMethod)return e.url;if(e.languageCode)try{return en(t,{languageCode:e.languageCode,countryCode:e.countryCode,resolutionMethod:_d(e.resolutionMethod),locale:{languageCode:e.languageCode,country:e.countryCode}})}catch(e){console.warn(`[Multilingual Manager] buildUrlForLanguage failed`,e);return}}function _d(e){switch(e){case`QUERY_PARAM`:case`QueryParam`:return ud.QUERY_PARAM;case`SUBDOMAIN`:case`Subdomain`:return ud.SUBDOMAIN;case`SUBDIRECTORY`:case`Subdirectory`:return ud.SUBDIRECTORY;default:return}}function vd(e){let t=typeof window<`u`&&window.location?.href?window.location.href:``;try{return tn(t,e)}catch(e){return console.warn(`[Multilingual Manager] cleanCurrentUrl failed`,e),t}}var yd=new Map,bd=500,xd;function Sd(){if(xd===void 0)try{xd=new Intl.NumberFormat(`en-US`,{useGrouping:!1,maximumFractionDigits:0}).format(`9007199254740993`)===`9007199254740993`}catch{xd=!1}return xd}var Cd=15;function wd(e){if(!(typeof e!=`string`||Sd())&&e.replace(/[^0-9]/g,``).replace(/^0+/,``).length>Cd)throw Error(`Cannot format the amount '${e}' exactly: this runtime's Intl implementation predates ES2023 string support and would lose precision. Use a runtime with ES2023 Intl support (for example Node 20+), or pass a value within 15 significant digits.`)}function Td(e,t,n){return`${e}|${t}|${Object.entries(n).filter(([,e])=>e!==void 0).sort(([e],[t])=>e<t?-1:1).map(([e,t])=>`${e}=${String(t)}`).join(`&`)}`}function Ed(e,t,n){let r=Td(e,t,n),i=yd.get(r);return i||(i=new Intl.NumberFormat(e,{...n,style:`currency`,currency:t}),yd.size>=bd&&yd.clear(),yd.set(r,i)),i}function Dd(e,{value:t,currency:n},r={}){return wd(t),Ed(e,n,r).format(t)}function Od(e,{value:t,currency:n},r={}){return wd(t),Ed(e,n,r).formatToParts(t)}function kd(e){return fd().find(e=>e.primary)?.id??e}function Ad(e,t){let{locale:n,...r}=t??{},i=n??e.essentials?.locale;if(!i)throw Error(`Host locale is not available on the current host. Make sure to use an updated version of the host initialization package.`);return{locale:i,formatOptions:r}}var jd=Xi({getLanguage:e=>()=>{let t=e.essentials?.language;if(!t)throw Error(`Host language is not available on the current host. Make sure to use an updated version of the host initialization package.`);return t},getLocale:e=>()=>{let t=e.essentials?.locale;if(!t)throw Error(`Host locale is not available on the current host. Make sure to use an updated version of the host initialization package.`);return t},formatCurrency:e=>(t,n)=>{let{locale:r,formatOptions:i}=Ad(e,n);return Dd(r,t,i)},formatCurrencyToParts:e=>(t,n)=>{let{locale:r,formatOptions:i}=Ad(e,n);return Od(r,t,i)},getTranslationFunction:e=>()=>{let t=e.translations?.();if(!t)throw Error(`Host translation resources are not available.`);let n=q.createInstance(),r=kd(e.essentials?.language)||`en`,i={lng:e.essentials?.language||r,fallbackLng:r,resources:t};return n.use(ld).init(i,e=>{if(e)throw e}),n.t.bind(n)}}),Md=class{constructor(e){this.message=e,this.captureException=()=>{console.error(this.message)},this.captureMessage=()=>{console.error(this.message)},this.startSpan=(e,t)=>(console.error(this.message),t(void 0)),this.startSpanManual=()=>(console.error(this.message),{end:()=>{},fail:()=>{}}),this.endSpanManual=()=>{console.error(this.message)},this.addBreadcrumb=()=>{console.error(this.message)}}},Nd=e=>new Md(e),Pd=Xi({getMonitoringClient:e=>()=>e.getMonitoringClient?e.getMonitoringClient():Nd(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`)}),Fd=[...`--wst-button-primary-background-color.--wst-button-primary-background-image.--wst-button-primary-padding-top.--wst-button-primary-border-top-color.--wst-button-primary-border-top-width.--wst-button-primary-border-top-style.--wst-button-primary-padding-right.--wst-button-primary-border-right-color.--wst-button-primary-border-right-width.--wst-button-primary-border-right-style.--wst-button-primary-padding-bottom.--wst-button-primary-border-bottom-color.--wst-button-primary-border-bottom-width.--wst-button-primary-border-bottom-style.--wst-button-primary-padding-left.--wst-button-primary-border-left-color.--wst-button-primary-border-left-width.--wst-button-primary-border-left-style.--wst-button-primary-border-top-left-radius.--wst-button-primary-border-top-right-radius.--wst-button-primary-border-bottom-right-radius.--wst-button-primary-border-bottom-left-radius.--wst-button-primary-box-shadow.--wst-button-primary-column-gap.--wst-button-primary-row-gap.--wst-button-primary-letter-spacing.--wst-button-primary-text-decoration.--wst-button-primary-text-transform.--wst-button-primary-text-shadow.--wst-button-secondary-background-color.--wst-button-secondary-background-image.--wst-button-secondary-padding-top.--wst-button-secondary-border-top-color.--wst-button-secondary-border-top-width.--wst-button-secondary-border-top-style.--wst-button-secondary-padding-right.--wst-button-secondary-border-right-color.--wst-button-secondary-border-right-width.--wst-button-secondary-border-right-style.--wst-button-secondary-padding-bottom.--wst-button-secondary-border-bottom-color.--wst-button-secondary-border-bottom-width.--wst-button-secondary-border-bottom-style.--wst-button-secondary-padding-left.--wst-button-secondary-border-left-color.--wst-button-secondary-border-left-width.--wst-button-secondary-border-left-style.--wst-button-secondary-border-top-left-radius.--wst-button-secondary-border-top-right-radius.--wst-button-secondary-border-bottom-right-radius.--wst-button-secondary-border-bottom-left-radius.--wst-button-secondary-box-shadow.--wst-button-secondary-column-gap.--wst-button-secondary-row-gap.--wst-button-secondary-letter-spacing.--wst-button-secondary-text-decoration.--wst-button-secondary-text-transform.--wst-button-secondary-text-shadow`.split(`.`),`--wst-graphics-1-color`,`--wst-system-line-1-color`,`--wst-system-line-1-width`,`--wst-system-disabled-color`,`--wst-primary-background-color`,`--wst-secondary-background-color`,`--wst-shade-2-color`,`--wst-shade-3-color`,`--wst-paragraph-1-color`,`--wst-paragraph-1-font`,`--wst-paragraph-2-color`,`--wst-paragraph-2-font`,`--wst-paragraph-3-color`,`--wst-paragraph-3-font`,`--wst-heading-5-color`,`--wst-heading-5-font`,`--wst-heading-6-color`,`--wst-heading-6-font`,`--wst-button-primary-color`,`--wst-button-primary-font`,`--wst-button-secondary-color`,`--wst-button-secondary-font`,`--wst-button-tertiary-color`,`--wst-button-tertiary-font`,`--wst-links-and-actions-color`,`--wst-system-alert-color`,`--wst-system-error-color`,`--wst-system-success-color`,`--wst-system-default-light-color`,`--wst-system-default-dark-color`],Id=`--builder-base`,Ld=e=>{let[,t]=d(!1);c(()=>{t(!0)},[]);let n=o(()=>{let t=e.current;if(!t)return{};let n=getComputedStyle(t),r={};for(let e of Fd){let t=n.getPropertyValue(e).trim();t&&(r[e]=t)}return n.fontSize&&(r[Id]=n.fontSize),r},[e]),[,r]=d(``);return c(()=>{let e=()=>r(JSON.stringify(n()));return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[n]),o(()=>n(),[n])};function Rd(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Rd(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t)}return r}function zd(){for(var e,t,n=0,r=``;n<arguments.length;)(e=arguments[n++])&&(t=Rd(e))&&(r&&(r+=` `),r+=t);return r}var Bd={...e},Vd=`u`>typeof document?e.useLayoutEffect:()=>{},Hd=`u`>typeof navigator,Ud=Jd(),Wd=Xd(),Gd=Yd();`u`>typeof CSS&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter:none`),Ud.platform===`MacIntel`&&Ud.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(Ud.platform),Hd&&/firefox/i.test(Gd);var Kd=Hd&&/apple/i.test(navigator.vendor);Hd&&/Edg/i.test(Gd),Hd&&/android/i.test(Wd)||/android/i.test(Gd),Hd&&Wd.toLowerCase().startsWith(`mac`)&&navigator.maxTouchPoints;var qd=Gd.includes(`jsdom/`);function Jd(){if(!Hd)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function Yd(){if(!Hd)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function Xd(){if(!Hd)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var Zd={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Qd={...Zd,position:`fixed`,top:0,left:0};({...Zd});function $d(){return`u`>typeof window}function ef(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tf(e){return $d()?e instanceof Node||e instanceof ef(e).Node:!1}function nf(e){return $d()?e instanceof HTMLElement||e instanceof ef(e).HTMLElement:!1}function rf(e){return!$d()||`u`<typeof ShadowRoot?!1:e instanceof ShadowRoot||e instanceof ef(e).ShadowRoot}function af(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function of(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&rf(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function sf(e){return`composedPath`in e?e.composedPath()[0]:e.target}function cf(e){return e?.ownerDocument||document}var lf={},uf={};function df(e){var t=uf[e];if(t!==void 0)return t.exports;var n=uf[e]={exports:{}};return lf[e](n,n.exports,df),n.exports}df.m=lf,df.add=function(e){Object.assign(df.m,e)},df.add({"../../node_modules/use-sync-external-store/cjs/use-sync-external-store.development.js"(e,t,n){},"../../node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js"(e,t,n){t.useSyncExternalStore=n(`react?f15c`).useSyncExternalStore},"../../node_modules/use-sync-external-store/index.js"(e,t,n){e.exports=n(`../../node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js`)},"react?f15c"(t){t.exports=e}});var ff={};function pf(t,n){let r=e.useRef(ff);return r.current===ff&&(r.current=t(n)),r}function mf(e,t,n,r){let i=pf(gf).current;return _f(i,e,t,n,r)&&yf(i,[e,t,n,r]),i.callback}function hf(e){let t=pf(gf).current;return vf(t,e)&&yf(t,e),t.callback}function gf(){return{callback:null,cleanup:null,refs:[]}}function _f(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function vf(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function yf(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}function bf(){}Object.freeze([]);var xf=Object.freeze({});function Sf(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Cf=Sf(`https://base-ui.com/production-error`,`Base UI`),wf=parseInt(e.version,10);function Tf(e){return wf>=e}function Ef(t){if(!e.isValidElement(t))return null;let n=t,r=n.props;return(Tf(19)?r?.ref:n.ref)??null}function Df(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Of(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}!0===i?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function kf(e,t){return typeof e==`function`?e(t):e}function Af(e,t){return typeof e==`function`?e(t):e}var jf={};function Mf(e,t,n,r,i){if(!n&&!r&&!i&&!e)return Pf(t);let a=Pf(e);return t&&(a=Ff(a,t)),n&&(a=Ff(a,n)),r&&(a=Ff(a,r)),i&&(a=Ff(a,i)),a}function Nf(e){if(e.length===0)return jf;if(e.length===1)return Pf(e[0]);let t=Pf(e[0]);for(let n=1;n<e.length;n+=1)t=Ff(t,e[n]);return t}function Pf(e){return zf(e)?{...Bf(e,jf)}:If(e)}function Ff(e,t){return zf(t)?Bf(t,e):Lf(e,t)}function If(e){let t={...e};for(let e in t){let n=t[e];Rf(e,n)&&(t[e]=Hf(n))}return t}function Lf(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=Df(e.style,r);break;case`className`:e[n]=Wf(e.className,r);break;default:e[n]=Rf(n,r)?Vf(e[n],r):r}}return e}function Rf(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function zf(e){return typeof e==`function`}function Bf(e,t){return zf(e)?e(t):e??jf}function Vf(e,t){return t?e?(...n)=>{let r=n[0];if(Gf(r)){let i=r;Uf(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:Hf(t):e}function Hf(e){return e&&((...t)=>{let n=t[0];return Gf(n)&&Uf(n),e(...t)})}function Uf(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Wf(e,t){return t?e?t+` `+e:t:e}function Gf(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Kf(e,t,n={}){let r=t.render,i=qf(t,n);return!1===n.enabled?null:Xf(e,r,i,n.state??xf)}function qf(e,t={}){let{className:n,style:r,render:i}=e,{state:a=xf,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?kf(n,a):void 0,d=l?Af(r,a):void 0,f=l?Of(a,c):xf,p=l&&s?Jf(s):void 0,m=l?Df(f,p)??{}:xf;return`u`>typeof document&&(l?m.ref=Array.isArray(o)?hf([m.ref,Ef(i),...o]):mf(m.ref,Ef(i),o):mf(null,null)),l?(u!==void 0&&(m.className=Wf(m.className,u)),d!==void 0&&(m.style=Df(m.style,d)),m):xf}function Jf(e){return Array.isArray(e)?Nf(e):Mf(void 0,e)}var Yf=Symbol.for(`react.lazy`);function Xf(t,n,r,i){if(n){if(typeof n==`function`)return n(r,i);let t=Mf(r,n.props);t.ref=r.ref;let a=n;return a?.$$typeof===Yf&&(a=e.Children.toArray(n)[0]),e.cloneElement(a,t)}if(t&&typeof t==`string`)return Zf(t,r);throw Error(Cf(8))}function Zf(t,n){return t===`button`?(0,e.createElement)(`button`,{type:`button`,...n,key:n.key}):t===`img`?(0,e.createElement)(`img`,{alt:``,...n,key:n.key}):e.createElement(t,n)}var Qf=Bd.useInsertionEffect,$f=Qf&&Qf!==Bd.useLayoutEffect?Qf:e=>e();function ep(e){let t=pf(tp).current;return t.next=e,$f(t.effect),t.trampoline}function tp(){let e={next:void 0,callback:np,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function np(){}df.add({"../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js"(e,t,n){},"../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js"(e,t,n){var r=n(`react?1096`);function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=r.useRef,c=r.useEffect,l=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},"../../node_modules/use-sync-external-store/with-selector.js"(e,t,n){e.exports=n(`../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js`)},"react?1096"(t){t.exports=e}});function rp(e){return`data-base-ui-${e}`}var ip=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(Cf(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},ap=[];function op(e){ap.push(e)}var sp=df(`../../node_modules/use-sync-external-store/index.js`),cp=df(`../../node_modules/use-sync-external-store/with-selector.js`),lp=Tf(19)?fp:pp;function up(e,t,n,r,i){return lp(e,t,n,r,i)}function dp(t,n,r,i,a){let o=e.useCallback(()=>n(t.getSnapshot(),r,i,a),[t,n,r,i,a]);return(0,sp.useSyncExternalStore)(t.subscribe,o,o)}op({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,sp.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function fp(e,t,n,r,i){return dp(e,t,n,r,i)}function pp(e,t,n,r,i){return(0,cp.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var mp=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return up(this,e,t,n,r)}},hp=class extends mp{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(t,n){e.useDebugValue(t);let r=this;Vd(()=>{r.state[t]!==n&&r.set(t,n)},[r,t,n])}useSyncedValueWithCleanup(e,t){let n=this;Vd(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;Vd(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(t,n){e.useDebugValue(t);let r=this,i=n!==void 0;Vd(()=>{i&&!Object.is(r.state[t],n)&&r.setState({...r.state,[t]:n})},[r,t,n,i])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(t,n,r,i){return e.useDebugValue(t),up(this,this.selectors[t],n,r,i)}useContextCallback(t,n){e.useDebugValue(t);let r=ep(n??bf);this.context[t]=r}useStateSetter(t){let n=e.useRef(void 0);return n.current===void 0&&(n.current=e=>{this.set(t,e)}),n.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},gp=0;function _p(t,n=`mui`){let[r,i]=e.useState(t),a=t||r;return e.useEffect(()=>{r??(gp+=1,i(`${n}-${gp}`))},[r,n]),a}var vp=Bd.useId;function yp(e,t){if(vp!==void 0){let n=vp();return e??(t?`${t}-${n}`:n)}return _p(e,t)}function bp(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function xp(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}var Sp=e.forwardRef(function(t,n){let[r,i]=e.useState();Vd(()=>{Kd&&i(`button`)},[]);let a={tabIndex:0,role:r};return m(`span`,{...t,ref:n,style:Qd,"aria-hidden":!r||void 0,...a,"data-base-ui-focus-guard":``})}),Cp=`data-base-ui-swipe-ignore`,wp=`data-swipe-ignore`,Tp=`[${Cp}]`,Ep=`[${wp}]`,Dp=e.createContext(null),Op=()=>e.useContext(Dp),kp=rp(`portal`);function Ap(t={}){let{ref:n,container:r,componentProps:i=xf,elementProps:a}=t,o=yp(),s=Op()?.portalNode,[c,l]=e.useState(null),[u,d]=e.useState(null),p=ep(e=>{e!==null&&d(e)}),m=e.useRef(null);Vd(()=>{if(r===null){m.current&&(m.current=null,d(null),l(null));return}if(o==null)return;let e=(r&&(tf(r)?r:r.current))??s??document.body;if(e==null){m.current&&(m.current=null,d(null),l(null));return}m.current!==e&&(m.current=e,d(null),l(e))},[r,s,o]);let h=Kf(`div`,i,{ref:[n,p],props:[{id:o,[kp]:``},a]});return{portalNode:u,portalSubtree:c&&h?f.createPortal(h,c):null}}var jp=e.forwardRef(function(t,n){let{children:r,container:i,className:a,render:o,style:s,...c}=t,{portalNode:l,portalSubtree:u}=Ap({container:i,ref:n,componentProps:t,elementProps:c});return!u&&!l?null:h(e.Fragment,{children:[u,l&&f.createPortal(r,l)]})}),Mp=[];function Np(t){e.useEffect(t,Mp)}var Pp=0,Fp=class e{static create(){return new e}currentId=Pp;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Pp,t()},e)}isStarted(){return this.currentId!==Pp}clear=()=>{this.currentId!==Pp&&(clearTimeout(this.currentId),this.currentId=Pp)};disposeEffect=()=>this.clear};function Ip(){let e=pf(Fp.create).current;return Np(e.disposeEffect),e}function Lp(e){if(!e||qd)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}var Rp=null;globalThis.requestAnimationFrame;var zp=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},Bp=class e{static create(){return new e}static request(e){return zp.request(e)}static cancel(e){return zp.cancel(e)}currentId=Rp;request(e){this.cancel(),this.currentId=zp.request(()=>{this.currentId=Rp,e()})}cancel=()=>{this.currentId!==Rp&&(zp.cancel(this.currentId),this.currentId=Rp)};disposeEffect=()=>this.cancel};function Vp(){let e=pf(Bp.create).current;return Np(e.disposeEffect),e}var Hp=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Up={[Hp.startingStyle]:``},Wp={[Hp.endingStyle]:``},Gp={transitionStatus(e){return e===`starting`?Up:e===`ending`?Wp:null}};function Kp(e){return e==null?e:`current`in e?e.current:e}function qp(e,t=!1,n=!0){let r=Vp();return ep((i,a=null)=>{r.cancel();let o=Kp(e);if(o==null)return;let s=o,c=()=>{f.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void i();function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=Hp.startingStyle;if(!s.hasAttribute(e))return void r.request(l);let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function Jp(t){let{enabled:n=!0,open:r,ref:i,onComplete:a}=t,o=ep(a),s=qp(i,r,!1);e.useEffect(()=>{if(!n)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[n,r,o,s])}function Yp(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}function Xp(e){let t=ef(e).getComputedStyle(e).transform,n=0,r=0,i=1;if(t&&t!==`none`){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(n=t[4],r=t[5],i=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(n=t[12],r=t[13],i=t[0])}}return{x:n,y:r,scale:i}}function Zp(e){return Tf(19)?e:e?`true`:void 0}var Qp=e.createContext(void 0);function $p(t=!1){let n=e.useContext(Qp);if(n===void 0&&!t)throw Error(Cf(16));return n}function em(t){let{focusableWhenDisabled:n,disabled:r,composite:i=!1,tabIndex:a=0,isNativeButton:o}=t,s=i&&!1!==n,c=i&&!1===n;return{props:e.useMemo(()=>{let e={onKeyDown(e){r&&n&&e.key!==`Tab`&&e.preventDefault()}};return i||(e.tabIndex=a,!o&&r&&(e.tabIndex=n?a:-1)),(o&&(n||s)||!o&&r)&&(e[`aria-disabled`]=r),o&&(!n||c)&&(e.disabled=r),e},[i,r,n,s,c,o,a])}}function tm(t={}){let{disabled:n=!1,focusableWhenDisabled:r,tabIndex:i=0,native:a=!0,composite:o}=t,s=e.useRef(null),c=$p(!0),l=o??c!==void 0,{props:u}=em({focusableWhenDisabled:r,disabled:n,composite:l,tabIndex:i,isNativeButton:a}),d=e.useCallback(()=>{let e=s.current;nm(e)&&l&&n&&u.disabled===void 0&&e.disabled&&(e.disabled=!1)},[n,u.disabled,l]);return Vd(d,[d]),{getButtonProps:e.useCallback((e={})=>{let{onClick:t,onMouseDown:r,onKeyUp:i,onKeyDown:o,onPointerDown:s,...c}=e;return Mf({onClick(e){if(n)return void e.preventDefault();t?.(e)},onMouseDown(e){n||r?.(e)},onKeyDown(e){if(n||(Uf(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,i=e.currentTarget,s=nm(i),c=!a&&rm(i),u=r&&(a?s:!c),d=e.key===`Enter`,f=e.key===` `,p=i.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&l&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),c||a&&s?(i.click(),e.preventBaseUIHandler()):u&&(t?.(e),e.preventBaseUIHandler());return}u&&(!a&&(f||d)&&e.preventDefault(),!a&&d&&t?.(e))},onKeyUp(e){if(!n){if(Uf(e),i?.(e),e.target===e.currentTarget&&a&&l&&nm(e.currentTarget)&&e.key===` `)return void e.preventDefault();e.baseUIHandlerPrevented||e.target===e.currentTarget&&!a&&!l&&e.key===` `&&t?.(e)}},onPointerDown(e){if(n)return void e.preventDefault();s?.(e)}},a?{type:`button`}:{role:`button`},u,c)},[n,u,l,a]),buttonRef:ep(e=>{s.current=e,d()})}}function nm(e){return nf(e)&&e.tagName===`BUTTON`}function rm(e){return!!(e?.tagName===`A`&&e?.href)}var im=jp,am=e.createContext(void 0);function om(){let t=e.useContext(am);if(!t)throw Error(Cf(73));return t}var sm=function(e){return e.frontmostHeight=`--toast-frontmost-height`,e}({}),cm=e.forwardRef(function(t,n){let{render:r,className:i,style:a,children:o,...s}=t,c=om(),l=Ip(),u=e.useRef(!1),d=e.useRef(!1),f=e.useRef(!1),p=c.useState(`isEmpty`),g=c.useState(`toasts`),_=c.useState(`focused`),v=c.useState(`expanded`),y=c.useState(`prevFocusElement`),b=g[0]?.height??0,x=e.useMemo(()=>g.some(e=>e.transitionStatus===`ending`),[g]),S=e.useMemo(()=>g.filter(e=>e.priority===`high`),[g]);e.useEffect(()=>{let e=c.state.viewport;if(!e)return;function t(t){p||t.key===`F6`&&sf(t)!==e&&(t.preventDefault(),c.setPrevFocusElement(af(cf(e))),e?.focus({preventScroll:!0}),c.pauseTimers(),c.setFocused(!0))}return xp(ef(e),`keydown`,t)},[c,p]),e.useEffect(()=>{let e=c.state.viewport;if(!e||p)return;let t=ef(e);function n(e){sf(e)===t&&(c.setIsWindowFocused(!1),c.pauseTimers())}function r(n){if(n.relatedTarget)return;let r=sf(n),i=af(cf(e));(r===t||!of(e,r)||!Lp(i))&&c.resumeTimers(),l.start(0,()=>c.setIsWindowFocused(!0))}return bp(xp(t,`blur`,n,!0),xp(t,`focus`,r,!0))},[c,l,p]),e.useEffect(()=>{let e=c.state.viewport;return!e||p?void 0:xp(cf(e),`pointerdown`,c.handleDocumentPointerDown,!0)},[p,c]);function C(e){let t=c.state.viewport;t&&(u.current=!0,e.relatedTarget===t?g[0]?.ref?.current?.focus():c.restoreFocusToPrevElement())}function ee(e){e.key===`Tab`&&e.shiftKey&&sf(e.nativeEvent)===c.state.viewport&&(e.preventDefault(),c.restoreFocusToPrevElement(),c.resumeTimers())}function w(){let e=c.state.toasts.some(e=>e.transitionStatus===`ending`);c.state.isWindowFocused&&!e&&!f.current&&d.current&&(c.resumeTimers(),c.setHovering(!1),d.current=!1)}e.useEffect(w,[x,c]);function T(){c.pauseTimers(),c.setHovering(!0),d.current=!1}function E(){x||f.current?d.current=!0:(c.resumeTimers(),c.setHovering(!1))}function te(e){e.pointerType===`touch`&&(f.current=!0)}function ne(e){e.pointerType===`touch`&&(f.current=!1,w())}function re(){if(u.current){u.current=!1;return}_||Lp(af(cf(c.state.viewport)))&&(c.setFocused(!0),c.pauseTimers())}function ie(e){_&&!of(c.state.viewport,e.relatedTarget)&&(c.setFocused(!1),c.resumeTimers())}let D={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:T,onMouseMove:T,onMouseLeave:E,onFocus:re,onBlur:ie,onKeyDown:ee,onClick:re,onPointerDown:te,onPointerUp:ne,onPointerCancel:ne},O={expanded:v},ae=Kf(`div`,t,{ref:[n,c.setViewport],state:O,props:[D,{style:{[sm.frontmostHeight]:b?`${b}px`:void 0}},s,{children:h(e.Fragment,{children:[!p&&y&&m(Sp,{onFocus:C}),o,!p&&y&&m(Sp,{onFocus:C})]})}]});return h(e.Fragment,{children:[!p&&y&&m(Sp,{onFocus:C}),ae,!_&&S.length>0&&m(`div`,{style:Qd,children:S.map(e=>h(`div`,{role:`alert`,"aria-atomic":!0,children:[m(`div`,{children:e.title}),m(`div`,{children:e.description})]},e.id))})]})}),lm=e.createContext(void 0);function um(){let t=e.useContext(lm);if(!t)throw Error(Cf(66));return t}var dm=function(e){return e.index=`--toast-index`,e.offsetY=`--toast-offset-y`,e.height=`--toast-height`,e.swipeMovementX=`--toast-swipe-movement-x`,e.swipeMovementY=`--toast-swipe-movement-y`,e}({}),fm={...Gp,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},pm=40,mm=10,hm=.5,gm=1,_m=`${Tp},${Ep}`,vm=e.forwardRef(function(t,n){let{toast:r,render:i,className:a,swipeDirection:o=[`down`,`right`],style:s,...c}=t,l=r.positionerProps?.anchor!==void 0,u=[];l||(u=Array.isArray(o)?o:[o]);let d=u.length>0,p=om(),[h,g]=e.useState(void 0),[_,v]=e.useState(!1),[y,b]=e.useState(!1),[x,S]=e.useState(!1),[C,ee]=e.useState({x:0,y:0}),[w,T]=e.useState({x:0,y:0,scale:1}),[E,te]=e.useState(),[ne,re]=e.useState(),[ie,D]=e.useState(null),O=e.useRef(null),ae=e.useRef({x:0,y:0}),oe=e.useRef({x:0,y:0,scale:1}),se=e.useRef(void 0),ce=e.useRef(0),le=e.useRef(!1),k=e.useRef({x:0,y:0}),ue=e.useRef(!1),de=e.useRef({x:0,y:0}),fe=e.useRef(null),pe=e.useRef(null),me=p.useState(`toastIndex`,r.id),he=p.useState(`toastVisibleIndex`,r.id),ge=p.useState(`toastOffsetY`,r.id),_e=p.useState(`focused`),ve=p.useState(`expanded`);Jp({open:r.transitionStatus!==`ending`,ref:O,onComplete(){r.transitionStatus===`ending`&&p.removeToast(r.id)}});let ye=ep((e=!1)=>{let t=O.current;if(!t)return;let n=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=n;function a(){p.updateToastInternal(r.id,{ref:O,height:i,...r.transitionStatus===`starting`?{transitionStatus:void 0}:{}})}e?f.flushSync(a):a()});Vd(ye,[ye]);function be(e){de.current=e,ee(e)}Vd(()=>()=>{pe.current?.abort()},[]);function xe(e,t){let n=e,r=t;return u.includes(`left`)||u.includes(`right`)?(!u.includes(`right`)&&e>0&&(n=e**hm),!u.includes(`left`)&&e<0&&(n=-(Math.abs(e)**hm))):n=e>0?e**hm:-(Math.abs(e)**hm),u.includes(`up`)||u.includes(`down`)?(!u.includes(`down`)&&t>0&&(r=t**hm),!u.includes(`up`)&&t<0&&(r=-(Math.abs(t)**hm))):r=t>0?t**hm:-(Math.abs(t)**hm),{x:n,y:r}}let Se=ep(e=>{if(e.pointerId!==fe.current)return;fe.current=null,pe.current?.abort(),pe.current=null,v(!1),b(!1),D(null);let t=oe.current;if(e.type===`pointercancel`||le.current){be({x:t.x,y:t.y}),g(void 0);return}let n=!1,i=de.current,a=i.x-t.x,o=i.y-t.y,s;for(let e of u){switch(e){case`right`:a>pm&&(n=!0,s=`right`);break;case`left`:a<-40&&(n=!0,s=`left`);break;case`down`:o>pm&&(n=!0,s=`down`);break;case`up`:o<-40&&(n=!0,s=`up`)}if(n)break}n?(g(s),S(!0),p.closeToast(r.id)):(be({x:t.x,y:t.y}),g(void 0))});function Ce(e){if(e.button!==0)return;e.pointerType===`touch`&&p.pauseTimers();let t=sf(e.nativeEvent);if(t&&t.closest(`button,a,input,textarea,[role="button"],${_m}`))return;if(le.current=!1,se.current=void 0,ce.current=0,fe.current=e.pointerId,ae.current={x:e.clientX,y:e.clientY},k.current=ae.current,O.current){let e=Xp(O.current);oe.current=e,T(e),be({x:e.x,y:e.y})}p.setHovering(!0),v(!0),b(!1),D(null),ue.current=!0;let n=O.current;if(n){pe.current?.abort();let t=new AbortController;pe.current=t;let r=cf(n);r.addEventListener(`pointerup`,Se,{signal:t.signal}),r.addEventListener(`pointercancel`,Se,{signal:t.signal}),n.setPointerCapture?.(e.pointerId)}}function we(e){if(e.pointerId!==fe.current)return;e.preventDefault(),ue.current&&=(ae.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>k.current.y||i>0&&t<k.current.y)&&(k.current={x:k.current.x,y:t}),(r<0&&n>k.current.x||r>0&&n<k.current.x)&&(k.current={x:n,y:k.current.y});let a=n-ae.current.x,o=t-ae.current.y,s=t-k.current.y,c=n-k.current.x;if(!y&&Math.sqrt(a*a+o*o)>=gm&&(b(!0),ie===null)){let e=u.includes(`left`)||u.includes(`right`),t=u.includes(`up`)||u.includes(`down`);e&&t&&D(Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`)}let l;if(se.current){let e=se.current,t=Yp(e,c,s);t>pm?(le.current=!1,g(e)):!(u.includes(`left`)&&u.includes(`right`))&&!(u.includes(`up`)&&u.includes(`down`))&&ce.current-t>=mm&&(le.current=!0)}else ie===`vertical`?o>0?l=`down`:o<0&&(l=`up`):ie===`horizontal`?a>0?l=`right`:a<0&&(l=`left`):l=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,l&&u.includes(l)&&(se.current=l,ce.current=Yp(l,a,o),g(l));let d=xe(a,o),f=oe.current.x,p=oe.current.y;ie===`horizontal`?(u.includes(`left`)||u.includes(`right`))&&(f+=d.x):(ie===`vertical`||(u.includes(`left`)||u.includes(`right`))&&(f+=d.x),(u.includes(`up`)||u.includes(`down`))&&(p+=d.y)),be({x:f,y:p})}function Te(e){if(e.key===`Escape`){if(!O.current||!of(O.current,af(cf(O.current))))return;p.closeToast(r.id)}}e.useEffect(()=>{if(!d)return;let e=O.current;if(!e)return;function t(t){of(e,sf(t))&&t.preventDefault()}return xp(e,`touchmove`,t,{passive:!1})},[d]);function Ee(){if(!_&&C.x===w.x&&C.y===w.y&&!x)return{[dm.swipeMovementX]:`0px`,[dm.swipeMovementY]:`0px`};let e=C.x-w.x,t=C.y-w.y;return{transition:_?`none`:void 0,transform:_?`translateX(${C.x}px) translateY(${C.y}px) scale(${w.scale})`:void 0,[dm.swipeMovementX]:`${e}px`,[dm.swipeMovementY]:`${t}px`}}let De=r.priority===`high`,Oe={role:De?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":E,"aria-describedby":ne,"aria-hidden":De&&!_e?!0:void 0,onPointerDown:d?Ce:void 0,onPointerMove:d?we:void 0,onPointerUp:d?Se:void 0,onPointerCancel:d?Se:void 0,onKeyDown:Te,inert:Zp(r.limited),style:{...Ee(),[dm.index]:r.transitionStatus===`ending`?me:he,[dm.offsetY]:`${ge}px`,[dm.height]:r.height?`${r.height}px`:void 0}},ke=e.useMemo(()=>({rootRef:O,toast:r,titleId:E,setTitleId:te,descriptionId:ne,setDescriptionId:re,swiping:_,swipeDirection:h,recalculateHeight:ye,index:me,visibleIndex:he,expanded:ve}),[r,E,ne,_,h,ye,me,he,ve]),Ae={transitionStatus:r.transitionStatus,expanded:ve,limited:r.limited||!1,type:r.type,swiping:ke.swiping,swipeDirection:ke.swipeDirection},je=Kf(`div`,t,{ref:[n,ke.rootRef],state:Ae,stateAttributesMapping:fm,props:[Oe,c]});return m(lm.Provider,{value:ke,children:je})}),ym=e.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{toast:c,setTitleId:l}=um(),u=o??c.title,d=!!u,f=yp(a);Vd(()=>{if(d)return l(f),()=>{l(void 0)}},[d,f,l]);let p=Kf(`h2`,e,{ref:t,state:{type:c.type},props:{...s,id:f,children:u}});return d?p:null}),bm=e.forwardRef(function(t,n){let{render:r,className:i,style:a,disabled:o,nativeButton:s=!0,...c}=t,l=om(),{toast:u}=um(),d=l.useState(`expanded`),[f,p]=e.useState(!1),{getButtonProps:m,buttonRef:h}=tm({disabled:o,native:s}),g={type:u.type};return Kf(`button`,t,{ref:[n,h],state:g,props:[{"aria-hidden":!d&&!f,onClick(){l.closeToast(u.id)},onFocus(){p(!0)},onBlur(){p(!1)}},c,m]})}),xm=0;function Sm(e){return xm+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${xm}`}function Cm(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function wm(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}var Tm=e=>e.toastMetadata,Em={toasts:ip(e=>e.toasts),isEmpty:ip(e=>e.toasts.length===0),toast:ip(Tm,(e,t)=>e.get(t)?.value),toastIndex:ip(Tm,(e,t)=>e.get(t)?.domIndex??-1),toastOffsetY:ip(Tm,(e,t)=>e.get(t)?.offsetY??0),toastVisibleIndex:ip(Tm,(e,t)=>e.get(t)?.visibleIndex??-1),hovering:ip(e=>e.hovering),focused:ip(e=>e.focused),expanded:ip(e=>e.hovering||e.focused),expandedOrOutOfFocus:ip(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:ip(e=>e.prevFocusElement)},Dm=class extends hp{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:wm(e.toasts)},{},Em)}setFocused(e){this.set(`focused`,e)}setHovering(e){this.set(`hovering`,e)}setIsWindowFocused(e){this.set(`isWindowFocused`,e)}setPrevFocusElement(e){this.set(`prevFocusElement`,e)}setViewport=e=>{this.set(`viewport`,e)};disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t={}){let n=Em.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t.skipOnRemove||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||Sm(`toast`);if(e.id){let t=Em.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,{skipOnRemove:!0});else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,{resetTimer:!0,markUpdated:!0}),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts],o=a.filter(e=>e.transitionStatus!==`ending`);if(o.length>n){let e=o.length-n,t=o.slice(-e),r=new Set(t.map(e=>e.id));this.setToasts(a.map(e=>{let t=r.has(e.id);return e.limited===t?e:{...e,limited:t}}))}else this.setToasts(a.map(e=>e.limited?{...e,limited:!1}:e));let s=i.timeout??t;return i.type!==`loading`&&s>0&&this.scheduleTimer(r,s,()=>this.closeToast(r)),Em.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{this.updateToastInternal(e,t,{markUpdated:!0})};updateToastInternal=(e,t,n={})=>{let{timeout:r,toasts:i}=this.state,a=Em.toast(this.state,e)??null;if(!a||a.transitionStatus===`ending`)return;let o={...a,...t,...n.markUpdated&&{updateKey:(a.updateKey??0)+1}};this.setToasts(i.map(t=>t.id===e?o:t));let s=o.timeout??r,c=a?.timeout??r,l=Object.hasOwn(t,`timeout`),u=o.transitionStatus!==`ending`&&o.type!==`loading`&&s>0,d=this.timers.has(e),f=c!==s,p=a?.type===`loading`;if(!u&&d){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e);return}if(u&&(!d||f||l||p||n.resetTimer)){let t=this.timers.get(e);t&&(t.timeout?.clear(),this.timers.delete(e)),this.scheduleTimer(e,s,()=>this.closeToast(e)),Em.expandedOrOutOfFocus(this.state)&&this.pauseTimers()}};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear();else{let t=Em.toast(this.state,e);if(!t)return;i=[t];let n=this.timers.get(e);n?.timeout&&(n.timeout.clear(),this.timers.delete(e))}let a=0,o=r.map(r=>{if(t||r.id===e)return{...r,transitionStatus:`ending`,height:0};if(r.transitionStatus===`ending`)return r;let i=a>=n;return a+=1,r.limited===i?r:{...r,limited:i}}),s={toasts:o,toastMetadata:wm(o)};(t||r.length===1)&&(s.hovering=!1,s.focused=!1),this.update(s),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=Cm(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=Cm(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=Cm(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{if(e.timeout){e.timeout.clear();let t=Date.now()-e.start,n=e.delay-t;e.remaining=n>0?n:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=Fp.create(),e.timeout.start(e.remaining,()=>{this.timers.delete(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=sf(e);of(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=!Em.expandedOrOutOfFocus(this.state),a=i?Fp.create():void 0;a?.start(t,()=>{this.timers.delete(e),n()}),this.timers.set(e,{timeout:a,start:i?r:0,delay:t,remaining:t,callback:n})}setToasts(e){let t={toasts:e,toastMetadata:wm(e)};e.length===0&&(t.hovering=!1,t.focused=!1),this.update(t)}handleFocusManagement(e){let t=af(cf(this.state.viewport));if(!this.state.viewport||!of(this.state.viewport,t)||!Lp(t))return;if(e===void 0)return void this.restoreFocusToPrevElement();let n=Em.toasts(this.state),r=Em.toastIndex(this.state,e),i=null,a=r+1;for(;a<n.length;){if(n[a].transitionStatus!==`ending`){i=n[a];break}a+=1}if(!i)for(a=r-1;a>=0;){if(n[a].transitionStatus!==`ending`){i=n[a];break}--a}i?i.ref?.current?.focus():this.restoreFocusToPrevElement()}},Om=function(t){let{children:n,timeout:r=5e3,limit:i=3,toastManager:a}=t,o=pf(()=>new Dm({timeout:r,limit:i,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return Np(o.disposeEffect),e.useEffect(function(){if(a)return a[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?o.promiseToast(t.promise,t):e===`update`&&n?o.updateToast(n,t):e===`close`?o.closeToast(n):o.addToast(t)})},[o,a]),o.useSyncedValues({timeout:r,limit:i}),m(am.Provider,{value:o,children:n})};function km(){let t=e.useContext(am);if(!t)throw Error(Cf(73));let n=t.useState(`toasts`);return e.useMemo(()=>({toasts:n,add:t.addToast,close:t.closeToast,update:t.updateToast,promise:t.promiseToast}),[n,t])}var Am={viewport:`viewport-Wd6ktK`,root:`root-TfN4xI`,status:`status-O_LUHn`,success:`success-tUs5Op`,error:`error-clgmW0`,preview:`preview-HUjSkl`,title:`title-ECAZRW`,close:`close-GX8r1b`},jm=({size:e,...t})=>m(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,width:e||`24`,height:e||`24`,...t,children:m(`path`,{fillRule:`evenodd`,d:`M19.2928932,3.99989322 L20,4.707 L12.7068932,11.9998932 L20,19.2928932 L19.2928932,20 L11.9998932,12.7068932 L4.707,20 L3.99989322,19.2928932 L11.2928932,11.9998932 L3.99989322,4.707 L4.707,3.99989322 L11.9998932,11.2928932 L19.2928932,3.99989322 Z`})}),Mm=()=>{if(!(`u`<typeof document))return document.querySelector(`#SITE_PAGES > .theme-vars`)??document.body};function Nm(e){switch(e){case`success`:return Am.success;case`error`:return Am.error;case`preview`:return Am.preview;default:return Am.status}}var Pm={Provider:Om,Portal:({container:e,...t})=>m(im,{container:e??Mm(),...t}),Viewport:e.forwardRef(({className:e,...t},n)=>m(cm,{ref:n,className:zd(Am.viewport,`theme-vars`,e),...t})),Root:e.forwardRef(({className:e,skin:t,swipeDirection:n=[],toast:r,...i},a)=>m(vm,{ref:a,toast:r,className:zd(Am.root,Nm(t),e),swipeDirection:n,...i})),Title:e.forwardRef(({className:e,...t},n)=>m(ym,{ref:n,className:zd(Am.title,e),...t})),Close:e.forwardRef(({className:e,...t},n)=>m(bm,{ref:n,className:zd(Am.close,e),...t,children:m(jm,{"aria-hidden":`true`})})),useToastManager:km},Fm=`.viewport-Wd6ktK{z-index:var(--above-all-z-index);flex-direction:column;display:flex;position:fixed;bottom:0;left:0;right:0}.root-TfN4xI{box-sizing:border-box;color:#fff;width:100%;font:var(--wst-paragraph-3-font);border:var(--wst-system-line-1-width) solid color-mix(in srgb,var(--wst-system-default-light-color) 40%,transparent);opacity:0;visibility:hidden;border-radius:2px;align-items:center;gap:20px;padding-inline:32px 12px;transition:visibility .2s,opacity .2s,transform .4s;display:flex;transform:translateY(-50%);box-shadow:0 0 4px #0000001a,0 4px 8px #0000001a}.root-TfN4xI:not([data-starting-style]):not([data-ending-style]){opacity:1;visibility:visible;transform:translateY(0)}.root-TfN4xI:focus-visible{outline:2px solid var(--wst-links-and-actions-color);outline-offset:-2px}.status-O_LUHn{background-color:var(--wst-system-default-dark-color)}.success-tUs5Op{background-color:var(--wst-system-success-color)}.error-clgmW0{background-color:var(--wst-system-error-color)}.preview-HUjSkl{background-color:color-mix(in srgb,var(--wst-system-default-dark-color) 60%,transparent)}.title-ECAZRW{-webkit-line-clamp:2;min-width:0;font:inherit;-webkit-box-orient:vertical;flex:1;margin-block:16px;display:-webkit-box;overflow:hidden}.close-GX8r1b{cursor:pointer;color:inherit;background:none;border:none;justify-content:center;align-items:center;padding:14px 12px;display:inline-flex}.close-GX8r1b:hover{background-color:color-mix(in srgb,currentColor 12%,transparent)}.close-GX8r1b:focus-visible{outline:2px solid var(--wst-links-and-actions-color);outline-offset:2px}.close-GX8r1b>svg{width:20px;height:20px}@media(prefers-reduced-motion:reduce){.root-TfN4xI[data-starting-style],.root-TfN4xI[data-ending-style]{transition:opacity .12s;transform:none}}@media(width<=750px){.root-TfN4xI{padding-inline:20px}.title-ECAZRW{-webkit-line-clamp:3}}`,Im={viewport:`page-toasts-viewport`,toast:`page-toast`,toastTitle:`page-toast-title`,closeAction:`page-toast-close`},Lm=`[data-hook=page-toasts-viewport]{top:auto;bottom:0}`,{createRoot:Rm}=p,zm=Symbol.for(`@wix/app-builder-common/toasts/page-host`),Bm=()=>{let{toasts:e}=Pm.useToastManager();return t.createElement(Pm.Portal,null,t.createElement(Pm.Viewport,{"data-hook":Im.viewport},e.map(e=>t.createElement(Pm.Root,{key:e.id,toast:e,skin:e.type,style:e.data?.theme,"data-hook":Im.toast},t.createElement(Pm.Title,{"data-hook":Im.toastTitle}),t.createElement(Pm.Close,{"data-hook":Im.closeAction})))))},Vm=({onReady:e})=>{let{add:t}=Pm.useToastManager();return c(()=>{e(({title:e,type:n,theme:r})=>t({title:e,type:n,data:{theme:r}}))},[t,e]),null},Hm=()=>{let e=null,n=[],r=t=>{e=t,n.splice(0).forEach(t)},i=document.createElement(`div`),a=document.createElement(`style`);a.textContent=`${Fm}\n${Lm}`,document.head.appendChild(a),document.body.appendChild(i);let o=Rm(i);return o.render(t.createElement(Pm.Provider,null,t.createElement(Vm,{onReady:r}),t.createElement(Bm,null))),{post:t=>{if(e){e(t);return}n.push(t)},unmount:()=>{o.unmount(),a.remove(),i.remove()}}},Um=e=>{if(typeof document>`u`)return;let t=globalThis;t[zm]??=Hm(),t[zm].post(e)},Wm=e=>{let t=u(null),n=e??t,r=Ld(n),a=l(()=>e?null:i(`span`,{ref:t,hidden:!0}),[e]),[o,s]=d([]),f=u(!1),p=u({}),m=u(()=>p.current);return m.current=()=>(n.current?.isConnected&&(p.current=r()),p.current),c(()=>(f.current=!0,m.current(),()=>{f.current=!1}),[]),c(()=>{o.length&&(o.forEach(Um),s([]))},[o]),l(()=>{let e=(e,t)=>{let n={title:e,type:t,theme:m.current()};if(f.current){s(e=>[...e,n]);return}Um(n)};return{success:t=>e(t,`success`),error:t=>e(t,`error`),themeAnchor:a}},[a])},Gm=(e,t)=>Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{{${t}}}`,String(n)),e),Km=(e,t,n={})=>Gm(e(t.key,{defaultValue:t.fallback,...n}),n),qm=e=>{let{t}=Ji(),n={};for(let r of Object.keys(e)){let i=e[r];n[r]=i.prop===void 0?Km(t,i):i.prop}return n},Jm=r(null);Jm.displayName=`WalletContext`;function Ym(){let e=s(Jm);if(!e)throw Error(`useWallet must be used within WalletContextProvider`);return e}var Xm=[{path:`savedPaymentMethods.createdDate`},{path:`savedPaymentMethods.updatedDate`}];function Zm(e){return wt(Object.assign(e,{domainToMappings:{"api._api_base_domain_":[{srcPath:`/payments/saved-payment-methods`,destPath:``}],"apps._base_domain_":[{srcPath:`/payments/saved-payment-methods`,destPath:``}],_:[{srcPath:`/_api/payments/saved-payment-methods`,destPath:``}]}}))}var Qm=`@wix/auto_sdk_payments_saved-payment-methods`;function $m(e){function t({host:t}){return{entityFqdn:`wix.payments.saved_payment_methods.v1.saved_payment_method`,method:`DELETE`,methodFqn:`wix.payments.saved_payment_methods.v1.SavedPaymentMethodService.DeleteSavedPaymentMethod`,packageName:Qm,migrationOptions:{optInTransformResponse:!0},url:Zm({protoPath:`/v1/saved-payment-methods/{savedPaymentMethodId}`,data:e,host:t}),params:Ct(e)}}return t}function eh(e){function t({host:t}){return{entityFqdn:`wix.payments.saved_payment_methods.v1.saved_payment_method`,method:`GET`,methodFqn:`wix.payments.saved_payment_methods.v1.SavedPaymentMethodService.ListSavedPaymentMethods`,packageName:Qm,migrationOptions:{optInTransformResponse:!0},url:Zm({protoPath:`/v1/saved-payment-methods`,data:e,host:t}),params:Ct(e),transformResponse:e=>ot(e,[{transformFn:it,paths:Xm}])}}return t}function th(e){function t({host:t}){return{entityFqdn:`wix.payments.saved_payment_methods.v1.saved_payment_method`,method:`GET`,methodFqn:`wix.payments.saved_payment_methods.v1.SavedPaymentMethodService.MarkSavedPaymentMethodPrimary`,packageName:Qm,migrationOptions:{optInTransformResponse:!0},url:Zm({protoPath:`/v1/saved-payment-methods/{savedPaymentMethodId}/mark-primary`,data:e,host:t}),params:Ct(e),fallback:[{method:`POST`,url:Zm({protoPath:`/v1/saved-payment-methods/{savedPaymentMethodId}/mark-primary`,data:e,host:t}),data:e}]}}return t}async function nh(e){let{httpClient:t,sideEffects:n}=arguments[1],r=$m(nt({savedPaymentMethodId:e}));n?.onSiteCall?.();try{let e=await t.request(r);n?.onSuccess?.(e)}catch(e){let t=mt(e,{spreadPathsToArguments:{},explicitPathsToArguments:{savedPaymentMethodId:`$[0]`},singleArgumentUnchanged:!1},[`savedPaymentMethodId`]);throw n?.onError?.(e),t}}async function rh(e){let{httpClient:t,sideEffects:n}=arguments[1],r=eh(nt({siteMemberId:e?.siteMemberId,paymentMethodTypeId:e?.paymentMethodTypeId,merchantUseAllowed:e?.merchantUseAllowed,fields:e?.fields,paging:e?.paging}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),rt(e.data)}catch(e){let t=mt(e,{spreadPathsToArguments:{},explicitPathsToArguments:{siteMemberId:`$[0].siteMemberId`,paymentMethodTypeId:`$[0].paymentMethodTypeId`,merchantUseAllowed:`$[0].merchantUseAllowed`,fields:`$[0].fields`,paging:`$[0].paging`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}async function ih(e){let{httpClient:t,sideEffects:n}=arguments[1],r=th(nt({savedPaymentMethodId:e}));n?.onSiteCall?.();try{let e=await t.request(r);n?.onSuccess?.(e)}catch(e){let t=mt(e,{spreadPathsToArguments:{},explicitPathsToArguments:{savedPaymentMethodId:`$[0]`},singleArgumentUnchanged:!1},[`savedPaymentMethodId`]);throw n?.onError?.(e),t}}function ah(e){return t=>nh(t,{httpClient:e})}function oh(e){return t=>rh(t,{httpClient:e})}function sh(e){return t=>ih(t,{httpClient:e})}var ch=F(ah),lh=F(oh),uh=F(sh);function dh(e){if(!e)return;let t=``;return(e.filename||e.altText)&&(t=`/${encodeURIComponent(e.filename||e.altText)}`),e.id?`wix:image://v1/${e.id}${t}#originWidth=${e.width}&originHeight=${e.height}`:e.url}function fh(e){return wt(Object.assign(e,{domainToMappings:{"api._api_base_domain_":[{srcPath:`/payment-method-types`,destPath:``}],"bo._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``}],"wixbo.ai":[{srcPath:`/_api/payment-method-types`,destPath:``}],"wix-bo.com":[{srcPath:`/_api/payment-method-types`,destPath:``}],"manage._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``},{srcPath:`/_api/payments/payment-method-types`,destPath:``}],_:[{srcPath:`/_api/payments/site-payment-method-types`,destPath:``},{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"cashier._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``}],"cashier.wixapps.net":[{srcPath:`/_api/payments/payment-method-types`,destPath:``},{srcPath:`/_api/payment-method-types`,destPath:``}],"cashier-services._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``}],"events._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``}],"events.wixapps.net":[{srcPath:`/_api/payment-method-types`,destPath:``}],"invoices._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``}],"premium._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``}],"pricing-plans.wixapps.net":[{srcPath:`/_api/payment-method-types`,destPath:``}],"vod-server._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``}],"www.wixhotels.com":[{srcPath:`/_api/payment-method-types`,destPath:``}],"editor.wixapps.net":[{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"tpa.wixapps.net":[{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"apps._base_domain_":[{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"editor._base_domain_":[{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"blocks._base_domain_":[{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"create.editorx":[{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"www._base_domain_":[{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"www.wixapis.com":[{srcPath:`/payments/site-payment-method-types/v1/site-payment-method-types`,destPath:`/v1/site-payment-method-types`}],"*.dev.wix-code.com":[{srcPath:`/payments/site-payment-method-types/v1/site-payment-method-types`,destPath:`/v1/site-payment-method-types`}],"manage.base44.com":[{srcPath:`/_api/payment-method-types`,destPath:``},{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"payments.base44.com":[{srcPath:`/_api/payment-method-types`,destPath:``},{srcPath:`/_api/payments/payment-method-types`,destPath:``},{srcPath:`/_api/site-payment-method-types`,destPath:``}]}}))}var ph=`@wix/auto_sdk_payments_site-payment-method-types`;function mh(e){function t({host:t}){return{entityFqdn:`wix.payments.site_payment_method_types.v1.site_payment_method_type`,method:`GET`,methodFqn:`wix.payments.site_payment_method_types.v1.SitePaymentMethodTypeService.ListSitePaymentMethodTypes`,packageName:ph,migrationOptions:{optInTransformResponse:!0},url:fh({protoPath:`/v1/site-payment-method-types`,data:e,host:t}),params:Ct(e)}}return t}var hh=[{path:`sitePaymentMethodTypes.merchantFlow.icons.image`},{path:`sitePaymentMethodTypes.buyerFlow.icons.image`}];async function gh(e){let{httpClient:t,sideEffects:n}=arguments[1],r=mh(nt({ids:e?.ids,languageCode:e?.languageCode,countryCode:e?.countryCode,currencyCode:e?.currencyCode,requestedFields:e?.requestedFields}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),rt(ot(e.data,[{transformFn:dh,paths:hh}]))}catch(e){let t=mt(e,{spreadPathsToArguments:{},explicitPathsToArguments:{ids:`$[0].ids`,languageCode:`$[0].languageCode`,countryCode:`$[0].countryCode`,currencyCode:`$[0].currencyCode`,requestedFields:`$[0].requestedFields`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}function _h(e){return t=>gh(t,{httpClient:e})}var vh=F(_h);y((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WIX_HOTELS_RUNNER=e.WIX_VIDEO=e.WIX_GET_SUBSCRIBERS=e.INSTAGRAM_FEED_NEW=e.INSTAGRAM_FEED=e.DEVIANTART_FEED=e.WIX_AI_CHAT_ASSISTANT=e.WIX_CHAT=e.PAY_BUTTON=e.WIX_RESTAURANTS_TABLE_RESERVATIONS=e.WIX_RESTAURANTS_MENUS_NEW=e.WIX_RESTAURANTS_MENUS=e.WIX_RESTAURANTS_ORDERS_NEW=e.WIX_RESTAURANTS_ORDERS=e.WIX_RESERVATIONS=e.NOTIFICATIONS=e.META_SITE=e.MEMBERS=e.MEMBERS_AREA_V2=e.MEMBERS_AREA=e.WIX_NEW_STORES=e.WIX_STORES=e.WIX_ECOM=e.WIX_PROMOS=e.PRICING_PLANS=e.WIX_FORUM=e.WIX_SERVICES=e.WIX_BOOKINGS=e.WIX_EVENTS=e.WIX_BLOG=e.WIX_HOTELS=e.ADMIN_PAGES=e.DASHBOARD_SALES=e.DASHBOARD_SUGGESTIONS=e.DASHBOARD_SETUP=e.BUSINESS_DASHBOARD=e.WIX_CODE_PLATFORM_VISIBILITY=e.WIX_ACCESSIBILITY_WIZARD=e.WIX_CODE_SITE_MONITORING=e.DEVELOPER_TOOLS=e.WIX_CODE_SECRETS_MANAGER=e.WIX_CODE_RELEASE_MANAGER=e.CLOUD_DATA_SCHEMA_NOTIFIER=e.OLD_BLOG=e.SITE_MEMBERS=e.DATA_BINDING=e.WIX_CODE_DUPLEXER=e.VELO=e.WIX_CODE_SITE_EXTENSION=e.WIX_CODE=void 0,e.WIX_DONATIONS=e.PRODUCT_PAGE_ON_BLOCKS=e.WIX_CHECKOUT_REQUIREMENTS=e.FERA_REVIEWS=e.WIX_HEADLESS=e.WIX_PODCAST_PLAYER=e.MEMBER_AUTHENTICATION=e.CUSTOM_LOGIN=e.SETTINGS=e.MY_ADDRESSES=e.MY_WALLET=e.MY_REWARDS=e.WIX_REFERRAL_PROGRAM=e.WIX_LOYALTY_PROGRAM=e.CMS=e.WIX_CMS=e.MULTILINGUAL=e.MEMBERS_FOLLOWERS=e.MEMBERS_STAFF_WIDGET=e.MEMBERS_PROFILE_CARD=e.MEMBERS_ACCOUNT_INFO=e.MEMBERS_ABOUT=e.MY_SUBSCRIPTIONS=e.MAP_PLUGIN=e.WIX_REVIEWS=e.WISHLIST_BLOCKS=e.RESTAURANTS=e.WIX_FILE_SHARE=e.RICH_CONTENT=e.WIX_GROUPS=e.WIX_CHALLENGES=e.FORM_APP=e.WIX_FORMS=e.WIX_FAQ=e.WIX_SITE_SEARCH=e.WIX_MUSIC=e.BANDSINTOWN=e.WIX_PORTFOLIO=e.WIX_PRO_GALLERY=e.WIX_PHOTO_ALBUMS=void 0,e.getAppDependencies=n,e.WIX_CODE=`wix-code`,e.WIX_CODE_SITE_EXTENSION=`CloudSiteExtension`,e.VELO=`2f70e2b4-ff36-472e-bdb9-ce393b13669e`,e.WIX_CODE_DUPLEXER=`af6d536e-0fc6-428b-a7f9-1d8cd6aa3703`,e.DATA_BINDING=`dataBinding`,e.SITE_MEMBERS=`SiteMembers`,e.OLD_BLOG=`79f391eb-7dfc-4adf-be6e-64434c4838d9`,e.CLOUD_DATA_SCHEMA_NOTIFIER=`f1fbeff1-05c3-4121-bdb5-75e74b6e9e51`,e.WIX_CODE_RELEASE_MANAGER=`8c41f3a6-47f7-40be-ad77-02a72cb2ddb3`,e.WIX_CODE_SECRETS_MANAGER=`4b10fcce-732d-4be3-9d46-801d271acda9`,e.DEVELOPER_TOOLS=`4b10fcce-732d-4be3-9d46-801d271acda9`,e.WIX_CODE_SITE_MONITORING=`675bbcef-18d8-41f5-800e-131ec9e08762`,e.WIX_ACCESSIBILITY_WIZARD=`9699c03d-5c19-4a7c-a454-e8109a6e43fc`,e.WIX_CODE_PLATFORM_VISIBILITY=`8048f115-449b-4dab-b0e6-e09d5ffc8199`,e.BUSINESS_DASHBOARD=`a7597ab5-1ed4-458f-a5c1-5884d5e14281`,e.DASHBOARD_SETUP=`0750d046-d599-4cfc-9f6b-e9f4af169aa9`,e.DASHBOARD_SUGGESTIONS=`cead4297-02ee-4c0f-ae07-461f4ba71b3b`,e.DASHBOARD_SALES=`f95c72b1-84de-48ec-a61b-d96d61315ffe`,e.ADMIN_PAGES=`1514b01b-cb08-41b4-8582-0a88551ac769`,e.WIX_HOTELS=`135aad86-9125-6074-7346-29dc6a3c9bcf`,e.WIX_BLOG=`14bcded7-0066-7c35-14d7-466cb3f09103`,e.WIX_EVENTS=`140603ad-af8d-84a5-2c80-a0f60cb47351`,e.WIX_BOOKINGS=`13d21c63-b5ec-5912-8397-c3a5ddb27a97`,e.WIX_SERVICES=`cc552162-24a4-45e0-9695-230c4931ef40`,e.WIX_FORUM=`14724f35-6794-cd1a-0244-25fd138f9242`,e.PRICING_PLANS=`1522827f-c56c-a5c9-2ac9-00f9e6ae12d3`,e.WIX_PROMOS=`7fdf5576-9d52-4c0a-9840-6e226f2ec415`,e.WIX_ECOM=`1380b703-ce81-ff05-f115-39571d94dfcd`,e.WIX_STORES=`1380b703-ce81-ff05-f115-39571d94dfcd`,e.WIX_NEW_STORES=`215238eb-22a5-4c36-9e7b-e7c08025e04e`,e.MEMBERS_AREA=`14cc59bc-f0b7-15b8-e1c7-89ce41d0e0c9`,e.MEMBERS_AREA_V2=`b976560c-3122-4351-878f-453f337b7245`,e.MEMBERS=`14dbefd2-01b4-fb61-32a7-3abd44da4908`,e.META_SITE=`22bef345-3c5b-4c18-b782-74d4085112ff`,e.NOTIFICATIONS=`14f25924-5664-31b2-9568-f9c5ed98c9b1`,e.WIX_RESERVATIONS=`1475ab65-206b-d79a-856d-fa10bdb479ea`,e.WIX_RESTAURANTS_ORDERS=`13e8d036-5516-6104-b456-c8466db39542`,e.WIX_RESTAURANTS_ORDERS_NEW=`9a5d83fd-8570-482e-81ab-cfa88942ee60`,e.WIX_RESTAURANTS_MENUS=`13c1402c-27f2-d4ab-7463-ee7c89e07578`,e.WIX_RESTAURANTS_MENUS_NEW=`b278a256-2757-4f19-9313-c05c783bec92`,e.WIX_RESTAURANTS_TABLE_RESERVATIONS=`f9c07de2-5341-40c6-b096-8eb39de391fb`,e.PAY_BUTTON=`6aee8fe8-66c9-47aa-a0dd-0f2c18256c4f`,e.WIX_CHAT=`14517e1a-3ff0-af98-408e-2bd6953c36a2`,e.WIX_AI_CHAT_ASSISTANT=`31ceda3c-e2c8-4e83-816d-ba293597730c`,e.DEVIANTART_FEED=`7d297b79-baed-46d7-ac58-4bd68dcb70d0`,e.INSTAGRAM_FEED=`14635256-b183-1c71-a4d2-f55179b80e8a`,e.INSTAGRAM_FEED_NEW=`deb18ef1-e0c6-4668-a7bc-4a13785eb5b7`,e.WIX_GET_SUBSCRIBERS=`1375baa8-8eca-5659-ce9d-455b2009250d`,e.WIX_VIDEO=`14409595-f076-4753-8303-9a86f9f71469`,e.WIX_HOTELS_RUNNER=`826670ba-3a6b-4157-ac72-7c4fca9ce220`,e.WIX_PHOTO_ALBUMS=`13ff8629-c1fc-e289-e81f-bc8c8968e9d6`,e.WIX_PRO_GALLERY=`14271d6f-ba62-d045-549b-ab972ae1f70e`,e.WIX_PORTFOLIO=`d90652a2-f5a1-4c7c-84c4-d4cdcc41f130`,e.BANDSINTOWN=`1405ef82-0ee0-65fb-88a1-2f172aa3573c`,e.WIX_MUSIC=`13bb5d67-1add-e770-a71f-001277e17c57`,e.WIX_SITE_SEARCH=`1484cb44-49cd-5b39-9681-75188ab429de`,e.WIX_FAQ=`14c92d28-031e-7910-c9a8-a670011e062d`,e.WIX_FORMS=`14ce1214-b278-a7e4-1373-00cebd1bef7c`,e.FORM_APP=`225dd912-7dea-4738-8688-4b8c6955ffc2`,e.WIX_CHALLENGES=`2936472a-a1ed-4ae5-9f71-614313a9f4e7`,e.WIX_GROUPS=`148c2287-c669-d849-d153-463c7486a694`,e.RICH_CONTENT=`949cfcc9-2a3f-4a96-bd6c-11d9d82763a4`,e.WIX_FILE_SHARE=`1537b24e-29d1-6d8f-b8e1-d6860f2f70b9`,e.RESTAURANTS=`9142e27e-2e30-4948-ad8f-7e128939efc4`,e.WISHLIST_BLOCKS=`a97c0203-062a-4dd5-97cf-a90f9800a13a`,e.WIX_REVIEWS=`a95a5fce-e370-4402-9ce4-96956acc747d`,e.MAP_PLUGIN=`c5fedde3-63c7-4041-a5fb-c77bbe6308dc`,e.MY_SUBSCRIPTIONS=`2bef2abe-7abe-43da-889c-53c1500a328c`,e.MEMBERS_ABOUT=`14dbef06-cc42-5583-32a7-3abd44da4908`,e.MEMBERS_ACCOUNT_INFO=`14cffd81-5215-0a7f-22f8-074b0e2401fb`,e.MEMBERS_PROFILE_CARD=`14ce28f7-7eb0-3745-22f8-074b0e2401fb`,e.MEMBERS_STAFF_WIDGET=`cffc6740-8042-48cc-a35b-d3fd03a69f0c`,e.MEMBERS_FOLLOWERS=`14ebe801-d78a-daa9-c9e5-0286a891e46f`,e.MULTILINGUAL=`14d84998-ae09-1abf-c6fc-3f3cace5bf19`,e.WIX_CMS=`e593b0bd-b783-45b8-97c2-873d42aacaf4`,e.CMS=`1973457f-c021-4da5-941f-58444ff761d4`,e.WIX_LOYALTY_PROGRAM=`553c79f3-5625-4f38-b14b-ef7c0d1e87df`,e.WIX_REFERRAL_PROGRAM=`58be0514-fc10-4eb1-886e-2909d18f33b3`,e.MY_REWARDS=`16ed1ac6-01cb-4fb6-a59e-c215cce8fdf6`,e.MY_WALLET=`4aebd0cb-fbdb-4da7-b5d1-d05660a30172`,e.MY_ADDRESSES=`1505b775-e885-eb1b-b665-1e485d9bf90e`,e.SETTINGS=`14f25dc5-6af3-5420-9568-f9c5ed98c9b1`,e.CUSTOM_LOGIN=`bbe1406a-31f5-4f3f-9e0a-b39dfd25274f`,e.MEMBER_AUTHENTICATION=`1052fa8e-e3e2-46dc-ab66-8badb2d08fe9`,e.WIX_PODCAST_PLAYER=`153e1aeb-2ec2-58c4-9715-1b25977bd56f`,e.WIX_HEADLESS=`78640cbb-be47-45f8-b6de-8ed97287872c`,e.FERA_REVIEWS=`c9064755-5cc8-4faf-a5a6-41a0150a6640`,e.WIX_CHECKOUT_REQUIREMENTS=`eeb6edab-5c38-4903-b070-58ac767a3389`,e.PRODUCT_PAGE_ON_BLOCKS=`a0c68605-c2e7-4c8d-9ea1-767f9770e087`,e.WIX_DONATIONS=`333b456e-dd48-4d6b-b32b-9fd48d74e163`;var t={};function n(e){return t[e]||[]}}))();var $=e=>`var(--${e})`;$(`wst-paragraph-1-font`),$(`wst-paragraph-2-font`),$(`wst-paragraph-3-font`),$(`wst-heading-2-font`),$(`wst-heading-3-font`),$(`wst-heading-5-font`),$(`wst-heading-6-font`),$(`wst-links-and-actions-color`),$(`wst-graphics-1-color`),$(`wst-heading-3-color`),$(`wst-heading-5-color`),$(`wst-heading-6-color`),$(`wst-paragraph-1-color`),$(`wst-paragraph-2-color`),$(`wst-paragraph-3-color`),$(`wst-primary-background-color`),$(`wst-secondary-background-color`),$(`wst-box-primary-border-top-color`),$(`wst-box-primary-border-bottom-color`),$(`wst-box-primary-border-left-color`),$(`wst-box-primary-border-right-color`),$(`wst-box-primary-border-top-left-radius`),$(`wst-box-primary-border-top-right-radius`),$(`wst-box-primary-border-bottom-left-radius`),$(`wst-box-primary-border-bottom-right-radius`),$(`wst-box-secondary-background-color`),$(`wst-box-secondary-box-shadow`),$(`wst-box-secondary-border-top-color`),$(`wst-box-secondary-border-right-color`),$(`wst-box-secondary-border-bottom-color`),$(`wst-box-secondary-border-left-color`),$(`wst-box-secondary-border-top-width`),$(`wst-box-secondary-border-right-width`),$(`wst-box-secondary-border-bottom-width`),$(`wst-box-secondary-border-left-width`),$(`wst-box-secondary-border-top-style`),$(`wst-box-secondary-border-right-style`),$(`wst-box-secondary-border-bottom-style`),$(`wst-box-secondary-border-left-style`),$(`wst-box-secondary-border-top-left-radius`),$(`wst-box-secondary-border-top-right-radius`),$(`wst-box-secondary-border-bottom-left-radius`),$(`wst-box-secondary-border-bottom-right-radius`),$(`wst-button-primary-color`),$(`wst-button-primary-background-color`),$(`wst-button-primary-font`),$(`wst-button-primary-border-top-color`),$(`wst-button-primary-border-top-style`),$(`wst-button-primary-border-right-color`),$(`wst-button-primary-border-right-style`),$(`wst-button-primary-border-bottom-color`),$(`wst-button-primary-border-bottom-style`),$(`wst-button-primary-border-left-color`),$(`wst-button-primary-border-left-style`),$(`wst-button-primary-border-top-left-radius`),$(`wst-button-primary-border-top-right-radius`),$(`wst-button-primary-border-bottom-left-radius`),$(`wst-button-primary-border-bottom-right-radius`),$(`wst-button-primary-padding-top`),$(`wst-button-primary-padding-bottom`),$(`wst-button-primary-padding-left`),$(`wst-button-primary-padding-right`),$(`wst-button-primary-box-shadow`),$(`wst-button-secondary-color`),$(`wst-button-secondary-font`),$(`wst-button-secondary-background-color`),$(`wst-button-secondary-border-top-color`),$(`wst-button-secondary-border-top-width`),$(`wst-button-secondary-border-top-style`),$(`wst-button-secondary-border-top-left-radius`),$(`wst-button-tertiary-color`),$(`wst-button-tertiary-background-color`),$(`wst-button-tertiary-font`),$(`wst-system-alert-color`),$(`wst-system-error-color`),$(`wst-system-disabled-color`),$(`wst-system-line-1-color`),$(`wst-system-line-1-width`),$(`wst-base-1-color`),$(`wst-base-2-color`),$(`wst-shade-1-color`),$(`wst-shade-2-color`),$(`wst-shade-3-color`),$(`wst-accent-1-color`),$(`wst-accent-3-color`);var yh=/^System error occurred/,bh=({name:e,message:t,stack:n})=>{let r=n?.split(`
9
- `,1)[0];return yh.test(t)&&r?.startsWith(`${e}: `)?r.slice(e.length+2):t},xh=e=>{let{response:t,status:n}=e??{};return t==null&&n==null},Sh=e=>{let t=e.requestId??e.details?.requestId;if(!(e.status!=null||t!=null||yh.test(e.message)))return e;let n=xh(e)?`no response`:[e.status!=null&&`status ${e.status}`,t!=null&&`request-id ${t}`].filter(Boolean).join(`, `);return Object.assign(Object.create(Object.getPrototypeOf(e)),{name:e.name,message:`${bh(e)} (${n})`,stack:e.stack,cause:e})},Ch=e=>e instanceof Error?Sh(e):e instanceof Response?Error(`Request failed with status ${e.status}`,{cause:e}):Error(String(e),{cause:e}),wh=(e,t=`request`)=>{console.error(`[${t}]`,e);try{Pd.getMonitoringClient().captureException(Ch(e),{tags:{scope:t}})}catch{}},Th=1e3,Eh=!1,Dh=-1/0;typeof window<`u`&&(window.addEventListener(`beforeunload`,()=>{Dh=Date.now()}),window.addEventListener(`pagehide`,()=>{Eh=!0}),window.addEventListener(`pageshow`,()=>{Eh=!1,Dh=-1/0}));var Oh=()=>Eh||Date.now()-Dh<=Th,kh=e=>(e instanceof TypeError||e?.name===`AbortError`)&&xh(e),Ah=e=>Oh()&&kh(e),jh=e=>e instanceof TypeError&&xh(e)&&!Oh(),Mh=e=>()=>e().catch(t=>{if(jh(t))return e();throw t}),Nh=e=>typeof e.message==`string`,Ph=e=>{try{let t=Pd.getMonitoringClient();return Nh(t)?void 0:t.startSpanManual({name:e,tags:{scope:e}})}catch{return}},Fh=e=>{try{e()}catch{}},Ih=async(e,t,{errorCodesMap:n={},statusCodesMap:r,serverError:i,isExpected:a,isRead:o=!1}={})=>{let s=Ph(e);try{let e=await nd(o?Mh(t):t,n,{statusCodesOverrides:r,serverErrorOverride:i});if(e instanceof Response&&!e.ok)throw e;return Fh(()=>s?.end()),e}catch(t){throw a?.(t)||Ah(t)?Fh(()=>s?.end()):s?(console.error(`[${e}]`,t),Fh(()=>s.fail(Ch(t)))):wh(t,e),t}},Lh={async listSavedPaymentMethods(e,t=null){return Ih(`myWallet.listSavedPaymentMethods`,()=>lh({siteMemberId:`me`,paging:t?{limit:e,cursor:t}:{limit:e}}),{isRead:!0})},async listSitePaymentMethodTypes(e){return Ih(`myWallet.listSitePaymentMethodTypes`,()=>vh({ids:e}),{isRead:!0})},async markPrimary(e){return Ih(`myWallet.markSavedPaymentMethodPrimary`,()=>uh(e))},async remove(e){return Ih(`myWallet.deleteSavedPaymentMethod`,()=>ch(e))}},Rh=`logo_large_rectangle_light`,zh={icons:{},names:{}};async function Bh(e){if(!e.length)return zh;try{let t=await Lh.listSitePaymentMethodTypes(e);return{icons:Uh(t),names:Vh(t)}}catch{return zh}}function Vh(e){let t={};for(let n of e.sitePaymentMethodTypes??[]){let e=n._id??n.id;e&&n.displayName&&(t[e]=n.displayName)}return t}function Hh(e){if(!e)return null;let t=typeof e==`string`?e:e.url??``;return t.startsWith(`http`)?t:null}function Uh(e){let t={};for(let n of e.sitePaymentMethodTypes??[]){let e=n.buyerFlow?.icons??[],r=e.find(e=>e.tag===Rh&&e.format===`SVG`)??e.find(e=>e.tag===Rh)??e[0],i=n._id??n.id,a=Hh(r?.image);i&&a&&(t[i]=a)}return t}function Wh(e){return e.paymentMethod?.paymentMethodBrandId??e.paymentMethod?.paymentMethodTypeId??null}function Gh(e){return[...new Set(e.map(Wh).filter(e=>!!e))]}function Kh(e,t){return{icons:{...e.icons,...t.icons},names:{...e.names,...t.names}}}async function qh(e,t,n=zh){let r=await Lh.listSavedPaymentMethods(e,t),i=r.savedPaymentMethods??[],a=await Bh(Gh(i).filter(e=>!n.names[e]&&!n.icons[e]));return{response:{savedPaymentMethods:i},brands:{icons:{...n.icons,...a.icons},names:{...n.names,...a.names}},cursor:r.pagingMetadata?.cursors?.next??null,pages:1}}function Jh(e,t){return{response:{savedPaymentMethods:[...e.response.savedPaymentMethods??[],...t.response.savedPaymentMethods??[]]},brands:{icons:{...e.brands.icons,...t.brands.icons},names:{...e.brands.names,...t.brands.names}},cursor:t.cursor,pages:e.pages+t.pages}}async function Yh(e,t=1,n=zh){let r=await qh(e,null,n);for(;r.cursor&&r.pages<(typeof t==`function`?t():t);)r=Jh(r,await qh(e,r.cursor,r.brands));return r}function Xh(e,t){return{...e,response:{savedPaymentMethods:t(e.response.savedPaymentMethods??[])}}}function Zh(e,t){return Xh(e,e=>[...e].sort((e,t)=>Number(!!t.primary)-Number(!!e.primary)).map(e=>({...e,primary:e._id===t})))}function Qh(e,t){return Xh(e,e=>e.filter(e=>e._id!==t))}var $h=e=>e.cursor!==null,eg=e=>({apply:t=>Zh(t,e),needsReread:$h}),tg=e=>({apply:t=>Qh(t,e),needsReread:t=>{let n=t.response.savedPaymentMethods??[],r=n.some(t=>t._id===e&&t.primary);return $h(t)||r&&n.length>1}}),ng=(e,t,n)=>{let r=t.lastIndexOf(`?`),i=e[r===-1||r<t.lastIndexOf(`/`)?t:t.slice(0,r)];return i?typeof i==`function`?i():Promise.resolve(i):new Promise((e,r)=>{(typeof queueMicrotask==`function`?queueMicrotask:setTimeout)(r.bind(null,Error(`Unknown variable dynamic import: `+t+(t.split(`/`).length===n?``:`. Note that variables only represent file names one level deep.`))))})},rg=b({default:()=>ig}),ig,ag=v((()=>{ig={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),og=b({default:()=>sg}),sg,cg=v((()=>{sg={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),lg=b({default:()=>ug}),ug,dg=v((()=>{ug={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),fg=b({default:()=>pg}),pg,mg=v((()=>{pg={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),hg=b({default:()=>gg}),gg,_g=v((()=>{gg={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),vg=b({default:()=>yg}),yg,bg=v((()=>{yg={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),xg=b({default:()=>Sg}),Sg,Cg=v((()=>{Sg={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),wg=b({default:()=>Tg}),Tg,Eg=v((()=>{Tg={"my-wallet.status.expires":`Expires {date}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {name}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (member•••••@e••••••.com)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`Name Surname`,"my-wallet.card.manage-title":`Manage {method}`,"my-wallet.status.expiration-date":`Expiration date: {date}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),Dg=b({default:()=>Og}),Og,kg=v((()=>{Og={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),Ag=b({default:()=>jg}),jg,Mg=v((()=>{jg={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),Ng=b({default:()=>Pg}),Pg,Fg=v((()=>{Pg={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),Ig=b({default:()=>Lg}),Lg,Rg=v((()=>{Lg={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),zg=b({default:()=>Bg}),Bg,Vg=v((()=>{Bg={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),Hg=b({default:()=>Ug}),Ug,Wg=v((()=>{Ug={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),Gg=b({default:()=>Kg}),Kg,qg=v((()=>{Kg={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),Jg=b({default:()=>Yg}),Yg,Xg=v((()=>{Yg={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),Zg=b({default:()=>Qg}),Qg,$g=v((()=>{Qg={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),e_=b({default:()=>t_}),t_,n_=v((()=>{t_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),r_=b({default:()=>i_}),i_,a_=v((()=>{i_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),o_=b({default:()=>s_}),s_,c_=v((()=>{s_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),l_=b({default:()=>u_}),u_,d_=v((()=>{u_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),f_=b({default:()=>p_}),p_,m_=v((()=>{p_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),h_=b({default:()=>g_}),g_,__=v((()=>{g_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),v_=b({default:()=>y_}),y_,b_=v((()=>{y_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),x_=b({default:()=>S_}),S_,C_=v((()=>{S_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),w_=b({default:()=>T_}),T_,E_=v((()=>{T_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),D_=b({default:()=>O_}),O_,k_=v((()=>{O_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),A_=b({default:()=>j_}),j_,M_=v((()=>{j_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),N_=b({default:()=>P_}),P_,F_=v((()=>{P_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),I_=b({default:()=>L_}),L_,R_=v((()=>{L_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),z_=b({default:()=>B_}),B_,V_=v((()=>{B_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),H_=b({default:()=>U_}),U_,W_=v((()=>{U_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),G_=b({default:()=>K_}),K_,q_=v((()=>{K_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),J_=b({default:()=>Y_}),Y_,X_=v((()=>{Y_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),Z_=b({default:()=>Q_}),Q_,$_=v((()=>{Q_={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),ev=b({default:()=>tv}),tv,nv=v((()=>{tv={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),rv=b({default:()=>iv}),iv,av=v((()=>{iv={"my-wallet.status.expires":`Expires {{date}}`,"my-wallet.remove-confirmation.confirm":`Remove`,"my-wallet.dummy.expiry-date":`MM/YYYY`,"my-wallet.remove-confirmation.title":`Remove this payment method?`,"my-wallet.status.account-holder":`Account holder: {{name}}`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.brand.generic":`Card`,"my-wallet.card.remove-payment-method":`Remove Payment Method`,"my-wallet.card.account-title":`{brand} ({email})`,"my-wallet.card.default-badge":`Default`,"my-wallet.card.remove":`Remove`,"my-wallet.remove-confirmation.text":`{method} will be removed from your wallet and won’t be available at checkout.`,"my-wallet.dummy.paypal-title":`PayPal (john•••••@g••••••)`,"my-wallet.card.account-holder-label":`Account holder:`,"my-wallet.toast.method-removed":`Your payment method was removed.`,"my-wallet.card.title":`{brand} (•••• {lastFourDigits})`,"my-wallet.card.cardholder-label":`Cardholder:`,"my-wallet.remove-confirmation.cancel":`Cancel`,"my-wallet.card.close":`Close`,"my-wallet.status.card-expired":`Card expired`,"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.card.manage-title":`Manage {{method}}`,"my-wallet.status.expiration-date":`Expiration Date: {{date}}`,"my-wallet.card.action-failed":`Couldn't update this payment method. Try again.`,"my-wallet.card.set-as-default":`Set as default`,"my-wallet.card.manage":`Manage`}})),ov=e=>ng(Object.assign({"../assets/locale/messages_ar.json":()=>L(()=>Promise.resolve().then(()=>(ag(),rg)),void 0,import.meta.url),"../assets/locale/messages_bg.json":()=>L(()=>Promise.resolve().then(()=>(cg(),og)),void 0,import.meta.url),"../assets/locale/messages_ca.json":()=>L(()=>Promise.resolve().then(()=>(dg(),lg)),void 0,import.meta.url),"../assets/locale/messages_cs.json":()=>L(()=>Promise.resolve().then(()=>(mg(),fg)),void 0,import.meta.url),"../assets/locale/messages_da.json":()=>L(()=>Promise.resolve().then(()=>(_g(),hg)),void 0,import.meta.url),"../assets/locale/messages_de.json":()=>L(()=>Promise.resolve().then(()=>(bg(),vg)),void 0,import.meta.url),"../assets/locale/messages_el.json":()=>L(()=>Promise.resolve().then(()=>(Cg(),xg)),void 0,import.meta.url),"../assets/locale/messages_en.json":()=>L(()=>Promise.resolve().then(()=>(Eg(),wg)),void 0,import.meta.url),"../assets/locale/messages_es.json":()=>L(()=>Promise.resolve().then(()=>(kg(),Dg)),void 0,import.meta.url),"../assets/locale/messages_fi.json":()=>L(()=>Promise.resolve().then(()=>(Mg(),Ag)),void 0,import.meta.url),"../assets/locale/messages_fr.json":()=>L(()=>Promise.resolve().then(()=>(Fg(),Ng)),void 0,import.meta.url),"../assets/locale/messages_he.json":()=>L(()=>Promise.resolve().then(()=>(Rg(),Ig)),void 0,import.meta.url),"../assets/locale/messages_hi.json":()=>L(()=>Promise.resolve().then(()=>(Vg(),zg)),void 0,import.meta.url),"../assets/locale/messages_hr.json":()=>L(()=>Promise.resolve().then(()=>(Wg(),Hg)),void 0,import.meta.url),"../assets/locale/messages_hu.json":()=>L(()=>Promise.resolve().then(()=>(qg(),Gg)),void 0,import.meta.url),"../assets/locale/messages_id.json":()=>L(()=>Promise.resolve().then(()=>(Xg(),Jg)),void 0,import.meta.url),"../assets/locale/messages_it.json":()=>L(()=>Promise.resolve().then(()=>($g(),Zg)),void 0,import.meta.url),"../assets/locale/messages_ja.json":()=>L(()=>Promise.resolve().then(()=>(n_(),e_)),void 0,import.meta.url),"../assets/locale/messages_ko.json":()=>L(()=>Promise.resolve().then(()=>(a_(),r_)),void 0,import.meta.url),"../assets/locale/messages_lt.json":()=>L(()=>Promise.resolve().then(()=>(c_(),o_)),void 0,import.meta.url),"../assets/locale/messages_lv.json":()=>L(()=>Promise.resolve().then(()=>(d_(),l_)),void 0,import.meta.url),"../assets/locale/messages_ms.json":()=>L(()=>Promise.resolve().then(()=>(m_(),f_)),void 0,import.meta.url),"../assets/locale/messages_nl.json":()=>L(()=>Promise.resolve().then(()=>(__(),h_)),void 0,import.meta.url),"../assets/locale/messages_no.json":()=>L(()=>Promise.resolve().then(()=>(b_(),v_)),void 0,import.meta.url),"../assets/locale/messages_pl.json":()=>L(()=>Promise.resolve().then(()=>(C_(),x_)),void 0,import.meta.url),"../assets/locale/messages_pt.json":()=>L(()=>Promise.resolve().then(()=>(E_(),w_)),void 0,import.meta.url),"../assets/locale/messages_ro.json":()=>L(()=>Promise.resolve().then(()=>(k_(),D_)),void 0,import.meta.url),"../assets/locale/messages_ru.json":()=>L(()=>Promise.resolve().then(()=>(M_(),A_)),void 0,import.meta.url),"../assets/locale/messages_sk.json":()=>L(()=>Promise.resolve().then(()=>(F_(),N_)),void 0,import.meta.url),"../assets/locale/messages_sl.json":()=>L(()=>Promise.resolve().then(()=>(R_(),I_)),void 0,import.meta.url),"../assets/locale/messages_sv.json":()=>L(()=>Promise.resolve().then(()=>(V_(),z_)),void 0,import.meta.url),"../assets/locale/messages_th.json":()=>L(()=>Promise.resolve().then(()=>(W_(),H_)),void 0,import.meta.url),"../assets/locale/messages_tl.json":()=>L(()=>Promise.resolve().then(()=>(q_(),G_)),void 0,import.meta.url),"../assets/locale/messages_tr.json":()=>L(()=>Promise.resolve().then(()=>(X_(),J_)),void 0,import.meta.url),"../assets/locale/messages_uk.json":()=>L(()=>Promise.resolve().then(()=>($_(),Z_)),void 0,import.meta.url),"../assets/locale/messages_vi.json":()=>L(()=>Promise.resolve().then(()=>(nv(),ev)),void 0,import.meta.url),"../assets/locale/messages_zh.json":()=>L(()=>Promise.resolve().then(()=>(av(),rv)),void 0,import.meta.url)}),`../assets/locale/messages_${e}.json`,4).then(e=>e.default),sv=()=>{try{return jd.getLanguage()}catch{return`en`}};function cv(){let[e]=t.useState(()=>Ei({locale:sv(),asyncMessagesLoader:ov}));return e}var lv={card:{defaultBadge:{key:`my-wallet.card.default-badge`,fallback:`Default`},manage:{key:`my-wallet.card.manage`,fallback:`Manage`},setAsDefault:{key:`my-wallet.card.set-as-default`,fallback:`Set as default`},remove:{key:`my-wallet.card.remove`,fallback:`Remove`},removeLong:{key:`my-wallet.card.remove-payment-method`,fallback:`Remove Payment Method`},drawerTitle:{key:`my-wallet.card.manage-title`,fallback:`Manage {{method}}`},close:{key:`my-wallet.card.close`,fallback:`Close`},title:{key:`my-wallet.card.title`,fallback:`{{brand}} (•••• {{lastFourDigits}})`},accountTitle:{key:`my-wallet.card.account-title`,fallback:`{{brand}} ({{email}})`},cardholderLabel:{key:`my-wallet.card.cardholder-label`,fallback:`Cardholder:`},accountHolderLabel:{key:`my-wallet.card.account-holder-label`,fallback:`Account holder:`}},removeConfirmation:{title:{key:`my-wallet.remove-confirmation.title`,fallback:`Remove this payment method?`},text:{key:`my-wallet.remove-confirmation.text`,fallback:`{{method}} will be removed from your wallet and won’t be available at checkout.`},confirm:{key:`my-wallet.remove-confirmation.confirm`,fallback:`Remove`},cancel:{key:`my-wallet.remove-confirmation.cancel`,fallback:`Cancel`}},toast:{defaultUpdated:{key:`my-wallet.toast.default-updated`,fallback:`Your default payment method was updated.`},methodRemoved:{key:`my-wallet.toast.method-removed`,fallback:`Your payment method was removed.`}},status:{cardExpired:{key:`my-wallet.status.card-expired`,fallback:`Card expired`},expirationDate:{key:`my-wallet.status.expiration-date`,fallback:`Expiration date: {{date}}`},expires:{key:`my-wallet.status.expires`,fallback:`Expires {{date}}`}},brand:{generic:{key:`my-wallet.brand.generic`,fallback:`Card`}},dummy:{cardholderName:{key:`my-wallet.dummy.cardholder-name`,fallback:`Name Surname`}}},uv=((e,t=e)=>({max:e,defaultValue:t,resolve:n=>typeof n==`number`&&Number.isFinite(n)?Math.min(Math.max(Math.floor(n),1),e):t}))(10);function dv(e){return e}var fv=dv(`@wix/site-service-business-logger`);function pv(){let{reportBi:e}=g(fv);return o(({src:t,evid:n,endpoint:r,params:i})=>{e({src:t,evid:n,...i},{endpoint:r})},[e])}function mv(e){return{evid:220,src:64,endpoint:``,params:e}}function hv(e){return{evid:221,src:64,endpoint:``,params:e}}function gv(e){return{evid:473,src:64,endpoint:``,params:e}}var _v=`removed`,vv=`remove_error`,yv=`mark_primary_error`,bv=()=>mv({}),xv=e=>hv(e),Sv=e=>gv(e),Cv=100;function wv(e,t){let n=e&&t.names[e]||null,r=e&&t.icons[e]||null,i=r?{url:r,...n&&{alt:n}}:null;return n||i?{displayName:n,icon:i}:null}function Tv(e,t){let n=t?e.paymentMethod?.cardInfo:null;return{lastFourDigits:n?.lastFourDigits||null,expirationMonth:n?.expirationMonth||null,expirationYear:n?.expirationYear||null,cardholderName:n?.cardholderName||null}}function Ev(e){let t=e.paymentMethod?.typeId===`payPal`?`payPal`:`creditCard`,n=e.paymentMethod?.accountInfo;return{typeId:t,accountInfo:t===`payPal`?{email:n?.email||null,accountHolder:n?.accountHolder||null}:null}}function Dv(e){return(e.savedPaymentMethods??[]).filter(e=>!!(e._id&&e.paymentMethod)).sort((e,t)=>Number(!!t.primary)-Number(!!e.primary))}function Ov(e,t,n,r){return Dv(e).map(e=>{let i=e._id??``,a=Ev(e);return{id:i,primary:!!e.primary,...Tv(e,a.typeId===`creditCard`),paymentMethod:a,paymentMethodType:wv(Wh(e),t),onSetDefault:()=>n(i),onRemove:()=>r(i)}})}var kv=({initialPromise:e,pageSize:t,children:n})=>{let r=Sn(e),i=Wm(),{defaultUpdated:s,methodRemoved:f}=qm({defaultUpdated:lv.toast.defaultUpdated,methodRemoved:lv.toast.methodRemoved}),[p,m]=d(r),[g,_]=d(t),[v,y]=d([]),b=u(0),x=u(0),S=pv(),[C,ee]=d(!1),w=u(p),T=u(g),E=u(!1);c(()=>{w.current=p,T.current=g},[g,p]),c(()=>{v.length!==0&&(v.forEach(e=>e()),y([]))},[v]);let te=o(async(e,t,n,r)=>{try{await e}catch(e){let{message:t}=rd(e);return i.error(t),S(Sv({toastText:t,toastType:r})),!1}let o=++b.current,s=w.current,c=e=>new Promise(t=>{a(()=>{m(e),y(e=>[...e,t])})});if(t.needsReread(s)||x.current>0){x.current+=1;let e=c(t.apply),n=await Yh(Cv,()=>w.current.pages,s.brands).catch(()=>null).finally(()=>{--x.current});await e,n&&o===b.current&&await c(e=>e.pages>Math.max(s.pages,n.pages)?e:{...n,brands:Kh(e.brands,n.brands)})}else await c(t.apply);return i.success(n),!0},[S,i]),ne=o(async()=>{let e=w.current,n=Dv(e.response).length>T.current;if(!(!n&&!e.cursor||E.current)){E.current=!0,ee(!0);try{let r=n?null:await qh(Cv,e.cursor);await new Promise(n=>{a(()=>{r&&m(t=>t===e?Jh(t,r):t),_(e=>e+t),ee(!1),y(e=>[...e,n])})})}catch{}finally{E.current=!1,ee(!1)}}},[t]),re=o(e=>te(Lh.markPrimary(e),eg(e),s,yv),[s,te]),ie=o(async e=>{let t=await te(Lh.remove(e),tg(e),f,vv);return t&&S(Sv({toastText:f,toastType:_v})),t},[f,S,te]),D=l(()=>Ov(p.response,p.brands,re,ie),[ie,re,p]),O=l(()=>D.slice(0,g),[D,g]),ae=l(()=>({savedPaymentMethods:O,isLoading:C,hasMore:D.length>g||p.cursor!==null,onLoadMore:ne}),[D.length,C,ne,O,g,p.cursor]);return h(Jm.Provider,{value:ae,children:[i.themeAnchor,n]})},Av=({children:e})=>{let t=l(()=>({savedPaymentMethods:[],isLoading:!0,hasMore:!1,onLoadMore:()=>Promise.resolve()}),[]);return m(Jm.Provider,{value:t,children:e})},jv=({pageSize:e,children:t})=>{let[r,i]=d(null),o=pv();return c(()=>{let t=Date.now();o(bv());let n=Yh(Cv);n.then(({response:n})=>{let r=Dv(n).slice(0,e);o(xv({duration:Date.now()-t,hasSavedPaymentMethods:r.length,paymentMethodsList:r.map(e=>e.paymentMethod?.typeId??``).join(`,`)}))},()=>o(xv({duration:Date.now()-t}))),a(()=>{i(n)})},[]),m(n,{fallback:m(Av,{children:t}),children:r?m(kv,{initialPromise:r,pageSize:e,children:t}):m(Av,{children:t})})},Mv=({pageSize:e,children:t})=>{let n=cv();return m(Yi,{i18n:n,children:m(jv,{pageSize:uv.resolve(e),children:t})})},Nv=vn(`0180e928-3204-4f30-ae9a-90edf110722c`);export{Mv as default,Nv as injectAccessTokenGetter,Ym as useWallet};
10
- //# sourceMappingURL=context-provider-0180e928-3204-4f30-ae9a-90edf110722c-BQ5pWWlr.js.map
7
+ `,vu.MISSING_INTL_API,o);var y=n.getPluralRules(t,{type:u.pluralType}).select(f-(u.offset||0));v=u.options[y]||u.options.other}if(!v)throw new bu(u.value,f,Object.keys(u.options),o);s.push.apply(s,Tu(v.value,t,n,r,i,f-(u.offset||0)));continue}}return Cu(s)}function Eu(e,t){return t?J(J(J({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=J(J({},e[r]),t[r]||{}),n},{})):e}function Du(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Eu(e[r],t[r]),n},J({},e)):e}function Ou(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function ku(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:rl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,nl([void 0],t,!1)))},{cache:Ou(e.number),strategy:ml.variadic}),getDateTimeFormat:rl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,nl([void 0],t,!1)))},{cache:Ou(e.dateTime),strategy:ml.variadic}),getPluralRules:rl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,nl([void 0],t,!1)))},{cache:Ou(e.pluralRules),strategy:ml.variadic})}}var Au=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(t.length===1)return t[0].value;var n=t.reduce(function(e,t){return!e.length||t.type!==Q.literal||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e},[]);return n.length<=1?n[0]||``:n},this.formatToParts=function(e){return Tu(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var s=tl(o,[`formatters`]);this.ast=e.__parse(t,J(J({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=Du(e.formats,r),this.formatters=i&&i.formatters||ku(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(Intl.Locale!==void 0){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}},e.__parse=_u,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}},e}();function ju(e,t){return Iu(e)||Fu(e,t)||Nu(e,t)||Mu()}function Mu(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nu(e,t){if(e){if(typeof e==`string`)return Pu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pu(e,t)}}function Pu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fu(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function Iu(e){if(Array.isArray(e))return e}function Lu(e){"@babel/helpers - typeof";return Lu=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Lu(e)}function Ru(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ru(Object(n),!0).forEach(function(t){Bu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ru(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vu(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Hu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uu(e,t,n){return t&&Hu(e.prototype,t),n&&Hu(e,n),e}function Wu(){return{memoize:!0,memoizeFallback:!1,bindI18n:``,bindI18nStore:``,parseErrorHandler:function(e,t,n,r){return n},parseLngForICU:function(e){return e},escapeVariables:!1}}var Gu=function(){function e(t){Vu(this,e),this.type=`i18nFormat`,this.mem={},this.init(null,t)}return Uu(e,[{key:`init`,value:function(e,t){var n=this,r=e&&e.options&&e.options.i18nFormat||{};if(this.options=Qc(r,t,this.options||{},Wu()),this.formats=this.options.formats,e){var i=this.options,a=i.bindI18n,o=i.bindI18nStore,s=i.memoize;e.IntlMessageFormat=Au,e.ICU=this,s&&(a&&e.on(a,function(){return n.clearCache()}),o&&e.store.on(o,function(){return n.clearCache()}))}}},{key:`addUserDefinedFormats`,value:function(e){this.formats=this.formats?zu(zu({},this.formats),e):e}},{key:`parse`,value:function(e,t,n,r,i,a){var o=a&&a.resolved&&a.resolved.res,s=this.options.memoize&&`${n}.${r}.${i.replace(/\./g,`###`)}`,c;this.options.memoize&&(c=Jc(this.mem,s));try{return c||(c=new Au(e,this.options.parseLngForICU(n),this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!a||o)&&qc(this.mem,s,c)),c.format(this.escapeVariableValues(t))}catch(n){return this.options.parseErrorHandler(n,i,e,t)}}},{key:`addLookupKeys`,value:function(e,t,n,r,i){return e}},{key:`clearCache`,value:function(){this.mem={}}},{key:`escapeVariableValues`,value:function(e){if(!this.options.escapeVariables||!e||Lu(e)!==`object`)return e;for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=ju(r[n],2),a=i[0],o=i[1];t[a]=typeof o==`string`?o.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`):o}return t}}]),e}();Gu.type=`i18nFormat`;function Ku(e,t){let n=q.createInstance({lng:e.essentials?.locale||`en`,fallbackLng:`en`,keySeparator:!1}).use(Gu);return t&&n.use(qu(t)),n}function qu(e){return{type:`backend`,init:()=>{},read:async(t,n,r)=>{try{return r(null,await e(t))}catch(e){return r(e,null)}}}}function Ju(e){return new Ks({environment:{artifactId:`sdk-essentials`},biDefaultsOverrides:{hostingEnvironment:e.name},biLoggerOrFactory:{async report(){}},showError:e.showError,createErrorMonitor:()=>({captureException(){}}),createI18n:({asyncMessagesLoader:t})=>Ku(e,t)}).v2}var Yu=e=>t=>{if(t.getErrorHandler)return e(t.getErrorHandler());let n=Ju(t);return t.getErrorHandler=()=>n,e(Ju(t))},Xu=Gi({withErrorHandler:Yu(e=>e.withErrorHandler),getResolvedError:Yu(e=>e.getResolvedError),showError:Yu(e=>e.showError),reportRetryAttempt:Yu(e=>e.reportRetryAttempt)}),Zu=Xu.withErrorHandler,Qu=Xu.getResolvedError;Xu.showError,Xu.reportRetryAttempt;var $u=class{constructor(e){this.message=e,this.captureException=()=>{console.error(this.message)},this.captureMessage=()=>{console.error(this.message)},this.startSpan=(e,t)=>(console.error(this.message),t(void 0)),this.startSpanManual=()=>(console.error(this.message),{end:()=>{},fail:()=>{}}),this.endSpanManual=()=>{console.error(this.message)},this.addBreadcrumb=()=>{console.error(this.message)}}},ed=e=>new $u(e),td=Gi({getMonitoringClient:e=>()=>e.getMonitoringClient?e.getMonitoringClient():ed(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`)}),nd=[...`--wst-button-primary-background-color.--wst-button-primary-background-image.--wst-button-primary-padding-top.--wst-button-primary-border-top-color.--wst-button-primary-border-top-width.--wst-button-primary-border-top-style.--wst-button-primary-padding-right.--wst-button-primary-border-right-color.--wst-button-primary-border-right-width.--wst-button-primary-border-right-style.--wst-button-primary-padding-bottom.--wst-button-primary-border-bottom-color.--wst-button-primary-border-bottom-width.--wst-button-primary-border-bottom-style.--wst-button-primary-padding-left.--wst-button-primary-border-left-color.--wst-button-primary-border-left-width.--wst-button-primary-border-left-style.--wst-button-primary-border-top-left-radius.--wst-button-primary-border-top-right-radius.--wst-button-primary-border-bottom-right-radius.--wst-button-primary-border-bottom-left-radius.--wst-button-primary-box-shadow.--wst-button-primary-column-gap.--wst-button-primary-row-gap.--wst-button-primary-letter-spacing.--wst-button-primary-text-decoration.--wst-button-primary-text-transform.--wst-button-primary-text-shadow.--wst-button-secondary-background-color.--wst-button-secondary-background-image.--wst-button-secondary-padding-top.--wst-button-secondary-border-top-color.--wst-button-secondary-border-top-width.--wst-button-secondary-border-top-style.--wst-button-secondary-padding-right.--wst-button-secondary-border-right-color.--wst-button-secondary-border-right-width.--wst-button-secondary-border-right-style.--wst-button-secondary-padding-bottom.--wst-button-secondary-border-bottom-color.--wst-button-secondary-border-bottom-width.--wst-button-secondary-border-bottom-style.--wst-button-secondary-padding-left.--wst-button-secondary-border-left-color.--wst-button-secondary-border-left-width.--wst-button-secondary-border-left-style.--wst-button-secondary-border-top-left-radius.--wst-button-secondary-border-top-right-radius.--wst-button-secondary-border-bottom-right-radius.--wst-button-secondary-border-bottom-left-radius.--wst-button-secondary-box-shadow.--wst-button-secondary-column-gap.--wst-button-secondary-row-gap.--wst-button-secondary-letter-spacing.--wst-button-secondary-text-decoration.--wst-button-secondary-text-transform.--wst-button-secondary-text-shadow`.split(`.`),`--wst-graphics-1-color`,`--wst-system-line-1-color`,`--wst-system-line-1-width`,`--wst-system-disabled-color`,`--wst-primary-background-color`,`--wst-secondary-background-color`,`--wst-shade-2-color`,`--wst-shade-3-color`,`--wst-paragraph-1-color`,`--wst-paragraph-1-font`,`--wst-paragraph-2-color`,`--wst-paragraph-2-font`,`--wst-paragraph-3-color`,`--wst-paragraph-3-font`,`--wst-heading-5-color`,`--wst-heading-5-font`,`--wst-heading-6-color`,`--wst-heading-6-font`,`--wst-button-primary-color`,`--wst-button-primary-font`,`--wst-button-secondary-color`,`--wst-button-secondary-font`,`--wst-button-tertiary-color`,`--wst-button-tertiary-font`,`--wst-links-and-actions-color`,`--wst-system-alert-color`,`--wst-system-error-color`,`--wst-system-success-color`,`--wst-system-default-light-color`,`--wst-system-default-dark-color`],rd=`--builder-base`,id=e=>{let[,t]=d(!1);c(()=>{t(!0)},[]);let n=o(()=>{let t=e.current;if(!t)return{};let n=getComputedStyle(t),r={};for(let e of nd){let t=n.getPropertyValue(e).trim();t&&(r[e]=t)}return n.fontSize&&(r[rd]=n.fontSize),r},[e]),[,r]=d(``);return c(()=>{let e=()=>r(JSON.stringify(n()));return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[n]),o(()=>n(),[n])};function ad(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ad(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t)}return r}function od(){for(var e,t,n=0,r=``;n<arguments.length;)(e=arguments[n++])&&(t=ad(e))&&(r&&(r+=` `),r+=t);return r}var sd={...e},cd=`u`>typeof document?e.useLayoutEffect:()=>{},ld=`u`>typeof navigator,ud=hd(),dd=_d(),fd=gd();`u`>typeof CSS&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter:none`),ud.platform===`MacIntel`&&ud.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(ud.platform),ld&&/firefox/i.test(fd);var pd=ld&&/apple/i.test(navigator.vendor);ld&&/Edg/i.test(fd),ld&&/android/i.test(dd)||/android/i.test(fd),ld&&dd.toLowerCase().startsWith(`mac`)&&navigator.maxTouchPoints;var md=fd.includes(`jsdom/`);function hd(){if(!ld)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function gd(){if(!ld)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function _d(){if(!ld)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var vd={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},yd={...vd,position:`fixed`,top:0,left:0};({...vd});function bd(){return`u`>typeof window}function xd(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Sd(e){return bd()?e instanceof Node||e instanceof xd(e).Node:!1}function Cd(e){return bd()?e instanceof HTMLElement||e instanceof xd(e).HTMLElement:!1}function wd(e){return!bd()||`u`<typeof ShadowRoot?!1:e instanceof ShadowRoot||e instanceof xd(e).ShadowRoot}function Td(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Ed(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&wd(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Dd(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Od(e){return e?.ownerDocument||document}var kd={},Ad={};function jd(e){var t=Ad[e];if(t!==void 0)return t.exports;var n=Ad[e]={exports:{}};return kd[e](n,n.exports,jd),n.exports}jd.m=kd,jd.add=function(e){Object.assign(jd.m,e)},jd.add({"../../node_modules/use-sync-external-store/cjs/use-sync-external-store.development.js"(e,t,n){},"../../node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js"(e,t,n){t.useSyncExternalStore=n(`react?f15c`).useSyncExternalStore},"../../node_modules/use-sync-external-store/index.js"(e,t,n){e.exports=n(`../../node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js`)},"react?f15c"(t){t.exports=e}});var Md={};function Nd(t,n){let r=e.useRef(Md);return r.current===Md&&(r.current=t(n)),r}function Pd(e,t,n,r){let i=Nd(Id).current;return Ld(i,e,t,n,r)&&zd(i,[e,t,n,r]),i.callback}function Fd(e){let t=Nd(Id).current;return Rd(t,e)&&zd(t,e),t.callback}function Id(){return{callback:null,cleanup:null,refs:[]}}function Ld(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Rd(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function zd(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}function Bd(){}Object.freeze([]);var Vd=Object.freeze({});function Hd(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Ud=Hd(`https://base-ui.com/production-error`,`Base UI`),Wd=parseInt(e.version,10);function Gd(e){return Wd>=e}function Kd(t){if(!e.isValidElement(t))return null;let n=t,r=n.props;return(Gd(19)?r?.ref:n.ref)??null}function qd(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Jd(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}!0===i?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function Yd(e,t){return typeof e==`function`?e(t):e}function Xd(e,t){return typeof e==`function`?e(t):e}var Zd={};function Qd(e,t,n,r,i){if(!n&&!r&&!i&&!e)return ef(t);let a=ef(e);return t&&(a=tf(a,t)),n&&(a=tf(a,n)),r&&(a=tf(a,r)),i&&(a=tf(a,i)),a}function $d(e){if(e.length===0)return Zd;if(e.length===1)return ef(e[0]);let t=ef(e[0]);for(let n=1;n<e.length;n+=1)t=tf(t,e[n]);return t}function ef(e){return of(e)?{...sf(e,Zd)}:nf(e)}function tf(e,t){return of(t)?sf(t,e):rf(e,t)}function nf(e){let t={...e};for(let e in t){let n=t[e];af(e,n)&&(t[e]=lf(n))}return t}function rf(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=qd(e.style,r);break;case`className`:e[n]=df(e.className,r);break;default:e[n]=af(n,r)?cf(e[n],r):r}}return e}function af(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function of(e){return typeof e==`function`}function sf(e,t){return of(e)?e(t):e??Zd}function cf(e,t){return t?e?(...n)=>{let r=n[0];if(ff(r)){let i=r;uf(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:lf(t):e}function lf(e){return e&&((...t)=>{let n=t[0];return ff(n)&&uf(n),e(...t)})}function uf(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function df(e,t){return t?e?t+` `+e:t:e}function ff(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function pf(e,t,n={}){let r=t.render,i=mf(t,n);return!1===n.enabled?null:_f(e,r,i,n.state??Vd)}function mf(e,t={}){let{className:n,style:r,render:i}=e,{state:a=Vd,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?Yd(n,a):void 0,d=l?Xd(r,a):void 0,f=l?Jd(a,c):Vd,p=l&&s?hf(s):void 0,m=l?qd(f,p)??{}:Vd;return`u`>typeof document&&(l?m.ref=Array.isArray(o)?Fd([m.ref,Kd(i),...o]):Pd(m.ref,Kd(i),o):Pd(null,null)),l?(u!==void 0&&(m.className=df(m.className,u)),d!==void 0&&(m.style=qd(m.style,d)),m):Vd}function hf(e){return Array.isArray(e)?$d(e):Qd(void 0,e)}var gf=Symbol.for(`react.lazy`);function _f(t,n,r,i){if(n){if(typeof n==`function`)return n(r,i);let t=Qd(r,n.props);t.ref=r.ref;let a=n;return a?.$$typeof===gf&&(a=e.Children.toArray(n)[0]),e.cloneElement(a,t)}if(t&&typeof t==`string`)return vf(t,r);throw Error(Ud(8))}function vf(t,n){return t===`button`?(0,e.createElement)(`button`,{type:`button`,...n,key:n.key}):t===`img`?(0,e.createElement)(`img`,{alt:``,...n,key:n.key}):e.createElement(t,n)}var yf=sd.useInsertionEffect,bf=yf&&yf!==sd.useLayoutEffect?yf:e=>e();function xf(e){let t=Nd(Sf).current;return t.next=e,bf(t.effect),t.trampoline}function Sf(){let e={next:void 0,callback:Cf,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Cf(){}jd.add({"../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js"(e,t,n){},"../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js"(e,t,n){var r=n(`react?1096`);function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=r.useRef,c=r.useEffect,l=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},"../../node_modules/use-sync-external-store/with-selector.js"(e,t,n){e.exports=n(`../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js`)},"react?1096"(t){t.exports=e}});function wf(e){return`data-base-ui-${e}`}var Tf=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(Ud(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},Ef=[];function Df(e){Ef.push(e)}var Of=jd(`../../node_modules/use-sync-external-store/index.js`),kf=jd(`../../node_modules/use-sync-external-store/with-selector.js`),Af=Gd(19)?Nf:Pf;function jf(e,t,n,r,i){return Af(e,t,n,r,i)}function Mf(t,n,r,i,a){let o=e.useCallback(()=>n(t.getSnapshot(),r,i,a),[t,n,r,i,a]);return(0,Of.useSyncExternalStore)(t.subscribe,o,o)}Df({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Of.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Nf(e,t,n,r,i){return Mf(e,t,n,r,i)}function Pf(e,t,n,r,i){return(0,kf.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Ff=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return jf(this,e,t,n,r)}},If=class extends Ff{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(t,n){e.useDebugValue(t);let r=this;cd(()=>{r.state[t]!==n&&r.set(t,n)},[r,t,n])}useSyncedValueWithCleanup(e,t){let n=this;cd(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;cd(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(t,n){e.useDebugValue(t);let r=this,i=n!==void 0;cd(()=>{i&&!Object.is(r.state[t],n)&&r.setState({...r.state,[t]:n})},[r,t,n,i])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(t,n,r,i){return e.useDebugValue(t),jf(this,this.selectors[t],n,r,i)}useContextCallback(t,n){e.useDebugValue(t);let r=xf(n??Bd);this.context[t]=r}useStateSetter(t){let n=e.useRef(void 0);return n.current===void 0&&(n.current=e=>{this.set(t,e)}),n.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Lf=0;function Rf(t,n=`mui`){let[r,i]=e.useState(t),a=t||r;return e.useEffect(()=>{r??(Lf+=1,i(`${n}-${Lf}`))},[r,n]),a}var zf=sd.useId;function Bf(e,t){if(zf!==void 0){let n=zf();return e??(t?`${t}-${n}`:n)}return Rf(e,t)}function Vf(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function Hf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}var Uf=e.forwardRef(function(t,n){let[r,i]=e.useState();cd(()=>{pd&&i(`button`)},[]);let a={tabIndex:0,role:r};return m(`span`,{...t,ref:n,style:yd,"aria-hidden":!r||void 0,...a,"data-base-ui-focus-guard":``})}),Wf=`data-base-ui-swipe-ignore`,Gf=`data-swipe-ignore`,Kf=`[${Wf}]`,qf=`[${Gf}]`,Jf=e.createContext(null),Yf=()=>e.useContext(Jf),Xf=wf(`portal`);function Zf(t={}){let{ref:n,container:r,componentProps:i=Vd,elementProps:a}=t,o=Bf(),s=Yf()?.portalNode,[c,l]=e.useState(null),[u,d]=e.useState(null),p=xf(e=>{e!==null&&d(e)}),m=e.useRef(null);cd(()=>{if(r===null){m.current&&(m.current=null,d(null),l(null));return}if(o==null)return;let e=(r&&(Sd(r)?r:r.current))??s??document.body;if(e==null){m.current&&(m.current=null,d(null),l(null));return}m.current!==e&&(m.current=e,d(null),l(e))},[r,s,o]);let h=pf(`div`,i,{ref:[n,p],props:[{id:o,[Xf]:``},a]});return{portalNode:u,portalSubtree:c&&h?f.createPortal(h,c):null}}var Qf=e.forwardRef(function(t,n){let{children:r,container:i,className:a,render:o,style:s,...c}=t,{portalNode:l,portalSubtree:u}=Zf({container:i,ref:n,componentProps:t,elementProps:c});return!u&&!l?null:h(e.Fragment,{children:[u,l&&f.createPortal(r,l)]})}),$f=[];function ep(t){e.useEffect(t,$f)}var tp=0,np=class e{static create(){return new e}currentId=tp;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=tp,t()},e)}isStarted(){return this.currentId!==tp}clear=()=>{this.currentId!==tp&&(clearTimeout(this.currentId),this.currentId=tp)};disposeEffect=()=>this.clear};function rp(){let e=Nd(np.create).current;return ep(e.disposeEffect),e}function ip(e){if(!e||md)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}var ap=null;globalThis.requestAnimationFrame;var op=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},sp=class e{static create(){return new e}static request(e){return op.request(e)}static cancel(e){return op.cancel(e)}currentId=ap;request(e){this.cancel(),this.currentId=op.request(()=>{this.currentId=ap,e()})}cancel=()=>{this.currentId!==ap&&(op.cancel(this.currentId),this.currentId=ap)};disposeEffect=()=>this.cancel};function cp(){let e=Nd(sp.create).current;return ep(e.disposeEffect),e}var lp=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),up={[lp.startingStyle]:``},dp={[lp.endingStyle]:``},fp={transitionStatus(e){return e===`starting`?up:e===`ending`?dp:null}};function pp(e){return e==null?e:`current`in e?e.current:e}function mp(e,t=!1,n=!0){let r=cp();return xf((i,a=null)=>{r.cancel();let o=pp(e);if(o==null)return;let s=o,c=()=>{f.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void i();function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=lp.startingStyle;if(!s.hasAttribute(e))return void r.request(l);let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function hp(t){let{enabled:n=!0,open:r,ref:i,onComplete:a}=t,o=xf(a),s=mp(i,r,!1);e.useEffect(()=>{if(!n)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[n,r,o,s])}function gp(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}function _p(e){let t=xd(e).getComputedStyle(e).transform,n=0,r=0,i=1;if(t&&t!==`none`){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(n=t[4],r=t[5],i=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(n=t[12],r=t[13],i=t[0])}}return{x:n,y:r,scale:i}}function vp(e){return Gd(19)?e:e?`true`:void 0}var yp=e.createContext(void 0);function bp(t=!1){let n=e.useContext(yp);if(n===void 0&&!t)throw Error(Ud(16));return n}function xp(t){let{focusableWhenDisabled:n,disabled:r,composite:i=!1,tabIndex:a=0,isNativeButton:o}=t,s=i&&!1!==n,c=i&&!1===n;return{props:e.useMemo(()=>{let e={onKeyDown(e){r&&n&&e.key!==`Tab`&&e.preventDefault()}};return i||(e.tabIndex=a,!o&&r&&(e.tabIndex=n?a:-1)),(o&&(n||s)||!o&&r)&&(e[`aria-disabled`]=r),o&&(!n||c)&&(e.disabled=r),e},[i,r,n,s,c,o,a])}}function Sp(t={}){let{disabled:n=!1,focusableWhenDisabled:r,tabIndex:i=0,native:a=!0,composite:o}=t,s=e.useRef(null),c=bp(!0),l=o??c!==void 0,{props:u}=xp({focusableWhenDisabled:r,disabled:n,composite:l,tabIndex:i,isNativeButton:a}),d=e.useCallback(()=>{let e=s.current;Cp(e)&&l&&n&&u.disabled===void 0&&e.disabled&&(e.disabled=!1)},[n,u.disabled,l]);return cd(d,[d]),{getButtonProps:e.useCallback((e={})=>{let{onClick:t,onMouseDown:r,onKeyUp:i,onKeyDown:o,onPointerDown:s,...c}=e;return Qd({onClick(e){if(n)return void e.preventDefault();t?.(e)},onMouseDown(e){n||r?.(e)},onKeyDown(e){if(n||(uf(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,i=e.currentTarget,s=Cp(i),c=!a&&wp(i),u=r&&(a?s:!c),d=e.key===`Enter`,f=e.key===` `,p=i.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&l&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),c||a&&s?(i.click(),e.preventBaseUIHandler()):u&&(t?.(e),e.preventBaseUIHandler());return}u&&(!a&&(f||d)&&e.preventDefault(),!a&&d&&t?.(e))},onKeyUp(e){if(!n){if(uf(e),i?.(e),e.target===e.currentTarget&&a&&l&&Cp(e.currentTarget)&&e.key===` `)return void e.preventDefault();e.baseUIHandlerPrevented||e.target===e.currentTarget&&!a&&!l&&e.key===` `&&t?.(e)}},onPointerDown(e){if(n)return void e.preventDefault();s?.(e)}},a?{type:`button`}:{role:`button`},u,c)},[n,u,l,a]),buttonRef:xf(e=>{s.current=e,d()})}}function Cp(e){return Cd(e)&&e.tagName===`BUTTON`}function wp(e){return!!(e?.tagName===`A`&&e?.href)}var Tp=Qf,Ep=e.createContext(void 0);function Dp(){let t=e.useContext(Ep);if(!t)throw Error(Ud(73));return t}var Op=function(e){return e.frontmostHeight=`--toast-frontmost-height`,e}({}),kp=e.forwardRef(function(t,n){let{render:r,className:i,style:a,children:o,...s}=t,c=Dp(),l=rp(),u=e.useRef(!1),d=e.useRef(!1),f=e.useRef(!1),p=c.useState(`isEmpty`),g=c.useState(`toasts`),_=c.useState(`focused`),v=c.useState(`expanded`),y=c.useState(`prevFocusElement`),b=g[0]?.height??0,x=e.useMemo(()=>g.some(e=>e.transitionStatus===`ending`),[g]),S=e.useMemo(()=>g.filter(e=>e.priority===`high`),[g]);e.useEffect(()=>{let e=c.state.viewport;if(!e)return;function t(t){p||t.key===`F6`&&Dd(t)!==e&&(t.preventDefault(),c.setPrevFocusElement(Td(Od(e))),e?.focus({preventScroll:!0}),c.pauseTimers(),c.setFocused(!0))}return Hf(xd(e),`keydown`,t)},[c,p]),e.useEffect(()=>{let e=c.state.viewport;if(!e||p)return;let t=xd(e);function n(e){Dd(e)===t&&(c.setIsWindowFocused(!1),c.pauseTimers())}function r(n){if(n.relatedTarget)return;let r=Dd(n),i=Td(Od(e));(r===t||!Ed(e,r)||!ip(i))&&c.resumeTimers(),l.start(0,()=>c.setIsWindowFocused(!0))}return Vf(Hf(t,`blur`,n,!0),Hf(t,`focus`,r,!0))},[c,l,p]),e.useEffect(()=>{let e=c.state.viewport;return!e||p?void 0:Hf(Od(e),`pointerdown`,c.handleDocumentPointerDown,!0)},[p,c]);function C(e){let t=c.state.viewport;t&&(u.current=!0,e.relatedTarget===t?g[0]?.ref?.current?.focus():c.restoreFocusToPrevElement())}function ee(e){e.key===`Tab`&&e.shiftKey&&Dd(e.nativeEvent)===c.state.viewport&&(e.preventDefault(),c.restoreFocusToPrevElement(),c.resumeTimers())}function w(){let e=c.state.toasts.some(e=>e.transitionStatus===`ending`);c.state.isWindowFocused&&!e&&!f.current&&d.current&&(c.resumeTimers(),c.setHovering(!1),d.current=!1)}e.useEffect(w,[x,c]);function T(){c.pauseTimers(),c.setHovering(!0),d.current=!1}function E(){x||f.current?d.current=!0:(c.resumeTimers(),c.setHovering(!1))}function D(e){e.pointerType===`touch`&&(f.current=!0)}function te(e){e.pointerType===`touch`&&(f.current=!1,w())}function ne(){if(u.current){u.current=!1;return}_||ip(Td(Od(c.state.viewport)))&&(c.setFocused(!0),c.pauseTimers())}function re(e){_&&!Ed(c.state.viewport,e.relatedTarget)&&(c.setFocused(!1),c.resumeTimers())}let O={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:T,onMouseMove:T,onMouseLeave:E,onFocus:ne,onBlur:re,onKeyDown:ee,onClick:ne,onPointerDown:D,onPointerUp:te,onPointerCancel:te},k={expanded:v},ie=pf(`div`,t,{ref:[n,c.setViewport],state:k,props:[O,{style:{[Op.frontmostHeight]:b?`${b}px`:void 0}},s,{children:h(e.Fragment,{children:[!p&&y&&m(Uf,{onFocus:C}),o,!p&&y&&m(Uf,{onFocus:C})]})}]});return h(e.Fragment,{children:[!p&&y&&m(Uf,{onFocus:C}),ie,!_&&S.length>0&&m(`div`,{style:yd,children:S.map(e=>h(`div`,{role:`alert`,"aria-atomic":!0,children:[m(`div`,{children:e.title}),m(`div`,{children:e.description})]},e.id))})]})}),Ap=e.createContext(void 0);function jp(){let t=e.useContext(Ap);if(!t)throw Error(Ud(66));return t}var Mp=function(e){return e.index=`--toast-index`,e.offsetY=`--toast-offset-y`,e.height=`--toast-height`,e.swipeMovementX=`--toast-swipe-movement-x`,e.swipeMovementY=`--toast-swipe-movement-y`,e}({}),Np={...fp,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},Pp=40,Fp=10,Ip=.5,Lp=1,Rp=`${Kf},${qf}`,zp=e.forwardRef(function(t,n){let{toast:r,render:i,className:a,swipeDirection:o=[`down`,`right`],style:s,...c}=t,l=r.positionerProps?.anchor!==void 0,u=[];l||(u=Array.isArray(o)?o:[o]);let d=u.length>0,p=Dp(),[h,g]=e.useState(void 0),[_,v]=e.useState(!1),[y,b]=e.useState(!1),[x,S]=e.useState(!1),[C,ee]=e.useState({x:0,y:0}),[w,T]=e.useState({x:0,y:0,scale:1}),[E,D]=e.useState(),[te,ne]=e.useState(),[re,O]=e.useState(null),k=e.useRef(null),ie=e.useRef({x:0,y:0}),ae=e.useRef({x:0,y:0,scale:1}),oe=e.useRef(void 0),se=e.useRef(0),ce=e.useRef(!1),A=e.useRef({x:0,y:0}),le=e.useRef(!1),ue=e.useRef({x:0,y:0}),de=e.useRef(null),fe=e.useRef(null),pe=p.useState(`toastIndex`,r.id),me=p.useState(`toastVisibleIndex`,r.id),he=p.useState(`toastOffsetY`,r.id),ge=p.useState(`focused`),_e=p.useState(`expanded`);hp({open:r.transitionStatus!==`ending`,ref:k,onComplete(){r.transitionStatus===`ending`&&p.removeToast(r.id)}});let ve=xf((e=!1)=>{let t=k.current;if(!t)return;let n=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=n;function a(){p.updateToastInternal(r.id,{ref:k,height:i,...r.transitionStatus===`starting`?{transitionStatus:void 0}:{}})}e?f.flushSync(a):a()});cd(ve,[ve]);function ye(e){ue.current=e,ee(e)}cd(()=>()=>{fe.current?.abort()},[]);function be(e,t){let n=e,r=t;return u.includes(`left`)||u.includes(`right`)?(!u.includes(`right`)&&e>0&&(n=e**Ip),!u.includes(`left`)&&e<0&&(n=-(Math.abs(e)**Ip))):n=e>0?e**Ip:-(Math.abs(e)**Ip),u.includes(`up`)||u.includes(`down`)?(!u.includes(`down`)&&t>0&&(r=t**Ip),!u.includes(`up`)&&t<0&&(r=-(Math.abs(t)**Ip))):r=t>0?t**Ip:-(Math.abs(t)**Ip),{x:n,y:r}}let xe=xf(e=>{if(e.pointerId!==de.current)return;de.current=null,fe.current?.abort(),fe.current=null,v(!1),b(!1),O(null);let t=ae.current;if(e.type===`pointercancel`||ce.current){ye({x:t.x,y:t.y}),g(void 0);return}let n=!1,i=ue.current,a=i.x-t.x,o=i.y-t.y,s;for(let e of u){switch(e){case`right`:a>Pp&&(n=!0,s=`right`);break;case`left`:a<-40&&(n=!0,s=`left`);break;case`down`:o>Pp&&(n=!0,s=`down`);break;case`up`:o<-40&&(n=!0,s=`up`)}if(n)break}n?(g(s),S(!0),p.closeToast(r.id)):(ye({x:t.x,y:t.y}),g(void 0))});function Se(e){if(e.button!==0)return;e.pointerType===`touch`&&p.pauseTimers();let t=Dd(e.nativeEvent);if(t&&t.closest(`button,a,input,textarea,[role="button"],${Rp}`))return;if(ce.current=!1,oe.current=void 0,se.current=0,de.current=e.pointerId,ie.current={x:e.clientX,y:e.clientY},A.current=ie.current,k.current){let e=_p(k.current);ae.current=e,T(e),ye({x:e.x,y:e.y})}p.setHovering(!0),v(!0),b(!1),O(null),le.current=!0;let n=k.current;if(n){fe.current?.abort();let t=new AbortController;fe.current=t;let r=Od(n);r.addEventListener(`pointerup`,xe,{signal:t.signal}),r.addEventListener(`pointercancel`,xe,{signal:t.signal}),n.setPointerCapture?.(e.pointerId)}}function Ce(e){if(e.pointerId!==de.current)return;e.preventDefault(),le.current&&=(ie.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>A.current.y||i>0&&t<A.current.y)&&(A.current={x:A.current.x,y:t}),(r<0&&n>A.current.x||r>0&&n<A.current.x)&&(A.current={x:n,y:A.current.y});let a=n-ie.current.x,o=t-ie.current.y,s=t-A.current.y,c=n-A.current.x;if(!y&&Math.sqrt(a*a+o*o)>=Lp&&(b(!0),re===null)){let e=u.includes(`left`)||u.includes(`right`),t=u.includes(`up`)||u.includes(`down`);e&&t&&O(Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`)}let l;if(oe.current){let e=oe.current,t=gp(e,c,s);t>Pp?(ce.current=!1,g(e)):!(u.includes(`left`)&&u.includes(`right`))&&!(u.includes(`up`)&&u.includes(`down`))&&se.current-t>=Fp&&(ce.current=!0)}else re===`vertical`?o>0?l=`down`:o<0&&(l=`up`):re===`horizontal`?a>0?l=`right`:a<0&&(l=`left`):l=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,l&&u.includes(l)&&(oe.current=l,se.current=gp(l,a,o),g(l));let d=be(a,o),f=ae.current.x,p=ae.current.y;re===`horizontal`?(u.includes(`left`)||u.includes(`right`))&&(f+=d.x):(re===`vertical`||(u.includes(`left`)||u.includes(`right`))&&(f+=d.x),(u.includes(`up`)||u.includes(`down`))&&(p+=d.y)),ye({x:f,y:p})}function we(e){if(e.key===`Escape`){if(!k.current||!Ed(k.current,Td(Od(k.current))))return;p.closeToast(r.id)}}e.useEffect(()=>{if(!d)return;let e=k.current;if(!e)return;function t(t){Ed(e,Dd(t))&&t.preventDefault()}return Hf(e,`touchmove`,t,{passive:!1})},[d]);function Te(){if(!_&&C.x===w.x&&C.y===w.y&&!x)return{[Mp.swipeMovementX]:`0px`,[Mp.swipeMovementY]:`0px`};let e=C.x-w.x,t=C.y-w.y;return{transition:_?`none`:void 0,transform:_?`translateX(${C.x}px) translateY(${C.y}px) scale(${w.scale})`:void 0,[Mp.swipeMovementX]:`${e}px`,[Mp.swipeMovementY]:`${t}px`}}let Ee=r.priority===`high`,De={role:Ee?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":E,"aria-describedby":te,"aria-hidden":Ee&&!ge?!0:void 0,onPointerDown:d?Se:void 0,onPointerMove:d?Ce:void 0,onPointerUp:d?xe:void 0,onPointerCancel:d?xe:void 0,onKeyDown:we,inert:vp(r.limited),style:{...Te(),[Mp.index]:r.transitionStatus===`ending`?pe:me,[Mp.offsetY]:`${he}px`,[Mp.height]:r.height?`${r.height}px`:void 0}},Oe=e.useMemo(()=>({rootRef:k,toast:r,titleId:E,setTitleId:D,descriptionId:te,setDescriptionId:ne,swiping:_,swipeDirection:h,recalculateHeight:ve,index:pe,visibleIndex:me,expanded:_e}),[r,E,te,_,h,ve,pe,me,_e]),ke={transitionStatus:r.transitionStatus,expanded:_e,limited:r.limited||!1,type:r.type,swiping:Oe.swiping,swipeDirection:Oe.swipeDirection},Ae=pf(`div`,t,{ref:[n,Oe.rootRef],state:ke,stateAttributesMapping:Np,props:[De,c]});return m(Ap.Provider,{value:Oe,children:Ae})}),Bp=e.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{toast:c,setTitleId:l}=jp(),u=o??c.title,d=!!u,f=Bf(a);cd(()=>{if(d)return l(f),()=>{l(void 0)}},[d,f,l]);let p=pf(`h2`,e,{ref:t,state:{type:c.type},props:{...s,id:f,children:u}});return d?p:null}),Vp=e.forwardRef(function(t,n){let{render:r,className:i,style:a,disabled:o,nativeButton:s=!0,...c}=t,l=Dp(),{toast:u}=jp(),d=l.useState(`expanded`),[f,p]=e.useState(!1),{getButtonProps:m,buttonRef:h}=Sp({disabled:o,native:s}),g={type:u.type};return pf(`button`,t,{ref:[n,h],state:g,props:[{"aria-hidden":!d&&!f,onClick(){l.closeToast(u.id)},onFocus(){p(!0)},onBlur(){p(!1)}},c,m]})}),Hp=0;function Up(e){return Hp+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${Hp}`}function Wp(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function Gp(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}var Kp=e=>e.toastMetadata,qp={toasts:Tf(e=>e.toasts),isEmpty:Tf(e=>e.toasts.length===0),toast:Tf(Kp,(e,t)=>e.get(t)?.value),toastIndex:Tf(Kp,(e,t)=>e.get(t)?.domIndex??-1),toastOffsetY:Tf(Kp,(e,t)=>e.get(t)?.offsetY??0),toastVisibleIndex:Tf(Kp,(e,t)=>e.get(t)?.visibleIndex??-1),hovering:Tf(e=>e.hovering),focused:Tf(e=>e.focused),expanded:Tf(e=>e.hovering||e.focused),expandedOrOutOfFocus:Tf(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:Tf(e=>e.prevFocusElement)},Jp=class extends If{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:Gp(e.toasts)},{},qp)}setFocused(e){this.set(`focused`,e)}setHovering(e){this.set(`hovering`,e)}setIsWindowFocused(e){this.set(`isWindowFocused`,e)}setPrevFocusElement(e){this.set(`prevFocusElement`,e)}setViewport=e=>{this.set(`viewport`,e)};disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t={}){let n=qp.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t.skipOnRemove||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||Up(`toast`);if(e.id){let t=qp.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,{skipOnRemove:!0});else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,{resetTimer:!0,markUpdated:!0}),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts],o=a.filter(e=>e.transitionStatus!==`ending`);if(o.length>n){let e=o.length-n,t=o.slice(-e),r=new Set(t.map(e=>e.id));this.setToasts(a.map(e=>{let t=r.has(e.id);return e.limited===t?e:{...e,limited:t}}))}else this.setToasts(a.map(e=>e.limited?{...e,limited:!1}:e));let s=i.timeout??t;return i.type!==`loading`&&s>0&&this.scheduleTimer(r,s,()=>this.closeToast(r)),qp.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{this.updateToastInternal(e,t,{markUpdated:!0})};updateToastInternal=(e,t,n={})=>{let{timeout:r,toasts:i}=this.state,a=qp.toast(this.state,e)??null;if(!a||a.transitionStatus===`ending`)return;let o={...a,...t,...n.markUpdated&&{updateKey:(a.updateKey??0)+1}};this.setToasts(i.map(t=>t.id===e?o:t));let s=o.timeout??r,c=a?.timeout??r,l=Object.hasOwn(t,`timeout`),u=o.transitionStatus!==`ending`&&o.type!==`loading`&&s>0,d=this.timers.has(e),f=c!==s,p=a?.type===`loading`;if(!u&&d){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e);return}if(u&&(!d||f||l||p||n.resetTimer)){let t=this.timers.get(e);t&&(t.timeout?.clear(),this.timers.delete(e)),this.scheduleTimer(e,s,()=>this.closeToast(e)),qp.expandedOrOutOfFocus(this.state)&&this.pauseTimers()}};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear();else{let t=qp.toast(this.state,e);if(!t)return;i=[t];let n=this.timers.get(e);n?.timeout&&(n.timeout.clear(),this.timers.delete(e))}let a=0,o=r.map(r=>{if(t||r.id===e)return{...r,transitionStatus:`ending`,height:0};if(r.transitionStatus===`ending`)return r;let i=a>=n;return a+=1,r.limited===i?r:{...r,limited:i}}),s={toasts:o,toastMetadata:Gp(o)};(t||r.length===1)&&(s.hovering=!1,s.focused=!1),this.update(s),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=Wp(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=Wp(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=Wp(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{if(e.timeout){e.timeout.clear();let t=Date.now()-e.start,n=e.delay-t;e.remaining=n>0?n:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=np.create(),e.timeout.start(e.remaining,()=>{this.timers.delete(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=Dd(e);Ed(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=!qp.expandedOrOutOfFocus(this.state),a=i?np.create():void 0;a?.start(t,()=>{this.timers.delete(e),n()}),this.timers.set(e,{timeout:a,start:i?r:0,delay:t,remaining:t,callback:n})}setToasts(e){let t={toasts:e,toastMetadata:Gp(e)};e.length===0&&(t.hovering=!1,t.focused=!1),this.update(t)}handleFocusManagement(e){let t=Td(Od(this.state.viewport));if(!this.state.viewport||!Ed(this.state.viewport,t)||!ip(t))return;if(e===void 0)return void this.restoreFocusToPrevElement();let n=qp.toasts(this.state),r=qp.toastIndex(this.state,e),i=null,a=r+1;for(;a<n.length;){if(n[a].transitionStatus!==`ending`){i=n[a];break}a+=1}if(!i)for(a=r-1;a>=0;){if(n[a].transitionStatus!==`ending`){i=n[a];break}--a}i?i.ref?.current?.focus():this.restoreFocusToPrevElement()}},Yp=function(t){let{children:n,timeout:r=5e3,limit:i=3,toastManager:a}=t,o=Nd(()=>new Jp({timeout:r,limit:i,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return ep(o.disposeEffect),e.useEffect(function(){if(a)return a[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?o.promiseToast(t.promise,t):e===`update`&&n?o.updateToast(n,t):e===`close`?o.closeToast(n):o.addToast(t)})},[o,a]),o.useSyncedValues({timeout:r,limit:i}),m(Ep.Provider,{value:o,children:n})};function Xp(){let t=e.useContext(Ep);if(!t)throw Error(Ud(73));let n=t.useState(`toasts`);return e.useMemo(()=>({toasts:n,add:t.addToast,close:t.closeToast,update:t.updateToast,promise:t.promiseToast}),[n,t])}var Zp={viewport:`viewport-Wd6ktK`,root:`root-TfN4xI`,status:`status-O_LUHn`,success:`success-tUs5Op`,error:`error-clgmW0`,preview:`preview-HUjSkl`,title:`title-ECAZRW`,close:`close-GX8r1b`},Qp=({size:e,...t})=>m(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,width:e||`24`,height:e||`24`,...t,children:m(`path`,{fillRule:`evenodd`,d:`M19.2928932,3.99989322 L20,4.707 L12.7068932,11.9998932 L20,19.2928932 L19.2928932,20 L11.9998932,12.7068932 L4.707,20 L3.99989322,19.2928932 L11.2928932,11.9998932 L3.99989322,4.707 L4.707,3.99989322 L11.9998932,11.2928932 L19.2928932,3.99989322 Z`})}),$p=()=>{if(!(`u`<typeof document))return document.querySelector(`#SITE_PAGES > .theme-vars`)??document.body};function em(e){switch(e){case`success`:return Zp.success;case`error`:return Zp.error;case`preview`:return Zp.preview;default:return Zp.status}}var tm={Provider:Yp,Portal:({container:e,...t})=>m(Tp,{container:e??$p(),...t}),Viewport:e.forwardRef(({className:e,...t},n)=>m(kp,{ref:n,className:od(Zp.viewport,`theme-vars`,e),...t})),Root:e.forwardRef(({className:e,skin:t,swipeDirection:n=[],toast:r,...i},a)=>m(zp,{ref:a,toast:r,className:od(Zp.root,em(t),e),swipeDirection:n,...i})),Title:e.forwardRef(({className:e,...t},n)=>m(Bp,{ref:n,className:od(Zp.title,e),...t})),Close:e.forwardRef(({className:e,...t},n)=>m(Vp,{ref:n,className:od(Zp.close,e),...t,children:m(Qp,{"aria-hidden":`true`})})),useToastManager:Xp},nm=`.viewport-Wd6ktK{z-index:var(--above-all-z-index);flex-direction:column;display:flex;position:fixed;bottom:0;left:0;right:0}.root-TfN4xI{box-sizing:border-box;color:#fff;width:100%;font:var(--wst-paragraph-3-font);border:var(--wst-system-line-1-width) solid color-mix(in srgb,var(--wst-system-default-light-color) 40%,transparent);opacity:0;visibility:hidden;border-radius:2px;align-items:center;gap:20px;padding-inline:32px 12px;transition:visibility .2s,opacity .2s,transform .4s;display:flex;transform:translateY(-50%);box-shadow:0 0 4px #0000001a,0 4px 8px #0000001a}.root-TfN4xI:not([data-starting-style]):not([data-ending-style]){opacity:1;visibility:visible;transform:translateY(0)}.root-TfN4xI:focus-visible{outline:2px solid var(--wst-links-and-actions-color);outline-offset:-2px}.status-O_LUHn{background-color:var(--wst-system-default-dark-color)}.success-tUs5Op{background-color:var(--wst-system-success-color)}.error-clgmW0{background-color:var(--wst-system-error-color)}.preview-HUjSkl{background-color:color-mix(in srgb,var(--wst-system-default-dark-color) 60%,transparent)}.title-ECAZRW{-webkit-line-clamp:2;min-width:0;font:inherit;-webkit-box-orient:vertical;flex:1;margin-block:16px;display:-webkit-box;overflow:hidden}.close-GX8r1b{cursor:pointer;color:inherit;background:none;border:none;justify-content:center;align-items:center;padding:14px 12px;display:inline-flex}.close-GX8r1b:hover{background-color:color-mix(in srgb,currentColor 12%,transparent)}.close-GX8r1b:focus-visible{outline:2px solid var(--wst-links-and-actions-color);outline-offset:2px}.close-GX8r1b>svg{width:20px;height:20px}@media(prefers-reduced-motion:reduce){.root-TfN4xI[data-starting-style],.root-TfN4xI[data-ending-style]{transition:opacity .12s;transform:none}}@media(width<=750px){.root-TfN4xI{padding-inline:20px}.title-ECAZRW{-webkit-line-clamp:3}}`,rm={viewport:`page-toasts-viewport`,toast:`page-toast`,toastTitle:`page-toast-title`,closeAction:`page-toast-close`},im=`[data-hook=page-toasts-viewport]{top:auto;bottom:0}`,{createRoot:am}=p,om=Symbol.for(`@wix/app-builder-common/toasts/page-host`),sm=()=>{let{toasts:e}=tm.useToastManager();return t.createElement(tm.Portal,null,t.createElement(tm.Viewport,{"data-hook":rm.viewport},e.map(e=>t.createElement(tm.Root,{key:e.id,toast:e,skin:e.type,style:e.data?.theme,"data-hook":rm.toast},t.createElement(tm.Title,{"data-hook":rm.toastTitle}),t.createElement(tm.Close,{"data-hook":rm.closeAction})))))},cm=({onReady:e})=>{let{add:t}=tm.useToastManager();return c(()=>{e(({title:e,type:n,theme:r})=>t({title:e,type:n,data:{theme:r}}))},[t,e]),null},lm=()=>{let e=null,n=[],r=t=>{e=t,n.splice(0).forEach(t)},i=document.createElement(`div`),a=document.createElement(`style`);a.textContent=`${nm}\n${im}`,document.head.appendChild(a),document.body.appendChild(i);let o=am(i);return o.render(t.createElement(tm.Provider,null,t.createElement(cm,{onReady:r}),t.createElement(sm,null))),{post:t=>{if(e){e(t);return}n.push(t)},unmount:()=>{o.unmount(),a.remove(),i.remove()}}},um=e=>{if(typeof document>`u`)return;let t=globalThis;t[om]??=lm(),t[om].post(e)},dm=e=>{let t=u(null),n=e??t,r=id(n),a=l(()=>e?null:i(`span`,{ref:t,hidden:!0}),[e]),[o,s]=d([]),f=u(!1),p=u({}),m=u(()=>p.current);return m.current=()=>(n.current?.isConnected&&(p.current=r()),p.current),c(()=>(f.current=!0,m.current(),()=>{f.current=!1}),[]),c(()=>{o.length&&(o.forEach(um),s([]))},[o]),l(()=>{let e=(e,t)=>{let n={title:e,type:t,theme:m.current()};if(f.current){s(e=>[...e,n]);return}um(n)};return{success:t=>e(t,`success`),error:t=>e(t,`error`),themeAnchor:a}},[a])},fm=(e,t)=>Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{{${t}}}`,String(n)),e),pm=(e,t,n={})=>fm(e(t.key,{defaultValue:t.fallback,...n}),n),mm=e=>{let{t}=Ui(),n={};for(let r of Object.keys(e)){let i=e[r];n[r]=i.prop===void 0?pm(t,i):i.prop}return n},hm=r(null);hm.displayName=`WalletContext`;function gm(){let e=s(hm);if(!e)throw Error(`useWallet must be used within WalletContextProvider`);return e}var _m=[{path:`savedPaymentMethods.createdDate`},{path:`savedPaymentMethods.updatedDate`}];function vm(e){return wt(Object.assign(e,{domainToMappings:{"api._api_base_domain_":[{srcPath:`/payments/saved-payment-methods`,destPath:``}],"apps._base_domain_":[{srcPath:`/payments/saved-payment-methods`,destPath:``}],_:[{srcPath:`/_api/payments/saved-payment-methods`,destPath:``}]}}))}var ym=`@wix/auto_sdk_payments_saved-payment-methods`;function bm(e){function t({host:t}){return{entityFqdn:`wix.payments.saved_payment_methods.v1.saved_payment_method`,method:`DELETE`,methodFqn:`wix.payments.saved_payment_methods.v1.SavedPaymentMethodService.DeleteSavedPaymentMethod`,packageName:ym,migrationOptions:{optInTransformResponse:!0},url:vm({protoPath:`/v1/saved-payment-methods/{savedPaymentMethodId}`,data:e,host:t}),params:Ct(e)}}return t}function xm(e){function t({host:t}){return{entityFqdn:`wix.payments.saved_payment_methods.v1.saved_payment_method`,method:`GET`,methodFqn:`wix.payments.saved_payment_methods.v1.SavedPaymentMethodService.ListSavedPaymentMethods`,packageName:ym,migrationOptions:{optInTransformResponse:!0},url:vm({protoPath:`/v1/saved-payment-methods`,data:e,host:t}),params:Ct(e),transformResponse:e=>at(e,[{transformFn:rt,paths:_m}])}}return t}function Sm(e){function t({host:t}){return{entityFqdn:`wix.payments.saved_payment_methods.v1.saved_payment_method`,method:`GET`,methodFqn:`wix.payments.saved_payment_methods.v1.SavedPaymentMethodService.MarkSavedPaymentMethodPrimary`,packageName:ym,migrationOptions:{optInTransformResponse:!0},url:vm({protoPath:`/v1/saved-payment-methods/{savedPaymentMethodId}/mark-primary`,data:e,host:t}),params:Ct(e),fallback:[{method:`POST`,url:vm({protoPath:`/v1/saved-payment-methods/{savedPaymentMethodId}/mark-primary`,data:e,host:t}),data:e}]}}return t}async function Cm(e){let{httpClient:t,sideEffects:n}=arguments[1],r=bm(tt({savedPaymentMethodId:e}));n?.onSiteCall?.();try{let e=await t.request(r);n?.onSuccess?.(e)}catch(e){let t=pt(e,{spreadPathsToArguments:{},explicitPathsToArguments:{savedPaymentMethodId:`$[0]`},singleArgumentUnchanged:!1},[`savedPaymentMethodId`]);throw n?.onError?.(e),t}}async function wm(e){let{httpClient:t,sideEffects:n}=arguments[1],r=xm(tt({siteMemberId:e?.siteMemberId,paymentMethodTypeId:e?.paymentMethodTypeId,merchantUseAllowed:e?.merchantUseAllowed,fields:e?.fields,paging:e?.paging}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),nt(e.data)}catch(e){let t=pt(e,{spreadPathsToArguments:{},explicitPathsToArguments:{siteMemberId:`$[0].siteMemberId`,paymentMethodTypeId:`$[0].paymentMethodTypeId`,merchantUseAllowed:`$[0].merchantUseAllowed`,fields:`$[0].fields`,paging:`$[0].paging`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}async function Tm(e){let{httpClient:t,sideEffects:n}=arguments[1],r=Sm(tt({savedPaymentMethodId:e}));n?.onSiteCall?.();try{let e=await t.request(r);n?.onSuccess?.(e)}catch(e){let t=pt(e,{spreadPathsToArguments:{},explicitPathsToArguments:{savedPaymentMethodId:`$[0]`},singleArgumentUnchanged:!1},[`savedPaymentMethodId`]);throw n?.onError?.(e),t}}function Em(e){return t=>Cm(t,{httpClient:e})}function Dm(e){return t=>wm(t,{httpClient:e})}function Om(e){return t=>Tm(t,{httpClient:e})}var km=F(Em),Am=F(Dm),jm=F(Om);function Mm(e){if(!e)return;let t=``;return(e.filename||e.altText)&&(t=`/${encodeURIComponent(e.filename||e.altText)}`),e.id?`wix:image://v1/${e.id}${t}#originWidth=${e.width}&originHeight=${e.height}`:e.url}function Nm(e){return wt(Object.assign(e,{domainToMappings:{"api._api_base_domain_":[{srcPath:`/payment-method-types`,destPath:``}],"bo._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``}],"wixbo.ai":[{srcPath:`/_api/payment-method-types`,destPath:``}],"wix-bo.com":[{srcPath:`/_api/payment-method-types`,destPath:``}],"manage._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``},{srcPath:`/_api/payments/payment-method-types`,destPath:``}],_:[{srcPath:`/_api/payments/site-payment-method-types`,destPath:``},{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"cashier._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``}],"cashier.wixapps.net":[{srcPath:`/_api/payments/payment-method-types`,destPath:``},{srcPath:`/_api/payment-method-types`,destPath:``}],"cashier-services._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``}],"events._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``}],"events.wixapps.net":[{srcPath:`/_api/payment-method-types`,destPath:``}],"invoices._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``}],"premium._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``}],"pricing-plans.wixapps.net":[{srcPath:`/_api/payment-method-types`,destPath:``}],"vod-server._base_domain_":[{srcPath:`/_api/payment-method-types`,destPath:``}],"www.wixhotels.com":[{srcPath:`/_api/payment-method-types`,destPath:``}],"editor.wixapps.net":[{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"tpa.wixapps.net":[{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"apps._base_domain_":[{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"editor._base_domain_":[{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"blocks._base_domain_":[{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"create.editorx":[{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"www._base_domain_":[{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"www.wixapis.com":[{srcPath:`/payments/site-payment-method-types/v1/site-payment-method-types`,destPath:`/v1/site-payment-method-types`}],"*.dev.wix-code.com":[{srcPath:`/payments/site-payment-method-types/v1/site-payment-method-types`,destPath:`/v1/site-payment-method-types`}],"manage.base44.com":[{srcPath:`/_api/payment-method-types`,destPath:``},{srcPath:`/_api/payments/payment-method-types`,destPath:``}],"payments.base44.com":[{srcPath:`/_api/payment-method-types`,destPath:``},{srcPath:`/_api/payments/payment-method-types`,destPath:``},{srcPath:`/_api/site-payment-method-types`,destPath:``}]}}))}var Pm=`@wix/auto_sdk_payments_site-payment-method-types`;function Fm(e){function t({host:t}){return{entityFqdn:`wix.payments.site_payment_method_types.v1.site_payment_method_type`,method:`GET`,methodFqn:`wix.payments.site_payment_method_types.v1.SitePaymentMethodTypeService.ListSitePaymentMethodTypes`,packageName:Pm,migrationOptions:{optInTransformResponse:!0},url:Nm({protoPath:`/v1/site-payment-method-types`,data:e,host:t}),params:Ct(e)}}return t}var Im=[{path:`sitePaymentMethodTypes.merchantFlow.icons.image`},{path:`sitePaymentMethodTypes.buyerFlow.icons.image`}];async function Lm(e){let{httpClient:t,sideEffects:n}=arguments[1],r=Fm(tt({ids:e?.ids,languageCode:e?.languageCode,countryCode:e?.countryCode,currencyCode:e?.currencyCode,requestedFields:e?.requestedFields}));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),nt(at(e.data,[{transformFn:Mm,paths:Im}]))}catch(e){let t=pt(e,{spreadPathsToArguments:{},explicitPathsToArguments:{ids:`$[0].ids`,languageCode:`$[0].languageCode`,countryCode:`$[0].countryCode`,currencyCode:`$[0].currencyCode`,requestedFields:`$[0].requestedFields`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}function Rm(e){return t=>Lm(t,{httpClient:e})}var zm=F(Rm);y((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WIX_HOTELS_RUNNER=e.WIX_VIDEO=e.WIX_GET_SUBSCRIBERS=e.INSTAGRAM_FEED_NEW=e.INSTAGRAM_FEED=e.DEVIANTART_FEED=e.WIX_AI_CHAT_ASSISTANT=e.WIX_CHAT=e.PAY_BUTTON=e.WIX_RESTAURANTS_TABLE_RESERVATIONS=e.WIX_RESTAURANTS_MENUS_NEW=e.WIX_RESTAURANTS_MENUS=e.WIX_RESTAURANTS_ORDERS_NEW=e.WIX_RESTAURANTS_ORDERS=e.WIX_RESERVATIONS=e.NOTIFICATIONS=e.META_SITE=e.MEMBERS=e.MEMBERS_AREA_V2=e.MEMBERS_AREA=e.WIX_NEW_STORES=e.WIX_STORES=e.WIX_ECOM=e.WIX_PROMOS=e.PRICING_PLANS=e.WIX_FORUM=e.WIX_SERVICES=e.WIX_BOOKINGS=e.WIX_EVENTS=e.WIX_BLOG=e.WIX_HOTELS=e.ADMIN_PAGES=e.DASHBOARD_SALES=e.DASHBOARD_SUGGESTIONS=e.DASHBOARD_SETUP=e.BUSINESS_DASHBOARD=e.WIX_CODE_PLATFORM_VISIBILITY=e.WIX_ACCESSIBILITY_WIZARD=e.WIX_CODE_SITE_MONITORING=e.DEVELOPER_TOOLS=e.WIX_CODE_SECRETS_MANAGER=e.WIX_CODE_RELEASE_MANAGER=e.CLOUD_DATA_SCHEMA_NOTIFIER=e.OLD_BLOG=e.SITE_MEMBERS=e.DATA_BINDING=e.WIX_CODE_DUPLEXER=e.VELO=e.WIX_CODE_SITE_EXTENSION=e.WIX_CODE=void 0,e.WIX_DONATIONS=e.PRODUCT_PAGE_ON_BLOCKS=e.WIX_CHECKOUT_REQUIREMENTS=e.FERA_REVIEWS=e.WIX_HEADLESS=e.WIX_PODCAST_PLAYER=e.MEMBER_AUTHENTICATION=e.CUSTOM_LOGIN=e.SETTINGS=e.MY_ADDRESSES=e.MY_WALLET=e.MY_REWARDS=e.WIX_REFERRAL_PROGRAM=e.WIX_LOYALTY_PROGRAM=e.CMS=e.WIX_CMS=e.MULTILINGUAL=e.MEMBERS_FOLLOWERS=e.MEMBERS_STAFF_WIDGET=e.MEMBERS_PROFILE_CARD=e.MEMBERS_ACCOUNT_INFO=e.MEMBERS_ABOUT=e.MY_SUBSCRIPTIONS=e.MAP_PLUGIN=e.WIX_REVIEWS=e.WISHLIST_BLOCKS=e.RESTAURANTS=e.WIX_FILE_SHARE=e.RICH_CONTENT=e.WIX_GROUPS=e.WIX_CHALLENGES=e.FORM_APP=e.WIX_FORMS=e.WIX_FAQ=e.WIX_SITE_SEARCH=e.WIX_MUSIC=e.BANDSINTOWN=e.WIX_PORTFOLIO=e.WIX_PRO_GALLERY=e.WIX_PHOTO_ALBUMS=void 0,e.getAppDependencies=n,e.WIX_CODE=`wix-code`,e.WIX_CODE_SITE_EXTENSION=`CloudSiteExtension`,e.VELO=`2f70e2b4-ff36-472e-bdb9-ce393b13669e`,e.WIX_CODE_DUPLEXER=`af6d536e-0fc6-428b-a7f9-1d8cd6aa3703`,e.DATA_BINDING=`dataBinding`,e.SITE_MEMBERS=`SiteMembers`,e.OLD_BLOG=`79f391eb-7dfc-4adf-be6e-64434c4838d9`,e.CLOUD_DATA_SCHEMA_NOTIFIER=`f1fbeff1-05c3-4121-bdb5-75e74b6e9e51`,e.WIX_CODE_RELEASE_MANAGER=`8c41f3a6-47f7-40be-ad77-02a72cb2ddb3`,e.WIX_CODE_SECRETS_MANAGER=`4b10fcce-732d-4be3-9d46-801d271acda9`,e.DEVELOPER_TOOLS=`4b10fcce-732d-4be3-9d46-801d271acda9`,e.WIX_CODE_SITE_MONITORING=`675bbcef-18d8-41f5-800e-131ec9e08762`,e.WIX_ACCESSIBILITY_WIZARD=`9699c03d-5c19-4a7c-a454-e8109a6e43fc`,e.WIX_CODE_PLATFORM_VISIBILITY=`8048f115-449b-4dab-b0e6-e09d5ffc8199`,e.BUSINESS_DASHBOARD=`a7597ab5-1ed4-458f-a5c1-5884d5e14281`,e.DASHBOARD_SETUP=`0750d046-d599-4cfc-9f6b-e9f4af169aa9`,e.DASHBOARD_SUGGESTIONS=`cead4297-02ee-4c0f-ae07-461f4ba71b3b`,e.DASHBOARD_SALES=`f95c72b1-84de-48ec-a61b-d96d61315ffe`,e.ADMIN_PAGES=`1514b01b-cb08-41b4-8582-0a88551ac769`,e.WIX_HOTELS=`135aad86-9125-6074-7346-29dc6a3c9bcf`,e.WIX_BLOG=`14bcded7-0066-7c35-14d7-466cb3f09103`,e.WIX_EVENTS=`140603ad-af8d-84a5-2c80-a0f60cb47351`,e.WIX_BOOKINGS=`13d21c63-b5ec-5912-8397-c3a5ddb27a97`,e.WIX_SERVICES=`cc552162-24a4-45e0-9695-230c4931ef40`,e.WIX_FORUM=`14724f35-6794-cd1a-0244-25fd138f9242`,e.PRICING_PLANS=`1522827f-c56c-a5c9-2ac9-00f9e6ae12d3`,e.WIX_PROMOS=`7fdf5576-9d52-4c0a-9840-6e226f2ec415`,e.WIX_ECOM=`1380b703-ce81-ff05-f115-39571d94dfcd`,e.WIX_STORES=`1380b703-ce81-ff05-f115-39571d94dfcd`,e.WIX_NEW_STORES=`215238eb-22a5-4c36-9e7b-e7c08025e04e`,e.MEMBERS_AREA=`14cc59bc-f0b7-15b8-e1c7-89ce41d0e0c9`,e.MEMBERS_AREA_V2=`b976560c-3122-4351-878f-453f337b7245`,e.MEMBERS=`14dbefd2-01b4-fb61-32a7-3abd44da4908`,e.META_SITE=`22bef345-3c5b-4c18-b782-74d4085112ff`,e.NOTIFICATIONS=`14f25924-5664-31b2-9568-f9c5ed98c9b1`,e.WIX_RESERVATIONS=`1475ab65-206b-d79a-856d-fa10bdb479ea`,e.WIX_RESTAURANTS_ORDERS=`13e8d036-5516-6104-b456-c8466db39542`,e.WIX_RESTAURANTS_ORDERS_NEW=`9a5d83fd-8570-482e-81ab-cfa88942ee60`,e.WIX_RESTAURANTS_MENUS=`13c1402c-27f2-d4ab-7463-ee7c89e07578`,e.WIX_RESTAURANTS_MENUS_NEW=`b278a256-2757-4f19-9313-c05c783bec92`,e.WIX_RESTAURANTS_TABLE_RESERVATIONS=`f9c07de2-5341-40c6-b096-8eb39de391fb`,e.PAY_BUTTON=`6aee8fe8-66c9-47aa-a0dd-0f2c18256c4f`,e.WIX_CHAT=`14517e1a-3ff0-af98-408e-2bd6953c36a2`,e.WIX_AI_CHAT_ASSISTANT=`31ceda3c-e2c8-4e83-816d-ba293597730c`,e.DEVIANTART_FEED=`7d297b79-baed-46d7-ac58-4bd68dcb70d0`,e.INSTAGRAM_FEED=`14635256-b183-1c71-a4d2-f55179b80e8a`,e.INSTAGRAM_FEED_NEW=`deb18ef1-e0c6-4668-a7bc-4a13785eb5b7`,e.WIX_GET_SUBSCRIBERS=`1375baa8-8eca-5659-ce9d-455b2009250d`,e.WIX_VIDEO=`14409595-f076-4753-8303-9a86f9f71469`,e.WIX_HOTELS_RUNNER=`826670ba-3a6b-4157-ac72-7c4fca9ce220`,e.WIX_PHOTO_ALBUMS=`13ff8629-c1fc-e289-e81f-bc8c8968e9d6`,e.WIX_PRO_GALLERY=`14271d6f-ba62-d045-549b-ab972ae1f70e`,e.WIX_PORTFOLIO=`d90652a2-f5a1-4c7c-84c4-d4cdcc41f130`,e.BANDSINTOWN=`1405ef82-0ee0-65fb-88a1-2f172aa3573c`,e.WIX_MUSIC=`13bb5d67-1add-e770-a71f-001277e17c57`,e.WIX_SITE_SEARCH=`1484cb44-49cd-5b39-9681-75188ab429de`,e.WIX_FAQ=`14c92d28-031e-7910-c9a8-a670011e062d`,e.WIX_FORMS=`14ce1214-b278-a7e4-1373-00cebd1bef7c`,e.FORM_APP=`225dd912-7dea-4738-8688-4b8c6955ffc2`,e.WIX_CHALLENGES=`2936472a-a1ed-4ae5-9f71-614313a9f4e7`,e.WIX_GROUPS=`148c2287-c669-d849-d153-463c7486a694`,e.RICH_CONTENT=`949cfcc9-2a3f-4a96-bd6c-11d9d82763a4`,e.WIX_FILE_SHARE=`1537b24e-29d1-6d8f-b8e1-d6860f2f70b9`,e.RESTAURANTS=`9142e27e-2e30-4948-ad8f-7e128939efc4`,e.WISHLIST_BLOCKS=`a97c0203-062a-4dd5-97cf-a90f9800a13a`,e.WIX_REVIEWS=`a95a5fce-e370-4402-9ce4-96956acc747d`,e.MAP_PLUGIN=`c5fedde3-63c7-4041-a5fb-c77bbe6308dc`,e.MY_SUBSCRIPTIONS=`2bef2abe-7abe-43da-889c-53c1500a328c`,e.MEMBERS_ABOUT=`14dbef06-cc42-5583-32a7-3abd44da4908`,e.MEMBERS_ACCOUNT_INFO=`14cffd81-5215-0a7f-22f8-074b0e2401fb`,e.MEMBERS_PROFILE_CARD=`14ce28f7-7eb0-3745-22f8-074b0e2401fb`,e.MEMBERS_STAFF_WIDGET=`cffc6740-8042-48cc-a35b-d3fd03a69f0c`,e.MEMBERS_FOLLOWERS=`14ebe801-d78a-daa9-c9e5-0286a891e46f`,e.MULTILINGUAL=`14d84998-ae09-1abf-c6fc-3f3cace5bf19`,e.WIX_CMS=`e593b0bd-b783-45b8-97c2-873d42aacaf4`,e.CMS=`1973457f-c021-4da5-941f-58444ff761d4`,e.WIX_LOYALTY_PROGRAM=`553c79f3-5625-4f38-b14b-ef7c0d1e87df`,e.WIX_REFERRAL_PROGRAM=`58be0514-fc10-4eb1-886e-2909d18f33b3`,e.MY_REWARDS=`16ed1ac6-01cb-4fb6-a59e-c215cce8fdf6`,e.MY_WALLET=`4aebd0cb-fbdb-4da7-b5d1-d05660a30172`,e.MY_ADDRESSES=`1505b775-e885-eb1b-b665-1e485d9bf90e`,e.SETTINGS=`14f25dc5-6af3-5420-9568-f9c5ed98c9b1`,e.CUSTOM_LOGIN=`bbe1406a-31f5-4f3f-9e0a-b39dfd25274f`,e.MEMBER_AUTHENTICATION=`1052fa8e-e3e2-46dc-ab66-8badb2d08fe9`,e.WIX_PODCAST_PLAYER=`153e1aeb-2ec2-58c4-9715-1b25977bd56f`,e.WIX_HEADLESS=`78640cbb-be47-45f8-b6de-8ed97287872c`,e.FERA_REVIEWS=`c9064755-5cc8-4faf-a5a6-41a0150a6640`,e.WIX_CHECKOUT_REQUIREMENTS=`eeb6edab-5c38-4903-b070-58ac767a3389`,e.PRODUCT_PAGE_ON_BLOCKS=`a0c68605-c2e7-4c8d-9ea1-767f9770e087`,e.WIX_DONATIONS=`333b456e-dd48-4d6b-b32b-9fd48d74e163`;var t={};function n(e){return t[e]||[]}}))();var $=e=>`var(--${e})`;$(`wst-paragraph-1-font`),$(`wst-paragraph-2-font`),$(`wst-paragraph-3-font`),$(`wst-heading-2-font`),$(`wst-heading-3-font`),$(`wst-heading-5-font`),$(`wst-heading-6-font`),$(`wst-links-and-actions-color`),$(`wst-graphics-1-color`),$(`wst-heading-3-color`),$(`wst-heading-5-color`),$(`wst-heading-6-color`),$(`wst-paragraph-1-color`),$(`wst-paragraph-2-color`),$(`wst-paragraph-3-color`),$(`wst-primary-background-color`),$(`wst-secondary-background-color`),$(`wst-box-primary-border-top-color`),$(`wst-box-primary-border-bottom-color`),$(`wst-box-primary-border-left-color`),$(`wst-box-primary-border-right-color`),$(`wst-box-primary-border-top-left-radius`),$(`wst-box-primary-border-top-right-radius`),$(`wst-box-primary-border-bottom-left-radius`),$(`wst-box-primary-border-bottom-right-radius`),$(`wst-box-secondary-background-color`),$(`wst-box-secondary-box-shadow`),$(`wst-box-secondary-border-top-color`),$(`wst-box-secondary-border-right-color`),$(`wst-box-secondary-border-bottom-color`),$(`wst-box-secondary-border-left-color`),$(`wst-box-secondary-border-top-width`),$(`wst-box-secondary-border-right-width`),$(`wst-box-secondary-border-bottom-width`),$(`wst-box-secondary-border-left-width`),$(`wst-box-secondary-border-top-style`),$(`wst-box-secondary-border-right-style`),$(`wst-box-secondary-border-bottom-style`),$(`wst-box-secondary-border-left-style`),$(`wst-box-secondary-border-top-left-radius`),$(`wst-box-secondary-border-top-right-radius`),$(`wst-box-secondary-border-bottom-left-radius`),$(`wst-box-secondary-border-bottom-right-radius`),$(`wst-button-primary-color`),$(`wst-button-primary-background-color`),$(`wst-button-primary-font`),$(`wst-button-primary-border-top-color`),$(`wst-button-primary-border-top-style`),$(`wst-button-primary-border-right-color`),$(`wst-button-primary-border-right-style`),$(`wst-button-primary-border-bottom-color`),$(`wst-button-primary-border-bottom-style`),$(`wst-button-primary-border-left-color`),$(`wst-button-primary-border-left-style`),$(`wst-button-primary-border-top-left-radius`),$(`wst-button-primary-border-top-right-radius`),$(`wst-button-primary-border-bottom-left-radius`),$(`wst-button-primary-border-bottom-right-radius`),$(`wst-button-primary-padding-top`),$(`wst-button-primary-padding-bottom`),$(`wst-button-primary-padding-left`),$(`wst-button-primary-padding-right`),$(`wst-button-primary-box-shadow`),$(`wst-button-secondary-color`),$(`wst-button-secondary-font`),$(`wst-button-secondary-background-color`),$(`wst-button-secondary-border-top-color`),$(`wst-button-secondary-border-top-width`),$(`wst-button-secondary-border-top-style`),$(`wst-button-secondary-border-top-left-radius`),$(`wst-button-tertiary-color`),$(`wst-button-tertiary-background-color`),$(`wst-button-tertiary-font`),$(`wst-system-alert-color`),$(`wst-system-error-color`),$(`wst-system-disabled-color`),$(`wst-system-line-1-color`),$(`wst-system-line-1-width`),$(`wst-base-1-color`),$(`wst-base-2-color`),$(`wst-shade-1-color`),$(`wst-shade-2-color`),$(`wst-shade-3-color`),$(`wst-accent-1-color`),$(`wst-accent-3-color`);var Bm=/^System error occurred/,Vm=({name:e,message:t,stack:n})=>{let r=n?.split(`
9
+ `,1)[0];return Bm.test(t)&&r?.startsWith(`${e}: `)?r.slice(e.length+2):t},Hm=e=>{let{response:t,status:n}=e??{};return t==null&&n==null},Um=e=>{let t=e.requestId??e.details?.requestId;if(!(e.status!=null||t!=null||Bm.test(e.message)))return e;let n=Hm(e)?`no response`:[e.status!=null&&`status ${e.status}`,t!=null&&`request-id ${t}`].filter(Boolean).join(`, `);return Object.assign(Object.create(Object.getPrototypeOf(e)),{name:e.name,message:`${Vm(e)} (${n})`,stack:e.stack,cause:e})},Wm=e=>e instanceof Error?Um(e):e instanceof Response?Error(`Request failed with status ${e.status}`,{cause:e}):Error(String(e),{cause:e}),Gm=(e,t=`request`)=>{console.error(`[${t}]`,e);try{td.getMonitoringClient().captureException(Wm(e),{tags:{scope:t}})}catch{}},Km=1e3,qm=!1,Jm=-1/0;typeof window<`u`&&(window.addEventListener(`beforeunload`,()=>{Jm=Date.now()}),window.addEventListener(`pagehide`,()=>{qm=!0}),window.addEventListener(`pageshow`,()=>{qm=!1,Jm=-1/0}));var Ym=()=>qm||Date.now()-Jm<=Km,Xm=e=>(e instanceof TypeError||e?.name===`AbortError`)&&Hm(e),Zm=e=>Ym()&&Xm(e),Qm=e=>e instanceof TypeError&&Hm(e)&&!Ym(),$m=e=>()=>e().catch(t=>{if(Qm(t))return e();throw t}),eh=e=>typeof e.message==`string`,th=e=>{try{let t=td.getMonitoringClient();return eh(t)?void 0:t.startSpanManual({name:e,tags:{scope:e}})}catch{return}},nh=e=>{try{e()}catch{}},rh=async(e,t,{errorCodesMap:n={},statusCodesMap:r,serverError:i,isExpected:a,isRead:o=!1}={})=>{let s=th(e);try{let e=await Zu(o?$m(t):t,n,{statusCodesOverrides:r,serverErrorOverride:i});if(e instanceof Response&&!e.ok)throw e;return nh(()=>s?.end()),e}catch(t){throw a?.(t)||Zm(t)?nh(()=>s?.end()):s?(console.error(`[${e}]`,t),nh(()=>s.fail(Wm(t)))):Gm(t,e),t}},ih={async listSavedPaymentMethods(e,t=null){return rh(`myWallet.listSavedPaymentMethods`,()=>Am({siteMemberId:`me`,paging:t?{limit:e,cursor:t}:{limit:e}}),{isRead:!0})},async listSitePaymentMethodTypes(e){return rh(`myWallet.listSitePaymentMethodTypes`,()=>zm({ids:e}),{isRead:!0})},async markPrimary(e){return rh(`myWallet.markSavedPaymentMethodPrimary`,()=>jm(e))},async remove(e){return rh(`myWallet.deleteSavedPaymentMethod`,()=>km(e))}},ah=`logo_large_rectangle_light`,oh={icons:{},names:{}};async function sh(e){if(!e.length)return oh;try{let t=await ih.listSitePaymentMethodTypes(e);return{icons:uh(t),names:ch(t)}}catch{return oh}}function ch(e){let t={};for(let n of e.sitePaymentMethodTypes??[]){let e=n._id??n.id;e&&n.displayName&&(t[e]=n.displayName)}return t}function lh(e){if(!e)return null;let t=typeof e==`string`?e:e.url??``;return t.startsWith(`http`)?t:null}function uh(e){let t={};for(let n of e.sitePaymentMethodTypes??[]){let e=n.buyerFlow?.icons??[],r=e.find(e=>e.tag===ah&&e.format===`SVG`)??e.find(e=>e.tag===ah)??e[0],i=n._id??n.id,a=lh(r?.image);i&&a&&(t[i]=a)}return t}function dh(e){return e.paymentMethod?.paymentMethodBrandId??e.paymentMethod?.paymentMethodTypeId??null}function fh(e){return[...new Set(e.map(dh).filter(e=>!!e))]}function ph(e,t){return{icons:{...e.icons,...t.icons},names:{...e.names,...t.names}}}async function mh(e,t,n=oh){let r=await ih.listSavedPaymentMethods(e,t),i=r.savedPaymentMethods??[],a=await sh(fh(i).filter(e=>!n.names[e]&&!n.icons[e]));return{response:{savedPaymentMethods:i},brands:{icons:{...n.icons,...a.icons},names:{...n.names,...a.names}},cursor:r.pagingMetadata?.cursors?.next??null,pages:1}}function hh(e,t){return{response:{savedPaymentMethods:[...e.response.savedPaymentMethods??[],...t.response.savedPaymentMethods??[]]},brands:{icons:{...e.brands.icons,...t.brands.icons},names:{...e.brands.names,...t.brands.names}},cursor:t.cursor,pages:e.pages+t.pages}}async function gh(e,t=1,n=oh){let r=await mh(e,null,n);for(;r.cursor&&r.pages<(typeof t==`function`?t():t);)r=hh(r,await mh(e,r.cursor,r.brands));return r}function _h(e,t){return{...e,response:{savedPaymentMethods:t(e.response.savedPaymentMethods??[])}}}function vh(e,t){return _h(e,e=>[...e].sort((e,t)=>Number(!!t.primary)-Number(!!e.primary)).map(e=>({...e,primary:e._id===t})))}function yh(e,t){return _h(e,e=>e.filter(e=>e._id!==t))}var bh=e=>e.cursor!==null,xh=e=>({apply:t=>vh(t,e),needsReread:bh}),Sh=e=>({apply:t=>yh(t,e),needsReread:t=>{let n=t.response.savedPaymentMethods??[],r=n.some(t=>t._id===e&&t.primary);return bh(t)||r&&n.length>1}});function Ch(e){return e}var wh=Ch(`@wix/site-service-locale`),Th=Ch(`@wix/site-service-renderer-configuration`),Eh=e=>{try{return g(e)}catch{return}},Dh=e=>e.toLowerCase()===`jp`?`ja`:e;function Oh(){let e=Eh(Th)?.languageCode,t=Eh(wh)?.language;return Dh(e||t||`en`)}var kh=e=>{let[t=``]=e.toLowerCase().split(/[-_]/);return t===`jp`?`ja`:t},Ah=(e,t)=>Object.entries(e).find(([e])=>e.endsWith(`/messages_${t}.json`))?.[1],jh=new WeakMap,Mh=(e,t)=>{let n=jh.get(e)??new Map;jh.set(e,n);let r=n.get(t);return r||(r=xi({locale:t,messages:Ah(e,kh(t))??Ah(e,`en`)}),n.set(t,r)),r},Nh=e=>Mh(e,Oh()),Ph=Object.assign({"../../../assets/locale/units/wixPayments.WalletContext/messages_ar.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_bg.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_ca.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_cs.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_da.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_de.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_el.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_en.json":{"my-wallet.dummy.cardholder-name":`Name Surname`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_es.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_fi.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_fr.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_he.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_hi.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_hr.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_hu.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_id.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_it.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_ja.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_ko.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_lt.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_lv.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_ms.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_nl.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_no.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_pl.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_pt.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_ro.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_ru.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_sk.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_sl.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_sv.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_th.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_tl.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_tr.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_uk.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_vi.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`},"../../../assets/locale/units/wixPayments.WalletContext/messages_zh.json":{"my-wallet.dummy.cardholder-name":`John Doe`,"my-wallet.toast.default-updated":`Your default payment method was updated.`,"my-wallet.toast.method-removed":`Your payment method was removed.`}}),Fh={card:{defaultBadge:{key:`my-wallet.card.default-badge`,fallback:`Default`},manage:{key:`my-wallet.card.manage`,fallback:`Manage`},setAsDefault:{key:`my-wallet.card.set-as-default`,fallback:`Set as default`},remove:{key:`my-wallet.card.remove`,fallback:`Remove`},removeLong:{key:`my-wallet.card.remove-payment-method`,fallback:`Remove Payment Method`},drawerTitle:{key:`my-wallet.card.manage-title`,fallback:`Manage {{method}}`},close:{key:`my-wallet.card.close`,fallback:`Close`},title:{key:`my-wallet.card.title`,fallback:`{{brand}} (•••• {{lastFourDigits}})`},accountTitle:{key:`my-wallet.card.account-title`,fallback:`{{brand}} ({{email}})`},cardholderLabel:{key:`my-wallet.card.cardholder-label`,fallback:`Cardholder:`},accountHolderLabel:{key:`my-wallet.card.account-holder-label`,fallback:`Account holder:`}},removeConfirmation:{title:{key:`my-wallet.remove-confirmation.title`,fallback:`Remove this payment method?`},text:{key:`my-wallet.remove-confirmation.text`,fallback:`{{method}} will be removed from your wallet and won’t be available at checkout.`},confirm:{key:`my-wallet.remove-confirmation.confirm`,fallback:`Remove`},cancel:{key:`my-wallet.remove-confirmation.cancel`,fallback:`Cancel`}},toast:{defaultUpdated:{key:`my-wallet.toast.default-updated`,fallback:`Your default payment method was updated.`},methodRemoved:{key:`my-wallet.toast.method-removed`,fallback:`Your payment method was removed.`}},status:{cardExpired:{key:`my-wallet.status.card-expired`,fallback:`Card expired`},expirationDate:{key:`my-wallet.status.expiration-date`,fallback:`Expiration date: {{date}}`},expires:{key:`my-wallet.status.expires`,fallback:`Expires {{date}}`}},brand:{generic:{key:`my-wallet.brand.generic`,fallback:`Card`}},dummy:{cardholderName:{key:`my-wallet.dummy.cardholder-name`,fallback:`Name Surname`}}},Ih=((e,t=e)=>({max:e,defaultValue:t,resolve:n=>typeof n==`number`&&Number.isFinite(n)?Math.min(Math.max(Math.floor(n),1),e):t}))(10),Lh=Ch(`@wix/site-service-business-logger`);function Rh(){let{reportBi:e}=g(Lh);return o(({src:t,evid:n,endpoint:r,params:i})=>{e({src:t,evid:n,...i},{endpoint:r})},[e])}function zh(e){return{evid:220,src:64,endpoint:``,params:e}}function Bh(e){return{evid:221,src:64,endpoint:``,params:e}}function Vh(e){return{evid:473,src:64,endpoint:``,params:e}}var Hh=`removed`,Uh=`remove_error`,Wh=`mark_primary_error`,Gh=()=>zh({}),Kh=e=>Bh(e),qh=e=>Vh(e),Jh=100;function Yh(e,t){let n=e&&t.names[e]||null,r=e&&t.icons[e]||null,i=r?{url:r,...n&&{alt:n}}:null;return n||i?{displayName:n,icon:i}:null}function Xh(e,t){let n=t?e.paymentMethod?.cardInfo:null;return{lastFourDigits:n?.lastFourDigits||null,expirationMonth:n?.expirationMonth||null,expirationYear:n?.expirationYear||null,cardholderName:n?.cardholderName||null}}function Zh(e){let t=e.paymentMethod?.typeId===`payPal`?`payPal`:`creditCard`,n=e.paymentMethod?.accountInfo;return{typeId:t,accountInfo:t===`payPal`?{email:n?.email||null,accountHolder:n?.accountHolder||null}:null}}function Qh(e){return(e.savedPaymentMethods??[]).filter(e=>!!(e._id&&e.paymentMethod)).sort((e,t)=>Number(!!t.primary)-Number(!!e.primary))}function $h(e,t,n,r){return Qh(e).map(e=>{let i=e._id??``,a=Zh(e);return{id:i,primary:!!e.primary,...Xh(e,a.typeId===`creditCard`),paymentMethod:a,paymentMethodType:Yh(dh(e),t),onSetDefault:()=>n(i),onRemove:()=>r(i)}})}var eg=({initialPromise:e,pageSize:t,children:n})=>{let r=_n(e),i=dm(),{defaultUpdated:s,methodRemoved:f}=mm({defaultUpdated:Fh.toast.defaultUpdated,methodRemoved:Fh.toast.methodRemoved}),[p,m]=d(r),[g,_]=d(t),[v,y]=d([]),b=u(0),x=u(0),S=Rh(),[C,ee]=d(!1),w=u(p),T=u(g),E=u(!1);c(()=>{w.current=p,T.current=g},[g,p]),c(()=>{v.length!==0&&(v.forEach(e=>e()),y([]))},[v]);let D=o(async(e,t,n,r)=>{try{await e}catch(e){let{message:t}=Qu(e);return i.error(t),S(qh({toastText:t,toastType:r})),!1}let o=++b.current,s=w.current,c=e=>new Promise(t=>{a(()=>{m(e),y(e=>[...e,t])})});if(t.needsReread(s)||x.current>0){x.current+=1;let e=c(t.apply),n=await gh(Jh,()=>w.current.pages,s.brands).catch(()=>null).finally(()=>{--x.current});await e,n&&o===b.current&&await c(e=>e.pages>Math.max(s.pages,n.pages)?e:{...n,brands:ph(e.brands,n.brands)})}else await c(t.apply);return i.success(n),!0},[S,i]),te=o(async()=>{let e=w.current,n=Qh(e.response).length>T.current;if(!(!n&&!e.cursor||E.current)){E.current=!0,ee(!0);try{let r=n?null:await mh(Jh,e.cursor);await new Promise(n=>{a(()=>{r&&m(t=>t===e?hh(t,r):t),_(e=>e+t),ee(!1),y(e=>[...e,n])})})}catch{}finally{E.current=!1,ee(!1)}}},[t]),ne=o(e=>D(ih.markPrimary(e),xh(e),s,Wh),[s,D]),re=o(async e=>{let t=await D(ih.remove(e),Sh(e),f,Uh);return t&&S(qh({toastText:f,toastType:Hh})),t},[f,S,D]),O=l(()=>$h(p.response,p.brands,ne,re),[re,ne,p]),k=l(()=>O.slice(0,g),[O,g]),ie=l(()=>({savedPaymentMethods:k,isLoading:C,hasMore:O.length>g||p.cursor!==null,onLoadMore:te}),[O.length,C,te,k,g,p.cursor]);return h(hm.Provider,{value:ie,children:[i.themeAnchor,n]})},tg=({children:e})=>{let t=l(()=>({savedPaymentMethods:[],isLoading:!0,hasMore:!1,onLoadMore:()=>Promise.resolve()}),[]);return m(hm.Provider,{value:t,children:e})},ng=({pageSize:e,children:t})=>{let[r,i]=d(null),o=Rh();return c(()=>{let t=Date.now();o(Gh());let n=gh(Jh);n.then(({response:n})=>{let r=Qh(n).slice(0,e);o(Kh({duration:Date.now()-t,hasSavedPaymentMethods:r.length,paymentMethodsList:r.map(e=>e.paymentMethod?.typeId??``).join(`,`)}))},()=>o(Kh({duration:Date.now()-t}))),a(()=>{i(n)})},[]),m(n,{fallback:m(tg,{children:t}),children:r?m(eg,{initialPromise:r,pageSize:e,children:t}):m(tg,{children:t})})},rg=({pageSize:e,children:t})=>{let n=Nh(Ph);return m(Wi,{i18n:n,children:m(ng,{pageSize:Ih.resolve(e),children:t})})},ig=pn(`0180e928-3204-4f30-ae9a-90edf110722c`);export{rg as default,ig as injectAccessTokenGetter,gm as useWallet};
10
+ //# sourceMappingURL=context-provider-0180e928-3204-4f30-ae9a-90edf110722c-BkTBgUF3.js.map