PageSourceSearch

https://www.vistaprint.dk/assets/ubik/web/@vp/fragment-help-center…/0.0.62/lib/web/systemjs/asset-provider.js

js vistaprint.dk collected 2026-10-03 21:27:16 UTC 269,819 bytes, 29 lines download raw bytes

1System.register(["@vp/ab-reader","react","react/jsx-runtime","@vp/swan","@vp/ubik-context"],(function($,C){"use strict";var Jn,Yn,Zn,Tt,lt,ct,J,Ke,U,F,X,Y,he,B,Xn,tr,er,nr,rr,R,ar,ir,He,or,sr;return{setters:[function(P){Jn=P.getVariation,Yn=P.initialize,Zn=P.waitTillAvailable,Tt=P.isFeatureEnabled},function(P){lt=P.createContext,ct=P.useContext,J=P.useMemo,Ke=P.default,U=P.useRef,F=P.useCallback,X=P.useState,Y=P.useEffect,he=P.createElement,B=P,Xn=P.Suspense,tr=P.lazy,er=P.isValidElement,nr=P.cloneElement,rr=P.Fragment},function(P){R=P.jsx},function(P){ar=P.ScreenClassProvider},function(P){ir=P.useStyles,He=P.useUserContext,or=P.IdentityProvider,sr=P.useIdentity}],execute:(function(){$({G:It,H:$o,I:vt,J:q,L:Of,P:Pf,Q:_,R:Ii,a4:Ir,a8:me,af:Fi,w:Pi});const P=$("A",{OUT_OF_BUSINESS_HOURS:"OUT_OF_BUISNESS_HOURS",DISABLED:"DISABLED",BLOCKED:"BLOCKED",EMERGENCY:"EMERGENCY"}),ro="UNKNOWN",ao=new Set(Object.values(P)),io=$("a0",e=>{if(!(e==null||e===""))return ao.has(e)?e:ro}),Rh=$("v",e=>({isAvailable:e?.isAvailable??!1,reason:io(e?.reason)})),oo=new Set(["en-au","en-nz","en-ie","pt-pt","en-us","en-gb","nl-nl","sv-se","nb-no","fi-fi","da-dk","fr-ca","en-ca","fr-ch","it-ch","de-ch","es-us"]),so=new Set(["en-in"]),uo=new Set(["en-ca","en-us","en-au","en-nz","en-sg","en-gb","en-ie","fr-fr"]),lo=new Set(["en-us","en-ca"]),co=["en-au","en-nz","en-sg","en-ie","pt-pt","es-es","en-in","en-us","en-gb","it-it","nl-nl","nl-be","fr-be","sv-se","nb-no","fi-fi","fr-fr","da-dk","fr-ca","en-ca","de-de","de-at","fr-ch","it-ch","de-ch","es-us"],fo={chat:!1,phone:!0,email:!0,callback:!1,vistaAssistant:!1},ho=e=>({chat:!so.has(e),phone:!0,email:!0,callback:oo.has(e),vistaAssistant:uo.has(e)}),po=Object.fromEntries(co.map(e=>[e,ho(e)])),At=$("q",e=>e.toLowerCase().replace("_","-")),ur=$("g",e=>{const t=At(e);return po[t]??fo}),Lh=$("i",e=>lo.has(At(e))),Dh=$("r",(e,t)=>e.callback&&!t?"callback":e.phone&&(t||!e.callback)?"phone":"none"),lr={standard:[],proadvantage:[],premiumProadvantage:[]},jh=$("s",e=>e.map(n=>{const r=n.match(/^(.+?)(\d.*)$/);if(!r)return{days:n.replace(/\./g,"").trim(),time:""};const[,a,i]=r;return{days:a.replace(/\./g,"").replace(/-\s*$/,"").trim(),time:i.trim()}})),Ve=$("k",{vistaAssistantExperiment:"vista_assistant_always_on_v2",chatVsVaExperiment:"chat_vs_va_us_v2"}),ze=new Set(["en-gb","en-ie"]),go="test",Mh=$("f",(e,t)=>{const n=At(e);return ur(n).vistaAssistant?ze.has(n)&&t?.[Ve.vistaAssistantExperiment]===go:!1}),Uh=$("a",(e,t)=>{const n=At(e);return ur(n).vistaAssistant&&ze.has(n)&&!!t?.[Ve.vistaAssistantExperiment]}),Bh=$("b",e=>{const t=At(e);return ze.has(t)&&Jn(Ve.vistaAssistantExperiment)||void 0}),_t={VISTAPRINT:"vistaprint",NATIONAL_PEN:"national-pen"},mo=["en-ie","en-us","en-gb"],cr=$("n",e=>e===_t.NATIONAL_PEN),qh=$("o",e=>{const t=e?At(e):void 0;return mo.some(n=>n===t)}),yo=e=>cr(e)?_t.NATIONAL_PEN:_t.VISTAPRINT,vo=["firstName","lastName","email","phone","country","description","orderNumber","fileUpload","intentId","optInRecording","selectedLineItemIds","selectedWorkIds","websiteDomain"];new Set(vo);const bo=(e,t=!1)=>({culture:e,developmentMode:t,options:{requireSession:!0,customText:"Sign in to see your account"}});function dr(e){const t={original:JSON.stringify(e),name:"UnknownError",message:"An unknown error occurred",isNetworkError:!1,isParseError:!1,details:""},n={};if(e==null)return t.message=`Error value is ${e}`,t;if(typeof e!="object")return t.name=typeof e=="string"?"StringError":`${typeof e}Error`,t.message=String(e),t;try{if(e instanceof Error){t.name=e.name||"Error",t.message=e.message||"An error occurred",t.stack=e.stack,(e instanceof SyntaxError||e instanceof TypeError)&&(t.isParseError=!0);for(const r in e)r!=="name"&&r!=="message"&&r!=="stack"&&(n[r]=e[r])}typeof DOMException<"u"&&e instanceof DOMException&&(t.isNetworkError=!0,t.code=e.code,t.name=e.name,t.message=e.message),"name"in e&&typeof e.name=="string"&&(t.name=e.name),"message"in e&&typeof e.message=="string"&&(t.message=e.message),"code"in e&&(t.code=e.code),"status"in e&&typeof e.status=="number"&&(t.status=e.status,t.isNetworkError=!0,"statusText"in e&&(t.message=`${t.message} - ${e.statusText}`,n.statusText=e.statusText),"url"in e&&(n.url=e.url)),(t.name==="NetworkError"||t.name==="AbortError"||t.message.includes("network")||t.message.includes("Network"))&&(t.isNetworkError=!0),t.name==="SyntaxError"&&t.message.includes("JSON")&&(t.isParseError=!0);for(const r in e)if(r!=="name"&&r!=="message"&&r!=="stack"&&r!=="status"&&r!=="statusText"&&r!=="url"&&r!=="code")try{n[r]=e[r]}catch{}}catch(r){n.parserError=String(r)}return{...t,details:JSON.stringify(n)}}function It(e){if(typeof e=="function")try{const t=e();return t instanceof Promise?It(t):{data:t}}catch(t){return{error:dr(t)}}return e.then(t=>({data:t})).catch(t=>({error:dr(t)}))}function $o(e){const t=new Error(e.message);return t.name=e.name,e.stack&&(t.stack=e.stack),t}const fr=lt({helpCenterUrls:null,phoneShortSchedules:lr,ordersData:null,setOrdersData:()=>{},workEntitiesData:null,setWorkEntitiesData:()=>{},fulfillmentData:new Map,setFulfillmentData:()=>{},showOrderNumberInput:!1,setShowOrderNumberInput:()=>{},concordApiServiceUrl:"https://care-concord-service.prod.careai.vpsvc.com",bopApiServiceUrl:"https://bop.orders.vpsvc.com",concordTenantId:""}),Kh=$("u",()=>ct(fr)),Hh=$("$",5),Vh=$("C","/customer-care/help-center/contact-us"),zh=$("c",(e,t)=>`${e}?channel=${t}`),hr="en_us",Co=(e,t,n)=>e&&t?t:n(),wo=$("U",(e,t,n)=>(!e||t==null||t===!0)&&n),pr=lt({...{enabled:!1,content:null},copy:(e,t)=>t(),show:(e,t)=>t}),So=({enabled:e=!1,content:t=null,children:n})=>{const r=e&&t!==null,a=J(()=>({enabled:r,content:t,copy:(i,o)=>
vendor: 5,049 bytes, line 1
1Co(r,i,o),show:(i,o)=>wo(r,i,o)}),[r,t]);return R(pr.Provider,{value:a,children:n})},Wh=$("j",()=>ct(pr)),S=e=>typeof e=="string",qt=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},gr=e=>e==null?"":""+e,Eo=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},xo=/###/g,mr=e=>e&&e.indexOf("###")>-1?e.replace(xo,"."):e,yr=e=>!e||S(e),Kt=(e,t,n)=>{const r=S(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(yr(e))return{};const i=mr(r[a]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++a}return yr(e)?{}:{obj:e,k:mr(r[a])}},vr=(e,t,n)=>{const{obj:r,k:a}=Kt(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let i=t[t.length-1],o=t.slice(0,t.length-1),s=Kt(e,o,Object);for(;s.obj===void 0&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),s=Kt(e,o,Object),s?.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},Oo=(e,t,n,r)=>{const{obj:a,k:i}=Kt(e,t,Object);a[i]=a[i]||[],a[i].push(n)},pe=(e,t)=>{const{obj:n,k:r}=Kt(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},No=(e,t,n)=>{const r=pe(e,n);return r!==void 0?r:pe(t,n)},br=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?S(e[r])||e[r]instanceof String||S(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):br(e[r],t[r],n):e[r]=t[r]);return e},Ct=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Po={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const To=e=>S(e)?e.replace(/[&<>"'\/]/g,t=>Po[t]):e;class Ao{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const _o=[" ",",","?","!",";"],Io=new Ao(20),Fo=(e,t,n)=>{t=t||"",n=n||"";const r=_o.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const a=Io.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!a.test(e);if(!i){const o=e.indexOf(n);o>0&&!a.test(e.substring(0,o))&&(i=!0)}return i},Ge=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let a=e;for(let i=0;i<r.length;){if(!a||typeof a!="object")return;let o,s="";for(let l=i;l<r.length;++l)if(l!==i&&(s+=n),s+=r[l],o=a[s],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<r.length-1)continue;i+=l-i+1;break}a=o}return a},Ht=e=>e?.replace(/_/g,"-"),ko={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)}};let Ro=class Qn{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||ko,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(S(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Qn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Qn(this.logger,t)}};var it=new Ro;class ge{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,i])=>{for(let o=0;o<i;o++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,i])=>{for(let o=0;o<i;o++)a.apply(a,[t,...n])})}}class $r extends ge{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,a={}){const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,o=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):S(r)&&i?s.push(...r.split(i)):s.push(r)));const l=pe(this.data,s);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),l||!o||!S(r)?l:Ge(this.data?.[t]?.[n],r,i)}addResource(t,n,r,a,i={silent:!1}){const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split("."),a=n,n=s[1]),this.addNamespaces(n),vr(this.data,s,a),i.silent||this.emit
1("added",t,n,r,a)}addResources(t,n,r,a={silent:!1}){for(const i in r)(S(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,i,o={silent:!1,skipCopy:!1}){let s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),a=r,r=n,n=s[1]),this.addNamespaces(n);let l=pe(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?br(l,r,i):l={...l,...r},vr(this.data,s,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var Cr={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(i=>{t=this.processors[i]?.process(t,n,r,a)??t}),t}};const wr=Symbol("i18next/PATH_KEY");function Lo(){const e=[],t=Object.create(null);let n;return t.get=(r,a)=>(n?.revoke?.(),a===wr?e:(e.push(a),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function me(e,t){const{[wr]:n}=e(Lo()),r=t?.keySeparator??".",a=t?.nsSeparator??":";if(n.length>1&&a){const i=t?.ns;if((i?Array.isArray(i)?i:[i]:[]).includes(n[0]))return`${n[0]}${a}${n.slice(1).join(r)}`}return n.join(r)}const Sr={},We=e=>!S(e)&&typeof e!="boolean"&&typeof e!="number";class ye extends ge{constructor(t,n={}){super(),Eo(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=it.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const a=this.resolve(t,r);if(a?.res===void 0)return!1;const i=We(a.res);return!(r.returnObjects===!1&&i)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Fo(t,r,a);if(o&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:S(i)?[i]:i};const u=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(a)}return{key:t,namespaces:S(i)?[i]:i}}translate(t,n,r){let a=typeof n=="object"?{...n}:n;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";typeof t=="function"&&(t=me(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]);const i=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],a),u=l[l.length-1];let c=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const d=a.lng||this.language,f=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return f?i?{res:`${u}${c}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:`${u}${c}${s}`:i?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:s;const h=this.resolve(t,a);let p=h?.res;const g=h?.usedKey||s,m=h?.exactUsedKey||s,y=["[object Number]","[object Function]","[object RegExp]"],v=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,x=a.count!==void 0&&!S(a.count),O=ye.hasDefaultValue(a),A=x?this.pluralResolver.getSuffix(d,a.count,a):"",I=a.ordinal&&x?this.pluralResolver.getSuffix(d,a.count,{ordinal:!1}):"",k=x&&!a.ordinal&&a.count===0,w=k&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${A}`]||a[`defaultValue${I}`]||a.defaultValue;let E=p;b&&!p&&O&&(E=w);const T=We(E),M=Object.prototype.toString.apply(E);if(b&&E&&T&&y.indexOf(M)<0&&!(S(v)&&Array.isArray(E))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const W=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,E,{...a,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(h.res=W,h.usedParams=this.getUsedParamsDetails(a),h):W}if(o){const W=Array.isArray(E),Q=W?[]:{},Be=W?m:g;for(const ut in E)if(Object.prototype.hasOwnProperty.call(E,ut)){const pt=`${Be}${o}${ut}`;O&&!p?Q[ut]=this.translate(pt,{...a,defaultValue:We(w)?w[ut]:void 0,joinArrays:!1,ns:l}):Q[ut]=this.translate(pt,{...a,joinArrays:!1,ns:l}),Q[ut]===pt&&(Q[ut]=E[ut])}p=Q}}else if(b&&S(v)&&Array.isArray(p))p=p.join(v),p&&(p=this.extendTranslation(p,t,a,r));else{let W=!1,Q=!1;!this.isValidLookup(p)&&O&&(W=!0,p=w),this.isValidLookup(p)||(Q=!0,p=s);const ut=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Q?void 0:p,pt=O&&w!==p&&this.options.updateMissing;if(Q||W||pt){if(this.logger.log(pt?"updateKey":"missingKey",d,u,s,pt?w:p),o){const Z=this.resolve(s,{...a,keySeparator:!1});Z&&Z.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 ce=[];const qe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&qe&&qe[0])for(let Z=0;Z<qe.length;Z++)ce.push(qe[Z]);else this.options.saveMissingTo==="all"?ce=this.languageUtils.toResolveHierarchy(a.lng||this.language):ce.push(a.lng||this.language);const eo=(Z,Pt,de)=>{const no=O&&de!==p?de:ut;this.options.missingKeyHandler?this.options.missingKeyHandler(Z,u,Pt,no,pt,a):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(Z,u,Pt,no,pt,a),this.emit
vendor: 20,311 bytes, line 1
1("missingKey",Z,u,Pt,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?ce.forEach(Z=>{const Pt=this.pluralResolver.getSuffixes(Z,a);k&&a[`defaultValue${this.options.pluralSeparator}zero`]&&Pt.indexOf(`${this.options.pluralSeparator}zero`)<0&&Pt.push(`${this.options.pluralSeparator}zero`),Pt.forEach(de=>{eo([Z],s+de,a[`defaultValue${de}`]||w)})}):eo(ce,s,w))}p=this.extendTranslation(p,t,a,h,r),Q&&p===s&&this.options.appendNamespaceToMissingKey&&(p=`${u}${c}${s}`),(Q||W)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${s}`:s,W?p:void 0,a))}return i?(h.res=p,h.usedParams=this.getUsedParamsDetails(a),h):p}extendTranslation(t,n,r,a,i){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const l=S(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(l){const d=t.match(this.interpolator.nestingRegexp);u=d&&d.length}let c=r.replace&&!S(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),t=this.interpolator.interpolate(t,c,r.lng||this.language||a.usedLng,r),l){const d=t.match(this.interpolator.nestingRegexp),f=d&&d.length;u<f&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...d)=>i?.[0]===d[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${n[0]}`),null):this.translate(...d,n),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,s=S(o)?[o]:o;return t!=null&&s?.length&&r.applyPostProcessor!==!1&&(t=Cr.handle(s,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,a,i,o,s;return S(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),c=u.key;a=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&!S(n.count),h=f&&!n.ordinal&&n.count===0,p=n.context!==void 0&&(S(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(m=>{this.isValidLookup(r)||(s=m,!Sr[`${g[0]}-${m}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&(Sr[`${g[0]}-${m}`]=!0,this.logger.warn(`key "${a}" for languages "${g.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(y=>{if(this.isValidLookup(r))return;o=y;const v=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,y,m,n);else{let x;f&&(x=this.pluralResolver.getSuffix(y,n.count,n));const O=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(n.ordinal&&x.indexOf(A)===0&&v.push(c+x.replace(A,this.options.pluralSeparator)),v.push(c+x),h&&v.push(c+O)),p){const I=`${c}${this.options.contextSeparator||"_"}${n.context}`;v.push(I),f&&(n.ordinal&&x.indexOf(A)===0&&v.push(I+x.replace(A,this.options.pluralSeparator)),v.push(I+x),h&&v.push(I+O))}}let b;for(;b=v.pop();)this.isValidLookup(r)||(i=b,r=this.getResource(y,m,b,n))}))})}),{res:r,usedKey:a,exactUsedKey:i,usedLng:o,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,a={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!S(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const i of n)delete a[i]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class Er{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=it.create("languageUtils")}getScriptPartFromCode(t){if(t=Ht(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Ht(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(S(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getScriptPartFromCode(r);if(this.isSupportedCode(a))return n=a;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),S(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),a=[],i=o=>{o&&(this.isSupportedCode(o)?a.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return S(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):S(t)&&i(this.formatLanguageCode(t)),r.forEach(o=>{a.indexOf(o)<0&&i(this.formatLanguageCode(o))}),a}}const xr={zero:0,one:1,two:2,few:3,many:4,other:5},Or={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Do{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=it.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=Ht(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:a});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(r,{type:a})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Or;if(!t.match(/-|_/))return Or;const l=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(l,n)}return this.pluralRulesCache[i]=o,o}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,i)=>xr[a]-xr[i]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,n,r={}){const a=this.getRule(t,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const Nr=(e,t,n,r=".",a=!0)=>{let i=No(e,t,n);return!i&&a&&S(n)&&(i=Ge(e,n,r),i===void 0&&(i=Ge(t,n,r))),i},Qe=e=>e.replace(/\$/g,"$$$$");class Pr{constructor(t={}){this.logger=it.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:m,maxReplaces:y,alwaysFormat:v}=t.interpolation;this.escape=n!==void 0?n:To,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=i?Ct(i):o||"{{",this.suffix=s?Ct(s):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?Ct(f):h||Ct("$t("),this.nestingSuffix=p?Ct(p):g||Ct(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=y||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,a){let i,o,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=h=>{if(h.indexOf(this.formatSeparator)<0){const y=Nr(n,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,r,{...a,...n,interpolationkey:h}):y}const p=h.split(this.formatSeparator),g=p.shift().trim(),m=p.join(this.formatSeparator).trim();return this.format(Nr(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),m,r,{...a,...n,interpolationkey:g})};this.resetRegExp();const c=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>Qe(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?Qe(this.escape(h)):Qe(h)}].forEach(h=>{for(s=0;i=h.regex.exec(t);){const p=i[1].trim();if(o=u(p),o===void 0)if(typeof c=="function"){const m=c(t,i,a);o=S(m)?m:""}else if(a&&Object.prototype.hasOwnProperty.call(a,p))o="";else if(d){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${t}`),o="";else!S(o)&&!this.useRawValueToEscape&&(o=gr(o));const g=h.safeValue(o);if(t=t.replace(i[0],g),d?(h.regex.lastIndex+=o.length,h.regex.lastIndex-=i[0].length):h.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n,r={}){let a,i,o;const s=(l,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${Ct(c)}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,o);const h=f.match(/'/g),p=f.match(/"/g);((h?.length??0)%2===0&&!p||(p?.length??0)%2!==0)&&(f=f.replace(/'/g,'"'));try{o=JSON.parse(f),u&&(o={...u,...o})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${c}${f}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;a=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&!S(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const u=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(u!==-1&&(l=a[1].slice(u).split(this.formatSeparator).map(c=>c.trim()).filter(Boolean),a[1]=a[1].slice(0,u)),i=n(s.call(this,a[1].trim(),o),o),i&&a[0]===t&&!S(i))return i;S(i)||(i=gr(i)),i||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),i=""),l.length&&(i=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:a[1].trim()}),i.trim())),t=t.replace(a[0],i),this.regexp.lastIndex=0}return t}}const jo=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(o=>{if(o){const[s,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=s.trim();n[c]||(n[c]=u),u==="false"&&(n[c]=!1),u==="true"&&(n[c]=!0),isNaN(u)||(n[c]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},Tr=e=>{const t={};return(n,r,a)=>{let i=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(i={...i,[a.interpolationkey]:void 0});const o=r+JSON.stringify(i);let s=t[o];return s||(s=e(Ht(r),a),t[o]=s),s(n)}},Mo=e=>(t,n,r)=>e(Ht(n),r)(t);class Uo{constructor(t={}){this.logger=it.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?Tr:Mo;this.formats={number:r((a,i)=>{const o=new Intl.NumberFormat(a,{...i});return s=>o.format(s)}),currency:r((a,i)=>{const o=new Intl.NumberFormat(a,{...i,style:"currency"});return s=>o.format(s)}),datetime:r((a,i)=>{const o=new Intl.DateTimeFormat(a,{...i});return s=>o.format(s)}),relativetime:r((a,i)=>{const o=new Intl.RelativeTimeFormat(a,{...i});return s=>o.format(s,i.range||"day")}),list:r((a,i)=>{const o=new Intl.ListFormat(a,{...i});return s=>o.format(s)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Tr(n)}format(t,n,r,a={}){const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(s=>s.indexOf(")")>-1)){const s=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,s)].join(this.formatSeparator)}return i.reduce((s,l)=>{const{formatName:u,formatOptions:c}=jo(l);if(this.formats[u]){let d=s;try{const f=a?.formatParams?.[a.interpolationkey]||{},h=f.locale||f.lng||a.locale||a.lng||r;d=this.formats[u](s,h,{...c,...a,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}const Bo=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class qo extends ge{constructor(t,n,r,a={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=it.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,a.backend,a)}queueLoad(t,n,r,a){const i={},o={},s={},l={};return t.forEach(u=>{let c=!0;n.forEach(d=>{const f=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?o[f]===void 0&&(o[f]=!0):(this.state[f]=1,c=!1,o[f]===void 0&&(o[f]=!0),i[f]===void 0&&(i[f]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(s[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const a=t.split("|"),i=a[0],o=a[1];n&&this.emit("failedLoading",i,o,n),!n&&r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(l=>{Oo(l.loaded,[i],o),Bo(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{s[u]||(s[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{s[u][d]===void 0&&(s[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r,a=0,i=this.retryTimeout,o){if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:i,callback:o});return}this.readingCalls++;const s=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,a+1,i*2,o)},i);return}o(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(c=>s(null,c)).catch(s):s(null,u)}catch(u){s(u)}return}return l(t,n,s)}prepareLoading(t,n,r={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();S(t)&&(t=this.languageUtils.toResolveHierarchy(t)),S(n)&&(n=[n]);const i=this.queueLoad(t,n,r,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),a=r[0],i=r[1];this.read(a,i,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${a} failed`,o),!o&&s&&this.logger.log(`${n}loaded namespace ${i} for language ${a}`,s),this.loaded(t,o,s)})}saveMissing(t,n,r,a,i,o={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(!(r==null||r==="")){if(this.backend?.create){const l={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,a,l):c=u(t,n,r,a),c&&typeof c.then=="function"?c.then(d=>s(null,d)).catch(s):s(null,c)}catch(c){s(c)}else u(t,n,r,a,s,l)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const Je=()=>({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]),S(e[1])&&(t.defaultValue=e[1]),S(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Ar=e=>(S(e.ns)&&(e.ns=[e.ns]),S(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),S(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),ve=()=>{},Ko=e=>
1{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},_r="__i18next_supportNoticeShown",Ho=()=>typeof globalThis<"u"&&!!globalThis[_r],Vo=()=>{typeof globalThis<"u"&&(globalThis[_r]=!0)},zo=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(t=>t?.name?.indexOf("Locize")>0||t?.constructor?.name?.indexOf("Locize")>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(t=>t?.projectId));class Vt extends ge{constructor(t={},n){if(super(),this.options=Ar(t),this.services={},this.logger=it,this.modules={external:[]},Ko(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(S(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Je();this.options={...r,...this.options,...Ar(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!zo(this)&&!Ho()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("\u{1F310} i18next is made possible by our own product, Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \u{1F499}"),Vo());const a=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?it.init(a(this.modules.logger),this.options):it.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=Uo;const c=new Er(this.options);this.store=new $r(this.options.resources,this.options);const d=this.services;d.logger=it,d.resourceStore=this.store,d.languageUtils=c,d.pluralResolver=new Do(c,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.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"),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(d.formatter=a(u),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Pr(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new qo(a(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(h,...p)=>{this.emit(h,...p)}),this.modules.languageDetector&&(d.languageDetector=a(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=a(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new ye(this.services,this.options),this.translator.on("*",(h,...p)=>{this.emit(h,...p)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ve),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[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(u=>{this[u]=(...c)=>this.store[u](...c)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...c)=>(this.store[u](...c),this)});const s=qt(),l=()=>{const u=(c,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit
vendor: 4,331 bytes, line 1
1("initialized",this.options),s.resolve(d),n(c,d)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(t,n=ve){let r=n;const a=S(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(a?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],o=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};a?o(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload?.forEach?.(s=>o(s)),this.services.backendConnector.load(i,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const a=qt();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=ve),this.services.backendConnector.reload(t,n,i=>{a.resolve(),r(i)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Cr.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=qt();this.emit("languageChanging",t);const a=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},i=(s,l)=>{l?this.isLanguageChangingTo===t&&(a(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),n&&n(s,(...u)=>this.t(...u))},o=s=>{!t&&!s&&this.services.languageDetector&&(s=[]);const l=S(s)?s:s&&s[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(S(s)?[s]:s);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector?.cacheUserLanguage?.(u)),this.loadResources(u,c=>{i(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),r}getFixedT(t,n,r){const a=(i,o,...s)=>{let l;typeof o!="object"?l=this.options.overloadTranslationOptionHandler([i,o].concat(s)):l={...o},l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||a.keyPrefix);const u=this.options.keySeparator||".";let c;return l.keyPrefix&&Array.isArray(i)?c=i.map(d=>(typeof d=="function"&&(d=me(d,{...this.options,...o})),`${l.keyPrefix}${u}${d}`)):(typeof i=="function"&&(i=me(i,{...this.options,...o})),c=l.keyPrefix?`${l.keyPrefix}${u}${i}`:i),this.t(c,l)};return S(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=r,a}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const u=this.services.backendConnector.state[`${s}|${l}`];return u===-1||u===0||u===2};if(n.precheck){const s=n.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!a||o(i,t)))}loadNamespaces(t,n){const r=qt();return this.options.ns?(S(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=qt();S(t)&&(t=[t]);const a=this.options.preload||[],i=t.filter(o=>a.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return i.length?(this.options.preload=a.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const a=new Intl.Locale(t);if(a&&a.getTextInfo){const i=a.getTextInfo();if(i&&i.direction)return i.direction}}catch{}const n=["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"],r=this.services?.languageUtils||new Er(Je());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new Vt(t,n);return r.createInstance=Vt.createInstance,r}cloneInstance(t={},n=ve){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},i=new Vt(a);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const s=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((c,d)=>(c[d]={...l[u][d]},c),l[u]),l),{});i.store=new $r(s,a),i.services.resourceStore=i.store}if(t.interpolation){const l={...Je().interpolation,...this.options.interpolation,...t.interpolation},u={...a,interpolation:l};i.services.interpolator=new Pr(u)}return i.translator=new ye(i.services,a),i.translator.on("*",(s,...l)=>{i.emit(s,...l)}),i.init(a,n),i.translator.options=a,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const V=Vt.createInstance();V.createInstance,V.dir,V.init,V.loadResources,V.reloadResources,V.use,V.changeLanguage,V.getFixedT,V.t,V.exists,V.setDefaultNamespace,V.hasLoadedNamespace,V.loadNamespaces,V.loadLanguages;function Ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const Go=$("ab",(e,t,n,r)=>{const a=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);wt(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...a):console?.warn&&console.warn(...a)}),Fr={},kr=$("a6",(e,t,n,r)=>{wt(n)&&Fr[n]||(wt(n)&&(Fr[n]=new Date),Go(e,t,n,r))}),Rr=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Ye=(e,t,n)=>{e.loadNamespaces(t,Rr(e,n))},Lr=(e,t,n,r)=>{if(wt(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Ye(e,n,r);
1n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,Rr(e,r))},Wo=(e,t,n={})=>!t.languages||!t.languages.length?(kr(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,e))return!1}}),wt=$("aa",e=>typeof e=="string"),Qo=$("ac",e=>typeof e=="object"&&e!==null),Jo=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Yo={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xA9","&#169;":"\xA9","&reg;":"\xAE","&#174;":"\xAE","&hellip;":"\u2026","&#8230;":"\u2026","&#x2F;":"/","&#47;":"/"},Zo=e=>Yo[e],Xo=$("ad",e=>e.replace(Jo,Zo));let Ze={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Xo,transDefaultProps:void 0};const ts=(e={})=>{Ze={...Ze,...e}},es=$("a7",()=>Ze);let Dr;const ns=e=>{Dr=e},rs=$("a9",()=>Dr),as={type:"3rdParty",init(e){ts(e.options.react),ns(e)}},jr=$("ae",lt());class is{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Xe=$("a5",typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{});function Mr(){throw new Error("setTimeout has not been defined")}function Ur(){throw new Error("clearTimeout has not been defined")}var gt=Mr,mt=Ur;typeof Xe.setTimeout=="function"&&(gt=setTimeout),typeof Xe.clearTimeout=="function"&&(mt=clearTimeout);function Br(e){if(gt===setTimeout)return setTimeout(e,0);if((gt===Mr||!gt)&&setTimeout)return gt=setTimeout,setTimeout(e,0);try{return gt(e,0)}catch{try{return gt.call(null,e,0)}catch{return gt.call(this,e,0)}}}function os(e){if(mt===clearTimeout)return clearTimeout(e);if((mt===Ur||!mt)&&clearTimeout)return mt=clearTimeout,clearTimeout(e);try{return mt(e)}catch{try{return mt.call(null,e)}catch{return mt.call(this,e)}}}var dt=[],Ft=!1,St,be=-1;function ss(){!Ft||!St||(Ft=!1,St.length?dt=St.concat(dt):be=-1,dt.length&&qr())}function qr(){if(!Ft){var e=Br(ss);Ft=!0;for(var t=dt.length;t;){for(St=dt,dt=[];++be<t;)St&&St[be].run();be=-1,t=dt.length}St=null,Ft=!1,os(e)}}function us(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];dt.push(new Kr(e,t)),dt.length===1&&!Ft&&Br(qr)}function Kr(e,t){this.fun=e,this.array=t}Kr.prototype.run=function(){this.fun.apply(null,this.array)};var ls="browser",cs="browser",ds=!0,fs={},hs=[],ps="",gs={},ms={},ys={};function Et(){}var vs=Et,bs=Et,$s=Et,Cs=Et,ws=Et,Ss=Et,Es=Et;function xs(e){throw new Error("process.binding is not supported")}function Os(){return"/"}function Ns(e){throw new Error("process.chdir is not supported")}function Ps(){return 0}var kt=Xe.performance||{},Ts=kt.now||kt.mozNow||kt.msNow||kt.oNow||kt.webkitNow||function(){return new Date().getTime()};function As(e){var t=Ts.call(kt)*.001,n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n=n-e[0],r=r-e[1],r<0&&(n--,r+=1e9)),[n,r]}var _s=new Date;function Is(){var e=new Date,t=e-_s;return t/1e3}var tt=$("a3",{nextTick:us,title:ls,browser:ds,env:fs,argv:hs,version:ps,versions:gs,on:vs,addListener:bs,once:$s,off:Cs,removeListener:ws,removeAllListeners:Ss,emit:Es,binding:xs,cwd:Os,chdir:Ns,umask:Ps,hrtime:As,platform:cs,release:ms,config:ys,uptime:Is}),tn={exports:{}},Hr={};/**
2 * @license React
3 * use-sync-external-store-shim.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Rt=Ke;function Fs(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ks=typeof Object.is=="function"?Object.is:Fs,Rs=Rt.useState,Ls=Rt.useEffect,Ds=Rt.useLayoutEffect,js=Rt.useDebugValue;function Ms(e,t){var n=t(),r=Rs({inst:{value:n,getSnapshot:t}}),a=r[0].inst,i=r[1];return Ds(function(){a.value=n,a.getSnapshot=t,en(a)&&i({inst:a})},[e,n,t]),Ls(function(){return en(a)&&i({inst:a}),e(function(){en(a)&&i({inst:a})})},[e]),js(n),n}function en(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ks(e,n)}catch{return!0}}function Us(e,t){return t()}var Bs=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Us:Ms;Hr.useSyncExternalStore=Rt.useSyncExternalStore!==void 0?Rt.useSyncExternalStore:Bs;var Vr={};tt.env.NODE_ENV!=="production"&&(function(){function e(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}function t(h,p){c||a.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=p();if(!d){var m=p();i(g,m)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}m=o({inst:{value:g,getSnapshot:p}});var y=m[0].inst,v=m[1];return l(function(){y.value=g,y.getSnapshot=p,n(y)&&v({inst:y})},[h,g,p]),s(function(){return n(y)&&v({inst:y}),h(function(){n(y)&&v({inst:y})})},[h]),u(g),g}function n(h){var p=h.getSnapshot;h=h.value;try{var g=p();return!i(h,g)}catch{return!0}}function r(h,p){return p()}
9typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=Ke,i=typeof Object.is=="function"?Object.is:e,o=a.useState,s=a.useEffect,l=a.useLayoutEffect,u=a.useDebugValue,c=!1,d=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Vr.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),tt.env.NODE_ENV==="production"?tn.exports=Hr:tn.exports=Vr;var qs=tn.exports;const Ks={t:(e,t)=>wt(t)?t:Qo(t)&&wt(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,ready:!1},Hs=()=>()=>{},Jh=$("h",(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:a}=ct(jr)||{},i=n||r||rs();i&&!i.reportNamespaces&&(i.reportNamespaces=new is),i||kr(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const o=J(()=>({...es(),...i?.options?.react,...t}),[i,t]),{useSuspense:s,keyPrefix:l}=o,u=a||i?.options?.defaultNS,c=wt(u)?[u]:u||["translation"],d=J(()=>c,c);i?.reportNamespaces?.addUsedNamespaces?.(d);const f=U(0),h=F(w=>{if(!i)return Hs;const{bindI18n:E,bindI18nStore:T}=o,M=()=>{f.current+=1,w()};return E&&i.on(E,M),T&&i.store.on(T,M),()=>{E&&E.split(" ").forEach(W=>i.off(W,M)),T&&T.split(" ").forEach(W=>i.store.off(W,M))}},[i,o]),p=U(),g=F(()=>{if(!i)return Ks;const w=!!(i.isInitialized||i.initializedStoreOnce)&&d.every(Be=>Wo(Be,i,o)),E=t.lng||i.language,T=f.current,M=p.current;if(M&&M.ready===w&&M.lng===E&&M.keyPrefix===l&&M.revision===T)return M;const Q={t:i.getFixedT(E,o.nsMode==="fallback"?d:d[0],l),ready:w,lng:E,keyPrefix:l,revision:T};return p.current=Q,Q},[i,d,l,o,t.lng]),[m,y]=X(0),{t:v,ready:b}=qs.useSyncExternalStore(h,g,g);Y(()=>{if(i&&!b&&!s){const w=()=>y(E=>E+1);t.lng?Lr(i,t.lng,d,w):Ye(i,d,w)}},[i,t.lng,d,b,s,m]);const x=i||{},O=U(null),A=U(),I=w=>{const E=Object.getOwnPropertyDescriptors(w);E.__original&&delete E.__original;const T=Object.create(Object.getPrototypeOf(w),E);if(!Object.prototype.hasOwnProperty.call(T,"__original"))try{Object.defineProperty(T,"__original",{value:w,writable:!1,enumerable:!1,configurable:!1})}catch{}return T},k=J(()=>{const w=x,E=w?.language;let T=w;w&&(O.current&&O.current.__original===w?A.current!==E?(T=I(w),O.current=T,A.current=E):T=O.current:(T=I(w),O.current=T,A.current=E));const M=[v,T,b];return M.t=v,M.i18n=T,M.ready=b,M},[v,x,b,x.resolvedLanguage,x.language,x.languages]);if(i&&s&&!b)throw new Promise(w=>{const E=()=>w();t.lng?Lr(i,t.lng,d,E):Ye(i,d,E)});return k});function Vs({i18n:e,defaultNS:t,children:n}){const r=J(()=>({i18n:e,defaultNS:t}),[e,t]);return he(jr.Provider,{value:r},n)}function zs(e){const{locale:t,localizationData:n,tenant:r,children:a}=e,i=J(()=>{const o=V.use(as);return o.init({resources:n,fallbackLng:hr,lng:t?.toLowerCase()?.replace("-","_")||hr,ns:[_t.VISTAPRINT,_t.NATIONAL_PEN],defaultNS:yo(r),fallbackNS:_t.VISTAPRINT,debug:!1,interpolation:{escapeValue:!1}}),o},[t,n,r]);return R(Vs,{i18n:i,children:a})}var Gs=".grecaptcha-badge{left:4px!important;overflow:hidden!important;transition:all .3s ease!important;width:70px!important;z-index:1}.grecaptcha-badge:hover{width:256px!important}";const Yh=$("m",({localizationData:e,helpCenterUrls:t=null,phoneShortSchedules:n=lr,ordersData:r=null,children:a,concordApiServiceUrl:i="",bopApiServiceUrl:o="",concordTenantId:s="",contentfulCopyEnabled:l=!1,contactContent:u=null})=>{ir(Gs);const{locale:c,tenant:d}=He(),[f,h]=X(r),[p,g]=X(null),[m,y]=X(new Map),[v,b]=X(!1),x=J(()=>({helpCenterUrls:t,phoneShortSchedules:n,ordersData:f,setOrdersData:h,workEntitiesData:p,setWorkEntitiesData:g,fulfillmentData:m,setFulfillmentData:y,showOrderNumberInput:v,setShowOrderNumberInput:b,concordApiServiceUrl:i,bopApiServiceUrl:o,concordTenantId:s}),[t,n,f,p,m,v,i,o,s]);return R(or,{auth:bo(c),children:R(ar,{children:R(fr.Provider,{value:x,children:R(zs,{locale:c,localizationData:e,tenant:d,children:R(So,{enabled:l,content:u,children:a})})})})})});let N=class{static info(t,n){this.log("info",t,n)}static error(t,n){this.log("error",t,n)}
9static warn(t,n){this.log("warn",t,n)}static noticeError(t){window?.newrelic&&window.newrelic.noticeError(t)}static log(t,n,r){if(!window||!window.newrelic){console.error("Logger not Initialized");return}window.newrelic.addPageAction(n,{...r,logLevel:t})}};$("x",N);function zr(e){const t={original:JSON.stringify(e),name:"UnknownError",message:"An unknown error occurred",isNetworkError:!1,isParseError:!1,details:""},n={};if(e==null)return t.message=`Error value is ${e}`,t;if(typeof e!="object")return t.name=typeof e=="string"?"StringError":`${typeof e}Error`,t.message=String(e),t;try{if(e instanceof Error){t.name=e.name||"Error",t.message=e.message||"An error occurred",t.stack=e.stack,(e instanceof SyntaxError||e instanceof TypeError)&&(t.isParseError=!0);for(const r in e)r!=="name"&&r!=="message"&&r!=="stack"&&(n[r]=e[r])}typeof DOMException<"u"&&e instanceof DOMException&&(t.isNetworkError=!0,t.code=e.code,t.name=e.name,t.message=e.message),"name"in e&&typeof e.name=="string"&&(t.name=e.name),"message"in e&&typeof e.message=="string"&&(t.message=e.message),"code"in e&&(t.code=e.code),"status"in e&&typeof e.status=="number"&&(t.status=e.status,t.isNetworkError=!0,"statusText"in e&&(t.message=`${t.message} - ${e.statusText}`,n.statusText=e.statusText),"url"in e&&(n.url=e.url)),(t.name==="NetworkError"||t.name==="AbortError"||t.message.includes("network")||t.message.includes("Network"))&&(t.isNetworkError=!0),t.name==="SyntaxError"&&t.message.includes("JSON")&&(t.isParseError=!0);for(const r in e)if(r!=="name"&&r!=="message"&&r!=="stack"&&r!=="status"&&r!=="statusText"&&r!=="url"&&r!=="code")try{n[r]=e[r]}catch{}}catch(r){n.parserError=String(r)}return{...t,details:JSON.stringify(n)}}function q(e){if(typeof e=="function")try{const t=e();return t instanceof Promise?q(t):{data:t}}catch(t){return{error:zr(t)}}return e.then(t=>({data:t})).catch(t=>({error:zr(t)}))}const Gr=async(e,t)=>{try{Yn();const a=await Zn(2e3);if(!a)throw N.error("Could not run experiment because ab-reader is not available",{abReaderAvailable:a,message:"Ab-reader did not become available within the timeout period"}),new Error("Ab-reader is not available");if(Tt("help_center_emergency_from_statsig"))return{enabled:!0,code:200,location:"helpcenter",message:"Our Services are currently unavailable due to an emergency.",config:{c2cDisabled:Tt("hc-phone-disabled"),emailDisabled:Tt("hc-email-disabled"),phoneDisabled:Tt("hc-phone-disabled"),chatDisabled:Tt("hc-chat-disabled")},Key:`${e}.${t}`}}catch(a){N.error("Contact Channels: Emergency Feature Gate Check",{message:a instanceof Error?a.message:String(a),locale:t,tenant:e})}if(e==="national-pen")return{enabled:!1,code:200,location:"helpcenter",message:"",config:{c2cDisabled:!1,emailDisabled:!1,phoneDisabled:!1,chatDisabled:!1},Key:`${e}.${t}`};const{data:n,error:r}=await q(fetch(`https://care-hub.care.vpsvc.com/${e?.toLowerCase()}/${t?.toLowerCase()}/helpcenter/banner/status`,{method:"GET",headers:{"Content-Type":"application/json"}}));if(r)throw N.error("Contact Channels: Emergency Check",{...r,locale:t,tenant:e}),r;if(!n.ok)throw N.error("Contact Channels: Emergency Check",{status:n.status,message:"Failed to fetch EmergencyData"}),new Error(`HTTP error! Status: ${n.status}`);return n.json()};var Lt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ws=class extends Lt{#t;#e;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){const t=this.isFocused();
9this.listeners.forEach(n=>{n(t)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},nn=new Ws,Qs={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Js=class{#t=Qs;#e=!1;setTimeoutProvider(t){tt.env.NODE_ENV!=="production"&&this.#e&&t!==this.#t&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#t,provider:t}),this.#t=t,tt.env.NODE_ENV!=="production"&&(this.#e=!1)}setTimeout(t,n){return tt.env.NODE_ENV!=="production"&&(this.#e=!0),this.#t.setTimeout(t,n)}clearTimeout(t){this.#t.clearTimeout(t)}setInterval(t,n){return tt.env.NODE_ENV!=="production"&&(this.#e=!0),this.#t.setInterval(t,n)}clearInterval(t){this.#t.clearInterval(t)}},xt=new Js;function Ys(e){setTimeout(e,0)}var Zs=typeof window>"u"||"Deno"in globalThis;function z(){}function Xs(e,t){return typeof e=="function"?e(t):e}function rn(e){return typeof e=="number"&&e>=0&&e!==1/0}function Wr(e,t){return Math.max(e+(t||0)-Date.now(),0)}function yt(e,t){return typeof e=="function"?e(t):e}function et(e,t){return typeof e=="function"?e(t):e}function Qr(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==an(o,t.options))return!1}else if(!zt(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||a&&a!==t.state.fetchStatus||i&&!i(t))}function Jr(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Ot(t.options.mutationKey)!==Ot(i))return!1}else if(!zt(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function an(e,t){return(t?.queryKeyHashFn||Ot)(e)}function Ot(e){return JSON.stringify(e,(t,n)=>sn(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function zt(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>zt(e[n],t[n])):!1}var tu=Object.prototype.hasOwnProperty;function on(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Yr(e)&&Yr(t);if(!r&&!(sn(e)&&sn(t)))return t;const a=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),o=i.length,s=r?new Array(o):{};let l=0;for(let u=0;u<o;u++){const c=r?u:i[u],d=e[c],f=t[c];if(d===f){s[c]=d,(r?u<a:tu.call(e,c))&&l++;continue}if(d===null||f===null||typeof d!="object"||typeof f!="object"){s[c]=f;continue}const h=on(d,f,n+1);s[c]=h,h===d&&l++}return a===o&&l===a?e:s}function $e(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Yr(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function sn(e){if(!Zr(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Zr(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Zr(e){return Object.prototype.toString.call(e)==="[object Object]"}function eu(e){return new Promise(t=>{xt.setTimeout(t,e)})}function un(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(tt.env.NODE_ENV!=="production")try{return on(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return on(e,t)}return t}function nu(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ru(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ce=Symbol();function Xr(e,t){return tt.env.NODE_ENV!=="production"&&e.queryFn===Ce&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ce?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ln(e,t){return typeof e=="function"?e(...t):!!e}function au(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??=t(),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var Gt=(()=>{let e=()=>Zs;return{isServer(){return e()},setIsServer(t){e=t}}})(),iu=Ys;function ou(){let e=[],t=0,n=s=>{s()},r=s=>{s()},a=iu;const i=s=>{t?e.push(s):a(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&a(()=>{r(()=>
vendor: 18,947 bytes, line 9
9{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{a=s}}}var D=ou(),su=class extends Lt{#t=!0;#e;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){this.#t!==t&&(this.#t=t,this.listeners.forEach(n=>{n(t)}))}isOnline(){return this.#t}},we=new su;function cn(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function uu(e){return Math.min(1e3*2**e,3e4)}function ta(e){return(e??"online")==="online"?we.isOnline():!0}var dn=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function ea(e){let t=!1,n=0,r;const a=cn(),i=()=>a.status!=="pending",o=g=>{if(!i()){const m=new dn(g);f(m),e.onCancel?.(m)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>nn.isFocused()&&(e.networkMode==="always"||we.isOnline())&&e.canRun(),c=()=>ta(e.networkMode)&&e.canRun(),d=g=>{i()||(r?.(),a.resolve(g))},f=g=>{i()||(r?.(),a.reject(g))},h=()=>new Promise(g=>{r=m=>{(i()||u())&&g(m)},e.onPause?.()}).then(()=>{r=void 0,i()||e.onContinue?.()}),p=()=>{if(i())return;let g;const m=n===0?e.initialPromise:void 0;try{g=m??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(d).catch(y=>{if(i())return;const v=e.retry??(Gt.isServer()?0:3),b=e.retryDelay??uu,x=typeof b=="function"?b(n,y):b,O=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,y);if(t||!O){f(y);return}n++,e.onFail?.(n,y),eu(x).then(()=>u()?void 0:h()).then(()=>{t?f(y):p()})})};return{promise:a,status:()=>a.status,cancel:o,continue:()=>(r?.(),a),cancelRetry:s,continueRetry:l,canStart:c,start:()=>(c()?p():h().then(p),a)}}var na=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),rn(this.gcTime)&&(this.#t=xt.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Gt.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t&&(xt.clearTimeout(this.#t),this.#t=void 0)}},lu=class extends na{#t;#e;#n;#a;#r;#i;#o;constructor(t){super(),this.#o=!1,this.#i=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#a=t.client,this.#n=this.#a.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=ia(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(t){if(this.options={...this.#i,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=ia(this.options);n.data!==void 0&&(this.setState(aa(n.data,n.dataUpdatedAt)),this.#t=n)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,n){const r=un(this.state.data,t,this.options);return this.#u({data:r,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(t,n){this.#u({type:"setState",state:t,setStateOptions:n})}cancel(t){const n=this.#r?.promise;return this.#r?.cancel(t),n?n.then(z).catch(z):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>et(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ce||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>yt(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Wr(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.#r&&(this.#o||this.#s()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#s(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}async fetch(t,n){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const s=this.observers.find(l=>l.options.queryFn);s&&this.setOptions(s.options)}tt.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,a=s=>{Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})},i=()=>{const s=Xr(this.options,n),l=(()=>{const u={client:this.#a,queryKey:this.queryKey,meta:this.meta};return a(u),u})();return this.#o=!1,this.options.persister?this.options.persister(s,l,this):s(l)},o=(()=>{const s={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:i};return a(s),s})();this.options.behavior?.onFetch(o,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#u({type:"fetch",meta:o.fetchOptions?.meta}),this.#r=ea({initialPromise:n?.initialPromise,fn:o.fetchFn,onCancel:s=>{s instanceof dn&&s.revert&&this.setState({...this.#e,fetchStatus:"idle"}),r.abort()},onFail:(s,l)=>{this.#u({type:"failed",failureCount:s,error:l})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const s=await this.#r.start();if(s===void 0)throw tt.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(s),this.#n.config.onSuccess?.(s,this),this.#n.config.onSettled?.(s,this.state.error,this),s}catch(s){if(s instanceof dn){if(s.silent)return this.#r.promise;if(s.revert){if(this.state.data===void 0)throw s;return this.state.data}}throw this.#u({type:"error",error:s}),this.#n.config.onError?.(s,this),this.#n.config.onSettled?.(this.state.data,s,this),s}finally{this.scheduleGc()}}#u(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...ra(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...aa(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=t.manual?a:void 0,a;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),D.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function ra(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ta(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function aa(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ia(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var cu=class extends Lt{constructor(e,t){super(),this.options=t,this.#t=e,this.#s=null,this.#o=cn(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#i;#o;#s;#u;#h;#p;#c;#d;#l;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),oa(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return fn(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return fn(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#$(),this.#C(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof et(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),t._defaulted&&!$e(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&sa(this.#e,n,this.options,t)&&this.#f(),this.updateResult(),r&&(this.#e!==n||et(this.options.enabled,this.#e)!==et(t.enabled,this.#e)||yt(this.options.staleTime,this.#e)!==yt(t.staleTime,this.#e))&&this.#m();const a=this.#y();r&&(this.#e!==n||et(this.options.enabled,this.#e)!==et(t.enabled,this.#e)||a!==this.#l)&&this.#v(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return fu(this,n)&&(this.#a=n,this.#i=this.options,this.#r=this.#e.state),n}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(e){this.#w();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(z)),t}#m(){this.#$();const e=yt(this.options.staleTime,this.#e);if(Gt.isServer()||this.#a.isStale||!rn(e))return;const t=Wr(this.#a.dataUpdatedAt,e)+1;this.#c=xt.setTimeout(()=>{this.#a.isStale||this.updateResult()},t)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#C(),this.#l=e,!(Gt.isServer()||et(this.options.enabled,this.#e)===!1||!rn(this.#l)||this.#l===0)&&(this.#d=xt.setInterval(()=>{(this.options.refetchIntervalInBackground||nn.isFocused())&&this.#f()},this.#l))}#b(){this.#m(),this.#v(this.#y())}#$(){this.#c&&(xt.clearTimeout(this.#c),this.#c=void 0)}#C(){this.#d&&(xt.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#a,i=this.#r,o=this.#i,s=e!==n?e.state:this.#n,{state:l}=e;let u={...l},c=!1,d;if(t._optimisticResults){const A=this.hasListeners(),I=!A&&oa(e,t),k=A&&sa(e,n,t,r);(I||k)&&(u={...u,...ra(l.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:h,status:p}=u;d=u.data;let g=!1;if(t.placeholderData!==void 0&&d===void 0&&p==="pending"){let A;a?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(A=a.data,g=!0):A=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,A!==void 0&&(p="success",d=un(a?.data,A,t),c=!0)}if(t.select&&d!==void 0&&!g)if(a&&d===i?.data&&t.select===this.#u)d=this.#h;else try{this.#u=t.select,d=t.select(d),d=un(a?.data,d,t),this.#h=d,this.#s=null}catch(A){this.#s=A}this.#s&&(f=this.#s,d=this.#h,h=Date.now(),p="error");const m=u.fetchStatus==="fetching",y=p==="pending",v=p==="error",b=y&&m,x=d!==void 0,O={status:p,fetchStatus:u.fetchStatus,isPending:y,isSuccess:p==="success",isError:v,isInitialLoading:b,isLoading:b,data:d,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:m,isRefetching:m&&!y,isLoadingError:v&&!x,isPaused:u.fetchStatus==="paused",isPlaceholderData:c,isRefetchError:v&&x,isStale:hn(e,t),refetch:this.refetch,promise:this.#o,isEnabled:et(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const A=O.data!==void 0,I=O.status==="error"&&!A,k=T=>{I?T.reject(O.error):A&&T.resolve(O.data)},w=()=>{const T=this.#o=O.promise=cn();k(T)},E=this.#o;switch(E.status){case"pending":e.queryHash===n.queryHash&&k(E);break;case"fulfilled":(I||O.data!==E.value)&&w();break;case"rejected":(!I||O.error!==E.reason)&&w();break}}return O}updateResult(){const e=this.#a,t=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#i=this.options,this.#r.data!==void 0&&(this.#p=this.#e),$e(t,e))return;this.#a=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#g.size)return!0;const i=new Set(a??this.#g);return this.options.throwOnError&&i.add("error"),Object.keys(this.#a).some(o=>{const s=o;return this.#a[s]!==e[s]&&i.has(s)})};this.#S({listeners:n()})}#w(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#S(e){D.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function du(e,t){return et(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function oa(e,t){return du(e,t)||e.state.data!==void 0&&fn(e,t,t.refetchOnMount)}function fn(e,t,n){if(et(t.enabled,e)!==!1&&yt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&hn(e,t)}return!1}function sa(e,t,n,r){return(e!==t||et(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&hn(e,n)}function hn(e,t){return et(t.enabled,e)!==!1&&e.isStaleByTime(yt(t.staleTime,e))}function fu(e,t){return!$e(e.getCurrentResult(),t)}var ua=B.createContext(void 0),pn=e=>{const t=B.useContext(ua);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},hu=({client:e,children:t})=>(B.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R(ua.Provider,{value:e,children:t}));function pu(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var gu=B.createContext(pu()),mu=()=>B.useContext(gu),yu=(e,t,n)=>{const r=n?.state.error&&typeof e.throwOnError=="function"?ln(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},vu=e=>{B.useEffect(()=>{e.clearReset()},[e])},bu=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||ln(n,[e.error,r])),la=B.createContext(!1),$u=()=>B.useContext(la);la.Provider;var Cu=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},wu=(e,t)=>e.isLoading&&e.isFetching&&!t,Su=(e,t)=>e?.suspense&&t.isPending,ca=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Eu(e,t,n){if(tt.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=$u(),a=mu(),i=pn(),o=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(o);const s=i.getQueryCache().get(o.queryHash);tt.env.NODE_ENV!=="production"&&(o.queryFn||console.error(`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),o._optimisticResults=r?"isRestoring":"optimistic",Cu(o),yu(o,a,s),vu(a);const l=!i.getQueryCache().get(o.queryHash),[u]=B.useState(()=>new t(i,o)),c=u.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(B.useSyncExternalStore(B.useCallback(f=>{const h=d?u.subscribe(D.batchCalls(f)):z;return u.updateResult(),h},[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),B.useEffect(()=>{u.setOptions(o)},[o,u]),Su(o,c))throw ca(o,u,a);if(bu({result:c,errorResetBoundary:a,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw c.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(o,c),o.experimental_prefetchInRender&&!Gt.isServer()&&wu(c,r)&&(l?ca(o,u,a):s?.promise)?.catch(z).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?c:u.trackResult(c)}function vt(e,t){return Eu(e,cu)}
9function xu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nt={},da;function Ou(){if(da)return nt;da=1;var e=nt&&nt.__assign||function(){return e=Object.assign||function(u){for(var c,d=1,f=arguments.length;d<f;d++){c=arguments[d];for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(u[h]=c[h])}return u},e.apply(this,arguments)};nt.__esModule=!0;function t(u,c){if(!c)return"";var d="; "+u;return c===!0?d:d+"="+c}function n(u){if(typeof u.expires=="number"){var c=new Date;c.setMilliseconds(c.getMilliseconds()+u.expires*864e5),u.expires=c}return t("Expires",u.expires?u.expires.toUTCString():"")+t("Domain",u.domain)+t("Path",u.path)+t("Secure",u.secure)+t("SameSite",u.sameSite)}function r(u,c,d){return encodeURIComponent(u).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(c).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+n(d)}nt.encode=r;function a(u){for(var c={},d=u?u.split("; "):[],f=/(%[\dA-F]{2})+/gi,h=0;h<d.length;h++){var p=d[h].split("="),g=p.slice(1).join("=");g.charAt(0)==='"'&&(g=g.slice(1,-1));
9try{var m=p[0].replace(f,decodeURIComponent);c[m]=g.replace(f,decodeURIComponent)}catch{}}return c}nt.parse=a;function i(){return a(document.cookie)}nt.getAll=i;function o(u){return i()[u]}nt.get=o;function s(u,c,d){document.cookie=r(u,c,e({path:"/"},d))}nt.set=s;function l(u,c){s(u,"",e(e({},c),{expires:-1}))}return nt.remove=l,nt}var Nu=Ou(),Pu=xu(Nu);const Tu=e=>{const t=JSON.parse(decodeURIComponent(e));return t.ctc&&t.ctc.v1?t.ctc.v1:[]},Au="userContext";function fa(e){try{return _u().includes(e)}catch(t){return console.warn("ctc-reader in isTreatmentEnabled failed.",t),!1}}function _u(){const e=Pu.get(Au);return e?Tu(e):(console.warn("ctc-reader: Context cookie are missing. If you are developing locally check the readme;)"),[])}const gn={"en-gb":{phoneNumber:"+447441440889",schedule:"Mon. - Fri. : 7:30 - 22:00",timezone:"Europe/London",hours:{start:7.5,end:22}},"de-de":{phoneNumber:"+493056796091",schedule:"Mon. - Fri. 8:00 - 21:00",timezone:"Europe/Berlin",hours:{start:8,end:21}}},Iu=$("T",async(e,t,n)=>{const r=await fetch(`https://c2c-service.care.vpsvc.com/v1/countries/tenants/${e}/locales/${t}/segments/${n}?requestor=ContactChannelsLib`,{method:"GET",headers:{Accept:"application/json"}});if(!r.ok)throw N.error("Contact Channels: Available Countries",{status:r.status,message:"Failed to fetch Available Countries from C2C Service"}),new Error(`HTTP error! Status: ${r.status}`);return r.json()}),ha=async(e=!1)=>{if(e)return!0;const{data:t,error:n}=await q(fetch("https://c2c-service.care.vpsvc.com/servicecheck",{method:"GET",signal:AbortSignal.timeout(5e3)}));return n?(N.error("Contact Channels: CallMeSpam",{...n}),!1):(N.info("Contact Channels: CallMeSpam",{status:t.status,success:t.status===200}),t.status===200)},pa=async e=>{const{data:t,error:n}=await q(fetch(`https://global-channel-provider-service.care.vpsvc.com/v3/channels?tenant=vistaprint&locale=${e?.toLowerCase()}`,{method:"GET",headers:{"Content-Type":"application/json","X-Api-Key":"Dz70ypBT7D1xRxqCCcUn71qH8iZ9qRiO3Ndbx2YU"}}));if(n)throw N.error("Contact Channels: Get Channels Data",{...n,locale:e}),n;if(!t.ok)throw N.error("Contact Channels: Get Channels Data",{status:t.status,message:"Failed to fetch Channels Data"}),new Error(`HTTP error! Status: ${t.status}`);return{contactChannels:await t.json()}},mn=600,Fu=60,Se=1e3,ku=6e4,ga={"en-au":{proadvantageProgram:!0,contactUsComponents:["phone","email","live_chat_v2","call_me"]},"en-nz":{proadvantageProgram:!0,contactUsComponents:["phone","email","live_chat_v2","call_me"]},"en-sg":{contactUsComponents:["phone","email","live_chat_v2"]},"en-ie":{contactUsComponents:["phone","email","call_me","live_chat_v2"]},"pt-pt":{contactUsComponents:["phone","call_me","email","live_chat_v2"]},"es-es":{proadvantageProgram:!0,contactUsComponents:["phone","email","live_chat_v2"]},"en-in":{contactUsComponents:["phone","email"]},"en-us":{proadvantageProgram:!0,contactUsComponents:["phone","email","call_me","live_chat_v2"]},"en-gb":{proadvantageProgram:!0,contactUsComponents:["phone","email","call_me","live_chat_v2"]},"it-it":{proadvantageProgram:!0,contactUsComponents:["phone","email","live_chat_v2"]},"nl-nl":{contactUsComponents:["phone","email","live_chat_v2","call_me"]},"nl-be":{contactUsComponents:["phone","email","live_chat_v2"]},"fr-be":{contactUsComponents:["phone","email","live_chat_v2"]},"sv-se":{contactUsComponents:["phone","email","call_me","live_chat_v2"]},"nb-no":{contactUsComponents:["phone","email","call_me","live_chat_v2"]},"fi-fi":{contactUsComponents:["phone","email","live_chat_v2","call_me"]},"fr-fr":{proadvantageProgram:!0,contactUsComponents:["phone","email","live_chat_v2"]},"da-dk":{contactUsComponents:["phone","email","live_chat_v2","call_me"]},"fr-ca":{proadvantageProgram:!0,contactUsComponents:["phone","email","call_me","live_chat_v2"]},"en-ca":{proadvantageProgram:!0,contactUsComponents:["phone","email","call_me","live_chat_v2"]},"de-de":{proadvantageProgram:!0,contactUsComponents:["phone","email","live_chat_v2"]},"de-at":{contactUsComponents:["phone","email","live_chat_v2"]},"fr-ch":{contactUsComponents:["phone","email","live_chat_v2","call_me"]},"it-ch":{contactUsComponents:["phone","email","live_chat_v2","call_me"]},"de-ch":{contactUsComponents:["phone","email","live_chat_v2","call_me"]},"es-us":{proadvantageProgram:!0,contactUsComponents:["phone","email","call_me","live_chat_v2"]}},ma=e=>ga[e.toLowerCase()]?.contactUsComponents?.includes("call_me")??!1;var Ru=class extends Lt{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,n,r){const a=n.queryKey,i=n.queryHash??an(a,n);let o=this.get(i);return o||(o=new lu({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=this.#t.get(t.queryHash);n&&(t.destroy(),n===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){D.batch(()=>
vendor: 9,656 bytes, line 9
9{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Qr(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Qr(t,r)):n}notify(t){D.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){D.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){D.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Lu=class extends na{#t;#e;#n;#a;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#e=[],this.state=t.state||ya(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(n=>n!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(t){const n=()=>{this.#r({type:"continue"})},r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=ea({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(o,s)=>{this.#r({type:"failed",failureCount:o,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const a=this.state.status==="pending",i=!this.#a.canStart();try{if(a)n();else{this.#r({type:"pending",variables:t,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,r);const s=await this.options.onMutate?.(t,r);s!==this.state.context&&this.#r({type:"pending",context:s,variables:t,isPaused:i})}const o=await this.#a.start();return await this.#n.config.onSuccess?.(o,t,this.state.context,this,r),await this.options.onSuccess?.(o,t,this.state.context,r),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(o,null,t,this.state.context,r),this.#r({type:"success",data:o}),o}catch(o){try{await this.#n.config.onError?.(o,t,this.state.context,this,r)}catch(s){Promise.reject(s)}try{await this.options.onError?.(o,t,this.state.context,r)}catch(s){Promise.reject(s)}try{await this.#n.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,r)}catch(s){Promise.reject(s)}try{await this.options.onSettled?.(void 0,o,t,this.state.context,r)}catch(s){Promise.reject(s)}throw this.#r({type:"error",error:o}),o}finally{this.#n.runNext(this)}}#r(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),D.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function ya(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Du=class extends Lt{constructor(t={}){super(),this.config=t,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(t,n,r){const a=new Lu({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){this.#t.add(t);const n=Ee(t);if(typeof n=="string"){const r=this.#e.get(n);r?r.push(t):this.#e.set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#t.delete(t)){const n=Ee(t);if(typeof n=="string"){const r=this.#e.get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&this.#e.delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ee(t);if(typeof n=="string"){const r=this.#e.get(n)?.find(a=>a.state.status==="pending");return!r||r===t}else return!0}runNext(t){const n=Ee(t);return typeof n=="string"?this.#e.get(n)?.find(r=>r!==t&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){D.batch(()=>{this.#t.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Jr(n,r))}findAll(t={}){return this.getAll().filter(n=>Jr(t,n))}notify(t){D.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return D.batch(()=>Promise.all(t.map(n=>n.continue().catch(z))))}};function Ee(e){return e.options.scope?.id}function va(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let c=!1;const d=p=>{au(p,()=>t.signal,()=>c=!0)},f=Xr(t.options,t.fetchOptions),h=async(p,g,m)=>{if(c)return Promise.reject();if(g==null&&p.pages.length)return Promise.resolve(p);const y=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:g,direction:m?"backward":"forward",meta:t.options.meta};return d(O),O})(),v=await f(y),{maxPages:b}=t.options,x=m?ru:nu;return{pages:x(p.pages,v,b),pageParams:x(p.pageParams,g,b)}};if(a&&i.length){const p=a==="backward",g=p?ju:ba,m={pages:i,pageParams:o},y=g(r,m);s=await h(m,y,p)}else{const p=e??i.length;do{const g=l===0?o[0]??r.initialPageParam:ba(r,s);if(l>0&&g==null)break;s=await h(s,g),l++}while(l<p)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function ba(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ju(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Mu=class{#t;#e;#n;#a;#r;#i;#o;#s;constructor(t={}){this.#t=t.queryCache||new Ru,this.#e=t.mutationCache||new Du,this.#n=t.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=nn.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=we.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(t){return this.#t.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#e.findAll({...t,status:"pending"}).length}getQueryData(t){const n=this.defaultQueryOptions({queryKey:t});return this.#t.get(n.queryHash)?.state.data}ensureQueryData(t){const n=this.defaultQueryOptions(t),r=this.#t.build(this,n),a=r.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(yt(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(a))}getQueriesData(t){return this.#t.findAll(t).map(({queryKey:n,state:r})=>{const a=r.data;return[n,a]})}setQueryData(t,n,r){const a=this.defaultQueryOptions({queryKey:t}),i=this.#t.get(a.queryHash)?.state.data,o=Xs(n,i);if(o!==void 0)return this.#t.build(this,a).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return D.batch(()=>this.#t.findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,n,r)]))}getQueryState(t){const n=this.defaultQueryOptions({queryKey:t});return this.#t.get(n.queryHash)?.state}removeQueries(t){const n=this.#t;D.batch(()=>{n.findAll(t).forEach(r=>{n.remove(r)})})}resetQueries(t,n){const r=this.#t;return D.batch(()=>(r.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},n)))}cancelQueries(t,n={}){const r={revert:!0,...n},a=D.batch(()=>this.#t.findAll(t).map(i=>i.cancel(r)));return Promise.all(a).then(z).catch(z)}invalidateQueries(t,n={}){return D.batch(()=>(this.#t.findAll(t).forEach(r=>{r.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},n)))}refetchQueries(t,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},a=D.batch(()=>this.#t.findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,r);return r.throwOnError||(o=o.catch(z)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(a).then(z)}fetchQuery(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const r=this.#t.build(this,n);return r.isStaleByTime(yt(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(z).catch(z)}fetchInfiniteQuery(t){return t.behavior=va(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(z).catch(z)}ensureInfiniteQueryData(t){return t.behavior=va(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return we.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,n){this.#a.set(Ot(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){const n=[...this.#a.values()],r={};
9return n.forEach(a=>{zt(t,a.queryKey)&&Object.assign(r,a.defaultOptions)}),r}setMutationDefaults(t,n){this.#r.set(Ot(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){const n=[...this.#r.values()],r={};return n.forEach(a=>{zt(t,a.mutationKey)&&Object.assign(r,a.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const n={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=an(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Ce&&(n.enabled=!1),n}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}};const Wt=new Mu,ot=class fe{static instance;shouldLogToConsole;requestId;constructor(){this.shouldLogToConsole=this.checkShouldLog(),this.requestId=this.generateSessionId()}static getInstance(){return fe.instance||(fe.instance=new fe),fe.instance}checkShouldLog(){if(typeof window>"u")return!1;const t=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1",n=new URLSearchParams(window.location.search).get("debugCUF")==="true";return t||n}generateSessionId(){return typeof window>"u"?`${Date.now()}-${Math.random().toString(36).slice(2,11)}`:window.crypto.randomUUID()}getLogColors(t){return{debug:{bg:"#6B7280",text:"#F3F4F6"},info:{bg:"#3B82F6",text:"#FFFFFF"},warn:{bg:"#F59E0B",text:"#000000"},error:{bg:"#EF4444",text:"#FFFFFF"}}[t]}logToConsole(t,n,r){if(!this.shouldLogToConsole)return;const a=this.getLogColors(t),i=`background: ${a.bg}; color: ${a.text}; padding: 2px 6px; border-radius: 3px; font-weight: bold;`,o=t==="error"?"color: #EF4444; font-weight: bold;":"";console.groupCollapsed(`%c${t.toUpperCase()}%c ${n}`,i,o),r&&(console.log("%cContext:","font-weight: bold; color: #6366F1;"),console.table(r)),console.groupEnd()}sendToNewRelic(t,n,r){const a={...r,requestId:this.requestId};t==="error"?N.error(n,a):N.info(n,a)}track(t,n,r){this.shouldLogToConsole&&(console.groupCollapsed(`%cTRACKING%c ${r.toUpperCase()} - ${t}`,"background: #10B981; color: #FFFFFF; padding: 2px 6px; border-radius: 3px; font-weight: bold;","color: #10B981; font-weight: bold;"),console.log("%cEvent Data:","font-weight: bold; color: #059669;"),console.table(n),console.groupEnd())}debug(t,n){this.logToConsole("debug",t,n)}info(t,n){this.logToConsole("info",t,n),this.sendToNewRelic("info","contact-channels-lib-event",{message:t,...n})}warn(t,n){this.logToConsole("warn",t,n),this.sendToNewRelic("warn","contact-channels-lib-event",{message:t,...n})}error(t,n,r){const a=n?.action||"general_error";this.logToConsole("error",t,{...n,errorName:r?.name,action:a,errorMessage:r?.message,stack:r?.stack});const i={message:t,stack:r?.stack,errorName:r?.name,errorMessage:r?.message,...n};this.sendToNewRelic("error","contact-channels-lib-error-event",i),r&&N.noticeError(r)}}.getInstance(),Uu=5,Bu=1e4,qu=({conversationId:e,onOpen:t,onClose:n,onError:r,onMessage:a})=>{const{auth:i}=ft(),[o,s]=X(!1),l=U(null),u=U({onOpen:t,onClose:n,onError:r,onMessage:a}),c=U(0),d=U(null),f=U(!1),h=U(0);Y(()=>{u.current={onOpen:t,onClose:n,onError:r,onMessage:a}},[t,n,r,a]),Y(()=>{f.current=!1},[e,i]);const p=F(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]),g=F(()=>Math.min(3e4,2e3*2**c.current),[]),m=F(()=>{if(f.current||d.current||c.current>=Uu)return;c.current+=1;const O=g();ot.info("Scheduling WebSocket retry",{action:"CallMeStatusWebSocket",conversationId:e,attempt:c.current,delay:O}),d.current=setTimeout(()=>{d.current=null,y()},O)},[e,g]),y=F(()=>{const{data:O}=q(()=>i?.getAuthorizationHeader());if(!e){ot.warn("Missing conversationId, skipping WebSocket connect");return}if(!O){ot.warn("Missing authorization header, skipping WebSocket connect");return}p(),h.current+=1;const A=h.current;l.current&&(l.current.close(1e3,"Closing existing connection"),l.current=null);const I=`wss://ca-streaming-service.prod.careai.vpsvc.com/?conversationId=${encodeURIComponent(e)}&authorization=${encodeURIComponent(O)}&origin=c2c`;let k;try{k=new WebSocket(I)}catch(w){N.error("Failed to create WebSocket",{conversationId:e,error:String(w),message:"Failed to create WebSocket instance"}),m();return}k.onopen=w=>{A===h.current&&(ot.info("WebSocket opened",{action:"CallMeStatusWebSocket",conversationId:e}),c.current=0,p(),s(!0),u.current.onOpen?.(w))}
9,k.onmessage=w=>{if(A!==h.current)return;const{data:E,error:T}=q(()=>JSON.parse(w.data));if(T){ot.warn("Failed to parse WebSocket message",{error:String(T),action:"CallMeStatusWebSocket",conversationId:e,rawData:w.data});return}u.current.onMessage?.(E,w)},k.onerror=w=>{A===h.current&&(N.error("WebSocket error",{conversationId:e,message:"WebSocket encountered an error"}),u.current.onError?.(w))},k.onclose=w=>{A===h.current&&(ot.info("WebSocket closed",{action:"CallMeStatusWebSocket",conversationId:e,code:w.code,reason:w.reason}),s(!1),u.current.onClose?.(w),!f.current&&w.code!==1e3&&m())},l.current=k},[i,e,p,m]),v=F(()=>{f.current=!0,c.current=0,p(),l.current&&(l.current.close(1e3,"Manual disconnect"),l.current=null),s(!1)},[p]),b=F(()=>{f.current=!1,v(),y()},[v,y]),x=F(O=>new Promise((A,I)=>{const k=setTimeout(()=>{N.error("WebSocket send timeout",{conversationId:e,message:"WebSocket send timed out after waiting 10 seconds"}),I(new Error("WebSocket send timeout"))},Bu),w=()=>{const E=l.current;if(!E){clearTimeout(k),I(new Error("WebSocket not initialized"));return}if(E.readyState===WebSocket.OPEN){try{E.send(O),clearTimeout(k),A()}catch(T){clearTimeout(k),I(T)}return}if(E.readyState===WebSocket.CONNECTING){setTimeout(w,100);return}clearTimeout(k),I(new Error("WebSocket is not connected"))};w()}),[e]);return Y(()=>(f.current=!1,y(),()=>{v()}),[y,v]),{ws:l.current,isConnected:o,sendMessage:x,reconnect:b,disconnect:v}},yn="vp:c2c:callbackSubmission",vn=()=>typeof window<"u"&&typeof window.sessionStorage<"u",Ku=()=>{if(!vn())return null;try{const e=window.sessionStorage.getItem(yn);if(!e)return null;const t=JSON.parse(e);return t.callbackPhase!=="submitted"||typeof t.conversationId!="string"||typeof t.submittedAt!="number"?null:t}catch{return null}},$a=e=>{if(vn())try{window.sessionStorage.setItem(yn,JSON.stringify(e))}catch{}},bn=()=>{if(vn())try{window.sessionStorage.removeItem(yn)}catch{}},$n=300*1e3,Hu=["CREATE_REQUEST_SUCCESS","CREATE_CALLBACK_SUCCESS","CASE_CREATION_SUCCESS","AMAZON_CONNECT_IN_QUEUE","AMAZON_CONNECT_AGENT_CONNECTED"],Vu=["CREATE_REQUEST_ERROR","CASE_CREATION_ERROR","CREATE_CALLBACK_ERROR","AMAZON_CONNECT_FLOW_ERROR","AMAZON_CONNECT_INCORRECT_NUMBER","PREMIUM_PHONE_NUMBER","PHONE_IN_DNC","AGENT_OFFLINE","C2C_DISABLED"],Ca=lt({isCallbackSubmitted:!1,callbackPhase:null,conversationId:"",isWebSocketConnected:!1,markCallbackSubmitted:()=>{},resetCallbackSubmission:()=>{}}),zu=({children:e})=>{const t=(()=>{const v=Ku();return v?Date.now()-v.submittedAt>=$n?(bn(),null):v:null})(),[n,r]=X(t?.conversationId??""),[a,i]=X(t?"submitted":null),o=U(t?.customerWasConnected??!1),s=U(t?.submittedAt??null),l=U(null),u=a!==null,c=F(()=>{l.current&&(clearTimeout(l.current),l.current=null)},[]),d=F(()=>{$a({conversationId:n,callbackPhase:"submitted",submittedAt:s.current??Date.now(),customerWasConnected:o.current})},[n]),f=F(v=>{o.current=!1,s.current=Date.now(),r(v),i("submitted"),$a({conversationId:v,callbackPhase:"submitted",submittedAt:s.current,customerWasConnected:!1})},[]),h=F(()=>{o.current=!1,s.current=null,c(),r(""),i(null),bn()},[c]),p=F(()=>{c(),i("failed"),bn()},[c]);Y(()=>{if(c(),a!=="submitted")return()=>c();const v=s.current??Date.now(),b=Math.max(0,$n-(Date.now()-v));return l.current=setTimeout(()=>{o.current||(ot.info("CallbackSubmission: Timeout reached without CUSTOMER_CONNECTED",{action:"CallbackStatusTimeout",conversationId:n,timeoutMs:$n}),p())},b),()=>c()},[a,n,c,p]);const g=F(v=>{const b=v?.data?.status;if(b){if(ot.info("CallbackSubmission: WebSocket status update",{action:"CallbackStatusWebSocket",status:b,customerWasConnected:o.current}),b==="AMAZON_CONNECT_CUSTOMER_CONNECTED"){o.current=!0,c(),d();return}if(b==="AMAZON_CONNECT_CALL_ENDED"){o.current?h():p();return}if(Vu.includes(b)){p();return}Hu.includes(b)&&i("submitted")}},[h,c,d,p]),m=F(()=>{ot.warn("CallbackSubmission: WebSocket connection error",{action:"CallbackStatusWebSocket",conversationId:n})},[n]),{isConnected:y}=qu({conversationId:n,onMessage:g,onError:m});return R(Ca.Provider,{value:{isCallbackSubmitted:u,callbackPhase:a,conversationId:n,isWebSocketConnected:y,markCallbackSubmitted:f,resetCallbackSubmission:h},children:e})},Xh=$("e",()=>ct(Ca)),wa=lt({getRecaptchaToken:async()=>{throw new Error("getRecaptchaToken not implemented")}}),Sa=()=>{const e=ct(wa);if(!e)throw new Error("useRecaptchaContext must be used within a RecaptchaProvider");return e},Gu=tr(()=>C.import("./RecaptchaProviderLazy.js")),Wu=({children:e,useRecaptcha:t,locale:n,origin:r,recaptcha:a})=>t?R(Xn,{fallback:null,children:R(Gu,{locale:n,origin:r,recaptcha:a,children:e})}):e;$({ag:wa,z:Sa});const Qu={da_dk:{vistaprint:()=>C.import("./content.json.js").then(e=>e.default),"national-pen":()=>C.import("./content2.json.js").then(e=>e.default)},en_us:{vistaprint:()=>C.import("./content3.json.js").then(e=>e.default),"national-pen":()=>C.import("./content4.json.js").then(e=>e.default)},en_ca:{vistaprint:()=>C.import("./content3.json.js").then(e=>e.default),"national-pen":()=>C.import("./content5.json.js").then(e=>e.default)},cs_cz:{"national-pen":()=>C.import("./content6.json.js").then(e=>e.default)},de_de:{vistaprint:()=>C.import("./content7.json.js").then(e=>e.default),"national-pen":()=>C.import("./content8.json.js").then(e=>e.default)},de_ch:{vistaprint:()=>C.import("./content7.json.js").then(e=>e.default),"national-pen":()=>C.import("./content9.json.js").then(e=>e.default)},de_at:{vistaprint:()=>C.import("./content7.json.js").then(e=>e.default),"national-pen":()=>C.import("./content10.json.js").then(e=>e.default)},en_au:{vistaprint:()=>C.import("./content11.json.js").then(e=>e.default),"national-pen":()=>C.import("./content12.json.js").then(e=>e.default)},en_gb:{vistaprint:()=>C.import("./content11.json.js").then(e=>e.default),"national-pen":()=>C.import("./content13.json.js").then(e=>e.default)},en_ie:{vistaprint:()=>C.import("./content11.json.js").then(e=>e.default),"national-pen":()=>C.import("./content14.json.js").then(e=>e.default)},en_in:{vistaprint:()=>C.import("./content11.json.js").then(e=>e.default)},en_nz:{vistaprint:()=>C.import("./content11.json.js").then(e=>e.default),"national-pen":()=>C.import("./content15.json.js").then(e=>e.default)},en_sg:{vistaprint:()=>C.import("./content11.json.js").then(e=>e.default)},es_es:{vistaprint:()=>C.import("./content16.json.js").then(e=>e.default),"national-pen":()=>C.import("./content17.json.js").then(e=>e.default)},es_us:{vistaprint:()=>C.import("./content18.json.js").then(e=>e.default)},fi_fi:{vistaprint:()=>C.import("./content19.json.js").then(e=>e.default),"national-pen":()=>C.import("./content20.json.js").then(e=>e.default)},fr_be:{vistaprint:()=>C.import("./content21.json.js").then(e=>e.default),"national-pen":()=>C.import("./content22.json.js").then(e=>e.default)},fr_ca:{vistaprint:()=>C.import("./content23.json.js").then(e=>e.default)},fr_ch:{vistaprint:()=>C.import("./content21.json.js").then(e=>e.default),"national-pen":()=>C.import("./content24.json.js").then(e=>e.default)},fr_fr:{vistaprint:()=>C.import("./content21.json.js").then(e=>e.default),"national-pen":()=>C.import("./content25.json.js").then(e=>e.default)},hu_hu:{"national-pen":()=>C.import("./content26.json.js").then(e=>e.default)},it_ch:{vistaprint:()=>C.import("./content27.json.js").then(e=>e.default),"national-pen":()=>C.import("./content28.json.js").then(e=>e.default)},it_it:{vistaprint:()=>C.import("./content27.json.js").then(e=>e.default),"national-pen":()=>C.import("./content29.json.js").then(e=>e.default)},nb_no:{vistaprint:()=>C.import("./content30.json.js").then(e=>e.default),"national-pen":()=>C.import("./content31.json.js").then(e=>e.default)},nn_no:{"national-pen":()=>C.import("./content31.json.js").then(e=>e.default)},nl_be:{vistaprint:()=>C.import("./content32.json.js").then(e=>e.default),"national-pen":()=>C.import("./content33.json.js").then(e=>e.default)},nl_nl:{vistaprint:()=>C.import("./content32.json.js").then(e=>e.default),"national-pen":()=>C.import("./content34.json.js").then(e=>e.default)},pt_pt:{vistaprint:()=>C.import("./content35.json.js").then(e=>e.default),"national-pen":()=>C.import("./content36.json.js").then(e=>e.default)},sk_sk:{"national-pen":()=>C.import("./content37.json.js").then(e=>e.default)},sv_se:{vistaprint:()=>C.import("./content38.json.js").then(e=>e.default),"national-pen":()=>C.import("./content39.json.js").then(e=>e.default)}},Ea=lt({locale:"en-us",t:e=>e}),xe=$("S",()=>ct(Ea)),Ju=(e,t)=>
9t?e.replace(/\{\{([^}]+)\}\}/g,(n,r)=>{const a=t[r.trim()];return a!==void 0?String(a):`{{${r}}}`}):e,Cn=(e,t)=>{if(!e.includes("<"))return e;if(!t||!t.length)return e.replace(/<(\d+)>(.*?)<\/\1>/gs,"$2");const n=[];let r=0;const a=/<(\d+)>(.*?)<\/\1>/gs;let i;for(;(i=a.exec(e))!==null;){const[o,s,l]=i,u=parseInt(s,10);if(i.index>r&&n.push(e.substring(r,i.index)),t[u]){const c=t[u];er(c)?n.push(nr(c,{},Cn(l,t))):typeof c=="function"?n.push(he(c,{},Cn(l,t))):n.push(l)}else n.push(l);r=i.index+o.length}return r<e.length&&n.push(e.substring(r)),n.length===1?n[0]:he(rr,{},...n)},Yu=({children:e,locale:t,tenant:n})=>{const r=(t||"en-us")?.toLowerCase()?.replace("-","_"),[a,i]=X(null);Y(()=>{let l=!1;const u=Qu?.[r]?.[n];return u&&u().then(c=>{l||i(c)}),()=>{l=!0}},[r,n]);const o=(l,u)=>u.split(".").reduce((c,d)=>c?c[d]:u,l),s=(l,u)=>{if(!l)return"";const c=o(a,l)||l,d=Ju(c,u?.params);return u?.components&&Array.isArray(u.components)?Cn(d,u.components):d};return R(Ea.Provider,{value:{locale:t,t:s},children:e})},xa=lt({locale:"en-us",auth:void 0,origin:"DefaultOrigin",tenant:"vistaprint",proadvantageType:"",isProadvantage:!1,loadingProAdvantage:!0,whatsAppConfig:gn}),ft=$("X",()=>{const e=ct(xa);if(!e)throw new Error("useContactChannelsContext must be used within a ContactChannelsProvider");return e}),Zu=({children:e,locale:t,origin:n,auth:r,useRecaptcha:a,recaptcha:i,prefetchQueries:o,callMeConfig:s,whatsAppConfig:l,tenant:u="vistaprint"})=>{const[c,d]=X(""),[f,h]=X(!0);return Y(()=>{h(!0),ga[t.toLowerCase()]?.proadvantageProgram&&typeof window<"u"&&window.document&&(fa("proadvantage_basic_care")?d("basic"):fa("proadvantage_premium_care")&&d("premium")),h(!1)},[t]),Y(()=>{o&&(Wt.prefetchQuery({queryKey:["channels-data"],queryFn:()=>pa(t)}),Wt.prefetchQuery({queryKey:["emergency"],queryFn:()=>Gr(u,t)}),ma(t)&&(Wt.prefetchQuery({queryKey:["c2c-spam"],queryFn:()=>ha(s?.allowVPNs)}),Wt.prefetchQuery({queryKey:["c2c-countries",t,u,"Regular",[]],queryFn:()=>Iu(u,t,"Regular")})))},[t,u,o,s]),R(hu,{client:Wt,children:R(Wu,{locale:t,origin:n,useRecaptcha:a,recaptcha:i,children:R(xa.Provider,{value:{locale:t,auth:r,origin:n,tenant:u,proadvantageType:c,isProadvantage:!!c,loadingProAdvantage:f,callMeConfig:s,whatsAppConfig:{...gn,...Object.fromEntries(Object.entries(l||{}).map(([p,g])=>[p,{...gn[p],...g}]))}},children:R(Yu,{tenant:u,locale:t,children:R(zu,{children:e})})})})})},Oe=$("d",(e=!0)=>{const{tenant:t,locale:n}=ft();return vt({queryKey:["emergency"],queryFn:()=>Gr(t,n),staleTime:1/0,gcTime:1/0,enabled:e,retry:3})}),wn={vistaprint:"ozoDdrmewShEcbUDWX8J3V","national-pen":"4W1CB1YZxupiBsB5XExuc4"},tp=$("y",e=>{const t=e??"";return Object.prototype.hasOwnProperty.call(wn,t)?wn[t]:wn.vistaprint}),Oa=(e=!0)=>{const{locale:t}=ft();return vt({queryKey:["channels-data"],queryFn:()=>pa(t),staleTime:1/0,gcTime:1/0,retry:3,enabled:e})},Xu=(e=!0)=>{const{proadvantageType:t,isProadvantage:n,loadingProAdvantage:r}=ft(),{t:a}=xe(),{data:i,isLoading:o}=Oe(e),{data:s,isLoading:l}=Oa(e);return vt({queryKey:["phone"],queryFn:async()=>{if(i?.enabled&&i?.config.phoneDisabled)return N.warn("Contact Channels: usePhone",{emergencyEnabled:i.enabled,phoneDisabled:i.config.phoneDisabled,message:"Phone service is disabled due to emergency"}),{isAvailable:!1,availabilityInfo:{emergencyMessage:i.message,reason:"EMERGENCY"},ui:{title:a("phone.title"),description:a("phone.service_unavailable")}};const{phone:u}=s?.contactChannels||{},{phoneNumber:c,proadvantagePhoneNumber:d,premiumProadvantagePhoneNumber:f,schedule:h,proadvantageSchedule:p,premiumProadvantageSchedule:g}=u||{},m=t==="basic"?d:f,y=t==="basic"?p:g,v=n?m:c,b=n?y:h;return!v||!b?.length?(N.warn("Phone Hook: usePhone",{message:"Unavailable Due To Missing Data",hasPhoneNumber:!!v,hasSchedule:!!b?.length,isProadvantage:n||!1,proadvantageType:t||"none"}),{isAvailable:!1,availabilityInfo:{reason:"DISABLED"},ui:{title:a("phone.title"),description:a("phone.service_unavailable")}}):{isAvailable:!0,plainData:{phoneNumber:v,schedule:b,isProadvantage:n,proadvantageType:t},ui:{title:a("phone.title"),description:b.join(`
10`)}}},staleTime:300*1e3,gcTime:300*1e3,enabled:!o&&!l&&!r&&e})},tl=async(e,t)=>{const n=new URLSearchParams;n.append("tenant",e),n.append("locale",t),n.append("segment","Regular");const{data:r,error:a}=await q(fetch(`https://global-channel-provider-service.care.vpsvc.com/v3/channels/phone?${n}`,{method:"GET",headers:{"Content-Type":"application/json","X-Api-Key":"Dz70ypBT7D1xRxqCCcUn71qH8iZ9qRiO3Ndbx2YU"}}));if(a)throw N.error("Contact Channels: Phone Schedule",{...a,locale:t,tenant:e}),new Error(`Network error: ${a.message}`);if(!r.ok)throw N.error("Contact Channels: Phone Schedule",{status:r.status,message:"Failed to fetch Phone Schedule"}),new Error(`HTTP error! Status: ${r.status}`);return r.json()},el={1:["US","CA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],39:["IT"],41:["CH"],43:["AT"],44:["GB"],45:["DK"],46:["SE"],47:["NO"],48:["PL"],49:["DE"],61:["AU"],64:["NZ"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],356:["MT"],357:["CY"],358:["FI"],377:["MC"],420:["CZ"],423:["LI"],972:["IL"]},nl=JSON.parse('{"AT":["43","00","1\\\\d{3,12}|2\\\\d{6,12}|43(?:(?:0\\\\d|5[02-9])\\\\d{3,9}|2\\\\d{4,5}|[3467]\\\\d{4}|8\\\\d{4,6}|9\\\\d{4,7})|5\\\\d{4,12}|8\\\\d{7,12}|9\\\\d{8,12}|(?:[367]\\\\d|4[0-24-9])\\\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\\\d)(\\\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\\\d{3})(\\\\d{2})","$1 $2",["517"],"0$1"],["(\\\\d{2})(\\\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\\\d{3})(\\\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\\\d{4})(\\\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\\\d{2})(\\\\d{4})(\\\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0",0,0,0,0,0,[["1(?:11\\\\d|[2-9]\\\\d{3,11})|(?:316|463)\\\\d{3,10}|648[34]\\\\d{3,9}|(?:51|66|73)2\\\\d{3,10}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-578]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|7[1368]|8[2457])|5(?:2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[135-7]|5[468])|7(?:2[1-8]|35|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))\\\\d{4,10}"],["6(?:485|(?:5[0-3579]|6[013-9]|[7-9]\\\\d)\\\\d)\\\\d{3,9}",[7,8,9,10,11,12,13]],["800\\\\d{6,10}",[9,10,11,12,13]],["(?:8[69][2-68]|9(?:0[01]|3[019]))\\\\d{6,10}",[9,10,11,12,13]],0,0,0,0,["5(?:0[1-9]|17|[79]\\\\d)\\\\d{2,10}|7[28]0\\\\d{6,10}",[5,6,7,8,9,10,11,12,13]],["8(?:10|2[018])\\\\d{6,10}|828\\\\d{5}",[8,9,10,11,12,13]]]],"BE":["32","00","4\\\\d{8}|[1-9]\\\\d{7}",[8,9],[["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0",0,0,0,0,0,[["80[2-8]\\\\d{5}|(?:1[0-69]|[23][2-8]|4[23]|5\\\\d|6[013-57-9]|71|8[1-79]|9[2-4])\\\\d{6}",[8]],["4[5-9]\\\\d{7}",[9]],["800[1-9]\\\\d{4}",[8]],["(?:70(?:2[0-57]|3[04-7]|44|6[04-69]|7[0579])|90\\\\d\\\\d)\\\\d{4}",[8]],0,0,["78(?:0[578]|1[014-8]|2[25]|3[15-8]|48|5[05]|60|7[06-8]|9\\\\d)\\\\d{4}",[8]],0,0,["7879\\\\d{4}",[8]]]],"CA":["1","011","[2-9]\\\\d{9}|3\\\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}",[10]],["900[2-9]\\\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\\\d|5(?:[02-46-9]\\\\d|5[0-46-9]))|4(?:[2-478][02-9]\\\\d|5(?:[034]\\\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\\\d)|9(?:[05-9]\\\\d|2[0-5]|49)))\\\\d{4}|52[34][2-9]1[02-9]\\\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\\\d{6}",[10]],0,["310\\\\d{4}",[7]],0,["600[2-9]\\\\d{6}",[10]]]],"CH":["41","00","8\\\\d{11}|[2-9]\\\\d{8}",[9,12],[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\\\d{7}",[9]],["(?:6[89]|7[235-9])\\\\d{7}",[9]],["800\\\\d{6}",[9]],["90[016]\\\\d{6}",[9]],["878\\\\d{6}",[9]],["860\\\\d{9}",[12]],["5[18]\\\\d{7}",[9]],["74[0248]\\\\d{6}",[9]],0,["84[0248]\\\\d{6}",[9]]]],"CY":["357","00","(?:[279]\\\\d|[58]0)\\\\d{6}",[8],[["(\\\\d{2})(\\\\d{6})","$1 $2",["[257-9]"]]],0,0,0,0,0,0,[["2[2-6]\\\\d{6}"],["9(?:10|[4-79]\\\\d)\\\\d{5}"],["800\\\\d{5}"],["90[09]\\\\d{5}"],["700\\\\d{5}"],0,["(?:50|77)\\\\d{6}"],0,0,["80[1-9]\\\\d{5}"]]],"CZ":["420","00","(?:[2-578]\\\\d|60)\\\\d{7}|9\\\\d{8,11}",[9,10,11,12],[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3 $4",["96"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["9"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,[["(?:2\\\\d|3[1257-9]|4[16-9]|5[13-9])\\\\d{7}",[9]],["(?:60[1-8]\\\\d|7(?:0(?:[2-5]\\\\d|60)|19[0-2]|[2379]\\\\d\\\\d))\\\\d{5}",[9]],["800\\\\d{6}",[9]],["9(?:0[05689]|76)\\\\d{6}",[9]],["70[01]\\\\d{6}",[9]],["9(?:3\\\\d{9}|6\\\\d{7,10}
10)"],["9(?:5\\\\d|7[2-4])\\\\d{6}",[9]],0,["9[17]0\\\\d{6}",[9]],["8[134]\\\\d{7}",[9]]]],"DE":["49","00","[2579]\\\\d{5,14}|49(?:[34]0|69|8\\\\d)\\\\d\\\\d?|49(?:37|49|60|7[089]|9\\\\d)\\\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\\\d{1,8}|(?:1|[368]\\\\d|4[0-8])\\\\d{3,13}|49(?:[015]\\\\d|2[13]|31|[46][1-8])\\\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\\\d{2})(\\\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\\\d{3})(\\\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\\\d{4})(\\\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\\\d{3})(\\\\d{4})","$1 $2",["138"],"0$1"],["(\\\\d{5})(\\\\d{2,10})","$1 $2",["3"],"0$1"],["(\\\\d{3})(\\\\d{5,11})","$1 $2",["181"],"0$1"],["(\\\\d{3})(\\\\d)(\\\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\\\d{3})(\\\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\\\d{3})(\\\\d{7,12})","$1 $2",["8"],"0$1"],["(\\\\d{5})(\\\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\\\d{4})(\\\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\\\d{4})(\\\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\\\d{5})(\\\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\\\d{3})(\\\\d{8})","$1 $2",["18"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\\\d{4})(\\\\d{2})(\\\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{8})","$1 $2 $3",["15"],"0$1"]],"0",0,0,0,0,0,[["32\\\\d{9,11}|49[1-6]\\\\d{10}|322\\\\d{6}|49[0-7]\\\\d{3,9}|(?:[34]0|[68]9)\\\\d{3,13}|(?:2(?:0[1-689]|[1-3569]\\\\d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]\\\\d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]\\\\d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]\\\\d|[38][0-8]|[79][0-7])|6(?:0[02-9]|[1-358]\\\\d|[47][0-8]|6[1-9])|7(?:0[2-8]|1[1-9]|[27][0-7]|3\\\\d|[4-6][0-8]|8[0-5]|9[013-7])|8(?:0[2-9]|1[0-79]|2\\\\d|3[0-46-9]|4[0-6]|5[013-9]|6[1-8]|7[0-8]|8[0-24-6])|9(?:0[6-9]|[1-4]\\\\d|[589][0-7]|6[0-8]|7[0-467]))\\\\d{3,12}",[5,6,7,8,9,10,11,12,13,14,15]],["1(?:(?:5(?:[0-25-9]\\\\d\\\\d|310)|76\\\\d\\\\d)\\\\d{6}|6[023]\\\\d{7,8})|17\\\\d{8}",[10,11]],["800\\\\d{7,12}",[10,11,12,13,14,15]],["(?:137[7-9]|900(?:[135]|9\\\\d))\\\\d{6}",[10,11]],["700\\\\d{8}",[11]],["1(?:6(?:013|255|399)|7(?:(?:[015]1|[69]3)3|[2-4]55|[78]99))\\\\d{7,8}|15(?:(?:[03-68]00|113)\\\\d|2\\\\d55|7\\\\d99|9\\\\d33)\\\\d{7}",[12,13]],["18(?:1\\\\d{5,11}|[2-9]\\\\d{8})",[8,9,10,11,12,13,14]],["16(?:4\\\\d{1,10}|[89]\\\\d{1,11})",[4,5,6,7,8,9,10,11,12,13,14]],0,["180\\\\d{5,11}|13(?:7[1-6]\\\\d\\\\d|8)\\\\d{4}",[7,8,9,10,11,12,13,14]]]],"DK":["45","00","[2-9]\\\\d{7}",[8],[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-9]"]]],0,0,0,0,0,0,[["(?:2(?:[0-59][1-9]|[6-8]\\\\d)|3(?:[0-3][1-9]|4[13]|5[1-58]|6[1347-9]|7\\\\d|8[1-8]|9[1-79])|4(?:[0-25][1-9]|[34][2-9]|6[13-579]|7[13579]|8[1-47]|9[127])|5(?:[0-36][1-9]|4[146-9]|5[3-57-9]|7[568]|8[1-358]|9[1-69])|6(?:[0135][1-9]|2[1-68]|4[2-8]|6[1689]|[78]\\\\d|9[15689])|7(?:[0-69][1-9]|7[3-9]|8[147])|8(?:[16-9][1-9]|2[1-58])|9(?:[1-47-9][1-9]|6\\\\d))\\\\d{5}"],["(?:2[6-8]|37|6[78]|96)\\\\d{6}|(?:2[0-59]|3[0-689]|[457]\\\\d|6[0-69]|8[126-9]|9[1-47-9])[1-9]\\\\d{5}"],["80\\\\d{6}"],["90\\\\d{6}"]]],"ES":["34","00","[5-9]\\\\d{8}",[9],[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[89]00"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[5-9]"]]],0,0,0,0,0,0,[["96906(?:0[0-8]|1[1-9]|[2-9]\\\\d)\\\\d\\\\d|9(?:69(?:0[0-57-9]|[1-9]\\\\d)|73(?:[0-8]\\\\d|9[1-9]))\\\\d{4}|(?:8(?:[1356]\\\\d|[28][0-8]|[47][1-9])|9(?:[135]\\\\d|[268][0-8]|4[1-9]|7[124-9]))\\\\d{6}"],["(?:590[16]00\\\\d|9(?:6906(?:09|10)|7390\\\\d\\\\d))\\\\d\\\\d|(?:6\\\\d|7[1-48])\\\\d{7}"],["[89]00\\\\d{6}"],["80[367]\\\\d{6}"],["70\\\\d{7}"],0,["51\\\\d{7}"],0,0,["90[12]\\\\d{6}"]]],"FI":["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\\\d{4}|7\\\\d{10,11}|(?:[124-7]\\\\d|3[0-46-9])\\\\d{8}|[1-9]\\\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\\\d{5})","$1",["20[2-59]"],"0$1"],["(\\\\d{3})(\\\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\\\d{2})(\\\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\\\d{2})(\\\\d{6,10})","$1 $2",["7"],"0$1"],["(\\\\d)(\\\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",[["1[3-7][1-8]\\\\d{3,6}|(?:19[1-8]|[23568][1-8]\\\\d|9(?:00|[1-8]\\\\d))\\\\d{2,6}",[5,6,7,8,9]],["4946\\\\d{2,6}|(?:4[0-8]|50)\\\\d{4,8}",[6,7,8,9,10]],["800\\\\d{4,6}",[7,8,9]],["[67]00\\\\d{5,6}",[8,9]],0,0,["20\\\\d{4,8}|60[12]\\\\d{5,6}|7(?:099\\\\d{4,5}
10|5[03-9]\\\\d{3,7})|20[2-59]\\\\d\\\\d|(?:606|7(?:0[78]|1|3\\\\d))\\\\d{7}|(?:10|29|3[09]|70[1-5]\\\\d)\\\\d{4,8}"]],"00"],"FR":["33","00","[1-9]\\\\d{8}",[9],[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0",0,0,0,0,0,[["(?:26[013-9]|59[1-35-9])\\\\d{6}|(?:[13]\\\\d|2[0-57-9]|4[1-9]|5[0-8])\\\\d{7}"],["(?:6(?:[0-24-8]\\\\d|3[0-8]|9[589])|7[3-9]\\\\d)\\\\d{6}"],["80[0-5]\\\\d{6}"],["836(?:0[0-36-9]|[1-9]\\\\d)\\\\d{4}|8(?:1[2-9]|2[2-47-9]|3[0-57-9]|[569]\\\\d|8[0-35-9])\\\\d{6}"],0,0,["80[6-9]\\\\d{6}"],0,["9\\\\d{8}"],["8(?:1[01]|2[0156]|4[024]|84)\\\\d{6}"]]],"GB":["44","00","[1-357-9]\\\\d{9}|[18]\\\\d{8}|8\\\\d{6}",[7,9,10],[["(\\\\d{3})(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\\\d{3})(\\\\d{6})","$1 $2",["800"],"0$1"],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\\\d{4})(\\\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\\\d{4})(\\\\d{6})","$1 $2",["7"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\\\d\\\\d|73[0-35])|4(?:(?:[0-5]\\\\d|70)\\\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\\\d|6(?:[0-4]\\\\d|50))\\\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\\\d)\\\\d|1(?:[0-7]\\\\d|8[0-3]))|(?:3(?:0\\\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\\\d)\\\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\\\d{3})\\\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])
10))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\\\d)|76\\\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\\\d|7[4-79])|295[5-7]|35[34]\\\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\\\d{5}|7(?:[1-3]\\\\d\\\\d|4(?:[0-46-9]\\\\d|5[0-689])|5(?:0[0-8]|[13-9]\\\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\\\d|8[02-9]|9[0-689])|8(?:[014-9]\\\\d|[23][0-8])|9(?:[024-9]\\\\d|1[02-9]|3[0-689]))\\\\d{6}",[10]],["80[08]\\\\d{7}|800\\\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\\\d|8[2-49]))\\\\d{7}|845464\\\\d",[7,10]],["70\\\\d{8}",[10]],0,["(?:3[0347]|55)\\\\d{8}",[10]],["76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}",[10]],["56\\\\d{8}",[10]]],0," x"],"GI":["350","00","(?:[25]\\\\d|60)\\\\d{6}",[8],[["(\\\\d{3})(\\\\d{5})","$1 $2",["2"]]],0,0,0,0,0,0,[["2190[0-2]\\\\d{3}|2(?:0(?:[02]\\\\d|3[01])|16[24-9]|2[2-5]\\\\d)\\\\d{4}"],["5251[0-4]\\\\d{3}|(?:5(?:[146-8]\\\\d\\\\d|250)|60(?:1[01]|6\\\\d))\\\\d{4}"]]],"GL":["299","00","(?:19|[2-689]\\\\d|70)\\\\d{4}",[6],[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["19|[2-9]"]]],0,0,0,0,0,0,[["(?:19|3[1-7]|[68][1-9]|70|9\\\\d)\\\\d{4}"],["[245]\\\\d{5}"],["80\\\\d{4}"],0,0,0,0,0,["3[89]\\\\d{4}"]]],"GR":["30","00","5005000\\\\d{3}|8\\\\d{9,11}|(?:[269]\\\\d|70)\\\\d{8}",[10,11,12],[["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["21|7"]],["(\\\\d{4})(\\\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2689]"]],["(\\\\d{3})(\\\\d{3,4})(\\\\d{5})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["2(?:1\\\\d\\\\d|2(?:2[1-46-9]|[36][1-8]|4[1-7]|5[1-4]|7[1-5]|[89][1-9])|3(?:1\\\\d|2[1-57]|[35][1-3]|4[13]|7[1-7]|8[124-6]|9[1-79])|4(?:1\\\\d|2[1-8]|3[1-4]|4[13-5]|6[1-578]|9[1-5])|5(?:1\\\\d|[29][1-4]|3[1-5]|4[124]|5[1-6])|6(?:1\\\\d|[269][1-6]|3[1245]|4[1-7]|5[13-9]|7[14]|8[1-5])|7(?:1\\\\d|2[1-5]|3[1-6]|4[1-7]|5[1-57]|6[135]|9[125-7])|8(?:1\\\\d|2[1-5]|[34][1-4]|9[1-57]))\\\\d{6}",[10]],["68[57-9]\\\\d{7}|(?:69|94)\\\\d{8}",[10]],["800\\\\d{7,9}"],["90[19]\\\\d{7}",[10]],["70\\\\d{8}",[10]],0,["5005000\\\\d{3}",[10]],0,0,["8(?:0[16]|12|[27]5|50)\\\\d{7}",[10]]]],"IE":["353","00","(?:1\\\\d|[2569])\\\\d{6,8}|4\\\\d{6,9}|7\\\\d{8}|8\\\\d{8,9}",[7,8,9,10],[["(\\\\d{2})(\\\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\\\d{3})(\\\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\\\d)(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\\\d{4})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\\\d{2})(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:1\\\\d|21)\\\\d{6,7}|(?:2[24-9]|4(?:0[24]|5\\\\d|7)|5(?:0[45]|1\\\\d|8)|6(?:1\\\\d|[237-9])|9(?:1\\\\d|[35-9]))\\\\d{5}|(?:23|4(?:[1-469]|8\\\\d)|5[23679]|6[4-6]|7[14]|9[04])\\\\d{7}"],["8(?:22|[35-9]\\\\d)\\\\d{6}",[9]],["1800\\\\d{6}",[10]],["15(?:1[2-8]|[2-8]0|9[089])\\\\d{6}",[10]],["700\\\\d{6}",[9]],["88210[1-9]\\\\d{4}|8(?:[35-79]5\\\\d\\\\d|8(?:[013-9]\\\\d\\\\d|2(?:[01][1-9]|[2-9]\\\\d)))\\\\d{5}",[10]],["818\\\\d{6}",[9]],0,["76\\\\d{7}",[9]],["18[59]0\\\\d{6}",[10]]]],"IL":["972","0(?:0|1[2-9])","1\\\\d{6}(?:\\\\d{3,5})?|[57]\\\\d{8}|[1-489]\\\\d{7}",[7,8,9,10,11,12],[["(\\\\d{4})(\\\\d{3})","$1-$2",["125"]],["(\\\\d{4})(\\\\d{2})(\\\\d{2})","$1-$2-$3",["121"]],["(\\\\d)(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\\\d{4})(\\\\d{3})(\\\\d{3})","$1-$2-$3",["12"]],["(\\\\d{4})(\\\\d{6})","$1-$2",["159"]],["(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\\\d{3})(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1-$2 $3-$4",["15"]]],"0",0,0,0,0,0,[["153\\\\d{8,9}|29[1-9]\\\\d{5}|(?:2[0-8]|[3489]\\\\d)\\\\d{6}
10",[8,11,12]],["55(?:4(?:[01]0|5[0-2])|57[0-289])\\\\d{4}|5(?:(?:[0-2][02-9]|[36]\\\\d|[49][2-9]|8[3-7])\\\\d|5(?:01|2\\\\d|3[0-3]|4[34]|5[0-25689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\\\d{5}",[9]],["1(?:255|80[019]\\\\d{3})\\\\d{3}",[7,10]],["1212\\\\d{4}|1(?:200|9(?:0[0-2]|19))\\\\d{6}",[8,10]],0,["151\\\\d{8,9}",[11,12]],["1599\\\\d{6}",[10]],0,["7(?:38(?:0\\\\d|5[0-3569]|88)|8(?:33|55|77|81)\\\\d)\\\\d{4}|7(?:18|2[23]|3[237]|47|6[258]|7\\\\d|82|9[2-9])\\\\d{6}",[9]],["1700\\\\d{6}",[10]]]],"IS":["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\\\d|[4-9])\\\\d{6}",[7,9],[["(\\\\d{3})(\\\\d{4})","$1 $2",["[4-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["(?:4(?:1[0-24-69]|2[0-7]|[37][0-8]|4[0-24589]|5[0-68]|6\\\\d|8[0-36-8])|5(?:05|[156]\\\\d|2[02578]|3[0-579]|4[03-7]|7[0-2578]|8[0-35-9]|9[013-689])|872)\\\\d{4}",[7]],["(?:38[589]\\\\d\\\\d|6(?:1[1-8]|2[0-6]|3[026-9]|4[014679]|5[0159]|6[0-69]|70|8[06-8]|9\\\\d)|7(?:5[057]|[6-9]\\\\d)|8(?:2[0-59]|[3-69]\\\\d|8[238]))\\\\d{4}"],["80[0-8]\\\\d{4}",[7]],["90(?:0\\\\d|1[5-79]|2[015-79]|3[135-79]|4[125-7]|5[25-79]|7[1-37]|8[0-35-7])\\\\d{3}",[7]],0,["(?:689|8(?:7[18]|80)|95[48])\\\\d{4}",[7]],["809\\\\d{4}",[7]],0,["49[0-24-79]\\\\d{4}",[7]]],"00"],"IT":["39","00","0\\\\d{5,10}|1\\\\d{8,10}|3(?:[0-8]\\\\d{7,10}|9\\\\d{7,8})|(?:43|55|70)\\\\d{8}|8\\\\d{5}(?:\\\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\\\d{2})(\\\\d{4,6})","$1 $2",["0[26]"]],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\\\d{4})(\\\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["894"]],["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\\\d{3})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\\\d{2})(\\\\d{4})(\\\\d{5})","$1 $2 $3",["0[26]"]],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\\\d{1,6}|0(?:1(?:[0159]\\\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\\\d\\\\d|3(?:[0159]\\\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\\\d|6[0-8])|7(?:[0159]\\\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\\\d{7,8}|(?:31|43)\\\\d{8}",[9,10]],["80(?:0\\\\d{3}|3)\\\\d{3}",[6,9]],["(?:0878\\\\d{3}|89(?:2\\\\d|3[04]|4(?:[0-4]|[5-9]\\\\d\\\\d)|5[0-4]))\\\\d\\\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\\\d{6}",[6,8,9,10]],["1(?:78\\\\d|99)\\\\d{6}",[9,10]],["3[2-8]\\\\d{9,10}",[11,12]],0,0,["55\\\\d{8}",[10]],["84(?:[08]\\\\d{3}|[17])\\\\d{3}",[6,9]]]],"LI":["423","00","[68]\\\\d{8}|(?:[2378]\\\\d|90)\\\\d{5}",[7,9],[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["69"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0",0,0,0,[["(?:2(?:01|1[27]|2[02]|3\\\\d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))\\\\d{4}",[7]],["(?:6(?:(?:4[5-9]|5[0-469])\\\\d|6(?:[024-6]\\\\d|[17]0|3[7-9]))\\\\d|7(?:[37-9]\\\\d|42|56))\\\\d{4}"],["8002[28]\\\\d\\\\d|80(?:05\\\\d|9)\\\\d{4}"],["90(?:02[258]|1(?:23|3[14])|66[136])\\\\d\\\\d",[7]],0,["697(?:42|56|[78]\\\\d)\\\\d{4}",[9]],["870(?:28|87)\\\\d\\\\d",[7]]]],"LU":["352","00","35[013-9]\\\\d{4,8}|6\\\\d{8}|35\\\\d{2,4}|(?:[2457-9]\\\\d|3[0-46-9])\\\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\\\d{2})(\\\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["20"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\\\d)",0,0,0,[["(?:35[013-9]|80[2-9]|90[89])\\\\d{1,8}|(?:2[2-9]|3[0-46-9]|[457]\\\\d|8[13-9]|9[2-579])\\\\d{2,9}"],["6(?:[269][18]|5[1568]|7[189]|81)\\\\d{6}",[9]],["800\\\\d{5}",[8]],["90[015]\\\\d{5}",[8]],0,0,0,0,["20(?:1\\\\d{5}|[2-689]\\\\d{1,7})",[4,5,6,7,8,9,10]],["801\\\\d{5}",[8]]]],"MC":["377","00","(?:[3489]|6\\\\d)\\\\d{7}",[8,9],[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0",0,0,0,0,0,[["(?:870|9[2-47-9]\\\\d)\\\\d{5}",[8]],["4(?:[469]\\\\d|5[1-9])\\\\d{5}|(?:3|6\\\\d)\\\\d{7}"],["(?:800|90\\\\d)\\\\d{5}",[8]]]],"MT":["356","00","3550\\\\d{4}|(?:[2579]\\\\d\\\\d|800)\\\\d{5}",[8],[["(\\\\d{4})(\\\\d{4})","$1 $2",["[2357-9]"]]],0,0,0,0,0,0,[["20(?:3[1-4]|6[059])\\\\d{4}|2(?:0[19]|[1-357]\\\\d|60)\\\\d{5}"],["(?:7(?:210|[79]\\\\d\\\\d)|9(?:[29]\\\\d\\\\d|69[67]|8(?:1[1-3]|89|97)))\\\\d{4}"],["800(?:02|[3467]\\\\d)\\\\d{3}"],["5(?:0(?:0(?:37|43)|(?:6\\\\d|70|9[0168])\\\\d)|[12]\\\\d0[1-5])\\\\d{3}"],0,0,["501\\\\d{5}"],["7117\\\\d{4}"],["3550\\\\d{4}"]]],"NL":["31","00","(?:[124-7]\\\\d\\\\d|3(?:[02-9]\\\\d|1[0-8]))\\\\d{6}|8\\\\d{6,9}|9\\\\d{6,10}|1\\\\d{4,5}",[5,6,7,8,9,10,11],[["(\\\\d{3})(\\\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\\\d{2})(\\\\d{7})","$1 $2",["66"],"0$1"],["(\\\\d)(\\\\d{8})","$1 $2",["6"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{5})","$1 $2 $3",["9"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:[035]\\\\d|1[13-578]|6[124-8]|7[24]|8[0-467])|2(?:[0346]\\\\d|2[2-46-9]|5[125]|9[479])|3(?:[03568]\\\\d|1[3-8]|2[01]|4[1-8])|4(?:[0356]\\\\d|1[1-368]|7[58]|8[15-8]|9[23579])|5(?:[
100358]\\\\d|[19][1-9]|2[1-57-9]|4[13-8]|6[126]|7[0-3578])|7\\\\d\\\\d)\\\\d{6}",[9]],["(?:6[1-58]|970\\\\d)\\\\d{7}",[9,11]],["800\\\\d{4,7}",[7,8,9,10]],["90[069]\\\\d{4,7}",[7,8,9,10]],0,0,["140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|(?:140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)|8[478]\\\\d{6})\\\\d",[5,6,9]],["66\\\\d{7}",[9]],["(?:85|91)\\\\d{7}",[9]]]],"NO":["47","00","(?:0|[2-9]\\\\d{3})\\\\d{4}",[5,8],[["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["8"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]",[["(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\\\d{6}",[8]],["(?:4[015-8]|9\\\\d)\\\\d{6}",[8]],["80[01]\\\\d{5}",[8]],["82[09]\\\\d{5}",[8]],["880\\\\d{5}",[8]],["81[23]\\\\d{5}",[8]],["(?:0[235-9]|81(?:0(?:0[7-9]|1\\\\d)|5\\\\d\\\\d))\\\\d{3}"],0,["85[0-5]\\\\d{5}",[8]],["810(?:0[0-6]|[2-8]\\\\d)\\\\d{3}",[8]]]],"PL":["48","00","(?:6|8\\\\d\\\\d)\\\\d{7}|[1-9]\\\\d{6}(?:\\\\d{2})?|[26]\\\\d{5}",[6,7,8,9,10],[["(\\\\d{5})","$1",["19"]],["(\\\\d{3})(\\\\d{3})","$1 $2",["11|20|64"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["64"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["47\\\\d{7}|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])(?:[02-9]\\\\d{6}|1(?:[0-8]\\\\d{5}|9\\\\d{3}(?:\\\\d{2})?))",[7,9]],["2131[89]\\\\d{4}|21(?:1[013-5]|2\\\\d|3[2-9])\\\\d{5}|(?:45|5[0137]|6[069]|7[2389]|88)\\\\d{7}",[9]],["800\\\\d{6,7}",[9,10]],["70[01346-8]\\\\d{6}",[9]],0,0,["804\\\\d{6}",[9]],["64\\\\d{4,7}",[6,7,8,9]],["39\\\\d{7}",[9]],["801\\\\d{6}",[9]]]],"PT":["351","00","1693\\\\d{5}|(?:[26-9]\\\\d|30)\\\\d{7}",[9],[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2[12]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["16|[236-9]"]]],0,0,0,0,0,0,[["2(?:[12]\\\\d|3[1-689]|4[1-59]|[57][1-9]|6[1-35689]|8[1-69]|9[1256])\\\\d{6}"],["6(?:[06]92(?:30|9\\\\d)|[35]92(?:[049]\\\\d|3[034]))\\\\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\\\\d\\\\d|480))\\\\d{5}"],["80[02]\\\\d{6}"],["(?:6(?:0[178]|4[68])\\\\d|76(?:0[1-57]|1[2-47]|2[237]))\\\\d{5}"],["884[0-4689]\\\\d{5}"],["600\\\\d{6}|6[06]92(?:0\\\\d|3[349]|49)\\\\d{3}"],["70(?:38[01]|596|(?:7\\\\d|8[17])\\\\d)\\\\d{4}"],["6(?:222\\\\d|8988)\\\\d{4}"],["30\\\\d{7}"],["80(?:8\\\\d|9[1579])\\\\d{5}"]]],"SE":["46","00","(?:[26]\\\\d\\\\d|9)\\\\d{9}|[1-9]\\\\d{8}|[1-689]\\\\d{7}|[1-4689]\\\\d{6}|2\\\\d{5}
10",[6,7,8,9,10,12],[["(\\\\d{2})(\\\\d{2,3})(\\\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\\\d{3})(\\\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\\\d{2})(\\\\d{3})(\\\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\\\d)(\\\\d{2,3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\\\d{3})(\\\\d{2,3})(\\\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\\\d{3})(\\\\d{2,3})(\\\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\\\d{2})(\\\\d{2,3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0",0,0,0,0,0,[["(?:(?:[12][136]|3[356]|4[0246]|6[03]|8\\\\d)\\\\d|90[1-9])\\\\d{4,6}|(?:1(?:2[0-35]|4[0-4]|5[0-25-9]|7[13-6]|[89]\\\\d)|2(?:2[0-7]|4[0136-8]|5[0138]|7[018]|8[01]|9[0-57])|3(?:0[0-4]|1\\\\d|2[0-25]|4[056]|7[0-2]|8[0-3]|9[023])|4(?:1[013-8]|3[0135]|5[14-79]|7[0-246-9]|8[0156]|9[0-689])|5(?:0[0-6]|[15][0-5]|2[0-68]|3[0-4]|4\\\\d|6[03-5]|7[013]|8[0-79]|9[01])|6(?:1[1-3]|2[0-4]|4[02-57]|5[0-37]|6[0-3]|7[0-2]|8[0247]|9[0-356])|9(?:1[0-68]|2\\\\d|3[02-5]|4[0-3]|5[0-4]|[68][01]|7[0135-8]))\\\\d{5,6}",[7,8,9]],["7[02369]\\\\d{7}",[9]],["20\\\\d{4,7}",[6,7,8,9]],["649\\\\d{6}|99[1-59]\\\\d{4}(?:\\\\d{3})?|9(?:00|39|44)[1-8]\\\\d{3,6}",[7,8,9,10]],["75[1-8]\\\\d{6}",[9]],["(?:25[245]|67[3-68])\\\\d{9}",[12]],["10[1-8]\\\\d{6}",[9]],["74[02-9]\\\\d{6}",[9]],0,["77[0-7]\\\\d{6}",[9]]]],"US":["1","011","[2-9]\\\\d{9}|3\\\\d{6}",[10],[["(\\\\d{3})(\\\\d{4})","$1-$2",["310"],0,1],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\\\d)|5056(?:[0-35-9]\\\\d|4[0-468]))\\\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|983[2-47-9])\\\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}"],["900[2-9]\\\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\\\d|5(?:[02-46-9]\\\\d|5[0-46-9]))|4(?:[2-478][02-9]\\\\d|5(?:[034]\\\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\\\d)|9(?:[05-9]\\\\d|2[0-5]|49)))\\\\d{4}|52[34][2-9]1[02-9]\\\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\\\d{6}"],0,0,0,["305209\\\\d{4}"]]],"AU":["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\\\d{7}(?:\\\\d(?:\\\\d{2})?)?|8[0-24-9]\\\\d{7})|[2-478]\\\\d{8}|1\\\\d{4,7}",[5,6,7,8,9,10,12],[["(\\\\d{2})(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{4})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\\\d|2[0-8]))\\\\d|3(?:(?:[0-3589]\\\\d|6[1-9]|7[0-35-9])\\\\d|4(?:[0-578]\\\\d|90)))\\\\d\\\\d|8(?:51(?:0(?:0[03-9]|[12479]\\\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\\\d|7[89]|9[0-4])|3\\\\d\\\\d)|(?:6[0-8]|[78]\\\\d)\\\\d{3}|9(?:[02-9]\\\\d{3}|1(?:(?:[0-58]\\\\d|6[0135-9])\\\\d|7(?:0[0-24-9]|[1-9]\\\\d)|9(?:[0-46-9]\\\\d|5[0-79])))))\\\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\\\d{5}|4(?:[0-36]\\\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\\\d{6}",[9]],["180(?:0\\\\d{3}|2)\\\\d{3}",[7,10]],["190[0-26]\\\\d{6}",[10]],0,0,0,["163\\\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}",[9]],["13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}",[6,8,10,12]]],"0011"],"NZ":["64","0(?:0|161)","[1289]\\\\d{9}|50\\\\d{5}(?:\\\\d{2,3})?|[27-9]\\\\d{7,8}|(?:[34]\\\\d|6[0-35-9])\\\\d{6}|8\\\\d{4,6}",[5,6,7,8,9,10],[["(\\\\d{2})(\\\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,[["240\\\\d{5}|(?:3[2-79]|[49][2-9]|6[235-9]|7[2-57-9])\\\\d{6}",[8]],["2(?:[0-27-9]\\\\d|6)\\\\d{6,7}|2(?:1\\\\d|75)\\\\d{5}",[8,9,10]],["508\\\\d{6,7}|80\\\\d{6,8}",[8,9,10]],["(?:1[13-57-9]\\\\d{5}|50(?:0[08]|30|66|77|88))\\\\d{3}|90\\\\d{6,8}",[7,8,9,10]],["70\\\\d{7}",[9]],0,["8(?:1[16-9]|22|3\\\\d|4[045]|5[459]|6[235-9]|7[0-3579]|90)\\\\d{2,7}"]],"00"]}'),rl={}
vendor: 70,076 bytes, lines 10-22
10,Dt={version:4,country_calling_codes:el,countries:nl,nonGeographic:rl};function Na(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),a=0;a<3;a++){var i=Number(n[a]),o=Number(r[a]);if(i>o)return 1;if(o>i)return-1;if(!isNaN(i)&&isNaN(o))return 1;if(isNaN(i)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var al={}.constructor;function Nt(e){return e!=null&&e.constructor===al}function jt(e){"@babel/helpers - typeof";return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jt(e)}function Ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function il(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,ol(r.key),r)}}function Pe(e,t,n){return t&&il(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ol(e){var t=sl(e,"string");return jt(t)=="symbol"?t:t+""}function sl(e,t){if(jt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ul="1.2.0",ll="1.7.35",Pa=" ext. ",cl=/^\d+$/,j=(function(){function e(t){Ne(this,e),_a(t),this.metadata=t,Fa.call(this,t)}return Pe(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(t){return t!=="001"})}},{key:"getCountryMetadata",value:function(t){return this.metadata.countries[t]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(t){return this.getCountryMetadata(t)!==void 0}},{key:"hasCallingCode",value:function(t){if(this.getCountryCodesForCallingCode(t))return!0;if(this.nonGeographic()){if(this.nonGeographic()[t])return!0}else{var n=this.countryCallingCodes()[t];if(n&&n.length===1&&n[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(t){return this.nonGeographic()?!!this.nonGeographic()[t]:!this.getCountryCodesForCallingCode(t)}},{key:"country",value:function(t){return this.selectNumberingPlan(t)}},{key:"selectNumberingPlan",value:function(t,n){if(t&&cl.test(t)&&(n=t,t=null),t&&t!=="001"){if(!this.hasCountry(t))throw new Error("Unknown country: ".concat(t));this.numberingPlan=new Ta(this.getCountryMetadata(t),this)}else if(n){if(!this.hasCallingCode(n))throw new Error("Unknown calling code: ".concat(n));this.numberingPlan=new Ta(this.getNumberingPlanMetadata(n),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(t){var n=this.countryCallingCodes()[t];if(n)return n.length===1&&n[0].length===3?void 0:n}},{key:"getCountryCodeForCallingCode",value:function(t){var n=this.getCountryCodesForCallingCode(t);if(n)return n[0]}},{key:"getNumberingPlanMetadata",value:function(t){var n=this.getCountryCodeForCallingCode(t);if(n)return this.getCountryMetadata(n);if(this.nonGeographic()){var r=this.nonGeographic()[t];if(r)return r}else{var a=this.countryCallingCodes()[t];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(t){return this.numberingPlan.type(t)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(t){return this.selectNumberingPlan(t)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),Ta=(function(){function e(t,n){Ne(this,e),this.globalMetadataObject=n,this.metadata=t,Fa.call(this,n.metadata)}return Pe(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(t){return t[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var t=this,n=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return n.map(function(r){return new dl(r,t)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(t){return t[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(t){if(this.hasTypes()&&Aa(this.types(),t))return new hl(Aa(this.types(),t),this)}},{key:"ext",value:function(){return this.v1||this.v2?Pa:this.metadata[13]||Pa}}])})(),dl=(function(){function e(t,n){Ne(this,e),this._format=t,this.metadata=n}return Pe(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!fl.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),fl=/^\(?\$1\)?$/,hl=(function(){function e(t,n){Ne(this,e),this.type=t,this.metadata=n}return Pe(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function Aa(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function _a(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Nt(e)||!Nt(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Nt(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+pl(e)+": "+e,"."))}var pl=function(e){return jt(e)};function Te(e,t){if(t=new j(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function Ia(e,t){return t.countries.hasOwnProperty(e)}function Fa(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?Na(t,ul)===-1?this.v2=!0:Na(t,ll)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function Qt(e,t,n){return gl(e,t,void 0,n)}function gl(e,t,n,r){t&&(r=new j(r.metadata),r.selectNumberingPlan(t));var a=r.type(n),i=a&&a.possibleLengths()||r.possibleLengths();if(!i)return"IS_POSSIBLE";var o=e.length,s=i[0];return s===o?"IS_POSSIBLE":s>o?"TOO_SHORT":i[i.length-1]<o?"TOO_LONG":i.indexOf(o,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function ml(e,t,n){if(t===void 0&&(t={}),n=new j(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return ka(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function ka(e,t,n){return Qt(e,t,n)==="IS_POSSIBLE"}function ht(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function yl(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=vl(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
11In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vl(e,t){if(e){if(typeof e=="string")return Ra(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ra(e,t):void 0}}function Ra(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}var bl=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Sn(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){n=new j(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(ht(r,n.nationalNumberPattern())){if(En(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||En(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=yl(bl),i;!(i=a()).done;){var o=i.value;if(En(r,o,n))return o}}}}function En(e,t,n){var r=n.type(t);return!r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?!1:ht(e,r.pattern())}function $l(e,t,n){if(t=t||{},n=new j(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes())return Sn(e,t,n.metadata)!==void 0;var r=t.v2?e.nationalNumber:e.phone;return ht(r,n.nationalNumberPattern())}function Cl(e,t,n){var r=new j(n),a=r.getCountryCodesForCallingCode(e);return a?a.filter(function(i){return wl(t,i,n)}):[]}function wl(e,t,n){var r=new j(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var xn=2,Sl=17,El=3,G="0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9",xl="-\u2010-\u2015\u2212\u30FC\uFF0D",Ol="\uFF0F/",Nl="\uFF0E.",Pl=" \xA0\xAD\u200B\u2060\u3000",Tl="()\uFF08\uFF09\uFF3B\uFF3D\\[\\]",Al="~\u2053\u223C\uFF5E",rt="".concat(xl).concat(Ol).concat(Nl).concat(Pl).concat(Tl).concat(Al),Ae="+\uFF0B",_l=new RegExp("(["+G+"])");function La(e,t,n,r){if(t){var a=new j(r);a.selectNumberingPlan(t,n);var i=new RegExp(a.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var o=e.match(_l);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]==="0"))return e}}}function On(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var a,i,o=r.length-1,s=o>0&&r[o];if(t.nationalPrefixTransformRule()&&s)a=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(i=r[1]);else{var l=r[0];a=e.slice(l.length),s&&(i=r[1])}var u;if(s){var c=e.indexOf(r[1]),d=e.slice(0,c);d===t.numberingPlan.nationalPrefix()&&(u=t.numberingPlan.nationalPrefix())}else u=r[0];return{nationalNumber:a,nationalPrefix:u,carrierCode:i}}}return{nationalNumber:e}}function Il(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Fl(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
12In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fl(e,t){if(e){if(typeof e=="string")return Da(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Da(e,t):void 0}}function Da(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 ja(e,t){var n=t.countries,r=t.metadata;r=new j(r);for(var a=Il(n),i;!(i=a()).done;){var o=i.value;if(r.selectNumberingPlan(o),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return o}else if(Sn({phone:e,country:o},void 0,r.metadata))return o}}function Nn(e,t){var n=t.nationalNumber,r=t.metadata,a=r.getCountryCodesForCallingCode(e);if(a)return a.length===1?a[0]:ja(n,{countries:a,metadata:r.metadata})}function Pn(e,t,n){var r=On(e,n),a=r.carrierCode,i=r.nationalNumber;if(i!==e){if(!kl(e,i,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=Nn(n.numberingPlan.callingCode(),{nationalNumber:i,metadata:n})),!Rl(i,t,n)))return{nationalNumber:e}}return{nationalNumber:i,carrierCode:a}}function kl(e,t,n){return!(ht(e,n.nationalNumberPattern())&&!ht(t,n.nationalNumberPattern()))}function Rl(e,t,n){switch(Qt(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Ma(e,t,n,r,a){var i=t||n?Te(t||n,a):r;if(e.indexOf(i)===0){a=new j(a),a.selectNumberingPlan(t||n,i);var o=e.slice(i.length),s=Pn(o,t,a),l=s.nationalNumber,u=Pn(e,t,a),c=u.nationalNumber;if(!ht(c,a.nationalNumberPattern())&&ht(l,a.nationalNumberPattern())||Qt(c,t,a)==="TOO_LONG")return{countryCallingCode:i,number:o}}return{number:e}}function Tn(e,t,n,r,a){if(!e)return{};var i;if(e[0]!=="+"){var o=La(e,t||n,r,a);if(o&&o!==e)i=!0,e="+"+o;else{if(t||n||r){var s=Ma(e,t,n,r,a),l=s.countryCallingCode,u=s.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:u}}return{number:e}}}if(e[1]==="0")return{};a=new j(a);for(var c=2;c-1<=El&&c<=e.length;){var d=e.slice(1,c);if(a.hasCallingCode(d))return a.selectNumberingPlan(d),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:d,number:e.slice(c)};c++}return{}}function Ua(e){return e.replace(new RegExp("[".concat(rt,"]+"),"g")," ").trim()}var Ba=/(\$\d)/;function qa(e,t,n){var r=n.useInternationalFormat,a=n.withNationalPrefix;n.carrierCode,n.metadata;var i=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(Ba,t.nationalPrefixFormattingRule()):t.format());return r?Ua(i):i}var Ll=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Dl(e,t,n){var r=new j(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Ll.test(r.IDDPrefix()))return r.IDDPrefix()}function jl(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}var Ka={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function Ml(e,t,n,r){if(n?n=ql({},Ka,n):n=Ka,r=new j(r),e.country&&e.country!=="001"){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else if(e.countryCallingCode)r.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var a=r.countryCallingCode(),i=n.v2?e.nationalNumber:e.phone,o;switch(t){case"NATIONAL":return i?(o=_e(i,e.carrierCode,"NATIONAL",r,n),An(o,e.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return i?(o=_e(i,null,"INTERNATIONAL",r,n),o="+".concat(a," ").concat(o),An(o,e.ext,r,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return jl({number:"+".concat(a).concat(i),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=Bl(i,e.carrierCode,a,n.fromCountry,r);return s?An(s,e.ext,r,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function _e(e,t,n,r,a){var i=Ul(r.formats(),e);return i?qa(e,i,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&a&&a.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function Ul(e,t){return Kl(e,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(t.search(r)!==0)return!1}return ht(t,n.pattern())})}function An(e,t,n,r){return t?r(e,t,n):e}function Bl(e,t,n,r,a){var i=Te(r,a.metadata);if(i===n){var o=_e(e,t,"NATIONAL",a);return n==="1"?n+" "+o:o}var s=Dl(r,void 0,a.metadata);if(s)return"".concat(s," ").concat(n," ").concat(_e(e,null,"INTERNATIONAL",a))}function ql(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var a in n[e])n[0][a]=n[e][a];e++}return n[0]}function Kl(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function Jt(e){"@babel/helpers - typeof";return Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(e)}function Ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Va(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ha(Object(n),!0).forEach(function(r){Hl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ha(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hl(e,t,n){return(t=za(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zl(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,za(r.key),r)}}function Gl(e,t,n){return t&&zl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function za(e){var t=Wl(e,"string");return Jt(t)=="symbol"?t:t+""}function Wl(e,t){if(Jt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ga=(function(){function e(t,n,r){if(Vl(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(Nt(n)&&Nt(n.countries)){r=n;var a=t;if(!Yl.test(a))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var i=Tn(a,void 0,void 0,void 0,r),o=i.countryCallingCode,s=i.number;if(n=s,t=o,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");_a(r);var l=Jl(t,r),u=l.country,c=l.countryCallingCode;this.country=u,this.countryCallingCode=c,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Gl(e,[{key:"setExt",value:function(t){this.ext=t}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:Cl(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return ml(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return $l(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var t=new j(this.getMetadata());return t.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(t){return this.number===t.number&&this.ext===t.ext}},{key:"getType",value:function(){return Sn(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(t,n){return Ml(this,t,n?Va(Va({},n),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(t){return this.format("NATIONAL",t)}},{key:"formatInternational",value:function(t){return this.format("INTERNATIONAL",t)}},{key:"getURI",value:function(t){return this.format("RFC3966",t)}}])})(),Ql=function(e){return/^[A-Z]{2}$/.test(e)};function Jl(e,t){var n,r,a=new j(t);return Ql(e)?(n=e,a.selectNumberingPlan(n),r=a.countryCallingCode()):r=e,{country:n,countryCallingCode:r}}var Yl=/^\+\d+$/;function Yt(e){"@babel/helpers - typeof";return Yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yt(e)}function Zl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xl(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,ec(r.key),r)}}function tc(e,t,n){return t&&Xl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ec(e){var t=nc(e,"string");return Yt(t)=="symbol"?t:t+""}function nc(e,t){if(Yt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rc=(function(){function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;Zl(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}return tc(e,[{key:"reset",value:function(t){var n=t.country,r=t.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(n,r)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberIsModified=!1,this.nationalPrefix=void 0,this.carrierCode=void 0,this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix=void 0}},{key:"update",value:function(t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];this[a]=t[a]}}},{key:"initCountryAndCallingCode",value:function(t,n){this.setCountry(t),this.setCallingCode(n)}},{key:"setCountry",value:function(t){this.country=t,this.onCountryChange(t)}},{key:"setCallingCode",value:function(t){this.callingCode=t,this.onCallingCodeChange(t,this.country)}},{key:"startInternationalNumber",value:function(t,n){this.international=!0,this.initCountryAndCallingCode(t,n)}},{key:"appendDigits",value:function(t){this.digits+=t}},{key:"appendNationalSignificantNumberDigits",value:function(t){this.nationalSignificantNumber+=t}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])})();function ac(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=ic(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ic(e,t){if(e){if(typeof e=="string")return Wa(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wa(e,t):void 0}}function Wa(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}var at="x",_n=new RegExp(at);function Ie(e,t){if(t<1)return"";for(var n="";t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function Qa(e,t){return e[t]===")"&&t++,oc(e.slice(0,t))}function oc(e){for(var t=[],n=0;n<e.length;)e[n]==="("?t.push(n):e[n]===")"&&t.pop(),n++;var r=0,a="";t.push(e.length);for(var i=0,o=t;i<o.length;i++){var s=o[i];a+=e.slice(r,s),r=s+1}return a}function sc(e,t,n){for(var r=ac(n.split("")),a;!(a=r()).done;){var i=a.value;if(e.slice(t+1).search(_n)<0)return;t=e.search(_n),e=e.replace(_n,i)}return[e,t]}function uc(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=lc(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lc(e,t){if(e){if(typeof e=="string")return Ja(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ja(e,t):void 0}}function Ja(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}var cc={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uFF10":"0","\uFF11":"1","\uFF12":"2","\uFF13":"3","\uFF14":"4","\uFF15":"5","\uFF16":"6","\uFF17":"7","\uFF18":"8","\uFF19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9"};function Ya(e){return cc[e]}function Fe(e){for(var t="",n=uc(e.split("")),r;!(r=n()).done;){var a=r.value,i=Ya(a);i&&(t+=i)}return t}function dc(e,t,n){var r=n.metadata,a=n.shouldTryNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix,o=new RegExp("^(?:".concat(t.pattern(),")$"));if(o.test(e.nationalSignificantNumber))return hc(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:a,getSeparatorAfterNationalPrefix:i})}function fc(e,t,n){return Qt(e,t,n)==="IS_POSSIBLE"}function hc(e,t,n){var r=n.metadata,a=n.shouldTryNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,a(t)){var o=Za(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:i,metadata:r});if(o)return o}return Za(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:i,metadata:r})}function Za(e,t,n){var r=n.metadata,a=n.useNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix,o=qa(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:a,metadata:r});if(a||(e.nationalPrefix?o=e.nationalPrefix+i(t)+o:e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(o=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+" "+o)),pc(o,e))return o}function pc(e,t){return Fe(e)===t.getNationalDigits()}function Zt(e){"@babel/helpers - typeof";return Zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zt(e)}function gc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mc(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,vc(r.key),r)}}function yc(e,t,n){return t&&mc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vc(e){var t=bc(e,"string");return Zt(t)=="symbol"?t:t+""}function bc(e,t){if(Zt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $c=(function(){function e(){gc(this,e)}return yc(e,[{key:"parse",value:function(t){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(t),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var n=this.context[0],r=n.branches,a=n.instructions;if(r)return{op:"|",args:r.concat([In(a)])};if(a.length===0)throw new Error("Pattern is required");return a.length===1?a[0]:a}},{key:"startContext",value:function(t){this.context.push(t)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(t){if(!t)throw new Error("Pattern is required");var n=t.match(Sc);if(!n){if(wc.test(t))throw new Error("Illegal characters found in a pattern: ".concat(t));this.getContext().instructions=this.getContext().instructions.concat(t.split(""));return}var r=n[1],a=t.slice(0,n.index),i=t.slice(n.index+r.length);switch(r){case"(?:":a&&this.parsePattern(a),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(a&&this.parsePattern(a),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var o=this.getContext(),s=o.branches;s.push(In(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:s});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(a&&this.parsePattern(a),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(In(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":a&&this.parsePattern(a),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:Cc(a)});break;default:throw new Error("Unknown operator: ".concat(r))}i&&this.parsePattern(i)}}])})();function Cc(e){for(var t=[],n=0;n<e.length;){if(e[n]==="-"){if(n===0||n===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[n-1].charCodeAt(0)+1,a=e[n+1].charCodeAt(0)-1,i=r;i<=a;)t.push(String.fromCharCode(i)),i++}else t.push(e[n]);n++}return t}var wc=/[\(\)\[\]\?\:\|]/,Sc=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function In(e){return e.length===1?e[0]:e}function Xa(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Ec(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ec(e,t){if(e){if(typeof e=="string")return ti(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ti(e,t):void 0}}function ti(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 Xt(e){"@babel/helpers - typeof";return Xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(e)}function xc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oc(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,Pc(r.key),r)}}function Nc(e,t,n){return t&&Oc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pc(e){var t=Tc(e,"string");return Xt(t)=="symbol"?t:t+""}function Tc(e,t){if(Xt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ac=(function(){function e(t){xc(this,e),this.matchTree=new $c().parse(t)}return Nc(e,[{key:"match",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.allowOverflow;if(!t)throw new Error("String is required");var a=Fn(t.split(""),this.matchTree,!0);if(a&&a.match&&delete a.matchedChars,!(a&&a.overflow&&!r))return a}}])})();function Fn(e,t,n){if(typeof t=="string"){var r=e.join("");return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var a=e.slice(),i=0;i<t.length;){var o=t[i],s=Fn(a,o,n&&i===t.length-1);if(s){if(s.overflow)return s;if(s.match){if(a=a.slice(s.matchedChars.length),a.length===0)return i===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else{if(s.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
16`.concat(JSON.stringify(s,null,2)))}}else return;i++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-a.length)}}switch(t.op){case"|":for(var l,u=Xa(t.args),c;!(c=u()).done;){var d=c.value,f=Fn(e,d,n);if(f){if(f.overflow)return f;if(f.match)return{match:!0,matchedChars:f.matchedChars};if(f.partialMatch)l=!0;else throw new Error(`Unsupported match result:
17`.concat(JSON.stringify(f,null,2)))}}return l?{partialMatch:!0}:void 0;case"[]":for(var h=Xa(t.args),p;!(p=h()).done;){var g=p.value;if(e[0]===g)return e.length===1?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[g]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function te(e){"@babel/helpers - typeof";return te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},te(e)}function ei(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_c(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _c(e,t){if(e){if(typeof e=="string")return ni(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ni(e,t):void 0}}function ni(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 Ic(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fc(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,Rc(r.key),r)}}function kc(e,t,n){return t&&Fc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rc(e){var t=Lc(e,"string");return te(t)=="symbol"?t:t+""}function Lc(e,t){if(te(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(te(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kn="9",Dc=15,jc=Ie(kn,Dc),Mc=/[- ]/,Uc=function(){return/\[([^\[\]])*\]/g},Bc=function(){return/\d(?=[^,}][^,}])/g},qc=new RegExp("["+rt+"]*\\$1["+rt+"]*(\\$\\d["+rt+"]*)*$"),ri=3,Kc=(function(){function e(t){t.state;var n=t.metadata;Ic(this,e),this.metadata=n,this.resetFormat()}return kc(e,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(t,n){this.resetFormat(),t?(this.isNANP=t.callingCode()==="1",this.matchingFormats=t.formats(),n.nationalSignificantNumber&&this.narrowDownMatchingFormats(n)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(t,n){var r=this;if(fc(n.nationalSignificantNumber,n.country,this.metadata))for(var a=ei(this.matchingFormats),i;!(i=a()).done;){var o=i.value,s=dc(n,o,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(l){return r.shouldTryNationalPrefixFormattingRule(l,{international:n.international,nationalPrefix:n.nationalPrefix})},getSeparatorAfterNationalPrefix:function(l){return r.getSeparatorAfterNationalPrefix(l)}});if(s)return this.resetFormat(),this.chosenFormat=o,this.setNationalNumberTemplate(s.replace(/\d/g,at),n),this.populatedNationalNumberTemplate=s,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(at),s}return this.formatNationalNumberWithNextDigits(t,n)}},{key:"formatNationalNumberWithNextDigits",value:function(t,n){var r=this.chosenFormat,a=this.chooseFormat(n);if(a)return a===r?this.formatNextNationalNumberDigits(t):this.formatNextNationalNumberDigits(n.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(t){var n=this,r=t.nationalSignificantNumber,a=t.nationalPrefix,i=t.international,o=r,s=o.length-ri;s<0&&(s=0),this.matchingFormats=this.matchingFormats.filter(function(l){return n.formatSuits(l,i,a)&&n.formatMatches(l,o,s)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(t,n,r){return!(r&&!t.usesNationalPrefix()&&!t.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!n&&!r&&t.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(t,n,r){var a=t.leadingDigitsPatterns().length;if(a===0)return!0;r=Math.min(r,a-1);var i=t.leadingDigitsPatterns()[r];if(n.length<ri)try{return new Ac(i).match(n,{allowOverflow:!0})!==void 0}catch(o){return console.error(o),!0}return new RegExp("^(".concat(i,")")).test(n)}},{key:"getFormatFormat",value:function(t,n){return n?t.internationalFormat():t.format()}},{key:"chooseFormat",value:function(t){for(var n=this,r=function(){var s=o.value;return n.chosenFormat===s?0:qc.test(n.getFormatFormat(s,t.international))?n.createTemplateForFormat(s,t)?(n.chosenFormat=s,0):(n.matchingFormats=n.matchingFormats.filter(function(l){return l!==s}),1):1},a,i=ei(this.matchingFormats.slice()),o;!(o=i()).done&&(a=r(),a!==0););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(t,n){if(!(t.pattern().indexOf("|")>=0)){var r=this.getTemplateForFormat(t,n);if(r)return this.setNationalNumberTemplate(r,n),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(t){return this.isNANP||t&&t.nationalPrefixFormattingRule()&&Mc.test(t.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(t,n){var r=t.IDDPrefix,a=t.missingPlus;return r?n&&n.spacing===!1?r:r+" ":a?"":"+"}},{key:"getTemplate",value:function(t){if(this.template){for(var n=-1,r=0,a=t.international?this.getInternationalPrefixBeforeCountryCallingCode(t,{spacing:!1}):"";r<a.length+t.getDigitsWithoutInternationalPrefix().length;)n=this.template.indexOf(at,n+1),r++;return Qa(this.template,n+1)}}},{key:"setNationalNumberTemplate",value:function(t,n){this.nationalNumberTemplate=t,this.populatedNationalNumberTemplate=t,this.populatedNationalNumberTemplatePosition=-1,n.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(n).replace(/[\d\+]/g,at)+Ie(at,n.callingCode.length)+" "+t:this.template=t}},{key:"getTemplateForFormat",value:function(t,n){var r=n.nationalSignificantNumber,a=n.international,i=n.nationalPrefix,o=n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,s=t.pattern();s=s.replace(Uc(),"\\d").replace(Bc(),"\\d");var l=jc.match(s)[0];if(!(r.length>l.length)){var u=new RegExp("^"+s+"$"),c=r.replace(/\d/g,kn);u.test(c)&&(l=c);var d=this.getFormatFormat(t,a),f;if(this.shouldTryNationalPrefixFormattingRule(t,{international:a,nationalPrefix:i})){var h=d.replace(Ba,t.nationalPrefixFormattingRule());if(Fe(t.nationalPrefixFormattingRule())===(i||"")+Fe("$1")&&(d=h,f=!0,i))for(var p=i.length;p>0;)d=d.replace(/\d/,at),p--}var g=l.replace(new RegExp(s),d).replace(new RegExp(kn,"g"),at);return f||(o?g=Ie(at,o.length)+" "+g:i&&(g=Ie(at,i.length)+this.getSeparatorAfterNationalPrefix(t)+g)),a&&(g=Ua(g)),g}}},{key:"formatNextNationalNumberDigits",value:function(t){var n=sc(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,t);if(!n){this.resetFormat();return}return this.populatedNationalNumberTemplate=n[0],this.populatedNationalNumberTemplatePosition=n[1],Qa(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(t,n){var r=n.international,a=n.nationalPrefix;if(t.nationalPrefixFormattingRule()){var i=t.usesNationalPrefix();if(i&&a||!i&&!r)return!0}}}])})();function ee(e){"@babel/helpers - typeof";return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(e)}function ai(e,t){return Gc(e)||zc(e,t)||Vc(e,t)||Hc()}function Hc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
19In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vc(e,t){if(e){if(typeof e=="string")return ii(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ii(e,t):void 0}}function ii(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 zc(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function Gc(e){if(Array.isArray(e))return e}function Wc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qc(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,Yc(r.key),r)}}function Jc(e,t,n){return t&&Qc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yc(e){var t=Zc(e,"string");return ee(t)=="symbol"?t:t+""}function Zc(e,t){if(ee(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ee(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xc="["+rt+G+"]+",td=new RegExp("^"+Xc+"$","i"),ed="(?:["+Ae+"]["+rt+G+"]*|["+rt+G+"]+)",nd=new RegExp("[^"+rt+G+"]+.*$"),rd=/[^\d\[\]]/,ad=(function(){function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,a=t.metadata,i=t.onNationalSignificantNumberChange;Wc(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=a,this.onNationalSignificantNumberChange=i}return Jc(e,[{key:"input",value:function(t,n){var r=sd(t),a=ai(r,2),i=a[0],o=a[1],s=Fe(i),l;return o&&(n.digits||(n.startInternationalNumber(void 0,void 0),s||(l=!0))),s&&this.inputDigits(s,n),{digits:s,justLeadingPlus:l}}},{key:"inputDigits",value:function(t,n){var r=n.digits,a=r.length<3&&r.length+t.length>=3;if(n.appendDigits(t),a&&this.extractIddPrefix(n),this.isWaitingForCountryCallingCode(n)){if(!this.extractCountryCallingCode(n))return}else n.appendNationalSignificantNumberDigits(t);n.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(n.getNationalDigits(),function(i){return n.update(i)})}},{key:"isWaitingForCountryCallingCode",value:function(t){var n=t.international,r=t.callingCode;return n&&!r}},{key:"extractCountryCallingCode",value:function(t){var n=Tn("+"+t.getDigitsWithoutInternationalPrefix(),t.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),r=n.countryCallingCode,a=n.number;if(r)return t.setCallingCode(r),t.update({nationalSignificantNumber:a}),!0}},{key:"reset",value:function(t){if(t){this.hasSelectedNumberingPlan=!0;var n=t._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=n&&rd.test(n)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(t,n){if(this.hasSelectedNumberingPlan){var r=On(t,this.metadata),a=r.nationalPrefix,i=r.nationalNumber,o=r.carrierCode;if(i!==t)return this.onExtractedNationalNumber(a,o,i,t,n),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(t,n,r){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(t,r);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var a=On(t,this.metadata),i=a.nationalPrefix,o=a.nationalNumber,s=a.carrierCode;if(o!==n)return this.onExtractedNationalNumber(i,s,o,t,r),!0}}},{key:"onExtractedNationalNumber",value:function(t,n,r,a,i){var o=!1,s,l=a.lastIndexOf(r);if(l<0||l!==a.length-r.length)o=!0;else{var u=a.slice(0,l);u&&u!==t&&(s=u)}i({nationalPrefix:t,carrierCode:n,nationalSignificantNumber:r,nationalSignificantNumberIsModified:o,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:s}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(t){if(this.extractAnotherNationalSignificantNumber(t.getNationalDigits(),t.nationalSignificantNumber,function(n){return t.update(n)}))return!0;if(this.extractIddPrefix(t))return this.extractCallingCodeAndNationalSignificantNumber(t),!0;if(this.fixMissingPlus(t))return this.extractCallingCodeAndNationalSignificantNumber(t),!0}},{key:"extractIddPrefix",value:function(t){var n=t.international,r=t.IDDPrefix,a=t.digits;if(t.nationalSignificantNumber,!(n||r)){var i=La(a,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(i!==void 0&&i!==a)return t.update({IDDPrefix:a.slice(0,a.length-i.length)}),this.startInternationalNumber(t,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(t){if(!t.international){var n=Ma(t.digits,t.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),r=n.countryCallingCode;if(r)return t.update({missingPlus:!0}),this.startInternationalNumber(t,{country:t.country,callingCode:r}),!0}}},{key:"startInternationalNumber",value:function(t,n){var r=n.country,a=n.callingCode;t.startInternationalNumber(r,a),t.nationalSignificantNumber&&(t.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(t){this.extractCountryCallingCode(t)&&this.extractNationalSignificantNumber(t.getNationalDigits(),function(n){return t.update(n)})}}])})();function id(e){var t=e.search(ed);if(!(t<0)){e=e.slice(t);var n;return e[0]==="+"&&(n=!0,e=e.slice(1)),e=e.replace(nd,""),n&&(e="+"+e),e}}function od(e){var t=id(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function sd(e){var t=od(e),n=ai(t,2),r=n[0],a=n[1];return td.test(r)||(r=""),[r,a]}function ne(e){"@babel/helpers - typeof";return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(e)}function ud(e,t){return fd(e)||dd(e,t)||cd(e,t)||ld()}function ld(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cd(e,t){if(e){if(typeof e=="string")return oi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oi(e,t):void 0}}function oi(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 dd(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function fd(e){if(Array.isArray(e))return e}function hd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pd(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,md(r.key),r)}}function gd(e,t,n){return t&&pd(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function md(e){var t=yd(e,"string");return ne(t)=="symbol"?t:t+""}function yd(e,t){if(ne(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ne(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vd=(function(){function e(t,n){hd(this,e),this.metadata=new j(n);var r=this.getCountryAndCallingCode(t),a=ud(r,2),i=a[0],o=a[1];this.defaultCountry=i,this.defaultCallingCode=o,this.reset()}return gd(e,[{key:"getCountryAndCallingCode",value:function(t){var n,r;return t&&(Nt(t)?(n=t.defaultCountry,r=t.defaultCallingCode):n=t),n&&!this.metadata.hasCountry(n)&&(n=void 0),[n,r]}},{key:"input",value:function(t){var n=this.parser.input(t,this.state),r=n.digits,a=n.justLeadingPlus;if(a)this.formattedOutput="+";else if(r){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var i;if(this.metadata.hasSelectedNumberingPlan()&&(i=this.formatter.format(r,this.state)),i===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var o=this.state.getNationalDigits();o&&(i=this.formatter.format(o,this.state))}this.formattedOutput=i?this.getFullNumber(i):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var t=this;return this.state=new rc({onCountryChange:function(n){t.country=n},onCallingCodeChange:function(n,r){t.metadata.selectNumberingPlan(r,n),t.formatter.reset(t.metadata.numberingPlan,t.state),t.parser.reset(t.metadata.numberingPlan)}}),this.formatter=new Kc({state:this.state,metadata:this.metadata}),this.parser=new ad({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){t.determineTheCountryIfNeeded(),t.formatter.reset(t.metadata.numberingPlan,t.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var t=this.state.digits;if(t)return this._getCountry()}},{key:"_getCountry",value:function(){var t=this.state.country;return t}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(t){var n=this;if(this.isInternational()){var r=function(i){return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state,{spacing:!!i})+i},a=this.state.callingCode;return r(a?t?"".concat(a," ").concat(t):a:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return t}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var t=this.state,n=t.nationalSignificantNumber,r=t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,a=t.nationalPrefix,i=n,o=r||a;return o&&(i=o+i),i}},{key:"getNonFormattedNumber",value:function(){var t=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(t?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var t=this.getNonFormattedNumber();if(t)return t.replace(/[\+\d]/g,at)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var t=this.state.callingCode,n=this.metadata.getCountryCodesForCallingCode(t);return n&&n.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(Nn(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var t=this.state,n=t.digits,r=t.callingCode,a=t.country,i=t.nationalSignificantNumber;if(n){if(this.isInternational())return r?"+"+r+i:"+"+n;if(a||r){var o=a?this.metadata.countryCallingCode():r;return"+"+o+i}}}},{key:"getNumber",value:function(){var t=this.state,n=t.nationalSignificantNumber,r=t.carrierCode,a=t.callingCode,i=this._getCountry();if(n&&!(!i&&!a)){if(i&&i===this.defaultCountry){var o=new j(this.metadata.metadata);o.selectNumberingPlan(i);var s=o.numberingPlan.callingCode(),l=this.metadata.getCountryCodesForCallingCode(s);if(l.length>1){var u=ja(n,{countries:l,metadata:this.metadata.metadata});u&&(i=u)}}var c=new Ga(i||a,n,this.metadata.metadata);return r&&(c.carrierCode=r),c}}},{key:"isPossible",value:function(){var t=this.getNumber();return t?t.isPossible():!1}},{key:"isValid",value:function(){var t=this.getNumber();return t?t.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])})();function re(e){"@babel/helpers - typeof";return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(e)}function si(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?si(Object(n),!0).forEach(function(r){$d(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $d(e,t,n){return(t=Cd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cd(e){var t=wd(e,"string");return re(t)=="symbol"?t:t+""}function wd(e,t){if(re(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(re(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sd(e,t){return Nd(e)||Od(e,t)||xd(e,t)||Ed()}function Ed(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xd(e,t){if(e){if(typeof e=="string")return ui(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ui(e,t):void 0}}function ui(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 Od(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function Nd(e){if(Array.isArray(e))return e}function li(e){var t=Array.prototype.slice.call(e),n=Sd(t,4),r=n[0],a=n[1],i=n[2],o=n[3],s,l,u;if(typeof r=="string")s=r;else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a=="string")o?(l=i,u=o):(l=void 0,u=i),a&&(l=bd({defaultCountry:a},l));else if(Nt(a))i?(l=a,u=i):u=a;else throw new Error("Invalid second argument: ".concat(a));return{text:s,options:l,metadata:u}}function Rn(e){"@babel/helpers - typeof";return Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(e)}function Pd(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Td(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ad(e,t,n){return t=ie(t),_d(e,Dn()?Reflect.construct(t,n||[],ie(e).constructor):t.apply(e,n))}function _d(e,t){if(t&&(Rn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Id(e)}function Id(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fd(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ae(e,t)}function Ln(e){var t=typeof Map=="function"?new Map:void 0;return Ln=function(n){if(n===null||!Rd(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return kd(n,arguments,ie(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ae(r,n)},Ln(e)}function kd(e,t,n){if(Dn())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&ae(a,n.prototype),a}function Dn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dn=function(){return!!e})()}function Rd(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function ae(e,t){return ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ae(e,t)}function ie(e){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ie(e)}var st=(function(e){function t(n){var r;return Td(this,t),r=Ad(this,t,[n]),Object.setPrototypeOf(r,t.prototype),r.name=r.constructor.name,r}return Fd(t,e),Pd(t)})(Ln(Error)),Ld=";ext=",Mt=function(e){return"([".concat(G,"]{1,").concat(e,"})")};function ci(e){var t="20",n="15",r="9",a="6",i="[ \xA0\\t,]*",o="[:\\.\uFF0E]?[ \xA0\\t,-]*",s="#?",l="(?:e?xt(?:ensi(?:o\u0301?|\xF3))?n?|\uFF45?\uFF58\uFF54\uFF4E?|\u0434\u043E\u0431|anexo)",u="(?:[x\uFF58#\uFF03~\uFF5E]|int|\uFF49\uFF4E\uFF54)",c="[- ]+",d="[ \xA0\\t]*",f="(?:,{2}|;)",h=Ld+Mt(t),p=i+l+o+Mt(t)+s,g=i+u+o+Mt(r)+s,m=c+Mt(a)+"#",y=d+f+o+Mt(n)+s,v=d+"(?:,)+"+o+Mt(r)+s;return h+"|"+p+"|"+g+"|"+m+"|"+y+"|"+v}var Dd="["+G+"]{"+xn+"}",jd="["+Ae+"]{0,1}(?:["+rt+"]*["+G+"]){3,}["+rt+G+"]*",Md=new RegExp("^["+Ae+"]{0,1}(?:["+rt+"]*["+G+"]){1,2}$","i"),Ud=jd+"(?:"+ci()+")?",Bd=new RegExp("^"+Dd+"$|^"+Ud+"$","i");function qd(e){return e.length>=xn&&Bd.test(e)}function Kd(e){return Md.test(e)}var di=new RegExp("(?:"+ci()+")$","i");function Hd(e){var t=e.search(di);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(di),a=1;a<r.length;){if(r[a])return{number:n,ext:r[a]};a++}}function Vd(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=zd(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zd(e,t){if(e){if(typeof e=="string")return fi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fi(e,t):void 0}}function fi(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 hi(e){for(var t="",n=Vd(e.split("")),r;!(r=n()).done;){var a=r.value;t+=Gd(a,t)||""}return t}function Gd(e,t,n){return e==="+"?t?void 0:"+":Ya(e)}var pi="+",Wd="[\\-\\.\\(\\)]?",gi="(["+G+"]|"+Wd+")",Qd="^\\"+pi+gi+"*["+G+"]"+gi+"*$",Jd=new RegExp(Qd,"g"),jn=G,Yd="["+jn+"]+((\\-)*["+jn+"])*",Zd="a-zA-Z",Xd="["+Zd+"]+((\\-)*["+jn+"])*",tf="^("+Yd+"\\.)*"+Xd+"\\.?$",ef=new RegExp(tf,"g"),mi="tel:",Mn=";phone-context=",nf=";isub=";function rf(e){var t=e.indexOf(Mn);if(t<0)return null;var n=t+Mn.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function af(e){return e===null?!0:e.length===0?!1:Jd.test(e)||ef.test(e)}function of(e,t){var n=t.extractFormattedPhoneNumber,r=rf(e);if(!af(r))throw new st("NOT_A_NUMBER");var a;if(r===null)a=n(e)||"";else{a="",r.charAt(0)===pi&&(a+=r);var i=e.indexOf(mi),o;i>=0?o=i+mi.length:o=0;var s=e.indexOf(Mn);a+=e.substring(o,s)}var l=a.indexOf(nf);if(l>0&&(a=a.substring(0,l)),a!=="")return a}var sf=250,uf=new RegExp("["+Ae+G+"]"),lf=new RegExp("[^"+G+"#]+$");function cf(e,t,n){if(t=t||{},n=new j(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new st("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=ff(e,t.v2,t.extract),a=r.number,i=r.ext,o=r.error;if(!a){if(t.v2)throw o==="TOO_SHORT"?new st("TOO_SHORT"):new st("NOT_A_NUMBER");return{}}var s=pf(a,t.defaultCountry,t.defaultCallingCode,n),l=s.country,u=s.nationalNumber,c=s.countryCallingCode,d=s.countryCallingCodeSource,f=s.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new st("INVALID_COUNTRY");return{}}if(!u||u.length<xn){if(t.v2)throw new st("TOO_SHORT");return{}}if(u.length>Sl){if(t.v2)throw new st("TOO_LONG");return{}}if(t.v2){var h=new Ga(c,u,n.metadata);return l&&(h.country=l),f&&(h.carrierCode=f),i&&(h.ext=i),h.__countryCallingCodeSource=d,h}var p=(t.extended?n.hasSelectedNumberingPlan():l)?ht(u,n.nationalNumberPattern()):!1;return t.extended?{country:l,countryCallingCode:c,carrierCode:f,valid:p,possible:p?!0:!!(t.extended===!0&&n.possibleLengths()&&ka(u,l,n)),phone:u,ext:i}:p?hf(l,u,i):{}}function df(e,t,n){if(e){if(e.length>sf){if(n)throw new st("TOO_LONG");return}if(t===!1)return e;var r=e.search(uf);if(!(r<0))return e.slice(r).replace(lf,"")}}function ff(e,t,n){var r=of(e,{extractFormattedPhoneNumber:function(i){return df(i,n,t)}});if(!r)return{};if(!qd(r))return Kd(r)?{error:"TOO_SHORT"}:{};var a=Hd(r);return a.ext?a:{number:r}}function hf(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function pf(e,t,n,r){var a=Tn(hi(e),void 0,t,n,r.metadata),i=a.countryCallingCodeSource,o=a.countryCallingCode,s=a.number,l;if(o)r.selectNumberingPlan(o);else if(s&&(t||n))r.selectNumberingPlan(t,n),t&&(l=t),o=n||Te(t,r.metadata);else return{};if(!s)return{countryCallingCodeSource:i,countryCallingCode:o};var u=Pn(hi(s),l,r),c=u.nationalNumber,d=u.carrierCode,f=Nn(o,{nationalNumber:c,metadata:r});return f&&(l=f,f==="001"||r.selectNumberingPlan(l)),{country:l,countryCallingCode:o,countryCallingCodeSource:i,nationalNumber:c,carrierCode:d}}function oe(e){"@babel/helpers - typeof";return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oe(e)}function yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yi(Object(n),!0).forEach(function(r){gf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gf(e,t,n){return(t=mf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mf(e){var t=yf(e,"string");return oe(t)=="symbol"?t:t+""}function yf(e,t){if(oe(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oe(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bi(e,t,n){return cf(e,vi(vi({},t),{},{v2:!0}),n)}function se(e){"@babel/helpers - typeof";return se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},se(e)}function $i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ci(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$i(Object(n),!0).forEach(function(r){vf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vf(e,t,n){return(t=bf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bf(e){var t=$f(e,"string");return se(t)=="symbol"?t:t+""}function $f(e,t){if(se(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(se(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cf(e,t,n){t&&t.defaultCountry&&!Ia(t.defaultCountry,n)&&(t=Ci(Ci({},t),{},{defaultCountry:void 0}));try{return bi(e,t,n)}catch(r){if(!(r instanceof st))throw r}}function wi(){var e=li(arguments),t=e.text,n=e.options,r=e.metadata;return Cf(t,n,r)}function ue(e){"@babel/helpers - typeof";return ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ue(e)}function Si(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ei(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
22t%2?Si(Object(n),!0).forEach(function(r){wf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Si(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wf(e,t,n){return(t=Sf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sf(e){var t=Ef(e,"string");return ue(t)=="symbol"?t:t+""}function Ef(e,t){if(ue(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ue(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xf(){var e=li(arguments),t=e.text,n=e.options,r=e.metadata;n=Ei(Ei({},n),{},{extract:!1});try{var a=bi(t,n,r);r=new j(r),r.selectNumberingPlan(a.countryCallingCode);var i=Qt(a.nationalNumber,a.country,r);if(i!=="IS_POSSIBLE")return i}catch(o){if(o instanceof st)return o.message;throw o}}function xi(e,t){return t?wi(e,t,Dt):wi(e,Dt)}function Of(e){return Ia(e,Dt)}function Nf(e){return Te(e,Dt)}function Pf(e,t){return xf(e,t,Dt)}$("M",class extends vd{constructor(t){super(t,Dt)}});const Tf=e=>{const t=[];return e?.length&&e.forEach(n=>{const r={startDay:n.weekday,endDay:n.weekday,startTime:n.startTime,endTime:n.endTime},a=t[t.length-1];a&&a.startTime===n.startTime&&a.endTime===n.endTime?a.endDay=n.weekday:t.push(r)}),t};$({O:(e,t)=>{const{data:n,error:r}=q(()=>xi(e,t));return r?{isValid:!1,message:"call_me.form.fields.phone_number.errors.invalid_format"}:{isValid:n?.isValid()||!1,phoneNumber:n?.number,message:"call_me.form.fields.phone_number.errors.invalid_format"}},_:(e,t)=>{const{data:n,error:r}=q(()=>xi(e));return r?!1:n?.countryCallingCode===t?.trim()?.replace("+","")},N:e=>{const{data:t,error:n}=q(()=>Nf(e));return n?(console.warn(`Error getting calling code for ${e}: ${n}`),"1"):t}});const Af=(e,t,n)=>e.replace("{{day}}",t).replace("{{time}}",n).replace(/\s{2,}/g," ").trim(),Oi=(e,t)=>{const n={year:"numeric",month:"2-digit",day:"2-digit"},r=new Intl.DateTimeFormat("en-CA",n).formatToParts(t??new Date);return{year:Number(r.find(a=>a.type==="year").value),month:Number(r.find(a=>a.type==="month").value),day:Number(r.find(a=>a.type==="day").value)}},_f=(e,t)=>{const n=Date.UTC(e.year,e.month-1,e.day),r=Date.UTC(t.year,t.month-1,t.day);return Math.round((n-r)/864e5)},If=(e,t)=>e?{isClosingSoon:t<=mn,minutesUntilClose:Math.floor(t/60)}:{isClosingSoon:!1,minutesUntilClose:null},Ff=(e,t,n)=>{if(n<=0)return null;const r=Date.now()+n*1e3,a=new Date(Math.round(r/6e4)*6e4),i=new Intl.DateTimeFormat(e,{weekday:"short"}).format(a),o=new Intl.DateTimeFormat(e,{weekday:"long"}).format(a),s=new Intl.DateTimeFormat(e,{hour:"numeric",minute:"2-digit"}).format(a).replace(/\u202f/g," "),l=Oi(void 0,a),u=Oi(),c=Math.max(0,_f(l,u)),d=c===0,f=c===1,h=d?"":f?new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(1,"day"):o,p=Af(t,h,s);return{shortDayName:i,longDayName:o,openingTime:s,isTomorrow:f,isSameDay:d,localizedSentence:p}},kf=(e=!0)=>{const{callMeConfig:t}=ft();return vt({queryKey:["c2c-spam"],queryFn:()=>ha(t?.allowVPNs),staleTime:1/0,gcTime:1/0,retry:!1,refetchOnWindowFocus:!1,refetchInterval:!1,enabled:e})},Rf=$("a1",(e=!0)=>{const{proadvantageType:t,isProadvantage:n,loadingProAdvantage:r,tenant:a,locale:i}=ft(),{t:o}=xe(),{data:s,isLoading:l}=Oe(e),{data:u,isLoading:c}=kf(e);return vt({queryKey:["c2c",a,i],queryFn:async()=>{if(s?.enabled&&s?.config.c2cDisabled)return N.warn("Contact Channels: useCallMe",{emergencyEnabled:s.enabled,c2cDisabled:s.config.c2cDisabled,locale:i,tenant:a,message:"CallMe service is disabled due to emergency"}),{isAvailable:!1,availabilityInfo:{emergencyMessage:s.message,reason:"EMERGENCY"},ui:{title:o("call_me.title"),description:o("call_me.service_unavailable")}};if(!u)return N.warn("Contact Channels: useCallMe",{message:"CallMe service is unavailable due to spam protection",reason:"BLOCKED",locale:i,tenant:a,spamProtection:!1}),{isAvailable:!1,availabilityInfo:{reason:"BLOCKED"},ui:{title:o("call_me.title"),description:o("call_me.service_unavailable")}};if(!ma(i))return{isAvailable:!1,availabilityInfo:{reason:"DISABLED"},ui:{title:o("call_me.title"),description:o("call_me.service_unavailable")}};const d=await tl(a,i),{status:f,businessHours:h}=d||{},{isFeatureEnabled:p,isScheduleOpen:g,remainingTime:m=0}=f||{},y=Tf(h?.schedule||[]),v=If(g||!1,m),b=g?null:Ff(i,o("call_me.next_opening.sentence"),m);return!f||!p||n?(N.warn("Contact Channels: useCallMe",{message:"CallMe service is disabled",reason:"DISABLED",hasStatus:!!f,locale:i,tenant:a,isFeatureEnabled:p||!1,isProadvantage:n||!1}),{isAvailable:!1,availabilityInfo:{reason:"DISABLED"},plainData:{schedule:y,timezone:h?.timezone?.short_format||"",isScheduleOpen:g||!1,isFeatureEnabled:p||!1,isProadvantage:n||!1,proadvantageType:t,closingSoon:v,nextOpening:b},ui:{title:o("call_me.title"),description:o("call_me.service_unavailable")}}):g?{isAvailable:!0,plainData:{schedule:y,timezone:h?.timezone?.short_format||"",isScheduleOpen:g,isFeatureEnabled:p,isProadvantage:n,proadvantageType:t,closingSoon:v,nextOpening:b,remainingTime:m},ui:{title:o("call_me.buttons.call_me_online.title"),description:o("call_me.buttons.call_me_online.description")}}:(ot.warn("Contact Channels: useCallMe",{action:"CallMeAvailabilityCheck",message:"CallMe service is unavailable due to business hours",reason:"OUT_OF_BUISNESS_HOURS",isScheduleOpen:!1,locale:i,tenant:a,formattedSchedule:JSON.stringify(y),timezone:h?.timezone?.short_format||""}),{isAvailable:!1,availabilityInfo:{reason:"OUT_OF_BUISNESS_HOURS"},plainData:{schedule:y,timezone:h?.timezone?.short_format||"",isScheduleOpen:g||!1,isFeatureEnabled:p,isProadvantage:n,proadvantageType:t,closingSoon:v,nextOpening:b,remainingTime:m},ui:{title:o("call_me.title"),description:o("call_me.service_unavailable")}})},staleTime:300*1e3,gcTime:300*1e3,retry:2,enabled:!l&&!r&&!c&&e,refetchInterval:d=>{const f=d.state.data?.plainData?.remainingTime;return f?f<=mn?f<Fu*2?f*Se+Se:ku:f*Se-mn*Se:!1}})}),Lf=async(e,t,n,r)=>{const a=new URLSearchParams;a.append("tenant",e),a.append("locale",t),a.append("feature",n),a.append("checkAgentAvailability","false");const{data:i,error:o}=await q(fetch(`https://global-channel-provider-service.care.vpsvc.com/v3/channels/chat?${a}`,{method:"GET",headers:{"Content-Type":"multipart/form-data",Accept:"application/json","X-Api-Key":"Dz70ypBT7D1xRxqCCcUn71qH8iZ9qRiO3Ndbx2YU"}}));if(o)throw N.error("Contact Channels: Chat Info",{...o,locale:t,tenant:e,feature:n,checkAgentAvailability:r}),new Error(`Network error: ${o.message}`);if(!i.ok)throw N.error("Contact Channels: Chat Info",{status:i.status,message:"Failed to fetch Chat Info"}),new Error(`HTTP error! Status: ${i.status}`);return i.json()};let Df=class{constructor(t){this.eventNames=t}buffer=[];listeners=null;start(){this.listeners||(this.buffer=[],this.listeners=new Map,this.eventNames.forEac
22h(t=>{const n=()=>{this.buffer.push(t)};this.listeners.set(t,n),document.addEventListener(t,n)}))}flush(t){const n=[...this.buffer];this.stop(),n.forEach(r=>t[r]?.())}stop(){this.listeners&&(this.listeners.forEach((t,n)=>{document.removeEventListener(n,t)}),this.listeners=null),this.buffer=[]}get isBuffering(){return this.listeners!==null}get bufferedEvents(){return this.buffer}};const jf=["CAonChatInit","CAonSessionActive","CAafterMaximize","CAafterDestroy","CAchatOffline"],le=new Df(jf),Mf=$("Y",(e=!0)=>{const{locale:t,tenant:n,isProadvantage:r}=ft(),{t:a}=xe(),i=pn(),{data:o,isLoading:s}=Oe(e),l=J(()=>["chat-status",n,t,r,o?.enabled],[o,r,t,n]),u=F(async()=>{const m=r?"ProAdvantageChat":"ContactUsPage";if(o?.enabled&&o?.config?.chatDisabled)return N.warn("Contact Channels: useChat",{emergencyEnabled:o?.enabled||!1,chatDisabled:o?.config?.chatDisabled||!1,message:"Chat service is disabled due to emergency",locale:t,tenant:n,isProadvantage:r,reason:"EMERGENCY"}),{isAvailable:!1,availabilityInfo:{reason:"EMERGENCY",emergencyMessage:o?.message??""},plainData:{chatStatus:"offline",gcpChatStatus:!1},ui:{title:a("chat.title"),description:a("chat.buttons.chat_unavailable.description")}};le.start();const{initCA:y}=await C.import("./index.es.js");if(y(),n==="national-pen")return{isAvailable:!0,plainData:{chatStatus:"preparing",gcpChatStatus:!0},ui:{title:a("chat.title"),description:a("chat.standard.description")}};const{data:v,error:b}=await q(Lf(n,t,m));if(b)return le.stop(),N.error("Contact Channels: useChat",{reason:"DISABLED",...b,tenant:n,locale:t,chatType:m}),{isAvailable:!1,availabilityInfo:{reason:"DISABLED"},plainData:{chatStatus:"offline",gcpChatStatus:!1},ui:{title:a("chat.title"),description:a("chat.buttons.chat_offline.description")}};const x=v?.status?.isChatEnabled??!1;return x||le.stop(),{isAvailable:x,availabilityInfo:x?void 0:{reason:"DISABLED"},plainData:{chatStatus:x?"preparing":"offline",gcpChatStatus:x},ui:{title:a("chat.title"),description:a(x?"chat.standard.description":"chat.buttons.chat_offline.description")}}},[r,t,n,o,a]),c=vt({queryKey:l,queryFn:u,enabled:!s&&e,staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1}),d=F(()=>{i.setQueryData(l,m=>m&&{...m,plainData:{...m.plainData,chatStatus:"chatting"}})},[i,l]),f=F(()=>{i.setQueryData(l,m=>{if(!m)return m;const y=m.plainData?.gcpChatStatus??!1;return{isAvailable:y,availabilityInfo:y?void 0:{reason:"OUT_OF_BUISNESS_HOURS"},plainData:{chatStatus:y?"online":"offline",gcpChatStatus:y},ui:{title:a("chat.title"),description:a(y?"chat.standard.description":"chat.buttons.chat_offline.description")}}})},[i,l,a]),h=F(()=>{i.setQueryData(l,m=>m&&{...m,isAvailable:!1,availabilityInfo:{reason:"DISABLED"},plainData:{...m.plainData,chatStatus:"offline"}})},[i,l]),p=J(()=>({CAonChatInit:f,CAonSessionActive:d,CAafterMaximize:d,CAafterDestroy:f,CAchatOffline:h}),[f,d,h]);Y(()=>(document.dispatchEvent(new CustomEvent("helpCenterCAEvent")),Object.entries(p).forEach(([m,y])=>{document.addEventListener(m,y)}),()=>{Object.entries(p).forEach(([m,y])=>{document.removeEventListener(m,y)})}),[p]);const g=U(!1);return Y(()=>{c.data?.plainData?.chatStatus==="preparing"&&!g.current&&(g.current=!0,le.flush(p))},[c.data,p]),Y(()=>{g.current=!1},[l]),Y(()=>()=>{le.stop()},[]),c}),Uf=(e=!0)=>{const{proadvantageType:t,isProadvantage:n}=ft(),{t:r}=xe(),{data:a,isLoading:i}=Oe(e),{data:o,isLoading:s}=Oa(e);return vt({queryKey:["email"],queryFn:async()=>{if(a?.enabled&&a?.config.emailDisabled)return N.warn("Contact Channels: useEmail",{emergencyEnabled:a.enabled,emailDisabled:a.config.emailDisabled,message:"Email service is disabled due to emergency",reason:"EMERGENCY"}),{isAvailable:!1,availabilityInfo:{emergencyMessage:a.message,reason:"EMERGENCY"},ui:{title:r("phone.title"),description:r("phone.service_unavailable")}};const{email:l}=o?.contactChannels||{},{scheduleMsg:u,proadvantageEmailAddress:c,premiumProadvantageEmailAddress:d}=l||{};let f=r("email.proadvantage.call_us");const h=t==="basic"?c:d,p=`<a href='mailto:${h}'>${h}</a>`;f=f.split("{1}").join(p);const g=r("email.proadvantage.support_care_team"),m=n?f:u;return m?{isAvailable:!0,plainData:{scheduleMessage:m,proAdvantageSupportPhrase:g,emailAddress:h,isProadvantage:n,proadvantageType:t},ui:{title:r("email.title"),description:m}}:(N.warn("Contact Channels: useEmail",{message:"Email service is disabled due to missing schedule message",reason:"DISABLED",hasScheduleMessage:!1,isProadvantage:n||!1,proadvantageType:t||"none"}),{isAvailable:!1,availabilityInfo:{reason:"DISABLED"},ui:{title:r("email.title"),description:r("email.service_unavailable")}})},staleTime:300*1e3,gcTime:300*1e3,enabled:!i&&!s&&e})},Un=(e,t)=>{if(e===t)return!0;
22if(typeof e!="object"||typeof t!="object"||!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){if(!(a in t))return!1;const i=e[a],o=t[a];if(typeof i=="object"&&i!==null&&typeof o=="object"&&o!==null){if(i.isAvailable!==o.isAvailable||i.reason!==o.reason||i.data!==o.data)return!1}else if(i!==o)return!1}return!0},Ni={email:!0,callMe:!0,chat:!0,phone:!0},ke=(e,t)=>{const n=e(t),r={isLoading:n.isLoading||n.isPending,isAvailable:!n.isError&&!!n.data?.isAvailable,reason:n.data?.availabilityInfo?.reason,plainData:n.data?.plainData},a=U(r);return a.current.isLoading===r.isLoading&&a.current.isAvailable===r.isAvailable&&a.current.reason===r.reason&&Un(a.current.plainData,r.plainData)||(a.current=r),a.current},ip=$("F",e=>{const t=J(()=>e?Object.keys(Ni).reduce((g,m)=>(g[m]=e.includes(m),g),{}):Ni,[e?.join(",")]),n=ke(Xu,t.phone),r=ke(Uf,t.email),a=ke(Rf,t.callMe),i=ke(Mf,t.chat),o={phone:n,email:r,callMe:a,chat:i},s=()=>{const g={},m=[];return Object.entries(o).filter(([y])=>t[y]).forEach(([y,v])=>{const b=y,x={isAvailable:v.isAvailable,reason:v.reason,data:v.plainData};g[b]=x,x.isAvailable&&m.push(b)}),{channelsObject:g,availableChannelNames:m}},l=U(s()),u=U(!1),c=()=>{for(const g of Object.keys(o))if(t[g]&&o[g].isLoading)return!0;return!1},d=s();(!Un(d.channelsObject,l.current.channelsObject)||!Un(d.availableChannelNames,l.current.availableChannelNames))&&(l.current=d);const f=c();f!==u.current&&(u.current=f);const h=l.current.channelsObject,p=l.current.availableChannelNames;return{isLoading:u.current,channelInfo:h,availableChannels:p}});var Bf=class extends Lt{#t;#e=void 0;#n;#a;constructor(e,t){super(),this.#t=e,this.setOptions(t),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#t.defaultMutationOptions(e),$e(this.options,t)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&Ot(t.mutationKey)!==Ot(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#i(e)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(e,t){return this.#a=t,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(e)}#r(){const e=this.#n?.state??ya();this.#e={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#i(e){D.batch(()=>{if(this.#a&&this.hasListeners()){const t=this.#e.variables,n=this.#e.context,r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#a.onSuccess?.(e.data,t,n,r)}catch(a){Promise.reject(a)}try{this.#a.onSettled?.(e.data,null,t,n,r)}catch(a){Promise.reject(a)}}else if(e?.type==="error"){try{this.#a.onError?.(e.error,t,n,r)}catch(a){Promise.reject(a)}try{this.#a.onSettled?.(void 0,e.error,t,n,r)}catch(a){Promise.reject(a)}}}this.listeners.forEach(t=>{t(this.#e)})})}};function Pi(e,t){const n=pn(),[r]=B.useState(()=>new Bf(n,e));B.useEffect(()=>{r.setOptions(e)},[r,e]);const a=B.useSyncExternalStore(B.useCallback(o=>r.subscribe(D.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=B.useCallback((o,s)=>{r.mutate(o,s).catch(z)},[r]);if(a.error&&ln(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:i,mutateAsync:a.mutate}}function bt(e){if(e==null)throw new TypeError("Expected a string but received a ".concat(e));if(e.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(e.constructor.name))}function Bn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)typeof e[n]>"u"&&(e[n]=t[n]);return e}var qf={ignore_whitespace:!1};function K(e,t){return bt(e),t=Bn(t,qf),(t.ignore_whitespace?e.trim().length:e.length)===0}function Kf(e,t){bt(e);for(var n=e.length-1;/\s/.test(e.charAt(n));)n-=1;return e.slice(0,n+1)}function Hf(e,t){bt(e);var n=/^\s+/g;return e.replace(n,"")}function _(e,t){return Kf(Hf(e))}function qn(e){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(e)}function Ti(e,t){bt(e);var n,r;qn(t)==="object"?(n=t.min||0,r=t.max):(n=arguments[1]||0,r=arguments[2]);var a=e.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g)||[],i=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],o=e.length-a.length-i.length,s=o>=n&&(typeof r>"u"||o<=r);return s&&Array.isArray(t?.discreteLengths)?t.discreteLengths.some(function(l){return l===o}):s}function Vf(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function Ai(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||Vf(r)&&r.test(e))return!0}return!1}function Kn(e){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(e)}function Hn(e,t){bt(e);var n,r;Kn(t)==="object"?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var a=encodeURI(e).split(/%..|./).length-1;return a>=n&&(typeof r>"u"||a<=r)}var zf={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function Gf(e,t){bt(e),t=Bn(t,zf),t.allow_trailing_dot&&e[e.length-1]==="."&&(e=e.substring(0,e.length-1)),t.allow_wildcard===!0&&e.indexOf("*.")===0&&(e=e.substring(2));var n=e.split("."),r=n[n.length-1];return t.require_tld&&(n.length<2||!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(r)||/\s/.test(r))||!t.allow_numeric_tld&&/^\d+$/.test(r)?!1:n.every(function(a){return!(a.length>63&&!t.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(a)||/[\uff01-\uff5e]/.test(a)||/^-|-$/.test(a)||!t.allow_underscores&&/_/.test(a))})}function Vn(e){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(e)}var _i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",$t="(".concat(_i,"[.]){3}").concat(_i),Wf=new RegExp("^".concat($t,"$")),L="(?:[0-9a-fA-F]{1,4})",Qf=new RegExp("^("+"(?:".concat(L,":){7}
22(?:").concat(L,"|:)|")+"(?:".concat(L,":){6}(?:").concat($t,"|:").concat(L,"|:)|")+"(?:".concat(L,":){5}(?::").concat($t,"|(:").concat(L,"){1,2}|:)|")+"(?:".concat(L,":){4}(?:(:").concat(L,"){0,1}:").concat($t,"|(:").concat(L,"){1,3}|:)|")+"(?:".concat(L,":){3}(?:(:").concat(L,"){0,2}:").concat($t,"|(:").concat(L,"){1,4}|:)|")+"(?:".concat(L,":){2}(?:(:").concat(L,"){0,3}:").concat($t,"|(:").concat(L,"){1,5}|:)|")+"(?:".concat(L,":){1}(?:(:").concat(L,"){0,4}:").concat($t,"|(:").concat(L,"){1,6}|:)|")+"(?::((?::".concat(L,"){0,5}:").concat($t,"|(?::").concat(L,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function Re(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};bt(e);var n=(Vn(t)==="object"?t.version:arguments[1])||"";return n?n.toString()==="4"?Wf.test(e):n.toString()==="6"?Qf.test(e):!1:Re(e,{version:4})||Re(e,{version:6})}var Jf={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},Yf=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,Zf=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,Xf=/^[a-z\d]+$/,th=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,eh=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,nh=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,rh=254;function ah(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;var n=/[\.";<>]/.test(t);if(n){if(t===e)return!1;var r=t.split('"').length===t.split('\\"').length;if(!r)return!1}return!0}function Ii(e,t){if(bt(e),t=Bn(t,Jf),t.require_display_name||t.allow_display_name){var n=e.match(Yf);if(n){var r=n[1];if(e=e.replace(r,"").replace(/(^<|>$)/g,""),r.endsWith(" ")&&(r=r.slice(0,-1)),!ah(r))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>rh)return!1;var a=e.split("@"),i=a.pop(),o=i.toLowerCase();if(t.host_blacklist.length>0&&Ai(o,t.host_blacklist)||t.host_whitelist.length>0&&!Ai(o,t.host_whitelist))return!1;var s=a.join("@");if(t.domain_specific_validation&&(o==="gmail.com"||o==="googlemail.com")){s=s.toLowerCase();var l=s.split("+")[0];if(!Hn(l.replace(/\./g,""),{min:6,max:30}))return!1;for(var u=l.split("."),c=0;c<u.length;c++)if(!Xf.test(u[c]))return!1}if(t.ignore_max_length===!1&&(!Hn(s,{max:64})||!Hn(i,{max:254})))return!1;if(!Gf(i,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!Re(i)){if(!i.startsWith("[")||!i.endsWith("]"))return!1;var d=i.slice(1,-1);if(d.length===0||!Re(d))return!1}}if(t.blacklisted_chars&&s.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)return!1;if(s[0]==='"'&&s[s.length-1]==='"')return s=s.slice(1,s.length-1),t.allow_utf8_local_part?nh.test(s):th.test(s);for(var f=t.allow_utf8_local_part?eh:Zf,h=s.split("."),p=0;p<h.length;p++)if(!f.test(h[p]))return!1;return!0}const ih=$("B",{validateSubject:function(e){const t=/[<>$+*/&\\~.#{|^@()[\]}%=!:;£?"]/;return e!==void 0&&!K(e)&&!t.test(e)},validateIssue:function(e){const t=/[<>$+*/&\\~.#{|^@()[\]}%=!:;£?"]/;return e!==void 0&&!K(e)&&!t.test(e)},validateOrderNumber:function(e){const t=/[<>$+*/&\\~.#{|^@()[\]}%=!:;£?"]/;return e===void 0||e!==void 0&&K(_(e))||e!==void 0&&!K(_(e))&&!t.test(_(e))},validatePhoneNumber:function(e){const t=/^[+]{0,1}[0-9]{1,19}$/;return e===void 0||e!==void 0&&K(_(e))||e!==void 0&&!K(_(e))&&t.test(_(e))},validatePhoneNumberRequired:function(e){return!e||K(_(e))?!1:/^[+]{0,1}[0-9]{1,19}$/.test(_(e))},validateQueryType:function(e){return e!==void 0&&!K(_(e))},validateQueryCategory:function(e){return e!==void 0&&!K(_(e))},validateCustomerNumber:function(e){const t=/[<>$+*/&\\~.#{|^@()[\]}%=!:;£?"]/;return e===void 0||e!==void 0&&K(_(e))||e!==void 0&&!K(_(e))&&!t.test(_(e))},validateCaseId:function(e){return e===void 0||typeof e=="string"&&/^[a-zA-Z0-9]{15}$|^[a-zA-Z0-9]{18}$/.test(e)},validateNameEmpty:function(e){return e!==void 0&&!K(_(e))},validateNameFormat:function(e){return e!==void 0&&!/[<>$+*/&\\~.#{|^@()[\]}%=!:;£?"]/.test(_(e))&&Ti(_(e),{min:1,max:30})},validateEmailAddressEmpty:function(e){return e!==void 0&&!K(_(e))},validateEmailExistingAt:function(e){return e!==void 0&&_(e).includes("@")},validateEmailAddress:function(e){return e!==void 0&&Ii(_(e))},validateCompany:function(e){const t=/[<>"]/;return e===void 0||e!==void 0&&K(_(e))||e!==void 0&&!K(_(e))&&!t.test(_(e))},validateCommentEmpty:function(e){return e!==void 0&&Ti(_(e),{min:1})},validateCommentFormat:function(e){const t=/[<>"]/;return e!==void 0&&!K(_(e))&&!t.test(_(e))}}),oh=()=>{const{locale:e,tenant:t,origin:n,auth:r}=ft(),{getRecaptchaToken:a}=Sa();return Pi({mutationKey:["emailActions"],mutationFn:async i=>{const{data:o,error:s}=i.skipRecaptcha?{data:"",error:null}:await q(a()),l=i.caseType;if(s)return N.error("Contact Channels: Recaptcha",{...s,locale:e,action:"CreateEmailCase",caseType:l,origin:n}),{success:!1,error:"RECAPTCHA_ERROR"};if(l==="email"&&i.caseId!==void 0&&!ih.validateCaseId(i.caseId))return N.error("Contact Channels: Email Actions",{message:"Invalid caseId format",type:"INVALID_CASE_ID",caseType:l,action:"CreateEmailCase",locale:e,origin:n,caseId:i.caseId}),{success:!1,error:"INVALID_ARGUMENTS"};const{data:u,error:c}=await q(fetch(`https://help-case-creation-service.care.vpsvc.com/v1/case/origins/${l}?tenant=${t}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json, text/plain, */*",Authorization:r?.getAuthorizationHeader()||"","x-requestor":n||"unset",...o?{"x-recap-token":o}:{}},body:JSON.stringify({locale:e,tenant:t,origin:n,companyName:"",orderNumber:"",ph
22oneNumber:"",...i})}));if(c)return N.error("Contact Channels: Email Actions",{...c,type:"REQUEST_ERROR",caseType:l,action:"CreateEmailCase",locale:e,origin:n,...i.caseId?{caseId:i.caseId}:{}}),{success:!1,error:"INTERNAL_ERROR"};if(!u.ok){const f=await u.text(),{data:h}=q(()=>JSON.parse(f)),p=h?.code||"INTERNAL_ERROR";return N.error("Contact Channels: Email Actions",{status:u.status,...h,type:"BAD_RESPONSE",caseType:l,action:"CreateEmailCase",locale:e,origin:n,...i.caseId?{caseId:i.caseId}:{}}),{success:!1,error:p}}const d=await u.json();return N.info("Contact Channels: Email Actions",{status:u.status,caseType:l,action:"CreateEmailCase",locale:e,origin:n,...i.caseId?{caseId:i.caseId}:{}}),{success:!0,data:d}}})},op=$("E",()=>{const e=oh();return J(()=>({createCaseAction:{...e}}),[e])});function Fi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zn={exports:{}},ki;function sh(){return ki||(ki=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(i=a(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var s in i)t.call(i,s)&&i[s]&&(o=a(o,s));return o}function a(i,o){return o?i?i+" "+o:i+o:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(zn)),zn.exports}var uh=sh();const sp=$("D",Fi(uh)),up=$("K",({origin:e,useRecaptcha:t,loadingFallback:n,children:r})=>{const{locale:a,tenant:i}=He(),{auth:o,isIdentityInitialized:s}=sr();return s?R(Zu,{locale:a,tenant:i,origin:e,prefetchQueries:!cr(i),callMeConfig:{allowVPNs:!0},useRecaptcha:t,auth:o,children:r},`${i}-${a}`):n}),lh=(()=>
22{if(typeof window<"u"){const e=window.location?.hostname??"";if(e.includes("dev")||e.includes("staging"))return"Staging";if(e==="localhost")return"Local"}return"Prod"})();class Gn{static info(t,n){this.log("info",t,n)}static error(t,n){this.log("error",t,n)}static noticeError(t){typeof window>"u"||!window.newrelic||window.newrelic.noticeError(t)}static log(t,n,r){typeof window<"u"&&window.newrelic&&window.newrelic.addPageAction(n,{...r,environment:lh,logLevel:t})}}class Ut{static instance;shouldLogToConsole;requestId;constructor(){this.shouldLogToConsole=this.checkShouldLog(),this.requestId=this.generateSessionId()}static getInstance(){return Ut.instance||(Ut.instance=new Ut),Ut.instance}checkShouldLog(){if(typeof window>"u")return!1;const t=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1",n=new URLSearchParams(window.location.search).get("debugCUF")==="true";return t||n}generateSessionId(){return typeof window>"u"?`${Date.now()}-${Math.random().toString(36).slice(2,11)}`:window.crypto.randomUUID()}getLogColors(t){return{debug:{bg:"#6B7280",text:"#F3F4F6"},info:{bg:"#3B82F6",text:"#FFFFFF"},warn:{bg:"#F59E0B",text:"#000000"},error:{bg:"#EF4444",text:"#FFFFFF"}}[t]}logToConsole(t,n,r){if(!this.shouldLogToConsole)return;const a=this.getLogColors(t),i=`background: ${a.bg}; color: ${a.text}; padding: 2px 6px; border-radius: 3px; font-weight: bold;`,o=t==="error"?"color: #EF4444; font-weight: bold;":"";console.groupCollapsed(`%c${t.toUpperCase()}%c ${n}`,i,o),r&&(console.log("%cContext:","font-weight: bold; color: #6366F1;"),console.table(r)),console.groupEnd()}sendToNewRelic(t,n,r){const a={...r,requestId:this.requestId};t==="error"?Gn.error(n,a):Gn.info(n,a)}track(t,n,r){if(!this.shouldLogToConsole)return;console.groupCollapsed(`%cTRACKING%c ${r.toUpperCase()} - ${t}`,"background: #10B981; color: #FFFFFF; padding: 2px 6px; border-radius: 3px; font-weight: bold;","color: #10B981; font-weight: bold;"),console.log("%cEvent Data:","font-weight: bold; color: #059669;"),console.table(n),console.groupEnd()}debug(t,n){this.logToConsole("debug",t,n)}info(t,n){this.logToConsole("info",t,n),this.sendToNewRelic("info","contact-us-fragment-event",{message:t,...n})}warn(t,n){this.logToConsole("warn",t,n),this.sendToNewRelic("warn","contact-us-fragment-event",{message:t,...n})}error(t,n,r){const a=n?.action||"general_error";this.logToConsole("error",t,{...n,errorName:r?.name,action:a,errorMessage:r?.message,stack:r?.stack});const i={message:t,stack:r?.stack,errorName:r?.name,errorMessage:r?.message,...n};this.sendToNewRelic("error","contact-us-fragment-error-event",i),r&&Gn.noticeError(r)}}const H=$("l",Ut.getInstance()),Ri=e=>{const[t="",n]=e.split("-");return{language:t,locale:n?.toUpperCase()??""}},Le=e=>typeof window>"u"?!1:e==="page"?typeof window.tracking?.page=="function":typeof window.tracking?.track=="function",ch=()=>{H.error("ContactUs: Tracking Event",{message:"The tracking library is not available in the window object",action:"trackEvent"})},Li=e=>{const{ctaValue:t,destinationPagePath:n,locale:r,...a}=e,{language:i,locale:o}=Ri(r??"");return{...a,language:i,locale:o}},dh=e=>{const{language:t,locale:n}=Ri(e.locale??""),a=[typeof window<"u"?window.location.pathname:"",e.destinationPagePath,e.pageName||e.pageZone,e.navigationDetail||e.ctaValue].join(";"),i=e.navigationDetail&&e.navigationDetailTags?.length?`${e.navigationDetail}:${e.navigationDetailTags.join("_")}`:e.navigationDetail||e.ctaValue;return{...e.category&&{category:e.category},label:`Content:${e.pageName||e.pageZone}`,eventDetail:a,navigationDetail:i,language:t,locale:n}},fh=(e,t)=>{const n=Li(t);H.track(e,n,"track"),Le("track")&&window.tracking.track(e,n)},hh=(e,t)=>{const n=dh(t);H.track(e,n,"nav"),Le("nav")&&window.tracking.track(e,n)},ph=e=>{const t=Li(e);H.track("page",t,"page"),Le("page")&&window.tracking.page(t)},cp=$("t",(e,t,n="track")=>{switch(n){case"track":fh(e,t);break;case"nav":hh(e,t);break;case"page":ph(t);break;default:H.error("ContactUs: Unsupported Event Type",{action:"trackEvent",eventType:n});break}Le(n)||ch()}),De=$("p",e=>e instanceof Error?e:typeof e=="string"?new Error(e):new Error("Unknown error")),gh=$("W",e=>{const t=e.lastIndexOf(".");return t===-1?"none":e.slice(t).toLowerCase()}),mh=$("Z",e=>e<1024*1024?"under_1mb":e<5*1024*1024?"1mb_to_5mb":e<10*1024*1024?"5mb_to_10mb":e<20*1024*1024?"10mb_to_20mb":"20mb_or_more"),Di="https://api.sherbert.cimpress.io/v3/assets",ji="https://api.sherbert.cimpress.io/v2/assets",Mi=e
22=>["font","documentItem","storage","asset"].includes(e),Ui=e=>["classifications","colors","text","quality"].includes(e);function yh(){let e="";const t={add:n=>(Array.isArray(n)?n.forEach(r=>{r&&(e+=`/${r}`)}):n&&(e+=`/${n}`),t),toString:()=>e};return t}function Bi(){const e=new URLSearchParams,t={add:(n,r)=>(r!==void 0&&e.append(n,r.toString()),t),toString:()=>e.toString()};return t}const vh=({assetId:e,variants:t,signature:n,baseUrl:r=Di,version:a,pageNum:i,itemNumber:o,variantVersions:s,showDeleted:l,brandProfileSchemaVersion:u})=>{const c=t?.filter(g=>Mi(g.variant))??[],d=t?.filter(g=>Ui(g.variant))??[];if(c.length>1)throw new Error("Multiple info variants are not supported");if(d.length>1)throw new Error("Multiple info image variants are not supported");if(c.length>0&&d.length>0)throw new Error("Cannot combine info and info image variants");const f=["embroidery","saliencyMap"];t?.forEach((g,m)=>{const y=m===t.length-1;if(f.includes(g.variant)&&!y)throw new Error(`${g.variant} must be the last variant in the chain`)});const h=yh().add(e).add(a?"versions":void 0).add(a?a.toString():void 0).add(i?`page_${i}`:void 0).add(t?.map(g=>{if(g.variant==="original")return;let m="";Mi(g.variant)?m="info/":Ui(g.variant)&&(m="info/image/"),m+=g.variant;const y=Object.entries(g.parameters??{}).filter(([,v])=>v!==void 0&&v!=="").map(([v,b])=>`${v}=${encodeURIComponent(b)}`).join(",");return`${m}${y?`:${y}`:""}`})).add(s?"versions":void 0).add(s?s.toString():void 0).add(o||o===0?`itemAt_${o}`:void 0).toString(),p=Bi().add("signature",n).add("showDeleted",l?"true":void 0).add("brandProfileSchemaVersion",u?u.toString():void 0).toString();return`${r}${h}${p?`?${p}`:""}`},qi=()=>({Prefer:"respond-async,wait=30"});class je extends Error{url;status;content;constructor(t,n,r){super("Sherbert failed to fetch"),this.url=t,this.status=n,this.content=r,this.name="APIError"}}
22class Ki extends Error{message;url;content;constructor(t,n,r){super(t),this.message=t,this.url=n,this.content=r,this.name="NetworkError"}}class bh extends Error{reason;constructor(t){super("Request aborted"),this.reason=t,this.name="AbortError"}}class Hi extends Error{message;stack;url;detail;title;instance;constructor(t,n,r,a,i,o){super(t),this.message=t,this.stack=n,this.url=r,this.detail=a,this.title=i,this.instance=o,this.name="BadRequestError"}}class Vi extends Error{detail;title;instance;url;constructor(t,n,r,a){super("Unauthorized"),this.detail=t,this.title=n,this.instance=r,this.url=a,this.name="UnauthorizedError"}}class zi extends Error{detail;instance;constructor(t,n){super(t.toString()),this.detail=t,this.instance=n,this.name="ThirdPartyReauthError"}}async function Gi(e,t){try{const n=await e();if(!n.ok){if(n.headers.get("Content-Type")?.includes("application/json")){const a=await n.json();switch(n.status){case 400:throw new Hi(a?.message,a?.stack,n.url,a?.detail,a?.title,a?.instance);case 401:throw new Vi(a?.detail,a?.title,a?.instance,n.url);case 404:throw a?.detail?.description?.toLowerCase().includes("missing or expired access token")?new zi(a?.detail,a?.instance):new je(n.url,n.status,a);default:throw new je(n.url,n.status,a)}}const r=await n.text();throw new je(n.url,n.status,r)}return n}catch(n){const[r,a]=t?.()??[];throw a?.signal?.aborted?new bh(a.signal.reason):!(n instanceof Hi)&&!(n instanceof Vi)&&!(n instanceof je)&&!(n instanceof zi)?new Ki("Network error occurred",r?.toString()??"unknown",n):n}}async function Wi(e){const t=await e();return t.status===202?Wi(e):t}const Qi=(e,t)=>e*Math.pow(2,t)*(.5+Math.random()*.5);async function Me(e,t){const n=[408,429,500,502,503,504],{maxRetries:r=1,baseDelay:a=1e3,attempts:i=0}=t||{};try{const o=await e();if(!n.includes(o.status)||i>=r)return o;const s=Qi(a,i);return await new Promise(l=>setTimeout(l,s)),Me(e,{...t,attempts:i+1})}catch(o){if(o instanceof Ki&&i<r){const s=Qi(a,i);return await new Promise(l=>setTimeout(l,s)),Me(e,{...t,attempts:i+1})}throw o}}async function Ue(e){const t=()=>{const[n,r]=e();if(r?.body instanceof FormData&&typeof XMLHttpRequest>"u"){const{headers:a,...i}=r,o=new Headers(a);return o.delete("Content-Type"),fetch(n,{...i,headers:o})}return fetch(n,r)};return Gi(()=>Me(()=>Wi(t)),e)}async function $h({assetId:e,abortSignal:t,authorizationHeader:n}){const a=await(await Ue(()=>[`${ji}/${e}:presign`,{method:"POST",headers:{Authorization:n(),Accept:"application/json"},signal:t}])).json();return t?.throwIfAborted(),a}async function Ch({assetId:e,authorizationHeader:t,ifMatchHeader:n="*"}){await Ue(()=>[`${ji}/${e}`,{method:"DELETE",headers:{Authorization:t(),"If-Match":n}}])}async function wh({variants:e,assetId:t,assetVersion:n,signature:r,abortSignal:a,method:i="GET",pageNum:o,itemNumber:s}){const l=vh({variants:e,assetId:t,signature:r,version:n,pageNum:o,itemNumber:s});return{response:await Ue(()=>[l,{method:i,signal:a,headers:qi()}]),variantUrl:l}}async function Sh(e,t){if(typeof XMLHttpRequest>"u")throw new Error("XMLHttpRequest is not supported in this environment. Don't call this function directly.");return new Promise((n,r)=>{if(t.method!=="POST"&&t.method!=="PUT")return r(new Error("Method must be POST or PUT"));if(t.body!==null&&t.body!==void 0&&!(t.body instanceof FormData||t.body instanceof Blob||typeof t.body=="string"||t.body instanceof ArrayBuffer||ArrayBuffer.isView(t.body)||t.body instanceof URLSearchParams||typeof Document<"u"&&t.body instanceof Document))return r(new Error("Body must be FormData, Blob, ArrayBuffer, TypedArray, DataView, URLSearchParams, string, Document, or null"));const a=new XMLHttpRequest;a.open(t.method,e.toString()),t.headers&&Object.entries(t.headers).forEach(([o,s])=>{a.setRequestHeader(o,s)}),t.onProgress&&a.upload.addEventListener("progress",o=>{o.lengthComputable&&t.onProgress?.({loaded:o.loaded,total:o.total})});const i=()=>{r(new Error(t.signal?.reason||"Request aborted"))};if(a.onload=()=>{if(t.signal?.aborted)return i();const o=new Response(a.status===204?null:a.response,{status:a.status,statusText:a.statusText,headers:a.getAllResponseHeaders().split(`\r
23`).reduce((s,l)=>{const[u,c]=l.split(": ");return u&&s.append(u,c),s},new Headers)});Object.defineProperty(o,"url",{value:a.responseURL}),n(o)},a.onerror=()=>r(new Error("Network request failed")),a.ontimeout=()=>r(new Error("Network request timed out")),a.onabort=i,t.signal){if(t.signal.aborted){i();return}t.signal.addEventListener("abort",()=>{a.abort(),i()})}a.send(t.body)})}async function Eh(e,t){if(typeof XMLHttpRequest>"u")return Ue(e);const n=()=>{const[r,a]=e();return Sh(r,{...a,...t})};return Gi(()=>Me(()=>n()),e)}function xh(){const e=new FormData,t={add:(n,r)=>(r instanceof File?e.append(n,r):typeof r=="object"||Array.isArray(r)?e.append(n,JSON.stringify(r)):r!==void 0&&e.append(n,r.toString()),t),toFormData:()=>e};return t}const Oh=e=>"file"in e?xh().add("file",e.file).add("name",e.name).add("versionLabel",e.versionLabel).add("type",e.type).add("tenant",e.tenant).add("expires",e.expires).add("tags",e.tags).add("properties",e.properties).add("info",e.info).add("createNewVersion",e.createNewVersion).add("skipVariants",e.skipVariants).add("includeVariants",e.includeVariants).add("folderId",e.folderId).add("links",e.links).toFormData():JSON.stringify(e);async function Nh({body:e,parameters:t={}
23,authorizationHeader:n,abortSignal:r,onProgress:a,readOnlyPresignOnCreate:i}){const o=Oh(e),s=Bi().add("scopeToUserFolders",t.scopeToUserFolders).add("signature",t.signature).add("folderName",t.folderName).add("readOnlyPresignOnCreate",i).toString(),l=await Eh(()=>[`${Di}${s?`?${s}`:""}`,{method:"POST",headers:{Authorization:n(),Accept:"application/json",...typeof o=="string"?{"Content-Type":"application/json"}:{},...qi()},body:o,signal:r}],{onProgress:a}),u=await l.json();if(r?.throwIfAborted(),l.status===201)return u;throw new Error("Failed to create asset. Unexpected error")}var Ji={exports:{}},Yi={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],a=0,i=0;a<n.length;a++,i+=8)r[i>>>5]|=n[a]<<24-i%32;return r},wordsToBytes:function(n){for(var r=[],a=0;a<n.length*32;a+=8)r.push(n[a>>>5]>>>24-a%32&255);return r},bytesToHex:function(n){for(var r=[],a=0;a<n.length;a++)r.push((n[a]>>>4).toString(16)),r.push((n[a]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],a=0;a<n.length;a+=2)r.push(parseInt(n.substr(a,2),16));return r},bytesToBase64:function(n){for(var r=[],a=0;a<n.length;a+=3)for(var i=n[a]<<16|n[a+1]<<8|n[a+2],o=0;o<4;o++)a*8+o*6<=n.length*8?r.push(e.charAt(i>>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],a=0,i=0;a<n.length;i=++a%4)i!=0&&r.push((e.indexOf(n.charAt(a-1))&Math.pow(2,-2*i+8)-1)<<i*2|e.indexOf(n.charAt(a))>>>6-i*2);return r}};Yi.exports=t})();var Ph=Yi.exports,Wn={utf8:{stringToBytes:function(e){return Wn.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Wn.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},Zi=Wn;/*!
24 * Determine if an object is a Buffer
25 *
26 * @author   Feross Aboukhadijeh <https://feross.org>
27 * @license  MIT
28 */var Th=function(e){return e!=null&&(Xi(e)||Ah(e)||!!e._isBuffer)};function Xi(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ah(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&Xi(e.slice(0,0))}(function(){var e=Ph,t=Zi.utf8,n=Th,r=Zi.bin,a=function(i,o){i.constructor==String?o&&o.encoding==="binary"?i=r.stringToBytes(i):i=t.stringToBytes(i):n(i)?i=Array.prototype.slice.call(i,0):!Array.isArray(i)&&i.constructor!==Uint8Array&&(i=i.toString());for(var s=e.bytesToWords(i),l=i.length*8,u=1732584193,c=-271733879,d=-1732584194,f=271733878,h=0;h<s.length;h++)s[h]=(s[h]<<8|s[h]>>>24)&16711935|(s[h]<<24|s[h]>>>8)&4278255360;s[l>>>5]|=128<<l%32,s[(l+64>>>9<<4)+14]=l;for(var p=a._ff,g=a._gg,m=a._hh,y=a._ii,h=0;h<s.length;h+=16){var v=u,b=c,x=d,O=f;u=p(u,c,d,f,s[h+0],7,-680876936),f=p(f,u,c,d,s[h+1],12,-389564586),d=p(d,f,u,c,s[h+2],17,606105819),c=p(c,d,f,u,s[h+3],22,-1044525330),u=p(u,c,d,f,s[h+4],7,-176418897),f=p(f,u,c,d,s[h+5],12,1200080426),d=p(d,f,u,c,s[h+6],17,-1473231341),c=p(c,d,f,u,s[h+7],22,-45705983),u=p(u,c,d,f,s[h+8],7,1770035416),f=p(f,u,c,d,s[h+9],12,-1958414417),d=p(d,f,u,c,s[h+10],17,-42063),c=p(c,d,f,u,s[h+11],22,-1990404162),u=p(u,c,d,f,s[h+12],7,1804603682),f=p(f,u,c,d,s[h+13],12,-40341101),d=p(d,f,u,c,s[h+14],17,-1502002290),c=p(c,d,f,u,s[h+15],22,1236535329),u=g(u,c,d,f,s[h+1],5,-165796510),f=g(f,u,c,d,s[h+6],9,-1069501632),d=g(d,f,u,c,s[h+11],14,643717713),c=g(c,d,f,u,s[h+0],20,-373897302),u=g(u,c,d,f,s[h+5],5,-701558691),f=g(f,u,c,d,s[h+10],9,38016083),d=g(d,f,u,c,s[h+15],14,-660478335),c=g(c,d,f,u,s[h+4],20,-405537848),u=g(u,c,d,f,s[h+9],5,568446438),f=g(f,u,c,d,s[h+14],9,-1019803690),d=g(d,f,u,c,s[h+3],14,-187363961),c=g(c,d,f,u,s[h+8],20,1163531501),u=g(u,c,d,f,s[h+13],5,-1444681467),f=g(f,u,c,d,s[h+2],9,-51403784),d=g(d,f,u,c,s[h+7],14,1735328473),c=g(c,d,f,u,s[h+12],20,-1926607734),u=m(u,c,d,f,s[h+5],4,-378558),f=m(f,u,c,d,s[h+8],11,-2022574463),d=m(d,f,u,c,s[h+11],16,1839030562),c=m(c,d,f,u,s[h+14],23,-35309556),u=m(u,c,d,f,s[h+1],4,-1530992060),f=m(f,u,c,d,s[h+4],11,1272893353),d=m(d,f,u,c,s[h+7],16,-155497632),c=m(c,d,f,u,s[h+10],23,-1094730640),u=m(u,c,d,f,s[h+13],4,681279174),f=m(f,u,c,d,s[h+0],11,-358537222),d=m(d,f,u,c,s[h+3],16,-722521979),c=m(c,d,f,u,s[h+6],23,76029189),u=m(u,c,d,f,s[h+9],4,-640364487),f=m(f,u,c,d,s[h+12],11,-421815835),d=m(d,f,u,c,s[h+15],16,530742520),c=m(c,d,f,u,s[h+2],23,-995338651),u=y(u,c,d,f,s[h+0],6,-198630844),f=y(f,u,c,d,s[h+7],10,1126891415),d=y(d,f,u,c,s[h+14],15,-1416354905),c=y(c,d,f,u,s[h+5],21,-57434055),u=y(u,c,d,f,s[h+12],6,1700485571),f=y(f,u,c,d,s[h+3],10,-1894986606),d=y(d,f,u,c,s[h+10],15,-1051523),c=y(c,d,f,u,s[h+1],21,-2054922799),u=y(u,c,d,f,s[h+8],6,1873313359),f=y(f,u,c,d,s[h+15],10,-30611744),d=y(d,f,u,c,s[h+6],15,-1560198380),c=y(c,d,f,u,s[h+13],21,1309151649),u=y(u,c,d,f,s[h+4],6,-145523070),f=y(f,u,c,d,s[h+11],10,-1120210379),d=y(d,f,u,c,s[h+2],15,718787259),c=y(c,d,f,u,s[h+9],21,-343485551),u=u+v>>>0,c=c+b>>>0,d=d+x>>>0,f=f+O>>>0}return e.endian([u,c,d,f])};a._ff=function(i,o,s,l,u,c,d){var f=i+(o&s|~o&l)+(u>>>0)+d;return(f<<c|f>>>32-c)+o},a._gg=function(i,o,s,l,u,c,d){var f=i+(o&l|s&~l)+(u>>>0)+d;return(f<<c|f>>>32-c)+o},a._hh=function(i,o,s,l,u,c,d){var f=i+(o^s^l)+(u>>>0)+d;return(f<<c|f>>>32-c)+o},a._ii=function(i,o,s,l,u,c,d){var f=i+(s^(o|~l))+(u>>>0)+d;return(f<<c|f>>>32-c)+o},a._blocksize=16,a._digestsize=16,Ji.exports=function(i,o){if(i==null)throw new Error("Illegal argument "+i);var s=e.wordsToBytes(a(i,o));return o&&o.asBytes?s:o&&o.asString?r.bytesToString(s):e.bytesToHex(s)}})();var _h=Ji.exports,Ih=Ir(_h);const Bt="JqzyMexb118PYH7BJBqKY",Fh="P2Y",to=lt(null),kh=e=>{const t=e.lastIndexOf("."),n=e.substring(0,t).toLowerCase(),r=e.substring(t).toLowerCase();return Ih(n+Date.now())+r},dp=$("a2",({children:e,auth:t})=>{const n=()=>t?.getAuthorizationHeader?.()||"",r=async(o,s)=>{const l=kh(o.name),u=Date.now(),c=gh(o.name),d=mh(o.size);H.info("Asset upload started",{action:"asset_upload_started",component:"AssetStoreProvider",fileExtension:c,fileSizeBucket:d,fileSizeBytes:o.size,tenant:Bt}),n()||H.warn("Asset upload started without authorization header",{action:"asset_upload_missing_auth_header",component:"AssetStoreProvider",tenant:Bt});const{data:f,error:h}=await It(Nh({body:{file:o,expires:Fh,tenant:Bt,info:{asset:{hidden:!0}}},authorizationHeader:n,onProgress:s?({loaded:v,total:b})=>s(b>0?Math.round(v/b*80):0):void 0}));if(h)throw H.error("Asset upload failed",{action:"asset_upload_failed",component:"AssetStoreProvider",durationMs:Date.now()-u,fileExtension:c,fileSizeBucket:d,fileSizeBytes:o.size,tenant:Bt},De(h)),h;H.info("Asset created in store",{action:"asset_upload_asset_created",component:"AssetStoreProvider",assetId:f.id});const{data:p,error:g}=await It($h({assetId:f.id,authorizationHeader:n}));if(g)throw H.error("Asset upload failed",{action:"asset_upload_failed",component:"AssetStoreProvider",durationMs:Date.now()-u,fileExtension:c,fileSizeBucket:d,fileSizeBytes:o.size,tenant:Bt},De(g)),g;H.info("Asset signature created",{action:"asset_upload_presigned",component:"AssetStoreProvider",assetId:f.id});const{data:m,error:y}=await It(wh({variants:[{variant:"original"}],assetId:f.id,assetVersion:f.version,signature:p.signature}));if(y)throw H.error("Asset upload failed",{action:"asset_upload_failed",component:"AssetStoreProvider",durationMs:Date.now()-u,fileExtension:c,fileSizeBucket:d,fileSizeBytes:o.size,tenant:Bt},De(y)),y;return s?.(100),H.info("Asset upload succeeded",{action:"asset_upload_succeeded",component:"AssetStoreProvider",assetId:f.id,durationMs:Date.now()-u,fileExtension:c,fileSizeBucket:d}),{publicUrl:m.variantUrl,fileName:l,name:o.name,id:f.id}},a=async o=>{if(!o){H.warn("Asset deletion skipped because no asset ID was provided",{action:"asset_delete_missing_id",component:"AssetStoreProvider"});return}const{error:s}=await It(Ch({assetId:o,authorizationHeader:n}));if(s){H.error("Asset deletion failed",{action:"asset_delete_failed",component:"AssetStoreProvider",assetId:o},De(s));return}H.info("Asset deleted",{action:"asset_delete_succeeded",component:"AssetStoreProvider",assetId:o})},i=J(()=>({uploadAsset:r,deleteAssetById:a}),[t]);return R(to.Provider,{value:i,children:e})}),fp=$("V",()=>{const e=ct(to);if(!e)throw new Error("AssetStoreContext must be used within a Provider");return e})})}}));
29//# sourceMappingURL=asset-provider.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.