@promodev/form-builder-vue3 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,534 @@
1
+ (function(Yn,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(Yn=typeof globalThis<"u"?globalThis:Yn||self,l(Yn.FormBuilderVue3={},Yn.Vue))})(this,(function(Yn,l){"use strict";function M8(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Pu=M8(l);function nn(e){return typeof e=="function"}function B_(e){return e==null}const eo=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Mu(e){return Number(e)>=0}function L8(e){const t=parseFloat(e);return isNaN(t)?e:t}function D8(e){return typeof e=="object"&&e!==null}function F8(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function U_(e){if(!D8(e)||F8(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Bs(e,t){return Object.keys(t).forEach(n=>{if(U_(t[n])&&U_(e[n])){e[n]||(e[n]={}),Bs(e[n],t[n]);return}e[n]=t[n]}),e}function Us(e){const t=e.split(".");if(!t.length)return"";let n=String(t[0]);for(let r=1;r<t.length;r++){if(Mu(t[r])){n+=`[${t[r]}]`;continue}n+=`.${t[r]}`}return n}const j_={};function rn(e,t){U8(e,t),j_[e]=t}function B8(e){return j_[e]}function U8(e,t){if(!nn(t))throw new Error(`Extension Error: The validator '${e}' must be a function.`)}function H_(e,t,n){typeof n.value=="object"&&(n.value=rt(n.value)),!n.enumerable||n.get||n.set||!n.configurable||!n.writable||t==="__proto__"?Object.defineProperty(e,t,n):e[t]=n.value}function rt(e){if(typeof e!="object")return e;var t=0,n,r,o,i=Object.prototype.toString.call(e);if(i==="[object Object]"?o=Object.create(e.__proto__||null):i==="[object Array]"?o=Array(e.length):i==="[object Set]"?(o=new Set,e.forEach(function(s){o.add(rt(s))})):i==="[object Map]"?(o=new Map,e.forEach(function(s,a){o.set(rt(a),rt(s))})):i==="[object Date]"?o=new Date(+e):i==="[object RegExp]"?o=new RegExp(e.source,e.flags):i==="[object DataView]"?o=new e.constructor(rt(e.buffer)):i==="[object ArrayBuffer]"?o=e.slice(0):i.slice(-6)==="Array]"&&(o=new e.constructor(e)),o){for(r=Object.getOwnPropertySymbols(e);t<r.length;t++)H_(o,r[t],Object.getOwnPropertyDescriptor(e,r[t]));for(t=0,r=Object.getOwnPropertyNames(e);t<r.length;t++)Object.hasOwnProperty.call(o,n=r[t])&&o[n]===e[n]||H_(o,n,Object.getOwnPropertyDescriptor(e,n))}return o||e}const Lu=Symbol("vee-validate-form"),j8=Symbol("vee-validate-form-context"),H8=Symbol("vee-validate-field-instance"),z_=Symbol("Default empty value"),q_=typeof window<"u";function Du(e){return nn(e)&&!!e.__locatorRef}function Kn(e){return!!e&&nn(e.parse)&&e.__type==="VVTypedSchema"}function xl(e){return!!e&&nn(e.validate)}function W_(e){return e==="checkbox"||e==="radio"}function z8(e){return eo(e)||Array.isArray(e)}function q8(e){return Array.isArray(e)?e.length===0:eo(e)&&Object.keys(e).length===0}function Pl(e){return/^\[.+\]$/i.test(e)}function W8(e){return G_(e)&&e.multiple}function G_(e){return e.tagName==="SELECT"}function G8(e){return Y_(e)&&e.target&&"submit"in e.target}function Y_(e){return e?!!(typeof Event<"u"&&nn(Event)&&e instanceof Event||e&&e.srcElement):!1}function on(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!on(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;for(r of e.entries())if(!on(r[1],t.get(r[0])))return!1;return!0}if(X_(e)&&X_(t))return!(e.size!==t.size||e.name!==t.name||e.lastModified!==t.lastModified||e.type!==t.type);if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(e=K_(e),t=K_(t),o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){var i=o[r];if(!on(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function K_(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}function X_(e){return q_?e instanceof File:!1}function Fu(e){return Pl(e)?e.replace(/\[|\]/gi,""):e}function hn(e,t,n){return e?Pl(t)?e[Fu(t)]:(t||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((o,i)=>z8(o)&&i in o?o[i]:n,e):n}function dr(e,t,n){if(Pl(t)){e[Fu(t)]=n;return}const r=t.split(/\.|\[(\d+)\]/).filter(Boolean);let o=e;for(let i=0;i<r.length;i++){if(i===r.length-1){o[r[i]]=n;return}(!(r[i]in o)||B_(o[r[i]]))&&(o[r[i]]=Mu(r[i+1])?[]:{}),o=o[r[i]]}}function Bu(e,t){if(Array.isArray(e)&&Mu(t)){e.splice(Number(t),1);return}eo(e)&&delete e[t]}function J_(e,t){if(Pl(t)){delete e[Fu(t)];return}const n=t.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let i=0;i<n.length;i++){if(i===n.length-1){Bu(r,n[i]);break}if(!(n[i]in r)||B_(r[n[i]]))break;r=r[n[i]]}const o=n.map((i,s)=>hn(e,n.slice(0,s).join(".")));for(let i=o.length-1;i>=0;i--)if(q8(o[i])){if(i===0){Bu(e,n[0]);continue}Bu(o[i-1],n[i-1])}}function gn(e){return Object.keys(e)}function Z_(e,t=void 0){const n=l.getCurrentInstance();return n?.provides[e]||l.inject(e,t)}function Q_(e,t,n){if(Array.isArray(e)){const r=[...e],o=r.findIndex(i=>on(i,t));return o>=0?r.splice(o,1):r.push(t),r}return on(e,t)?n:t}function Y8(e,t){let n,r;return function(...o){const i=this;return n||(n=!0,setTimeout(()=>n=!1,t),r=e.apply(i,o)),r}}function V_(e,t=0){let n=null,r=[];return function(...o){return n&&clearTimeout(n),n=setTimeout(()=>{const i=e(...o);r.forEach(s=>s(i)),r=[]},t),new Promise(i=>r.push(i))}}function K8(e,t){return eo(t)&&t.number?L8(e):e}function Uu(e,t){let n;return async function(...o){const i=e(...o);n=i;const s=await i;return i!==n?s:(n=void 0,t(s,o))}}function ju(e){return Array.isArray(e)?e:e?[e]:[]}function Ml(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function X8(e){let t=null,n=[];return function(...r){const o=l.nextTick(()=>{if(t!==o)return;const i=e(...r);n.forEach(s=>s(i)),n=[],t=null});return t=o,new Promise(i=>n.push(i))}}function Hu(e){if(eh(e))return e._value}function eh(e){return"_value"in e}function J8(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function Ll(e){if(!Y_(e))return e;const t=e.target;if(W_(t.type)&&eh(t))return Hu(t);if(t.type==="file"&&t.files){const n=Array.from(t.files);return t.multiple?n:n[0]}if(W8(t))return Array.from(t.options).filter(n=>n.selected&&!n.disabled).map(Hu);if(G_(t)){const n=Array.from(t.options).find(r=>r.selected);return n?Hu(n):t.value}return J8(t)}function th(e){const t={};return Object.defineProperty(t,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?eo(e)&&e._$$isNormalized?e:eo(e)?Object.keys(e).reduce((n,r)=>{const o=Z8(e[r]);return e[r]!==!1&&(n[r]=nh(o)),n},t):typeof e!="string"?t:e.split("|").reduce((n,r)=>{const o=Q8(r);return o.name&&(n[o.name]=nh(o.params)),n},t):t}function Z8(e){return e===!0?[]:Array.isArray(e)||eo(e)?e:[e]}function nh(e){const t=n=>typeof n=="string"&&n[0]==="@"?V8(n.slice(1)):n;return Array.isArray(e)?e.map(t):e instanceof RegExp?[e]:Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{})}const Q8=e=>{let t=[];const n=e.split(":")[0];return e.includes(":")&&(t=e.split(":").slice(1).join(":").split(",")),{name:n,params:t}};function V8(e){const t=n=>{var r;return(r=hn(n,e))!==null&&r!==void 0?r:n[e]};return t.__locatorRef=e,t}function e5(e){return Array.isArray(e)?e.filter(Du):gn(e).filter(t=>Du(e[t])).map(t=>e[t])}let zu=Object.assign({},{generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0});const js=()=>zu,t5=e=>{zu=Object.assign(Object.assign({},zu),e)};async function rh(e,t,n={}){const r=n?.bails,o={name:n?.name||"{field}",rules:t,label:n?.label,bails:r??!0,formData:n?.values||{}},i=await n5(o,e);return Object.assign(Object.assign({},i),{valid:!i.errors.length})}async function n5(e,t){const n=e.rules;if(Kn(n)||xl(n))return o5(t,Object.assign(Object.assign({},e),{rules:n}));if(nn(n)||Array.isArray(n)){const a={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:t},c=Array.isArray(n)?n:[n],d=c.length,f=[];for(let u=0;u<d;u++){const p=c[u],m=await p(t,a);if(!(typeof m!="string"&&!Array.isArray(m)&&m)){if(Array.isArray(m))f.push(...m);else{const y=typeof m=="string"?m:ih(a);f.push(y)}if(e.bails)return{errors:f}}}return{errors:f}}const r=Object.assign(Object.assign({},e),{rules:th(n)}),o=[],i=Object.keys(r.rules),s=i.length;for(let a=0;a<s;a++){const c=i[a],d=await i5(r,t,{name:c,params:r.rules[c]});if(d.error&&(o.push(d.error),e.bails))return{errors:o}}return{errors:o}}function r5(e){return!!e&&e.name==="ValidationError"}function oh(e){return{__type:"VVTypedSchema",async parse(n,r){var o;try{return{output:await e.validate(n,{abortEarly:!1,context:r?.formData||{}}),errors:[]}}catch(i){if(!r5(i))throw i;if(!(!((o=i.inner)===null||o===void 0)&&o.length)&&i.errors.length)return{errors:[{path:i.path,errors:i.errors}]};const s=i.inner.reduce((a,c)=>{const d=c.path||"";return a[d]||(a[d]={errors:[],path:d}),a[d].errors.push(...c.errors),a},{});return{errors:Object.values(s)}}}}}async function o5(e,t){const r=await(Kn(t.rules)?t.rules:oh(t.rules)).parse(e,{formData:t.formData}),o=[];for(const i of r.errors)i.errors.length&&o.push(...i.errors);return{value:r.value,errors:o}}async function i5(e,t,n){const r=B8(n.name);if(!r)throw new Error(`No such validator '${n.name}' exists.`);const o=s5(n.params,e.formData),i={field:e.label||e.name,name:e.name,label:e.label,value:t,form:e.formData,rule:Object.assign(Object.assign({},n),{params:o})},s=await r(t,o,i);return typeof s=="string"?{error:s}:{error:s?void 0:ih(i)}}function ih(e){const t=js().generateMessage;return t?t(e):"Field is invalid"}function s5(e,t){const n=r=>Du(r)?r(t):r;return Array.isArray(e)?e.map(n):Object.keys(e).reduce((r,o)=>(r[o]=n(e[o]),r),{})}async function a5(e,t){const r=await(Kn(e)?e:oh(e)).parse(rt(t),{formData:rt(t)}),o={},i={};for(const s of r.errors){const a=s.errors,c=(s.path||"").replace(/\["(\d+)"\]/g,(d,f)=>`[${f}]`);o[c]={valid:!a.length,errors:a},a.length&&(i[c]=a[0])}return{valid:!r.errors.length,results:o,errors:i,values:r.value,source:"schema"}}async function l5(e,t,n){const o=gn(e).map(async d=>{var f,u,p;const m=(f=n?.names)===null||f===void 0?void 0:f[d],_=await rh(hn(t,d),e[d],{name:m?.name||d,label:m?.label,values:t,bails:(p=(u=n?.bailsMap)===null||u===void 0?void 0:u[d])!==null&&p!==void 0?p:!0});return Object.assign(Object.assign({},_),{path:d})});let i=!0;const s=await Promise.all(o),a={},c={};for(const d of s)a[d.path]={valid:d.valid,errors:d.errors},d.valid||(i=!1,c[d.path]=d.errors[0]);return{valid:i,results:a,errors:c,source:"schema"}}let sh=0;function c5(e,t){const{value:n,initialValue:r,setInitialValue:o}=d5(e,t.modelValue,t.form);if(!t.form){let p=function(m){var _;"value"in m&&(n.value=m.value),"errors"in m&&d(m.errors),"touched"in m&&(u.touched=(_=m.touched)!==null&&_!==void 0?_:u.touched),"initialValue"in m&&o(m.initialValue)};const{errors:c,setErrors:d}=p5(),f=sh>=Number.MAX_SAFE_INTEGER?0:++sh,u=f5(n,r,c,t.schema);return{id:f,path:e,value:n,initialValue:r,meta:u,flags:{pendingUnmount:{[f]:!1},pendingReset:!1},errors:c,setState:p}}const i=t.form.createPathState(e,{bails:t.bails,label:t.label,type:t.type,validate:t.validate,schema:t.schema}),s=l.computed(()=>i.errors);function a(c){var d,f,u;"value"in c&&(n.value=c.value),"errors"in c&&((d=t.form)===null||d===void 0||d.setFieldError(l.unref(e),c.errors)),"touched"in c&&((f=t.form)===null||f===void 0||f.setFieldTouched(l.unref(e),(u=c.touched)!==null&&u!==void 0?u:!1)),"initialValue"in c&&o(c.initialValue)}return{id:Array.isArray(i.id)?i.id[i.id.length-1]:i.id,path:e,value:n,errors:s,meta:i,initialValue:r,flags:i.__flags,setState:a}}function d5(e,t,n){const r=l.ref(l.unref(t));function o(){return n?hn(n.initialValues.value,l.unref(e),l.unref(r)):l.unref(r)}function i(d){if(!n){r.value=d;return}n.setFieldInitialValue(l.unref(e),d,!0)}const s=l.computed(o);if(!n)return{value:l.ref(o()),initialValue:s,setInitialValue:i};const a=u5(t,n,s,e);return n.stageInitialValue(l.unref(e),a,!0),{value:l.computed({get(){return hn(n.values,l.unref(e))},set(d){n.setFieldValue(l.unref(e),d,!1)}}),initialValue:s,setInitialValue:i}}function u5(e,t,n,r){return l.isRef(e)?l.unref(e):e!==void 0?e:hn(t.values,l.unref(r),l.unref(n))}function f5(e,t,n,r){const o=l.computed(()=>{var s,a,c;return(c=(a=(s=l.toValue(r))===null||s===void 0?void 0:s.describe)===null||a===void 0?void 0:a.call(s).required)!==null&&c!==void 0?c:!1}),i=l.reactive({touched:!1,pending:!1,valid:!0,required:o,validated:!!l.unref(n).length,initialValue:l.computed(()=>l.unref(t)),dirty:l.computed(()=>!on(l.unref(e),l.unref(t)))});return l.watch(n,s=>{i.valid=!s.length},{immediate:!0,flush:"sync"}),i}function p5(){const e=l.ref([]);return{errors:e,setErrors:t=>{e.value=ju(t)}}}const Hs={},zs={},qs="vee-validate-inspector",yn={error:12405579,success:448379,unknown:5522283,white:16777215,black:0,blue:218007,purple:12157168,orange:16099682,gray:12304330};let Ot=null,Cr;async function ah(e){if(process.env.NODE_ENV!=="production"){if(!q_)return;(await Promise.resolve().then(()=>rF)).setupDevtoolsPlugin({id:"vee-validate-devtools-plugin",label:"VeeValidate Plugin",packageName:"vee-validate",homepage:"https://vee-validate.logaretm.com/v4",app:e,logo:"https://vee-validate.logaretm.com/v4/logo.png"},n=>{Cr=n,n.addInspector({id:qs,icon:"rule",label:"vee-validate",noSelectionText:"Select a vee-validate node to inspect",actions:[{icon:"done_outline",tooltip:"Validate selected item",action:async()=>{if(!Ot){console.error("There is not a valid selected vee-validate node or component");return}if(Ot.type==="field"){await Ot.field.validate();return}if(Ot.type==="form"){await Ot.form.validate();return}Ot.type==="pathState"&&await Ot.form.validateField(Ot.state.path)}},{icon:"delete_sweep",tooltip:"Clear validation state of the selected item",action:()=>{if(!Ot){console.error("There is not a valid selected vee-validate node or component");return}if(Ot.type==="field"){Ot.field.resetField();return}Ot.type==="form"&&Ot.form.resetForm(),Ot.type==="pathState"&&Ot.form.resetField(Ot.state.path)}}]}),n.on.getInspectorTree(r=>{if(r.inspectorId!==qs)return;const o=Object.values(Hs),i=Object.values(zs);r.rootNodes=[...o.map(h5),...i.map(s=>y5(s))]}),n.on.getInspectorState(r=>{if(r.inspectorId!==qs)return;const{form:o,field:i,state:s,type:a}=b5(r.nodeId);if(n.unhighlightElement(),o&&a==="form"){r.state=v5(o),Ot={type:"form",form:o},n.highlightElement(o._vm);return}if(s&&a==="pathState"&&o){r.state=ch(s),Ot={type:"pathState",state:s,form:o};return}if(i&&a==="field"){r.state=ch({errors:i.errors.value,dirty:i.meta.dirty,valid:i.meta.valid,touched:i.meta.touched,value:i.value.value,initialValue:i.meta.initialValue}),Ot={field:i,type:"field"},n.highlightElement(i._vm);return}Ot=null,n.unhighlightElement()})})}}const hi=Y8(()=>{setTimeout(async()=>{await l.nextTick(),Cr?.sendInspectorState(qs),Cr?.sendInspectorTree(qs)},100)},100);function m5(e){const t=l.getCurrentInstance();if(!Cr){const n=t?.appContext.app;if(!n)return;ah(n)}Hs[e.formId]=Object.assign({},e),Hs[e.formId]._vm=t,l.onUnmounted(()=>{delete Hs[e.formId],hi()}),hi()}function _5(e){const t=l.getCurrentInstance();if(!Cr){const n=t?.appContext.app;if(!n)return;ah(n)}zs[e.id]=Object.assign({},e),zs[e.id]._vm=t,l.onUnmounted(()=>{delete zs[e.id],hi()}),hi()}function h5(e){const{textColor:t,bgColor:n}=dh(e.meta.value.valid),r={};Object.values(e.getAllPathStates()).forEach(s=>{dr(r,l.toValue(s.path),g5(s,e))});function o(s,a=[]){const c=[...a].pop();return"id"in s?Object.assign(Object.assign({},s),{label:c||s.label}):eo(s)?{id:`${a.join(".")}`,label:c||"",children:Object.keys(s).map(d=>o(s[d],[...a,d]))}:Array.isArray(s)?{id:`${a.join(".")}`,label:`${c}[]`,children:s.map((d,f)=>o(d,[...a,String(f)]))}:{id:"",label:"",children:[]}}const{children:i}=o(r);return{id:qu(e),label:e.name,children:i,tags:[{label:"Form",textColor:t,backgroundColor:n},{label:`${e.getAllPathStates().length} fields`,textColor:yn.white,backgroundColor:yn.unknown}]}}function g5(e,t){return{id:qu(t,e),label:l.toValue(e.path),tags:lh(e.multiple,e.fieldsCount,e.type,e.valid,t)}}function y5(e,t){return{id:qu(t,e),label:l.unref(e.name),tags:lh(!1,1,e.type,e.meta.valid,t)}}function lh(e,t,n,r,o){const{textColor:i,bgColor:s}=dh(r);return[e?void 0:{label:"Field",textColor:i,backgroundColor:s},o?void 0:{label:"Standalone",textColor:yn.black,backgroundColor:yn.gray},n==="checkbox"?{label:"Checkbox",textColor:yn.white,backgroundColor:yn.blue}:void 0,n==="radio"?{label:"Radio",textColor:yn.white,backgroundColor:yn.purple}:void 0,e?{label:"Multiple",textColor:yn.black,backgroundColor:yn.orange}:void 0].filter(Boolean)}function qu(e,t){const n=t?"path"in t?"pathState":"field":"form",r=t?"path"in t?t?.path:l.toValue(t?.name):"",o={f:e?.formId,ff:t?.id||r,type:n};return btoa(encodeURIComponent(JSON.stringify(o)))}function b5(e){try{const t=JSON.parse(decodeURIComponent(atob(e))),n=Hs[t.f];if(!n&&t.ff){const o=zs[t.ff];return o?{type:t.type,field:o}:{}}if(!n)return{};const r=n.getPathState(t.ff);return{type:t.type,form:n,state:r}}catch{}return{}}function ch(e){return{"Field state":[{key:"errors",value:e.errors},{key:"initialValue",value:e.initialValue},{key:"currentValue",value:e.value},{key:"touched",value:e.touched},{key:"dirty",value:e.dirty},{key:"valid",value:e.valid}]}}function v5(e){const{errorBag:t,meta:n,values:r,isSubmitting:o,isValidating:i,submitCount:s}=e;return{"Form state":[{key:"submitCount",value:s.value},{key:"isSubmitting",value:o.value},{key:"isValidating",value:i.value},{key:"touched",value:n.value.touched},{key:"dirty",value:n.value.dirty},{key:"valid",value:n.value.valid},{key:"initialValues",value:n.value.initialValues},{key:"currentValues",value:r},{key:"errors",value:gn(t.value).reduce((a,c)=>{var d;const f=(d=t.value[c])===null||d===void 0?void 0:d[0];return f&&(a[c]=f),a},{})}]}}function dh(e){return{bgColor:e?yn.success:yn.error,textColor:e?yn.black:yn.white}}function Oo(e,t,n){return W_(n?.type)?$5(e,t,n):uh(e,t,n)}function uh(e,t,n){const{initialValue:r,validateOnMount:o,bails:i,type:s,checkedValue:a,label:c,validateOnValueUpdate:d,uncheckedValue:f,controlled:u,keepValueOnUnmount:p,syncVModel:m,form:_}=E5(n),y=u?Z_(Lu):void 0,g=_||y,h=l.computed(()=>Us(l.toValue(e))),b=l.computed(()=>{if(l.toValue(g?.schema))return;const de=l.unref(t);return xl(de)||Kn(de)||nn(de)||Array.isArray(de)?de:th(de)}),v=!nn(b.value)&&Kn(l.toValue(t)),{id:S,value:N,initialValue:A,meta:$,setState:H,errors:q,flags:k}=c5(h,{modelValue:r,form:g,bails:i,label:c,type:s,validate:b.value?B:void 0,schema:v?t:void 0}),O=l.computed(()=>q.value[0]);m&&S5({value:N,prop:m,handleChange:F,shouldValidate:()=>d&&!k.pendingReset});const I=(J,de=!1)=>{$.touched=!0,de&&x()};async function D(J){var de,ve;if(g?.validateSchema){const{results:$e}=await g.validateSchema(J);return(de=$e[l.toValue(h)])!==null&&de!==void 0?de:{valid:!0,errors:[]}}return b.value?rh(N.value,b.value,{name:l.toValue(h),label:l.toValue(c),values:(ve=g?.values)!==null&&ve!==void 0?ve:{},bails:i}):{valid:!0,errors:[]}}const x=Uu(async()=>($.pending=!0,$.validated=!0,D("validated-only")),J=>(k.pendingUnmount[ne.id]||(H({errors:J.errors}),$.pending=!1,$.valid=J.valid),J)),z=Uu(async()=>D("silent"),J=>($.valid=J.valid,J));function B(J){return J?.mode==="silent"?z():x()}function F(J,de=!0){const ve=Ll(J);X(ve,de)}l.onMounted(()=>{if(o)return x();(!g||!g.validateSchema)&&z()});function M(J){$.touched=J}function K(J){var de;const ve=J&&"value"in J?J.value:A.value;H({value:rt(ve),initialValue:rt(ve),touched:(de=J?.touched)!==null&&de!==void 0?de:!1,errors:J?.errors||[]}),$.pending=!1,$.validated=!1,z()}const W=l.getCurrentInstance();function X(J,de=!0){N.value=W&&m?K8(J,W.props.modelModifiers):J,(de?x:z)()}function oe(J){H({errors:Array.isArray(J)?J:[J]})}const ce=l.computed({get(){return N.value},set(J){X(J,d)}}),ne={id:S,name:h,label:c,value:ce,meta:$,errors:q,errorMessage:O,type:s,checkedValue:a,uncheckedValue:f,bails:i,keepValueOnUnmount:p,resetField:K,handleReset:()=>K(),validate:B,handleChange:F,handleBlur:I,setState:H,setTouched:M,setErrors:oe,setValue:X};if(l.provide(H8,ne),l.isRef(t)&&typeof l.unref(t)!="function"&&l.watch(t,(J,de)=>{on(J,de)||($.validated?x():z())},{deep:!0}),process.env.NODE_ENV!=="production"&&(ne._vm=l.getCurrentInstance(),l.watch(()=>Object.assign(Object.assign({errors:q.value},$),{value:N.value}),hi,{deep:!0}),g||_5(ne)),!g)return ne;const ke=l.computed(()=>{const J=b.value;return!J||nn(J)||xl(J)||Kn(J)||Array.isArray(J)?{}:Object.keys(J).reduce((de,ve)=>{const $e=e5(J[ve]).map(Re=>Re.__locatorRef).reduce((Re,He)=>{const Ce=hn(g.values,He)||g.values[He];return Ce!==void 0&&(Re[He]=Ce),Re},{});return Object.assign(de,$e),de},{})});return l.watch(ke,(J,de)=>{if(!Object.keys(J).length)return;!on(J,de)&&($.validated?x():z())}),l.onBeforeUnmount(()=>{var J;const de=(J=l.toValue(ne.keepValueOnUnmount))!==null&&J!==void 0?J:l.toValue(g.keepValuesOnUnmount),ve=l.toValue(h);if(de||!g||k.pendingUnmount[ne.id]){g?.removePathState(ve,S);return}k.pendingUnmount[ne.id]=!0;const $e=g.getPathState(ve);if(Array.isArray($e?.id)&&$e?.multiple?$e?.id.includes(ne.id):$e?.id===ne.id){if($e?.multiple&&Array.isArray($e.value)){const He=$e.value.findIndex(Ce=>on(Ce,l.toValue(ne.checkedValue)));if(He>-1){const Ce=[...$e.value];Ce.splice(He,1),g.setFieldValue(ve,Ce)}Array.isArray($e.id)&&$e.id.splice($e.id.indexOf(ne.id),1)}else g.unsetPathValue(l.toValue(h));g.removePathState(ve,S)}}),ne}function E5(e){const t=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),n=!!e?.syncVModel,r=typeof e?.syncVModel=="string"?e.syncVModel:e?.modelPropName||"modelValue",o=n&&!("initialValue"in(e||{}))?Wu(l.getCurrentInstance(),r):e?.initialValue;if(!e)return Object.assign(Object.assign({},t()),{initialValue:o});const i="valueProp"in e?e.valueProp:e.checkedValue,s="standalone"in e?!e.standalone:e.controlled,a=e?.modelPropName||e?.syncVModel||!1;return Object.assign(Object.assign(Object.assign({},t()),e||{}),{initialValue:o,controlled:s??!0,checkedValue:i,syncVModel:a})}function $5(e,t,n){const r=n?.standalone?void 0:Z_(Lu),o=n?.checkedValue,i=n?.uncheckedValue;function s(a){const c=a.handleChange,d=l.computed(()=>{const u=l.toValue(a.value),p=l.toValue(o);return Array.isArray(u)?u.findIndex(m=>on(m,p))>=0:on(p,u)});function f(u,p=!0){var m,_;if(d.value===((m=u?.target)===null||m===void 0?void 0:m.checked)){p&&a.validate();return}const y=l.toValue(e),g=r?.getPathState(y),h=Ll(u);let b=(_=l.toValue(o))!==null&&_!==void 0?_:h;r&&g?.multiple&&g.type==="checkbox"?b=Q_(hn(r.values,y)||[],b,void 0):n?.type==="checkbox"&&(b=Q_(l.toValue(a.value),b,l.toValue(i))),c(b,p)}return Object.assign(Object.assign({},a),{checked:d,checkedValue:o,uncheckedValue:i,handleChange:f})}return s(uh(e,t,n))}function S5({prop:e,value:t,handleChange:n,shouldValidate:r}){const o=l.getCurrentInstance();if(!o||!e){process.env.NODE_ENV!=="production"&&console.warn("Failed to setup model events because `useField` was not called in setup.");return}const i=typeof e=="string"?e:"modelValue",s=`update:${i}`;i in o.props&&(l.watch(t,a=>{on(a,Wu(o,i))||o.emit(s,a)}),l.watch(()=>Wu(o,i),a=>{if(a===z_&&t.value===void 0)return;const c=a===z_?void 0:a;on(c,t.value)||n(c,r())}))}function Wu(e,t){if(e)return e.props[t]}let T5=0;const Dl=["bails","fieldsCount","id","multiple","type","validate"];function fh(e){const t={},n=Object.assign({},l.toValue(t)),r=l.unref(void 0);return r&&Kn(r)&&nn(r.cast)?rt(r.cast(n)||{}):rt(n)}function w5(e){var t;const n=T5++,r="Form";let o=0;const i=l.ref(!1),s=l.ref(!1),a=l.ref(0),c=[],d=l.reactive(fh()),f=l.ref([]),u=l.ref({}),p=l.ref({}),m=X8(()=>{p.value=f.value.reduce((L,U)=>(L[Us(l.toValue(U.path))]=U,L),{})});function _(L,U){const Q=F(L);if(!Q){typeof L=="string"&&(u.value[Us(L)]=ju(U));return}if(typeof L=="string"){const pe=Us(L);u.value[pe]&&delete u.value[pe]}Q.errors=ju(U),Q.valid=!Q.errors.length}function y(L){gn(L).forEach(U=>{_(U,L[U])})}const g=l.computed(()=>{const L=f.value.reduce((U,Q)=>(Q.errors.length&&(U[l.toValue(Q.path)]=Q.errors),U),{});return Object.assign(Object.assign({},u.value),L)}),h=l.computed(()=>gn(g.value).reduce((L,U)=>{const Q=g.value[U];return Q?.length&&(L[U]=Q[0]),L},{})),b=l.computed(()=>f.value.reduce((L,U)=>(L[l.toValue(U.path)]={name:l.toValue(U.path)||"",label:U.label||""},L),{})),v=l.computed(()=>f.value.reduce((L,U)=>{var Q;return L[l.toValue(U.path)]=(Q=U.bails)!==null&&Q!==void 0?Q:!0,L},{})),S=Object.assign({},{}),N=(t=void 0)!==null&&t!==void 0?t:!1,{initialValues:A,originalInitialValues:$,setInitialValues:H}=k5(f,d),q=A5(f,d,$,h),k=l.computed(()=>f.value.reduce((L,U)=>{const Q=hn(d,l.toValue(U.path));return dr(L,l.toValue(U.path),Q),L},{})),O=void 0;function I(L,U){var Q,pe;const we=l.computed(()=>hn(A.value,l.toValue(L))),Be=p.value[l.toValue(L)],Ae=U?.type==="checkbox"||U?.type==="radio";if(Be&&Ae){Be.multiple=!0;const mn=o++;return Array.isArray(Be.id)?Be.id.push(mn):Be.id=[Be.id,mn],Be.fieldsCount++,Be.__flags.pendingUnmount[mn]=!1,Be}const ut=l.computed(()=>hn(d,l.toValue(L))),yt=l.toValue(L),Dt=K.findIndex(mn=>mn===yt);Dt!==-1&&K.splice(Dt,1);const et=l.computed(()=>{var mn,ko,Ps,Ms;const Co=l.toValue(O);if(Kn(Co))return(ko=(mn=Co.describe)===null||mn===void 0?void 0:mn.call(Co,l.toValue(L)).required)!==null&&ko!==void 0?ko:!1;const No=l.toValue(U?.schema);return Kn(No)&&(Ms=(Ps=No.describe)===null||Ps===void 0?void 0:Ps.call(No).required)!==null&&Ms!==void 0?Ms:!1}),Tt=o++,Xt=l.reactive({id:Tt,path:L,touched:!1,pending:!1,valid:!0,validated:!!(!((Q=S[yt])===null||Q===void 0)&&Q.length),required:et,initialValue:we,errors:l.shallowRef([]),bails:(pe=U?.bails)!==null&&pe!==void 0?pe:!1,label:U?.label,type:U?.type||"default",value:ut,multiple:!1,__flags:{pendingUnmount:{[Tt]:!1},pendingReset:!1},fieldsCount:1,validate:U?.validate,dirty:l.computed(()=>!on(l.unref(ut),l.unref(we)))});return f.value.push(Xt),p.value[yt]=Xt,m(),h.value[yt]&&!S[yt]&&l.nextTick(()=>{C(yt,{mode:"silent"})}),l.isRef(L)&&l.watch(L,mn=>{m();const ko=rt(ut.value);p.value[mn]=Xt,l.nextTick(()=>{dr(d,mn,ko)})}),Xt}const D=V_(re,5),x=V_(re,5),z=Uu(async L=>await(L==="silent"?D():x()),(L,[U])=>{const Q=gn(de.errorBag.value),we=[...new Set([...gn(L.results),...f.value.map(Be=>Be.path),...Q])].sort().reduce((Be,Ae)=>{var ut;const yt=Ae,Dt=F(yt)||M(yt),et=((ut=L.results[yt])===null||ut===void 0?void 0:ut.errors)||[],Tt=l.toValue(Dt?.path)||yt,Xt=C5({errors:et,valid:!et.length},Be.results[Tt]);return Be.results[Tt]=Xt,Xt.valid||(Be.errors[Tt]=Xt.errors[0]),Dt&&u.value[Tt]&&delete u.value[Tt],Dt?(Dt.valid=Xt.valid,U==="silent"||U==="validated-only"&&!Dt.validated||_(Dt,Xt.errors),Be):(_(Tt,et),Be)},{valid:L.valid,results:{},errors:{},source:L.source});return L.values&&(we.values=L.values,we.source=L.source),gn(we.results).forEach(Be=>{var Ae;const ut=F(Be);ut&&U!=="silent"&&(U==="validated-only"&&!ut.validated||_(ut,(Ae=we.results[Be])===null||Ae===void 0?void 0:Ae.errors))}),we});function B(L){f.value.forEach(L)}function F(L){const U=typeof L=="string"?Us(L):L;return typeof U=="string"?p.value[U]:U}function M(L){return f.value.filter(Q=>L.startsWith(l.toValue(Q.path))).reduce((Q,pe)=>Q?pe.path.length>Q.path.length?pe:Q:pe,void 0)}let K=[],W;function X(L){return K.push(L),W||(W=l.nextTick(()=>{[...K].sort().reverse().forEach(Q=>{J_(d,Q)}),K=[],W=null})),W}function oe(L){return function(Q,pe){return function(Be){return Be instanceof Event&&(Be.preventDefault(),Be.stopPropagation()),B(Ae=>Ae.touched=!0),i.value=!0,a.value++,T().then(Ae=>{const ut=rt(d);if(Ae.valid&&typeof Q=="function"){const yt=rt(k.value);let Dt=L?yt:ut;return Ae.values&&(Dt=Ae.source==="schema"?Ae.values:Object.assign({},Dt,Ae.values)),Q(Dt,{evt:Be,controlledValues:yt,setErrors:y,setFieldError:_,setTouched:se,setFieldTouched:Ce,setValues:Re,setFieldValue:ve,resetForm:E,resetField:Ge})}!Ae.valid&&typeof pe=="function"&&pe({values:ut,evt:Be,errors:Ae.errors,results:Ae.results})}).then(Ae=>(i.value=!1,Ae),Ae=>{throw i.value=!1,Ae})}}}const ne=oe(!1);ne.withControlled=oe(!0);function ke(L,U){const Q=f.value.findIndex(we=>we.path===L&&(Array.isArray(we.id)?we.id.includes(U):we.id===U)),pe=f.value[Q];if(!(Q===-1||!pe)){if(l.nextTick(()=>{C(L,{mode:"silent",warn:!1})}),pe.multiple&&pe.fieldsCount&&pe.fieldsCount--,Array.isArray(pe.id)){const we=pe.id.indexOf(U);we>=0&&pe.id.splice(we,1),delete pe.__flags.pendingUnmount[U]}(!pe.multiple||pe.fieldsCount<=0)&&(f.value.splice(Q,1),G(L),m(),delete p.value[L])}}function J(L){gn(p.value).forEach(U=>{U.startsWith(L)&&delete p.value[U]}),f.value=f.value.filter(U=>!U.path.startsWith(L)),l.nextTick(()=>{m()})}const de={name:r,formId:n,values:d,controlledValues:k,errorBag:g,errors:h,schema:O,submitCount:a,meta:q,isSubmitting:i,isValidating:s,fieldArrays:c,keepValuesOnUnmount:N,validateSchema:l.unref(O)?z:void 0,validate:T,setFieldError:_,validateField:C,setFieldValue:ve,setValues:Re,setErrors:y,setFieldTouched:Ce,setTouched:se,resetForm:E,resetField:Ge,handleSubmit:ne,useFieldModel:Te,defineInputBinds:Ue,defineComponentBinds:Pn,defineField:Z,stageInitialValue:te,unsetInitialValue:G,setFieldInitialValue:ae,createPathState:I,getPathState:F,unsetPathValue:X,removePathState:ke,initialValues:A,getAllPathStates:()=>f.value,destroyPath:J,isFieldTouched:We,isFieldDirty:be,isFieldValid:Fe};function ve(L,U,Q=!0){const pe=rt(U),we=typeof L=="string"?L:L.path;F(we)||I(we),dr(d,we,pe),Q&&C(we)}function $e(L,U=!0){gn(d).forEach(Q=>{delete d[Q]}),gn(L).forEach(Q=>{ve(Q,L[Q],!1)}),U&&T()}function Re(L,U=!0){Bs(d,L),c.forEach(Q=>Q&&Q.reset()),U&&T()}function He(L,U){const Q=F(l.toValue(L))||I(L);return l.computed({get(){return Q.value},set(pe){var we;const Be=l.toValue(L);ve(Be,pe,(we=l.toValue(U))!==null&&we!==void 0?we:!1)}})}function Ce(L,U){const Q=F(L);Q&&(Q.touched=U)}function We(L){const U=F(L);return U?U.touched:f.value.filter(Q=>Q.path.startsWith(L)).some(Q=>Q.touched)}function be(L){const U=F(L);return U?U.dirty:f.value.filter(Q=>Q.path.startsWith(L)).some(Q=>Q.dirty)}function Fe(L){const U=F(L);return U?U.valid:f.value.filter(Q=>Q.path.startsWith(L)).every(Q=>Q.valid)}function se(L){if(typeof L=="boolean"){B(U=>{U.touched=L});return}gn(L).forEach(U=>{Ce(U,!!L[U])})}function Ge(L,U){var Q;const pe=U&&"value"in U?U.value:hn(A.value,L),we=F(L);we&&(we.__flags.pendingReset=!0),ae(L,rt(pe),!0),ve(L,pe,!1),Ce(L,(Q=U?.touched)!==null&&Q!==void 0?Q:!1),_(L,U?.errors||[]),l.nextTick(()=>{we&&(we.__flags.pendingReset=!1)})}function E(L,U){let Q=rt(L?.values?L.values:$.value);Q=U?.force?Q:Bs($.value,Q),Q=Kn(O)&&nn(O.cast)?O.cast(Q):Q,H(Q,{force:U?.force}),B(pe=>{var we;pe.__flags.pendingReset=!0,pe.validated=!1,pe.touched=((we=L?.touched)===null||we===void 0?void 0:we[l.toValue(pe.path)])||!1,ve(l.toValue(pe.path),hn(Q,l.toValue(pe.path)),!1),_(l.toValue(pe.path),void 0)}),U?.force?$e(Q,!1):Re(Q,!1),y(L?.errors||{}),a.value=L?.submitCount||0,l.nextTick(()=>{T({mode:"silent"}),B(pe=>{pe.__flags.pendingReset=!1})})}async function T(L){const U=L?.mode||"force";if(U==="force"&&B(Ae=>Ae.validated=!0),de.validateSchema)return de.validateSchema(U);s.value=!0;const Q=await Promise.all(f.value.map(Ae=>Ae.validate?Ae.validate(L).then(ut=>({key:l.toValue(Ae.path),valid:ut.valid,errors:ut.errors,value:ut.value})):Promise.resolve({key:l.toValue(Ae.path),valid:!0,errors:[],value:void 0})));s.value=!1;const pe={},we={},Be={};for(const Ae of Q)pe[Ae.key]={valid:Ae.valid,errors:Ae.errors},Ae.value&&dr(Be,Ae.key,Ae.value),Ae.errors.length&&(we[Ae.key]=Ae.errors[0]);return{valid:Q.every(Ae=>Ae.valid),results:pe,errors:we,values:Be,source:"fields"}}async function C(L,U){var Q;const pe=F(L);return pe&&U?.mode!=="silent"&&(pe.validated=!0),pe?.validate?pe.validate(U):(!pe&&((Q=U?.warn)!==null&&Q!==void 0?Q:!0)&&process.env.NODE_ENV!=="production"&&l.warn(`field with path ${L} was not found`),Promise.resolve({errors:[],valid:!0}))}function G(L){J_(A.value,L)}function te(L,U,Q=!1){ae(L,U),dr(d,L,U),Q&&dr($.value,L,rt(U))}function ae(L,U,Q=!1){dr(A.value,L,rt(U)),Q&&dr($.value,L,rt(U))}async function re(){const L=l.unref(O);if(!L)return{valid:!0,results:{},errors:{},source:"none"};s.value=!0;const U=xl(L)||Kn(L)?await a5(L,d):await l5(L,d,{names:b.value,bailsMap:v.value});return s.value=!1,U}const Y=ne((L,{evt:U})=>{G8(U)&&U.target.submit()});l.onMounted(()=>{de.validateSchema&&de.validateSchema("silent")}),l.isRef(O)&&l.watch(O,()=>{var L;(L=de.validateSchema)===null||L===void 0||L.call(de,"validated-only")}),l.provide(Lu,de),process.env.NODE_ENV!=="production"&&(m5(de),l.watch(()=>Object.assign(Object.assign({errors:g.value},q.value),{values:d,isSubmitting:i.value,isValidating:s.value,submitCount:a.value}),hi,{deep:!0}));function Z(L,U){const Q=nn(U)?void 0:U?.label,pe=F(l.toValue(L))||I(L,{label:Q}),we=()=>nn(U)?U(Ml(pe,Dl)):U||{};function Be(){var et;pe.touched=!0,((et=we().validateOnBlur)!==null&&et!==void 0?et:js().validateOnBlur)&&C(l.toValue(pe.path))}function Ae(){var et;((et=we().validateOnInput)!==null&&et!==void 0?et:js().validateOnInput)&&l.nextTick(()=>{C(l.toValue(pe.path))})}function ut(){var et;((et=we().validateOnChange)!==null&&et!==void 0?et:js().validateOnChange)&&l.nextTick(()=>{C(l.toValue(pe.path))})}const yt=l.computed(()=>{const et={onChange:ut,onInput:Ae,onBlur:Be};return nn(U)?Object.assign(Object.assign({},et),U(Ml(pe,Dl)).props||{}):U?.props?Object.assign(Object.assign({},et),U.props(Ml(pe,Dl))):et});return[He(L,()=>{var et,Tt,Xt;return(Xt=(et=we().validateOnModelUpdate)!==null&&et!==void 0?et:(Tt=js())===null||Tt===void 0?void 0:Tt.validateOnModelUpdate)!==null&&Xt!==void 0?Xt:!0}),yt]}function Te(L){return Array.isArray(L)?L.map(U=>He(U,!0)):He(L)}function Ue(L,U){const[Q,pe]=Z(L,U);function we(){pe.value.onBlur()}function Be(ut){const yt=Ll(ut);ve(l.toValue(L),yt,!1),pe.value.onInput()}function Ae(ut){const yt=Ll(ut);ve(l.toValue(L),yt,!1),pe.value.onChange()}return l.computed(()=>Object.assign(Object.assign({},pe.value),{onBlur:we,onInput:Be,onChange:Ae,value:Q.value}))}function Pn(L,U){const[Q,pe]=Z(L,U),we=F(l.toValue(L));function Be(Ae){Q.value=Ae}return l.computed(()=>{const Ae=nn(U)?U(Ml(we,Dl)):U||{};return Object.assign({[Ae.model||"modelValue"]:Q.value,[`onUpdate:${Ae.model||"modelValue"}`]:Be},pe.value)})}const pn=Object.assign(Object.assign({},de),{values:l.readonly(d),handleReset:()=>E(),submitForm:Y});return l.provide(j8,pn),pn}function A5(e,t,n,r){const o={touched:"some",pending:"some",valid:"every"},i=l.computed(()=>!on(t,l.unref(n)));function s(){const c=e.value;return gn(o).reduce((d,f)=>{const u=o[f];return d[f]=c[u](p=>p[f]),d},{})}const a=l.reactive(s());return l.watchEffect(()=>{const c=s();a.touched=c.touched,a.valid=c.valid,a.pending=c.pending}),l.computed(()=>Object.assign(Object.assign({initialValues:l.unref(n)},a),{valid:a.valid&&!gn(r.value).length,dirty:i.value}))}function k5(e,t,n){const r=fh(),o=l.ref(r),i=l.ref(rt(r));function s(a,c){c?.force?(o.value=rt(a),i.value=rt(a)):(o.value=Bs(rt(o.value)||{},rt(a)),i.value=Bs(rt(i.value)||{},rt(a))),c?.updateFields&&e.value.forEach(d=>{if(d.touched)return;const u=hn(o.value,l.toValue(d.path));dr(t,l.toValue(d.path),rt(u))})}return{initialValues:o,originalInitialValues:i,setInitialValues:s}}function C5(e,t){return t?{valid:e.valid&&t.valid,errors:[...e.errors,...t.errors]}:e}function ph(e,t){return function(){return e.apply(t,arguments)}}const{toString:N5}=Object.prototype,{getPrototypeOf:gi}=Object,{iterator:Ws,toStringTag:mh}=Symbol,Fl=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gs=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Fl(n,t))return!0;n=gi(n)}return!1},I5=(e,t)=>e!=null&&Gs(e,t)?e[t]:void 0,Gu=(e=>t=>{const n=N5.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xn=e=>(e=e.toLowerCase(),t=>Gu(t)===e),Bl=e=>t=>typeof t===e,{isArray:Ro}=Array,yi=Bl("undefined");function bi(e){return e!==null&&!yi(e)&&e.constructor!==null&&!yi(e.constructor)&&bn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _h=Xn("ArrayBuffer");function O5(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_h(e.buffer),t}const R5=Bl("string"),bn=Bl("function"),hh=Bl("number"),vi=e=>e!==null&&typeof e=="object",x5=e=>e===!0||e===!1,Ul=e=>{if(!vi(e))return!1;const t=gi(e);return(t===null||t===Object.prototype||gi(t)===null)&&!Gs(e,mh)&&!Gs(e,Ws)},P5=e=>{if(!vi(e)||bi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},M5=Xn("Date"),L5=Xn("File"),D5=e=>!!(e&&typeof e.uri<"u"),F5=e=>e&&typeof e.getParts<"u",B5=Xn("Blob"),U5=Xn("FileList"),j5=e=>vi(e)&&bn(e.pipe);function H5(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const gh=H5(),yh=typeof gh.FormData<"u"?gh.FormData:void 0,z5=e=>{if(!e)return!1;if(yh&&e instanceof yh)return!0;const t=gi(e);if(!t||t===Object.prototype||!bn(e.append))return!1;const n=Gu(e);return n==="formdata"||n==="object"&&bn(e.toString)&&e.toString()==="[object FormData]"},q5=Xn("URLSearchParams"),[W5,G5,Y5,K5]=["ReadableStream","Request","Response","Headers"].map(Xn),X5=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ys(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ro(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(bi(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function bh(e,t){if(bi(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const xo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vh=e=>!yi(e)&&e!==xo;function Yu(...e){const{caseless:t,skipUndefined:n}=vh(this)&&this||{},r={},o=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const a=t&&typeof s=="string"&&bh(r,s)||s,c=Fl(r,a)?r[a]:void 0;Ul(c)&&Ul(i)?r[a]=Yu(c,i):Ul(i)?r[a]=Yu({},i):Ro(i)?r[a]=i.slice():(!n||!yi(i))&&(r[a]=i)};for(let i=0,s=e.length;i<s;i++){const a=e[i];if(!a||bi(a)||(Ys(a,o),typeof a!="object"||Ro(a)))continue;const c=Object.getOwnPropertySymbols(a);for(let d=0;d<c.length;d++){const f=c[d];aS.call(a,f)&&o(a[f],f)}}return r}const J5=(e,t,n,{allOwnKeys:r}={})=>(Ys(t,(o,i)=>{n&&bn(o)?Object.defineProperty(e,i,{__proto__:null,value:ph(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Z5=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Q5=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},V5=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&gi(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},eS=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},tS=e=>{if(!e)return null;if(Ro(e))return e;let t=e.length;if(!hh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},nS=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&gi(Uint8Array)),rS=(e,t)=>{const r=(e&&e[Ws]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},oS=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},iS=Xn("HTMLFormElement"),sS=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),{propertyIsEnumerable:aS}=Object.prototype,lS=Xn("RegExp"),Eh=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ys(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},cS=e=>{Eh(e,(t,n)=>{if(bn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(bn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},dS=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Ro(e)?r(e):r(String(e).split(t)),n},uS=()=>{},fS=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function pS(e){return!!(e&&bn(e.append)&&e[mh]==="FormData"&&e[Ws])}const mS=e=>{const t=new WeakSet,n=r=>{if(vi(r)){if(t.has(r))return;if(bi(r))return r;if(!("toJSON"in r)){t.add(r);const o=Ro(r)?[]:{};return Ys(r,(i,s)=>{const a=n(i);!yi(a)&&(o[s]=a)}),t.delete(r),o}}return r};return n(e)},_S=Xn("AsyncFunction"),hS=e=>e&&(vi(e)||bn(e))&&bn(e.then)&&bn(e.catch),$h=((e,t)=>e?setImmediate:t?((n,r)=>(xo.addEventListener("message",({source:o,data:i})=>{o===xo&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),xo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",bn(xo.postMessage)),gS=typeof queueMicrotask<"u"?queueMicrotask.bind(xo):typeof process<"u"&&process.nextTick||$h,Sh=e=>e!=null&&bn(e[Ws]),P={isArray:Ro,isArrayBuffer:_h,isBuffer:bi,isFormData:z5,isArrayBufferView:O5,isString:R5,isNumber:hh,isBoolean:x5,isObject:vi,isPlainObject:Ul,isEmptyObject:P5,isReadableStream:W5,isRequest:G5,isResponse:Y5,isHeaders:K5,isUndefined:yi,isDate:M5,isFile:L5,isReactNativeBlob:D5,isReactNative:F5,isBlob:B5,isRegExp:lS,isFunction:bn,isStream:j5,isURLSearchParams:q5,isTypedArray:nS,isFileList:U5,forEach:Ys,merge:Yu,extend:J5,trim:X5,stripBOM:Z5,inherits:Q5,toFlatObject:V5,kindOf:Gu,kindOfTest:Xn,endsWith:eS,toArray:tS,forEachEntry:rS,matchAll:oS,isHTMLForm:iS,hasOwnProperty:Fl,hasOwnProp:Fl,hasOwnInPrototypeChain:Gs,getSafeProp:I5,reduceDescriptors:Eh,freezeMethods:cS,toObjectSet:dS,toCamelCase:sS,noop:uS,toFiniteNumber:fS,findKey:bh,global:xo,isContextDefined:vh,isSpecCompliantForm:pS,toJSONObject:mS,isAsyncFn:_S,isThenable:hS,setImmediate:$h,asap:gS,isIterable:Sh,isSafeIterable:e=>e!=null&&Gs(e,Ws)&&Sh(e)},yS=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bS=e=>{const t={};let n,r,o;return e&&e.split(`
2
+ `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&yS[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function vS(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const ES=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),$S=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ku(e,t){return P.isArray(e)?e.map(n=>Ku(n,t)):vS(String(e).replace(t,""))}const SS=e=>Ku(e,ES),TS=e=>Ku(e,$S);function Th(e){const t=Object.create(null);return P.forEach(e.toJSON(),(n,r)=>{t[r]=TS(n)}),t}const wh=Symbol("internals");function Ks(e){return e&&String(e).trim().toLowerCase()}function jl(e){return e===!1||e==null?e:P.isArray(e)?e.map(jl):SS(String(e))}function wS(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const AS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xu(e,t,n,r,o){if(P.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!P.isString(t)){if(P.isString(r))return t.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(t)}}function kS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function CS(e,t){const n=P.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let Jt=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,c,d){const f=Ks(c);if(!f)return;const u=P.findKey(o,f);(!u||o[u]===void 0||d===!0||d===void 0&&o[u]!==!1)&&(o[u||c]=jl(a))}const s=(a,c)=>P.forEach(a,(d,f)=>i(d,f,c));if(P.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(P.isString(t)&&(t=t.trim())&&!AS(t))s(bS(t),n);else if(P.isObject(t)&&P.isSafeIterable(t)){let a=Object.create(null),c,d;for(const f of t){if(!P.isArray(f))throw new TypeError("Object iterator must return a key-value pair");d=f[0],P.hasOwnProp(a,d)?(c=a[d],a[d]=P.isArray(c)?[...c,f[1]]:[c,f[1]]):a[d]=f[1]}s(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Ks(t),t){const r=P.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return wS(o);if(P.isFunction(n))return n.call(this,o,r);if(P.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ks(t),t){const r=P.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Xu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Ks(s),s){const a=P.findKey(r,s);a&&(!n||Xu(r,r[a],a,n))&&(delete r[a],o=!0)}}return P.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Xu(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return P.forEach(this,(o,i)=>{const s=P.findKey(r,i);if(s){n[s]=jl(o),delete n[i];return}const a=t?kS(i):String(i).trim();a!==i&&delete n[i],n[a]=jl(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&P.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[wh]=this[wh]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Ks(s);r[a]||(CS(o,s),r[a]=!0)}return P.isArray(t)?t.forEach(i):i(t),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),P.reduceDescriptors(Jt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),P.freezeMethods(Jt);const NS="[REDACTED ****]";function IS(e){if(P.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(P.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function OS(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],o=i=>{if(i===null||typeof i!="object"||P.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof Jt&&(i=i.toJSON()),r.push(i);let s;if(P.isArray(i))s=[],i.forEach((a,c)=>{const d=o(a);P.isUndefined(d)||(s[c]=d)});else{if(!P.isPlainObject(i)&&IS(i))return r.pop(),i;s=Object.create(null);for(const[a,c]of Object.entries(i)){const d=n.has(a.toLowerCase())?NS:o(c);P.isUndefined(d)||(s[a]=d)}}return r.pop(),s};return o(e)}let me=class x8 extends Error{static from(t,n,r,o,i,s){const a=new x8(t.message,n||t.code,r,o,i);return Object.defineProperty(a,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),s&&Object.assign(a,s),a}constructor(t,n,r,o,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&P.hasOwnProp(t,"redact")?t.redact:void 0,r=P.isArray(n)&&n.length>0?OS(t,n):P.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};me.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",me.ERR_BAD_OPTION="ERR_BAD_OPTION",me.ECONNABORTED="ECONNABORTED",me.ETIMEDOUT="ETIMEDOUT",me.ECONNREFUSED="ECONNREFUSED",me.ERR_NETWORK="ERR_NETWORK",me.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",me.ERR_DEPRECATED="ERR_DEPRECATED",me.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",me.ERR_BAD_REQUEST="ERR_BAD_REQUEST",me.ERR_CANCELED="ERR_CANCELED",me.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",me.ERR_INVALID_URL="ERR_INVALID_URL",me.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const RS=null,Ah=100;function Ju(e){return P.isPlainObject(e)||P.isArray(e)}function kh(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}function Zu(e,t,n){return e?e.concat(t).map(function(o,i){return o=kh(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function xS(e){return P.isArray(e)&&!e.some(Ju)}const PS=P.toFlatObject(P,{},null,function(t){return/^is[A-Z]/.test(t)});function Hl(e,t,n){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,v){return!P.isUndefined(v[b])});const r=n.metaTokens,o=n.visitor||_,i=n.dots,s=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?Ah:n.maxDepth,d=a&&P.isSpecCompliantForm(t),f=[];if(!P.isFunction(o))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(P.isDate(h))return h.toISOString();if(P.isBoolean(h))return h.toString();if(!d&&P.isBlob(h))throw new me("Blob is not supported. Use a Buffer instead.");if(P.isArrayBuffer(h)||P.isTypedArray(h)){if(d&&typeof a=="function")return new a([h]);if(typeof Buffer<"u")return Buffer.from(h);throw new me("Blob is not supported. Use a Buffer instead.",me.ERR_NOT_SUPPORT)}return h}function p(h){if(h>c)throw new me("Object is too deeply nested ("+h+" levels). Max depth: "+c,me.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(h,b){if(c===1/0)return JSON.stringify(h);const v=[];return JSON.stringify(h,function(N,A){if(!P.isObject(A))return A;for(;v.length&&v[v.length-1]!==this;)v.pop();return v.push(A),p(b+v.length-1),A})}function _(h,b,v){let S=h;if(P.isReactNative(t)&&P.isReactNativeBlob(h))return t.append(Zu(v,b,i),u(h)),!1;if(h&&!v&&typeof h=="object"){if(P.endsWith(b,"{}"))b=r?b:b.slice(0,-2),h=m(h,1);else if(P.isArray(h)&&xS(h)||(P.isFileList(h)||P.endsWith(b,"[]"))&&(S=P.toArray(h)))return b=kh(b),S.forEach(function(A,$){!(P.isUndefined(A)||A===null)&&t.append(s===!0?Zu([b],$,i):s===null?b:b+"[]",u(A))}),!1}return Ju(h)?!0:(t.append(Zu(v,b,i),u(h)),!1)}const y=Object.assign(PS,{defaultVisitor:_,convertValue:u,isVisitable:Ju});function g(h,b,v=0){if(!P.isUndefined(h)){if(p(v),f.indexOf(h)!==-1)throw new Error("Circular reference detected in "+b.join("."));f.push(h),P.forEach(h,function(N,A){(!(P.isUndefined(N)||N===null)&&o.call(t,N,P.isString(A)?A.trim():A,b,y))===!0&&g(N,b?b.concat(A):[A],v+1)}),f.pop()}}if(!P.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ch(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Qu(e,t){this._pairs=[],e&&Hl(e,this,t)}const Nh=Qu.prototype;Nh.append=function(t,n){this._pairs.push([t,n])},Nh.toString=function(t){const n=t?r=>t.call(this,r,Ch):Ch;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function MS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ih(e,t,n){if(!t)return e;e=e||"";const r=P.isFunction(n)?{serialize:n}:n,o=P.getSafeProp(r,"encode")||MS,i=P.getSafeProp(r,"serialize");let s;if(i?s=i(t,r):s=P.isURLSearchParams(t)?t.toString():new Qu(t,r).toString(o),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Oh{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){P.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Vu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},LS={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Qu,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ef=typeof window<"u"&&typeof document<"u",tf=typeof navigator=="object"&&navigator||void 0,DS=ef&&(!tf||["ReactNative","NativeScript","NS"].indexOf(tf.product)<0),FS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",BS=ef&&window.location.href||"http://localhost",qt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ef,hasStandardBrowserEnv:DS,hasStandardBrowserWebWorkerEnv:FS,navigator:tf,origin:BS},Symbol.toStringTag,{value:"Module"})),...LS};function US(e,t){return Hl(e,new qt.classes.URLSearchParams,{visitor:function(n,r,o,i){return qt.isNode&&P.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const Rh=Ah;function xh(e){if(e>Rh)throw new me("FormData field is too deeply nested ("+e+" levels). Max depth: "+Rh,me.ERR_FORM_DATA_DEPTH_EXCEEDED)}function jS(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)xh(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function HS(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Ph(e){function t(n,r,o,i){xh(i);let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=i>=n.length;return s=!s&&P.isArray(o)?o.length:s,c?(P.hasOwnProp(o,s)?o[s]=P.isArray(o[s])?o[s].concat(r):[o[s],r]:o[s]=r,!a):((!P.hasOwnProp(o,s)||!P.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&P.isArray(o[s])&&(o[s]=HS(o[s])),!a)}if(P.isFormData(e)&&P.isFunction(e.entries)){const n={};return P.forEachEntry(e,(r,o)=>{t(jS(r),o,n,0)}),n}return null}const Ei=(e,t)=>e!=null&&P.hasOwnProp(e,t)?e[t]:void 0;function zS(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Xs={transitional:Vu,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=P.isObject(t);if(i&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return o?JSON.stringify(Ph(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t)||P.isReadableStream(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){const c=Ei(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return US(t,c).toString();if((a=P.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=Ei(this,"env"),f=d&&d.FormData;return Hl(a?{"files[]":t}:t,f&&new f,c)}}return i||o?(n.setContentType("application/json",!1),zS(t)):t}],transformResponse:[function(t){const n=Ei(this,"transitional")||Xs.transitional,r=n&&n.forcedJSONParsing,o=Ei(this,"responseType"),i=o==="json";if(P.isResponse(t)||P.isReadableStream(t))return t;if(t&&P.isString(t)&&(r&&!o||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,Ei(this,"parseReviver"))}catch(c){if(a)throw c.name==="SyntaxError"?me.from(c,me.ERR_BAD_RESPONSE,this,null,Ei(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qt.classes.FormData,Blob:qt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch","query"],e=>{Xs.headers[e]={}});function nf(e,t){const n=this||Xs,r=t||n,o=Jt.from(r.headers);let i=r.data;return P.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Mh(e){return!!(e&&e.__CANCEL__)}let Js=class extends me{constructor(t,n,r){super(t??"canceled",me.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Lh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new me("Request failed with status code "+n.status,n.status>=400&&n.status<500?me.ERR_BAD_REQUEST:me.ERR_BAD_RESPONSE,n.config,n.request,n))}function qS(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function WS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),f=r[i];s||(s=d),n[o]=c,r[o]=d;let u=i,p=0;for(;u!==o;)p+=n[u++],u=u%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),d-s<t)return;const m=f&&d-f;return m?Math.round(p*1e3/m):void 0}}function GS(e,t){let n=0,r=1e3/t,o,i;const s=(d,f=Date.now())=>{n=f,o=null,i&&(clearTimeout(i),i=null),e(...d)};return[(...d)=>{const f=Date.now(),u=f-n;u>=r?s(d,f):(o=d,i||(i=setTimeout(()=>{i=null,s(o)},r-u)))},()=>o&&s(o)]}const zl=(e,t,n=3)=>{let r=0;const o=WS(50,250);return GS(i=>{if(!i||typeof i.loaded!="number")return;const s=i.loaded,a=i.lengthComputable?i.total:void 0,c=a!=null?Math.min(s,a):s,d=Math.max(0,c-r),f=o(d);r=Math.max(r,c);const u={loaded:c,total:a,progress:a?c/a:void 0,bytes:d,rate:f||void 0,estimated:f&&a?(a-c)/f:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(u)},n)},Dh=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Fh=e=>(...t)=>P.asap(()=>e(...t)),YS=qt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,qt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(qt.origin),qt.navigator&&/(msie|trident)/i.test(qt.navigator.userAgent)):()=>!0,KS=qt.hasStandardBrowserEnv?{write(e,t,n,r,o,i,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];P.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),P.isString(r)&&a.push(`path=${r}`),P.isString(o)&&a.push(`domain=${o}`),i===!0&&a.push("secure"),P.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch{return r.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function XS(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function JS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const ZS=/^https?:(?!\/\/)/i,QS=/[\t\n\r]/g;function VS(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function e7(e){return VS(e).replace(QS,"")}function Bh(e,t){if(typeof e=="string"&&ZS.test(e7(e)))throw new me('Invalid URL: missing "//" after protocol',me.ERR_INVALID_URL,t)}function Uh(e,t,n,r){Bh(t,r);let o=!XS(t);return e&&(o||n===!1)?(Bh(e,r),JS(e,t)):t}const jh=e=>e instanceof Jt?{...e}:e;function Po(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,u,p,m){return P.isPlainObject(f)&&P.isPlainObject(u)?P.merge.call({caseless:m},f,u):P.isPlainObject(u)?P.merge({},u):P.isArray(u)?u.slice():u}function o(f,u,p,m){if(P.isUndefined(u)){if(!P.isUndefined(f))return r(void 0,f,p,m)}else return r(f,u,p,m)}function i(f,u){if(!P.isUndefined(u))return r(void 0,u)}function s(f,u){if(P.isUndefined(u)){if(!P.isUndefined(f))return r(void 0,f)}else return r(void 0,u)}function a(f){const u=P.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!P.isUndefined(u))if(P.isPlainObject(u)){if(P.hasOwnProp(u,f))return u[f]}else return;const p=P.hasOwnProp(e,"transitional")?e.transitional:void 0;if(P.isPlainObject(p)&&P.hasOwnProp(p,f))return p[f]}function c(f,u,p){if(P.hasOwnProp(t,p))return r(f,u);if(P.hasOwnProp(e,p))return r(void 0,f)}const d={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:c,headers:(f,u,p)=>o(jh(f),jh(u),p,!0)};return P.forEach(Object.keys({...e,...t}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const p=P.hasOwnProp(d,u)?d[u]:o,m=P.hasOwnProp(e,u)?e[u]:void 0,_=P.hasOwnProp(t,u)?t[u]:void 0,y=p(m,_,u);P.isUndefined(y)&&p!==c||(n[u]=y)}),P.hasOwnProp(t,"validateStatus")&&P.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(P.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const t7=["content-type","content-length"];function n7(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,o])=>{t7.includes(r.toLowerCase())&&e.set(r,o)})}const r7=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function Hh(e){const t=Po({},e),n=p=>P.hasOwnProp(t,p)?t[p]:void 0,r=n("data");let o=n("withXSRFToken");const i=n("xsrfHeaderName"),s=n("xsrfCookieName");let a=n("headers");const c=n("auth"),d=n("baseURL"),f=n("allowAbsoluteUrls"),u=n("url");if(t.headers=a=Jt.from(a),t.url=Ih(Uh(d,u,f,t),n("params"),n("paramsSerializer")),c){const p=P.getSafeProp(c,"username")||"",m=P.getSafeProp(c,"password")||"";try{a.set("Authorization","Basic "+btoa(p+":"+(m?r7(m):"")))}catch(_){throw me.from(_,me.ERR_BAD_OPTION_VALUE,e)}}if(P.isFormData(r)&&(qt.hasStandardBrowserEnv||qt.hasStandardBrowserWebWorkerEnv||P.isReactNative(r)?a.setContentType(void 0):P.isFunction(r.getHeaders)&&n7(a,r.getHeaders(),n("formDataHeaderPolicy"))),qt.hasStandardBrowserEnv&&(P.isFunction(o)&&(o=o(t)),o===!0||o==null&&YS(t.url))){const m=i&&s&&KS.read(s);m&&a.set(i,m)}return t}const o7=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=Hh(e);let i=o.data;const s=Jt.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:d}=o,f,u,p,m,_;function y(){m&&m(),_&&_(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function h(){if(!g)return;const v=Jt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),N={data:!a||a==="text"||a==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:v,config:e,request:g};Lh(function($){n($),y()},function($){r($),y()},N),g=null}"onloadend"in g?g.onloadend=h:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.startsWith("file:"))||setTimeout(h)},g.onabort=function(){g&&(r(new me("Request aborted",me.ECONNABORTED,e,g)),y(),g=null)},g.onerror=function(S){const N=S&&S.message?S.message:"Network Error",A=new me(N,me.ERR_NETWORK,e,g);A.event=S||null,r(A),y(),g=null},g.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const N=o.transitional||Vu;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),r(new me(S,N.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,g)),y(),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&P.forEach(Th(s),function(S,N){g.setRequestHeader(N,S)}),P.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),a&&a!=="json"&&(g.responseType=o.responseType),d&&([p,_]=zl(d,!0),g.addEventListener("progress",p)),c&&g.upload&&([u,m]=zl(c),g.upload.addEventListener("progress",u),g.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(f=v=>{g&&(r(!v||v.type?new Js(null,e,g):v),g.abort(),y(),g=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const b=qS(o.url);if(b&&!qt.protocols.includes(b)){r(new me("Unsupported protocol "+b+":",me.ERR_BAD_REQUEST,e)),y();return}g.send(i||null)})},i7=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(c){if(!r){r=!0,s();const d=c instanceof Error?c:this.reason;n.abort(d instanceof me?d:new Js(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,o(new me(`timeout of ${t}ms exceeded`,me.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o,{once:!0}));const{signal:a}=n;return a.unsubscribe=()=>P.asap(s),a},s7=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},a7=async function*(e,t){for await(const n of l7(e))yield*s7(n,t)},l7=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},zh=(e,t,n,r)=>{const o=a7(e,t);let i=0,s,a=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:f}=await o.next();if(d){a(),c.close();return}let u=f.byteLength;if(n){let p=i+=u;n(p)}c.enqueue(new Uint8Array(f))}catch(d){throw a(d),d}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},ql=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,c7=(e,t,n)=>t+2<n&&ql(e.charCodeAt(t+1))&&ql(e.charCodeAt(t+2));function d7(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let s=r.length;const a=r.length;for(let m=0;m<a;m++)if(r.charCodeAt(m)===37&&m+2<a){const _=r.charCodeAt(m+1),y=r.charCodeAt(m+2);ql(_)&&ql(y)&&(s-=2,m+=2)}let c=0,d=a-1;const f=m=>m>=2&&r.charCodeAt(m-2)===37&&r.charCodeAt(m-1)===51&&(r.charCodeAt(m)===68||r.charCodeAt(m)===100);d>=0&&(r.charCodeAt(d)===61?(c++,d--):f(d)&&(c++,d-=3)),c===1&&d>=0&&(r.charCodeAt(d)===61||f(d))&&c++;const p=Math.floor(s/4)*3-(c||0);return p>0?p:0}let i=0;for(let s=0,a=r.length;s<a;s++){const c=r.charCodeAt(s);if(c===37&&c7(r,s,a))i+=1,s+=2;else if(c<128)i+=1;else if(c<2048)i+=2;else if(c>=55296&&c<=56319&&s+1<a){const d=r.charCodeAt(s+1);d>=56320&&d<=57343?(i+=4,s++):i+=3}else i+=3}return i}const rf="1.18.1",qh=64*1024,{isFunction:Wl}=P,u7=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Wh=e=>{if(!P.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Gh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},f7=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},p7=e=>{const t=P.global!==void 0&&P.global!==null?P.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=P.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:s}=e,a=o?Wl(o):typeof fetch=="function",c=Wl(i),d=Wl(s);if(!a)return!1;const f=a&&Wl(n),u=a&&(typeof r=="function"?(h=>b=>h.encode(b))(new r):async h=>new Uint8Array(await new i(h).arrayBuffer())),p=c&&f&&Gh(()=>{let h=!1;const b=new i(qt.origin,{body:new n,method:"POST",get duplex(){return h=!0,"half"}}),v=b.headers.has("Content-Type");return b.body!=null&&b.body.cancel(),h&&!v}),m=d&&f&&Gh(()=>P.isReadableStream(new s("").body)),_={stream:m&&(h=>h.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!_[h]&&(_[h]=(b,v)=>{let S=b&&b[h];if(S)return S.call(b);throw new me(`Response type '${h}' is not supported`,me.ERR_NOT_SUPPORT,v)})});const y=async h=>{if(h==null)return 0;if(P.isBlob(h))return h.size;if(P.isSpecCompliantForm(h))return(await new i(qt.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(P.isArrayBufferView(h)||P.isArrayBuffer(h))return h.byteLength;if(P.isURLSearchParams(h)&&(h=h+""),P.isString(h))return(await u(h)).byteLength},g=async(h,b)=>{const v=P.toFiniteNumber(h.getContentLength());return v??y(b)};return async h=>{let{url:b,method:v,data:S,signal:N,cancelToken:A,timeout:$,onDownloadProgress:H,onUploadProgress:q,responseType:k,headers:O,withCredentials:I="same-origin",fetchOptions:D,maxContentLength:x,maxBodyLength:z}=Hh(h);const B=P.isNumber(x)&&x>-1,F=P.isNumber(z)&&z>-1,M=J=>P.hasOwnProp(h,J)?h[J]:void 0;let K=o||fetch;k=k?(k+"").toLowerCase():"text";let W=i7([N,A&&A.toAbortSignal()],$),X=null;const oe=W&&W.unsubscribe&&(()=>{W.unsubscribe()});let ce,ne=null;const ke=()=>new me("Request body larger than maxBodyLength limit",me.ERR_BAD_REQUEST,h,X);try{let J;const de=M("auth");if(de){const se=P.getSafeProp(de,"username")||"",Ge=P.getSafeProp(de,"password")||"";J={username:se,password:Ge}}if(f7(b)){const se=new URL(b,qt.origin);if(!J&&(se.username||se.password)){const Ge=Wh(se.username),E=Wh(se.password);J={username:Ge,password:E}}(se.username||se.password)&&(se.username="",se.password="",b=se.href)}if(J&&(O.delete("authorization"),O.set("Authorization","Basic "+btoa(u7((J.username||"")+":"+(J.password||""))))),B&&typeof b=="string"&&b.startsWith("data:")&&d7(b)>x)throw new me("maxContentLength size of "+x+" exceeded",me.ERR_BAD_RESPONSE,h,X);if(F&&v!=="get"&&v!=="head"){const se=await y(S);if(typeof se=="number"&&isFinite(se)&&(ce=se,se>z))throw ke()}const ve=F&&(P.isReadableStream(S)||P.isStream(S)),$e=(se,Ge,E)=>zh(se,qh,T=>{if(F&&T>z)throw ne=ke();Ge&&Ge(T)},E);if(p&&v!=="get"&&v!=="head"&&(q||ve)){if(ce=ce??await g(O,S),ce!==0||ve){let se=new i(b,{method:"POST",body:S,duplex:"half"}),Ge;if(P.isFormData(S)&&(Ge=se.headers.get("content-type"))&&O.setContentType(Ge),se.body){const[E,T]=q&&Dh(ce,zl(Fh(q)))||[];S=$e(se.body,E,T)}}}else if(ve&&!c&&f&&v!=="get"&&v!=="head")S=$e(S);else if(ve&&c&&!p&&v!=="get"&&v!=="head")throw new me("Stream request bodies are not supported by the current fetch implementation",me.ERR_NOT_SUPPORT,h,X);P.isString(I)||(I=I?"include":"omit");const Re=c&&"credentials"in i.prototype;if(P.isFormData(S)){const se=O.getContentType();se&&/^multipart\/form-data/i.test(se)&&!/boundary=/i.test(se)&&O.delete("content-type")}O.set("User-Agent","axios/"+rf,!1);const He={...D,signal:W,method:v.toUpperCase(),headers:Th(O.normalize()),body:S,duplex:"half",credentials:Re?I:void 0};X=c&&new i(b,He);let Ce=await(c?K(X,D):K(b,He));const We=Jt.from(Ce.headers);if(B){const se=P.toFiniteNumber(We.getContentLength());if(se!=null&&se>x)throw new me("maxContentLength size of "+x+" exceeded",me.ERR_BAD_RESPONSE,h,X)}const be=m&&(k==="stream"||k==="response");if(m&&Ce.body&&(H||B||be&&oe)){const se={};["status","statusText","headers"].forEach(te=>{se[te]=Ce[te]});const Ge=P.toFiniteNumber(We.getContentLength()),[E,T]=H&&Dh(Ge,zl(Fh(H),!0))||[];let C=0;const G=te=>{if(B&&(C=te,C>x))throw new me("maxContentLength size of "+x+" exceeded",me.ERR_BAD_RESPONSE,h,X);E&&E(te)};Ce=new s(zh(Ce.body,qh,G,()=>{T&&T(),oe&&oe()}),se)}k=k||"text";let Fe=await _[P.findKey(_,k)||"text"](Ce,h);if(B&&!m&&!be){let se;if(Fe!=null&&(typeof Fe.byteLength=="number"?se=Fe.byteLength:typeof Fe.size=="number"?se=Fe.size:typeof Fe=="string"&&(se=typeof r=="function"?new r().encode(Fe).byteLength:Fe.length)),typeof se=="number"&&se>x)throw new me("maxContentLength size of "+x+" exceeded",me.ERR_BAD_RESPONSE,h,X)}return!be&&oe&&oe(),await new Promise((se,Ge)=>{Lh(se,Ge,{data:Fe,headers:Jt.from(Ce.headers),status:Ce.status,statusText:Ce.statusText,config:h,request:X})})}catch(J){if(oe&&oe(),W&&W.aborted&&W.reason instanceof me){const de=W.reason;throw de.config=h,X&&(de.request=X),J!==de&&Object.defineProperty(de,"cause",{__proto__:null,value:J,writable:!0,enumerable:!1,configurable:!0}),de}if(ne)throw X&&!ne.request&&(ne.request=X),ne;if(J instanceof me)throw X&&!J.request&&(J.request=X),J;if(J&&J.name==="TypeError"&&/Load failed|fetch/i.test(J.message)){const de=new me("Network Error",me.ERR_NETWORK,h,X,J&&J.response);throw Object.defineProperty(de,"cause",{__proto__:null,value:J.cause||J,writable:!0,enumerable:!1,configurable:!0}),de}throw me.from(J,J&&J.code,h,X,J&&J.response)}}},m7=new Map,Yh=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let s=i.length,a=s,c,d,f=m7;for(;a--;)c=i[a],d=f.get(c),d===void 0&&f.set(c,d=a?new Map:p7(t)),f=d;return d};Yh();const of={http:RS,xhr:o7,fetch:{get:Yh}};P.forEach(of,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Kh=e=>`- ${e}`,_7=e=>P.isFunction(e)||e===null||e===!1;function h7(e,t){e=P.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s<n;s++){r=e[s];let a;if(o=r,!_7(r)&&(o=of[(a=String(r)).toLowerCase()],o===void 0))throw new me(`Unknown adapter '${a}'`);if(o&&(P.isFunction(o)||(o=o.get(t))))break;i[a||"#"+s]=o}if(!o){const s=Object.entries(i).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since :
4
+ `+s.map(Kh).join(`
5
+ `):" "+Kh(s[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+a,me.ERR_NOT_SUPPORT)}return o}const Xh={getAdapter:h7,adapters:of};function sf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Js(null,e)}function Jh(e){return sf(e),e.headers=Jt.from(e.headers),e.data=nf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xh.getAdapter(e.adapter||Xs.adapter,e)(e).then(function(r){sf(e),e.response=r;try{r.data=nf.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Jt.from(r.headers),r},function(r){if(!Mh(r)&&(sf(e),r&&r.response)){e.response=r.response;try{r.response.data=nf.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Jt.from(r.response.headers)}return Promise.reject(r)})}const Gl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gl[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Zh={};Gl.transitional=function(t,n,r){function o(i,s){return"[Axios v"+rf+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new me(o(s," has been removed"+(n?" in "+n:"")),me.ERR_DEPRECATED);return n&&!Zh[s]&&(Zh[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}},Gl.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function g7(e,t,n){if(typeof e!="object"||e===null)throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){const a=e[i],c=a===void 0||s(a,i,e);if(c!==!0)throw new me("option "+i+" must be "+c,me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new me("Unknown option "+i,me.ERR_BAD_OPTION)}}const Yl={assertOptions:g7,validators:Gl},Zt=Yl.validators;let Mo=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Oh,response:new Oh}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=(()=>{if(!o.stack)return"";const s=o.stack.indexOf(`
6
+ `);return s===-1?"":o.stack.slice(s+1)})();try{if(!r.stack)r.stack=i;else if(i){const s=i.indexOf(`
7
+ `),a=s===-1?-1:i.indexOf(`
8
+ `,s+1),c=a===-1?"":i.slice(a+1);String(r.stack).endsWith(c)||(r.stack+=`
9
+ `+i)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Po(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Yl.assertOptions(r,{silentJSONParsing:Zt.transitional(Zt.boolean),forcedJSONParsing:Zt.transitional(Zt.boolean),clarifyTimeoutError:Zt.transitional(Zt.boolean),legacyInterceptorReqResOrdering:Zt.transitional(Zt.boolean),advertiseZstdAcceptEncoding:Zt.transitional(Zt.boolean),validateStatusUndefinedResolves:Zt.transitional(Zt.boolean)},!1),o!=null&&(P.isFunction(o)?n.paramsSerializer={serialize:o}:Yl.assertOptions(o,{encode:Zt.function,serialize:Zt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Yl.assertOptions(n,{baseUrl:Zt.spelling("baseURL"),withXsrfToken:Zt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&P.merge(i.common,i[n.method]);i&&P.forEach(["delete","get","head","post","put","patch","query","common"],_=>{delete i[_]}),n.headers=Jt.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(n)===!1)return;c=c&&y.synchronous;const g=n.transitional||Vu;g&&g.legacyInterceptorReqResOrdering?a.unshift(y.fulfilled,y.rejected):a.push(y.fulfilled,y.rejected)});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let f,u=0,p;if(!c){const _=[Jh.bind(this),void 0];for(_.unshift(...a),_.push(...d),p=_.length,f=Promise.resolve(n);u<p;)f=f.then(_[u++],_[u++]);return f}p=a.length;let m=n;for(;u<p;){const _=a[u++],y=a[u++];try{m=_(m)}catch(g){y.call(this,g);break}}try{f=Jh.call(this,m)}catch(_){return Promise.reject(_)}for(u=0,p=d.length;u<p;)f=f.then(d[u++],d[u++]);return f}getUri(t){t=Po(this.defaults,t);const n=Uh(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Ih(n,t.params,t.paramsSerializer)}};P.forEach(["delete","get","head","options"],function(t){Mo.prototype[t]=function(n,r){return this.request(Po(r||{},{method:t,url:n,data:r&&P.hasOwnProp(r,"data")?r.data:void 0}))}}),P.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,s,a){return this.request(Po(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Mo.prototype[t]=n(),t!=="query"&&(Mo.prototype[t+"Form"]=n(!0))});let y7=class P8{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Js(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new P8(function(o){t=o}),cancel:t}}};function b7(e){return function(n){return e.apply(null,n)}}function v7(e){return P.isObject(e)&&e.isAxiosError===!0}const af={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(af).forEach(([e,t])=>{af[t]=e});function Qh(e){const t=new Mo(e),n=ph(Mo.prototype.request,t);return P.extend(n,Mo.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Qh(Po(e,o))},n}const nt=Qh(Xs);nt.Axios=Mo,nt.CanceledError=Js,nt.CancelToken=y7,nt.isCancel=Mh,nt.VERSION=rf,nt.toFormData=Hl,nt.AxiosError=me,nt.Cancel=nt.CanceledError,nt.all=function(t){return Promise.all(t)},nt.spread=b7,nt.isAxiosError=v7,nt.mergeConfig=Po,nt.AxiosHeaders=Jt,nt.formToJSON=e=>Ph(P.isHTMLForm(e)?new FormData(e):e),nt.getAdapter=Xh.getAdapter,nt.HttpStatusCode=af,nt.default=nt;const{Axios:cne,AxiosError:dne,CanceledError:une,isCancel:fne,CancelToken:pne,VERSION:mne,all:_ne,Cancel:hne,isAxiosError:gne,spread:yne,toFormData:bne,AxiosHeaders:vne,HttpStatusCode:Ene,formToJSON:$ne,getAdapter:Sne,mergeConfig:Tne,create:wne}=nt;class E7{http;server;constructor(t){this.server=t.replace(/\/$/,""),this.http=nt.create({baseURL:this.server})}async getForm(t){const{data:n}=await this.http.get(`/api/v2/formulaires/${t}`);return n}async getSubmission(t,n){const{data:r}=await this.http.get(`/api/v2/submissions/${t}`,{params:n?{uid:n}:void 0});return r}async submit(t,n,r){const{data:o}=await this.http.put(`/api/v2/submissions/${t}`,n,{withCredentials:!0,onUploadProgress:i=>{r&&i.total&&r(Math.round(i.loaded*100/i.total))}});return o}}class $7{handlers=new Map;on(t,n){let r=this.handlers.get(t);return r||(r=new Set,this.handlers.set(t,r)),r.add(n),()=>this.off(t,n)}off(t,n){this.handlers.get(t)?.delete(n)}emit(t,n){this.handlers.get(t)?.forEach(r=>r(n))}}let Kl=null,lf=!1;async function Vh(e,t={}){!t.dsn||lf||(Kl=await Promise.resolve().then(()=>Fte),Kl.init({app:e,dsn:t.dsn,environment:t.environment??"production",release:t.release,tracesSampleRate:t.tracesSampleRate??0,initialScope:{tags:{module:"form-builder-vue3"}}}),lf=!0)}function Zs(e,t){!lf||!Kl||Kl.captureException(e,t?{extra:t}:void 0)}const S7=Object.freeze(Object.defineProperty({__proto__:null,captureException:Zs,initSentry:Vh},Symbol.toStringTag,{value:"Module"}));function Mn(e,t){console.error("[form-builder-vue3]",e,t??""),Zs(e,t)}function e1(e,t){console.warn("[form-builder-vue3]",e,t??"")}function T7(e,t=0){let n=3735928559^t,r=1103547991^t;for(let o=0;o<e.length;o++){const i=e.charCodeAt(o);n=Math.imul(n^i,2654435761),r=Math.imul(r^i,1597334677)}return n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),(r>>>0).toString(16).padStart(8,"0")+(n>>>0).toString(16).padStart(8,"0")}function w7(){try{const e=document.createElement("canvas");e.width=240,e.height=60;const t=e.getContext("2d");return t?(t.textBaseline="top",t.font="14px 'Arial'",t.fillStyle="#f60",t.fillRect(125,1,62,20),t.fillStyle="#069",t.fillText("Houston fp 🔑",2,15),t.fillStyle="rgba(102,204,0,0.7)",t.fillText("Houston fp 🔑",4,17),e.toDataURL()):""}catch(e){return e1("fingerprint: canvas indisponible",{err:String(e)}),""}}function A7(){try{const e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)return"";const n=t.getExtension("WEBGL_debug_renderer_info"),r=n?t.getParameter(n.UNMASKED_VENDOR_WEBGL):t.getParameter(t.VENDOR),o=n?t.getParameter(n.UNMASKED_RENDERER_WEBGL):t.getParameter(t.RENDERER);return`${r}~${o}`}catch(e){return e1("fingerprint: WebGL indisponible",{err:String(e)}),""}}function k7(){if(typeof navigator>"u")return"server";const e=navigator,t=typeof screen<"u"?[screen.width,screen.height,screen.availWidth,screen.availHeight,screen.colorDepth,screen.pixelDepth,window.devicePixelRatio].join("x"):"",n=[e.userAgent,e.language,(e.languages||[]).join(","),e.platform,e.vendor,e.hardwareConcurrency,e.deviceMemory,e.maxTouchPoints,e.cookieEnabled,t,new Date().getTimezoneOffset(),Intl.DateTimeFormat().resolvedOptions().timeZone,w7(),A7()].map(r=>String(r??"")).join("|");return T7(n)}function t1(e,t){if(!e||e.trim().length<=3)return!0;try{return!!new Function(`return (${e});`).call({form:t})}catch(n){return Mn(n,{where:"displayIf",expr:e}),!0}}function to(e,t={}){if(typeof window>"u")return;const n=window;if(typeof n.gtag=="function"){n.gtag("event",e,t);return}n.dataLayer=n.dataLayer||[],n.dataLayer.push({event:e,...t})}function $i(e,t){if(typeof window>"u")return;const n=window;typeof n.gtag=="function"&&n.gtag("event","Form",{event_category:e,event_label:t})}function Xl(e){if(typeof document>"u")return e;const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}const Jl={en:/^[A-Z\s]*$/i,cs:/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ\s]*$/i,da:/^[A-ZÆØÅ\s]*$/i,de:/^[A-ZÄÖÜß\s]*$/i,es:/^[A-ZÁÉÍÑÓÚÜ\s]*$/i,fr:/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ\s]*$/i,it:/^[A-Z\xC0-\xFF\s]*$/i,lt:/^[A-ZĄČĘĖĮŠŲŪŽ\s]*$/i,nl:/^[A-ZÉËÏÓÖÜ\s]*$/i,hu:/^[A-ZÁÉÍÓÖŐÚÜŰ\s]*$/i,pl:/^[A-ZĄĆĘŚŁŃÓŻŹ\s]*$/i,pt:/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ\s]*$/i,ru:/^[А-ЯЁ\s]*$/i,kz:/^[А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA\s]*$/i,sk:/^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ\s]*$/i,sr:/^[A-ZČĆŽŠĐ\s]*$/i,sv:/^[A-ZÅÄÖ\s]*$/i,tr:/^[A-ZÇĞİıÖŞÜ\s]*$/i,uk:/^[А-ЩЬЮЯЄІЇҐ\s]*$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ\s]*$/,az:/^[A-ZÇƏĞİıÖŞÜ\s]*$/i,ug:/^[A-Zچۋېرتيۇڭوپھسداەىقكلزشغۈبنمژفگخجۆئ\s]*$/i},C7=e=>{if(e)return Array.isArray(e)?e[0]:e.locale};function ur(e,t){return Array.isArray(e)?e[0]:e[t]}function Qt(e){return!!(e==null||e===""||Array.isArray(e)&&e.length===0)}const n1=(e,t)=>{if(Qt(e))return!0;const n=C7(t);if(Array.isArray(e))return e.every(o=>n1(o,{locale:n}));const r=String(e);return n?(Jl[n]||Jl.en).test(r):Object.keys(Jl).some(o=>Jl[o].test(r))};function N7(e){return Array.isArray(e)?{min:e[0],max:e[1]}:e}const r1=(e,t)=>{if(Qt(e))return!0;const{min:n,max:r}=N7(t);if(Array.isArray(e))return e.every(i=>r1(i,{min:n,max:r}));const o=Number(e);return Number(n)<=o&&Number(r)>=o},I7=(e,t)=>{const n=ur(t,"target");return String(e)===String(n)},o1=(e,t)=>{if(Qt(e))return!0;const n=ur(t,"length");if(Array.isArray(e))return e.every(o=>o1(o,{length:n}));const r=String(e);return/^[0-9]*$/.test(r)&&r.length===Number(n)},i1=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,O7=e=>Qt(e)?!0:Array.isArray(e)?e.every(t=>i1.test(String(t))):i1.test(String(e)),R7=e=>Qt(e)?!0:Array.isArray(e)?e.every(t=>/^-?[0-9]+$/.test(String(t))):/^-?[0-9]+$/.test(String(e)),x7=(e,t)=>{if(Qt(e))return!0;const n=ur(t,"length");return typeof e=="number"&&(e=String(e)),e.length||(e=Array.from(e)),e.length===Number(n)},s1=(e,t)=>{if(Qt(e))return!0;const n=ur(t,"length");return Array.isArray(e)?e.every(r=>s1(r,{length:n})):[...String(e)].length<=Number(n)},a1=(e,t)=>{if(Qt(e))return!0;const n=ur(t,"max");return Array.isArray(e)?e.length>0&&e.every(r=>a1(r,{max:n})):Number(e)<=Number(n)},l1=(e,t)=>{if(Qt(e))return!0;const n=ur(t,"length");return Array.isArray(e)?e.every(r=>l1(r,{length:n})):[...String(e)].length>=Number(n)},c1=(e,t)=>{if(Qt(e))return!0;const n=ur(t,"min");return Array.isArray(e)?e.length>0&&e.every(r=>c1(r,{min:n})):Number(e)>=Number(n)},cf=(e,t)=>Qt(e)?!0:Array.isArray(e)?e.every(n=>cf(n,t)):Array.from(t).some(n=>n==e),P7=(e,t)=>Qt(e)?!0:!cf(e,t),M7=/^[٠١٢٣٤٥٦٧٨٩]+$/,L7=/^[0-9]+$/,D7=e=>{if(Qt(e))return!0;const t=n=>{const r=String(n);return L7.test(r)||M7.test(r)};return Array.isArray(e)?e.every(t):t(e)},d1=(e,t)=>{if(Qt(e))return!0;let n=ur(t,"regex");return typeof n=="string"&&(n=new RegExp(n)),Array.isArray(e)?e.every(r=>d1(r,{regex:n})):n.test(String(e))};function F7(e){return e==null}function B7(e){return Array.isArray(e)&&e.length===0}const U7=e=>F7(e)||B7(e)||e===!1?!1:!!String(e).trim().length,j7=(e,t)=>{if(Qt(e))return!0;let n=ur(t,"size");if(n=Number(n),isNaN(n))return!1;const r=n*1024;if(!Array.isArray(e))return e.size<=r;for(let o=0;o<e.length;o++)if(e[o].size>r)return!1;return!0},H7=(e,t)=>{var n;if(Qt(e))return!0;let r=ur(t,"pattern");typeof r=="string"&&(r=new RegExp(r));try{new URL(e)}catch{return!1}return(n=r?.test(e))!==null&&n!==void 0?n:!0};function u1(e){return typeof e=="function"}function z7(e){return typeof e=="object"&&e!==null}function q7(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function f1(e){if(!z7(e)||q7(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function p1(e,t){return Object.keys(t).forEach(n=>{if(f1(t[n])&&f1(e[n])){e[n]||(e[n]={}),p1(e[n],t[n]);return}e[n]=t[n]}),e}function m1(e,t,n){const{prefix:r,suffix:o}=n,i=W7(r,o);return e.replace(i,function(s,a,c){if(!a||!t.params)return c in t?t[c]:t.params&&c in t.params?t.params[c]:`${r}${c}${o}`;if(!Array.isArray(t.params))return c in t.params?t.params[c]:`${r}${c}${o}`;const d=Number(a.replace(":",""));return d in t.params?t.params[d]:`${a}${r}${c}${o}`})}function _1(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function W7(e,t){const n=_1(e),r=_1(t);return new RegExp(`([0-9]:)?${n}((?:(?!${r}).)+)${r}`,"g")}class G7{constructor(t,n,r={prefix:"{",suffix:"}"}){this.container={},this.locale=t,this.interpolateOptions=r,this.merge(n)}resolve(t,n){let r=this.format(this.locale,t,n);return!r&&this.fallbackLocale&&this.fallbackLocale!==this.locale&&(r=this.format(this.fallbackLocale,t,n)),r||this.getDefaultMessage(this.locale,t)}getDefaultMessage(t,n){const{label:r,name:o}=n;return`${this.resolveLabel(t,o,r)} is not valid`}getLocaleDefault(t,n){var r,o,i,s,a;return((i=(o=(r=this.container[t])===null||r===void 0?void 0:r.fields)===null||o===void 0?void 0:o[n])===null||i===void 0?void 0:i._default)||((a=(s=this.container[t])===null||s===void 0?void 0:s.messages)===null||a===void 0?void 0:a._default)}resolveLabel(t,n,r){var o,i,s,a;return r?((i=(o=this.container[t])===null||o===void 0?void 0:o.names)===null||i===void 0?void 0:i[r])||r:((a=(s=this.container[t])===null||s===void 0?void 0:s.names)===null||a===void 0?void 0:a[n])||n}format(t,n,r){var o,i,s,a,c;let d;const{rule:f,form:u,label:p,name:m}=n,_=this.resolveLabel(t,m,p);return f?(d=((s=(i=(o=this.container[t])===null||o===void 0?void 0:o.fields)===null||i===void 0?void 0:i[m])===null||s===void 0?void 0:s[f.name])||((c=(a=this.container[t])===null||a===void 0?void 0:a.messages)===null||c===void 0?void 0:c[f.name]),d||(d=this.getLocaleDefault(t,m)||""),u1(d)?d(n):m1(d,Object.assign(Object.assign({},u),{field:_,params:f.params}),r??this.interpolateOptions)):(d=this.getLocaleDefault(t,m)||"",u1(d)?d(n):m1(d,Object.assign(Object.assign({},u),{field:_}),r??this.interpolateOptions))}merge(t){p1(this.container,t)}}const Zl=new G7("en",{});function Y7(e,t,n){const r=o=>Zl.resolve(o,n);return typeof e=="string"?(Zl.locale=e,r):(Zl.merge(e),r)}function h1(e){Zl.locale=e}const K7={code:"fr",messages:{_default:"Le champ {field} est invalide",alpha:"Le champ {field} ne peut contenir que des lettres",alpha_num:"Le champ {field} ne peut contenir que des caractères alpha-numériques",alpha_dash:"Le champ {field} ne peut contenir que des caractères alpha-numériques, tirets ou soulignés",alpha_spaces:"Le champ {field} ne peut contenir que des lettres ou des espaces",between:"Le champ {field} doit être compris entre 0:{min} et 1:{max}",confirmed:"Le champ {field} ne correspond pas",digits:"Le champ {field} doit être un nombre entier de 0:{length} chiffres",dimensions:"Le champ {field} doit avoir une taille de 0:{width} pixels par 1:{height} pixels",email:"Le champ {field} doit être une adresse e-mail valide",not_one_of:"Le champ {field} doit être une valeur valide",ext:"Le champ {field} doit être un fichier valide",image:"Le champ {field} doit être une image",integer:"Le champ {field} doit être un entier",length:"Le champ {field} doit contenir 0:{length} caractères",max_value:"Le champ {field} doit avoir une valeur de 0:{max} ou moins",max:"Le champ {field} ne peut pas contenir plus de 0:{length} caractères",mimes:"Le champ {field} doit avoir un type MIME valide",min_value:"Le champ {field} doit avoir une valeur de 0:{min} ou plus",min:"Le champ {field} doit contenir au minimum 0:{length} caractères",numeric:"Le champ {field} ne peut contenir que des chiffres",one_of:"Le champ {field} doit être une valeur valide",regex:"Le champ {field} est invalide",required:"Le champ {field} est obligatoire",required_if:"Le champ {field} est obligatoire lorsque {target} possède cette valeur",size:"Le champ {field} doit avoir un poids inférieur à 0:{size}KB"}},X7={code:"en",messages:{_default:"The {field} is not valid",alpha:"The {field} field may only contain alphabetic characters",alpha_num:"The {field} field may only contain alpha-numeric characters",alpha_dash:"The {field} field may contain alpha-numeric characters as well as dashes and underscores",alpha_spaces:"The {field} field may only contain alphabetic characters as well as spaces",between:"The {field} field must be between 0:{min} and 1:{max}",confirmed:"The {field} field confirmation does not match",digits:"The {field} field must be numeric and exactly contain 0:{length} digits",dimensions:"The {field} field must be 0:{width} pixels by 1:{height} pixels",email:"The {field} field must be a valid email",not_one_of:"The {field} field is not a valid value",ext:"The {field} field is not a valid file",image:"The {field} field must be an image",integer:"The {field} field must be an integer",length:"The {field} field must be 0:{length} long",max_value:"The {field} field must be 0:{max} or less",max:"The {field} field may not be greater than 0:{length} characters",mimes:"The {field} field must have a valid file type",min_value:"The {field} field must be 0:{min} or more",min:"The {field} field must be at least 0:{length} characters",numeric:"The {field} field may only contain numeric characters",one_of:"The {field} field is not a valid value",regex:"The {field} field format is invalid",required_if:"The {field} field is required",required:"The {field} field is required",size:"The {field} field size must be less than 0:{size}KB",url:"The {field} field is not a valid URL"}},J7={code:"es",messages:{alpha:"El campo {field} solo debe contener letras",alpha_dash:"El campo {field} solo debe contener letras, números y guiones",alpha_num:"El campo {field} solo debe contener letras y números",alpha_spaces:"El campo {field} solo debe contener letras y espacios",between:"El campo {field} debe estar entre 0:{min} y 1:{max}",confirmed:"El campo {field} no coincide",digits:"El campo {field} debe ser numérico y contener exactamente 0:{length} dígitos",dimensions:"El campo {field} debe ser de 0:{width} píxeles por 1:{height} píxeles",email:"El campo {field} debe ser un correo electrónico válido",not_one_of:"El campo {field} debe ser un valor válido",ext:"El campo {field} debe ser un archivo válido",image:"El campo {field} debe ser una imagen",one_of:"El campo {field} debe ser un valor válido",integer:"El campo {field} debe ser un entero",length:"El largo del campo {field} debe ser 0:{length}",max:"El campo {field} no debe ser mayor a 0:{length} caracteres",max_value:"El campo {field} debe de ser 0:{max} o menor",mimes:"El campo {field} debe ser un tipo de archivo válido",min:"El campo {field} debe tener al menos 0:{length} caracteres",min_value:"El campo {field} debe ser 0:{min} o superior",numeric:"El campo {field} debe contener solo caracteres numéricos",regex:"El formato del campo {field} no es válido",required:"El campo {field} es obligatorio",required_if:"El campo {field} es obligatorio",size:"El campo {field} debe ser menor a 0:{size}KB"}},Z7={code:"de",messages:{_default:"{field} ist ungültig",alpha:"{field} darf nur alphabetische Zeichen enthalten",alpha_dash:"{field} darf alphanumerische Zeichen sowie Striche und Unterstriche enthalten",alpha_num:"{field} darf nur alphanumerische Zeichen enthalten",alpha_spaces:"{field} darf nur alphanumerische Zeichen und Leerzeichen enthalten",between:"{field} muss zwischen 0:{min} und 1:{max} liegen",confirmed:"Die Bestätigung von {field} stimmt nicht überein",digits:"{field} muss numerisch sein und exakt 0:{length} Ziffern enthalten",dimensions:"{field} muss 0:{width} x 1:{height} Bildpunkte groß sein",email:"{field} muss eine gültige E-Mail-Adresse sein",not_one_of:"{field} muss ein gültiger Wert sein",ext:"{field} muss eine gültige Datei sein",image:"{field} muss eine Grafik sein",one_of:"{field} muss ein gültiger Wert sein",integer:"{field} muss eine ganze Zahl sein",length:"Die Länge von {field} muss 0:{length} sein",max:"{field} darf nicht länger als 0:{length} Zeichen sein",max_value:"{field} darf maximal 0:{max} sein",mimes:"{field} muss einen gültigen Dateityp haben",min:"{field} muss mindestens 0:{length} Zeichen lang sein",min_value:"{field} muss mindestens 0:{min} sein",numeric:"{field} darf nur numerische Zeichen enthalten",regex:"Das Format von {field} ist ungültig",required:"{field} ist ein Pflichtfeld",required_if:"{field} ist ein Pflichtfeld",size:"{field} muss kleiner als 0:{size}KB sein",url:"{field} ist keine gültige URL"}},Q7={code:"nl",messages:{_default:"{field} is ongeldig",alpha:"{field} mag alleen letters bevatten",alpha_dash:"{field} mag alleen letters, nummers, en streepjes bevatten",alpha_num:"{field} mag alleen letters en nummers bevatten",alpha_spaces:"{field} mag alleen letters en spaties bevatten",between:"{field} moet tussen 0:{min} en 1:{max} liggen",confirmed:"{field} bevestiging komt niet overeen",digits:"{field} moet een nummer zijn en exact 0:{length} tekens bevatten",dimensions:"{field} moet 0:{width} pixels breed zijn en 1:{height} pixels hoog",email:"{field} moet een geldig e-mailadres zijn",not_one_of:"{field} is ongeldig",ext:"{field} moet een geldig bestand zijn",image:"{field} moet een afbeelding zijn",one_of:"{field} moet een geldige waarde zijn",max:"{field} mag niet groter zijn dan 0:{length} karakters",max_value:"{field} mag maximaal 0:{max} zijn",mimes:"{field} moet een geldig bestandstype hebben",min:"{field} moet minimaal 0:{length} karakters zijn",min_value:"{field} moet minimaal 0:{min} zijn",numeric:"{field} mag alleen nummers bevatten",regex:"{field} formaat is ongeldig",required:"{field} is verplicht",required_if:"{field} is verplicht",size:"{field} mag niet groter zijn dan 0:{size}KB"}},V7={code:"it",messages:{alpha:"Il campo {field} può contenere solo caratteri alfabetici",alpha_num:"Il campo {field} può contenere solo caratteri alfanumerici",alpha_dash:"Il campo {field} può contenere caratteri alfa-numerici così come lineette e trattini di sottolineatura",alpha_spaces:"Il campo {field} può contenere solo caratteri alfanumerici così come spazi",between:"Il campo {field} deve essere compreso tra 0:{min} e 1:{max}",confirmed:"Il campo {field} non corrisponde",digits:"Il campo {field} deve essere numerico e contenere esattamente 0:{length} cifre",dimensions:"Il campo {field} deve essere 0:{width} x 1:{height}",email:"Il campo {field} deve essere un indirizzo email valido",not_one_of:"Il campo {field} deve avere un valore valido",ext:"Il campo {field} deve essere un file valido",image:"Il campo {field} deve essere un'immagine",integer:"Il campo {field} deve essere un numero",is_not:"Il campo {field} non è valido",length:"La lunghezza del campo {field} deve essere 0:{length}",max_value:"Il campo {field} deve essere minore o uguale a 0:{max}",max:"Il campo {field} non può essere più lungo di 0:{length} caratteri",mimes:"Il campo {field} deve avere un tipo di file valido",min_value:"Il campo {field} deve essere maggiore o uguale a 0:{min}",min:"Il campo {field} deve avere almeno 0:{length} caratteri",numeric:"Il campo {field} può contenere solo caratteri numerici",one_of:"Il campo {field} deve avere un valore valido",regex:"Il campo {field} non ha un formato valido",required:"Il campo {field} è richiesto",required_if:"Il campo {field} è richiesto",size:"Il campo {field} deve essere inferiore a 0:{size}KB"}},eT={code:"pl",messages:{alpha:"Pole {field} może zawierać tylko litery",alpha_dash:"Pole {field} może zawierać litery, cyfry oraz myślnik lub podkreślnik",alpha_num:"Pole {field} może zawierać tylko litery i cyfry",alpha_spaces:"Pole {field} może zawierać tylko litery oraz spacje",between:"Pole {field} musi być pomiędzy 0:{min} oraz 1:{max}",confirmed:"Pole {field} nie zgadza się z polem potwierdzającym {target}",digits:"Pole {field} musi być liczbą i dokładnie 0:{length} cyfr",dimensions:"Obraz {field} musi być szeroki na 0:{width} pikseli i wysoki na 1:{height} pikseli",email:"Pole {field} musi być poprawnym adresem email",not_one_of:"Pole {field} musi być poprawną wartością",ext:"Plik {field} musi być poprawnym plikiem",image:"Pole {field} musi być obrazem",one_of:"Pole {field} musi być poprawną wartością",integer:"Pole {field} musi być liczbą całkowitą",length:"Pole {field} musi mieć długość 0:{length}",max:"Pole {field} nie może być dłuższe niż 0:{length}",max_value:"Pole {field} musi mieć maksymalną wartość 0:{max}",mimes:"Plik {field} musi posiadać poprawne rozszerzenie",min:"Pole {field} musi być długie na co najmniej 0:{length}",min_value:"Pole {field} musi mieć minimalną wartość 0:{min}",numeric:"Pole {field} może zawierać tylko cyfry",regex:"Format pola {field} jest nieodpowiedni",required:"Pole {field} jest wymagane",required_if:"Pole {field} jest wymagane",size:"Plik {field} musi być mniejszy niż 0:{size}KB"}},tT={code:"sl",messages:{_default:"Polje {field} ni veljavno",alpha:"Polje {field} lahko vsebuje le črkovne znake",alpha_dash:"Polje {field} lahko vsebuje le alfanumerične znake kot tudi vezaje in podčrtaje",alpha_num:"Polje {field} lahko vsebuje le alfanumerične znake",alpha_spaces:"Polje {field} lahko vsebuje le črkovne znake in presledke",between:"Polje {field} mora biti med 0:{min} in 1:{max}",confirmed:"Polje {field} se ne ujema",digits:"Vrednost polja {field} mora biti numerična in vsebovati natančno 0:{length} številk",dimensions:"Slika {field} mora biti široka 0:{width} slikovnih točk in visoka 1:{height} slikovnih točk",email:"Vrednost polja {field} mora biti ustrezen e-naslov",not_one_of:"Polje {field} mora biti ustrezne vrednosti",ext:"Datoteka polja {field} mora biti ustrezna",image:"Datoteka polja {field} mora biti slika",one_of:"Polje {field} mora biti ustrezne vrednosti",integer:"Polje {field} mora biti celo število",is:"Vrednost polja {field} se ne ujema",is_not:"Polje {field} vsebuje neveljavno vrednost",length:"Polje {field} mora biti dolgo 0:{length}",max:"Dolžina polja {field} ne sme biti večja od 0:{length} znakov",max_value:"Vrednost polja {field} mora biti 0:{max} ali manj",mimes:"Datoteka polja {field} mora biti ustreznega tipa",min:"Dolžina polja {field} mora biti vsaj 0:{length} znakov",min_value:"Vrednost polja {field} mora biti 0:{min} ali več",numeric:"Polje {field} lahko vsebuje le numerične znake",regex:"Vrednost polja {field} ni v ustreznem formatu",required:"Polje {field} je obvezno",required_if:"Polje {field} je obvezno",size:"Velikost datoteke {field} mora biti manjša kot 0:{size}KB",url:"Polje {field} ni veljaven URL"}},nT={code:"bg",messages:{alpha:"Полето {field} може да съдържа само азбучни знаци",alpha_num:"Полето {field} може да съдържа само буквено-цифрови символи",alpha_dash:"Полето {field} може да съдържа буквено-цифрови знаци, както и тирета и долни черти",alpha_spaces:"Полето {field} може да съдържа само азбучни знаци, както и интервали",between:"Полето {field} може да е между 0:{min} и 1:{max}",confirmed:"Потвърждението не съвпада за полето {field}",digits:"Полето {field} трябва да е цифрово и да съдържа точно 0:{length} цифри",dimensions:"Полето {field} трябва да е 0:{width} пиксела по 1:{height} пиксела",email:"Полето {field} трябва да е коректен Email адрес",not_one_of:"Полето {field} трябва да е с валидна стойност",ext:"Полето {field} трябва да е валиден файл",image:"Полето {field} трябва да е снимка",integer:"Полето {field} трябва да е цяло число",length:"Полето {field} трябва да е с дължилна 0:{length} знака",max_value:"Полето {field} трябва да бъде 0:{max} или по-малко",max:"Полето {field} не може да бъде по-голямо от 0:{length} знака",mimes:"Полето {field} трябва да е валиден тип файл",min_value:"Полето {field} трябва да бъде минимум 0:{min} или повече",min:"Полето {field} трябва да съдържа минимум 0:{length} символа",numeric:"Полето {field} може да съдържа само цифри",one_of:"Полето {field} трябва да е валидна стойност",regex:"Полето {field} съдържа невалиден формат",required:"Полето {field} е задължително",required_if:"Полето {field} е задължително",size:"Размерът на файла за полето {field} трябва да е под 0:{size}KB"}},rT={code:"ro",messages:{alpha:"Câmpul {field} poate conține doar literele alfabetului",alpha_dash:"Câmpul {field} poate conține litere și caracterele '-' sau '_'",alpha_num:"Câmpul {field} poate conține doar caractere alfanumerice",alpha_spaces:"Câmpul {field} poate conține literele și spații",between:"Valoare câmpului {field} trebuie să fie între 0:{min} și 1:{max}",confirmed:"Câmpul {field} nu coincide",digits:"Câmpul {field} trebuie să fie numeric și să conțină exact 0:{length} caractere",dimensions:"Câmpul {field} trebuie să fie 0:{width} pixeli lungime și 1:{height} pixeli înălțime",email:"Câmpul {field} trebuie să conțină un email valid",not_one_of:"Câmpul {field} trebuie să conțină o valoare validă",ext:"Câmpul {field} trebuie să fie un nume de fișier valid",image:"Câmpul {field} trebuie să fie o imagine",one_of:"Câmpul {field} trebuie să conțină o valoare validă",max:"Câmpul {field} nu poate conține mai mult de 0:{length} caractere",max_value:"Valoarea câmpului {field} trebuie să fie maxim 0:{max}",mimes:"Câmpul {field} trebuie să conțină un fișier cu extensie validă",min:"Câmpul {field} trebuie să conțină cel puțin 0:{length} caractere",min_value:"Valoarea câmpului {field} trebuie să fie mai mare de 0:{min}",numeric:"Câmpul {field} poate conține doar valori numerice",regex:"Formatul câmpului {field} este invalid",required:"Câmpul {field} este obligatoriu",required_if:"Câmpul {field} este obligatoriu",size:"Câmpul {field} nu trebuie să depășească 0:{size}KB"}},oT={code:"el",messages:{alpha:"{field} πρέπει να περιέχει μόνο αλφαβητικούς χαρακτήρες",alpha_num:"{field} πρέπει να περιέχει μόνο αλφαριθμητικούς χαρακτήρες",alpha_dash:"{field} μπορεί να περιέχει αλφαριθμητικούς χαρακτήρες, παύλες και κάτω παύλες",alpha_spaces:"{field} μπορεί να περιέχει μόνο αλφαβητικούς χαρακτήρες και κενά",between:"{field} πρέπει να είναι μεταξύ 0:{min} καί 1:{max}",confirmed:"{field} δεν ταιριάζει με {target}",digits:"{field} πρέπει να είναι αριθμός και να περιέχει 0:{length} ψηφία",dimensions:"{field} πρέπει να είναι 0:{width} pixels επί 1:{height} pixels",email:"{field} πρέπει να είναι έγκυρο email",not_one_of:"{field} πρέπει να είναι έγκυρη τιμή",ext:"{field} πρέπει να είναι έγκυρο αρχείο",image:"{field} πρέπει να είναι εικόνα",integer:"{field} πρέπει να είναι ακέραιος αριθμός",length:"{field} πρέπει να είναι 0:{length} χαρακτήρες",max_value:"{field} πρέπει να είναι 0:{max} ή λιγότερο",max:"{field} δεν πρέπει να υπερβαίνει τους 0:{length} χαρακτήρες",mimes:"{field} πρέπει να είναι έγκυρο αρχείο ΜΙΜΕ",min_value:"{field} πρέπει να είναι 0:{min} ή περισσότερο",min:"{field} πρέπει να είναι τουλάχιστον 0:{length} χαρακτήρες",numeric:"{field} πρέπει να περιέχει μόνο αριθμούς",one_of:"{field} πρέπει να είναι έγκυρη τιμή",regex:"{field} δεν είναι έγκυρο",required:"{field} δεν έχει συμπληρωθεί",required_if:"{field} δεν έχει συμπληρωθεί",size:"{field} πρέπει να μην υπερβαίνει τα 0:{size}KB"}},iT={code:"pt_PT",messages:{alpha:"O campo {field} deve conter somente letras",alpha_dash:"O campo {field} deve conter letras, números e traços",alpha_num:"O campo {field} deve conter somente letras e números",alpha_spaces:"O {field} só pode conter caracteres alfabéticos e espaços",between:"O campo {field} deve estar entre 0:{min} e 1:{max}",confirmed:"A confirmação do campo {field} deve ser igual",digits:"O campo {field} deve ser numérico e ter 0:{length} dígitos",dimensions:"O campo {field} deve ter 0:{width} pixels de largura por 1:{height} pixels de altura",email:"O campo {field} deve ser um email válido",integer:"O campo {field} deve ser um número inteiro",not_one_of:"O campo {field} deve ser um valor válido",ext:"O campo {field} deve ser um ficheiro válido",image:"O campo {field} deve ser uma imagem",is:"O valor inserido no campo {field} não é válido",one_of:"O campo {field} deve ter um valor válido",max:"O campo {field} não deve ter mais que 0:{length} caracteres",max_value:"O campo {field} precisa ser 0:{max} ou menor",mimes:"O campo {field} deve ser um tipo de ficheiro válido",min:"O campo {field} deve conter pelo menos 0:{length} caracteres",min_value:"O campo {field} precisa ser 0:{min} ou maior",numeric:"O campo {field} deve conter apenas números",regex:"O campo {field} possui um formato inválido",required:"O campo {field} é obrigatório",required_if:"O campo {field} é obrigatório",size:"O campo {field} deve ser menor que 0:{size}KB",url:"O campo {field} deve ser uma URL válida"}};function g1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ql={exports:{}},sT=Ql.exports,y1;function aT(){return y1||(y1=1,(function(e,t){(function(n,r){e.exports=r()})(sT,(function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",a="minute",c="hour",d="day",f="week",u="month",p="quarter",m="year",_="date",y="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var z=["th","st","nd","rd"],B=x%100;return"["+x+(z[(B-20)%10]||z[B]||z[0])+"]"}},v=function(x,z,B){var F=String(x);return!F||F.length>=z?x:""+Array(z+1-F.length).join(B)+x},S={s:v,z:function(x){var z=-x.utcOffset(),B=Math.abs(z),F=Math.floor(B/60),M=B%60;return(z<=0?"+":"-")+v(F,2,"0")+":"+v(M,2,"0")},m:function x(z,B){if(z.date()<B.date())return-x(B,z);var F=12*(B.year()-z.year())+(B.month()-z.month()),M=z.clone().add(F,u),K=B-M<0,W=z.clone().add(F+(K?-1:1),u);return+(-(F+(B-M)/(K?M-W:W-M))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:u,y:m,w:f,d,D:_,h:c,m:a,s,ms:i,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},N="en",A={};A[N]=b;var $="$isDayjsObject",H=function(x){return x instanceof I||!(!x||!x[$])},q=function x(z,B,F){var M;if(!z)return N;if(typeof z=="string"){var K=z.toLowerCase();A[K]&&(M=K),B&&(A[K]=B,M=K);var W=z.split("-");if(!M&&W.length>1)return x(W[0])}else{var X=z.name;A[X]=z,M=X}return!F&&M&&(N=M),M||!F&&N},k=function(x,z){if(H(x))return x.clone();var B=typeof z=="object"?z:{};return B.date=x,B.args=arguments,new I(B)},O=S;O.l=q,O.i=H,O.w=function(x,z){return k(x,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var I=(function(){function x(B){this.$L=q(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[$]=!0}var z=x.prototype;return z.parse=function(B){this.$d=(function(F){var M=F.date,K=F.utc;if(M===null)return new Date(NaN);if(O.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var W=M.match(g);if(W){var X=W[2]-1||0,oe=(W[7]||"0").substring(0,3);return K?new Date(Date.UTC(W[1],X,W[3]||1,W[4]||0,W[5]||0,W[6]||0,oe)):new Date(W[1],X,W[3]||1,W[4]||0,W[5]||0,W[6]||0,oe)}}return new Date(M)})(B),this.init()},z.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},z.$utils=function(){return O},z.isValid=function(){return this.$d.toString()!==y},z.isSame=function(B,F){var M=k(B);return this.startOf(F)<=M&&M<=this.endOf(F)},z.isAfter=function(B,F){return k(B)<this.startOf(F)},z.isBefore=function(B,F){return this.endOf(F)<k(B)},z.$g=function(B,F,M){return O.u(B)?this[F]:this.set(M,B)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(B,F){var M=this,K=!!O.u(F)||F,W=O.p(B),X=function($e,Re){var He=O.w(M.$u?Date.UTC(M.$y,Re,$e):new Date(M.$y,Re,$e),M);return K?He:He.endOf(d)},oe=function($e,Re){return O.w(M.toDate()[$e].apply(M.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(Re)),M)},ce=this.$W,ne=this.$M,ke=this.$D,J="set"+(this.$u?"UTC":"");switch(W){case m:return K?X(1,0):X(31,11);case u:return K?X(1,ne):X(0,ne+1);case f:var de=this.$locale().weekStart||0,ve=(ce<de?ce+7:ce)-de;return X(K?ke-ve:ke+(6-ve),ne);case d:case _:return oe(J+"Hours",0);case c:return oe(J+"Minutes",1);case a:return oe(J+"Seconds",2);case s:return oe(J+"Milliseconds",3);default:return this.clone()}},z.endOf=function(B){return this.startOf(B,!1)},z.$set=function(B,F){var M,K=O.p(B),W="set"+(this.$u?"UTC":""),X=(M={},M[d]=W+"Date",M[_]=W+"Date",M[u]=W+"Month",M[m]=W+"FullYear",M[c]=W+"Hours",M[a]=W+"Minutes",M[s]=W+"Seconds",M[i]=W+"Milliseconds",M)[K],oe=K===d?this.$D+(F-this.$W):F;if(K===u||K===m){var ce=this.clone().set(_,1);ce.$d[X](oe),ce.init(),this.$d=ce.set(_,Math.min(this.$D,ce.daysInMonth())).$d}else X&&this.$d[X](oe);return this.init(),this},z.set=function(B,F){return this.clone().$set(B,F)},z.get=function(B){return this[O.p(B)]()},z.add=function(B,F){var M,K=this;B=Number(B);var W=O.p(F),X=function(ne){var ke=k(K);return O.w(ke.date(ke.date()+Math.round(ne*B)),K)};if(W===u)return this.set(u,this.$M+B);if(W===m)return this.set(m,this.$y+B);if(W===d)return X(1);if(W===f)return X(7);var oe=(M={},M[a]=r,M[c]=o,M[s]=n,M)[W]||1,ce=this.$d.getTime()+B*oe;return O.w(ce,this)},z.subtract=function(B,F){return this.add(-1*B,F)},z.format=function(B){var F=this,M=this.$locale();if(!this.isValid())return M.invalidDate||y;var K=B||"YYYY-MM-DDTHH:mm:ssZ",W=O.z(this),X=this.$H,oe=this.$m,ce=this.$M,ne=M.weekdays,ke=M.months,J=M.meridiem,de=function(Re,He,Ce,We){return Re&&(Re[He]||Re(F,K))||Ce[He].slice(0,We)},ve=function(Re){return O.s(X%12||12,Re,"0")},$e=J||function(Re,He,Ce){var We=Re<12?"AM":"PM";return Ce?We.toLowerCase():We};return K.replace(h,(function(Re,He){return He||(function(Ce){switch(Ce){case"YY":return String(F.$y).slice(-2);case"YYYY":return O.s(F.$y,4,"0");case"M":return ce+1;case"MM":return O.s(ce+1,2,"0");case"MMM":return de(M.monthsShort,ce,ke,3);case"MMMM":return de(ke,ce);case"D":return F.$D;case"DD":return O.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return de(M.weekdaysMin,F.$W,ne,2);case"ddd":return de(M.weekdaysShort,F.$W,ne,3);case"dddd":return ne[F.$W];case"H":return String(X);case"HH":return O.s(X,2,"0");case"h":return ve(1);case"hh":return ve(2);case"a":return $e(X,oe,!0);case"A":return $e(X,oe,!1);case"m":return String(oe);case"mm":return O.s(oe,2,"0");case"s":return String(F.$s);case"ss":return O.s(F.$s,2,"0");case"SSS":return O.s(F.$ms,3,"0");case"Z":return W}return null})(Re)||W.replace(":","")}))},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(B,F,M){var K,W=this,X=O.p(F),oe=k(B),ce=(oe.utcOffset()-this.utcOffset())*r,ne=this-oe,ke=function(){return O.m(W,oe)};switch(X){case m:K=ke()/12;break;case u:K=ke();break;case p:K=ke()/3;break;case f:K=(ne-ce)/6048e5;break;case d:K=(ne-ce)/864e5;break;case c:K=ne/o;break;case a:K=ne/r;break;case s:K=ne/n;break;default:K=ne}return M?K:O.a(K)},z.daysInMonth=function(){return this.endOf(u).$D},z.$locale=function(){return A[this.$L]},z.locale=function(B,F){if(!B)return this.$L;var M=this.clone(),K=q(B,F,!0);return K&&(M.$L=K),M},z.clone=function(){return O.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},x})(),D=I.prototype;return k.prototype=D,[["$ms",i],["$s",s],["$m",a],["$H",c],["$W",d],["$M",u],["$y",m],["$D",_]].forEach((function(x){D[x[1]]=function(z){return this.$g(z,x[0],x[1])}})),k.extend=function(x,z){return x.$i||(x(z,I,k),x.$i=!0),k},k.locale=q,k.isDayjs=H,k.unix=function(x){return k(1e3*x)},k.en=A[N],k.Ls=A,k.p={},k}))})(Ql)),Ql.exports}var lT=aT();const sn=g1(lT);var Vl={exports:{}},cT=Vl.exports,b1;function dT(){return b1||(b1=1,(function(e,t){(function(n,r){e.exports=r()})(cT,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,c={},d=function(g){return(g=+g)+(g>68?1900:2e3)},f=function(g){return function(h){this[g]=+h}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(h){if(!h||h==="Z")return 0;var b=h.match(/([+-]|\d\d)/g),v=60*b[1]+(+b[2]||0);return v===0?0:b[0]==="+"?-v:v})(g)}],p=function(g){var h=c[g];return h&&(h.indexOf?h:h.s.concat(h.f))},m=function(g,h){var b,v=c.meridiem;if(v){for(var S=1;S<=24;S+=1)if(g.indexOf(v(S,0,h))>-1){b=S>12;break}}else b=g===(h?"pm":"PM");return b},_={A:[a,function(g){this.afternoon=m(g,!1)}],a:[a,function(g){this.afternoon=m(g,!0)}],Q:[o,function(g){this.month=3*(g-1)+1}],S:[o,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[s,f("seconds")],ss:[s,f("seconds")],m:[s,f("minutes")],mm:[s,f("minutes")],H:[s,f("hours")],h:[s,f("hours")],HH:[s,f("hours")],hh:[s,f("hours")],D:[s,f("day")],DD:[i,f("day")],Do:[a,function(g){var h=c.ordinal,b=g.match(/\d+/);if(this.day=b[0],h)for(var v=1;v<=31;v+=1)h(v).replace(/\[|\]/g,"")===g&&(this.day=v)}],w:[s,f("week")],ww:[i,f("week")],M:[s,f("month")],MM:[i,f("month")],MMM:[a,function(g){var h=p("months"),b=(p("monthsShort")||h.map((function(v){return v.slice(0,3)}))).indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[a,function(g){var h=p("months").indexOf(g)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,f("year")],YY:[i,function(g){this.year=d(g)}],YYYY:[/\d{4}/,f("year")],Z:u,ZZ:u};function y(g){var h,b;h=g,b=c&&c.formats;for(var v=(g=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(k,O,I){var D=I&&I.toUpperCase();return O||b[I]||n[I]||b[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,z,B){return z||B.slice(1)}))}))).match(r),S=v.length,N=0;N<S;N+=1){var A=v[N],$=_[A],H=$&&$[0],q=$&&$[1];v[N]=q?{regex:H,parser:q}:A.replace(/^\[|\]$/g,"")}return function(k){for(var O={},I=0,D=0;I<S;I+=1){var x=v[I];if(typeof x=="string")D+=x.length;else{var z=x.regex,B=x.parser,F=k.slice(D),M=z.exec(F)[0];B.call(O,M),k=k.replace(M,"")}}return(function(K){var W=K.afternoon;if(W!==void 0){var X=K.hours;W?X<12&&(K.hours+=12):X===12&&(K.hours=0),delete K.afternoon}})(O),O}}return function(g,h,b){b.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(d=g.parseTwoDigitYear);var v=h.prototype,S=v.parse;v.parse=function(N){var A=N.date,$=N.utc,H=N.args;this.$u=$;var q=H[1];if(typeof q=="string"){var k=H[2]===!0,O=H[3]===!0,I=k||O,D=H[2];O&&(D=H[2]),c=this.$locale(),!k&&D&&(c=b.Ls[D]),this.$d=(function(F,M,K,W){try{if(["x","X"].indexOf(M)>-1)return new Date((M==="X"?1e3:1)*F);var X=y(M)(F),oe=X.year,ce=X.month,ne=X.day,ke=X.hours,J=X.minutes,de=X.seconds,ve=X.milliseconds,$e=X.zone,Re=X.week,He=new Date,Ce=ne||(oe||ce?1:He.getDate()),We=oe||He.getFullYear(),be=0;oe&&!ce||(be=ce>0?ce-1:He.getMonth());var Fe,se=ke||0,Ge=J||0,E=de||0,T=ve||0;return $e?new Date(Date.UTC(We,be,Ce,se,Ge,E,T+60*$e.offset*1e3)):K?new Date(Date.UTC(We,be,Ce,se,Ge,E,T)):(Fe=new Date(We,be,Ce,se,Ge,E,T),Re&&(Fe=W(Fe).week(Re).toDate()),Fe)}catch{return new Date("")}})(A,q,$,b),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),I&&A!=this.format(q)&&(this.$d=new Date("")),c={}}else if(q instanceof Array)for(var x=q.length,z=1;z<=x;z+=1){H[1]=q[z-1];var B=b.apply(this,H);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}z===x&&(this.$d=new Date(""))}else S.call(this,N)}}}))})(Vl)),Vl.exports}var uT=dT();const fT=g1(uT),v1={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6],0,0,0,0,0,0,0,[["6[2-467]\\d{3}",[5]],["4\\d{4}",[5]],0,0,0,0,["(?:0[1-9]|[1589]\\d)\\d{4}",[6]]]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[["[78]\\d{5}",[6]],["690\\d{6}|[356]\\d{5}",[6,9]],["180[02]\\d{4}",[8]],["[19]\\d{5}",[6]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0",0,0,0,0,0,[["[2-4679][2-8]\\d{6}",[8]],["5[02-68]\\d{7}",[9]],["400\\d{6}|800\\d{2,9}"],["900[02]\\d{5}",[9]],0,0,["600[25]\\d{5}",[9]],0,0,["700[05]\\d{5}",[9]]]],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0",0,0,0,0,0,[["(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]\\d{6}"],["7\\d{8}"]]],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268",[["268(?:4(?:6[0-38]|84)|56[0-2])\\d{4}"],["268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,0,["26840[69]\\d{4}"],["26848[01]\\d{4}"]]],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264",[["264(?:292|4(?:6[12]|9[78]))\\d{4}"],["264(?:235|4(?:69|76)|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,0,["264724\\d{4}"]]],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0",0,0,0,0,0,[["4505[0-2]\\d{3}|(?:[2358][16-9]\\d[2-9]|4410)\\d{4}|(?:[2358][2-5][2-9]|4(?:[2-57-9][2-9]|6\\d))\\d{5}",[8]],["6(?:[78][2-9]|9\\d)\\d{6}",[9]],["800\\d{4}",[7]],["900[1-9]\\d\\d",[6]],["700[2-9]\\d{4}",[8]],0,0,0,0,["808[1-9]\\d\\d",[6]]]],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:1[0-25]|47)\\d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2)\\d{5}"],["(?:33|4[1349]|55|77|88|9[13-9])\\d{6}"],["800\\d{5}"],["90[016]\\d{5}"],0,0,0,0,["60(?:2[78]|3[5-9]|4[02-9]|5[0-46-9]|[6-8]\\d|9[0-2])\\d{4}"],["80[1-4]\\d{5}"]]],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]],0,0,0,0,0,0,[["2\\d(?:[0134][25-9]|[25-9]\\d)\\d{5}"],["9[1-79]\\d{7}"]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1",0,0,[["3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|47[35]|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:657|9(?:54|66))|3(?:48[27]|7(?:55|77)|8(?:65|78)))[2-8]\\d{5}|(?:2(?:284|3(?:02|23)|477|622|920)|3(?:4(?:46|89|92)|541))[2-7]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[25][4-6]|3[3-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|1[2-7]|3[4-6]|5[3-6]|7[2-6]|8[3-68])))\\d{6}|(?:2(?:2(?:62|81)|320|9(?:42|83))|3(?:329|4(?:62|7[16])|5(?:43|64)|7(?:18|5[17])))[2-6]\\d{5}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:257|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|64)|5(?:25|37|4[47]|71)|7(?:35|72)|825))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[035-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[14]|4[13]|5[468]|7[3-5]|8[26])|8(?:2[67]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",[10]],["93(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|47[35]|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:657|9(?:54|66))|3(?:48[27]|7(?:55|77)|8(?:65|78)))[2-8]\\d{5}|9(?:2(?:284|3(?:02|23)|477|622|920)|3(?:4(?:46|89|92)|541))[2-7]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[25][4-6]|3[3-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|1[2-7]|3[4-6]|5[3-6]|7[2-6]|8[3-68]))))\\d{6}|9(?:2(?:2(?:62|81)|320|9(?:42|83))|3(?:329|4(?:62|7[16])|5(?:43|64)|7(?:18|5[17])))[2-6]\\d{5}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:257|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|64)|5(?:25|37|4[47]|71)|7(?:35|72)|825))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[035-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[14]|4[13]|5[468]|7[3-5]|8[26])|8(?:2[67]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}"],["800\\d{7,8}"],["60[04579]\\d{7}",[10]],0,0,["810\\d{7}",[10]]]],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684",[["684(?:274|6(?:22|33|44|55|77|88|9[19]))\\d{4}"],["684(?:2(?:48|5[2468]|7[246])|7(?:3[13]|70|82))\\d{4}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],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]]]],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,[["(?:(?:241|349)0\\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])|[34]\\d\\d)|91(?:(?:[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}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]],0,0,0,0,0,0,[["5(?:2\\d|8[1-9])\\d{4}"],["(?:290|5[69]\\d|6(?:[03]0|22|4[0-2]|[69]\\d)|7(?:[34]\\d|7[07])|9(?:6[45]|9[4-8]))\\d{4}"],["800\\d{4}"],["900\\d{4}"],0,0,0,0,["(?:28\\d|501)\\d{4}"]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",[["18[1-8]\\d{3,6}",[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}|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"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:2[12]428|3655[02])\\d{4}|(?:2(?:22[0-79]|63[0-28])|3654)\\d{5}|(?:(?:1[28]|46)\\d|2(?:[014-6]2|[23]3))\\d{6}"],["36554\\d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)\\d{7}"],["88\\d{7}"],["900200\\d{3}"]]],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0",0,0,0,0,0,[["(?:3(?:[05-79][2-9]|1[4579]|[23][24-9]|4[2-4689]|8[2457-9])|49[2-579]|5(?:0[2-49]|[13][2-9]|[268][2-4679]|4[4689]|5[2-79]|7[2-69]|9[2-4689]))\\d{5}",[8]],["6040\\d{5}|6(?:03|[1-356]|44|7\\d)\\d{6}"],["8[08]\\d{6}",[8]],["9[0246]\\d{6}",[8]],0,0,["703[235]0\\d{3}|70(?:2[0-5]|3[0146]|[56]0)\\d{4}",[8]],0,0,["8[12]\\d{6}",[8]]]],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246",[["246521[0369]\\d{3}|246(?:2(?:2[78]|7[0-4])|4(?:1[024-6]|2\\d|3[2-9])|5(?:20|[34]\\d|54|7[1-3])|6(?:2\\d|38)|7[35]7|9(?:1[89]|63))\\d{4}"],["246(?:(?:2(?:[3568]\\d|4[0-57-9])|3(?:5[2-9]|6[0-6])|4(?:46|5\\d)|69[5-7]|8(?:[2-5]\\d|83))\\d|52(?:1[147]|20))\\d{3}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["(?:246976|900[2-9]\\d\\d)\\d{4}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,["246(?:292|367|4(?:1[7-9]|3[01]|4[47-9]|67)|7(?:1[2-9]|2\\d|3[016]|53))\\d{4}"],0,["24631\\d{5}"]]],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0",0,0,0,0,0,[["(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:[23]\\d|[45])\\d\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}"],["(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}",[10]],["80[03]\\d{7}",[10]],0,0,0,0,0,["96(?:0[469]|1[0-47]|3[389]|43|6[69]|7[78])\\d{6}",[10]]]],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]]]],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]],0,0,0,0,0,0,[["2(?:0(?:49|5[23]|6[5-7]|9[016-9])|4(?:4[569]|5[4-6]|6[5-7]|7[0179])|5(?:[34]\\d|50|6[5-7]))\\d{4}"],["(?:0[1-7]|4[4-6]|5[0-8]|[67]\\d)\\d{6}"]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0",0,0,0,0,0,[["2\\d{5,7}|(?:43[1-6]|70[1-9])\\d{4,5}|(?:[36]\\d|4[124-7]|[57][1-9]|8[1-6]|9[1-7])\\d{5,6}",[6,7,8]],["(?:43[07-9]|99[69]\\d)\\d{5}|(?:8[7-9]|98)\\d{7}",[8,9]],["(?:00800\\d\\d|800)\\d{5}",[8,12]],["90\\d{6}",[8]],0,0,0,0,0,["700\\d{5}",[8]]]],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]],0,0,0,0,0,0,[["(?:1(?:3[1356]|6[0156]|7\\d)\\d|6(?:1[16]\\d|500|6(?:0\\d|3[12]|44|55|7[7-9]|88)|9[69][69])|7(?:[07]\\d\\d|1(?:11|78)))\\d{4}"],["(?:3(?:[0-79]\\d|8[0-57-9])\\d|6(?:3(?:00|33|6[16])|441|6(?:3[03-9]|[69]\\d|7[0-689])))\\d{4}"],["8[02369]\\d{6}"],["(?:87|9[0-8])\\d{6}"],0,0,0,0,0,["84\\d{6}"]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]],0,0,0,0,0,0,[["(?:22|31)\\d{6}"],["(?:29|6[1-9]|7[125-9])\\d{6}"]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]],0,0,0,0,0,0,[["012\\d{7}",[10]],["01(?:2[5-9]|[4-69]\\d)\\d{6}",[10]],0,0,0,0,["81\\d{6}",[8]],0,["857[58]\\d{4}",[8]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441",[["441(?:[46]\\d\\d|5(?:4\\d|60|89))\\d{4}"],["441(?:[2378]\\d|5[0-39]|9[02])\\d{5}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]],0,0,0,0,0,0,[["22[0-7]\\d{4}|(?:2[013-9]|[34]\\d|5[0-25-9])\\d{5}"],["(?:22[89]|[78]\\d\\d)\\d{4}"],0,0,0,0,0,0,["5[34]\\d{5}"]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?",0,0,0,[["(?:2(?:2\\d\\d|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d\\d|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:[27]\\d|3[2-4]|4[248]|5[24]|6[2-6]))|4(?:4\\d\\d|6(?:11|[24689]\\d|72)))\\d{4}",[8]],["[67]\\d{7}",[8]],["8001[07]\\d{4}",[9]],0,0,0,0,0,["50\\d{6}",[8]]]],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]",[["(?:318[023]|41(?:6[023]|70)|7(?:1[578]|2[05]|50)\\d)\\d{3}"],["(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8\\d|9[056])\\d)\\d{3}"]]],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2",0,0,[["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}",[10]],["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9\\d)\\d{7}",[10,11]],["800\\d{6,7}",[9,10]],["[59]00\\d{6,7}",[9,10]],0,0,0,0,0,["(?:30[03]\\d{3}|4(?:0(?:0\\d|20)|370|864))\\d{4}|300\\d{5}",[8,10]]]],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242",[["242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[347]|8[0-4]|9[2-467])|461|502|6(?:0[1-5]|12|2[013]|[45]0|7[67]|8[78]|9[89])|7(?:02|88))\\d{4}"],["242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|3[0-4]|[89]9))\\d{4}"],["242300\\d{4}|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]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,["242225\\d{4}"]]],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]],0,0,0,0,0,0,[["(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}",[7]],["(?:1[67]|[78]7)\\d{6}",[8]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013]|81)|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[013467]))\\d{4}",[7]],["(?:321|7(?:[1-8]\\d|9[03]))\\d{5}",[8]],["(?:0800|800\\d)\\d{6}",[10]],["90\\d{5}",[7]],0,0,0,0,["79(?:1(?:[0-2]\\d|3[0-8])|2[0-7]\\d)\\d{3}",[8]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,[["(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d\\d)|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}",[9]],["(?:2(?:5[5-79]|9[1-9])|(?:33|44)\\d)\\d{6}",[9]],["800\\d{3,7}|8(?:0[13]|20\\d)\\d{7}"],["(?:810|902)\\d{7}",[10]],0,0,0,0,["249\\d{6}",[9]]],"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]],0,0,0,0,0,0,[["(?:2(?:[02]\\d|36|[68]0)|[3-58](?:[02]\\d|[68]0)|7(?:[02]\\d|32|[68]0))\\d{4}",[7]],["6[0-35-7]\\d{5}",[7]],["0800\\d{7}",[11]]]],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|5[07]|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]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["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"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:12|573)\\d\\d|276)\\d{5}|[1-6]\\d{6}"],["88\\d{5}|(?:8[0-69]|9[016-9])\\d{7}",[7,9]]]],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]],0,0,0,0,0,0,[["(?:2[12]|61)\\d{6}"],["7[02-7]\\d{6}"],0,["8776\\d{4}"]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]],0,0,0,0,0,0,[["222[1-589]\\d{5}"],["026(?:1[0-5]|6[6-9])\\d{4}|0(?:[14-6]\\d\\d|2(?:40|5[5-8]|6[07-9]))\\d{5}"],0,["80[0-2]\\d{6}"]]],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]]]],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]],0,0,0,0,0,0,[["2(?:[15]\\d{3}|7(?:2(?:0[23]|1[2357]|2[245]|3[45]|4[3-5])|3(?:06|1[69]|[2-6]7)))\\d{5}"],["0[157]\\d{8}"]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]],0,0,0,0,0,0,[["(?:2\\d|3[13-7]|4[1-5])\\d{3}"],["[578]\\d{4}"]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]],0,0,0,0,0,0,[["2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:(?:2\\d|50)\\d|3(?:[034679]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-389])|600)|646[59])|(?:600|80[1-9])\\d\\d|9(?:(?:10[0-2]|7[1-9]\\d)\\d|3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",[9]],["2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:(?:2\\d|50)\\d|3(?:[034679]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-389])|600)|646[59])|80[1-8]\\d\\d|9(?:(?:10[0-2]|7[1-9]\\d)\\d|3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",[9]],["(?:123|8)00\\d{6}",[9,11]],0,0,0,0,0,["44\\d{7}",[9]],["600\\d{7,8}",[10,11]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]],0,0,0,0,0,0,[["2(?:22|33)\\d{6}",[9]],["(?:24[23]|6(?:[25-9]\\d|4[01]))\\d{6}",[9]],["88\\d{6,7}"]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,[["(?:10(?:[02-79]\\d\\d|[18](?:0[1-9]|[1-9]\\d))|2(?:[02-57-9]\\d{3}|1(?:[18](?:0[1-9]|[1-9]\\d)|[2-79]\\d\\d))|(?:41[03]|8078|9(?:78|94))\\d\\d)\\d{5}|(?:10|2[0-57-9])(?:1(?:00|23)\\d\\d|95\\d{3,4})|(?:41[03]|9(?:78|94))(?:100\\d\\d|95\\d{3,4})|8078123|(?:43[35]|754|851)\\d{7,8}|(?:43[35]|754|851)(?:1(?:00\\d|23)\\d|95\\d{3,4})|(?:3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1\\d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[57]|6[09])|8(?:71|98))(?:[02-8]\\d{7}|1(?:0(?:0\\d\\d(?:\\d{3})?|[1-9]\\d{5})|[13-9]\\d{6}|2(?:[0-24-9]\\d{5}|3\\d(?:\\d{4})?))|9(?:[0-46-9]\\d{6}|5\\d{3}(?:\\d(?:\\d{2})?)?))|(?:3(?:1[02-9]|35|49|5\\d|7[02-68]|9[1-68])|4(?:1[24-9]|2[179]|3[46-9]|5[2-9]|6[47-9]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]\\d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3\\d|5[2-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))(?:[02-8]\\d{6}|1(?:0(?:0\\d\\d(?:\\d{2})?|[1-9]\\d{4})|[13-9]\\d{5}|2(?:[0-24-9]\\d{4}|3\\d(?:\\d{3})?))|9(?:[0-46-9]\\d{5}|5\\d{3,5}))",[7,8,9,10,11]],["1740[0-5]\\d{6}|1(?:[38]\\d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])\\d{8}",[11]],["(?:(?:10|21)8|8)00\\d{7}",[10,12]],["16[08]\\d{5}",[8]],0,0,0,0,0,["10(?:10\\d{4}|96\\d{3,4})|400\\d{7}|950\\d{7,8}|(?:2[0-57-9]|3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))96\\d{3,4}",[7,8,9,10,11]]],"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?",0,0,0,[["601055(?:[0-4]\\d|50)\\d\\d|6010(?:[0-4]\\d|5[0-4])\\d{4}|(?:46|60(?:[18][1-9]|[24-7][2-9]))\\d{6}",[8,10]],["333301[0-5]\\d{3}|3333(?:00|2[5-9]|[3-9]\\d)\\d{4}|(?:3(?:(?:0[0-5]|1\\d|5[01]|70)\\d|2(?:[0-3]\\d|4[1-9])|3(?:00|3[0-24-9]))|9(?:101|408))\\d{6}",[10]],["1800\\d{7}",[11]],["(?:19(?:0[01]|4[78])|901)\\d{7}",[10,11]]]],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))",0,0,0,[["210[7-9]\\d{4}|2(?:[024-7]\\d|1[1-9])\\d{5}",[8]],["(?:3005\\d|6500[01])\\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\\d{6}",[8]],["800\\d{7}",[10]],["90[059]\\d{7}",[10]],0,0,0,0,["(?:210[0-6]|4\\d{3}|5100)\\d{4}",[8]]]],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:3[23]|4[89])\\d{4,6}|(?:31|4[36]|8(?:0[25]|78)\\d)\\d{6}|(?:2[1-4]|4[1257]|7\\d)\\d{5,6}"],["(?:5\\d|6[2-4])\\d{6}",[8]],["800\\d{7}",[10]],0,0,0,0,0,0,["807\\d{7}",[10]]]],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]],0,0,0,0,0,0,[["2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}"],["(?:36|5[1-389]|9\\d)\\d{5}"],["800\\d{4}"],0,0,0,0,0,["(?:3[3-5]|4[356])\\d{5}"]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]",[["9(?:4(?:3[0-5]|4[14]|6\\d)|50\\d|7(?:2[014]|3[02-9]|4[4-9]|6[357]|77|8[7-9])|8(?:3[39]|[46]\\d|7[01]|8[57-9]))\\d{4}"],["953[01]\\d{4}|9(?:5[12467]|6[5-9])\\d{5}"],0,0,0,0,0,["955\\d{5}",[8]],0,["60[0-2]\\d{4}",[7]]]],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["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"],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]],["7(?:060\\d|19(?:[0-5]\\d|6[0-6]))\\d{4}|(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}",[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})"],["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]|3[13])"],"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|3(?:10|33))|7[26-9]\\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]]]],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]],0,0,0,0,0,0,[["2(?:1[2-5]|7[45])\\d{5}"],["77\\d{6}"]]],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}"]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767",[["767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4])\\d{4}"],["767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])\\d{4}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9",[["8(?:[04]9[2-9]\\d\\d|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d\\d|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))\\d{4}"],["8[024]9[2-9]\\d{6}"],["800(?:14|[2-9]\\d)\\d{5}|8[024]9[01]\\d{6}|8(?: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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0",0,0,0,0,0,[["9619\\d{5}|(?:1\\d|2[013-79]|3[0-8]|4[013-689])\\d{6}"],["(?:5(?:4[0-29]|5\\d|6[0-3])|6(?:[569]\\d|7[0-6])|7[7-9]\\d)\\d{6}",[9]],["800\\d{6}",[9]],["80[3-689]1\\d{5}",[9]],0,0,0,0,["98[23]\\d{6}",[9]],["80[12]1\\d{5}",[9]]]],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["[2-7][2-7]\\d{6}",[8]],["964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}",[9]],["1800\\d{7}|1[78]00\\d{6}",[10,11]],0,0,0,0,0,["[2-7]890\\d{4}",[8]]]],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}",[7]],["(?:5\\d{5}|8(?:1(?:0(?:0(?:00|[178]\\d)|[3-9]\\d\\d)|(?:1(?:0[2-6]|1\\d)|[2-79]\\d\\d)\\d)|2(?:0(?:0(?:00|4\\d)|(?:19|[2-7]\\d)\\d)|(?:(?:[124-69]\\d|3[5-9])\\d|7(?:[0-79]\\d|8[013-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}",[7,8]],["800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}"],["(?:40\\d\\d|900)\\d{4}",[7,8]],["70[0-2]\\d{5}",[8]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0",0,0,0,0,0,[["13[23]\\d{6}|(?:15|57)\\d{6,7}|(?:2\\d|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])\\d{7}",[8,9]],["1[0-25]\\d{8}",[10]],["800\\d{7}",[10]],["900\\d{7}",[10]]]],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1[12568]|[24]0|55|6[146])|8\\d\\d)\\d{4}"],["(?:17[1-3]|7\\d\\d)\\d{4}"]]],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}"],["96906(?:09|10)\\d\\d|(?:590(?:10[0-2]|600)|97390\\d)\\d{3}|(?: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}"]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0",0,0,0,0,0,[["(?:11(?:[124]\\d\\d|3(?:[0-79]\\d|8[0-7])|5(?:[02-9]\\d|1[0-57-9])|6(?:[02-79]\\d|1[0-57-9]|8[0-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|(?:22|55)[0-6]|33[0134689]|44[04]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:119|22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:(?:11|22)[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}"],["700[1-9]\\d{5}|(?:7(?:0[1-9]|1[0-8]|2[1-35-79]|3\\d|77|86|99)|9\\d\\d)\\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}|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"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,[["603\\d{4}|(?:3[0-5]|6[25-7]|8[58])\\d{5}",[7]],["(?:[279]\\d|45|5[01568]|8[034679])\\d{5}",[7]],["0800\\d{7}",[11]]],"00"],FK:["500","00","[2-7]\\d{4}",[5],0,0,0,0,0,0,0,[["[2-47]\\d{4}"],["[56]\\d{4}"]]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]],0,0,0,0,0,0,[["31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-6]\\d)\\d)\\d{3}"],["31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-7]\\d)\\d)\\d{3}"]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))",0,0,0,[["(?:20|[34]\\d|8[19])\\d{4}"],["(?:[27][1-9]|5\\d|9[16])\\d{4}"],["80[257-9]\\d{3}"],["90(?:[13-5][15-7]|2[125-7]|9\\d)\\d\\d"],0,0,0,0,["(?:6[0-36]|88)\\d{4}"]]],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}"]]],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1",0,0,[["[01]1\\d{6}",[8]],["(?:(?:0[2-7]|7[467])\\d|6(?:0[0-4]|10|[256]\\d))\\d{5}|[2-7]\\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|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\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])))|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"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473",[["473(?:2(?:3[0-2]|69)|3(?:2[89]|86)|4(?:[06]8|3[5-9]|4[0-4]|5[59]|73|90)|63[68]|7(?:58|84)|800|938)\\d{4}"],["473(?:4(?:0[2-79]|1[04-9]|2[0-5]|49|5[6-8])|5(?:2[01]|3[3-8])|901)\\d{4}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0",0,0,0,0,0,[["(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}"],["5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|5(?:0(?:0(?:1[09]|70)|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}|(?:5(?:0(?:0(?:0\\d|1[12]|22|3[0-6]|44|5[05]|77|88|9[09])|(?:[14]\\d|77)\\d|22[02])|1(?:1(?:[03][01]|[124]\\d|5[2-6]|7[0-6])|4\\d\\d)|[23]555|4(?:4\\d\\d|555)|5(?:[0157-9]\\d\\d|200|333|444)|6[89]\\d\\d|7(?:(?:[0147-9]\\d|22)\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}"],["800\\d{6}"],0,0,0,0,0,["70[67]\\d{6}"]]],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:4(?:[02-49]\\d|1[0-5]|5[6-9]|6[0-3]|80)|88\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:694(?:[0-249]\\d|3[0-8])|7093[0-3])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:396|76\\d)\\d|476[0-6])\\d{4}"]]],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\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]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0",0,0,0,0,0,[["3082[0-5]\\d{4}|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}",[9]],["(?:2(?:[0346-9]\\d|5[67])|5(?:[03-7]\\d|9[1-9]))\\d{6}",[9]],["800\\d{5,6}"]]],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}"]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],0,0,0,0,0,0,[["(?:4(?:[23]\\d\\d|4(?:1[024679]|[6-9]\\d))|5(?:5(?:3\\d|4[0-7])|6[67]\\d|7(?:1[04]|2[035]|3[58]|48))|8[0-589]\\d\\d)\\d{3}"],["556\\d{4}|(?:[23679]\\d|4[015]|5[0-489]|8[67])\\d{5}"]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]],0,0,0,0,0,0,[["3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1\\d\\d)\\d{4}",[8]],["6[0-356]\\d{7}",[9]],0,0,0,0,0,0,["722\\d{6}",[9]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]],0,0,0,0,0,0,[["33[0-24-9]\\d[46]\\d{4}|3(?:33|5\\d)\\d[7-9]\\d{4}"],["(?:222|55\\d)\\d{6}"],["80\\d[1-9]\\d{5}"],["90\\d[1-9]\\d{5}"]]],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]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[["[267][2-9]\\d{6}",[8]],["(?:[3-5]\\d\\d|80[0-4])\\d{5}",[8]],["18[01]\\d{8}",[11]],["19\\d{9}",[11]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671",[["671(?:2\\d\\d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[478])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[16-9]))\\d{4}"],[""],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]],0,0,0,0,0,0,[["443\\d{6}",[9]],["9(?:5\\d|6[569]|77)\\d{6}",[9]],0,0,0,0,0,0,["40\\d{5}",[7]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],0,0,0,0,0,0,[["(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56])|50[0-6]|77[1-57])\\d{4}"],["(?:51[01]|6\\d\\d|7(?:[0-5]\\d|6[0-79]|70))\\d{4}"],["(?:289|8(?:00|6[28]|88|99))\\d{4}"],["9008\\d{3}"],0,0,0,0,["515\\d{4}"]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,[["(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:4[0-8]|[579]\\d|6[0-5]))|58(?:0[1-9]|1[2-9]))\\d{4}",[8]],["(?:4(?:(?:09|24)[3-6]|44[0-35-9]|6(?:4[0-57-9]|6[0-6])|7(?:4[0-48]|6[0-5]))|5(?:25[3-7]|35[4-8]|73[0-6]|95[0-8])|6(?:26[013-8]|(?:66|78)[0-5])|70(?:7[1-8]|8[0-8])|84(?:4[0-2]|8[0-35-9])|9(?:29[013-9]|39[014-9]|59[0-467]|899))\\d{4}|(?:4(?:4[0-35-9]|6[0-357-9]|7[0-35])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|70[1-59]|84[0-39]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}",[8]],["800\\d{6}",[9]],["900(?:[0-24-9]\\d{7}|3\\d{1,4})",[5,6,7,8,11]],["8(?:1[0-4679]\\d|2(?:[0-36]\\d|7[0-4])|3(?:[034]\\d|2[09]|70))\\d{4}",[8]],0,["30(?:0[1-9]|[15-7]\\d|2[047]|89)\\d{4}",[8]],["7(?:1(?:0[0-38]|1[0-3679]|3[013]|69|9[0136])|2(?:[02389]\\d|1[18]|7[27-9])|3(?:[0-38]\\d|7[0-369]|9[2357-9])|47\\d|5(?:[178]\\d|5[0-5])|6(?:0[0-7]|2[236-9]|[35]\\d)|7(?:[27]\\d|8[7-9])|8(?:[23689]\\d|7[1-9])|9(?:[025]\\d|6[0-246-8]|7[0-36-9]|8[238]))\\d{4}",[8]]],"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]],0,0,0,0,0,0,[["2(?:2(?:0[0-59]|1[1-9]|[23]\\d|4[02-7]|5[57]|6[245]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[578]|2[3-59]|3[13-9]|4[0-68]|5[1-3589])|5(?:0[2357-9]|1[1-356]|4[03-5]|5\\d|6[014-69]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[047]|4[0-378]|[78][0-8]|9[01])|7(?:0[5-79]|6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",[8]],["[37-9]\\d{7}",[8]],["8002\\d{7}",[11]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0",0,0,0,0,0,[["1\\d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])\\d{6,7}",[8,9]],["9(?:(?:0[1-9]|[12589]\\d)\\d\\d|7(?:[0679]\\d\\d|5(?:[01]\\d|44|55|77|9[5-79])))\\d{4}|98\\d{6}",[8,9]],["80\\d{5,7}"],["6[01459]\\d{6}|6[01]\\d{5}",[7,8]],["7[45]\\d{6}",[8]],0,["62\\d{6,7}|72\\d{6}",[8,9]]]],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]],0,0,0,0,0,0,[["2(?:2\\d|5[1-5]|81|9[149])\\d{5}"],["(?:[34]\\d|5[568])\\d{6}"],["8\\d{7}"],0,0,0,0,0,["9(?:[67][0-4]|8[0-3589]|9\\d)\\d{5}"]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06",0,0,0,0,0,[["(?:1\\d|[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6[23689]|8[2-57-9]|9[2-69])\\d{6}",[8]],["(?:[257]0|3[01])\\d{7}",[9]],["(?:[48]0\\d|680[29])\\d{5}"],["9[01]\\d{6}",[8]],0,0,["38\\d{7}",[9]],0,["21\\d{7}",[9]]]],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0",0,0,0,0,0,[["2[124]\\d{7,8}|619\\d{8}|2(?:1(?:14|500)|2\\d{3})\\d{3}|61\\d{5,8}|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8\\d|9[1-8])|3(?:1|[25][1-8]|3[1-68]|4[1-3]|6[1-3568]|7[0-469]|8\\d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|43|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[25-8]|3[124-9]|4[1-3589]|5[1-46]|6[1-8])|6(?:[25]\\d|3[1-69]|4[1-6])|7(?:02|[125][1-9]|[36]\\d|4[1-8]|7[0-36-9])|9(?:0[12]|1[013-8]|2[0-479]|5[125-8]|6[23679]|7[159]|8[01346]))\\d{5,8}",[7,8,9,10,11]],["8[1-35-9]\\d{7,10}",[9,10,11,12]],["00(?:1803\\d{5,11}|7803\\d{7})|(?:177\\d|800)\\d{5,7}",[8,9,10,11,12,13,14,15,16,17]],["809\\d{7}",[10]],0,0,["(?:1500|8071\\d{3})\\d{3}",[7,10]],0,0,["804\\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}",[8,11,12]],["55(?:4(?:0[0-3]|[16]0)|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[3-5]|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|9\\d))\\d{6}",[8,10]],0,["151\\d{8,9}",[11,12]],["1599\\d{6}",[10]],0,["7(?:38(?:[05]\\d|8[0138])|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]]]],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24",[["1624(?:230|[5-8]\\d\\d)\\d{3}"],["76245[06]\\d{4}|7(?:4576|[59]24\\d|624[0-4689])\\d{5}"],["808162\\d{4}"],["8(?:440[49]06|72299\\d)\\d{3}|(?:8(?:45|70)|90[0167])624\\d{4}"],["70\\d{8}"],0,["3440[49]06\\d{3}|(?:3(?:08162|3\\d{4}|45624|7(?:0624|2299))|55\\d{4})\\d{4}"],0,["56\\d{8}"]]],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0",0,0,0,0,0,[["(?:2717(?:[2-7]\\d|95)|6828[235-7]\\d)\\d{4}|(?:170[24]|280[13468]|4(?:20[24]|72[2-8])|552[1-7])\\d{6}|(?:271[0-689]|682[0-79]|782[0-6])[2-7]\\d{5}|(?:2(?:[02][2-79]|90)|3(?:23|80)|683|79[1-7])\\d{7}|(?:11|33|4[04]|80)[2-7]\\d{7}|(?:342|674|788)(?:[0189][2-7]|[2-7]\\d)\\d{5}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[13]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[014-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]\\d{6}|(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[3-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1245]|4[5-8]|5[125689]|6[235-7]|7[157-9]|8[2-46-8])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[14-6])|7(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|8[013-7]|9[089])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5\\d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))\\d[2-7]\\d{5}",[10]],["(?:6(?:1279|828[01489])|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))\\d{5}|(?:160[01]|6(?:12|[2-47]1|5[17]|6[13]|80)[0189]|7(?:1(?:2[0189]|9[0-5])|2(?:[14][017-9]|8[0-59])|3(?:2[5-8]|[34][017-9]|9[016-9])|4(?:1[015-9]|[29][89]|39|8[389])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))\\d{6}|(?:7(?:31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]\\d|7[02-8])\\d{5}|(?:6(?:[09]\\d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:0\\d|2[0235-79]|3[05-8]|40|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]\\d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9\\d\\d)\\d{7}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[235689]\\d|4[0189])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-5])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]|881))[0189]\\d{5}",[10]],["000800\\d{7}|180(?:0\\d{4,9}|3\\d{9})"],["186[12]\\d{9}",[13]],0,0,["140\\d{7}",[10]],0,0,["1860\\d{7}",[11]]]],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]],0,0,0,0,0,0,[["37\\d{5}"],["38\\d{5}"]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[["1\\d{7}|(?:2[13-5]|3[02367]|4[023]|5[03]|6[026])\\d{6,7}",[8,9]],["7[3-9]\\d{8}",[10]]]],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0",0,0,0,0,0,[["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])(?:[03-57]\\d{7}|[16]\\d{3}(?:\\d{4})?|[289]\\d{3}(?:\\d(?:\\d{3})?)?)|94(?:000[09]|(?:12\\d|30[0-2])\\d|2(?:[02689]0\\d|121)|4(?:111|40\\d))\\d{4}",[6,7,10]],["9(?:(?:0[0-5]|[13]\\d|2[0-3])\\d\\d|9(?:[0-46]\\d\\d|5(?:10|5\\d)|8(?:[12]\\d|88)|9(?:[01359]\\d|21|69|77|8[7-9])))\\d{5}",[10]],0,0,0,0,["96(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19])",[4,5]]]],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,11}|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",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|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[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["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]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["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}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876",[["8766060\\d{3}|(?:658(?:2(?:[5-8]\\d|9[0-46-9])|[3-9]\\d\\d)|876(?:52[35]|6(?:0[1-3579]|1[0235-9]|[23]\\d|40|5[06]|6[2-589]|7[0-25-9]|8[04]|9[4-9])|7(?:0[2-689]|[1-6]\\d|8[056]|9[45])|9(?:0[1-8]|1[02378]|[2-8]\\d|9[2-468])))\\d{4}"],["(?:6582(?:[0-4]\\d|95)|876(?:2(?:0[1-9]|[13-9]\\d|2[013-9])|[348]\\d\\d|5(?:0[1-9]|[1-9]\\d)|6(?:4[89]|6[67])|7(?:0[07]|7\\d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579])))\\d{4}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0",0,0,0,0,0,[["87(?:000|90[01])\\d{3}|(?:2(?:6(?:2[0-35-9]|3[0-578]|4[24-7]|5[0-24-8]|[6-8][023]|9[0-3])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3\\d|4[0-3]|[5-7][023])|53(?:0[0-3]|[13][023]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2(?:[05]0|22)|3(?:00|33)|4(?:0[0-25]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7\\d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[178]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[0239]))|87(?:20|7[078]|99))\\d{4}",[8]],["(?:427|7(?:[78][0-25-9]|9\\d))\\d{6}",[9]],["80\\d{6}",[8]],["9\\d{7}",[8]],["70\\d{7}",[9]],0,["8(?:10|8\\d)\\d{5}",[8]],["74(?:66|77)\\d{5}",[9]],0,["85\\d{6}",[8]]]],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1",0,0,[["(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|(?:2[2-9]|[36][1-9])\\d|4(?:[2-578]\\d|6[02-8]|9[2-59])|5(?:[2-589]\\d|6[1-9]|7[2-8])|7(?:[25-9]\\d|3[4-9]|4[02-9])|8(?:[2679]\\d|3[2-9]|4[5-9]|5[1-9]|8[03-9])|9(?:[2-58]\\d|[679][1-9]))\\d{6}",[9]],["(?:601[0-4]0|[7-9]0[1-9]\\d\\d)\\d{5}",[10]],["00777(?:[01]|5\\d)\\d\\d|(?:00(?:7778|882[1245])|(?:120|800\\d)\\d\\d)\\d{4}|00(?:37|66|78)\\d{6,13}"],["990\\d{6}",[9]],["60\\d{7}",[9]],0,["570\\d{6}",[9]],["20\\d{8}",[10]],["50[1-9]\\d{7}",[10]]]],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,[["(?:4[245]|5[1-79]|6[01457-9])\\d{5,7}|(?:4[136]|5[08]|62)\\d{7}|(?:[24]0|66)\\d{6,7}",[7,8,9]],["(?:1(?:0[0-8]|1\\d|2[014]|30|4[0-3])|7\\d\\d)\\d{6}",[9]],["800[02-8]\\d{5,6}",[9,10]],["900[02-9]\\d{5}",[9]]]],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["312(?:5[0-79]\\d|9(?:[0-689]\\d|7[0-24-9]))\\d{3}|(?:3(?:1(?:2[0-46-8]|3[1-9]|47|[56]\\d)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}",[9]],["312(?:58\\d|973)\\d{3}|(?:2(?:0[0-35]|2\\d)|5[0-24-7]\\d|600|7(?:[07]\\d|55)|88[08]|9(?:12|9[05-9]))\\d{6}",[9]],["800\\d{6,7}"]]],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["23(?:4(?:[2-4]|[56]\\d)|[568]\\d\\d)\\d{4}|23[236-9]\\d{5}|(?:2[4-6]|3[2-6]|4[2-4]|[5-7][2-5])(?:(?:[237-9]|4[56]|5\\d)\\d{5}|6\\d{5,6})",[8,9]],["(?:(?:1[28]|3[18]|9[67])\\d|6[016-9]|7(?:[07-9]|[16]\\d)|8(?:[013-79]|8\\d))\\d{6}|(?:1\\d|9[0-57-9])\\d{6}|(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])48\\d{5}",[8,9]],["1800(?:1\\d|2[019])\\d{4}",[10]],["1900(?:1\\d|2[09])\\d{4}",[10]]]],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0",0,0,0,0,0,[["(?:[24]\\d|3[1-9]|50|65(?:02[12]|12[56]|22[89]|[3-5]00)|7(?:27\\d\\d|3100|5(?:02[12]|12[56]|22[89]|[34](?:00|81)|500))|8[0-5])\\d{3}"],["(?:6200[01]|7(?:310[1-9]|5(?:02[03-9]|12[0-47-9]|22[0-7]|[34](?:0[1-9]|8[02-9])|50[1-9])))\\d{3}|(?:63\\d\\d|7(?:(?:[0146-9]\\d|2[0-689])\\d|3(?:[02-9]\\d|1[1-9])|5(?:[0-2][013-9]|[34][1-79]|5[1-9]|[6-9]\\d)))\\d{4}",[8]],0,0,0,0,0,0,["30(?:0[01]\\d\\d|12(?:11|20))\\d\\d",[8]]]],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]],0,0,0,0,0,0,[["7[4-7]\\d{5}"],["[34]\\d{6}"],0,["8\\d{6}"]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869",[["869(?:2(?:29|36)|302|4(?:6[015-9]|70)|56[5-7])\\d{4}"],["869(?:48[89]|55[6-8]|66\\d|76[02-7])\\d{4}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:195|2)\\d|3[19]|4[159]|5[37]|6[17]|7[39]|85)\\d{6}"],["19[1-3]\\d{7}",[10]]]],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?",0,0,0,[["(?:2|3[1-3]|[46][1-4]|5[1-5])[1-9]\\d{6,7}|(?:3[1-3]|[46][1-4]|5[1-5])1\\d{2,3}",[5,6,8,9,10]],["1(?:05(?:[0-8]\\d|9[0-6])|22[13]\\d)\\d{4,5}|1(?:0[0-46-9]|[16-9]\\d|2[013-9])\\d{6,7}",[9,10]],["00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|[38]0)\\d{7}",[9,11,12,13,14]],["60[2-9]\\d{6}",[9]],["50\\d{8,9}",[10,11]],0,["1(?:5(?:22|33|44|66|77|88|99)|6(?:[07]0|44|6[0168]|88)|8(?:00|33|55|77|99))\\d{4}",[8]],["15\\d{7,8}",[9,10]],["70\\d{8}",[10]]]],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]],0,0,0,0,0,0,[["2(?:[23]\\d\\d|4(?:[1-35-9]\\d|44)|5(?:0[034]|[2-46]\\d|5[1-3]|7[1-7]))\\d{4}",[8]],["(?:41\\d\\d|5(?:(?:[05]\\d|1[0-7]|6[56])\\d|2(?:22|5[25])|7(?:55|77)|88[58])|6(?:(?:0[034679]|5[015-9]|6\\d)\\d|1(?:00|11|6[16])|2[26]2|3[36]3|4[46]4|7(?:0[013-9]|[67]\\d)|8[68]8|9(?:[069]\\d|3[039]))|9(?:(?:[04679]\\d|8[057-9])\\d|1(?:00|1[01]|99)|2(?:00|2\\d)|3(?:00|3[03])|5(?:00|5\\d)))\\d{4}",[8]],["18\\d{5}",[7]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345",[["345(?:2(?:22|3[23]|44|66)|333|444|6(?:23|38|40)|7(?:30|4[35-79]|6[6-9]|77)|8(?:00|1[45]|4[89]|88)|9(?:14|4[035-9]))\\d{4}"],["345(?:32[1-9]|4(?:1[2-6]|2[0-4])|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|82[56]|9(?:1[679]|2[2-9]|3[06-9]|90))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["(?:345976|900[2-9]\\d\\d)\\d{4}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",[["7(?:1(?:0(?:[23]\\d|4[0-3]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\d|3[013-9]|5[1-9]|97)|5(?:2\\d|3[1-9]|4[0-7]|59)|6(?:[2-4]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]|59))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[2-4]\\d|5[139])|4(?:2\\d|3[1-35-9]|59)|5(?:[23]\\d|4[0-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59)))\\d{5}",[10]],["7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)\\d{7}",[10]],["8(?:00|108\\d{3})\\d{7}"],["809\\d{7}",[10]],["808\\d{7}",[10]],0,0,0,["751\\d{7}",[10]]],"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,0,0,0,0,[["(?:2[13]|[35-7][14]|41|8[1468])\\d{6}",[8]],["(?:20(?:[23579]\\d|8[78])|30[24]\\d)\\d{6}|30\\d{7}",[9,10]]]],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0",0,0,0,0,0,[["7(?:62|8[0-6]|9[04-9])\\d{4}|(?:[14-69]\\d|2(?:[14-69]\\d|[78][1-9])|7[2-57]|8[02-9])\\d{5}"],["(?:(?:3|81)\\d|7(?:[01]\\d|6[013-9]|8[7-9]|9[0-4]))\\d{5}"],0,["9[01]\\d{6}",[8]],0,0,0,0,0,["80\\d{6}",[8]]]],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758",[["758(?:234|4(?:30|5\\d|6[2-9]|8[0-2])|57[0-2]|(?:63|75)8)\\d{4}"],["758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2\\d|3[0-3])|812)\\d{4}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],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[024]|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\\d)\\d|6(?:[024-68]\\d|1[01]|3[7-9]|70))\\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]]]],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0",0,0,0,0,0,[["(?:12[2-9]|602|8[12]\\d|9(?:1\\d|22|9[245]))\\d{6}|(?:11|2[13-7]|3[1-8]|4[157]|5[12457]|6[35-7])[2-57]\\d{6}"],["7(?:[0-25-8]\\d|4[0-4])\\d{6}"],0,0,0,0,["1973\\d{5}"]]],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0",0,0,0,0,0,[["2\\d{7}",[8]],["(?:(?:(?:22|33)0|555|7(?:6[01]|7\\d)|88\\d)\\d|4(?:240|[67]))\\d{5}|[56]\\d{6}",[7,9]],0,["332(?:02|[34]\\d)\\d{4}",[9]]]],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]],0,0,0,0,0,0,[["2\\d{7}"],["[56]\\d{7}"],["800[1256]\\d{4}"]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]",0,0,0,[["(?:3[1478]|4[124-6]|52)\\d{6}"],["6\\d{7}"],["80[02]\\d{5}"],["9(?:0[0239]|10)\\d{5}"],["70[05]\\d{5}"],0,["70[67]\\d{5}"],0,["[89]01\\d{5}"],["808\\d{5}"]]],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",["20"]],["(\\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]"]],["(\\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",["20"]]],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(?:[26][18]|5[1568]|7[189]|81|9[128])\\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]]]],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]],0,0,0,0,0,0,[["6\\d{7}"],["2333[0-8]\\d{3}|2(?:[0-24-9]\\d\\d|3(?:0[07]|[14-9]\\d|2[02-9]|3[0-24-9]))\\d{4}"],["80\\d{6}"],["90\\d{6}"],0,0,0,0,0,["81\\d{6}"]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:0[56]|[1-6]\\d|7[124579]|8[124])|3(?:1\\d|2[2356])|4(?:[17]\\d|2[1-357]|5[2-4]|8[124])|5(?:[1347]\\d|2[1-469]|5[13-5]|8[1-4])|6(?:[1-479]\\d|5[2-57]|8[1-5])|7(?:[13]\\d|2[13-79])|8(?:[124]\\d|5[124]|84))\\d{6}"],["9[1-6]\\d{7}"]]],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]",[["5(?:(?:18|4[0679]|5[03])\\d|2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-9])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|[67]\\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",["[67]"],"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|[67]\\d)\\d{7}"],["(?:800|90\\d)\\d{5}",[8]]]],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:2[1-9]|3[1-79])\\d|5(?:33|5[257]))\\d{5}"],["562\\d{5}|(?:6\\d|7[16-9])\\d{6}"],["800\\d{5}"],["90[056]\\d{5}"],0,0,["803\\d{5}"],0,["3[08]\\d{6}"],["808\\d{5}"]]],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:20[2-8]|3(?:[0-2][2-7]|3[24-7])|4(?:0[2-467]|1[2467])|5(?:0[2467]|1[24-7]|2[2-467]))\\d{5}",[8]],["6(?:[07-9]\\d|3[024]|6[0-25])\\d{5}",[8]],["80(?:[0-2578]|9\\d)\\d{5}"],["9(?:4[1568]|5[178])\\d{5}",[8]],0,0,["77[1-9]\\d{5}",[8]],0,["78[1-49]\\d{5}",[8]]]],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1",0,0,[["2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[356]|8[268]|9[2457])\\d{5}"],["3[2-9]\\d{7}"],0,0,0,0,0,0,["22\\d{7}"]]],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1",0,0,0,0,0,[["(?:247|528|625)\\d{4}"],["(?:(?:23|54)5|329|45[35-8])\\d{4}"],0,0,0,0,0,0,["635\\d{4}"]]],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:2(?:62|77)0|3444)\\d|4[56]440)\\d{3}|(?:34|4[357])700\\d{3}|(?:2(?:[0-3]\\d|5[0-578]|6[01]|82)|3(?:1[3-68]|[23][2-68]|4[23568])|4(?:[23][2-68]|4[3-68]|5[2568]|6[25-8]|7[24-68]|8[4-68]))\\d{5}"],["7(?:3555|(?:474|9[019]7)7)\\d{3}|7(?:[0-25-8]\\d\\d|3(?:[1-478]\\d|6[01])|4(?:2\\d|60|7[01578])|9(?:[2-4]\\d|5[01]|7[015]))\\d{4}"],["800\\d{5}"],["5\\d{7}"],0,0,0,0,0,["8(?:0[1-9]|[1-9]\\d)\\d{5}"]]],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],0,0,0,0,0,0,[["2(?:07[0-8]|12[67])\\d{4}|(?:2(?:02|1[4-689])|4(?:0[0-4]|4[1-59]))\\d{5}"],["2(?:0(?:01|79)|17\\d)\\d{4}|(?:5[0-3]|[679]\\d|8[2-59])\\d{6}"],["80\\d{6}"]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:(?:12|[28]\\d|3[56]|7[3-6]|9[0-6])\\d|4(?:2[29]|7[0-2]|83)|6)|2(?:2(?:00|8[34])|4(?:0\\d|22|7[0-2]|83)|51\\d\\d)|4(?:2(?:2\\d\\d|48[013])|3(?:20\\d|4(?:70|83)|56)|420\\d|5(?:2\\d|470))|6(?:0(?:[23]|88\\d)|(?:124|[56]2\\d)\\d|2472|3(?:20\\d|470)|4(?:2[04]\\d|472)|7(?:3\\d\\d|4[67]0|8(?:[01459]\\d|8))))\\d{4}|5(?:2(?:2\\d{5,6}|47[02]\\d{4})|(?:3472|4(?:2(?:1|86)|470)|522\\d|6(?:20\\d|483)|7(?:20\\d|48[01])|8(?:20\\d|47[02])|9(?:20\\d|470))\\d{4})|7(?:(?:0470|4(?:25\\d|470)|5(?:202|470|96\\d))\\d{4}|1(?:20\\d{4,5}|4(?:70|83)\\d{4}))|8(?:1(?:2\\d{5,6}|4(?:10|7[01]\\d)\\d{3})|2(?:2\\d{5,6}|(?:320|490\\d)\\d{3})|(?:3(?:2\\d\\d|470)|4[24-7]|5(?:(?:2\\d|51)\\d|4(?:[1-35-9]\\d|4[0-57-9]))|6[23])\\d{4})|(?:1[2-6]\\d|4(?:2[24-8]|3[2-7]|[46][2-6]|5[3-5])|5(?:[27][2-8]|3[2-68]|4[24-8]|5[23]|6[2-4]|8[24-7]|9[2-7])|6(?:[19]20|42[03-6]|(?:52|7[45])\\d)|7(?:[04][24-8]|[15][2-7]|22|3[2-4])|8(?:1[2-689]|2[2-8]|(?:[35]2|64)\\d))\\d{4}|25\\d{5,6}|(?:2[2-9]|6(?:1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7[235-7]|8[245]|9[24])|8(?:3[24]|5[245]))\\d{4}",[6,7,8,9]],["(?:17[01]|9(?:2(?:[0-4]|[56]\\d\\d)|(?:3(?:[0-36]|4\\d)|(?:6\\d|8[89]|9[4-8])\\d|7(?:3|40|[5-9]\\d))\\d|4(?:(?:[0245]\\d|[1379])\\d|88)|5[0-6])\\d)\\d{4}|9[69]1\\d{6}|9(?:[68]\\d|9[089])\\d{5}",[7,8,9,10]],["80080(?:0[1-9]|2\\d)\\d{3}",[10]],0,0,0,0,0,["1333\\d{4}",[8]]]],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0",0,0,0,0,0,[["[12](?:2[1-3]|(?:3[2-8]|4[2-68]|5[1-4689])\\d)\\d{5,6}|7(?:0(?:[0-5]\\d|7[078]|80)|128)\\d{4}|[12]27\\d{6}|(?:11|2[16]|5[368])\\d{6}"],["(?:87[01]|92[0139])\\d{5}|(?:5[05]|6[069]|7[28]|8[0135689]|9[013-9])\\d{6}",[8]],0,0,0,0,0,0,["712[0-79]\\d{4}|7(?:1[013-9]|[5-79]\\d)\\d{5}",[8]]]],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]],0,0,0,0,0,0,[["(?:28[2-9]|8(?:11|[2-57-9]\\d))\\d{5}",[8]],["6800[0-79]\\d{3}|6(?:[235]\\d\\d|6(?:0[0-5]|[1-9]\\d)|8(?:0[1-9]|[14-8]\\d|2[5-9]|[39][0-4]))\\d{4}",[8]],["0800\\d{3}",[7]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670",[["670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}"],[""],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:6(?:[03-7]\\d|1[05]|2[7-9]|8[0-39]|9[04-9])|89\\d)|80[6-9]\\d\\d|9(?:477[6-9]|767[4589]))\\d{4}"],["(?:69[67]\\d\\d|7091[0-3])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:397[0-3]|477[0-5]|76(?:6\\d|7[0-367]))\\d{4}"]]],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]],0,0,0,0,0,0,[["(?:25[08]|35\\d|45[1-7])\\d{5}"],["[2-4][0-46-9]\\d{6}"],["800\\d{5}"]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664",[["6644(?:1[0-3]|91)\\d{4}"],["664(?:3(?:49|9[1-6])|49[2-6])\\d{4}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],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}"]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,[["(?:2(?:[0346-8]\\d|1[0-8])|4(?:[013568]\\d|2[0-24-8]|71|90)|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}",[7,8]],["5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|(?:5(?:2[5-9]|4[3-689]|[57]\\d|8[0-689]|9[0-8])|7(?:0[0-7]|3[013]))\\d{5}",[8]],["802\\d{7}|80[0-2]\\d{4}",[7,10]],["30\\d{5}",[7]],0,0,0,["219\\d{4}",[7]],["3(?:20|9\\d)\\d{4}",[7]]],"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,[["(?:3(?:0[0-4]|3[0-59])|6(?:[58][024689]|6[024-68]|7[02468]))\\d{4}",[7]],["(?:46[46]|[79]\\d\\d)\\d{4}",[7]],["800\\d{7}",[10]],["900\\d{7}",[10]],0,0,["4(?:0[01]|50)\\d{4}",[7]]],"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:1[2-9]|2[12]\\d\\d)\\d{5}"],["111\\d{6}|(?:31|77|[89][89])\\d{7}",[9]]]],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,[["(?:2(?:0[01]|2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[267][1-9]|3[1-8]|[45]\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-36-9]|6[0-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69]\\d|7[12]|8[1-8]))\\d{7}"],["(?:2(?:2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[267][1-9]|3[1-8]|[45]\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-36-9]|6[0-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69]\\d|7[12]|8[1-8]))\\d{7}"],["8(?:00|88)\\d{7}"],["900\\d{7}"],["500\\d{7}"],0,0,0,0,["300\\d{7}"]],"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0",0,0,0,0,0,[["427[01]\\d{4}|(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}",[8,9]],["1(?:(?:1888[689]|4400|8(?:47|8[27])[0-4])\\d{4}|9\\d{7,8})|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0-4]\\d|5[0-79]|6[02-4]|8[02-5]))|(?:[26]\\d|[37][1-9]|4[235-9])\\d|5(?:31|9\\d\\d)|8(?:1[23]|[236]\\d|4[06]|5(?:46|[7-9])|7[016-9]|8[01]|9[0-8]))\\d{5}",[9,10]],["1[378]00\\d{6}",[10]],["1600\\d{6}",[10]],0,0,0,0,["15(?:4(?:6[0-4]\\d|8(?:0[125]|[17]\\d|21|3[01]|4[01589]|5[014]|6[02]))|6(?:32[0-6]|78\\d))\\d{4}",[10]]]],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}",[8]],["8[2-79]\\d{7}",[9]],["800\\d{6}",[9]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0",0,0,0,0,0,[["64426\\d{3}|6(?:1(?:2[2-7]|3[01378]|4[0-4])|254|32[0237]|4(?:27|41|5[25])|52[236-8]|626|7(?:2[2-4]|30))\\d{4,5}|6(?:1(?:(?:0\\d|2[0189]|3[24-69]|4[5-9])\\d|17|69|7[014])|2(?:17|5[0-36-8]|69|70)|3(?:17|2[14-689]|34|6[289]|7[01]|81)|4(?:17|2[0-2]|4[06]|5[0137]|69|7[01])|5(?:17|2[0459]|69|7[01])|6(?:17|25|38|42|69|7[01])|7(?:17|2[569]|3[13]|6[89]|7[01]))\\d{4}"],["(?:60|8[1245])\\d{7}",[9]],["80\\d{7}",[9]],["8701\\d{5}",[9]],0,0,0,0,["8(?:3\\d\\d|86)\\d{5}"]]],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]],0,0,0,0,0,0,[["(?:2[03-9]|3[0-5]|4[1-7]|88)\\d{4}"],["(?:[579]\\d|8[0-79])\\d{4}"],["050\\d{3}"],["36\\d{4}"]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]],0,0,0,0,0,0,[["2(?:0(?:20|3[1-8]|4[13-5]|5[14]|6[14578]|7[1-578])|1(?:4[145]|5[14]|6[14-68]|7[169]|88))\\d{4}"],["(?:23|7[0467]|[89]\\d)\\d{6}"],["08\\d{6}"],["09\\d{6}"]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1",0,0,[["(?:1(?:06|17|28|39)|3[0-2]\\d)\\d{3}"],["(?:14|3[58])\\d{4}"]]],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0",0,0,0,0,0,[["20(?:[1259]\\d|3[013-9]|4[1-8]|6[024-689]|7[1-79]|8[2-9])\\d{6}",[10]],["(?:702[0-24-9]|819[01])\\d{6}|(?:7(?:0[13-9]|[12]\\d)|8(?:0[1-9]|1[0-8])|9(?:0[1-9]|1[1-6]))\\d{7}",[10]],["800\\d{7,11}"],0,0,0,["700\\d{7,11}"]]],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]],0,0,0,0,0,0,[["2\\d{7}"],["(?:5(?:5[0-7]|[78]\\d)|6(?:20|3[035]|4[045]|5[05]|77|8[1-9]|9[059])|(?:7[5-8]|8\\d)\\d)\\d{5}"],["1800\\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(?:[0358]\\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]]]],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0",0,0,0,0,0,[["(?:1[0-6]\\d|99[02-6])\\d{5}|(?:2[13-79]|3[135-8]|4[146-9]|5[135-7]|6[13-9]|7[15-9]|8[1-46-9]|9[1-7])[2-6]\\d{5}",[8]],["9(?:00|6[0-3]|7[0-24-6]|8[0-24-68])\\d{7}",[10]],["1(?:66001|800\\d\\d)\\d{5}",[11]]]],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]],0,0,0,0,0,0,[["444\\d{4}"],["(?:222|55[3-9]|666|777|8\\d\\d|999)\\d{4}"]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]],0,0,0,0,0,0,[["[47]\\d{3}",[4]],["(?:[56]|888[1-9])\\d{3}"]]],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"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]],0,0,0,0,0,0,[["2[1-6]\\d{6}",[8]],["(?:1505|90[1-9]\\d)\\d{4}|(?:7[124-9]|9[1-9])\\d{6}",[8]],["8007\\d{4,5}|(?:500|800[05])\\d{4}"],["900\\d{5}",[8]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["(?:1(?:0\\d|1[0479]|2[37]|3[0137]|4[147]|5[05]|6[058]|7[0167]|8[2358]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[0147-9]\\d|[25][0-5]|33|6[068])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[0156]|7[0-24-9]|8[4-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}",[7]],["(?:1[16]1|21[89]|6\\d{3}|8(?:1[01]|7[23]))\\d{4}",[7,8]],["800\\d{4,5}|(?:00800|800\\d)\\d{6}"],["(?:8(?:22|55|60|7[78]|86)|9(?:00|81))\\d{4}",[7]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,[["(?:(?:(?:4[34]|5[14])[0-8]|687)\\d|7(?:173|(?:3[0-8]|55)\\d)|8(?:10[05689]|6(?:0[06-9]|1[6-9]|29)|7(?:0[0569]|[56]0)))\\d{4}|(?:1[0-8]|4[12]|5[236]|6[1-7]|7[246]|8[2-4])\\d{6}",[8]],["9\\d{8}",[9]],["800\\d{5}",[8]],["805\\d{5}",[8]],["80[24]\\d{5}",[8]],0,0,0,0,["801\\d{5}",[8]]],"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],0,0,0,0,0,0,[["4(?:0[4-689]|9[4-68])\\d{5}",[8]],["8[7-9]\\d{6}",[8]],["80[0-5]\\d{6}",[9]],0,0,0,["44\\d{4}",[6]],0,["499\\d{5}",[8]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,[["(?:(?:3[0-2]|4[257]|5[34]|9[78])\\d|64[1-9]|85[02-46-9])\\d{4}",[7]],["(?:7\\d|8[1-48])\\d{6}",[8]],["180\\d{4}",[7]],0,0,0,0,["27[01]\\d{4}",[7]],["2(?:0[0-57]|7[568])\\d{4}",[7]]],"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0",0,0,0,0,0,[["(?:(?:2[3-8]|3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578])\\d{3}|88(?:22\\d\\d|42))\\d{4}|(?:2|8[2-8]\\d\\d)\\d{5}",[6,8,9,10]],["(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[235-7]\\d|4[2-9]|8[135-9]|9[1-9]))\\d{7}",[10]],["1800\\d{7,9}",[11,12,13]]]],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0",0,0,0,0,0,[["(?:(?:21|42)[2-9]|58[126])\\d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\\d{6,7}|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8]))[2-9]\\d{5,6}",[9,10]],["3(?:[0-247]\\d|3[0-79]|55|64)\\d{7}",[10]],["800\\d{5}(?:\\d{3})?",[8,11]],["900\\d{5}",[8]],["122\\d{6}",[9]],0,["(?:2(?:[125]|3[2358]|4[2-4]|9[2-8])|4(?:[0-246-9]|5[3479])|5(?:[1-35-7]|4[2-467])|6(?:0[468]|[1-8])|7(?:[14]|2[236])|8(?:[16]|2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|22|3[27-9]|4[2-6]|6[3569]|9[2-7]))111\\d{6}",[11,12]]]],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",["30|(?: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","30|(?: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,[["(?:30|47\\d\\d)\\d{5}|(?: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]],["21(?:1[013-5]|2\\d|3[1-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]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["80[6-9]\\d{6}|(?:[236-9]\\d|4[1-35-9]|5[0-47-9])\\d{4}"],["708(?:4[0-5]|5[0-6])\\d{4}|(?:[236-9]\\d|4[02-489]|5[02-9])\\d{4}"],["80[0-5]\\d{6}",[9]],["8[129]\\d{7}",[9]]]],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939",[["(?:787|939)[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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["(?:22[2-47-9]|42[45]|82[014-68]|92[3569])\\d{5}",[8]],["5[69]\\d{7}",[9]],["1800\\d{6}",[10]],0,0,0,0,0,0,["1700\\d{6}",[10]]]],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|89(?:00|88|99))\\d{4}"],["30\\d{7}"],["80(?:8\\d|9[1579])\\d{5}"]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],0,0,0,0,0,0,[["(?:2(?:55|77)|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76)|900)\\d{4}"],["(?:(?:46|83)[0-5]|(?:6[2-4689]|78)0)\\d{4}|(?:45|77|88)\\d{5}"]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,[["(?:3[289]|4[246-8]|61|7[1-3]|8[1-36])\\d{5,7}|(?:2(?:[14-68]\\d|2[4-68]|7[15]|9[1-5])|3(?:18|3[167]|4[2357]|51|[67]\\d)|4(?:1\\d|3[12]|5[13]|9[1-47])|5(?:[1-4]\\d|5[02-4])|6(?:3[1-3]|44|7[1-8])|7(?:4[0-4]|5\\d|6[1-578]|75|8[0-8])|858)\\d{5,6}",[7,8,9]],["9(?:51|6[129]|7[1-6]|8[1-7]|9[1-5])\\d{6}",[9]],["9800\\d{5,7}",[9,10,11]],0,0,0,["[245]0\\d{6,7}|[36-9]0\\d{4,7}",[6,7,8,9]],0,["8700[0-4]\\d{4}",[9]]]],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]],0,0,0,0,0,0,[["4(?:(?:[014]\\d\\d|999)\\d|2022)\\d{3}",[8]],["[35-7]\\d{7}",[8]],["800\\d{4}|(?:0080[01]|800)\\d{6}",[7,9,11]],0,0,0,0,["2[136]\\d{5}",[7]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,[["[23][13-6]\\d{7}|(?:2(?:19\\d|[3-6]\\d9)|31\\d\\d)\\d\\d"],["(?:630|702)0\\d{5}|(?:6(?:00|2\\d)|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-39]))\\d{6}",[9]],["800\\d{6}",[9]],["90[0136]\\d{6}",[9]],0,0,["(?:37\\d|80[578])\\d{6}",[9]],0,0,["801\\d{6}",[9]]],0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0",0,0,0,0,0,[["(?:11[1-9]\\d|(?:2[389]|39)(?:0[2-9]|[2-9]\\d))\\d{3,8}|(?:1[02-9]|2[0-24-7]|3[0-8])[2-9]\\d{4,9}",[7,8,9,10,11,12]],["6(?:[0-689]|7\\d)\\d{6,7}",[8,9,10]],["800\\d{3,9}"],["(?:78\\d|90[0169])\\d{3,7}",[6,7,8,9,10]],0,0,["7[06]\\d{4,10}"]]],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",[["(?:3(?:0[12]|36|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:06|2[23568]\\d)\\d{6}"],["7[237-9]\\d{7}",[9]],["800\\d{6}",[9]],["900\\d{6}",[9]]]],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0",0,0,0,0,0,[["1(?:1\\d|2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])\\d{6}",[9]],["579[0-8]\\d{5}|5(?:[013-689]\\d|7[0-8])\\d{6}",[9]],["800\\d{7}",[10]],["925\\d{6}",[9]],0,0,0,0,0,["920\\d{6}",[9]]]],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]],0,0,0,0,0,0,[["(?:1[4-79]|[23]\\d|4[0-2]|5[03]|6[0-37])\\d{3}",[5]],["48\\d{3}|(?:(?:6[89]|7[1-9]|8[4-9])\\d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))\\d{4}"],["1[38]\\d{3}",[5]],0,0,0,0,0,["5[12]\\d{3}",[5]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,[["4[2-46]\\d{5}"],["2[125-8]\\d{5}"],["800[08]\\d{3}"],["85\\d{5}"],0,0,0,0,["971\\d{4}|(?:64|95)\\d{5}"]],"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0",0,0,0,0,0,[["1(?:5\\d|8[35-7])\\d{6}"],["(?:1[0-2]|9[0-3569])\\d{7}"]]],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[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]]]],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[["662[0-24-9]\\d{4}|6(?:[0-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}",[8]],["89(?:8[02-9]|9[0-6])\\d{4}|(?:8(?:0[1-9]|[1-8]\\d|9[0-7])|9[0-8]\\d)\\d{5}",[8]],["(?:18|8)00\\d{7}",[10,11]],["1900\\d{7}",[11]],0,0,["7000\\d{7}",[11]],0,["(?:3[12]\\d|666)\\d{5}",[8]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]",[["2(?:[0-57-9]\\d|6[4-9])\\d\\d"],["[56]\\d{4}",[5]],0,0,0,0,0,0,["262\\d\\d",[5]]]],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,[["(?:[1-357][2-8]|4[24-8])\\d{6}",[8]],["65(?:[178]\\d|5[56]|6[01])\\d{4}|(?:[37][01]|4[0139]|51|6[489])\\d{6}",[8]],["80\\d{4,6}",[6,7,8]],["89[1-3]\\d{2,5}|90\\d{4,6}"],0,0,0,0,["(?:59\\d\\d|8(?:1(?:[67]\\d|8[0-589])|2(?:0\\d|2[0-37-9]|8[0-2489])|3[389]\\d))\\d{4}",[8]]],"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79",[["79\\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]]]],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:16|[2-9]\\d{3})|(?:(?:[3-5][1-8]\\d|819)\\d|601[1-5])\\d)\\d{4}|(?:2|[3-5][1-8])1[67]\\d{3}|[3-5][1-8]16\\d\\d"],["909[1-9]\\d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5\\d)\\d{6}",[9]],["800\\d{6}",[9]],["9(?:00|[78]\\d)\\d{6}",[9]],0,0,["96\\d{7}",[9]],["9090\\d{3}",[7]],["6(?:02|5[0-4]|9[0-6])\\d{6}",[9]],["8[5-9]\\d{7}",[9]]]],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0",0,0,0,0,0,[["22[2-4][2-9]\\d{4}"],["(?:25|3[0-5]|66|7\\d|8[08]|9[09])\\d{6}"]]],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1",0,0,[["0549(?:8[0157-9]|9\\d)\\d{4}",[10]],["6[16]\\d{6}",[8]],0,["7[178]\\d{6}",[8]],0,0,0,0,["5[158]\\d{6}",[8]]]],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]],0,0,0,0,0,0,[["3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}"],["7(?:[015-8]\\d|21|90)\\d{6}"],["800\\d{6}"],["88[4689]\\d{6}"],0,0,0,0,["(?:3(?:392|9[01]\\d)\\d|93(?:3[13]0|929))\\d{4}"],["81[02468]\\d{6}"]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0",0,0,0,0,0,[["(?:1\\d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])\\d{5}|(?:[134]\\d|8[125])\\d{4}",[6,7]],["(?:(?:15|(?:3[59]|4[89]|6\\d|7[679]|8[08])\\d|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:[67]\\d\\d|904)\\d{5}",[7,8,9]]]],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]],0,0,0,0,0,0,[["(?:2[1-3]|3[0-7]|4\\d|5[2-578])\\d{4}",[6]],["(?:6[08]|7[124-7]|8[1-9])\\d{5}",[7]],["80\\d{5}",[7]],["90\\d{5}",[7]],0,0,0,0,["(?:56|91\\d)\\d{4}"]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0",0,0,0,0,0,[["1[89]\\d{7}"],["(?:12|9[1257-9])\\d{7}"]]],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]],0,0,0,0,0,0,[["22\\d{5}"],["900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}"]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,[["2(?:79(?:0[0347-9]|[1-9]\\d)|89(?:0[024589]|[1-9]\\d))\\d{3}|2(?:[1-69]\\d|[78][0-8])\\d{5}",[8]],["[5-7]\\d{7}",[8]],["800\\d{8}|80[01]\\d{4}",[7,11]],["900\\d{4}(?:\\d{4})?",[7,11]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721",[["7215(?:4[2-8]|8[39]|9[056])\\d{4}"],["7215(?:1[02]|2\\d|5[034679]|8[0-24-8])\\d{4}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0",0,0,0,0,0,[["21\\d{6,7}|(?:1(?:[14]\\d|[2356])|2[235]|3(?:[13]\\d|4)|4[134]|5[1-3])\\d{6}"],["(?:50|9[1-9])\\d{7}",[9]]]],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]],0,0,0,0,0,0,[["[23][2-5]\\d{6}",[8]],["7[5-9]\\d{6}",[8]],["0800\\d{4}",[8]],["900\\d{6}",[9]],0,0,0,0,["70\\d{6}",[8]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8",[["8\\d{3}"]]],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649",[["649(?:266|712|9(?:4\\d|50))\\d{4}"],["649(?:2(?:3[129]|4[1-79])|3\\d\\d|4[34][1-3])\\d{4}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,0,0,["649(?:71[01]|966)\\d{4}"]]],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,[["22(?:[37-9]0|5[0-5]|6[89])\\d{4}"],["(?:3[01]|[69]\\d|77|8[5-7])\\d{6}"]],"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]],0,0,0,0,0,0,[["2(?:2[2-7]|3[23]|4[45]|55|6[67]|77)\\d{5}"],["(?:7[0-289]|9[0-36-9])\\d{6}"]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["(?:1[0689]|2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}",[8]],["(?:(?:14|[89]\\d)\\d\\d|6(?:[1-6]\\d\\d|7(?:1[0-8]|2[4-7]|3[1-6])))\\d{5}",[9]],["(?:001800\\d|1800)\\d{6}",[10,13]],["1900\\d{6}",[10]],0,0,0,0,["6[08]\\d{7}",[9]]]],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,[["(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}"],["(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:[09]\\d|1[0-27-9]|2[0-27]|3[08]|40|5[05]|66|7[0157-9]|8[07-9])\\d{7}"]],"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7],0,0,0,0,0,0,0,[["(?:2[2-4]|[34]\\d)\\d{2,5}"],["7[2-4]\\d{2,5}"]]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]],0,0,0,0,0,0,[["(?:2[1-5]|3[1-9]|4[1-4])\\d{5}",[7]],["7[2-8]\\d{6}",[8]],["80\\d{5}",[7]],["90\\d{5}",[7]],["70\\d{5}",[7]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,[["(?:1(?:2\\d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4\\d|6[15])|5(?:22|5[7-9]|6[014-689]))\\d{5}"],["(?:6\\d|71)\\d{6}"]],"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]],0,0,0,0,0,0,[["81200\\d{3}|(?:3[0-2]|7\\d)\\d{6}"],["3(?:001|[12]40)\\d{4}|(?:(?:[259]\\d|4[0-8])\\d|3(?:1[1-35]|6[0-4]|91))\\d{5}"],["8010\\d{4}"],["88\\d{6}"],0,0,0,0,0,["8[12]10\\d{4}"]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]],0,0,0,0,0,0,[["(?:2\\d|3[0-8]|4[0-4]|50|6[09]|7[0-24-69]|8[05])\\d{3}",[5]],["(?:5(?:4[0-5]|5[4-6])|6(?:[09]\\d|3[02]|8[15-9])|(?:7\\d|8[46-9])\\d|999)\\d{4}",[7]],["0800\\d{3}",[7]],0,0,0,0,0,["55[0-37-9]\\d{4}",[7]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-579]|61)","5(?:[0-579]|61[06])","5(?:[0-579]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0",0,0,0,0,0,[["(?:2(?:[13][26]|[28][2468]|[45][268]|[67][246])|3(?:[13][28]|[24-6][2468]|[78][02468]|92)|4(?:[16][246]|[23578][2468]|4[26]))\\d{7}",[10]],["561(?:011|61\\d)\\d{4}|5(?:[03-5]\\d|1[06]|24|7[45]|9[46])\\d{7}",[10]],["8(?:00\\d{7}(?:\\d{2,3})?|11\\d{7})",[10,12,13]],["(?:8[89]8|900)\\d{7}",[10]],["592(?:21[12]|461)\\d{4}",[10]],0,["444\\d{4}",[7]],["512\\d{7}",[10]],["850\\d{7}",[10]]]],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868",[["868(?:2(?:01|1[5-9]|[23]\\d|4[0-2])|6(?:0[7-9]|1[02-8]|2[1-9]|[3-69]\\d|7[0-79])|82[124])\\d{4}"],["868(?:(?:2[5-9]|3\\d)\\d|4(?:3[0-6]|[6-9]\\d)|6(?:20|78|8\\d)|7(?:0[1-9]|1[02-9]|[2-9]\\d))\\d{4}"],["868800\\d{4}|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]|3[23]|44|66|77|88)[2-9]\\d{6}"],["868619\\d{4}"]]],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]],0,0,0,0,0,0,[["2[02-9]\\d{3}",[5]],["(?:7[01]\\d|90)\\d{4}",[6,7]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[["(?:2[2-8]\\d|370|55[01]|7[1-9])\\d{6}|4(?:(?:0(?:0[1-9]|[2-48]\\d)|1[023]\\d)\\d{4,5}|(?:[239]\\d\\d|4(?:0[56]|12|49))\\d{5})|6(?:[01]\\d{7}|4(?:0[56]|12|24|4[09])\\d{4,5})|8(?:(?:2(?:3\\d|4[0-269]|[578]0|66)|36[24-9]|90\\d\\d)\\d{4}|4(?:0[56]|12|24|4[09])\\d{4,5})|(?:2(?:2(?:0\\d\\d|4(?:0[68]|[249]0|3[0-467]|5[0-25-9]|6[0235689]))|(?:3(?:[09]\\d|1[0-4])|(?:4\\d|5[0-49]|6[0-29]|7[0-5])\\d)\\d)|(?:(?:3[2-9]|5[2-8]|6[0-35-79]|8[7-9])\\d\\d|4(?:2(?:[089]\\d|7[1-9])|(?:3[0-4]|[78]\\d|9[01])\\d))\\d)\\d{3}",[8,9]],["(?:40001[0-2]|9[0-8]\\d{4})\\d{3}",[9]],["80[0-79]\\d{6}|800\\d{5}",[8,9]],["20(?:[013-9]\\d\\d|2)\\d{4}",[7,9]],["99\\d{7}",[9]],0,["50[0-46-9]\\d{6}",[9]],0,["7010(?:[0-2679]\\d|3[0-7]|8[0-5])\\d{5}|70\\d{8}",[10,11]]],0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0",0,0,0,0,0,[["2[2-8]\\d{7}"],["(?:6[1-35-9]|7[013-9])\\d{7}"],["80[08]\\d{6}"],["90\\d{7}"],0,0,0,0,["41\\d{7}"],["8(?:40|6[01])\\d{6}"]]],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,[["(?:3[1-8]|4[13-8]|5[1-7]|6[12459])\\d{7}",[9]],["790\\d{6}|(?:39|50|6[36-8]|7[1-357]|9[1-9])\\d{7}",[9]],["800[1-8]\\d{5,6}"],["900[239]\\d{5,6}"],0,0,0,0,["89[1-579]\\d{6}",[9]]],"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0",0,0,0,0,0,[["20(?:(?:240|30[67])\\d|6(?:00[0-2]|30[0-4]))\\d{3}|(?:20(?:[017]\\d|2[5-9]|3[1-4]|5[0-4]|6[15-9])|[34]\\d{3})\\d{5}"],["72[48]0\\d{5}|7(?:[014-8]\\d|2[0167]|3[06]|9[0-3589])\\d{6}"],["800[1-3]\\d{5}"],["90[1-3]\\d{6}"]]],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,[["(?:274[27]|(?:472|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-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|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-57-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-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|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-3589]|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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,[["(?:1(?:770|9(?:20|[89]7))|(?:2\\d|4[2-7])\\d\\d)\\d{4}",[8]],["9[1-9]\\d{6}",[8]],["0004\\d{2,9}|(?:405|80[05])\\d{4}",[6,7,8,9,10,11,12,13]],["90[0-8]\\d{4}",[7]],0,0,["21\\d{2,3}",[4,5]]],"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]],0,0,0,0,0,0,[["(?:55\\d\\d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|[69]\\d\\d|7(?:[23]\\d|7[69]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|[168]\\d\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|9(?:22|5[1-9])))\\d{5}"],["(?:(?:[25]0|33|8[078]|9[0-57-9])\\d{3}|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079])))|7(?:[07]\\d{3}|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}"]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698",[["06698\\d{1,6}",[6,7,8,9,10,11]],["3[1-9]\\d{8}|3[2-9]\\d{7}",[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]]]],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784",[["784(?:266|3(?:6[6-9]|7\\d|8[0-6])|4(?:38|5[0-36-8]|8[0-8])|5(?:55|7[0-2]|93)|638|784)\\d{4}"],["784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)\\d{4}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,0,0,["78451[0-2]\\d{4}"]]],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:12|3[457-9]|[467]\\d|[58][1-9]|9[1-6])|[4-6]00)\\d{7}"],["4(?:1[24-8]|2[246])\\d{7}"],["800\\d{7}"],["90[01]\\d{7}"],0,0,["501\\d{7}"]]],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284",[["284(?:229|4(?:22|9[45])|774|8(?:52|6[459]))\\d{4}"],["284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|9[69])|5(?:4[0-7]|68|9[69]))\\d{4}"],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340",[["340(?:2(?:0\\d|10|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}"],[""],["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0",0,0,0,0,0,[["2(?:0[3-9]|1[0-689]|2[0-25-9]|[38][2-9]|4[2-8]|5[124-9]|6[0-39]|7[0-7]|9[0-4679])\\d{7}",[10]],["(?:5(?:2[238]|59)|89[6-9]|99[013-9])\\d{6}|(?:3\\d|5[1689]|7[06-9]|8[1-8]|9[0-8])\\d{7}",[9]],["1800\\d{4,6}|12(?:0[13]|28)\\d{4}",[8,9,10]],["1900\\d{4,6}",[8,9,10]],0,0,["(?:[17]99|80\\d)\\d{4}|69\\d{5,6}",[7,8]],0,["672\\d{6}",[9]]]],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]],0,0,0,0,0,0,[["(?:38[0-8]|48[4-9])\\d\\d|(?:2[02-9]|3[4-7]|88)\\d{3}",[5]],["(?:[58]\\d|7[0-7])\\d{5}",[7]],["81[18]\\d\\d",[5]],0,0,0,["(?:3[03]|900\\d)\\d{3}"],0,["9(?:0[1-9]|1[01])\\d{4}",[7]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],0,0,0,0,0,0,[["72\\d{4}",[6]],["(?:72|8[23])\\d{4}",[6]],["80[0-5]\\d{6}",[9]],0,0,["[48]0\\d{4}",[6]],0,0,["9[23]\\d{4}",[6]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]],0,0,0,0,0,0,[["6[1-9]\\d{3}|(?:[2-5]|60)\\d{4}",[5,6]],["(?:7[1-35-8]|8(?:[3-7]|9\\d{3}))\\d{5}",[7,10]],["800\\d{3}",[6]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0",0,0,0,0,0,[["38\\d{6,10}|(?:2[89]|39)(?:0\\d{5,6}|[1-9]\\d{5})"],["4[3-9]\\d{6}",[8]],["800\\d{5}",[8]],["900\\d{5}",[8]]]],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[["78[0-7]\\d{4}|17\\d{6}|(?:[12][2-68]|3[2358]|4[2-58]|5[2-6]|6[3-58]|7[24-6])\\d{5}",[7,8]],["7[01378]\\d{7}",[9]]]],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:0330|4302)|52087)0\\d{3}|(?:1[0-8]|2[1-378]|3[1-69]|4\\d|5[1346-8])\\d{7}",[9]],["(?:1(?:3492[0-25]|4495[0235]|549(?:20|5[01]))|4[34]492[01])\\d{3}|8[1-4]\\d{3,7}|(?:2[27]|47|54)4950\\d{3}|(?:1(?:049[2-4]|9[12]\\d\\d)|(?:50[0-2]|[67]\\d\\d)\\d\\d|8(?:5\\d{3}|7(?:08[67]|158|28[5-9]|310)))\\d{4}|(?:1[6-8]|28|3[2-69]|4[025689]|5[36-8])4920\\d{3}|(?:12|[2-5]1)492\\d{4}",[5,6,7,8,9]],["80\\d{7}",[9]],["(?:86[2-9]|9[0-2]\\d)\\d{6}",[9]],0,0,["861\\d{6,7}",[9,10]],0,["87(?:08[0-589]|15[0-79]|28[0-4]|31[1-9])\\d{4}|87(?:[02][0-79]|1[0-46-9]|3[02-9]|[4-9]\\d)\\d{5}",[9]],["860\\d{6}",[9]]]],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0",0,0,0,0,0,[["21[1-8]\\d{6}"],["(?:[59][5-8]|7[5-9])\\d{7}"],["800\\d{6}"],0,0,0,0,0,["63\\d{7}"]]],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:(?:3\\d|9)\\d|[4-8])|2(?:(?:(?:0(?:2[014]|5)|(?:2[0157]|31|84|9)\\d\\d|[56](?:[14]\\d\\d|20)|7(?:[089]|2[03]|[35]\\d\\d))\\d|4(?:2\\d\\d|8))\\d|1(?:2|[39]\\d{4}))|3(?:(?:123|(?:29\\d|92)\\d)\\d\\d|7(?:[19]|[56]\\d))|5(?:0|1[2-478]|26|[37]2|4(?:2\\d{3}|83)|5(?:25\\d\\d|[78])|[689]\\d)|6(?:(?:[16-8]21|28|52[013])\\d\\d|[39])|8(?:[1349]28|523)\\d\\d)\\d{3}|(?:4\\d\\d|9[2-9])\\d{4,5}|(?:(?:2(?:(?:(?:0|8[146])\\d|7[1-7])\\d|2(?:[278]\\d|92)|58(?:2\\d|3))|3(?:[26]|9\\d{3})|5(?:4\\d|5)\\d\\d)\\d|6(?:(?:(?:[0-246]|[78]\\d)\\d|37)\\d|5[2-8]))\\d\\d|(?:2(?:[569]\\d|8[2-57-9])|3(?:[013-59]\\d|8[37])|6[89]8)\\d{3}"],["7(?:[1278]\\d|3[1-9])\\d{6}",[9]],["80(?:[01]\\d|20|8[0-8])\\d{3}",[7]],0,0,0,0,0,["86(?:1[12]|22|30|44|55|77|8[368])\\d{6}",[10]]]]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function pT(e,t){var n=Array.prototype.slice.call(t);return n.push(v1),e.apply(this,n)}function E1(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),o=0;o<3;o++){var i=Number(n[o]),s=Number(r[o]);if(i>s)return 1;if(s>i)return-1;if(!isNaN(i)&&isNaN(s))return 1;if(isNaN(i)&&!isNaN(s))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 mT={}.constructor;function Lo(e){return e!=null&&e.constructor===mT}function Si(e){"@babel/helpers - typeof";return Si=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},Si(e)}function ec(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _T(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,hT(r.key),r)}}function tc(e,t,n){return t&&_T(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hT(e){var t=gT(e,"string");return Si(t)=="symbol"?t:t+""}function gT(e,t){if(Si(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Si(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yT="1.2.0",bT="1.7.35",$1=" ext. ",vT=/^\d+$/,jt=(function(){function e(t){ec(this,e),w1(t),this.metadata=t,A1.call(this,t)}return tc(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){if(n&&vT.test(n)&&(r=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new S1(this.getCountryMetadata(n),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new S1(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var o=this.nonGeographic()[n];if(o)return o}else{var i=this.countryCallingCodes()[n];if(i&&i.length===1&&i[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(n){return this.numberingPlan.type(n)}},{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(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),S1=(function(){function e(t,n){ec(this,e),this.globalMetadataObject=n,this.metadata=t,A1.call(this,n.metadata)}return tc(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(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return r.map(function(o){return new ET(o,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[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(n){if(this.hasTypes()&&T1(this.types(),n))return new ST(T1(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?$1:this.metadata[13]||$1}}])})(),ET=(function(){function e(t,n){ec(this,e),this._format=t,this.metadata=n}return tc(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()&&!$T.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),$T=/^\(?\$1\)?$/,ST=(function(){function e(t,n){ec(this,e),this.type=t,this.metadata=n}return tc(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 T1(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 w1(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Lo(e)||!Lo(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(Lo(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+TT(e)+": "+e,"."))}var TT=function(t){return Si(t)};function df(e,t){if(t=new jt(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function wT(e,t){return t.countries.hasOwnProperty(e)}function A1(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?E1(t,yT)===-1?this.v2=!0:E1(t,bT)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function nc(e,t,n){return AT(e,t,void 0,n)}function AT(e,t,n,r){t&&(r=new jt(r.metadata),r.selectNumberingPlan(t));var o=r.type(n),i=o&&o.possibleLengths()||r.possibleLengths();if(!i)return"IS_POSSIBLE";var s=e.length,a=i[0];return a===s?"IS_POSSIBLE":a>s?"TOO_SHORT":i[i.length-1]<s?"TOO_LONG":i.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function kT(e,t,n){if(t===void 0&&(t={}),n=new jt(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 k1(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 k1(e,t,n){switch(nc(e,t,n)){case"IS_POSSIBLE":return!0;default:return!1}}function Nr(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function CT(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=NT(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.
10
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NT(e,t){if(e){if(typeof e=="string")return C1(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)?C1(e,t):void 0}}function C1(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 IT=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function uf(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){n=new jt(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Nr(r,n.nationalNumberPattern())){if(ff(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||ff(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var o=CT(IT),i;!(i=o()).done;){var s=i.value;if(ff(r,s,n))return s}}}}function ff(e,t,n){var r=n.type(t);return!r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?!1:Nr(e,r.pattern())}function OT(e,t,n){if(t=t||{},n=new jt(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes())return uf(e,t,n.metadata)!==void 0;var r=t.v2?e.nationalNumber:e.phone;return Nr(r,n.nationalNumberPattern())}function RT(e,t,n){var r=new jt(n),o=r.getCountryCodesForCallingCode(e);return o?o.filter(function(i){return xT(t,i,n)}):[]}function xT(e,t,n){var r=new jt(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var pf=2,PT=17,MT=3,an="0-90-9٠-٩۰-۹",LT="-‐-―−ー-",DT="//",FT="..",BT="  ­​⁠ ",UT="()()[]\\[\\]",jT="~⁓∼~",Jn="".concat(LT).concat(DT).concat(FT).concat(BT).concat(UT).concat(jT),rc="++",HT=new RegExp("(["+an+"])");function N1(e,t,n,r){if(t){var o=new jt(r);o.selectNumberingPlan(t,n);var i=new RegExp(o.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var s=e.match(HT);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return e}}}function mf(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var o,i,s=r.length-1,a=s>0&&r[s];if(t.nationalPrefixTransformRule()&&a)o=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(i=r[1]);else{var c=r[0];o=e.slice(c.length),a&&(i=r[1])}var d;if(a){var f=e.indexOf(r[1]),u=e.slice(0,f);u===t.numberingPlan.nationalPrefix()&&(d=t.numberingPlan.nationalPrefix())}else d=r[0];return{nationalNumber:o,nationalPrefix:d,carrierCode:i}}}return{nationalNumber:e}}function zT(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=qT(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.
11
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qT(e,t){if(e){if(typeof e=="string")return I1(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)?I1(e,t):void 0}}function I1(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 O1(e,t){var n=t.countries,r=t.metadata;r=new jt(r);for(var o=zT(n),i;!(i=o()).done;){var s=i.value;if(r.selectNumberingPlan(s),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return s}else if(uf({phone:e,country:s},void 0,r.metadata))return s}}function _f(e,t){var n=t.nationalNumber,r=t.metadata,o=r.getCountryCodesForCallingCode(e);if(o)return o.length===1?o[0]:O1(n,{countries:o,metadata:r.metadata})}function hf(e,t,n){var r=mf(e,n),o=r.carrierCode,i=r.nationalNumber;if(i!==e){if(!WT(e,i,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=_f(n.numberingPlan.callingCode(),{nationalNumber:i,metadata:n})),!GT(i,t,n)))return{nationalNumber:e}}return{nationalNumber:i,carrierCode:o}}function WT(e,t,n){return!(Nr(e,n.nationalNumberPattern())&&!Nr(t,n.nationalNumberPattern()))}function GT(e,t,n){switch(nc(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function R1(e,t,n,r,o){var i=t||n?df(t||n,o):r;if(e.indexOf(i)===0){o=new jt(o),o.selectNumberingPlan(t||n,i);var s=e.slice(i.length),a=hf(s,t,o),c=a.nationalNumber,d=hf(e,t,o),f=d.nationalNumber;if(!Nr(f,o.nationalNumberPattern())&&Nr(c,o.nationalNumberPattern())||nc(f,t,o)==="TOO_LONG")return{countryCallingCode:i,number:s}}return{number:e}}function gf(e,t,n,r,o){if(!e)return{};var i;if(e[0]!=="+"){var s=N1(e,t||n,r,o);if(s&&s!==e)i=!0,e="+"+s;else{if(t||n||r){var a=R1(e,t,n,r,o),c=a.countryCallingCode,d=a.number;if(c)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:c,number:d}}return{number:e}}}if(e[1]==="0")return{};o=new jt(o);for(var f=2;f-1<=MT&&f<=e.length;){var u=e.slice(1,f);if(o.hasCallingCode(u))return o.selectNumberingPlan(u),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u,number:e.slice(f)};f++}return{}}function x1(e){return e.replace(new RegExp("[".concat(Jn,"]+"),"g")," ").trim()}var P1=/(\$\d)/;function M1(e,t,n){var r=n.useInternationalFormat,o=n.withNationalPrefix;n.carrierCode,n.metadata;var i=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():o&&t.nationalPrefixFormattingRule()?t.format().replace(P1,t.nationalPrefixFormattingRule()):t.format());return r?x1(i):i}var YT=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function KT(e,t,n){var r=new jt(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(YT.test(r.IDDPrefix()))return r.IDDPrefix()}var XT=";ext=",Ti=function(t){return"([".concat(an,"]{1,").concat(t,"})")};function L1(e){var t="20",n="15",r="9",o="6",i="[  \\t,]*",s="[:\\..]?[  \\t,-]*",a="#?",c="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",f="[- ]+",u="[  \\t]*",p="(?:,{2}|;)",m=XT+Ti(t),_=i+c+s+Ti(t)+a,y=i+d+s+Ti(r)+a,g=f+Ti(o)+"#",h=u+p+s+Ti(n)+a,b=u+"(?:,)+"+s+Ti(r)+a;return m+"|"+_+"|"+y+"|"+g+"|"+h+"|"+b}var JT="["+an+"]{"+pf+"}",ZT="["+rc+"]{0,1}(?:["+Jn+"]*["+an+"]){3,}["+Jn+an+"]*",QT=new RegExp("^["+rc+"]{0,1}(?:["+Jn+"]*["+an+"]){1,2}$","i"),VT=ZT+"(?:"+L1()+")?",ew=new RegExp("^"+JT+"$|^"+VT+"$","i");function tw(e){return e.length>=pf&&ew.test(e)}function nw(e){return QT.test(e)}function rw(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 D1={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function ow(e,t,n,r){if(n?n=aw({},D1,n):n=D1,r=new jt(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 o=r.countryCallingCode(),i=n.v2?e.nationalNumber:e.phone,s;switch(t){case"NATIONAL":return i?(s=oc(i,e.carrierCode,"NATIONAL",r,n),yf(s,e.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return i?(s=oc(i,null,"INTERNATIONAL",r,n),s="+".concat(o," ").concat(s),yf(s,e.ext,r,n.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(i);case"RFC3966":return rw({number:"+".concat(o).concat(i),ext:e.ext});case"IDD":if(!n.fromCountry)return;var a=sw(i,e.carrierCode,o,n.fromCountry,r);return a?yf(a,e.ext,r,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function oc(e,t,n,r,o){var i=iw(r.formats(),e);return i?M1(e,i,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&o&&o.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function iw(e,t){return lw(e,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(t.search(r)!==0)return!1}return Nr(t,n.pattern())})}function yf(e,t,n,r){return t?r(e,t,n):e}function sw(e,t,n,r,o){var i=df(r,o.metadata);if(i===n){var s=oc(e,t,"NATIONAL",o);return n==="1"?n+" "+s:s}var a=KT(r,void 0,o.metadata);if(a)return"".concat(a," ").concat(n," ").concat(oc(e,null,"INTERNATIONAL",o))}function aw(){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 o in n[e])n[0][o]=n[e][o];e++}return n[0]}function lw(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function Qs(e){"@babel/helpers - typeof";return Qs=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},Qs(e)}function F1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function B1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F1(Object(n),!0).forEach(function(r){cw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cw(e,t,n){return(t=U1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uw(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,U1(r.key),r)}}function fw(e,t,n){return t&&uw(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function U1(e){var t=pw(e,"string");return Qs(t)=="symbol"?t:t+""}function pw(e,t){if(Qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var j1=(function(){function e(t,n,r){if(dw(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(Lo(n)&&Lo(n.countries)){r=n;var o=t;if(!hw.test(o))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var i=gf(o,void 0,void 0,void 0,r),s=i.countryCallingCode,a=i.number;if(n=a,t=s,!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");w1(r);var c=_w(t,r),d=c.country,f=c.countryCallingCode;this.country=d,this.countryCallingCode=f,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return fw(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:RT(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return kT(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return OT(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new jt(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return uf(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return ow(this,n,r?B1(B1({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])})(),mw=function(t){return/^[A-Z]{2}$/.test(t)};function _w(e,t){var n,r,o=new jt(t);return mw(e)?(n=e,o.selectNumberingPlan(n),r=o.countryCallingCode()):r=e,{country:n,countryCallingCode:r}}var hw=/^\+\d+$/;function bf(e){"@babel/helpers - typeof";return bf=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},bf(e)}function gw(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function yw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bw(e,t,n){return t=ea(t),vw(e,Ef()?Reflect.construct(t,n||[],ea(e).constructor):t.apply(e,n))}function vw(e,t){if(t&&(bf(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ew(e)}function Ew(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $w(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&&Vs(e,t)}function vf(e){var t=typeof Map=="function"?new Map:void 0;return vf=function(r){if(r===null||!Tw(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return Sw(r,arguments,ea(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Vs(o,r)},vf(e)}function Sw(e,t,n){if(Ef())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Vs(o,n.prototype),o}function Ef(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ef=function(){return!!e})()}function Tw(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Vs(e,t){return Vs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Vs(e,t)}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ea(e)}var Ir=(function(e){function t(n){var r;return yw(this,t),r=bw(this,t,[n]),Object.setPrototypeOf(r,t.prototype),r.name=r.constructor.name,r}return $w(t,e),gw(t)})(vf(Error)),H1=new RegExp("(?:"+L1()+")$","i");function ww(e){var t=e.search(H1);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(H1),o=1;o<r.length;){if(r[o])return{number:n,ext:r[o]};o++}}function Aw(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=kw(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.
12
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kw(e,t){if(e){if(typeof e=="string")return z1(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)?z1(e,t):void 0}}function z1(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 Cw={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function q1(e){return Cw[e]}function ic(e){for(var t="",n=Aw(e.split("")),r;!(r=n()).done;){var o=r.value,i=q1(o);i&&(t+=i)}return t}function Nw(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=Iw(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.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iw(e,t){if(e){if(typeof e=="string")return W1(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)?W1(e,t):void 0}}function W1(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 G1(e){for(var t="",n=Nw(e.split("")),r;!(r=n()).done;){var o=r.value;t+=Ow(o,t)||""}return t}function Ow(e,t,n){return e==="+"?t?void 0:"+":q1(e)}var Y1="+",Rw="[\\-\\.\\(\\)]?",K1="(["+an+"]|"+Rw+")",xw="^\\"+Y1+K1+"*["+an+"]"+K1+"*$",Pw=new RegExp(xw,"g"),$f=an,Mw="["+$f+"]+((\\-)*["+$f+"])*",Lw="a-zA-Z",Dw="["+Lw+"]+((\\-)*["+$f+"])*",Fw="^("+Mw+"\\.)*"+Dw+"\\.?$",Bw=new RegExp(Fw,"g"),X1="tel:",Sf=";phone-context=",Uw=";isub=";function jw(e){var t=e.indexOf(Sf);if(t<0)return null;var n=t+Sf.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function Hw(e){return e===null?!0:e.length===0?!1:Pw.test(e)||Bw.test(e)}function zw(e,t){var n=t.extractFormattedPhoneNumber,r=jw(e);if(!Hw(r))throw new Ir("NOT_A_NUMBER");var o;if(r===null)o=n(e)||"";else{o="",r.charAt(0)===Y1&&(o+=r);var i=e.indexOf(X1),s;i>=0?s=i+X1.length:s=0;var a=e.indexOf(Sf);o+=e.substring(s,a)}var c=o.indexOf(Uw);if(c>0&&(o=o.substring(0,c)),o!=="")return o}var qw=250,Ww=new RegExp("["+rc+an+"]"),Gw=new RegExp("[^"+an+"#]+$");function Yw(e,t,n){if(t=t||{},n=new jt(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new Ir("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=Xw(e,t.v2,t.extract),o=r.number,i=r.ext,s=r.error;if(!o){if(t.v2)throw s==="TOO_SHORT"?new Ir("TOO_SHORT"):new Ir("NOT_A_NUMBER");return{}}var a=Zw(o,t.defaultCountry,t.defaultCallingCode,n),c=a.country,d=a.nationalNumber,f=a.countryCallingCode,u=a.countryCallingCodeSource,p=a.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Ir("INVALID_COUNTRY");return{}}if(!d||d.length<pf){if(t.v2)throw new Ir("TOO_SHORT");return{}}if(d.length>PT){if(t.v2)throw new Ir("TOO_LONG");return{}}if(t.v2){var m=new j1(f,d,n.metadata);return c&&(m.country=c),p&&(m.carrierCode=p),i&&(m.ext=i),m.__countryCallingCodeSource=u,m}var _=(t.extended?n.hasSelectedNumberingPlan():c)?Nr(d,n.nationalNumberPattern()):!1;return t.extended?{country:c,countryCallingCode:f,carrierCode:p,valid:_,possible:_?!0:!!(t.extended===!0&&n.possibleLengths()&&k1(d,c,n)),phone:d,ext:i}:_?Jw(c,d,i):{}}function Kw(e,t,n){if(e){if(e.length>qw){if(n)throw new Ir("TOO_LONG");return}if(t===!1)return e;var r=e.search(Ww);if(!(r<0))return e.slice(r).replace(Gw,"")}}function Xw(e,t,n){var r=zw(e,{extractFormattedPhoneNumber:function(s){return Kw(s,n,t)}});if(!r)return{};if(!tw(r))return nw(r)?{error:"TOO_SHORT"}:{};var o=ww(r);return o.ext?o:{number:r}}function Jw(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function Zw(e,t,n,r){var o=gf(G1(e),void 0,t,n,r.metadata),i=o.countryCallingCodeSource,s=o.countryCallingCode,a=o.number,c;if(s)r.selectNumberingPlan(s);else if(a&&(t||n))r.selectNumberingPlan(t,n),t&&(c=t),s=n||df(t,r.metadata);else return{};if(!a)return{countryCallingCodeSource:i,countryCallingCode:s};var d=hf(G1(a),c,r),f=d.nationalNumber,u=d.carrierCode,p=_f(s,{nationalNumber:f,metadata:r});return p&&(c=p,p==="001"||r.selectNumberingPlan(c)),{country:c,countryCallingCode:s,countryCallingCodeSource:i,nationalNumber:f,carrierCode:u}}function ta(e){"@babel/helpers - typeof";return ta=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},ta(e)}function J1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Z1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J1(Object(n),!0).forEach(function(r){Qw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qw(e,t,n){return(t=Vw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vw(e){var t=eA(e,"string");return ta(t)=="symbol"?t:t+""}function eA(e,t){if(ta(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ta(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tA(e,t,n){return Yw(e,Z1(Z1({},t),{},{v2:!0}),n)}function na(e){"@babel/helpers - typeof";return na=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},na(e)}function Q1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function nA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q1(Object(n),!0).forEach(function(r){rA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rA(e,t,n){return(t=oA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oA(e){var t=iA(e,"string");return na(t)=="symbol"?t:t+""}function iA(e,t){if(na(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(na(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sA(e,t){return dA(e)||cA(e,t)||lA(e,t)||aA()}function aA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lA(e,t){if(e){if(typeof e=="string")return V1(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)?V1(e,t):void 0}}function V1(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 cA(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,d=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return a}}function dA(e){if(Array.isArray(e))return e}function uA(e){var t=Array.prototype.slice.call(e),n=sA(t,4),r=n[0],o=n[1],i=n[2],s=n[3],a,c,d;if(typeof r=="string")a=r;else throw new TypeError("A text for parsing must be a string.");if(!o||typeof o=="string")s?(c=i,d=s):(c=void 0,d=i),o&&(c=nA({defaultCountry:o},c));else if(Lo(o))i?(c=o,d=i):d=o;else throw new Error("Invalid second argument: ".concat(o));return{text:a,options:c,metadata:d}}function ra(e){"@babel/helpers - typeof";return ra=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},ra(e)}function eg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eg(Object(n),!0).forEach(function(r){fA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fA(e,t,n){return(t=pA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pA(e){var t=mA(e,"string");return ra(t)=="symbol"?t:t+""}function mA(e,t){if(ra(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ra(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _A(e,t,n){t&&t.defaultCountry&&!wT(t.defaultCountry,n)&&(t=tg(tg({},t),{},{defaultCountry:void 0}));try{return tA(e,t,n)}catch(r){if(!(r instanceof Ir))throw r}}function hA(){var e=uA(arguments),t=e.text,n=e.options,r=e.metadata;return _A(t,n,r)}function oa(e){"@babel/helpers - typeof";return oa=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},oa(e)}function gA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yA(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,vA(r.key),r)}}function bA(e,t,n){return t&&yA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vA(e){var t=EA(e,"string");return oa(t)=="symbol"?t:t+""}function EA(e,t){if(oa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $A=(function(){function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;gA(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}return bA(e,[{key:"reset",value:function(n){var r=n.country,o=n.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(r,o)}},{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(n){for(var r=0,o=Object.keys(n);r<o.length;r++){var i=o[r];this[i]=n[i]}}},{key:"initCountryAndCallingCode",value:function(n,r){this.setCountry(n),this.setCallingCode(r)}},{key:"setCountry",value:function(n){this.country=n,this.onCountryChange(n)}},{key:"setCallingCode",value:function(n){this.callingCode=n,this.onCallingCodeChange(n,this.country)}},{key:"startInternationalNumber",value:function(n,r){this.international=!0,this.initCountryAndCallingCode(n,r)}},{key:"appendDigits",value:function(n){this.digits+=n}},{key:"appendNationalSignificantNumberDigits",value:function(n){this.nationalSignificantNumber+=n}},{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 SA(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=TA(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.
15
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TA(e,t){if(e){if(typeof e=="string")return ng(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)?ng(e,t):void 0}}function ng(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 Zn="x",Tf=new RegExp(Zn);function sc(e,t){if(t<1)return"";for(var n="";t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function rg(e,t){return e[t]===")"&&t++,wA(e.slice(0,t))}function wA(e){for(var t=[],n=0;n<e.length;)e[n]==="("?t.push(n):e[n]===")"&&t.pop(),n++;var r=0,o="";t.push(e.length);for(var i=0,s=t;i<s.length;i++){var a=s[i];o+=e.slice(r,a),r=a+1}return o}function AA(e,t,n){for(var r=SA(n.split("")),o;!(o=r()).done;){var i=o.value;if(e.slice(t+1).search(Tf)<0)return;t=e.search(Tf),e=e.replace(Tf,i)}return[e,t]}function kA(e,t,n){var r=n.metadata,o=n.shouldTryNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix,s=new RegExp("^(?:".concat(t.pattern(),")$"));if(s.test(e.nationalSignificantNumber))return NA(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:o,getSeparatorAfterNationalPrefix:i})}function CA(e,t,n){return nc(e,t,n)==="IS_POSSIBLE"}function NA(e,t,n){var r=n.metadata,o=n.shouldTryNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,o(t)){var s=og(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:i,metadata:r});if(s)return s}return og(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:i,metadata:r})}function og(e,t,n){var r=n.metadata,o=n.useNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix,s=M1(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:o,metadata:r});if(o||(e.nationalPrefix?s=e.nationalPrefix+i(t)+s:e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(s=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+" "+s)),IA(s,e))return s}function IA(e,t){return ic(e)===t.getNationalDigits()}function ia(e){"@babel/helpers - typeof";return ia=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},ia(e)}function OA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RA(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,PA(r.key),r)}}function xA(e,t,n){return t&&RA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function PA(e){var t=MA(e,"string");return ia(t)=="symbol"?t:t+""}function MA(e,t){if(ia(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ia(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var LA=(function(){function e(){OA(this,e)}return xA(e,[{key:"parse",value:function(n){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(n),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var r=this.context[0],o=r.branches,i=r.instructions;if(o)return{op:"|",args:o.concat([wf(i)])};if(i.length===0)throw new Error("Pattern is required");return i.length===1?i[0]:i}},{key:"startContext",value:function(n){this.context.push(n)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(n){if(!n)throw new Error("Pattern is required");var r=n.match(BA);if(!r){if(FA.test(n))throw new Error("Illegal characters found in a pattern: ".concat(n));this.getContext().instructions=this.getContext().instructions.concat(n.split(""));return}var o=r[1],i=n.slice(0,r.index),s=n.slice(r.index+o.length);switch(o){case"(?:":i&&this.parsePattern(i),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(i&&this.parsePattern(i),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var a=this.getContext(),c=a.branches;c.push(wf(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:c});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(i&&this.parsePattern(i),!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(wf(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":i&&this.parsePattern(i),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:DA(i)});break;default:throw new Error("Unknown operator: ".concat(o))}s&&this.parsePattern(s)}}])})();function DA(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,o=e[n+1].charCodeAt(0)-1,i=r;i<=o;)t.push(String.fromCharCode(i)),i++}else t.push(e[n]);n++}return t}var FA=/[\(\)\[\]\?\:\|]/,BA=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function wf(e){return e.length===1?e[0]:e}function ig(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=UA(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.
16
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UA(e,t){if(e){if(typeof e=="string")return sg(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)?sg(e,t):void 0}}function sg(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 sa(e){"@babel/helpers - typeof";return sa=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},sa(e)}function jA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HA(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,qA(r.key),r)}}function zA(e,t,n){return t&&HA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qA(e){var t=WA(e,"string");return sa(t)=="symbol"?t:t+""}function WA(e,t){if(sa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var GA=(function(){function e(t){jA(this,e),this.matchTree=new LA().parse(t)}return zA(e,[{key:"match",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.allowOverflow;if(!n)throw new Error("String is required");var i=Af(n.split(""),this.matchTree,!0);if(i&&i.match&&delete i.matchedChars,!(i&&i.overflow&&!o))return i}}])})();function Af(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 o=e.slice(),i=0;i<t.length;){var s=t[i],a=Af(o,s,n&&i===t.length-1);if(a){if(a.overflow)return a;if(a.match){if(o=o.slice(a.matchedChars.length),o.length===0)return i===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else{if(a.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
17
+ `.concat(JSON.stringify(a,null,2)))}}else return;i++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-o.length)}}switch(t.op){case"|":for(var c,d=ig(t.args),f;!(f=d()).done;){var u=f.value,p=Af(e,u,n);if(p){if(p.overflow)return p;if(p.match)return{match:!0,matchedChars:p.matchedChars};if(p.partialMatch)c=!0;else throw new Error(`Unsupported match result:
18
+ `.concat(JSON.stringify(p,null,2)))}}return c?{partialMatch:!0}:void 0;case"[]":for(var m=ig(t.args),_;!(_=m()).done;){var y=_.value;if(e[0]===y)return e.length===1?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[y]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function aa(e){"@babel/helpers - typeof";return aa=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},aa(e)}function ag(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=YA(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.
19
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YA(e,t){if(e){if(typeof e=="string")return lg(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)?lg(e,t):void 0}}function lg(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 KA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XA(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 JA(e,t,n){return t&&XA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZA(e){var t=QA(e,"string");return aa(t)=="symbol"?t:t+""}function QA(e,t){if(aa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(aa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kf="9",VA=15,ek=sc(kf,VA),tk=/[- ]/,nk=function(){return/\[([^\[\]])*\]/g},rk=function(){return/\d(?=[^,}][^,}])/g},ok=new RegExp("["+Jn+"]*\\$1["+Jn+"]*(\\$\\d["+Jn+"]*)*$"),cg=3,ik=(function(){function e(t){t.state;var n=t.metadata;KA(this,e),this.metadata=n,this.resetFormat()}return JA(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(n,r){this.resetFormat(),n?(this.isNANP=n.callingCode()==="1",this.matchingFormats=n.formats(),r.nationalSignificantNumber&&this.narrowDownMatchingFormats(r)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(n,r){var o=this;if(CA(r.nationalSignificantNumber,r.country,this.metadata))for(var i=ag(this.matchingFormats),s;!(s=i()).done;){var a=s.value,c=kA(r,a,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(f){return o.shouldTryNationalPrefixFormattingRule(f,{international:r.international,nationalPrefix:r.nationalPrefix})},getSeparatorAfterNationalPrefix:function(f){return o.getSeparatorAfterNationalPrefix(f)}});if(c)return this.resetFormat(),this.chosenFormat=a,this.setNationalNumberTemplate(c.replace(/\d/g,Zn),r),this.populatedNationalNumberTemplate=c,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(Zn),c}return this.formatNationalNumberWithNextDigits(n,r)}},{key:"formatNationalNumberWithNextDigits",value:function(n,r){var o=this.chosenFormat,i=this.chooseFormat(r);if(i)return i===o?this.formatNextNationalNumberDigits(n):this.formatNextNationalNumberDigits(r.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(n){var r=this,o=n.nationalSignificantNumber,i=n.nationalPrefix,s=n.international,a=o,c=a.length-cg;c<0&&(c=0),this.matchingFormats=this.matchingFormats.filter(function(d){return r.formatSuits(d,s,i)&&r.formatMatches(d,a,c)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(n,r,o){return!(o&&!n.usesNationalPrefix()&&!n.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r&&!o&&n.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(n,r,o){var i=n.leadingDigitsPatterns().length;if(i===0)return!0;o=Math.min(o,i-1);var s=n.leadingDigitsPatterns()[o];if(r.length<cg)try{return new GA(s).match(r,{allowOverflow:!0})!==void 0}catch(a){return console.error(a),!0}return new RegExp("^(".concat(s,")")).test(r)}},{key:"getFormatFormat",value:function(n,r){return r?n.internationalFormat():n.format()}},{key:"chooseFormat",value:function(n){for(var r=this,o=function(){var d=a.value;return r.chosenFormat===d?0:ok.test(r.getFormatFormat(d,n.international))?r.createTemplateForFormat(d,n)?(r.chosenFormat=d,0):(r.matchingFormats=r.matchingFormats.filter(function(f){return f!==d}),1):1},i,s=ag(this.matchingFormats.slice()),a;!(a=s()).done&&(i=o(),i!==0););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(n,r){if(!(n.pattern().indexOf("|")>=0)){var o=this.getTemplateForFormat(n,r);if(o)return this.setNationalNumberTemplate(o,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&tk.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var o=n.IDDPrefix,i=n.missingPlus;return o?r&&r.spacing===!1?o:o+" ":i?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,o=0,i=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";o<i.length+n.getDigitsWithoutInternationalPrefix().length;)r=this.template.indexOf(Zn,r+1),o++;return rg(this.template,r+1)}}},{key:"setNationalNumberTemplate",value:function(n,r){this.nationalNumberTemplate=n,this.populatedNationalNumberTemplate=n,this.populatedNationalNumberTemplatePosition=-1,r.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(r).replace(/[\d\+]/g,Zn)+sc(Zn,r.callingCode.length)+" "+n:this.template=n}},{key:"getTemplateForFormat",value:function(n,r){var o=r.nationalSignificantNumber,i=r.international,s=r.nationalPrefix,a=r.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,c=n.pattern();c=c.replace(nk(),"\\d").replace(rk(),"\\d");var d=ek.match(c)[0];if(!(o.length>d.length)){var f=new RegExp("^"+c+"$"),u=o.replace(/\d/g,kf);f.test(u)&&(d=u);var p=this.getFormatFormat(n,i),m;if(this.shouldTryNationalPrefixFormattingRule(n,{international:i,nationalPrefix:s})){var _=p.replace(P1,n.nationalPrefixFormattingRule());if(ic(n.nationalPrefixFormattingRule())===(s||"")+ic("$1")&&(p=_,m=!0,s))for(var y=s.length;y>0;)p=p.replace(/\d/,Zn),y--}var g=d.replace(new RegExp(c),p).replace(new RegExp(kf,"g"),Zn);return m||(a?g=sc(Zn,a.length)+" "+g:s&&(g=sc(Zn,s.length)+this.getSeparatorAfterNationalPrefix(n)+g)),i&&(g=x1(g)),g}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=AA(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],rg(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var o=r.international,i=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var s=n.usesNationalPrefix();if(s&&i||!s&&!o)return!0}}}])})();function la(e){"@babel/helpers - typeof";return la=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},la(e)}function dg(e,t){return ck(e)||lk(e,t)||ak(e,t)||sk()}function sk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ak(e,t){if(e){if(typeof e=="string")return ug(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)?ug(e,t):void 0}}function ug(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 lk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,d=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return a}}function ck(e){if(Array.isArray(e))return e}function dk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uk(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,pk(r.key),r)}}function fk(e,t,n){return t&&uk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pk(e){var t=mk(e,"string");return la(t)=="symbol"?t:t+""}function mk(e,t){if(la(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(la(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _k="["+Jn+an+"]+",hk=new RegExp("^"+_k+"$","i"),gk="(?:["+rc+"]["+Jn+an+"]*|["+Jn+an+"]+)",yk=new RegExp("[^"+Jn+an+"]+.*$"),bk=/[^\d\[\]]/,vk=(function(){function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,o=t.metadata,i=t.onNationalSignificantNumberChange;dk(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=o,this.onNationalSignificantNumberChange=i}return fk(e,[{key:"input",value:function(n,r){var o=Sk(n),i=dg(o,2),s=i[0],a=i[1],c=ic(s),d;return a&&(r.digits||(r.startInternationalNumber(void 0,void 0),c||(d=!0))),c&&this.inputDigits(c,r),{digits:c,justLeadingPlus:d}}},{key:"inputDigits",value:function(n,r){var o=r.digits,i=o.length<3&&o.length+n.length>=3;if(r.appendDigits(n),i&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(s){return r.update(s)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,o=n.callingCode;return r&&!o}},{key:"extractCountryCallingCode",value:function(n){var r=gf("+"+n.getDigitsWithoutInternationalPrefix(),n.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),o=r.countryCallingCode,i=r.number;if(o)return n.setCallingCode(o),n.update({nationalSignificantNumber:i}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&bk.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var o=mf(n,this.metadata),i=o.nationalPrefix,s=o.nationalNumber,a=o.carrierCode;if(s!==n)return this.onExtractedNationalNumber(i,a,s,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,o){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,o);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var i=mf(n,this.metadata),s=i.nationalPrefix,a=i.nationalNumber,c=i.carrierCode;if(a!==r)return this.onExtractedNationalNumber(s,c,a,n,o),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,o,i,s){var a=!1,c,d=i.lastIndexOf(o);if(d<0||d!==i.length-o.length)a=!0;else{var f=i.slice(0,d);f&&f!==n&&(c=f)}s({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:o,nationalSignificantNumberIsModified:a,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:c}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,o=n.IDDPrefix,i=n.digits;if(n.nationalSignificantNumber,!(r||o)){var s=N1(i,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(s!==void 0&&s!==i)return n.update({IDDPrefix:i.slice(0,i.length-s.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=R1(n.digits,n.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),o=r.countryCallingCode;if(o)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:o}),!0}}},{key:"startInternationalNumber",value:function(n,r){var o=r.country,i=r.callingCode;n.startInternationalNumber(o,i),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}])})();function Ek(e){var t=e.search(gk);if(!(t<0)){e=e.slice(t);var n;return e[0]==="+"&&(n=!0,e=e.slice(1)),e=e.replace(yk,""),n&&(e="+"+e),e}}function $k(e){var t=Ek(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function Sk(e){var t=$k(e),n=dg(t,2),r=n[0],o=n[1];return hk.test(r)||(r=""),[r,o]}function ca(e){"@babel/helpers - typeof";return ca=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},ca(e)}function Tk(e,t){return Ck(e)||kk(e,t)||Ak(e,t)||wk()}function wk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
21
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ak(e,t){if(e){if(typeof e=="string")return fg(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)?fg(e,t):void 0}}function fg(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 kk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,d=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return a}}function Ck(e){if(Array.isArray(e))return e}function Nk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ik(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,Rk(r.key),r)}}function Ok(e,t,n){return t&&Ik(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rk(e){var t=xk(e,"string");return ca(t)=="symbol"?t:t+""}function xk(e,t){if(ca(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ca(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pg=(function(){function e(t,n){Nk(this,e),this.metadata=new jt(n);var r=this.getCountryAndCallingCode(t),o=Tk(r,2),i=o[0],s=o[1];this.defaultCountry=i,this.defaultCallingCode=s,this.reset()}return Ok(e,[{key:"getCountryAndCallingCode",value:function(n){var r,o;return n&&(Lo(n)?(r=n.defaultCountry,o=n.defaultCallingCode):r=n),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,o]}},{key:"input",value:function(n){var r=this.parser.input(n,this.state),o=r.digits,i=r.justLeadingPlus;if(i)this.formattedOutput="+";else if(o){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var s;if(this.metadata.hasSelectedNumberingPlan()&&(s=this.formatter.format(o,this.state)),s===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var a=this.state.getNationalDigits();a&&(s=this.formatter.format(a,this.state))}this.formattedOutput=s?this.getFullNumber(s):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new $A({onCountryChange:function(o){n.country=o},onCallingCodeChange:function(o,i){n.metadata.selectNumberingPlan(i,o),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new ik({state:this.state,metadata:this.metadata}),this.parser=new vk({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.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 n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var r=this;if(this.isInternational()){var o=function(a){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!a})+a},i=this.state.callingCode;return o(i?n?"".concat(i," ").concat(n):i:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,r=n.nationalSignificantNumber,o=n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,i=n.nationalPrefix,s=r,a=o||i;return a&&(s=a+s),s}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(n?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,Zn)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(n);return r&&r.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(_f(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,o=n.callingCode,i=n.country,s=n.nationalSignificantNumber;if(r){if(this.isInternational())return o?"+"+o+s:"+"+r;if(i||o){var a=i?this.metadata.countryCallingCode():o;return"+"+a+s}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,o=n.carrierCode,i=n.callingCode,s=this._getCountry();if(r&&!(!s&&!i)){if(s&&s===this.defaultCountry){var a=new jt(this.metadata.metadata);a.selectNumberingPlan(s);var c=a.numberingPlan.callingCode(),d=this.metadata.getCountryCodesForCallingCode(c);if(d.length>1){var f=O1(r,{countries:d,metadata:this.metadata.metadata});f&&(s=f)}}var u=new j1(s||i,r,this.metadata.metadata);return o&&(u.carrierCode=o),u}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.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 Pk(){return pT(hA,arguments)}function ac(e){return pg.call(this,e,v1)}ac.prototype=Object.create(pg.prototype,{}),ac.prototype.constructor=ac;const Mk=[{local:"690",intl:"+590"},{local:"691",intl:"+590"},{local:"590",intl:"+590"},{local:"696",intl:"+596"},{local:"697",intl:"+596"},{local:"596",intl:"+596"},{local:"694",intl:"+594"},{local:"594",intl:"+594"},{local:"692",intl:"+262"},{local:"693",intl:"+262"},{local:"262",intl:"+262"},{local:"269",intl:"+262"}];function mg(e){const t=(e||"").replace(/[\s.\-()]/g,"");if(!t.startsWith("0"))return e;const n=t.slice(1);for(const{local:r,intl:o}of Mk)if(n.startsWith(r))return o+n.slice(r.length);return e}function Lk(e,t={}){if(e==null||e==="")return!0;const{phoneType:n="both",defaultCountry:r,acceptedCountries:o=[]}=t,i=mg(String(e)),s=Pk(i,i.trim().startsWith("+")?void 0:r);if(!s||!s.isValid())return"Le numéro de téléphone n’est pas valide.";if(o.length>0&&(!s.country||!o.includes(s.country)))return"Le numéro de téléphone n’est pas accepté pour ce pays.";const a=s.getType(),c=a==="MOBILE"||a==="FIXED_LINE_OR_MOBILE",d=a==="FIXED_LINE"||a==="FIXED_LINE_OR_MOBILE";return n==="mobile"&&!c?"Veuillez saisir un numéro de téléphone mobile.":n==="fixed"&&!d?"Veuillez saisir un numéro de téléphone fixe.":!0}function Cf(e){return(e||"").replace(/\s+/g,"").toUpperCase()}function Dk(e){return Cf(e).slice(0,2)}const Fk={FR:27,BE:16,LU:20,DE:22,NL:18,ES:24,IT:27,PT:25,GB:22,IE:22,AT:20,PL:28,SI:19,BG:22,RO:24,GR:27,CH:21,MC:27};function Bk(e){const t=Cf(e);if(!/^[A-Z]{2}\d{2}[A-Z0-9]+$/.test(t))return!1;const n=Fk[t.slice(0,2)];if(n&&t.length!==n)return!1;const r=t.slice(4)+t.slice(0,4);let o=0;for(const i of r){const s=i>="A"&&i<="Z"?(i.charCodeAt(0)-55).toString():i;for(const a of s)o=(o*10+Number(a))%97}return o===1}function Uk(e){return Cf(e).replace(/(.{4})/g,"$1 ").trim()}function jk(e){return e==null||e===""?!0:Bk(String(e))||"L’IBAN saisi n’est pas valide."}function Hk(e,t=[]){if(e==null||e===""||t.length===0)return!0;const n=Dk(String(e));return t.map(r=>r.toUpperCase()).includes(n)||"Le pays de cet IBAN n’est pas accepté pour cette opération."}function zk(e,t){if(e==null||e==="")return!0;const n=String(e).replace(/\D/g,"");return String(t||"").replace(/\D/g,"").length!==6||n.length!==8,!0}function qk(e){const n=(e||"").replace(/\s+/g,"").toUpperCase().replace("2A","19").replace("2B","18");if(!/^\d{15}$/.test(n))return!1;const r=n.slice(0,13),o=Number(n.slice(13,15));return 97-Number(r)%97===o}function Wk(e){return e==null||e===""?!0:qk(String(e))||"Le numéro de sécurité sociale n’est pas valide."}const _g=/^(?:0[1-9]|[1-8]\d|9[0-5])\d{3}$/,Gk=/^(?:97|98)/;function Nf(e){return Array.isArray(e)?e.flat(1/0).map(t=>String(t).toLowerCase()):[]}function Yk(e){const t=Nf(e);return t.length===1&&(t[0]==="fr"||t[0]==="fr-metro")}function hg(e){return Nf(e).includes("fr-metro")}function Kk(e){return _g.test(String(e??"").trim())}function If(e){return Gk.test(String(e??"").trim())}function Xk(e){return Nf(e).map(t=>t==="fr-metro"?"fr":t)}const gg={fr:/^\d{5}$/,"fr-metro":_g,be:/^[1-9]\d{3}$/,lu:/^[1-9]\d{3}$/,at:/^[1-9]\d{3}$/,nl:/^\d{4}\s?[A-Za-z]{2}$/,de:/^[1-9]\d{4}$/,no:/^(?!0000)\d{4}$/};function Jk(e,t=[]){if(e==null||e==="")return!0;const n=String(e).trim(),o=t.map(s=>s.toLowerCase()).filter(s=>gg[s]);return o.length===0?!0:o.some(s=>gg[s].test(n))||"Le code postal n’est pas valide."}async function Zk(e,t){if(e==null||e==="")return!0;const{field:n,operationId:r,server:o}=t,i=(o||"").replace(/\/$/,"");try{const{data:s}=await nt.post(`${i}/api/check/${r}`,{operationId:r,[n]:e});return s?.status==="OK"?"Une participation existe déjà avec cette valeur (1 participation par foyer).":!0}catch(s){return Mn(s,{where:"uniqueRule",field:n,operationId:r}),"La vérification d’unicité a échoué, veuillez réessayer."}}sn.extend(fT);function wi(e){return Array.isArray(e)?e:e==null?[]:typeof e=="object"?Object.values(e):[e]}function Of(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}let yg=!1;function bg(){if(yg)return;yg=!0;const e={required:U7,email:O7,min:l1,max:s1,min_value:c1,max_value:a1,numeric:D7,integer:R7,length:x7,digits:o1,regex:d1,one_of:cf,not_one_of:P7,confirmed:I7,size:j7,between:r1,url:H7,alpha_spaces:n1};for(const[t,n]of Object.entries(e))rn(t,n);rn("phone",(t,n)=>Lk(t,Of(n))),rn("iban",t=>jk(t)),rn("countryiban",(t,n)=>Hk(t,wi(n).map(String))),rn("iban_uk_modulus",(t,n)=>zk(t,String(wi(n)[0]??""))),rn("securitesocialefr",t=>Wk(t)),rn("checked",t=>t===!0?!0:"Ce champ est obligatoire."),rn("address_required",t=>{const n=t;return n&&typeof n=="object"&&n.address?!0:"L’adresse est obligatoire."}),rn("address_metropolitan",t=>{const n=t;return!n||typeof n!="object"||!n.postcode||Kk(n.postcode)?!0:"Cette offre n'est valable qu'en France métropolitaine et en Corse."}),rn("postalcode",(t,n)=>Jk(t,wi(n).map(String))),rn("unique",(t,n)=>{const r=Of(n);return Zk(t,{field:String(r.field??""),operationId:String(r.operationId??""),server:String(r.server??"")})}),rn("date_range",(t,n)=>{if(t==null||t==="")return!0;const r=Of(n),o=sn(String(t),["DD/MM/YYYY","YYYY-MM-DD"],!0);if(!o.isValid())return"La date n’est pas valide.";const i=r.min?sn(String(r.min)):null,s=r.max?sn(String(r.max)):null;return i&&i.isValid()&&o.isBefore(i,"day")?`La date doit être postérieure au ${i.format("DD/MM/YYYY")}.`:s&&s.isValid()&&o.isAfter(s,"day")?`La date doit être antérieure au ${s.format("DD/MM/YYYY")}.`:!0}),rn("date_between",(t,n)=>{if(t==null||t==="")return!0;const[r,o]=wi(n).map(s=>s?sn(String(s)):null),i=sn(String(t));return i.isValid()?r&&r.isValid()&&i.isBefore(r,"day")?`La date doit être postérieure au ${r.format("DD/MM/YYYY")}.`:o&&o.isValid()&&i.isAfter(o,"day")?`La date doit être antérieure au ${o.format("DD/MM/YYYY")}.`:!0:"La date n’est pas valide."}),rn("before",(t,n)=>{if(!t)return!0;const r=wi(n)[0],o=r?sn(String(r)):null;return!o||!o.isValid()||sn(String(t)).isBefore(o,"day")?!0:`La date doit être antérieure au ${o.format("DD/MM/YYYY")}.`}),rn("after",(t,n)=>{if(!t)return!0;const r=wi(n)[0],o=r?sn(String(r)):null;return!o||!o.isValid()||sn(String(t)).isAfter(o,"day")?!0:`La date doit être postérieure au ${o.format("DD/MM/YYYY")}.`}),t5({generateMessage:Y7({fr:K7,en:X7,es:J7,de:Z7,nl:Q7,it:V7,pl:eT,sl:tT,bg:nT,ro:rT,el:oT,pt:iT}),validateOnInput:!1,validateOnBlur:!0,validateOnChange:!0,validateOnModelUpdate:!1}),h1("fr")}function Qk(e){h1(e)}function fr(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const vg={};function Rf(e){vg[e]||(vg[e]=!0,fr(e))}const Qn=typeof window<"u";let wn,Do;if(process.env.NODE_ENV!=="production"){const e=Qn&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(wn=t=>{e.mark(t)},Do=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Vk=/\{([0-9a-zA-Z]+)\}/g;function lc(e,...t){return t.length===1&&Qe(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Vk,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const pr=(e,t=!1)=>t?Symbol.for(e):Symbol(e),eC=(e,t,n)=>tC({l:e,k:t,s:n}),tC=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Rt=e=>typeof e=="number"&&isFinite(e),Eg=e=>xf(e)==="[object Date]",Ai=e=>xf(e)==="[object RegExp]",cc=e=>Ke(e)&&Object.keys(e).length===0,xt=Object.assign,nC=Object.create,ot=(e=null)=>nC(e);let $g;const Fo=()=>$g||($g=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ot());function Sg(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function Tg(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function rC(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,o,i)=>`${o}="${Tg(i)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,o,i)=>`${o}='${Tg(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&fr("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript&#58;")}),e}const oC=Object.prototype.hasOwnProperty;function Ln(e,t){return oC.call(e,t)}const bt=Array.isArray,ft=e=>typeof e=="function",_e=e=>typeof e=="string",Ze=e=>typeof e=="boolean",Qe=e=>e!==null&&typeof e=="object",iC=e=>Qe(e)&&ft(e.then)&&ft(e.catch),wg=Object.prototype.toString,xf=e=>wg.call(e),Ke=e=>xf(e)==="[object Object]",sC=e=>e==null?"":bt(e)||Ke(e)&&e.toString===wg?JSON.stringify(e,null,2):String(e);function Pf(e,t=""){return e.reduce((n,r,o)=>o===0?n+r:n+t+r,"")}const Ag=2;function aC(e,t=0,n=e.length){const r=e.split(/\r?\n/);let o=0;const i=[];for(let s=0;s<r.length;s++)if(o+=r[s].length+1,o>=t){for(let a=s-Ag;a<=s+Ag||n>o;a++){if(a<0||a>=r.length)continue;const c=a+1;i.push(`${c}${" ".repeat(3-String(c).length)}| ${r[a]}`);const d=r[a].length;if(a===s){const f=t-(o-d)+1,u=Math.max(1,n>o?d-f:n-t);i.push(" | "+" ".repeat(f)+"^".repeat(u))}else if(a>s){if(n>o){const f=Math.max(Math.min(n-o,d),1);i.push(" | "+"^".repeat(f))}o+=d+1}}break}return i.join(`
22
+ `)}function dc(){const e=new Map;return{events:e,on(n,r){const o=e.get(n);o&&o.push(r)||e.set(n,[r])},off(n,r){const o=e.get(n);o&&o.splice(o.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(o=>o(r)),(e.get("*")||[]).slice().map(o=>o(n,r))}}}const uc=e=>!Qe(e)||bt(e);function fc(e,t){if(uc(e)||uc(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:o}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(Qe(r[i])&&!Qe(o[i])&&(o[i]=Array.isArray(r[i])?[]:ot()),uc(o[i])||uc(r[i])?o[i]=r[i]:n.push({src:r[i],des:o[i]}))})}}function lC(e,t,n){return{line:e,column:t,offset:n}}function Mf(e,t,n){return{start:e,end:t}}const Oe={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},cC=17,dC={[Oe.EXPECTED_TOKEN]:"Expected token: '{0}'",[Oe.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Oe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Oe.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Oe.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Oe.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Oe.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Oe.EMPTY_PLACEHOLDER]:"Empty placeholder",[Oe.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Oe.INVALID_LINKED_FORMAT]:"Invalid linked format",[Oe.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Oe.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Oe.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Oe.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Oe.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Oe.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function ki(e,t,n={}){const{domain:r,messages:o,args:i}=n,s=process.env.NODE_ENV!=="production"?lc((o||dC)[e]||"",...i||[]):e,a=new SyntaxError(String(s));return a.code=e,t&&(a.location=t),a.domain=r,a}function uC(e){throw e}const fC=/<\/?[\w\s="/.':;#-\/]+>/,pC=e=>fC.test(e),mr=" ",mC="\r",Vt=`
23
+ `,_C="\u2028",hC="\u2029";function gC(e){const t=e;let n=0,r=1,o=1,i=0;const s=$=>t[$]===mC&&t[$+1]===Vt,a=$=>t[$]===Vt,c=$=>t[$]===hC,d=$=>t[$]===_C,f=$=>s($)||a($)||c($)||d($),u=()=>n,p=()=>r,m=()=>o,_=()=>i,y=$=>s($)||c($)||d($)?Vt:t[$],g=()=>y(n),h=()=>y(n+i);function b(){return i=0,f(n)&&(r++,o=0),s(n)&&n++,n++,o++,t[n]}function v(){return s(n+i)&&i++,i++,t[n+i]}function S(){n=0,r=1,o=1,i=0}function N($=0){i=$}function A(){const $=n+i;for(;$!==n;)b();i=0}return{index:u,line:p,column:m,peekOffset:_,charAt:y,currentChar:g,currentPeek:h,next:b,peek:v,reset:S,resetPeek:N,skipToPeek:A}}const Or=void 0,yC=".",kg="'",bC="tokenizer";function vC(e,t={}){const n=t.location!==!1,r=gC(e),o=()=>r.index(),i=()=>lC(r.line(),r.column(),r.index()),s=i(),a=o(),c={currentType:13,offset:a,startLoc:s,endLoc:s,lastType:13,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},d=()=>c,{onError:f}=t;function u(E,T,C,...G){const te=d();if(T.column+=C,T.offset+=C,f){const ae=n?Mf(te.startLoc,T):null,re=ki(E,ae,{domain:bC,args:G});f(re)}}function p(E,T,C){E.endLoc=i(),E.currentType=T;const G={type:T};return n&&(G.loc=Mf(E.startLoc,E.endLoc)),C!=null&&(G.value=C),G}const m=E=>p(E,13);function _(E,T){return E.currentChar()===T?(E.next(),T):(u(Oe.EXPECTED_TOKEN,i(),0,T),"")}function y(E){let T="";for(;E.currentPeek()===mr||E.currentPeek()===Vt;)T+=E.currentPeek(),E.peek();return T}function g(E){const T=y(E);return E.skipToPeek(),T}function h(E){if(E===Or)return!1;const T=E.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T===95}function b(E){if(E===Or)return!1;const T=E.charCodeAt(0);return T>=48&&T<=57}function v(E,T){const{currentType:C}=T;if(C!==2)return!1;y(E);const G=h(E.currentPeek());return E.resetPeek(),G}function S(E,T){const{currentType:C}=T;if(C!==2)return!1;y(E);const G=E.currentPeek()==="-"?E.peek():E.currentPeek(),te=b(G);return E.resetPeek(),te}function N(E,T){const{currentType:C}=T;if(C!==2)return!1;y(E);const G=E.currentPeek()===kg;return E.resetPeek(),G}function A(E,T){const{currentType:C}=T;if(C!==7)return!1;y(E);const G=E.currentPeek()===".";return E.resetPeek(),G}function $(E,T){const{currentType:C}=T;if(C!==8)return!1;y(E);const G=h(E.currentPeek());return E.resetPeek(),G}function H(E,T){const{currentType:C}=T;if(!(C===7||C===11))return!1;y(E);const G=E.currentPeek()===":";return E.resetPeek(),G}function q(E,T){const{currentType:C}=T;if(C!==9)return!1;const G=()=>{const ae=E.currentPeek();return ae==="{"?h(E.peek()):ae==="@"||ae==="|"||ae===":"||ae==="."||ae===mr||!ae?!1:ae===Vt?(E.peek(),G()):O(E,!1)},te=G();return E.resetPeek(),te}function k(E){y(E);const T=E.currentPeek()==="|";return E.resetPeek(),T}function O(E,T=!0){const C=(te=!1,ae="")=>{const re=E.currentPeek();return re==="{"||re==="@"||!re?te:re==="|"?!(ae===mr||ae===Vt):re===mr?(E.peek(),C(!0,mr)):re===Vt?(E.peek(),C(!0,Vt)):!0},G=C();return T&&E.resetPeek(),G}function I(E,T){const C=E.currentChar();return C===Or?Or:T(C)?(E.next(),C):null}function D(E){const T=E.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36}function x(E){return I(E,D)}function z(E){const T=E.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36||T===45}function B(E){return I(E,z)}function F(E){const T=E.charCodeAt(0);return T>=48&&T<=57}function M(E){return I(E,F)}function K(E){const T=E.charCodeAt(0);return T>=48&&T<=57||T>=65&&T<=70||T>=97&&T<=102}function W(E){return I(E,K)}function X(E){let T="",C="";for(;T=M(E);)C+=T;return C}function oe(E){let T="";for(;;){const C=E.currentChar();if(C==="\\"){const G=E.peek();G==="{"||G==="}"||G==="@"||G==="|"||G==="\\"?(T+=C+G,E.next(),E.next()):(E.resetPeek(),T+=C,E.next())}else{if(C==="{"||C==="}"||C==="@"||C==="|"||!C)break;if(C===mr||C===Vt)if(O(E))T+=C,E.next();else{if(k(E))break;T+=C,E.next()}else T+=C,E.next()}}return T}function ce(E){g(E);let T="",C="";for(;T=B(E);)C+=T;const G=E.currentChar();if(G&&G!=="}"&&G!==Or&&G!==mr&&G!==Vt&&G!==" "){const te=Re(E);return u(Oe.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,C+te),C+te}return E.currentChar()===Or&&u(Oe.UNTERMINATED_CLOSING_BRACE,i(),0),C}function ne(E){g(E);let T="";return E.currentChar()==="-"?(E.next(),T+=`-${X(E)}`):T+=X(E),E.currentChar()===Or&&u(Oe.UNTERMINATED_CLOSING_BRACE,i(),0),T}function ke(E){return E!==kg&&E!==Vt}function J(E){g(E),_(E,"'");let T="",C="";for(;T=I(E,ke);)T==="\\"?C+=de(E):C+=T;const G=E.currentChar();return G===Vt||G===Or?(u(Oe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),G===Vt&&(E.next(),_(E,"'")),C):(_(E,"'"),C)}function de(E){const T=E.currentChar();switch(T){case"\\":case"'":return E.next(),`\\${T}`;case"u":return ve(E,T,4);case"U":return ve(E,T,6);default:return u(Oe.UNKNOWN_ESCAPE_SEQUENCE,i(),0,T),""}}function ve(E,T,C){_(E,T);let G="";for(let te=0;te<C;te++){const ae=W(E);if(!ae){u(Oe.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${T}${G}${E.currentChar()}`);break}G+=ae}return`\\${T}${G}`}function $e(E){return E!=="{"&&E!=="}"&&E!==mr&&E!==Vt}function Re(E){g(E);let T="",C="";for(;T=I(E,$e);)C+=T;return C}function He(E){let T="",C="";for(;T=x(E);)C+=T;return C}function Ce(E){const T=C=>{const G=E.currentChar();return G==="{"||G==="@"||G==="|"||G==="("||G===")"||!G||G===mr?C:(C+=G,E.next(),T(C))};return T("")}function We(E){g(E);const T=_(E,"|");return g(E),T}function be(E,T){let C=null;switch(E.currentChar()){case"{":return T.braceNest>=1&&u(Oe.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),E.next(),C=p(T,2,"{"),g(E),T.braceNest++,C;case"}":return T.braceNest>0&&T.currentType===2&&u(Oe.EMPTY_PLACEHOLDER,i(),0),E.next(),C=p(T,3,"}"),T.braceNest--,T.braceNest>0&&g(E),T.inLinked&&T.braceNest===0&&(T.inLinked=!1),C;case"@":return T.braceNest>0&&u(Oe.UNTERMINATED_CLOSING_BRACE,i(),0),C=Fe(E,T)||m(T),T.braceNest=0,C;default:{let te=!0,ae=!0,re=!0;if(k(E))return T.braceNest>0&&u(Oe.UNTERMINATED_CLOSING_BRACE,i(),0),C=p(T,1,We(E)),T.braceNest=0,T.inLinked=!1,C;if(T.braceNest>0&&(T.currentType===4||T.currentType===5||T.currentType===6))return u(Oe.UNTERMINATED_CLOSING_BRACE,i(),0),T.braceNest=0,se(E,T);if(te=v(E,T))return C=p(T,4,ce(E)),g(E),C;if(ae=S(E,T))return C=p(T,5,ne(E)),g(E),C;if(re=N(E,T))return C=p(T,6,J(E)),g(E),C;if(!te&&!ae&&!re)return C=p(T,12,Re(E)),u(Oe.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,C.value),g(E),C;break}}return C}function Fe(E,T){const{currentType:C}=T;let G=null;const te=E.currentChar();switch((C===7||C===8||C===11||C===9)&&(te===Vt||te===mr)&&u(Oe.INVALID_LINKED_FORMAT,i(),0),te){case"@":return E.next(),G=p(T,7,"@"),T.inLinked=!0,G;case".":return g(E),E.next(),p(T,8,".");case":":return g(E),E.next(),p(T,9,":");default:return k(E)?(G=p(T,1,We(E)),T.braceNest=0,T.inLinked=!1,G):A(E,T)||H(E,T)?(g(E),Fe(E,T)):$(E,T)?(g(E),p(T,11,He(E))):q(E,T)?(g(E),te==="{"?be(E,T)||G:p(T,10,Ce(E))):(C===7&&u(Oe.INVALID_LINKED_FORMAT,i(),0),T.braceNest=0,T.inLinked=!1,se(E,T))}}function se(E,T){let C={type:13};if(T.braceNest>0)return be(E,T)||m(T);if(T.inLinked)return Fe(E,T)||m(T);switch(E.currentChar()){case"{":return be(E,T)||m(T);case"}":return u(Oe.UNBALANCED_CLOSING_BRACE,i(),0),E.next(),p(T,3,"}");case"@":return Fe(E,T)||m(T);default:{if(k(E))return C=p(T,1,We(E)),T.braceNest=0,T.inLinked=!1,C;if(O(E))return p(T,0,oe(E));break}}return C}function Ge(){const{currentType:E,offset:T,startLoc:C,endLoc:G}=c;return c.lastType=E,c.lastOffset=T,c.lastStartLoc=C,c.lastEndLoc=G,c.offset=o(),c.startLoc=i(),r.currentChar()===Or?p(c,13):se(r,c)}return{nextToken:Ge,currentOffset:o,currentPosition:i,context:d}}const EC="parser",$C=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,SC=/\\([\\@{}|])/g;function TC(e,t){return t}function wC(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function AC(e={}){const t=e.location!==!1,{onError:n}=e;function r(h,b,v,S,...N){const A=h.currentPosition();if(A.offset+=S,A.column+=S,n){const $=t?Mf(v,A):null,H=ki(b,$,{domain:EC,args:N});n(H)}}function o(h,b,v){const S={type:h};return t&&(S.start=b,S.end=b,S.loc={start:v,end:v}),S}function i(h,b,v,S){t&&(h.end=b,h.loc&&(h.loc.end=v))}function s(h,b){const v=h.context(),S=o(3,v.offset,v.startLoc);return S.value=b.replace(SC,TC),i(S,h.currentOffset(),h.currentPosition()),S}function a(h,b){const v=h.context(),{lastOffset:S,lastStartLoc:N}=v,A=o(5,S,N);return A.index=parseInt(b,10),h.nextToken(),i(A,h.currentOffset(),h.currentPosition()),A}function c(h,b){const v=h.context(),{lastOffset:S,lastStartLoc:N}=v,A=o(4,S,N);return A.key=b,h.nextToken(),i(A,h.currentOffset(),h.currentPosition()),A}function d(h,b){const v=h.context(),{lastOffset:S,lastStartLoc:N}=v,A=o(9,S,N);return A.value=b.replace($C,wC),h.nextToken(),i(A,h.currentOffset(),h.currentPosition()),A}function f(h){const b=h.nextToken(),v=h.context(),{lastOffset:S,lastStartLoc:N}=v,A=o(8,S,N);return b.type!==11?(r(h,Oe.UNEXPECTED_EMPTY_LINKED_MODIFIER,v.lastStartLoc,0),A.value="",i(A,S,N),{nextConsumeToken:b,node:A}):(b.value==null&&r(h,Oe.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,_r(b)),A.value=b.value||"",i(A,h.currentOffset(),h.currentPosition()),{node:A})}function u(h,b){const v=h.context(),S=o(7,v.offset,v.startLoc);return S.value=b,i(S,h.currentOffset(),h.currentPosition()),S}function p(h){const b=h.context(),v=o(6,b.offset,b.startLoc);let S=h.nextToken();if(S.type===8){const N=f(h);v.modifier=N.node,S=N.nextConsumeToken||h.nextToken()}switch(S.type!==9&&r(h,Oe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,_r(S)),S=h.nextToken(),S.type===2&&(S=h.nextToken()),S.type){case 10:S.value==null&&r(h,Oe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,_r(S)),v.key=u(h,S.value||"");break;case 4:S.value==null&&r(h,Oe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,_r(S)),v.key=c(h,S.value||"");break;case 5:S.value==null&&r(h,Oe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,_r(S)),v.key=a(h,S.value||"");break;case 6:S.value==null&&r(h,Oe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,_r(S)),v.key=d(h,S.value||"");break;default:{r(h,Oe.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const N=h.context(),A=o(7,N.offset,N.startLoc);return A.value="",i(A,N.offset,N.startLoc),v.key=A,i(v,N.offset,N.startLoc),{nextConsumeToken:S,node:v}}}return i(v,h.currentOffset(),h.currentPosition()),{node:v}}function m(h){const b=h.context(),v=b.currentType===1?h.currentOffset():b.offset,S=b.currentType===1?b.endLoc:b.startLoc,N=o(2,v,S);N.items=[];let A=null;do{const q=A||h.nextToken();switch(A=null,q.type){case 0:q.value==null&&r(h,Oe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,_r(q)),N.items.push(s(h,q.value||""));break;case 5:q.value==null&&r(h,Oe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,_r(q)),N.items.push(a(h,q.value||""));break;case 4:q.value==null&&r(h,Oe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,_r(q)),N.items.push(c(h,q.value||""));break;case 6:q.value==null&&r(h,Oe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,_r(q)),N.items.push(d(h,q.value||""));break;case 7:{const k=p(h);N.items.push(k.node),A=k.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const $=b.currentType===1?b.lastOffset:h.currentOffset(),H=b.currentType===1?b.lastEndLoc:h.currentPosition();return i(N,$,H),N}function _(h,b,v,S){const N=h.context();let A=S.items.length===0;const $=o(1,b,v);$.cases=[],$.cases.push(S);do{const H=m(h);A||(A=H.items.length===0),$.cases.push(H)}while(N.currentType!==13);return A&&r(h,Oe.MUST_HAVE_MESSAGES_IN_PLURAL,v,0),i($,h.currentOffset(),h.currentPosition()),$}function y(h){const b=h.context(),{offset:v,startLoc:S}=b,N=m(h);return b.currentType===13?N:_(h,v,S,N)}function g(h){const b=vC(h,xt({},e)),v=b.context(),S=o(0,v.offset,v.startLoc);return t&&S.loc&&(S.loc.source=h),S.body=y(b),e.onCacheKey&&(S.cacheKey=e.onCacheKey(h)),v.currentType!==13&&r(b,Oe.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,h[v.offset]||""),i(S,b.currentOffset(),b.currentPosition()),S}return{parse:g}}function _r(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function kC(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Cg(e,t){for(let n=0;n<e.length;n++)Lf(e[n],t)}function Lf(e,t){switch(e.type){case 1:Cg(e.cases,t),t.helper("plural");break;case 2:Cg(e.items,t);break;case 6:{Lf(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function CC(e,t={}){const n=kC(e);n.helper("normalize"),e.body&&Lf(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function NC(e){const t=e.body;return t.type===2?Ng(t):t.cases.forEach(n=>Ng(n)),e}function Ng(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Pf(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const IC="minifier";function Ci(e){switch(e.t=e.type,e.type){case 0:{const t=e;Ci(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Ci(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Ci(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Ci(t.key),t.k=t.key,delete t.key,t.modifier&&(Ci(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw ki(Oe.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:IC,args:[e.type]})}delete e.type}const OC="parser";function RC(e,t){const{filename:n,breakLineCode:r,needIndent:o}=t,i=t.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};i&&e.loc&&(s.source=e.loc.source);const a=()=>s;function c(y,g){s.code+=y}function d(y,g=!0){const h=g?r:"";c(o?h+" ".repeat(y):h)}function f(y=!0){const g=++s.indentLevel;y&&d(g)}function u(y=!0){const g=--s.indentLevel;y&&d(g)}function p(){d(s.indentLevel)}return{context:a,push:c,indent:f,deindent:u,newline:p,helper:y=>`_${y}`,needIndent:()=>s.needIndent}}function xC(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ni(e,t.key),t.modifier?(e.push(", "),Ni(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function PC(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let i=0;i<o&&(Ni(e,t.items[i]),i!==o-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function MC(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let i=0;i<o&&(Ni(e,t.cases[i]),i!==o-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function LC(e,t){t.body?Ni(e,t.body):e.push("null")}function Ni(e,t){const{helper:n}=e;switch(t.type){case 0:LC(e,t);break;case 1:MC(e,t);break;case 2:PC(e,t);break;case 6:xC(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw ki(Oe.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:OC,args:[t.type]})}}const DC=(e,t={})=>{const n=_e(t.mode)?t.mode:"normal",r=_e(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
24
+ `,i=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],a=RC(e,{filename:r,breakLineCode:o,needIndent:i});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),s.length>0&&(a.push(`const { ${Pf(s.map(f=>`${f}: _${f}`),", ")} } = ctx`),a.newline()),a.push("return "),Ni(a,e),a.deindent(i),a.push("}"),delete e.helpers;const{code:c,map:d}=a.context();return{ast:e,code:c,map:d?d.toJSON():void 0}};function FC(e,t={}){const n=xt({},t),r=!!n.jit,o=!!n.minify,i=n.optimize==null?!0:n.optimize,a=AC(n).parse(e);return r?(i&&NC(a),o&&Ci(a),{ast:a,code:""}):(CC(a,n),DC(a,n))}function BC(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Fo().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Fo().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Dn(e){return Qe(e)&&Df(e)===0&&(Ln(e,"b")||Ln(e,"body"))}const Ig=["b","body"];function UC(e){return no(e,Ig)}const Og=["c","cases"];function jC(e){return no(e,Og,[])}const Rg=["s","static"];function HC(e){return no(e,Rg)}const xg=["i","items"];function zC(e){return no(e,xg,[])}const Pg=["t","type"];function Df(e){return no(e,Pg)}const Mg=["v","value"];function pc(e,t){const n=no(e,Mg);if(n!=null)return n;throw da(t)}const Lg=["m","modifier"];function qC(e){return no(e,Lg)}const Dg=["k","key"];function WC(e){const t=no(e,Dg);if(t)return t;throw da(6)}function no(e,t,n){for(let r=0;r<t.length;r++){const o=t[r];if(Ln(e,o)&&e[o]!=null)return e[o]}return n}const Fg=[...Ig,...Og,...Rg,...xg,...Dg,...Lg,...Mg,...Pg];function da(e){return new Error(`unhandled node type: ${e}`)}function Ff(e){return n=>GC(n,e)}function GC(e,t){const n=UC(t);if(n==null)throw da(0);if(Df(n)===1){const i=jC(n);return e.plural(i.reduce((s,a)=>[...s,Bg(e,a)],[]))}else return Bg(e,n)}function Bg(e,t){const n=HC(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=zC(t).reduce((o,i)=>[...o,Bf(e,i)],[]);return e.normalize(r)}}function Bf(e,t){const n=Df(t);switch(n){case 3:return pc(t,n);case 9:return pc(t,n);case 4:{const r=t;if(Ln(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Ln(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw da(n)}case 5:{const r=t;if(Ln(r,"i")&&Rt(r.i))return e.interpolate(e.list(r.i));if(Ln(r,"index")&&Rt(r.index))return e.interpolate(e.list(r.index));throw da(n)}case 6:{const r=t,o=qC(r),i=WC(r);return e.linked(Bf(e,i),o?Bf(e,o):void 0,e.type)}case 7:return pc(t,n);case 8:return pc(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const YC="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function KC(e,t){t&&pC(e)&&fr(lc(YC,{source:e}))}const XC=e=>e;let mc=ot();function JC(e,t={}){let n=!1;const r=t.onError||uC;return t.onError=o=>{n=!0,r(o)},{...FC(e,t),detectError:n}}function ZC(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&_e(e)){const n=Ze(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&KC(e,n);const o=(t.onCacheKey||XC)(e),i=mc[o];if(i)return i;const{ast:s,detectError:a}=JC(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=Ff(s);return a?c:mc[o]=c}else{if(process.env.NODE_ENV!=="production"&&!Dn(e))return fr(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);const n=e.cacheKey;if(n){const r=mc[n];return r||(mc[n]=Ff(e))}else return Ff(e)}}let ua=null;function QC(e){ua=e}function VC(e,t,n){ua&&ua.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const eN=tN("function:translate");function tN(e){return t=>ua&&ua.emit(e,t)}const en={INVALID_ARGUMENT:cC,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},nN=24;function Rr(e){return ki(e,null,process.env.NODE_ENV!=="production"?{messages:rN}:void 0)}const rN={[en.INVALID_ARGUMENT]:"Invalid arguments",[en.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[en.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[en.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[en.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[en.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[en.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Uf(e,t){return t.locale!=null?Ug(t.locale):Ug(e.locale)}let jf;function Ug(e){if(_e(e))return e;if(ft(e)){if(e.resolvedOnce&&jf!=null)return jf;if(e.constructor.name==="Function"){const t=e();if(iC(t))throw Rr(en.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return jf=t}else throw Rr(en.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Rr(en.NOT_SUPPORT_LOCALE_TYPE)}function oN(e,t,n){return[...new Set([n,...bt(t)?t:Qe(t)?Object.keys(t):_e(t)?[t]:[n]])]}function Hf(e,t,n){const r=_e(n)?n:fa,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let s=[n];for(;bt(s);)s=jg(i,s,t);const a=bt(t)||!Ke(t)?t:t.default?t.default:null;s=_e(a)?[a]:a,bt(s)&&jg(i,s,!1),o.__localeChainCache.set(r,i)}return i}function jg(e,t,n){let r=!0;for(let o=0;o<t.length&&Ze(r);o++){const i=t[o];_e(i)&&(r=iN(e,t[o],n))}return r}function iN(e,t,n){let r;const o=t.split("-");do{const i=o.join("-");r=sN(e,i,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function sN(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(bt(n)||Ke(n))&&n[o]&&(r=n[o])}return r}const ro=[];ro[0]={w:[0],i:[3,0],"[":[4],o:[7]},ro[1]={w:[1],".":[2],"[":[4],o:[7]},ro[2]={w:[2],i:[3,0],0:[3,0]},ro[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},ro[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},ro[5]={"'":[4,0],o:8,l:[5,0]},ro[6]={'"':[4,0],o:8,l:[6,0]};const aN=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function lN(e){return aN.test(e)}function cN(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function dN(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function uN(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:lN(t)?cN(t):"*"+t}function fN(e){const t=[];let n=-1,r=0,o=0,i,s,a,c,d,f,u;const p=[];p[0]=()=>{s===void 0?s=a:s+=a},p[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},p[2]=()=>{p[0](),o++},p[3]=()=>{if(o>0)o--,r=4,p[0]();else{if(o=0,s===void 0||(s=uN(s),s===!1))return!1;p[1]()}};function m(){const _=e[n+1];if(r===5&&_==="'"||r===6&&_==='"')return n++,a="\\"+_,p[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&m())){if(c=dN(i),u=ro[r],d=u[c]||u.l||8,d===8||(r=d[0],d[1]!==void 0&&(f=p[d[1]],f&&(a=i,f()===!1))))return;if(r===7)return t}}const Hg=new Map;function pN(e,t){return Qe(e)?e[t]:null}function mN(e,t){if(!Qe(e))return null;let n=Hg.get(t);if(n||(n=fN(t),n&&Hg.set(t,n)),!n)return null;const r=n.length;let o=e,i=0;for(;i<r;){const s=n[i];if(Fg.includes(s)&&Dn(o)||!Qe(o)||!Ln(o,s))return null;const a=o[s];if(a===void 0||ft(o))return null;o=a,i++}return o}const Ht={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9},Ii=10,_N={[Ht.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Ht.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Ht.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Ht.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Ht.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Ht.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Ht.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.",[Ht.INVALID_NUMBER_ARGUMENT]:"Invalid argument for number formatting: expected a number but received '{value}'.",[Ht.INVALID_DATE_ARGUMENT]:"Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."};function xr(e,...t){return lc(_N[e],...t)}const hN="11.4.0",_c=-1,fa="en-US",Oi="",zg=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function gN(){return{upper:(e,t)=>t==="text"&&_e(e)?e.toUpperCase():t==="vnode"&&Qe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&_e(e)?e.toLowerCase():t==="vnode"&&Qe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&_e(e)?zg(e):t==="vnode"&&Qe(e)&&"__v_isVNode"in e?zg(e.children):e}}let qg;function yN(e){qg=e}let Wg;function bN(e){Wg=e}let Gg;function vN(e){Gg=e}let Yg=null;const EN=e=>{Yg=e},$N=()=>Yg;let Kg=null;const Xg=e=>{Kg=e},SN=()=>Kg;let Jg=0;function TN(e={}){const t=ft(e.onWarn)?e.onWarn:fr,n=_e(e.version)?e.version:hN,r=_e(e.locale)||ft(e.locale)?e.locale:fa,o=ft(r)?fa:r,i=bt(e.fallbackLocale)||Ke(e.fallbackLocale)||_e(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,s=Ke(e.messages)?e.messages:zf(o),a=Ke(e.datetimeFormats)?e.datetimeFormats:zf(o),c=Ke(e.numberFormats)?e.numberFormats:zf(o),d=xt(ot(),e.modifiers,gN()),f=e.pluralRules||ot(),u=ft(e.missing)?e.missing:null,p=Ze(e.missingWarn)||Ai(e.missingWarn)?e.missingWarn:!0,m=Ze(e.fallbackWarn)||Ai(e.fallbackWarn)?e.fallbackWarn:!0,_=!!e.fallbackFormat,y=!!e.unresolving,g=ft(e.postTranslation)?e.postTranslation:null,h=Ke(e.processor)?e.processor:null,b=Ze(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter,S=ft(e.messageCompiler)?e.messageCompiler:qg;process.env.NODE_ENV!=="production"&&ft(e.messageCompiler)&&Rf(xr(Ht.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const N=ft(e.messageResolver)?e.messageResolver:Wg||pN,A=ft(e.localeFallbacker)?e.localeFallbacker:Gg||oN,$=Qe(e.fallbackContext)?e.fallbackContext:void 0,H=e,q=Qe(H.__datetimeFormatters)?H.__datetimeFormatters:new Map,k=Qe(H.__numberFormatters)?H.__numberFormatters:new Map,O=Qe(H.__meta)?H.__meta:{};Jg++;const I={version:n,cid:Jg,locale:r,fallbackLocale:i,messages:s,modifiers:d,pluralRules:f,missing:u,missingWarn:p,fallbackWarn:m,fallbackFormat:_,unresolving:y,postTranslation:g,processor:h,warnHtmlMessage:b,escapeParameter:v,messageCompiler:S,messageResolver:N,localeFallbacker:A,fallbackContext:$,onWarn:t,__meta:O};return I.datetimeFormats=a,I.numberFormats=c,I.__datetimeFormatters=q,I.__numberFormatters=k,process.env.NODE_ENV!=="production"&&(I.__v_emitter=H.__v_emitter!=null?H.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&VC(I,n,O),I}const zf=e=>({[e]:ot()});function hc(e,t){return e instanceof RegExp?e.test(t):e}function Zg(e,t){return e instanceof RegExp?e.test(t):e}function qf(e,t,n,r,o){const{missing:i,onWarn:s}=e;if(process.env.NODE_ENV!=="production"){const a=e.__v_emitter;a&&a.emit("missing",{locale:n,key:t,type:o,groupId:`${o}:${t}`})}if(i!==null){const a=i(e,n,t,o);return _e(a)?a:t}else return process.env.NODE_ENV!=="production"&&Zg(r,t)&&s(xr(Ht.NOT_FOUND_KEY,{key:t,locale:n})),t}function pa(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Qg(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function wN(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Qg(e,t[r]))return!0;return!1}const Vg=typeof Intl<"u",e2={dateTimeFormat:Vg&&typeof Intl.DateTimeFormat<"u",numberFormat:Vg&&typeof Intl.NumberFormat<"u"};function t2(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=e,{__datetimeFormatters:a}=e;if(process.env.NODE_ENV!=="production"&&!e2.dateTimeFormat)return i(xr(Ht.CANNOT_FORMAT_DATE)),Oi;if(!_e(t[0])&&!Eg(t[0])&&!Rt(t[0]))return process.env.NODE_ENV!=="production"&&i(xr(Ht.INVALID_DATE_ARGUMENT,{value:String(t[0])})),Oi;const[c,d,f,u]=Wf(...t),p=Ze(f.missingWarn)?f.missingWarn:e.missingWarn,m=Ze(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,_=!!f.part,y=Uf(e,f),g=s(e,o,y);if(!_e(c)||c==="")return new Intl.DateTimeFormat(y.replace(/!/g,""),u).format(d);let h={},b,v=null,S=y,N=null;const A="datetime format";for(let q=0;q<g.length;q++){if(b=N=g[q],process.env.NODE_ENV!=="production"&&y!==b&&hc(m,c)&&i(xr(Ht.FALLBACK_TO_DATE_FORMAT,{key:c,target:b})),process.env.NODE_ENV!=="production"&&y!==b){const k=e.__v_emitter;k&&k.emit("fallback",{type:A,key:c,from:S,to:N,groupId:`${A}:${c}`})}if(h=n[b]||{},v=h[c],Ke(v))break;qf(e,c,b,p,A),S=N}if(!Ke(v)||!_e(b))return r?_c:c;let $=`${b}__${c}`;cc(u)||($=`${$}__${JSON.stringify(u)}`);let H=a.get($);return H||(H=new Intl.DateTimeFormat(b,xt({},v,u)),a.set($,H)),_?H.formatToParts(d):H.format(d)}const n2=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Wf(...e){const[t,n,r,o]=e,i=ot();let s=ot(),a;if(_e(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Rr(en.INVALID_ISO_DATE_ARGUMENT);const d=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();a=new Date(d);try{a.toISOString()}catch{throw Rr(en.INVALID_ISO_DATE_ARGUMENT)}}else if(Eg(t)){if(isNaN(t.getTime()))throw Rr(en.INVALID_DATE_ARGUMENT);a=t}else if(Rt(t))a=t;else throw Rr(en.INVALID_ARGUMENT);return _e(n)?i.key=n:Ke(n)&&Object.keys(n).forEach(c=>{n2.includes(c)?s[c]=n[c]:i[c]=n[c]}),_e(r)?i.locale=r:Ke(r)&&(s=r),Ke(o)&&(s=o),[i.key||"",a,i,s]}function r2(e,t,n){const r=e;for(const o in n){const i=`${t}__${o}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function o2(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=e,{__numberFormatters:a}=e;if(process.env.NODE_ENV!=="production"&&!e2.numberFormat)return i(xr(Ht.CANNOT_FORMAT_NUMBER)),Oi;if(!Rt(t[0]))return process.env.NODE_ENV!=="production"&&i(xr(Ht.INVALID_NUMBER_ARGUMENT,{value:String(t[0])})),Oi;const[c,d,f,u]=Gf(...t),p=Ze(f.missingWarn)?f.missingWarn:e.missingWarn,m=Ze(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,_=!!f.part,y=Uf(e,f),g=s(e,o,y);if(!_e(c)||c==="")return new Intl.NumberFormat(y.replace(/!/g,""),u).format(d);let h={},b,v=null,S=y,N=null;const A="number format";for(let q=0;q<g.length;q++){if(b=N=g[q],process.env.NODE_ENV!=="production"&&y!==b&&hc(m,c)&&i(xr(Ht.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:b})),process.env.NODE_ENV!=="production"&&y!==b){const k=e.__v_emitter;k&&k.emit("fallback",{type:A,key:c,from:S,to:N,groupId:`${A}:${c}`})}if(h=n[b]||{},v=h[c],Ke(v))break;qf(e,c,b,p,A),S=N}if(!Ke(v)||!_e(b))return r?_c:c;let $=`${b}__${c}`;cc(u)||($=`${$}__${JSON.stringify(u)}`);let H=a.get($);return H||(H=new Intl.NumberFormat(b,xt({},v,u)),a.set($,H)),_?H.formatToParts(d):H.format(d)}const i2=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Gf(...e){const[t,n,r,o]=e,i=ot();let s=ot();if(!Rt(t))throw Rr(en.INVALID_ARGUMENT);const a=t;return _e(n)?i.key=n:Ke(n)&&Object.keys(n).forEach(c=>{i2.includes(c)?s[c]=n[c]:i[c]=n[c]}),_e(r)?i.locale=r:Ke(r)&&(s=r),Ke(o)&&(s=o),[i.key||"",a,i,s]}function s2(e,t,n){const r=e;for(const o in n){const i=`${t}__${o}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const AN=e=>e,kN=e=>"",CN="text",NN=e=>e.length===0?"":Pf(e),IN=sC;function Yf(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function ON(e){const t=Rt(e.pluralIndex)?e.pluralIndex:-1;return Rt(e.named?.count)?e.named.count:Rt(e.named?.n)?e.named.n:t}function RN(e={}){const t=e.locale,n=ON(e),r=_e(t)&&ft(e.pluralRules?.[t])?e.pluralRules[t]:Yf,o=r===Yf?void 0:Yf,i=h=>h[r(n,h.length,o)],s=e.list||[],a=h=>s[h],c=e.named||ot();Rt(e.pluralIndex)&&(c.count||=e.pluralIndex,c.n||=e.pluralIndex);const d=h=>c[h];function f(h,b){const v=ft(e.messages)?e.messages(h,!!b):Qe(e.messages)?e.messages[h]:!1;return v||(e.parent?e.parent.message(h):kN)}const u=h=>e.modifiers?e.modifiers[h]:AN,p=ft(e.processor?.normalize)?e.processor.normalize:NN,m=ft(e.processor?.interpolate)?e.processor.interpolate:IN,_=_e(e.processor?.type)?e.processor.type:CN,g={list:a,named:d,plural:i,linked:(h,...b)=>{const[v,S]=b;let N="text",A="";b.length===1?Qe(v)?(A=v.modifier||A,N=v.type||N):_e(v)&&(A=v||A):b.length===2&&(_e(v)&&(A=v||A),_e(S)&&(N=S||N));const $=f(h,!0)(g),H=$===""||$===void 0?h:$,q=N==="vnode"&&bt(H)&&A?H[0]:H;return A?u(A)(q,N):q},message:f,type:_,interpolate:m,normalize:p,values:xt(ot(),s,c)};return g}const a2=()=>"",Fn=e=>ft(e);function l2(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:i,fallbackLocale:s,messages:a}=e,[c,d]=Kf(...t),f=Ze(d.missingWarn)?d.missingWarn:e.missingWarn,u=Ze(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,p=Ze(d.escapeParameter)?d.escapeParameter:e.escapeParameter,m=!!d.resolvedMessage,_=_e(d.default)||Ze(d.default)?Ze(d.default)?i?c:()=>c:d.default:n?i?c:()=>c:null,y=n||_!=null&&(_e(_)||ft(_)),g=Uf(e,d);p&&xN(d);let[h,b,v]=m?[c,g,a[g]||ot()]:c2(e,c,g,s,u,f),S=h,N=c;if(!m&&!(_e(S)||Dn(S)||Fn(S))&&y&&(S=_,N=S),!m&&(!(_e(S)||Dn(S)||Fn(S))||!_e(b)))return o?_c:c;if(process.env.NODE_ENV!=="production"&&_e(S)&&e.messageCompiler==null)return fr(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let A=!1;const $=()=>{A=!0},H=Fn(S)?S:d2(e,c,b,S,N,$);if(A)return S;const q=DN(e,b,v,d),k=RN(q),O=PN(e,H,k);let I=r?r(O,c):O;if(p&&_e(I)&&(I=rC(I)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const D={timestamp:Date.now(),key:_e(c)?c:Fn(S)?S.key:"",locale:b||(Fn(S)?S.locale:""),format:_e(S)?S:Fn(S)?S.source:"",message:I};D.meta=xt({},e.__meta,$N()||{}),eN(D)}return I}function xN(e){bt(e.list)?e.list=e.list.map(t=>_e(t)?Sg(t):t):Qe(e.named)&&Object.keys(e.named).forEach(t=>{_e(e.named[t])&&(e.named[t]=Sg(e.named[t]))})}function c2(e,t,n,r,o,i){const{messages:s,onWarn:a,messageResolver:c,localeFallbacker:d}=e,f=d(e,r,n);let u=ot(),p,m=null,_=n,y=null;const g="translate";for(let h=0;h<f.length;h++){p=y=f[h],process.env.NODE_ENV!=="production"&&n!==p&&!Qg(n,p)&&hc(o,t)&&a(xr(Ht.FALLBACK_TO_TRANSLATE,{key:t,target:p}));const b=process.env.NODE_ENV!=="production"?e.__v_emitter:void 0;process.env.NODE_ENV!=="production"&&n!==p&&b&&b.emit("fallback",{type:g,key:t,from:_,to:y,groupId:`${g}:${t}`}),u=s[p]||ot();let v=null,S,N;if(process.env.NODE_ENV!=="production"&&Qn&&b&&(v=window.performance.now(),S="intlify-message-resolve-start",N="intlify-message-resolve-end",wn&&wn(S)),(m=c(u,t))===null&&(m=u[t]),process.env.NODE_ENV!=="production"&&Qn&&b){const A=window.performance.now();b&&v&&m&&b.emit("message-resolve",{type:"message-resolve",key:t,message:m,time:A-v,groupId:`${g}:${t}`}),S&&N&&wn&&Do&&(wn(N),Do("intlify message resolve",S,N))}if(_e(m)||Dn(m)||Fn(m))break;if(!wN(p,f)){const A=qf(e,t,p,i,g);A!==t&&(m=A)}_=y}return[m,p,u]}function d2(e,t,n,r,o,i){const{messageCompiler:s,warnHtmlMessage:a}=e;if(Fn(r)){const m=r;return m.locale=m.locale||n,m.key=m.key||t,m}if(s==null){const m=(()=>r);return m.locale=n,m.key=t,m}const c=process.env.NODE_ENV!=="production"?e.__v_emitter:void 0;let d=null,f,u;process.env.NODE_ENV!=="production"&&Qn&&c&&(d=window.performance.now(),f="intlify-message-compilation-start",u="intlify-message-compilation-end",wn&&wn(f));const p=s(r,MN(e,n,o,r,a,i));if(process.env.NODE_ENV!=="production"&&Qn&&c){const m=window.performance.now();c&&d&&c.emit("message-compilation",{type:"message-compilation",message:r,time:m-d,groupId:`translate:${t}`}),f&&u&&wn&&Do&&(wn(u),Do("intlify message compilation",f,u))}return p.locale=n,p.key=t,p.source=r,p}function PN(e,t,n){const r=process.env.NODE_ENV!=="production"?e.__v_emitter:void 0;let o=null,i,s;process.env.NODE_ENV!=="production"&&Qn&&r&&(o=window.performance.now(),i="intlify-message-evaluation-start",s="intlify-message-evaluation-end",wn&&wn(i));const a=t(n);if(process.env.NODE_ENV!=="production"&&Qn&&r){const c=window.performance.now();r&&o&&r.emit("message-evaluation",{type:"message-evaluation",value:a,time:c-o,groupId:`translate:${t.key}`}),i&&s&&wn&&Do&&(wn(s),Do("intlify message evaluation",i,s))}return a}function Kf(...e){const[t,n,r]=e,o=ot();if(!_e(t)&&!Rt(t)&&!Fn(t)&&!Dn(t))throw Rr(en.INVALID_ARGUMENT);const i=Rt(t)?String(t):(Fn(t),t);return Rt(n)?o.plural=n:_e(n)?o.default=n:Ke(n)&&!cc(n)?o.named=n:bt(n)&&(o.list=n),Rt(r)?o.plural=r:_e(r)?o.default=r:Ke(r)&&xt(o,r),[i,o]}function MN(e,t,n,r,o,i){return{locale:t,key:n,warnHtmlMessage:o,onError:s=>{if(i&&i(s),process.env.NODE_ENV!=="production"){const a=LN(r),c=s.location&&a&&aC(a,s.location.start.offset,s.location.end.offset),d=e.__v_emitter;d&&a&&d.emit("compile-error",{message:a,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${n}`});const f=`Message compilation error: ${s.message}`;throw new SyntaxError(c?`${f}
25
+ ${c}`:f)}throw s},onCacheKey:s=>eC(t,n,s)}}function LN(e){if(_e(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function DN(e,t,n,r){const{modifiers:o,pluralRules:i,messageResolver:s,fallbackLocale:a,fallbackWarn:c,missingWarn:d,fallbackContext:f}=e,p={locale:t,modifiers:o,pluralRules:i,messages:(m,_)=>{let y=s(n,m);if(y==null&&(f||_)){const[g,,h]=c2(f||e,m,t,a,c,d);y=g??s(h,m)}if(_e(y)||Dn(y)){let g=!1;const b=d2(e,m,t,y,m,()=>{g=!0});return g?a2:b}else return Fn(y)?y:a2}};return e.processor&&(p.processor=e.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),Rt(r.plural)&&(p.pluralIndex=r.plural),p}BC();function FN(){return u2().__VUE_DEVTOOLS_GLOBAL_HOOK__}function u2(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const BN=typeof Proxy=="function",UN="devtools-plugin:setup",jN="plugin:settings:set";let Ri,Xf;function HN(){var e;return Ri!==void 0||(typeof window<"u"&&window.performance?(Ri=!0,Xf=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Ri=!0,Xf=globalThis.perf_hooks.performance):Ri=!1),Ri}function zN(){return HN()?Xf.now():Date.now()}class qN{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const s in t.settings){const a=t.settings[s];r[s]=a.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},r);try{const s=localStorage.getItem(o),a=JSON.parse(s);Object.assign(i,a)}catch{}this.fallbacks={getSettings(){return i},setSettings(s){try{localStorage.setItem(o,JSON.stringify(s))}catch{}i=s},now(){return zN()}},n&&n.on(jN,(s,a)=>{s===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(s,a)=>this.target?this.target.on[a]:(...c)=>{this.onQueue.push({method:a,args:c})}}),this.proxiedTarget=new Proxy({},{get:(s,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...c)=>(this.targetQueue.push({method:a,args:c,resolve:()=>{}}),this.fallbacks[a](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:a,args:c,resolve:d})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function WN(e,t){const n=e,r=u2(),o=FN(),i=BN&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))o.emit(UN,e,t);else{const s=i?new qN(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}const GN="11.4.0";function YN(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Fo().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Fo().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Fo().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Fo().__INTLIFY_PROD_DEVTOOLS__=!1)}const st={UNEXPECTED_RETURN_TYPE:nN,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function ln(e,...t){return ki(e,null,process.env.NODE_ENV!=="production"?{messages:KN,args:t}:void 0)}const KN={[st.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[st.INVALID_ARGUMENT]:"Invalid argument",[st.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[st.NOT_INSTALLED]:"Need to install with `app.use` function",[st.UNEXPECTED_ERROR]:"Unexpected error",[st.REQUIRED_VALUE]:"Required in value: {0}",[st.INVALID_VALUE]:"Invalid value",[st.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[st.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[st.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[st.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Jf=pr("__translateVNode"),Zf=pr("__datetimeParts"),Qf=pr("__numberParts"),Pr=pr("__enableEmitter"),Bo=pr("__disableEmitter"),f2=pr("__setPluralRules"),p2=pr("__injectWithOption"),xi=pr("__dispose"),Bn={FALLBACK_TO_ROOT:Ii,NOT_FOUND_PARENT_SCOPE:Ii+1,IGNORE_OBJ_FLATTEN:Ii+2,DEPRECATE_LEGACY_MODE:Ii+3,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:Ii+4,DUPLICATE_USE_I18N_CALLING:Ii+5},XN={[Bn.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Bn.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Bn.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Bn.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
26
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[Bn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[Bn.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Pi(e,...t){return lc(XN[e],...t)}function ma(e){if(!Qe(e)||Dn(e))return e;for(const t in e)if(Ln(e,t))if(!t.includes("."))Qe(e[t])&&ma(e[t]);else{const n=t.split("."),r=n.length-1;let o=e,i=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in o||(o[n[s]]=ot()),!Qe(o[n[s]])){process.env.NODE_ENV!=="production"&&fr(Pi(Bn.IGNORE_OBJ_FLATTEN,{key:n[s]})),i=!0;break}o=o[n[s]]}if(i||(Dn(o)?Fg.includes(n[r])||delete e[t]:(o[n[r]]=e[t],delete e[t])),!Dn(o)){const s=o[n[r]];Qe(s)&&ma(s)}}return e}function Vf(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=t,s=Ke(n)?n:bt(r)?ot():{[e]:ot()};if(bt(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:d}=a;c?(s[c]=s[c]||ot(),fc(d,s[c])):fc(d,s)}else _e(a)&&fc(JSON.parse(a),s)}),o==null&&i)for(const a in s)Ln(s,a)&&ma(s[a]);return s}function m2(e){return e.type}function _2(e,t,n){let r=Qe(t.messages)?t.messages:ot();"__i18nGlobal"in n&&(r=Vf(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(Qe(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(Qe(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function h2(e){return l.createVNode(l.Text,null,e,0)}function Mi(){const e="currentInstance";return e in Pu?Pu[e]:Pu.getCurrentInstance()}const g2="__INTLIFY_META__",y2=()=>[],JN=()=>!1;let b2=0;function v2(e){return((t,n,r,o)=>e(n,r,Mi()||void 0,o))}const ZN=()=>{const e=Mi();let t=null;return e&&(t=m2(e)[g2])?{[g2]:t}:null};function gc(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,o=e.flatJson,i=Qn?l.ref:l.shallowRef;let s=Ze(e.inheritLocale)?e.inheritLocale:!0;const a=i(t&&s?t.locale.value:_e(e.locale)?e.locale:fa),c=i(t&&s?t.fallbackLocale.value:_e(e.fallbackLocale)||bt(e.fallbackLocale)||Ke(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),d=i(Vf(a.value,e)),f=i(Ke(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),u=i(Ke(e.numberFormats)?e.numberFormats:{[a.value]:{}});let p=t?t.missingWarn:Ze(e.missingWarn)||Ai(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:Ze(e.fallbackWarn)||Ai(e.fallbackWarn)?e.fallbackWarn:!0,_=t?t.fallbackRoot:Ze(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,g=ft(e.missing)?e.missing:null,h=ft(e.missing)?v2(e.missing):null,b=ft(e.postTranslation)?e.postTranslation:null,v=t?t.warnHtmlMessage:Ze(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const N=t?t.modifiers:Ke(e.modifiers)?e.modifiers:{};let A=e.pluralRules||t&&t.pluralRules,$;$=(()=>{r&&Xg(null);const Y={version:GN,locale:a.value,fallbackLocale:c.value,messages:d.value,modifiers:N,pluralRules:A,missing:h===null?void 0:h,missingWarn:p,fallbackWarn:m,fallbackFormat:y,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:v,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Y.datetimeFormats=f.value,Y.numberFormats=u.value,Y.__datetimeFormatters=Ke($)?$.__datetimeFormatters:void 0,Y.__numberFormatters=Ke($)?$.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(Y.__v_emitter=Ke($)?$.__v_emitter:void 0);const Z=TN(Y);return r&&Xg(Z),Z})(),pa($,a.value,c.value);function q(){return[a.value,c.value,d.value,f.value,u.value]}const k=l.computed({get:()=>a.value,set:Y=>{$.locale=Y,a.value=Y}}),O=l.computed({get:()=>c.value,set:Y=>{$.fallbackLocale=Y,c.value=Y,pa($,a.value,Y)}}),I=l.computed(()=>d.value),D=l.computed(()=>f.value),x=l.computed(()=>u.value);function z(){return ft(b)?b:null}function B(Y){b=Y,$.postTranslation=Y}function F(){return g}function M(Y){Y!==null&&(h=v2(Y)),g=Y,$.missing=h}function K(Y,Z){return Y!=="translate"||!Z.resolvedMessage}const W=(Y,Z,Te,Ue,Pn,pn)=>{q();let L;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||($.fallbackContext=t?SN():void 0),L=Y($)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||($.fallbackContext=void 0)}if(Te!=="translate exists"&&Rt(L)&&L===_c||Te==="translate exists"&&!L){const[U,Q]=Z();if(process.env.NODE_ENV!=="production"&&t&&_e(U)&&K(Te,Q)&&(_&&(hc(m,U)||Zg(p,U))&&fr(Pi(Bn.FALLBACK_TO_ROOT,{key:U,type:Te})),process.env.NODE_ENV!=="production")){const{__v_emitter:pe}=$;pe&&_&&pe.emit("fallback",{type:Te,key:U,to:"global",groupId:`${Te}:${U}`})}return t&&_?Ue(t):Pn(U)}else{if(pn(L))return L;throw ln(st.UNEXPECTED_RETURN_TYPE)}};function X(...Y){return W(Z=>Reflect.apply(l2,null,[Z,...Y]),()=>Kf(...Y),"translate",Z=>Reflect.apply(Z.t,Z,[...Y]),Z=>Z,Z=>_e(Z))}function oe(...Y){const[Z,Te,Ue]=Y;if(Ue&&!Qe(Ue))throw ln(st.INVALID_ARGUMENT);return X(Z,Te,xt({resolvedMessage:!0},Ue||{}))}function ce(...Y){return W(Z=>Reflect.apply(t2,null,[Z,...Y]),()=>Wf(...Y),"datetime format",Z=>Reflect.apply(Z.d,Z,[...Y]),()=>Oi,Z=>_e(Z)||bt(Z))}function ne(...Y){return W(Z=>Reflect.apply(o2,null,[Z,...Y]),()=>Gf(...Y),"number format",Z=>Reflect.apply(Z.n,Z,[...Y]),()=>Oi,Z=>_e(Z)||bt(Z))}function ke(Y){return Y.map(Z=>_e(Z)||Rt(Z)||Ze(Z)?h2(String(Z)):Z)}const de={normalize:ke,interpolate:Y=>Y,type:"vnode"};function ve(...Y){return W(Z=>{let Te;const Ue=Z;try{Ue.processor=de,Te=Reflect.apply(l2,null,[Ue,...Y])}finally{Ue.processor=null}return Te},()=>Kf(...Y),"translate",Z=>Z[Jf](...Y),Z=>[h2(Z)],Z=>bt(Z))}function $e(...Y){return W(Z=>Reflect.apply(o2,null,[Z,...Y]),()=>Gf(...Y),"number format",Z=>Z[Qf](...Y),y2,Z=>_e(Z)||bt(Z))}function Re(...Y){return W(Z=>Reflect.apply(t2,null,[Z,...Y]),()=>Wf(...Y),"datetime format",Z=>Z[Zf](...Y),y2,Z=>_e(Z)||bt(Z))}function He(Y){A=Y,$.pluralRules=A}function Ce(Y,Z){return W(()=>{if(!Y)return!1;const Te=_e(Z)?Z:a.value,Ue=_e(Z)?[Te]:Hf($,c.value,Te);for(let Pn=0;Pn<Ue.length;Pn++){const pn=Fe(Ue[Pn]);let L=$.messageResolver(pn,Y);if(L===null&&(L=pn[Y]),Dn(L)||Fn(L)||_e(L))return!0}return!1},()=>[Y],"translate exists",Te=>Reflect.apply(Te.te,Te,[Y,Z]),JN,Te=>Ze(Te))}function We(Y){let Z=null;const Te=Hf($,c.value,a.value);for(let Ue=0;Ue<Te.length;Ue++){const Pn=d.value[Te[Ue]]||{},pn=$.messageResolver(Pn,Y);if(pn!=null){Z=pn;break}}return Z}function be(Y){const Z=We(Y);return Z??(t?t.tm(Y)||{}:{})}function Fe(Y){return d.value[Y]||{}}function se(Y,Z){if(o){const Te={[Y]:Z};for(const Ue in Te)Ln(Te,Ue)&&ma(Te[Ue]);Z=Te[Y]}d.value[Y]=Z,$.messages=d.value}function Ge(Y,Z){d.value[Y]=d.value[Y]||{};const Te={[Y]:Z};if(o)for(const Ue in Te)Ln(Te,Ue)&&ma(Te[Ue]);Z=Te[Y],fc(Z,d.value[Y]),$.messages=d.value}function E(Y){return f.value[Y]||{}}function T(Y,Z){f.value[Y]=Z,$.datetimeFormats=f.value,r2($,Y,Z)}function C(Y,Z){f.value[Y]=xt(f.value[Y]||{},Z),$.datetimeFormats=f.value,r2($,Y,Z)}function G(Y){return u.value[Y]||{}}function te(Y,Z){u.value[Y]=Z,$.numberFormats=u.value,s2($,Y,Z)}function ae(Y,Z){u.value[Y]=xt(u.value[Y]||{},Z),$.numberFormats=u.value,s2($,Y,Z)}b2++,t&&Qn&&(l.watch(t.locale,Y=>{s&&(a.value=Y,$.locale=Y,pa($,a.value,c.value))}),l.watch(t.fallbackLocale,Y=>{s&&(c.value=Y,$.fallbackLocale=Y,pa($,a.value,c.value))}));const re={id:b2,locale:k,fallbackLocale:O,get inheritLocale(){return s},set inheritLocale(Y){s=Y,Y&&t&&(a.value=t.locale.value,c.value=t.fallbackLocale.value,pa($,a.value,c.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:I,get modifiers(){return N},get pluralRules(){return A||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(Y){p=Y,$.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(Y){m=Y,$.fallbackWarn=m},get fallbackRoot(){return _},set fallbackRoot(Y){_=Y},get fallbackFormat(){return y},set fallbackFormat(Y){y=Y,$.fallbackFormat=y},get warnHtmlMessage(){return v},set warnHtmlMessage(Y){v=Y,$.warnHtmlMessage=Y},get escapeParameter(){return S},set escapeParameter(Y){S=Y,$.escapeParameter=Y},t:X,getLocaleMessage:Fe,setLocaleMessage:se,mergeLocaleMessage:Ge,getPostTranslationHandler:z,setPostTranslationHandler:B,getMissingHandler:F,setMissingHandler:M,[f2]:He};return re.datetimeFormats=D,re.numberFormats=x,re.rt=oe,re.te=Ce,re.tm=be,re.d=ce,re.n=ne,re.getDateTimeFormat=E,re.setDateTimeFormat=T,re.mergeDateTimeFormat=C,re.getNumberFormat=G,re.setNumberFormat=te,re.mergeNumberFormat=ae,re[p2]=n,re[Jf]=ve,re[Zf]=Re,re[Qf]=$e,process.env.NODE_ENV!=="production"&&(re[Pr]=Y=>{$.__v_emitter=Y},re[Bo]=()=>{$.__v_emitter=void 0}),re}const E2="vue-i18n: composer properties",ep={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},QN={"vue-i18n-resource-inspector":"Search for scopes ..."},VN={"vue-i18n-timeline":16764185};let tp;async function eI(e,t){return new Promise((n,r)=>{try{WN({id:"vue-devtools-plugin-vue-i18n",label:ep["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[E2],app:e},o=>{tp=o,o.on.visitComponentTree(({componentInstance:s,treeNode:a})=>{tI(s,a,t)}),o.on.inspectComponent(({componentInstance:s,instanceData:a})=>{s.__VUE_I18N__&&a&&(t.mode==="legacy"?s.__VUE_I18N__!==t.global.__composer&&S2(a,s.__VUE_I18N__):S2(a,s.__VUE_I18N__))}),o.addInspector({id:"vue-i18n-resource-inspector",label:ep["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:QN["vue-i18n-resource-inspector"]}),o.on.getInspectorTree(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&sI(s,t)});const i=new Map;o.on.getInspectorState(async s=>{if(s.app===e&&s.inspectorId==="vue-i18n-resource-inspector")if(o.unhighlightElement(),lI(s,t),s.nodeId==="global"){if(!i.has(s.app)){const[a]=await o.getComponentInstances(s.app);i.set(s.app,a)}o.highlightElement(i.get(s.app))}else{const a=aI(s.nodeId,t);a&&o.highlightElement(a)}}),o.on.editInspectorState(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&dI(s,t)}),o.addTimelineLayer({id:"vue-i18n-timeline",label:ep["vue-i18n-timeline"],color:VN["vue-i18n-timeline"]}),n(!0)})}catch(o){console.error(o),r(!1)}})}function $2(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function tI(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){const o={label:`i18n (${$2(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(o)}}function S2(e,t){const n=E2;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:np(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function np(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];ft(r)&&"source"in r?t[n]=iI(r):Dn(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:Qe(r)?t[n]=np(r):t[n]=r}),t}const nI={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function rI(e){return e.replace(/[<>"&]/g,oI)}function oI(e){return nI[e]||e}function iI(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${rI(e.source)}")`:"(?)"}`}}}function sI(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,o]of t.__instances){const i=t.mode==="composition"?o:o.__composer;n!==i&&e.rootNodes.push({id:i.id.toString(),label:`${$2(r)} Scope`})}}function aI(e,t){let n=null;if(e!=="global"){for(const[r,o]of t.__instances.entries())if(o.id.toString()===e){n=r;break}}return n}function T2(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function lI(e,t){const n=T2(e.nodeId,t);return n&&(e.state=cI(n)),null}function cI(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const o="Locale messages info",i=[{type:o,key:"messages",editable:!1,value:np(e.messages.value)}];t[o]=i;{const s="Datetime formats info",a=[{type:s,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[s]=a;const c="Datetime formats info",d=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=d}return t}function Uo(e,t){if(tp){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),tp.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function dI(e,t){const n=T2(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&_e(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(_e(e.state.value)||bt(e.state.value)||Qe(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&Ze(e.state.value)&&(n.inheritLocale=e.state.value)}}function uI(e){const t=_e(e.locale)?e.locale:fa,n=_e(e.fallbackLocale)||bt(e.fallbackLocale)||Ke(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=ft(e.missing)?e.missing:void 0,o=Ze(e.silentTranslationWarn)||Ai(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=Ze(e.silentFallbackWarn)||Ai(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=Ze(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,c=Ke(e.modifiers)?e.modifiers:{},d=e.pluralizationRules,f=ft(e.postTranslation)?e.postTranslation:void 0,u=_e(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,m=Ze(e.sync)?e.sync:!0;let _=e.messages;if(Ke(e.sharedMessages)){const N=e.sharedMessages;_=Object.keys(N).reduce(($,H)=>{const q=$[H]||($[H]={});return xt(q,N[H]),$},_||{})}const{__i18n:y,__root:g,__injectWithOption:h}=e,b=e.datetimeFormats,v=e.numberFormats,S=e.flatJson;return{locale:t,fallbackLocale:n,messages:_,flatJson:S,datetimeFormats:b,numberFormats:v,missing:r,missingWarn:o,fallbackWarn:i,fallbackRoot:s,fallbackFormat:a,modifiers:c,pluralRules:d,postTranslation:f,warnHtmlMessage:u,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:m,__i18n:y,__root:g,__injectWithOption:h}}function rp(e={}){const t=gc(uI(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(o){t.locale.value=o},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(o){t.fallbackLocale.value=o},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(o){t.setMissingHandler(o)},get silentTranslationWarn(){return Ze(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(o){t.missingWarn=Ze(o)?!o:o},get silentFallbackWarn(){return Ze(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(o){t.fallbackWarn=Ze(o)?!o:o},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(o){t.fallbackFormat=o},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(o){t.setPostTranslationHandler(o)},get sync(){return t.inheritLocale},set sync(o){t.inheritLocale=o},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){t.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(o){t.escapeParameter=o},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...o){return Reflect.apply(t.t,t,[...o])},rt(...o){return Reflect.apply(t.rt,t,[...o])},te(o,i){return t.te(o,i)},tm(o){return t.tm(o)},getLocaleMessage(o){return t.getLocaleMessage(o)},setLocaleMessage(o,i){t.setLocaleMessage(o,i)},mergeLocaleMessage(o,i){t.mergeLocaleMessage(o,i)},d(...o){return Reflect.apply(t.d,t,[...o])},getDateTimeFormat(o){return t.getDateTimeFormat(o)},setDateTimeFormat(o,i){t.setDateTimeFormat(o,i)},mergeDateTimeFormat(o,i){t.mergeDateTimeFormat(o,i)},n(...o){return Reflect.apply(t.n,t,[...o])},getNumberFormat(o){return t.getNumberFormat(o)},setNumberFormat(o,i){t.setNumberFormat(o,i)},mergeNumberFormat(o,i){t.mergeNumberFormat(o,i)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=o=>{const i=t;i[Pr]&&i[Pr](o)},r.__disableEmitter=()=>{const o=t;o[Bo]&&o[Bo]()}),r}function fI(e,t,n){return{beforeCreate(){const r=Mi();if(!r)throw ln(st.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const i=o.i18n;if(o.__i18n&&(i.__i18n=o.__i18n),i.__root=t,this===this.$root)this.$i18n=w2(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=rp(i);const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=w2(e,o);else{this.$i18n=rp({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&_2(t,o,o),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$te=(i,s)=>this.$i18n.te(i,s),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$i18n){const r=Mi();if(!r)return;const o=this.$i18n;r.__VUE_I18N__=o.__composer;const i=this.__v_emitter=dc();o.__enableEmitter&&o.__enableEmitter(i),i.on("*",Uo)}},unmounted(){const r=Mi();if(!r)throw ln(st.UNEXPECTED_ERROR);const o=this.$i18n;process.env.NODE_ENV!=="production"&&r.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Uo),delete this.__v_emitter),this.$i18n&&(o.__disableEmitter&&o.__disableEmitter(),delete r.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(r),delete this.$i18n}}}function w2(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[f2](t.pluralizationRules||e.pluralizationRules);const n=Vf(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const op={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function pI({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>[...r,...o.type===l.Fragment?o.children:[o]],[]):t.reduce((n,r)=>{const o=e[r];return o&&(n[r]=o()),n},ot())}function A2(){return l.Fragment}const k2=l.defineComponent({name:"i18n-t",props:xt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Rt(e)||!isNaN(e)}},op),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||ip({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(u=>u[0]!=="_"),s=ot();e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=_e(e.plural)?+e.plural:e.plural);const a=pI(t,i),c=o[Jf](e.keypath,a,s),d=xt(ot(),r),f=_e(e.tag)||Qe(e.tag)?e.tag:A2();return l.h(f,d,c)}}});function mI(e){return bt(e)&&!_e(e[0])}function C2(e,t,n,r){const{slots:o,attrs:i}=t;return()=>{const s={part:!0};let a=ot();e.locale&&(s.locale=e.locale),_e(e.format)?s.key=e.format:Qe(e.format)&&(_e(e.format.key)&&(s.key=e.format.key),a=Object.keys(e.format).reduce((p,m)=>n.includes(m)?xt(ot(),p,{[m]:e.format[m]}):p,ot()));const c=r(e.value,s,a);let d=[s.key];bt(c)?d=c.map((p,m)=>{const _=o[p.type],y=_?_({[p.type]:p.value,index:m,parts:c}):[p.value];return mI(y)&&(y[0].key=`${p.type}-${m}`),y}):_e(c)&&(d=[c]);const f=xt(ot(),i),u=_e(e.tag)||Qe(e.tag)?e.tag:A2();return l.h(u,f,d)}}const N2=l.defineComponent({name:"i18n-n",props:xt({value:{type:Number,required:!0},format:{type:[String,Object]}},op),setup(e,t){const n=e.i18n||ip({useScope:e.scope,__useComponent:!0});return C2(e,t,i2,(...r)=>n[Qf](...r))}});function _I(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function hI(e){const t=s=>{process.env.NODE_ENV!=="production"&&Rf(Pi(Bn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:a,value:c}=s;if(!a||!a.$)throw ln(st.UNEXPECTED_ERROR);const d=_I(e,a.$),f=I2(c);return[Reflect.apply(d.t,d,[...O2(f)]),d]};return{created:(s,a)=>{const[c,d]=t(a);Qn&&(s.__i18nWatcher=l.watch(d.locale,()=>{a.instance&&a.instance.$forceUpdate()})),s.__composer=d,s.textContent=c},unmounted:s=>{Qn&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:a})=>{if(s.__composer){const c=s.__composer,d=I2(a);s.textContent=Reflect.apply(c.t,c,[...O2(d)])}},getSSRProps:s=>{const[a]=t(s);return{textContent:a}}}}function I2(e){if(_e(e))return{path:e};if(Ke(e)){if(!("path"in e))throw ln(st.REQUIRED_VALUE,"path");return e}else throw ln(st.INVALID_VALUE)}function O2(e){const{path:t,locale:n,args:r,choice:o,plural:i}=e,s={},a=r||{};return _e(n)&&(s.locale=n),Rt(o)&&(s.plural=o),Rt(i)&&(s.plural=i),[t,a,s]}function gI(e,t,...n){const r=Ke(n[0])?n[0]:{};(Ze(r.globalInstall)?r.globalInstall:!0)&&([k2.name,"I18nT"].forEach(i=>e.component(i,k2)),[N2.name,"I18nN"].forEach(i=>e.component(i,N2)),[P2.name,"I18nD"].forEach(i=>e.component(i,P2))),e.directive("t",hI(t))}const yI=pr("global-vue-i18n");function bI(e={}){const t=__VUE_I18N_LEGACY_API__&&Ze(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&Rf(Pi(Bn.DEPRECATE_LEGACY_MODE));const n=Ze(e.globalInjection)?e.globalInjection:!0,r=new Map,[o,i]=vI(e,t),s=pr(process.env.NODE_ENV!=="production"?"vue-i18n":"");function a(u){return r.get(u)||null}function c(u,p){r.set(u,p)}function d(u){r.delete(u)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(u,...p){if(process.env.NODE_ENV!=="production"&&(u.__VUE_I18N__=f),u.__VUE_I18N_SYMBOL__=s,u.provide(u.__VUE_I18N_SYMBOL__,f),Ke(p[0])){const y=p[0];f.__composerExtend=y.__composerExtend,f.__vueI18nExtend=y.__vueI18nExtend}let m=null;!t&&n&&(m=kI(u,f.global)),__VUE_I18N_FULL_INSTALL__&&gI(u,f,...p),__VUE_I18N_LEGACY_API__&&t&&u.mixin(fI(i,i.__composer,f));const _=u.unmount;if(u.unmount=()=>{m&&m(),f.dispose(),_()},process.env.NODE_ENV!=="production"){if(!await eI(u,f))throw ln(st.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const g=dc();if(t){const h=i;h.__enableEmitter&&h.__enableEmitter(g)}else{const h=i;h[Pr]&&h[Pr](g)}g.on("*",Uo)}},get global(){return i},dispose(){o.stop()},__instances:r,__getInstance:a,__setInstance:c,__deleteInstance:d};return f}function ip(e={}){const t=Mi();if(t==null)throw ln(st.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ln(st.NOT_INSTALLED);const n=EI(t),r=SI(n),o=m2(t),i=$I(e,o);if(i==="global")return _2(r,e,o),r;if(i==="parent"){let c=R2(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&fr(Pi(Bn.NOT_FOUND_PARENT_SCOPE)),c=r),c}if(i==="isolated"){if(n.mode!=="composition")throw ln(st.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=n,d=xt({},e),f=R2(n,t);d.__root=f||r;const u=gc(d);c.__composerExtend&&(u[xi]=c.__composerExtend(u));let p=null;if(process.env.NODE_ENV!=="production"){p=dc();const _=u;_[Pr]&&_[Pr](p),p.on("*",Uo)}return l.getCurrentScope()&&l.onScopeDispose(()=>{if(process.env.NODE_ENV!=="production"){p&&p.off("*",Uo);const y=u;y[Bo]&&y[Bo]()}const _=u[xi];_&&(_(),delete u[xi])}),u}const s=n;let a=s.__getInstance(t);if(a==null){const c=xt({},e);"__i18n"in o&&(c.__i18n=o.__i18n),r&&(c.__root=r),a=gc(c),s.__composerExtend&&(a[xi]=s.__composerExtend(a)),wI(s,t,a),s.__setInstance(t,a)}else process.env.NODE_ENV!=="production"&&i==="local"&&fr(Pi(Bn.DUPLICATE_USE_I18N_CALLING));return a}function vI(e,t){const n=l.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>rp(e)):n.run(()=>gc(e));if(r==null)throw ln(st.UNEXPECTED_ERROR);return[n,r]}function EI(e){const t=l.inject(e.isCE?yI:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ln(e.isCE?st.NOT_INSTALLED_WITH_PROVIDE:st.UNEXPECTED_ERROR);return t}function $I(e,t){return cc(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function SI(e){return e.mode==="composition"?e.global:e.global.__composer}function R2(e,t,n=!1){let r=null;const o=t.root;let i=TI(t,n);for(;i!=null;){const s=e;if(e.mode==="composition")r=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=s.__getInstance(i);a!=null&&(r=a.__composer,n&&r&&!r[p2]&&(r=null))}if(r!=null||o===i)break;i=i.parent}return r}function TI(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function wI(e,t,n){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,r=dc();const o=n;o[Pr]&&o[Pr](r),r.on("*",Uo)}},t),l.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",Uo),o[Bo]&&o[Bo](),delete t.__VUE_I18N__),e.__deleteInstance(t);const i=o[xi];i&&(i(),delete o[xi])},t)}const AI=["locale","fallbackLocale","availableLocales"],x2=["t","rt","d","n","tm","te"];function kI(e,t){const n=Object.create(null);return AI.forEach(o=>{const i=Object.getOwnPropertyDescriptor(t,o);if(!i)throw ln(st.UNEXPECTED_ERROR);const s=l.isRef(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,o,s)}),e.config.globalProperties.$i18n=n,x2.forEach(o=>{const i=Object.getOwnPropertyDescriptor(t,o);if(!i||!i.value)throw ln(st.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,i)}),()=>{delete e.config.globalProperties.$i18n,x2.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}const P2=l.defineComponent({name:"i18n-d",props:xt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},op),setup(e,t){const n=e.i18n||ip({useScope:e.scope,__useComponent:!0});return C2(e,t,n2,(...r)=>n[Zf](...r))}});if(YN(),yN(ZC),bN(mN),vN(Hf),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Fo();e.__INTLIFY__=!0,QC(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const M2={fr:{address_required:"L'adresse est obligatoire",address_metropolitan_only:"Cette offre n'est valable qu'en France métropolitaine et en Corse.",email_domain_not_allowed:"Ce domaine d'email n'est pas autorisé pour cette opération.",noticetextlink:"notice ci-jointe",suivant:"Suivant",valider:"Valider",multiselect_list_empty:"Commencez à taper",champ_obligatoire:"Champs obligatoires",iban_section_title:"Informations indiquées sur votre IBAN",iban_holder:"Titulaire du compte",iban_warning:"Depuis le 09/10/2025, l'IBAN saisi doit correspondre au titulaire du compte indiqué. Toute incohérence pourra bloquer le virement.",iban_uk_sort_code:"Sort Code",iban_uk_sort_code_placeholder:"6 chiffres",iban_uk_account_number:"Account Number",iban_uk_account_number_placeholder:"8 chiffres",rgpd:"traite les données recueillies sur la base de l’exécution d’un contrat pour traiter votre participation à cette opération. Pour en savoir plus sur la gestion de vos données personnelles et pour exercer vos droits, reportez-vous à la <a href='{link}' target='_blank' id='noticelink'>notice ci-jointe.</a>",blurry_document:"Ce document nous semble flou. Si vous êtes sûr de sa netteté, vous pouvez continuer, sinon, nous vous conseillons d'envoyer une autre image.",precedent:"Précédent",merci_renseigner_adresse:'Merci de renseigner votre adresse, ou cliquer sur "Je ne trouve pas mon adresse"',votre_adresse:"Votre Adresse *",changez_votre_adresse:"Modifiez votre adresse",N_rue:"Adresse",compl_addresse:"Complément d'adresse",ville:"Ville",code_postal:"Code postal",pays:"Pays",Madame:"Madame",Numero_identification:"Siren ou numéro DUNS *",Monsieur:"Monsieur","Corrigez les erreurs":"Veuillez vérifier les erreurs restantes dans le formulaire.",date_fin_regule_passee:"La date limite de régularisation est dépassée. Le formulaire ne peut plus être soumis.",trouvepasadresse:"Vous ne trouvez pas votre adresse ?",trouvepasreparateur:"Vous ne trouvez pas votre réparateur?",email_reparateur:"Email de votre réparateur *",enseigne_psa:"Nom de la société *",multiple_file_upload_en_cours:"Téléchargement en cours",multiple_file_aucun_fichier:"Aucun fichier",multiple_file_patientez:"Veuillez patienter, un ou plusieurs fichiers sont en cours de téléchargement. Ne validez pas le formulaire avant la fin de l'opération",multiple_file_add_file:"Ajouter un fichier",multiple_file_remove_file:"Retirer un fichier",file_max_size_error:"La taille du fichier est trop grande",file_heic_error:"Fichier iPhone .heic non supportés",file_max_size_info:"Taille maximale du fichier: {size} Mo",select_Précisez:"Veuillez préciser",prix_produit_produit:"Produit",prix_produit_reference:"Référence",prix_produit_description:"Description",prix_produit_quantite:"Quantité",prix_produit_prix:"Prix unitaire TTC en €",prix_produit_imei:"IMEI",prix_produit_select_placeholder:"Sélectionnez une option",prix_produit_max_reached:"Limite de {max} produit(s) atteinte",prix_produit_error_select_ref:"Veuillez sélectionner une référence pour le produit {num}",prix_produit_error_select_refs:"Veuillez sélectionner une référence pour les produits {nums}",prix_produit_error_quantity:"La quantité du produit {num} est requise",prix_produit_error_price:"Le prix du produit {num} est requis",prix_produit_error_min_refs:"Veuillez sélectionner au moins {min} référence(s)","Erreurs de validation":"Erreurs de validation","Champs concernés :":"Champs concernés :"},en:{address_required:"The address is required",address_metropolitan_only:"This offer is only valid in mainland France and Corsica.",email_domain_not_allowed:"This email domain is not allowed for this operation.",noticetextlink:"attached notice",suivant:"Next",valider:"Submit",champ_obligatoire:"Required fields",multiselect_list_empty:"Start typing",iban_section_title:"Information on your IBAN",iban_holder:"Account holder",iban_warning:"Since 09/10/2025, the entered IBAN must match the account holder indicated. Any inconsistency may block the transfer.",iban_uk_sort_code:"Sort Code",iban_uk_sort_code_placeholder:"6 digits",iban_uk_account_number:"Account Number",iban_uk_account_number_placeholder:"8 digits",rgpd:"processes the data collected on the basis of the performance of the contract to manage your participation in this operation. To learn more about how your personal data is managed and to exercise your rights, please refer to the <a href='{link}' target='_blank' id='noticelink'>attached notice</a>.",precedent:"Previous",merci_renseigner_adresse:`Please select a suggested address or click on "I can't find my address"`,trouvepasadresse:"I can't find my address",trouvepasreparateur:"You can't find it?",email_reparateur:"E-mail of your repairer *",enseigne_psa:"Company name *",Numero_identification:"DUNS number *",votre_adresse:"Your address *",changez_votre_adresse:"Edit your address",N_rue:"Number and street name",compl_addresse:"Additional address info",ville:"City",code_postal:"ZIP code",pays:"Country","Corrigez les erreurs":"Please check the remaining errors in the form.",date_fin_regule_passee:"The regularization deadline has passed. The form can no longer be submitted.",Madame:"Mrs.",Monsieur:"Mr.",multiple_file_upload_en_cours:"Upload in progress",multiple_file_aucun_fichier:"No file",multiple_file_patientez:"Please wait, one or more files are being uploaded. Do not submit the form until the operation is complete.",multiple_file_add_file:"Add a file",multiple_file_remove_file:"Remove a file",file_max_size_error:"The file size is too large",file_heic_error:"iPhone .heic files not supported",file_max_size_info:"Maximum file size: {size} MB",select_Précisez:"Please specify",prix_produit_produit:"Product",prix_produit_reference:"Reference",prix_produit_description:"Description",prix_produit_quantite:"Quantity",prix_produit_prix:"Unit price incl. tax",prix_produit_imei:"IMEI",prix_produit_select_placeholder:"Select an option",prix_produit_max_reached:"Limit of {max} product(s) reached",prix_produit_error_select_ref:"Please select a reference for product {num}",prix_produit_error_select_refs:"Please select a reference for products {nums}",prix_produit_error_quantity:"The quantity of product {num} is required",prix_produit_error_price:"The price of product {num} is required",prix_produit_error_min_refs:"Please select at least {min} reference(s)","Erreurs de validation":"Validation errors","Champs concernés :":"Affected fields:"},es:{address_required:"La dirección es obligatoria",address_metropolitan_only:"Esta oferta solo es válida en Francia metropolitana y Córcega.",email_domain_not_allowed:"Este dominio de correo electrónico no está permitido para esta operación.",noticetextlink:"aviso adjunto",suivant:"próximo",valider:"Validar",champ_obligatoire:"campos obligatorios",iban_section_title:"Información indicada en su IBAN",iban_holder:"Titular de la cuenta",iban_warning:"Desde el 09/10/2025, el IBAN ingresado debe corresponder al titular de la cuenta indicado. Cualquier inconsistencia puede bloquear la transferencia.",rgpd:"trata los datos recopilados sobre la base de la ejecución del contrato para gestionar su participación en esta operación. Para obtener más información sobre la gestión de sus datos personales y ejercer sus derechos, <a href='{link}' target='_blank' id='noticelink'>consulte el aviso adjunto</a>.",precedent:"anterior",merci_renseigner_adresse:'Introduzca su dirección o haga clic en "No encuentro mi dirección"',votre_adresse:"Tu dirección *",changez_votre_adresse:"Cambie tu dirección",Numero_identification:"TO_TRANSLATE_ES D.U.N.S number *",N_rue:"Número y nombre de la calle",compl_addresse:"Información de dirección adicional",ville:"Ciudad",code_postal:"Código postal",pays:"País",Madame:"Señor",Monsieur:"Señora",trouvepasadresse:"No se pudo encontrar su dirección","Corrigez les erreurs":"Compruebe si hay errores en el formulario",date_fin_regule_passee:"La fecha límite de regularización ha pasado. El formulario ya no puede ser enviado.",trouvepasreparateur:"TO_TRANSLATE_ES_REPARATOR?",enseigne_psa:"TO_TRANSLATE_ES_ENSEIGNE",email_reparateur:"TO_TRANSLATE_ES_E-mail of your repairer *",multiple_file_upload_en_cours:"Subida en curso",multiple_file_aucun_fichier:"Ningún archivo",multiple_file_patientez:"Espere, uno o más archivos se están subiendo. No envíe el formulario hasta que se complete la operación.",multiple_file_add_file:"Agregar un archivo",multiple_file_remove_file:"Eliminar un archivo",file_max_size_error:"El tamaño del archivo es demasiado grande",file_heic_error:"Archivos iPhone .heic no soportados",file_max_size_info:"Tamaño máximo del archivo: {size} MB",select_Précisez:"Por favor, especifique",prix_produit_produit:"Producto",prix_produit_reference:"Referencia",prix_produit_description:"Descripción",prix_produit_quantite:"Cantidad",prix_produit_prix:"Precio unitario con IVA",prix_produit_imei:"IMEI",prix_produit_select_placeholder:"Seleccione una opción",prix_produit_max_reached:"Límite de {max} producto(s) alcanzado",prix_produit_error_select_ref:"Seleccione una referencia para el producto {num}",prix_produit_error_select_refs:"Seleccione una referencia para los productos {nums}",prix_produit_error_quantity:"La cantidad del producto {num} es obligatoria",prix_produit_error_price:"El precio del producto {num} es obligatorio",prix_produit_error_min_refs:"Seleccione al menos {min} referencia(s)","Erreurs de validation":"Errores de validación","Champs concernés :":"Campos afectados:"},"es-cat":{address_required:"L'adreça és obligatòria",address_metropolitan_only:"Aquesta oferta només és vàlida a França metropolitana i Còrsega.",email_domain_not_allowed:"Aquest domini de correu electrònic no està permès per a aquesta operació.",noticetextlink:"avís adjunt",suivant:"Próximo",valider:"ubmitos",champ_obligatoire:"TO_TRANSLATE_ES CHAMPOS OBLIGANDO",iban_section_title:"Informació indicada al vostre IBAN",iban_holder:"Titular del compte",iban_warning:"Des del 09/10/2025, l'IBAN introduït ha de correspondre amb el titular del compte indicat. Qualsevol inconsistència pot bloquejar la transferència.",rgpd:"tracta les dades recollides sobre la base de l’execució del contracte per gestionar la vostra participació en aquesta operació. Per obtenir més informació sobre la gestió de les vostres dades personals i exercir els vostres drets, <a href='{link}' target='_blank' id='noticelink'>consulteu l'avís adjunt</a>.",precedent:"TO_TRANSLATE_ES PRECEDENTOS",merci_renseigner_adresse:'TO_TRANSLATE_ES Merci de renseigner votre adresse, ou cliquer sur "Je ne trouve pas mon adresse"',votre_adresse:"Adreça *",N_rue:"Carrer i número de casa",compl_addresse:"Informació addicional sobre l'adreça",ville:"TO_TRANSLATE_ES Ville",code_postal:"TO_TRANSLATE_ES Code postal",pays:"País",Numero_identification:"TO_TRANSLATE_ES_D.U.N.S number *",Madame:"TO_TRANSLATE_ES Madame",Monsieur:"TO_TRANSLATE_ES Monsieur",trouvepasreparateur:"TO_TRANSLATE_CAT_REPARATOR?","Corrigez les erreurs":"Compruebe si hay errores en el formulario",email_reparateur:"TO_TRANSLATE_CAT_E-mail of your repairer *",enseigne_psa:"TO_TRANSLATE_CAT_ENSEIGNE",file_max_size_error:"El tamaño del archivo es demasiado grande",file_heic_error:"Arxius iPhone .heic no compatibles",file_max_size_info:"Mida màxima del fitxer: {size} MB","Erreurs de validation":"Errors de validació","Champs concernés :":"Camps afectats:"},de:{address_required:"Die Adresse ist erforderlich",address_metropolitan_only:"Dieses Angebot gilt nur im französischen Festland und auf Korsika.",email_domain_not_allowed:"Diese E-Mail-Domain ist für diesen Vorgang nicht erlaubt.",noticetextlink:"beigefügte Mitteilung",suivant:"Weiter",valider:"validate",champ_obligatoire:"Pflichtangabe",iban_section_title:"Angaben auf Ihrer IBAN",iban_holder:"Kontoinhaber",iban_warning:"Seit dem 09.10.2025 muss die eingegebene IBAN dem angegebenen Kontoinhaber entsprechen. Jegliche Unstimmigkeit kann die Überweisung blockieren.",rgpd:"verarbeitet die erhobenen Daten auf Grundlage der Vertragserfüllung, um Ihre Teilnahme an dieser Aktion zu bearbeiten. Weitere Informationen zum Umgang mit Ihren personenbezogenen Daten und zur Ausübung Ihrer Rechte finden Sie in der <a href='{link}' target='_blank' id='noticelink'>beigefügten Mitteilung</a>.",multiselect_list_empty:"Mit der Eingabe beginnen",precedent:"zurück",blurry_document:"Dieses Dokument scheint unscharf zu sein. Wir empfehlen Ihnen, ein anderes Bild zu senden, um zu vermeiden, dass die Bewerbung abgelehnt wird.",merci_renseigner_adresse:'Bitte geben Sie Ihre Adresse ein, oder klicken Sie auf "Ich kann meine Adresse nicht finden".',votre_adresse:"Ihre Adresse *",changez_votre_adresse:"Ändern Sie Ihre Adresse",N_rue:"Strasse und Hausnummer *",compl_addresse:"Adresszusatz",Numero_identification:"Identifikationsnummer*",ville:"Ort",code_postal:"Postleitzahl",pays:"Land",Madame:"Frau",Monsieur:"Herr",trouvepasadresse:" Sie finden Ihre Adresse nicht?","Corrigez les erreurs":"Bitte überprüfen Sie Ihre eingabe.",trouvepasreparateur:"Sie finden Ihre reparatur nicht?",email_reparateur:"E-Mail Adresse *",enseigne_psa:"Firmenamme *",multiple_file_upload_en_cours:"Upload läuft",multiple_file_aucun_fichier:"Keine Datei",multiple_file_patientez:"Bitte warten Sie, eine oder mehrere Dateien werden hochgeladen. Senden Sie das Formular nicht ab, bevor der Vorgang abgeschlossen ist.",multiple_file_add_file:"Datei hinzufügen",multiple_file_remove_file:"Datei entfernen",file_max_size_error:"Die Dateigröße ist zu groß",file_heic_error:"iPhone .heic Dateien werden nicht unterstützt",file_max_size_info:"Maximale Dateigröße: {size} MB",select_Précisez:"Bitte präzisieren",prix_produit_produit:"Produkt",prix_produit_reference:"Referenz",prix_produit_description:"Beschreibung",prix_produit_quantite:"Menge",prix_produit_prix:"Stückpreis inkl. MwSt.",prix_produit_imei:"IMEI",prix_produit_select_placeholder:"Option auswählen",prix_produit_max_reached:"Limit von {max} Produkt(en) erreicht",prix_produit_error_select_ref:"Bitte wählen Sie eine Referenz für Produkt {num}",prix_produit_error_select_refs:"Bitte wählen Sie eine Referenz für die Produkte {nums}",prix_produit_error_quantity:"Die Menge von Produkt {num} ist erforderlich",prix_produit_error_price:"Der Preis von Produkt {num} ist erforderlich",prix_produit_error_min_refs:"Bitte wählen Sie mindestens {min} Referenz(en)","Erreurs de validation":"Validierungsfehler","Champs concernés :":"Betroffene Felder:"},nl:{address_required:"Het adres is verplicht",address_metropolitan_only:"Deze actie is alleen geldig in Europees Frankrijk en Corsica.",email_domain_not_allowed:"Dit e-maildomein is niet toegestaan voor deze actie.",noticetextlink:"bijgevoegde mededeling",suivant:"volgend",valider:"bevestigen",multiselect_list_empty:"Begin met typen",iban_section_title:"Informatie op uw IBAN",iban_holder:"Rekeninghouder",iban_warning:"Vanaf 09/10/2025 moet de ingevoerde IBAN overeenkomen met de aangegeven rekeninghouder. Elke inconsistentie kan de overschrijving blokkeren.",rgpd:"verwerkt de verzamelde gegevens op basis van de uitvoering van de overeenkomst om uw deelname aan deze actie te beheren. Voor meer informatie over het beheer van uw persoonsgegevens en om uw rechten uit te oefenen, verwijzen wij u naar de <a href='{link}' target='_blank' id='noticelink'>bijgevoegde kennisgeving</a>.",champ_obligatoire:"verplichte velden",blurry_document:"Dit document ziet er wazig uit, wij adviseren u een andere afbeelding te sturen om te voorkomen dat het bestand wordt geweigerd.",precedent:"vorig",merci_renseigner_adresse:'Voer alstublieft uw adres in, of klik op "Ik kan mijn adres niet vinden"',votre_adresse:"Uw adres *",changez_votre_adresse:"Uw adres wijzigen",N_rue:"Straatnaam en huisnummer",compl_addresse:"Aanvullende adresinformatie",ville:"Stad",code_postal:"Postcode",pays:"Land",Madame:"Mevr",Monsieur:"Man","Corrigez les erreurs":"Controleer de resterende fouten in het formulier.",Numero_identification:"D.U.N.S nummer * (Identificatienummer)",trouvepasadresse:"Staat uw adres er niet bij?",trouvepasreparateur:"Ik kan mijn reparateur niet vinden?",email_reparateur:"Reparateur email *",enseigne_psa:"bedrijfsnaam *",multiple_file_upload_en_cours:"Upload bezig",multiple_file_aucun_fichier:"Geen bestand",multiple_file_patientez:"Even geduld aub, één of meerdere bestanden worden geüpload. Verzend het formulier niet voordat de operatie voltooid is.",multiple_file_add_file:"Bestand toevoegen",multiple_file_remove_file:"Bestand verwijderen",file_max_size_error:"De bestandsgrootte is te groot",file_heic_error:"iPhone .heic bestanden worden niet ondersteund",file_max_size_info:"Maximale bestandsgrootte: {size} MB",select_Précisez:"Gelieve te specificeren",prix_produit_produit:"Product",prix_produit_reference:"Referentie",prix_produit_description:"Beschrijving",prix_produit_quantite:"Aantal",prix_produit_prix:"Eenheidsprijs incl. btw",prix_produit_imei:"IMEI",prix_produit_select_placeholder:"Selecteer een optie",prix_produit_max_reached:"Limiet van {max} product(en) bereikt",prix_produit_error_select_ref:"Selecteer een referentie voor product {num}",prix_produit_error_select_refs:"Selecteer een referentie voor producten {nums}",prix_produit_error_quantity:"Het aantal van product {num} is vereist",prix_produit_error_price:"De prijs van product {num} is vereist",prix_produit_error_min_refs:"Selecteer minstens {min} referentie(s)","Erreurs de validation":"Validatiefouten","Champs concernés :":"Betreffende velden:"},"lu-fr":{address_required:"L'adresse est obligatoire",address_metropolitan_only:"Cette offre n'est valable qu'en France métropolitaine et en Corse.",email_domain_not_allowed:"Ce domaine d'email n'est pas autorisé pour cette opération.",noticetextlink:"notice ci-jointe",suivant:"Suivant",valider:"Valider",champ_obligatoire:"Champ obligatoire",iban_section_title:"Informations indiquées sur votre IBAN",iban_holder:"Titulaire du compte",iban_warning:"Depuis le 09/10/2025, l'IBAN saisi doit correspondre au titulaire du compte indiqué. Toute incohérence pourra bloquer le virement.",rgpd:"traite les données recueillies sur la base de l’exécution d’un contrat pour traiter votre participation à cette opération. Pour en savoir plus sur la gestion de vos données personnelles et pour exercer vos droits, reportez-vous à la <a href='{link}' target='_blank' id='noticelink'>notice ci-jointe</a>.",precedent:"Précédent",merci_renseigner_adresse:'Merci de renseigner votre adresse, ou cliquer sur "Je ne trouve pas mon adresse"',votre_adresse:"Votre Adresse *",N_rue:"N°, rue",compl_addresse:"Complément d'adresse",ville:"Ville",Numero_identification:"Numéro D.U.N.S *",code_postal:"Code postal *",pays:"Pays",Madame:"Madame",Monsieur:"Monsieur",trouvepasadresse:"Vous ne trouvez pas votre adresse ?",email_reparateur:"email de votre réparateur *",enseigne_psa:"Nom de la société *",file_max_size_error:"La taille du fichier est trop grande",file_heic_error:"Fichier iPhone .heic non supportés",file_max_size_info:"Taille maximale du fichier: {size} Mo","Erreurs de validation":"Erreurs de validation","Champs concernés :":"Champs concernés :"},"lu-nl":{address_required:"Het adres is verplicht",address_metropolitan_only:"Deze actie is alleen geldig in Europees Frankrijk en Corsica.",email_domain_not_allowed:"Dit e-maildomein is niet toegestaan voor deze actie.",noticetextlink:"bijgevoegde mededeling",suivant:"volgend",valider:"bevestigen",champ_obligatoire:"verplichte velden",iban_section_title:"Informatie op uw IBAN",iban_holder:"Rekeninghouder",iban_warning:"Vanaf 09/10/2025 moet de ingevoerde IBAN overeenkomen met de aangegeven rekeninghouder. Elke inconsistentie kan de overschrijving blokkeren.",rgpd:"behandelt d'Donnéeën, déi op Basis vun der Ausféierung vum Kontrakt gesammelt goufen, fir Är Participatioun un dëser Aktioun ze verwalten. Fir méi Informatiounen iwwer den Ëmgank mat Ären perséinlechen Daten a fir Är Rechter auszeüben, kuckt w.e.g. <a href='{link}' target='_blank' id='noticelink'>an d'ugeschloss Notiz</a>.",precedent:"vorig",merci_renseigner_adresse:'Voer alstublieft uw adres in, of klik op "Ik kan mijn adres niet vinden"',votre_adresse:"Jouw adres *",N_rue:"Straat en huisnummer",compl_addresse:"Aanvullende adresgegevens",ville:"Stad",code_postal:"Postcode",pays:"Land",Madame:"Mevr",Monsieur:"Man",Numero_identification:"D.U.N.S nummer *",trouvepasadresse:"Vind je je adres niet ?",trouvepasreparateur:"Ik kan mijn reparateur niet vinden?",email_reparateur:"Reparateur e-mail*",enseigne_psa:"bedrijfsnaam *",file_max_size_error:"De bestandsgrootte is te groot",file_heic_error:"iPhone .heic bestanden worden niet ondersteund",file_max_size_info:"Maximale bestandsgrootte: {size} MB","Erreurs de validation":"Validatiefouten","Champs concernés :":"Betreffende velden:"},"be-fr":{address_required:"L'adresse est obligatoire",address_metropolitan_only:"Cette offre n'est valable qu'en France métropolitaine et en Corse.",email_domain_not_allowed:"Ce domaine d'email n'est pas autorisé pour cette opération.",noticetextlink:"notice ci-jointe",suivant:"Suivant",valider:"Valider",champ_obligatoire:"Champ obligatoire",iban_section_title:"Informations indiquées sur votre IBAN",iban_holder:"Titulaire du compte",iban_warning:"Depuis le 09/10/2025, l'IBAN saisi doit correspondre au titulaire du compte indiqué. Toute incohérence pourra bloquer le virement.",rgpd:"traite les données recueillies sur la base de l’exécution d’un contrat pour traiter votre participation à cette opération. Pour en savoir plus sur la gestion de vos données personnelles et pour exercer vos droits, reportez-vous à la <a href='{link}' target='_blank' id='noticelink'>notice ci-jointe</a>.",precedent:"Précédent",merci_renseigner_adresse:'Merci de renseigner votre adresse, ou cliquer sur "Je ne trouve pas mon adresse"',votre_adresse:"Votre Adresse *",N_rue:"N°, rue",compl_addresse:"Complément d'adresse",ville:"Ville",code_postal:"Code postal",pays:"Pays",Madame:"Madame",Monsieur:"Monsieur",trouvepasadresse:"Vous ne trouvez pas votre adresse ?",enseigne_psa:"Nom de la société * ",Numero_identification:"numéro DUNS *",email_reparateur:"Email de votre réparateur *",file_max_size_error:"La taille du fichier est trop grande",file_heic_error:"Fichier iPhone .heic non supportés",file_max_size_info:"Taille maximale du fichier: {size} Mo","Erreurs de validation":"Erreurs de validation","Champs concernés :":"Champs concernés :"},"be-nl":{address_required:"Het adres is verplicht",address_metropolitan_only:"Deze actie is alleen geldig in Europees Frankrijk en Corsica.",email_domain_not_allowed:"Dit e-maildomein is niet toegestaan voor deze actie.",noticetextlink:"bijgevoegde mededeling",suivant:"volgend",valider:"bevestigen",champ_obligatoire:"verplichte velden",multiselect_list_empty:"Begin met typen",iban_section_title:"Informatie op uw IBAN",iban_holder:"Rekeninghouder",iban_warning:"Vanaf 09/10/2025 moet de ingevoerde IBAN overeenkomen met de aangegeven rekeninghouder. Elke inconsistentie kan de overschrijving blokkeren.",rgpd:"verwerkt de verzamelde gegevens op basis van de uitvoering van de overeenkomst om uw deelname aan deze actie te beheren. Voor meer informatie over het beheer van uw persoonlijke gegevens en om uw rechten uit te oefenen, raadpleeg de <a href='{link}' target='_blank' id='noticelink'>bijgevoegde mededeling</a>.",blurry_document:"Dit document ziet er wazig uit, wij adviseren u een andere afbeelding te sturen om te voorkomen dat het bestand wordt geweigerd.",precedent:"vorig",merci_renseigner_adresse:'Voer alstublieft uw adres in, of klik op "Ik kan mijn adres niet vinden"',votre_adresse:"Uw adres *","modifier votre adresse":"Uw adres wijzigen",N_rue:"Straatnaam en huisnummer",compl_addresse:"Aanvullende adresgegevens",trouvepasreparateur:"Ik kan mijn reparateur niet vinden?",enseigne_psa:"bedrijfsnaam *",ville:"Plaats",code_postal:"Postcode",pays:"Land",Numero_identification:"D.U.N.S nummer *",Madame:"Mevr",Monsieur:"Man",trouvepasadresse:"Vind je je adres niet ?",email_reparateur:"Reparateur e-mail*","Erreurs de validation":"Validatiefouten","Champs concernés :":"Betreffende velden:"},sl:{address_required:"Naslov je obvezen",address_metropolitan_only:"Ta ponudba velja samo za celinsko Francijo in Korziko.",noticetextlink:"priložené oznámenie",suivant:"TO_TRANSLATE_SL Suivant",valider:"TO_TRANSLATE_SL Valider",champ_obligatoire:"obvezna polja",iban_section_title:"Informacije navedene na vašem IBAN",iban_holder:"Imetnik računa",iban_warning:"Od 09/10/2025 mora vneseni IBAN ustrezati navedenemu imetniku računa. Vsaka neskladnost lahko blokira prenos.",precedent:"TO_TRANSLATE_SL Précédent",merci_renseigner_adresse:"Vnesite svoj naslov ali pa kliknite možnost »Ne najdem svojega naslova«",votre_adresse:"POŠTNI NASLOV *",N_rue:"Številka ulice",compl_addresse:"Dodatni naslov",ville:"Kraj",code_postal:"Poštna številka",pays:"Država",Madame:"Gospa",Monsieur:"Gospod",Numero_identification:"TO_TRANSLATE_SL_D.U.N.S nummer *",trouvepasadresse:"Ne najdem svojega naslova",trouvepasreparateur:"TO_TRANSLATE_SL_REPARATOR?",enseigne_psa:"TO_TRANSLATE_SL_ENSEIGNE",email_reparateur:"TO_TRANSLATE_SL_Email de votre réparateur *","Erreurs de validation":"Napake pri preverjanju","Champs concernés :":"Vplivana polja:"},bg:{address_required:"Адресът е задължителен",address_metropolitan_only:"Тази оферта е валидна само за континентална Франция и Корсика.",noticetextlink:"приложено известие",suivant:"TO_TRANSLATE_BG Suivant",valider:"TO_TRANSLATE_BG Valider",champ_obligatoire:"задължителни полета",iban_section_title:"Информация посочена във вашия IBAN",iban_holder:"Титуляр на сметката",iban_warning:"От 09/10/2025 въведеният IBAN трябва да съответства на посочения титуляр на сметката. Всяко несъответствие може да блокира превода.",precedent:"TO_TRANSLATE_BG Précédent",merci_renseigner_adresse:"Моля, попълнете адреса си или щракнете върху „Не намирам адреса си“",votre_adresse:"ПОЩЕНСКИ АДРЕС *",N_rue:"Улица, №",compl_addresse:"Други адресни данни",ville:"Град",code_postal:"Пощенски код",pays:"Държава",Madame:"Gospa",Monsieur:"Gospod",Numero_identification:"TO_TRANSLATE_BG_D.U.N.S nummer *",trouvepasadresse:"Не намирате адреса си?",trouvepasreparateur:"TO_TRANSLATE_BG_REPARATOR?",enseigne_psa:"TO_TRANSLATE_BG_ENSEIGNE",email_reparateur:"TO_TRANSLATE_BG_Email de votre réparateur *","Erreurs de validation":"Грешки при валидация","Champs concernés :":"Засегнати полета:"},ro:{address_required:"Adresa este obligatorie",address_metropolitan_only:"Această ofertă este valabilă doar în Franța metropolitană și Corsica.",noticetextlink:"notificare atasata",suivant:"TO_TRANSLATE_RO Suivant",valider:"TO_TRANSLATE_RO Valider",champ_obligatoire:"câmpuri obligatorii",iban_section_title:"Informații indicate pe IBAN-ul dvs.",iban_holder:"Titular de cont",iban_warning:"Din 09/10/2025, IBAN-ul introdus trebuie să corespundă titularului de cont indicat. Orice inconsecvență poate bloca transferul.",precedent:"TO_TRANSLATE_RO Précédent",merci_renseigner_adresse:"Vă rugăm să completați adresa dvs. sau să faceți clic pe „Nu îmi găsesc adresa”",votre_adresse:"ADRESA *",N_rue:"Număr Stradă",compl_addresse:"Alte detalii privind adresa",ville:"Oraș",code_postal:"Cod poștal",pays:"Țara",Madame:"Doamna",Monsieur:"Domnul",Numero_identification:"TO_TRANSLATE_RO_D.U.N.S nummer *",trouvepasadresse:"Nu vă puteți găsi adresa?",trouvepasreparateur:"TO_TRANSLATE_RO_REPARATOR?",enseigne_psa:"TO_TRANSLATE_RO_ENSEIGNE",email_reparateur:"TO_TRANSLATE_RO_Email de votre réparateur *","Erreurs de validation":"Erori de validare","Champs concernés :":"Câmpuri afectate:"},el:{address_required:"Η διεύθυνση είναι υποχρεωτική",address_metropolitan_only:"Η προσφορά ισχύει μόνο για τη μητροπολιτική Γαλλία και την Κορσική.",noticetextlink:"notice ci-jointe",suivant:"TO_TRANSLATE_RO Suivant",valider:"TO_TRANSLATE_RO Valider",champ_obligatoire:"Υποχρεωτικό πεδίο",iban_section_title:"Πληροφορίες που αναγράφονται στο IBAN σας",iban_holder:"Κάτοχος λογαριασμού",iban_warning:"Από τις 09/10/2025, το IBAN που εισάγεται πρέπει να αντιστοιχεί στον υποδεικνυόμενο κάτοχο λογαριασμού. Οποιαδήποτε ασυνέπεια μπορεί να μπλοκάρει τη μεταφορά.",precedent:"TO_TRANSLATE_RO Précédent",merci_renseigner_adresse:'Συμπληρώστε τη διεύθυνσή σας ή κάντε κλικ στο "Δεν μπορώ να βρω τη διεύθυνσή μου"',votre_adresse:"ΤΑΧ/ΚΗ ΔΙΕΥΘΥΝΣΗ *",N_rue:"Οδός και αριθμός",compl_addresse:"Λοιπά στοιχεία διεύθυνσης",ville:"Πόλη",code_postal:"Ταχυδρομικός κώδικας",pays:"Χώρα",Madame:"κυρία",Monsieur:"κύριος",Numero_identification:"TO_TRANSLATE_RO_D.U.N.S nummer *",trouvepasadresse:"Δεν μπορείτε να βρείτε τη διεύθυνσή σας;",trouvepasreparateur:"TO_TRANSLATE_RO_REPARATOR?",enseigne_psa:"TO_TRANSLATE_RO_ENSEIGNE",email_reparateur:"TO_TRANSLATE_RO_Email de votre réparateur *","Erreurs de validation":"Σφάλματα επικύρωσης","Champs concernés :":"Επηρεαζόμενα πεδία:"},it:{address_required:"L'indirizzo è obbligatorio",address_metropolitan_only:"Questa offerta è valida solo in Francia metropolitana e Corsica.",email_domain_not_allowed:"Questo dominio email non è consentito per questa operazione.",multiple_file_remove_file:"Rimuovere un file",multiple_file_add_file:"Aggiungere un file",changez_votre_adresse:"Modifica il tuo indirizzo",noticetextlink:"avviso allegato",suivant:"Successivo",valider:"Confermare",champ_obligatoire:"Campi obbligatori",iban_section_title:"Informazioni indicate sul vostro IBAN",iban_holder:"Titolare del conto",iban_warning:"Dal 09/10/2025, l'IBAN inserito deve corrispondere al titolare del conto indicato. Qualsiasi incoerenza può bloccare il bonifico.",precedent:"Precedente",merci_renseigner_adresse:'Si prega di inserire il proprio indirizzo o cliccare su "Non trovo il mio indirizzo"',votre_adresse:"Il tuo indirizzo",N_rue:"N°, via",compl_addresse:"Complemento d'indirizzo",ville:"Città",code_postal:"Codice di avviamento postale",pays:"Paese",Madame:"Signora",Monsieur:"Signore",Numero_identification:"Numero D.U.N.S *",trouvepasadresse:"Non trovi il tuo indirizzo?",trouvepasreparateur:"RIPARATORE?",enseigne_psa:"INSEGNA",email_reparateur:"Email del tuo riparatore *","Corrigez les erreurs":"Si prega di verificare gli errori rimanenti nel modulo.","Erreurs de validation":"Errori di convalida","Champs concernés :":"Campi interessati:"},pl:{address_required:"Adres jest wymagany",address_metropolitan_only:"Ta oferta jest ważna tylko we Francji metropolitalnej i na Korsyce.",email_domain_not_allowed:"Ta domena e-mail nie jest dozwolona dla tej operacji.",noticetextlink:"załączone zawiadomienie",suivant:"Następny",valider:"Zatwierdź",champ_obligatoire:"Pola Wymagane",iban_section_title:"Informacje podane na Twoim IBAN",iban_holder:"Posiadacz konta",iban_warning:"Od 09/10/2025 wprowadzony IBAN musi odpowiadać wskazanemu posiadaczowi konta. Wszelkie niezgodności mogą zablokować przelew.",rgpd:"przetwarza zebrane dane na podstawie wykonania umowy w celu zarządzania udziałem w tej akcji. Aby uzyskać więcej informacji na temat zarządzania Państwa danymi osobowymi i skorzystać ze swoich praw, prosimy zapoznać się z <a href='{link}' target='_blank' id='noticelink'>załączoną informacją</a>.",blurry_document:"Ten dokument jest niewyraźny, radzimy wysłać inny obraz, aby uniknąć odrzucenia pliku.",precedent:"Poprzedni",merci_renseigner_adresse:"Wpisz swój adres lub kliknij „Nie mogę znaleźć swojego adresuWpisz swój adres lub kliknij „Nie mogę znaleźć swojego adresu",votre_adresse:"Twój adres",N_rue:"Adres",compl_addresse:"Uzupełnienie adresu",Numero_identification:"Numer identyfikacyjny",ville:"Miasto",code_postal:"Kod pocztowy",pays:"Kraj",Madame:"Pani.",Monsieur:"Pan.",trouvepasadresse:"Nie możesz znaleźć swojego adresu?",trouvepasreparateur:"TO_TRANSLATE_PL_REPARATOR?",email_reparateur:"TO_TRANSLATE_PL_Email de votre réparateur *",enseigne_psa:"TO_TRANSLATE_PL_ENSEIGNE","Erreurs de validation":"Błędy walidacji","Champs concernés :":"Pola, których dotyczy:"},pt:{address_required:"O endereço é obrigatório",address_metropolitan_only:"Esta oferta é válida apenas em França metropolitana e na Córsega.",email_domain_not_allowed:"Este domínio de e-mail não é permitido para esta operação.",noticetextlink:"aviso anexado",suivant:"Próximo",valider:"Validar",multiselect_list_empty:"Comece a dactilografar",champ_obligatoire:"Campo obrigatório",iban_section_title:"Informações indicadas no seu IBAN",iban_holder:"Titular da conta",iban_warning:"Desde 09/10/2025, o IBAN inserido deve corresponder ao titular da conta indicado. Qualquer inconsistência pode bloquear a transferência.",rgpd:"processa os dados recolhidos com base na execução do contrato para gerir a sua participação nesta ação. Para saber mais sobre a gestão dos seus dados pessoais e para exercer os seus direitos, consulte o <a href='{link}' target='_blank' id='noticelink'>aviso em anexo</a>.",blurry_document:"Este documento parece desfocado, aconselhamos a enviar outra imagem para evitar que o ficheiro seja recusado",precedent:"Anterior",merci_renseigner_adresse:' Introduzca su dirección o haga clic en "No encuentro mi dirección"',votre_adresse:"O seu endereço",changez_votre_adresse:"Altere o seu endereço",N_rue:"Endereço, linha 1",compl_addresse:"Endereço adicional",Numero_identification:"TO_TRANSLATE_PL_D.U.N.S nummer",ville:"Cidade",code_postal:"Código postal",pays:"País",Madame:"Senhora",Monsieur:"Senhor","corrigez les erreurs":"Por favor, verifique os erros restantes no formulário",trouvepasadresse:"Não consegue encontrar a sua morada?",trouvepasreparateur:"TO_TRANSLATE_PT_REPARATOR?",email_reparateur:"TO_TRANSLATE_PT_Email de votre réparateur *",enseigne_psa:"TO_TRANSLATE_PT_ENSEIGNE","Erreurs de validation":"Erros de validação","Champs concernés :":"Campos afetados:"},no:{address_required:"The address is required",address_metropolitan_only:"This offer is only valid in mainland France and Corsica.",email_domain_not_allowed:"This email domain is not allowed for this operation.",noticetextlink:"attached notice",suivant:"Next",valider:"Submit",champ_obligatoire:"Required fields",multiselect_list_empty:"Start typing",iban_section_title:"Information on your IBAN",iban_holder:"Account holder",iban_warning:"Since 09/10/2025, the entered IBAN must match the account holder indicated. Any inconsistency may block the transfer.",iban_uk_sort_code:"Sort Code",iban_uk_sort_code_placeholder:"6 digits",iban_uk_account_number:"Account Number",iban_uk_account_number_placeholder:"8 digits",rgpd:"processes the data collected on the basis of the performance of the contract to manage your participation in this operation. To learn more about how your personal data is managed and to exercise your rights, please refer to the <a href='{link}' target='_blank' id='noticelink'>attached notice</a>.",precedent:"Previous",merci_renseigner_adresse:`Please select a suggested address or click on "I can't find my address"`,trouvepasadresse:"I can't find my address",trouvepasreparateur:"You can't find it?",email_reparateur:"E-mail of your repairer *",enseigne_psa:"Company name *",Numero_identification:"DUNS number *",votre_adresse:"Your address *",changez_votre_adresse:"Edit your address",N_rue:"Number and street name",compl_addresse:"Additional address info",ville:"City",code_postal:"ZIP code",pays:"Country","Corrigez les erreurs":"Please check the remaining errors in the form.",date_fin_regule_passee:"The regularization deadline has passed. The form can no longer be submitted.",Madame:"Mrs.",Monsieur:"Mr.",multiple_file_upload_en_cours:"Upload in progress",multiple_file_aucun_fichier:"No file",multiple_file_patientez:"Please wait, one or more files are being uploaded. Do not submit the form until the operation is complete.",multiple_file_add_file:"Add a file",multiple_file_remove_file:"Remove a file",file_max_size_error:"The file size is too large",file_heic_error:"iPhone .heic files not supported",file_max_size_info:"Maximum file size: {size} MB",select_Précisez:"Please specify",prix_produit_produit:"Product",prix_produit_reference:"Reference",prix_produit_description:"Description",prix_produit_quantite:"Quantity",prix_produit_prix:"Unit price incl. tax",prix_produit_imei:"IMEI",prix_produit_select_placeholder:"Select an option",prix_produit_max_reached:"Limit of {max} product(s) reached",prix_produit_error_select_ref:"Please select a reference for product {num}",prix_produit_error_select_refs:"Please select a reference for products {nums}",prix_produit_error_quantity:"The quantity of product {num} is required",prix_produit_error_price:"The price of product {num} is required",prix_produit_error_min_refs:"Please select at least {min} reference(s)","Erreurs de validation":"Validation errors","Champs concernés :":"Affected fields:"}},CI={"es-cat":["es","fr"],"lu-fr":["fr"],"be-fr":["fr"],"lu-nl":["nl","fr"],"be-nl":["nl","fr"],default:["fr"]},NI={fr:"fr","fr-fr":"fr","lu-fr":"lu-fr","be-fr":"be-fr",en:"en","en-gb":"en","en-uk":"en",uk:"en",es:"es","es-es":"es","es-cat":"es-cat",de:"de",nl:"nl","lu-nl":"lu-nl","be-nl":"be-nl",it:"it",pl:"pl",sl:"sl",si:"sl",bg:"bg",ro:"ro",el:"el",gr:"el",pt:"pt","pt-pt":"pt",no:"no",nb:"no",nn:"no","nb-no":"no","nn-no":"no"};function L2(e){const t=(e||"fr").toLowerCase(),n=NI[t]||t.split("-")[0];return M2[n]?n:"fr"}const sp=bI({legacy:!1,locale:"fr",fallbackLocale:CI,messages:M2,missingWarn:!1,fallbackWarn:!1});function oo(e){return l.watch(e,t=>{sp.global.locale.value=L2(t)},{immediate:!0}),(t,n)=>sp.global.t(t,n??{})}const D2=Symbol("houston-form-context");function II(e){l.provide(D2,e)}function io(){const e=l.inject(D2);if(!e)throw new Error("useFormContext() doit être utilisé dans un champ rendu par <HoustonForm>.");return e}const F2={included:"one_of",not_included:"not_one_of"};function B2(e){const t={};for(const n of e.split("|").map(r=>r.trim()).filter(Boolean)){const r=n.indexOf(":"),o=r===-1?n:n.slice(0,r),i=r===-1?void 0:n.slice(r+1),s=F2[o]||o;if(i===void 0)t[s]=!0;else{const a=i.split(",");t[s]=a.length>1?a:a[0]}}return t}function OI(e){if(!e)return{};if(typeof e=="string")return B2(e);const t={};for(const[n,r]of Object.entries(e))t[F2[n]||n]=r;return t}function RI(e,t={}){const n={...e.validation?B2(e.validation):{},...OI(e.validationRules),...t};return e.required&&(n.required=!0),n}function Ct(e,t={}){const n=io(),r=e.validationLabel||e.label||e.save_to||e.name||"field",o={...t};e.unique&&e.save_to&&!n.testmode.value?.disableunique&&(o.unique={field:e.save_to,operationId:n.operationId.value,server:n.server});const i=e.save_to&&e.save_to in n.form?n.form[e.save_to]:void 0,{value:s,errorMessage:a,meta:c,handleBlur:d,handleChange:f,validate:u,setValue:p}=Oo(r,RI(e,o),{initialValue:i,label:e.validationLabel||void 0,syncVModel:!1});e.save_to&&l.watch(s,v=>{n.form[e.save_to]=v},{immediate:!0});const m=v=>v==null||v==="",_=l.computed(()=>!!a.value&&(c.touched||c.dirty||n.submitAttempted.value)),y=l.computed(()=>c.valid&&!a.value&&(c.touched||c.dirty)&&!m(s.value)),g=l.computed(()=>_.value?"error":y.value?"valid":"idle"),h=l.computed(()=>({"fb-invalid":_.value,"fb-valid":y.value})),b=l.computed({get:()=>s.value,set:v=>p(v)});return{ctx:n,validationName:r,value:s,model:b,errorMessage:a,showError:_,isValid:y,fieldState:g,controlClass:h,meta:c,handleBlur:d,handleChange:f,validate:u,setValue:p}}function U2(e,t){if(!t)return e;const n='<span class="fb-required-star">*</span>',r=e.match(/<\/[^>]+>$/);return r&&r.index!==void 0?e.slice(0,r.index)+n+e.slice(r.index):e+n}const xI=["for","innerHTML"],Xe=l.defineComponent({__name:"FieldLabel",props:{label:{},required:{type:Boolean},forId:{}},setup(e){const t=e,n=l.computed(()=>U2(t.label??"",t.required));return(r,o)=>(l.openBlock(),l.createElementBlock("label",{class:"fb-label",for:e.forId,innerHTML:n.value},null,8,xI))}}),PI={class:"fb-field"},MI=["id","type","name","required","inputmode","placeholder","aria-invalid"],LI={key:0,class:"fb-error",role:"alert"},DI=l.defineComponent({__name:"FieldConfirmation",props:{targetName:{},name:{},label:{},type:{},required:{type:Boolean},placeholder:{},inputmode:{}},setup(e){const t=e,n=l.ref(null),{value:r,errorMessage:o,meta:i,handleBlur:s}=Oo(t.name,{required:!!t.required,confirmed:`@${t.targetName}`},{label:t.label}),a=l.computed(()=>!!o.value&&(i.touched||i.dirty)),c=l.computed(()=>t.inputmode);return l.onMounted(()=>{n.value?.addEventListener("paste",d=>d.preventDefault())}),(d,f)=>(l.openBlock(),l.createElementBlock("div",PI,[l.createVNode(Xe,{"for-id":e.name,label:e.label,required:e.required},null,8,["for-id","label","required"]),l.withDirectives(l.createElementVNode("input",{id:e.name,ref_key:"inputRef",ref:n,"onUpdate:modelValue":f[0]||(f[0]=u=>l.isRef(r)?r.value=u:null),class:l.normalizeClass(["fb-input",{"fb-invalid":a.value}]),type:e.type||"text",name:e.name,required:e.required,inputmode:c.value,placeholder:e.placeholder,"aria-invalid":a.value||void 0,onBlur:f[1]||(f[1]=(...u)=>l.unref(s)&&l.unref(s)(...u))},null,42,MI),[[l.vModelDynamic,l.unref(r)]]),a.value?(l.openBlock(),l.createElementBlock("span",LI,l.toDisplayString(l.unref(o)),1)):l.createCommentVNode("",!0)]))}}),FI={class:"fb-field"},BI=["id","type","name","required","autocomplete","placeholder","pattern","maxlength","inputmode","aria-invalid","aria-describedby"],UI=["innerHTML"],jI=l.defineComponent({__name:"FieldInput",props:{field:{}},setup(e){const n=e.field,r=n.save_to||n.name||"field",o=`${r}-info`,i=`${r}-error`,{model:s,showError:a,errorMessage:c,controlClass:d,validationName:f,handleBlur:u}=Ct(n),p=l.computed(()=>[n.info?o:null,a.value?i:null].filter(Boolean).join(" ")||void 0),m=l.computed(()=>n.inputmode);return(_,y)=>(l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("div",FI,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),l.withDirectives(l.createElementVNode("input",{id:l.unref(r),"onUpdate:modelValue":y[0]||(y[0]=g=>l.isRef(s)?s.value=g:null),class:l.normalizeClass(["fb-input",l.unref(d)]),type:l.unref(n).type||"text",name:l.unref(f),required:l.unref(n).required||void 0,autocomplete:l.unref(n).autocomplete,placeholder:l.unref(n).placeholder,pattern:l.unref(n).pattern,maxlength:l.unref(n).maxlength,inputmode:m.value,"aria-invalid":l.unref(a)||void 0,"aria-describedby":p.value,onBlur:y[1]||(y[1]=(...g)=>l.unref(u)&&l.unref(u)(...g))},null,42,BI),[[l.vModelDynamic,l.unref(s)]]),l.unref(n).info?(l.openBlock(),l.createElementBlock("p",{key:0,id:o,class:"fb-info",innerHTML:l.unref(n).info},null,8,UI)):l.createCommentVNode("",!0),l.unref(a)&&!l.unref(n).hideErrorMessage?(l.openBlock(),l.createElementBlock("span",{key:1,id:i,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(n).forceErrorMessage||l.unref(c)),1)):l.createCommentVNode("",!0)]),l.unref(n).confirmation?(l.openBlock(),l.createBlock(DI,{key:0,"target-name":l.unref(f),name:`${l.unref(r)}_confirmation`,label:l.unref(n).confirmationLabel,type:l.unref(n).type||"text",required:l.unref(n).required,placeholder:l.unref(n).placeholder,inputmode:l.unref(n).inputmode},null,8,["target-name","name","label","type","required","placeholder","inputmode"])):l.createCommentVNode("",!0)]))}}),HI={class:"fb-field"},zI=["id","name","required","aria-invalid","aria-describedby"],qI=["innerHTML"],WI=["innerHTML"],GI=l.defineComponent({__name:"FieldCheckbox",props:{field:{}},setup(e){const n=e.field,r=n.save_to||n.name||"field",o=`${r}-error`,i=U2(n.label??"",n.required),{model:s,showError:a,errorMessage:c,handleBlur:d}=Ct({...n,required:!1},n.required?{checked:!0}:{});return(f,u)=>(l.openBlock(),l.createElementBlock("div",HI,[l.createElementVNode("label",{class:l.normalizeClass(["fb-choice",{"is-checked":!!l.unref(s)}])},[l.withDirectives(l.createElementVNode("input",{id:l.unref(r),"onUpdate:modelValue":u[0]||(u[0]=p=>l.isRef(s)?s.value=p:null),type:"checkbox",name:l.unref(r),required:l.unref(n).required||void 0,"aria-invalid":l.unref(a)||void 0,"aria-describedby":l.unref(a)?o:void 0,onBlur:u[1]||(u[1]=(...p)=>l.unref(d)&&l.unref(d)(...p))},null,40,zI),[[l.vModelCheckbox,l.unref(s)]]),l.createElementVNode("span",{class:"fb-choice-label",innerHTML:l.unref(i)},null,8,qI)],2),l.unref(n).info?(l.openBlock(),l.createElementBlock("p",{key:0,class:"fb-info",innerHTML:l.unref(n).info},null,8,WI)):l.createCommentVNode("",!0),l.unref(a)?(l.openBlock(),l.createElementBlock("span",{key:1,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(n).forceErrorMessage||l.unref(c)),1)):l.createCommentVNode("",!0)]))}}),YI={class:"fb-field"},KI={class:"fb-label"},XI=["innerHTML"],JI={key:0,class:"fb-required-star"},ZI={class:"fb-choice-list"},QI=["name","value","required"],VI=["innerHTML"],eO=["innerHTML"],tO=l.defineComponent({__name:"FieldRadio",props:{field:{}},setup(e){const n=e.field,r=n.save_to||n.name||"field",o=`${r}-error`,{model:i,showError:s,errorMessage:a,handleBlur:c}=Ct(n),d=l.computed(()=>(n.options||[]).map(f=>typeof f=="string"?{value:f.toLowerCase(),name:f}:{value:f.value,name:f.name??f.label??f.value}));return(f,u)=>(l.openBlock(),l.createElementBlock("fieldset",YI,[l.createElementVNode("legend",KI,[l.createElementVNode("span",{innerHTML:l.unref(n).label},null,8,XI),l.unref(n).required?(l.openBlock(),l.createElementBlock("span",JI,"*")):l.createCommentVNode("",!0)]),l.createElementVNode("div",ZI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(d.value,(p,m)=>(l.openBlock(),l.createElementBlock("label",{key:m,class:l.normalizeClass(["fb-choice",{"is-checked":l.unref(i)===p.value}])},[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=_=>l.isRef(i)?i.value=_:null),type:"radio",name:l.unref(r),value:p.value,required:l.unref(n).required||void 0,onBlur:u[1]||(u[1]=(..._)=>l.unref(c)&&l.unref(c)(..._))},null,40,QI),[[l.vModelRadio,l.unref(i)]]),l.createElementVNode("span",{class:"fb-choice-label",innerHTML:p.name},null,8,VI)],2))),128))]),l.unref(n).info?(l.openBlock(),l.createElementBlock("p",{key:0,class:"fb-info",innerHTML:l.unref(n).info},null,8,eO)):l.createCommentVNode("",!0),l.unref(s)?(l.openBlock(),l.createElementBlock("span",{key:1,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(n).forceErrorMessage||l.unref(a)),1)):l.createCommentVNode("",!0)]))}}),nO={key:0,class:"fb-field fb-field--inline"},rO={class:"fb-label"},oO=["innerHTML"],iO={key:0,class:"fb-required-star"},sO={class:"fb-choice-list fb-choice-list--inline"},aO=["name","value","required"],lO={class:"fb-choice-label"},cO={key:1,class:"fb-field"},dO=["id","name","required"],uO={value:"madame"},fO={value:"monsieur"},pO=l.defineComponent({__name:"FieldCivilite",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"civilite",o=`${r}-error`,{model:i,showError:s,errorMessage:a,handleBlur:c}=Ct(n),d=l.computed(()=>!!n.type&&n.type!=="radio"),f=l.computed(()=>n.LabelMadame||"Madame"),u=l.computed(()=>n.LabelMonsieur||"Monsieur"),p=l.computed(()=>[{value:"madame",name:f.value},{value:"monsieur",name:u.value}]);return(m,_)=>d.value?(l.openBlock(),l.createElementBlock("div",cO,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),l.withDirectives(l.createElementVNode("select",{id:l.unref(r),"onUpdate:modelValue":_[2]||(_[2]=y=>l.isRef(i)?i.value=y:null),class:l.normalizeClass(["fb-select",{"fb-invalid":l.unref(s)}]),name:l.unref(r),required:l.unref(n).required||void 0,onBlur:_[3]||(_[3]=(...y)=>l.unref(c)&&l.unref(c)(...y))},[_[4]||(_[4]=l.createElementVNode("option",{value:""}," ",-1)),l.createElementVNode("option",uO,l.toDisplayString(f.value),1),l.createElementVNode("option",fO,l.toDisplayString(u.value),1)],42,dO),[[l.vModelSelect,l.unref(i)]]),l.unref(s)?(l.openBlock(),l.createElementBlock("span",{key:0,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(n).forceErrorMessage||l.unref(a)),1)):l.createCommentVNode("",!0)])):(l.openBlock(),l.createElementBlock("fieldset",nO,[l.createElementVNode("legend",rO,[l.createElementVNode("span",{innerHTML:l.unref(n).label},null,8,oO),l.unref(n).required?(l.openBlock(),l.createElementBlock("span",iO,"*")):l.createCommentVNode("",!0)]),l.createElementVNode("div",sO,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(p.value,y=>(l.openBlock(),l.createElementBlock("label",{key:y.value,class:l.normalizeClass(["fb-choice",{"is-checked":l.unref(i)===y.value}])},[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":_[0]||(_[0]=g=>l.isRef(i)?i.value=g:null),type:"radio",name:l.unref(r),value:y.value,required:l.unref(n).required||void 0,onBlur:_[1]||(_[1]=(...g)=>l.unref(c)&&l.unref(c)(...g))},null,40,aO),[[l.vModelRadio,l.unref(i)]]),l.createElementVNode("span",lO,l.toDisplayString(y.name),1)],2))),128))]),l.unref(s)?(l.openBlock(),l.createElementBlock("span",{key:0,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(n).forceErrorMessage||l.unref(a)),1)):l.createCommentVNode("",!0)]))}}),mO={class:"fb-field"},_O=["id","name","required","autocomplete"],hO={key:0,value:""},gO=["value"],yO={key:1,class:"fb-subfield"},bO=["id","placeholder"],vO=["innerHTML"],EO=l.defineComponent({__name:"FieldSelect",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"field",o=`${r}-error`,{model:i,showError:s,errorMessage:a,handleBlur:c,ctx:d}=Ct(n),f=oo(d.locale),u=l.computed(()=>(n.options||[]).map(g=>typeof g=="string"?{value:g.toLowerCase(),name:g,other:!1}:{value:g.value,name:g.name??g.label??g.value,other:!!g.other})),p=l.ref(""),m=l.ref("");l.onMounted(()=>{const g=typeof i.value=="string"?i.value:"";if(g.includes(":")){const[h,...b]=g.split(":");p.value=h,m.value=b.join(":")}else n.defaultOptionText||(p.value=g)});const _=l.computed(()=>u.value.find(g=>g.value===p.value)),y=l.computed(()=>!!_.value?.other);return l.watch([p,m],()=>{i.value=y.value?`${p.value}:${m.value}`:p.value}),(g,h)=>(l.openBlock(),l.createElementBlock("div",mO,[l.unref(n).displayLabel!==!1?(l.openBlock(),l.createBlock(Xe,{key:0,"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"])):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("select",{id:l.unref(r),"onUpdate:modelValue":h[0]||(h[0]=b=>p.value=b),class:l.normalizeClass(["fb-select",{"fb-invalid":l.unref(s)}]),name:l.unref(r),required:l.unref(n).required||void 0,autocomplete:l.unref(n).autocomplete,onBlur:h[1]||(h[1]=(...b)=>l.unref(c)&&l.unref(c)(...b))},[l.unref(n).defaultOptionText!==void 0?(l.openBlock(),l.createElementBlock("option",hO,l.toDisplayString(l.unref(n).defaultOptionText),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(u.value,(b,v)=>(l.openBlock(),l.createElementBlock("option",{key:v,value:b.value},l.toDisplayString(b.name),9,gO))),128))],42,_O),[[l.vModelSelect,p.value]]),y.value?(l.openBlock(),l.createElementBlock("div",yO,[l.createVNode(Xe,{"for-id":`${l.unref(r)}-other`,label:l.unref(f)("select_Précisez")},null,8,["for-id","label"]),l.withDirectives(l.createElementVNode("input",{id:`${l.unref(r)}-other`,"onUpdate:modelValue":h[2]||(h[2]=b=>m.value=b),class:"fb-input",type:"text",placeholder:l.unref(f)("select_Précisez")},null,8,bO),[[l.vModelText,m.value]])])):l.createCommentVNode("",!0),l.unref(n).info?(l.openBlock(),l.createElementBlock("p",{key:2,class:"fb-info",innerHTML:l.unref(n).info},null,8,vO)):l.createCommentVNode("",!0),l.unref(s)?(l.openBlock(),l.createElementBlock("span",{key:3,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(a)),1)):l.createCommentVNode("",!0)]))}}),$O={class:"fb-field"},SO=["id","name","required","autocomplete","placeholder","aria-invalid","aria-describedby"],TO=["innerHTML"],wO=l.defineComponent({__name:"FieldInputNumber",props:{field:{}},setup(e){const n=e.field,r=n.save_to||n.name||"field",o=`${r}-error`,i=`${r}-info`,{model:s,showError:a,errorMessage:c,controlClass:d,handleBlur:f}=Ct(n);function u(p){const m=p.target;m.value!==""&&Number(m.value)<0&&(s.value=0)}return(p,m)=>(l.openBlock(),l.createElementBlock("div",$O,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),l.withDirectives(l.createElementVNode("input",{id:l.unref(r),"onUpdate:modelValue":m[0]||(m[0]=_=>l.isRef(s)?s.value=_:null),class:l.normalizeClass(["fb-input",l.unref(d)]),type:"number",inputmode:"decimal",min:"0",name:l.unref(r),required:l.unref(n).required||void 0,autocomplete:l.unref(n).autocomplete,placeholder:l.unref(n).placeholder,"aria-invalid":l.unref(a)||void 0,"aria-describedby":l.unref(n).info?i:void 0,onInput:u,onBlur:m[1]||(m[1]=(..._)=>l.unref(f)&&l.unref(f)(..._))},null,42,SO),[[l.vModelText,l.unref(s),void 0,{number:!0}]]),l.unref(n).info?(l.openBlock(),l.createElementBlock("p",{key:0,id:i,class:"fb-info",innerHTML:l.unref(n).info},null,8,TO)):l.createCommentVNode("",!0),l.unref(a)?(l.openBlock(),l.createElementBlock("span",{key:1,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(c)),1)):l.createCommentVNode("",!0)]))}}),AO={class:"fb-field"},kO=["id","name","rows","required","placeholder","maxlength","aria-invalid","aria-describedby"],CO=["innerHTML"],NO=l.defineComponent({__name:"FieldTextarea",props:{field:{}},setup(e){const n=e.field,r=n.save_to||n.name||"field",o=`${r}-error`,i=`${r}-info`,{model:s,showError:a,errorMessage:c,controlClass:d,handleBlur:f}=Ct(n),u=l.computed({get:()=>s.value??"",set:p=>s.value=p});return(p,m)=>(l.openBlock(),l.createElementBlock("div",AO,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),l.withDirectives(l.createElementVNode("textarea",{id:l.unref(r),"onUpdate:modelValue":m[0]||(m[0]=_=>u.value=_),class:l.normalizeClass(["fb-textarea",l.unref(d)]),name:l.unref(r),rows:l.unref(n).rows||4,required:l.unref(n).required||void 0,placeholder:l.unref(n).placeholder,maxlength:l.unref(n).maxlength,"aria-invalid":l.unref(a)||void 0,"aria-describedby":l.unref(n).info?i:void 0,onBlur:m[1]||(m[1]=(..._)=>l.unref(f)&&l.unref(f)(..._))},null,42,kO),[[l.vModelText,u.value]]),l.unref(n).info?(l.openBlock(),l.createElementBlock("p",{key:0,id:i,class:"fb-info",innerHTML:l.unref(n).info},null,8,CO)):l.createCommentVNode("",!0),l.unref(a)?(l.openBlock(),l.createElementBlock("span",{key:1,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(c)),1)):l.createCommentVNode("",!0)]))}}),IO={class:"fb-field"},OO=["id","name","value","min","max","required","aria-invalid"],RO=["innerHTML"],xO=l.defineComponent({__name:"FieldDateInput",props:{field:{}},setup(e){const n=e.field,r=n.save_to||n.name||"field",o=`${r}-error`,i=n.min?sn(String(n.min)).format("YYYY-MM-DD"):void 0,s=n.dateMaxToday?sn().format("YYYY-MM-DD"):n.max?sn(String(n.max)).format("YYYY-MM-DD"):void 0,a={};i&&(a.min=i),s&&(a.max=s);const{model:c,showError:d,errorMessage:f,controlClass:u,handleBlur:p}=Ct(n,Object.keys(a).length?{date_range:a}:{}),m=l.ref("");l.watch(c,y=>{typeof y=="string"&&/^\d{2}\/\d{2}\/\d{4}$/.test(y)?m.value=sn(y,"DD/MM/YYYY").format("YYYY-MM-DD"):typeof y=="string"&&/^\d{4}-\d{2}-\d{2}/.test(y)&&(m.value=y.slice(0,10))},{immediate:!0});function _(y){const g=y.target.value;m.value=g,c.value=g?sn(g).format("DD/MM/YYYY"):""}return(y,g)=>(l.openBlock(),l.createElementBlock("div",IO,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),l.createElementVNode("input",{id:l.unref(r),class:l.normalizeClass(["fb-input",l.unref(u)]),type:"date",name:l.unref(r),value:m.value,min:l.unref(i),max:l.unref(s),required:l.unref(n).required||void 0,"aria-invalid":l.unref(d)||void 0,onInput:_,onBlur:g[0]||(g[0]=(...h)=>l.unref(p)&&l.unref(p)(...h))},null,42,OO),l.unref(n).info?(l.openBlock(),l.createElementBlock("p",{key:0,class:"fb-info",innerHTML:l.unref(n).info},null,8,RO)):l.createCommentVNode("",!0),l.unref(d)?(l.openBlock(),l.createElementBlock("span",{key:1,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(n).forceErrorMessage||l.unref(f)),1)):l.createCommentVNode("",!0)]))}});function j2(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 PO(e){if(Array.isArray(e))return e}function MO(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,d=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return a}}function LO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
27
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DO(e,t){return PO(e)||MO(e,t)||FO(e,t)||LO()}function FO(e,t){if(e){if(typeof e=="string")return j2(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)?j2(e,t):void 0}}const H2=Object.entries,z2=Object.setPrototypeOf,BO=Object.isFrozen,UO=Object.getPrototypeOf,jO=Object.getOwnPropertyDescriptor;let Ft=Object.freeze,zt=Object.seal,Li=Object.create,q2=typeof Reflect<"u"&&Reflect,ap=q2.apply,lp=q2.construct;Ft||(Ft=function(t){return t}),zt||(zt=function(t){return t}),ap||(ap=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return t.apply(n,o)}),lp||(lp=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const jo=Pt(Array.prototype.forEach),HO=Pt(Array.prototype.lastIndexOf),W2=Pt(Array.prototype.pop),_a=Pt(Array.prototype.push),zO=Pt(Array.prototype.splice),Di=Array.isArray,ha=Pt(String.prototype.toLowerCase),cp=Pt(String.prototype.toString),G2=Pt(String.prototype.match),ga=Pt(String.prototype.replace),Y2=Pt(String.prototype.indexOf),qO=Pt(String.prototype.trim),WO=Pt(Number.prototype.toString),GO=Pt(Boolean.prototype.toString),K2=typeof BigInt>"u"?null:Pt(BigInt.prototype.toString),X2=typeof Symbol>"u"?null:Pt(Symbol.prototype.toString),vn=Pt(Object.prototype.hasOwnProperty),ya=Pt(Object.prototype.toString),tn=Pt(RegExp.prototype.test),Ho=YO(TypeError);function Pt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return ap(e,t,r)}}function YO(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return lp(e,n)}}function Ve(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ha;if(z2&&z2(e,null),!Di(t))return e;let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(BO(t)||(t[r]=i),o=i)}e[o]=!0}return e}function KO(e){for(let t=0;t<e.length;t++)vn(e,t)||(e[t]=null);return e}function An(e){const t=Li(null);for(const r of H2(e)){var n=DO(r,2);const o=n[0],i=n[1];vn(e,o)&&(Di(i)?t[o]=KO(i):i&&typeof i=="object"&&i.constructor===Object?t[o]=An(i):t[o]=i)}return t}function XO(e){switch(typeof e){case"string":return e;case"number":return WO(e);case"boolean":return GO(e);case"bigint":return K2?K2(e):"0";case"symbol":return X2?X2(e):"Symbol()";case"undefined":return ya(e);case"function":case"object":{if(e===null)return ya(e);const t=e,n=Vn(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:ya(r)}return ya(e)}default:return ya(e)}}function Vn(e,t){for(;e!==null;){const r=jO(e,t);if(r){if(r.get)return Pt(r.get);if(typeof r.value=="function")return Pt(r.value)}e=UO(e)}function n(){return null}return n}function JO(e){try{return tn(e,""),!0}catch{return!1}}const J2=Ft(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),dp=Ft(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),up=Ft(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ZO=Ft(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),fp=Ft(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),QO=Ft(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Z2=Ft(["#text"]),Q2=Ft(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),pp=Ft(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),V2=Ft(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),yc=Ft(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),VO=zt(/{{[\w\W]*|^[\w\W]*}}/g),eR=zt(/<%[\w\W]*|^[\w\W]*%>/g),tR=zt(/\${[\w\W]*/g),nR=zt(/^data-[\-\w.\u00B7-\uFFFF]+$/),rR=zt(/^aria-[\-\w]+$/),ey=zt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oR=zt(/^(?:\w+script|data):/i),iR=zt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),sR=zt(/^html$/i),aR=zt(/^[a-z][.\w]*(-[.\w]+)+$/i),ty=zt(/<[/\w!]/g),ny=zt(/<[/\w]/g),lR=zt(/<\/no(script|embed|frames)/i),cR=zt(/\/>/i),kn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ry=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],dR=Ft(Ve({},ry)),uR=(function(){const e={};return jo(ry,t=>{e[t]=zt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Ft(e)})(),fR=function(){return typeof window>"u"?null:window},pR=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},oy=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},so=function(t,n,r,o){return vn(t,n)&&Di(t[n])?Ve(o.base?An(o.base):{},t[n],o.transform):r},mp=function(t,n,r){const o=vn(t,n)?t[n]:void 0;return o&&typeof o=="object"?An(o):r()};function iy(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fR();const t=ie=>iy(ie);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==kn.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,o=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,s=e.Node,a=e.Element,c=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const f=e.DOMParser,u=e.trustedTypes,p=a.prototype,m=Vn(p,"cloneNode"),_=Vn(p,"remove"),y=Vn(p,"nextSibling"),g=Vn(p,"childNodes"),h=Vn(p,"parentNode"),b=Vn(p,"shadowRoot"),v=Vn(p,"attributes"),S=s&&s.prototype?Vn(s.prototype,"nodeType"):null,N=s&&s.prototype?Vn(s.prototype,"nodeName"):null,A=s&&s.prototype?Vn(s.prototype,"ownerDocument"):null,$=function(w){return S?S(w):w.nodeType},H=function(w){return N?N(w):w.nodeName};if(typeof i=="function"){const ie=n.createElement("template");ie.content&&ie.content.ownerDocument&&(n=ie.content.ownerDocument)}let q,k="",O,I=!1,D=0;const x=function(){if(D>0)throw Ho('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},z=function(w){x(),D++;try{return q.createHTML(w)}finally{D--}},B=function(w){x(),D++;try{return q.createScriptURL(w)}finally{D--}},F=function(){return I||(O=pR(u,o),I=!0),O},M=n,K=M.implementation,W=M.createNodeIterator,X=M.createDocumentFragment,oe=M.getElementsByTagName,ce=r.importNode;let ne=oy();t.isSupported=typeof H2=="function"&&typeof h=="function"&&K&&K.createHTMLDocument!==void 0;const ke=VO,J=eR,de=tR,ve=nR,$e=rR,Re=oR,He=iR,Ce=aR;let We=ey,be=null;const Fe=Ve({},[...J2,...dp,...up,...fp,...Z2]);let se=null;const Ge=Ve({},[...Q2,...pp,...V2,...yc]);let E=Object.seal(Li(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),T=null,C=null;const G=Object.seal(Li(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let te=!0,ae=!0,re=!1,Y=!0,Z=!1,Te=!0,Ue=!1,Pn=!1,pn=null,L=null,U=!1,Q=!1,pe=!1,we=!1,Be=!0,Ae=!1;const ut="user-content-";let yt=!0,Dt=!1,et={},Tt=null;const Xt=Ve({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let mn=null;const ko=Ve({},["audio","video","img","source","image","track"]);let Ps=null;const Ms=Ve({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Co="http://www.w3.org/1998/Math/MathML",No="http://www.w3.org/2000/svg",Ar="http://www.w3.org/1999/xhtml";let Ls=Ar,O_=!1,R_=null;const Bte=Ve({},[Co,No,Ar],cp),y8=Ft(["mi","mo","mn","ms","mtext"]);let x_=Ve({},y8);const b8=Ft(["annotation-xml"]);let P_=Ve({},b8);const Ute=Ve({},["title","style","font","a","script"]);let Ol=null;const jte=["application/xhtml+xml","text/html"],Hte="text/html";let It=null,Ds=null;const zte=n.createElement("form"),v8=function(w){return w instanceof RegExp||w instanceof Function},M_=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ds&&Ds===w)return;(!w||typeof w!="object")&&(w={}),w=An(w),Ol=jte.indexOf(w.PARSER_MEDIA_TYPE)===-1?Hte:w.PARSER_MEDIA_TYPE,It=Ol==="application/xhtml+xml"?cp:ha,be=so(w,"ALLOWED_TAGS",Fe,{transform:It}),se=so(w,"ALLOWED_ATTR",Ge,{transform:It}),R_=so(w,"ALLOWED_NAMESPACES",Bte,{transform:cp}),Ps=so(w,"ADD_URI_SAFE_ATTR",Ms,{transform:It,base:Ms}),mn=so(w,"ADD_DATA_URI_TAGS",ko,{transform:It,base:ko}),Tt=so(w,"FORBID_CONTENTS",Xt,{transform:It}),T=so(w,"FORBID_TAGS",An({}),{transform:It}),C=so(w,"FORBID_ATTR",An({}),{transform:It}),et=vn(w,"USE_PROFILES")?w.USE_PROFILES&&typeof w.USE_PROFILES=="object"?An(w.USE_PROFILES):w.USE_PROFILES:!1,te=w.ALLOW_ARIA_ATTR!==!1,ae=w.ALLOW_DATA_ATTR!==!1,re=w.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=w.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Z=w.SAFE_FOR_TEMPLATES||!1,Te=w.SAFE_FOR_XML!==!1,Ue=w.WHOLE_DOCUMENT||!1,Q=w.RETURN_DOM||!1,pe=w.RETURN_DOM_FRAGMENT||!1,we=w.RETURN_TRUSTED_TYPE||!1,U=w.FORCE_BODY||!1,Be=w.SANITIZE_DOM!==!1,Ae=w.SANITIZE_NAMED_PROPS||!1,yt=w.KEEP_CONTENT!==!1,Dt=w.IN_PLACE||!1,We=JO(w.ALLOWED_URI_REGEXP)?w.ALLOWED_URI_REGEXP:ey,Ls=typeof w.NAMESPACE=="string"?w.NAMESPACE:Ar,x_=mp(w,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ve({},y8)),P_=mp(w,"HTML_INTEGRATION_POINTS",()=>Ve({},b8));const j=mp(w,"CUSTOM_ELEMENT_HANDLING",()=>Li(null));if(E=Li(null),vn(j,"tagNameCheck")&&v8(j.tagNameCheck)&&(E.tagNameCheck=j.tagNameCheck),vn(j,"attributeNameCheck")&&v8(j.attributeNameCheck)&&(E.attributeNameCheck=j.attributeNameCheck),vn(j,"allowCustomizedBuiltInElements")&&typeof j.allowCustomizedBuiltInElements=="boolean"&&(E.allowCustomizedBuiltInElements=j.allowCustomizedBuiltInElements),zt(E),Z&&(ae=!1),pe&&(Q=!0),et&&(be=Ve({},Z2),se=Li(null),et.html===!0&&(Ve(be,J2),Ve(se,Q2)),et.svg===!0&&(Ve(be,dp),Ve(se,pp),Ve(se,yc)),et.svgFilters===!0&&(Ve(be,up),Ve(se,pp),Ve(se,yc)),et.mathMl===!0&&(Ve(be,fp),Ve(se,V2),Ve(se,yc))),G.tagCheck=null,G.attributeCheck=null,vn(w,"ADD_TAGS")&&(typeof w.ADD_TAGS=="function"?G.tagCheck=w.ADD_TAGS:Di(w.ADD_TAGS)&&(be===Fe&&(be=An(be)),Ve(be,w.ADD_TAGS,It))),vn(w,"ADD_ATTR")&&(typeof w.ADD_ATTR=="function"?G.attributeCheck=w.ADD_ATTR:Di(w.ADD_ATTR)&&(se===Ge&&(se=An(se)),Ve(se,w.ADD_ATTR,It))),vn(w,"ADD_FORBID_CONTENTS")&&Di(w.ADD_FORBID_CONTENTS)&&(Tt===Xt&&(Tt=An(Tt)),Ve(Tt,w.ADD_FORBID_CONTENTS,It)),yt&&(be["#text"]=!0),Ue&&Ve(be,["html","head","body"]),be.table&&(Ve(be,["tbody"]),delete T.tbody),w.TRUSTED_TYPES_POLICY){if(typeof w.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ho('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof w.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ho('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const V=q;q=w.TRUSTED_TYPES_POLICY;try{k=z("")}catch(he){throw q=V,he}}else w.TRUSTED_TYPES_POLICY===null?(q=void 0,k=""):(q===void 0&&(q=F()),q&&typeof k=="string"&&(k=z("")));Ft&&Ft(w),Ds=w},E8=Ve({},[...dp,...up,...ZO]),$8=Ve({},[...fp,...QO]),qte=function(w,j,V){return j.namespaceURI===Ar?w==="svg":j.namespaceURI===Co?w==="svg"&&(V==="annotation-xml"||x_[V]):!!E8[w]},Wte=function(w,j,V){return j.namespaceURI===Ar?w==="math":j.namespaceURI===No?w==="math"&&P_[V]:!!$8[w]},Gte=function(w,j,V){return j.namespaceURI===No&&!P_[V]||j.namespaceURI===Co&&!x_[V]?!1:!$8[w]&&(Ute[w]||!E8[w])},Yte=function(w){let j=h(w);(!j||!j.tagName)&&(j={namespaceURI:Ls,tagName:"template"});const V=ha(w.tagName),he=ha(j.tagName);return R_[w.namespaceURI]?w.namespaceURI===No?qte(V,j,he):w.namespaceURI===Co?Wte(V,j,he):w.namespaceURI===Ar?Gte(V,j,he):!!(Ol==="application/xhtml+xml"&&R_[w.namespaceURI]):!1},Io=function(w){_a(t.removed,{element:w});try{h(w).removeChild(w)}catch{if(_(w),!h(w))throw Ho("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},S8=function(w,j,V){try{w.removeAttributeNode(j)}catch{try{w.removeAttribute(V)}catch{}}},Cu=function(w){Nu(w);const j=g(w);if(j){const he=[];jo(j,Ee=>{_a(he,Ee)}),jo(he,Ee=>{try{_(Ee)}catch{}})}const V=v(w);if(V)for(let he=V.length-1;he>=0;--he){const Ee=V[he],xe=Ee&&Ee.name;typeof xe=="string"&&S8(w,Ee,xe)}},_i=function(w,j,V){if(!V)try{V=j.getAttributeNode(w)}catch{V=null}_a(t.removed,{attribute:V||null,from:j});try{V?j.removeAttributeNode(V):j.removeAttribute(w)}catch{try{j.removeAttribute(w)}catch{}}if(w==="is")if(Q||pe)try{Io(j)}catch{}else try{j.setAttribute(w,"")}catch{}},Kte=function(w){const j=v(w);if(j)for(let V=j.length-1;V>=0;--V){const he=j[V],Ee=he&&he.name;typeof Ee!="string"||se[It(Ee)]||S8(w,he,Ee)}},Nu=function(w){const j=[w];for(;j.length>0;){const V=j.pop();$(V)===kn.element&&Kte(V);const Ee=g(V);if(Ee)for(let xe=Ee.length-1;xe>=0;--xe)j.push(Ee[xe])}},T8=function(w,j){return Te?w==="patchsrc"?!0:w==="for"&&j!=="label"&&j!=="output":!1},Xte=function(w){if(!Te)return;const j=[w];for(;j.length>0;){const V=j.pop(),he=$(V);if(he===kn.processingInstruction||he===kn.comment&&tn(ny,V.data)){try{_(V)}catch{}continue}if(he===kn.element){const xe=V,ht=It(H(V));try{xe.hasAttribute&&xe.hasAttribute("patchsrc")&&xe.removeAttribute("patchsrc"),xe.hasAttribute&&xe.hasAttribute("for")&&T8("for",ht)&&xe.removeAttribute("for")}catch{}}const Ee=g(V);if(Ee)for(let xe=Ee.length-1;xe>=0;--xe)j.push(Ee[xe])}},w8=function(w){let j=null,V=null;if(U)w="<remove></remove>"+w;else{const xe=G2(w,/^[\r\n\t ]+/);V=xe&&xe[0]}Ol==="application/xhtml+xml"&&Ls===Ar&&(w='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+w+"</body></html>");const he=q?z(w):w;if(Ls===Ar)try{j=new f().parseFromString(he,Ol)}catch{}if(!j||!j.documentElement){j=K.createDocument(Ls,"template",null);try{j.documentElement.innerHTML=O_?k:he}catch{}}const Ee=j.body||j.documentElement;return w&&V&&Ee.insertBefore(n.createTextNode(V),Ee.childNodes[0]||null),Ls===Ar?oe.call(j,Ue?"html":"body")[0]:Ue?j.documentElement:Ee},A8=function(w){const j=A?A(w):w.ownerDocument;return W.call(j||w,w,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Iu=function(w){return w=ga(w,ke," "),w=ga(w,J," "),w=ga(w,de," "),w},L_=function(w){var j;w.normalize();const V=A?A(w):w.ownerDocument,he=W.call(V||w,w,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Ee=he.nextNode();for(;Ee;)Ee.data=Iu(Ee.data),Ee=he.nextNode();const xe=(j=w.querySelectorAll)===null||j===void 0?void 0:j.call(w,"template");xe&&jo(xe,ht=>{Fs(ht.content)&&L_(ht.content)})},Ou=function(w){const j=N?N(w):null;return typeof j!="string"||It(j)!=="form"?!1:typeof w.nodeName!="string"||typeof w.textContent!="string"||typeof w.removeChild!="function"||w.attributes!==v(w)||typeof w.removeAttribute!="function"||typeof w.setAttribute!="function"||typeof w.namespaceURI!="string"||typeof w.insertBefore!="function"||typeof w.hasChildNodes!="function"||w.nodeType!==S(w)||w.childNodes!==g(w)},Fs=function(w){if(!S||typeof w!="object"||w===null)return!1;try{return S(w)===kn.documentFragment}catch{return!1}},Rl=function(w){if(!S||typeof w!="object"||w===null)return!1;try{return typeof S(w)=="number"}catch{return!1}};function kr(ie,w,j){ie.length!==0&&jo(ie,V=>{V.call(t,w,j,Ds)})}const Jte=function(w,j){return!!(Te&&w.hasChildNodes()&&!Rl(w.firstElementChild)&&tn(ty,w.textContent)&&tn(ty,w.innerHTML)||Te&&w.namespaceURI===Ar&&dR[j]&&(Rl(w.firstElementChild)||typeof w.textContent=="string"&&tn(uR[j],w.textContent))||w.nodeType===kn.processingInstruction||Te&&w.nodeType===kn.comment&&tn(ny,w.data))},Ru=function(w,j){if(w instanceof RegExp)return tn(w,j);if(w instanceof Function){for(var V=arguments.length,he=new Array(V>2?V-2:0),Ee=2;Ee<V;Ee++)he[Ee-2]=arguments[Ee];return!!w(j,...he)}return!1},Zte=function(w,j,V){if(!T[j]&&O8(j)&&Ru(E.tagNameCheck,j))return!1;if(yt&&!Tt[j]){const he=h(w),Ee=g(w);if(Ee&&he){const xe=Ee.length;for(let ht=xe-1;ht>=0;--ht){const wt=w===V?m(Ee[ht],!0):Ee[ht];he.insertBefore(wt,y(w))}}}return Io(w),!0},k8=function(w,j,V,he){return w.length===0?j:j===V||j===he?An(j):j},C8=function(w,j){return w===j||h(w)!==null?!1:(Dt&&Nu(w),!0)},N8=function(w,j){if(kr(ne.beforeSanitizeElements,w,null),C8(w,j))return!0;if(Ou(w))return Io(w),!0;const V=It(H(w));if(be=k8(ne.uponSanitizeElement,be,Fe,pn),kr(ne.uponSanitizeElement,w,{tagName:V,allowedTags:be}),C8(w,j))return!0;if(Jte(w,V))return Io(w),!0;if(T[V]||!(G.tagCheck instanceof Function&&G.tagCheck(V))&&!be[V]){const Ee=Zte(w,V,j);return Ee===!1&&kr(ne.afterSanitizeElements,w,null),Ee}if($(w)===kn.element&&!Yte(w)||(V==="noscript"||V==="noembed"||V==="noframes")&&tn(lR,w.innerHTML))return Io(w),!0;if(Z&&w.nodeType===kn.text){const Ee=Iu(w.textContent);w.textContent!==Ee&&(_a(t.removed,{element:w.cloneNode()}),w.textContent=Ee)}return kr(ne.afterSanitizeElements,w,null),!1},I8=function(w,j,V){if(C[j]||T8(j,w)||Be&&(j==="id"||j==="name")&&(V in n||V in zte))return!1;const he=se[j]||G.attributeCheck instanceof Function&&G.attributeCheck(j,w);return ae&&tn(ve,j)||te&&tn($e,j)?!0:he?Ps[j]||tn(We,ga(V,He,""))||(j==="src"||j==="xlink:href"||j==="href")&&w!=="script"&&Y2(V,"data:")===0&&mn[w]||re&&!tn(Re,ga(V,He,""))?!0:!V:O8(w)&&Ru(E.tagNameCheck,w)&&Ru(E.attributeNameCheck,j,w)||j==="is"&&E.allowCustomizedBuiltInElements&&Ru(E.tagNameCheck,V)},Qte=Ve({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),O8=function(w){return!Qte[ha(w)]&&tn(Ce,w)},Vte=function(w,j,V,he){if(q&&typeof u=="object"&&typeof u.getAttributeType=="function"&&!V)switch(u.getAttributeType(w,j)){case"TrustedHTML":return z(he);case"TrustedScriptURL":return B(he)}return he},ene=function(w,j,V,he){try{V?w.setAttributeNS(V,j,he):w.setAttribute(j,he),Ou(w)?Io(w):W2(t.removed)}catch{_i(j,w)}},R8=function(w){kr(ne.beforeSanitizeAttributes,w,null);const j=w.attributes;if(!j||Ou(w))return;se=k8(ne.uponSanitizeAttribute,se,Ge,L);const V={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:se,forceKeepAttr:void 0};let he=j.length;const Ee=It(w.nodeName);for(;he--;){const xe=j[he],ht=xe.name,wt=xe.namespaceURI,Sn=xe.value,Tn=It(ht),F_=Sn;let _n=ht==="value"?F_:qO(F_);if(V.attrName=Tn,V.attrValue=_n,V.keepAttr=!0,V.forceKeepAttr=void 0,kr(ne.uponSanitizeAttribute,w,V),_n=V.attrValue,Ae&&(Tn==="id"||Tn==="name")&&Y2(_n,ut)!==0&&(_i(ht,w,xe),_n=ut+_n),Te&&tn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,_n)){_i(ht,w,xe);continue}if(Tn==="attributename"&&G2(_n,"href")){_i(ht,w,xe);continue}if(!V.forceKeepAttr){if(!V.keepAttr){_i(ht,w,xe);continue}if(!Y&&tn(cR,_n)){_i(ht,w,xe);continue}if(Z&&(_n=Iu(_n)),!I8(Ee,Tn,_n)){_i(ht,w,xe);continue}_n=Vte(Ee,Tn,wt,_n),_n!==F_&&ene(w,ht,wt,_n)}}kr(ne.afterSanitizeAttributes,w,null)},xu=function(w){let j=null;const V=A8(w);for(kr(ne.beforeSanitizeShadowDOM,w,null);j=V.nextNode();)if(kr(ne.uponSanitizeShadowNode,j,null),N8(j,w),R8(j),Fs(j.content)&&xu(j.content),$(j)===kn.element){const he=b(j);Fs(he)&&(D_(he),xu(he))}kr(ne.afterSanitizeShadowDOM,w,null)},D_=function(w){const j=[{node:w,shadow:null}];for(;j.length>0;){const V=j.pop();if(V.shadow){xu(V.shadow);continue}const he=V.node,xe=$(he)===kn.element,ht=g(he);if(ht)for(let wt=ht.length-1;wt>=0;--wt)j.push({node:ht[wt],shadow:null});if(xe){const wt=N?N(he):null;if(typeof wt=="string"&&It(wt)==="template"){const Sn=he.content;Fs(Sn)&&j.push({node:Sn,shadow:null})}}if(xe){const wt=b(he);Fs(wt)&&j.push({node:null,shadow:wt},{node:wt,shadow:null})}}};return t.sanitize=function(ie){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=null,V=null,he=null,Ee=null;if(O_=!ie,O_&&(ie="<!-->"),typeof ie!="string"&&!Rl(ie)&&(ie=XO(ie),typeof ie!="string"))throw Ho("dirty is not a string, aborting");if(!t.isSupported)return ie;Pn?(be=pn,se=L):M_(w),(ne.uponSanitizeElement.length>0||ne.uponSanitizeAttribute.length>0)&&(be=An(be)),ne.uponSanitizeAttribute.length>0&&(se=An(se)),t.removed=[];const xe=Dt&&typeof ie!="string"&&Rl(ie);if(xe){Xte(ie);const Sn=H(ie);if(typeof Sn=="string"){const Tn=It(Sn);if(!be[Tn]||T[Tn])throw Cu(ie),Ho("root node is forbidden and cannot be sanitized in-place")}if(Ou(ie))throw Cu(ie),Ho("root node is clobbered and cannot be sanitized in-place");try{D_(ie)}catch(Tn){throw Cu(ie),Tn}}else if(Rl(ie))j=w8("<!---->"),V=j.ownerDocument.importNode(ie,!0),V.nodeType===kn.element&&V.nodeName==="BODY"||V.nodeName==="HTML"?j=V:j.appendChild(V),D_(V);else{if(!Q&&!Z&&!Ue&&ie.indexOf("<")===-1)return q&&we?z(ie):ie;if(j=w8(ie),!j)return Q?null:we?k:""}j&&U&&Io(j.firstChild);const ht=xe?ie:j;try{const Sn=A8(ht);for(;he=Sn.nextNode();)N8(he,ht),R8(he),Fs(he.content)&&xu(he.content)}catch(Sn){throw xe&&(Cu(ie),jo(t.removed,Tn=>{Tn.element&&Nu(Tn.element)})),Sn}if(xe)return jo(t.removed,Sn=>{Sn.element&&Nu(Sn.element)}),Z&&L_(ie),ie;if(Q){if(Z&&L_(j),pe)for(Ee=X.call(j.ownerDocument);j.firstChild;)Ee.appendChild(j.firstChild);else Ee=j;return(se.shadowroot||se.shadowrootmode)&&(Ee=ce.call(r,Ee,!0)),Ee}let wt=Ue?j.outerHTML:j.innerHTML;return Ue&&be["!doctype"]&&j.ownerDocument&&j.ownerDocument.doctype&&j.ownerDocument.doctype.name&&tn(sR,j.ownerDocument.doctype.name)&&(wt="<!DOCTYPE "+j.ownerDocument.doctype.name+`>
28
+ `+wt),Z&&(wt=Iu(wt)),q&&we?z(wt):wt},t.setConfig=function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};M_(ie),Pn=!0,pn=be,L=se},t.clearConfig=function(){Ds=null,Pn=!1,pn=null,L=null,q=O,k=""},t.isValidAttribute=function(ie,w,j){Ds||M_({});const V=It(ie),he=It(w);return I8(V,he,j)},t.addHook=function(ie,w){typeof w=="function"&&vn(ne,ie)&&_a(ne[ie],w)},t.removeHook=function(ie,w){if(vn(ne,ie)){if(w!==void 0){const j=HO(ne[ie],w);return j===-1?void 0:zO(ne[ie],j,1)[0]}return W2(ne[ie])}},t.removeHooks=function(ie){vn(ne,ie)&&(ne[ie]=[])},t.removeAllHooks=function(){ne=oy()},t}var mR=iy();const _R=["b","i","em","strong","u","s","small","sub","sup","p","br","hr","div","span","section","h1","h2","h3","h4","h5","h6","ul","ol","li","a","img","table","thead","tbody","tr","th","td","blockquote","pre","code","label","input","select","option"],hR=["href","target","rel","src","alt","width","height","class","id","style","data-umami-event","type","for","name","value"];function ao(e){return e?mR.sanitize(String(e),{ALLOWED_TAGS:_R,ALLOWED_ATTR:hR,ALLOW_DATA_ATTR:!1}):""}function bc(e){return String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const gR=["label","info","buttonUploadLabel","defaultOptionText","confirmationLabel"];function yR(e){return typeof e=="string"?ao(e):e&&typeof e=="object"&&typeof e.name=="string"?{...e,name:ao(e.name)}:e}function bR(e){const t={...e},n=t;for(const r of gR)typeof n[r]=="string"&&(n[r]=ao(n[r]));return Array.isArray(t.options)&&(t.options=t.options.map(yR)),t}function vR(e){return Array.isArray(e)?e.map(t=>({...t,name:typeof t.name=="string"?ao(t.name):t.name,fields:Array.isArray(t.fields)?t.fields.map(bR):t.fields})):[]}const ER=["innerHTML"],sy=l.defineComponent({__name:"FieldBlocHtml",props:{field:{}},setup(e){const n=e.field,{form:r}=io(),o=l.computed(()=>(n.html||"").replace(/\{\{\s*([\w.$]+)\s*\}\}/g,(s,a)=>{const c=a.replace(/^this\.form\./,"");if(c==="motif_nc_display"){const d=r.motif_nc_display,f=Array.isArray(d)?d.map(u=>String(u)):typeof d=="string"?d.split(`
29
+ `).filter(Boolean):[];return f.length?`<ul>${f.map(u=>`<li>${bc(u)}</li>`).join("")}</ul>`:bc(d)}if(c==="amount_to_refund"){const d=r.amount_to_refund;if(typeof d!="number")return bc(d);const f=d/100;return f%1===0?f.toString():f.toLocaleString("fr-FR",{minimumFractionDigits:2,maximumFractionDigits:2})}return bc(r[c])}));return(i,s)=>(l.openBlock(),l.createElementBlock("div",{class:"fb-blochtml",innerHTML:o.value},null,8,ER))}});const $R=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var vc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const SR=({size:e,strokeWidth:t=2,absoluteStrokeWidth:n,color:r,iconNode:o,name:i,class:s,...a},{slots:c})=>l.h("svg",{...vc,width:e||vc.width,height:e||vc.height,stroke:r||vc.stroke,"stroke-width":n?Number(t)*24/Number(e):t,class:["lucide",`lucide-${$R(i??"icon")}`],...a},[...o.map(d=>l.h(...d)),...c.default?[c.default()]:[]]);const Mr=(e,t)=>(n,{slots:r})=>l.h(SR,{...n,iconNode:t,name:e},r);const _p=Mr("CheckIcon",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const TR=Mr("ChevronDownIcon",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const wR=Mr("CloudUploadIcon",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);const AR=Mr("MinusIcon",[["path",{d:"M5 12h14",key:"1ays0h"}]]);const ay=Mr("PlusIcon",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const hp=Mr("Trash2Icon",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);const kR=Mr("TriangleAlertIcon",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const CR=Mr("UploadIcon",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);const ly=Mr("XIcon",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),NR={class:"fb-field"},IR=["name","required","aria-invalid"],OR={key:0,class:"fb-error",role:"alert"},cy=l.defineComponent({__name:"FieldIbanHolder",props:{label:{},required:{type:Boolean}},setup(e){const t=e,{form:n}=io(),{value:r,errorMessage:o,meta:i,handleBlur:s}=Oo(t.label,t.required?{required:!0}:{},{initialValue:n.iban_holder??""});l.watch(r,c=>{n.iban_holder=c},{immediate:!0});const a=l.computed(()=>!!o.value&&(i.touched||i.dirty));return(c,d)=>(l.openBlock(),l.createElementBlock("div",NR,[l.createVNode(Xe,{"for-id":"iban_holder",label:e.label,required:e.required},null,8,["label","required"]),l.withDirectives(l.createElementVNode("input",{id:"iban_holder","onUpdate:modelValue":d[0]||(d[0]=f=>l.isRef(r)?r.value=f:null),class:l.normalizeClass(["fb-input",{"fb-invalid":a.value}]),type:"text",name:e.label,required:e.required||void 0,placeholder:"Nom et prénom ou société","aria-invalid":a.value||void 0,onBlur:d[1]||(d[1]=(...f)=>l.unref(s)&&l.unref(s)(...f))},null,42,IR),[[l.vModelText,l.unref(r)]]),a.value?(l.openBlock(),l.createElementBlock("span",OR,l.toDisplayString(l.unref(o)),1)):l.createCommentVNode("",!0)]))}}),RR={class:"fb-field"},xR={class:"fb-iban-title"},PR=["id","name","value","placeholder","required","aria-invalid"],MR={key:1,class:"fb-iban-warning"},LR=["innerHTML"],DR=l.defineComponent({__name:"FieldIban",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"iban",o=`${r}-error`,i=n.acceptedCountries||[],s={iban:!0};i.length&&(s.countryiban=i);const{model:a,showError:c,errorMessage:d,controlClass:f,handleBlur:u,ctx:p}=Ct(n,s),m=oo(p.locale);function _(y){a.value=Uk(y.target.value)}return(y,g)=>(l.openBlock(),l.createElementBlock("div",RR,[l.unref(n).disableHolderField?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("h3",xR,l.toDisplayString(l.unref(n).sectionTitle||l.unref(m)("iban_section_title")),1),l.createVNode(cy,{label:l.unref(n).holderLabel||l.unref(m)("iban_holder"),required:l.unref(n).required},null,8,["label","required"])],64)),l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),l.createElementVNode("input",{id:l.unref(r),class:l.normalizeClass(["fb-input",l.unref(f)]),type:"text",name:l.unref(r),value:l.unref(a),autocomplete:"off",spellcheck:"false",placeholder:l.unref(n).placeholder,required:l.unref(n).required||void 0,"aria-invalid":l.unref(c)||void 0,onInput:_,onBlur:g[0]||(g[0]=(...h)=>l.unref(u)&&l.unref(u)(...h))},null,42,PR),l.unref(n).disableHolderField?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",MR,[l.createVNode(l.unref(kR),{size:20,"aria-hidden":"true"}),l.createElementVNode("p",null,l.toDisplayString(l.unref(m)("iban_warning")),1)])),l.unref(n).info?(l.openBlock(),l.createElementBlock("p",{key:2,class:"fb-info",innerHTML:l.unref(n).info},null,8,LR)):l.createCommentVNode("",!0),l.unref(c)?(l.openBlock(),l.createElementBlock("span",{key:3,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(n).forceErrorMessage||l.unref(d)),1)):l.createCommentVNode("",!0)]))}}),FR={class:"fb-field"},BR={key:0,class:"fb-file-status"},UR={key:1,class:"fb-file-link"},jR=["href"],HR={key:0,class:"fb-file-btn"},zR=["innerHTML"],qR=["id","name","accept","required"],WR=["id","name","accept","required","aria-invalid"],GR={key:2,class:"fb-file-selected"},YR=["innerHTML"],KR=l.defineComponent({__name:"FieldFile",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"file",o=`${r}-error`,i=n.sizeMax??2560,{model:s,showError:a,errorMessage:c,handleBlur:d,ctx:f}=Ct(n),u=oo(f.locale),p=l.ref(null),m=l.ref(!1),_=l.ref(""),y=l.computed(()=>typeof s.value=="string"&&s.value.startsWith("http")),g=l.computed(()=>typeof s.value=="string"&&s.value.startsWith("data:"));function h(N){f.bus.emit("show-popup",{title:n.label||"Fichier",message:N})}function b(N){if(!n.accept)return!0;const A=String(n.accept).split(",").map(H=>H.trim().toLowerCase().replace(/^\./,"")).filter(Boolean);if(!A.length)return!0;const $=N.toLowerCase().match(/\.([^.\s]+)\s*$/)?.[1];return!!$&&A.includes($)}async function v(N){const A=N.target.files?.[0];if(!A)return;if(!b(A.name)){p.value&&(p.value.value=""),h(`Format non accepté. Formats acceptés : ${n.accept}`);return}if(A.size>i*1e3){p.value&&(p.value.value=""),h(u("file_max_size_error"));return}if(A.name.toLowerCase().endsWith(".heic")){p.value&&(p.value.value=""),h(u("file_heic_error"));return}_.value=A.name;const $=new FileReader;$.onloadend=async()=>{const H=$.result;if(n.isDirectUpload)try{m.value=!0;const{data:q}=await nt.post(`${f.server}/api/v2/submissions/upload`,{b64file:H,filename:A.name,operationId:f.operationId.value,save_to:n.save_to});s.value=q.url}catch(q){s.value="",p.value&&(p.value.value="");const k=q.response?.data?.errors?.[0];h(k||"L’envoi du fichier a échoué."),Mn(q,{where:"FieldFile.upload",save_to:n.save_to})}finally{m.value=!1}else s.value=H;d()},$.readAsDataURL(A)}function S(){s.value="",_.value="",p.value&&(p.value.value="")}return(N,A)=>(l.openBlock(),l.createElementBlock("div",FR,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),m.value?(l.openBlock(),l.createElementBlock("div",BR,l.toDisplayString(l.unref(u)("multiple_file_upload_en_cours"))+"… ",1)):y.value?(l.openBlock(),l.createElementBlock("div",UR,[l.createElementVNode("a",{href:String(l.unref(s)),target:"_blank",rel:"noopener"},l.toDisplayString(decodeURI(String(l.unref(s)).split("/").slice(-1)[0])),9,jR),l.createElementVNode("button",{type:"button",class:"fb-file-delete","aria-label":"Supprimer le fichier",onClick:S},[l.createVNode(l.unref(ly),{size:16})])])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[l.unref(n).isButtonUpload?(l.openBlock(),l.createElementBlock("label",HR,[l.createVNode(l.unref(CR),{size:18}),l.createElementVNode("span",{innerHTML:l.unref(n).buttonUploadLabel||"Télécharger"},null,8,zR),l.createElementVNode("input",{id:l.unref(r),ref_key:"inputRef",ref:p,type:"file",class:"fb-file-hidden",name:l.unref(r),accept:l.unref(n).accept,required:!l.unref(s)&&l.unref(n).required?!0:void 0,onChange:v,onBlur:A[0]||(A[0]=(...$)=>l.unref(d)&&l.unref(d)(...$))},null,40,qR)])):(l.openBlock(),l.createElementBlock("input",{key:1,id:l.unref(r),ref_key:"inputRef",ref:p,type:"file",class:"fb-file-input",name:l.unref(r),accept:l.unref(n).accept,required:!l.unref(s)&&l.unref(n).required?!0:void 0,"aria-invalid":l.unref(a)||void 0,onChange:v,onBlur:A[1]||(A[1]=(...$)=>l.unref(d)&&l.unref(d)(...$))},null,40,WR)),g.value?(l.openBlock(),l.createElementBlock("span",GR,[A[2]||(A[2]=l.createTextVNode("1 fichier sélectionné",-1)),_.value?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createTextVNode(" — "+l.toDisplayString(_.value),1)],64)):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)],64)),l.unref(n).info?(l.openBlock(),l.createElementBlock("p",{key:3,class:"fb-info",innerHTML:l.unref(n).info},null,8,YR)):l.createCommentVNode("",!0),l.unref(a)?(l.openBlock(),l.createElementBlock("span",{key:4,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(c)),1)):l.createCommentVNode("",!0)]))}});function XR(e){const t=(e||"").replace(/[^\dAB]/gi,"").toUpperCase().slice(0,15),n=[1,2,2,2,3,3,2],r=[];let o=0;for(const i of n){if(o>=t.length)break;r.push(t.slice(o,o+i)),o+=i}return r.join(" ")}const JR={class:"fb-field"},ZR=["id","name","value","placeholder","required","aria-invalid"],QR=["innerHTML"],VR=l.defineComponent({__name:"FieldSecuriteSociale",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"ssn",o=`${r}-error`,{model:i,showError:s,errorMessage:a,controlClass:c,handleBlur:d}=Ct(n,{securitesocialefr:!0});function f(u){i.value=XR(u.target.value)}return(u,p)=>(l.openBlock(),l.createElementBlock("div",JR,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),l.createElementVNode("input",{id:l.unref(r),class:l.normalizeClass(["fb-input",l.unref(c)]),type:"text",inputmode:"numeric",name:l.unref(r),value:l.unref(i),placeholder:l.unref(n).placeholder||"1 23 45 67 890 123 45",required:l.unref(n).required||void 0,"aria-invalid":l.unref(s)||void 0,onInput:f,onBlur:p[0]||(p[0]=(...m)=>l.unref(d)&&l.unref(d)(...m))},null,42,ZR),l.unref(n).info?(l.openBlock(),l.createElementBlock("p",{key:0,class:"fb-info",innerHTML:l.unref(n).info},null,8,QR)):l.createCommentVNode("",!0),l.unref(s)?(l.openBlock(),l.createElementBlock("span",{key:1,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(a)),1)):l.createCommentVNode("",!0)]))}}),ex={class:"fb-field"},tx=["id","name","placeholder","required","aria-invalid"],nx=l.defineComponent({__name:"FieldDevise",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"devise",o=`${r}-error`,{model:i,showError:s,errorMessage:a,controlClass:c,handleBlur:d}=Ct(n,{min_value:0}),f=l.computed({get:()=>{const u=Number(i.value);return u?u/100:""},set:u=>{const p=Math.round(parseFloat(String(u))*100);i.value=Number.isNaN(p)?0:p}});return(u,p)=>(l.openBlock(),l.createElementBlock("div",ex,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),l.withDirectives(l.createElementVNode("input",{id:l.unref(r),"onUpdate:modelValue":p[0]||(p[0]=m=>f.value=m),class:l.normalizeClass(["fb-input",l.unref(c)]),type:"number",step:"0.01",inputmode:"decimal",name:l.unref(r),placeholder:l.unref(n).placeholder,required:l.unref(n).required||void 0,"aria-invalid":l.unref(s)||void 0,onBlur:p[1]||(p[1]=(...m)=>l.unref(d)&&l.unref(d)(...m))},null,42,tx),[[l.vModelText,f.value]]),l.unref(s)?(l.openBlock(),l.createElementBlock("span",{key:0,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(n).forceErrorMessage||l.unref(a)),1)):l.createCommentVNode("",!0)]))}});function gp(e){const t=(e||"").replace(/\D/g,"").slice(0,13);return t.length<=1?t:[t.slice(0,1),t.slice(1,7),t.slice(7,13)].filter(Boolean).join(" ")}const rx={class:"fb-field"},ox=["id","name","value","placeholder","required","aria-invalid"],ix={key:0,class:"fb-ean-ok"},sx=["innerHTML"],ax=l.defineComponent({__name:"FieldEan",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"ean",o=`${r}-error`,i=l.computed(()=>(n.options||[]).map(b=>typeof b=="string"?{value:b,label:b}:{value:b.value,label:b.label??b.name??b.value})),s=l.computed(()=>i.value.length>0),a=l.computed(()=>i.value.map(b=>gp(b.label))),c={};s.value&&(c.one_of=a.value);const{model:d,showError:f,errorMessage:u,controlClass:p,handleBlur:m,setValue:_}=Ct(n,c),y=l.ref(gp(String(d.value??""))),g=l.ref(null);function h(b){y.value=gp(b.target.value);const v=y.value.replace(/\D/g,"");if(s.value){_(y.value);const S=i.value.find(N=>N.label.replace(/\D/g,"")===v);g.value=S?S.value:null}else _(v.length===13?v:""),g.value=null}return(b,v)=>(l.openBlock(),l.createElementBlock("div",rx,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),l.createElementVNode("input",{id:l.unref(r),class:l.normalizeClass(["fb-input",l.unref(p)]),type:"text",inputmode:"numeric",name:l.unref(r),value:y.value,placeholder:l.unref(n).placeholder,required:l.unref(n).required||void 0,"aria-invalid":l.unref(f)||void 0,onInput:h,onBlur:v[0]||(v[0]=(...S)=>l.unref(m)&&l.unref(m)(...S))},null,42,ox),g.value?(l.openBlock(),l.createElementBlock("span",ix,[l.createVNode(l.unref(_p),{size:16}),l.createTextVNode(" "+l.toDisplayString(g.value),1)])):l.createCommentVNode("",!0),l.unref(n).info?(l.openBlock(),l.createElementBlock("p",{key:1,class:"fb-info",innerHTML:l.unref(n).info},null,8,sx)):l.createCommentVNode("",!0),l.unref(f)?(l.openBlock(),l.createElementBlock("span",{key:2,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(n).forceErrorMessage||l.unref(u)),1)):l.createCommentVNode("",!0)]))}}),lx={class:"fb-field"},cx=["id","name","value","placeholder","required","disabled","autocomplete","aria-invalid"],dx={key:0,class:"fb-phone-verif","aria-live":"polite"},ux={key:0,class:"fb-phone-verified"},fx={class:"fb-phone-code"},px=["onKeydown"],mx=["disabled"],_x={key:1,class:"fb-info"},hx=["disabled"],gx=["innerHTML"],yx={key:3,class:"fb-error",role:"alert"},bx=60,vx=l.defineComponent({__name:"FieldPhone",props:{field:{}},emits:["phone-verification"],setup(e,{emit:t}){const n=e,r=t,o=n.field,i=o.save_to||"phone",s=`${i}-error`,{model:a,showError:c,errorMessage:d,controlClass:f,handleBlur:u,ctx:p}=Ct(o,{phone:{phoneType:o.phoneType||"both",defaultCountry:o.defaultCountry,acceptedCountries:o.acceptedCountries||[]}});function m(q){const k=q.target.value,O=mg(k);a.value=new ac(o.defaultCountry).input(O)}const _=l.ref(""),y=l.ref(""),g=l.ref("idle"),h=l.ref(!1),b=l.ref(0);let v;const S=l.computed(()=>{const q=b.value;return`${Math.floor(q/60)}:${String(q%60).padStart(2,"0")}`});function N(){b.value=bx,clearInterval(v),v=setInterval(()=>{b.value>0?b.value--:clearInterval(v)},1e3)}async function A(){y.value="",g.value="sending";try{await nt.post(`${p.server}/api/v2/phone-verification/request`,{phone:a.value,email:p.phoneVerificationEmail.value,operationId:p.operationId.value}),g.value="codeSent",N()}catch(q){g.value="idle",y.value="L’envoi du code a échoué, veuillez réessayer.",Mn(q,{where:"FieldPhone.request",save_to:o.save_to})}}async function $(){y.value="";try{const{data:q}=await nt.post(`${p.server}/api/v2/phone-verification/verify`,{phone:a.value,code:_.value});h.value=!0,clearInterval(v),r("phone-verification",{save_to:o.save_to,verified:!0,token:q.token,phone:a.value})}catch(q){y.value="Code incorrect, veuillez réessayer.",Mn(q,{where:"FieldPhone.verify",save_to:o.save_to})}}function H(){_.value=_.value.replace(/\D/g,"").slice(0,6)}return l.onBeforeUnmount(()=>clearInterval(v)),(q,k)=>(l.openBlock(),l.createElementBlock("div",lx,[l.createVNode(Xe,{"for-id":l.unref(i),label:l.unref(o).label,required:l.unref(o).required},null,8,["for-id","label","required"]),l.createElementVNode("input",{id:l.unref(i),class:l.normalizeClass(["fb-input",l.unref(f)]),type:"tel",inputmode:"tel",name:l.unref(i),value:l.unref(a),placeholder:l.unref(o).placeholder,required:l.unref(o).required||void 0,disabled:h.value,autocomplete:l.unref(o).autocomplete?"tel":void 0,"aria-invalid":l.unref(c)||void 0,onInput:m,onBlur:k[0]||(k[0]=(...O)=>l.unref(u)&&l.unref(u)(...O))},null,42,cx),l.unref(o).phoneVerificationSms?(l.openBlock(),l.createElementBlock("div",dx,[h.value?(l.openBlock(),l.createElementBlock("span",ux,[l.createVNode(l.unref(_p),{size:16}),k[2]||(k[2]=l.createTextVNode(" Numéro validé ",-1))])):g.value==="codeSent"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("div",fx,[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":k[1]||(k[1]=O=>_.value=O),class:"fb-input",type:"text",inputmode:"numeric",autocomplete:"one-time-code",maxlength:"6",placeholder:"Code reçu par SMS",onInput:H,onKeydown:l.withKeys(l.withModifiers($,["prevent"]),["enter"])},null,40,px),[[l.vModelText,_.value]]),l.createElementVNode("button",{type:"button",class:"fb-button fb-button--primary",disabled:_.value.length!==6,onClick:$}," Vérifier ",8,mx)]),b.value===0?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"fb-button fb-button--ghost",onClick:A}," Renvoyer le code ")):(l.openBlock(),l.createElementBlock("span",_x,"Renvoyer dans "+l.toDisplayString(S.value),1))],64)):(l.openBlock(),l.createElementBlock("button",{key:2,type:"button",class:"fb-button fb-button--primary",disabled:g.value==="sending"||!l.unref(a),onClick:A},l.toDisplayString(g.value==="sending"?"Envoi…":"Valider mon numéro"),9,hx))])):l.createCommentVNode("",!0),l.unref(o).info?(l.openBlock(),l.createElementBlock("p",{key:1,class:"fb-info",innerHTML:l.unref(o).info},null,8,gx)):l.createCommentVNode("",!0),l.unref(c)?(l.openBlock(),l.createElementBlock("span",{key:2,id:s,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(d)),1)):l.createCommentVNode("",!0),y.value?(l.openBlock(),l.createElementBlock("span",yx,l.toDisplayString(y.value),1)):l.createCommentVNode("",!0)]))}});let Ec=null;function Ex(e,t="fr"){return typeof window>"u"||window.google?.maps?.places?Promise.resolve():Ec||(Ec=new Promise((r,o)=>{const i=document.createElement("script");i.src=`https://maps.googleapis.com/maps/api/js?key=${encodeURIComponent(e)}&libraries=places&language=${t}&loading=async`,i.async=!0,i.onload=()=>{const s=window.google;s?.maps?.importLibrary?s.maps.importLibrary("places").then(()=>r(),o):s?.maps?.places?r():o(new Error("Google Maps places library unavailable"))},i.onerror=()=>o(new Error("Google Maps script failed to load")),document.head.appendChild(i)}),Ec)}const $x={class:"fb-field"},Sx={key:0,class:"fb-address-ac-wrap"},Tx={key:0,class:"fb-address-ban"},wx=["id","aria-expanded","value","placeholder"],Ax={key:0,class:"fb-address-suggestions",role:"listbox"},kx=["aria-selected","onMousedown","onMouseenter"],Cx={key:2,class:"fb-address-manual"},Nx={class:"fb-field"},Ix=["id","placeholder"],Ox={class:"fb-field"},Rx=["id"],xx={class:"fb-address-row"},Px={class:"fb-field"},Mx=["id"],Lx={class:"fb-field"},Dx=["id"],Fx={class:"fb-field"},Bx=["id"],Ux=["innerHTML"],jx="https://data.geopf.fr/geocodage/completion/",Hx=l.defineComponent({__name:"FieldAdresse",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"address",o=`${r}-error`,i={};n.required&&(i.address_required=!0),hg(n.countries)&&(i.address_metropolitan=!0);const{model:s,showError:a,errorMessage:c,ctx:d}=Ct(n,i),f=oo(d.locale),u=l.reactive({...s.value||{}});l.watch(u,()=>{s.value={...u}},{deep:!0});const p=l.ref(null),m=l.ref(!1),_=l.computed(()=>Yk(n.countries)),y=l.computed(()=>hg(n.countries)),g=l.ref(""),h=l.ref([]),b=l.ref(!1),v=l.ref(-1);let S,N=0,A=null;async function $(I){const D=++N;A?.abort(),A=typeof AbortController<"u"?new AbortController:null;try{const x=`${jx}?text=${encodeURIComponent(I)}&type=StreetAddress&maximumResponses=15`,B=await(await fetch(x,{signal:A?.signal})).json();if(D!==N)return;const F=Array.isArray(B?.results)?B.results:[];h.value=y.value?F.filter(M=>!If(M.zipcode)):F,b.value=h.value.length>0,v.value=-1}catch(x){if(D!==N||x?.name==="AbortError")return;Mn(x,{where:"FieldAdresse.ban"})}}function H(I){g.value=I,clearTimeout(S);const D=I.trim();if(D.length<3){h.value=[],b.value=!1;return}S=setTimeout(()=>$(D),220)}function q(I){if(y.value&&If(I.zipcode))return;clearTimeout(S),A?.abort();const D=`, ${I.zipcode??""} ${I.city??""}`,x=I.fulltext.endsWith(D)?I.fulltext.slice(0,-D.length):I.fulltext.split(",")[0];u.address=x||I.street||I.fulltext,u.postcode=I.zipcode,u.city=I.city,u.country="France",typeof I.y=="number"&&(u.latitude=I.y),typeof I.x=="number"&&(u.longitude=I.x),g.value=I.fulltext,b.value=!1,h.value=[]}function k(I){!b.value||!h.value.length||(I.key==="ArrowDown"?(I.preventDefault(),v.value=(v.value+1)%h.value.length):I.key==="ArrowUp"?(I.preventDefault(),v.value=(v.value-1+h.value.length)%h.value.length):I.key==="Enter"&&v.value>=0?(I.preventDefault(),q(h.value[v.value])):I.key==="Escape"&&(b.value=!1))}function O(I,D,x){const z=K=>I.find(W=>(W.types||[]).includes(K)),B=K=>K?.longText??K?.long_name??"",F=B(z("street_number")),M=B(z("route"));u.address=[F,M].filter(Boolean).join(" ")||x,u.city=B(z("locality"))||B(z("postal_town")),u.postcode=B(z("postal_code")),u.country=B(z("country")),D&&(u.latitude=typeof D.lat=="function"?D.lat():D.lat,u.longitude=typeof D.lng=="function"?D.lng():D.lng)}return l.onMounted(async()=>{if(!_.value){if(!d.googleMapsApiKey.value){m.value=!0;return}try{await Ex(d.googleMapsApiKey.value,d.locale.value);const I=window.google,D={},x=Xk(n.countries);x.length&&(D.includedRegionCodes=x);const z=new I.maps.places.PlaceAutocompleteElement(D);z.id=r,p.value?.appendChild(z),z.addEventListener("gmp-select",async B=>{try{const F=B.placePrediction.toPlace();await F.fetchFields({fields:["addressComponents","location","formattedAddress"]}),O(F.addressComponents||[],F.location,F.formattedAddress||""),y.value&&If(u.postcode)&&(m.value=!0)}catch(F){Mn(F,{where:"FieldAdresse.select"})}})}catch(I){Mn(I,{where:"FieldAdresse.load"}),m.value=!0}}}),(I,D)=>(l.openBlock(),l.createElementBlock("div",$x,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),!m.value&&!u.address?(l.openBlock(),l.createElementBlock("div",Sx,[_.value?(l.openBlock(),l.createElementBlock("div",Tx,[l.createElementVNode("input",{id:l.unref(r),class:"fb-input",type:"text",autocomplete:"off",role:"combobox","aria-autocomplete":"list","aria-expanded":b.value,value:g.value,placeholder:l.unref(n).placeholder||l.unref(f)("N_rue"),onInput:D[0]||(D[0]=x=>H(x.target.value)),onKeydown:k,onFocus:D[1]||(D[1]=x=>b.value=h.value.length>0),onBlur:D[2]||(D[2]=x=>b.value=!1)},null,40,wx),b.value?(l.openBlock(),l.createElementBlock("ul",Ax,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(h.value,(x,z)=>(l.openBlock(),l.createElementBlock("li",{key:`${x.fulltext}-${z}`,class:l.normalizeClass(["fb-address-suggestion",{"is-active":z===v.value}]),role:"option","aria-selected":z===v.value,onMousedown:l.withModifiers(B=>q(x),["prevent"]),onMouseenter:B=>v.value=z},l.toDisplayString(x.fulltext),43,kx))),128))])):l.createCommentVNode("",!0)])):(l.openBlock(),l.createElementBlock("div",{key:1,ref_key:"autocompleteEl",ref:p,class:"fb-address-ac"},null,512))])):l.createCommentVNode("",!0),!m.value&&!u.address?(l.openBlock(),l.createElementBlock("button",{key:1,type:"button",class:"fb-address-toggle",onClick:D[3]||(D[3]=x=>m.value=!0)},l.toDisplayString(l.unref(f)("trouvepasadresse")),1)):l.createCommentVNode("",!0),m.value||u.address?(l.openBlock(),l.createElementBlock("div",Cx,[l.createElementVNode("div",Nx,[l.withDirectives(l.createElementVNode("input",{id:`${l.unref(r)}-street`,"onUpdate:modelValue":D[4]||(D[4]=x=>u.address=x),class:"fb-input",type:"text",placeholder:l.unref(f)("N_rue"),autocomplete:"address-line1"},null,8,Ix),[[l.vModelText,u.address]])]),l.createElementVNode("div",Ox,[l.createVNode(Xe,{"for-id":`${l.unref(r)}-compl`,label:l.unref(f)("compl_addresse")},null,8,["for-id","label"]),l.withDirectives(l.createElementVNode("input",{id:`${l.unref(r)}-compl`,"onUpdate:modelValue":D[5]||(D[5]=x=>u.complement=x),class:"fb-input",type:"text",autocomplete:"address-line2"},null,8,Rx),[[l.vModelText,u.complement]])]),l.createElementVNode("div",xx,[l.createElementVNode("div",Px,[l.createVNode(Xe,{"for-id":`${l.unref(r)}-cp`,label:l.unref(f)("code_postal")},null,8,["for-id","label"]),l.withDirectives(l.createElementVNode("input",{id:`${l.unref(r)}-cp`,"onUpdate:modelValue":D[6]||(D[6]=x=>u.postcode=x),class:"fb-input",type:"text",autocomplete:"postal-code"},null,8,Mx),[[l.vModelText,u.postcode]])]),l.createElementVNode("div",Lx,[l.createVNode(Xe,{"for-id":`${l.unref(r)}-city`,label:l.unref(f)("ville")},null,8,["for-id","label"]),l.withDirectives(l.createElementVNode("input",{id:`${l.unref(r)}-city`,"onUpdate:modelValue":D[7]||(D[7]=x=>u.city=x),class:"fb-input",type:"text",autocomplete:"address-level2"},null,8,Dx),[[l.vModelText,u.city]])])]),l.createElementVNode("div",Fx,[l.createVNode(Xe,{"for-id":`${l.unref(r)}-country`,label:l.unref(f)("pays")},null,8,["for-id","label"]),l.withDirectives(l.createElementVNode("input",{id:`${l.unref(r)}-country`,"onUpdate:modelValue":D[8]||(D[8]=x=>u.country=x),class:"fb-input",type:"text",autocomplete:"country-name"},null,8,Bx),[[l.vModelText,u.country]])])])):l.createCommentVNode("",!0),l.unref(n).info?(l.openBlock(),l.createElementBlock("p",{key:3,class:"fb-info",innerHTML:l.unref(n).info},null,8,Ux)):l.createCommentVNode("",!0),l.unref(a)?(l.openBlock(),l.createElementBlock("span",{key:4,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(n).forceErrorMessage||l.unref(c)),1)):l.createCommentVNode("",!0)]))}}),zx={class:"fb-field"},qx={key:0,class:"fb-file-status"},Wx={key:1,class:"fb-file-link"},Gx=["href"],Yx=["onClick"],Kx=["id","name","accept","onChange"],Xx={class:"fb-mf-actions"},Jx={key:0,class:"fb-info"},Zx=["innerHTML"],Qx={key:2,class:"fb-error",role:"alert"},Vx=l.defineComponent({__name:"FieldMultipleFiles",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"files",o=n.sizeMax??2560,i=n.validationLabel||n.label||r,s=io(),a=oo(s.locale),c=l.ref([{data:void 0}]),d=s.form[r];Array.isArray(d)&&d.length&&(c.value=[...d]);const{value:f,errorMessage:u,meta:p,handleBlur:m}=Oo(`${i}_hidden_required`,n.required?{required:!0}:{},{label:i});function _(k){return typeof k=="string"?!0:typeof k.data=="string"&&k.data.startsWith("http")}const y=l.computed(()=>c.value.some(k=>typeof k!="string"&&k.uploading)),g=l.computed(()=>c.value.some(_)),h=l.computed(()=>!!n.required&&!!u.value&&(p.touched||p.dirty||s.submitAttempted.value));l.watch(c,()=>{const k=c.value.filter(O=>typeof O=="string"?!0:!!O.data).map(O=>typeof O=="string"?O:O.data);s.form[r]=k,f.value=g.value||y.value?"has_files":""},{deep:!0});function b(k){s.bus.emit("show-popup",{title:n.label||"Fichiers",message:k})}function v(k){if(!n.accept)return!0;const O=String(n.accept).split(",").map(D=>D.trim().toLowerCase().replace(/^\./,"")).filter(Boolean);if(!O.length)return!0;const I=k.toLowerCase().match(/\.([^.\s]+)\s*$/)?.[1];return!!I&&O.includes(I)}async function S(k,O){const I=Array.from(O.target.files||[]);c.value.splice(k,1);for(const D of I){if(!v(D.name)){b(`Format non accepté. Formats acceptés : ${n.accept}`);continue}if(D.size>o*1e3){b(a("file_max_size_error"));continue}if(D.name.toLowerCase().endsWith(".heic")){b(a("file_heic_error"));continue}const x=await N(D),z={data:x,uploading:!0,name:D.name};c.value.push(z);try{const{data:B}=await nt.post(`${s.server}/api/v2/submissions/upload`,{b64file:x,filename:D.name,operationId:s.operationId.value,save_to:r});z.data=B.url,z.uploading=!1,c.value=[...c.value]}catch(B){const F=c.value.indexOf(z);F!==-1&&c.value.splice(F,1);const M=B.response?.data?.errors?.[0];b(M||"L’envoi d’un fichier a échoué."),Mn(B,{where:"FieldMultipleFiles.upload",save_to:r})}}c.value.length||c.value.push({data:void 0})}function N(k){return new Promise(O=>{const I=new FileReader;I.onloadend=()=>O(I.result),I.readAsDataURL(k)})}function A(){c.value.push({data:void 0})}function $(){const k=c.value[c.value.length-1];typeof k!="string"&&!k.data&&c.value.pop()}function H(k){c.value.splice(k,1),c.value.length||c.value.push({data:void 0})}function q(k){return typeof k=="string"?k:k.data}return(k,O)=>(l.openBlock(),l.createElementBlock("div",zx,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.value,(I,D)=>(l.openBlock(),l.createElementBlock("div",{key:D,class:"fb-mf-row"},[typeof I!="string"&&I.uploading?(l.openBlock(),l.createElementBlock("div",qx," ["+l.toDisplayString(I.name)+"] "+l.toDisplayString(l.unref(a)("multiple_file_upload_en_cours"))+"… ",1)):_(I)?(l.openBlock(),l.createElementBlock("div",Wx,[l.createElementVNode("a",{href:q(I),target:"_blank",rel:"noopener"},l.toDisplayString(decodeURI(q(I).split("/").slice(-1)[0])),9,Gx),l.createElementVNode("button",{type:"button",class:"fb-file-delete","aria-label":"Supprimer",onClick:x=>H(D)},[l.createVNode(l.unref(hp),{size:16})],8,Yx)])):(l.openBlock(),l.createElementBlock("input",{key:2,id:`${l.unref(r)}_${D}`,type:"file",class:"fb-file-input",name:`${l.unref(r)}_file_${D}`,accept:l.unref(n).accept,multiple:"",onChange:x=>S(D,x),onBlur:O[0]||(O[0]=(...x)=>l.unref(m)&&l.unref(m)(...x))},null,40,Kx))]))),128)),l.createElementVNode("div",Xx,[l.createElementVNode("button",{type:"button",class:"fb-button fb-button--ghost fb-mf-btn",onClick:A},[l.createVNode(l.unref(ay),{size:16}),l.createTextVNode(" "+l.toDisplayString(l.unref(a)("multiple_file_add_file")),1)]),c.value.length>1?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"fb-button fb-button--ghost fb-mf-btn",onClick:$},[l.createVNode(l.unref(AR),{size:16}),l.createTextVNode(" "+l.toDisplayString(l.unref(a)("multiple_file_remove_file")),1)])):l.createCommentVNode("",!0)]),y.value?(l.openBlock(),l.createElementBlock("span",Jx,l.toDisplayString(l.unref(a)("multiple_file_patientez")),1)):l.createCommentVNode("",!0),l.unref(n).info?(l.openBlock(),l.createElementBlock("p",{key:1,class:"fb-info",innerHTML:l.unref(n).info},null,8,Zx)):l.createCommentVNode("",!0),h.value?(l.openBlock(),l.createElementBlock("span",Qx,l.toDisplayString(l.unref(n).forceErrorMessage||l.unref(u)||"Veuillez sélectionner un fichier"),1)):l.createCommentVNode("",!0)]))}});function ba(e){return(e||[]).map(t=>typeof t=="string"?{value:t.toLowerCase(),name:t}:{value:t.value,name:t.name??t.label??t.value,other:!!t.other})}const eP={class:"fb-field"},tP={class:"fb-label"},nP=["innerHTML"],rP={key:0,class:"fb-required-star"},oP={class:"fb-choice-list"},iP=["name","value"],sP={class:"fb-choice-label"},aP=["innerHTML"],lP=l.defineComponent({__name:"FieldMultiCheckbox",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"field",o=`${r}-error`,{model:i,showError:s,errorMessage:a,handleBlur:c}=Ct(n),d=l.computed(()=>ba(n.options)),f=l.ref(typeof i.value=="string"&&i.value?i.value.split(":"):[]);return l.watch(f,()=>{i.value=f.value.join(":")},{deep:!0}),(u,p)=>(l.openBlock(),l.createElementBlock("fieldset",eP,[l.createElementVNode("legend",tP,[l.createElementVNode("span",{innerHTML:l.unref(n).label},null,8,nP),l.unref(n).required?(l.openBlock(),l.createElementBlock("span",rP,"*")):l.createCommentVNode("",!0)]),l.createElementVNode("div",oP,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(d.value,m=>(l.openBlock(),l.createElementBlock("label",{key:m.value,class:l.normalizeClass(["fb-choice",{"is-checked":f.value.includes(m.value)}])},[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":p[0]||(p[0]=_=>f.value=_),type:"checkbox",name:l.unref(r),value:m.value,onBlur:p[1]||(p[1]=(..._)=>l.unref(c)&&l.unref(c)(..._))},null,40,iP),[[l.vModelCheckbox,f.value]]),l.createElementVNode("span",sP,l.toDisplayString(m.name),1)],2))),128))]),l.unref(n).info?(l.openBlock(),l.createElementBlock("p",{key:0,class:"fb-info",innerHTML:l.unref(n).info},null,8,aP)):l.createCommentVNode("",!0),l.unref(s)?(l.openBlock(),l.createElementBlock("span",{key:1,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(n).forceErrorMessage||l.unref(a)),1)):l.createCommentVNode("",!0)]))}}),cP={class:"fb-recap"},dP=["innerHTML"],uP={key:0,class:"fb-recap-value"},fP={key:1,class:"fb-recap-value"},pP=l.defineComponent({__name:"FieldRecap",props:{field:{}},setup(e){const n=e.field,{form:r}=io(),o=l.computed(()=>n.save_to?r[n.save_to]:void 0),i=l.computed(()=>n.save_to==="address"&&o.value&&typeof o.value=="object"?o.value:null);return(s,a)=>(l.openBlock(),l.createElementBlock("div",cP,[l.createElementVNode("div",{class:"fb-recap-label",innerHTML:l.unref(n).label},null,8,dP),i.value?(l.openBlock(),l.createElementBlock("div",uP,[l.createTextVNode(l.toDisplayString(i.value.address),1),i.value.complement?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createTextVNode(", "+l.toDisplayString(i.value.complement),1)],64)):l.createCommentVNode("",!0),i.value.postcode?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(", "+l.toDisplayString(i.value.postcode),1)],64)):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(i.value.city),1)])):(l.openBlock(),l.createElementBlock("div",fP,l.toDisplayString(o.value),1))]))}}),mP={class:"fb-field"},_P=["aria-label"],hP=["aria-checked","onClick","onKeydown"],gP={key:0,class:"fb-cem-hints"},yP=l.defineComponent({__name:"FieldCustomerExpMetric",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"cem",o=`${r}-error`,{model:i,showError:s,errorMessage:a,handleBlur:c}=Ct(n),d=l.computed(()=>Number(n.numberOfItem)||10),f=l.computed(()=>Array.from({length:d.value+1},(h,b)=>b)),u=l.computed(()=>Number(n.numberOfRedItem)||0),p=l.computed(()=>Number(n.numberOfGreenItem)||0),m=l.computed(()=>n.hint0||""),_=l.computed(()=>n.hint10||"");function y(h){return d.value-h<p.value?"cem-green":h<u.value?"cem-red":"cem-yellow"}function g(h){i.value=h,c()}return(h,b)=>(l.openBlock(),l.createElementBlock("div",mP,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),l.createElementVNode("ul",{class:"fb-cem",role:"radiogroup","aria-label":l.unref(n).label},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.value,v=>(l.openBlock(),l.createElementBlock("li",{key:v,class:l.normalizeClass(["fb-cem-item",[y(v),{"is-active":l.unref(i)===v}]]),role:"radio","aria-checked":l.unref(i)===v,tabindex:"0",onClick:S=>g(v),onKeydown:[l.withKeys(S=>g(v),["enter"]),l.withKeys(l.withModifiers(S=>g(v),["prevent"]),["space"])]},l.toDisplayString(v),43,hP))),128))],8,_P),m.value||_.value?(l.openBlock(),l.createElementBlock("div",gP,[l.createElementVNode("span",null,l.toDisplayString(m.value?`0 – ${m.value}`:""),1),l.createElementVNode("span",null,l.toDisplayString(_.value?`${d.value} – ${_.value}`:""),1)])):l.createCommentVNode("",!0),l.unref(s)?(l.openBlock(),l.createElementBlock("span",{key:1,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(a)),1)):l.createCommentVNode("",!0)]))}}),bP={class:"fb-field"},vP=["id","name","value","list","placeholder","required","aria-invalid"],EP=["id"],$P=["value"],SP={key:1,class:"fb-ean-ok"},TP=["innerHTML"],wP=l.defineComponent({__name:"FieldDatalist",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"field",o=`${r}-error`,i=l.computed(()=>ba(n.options)),s=l.computed(()=>i.value.length>0),a={};s.value&&(a.one_of=i.value.map(h=>h.name));const{model:c,showError:d,errorMessage:f,controlClass:u,handleBlur:p,setValue:m}=Ct(n,a),_=l.ref(String(c.value??"")),y=l.ref(null);function g(h){if(_.value=h.target.value,m(_.value),s.value){const b=i.value.find(v=>v.name===_.value);y.value=b?b.value:null}}return(h,b)=>(l.openBlock(),l.createElementBlock("div",bP,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),l.createElementVNode("input",{id:l.unref(r),class:l.normalizeClass(["fb-input",l.unref(u)]),type:"text",name:l.unref(r),value:_.value,list:s.value?`${l.unref(r)}-list`:void 0,placeholder:l.unref(n).placeholder,autocomplete:"off",required:l.unref(n).required||void 0,"aria-invalid":l.unref(d)||void 0,onInput:g,onBlur:b[0]||(b[0]=(...v)=>l.unref(p)&&l.unref(p)(...v))},null,42,vP),s.value?(l.openBlock(),l.createElementBlock("datalist",{key:0,id:`${l.unref(r)}-list`},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,v=>(l.openBlock(),l.createElementBlock("option",{key:v.value,value:v.name},null,8,$P))),128))],8,EP)):l.createCommentVNode("",!0),y.value?(l.openBlock(),l.createElementBlock("span",SP,[l.createVNode(l.unref(_p),{size:16}),l.createTextVNode(" "+l.toDisplayString(y.value),1)])):l.createCommentVNode("",!0),l.unref(n).info?(l.openBlock(),l.createElementBlock("p",{key:2,class:"fb-info",innerHTML:l.unref(n).info},null,8,TP)):l.createCommentVNode("",!0),l.unref(d)?(l.openBlock(),l.createElementBlock("span",{key:3,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(f)),1)):l.createCommentVNode("",!0)]))}}),AP={class:"fb-field"},kP={class:"fb-iban-title"},CP={class:"fb-ibanuk-row"},NP={class:"fb-field"},IP=["id","value","placeholder"],OP={key:0,class:"fb-error",role:"alert"},RP={class:"fb-field"},xP=["id","value","placeholder"],PP={key:0,class:"fb-error",role:"alert"},MP=l.defineComponent({__name:"FieldIbanUK",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"iban_uk",o=io(),i=oo(o.locale),s=o.form[r]||{},{value:a,errorMessage:c,meta:d,handleBlur:f}=Oo(i("iban_uk_sort_code"),{required:!!n.required,digits:6},{initialValue:s.sort_code||""}),{value:u,errorMessage:p,meta:m,handleBlur:_}=Oo(i("iban_uk_account_number"),l.computed(()=>({required:!!n.required,digits:8,iban_uk_modulus:[a.value]})),{initialValue:s.account_number||""});l.watch([a,u],()=>{o.form[r]={sort_code:a.value,account_number:u.value}});const y=l.computed(()=>!!c.value&&(d.touched||d.dirty)),g=l.computed(()=>!!p.value&&(m.touched||m.dirty));function h(v){a.value=v.target.value.replace(/\D/g,"").slice(0,6)}function b(v){u.value=v.target.value.replace(/\D/g,"").slice(0,8)}return(v,S)=>(l.openBlock(),l.createElementBlock("div",AP,[l.unref(n).disableHolderField?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("h3",kP,l.toDisplayString(l.unref(n).sectionTitle||l.unref(i)("iban_section_title")),1),l.createVNode(cy,{label:l.unref(n).holderLabel||l.unref(i)("iban_holder"),required:l.unref(n).required},null,8,["label","required"])],64)),l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),l.createElementVNode("div",CP,[l.createElementVNode("div",NP,[l.createVNode(Xe,{"for-id":`${l.unref(r)}-sort`,label:l.unref(i)("iban_uk_sort_code")},null,8,["for-id","label"]),l.createElementVNode("input",{id:`${l.unref(r)}-sort`,class:l.normalizeClass(["fb-input",{"fb-invalid":y.value}]),type:"text",inputmode:"numeric",value:l.unref(a),placeholder:l.unref(i)("iban_uk_sort_code_placeholder"),onInput:h,onBlur:S[0]||(S[0]=(...N)=>l.unref(f)&&l.unref(f)(...N))},null,42,IP),y.value?(l.openBlock(),l.createElementBlock("span",OP,l.toDisplayString(l.unref(c)),1)):l.createCommentVNode("",!0)]),l.createElementVNode("div",RP,[l.createVNode(Xe,{"for-id":`${l.unref(r)}-account`,label:l.unref(i)("iban_uk_account_number")},null,8,["for-id","label"]),l.createElementVNode("input",{id:`${l.unref(r)}-account`,class:l.normalizeClass(["fb-input",{"fb-invalid":g.value}]),type:"text",inputmode:"numeric",value:l.unref(u),placeholder:l.unref(i)("iban_uk_account_number_placeholder"),onInput:b,onBlur:S[1]||(S[1]=(...N)=>l.unref(_)&&l.unref(_)(...N))},null,42,xP),g.value?(l.openBlock(),l.createElementBlock("span",PP,l.toDisplayString(l.unref(p)),1)):l.createCommentVNode("",!0)])])]))}}),LP={class:"fb-field"},DP=["aria-expanded"],FP={key:0,class:"fb-ms-placeholder"},BP={key:1,class:"fb-ms-chips"},UP={key:0,class:"fb-ms-panel"},jP={class:"fb-ms-list"},HP=["checked","disabled","onChange"],zP={class:"fb-choice-label"},qP={key:0,class:"fb-ms-empty"},WP=l.defineComponent({__name:"FieldMultiSelect",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"multiselect",o=`${r}-error`,{model:i,showError:s,errorMessage:a,handleBlur:c}=Ct(n),d=l.computed(()=>ba(n.options)),f=l.computed(()=>Number(n.nbMaxSelected)||0),u=l.computed(()=>Number(n.minSearchLength)||0),p=l.ref(typeof i.value=="string"&&i.value?i.value.split(":"):[]);l.watch(p,()=>{i.value=p.value.join(":")},{deep:!0});const m=l.ref(!1),_=l.ref(""),y=l.computed(()=>_.value.length<u.value),g=l.computed(()=>y.value?[]:d.value.filter(N=>N.name.toLowerCase().includes(_.value.toLowerCase()))),h=l.computed(()=>f.value>0&&p.value.length>=f.value);function b(N){const A=p.value.indexOf(N);A>=0?p.value.splice(A,1):h.value||p.value.push(N)}function v(N){const A=p.value.indexOf(N);A>=0&&p.value.splice(A,1)}const S=N=>d.value.find(A=>A.value===N)?.name??N;return(N,A)=>(l.openBlock(),l.createElementBlock("div",LP,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),l.createElementVNode("div",{class:"fb-ms",onFocusout:A[2]||(A[2]=(...$)=>l.unref(c)&&l.unref(c)(...$))},[l.createElementVNode("button",{type:"button",class:l.normalizeClass(["fb-input fb-ms-trigger",{"fb-invalid":l.unref(s)}]),"aria-expanded":m.value,onClick:A[0]||(A[0]=$=>m.value=!m.value)},[p.value.length?(l.openBlock(),l.createElementBlock("span",BP,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(p.value,$=>(l.openBlock(),l.createElementBlock("span",{key:$,class:"fb-ms-chip"},[l.createTextVNode(l.toDisplayString(S($))+" ",1),l.createVNode(l.unref(ly),{size:13,onClick:l.withModifiers(H=>v($),["stop"])},null,8,["onClick"])]))),128))])):(l.openBlock(),l.createElementBlock("span",FP,l.toDisplayString(l.unref(n).placeholder||"Sélectionnez…"),1)),l.createVNode(l.unref(TR),{size:18,class:"fb-ms-caret"})],10,DP),m.value?(l.openBlock(),l.createElementBlock("div",UP,[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":A[1]||(A[1]=$=>_.value=$),class:"fb-input fb-ms-search",type:"text",placeholder:"Rechercher…"},null,512),[[l.vModelText,_.value]]),l.createElementVNode("ul",jP,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(g.value,$=>(l.openBlock(),l.createElementBlock("li",{key:$.value},[l.createElementVNode("label",{class:l.normalizeClass(["fb-choice",{"is-checked":p.value.includes($.value)}])},[l.createElementVNode("input",{type:"checkbox",checked:p.value.includes($.value),disabled:!p.value.includes($.value)&&h.value,onChange:H=>b($.value)},null,40,HP),l.createElementVNode("span",zP,l.toDisplayString($.name),1)],2)]))),128)),!g.value.length&&!y.value?(l.openBlock(),l.createElementBlock("li",qP,"Aucun résultat")):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0)],32),l.unref(s)?(l.openBlock(),l.createElementBlock("span",{key:0,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(a)),1)):l.createCommentVNode("",!0)]))}}),GP={class:"fb-field"},YP=["id","accept"],KP={key:0,class:"fb-dz-list"},XP={key:0},JP=["href"],ZP=["onClick"],QP={key:1,class:"fb-info"},VP={key:2,class:"fb-error",role:"alert"},eM=l.defineComponent({__name:"FieldMultipleFilesInOne",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"files",o=n.sizeMax??2560,i=n.validationLabel||n.label||r,s=l.computed(()=>Number(n.maxFiles)||0),a=io(),c=oo(a.locale),d=l.ref([]),f=a.form[r];Array.isArray(f)&&(d.value=f.map(k=>({url:k,name:String(k).split("/").pop()})));const{value:u,errorMessage:p,meta:m,handleBlur:_}=Oo(`${i}_hidden_required`,n.required?{required:!0}:{},{label:i}),y=l.computed(()=>d.value.some(k=>k.uploading)),g=l.computed(()=>!!n.required&&!!p.value&&(m.touched||m.dirty||a.submitAttempted.value));l.watch(d,()=>{a.form[r]=d.value.filter(k=>k.url).map(k=>k.url),u.value=d.value.some(k=>k.url)||y.value?"has_files":""},{deep:!0});const h=l.ref(!1),b=l.ref(null);function v(k){a.bus.emit("show-popup",{title:n.label||"Fichiers",message:k})}function S(k){if(!n.accept)return!0;const O=String(n.accept).split(",").map(D=>D.trim().toLowerCase().replace(/^\./,"")).filter(Boolean);if(!O.length)return!0;const I=k.toLowerCase().match(/\.([^.\s]+)\s*$/)?.[1];return!!I&&O.includes(I)}function N(k){return new Promise(O=>{const I=new FileReader;I.onloadend=()=>O(I.result),I.readAsDataURL(k)})}async function A(k){for(const O of Array.from(k)){if(s.value&&d.value.length>=s.value){v(`Maximum ${s.value} fichier(s).`);break}if(!S(O.name)){v(`Format non accepté. Formats acceptés : ${n.accept}`);continue}if(O.size>o*1e3){v(c("file_max_size_error"));continue}if(O.name.toLowerCase().endsWith(".heic")){v(c("file_heic_error"));continue}const I=await N(O),D={name:O.name,uploading:!0};d.value.push(D);try{const{data:x}=await nt.post(`${a.server}/api/v2/submissions/upload`,{b64file:I,filename:O.name,operationId:a.operationId.value,save_to:r});D.url=x.url,D.uploading=!1,d.value=[...d.value]}catch(x){const z=d.value.indexOf(D);z!==-1&&d.value.splice(z,1),v("L’envoi d’un fichier a échoué."),Mn(x,{where:"FieldMultipleFilesInOne.upload",save_to:r})}}}function $(k){k.preventDefault(),h.value=!1,k.dataTransfer?.files&&A(k.dataTransfer.files)}function H(k){const O=k.target;O.files&&A(O.files),O.value="",_()}function q(k){d.value.splice(k,1)}return(k,O)=>(l.openBlock(),l.createElementBlock("div",GP,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),l.createElementVNode("div",{class:l.normalizeClass(["fb-dropzone",{"is-drag":h.value}]),role:"button",tabindex:"0",onClick:O[0]||(O[0]=I=>b.value?.click()),onKeydown:O[1]||(O[1]=l.withKeys(I=>b.value?.click(),["enter"])),onDragover:O[2]||(O[2]=l.withModifiers(I=>h.value=!0,["prevent"])),onDragleave:O[3]||(O[3]=I=>h.value=!1),onDrop:$},[l.createVNode(l.unref(wR),{size:26}),l.createElementVNode("span",null,l.toDisplayString(l.unref(n).buttonUploadLabel||"Déposez vos fichiers ou cliquez"),1),l.createElementVNode("input",{id:l.unref(r),ref_key:"inputRef",ref:b,type:"file",class:"fb-file-hidden",accept:l.unref(n).accept,multiple:"",onChange:H},null,40,YP)],34),d.value.length?(l.openBlock(),l.createElementBlock("ul",KP,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(d.value,(I,D)=>(l.openBlock(),l.createElementBlock("li",{key:D,class:"fb-file-link"},[I.uploading?(l.openBlock(),l.createElementBlock("span",XP,"["+l.toDisplayString(I.name)+"] "+l.toDisplayString(l.unref(c)("multiple_file_upload_en_cours"))+"…",1)):(l.openBlock(),l.createElementBlock("a",{key:1,href:I.url,target:"_blank",rel:"noopener"},l.toDisplayString(I.name),9,JP)),l.createElementVNode("button",{type:"button",class:"fb-file-delete","aria-label":"Supprimer",onClick:x=>q(D)},[l.createVNode(l.unref(hp),{size:16})],8,ZP)]))),128))])):l.createCommentVNode("",!0),y.value?(l.openBlock(),l.createElementBlock("span",QP,l.toDisplayString(l.unref(c)("multiple_file_patientez")),1)):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createElementBlock("span",VP,l.toDisplayString(l.unref(p)||"Veuillez sélectionner un fichier"),1)):l.createCommentVNode("",!0)]))}});function dy(e,t=300){let n;const r=(...o)=>{n&&clearTimeout(n),n=setTimeout(()=>e(...o),t)};return r.cancel=()=>{n&&clearTimeout(n)},r}const tM=["innerHTML"],nM=l.defineComponent({__name:"FieldEstimateRefund",props:{field:{}},setup(e){const n=e.field,r=io(),o=n.template||n.html||"",i=l.ref(""),s=dy(async()=>{try{const{data:a}=await nt.post(`${r.server}/api/v2/submissions/estimaterefund`,{...r.form,operationId:r.operationId.value}),c=Number(typeof a=="number"?a:a?.amount_to_refund??0),d=(c/100).toLocaleString("fr-FR",{style:"currency",currency:"EUR"});i.value=o.replace(/\{\{\s*amount_to_refund_raw\s*\}\}/g,String(c/100)).replace(/\{\{\s*amount_to_refund\s*\}\}/g,d)}catch(a){Mn(a,{where:"FieldEstimateRefund"})}},500);return l.watch(()=>({...r.form}),s,{deep:!0}),l.onMounted(s),(a,c)=>(l.openBlock(),l.createElementBlock("div",{class:"fb-blochtml",innerHTML:i.value},null,8,tM))}}),rM={class:"fb-field"},oM={class:"fb-label"},iM=["innerHTML"],sM={key:0,class:"fb-required-star"},aM={class:"fb-choice-list"},lM=["name","value"],cM=["innerHTML"],dM=l.defineComponent({__name:"FieldRewardSelector",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"reward",o=`${r}-error`,{model:i,showError:s,errorMessage:a,handleBlur:c,ctx:d}=Ct(n),f=l.computed(()=>ba(n.options)),u=l.ref({}),p=dy(async()=>{try{const{data:_}=await nt.post(`${d.server}/api/v2/submissions/estimaterefund`,{...d.form,operationId:d.operationId.value}),g=(Number(_?.amount_to_refund??0)/100).toLocaleString("fr-FR",{style:"currency",currency:"EUR"}),h={};for(const b of f.value)h[b.value]=b.name.replace(/\{\{\s*amount_to_refund\s*\}\}/g,g);u.value=h}catch(_){Mn(_,{where:"FieldRewardSelector"})}},500);l.watch(()=>({...d.form}),p,{deep:!0}),l.onMounted(p);const m=(_,y)=>u.value[_]??y;return(_,y)=>(l.openBlock(),l.createElementBlock("fieldset",rM,[l.createElementVNode("legend",oM,[l.createElementVNode("span",{innerHTML:l.unref(n).label},null,8,iM),l.unref(n).required?(l.openBlock(),l.createElementBlock("span",sM,"*")):l.createCommentVNode("",!0)]),l.createElementVNode("div",aM,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.value,g=>(l.openBlock(),l.createElementBlock("label",{key:g.value,class:l.normalizeClass(["fb-choice",{"is-checked":l.unref(i)===g.value}])},[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":y[0]||(y[0]=h=>l.isRef(i)?i.value=h:null),type:"radio",name:l.unref(r),value:g.value,onBlur:y[1]||(y[1]=(...h)=>l.unref(c)&&l.unref(c)(...h))},null,40,lM),[[l.vModelRadio,l.unref(i)]]),l.createElementVNode("span",{class:"fb-choice-label",innerHTML:m(g.value,g.name)},null,8,cM)],2))),128))]),l.unref(s)?(l.openBlock(),l.createElementBlock("span",{key:0,id:o,class:"fb-error",role:"alert"},l.toDisplayString(l.unref(a)),1)):l.createCommentVNode("",!0)]))}}),uM={class:"fb-field"},fM={class:"fb-pp-num"},pM={class:"fb-field"},mM=["id","onUpdate:modelValue"],_M=["value"],hM=["id","onUpdate:modelValue"],gM={key:0,class:"fb-field"},yM=["onUpdate:modelValue"],bM={key:1,class:"fb-field"},vM=["onUpdate:modelValue"],EM={key:2,class:"fb-field"},$M=["onUpdate:modelValue"],SM={key:3,class:"fb-field"},TM=["onUpdate:modelValue"],wM=["onClick"],AM={key:1,class:"fb-error",role:"alert"},yp={Input:jI,Checkbox:GI,Radio:tO,Civilite:pO,Select:EO,InputNumber:wO,Textarea:NO,DateInput:xO,BlocHTML:sy,BlocHTMLsimple:sy,Iban:DR,File:KR,SecuriteSociale:VR,Devise:nx,EAN:ax,Phone:vx,Adresse:Hx,MultipleFiles:Vx,MultiCheckbox:lP,Recap:pP,CustomerExpMetric:yP,Datalist:wP,IbanUK:MP,MultiSelect:WP,MultipleFilesInOne:eM,EstimateRefund:nM,RewardSelector:dM,PrixProduits:l.defineComponent({__name:"FieldPrixProduits",props:{field:{}},setup(e){const n=e.field,r=n.save_to||"prix_produits",o=n.configuration||{},{model:i,showError:s,errorMessage:a}=Ct(n),c=l.computed(()=>ba(n.options)),d=l.computed(()=>c.value.length>0),f=l.computed(()=>Number(o.minProducts)||1),u=l.computed(()=>Number(o.maxProducts)||0),p=Array.isArray(i.value)&&i.value.length?i.value:Array.from({length:f.value},()=>({})),m=l.reactive(p.map(g=>({...g})));l.watch(m,()=>{i.value=m.filter(g=>g.produit||g.price||g.quantity||g.imei).map(g=>({...g}))},{deep:!0});function _(){(!u.value||m.length<u.value)&&m.push({})}function y(g){m.length>f.value&&m.splice(g,1)}return(g,h)=>(l.openBlock(),l.createElementBlock("div",uM,[l.createVNode(Xe,{"for-id":l.unref(r),label:l.unref(n).label,required:l.unref(n).required},null,8,["for-id","label","required"]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(m,(b,v)=>(l.openBlock(),l.createElementBlock("div",{key:v,class:"fb-pp-line"},[l.createElementVNode("span",fM,l.toDisplayString(l.unref(o).labelProductLine||"Produit")+" "+l.toDisplayString(v+1),1),l.createElementVNode("div",pM,[l.createVNode(Xe,{"for-id":`${l.unref(r)}-ref-${v}`,label:l.unref(o).labelRef||"Référence"},null,8,["for-id","label"]),d.value?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,id:`${l.unref(r)}-ref-${v}`,"onUpdate:modelValue":S=>b.produit=S,class:"fb-select"},[h[0]||(h[0]=l.createElementVNode("option",{value:""},"—",-1)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.value,S=>(l.openBlock(),l.createElementBlock("option",{key:S.value,value:S.value},l.toDisplayString(S.name),9,_M))),128))],8,mM)),[[l.vModelSelect,b.produit]]):l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:1,id:`${l.unref(r)}-ref-${v}`,"onUpdate:modelValue":S=>b.produit=S,class:"fb-input",type:"text"},null,8,hM)),[[l.vModelText,b.produit]])]),l.unref(o).displayDescription?(l.openBlock(),l.createElementBlock("div",gM,[l.createVNode(Xe,{label:l.unref(o).labelDescription||"Description"},null,8,["label"]),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":S=>b.description=S,class:"fb-input",type:"text"},null,8,yM),[[l.vModelText,b.description]])])):l.createCommentVNode("",!0),l.unref(o).displayQuantite?(l.openBlock(),l.createElementBlock("div",bM,[l.createVNode(Xe,{label:l.unref(o).labelQuantite||"Quantité"},null,8,["label"]),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":S=>b.quantity=S,class:"fb-input",type:"number",min:"0"},null,8,vM),[[l.vModelText,b.quantity,void 0,{number:!0}]])])):l.createCommentVNode("",!0),l.unref(o).displayPrix?(l.openBlock(),l.createElementBlock("div",EM,[l.createVNode(Xe,{label:l.unref(o).labelPrix||"Prix unitaire"},null,8,["label"]),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":S=>b.price=S,class:"fb-input",type:"number",step:"0.01",min:"0"},null,8,$M),[[l.vModelText,b.price,void 0,{number:!0}]])])):l.createCommentVNode("",!0),l.unref(o).displayImei?(l.openBlock(),l.createElementBlock("div",SM,[l.createVNode(Xe,{label:l.unref(o).labelImei||"IMEI"},null,8,["label"]),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":S=>b.imei=S,class:"fb-input",type:"text"},null,8,TM),[[l.vModelText,b.imei]])])):l.createCommentVNode("",!0),m.length>f.value?(l.openBlock(),l.createElementBlock("button",{key:4,type:"button",class:"fb-button fb-button--ghost fb-mf-btn",onClick:S=>y(v)},[l.createVNode(l.unref(hp),{size:16}),h[1]||(h[1]=l.createTextVNode(" Retirer ",-1))],8,wM)):l.createCommentVNode("",!0)]))),128)),!u.value||m.length<u.value?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"fb-button fb-button--ghost fb-mf-btn",onClick:_},[l.createVNode(l.unref(ay),{size:16}),h[2]||(h[2]=l.createTextVNode(" Ajouter un produit ",-1))])):l.createCommentVNode("",!0),l.unref(s)?(l.openBlock(),l.createElementBlock("span",AM,l.toDisplayString(l.unref(a)),1)):l.createCommentVNode("",!0)]))}})},kM={key:0,class:"fb-popup-title"},CM=["innerHTML"],NM={class:"fb-popup-actions"},IM=l.defineComponent({__name:"FormPopup",props:{bus:{}},setup(e){const t=e,n=l.ref(!1),r=l.ref(""),o=l.ref(""),i=l.ref("OK"),s=l.ref(!0);function a(p){typeof p=="string"?(r.value=ao(p),o.value="",i.value="OK",s.value=!0):(r.value=ao(p.message||""),o.value=p.title||"",i.value=p.buttonText||"OK",s.value=p.closeOnOverlay!==!1),n.value=!0,document.body.style.overflow="hidden"}function c(){n.value=!1,document.body.style.overflow=""}function d(){s.value&&c()}function f(p){p.key==="Escape"&&n.value&&c()}let u;return l.onMounted(()=>{u=t.bus.on("show-popup",a),document.addEventListener("keydown",f)}),l.onBeforeUnmount(()=>{u?.(),document.removeEventListener("keydown",f),document.body.style.overflow=""}),(p,m)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[n.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fb-form fb-popup-overlay",role:"dialog","aria-modal":"true",onClick:d},[l.createElementVNode("div",{class:"fb-popup",onClick:m[0]||(m[0]=l.withModifiers(()=>{},["stop"]))},[o.value?(l.openBlock(),l.createElementBlock("h3",kM,l.toDisplayString(o.value),1)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:"fb-popup-body",innerHTML:r.value},null,8,CM),l.createElementVNode("div",NM,[l.createElementVNode("button",{type:"button",class:"fb-button fb-button--primary",onClick:c},l.toDisplayString(i.value),1)])])])):l.createCommentVNode("",!0)]))}}),OM=["type","disabled"],RM={key:0,class:"fb-spinner","aria-hidden":"true"},xM=l.defineComponent({__name:"LoadingButton",props:{loading:{type:Boolean,default:!1},type:{default:"button"},variant:{default:"primary"},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("button",{type:e.type,class:l.normalizeClass(["fb-button",e.variant==="ghost"?"fb-button--ghost":"fb-button--primary"]),disabled:e.disabled||e.loading},[e.loading?(l.openBlock(),l.createElementBlock("span",RM)):l.createCommentVNode("",!0),l.renderSlot(t.$slots,"default")],10,OM))}}),PM={class:"fb-form"},MM={key:0,class:"fb-error-update"},LM={key:0,class:"fb-progress","aria-hidden":"true"},DM={key:1,class:"fb-step-counter"},FM=["innerHTML"],BM={key:3,class:"fb-step-counter"},UM={key:4,class:"fb-mention"},jM={class:"fb-rgpd-wrap"},HM=["innerHTML"],zM={class:"fb-buttons"},qM=["textContent"],WM=["textContent"],uy=l.defineComponent({__name:"HoustonForm",props:{server:{},formId:{},submissionId:{default:void 0},displayCurrentStep:{type:Boolean,default:!1},multiColumn:{type:Boolean,default:!1},stepMessage:{default:"Étape "},relay:{default:void 0},testmode:{default:void 0},uid:{default:void 0},hideError:{type:Boolean,default:!1},hideSteps:{type:Boolean,default:!1}},emits:["results","on_error","form_submit_loading","upload_progress","step-up","step-down","too-early","too-late"],setup(e,{emit:t}){bg();const n=e,r=t,o=new E7(n.server),i=new $7,s=l.reactive({}),a=l.ref([]),c=l.ref(0),d=l.ref({}),f=l.ref({}),u=l.ref(!1),p=l.ref("fr"),m=l.ref(""),_=l.ref(""),y=l.ref(void 0),g=l.ref(!1),h=l.reactive({}),b=oo(p),{validate:v,errors:S}=w5(),N=l.computed(()=>c.value===a.value.length-1),A=l.computed(()=>!!n.testmode?.previewDossier&&!n.submissionId);function $(E){const T=new Set,C=/participationValide\s*===?\s*["']([A-Za-z0-9_]+)["']/g;for(const G of E)for(const te of G.fields||[]){const ae=String(te.displayIf??"");let re;for(;re=C.exec(ae);)T.add(re[1])}return[...T]}function H(E){const T=E.toLowerCase();return/(amount|montant|prix|refund|rembours|reward|estimate)/.test(T)?3500:/^_?id$|code|uid|numero|num_/.test(T)?"APERÇU":/first_?name|prenom/.test(T)?"Prénom":/last_?name|nom/.test(T)?"Nom":/mail/.test(T)?"apercu@exemple.fr":/phone|tel|mobile/.test(T)?"0600000000":"…"}function q(E,T){const C={participationValide:T},G=/\{\{\s*this\.form\.(\w+)\s*\}\}/g;for(const te of E)for(const ae of te.fields||[]){const re=String(ae.html??"");let Y;for(;Y=G.exec(re);)Y[1]in C||(C[Y[1]]=H(Y[1]))}return C}const k=l.computed(()=>{const E=a.value.flatMap(C=>C.fields||[]).find(C=>C.save_to==="email"||C.type==="email"||C.name==="email"),T=E?.save_to?s[E.save_to]:void 0;return typeof T=="string"&&T.trim()?T.trim():""}),O=l.computed(()=>d.value.custom?.notice_uri||"");function I(E){return E?E.replace(/<br\s*\/?>/gi,"").replace(/&nbsp;/g," ").replace(/<[^>]+>/g,"").trim()==="":!0}function D(E){return E.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function x(E,T){const C=E.custom?.notice_uri;return!I(E.custom?.notice)||!C?`<a id="noticelink">${T}</a>`:`<a id="noticelink" href="${C}" target="_blank" rel="noopener">${T}</a>`}const z=l.computed(()=>f.value.precedent&&f.value.precedent.length>0?f.value.precedent:b("precedent")),B=l.computed(()=>N.value||n.multiColumn?f.value.valider&&f.value.valider.length>0?f.value.valider:b("valider"):f.value.suivant&&f.value.suivant.length>0?f.value.suivant:b("suivant")),F=l.computed(()=>f.value.hasSpinner||f.value.hasSpinner===void 0),M=l.computed(()=>t1(f.value.displayIf,s)),K={server:n.server,api:o,operationId:m,form:s,locale:p,testmode:l.ref(n.testmode||{}),submitAttempted:g,googleMapsApiKey:_,phoneVerificationEmail:k,bus:i};II(K);function W(E){return t1(E.displayIf,s)}l.onMounted(async()=>{try{const E=await o.getForm(n.formId),{operation:T,formulaire:C}=E;if(d.value=T,m.value=T._id||"",n.relay)for(const ae in n.relay)s[ae]=n.relay[ae];const G=C.form||[];if(C.type==="UPDATE")if(A.value){const ae=$(G);n.testmode&&(n.testmode.statusOptions=ae);const re=n.testmode?.previewStatus||ae[0]||"";n.testmode&&!n.testmode.previewStatus&&(n.testmode.previewStatus=re),Object.assign(s,q(G,re))}else await X();else C.type==="LINE_ITEM"&&(s._id=n.submissionId);_.value=T.gmapkey||"",(E.lang||C.lang||T.lang)!=="fr"&&(p.value=C.lang||T.lang||"fr",Qk(L2(p.value))),f.value=C.bouton_text||{},a.value=vR(C.form||[]),n.testmode&&(n.testmode.stepCount=a.value.length,n.testmode.currentStep=c.value);const te=new Date;T.from&&te<new Date(T.from)?r("too-early",T.from):T.to&&te>new Date(T.to)&&r("too-late",T.to),to("form_view",{form_id:n.formId,operation_id:m.value,step:c.value+1,total_steps:a.value.length})}catch(E){console.error("error while loading form data:",E),Zs(E,{phase:"load",formId:n.formId}),y.value="Impossible de charger le formulaire."}});async function X(){if(!n.submissionId){y.value="No submission id";return}try{const E=await o.getSubmission(n.submissionId,n.uid);Object.assign(s,E)}catch{y.value=`Submission ${n.submissionId} not found or bad uid`}}function oe(){let E=a.value[c.value]?.fields.find(T=>T.component==="Adresse");return n.multiColumn&&!E&&a.value[1]&&(E=a.value[1].fields.find(T=>T.component==="Adresse")),E}function ce(E=!1){const T=oe();if(!T||!T.required||!W(T))return!0;const C=T.save_to?s[T.save_to]:void 0;return C&&typeof C=="object"&&C.address?!0:(E||($i("Alert","merci_renseigner_adresse"),i.emit("show-popup",{title:T.label||"Adresse",message:b("merci_renseigner_adresse")})),!1)}function ne(E){if(E?.save_to){if(!E.verified){delete h[E.save_to];return}h[E.save_to]={token:E.token,phone:E.phone}}}function ke(){return(N.value||n.multiColumn?a.value:[a.value[c.value]]).flatMap(T=>T?.fields||[]).find(T=>{if(T.component!=="Phone"||!T.phoneVerificationSms||!W(T))return!1;const C=T.save_to?s[T.save_to]:void 0;if(!C)return!1;const G=T.save_to?h[T.save_to]:void 0;return!G||G.phone!==C})}function J(E=!1){const T=ke();return T?(E||i.emit("show-popup",{title:"Erreur",message:`Veuillez valider le champ ${Xl(T.validationLabel||T.label||"Téléphone")}.`}),!1):!0}function de(){ce()&&(g.value=!1,c.value++,$i("Step",`step_${c.value}`),to("form_step_change",{form_id:n.formId,operation_id:m.value,step:c.value+1,total_steps:a.value.length,direction:"forward"}),r("step-up",c.value))}function ve(){g.value=!1,c.value--,to("form_step_change",{form_id:n.formId,operation_id:m.value,step:c.value+1,total_steps:a.value.length,direction:"backward"}),r("step-down",c.value)}function $e(){return!!a.value[c.value]?.fields?.some(E=>E.required===!0&&W(E))}async function Re(){g.value=!0;const E=ce(!0),T=J(!0),{valid:C}=await v();C&&E&&T?!N.value&&!n.multiColumn?de():await He():We(E)}async function He(){if(d.value?.date_fin_regule&&new Date>new Date(d.value.date_fin_regule)){i.emit("show-popup",{title:"Erreur",message:b("date_fin_regule_passee")||"La date limite de régularisation est dépassée. Le formulaire ne peut plus être soumis."}),$i("Alert","date_fin_regule_passee"),to("form_submit_error",{form_id:n.formId,operation_id:m.value,error_message:"date_fin_regule_passee",error_type:"date_limit_exceeded"});return}if(!u.value){u.value=!0,r("form_submit_loading",!0),$i("Submit",n.formId),to("form_submit",{form_id:n.formId,operation_id:m.value,step:c.value+1,total_steps:a.value.length});try{const E={...JSON.parse(JSON.stringify(s)),url:window.location.href,userAgent:window.navigator.userAgent,windowInnerResolution:`${window.innerWidth}x${window.innerHeight}`,fingerprint:k7(),testmode:n.testmode?{active:n.testmode.active,disableunique:n.testmode.disableunique,status:n.testmode.status,lot:n.testmode.lot}:void 0,_phoneVerificationTokens:{...h}},T=await o.submit(n.formId,E,C=>r("upload_progress",C));u.value=!1,r("form_submit_loading",!1),r("results",T),to("form_submit_success",{form_id:n.formId,operation_id:m.value,submission_id:T._id||T.id,lot:T.lot||"PERD"}),$i("Success",n.formId)}catch(E){u.value=!1,r("form_submit_loading",!1),c.value=0,Ce(E)}}}function Ce(E){Zs(E,{phase:"submit",formId:n.formId});const T=E.response,C=T?.data;let G="Une erreur est survenue",te=!1;C?.message?G=String(C.message):C?.error?(Array.isArray(C.error)?C.error:[C.error]).includes("Email domain not allowed")&&(te=!0,G=b("email_domain_not_allowed")):E.message&&(G=String(E.message)),to("form_submit_error",{form_id:n.formId,operation_id:m.value,error_message:G,error_type:"submission_error"}),!n.hideError&&!te&&i.emit("show-popup",{message:G,title:"Erreur"}),r("on_error",T?.data??E??"Erreur inconnue")}function We(E){const T=[];for(const[ae]of Object.entries(S.value)){const re=ae.replace(/_hidden_required$/,"");let Y=re;for(const Z of a.value){const Te=Z.fields.find(Ue=>Ue.save_to===ae||Ue.save_to===re||Ue.validationLabel===ae||Ue.validationLabel===re||Ue.label===ae||Ue.label===re);if(Te?.label){Y=Te.label;break}}T.push(Xl(Y))}if(!E){const ae=oe();ae?.label&&T.push(Xl(ae.label))}const C=ke();C&&T.push(Xl(C.validationLabel||C.label||"Téléphone"));const G=[...new Set(T)].filter(ae=>ae.trim()!==""),te=G.length>0?`${b("Corrigez les erreurs")}<br><br><strong>${b("Champs concernés :")}</strong><ul><li>${G.join("</li><li>")}</li></ul>`:b("Corrigez les erreurs");i.emit("show-popup",{title:b("Erreurs de validation"),message:te}),to("form_validation_error",{form_id:n.formId,operation_id:m.value,step:c.value+1,error_type:"validation_error"}),$i("Alert","corrigez_les_erreurs")}const be=E=>yp[E]??null;function Fe(E){const T=E.save_to?s[E.save_to]:void 0;return T!==void 0&&T!==""}const se=l.computed(()=>{const E=b("noticetextlink"),T=x(d.value,E),C=d.value.custom?.rgpd_mentions;if(C&&C!=="<div><br></div>")return ao(C.replace("[notice]",T));const G=D(String(d.value.dataManager||"Promodev")),ae=b("rgpd",{link:O.value}).replace(/<a\b[^>]*id=['"]noticelink['"][^>]*>[\s\S]*?<\/a>/i,T);return ao(`${G}&nbsp;${ae}`)});l.watch(c,E=>{n.testmode&&(n.testmode.currentStep=E)}),l.watch(()=>n.testmode?.gotoStep,E=>{typeof E=="number"&&E>=0&&E<a.value.length&&(E!==c.value&&(g.value=!1,c.value=E),n.testmode&&(n.testmode.gotoStep=null))}),l.watch(()=>n.testmode?.previewStatus,E=>{A.value&&typeof E=="string"&&(s.participationValide=E)});const Ge=l.shallowRef(yp);return l.watch(()=>yp,E=>Ge.value=E),(E,T)=>(l.openBlock(),l.createElementBlock("div",PM,[y.value?(l.openBlock(),l.createElementBlock("div",MM,l.toDisplayString(y.value),1)):a.value.length>0?(l.openBlock(),l.createElementBlock("form",{key:1,novalidate:"",onSubmit:l.withModifiers(Re,["prevent"])},[!e.hideSteps&&a.value.length>1&&!e.multiColumn?(l.openBlock(),l.createElementBlock("div",LM,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.value,(C,G)=>(l.openBlock(),l.createElementBlock("span",{key:G,class:l.normalizeClass(["fb-progress-step",{"is-done":G<c.value,"is-current":G===c.value}])},null,2))),128))])):l.createCommentVNode("",!0),!e.hideSteps&&e.displayCurrentStep&&a.value[c.value].name?(l.openBlock(),l.createElementBlock("p",DM,l.toDisplayString(c.value+1)+"/"+l.toDisplayString(a.value.length),1)):l.createCommentVNode("",!0),!e.hideSteps&&a.value[c.value].name?(l.openBlock(),l.createElementBlock("h2",{key:2,class:"fb-step-title",innerHTML:a.value[c.value].name},null,8,FM)):!e.hideSteps&&a.value.length>1?(l.openBlock(),l.createElementBlock("p",BM,l.toDisplayString(e.stepMessage)+l.toDisplayString(c.value+1)+"/"+l.toDisplayString(a.value.length),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.value,(C,G)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:G,class:l.normalizeClass(["fb-step",`fb-step-${G}`])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(C.fields,(te,ae)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:ae},[(G===c.value||e.multiColumn)&&W(te)&&te.component!=="ApiField"&&be(te.component)?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(be(te.component)),{key:0,field:te,class:l.normalizeClass([{filled:Fe(te)},"fb-field-wrapper","fb-field--"+te.save_to]),onPhoneVerification:ne},null,40,["field","class"])):l.createCommentVNode("",!0)],64))),128))],2)),[[l.vShow,G===c.value||e.multiColumn]])),128)),$e()?(l.openBlock(),l.createElementBlock("p",UM," * "+l.toDisplayString(l.unref(b)("champ_obligatoire")),1)):l.createCommentVNode("",!0),l.createElementVNode("div",jM,[l.createElementVNode("p",{class:"fb-rgpd",innerHTML:se.value},null,8,HM)]),l.createElementVNode("div",zM,[c.value>0?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"fb-button fb-button--ghost",onClick:T[0]||(T[0]=C=>ve()),textContent:l.toDisplayString(z.value)},null,8,qM)):l.createCommentVNode("",!0),M.value&&F.value?(l.openBlock(),l.createBlock(xM,{key:1,loading:u.value,type:"submit",variant:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(B.value),1)]),_:1},8,["loading"])):M.value?(l.openBlock(),l.createElementBlock("button",{key:2,type:"submit",class:"fb-button fb-button--primary",textContent:l.toDisplayString(B.value)},null,8,WM)):l.createCommentVNode("",!0)])],32)):l.createCommentVNode("",!0),l.createVNode(IM,{bus:l.unref(i)},null,8,["bus"])]))}}),fy={install(e,t={}){bg(),e.use(sp),e.component("HoustonForm",uy),t.sentry?.dsn&&Promise.resolve().then(()=>S7).then(n=>n.initSentry(e,t.sentry))}};var GM=Object.create,py=Object.defineProperty,YM=Object.getOwnPropertyDescriptor,bp=Object.getOwnPropertyNames,KM=Object.getPrototypeOf,XM=Object.prototype.hasOwnProperty,JM=(e,t)=>function(){return e&&(t=(0,e[bp(e)[0]])(e=0)),t},ZM=(e,t)=>function(){return t||(0,e[bp(e)[0]])((t={exports:{}}).exports,t),t.exports},QM=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of bp(t))!XM.call(e,o)&&o!==n&&py(e,o,{get:()=>t[o],enumerable:!(r=YM(t,o))||r.enumerable});return e},VM=(e,t,n)=>(n=e!=null?GM(KM(e)):{},QM(py(n,"default",{value:e,enumerable:!0}),e)),va=JM({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),eL=ZM({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){va(),t.exports=r;function n(i){return i instanceof Buffer?Buffer.from(i):new i.constructor(i.buffer.slice(),i.byteOffset,i.length)}function r(i){if(i=i||{},i.circles)return o(i);const s=new Map;if(s.set(Date,u=>new Date(u)),s.set(Map,(u,p)=>new Map(c(Array.from(u),p))),s.set(Set,(u,p)=>new Set(c(Array.from(u),p))),i.constructorHandlers)for(const u of i.constructorHandlers)s.set(u[0],u[1]);let a=null;return i.proto?f:d;function c(u,p){const m=Object.keys(u),_=new Array(m.length);for(let y=0;y<m.length;y++){const g=m[y],h=u[g];typeof h!="object"||h===null?_[g]=h:h.constructor!==Object&&(a=s.get(h.constructor))?_[g]=a(h,p):ArrayBuffer.isView(h)?_[g]=n(h):_[g]=p(h)}return _}function d(u){if(typeof u!="object"||u===null)return u;if(Array.isArray(u))return c(u,d);if(u.constructor!==Object&&(a=s.get(u.constructor)))return a(u,d);const p={};for(const m in u){if(Object.hasOwnProperty.call(u,m)===!1)continue;const _=u[m];typeof _!="object"||_===null?p[m]=_:_.constructor!==Object&&(a=s.get(_.constructor))?p[m]=a(_,d):ArrayBuffer.isView(_)?p[m]=n(_):p[m]=d(_)}return p}function f(u){if(typeof u!="object"||u===null)return u;if(Array.isArray(u))return c(u,f);if(u.constructor!==Object&&(a=s.get(u.constructor)))return a(u,f);const p={};for(const m in u){const _=u[m];typeof _!="object"||_===null?p[m]=_:_.constructor!==Object&&(a=s.get(_.constructor))?p[m]=a(_,f):ArrayBuffer.isView(_)?p[m]=n(_):p[m]=f(_)}return p}}function o(i){const s=[],a=[],c=new Map;if(c.set(Date,m=>new Date(m)),c.set(Map,(m,_)=>new Map(f(Array.from(m),_))),c.set(Set,(m,_)=>new Set(f(Array.from(m),_))),i.constructorHandlers)for(const m of i.constructorHandlers)c.set(m[0],m[1]);let d=null;return i.proto?p:u;function f(m,_){const y=Object.keys(m),g=new Array(y.length);for(let h=0;h<y.length;h++){const b=y[h],v=m[b];if(typeof v!="object"||v===null)g[b]=v;else if(v.constructor!==Object&&(d=c.get(v.constructor)))g[b]=d(v,_);else if(ArrayBuffer.isView(v))g[b]=n(v);else{const S=s.indexOf(v);S!==-1?g[b]=a[S]:g[b]=_(v)}}return g}function u(m){if(typeof m!="object"||m===null)return m;if(Array.isArray(m))return f(m,u);if(m.constructor!==Object&&(d=c.get(m.constructor)))return d(m,u);const _={};s.push(m),a.push(_);for(const y in m){if(Object.hasOwnProperty.call(m,y)===!1)continue;const g=m[y];if(typeof g!="object"||g===null)_[y]=g;else if(g.constructor!==Object&&(d=c.get(g.constructor)))_[y]=d(g,u);else if(ArrayBuffer.isView(g))_[y]=n(g);else{const h=s.indexOf(g);h!==-1?_[y]=a[h]:_[y]=u(g)}}return s.pop(),a.pop(),_}function p(m){if(typeof m!="object"||m===null)return m;if(Array.isArray(m))return f(m,p);if(m.constructor!==Object&&(d=c.get(m.constructor)))return d(m,p);const _={};s.push(m),a.push(_);for(const y in m){const g=m[y];if(typeof g!="object"||g===null)_[y]=g;else if(g.constructor!==Object&&(d=c.get(g.constructor)))_[y]=d(g,p);else if(ArrayBuffer.isView(g))_[y]=n(g);else{const h=s.indexOf(g);h!==-1?_[y]=a[h]:_[y]=p(g)}}return s.pop(),a.pop(),_}}}});va(),va(),va();var my=typeof navigator<"u",ge=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof ge.chrome<"u"&&ge.chrome.devtools,my&&(ge.self,ge.top);var _y;typeof navigator<"u"&&((_y=navigator.userAgent)==null||_y.toLowerCase().includes("electron")),va();var tL=VM(eL()),nL=/(?:^|[-_/])(\w)/g;function rL(e,t){return t?t.toUpperCase():""}function oL(e){return e&&`${e}`.replace(nL,rL)}function iL(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const r=n.lastIndexOf("/"),o=n.substring(r+1);{const i=o.lastIndexOf(t);return o.substring(0,i)}}var sL=/^https?:\/\//;function aL(e){return e.startsWith("/")||sL.test(e)}var hy=(0,tL.default)({circles:!0});const lL={trailing:!0};function Fi(e,t=25,n={}){if(n={...lL,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,o,i=[],s,a;const c=(d,f)=>(s=cL(e,d,f),s.finally(()=>{if(s=null,n.trailing&&a&&!o){const u=c(d,a);return a=null,u}}),s);return function(...d){return s?(n.trailing&&(a=d),s):new Promise(f=>{const u=!o&&n.leading;clearTimeout(o),o=setTimeout(()=>{o=null;const p=n.leading?r:c(this,d);for(const m of i)m(p);i=[]},t),u?(r=c(this,d),f(r)):i.push(f)})}}async function cL(e,t,n){return await e.apply(t,n)}function vp(e,t={},n){for(const r in e){const o=e[r],i=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?vp(o,t,i):typeof o=="function"&&(t[i]=o)}return t}const dL={run:e=>e()},uL=()=>dL,gy=typeof console.createTask<"u"?console.createTask:uL;function fL(e,t){const n=t.shift(),r=gy(n);return e.reduce((o,i)=>o.then(()=>r.run(()=>i(...t))),Promise.resolve())}function pL(e,t){const n=t.shift(),r=gy(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function Ep(e,t){for(const n of[...e])n(t)}class mL{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let s=i.message;s||(s=`${o} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...i)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...i));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=vp(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=vp(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(fL,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(pL,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Ep(this._before,o);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&o&&Ep(this._after,o)}):(this._after&&o&&Ep(this._after,o),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function yy(){return new mL}var _L=Object.create,by=Object.defineProperty,hL=Object.getOwnPropertyDescriptor,$p=Object.getOwnPropertyNames,gL=Object.getPrototypeOf,yL=Object.prototype.hasOwnProperty,bL=(e,t)=>function(){return e&&(t=(0,e[$p(e)[0]])(e=0)),t},vy=(e,t)=>function(){return t||(0,e[$p(e)[0]])((t={exports:{}}).exports,t),t.exports},vL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $p(t))!yL.call(e,o)&&o!==n&&by(e,o,{get:()=>t[o],enumerable:!(r=hL(t,o))||r.enumerable});return e},EL=(e,t,n)=>(n=e!=null?_L(gL(e)):{},vL(by(n,"default",{value:e,enumerable:!0}),e)),ee=bL({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),$L=vy({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){ee(),(function(n){var r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},o=["်","ް"],i={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},s={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},a={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},c=[";","?",":","@","&","=","+","$",",","/"].join(""),d=[";","?",":","@","&","=","+","$",","].join(""),f=[".","!","~","*","'","(",")"].join(""),u=function(g,h){var b="-",v="",S="",N=!0,A={},$,H,q,k,O,I,D,x,z,B,F,M,K,W,X="";if(typeof g!="string")return"";if(typeof h=="string"&&(b=h),D=a.en,x=s.en,typeof h=="object"){$=h.maintainCase||!1,A=h.custom&&typeof h.custom=="object"?h.custom:A,q=+h.truncate>1&&h.truncate||!1,k=h.uric||!1,O=h.uricNoSlash||!1,I=h.mark||!1,N=!(h.symbols===!1||h.lang===!1),b=h.separator||b,k&&(X+=c),O&&(X+=d),I&&(X+=f),D=h.lang&&a[h.lang]&&N?a[h.lang]:N?a.en:{},x=h.lang&&s[h.lang]?s[h.lang]:h.lang===!1||h.lang===!0?{}:s.en,h.titleCase&&typeof h.titleCase.length=="number"&&Array.prototype.toString.call(h.titleCase)?(h.titleCase.forEach(function(oe){A[oe+""]=oe+""}),H=!0):H=!!h.titleCase,h.custom&&typeof h.custom.length=="number"&&Array.prototype.toString.call(h.custom)&&h.custom.forEach(function(oe){A[oe+""]=oe+""}),Object.keys(A).forEach(function(oe){var ce;oe.length>1?ce=new RegExp("\\b"+m(oe)+"\\b","gi"):ce=new RegExp(m(oe),"gi"),g=g.replace(ce,A[oe])});for(F in A)X+=F}for(X+=b,X=m(X),g=g.replace(/(^\s+|\s+$)/g,""),K=!1,W=!1,B=0,M=g.length;B<M;B++)F=g[B],_(F,A)?K=!1:x[F]?(F=K&&x[F].match(/[A-Za-z0-9]/)?" "+x[F]:x[F],K=!1):F in r?(B+1<M&&o.indexOf(g[B+1])>=0?(S+=F,F=""):W===!0?(F=i[S]+r[F],S=""):F=K&&r[F].match(/[A-Za-z0-9]/)?" "+r[F]:r[F],K=!1,W=!1):F in i?(S+=F,F="",B===M-1&&(F=i[S]),W=!0):D[F]&&!(k&&c.indexOf(F)!==-1)&&!(O&&d.indexOf(F)!==-1)?(F=K||v.substr(-1).match(/[A-Za-z0-9]/)?b+D[F]:D[F],F+=g[B+1]!==void 0&&g[B+1].match(/[A-Za-z0-9]/)?b:"",K=!0):(W===!0?(F=i[S]+F,S="",W=!1):K&&(/[A-Za-z0-9]/.test(F)||v.substr(-1).match(/A-Za-z0-9]/))&&(F=" "+F),K=!1),v+=F.replace(new RegExp("[^\\w\\s"+X+"_-]","g"),b);return H&&(v=v.replace(/(\w)(\S*)/g,function(oe,ce,ne){var ke=ce.toUpperCase()+(ne!==null?ne:"");return Object.keys(A).indexOf(ke.toLowerCase())<0?ke:ke.toLowerCase()})),v=v.replace(/\s+/g,b).replace(new RegExp("\\"+b+"+","g"),b).replace(new RegExp("(^\\"+b+"+|\\"+b+"+$)","g"),""),q&&v.length>q&&(z=v.charAt(q)===b,v=v.slice(0,q),z||(v=v.slice(0,v.lastIndexOf(b)))),!$&&!H&&(v=v.toLowerCase()),v},p=function(g){return function(b){return u(b,g)}},m=function(g){return g.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},_=function(y,g){for(var h in g)if(g[h]===y)return!0};if(typeof t<"u"&&t.exports)t.exports=u,t.exports.createSlug=p;else if(typeof define<"u"&&define.amd)define([],function(){return u});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=u,n.createSlug=p}catch{}})(e)}}),SL=vy({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){ee(),t.exports=$L()}});ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee();function TL(e){var t;const n=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return n==="index"&&((t=e.__file)!=null&&t.endsWith("index.vue"))?"":n}function wL(e){const t=e.__file;if(t)return oL(iL(t,".vue"))}function Ey(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function Sp(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function $y(e){var t,n;const r=(t=e.subTree)==null?void 0:t.type,o=Sp(e);return o?((n=o?.types)==null?void 0:n.Fragment)===r:!1}function $c(e){var t,n,r;const o=TL(e?.type||{});if(o)return o;if(e?.root===e)return"Root";for(const s in(n=(t=e.parent)==null?void 0:t.type)==null?void 0:n.components)if(e.parent.type.components[s]===e?.type)return Ey(e,s);for(const s in(r=e.appContext)==null?void 0:r.components)if(e.appContext.components[s]===e?.type)return Ey(e,s);const i=wL(e?.type||{});return i||"Anonymous Component"}function AL(e){var t,n,r;const o=(r=(n=(t=e?.appContext)==null?void 0:t.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?r:0,i=e===e?.root?"root":e.uid;return`${o}:${i}`}function Tp(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function kL(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var Sc;function CL(e){return Sc||(Sc=document.createRange()),Sc.selectNode(e),Sc.getBoundingClientRect()}function NL(e){const t=kL();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){const o=e.children[n];let i;if(o.component)i=zo(o.component);else if(o.el){const s=o.el;s.nodeType===1||s.getBoundingClientRect?i=s.getBoundingClientRect():s.nodeType===3&&s.data.trim()&&(i=CL(s))}i&&IL(t,i)}return t}function IL(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var Sy={top:0,left:0,right:0,bottom:0,width:0,height:0};function zo(e){const t=e.subTree.el;return typeof window>"u"?Sy:$y(e)?NL(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?zo(e.subTree.component):Sy}ee();function wp(e){return $y(e)?OL(e.subTree):e.subTree?[e.subTree.el]:[]}function OL(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...wp(n.component)):n?.el&&t.push(n.el)}),t}var Ty="__vue-devtools-component-inspector__",wy="__vue-devtools-component-inspector__card__",Ay="__vue-devtools-component-inspector__name__",ky="__vue-devtools-component-inspector__indicator__",Cy={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},RL={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},xL={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function Bi(){return document.getElementById(Ty)}function PL(){return document.getElementById(wy)}function ML(){return document.getElementById(ky)}function LL(){return document.getElementById(Ay)}function Ap(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function kp(e){var t;const n=document.createElement("div");n.id=(t=e.elementId)!=null?t:Ty,Object.assign(n.style,{...Cy,...Ap(e.bounds),...e.style});const r=document.createElement("span");r.id=wy,Object.assign(r.style,{...RL,top:e.bounds.top<35?0:"-35px"});const o=document.createElement("span");o.id=Ay,o.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;const i=document.createElement("i");return i.id=ky,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(i.style,xL),r.appendChild(o),r.appendChild(i),n.appendChild(r),document.body.appendChild(n),n}function Cp(e){const t=Bi(),n=PL(),r=LL(),o=ML();t&&(Object.assign(t.style,{...Cy,...Ap(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function DL(e){const t=zo(e);if(!t.width&&!t.height)return;const n=$c(e);Bi()?Cp({bounds:t,name:n}):kp({bounds:t,name:n})}function Ny(){const e=Bi();e&&(e.style.display="none")}var Np=null;function Ip(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(Np=n,n.vnode.el)){const o=zo(n),i=$c(n);Bi()?Cp({bounds:o,name:i}):kp({bounds:o,name:i})}}}function FL(e,t){if(e.preventDefault(),e.stopPropagation(),Np){const n=AL(Np);t(n)}}var Tc=null;function BL(){Ny(),window.removeEventListener("mouseover",Ip),window.removeEventListener("click",Tc,!0),Tc=null}function UL(){return window.addEventListener("mouseover",Ip),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),FL(n,r=>{window.removeEventListener("click",t,!0),Tc=null,window.removeEventListener("mouseover",Ip);const o=Bi();o&&(o.style.display="none"),e(JSON.stringify({id:r}))})}Tc=t,window.addEventListener("click",t,!0)})}function jL(e){const t=Tp(cn.value,e.id);if(t){const[n]=wp(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const r=zo(t),o=document.createElement("div"),i={...Ap(r),position:"absolute"};Object.assign(o.style,i),document.body.appendChild(o),o.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(o)},2e3)}setTimeout(()=>{const r=zo(t);if(r.width||r.height){const o=$c(t),i=Bi();i?Cp({...e,name:o,bounds:r}):kp({...e,name:o,bounds:r}),setTimeout(()=>{i&&(i.style.display="none")},1500)}},1200)}}ee();var Iy,Oy;(Oy=(Iy=ge).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__)!=null||(Iy.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function HL(e){let t=0;const n=setInterval(()=>{ge.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function zL(){const e=ge.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function qL(){return new Promise(e=>{function t(){zL(),e(ge.__VUE_INSPECTOR__)}ge.__VUE_INSPECTOR__?t():HL(()=>{t()})})}ee(),ee();function WL(e){return!!(e&&e.__v_isReadonly)}function Ry(e){return WL(e)?Ry(e.__v_raw):!!(e&&e.__v_isReactive)}function Op(e){return!!(e&&e.__v_isRef===!0)}function Ea(e){const t=e&&e.__v_raw;return t?Ea(t):e}var GL=class{constructor(){this.refEditor=new YL}set(e,t,n,r){const o=Array.isArray(t)?t:t.split(".");for(;o.length>1;){const a=o.shift();e instanceof Map?e=e.get(a):e instanceof Set?e=Array.from(e.values())[a]:e=e[a],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const i=o[0],s=this.refEditor.get(e)[i];r?r(e,i,n):this.refEditor.isRef(s)?this.refEditor.set(s,n):e[i]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let r=0;r<n.length;r++)if(e instanceof Map?e=e.get(n[r]):e=e[n[r]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const r=Array.isArray(t)?t.slice():t.split("."),o=n?2:1;for(;e&&r.length>o;){const i=r.shift();e=e[i],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):Ea(t)instanceof Map?t.delete(n):Ea(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const o=t[e.newKey||n];this.refEditor.isRef(o)?this.refEditor.set(o,r):Ea(t)instanceof Map?t.set(e.newKey||n,r):Ea(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},YL=class{set(e,t){if(Op(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(o=>e.add(o));return}const n=Object.keys(t);if(e instanceof Map){const o=new Set(e.keys());n.forEach(i=>{e.set(i,Reflect.get(t,i)),o.delete(i)}),o.forEach(i=>e.delete(i));return}const r=new Set(Object.keys(e));n.forEach(o=>{Reflect.set(e,o,Reflect.get(t,o)),r.delete(o)}),r.forEach(o=>Reflect.deleteProperty(e,o))}}get(e){return Op(e)?e.value:e}isRef(e){return Op(e)||Ry(e)}};ee(),ee(),ee();var KL="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function XL(){if(typeof window>"u"||!my||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=typeof localStorage.getItem<"u"?localStorage.getItem(KL):null;return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}ee(),ee(),ee();var xy,Py;(Py=(xy=ge).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS)!=null||(xy.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var JL=new Proxy(ge.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function ZL(e,t){At.timelineLayersState[t.id]=!1,JL.push({...e,descriptorId:t.id,appRecord:Sp(t.app)})}var My,Ly;(Ly=(My=ge).__VUE_DEVTOOLS_KIT_INSPECTOR__)!=null||(My.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var Rp=new Proxy(ge.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),Dy=Fi(()=>{lo.hooks.callHook("sendInspectorToClient",Fy())});function QL(e,t){var n,r;Rp.push({options:e,descriptor:t,treeFilterPlaceholder:(n=e.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(r=e.stateFilterPlaceholder)!=null?r:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:Sp(t.app)}),Dy()}function Fy(){return Rp.filter(e=>e.descriptor.app===cn.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var t;const n=e.descriptor,r=e.options;return{id:r.id,label:r.label,logo:n.logo,icon:`custom-ic-baseline-${(t=r?.icon)==null?void 0:t.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function wc(e,t){return Rp.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}function VL(){const e=yy();e.hook("addInspector",({inspector:r,plugin:o})=>{QL(r,o.descriptor)});const t=Fi(async({inspectorId:r,plugin:o})=>{var i;if(!r||!((i=o?.descriptor)!=null&&i.app)||At.highPerfModeEnabled)return;const s=wc(r,o.descriptor.app),a={app:o.descriptor.app,inspectorId:r,filter:s?.treeFilter||"",rootNodes:[]};await new Promise(c=>{e.callHookWith(async d=>{await Promise.all(d.map(f=>f(a))),c()},"getInspectorTree")}),e.callHookWith(async c=>{await Promise.all(c.map(d=>d({inspectorId:r,rootNodes:a.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=Fi(async({inspectorId:r,plugin:o})=>{var i;if(!r||!((i=o?.descriptor)!=null&&i.app)||At.highPerfModeEnabled)return;const s=wc(r,o.descriptor.app),a={app:o.descriptor.app,inspectorId:r,nodeId:s?.selectedNodeId||"",state:null},c={currentTab:`custom-inspector:${r}`};a.nodeId&&await new Promise(d=>{e.callHookWith(async f=>{await Promise.all(f.map(u=>u(a,c))),d()},"getInspectorState")}),e.callHookWith(async d=>{await Promise.all(d.map(f=>f({inspectorId:r,nodeId:a.nodeId,state:a.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:r,nodeId:o,plugin:i})=>{const s=wc(r,i.descriptor.app);s&&(s.selectedNodeId=o)}),e.hook("timelineLayerAdded",({options:r,plugin:o})=>{ZL(r,o.descriptor)}),e.hook("timelineEventAdded",({options:r,plugin:o})=>{var i;const s=["performance","component-event","keyboard","mouse"];At.highPerfModeEnabled||!((i=At.timelineLayersState)!=null&&i[o.descriptor.id])&&!s.includes(r.layerId)||e.callHookWith(async a=>{await Promise.all(a.map(c=>c(r)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:r})=>{const o=r.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!o)return null;const i=o.id.toString();return[...o.instanceMap].filter(([a])=>a.split(":")[0]===i).map(([,a])=>a)}),e.hook("getComponentBounds",async({instance:r})=>zo(r)),e.hook("getComponentName",({instance:r})=>$c(r)),e.hook("componentHighlight",({uid:r})=>{const o=cn.value.instanceMap.get(r);o&&DL(o)}),e.hook("componentUnhighlight",()=>{Ny()}),e}var By,Uy;(Uy=(By=ge).__VUE_DEVTOOLS_KIT_APP_RECORDS__)!=null||(By.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var jy,Hy;(Hy=(jy=ge).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__)!=null||(jy.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var zy,qy;(qy=(zy=ge).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__)!=null||(zy.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var Wy,Gy;(Gy=(Wy=ge).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__)!=null||(Wy.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var Yy,Ky;(Ky=(Yy=ge).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__)!=null||(Yy.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var qo="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function eD(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:XL()}}var Xy,Jy;(Jy=(Xy=ge)[qo])!=null||(Xy[qo]=eD());var tD=Fi(e=>{lo.hooks.callHook("devtoolsStateUpdated",{state:e})});Fi((e,t)=>{lo.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var Ac=new Proxy(ge.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?ge.__VUE_DEVTOOLS_KIT_APP_RECORDS__:ge.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),cn=new Proxy(ge.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?ge.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?ge.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:ge.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function $a(){tD({...ge[qo],appRecords:Ac.value,activeAppRecordId:cn.id,tabs:ge.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:ge.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function nD(e){ge.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,$a()}function rD(e){ge.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,$a()}var At=new Proxy(ge[qo],{get(e,t){return t==="appRecords"?Ac:t==="activeAppRecordId"?cn.id:t==="tabs"?ge.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?ge.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:ge[qo][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...ge[qo]},e[t]=n,ge[qo][t]=n,!0}});function oD(e){return new Promise(t=>{At.connected&&(e(),t()),lo.hooks.hook("devtoolsConnectedUpdated",({state:n})=>{n.connected&&(e(),t())})})}var xp=e=>{if(e)return e.startsWith("baseline-")?`custom-ic-${e}`:e.startsWith("i-")||aL(e)?e:`custom-ic-baseline-${e}`};function iD(e){const t=ge.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__;t.some(n=>n.name===e.name)||(t.push({...e,icon:xp(e.icon)}),$a())}function sD(e){const t=ge.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__;t.some(n=>n.id===e.id)||(t.push({...e,icon:xp(e.icon),children:e.children?e.children.map(n=>({...n,icon:xp(n.icon)})):void 0}),$a())}function aD(e){const t=ge.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__,n=t.findIndex(r=>r.id===e);n!==-1&&(t.splice(n,1),$a())}function lD(e={}){var t,n,r;const{file:o,host:i,baseUrl:s=window.location.origin,line:a=0,column:c=0}=e;if(o){if(i==="chrome-extension"){const d=o.replace(/\\/g,"\\\\"),f=(n=(t=window.VUE_DEVTOOLS_CONFIG)==null?void 0:t.openInEditorHost)!=null?n:"/";fetch(`${f}__open-in-editor?file=${encodeURI(o)}`).then(u=>{if(!u.ok){const p=`Opening component ${d} failed`;console.log(`%c${p}`,"color:red")}})}else if(At.vitePluginDetected){const d=(r=ge.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?r:s;ge.__VUE_INSPECTOR__.openInEditor(d,o,a,c)}}}ee(),ee(),ee(),ee(),ee();var Zy,Qy;(Qy=(Zy=ge).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__)!=null||(Zy.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Pp=new Proxy(ge.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Mp(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Lp(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function cD(e){var t,n,r;const o=(n=(t=Pp.find(i=>{var s;return i[0].id===e&&!!((s=i[0])!=null&&s.settings)}))==null?void 0:t[0])!=null?n:null;return(r=o?.settings)!=null?r:null}function Vy(e,t){var n,r,o;const i=Lp(e);if(i){const s=localStorage.getItem(i);if(s)return JSON.parse(s)}if(e){const s=(r=(n=Pp.find(a=>a[0].id===e))==null?void 0:n[0])!=null?r:null;return Mp((o=s?.settings)!=null?o:{})}return Mp(t)}function dD(e,t){const n=Lp(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Mp(t)))}function uD(e,t,n){const r=Lp(e),o=localStorage.getItem(r),i=JSON.parse(o||"{}"),s={...i,[t]:n};localStorage.setItem(r,JSON.stringify(s)),lo.hooks.callHookWith(a=>{a.forEach(c=>c({pluginId:e,key:t,oldValue:i[t],newValue:n,settings:s}))},"setPluginSettings")}ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee();var eb,tb,Cn=(tb=(eb=ge).__VUE_DEVTOOLS_HOOK)!=null?tb:eb.__VUE_DEVTOOLS_HOOK=yy(),fD={vueAppInit(e){Cn.hook("app:init",e)},vueAppUnmount(e){Cn.hook("app:unmount",e)},vueAppConnected(e){Cn.hook("app:connected",e)},componentAdded(e){return Cn.hook("component:added",e)},componentEmit(e){return Cn.hook("component:emit",e)},componentUpdated(e){return Cn.hook("component:updated",e)},componentRemoved(e){return Cn.hook("component:removed",e)},setupDevtoolsPlugin(e){Cn.hook("devtools-plugin:setup",e)},perfStart(e){return Cn.hook("perf:start",e)},perfEnd(e){return Cn.hook("perf:end",e)}},nb={on:fD,setupDevToolsPlugin(e,t){return Cn.callHook("devtools-plugin:setup",e,t)}},pD=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var t;if(At.highPerfModeEnabled)return;const n=Fy().find(r=>r.packageName===this.plugin.descriptor.packageName);if(n?.id){if(e){const r=[e.appContext.app,e.uid,(t=e.parent)==null?void 0:t.uid,e];Cn.callHook("component:updated",...r)}else Cn.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&dD(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){At.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){At.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return At.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){At.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return Vy(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:t})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},mD=pD;ee(),ee(),ee(),ee();var _D="__vue_devtool_undefined__",hD="__vue_devtool_infinity__",gD="__vue_devtool_negative_infinity__",yD="__vue_devtool_nan__";ee(),ee();var bD={[_D]:"undefined",[yD]:"NaN",[hD]:"Infinity",[gD]:"-Infinity"};Object.entries(bD).reduce((e,[t,n])=>(e[n]=t,e),{}),ee(),ee(),ee(),ee(),ee();var rb,ob;(ob=(rb=ge).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__)!=null||(rb.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function ib(e,t){return nb.setupDevToolsPlugin(e,t)}function vD(e,t){const[n,r]=e;if(n.app!==t)return;const o=new mD({plugin:{setupFn:r,descriptor:n},ctx:lo});n.packageName==="vuex"&&o.on.editInspectorState(i=>{o.sendInspectorState(i.inspectorId)}),r(o)}function sb(e,t){ge.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||At.highPerfModeEnabled&&!t?.inspectingComponent||(ge.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Pp.forEach(n=>{vD(n,e)}))}ee(),ee();var Sa="__VUE_DEVTOOLS_ROUTER__",Ui="__VUE_DEVTOOLS_ROUTER_INFO__",ab,lb;(lb=(ab=ge)[Ui])!=null||(ab[Ui]={currentRoute:null,routes:[]});var cb,db;(db=(cb=ge)[Sa])!=null||(cb[Sa]={}),new Proxy(ge[Ui],{get(e,t){return ge[Ui][t]}}),new Proxy(ge[Sa],{get(e,t){if(t==="value")return ge[Sa]}});function ED(e){const t=new Map;return(e?.getRoutes()||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function Dp(e){return e.map(t=>{let{path:n,name:r,children:o,meta:i}=t;return o?.length&&(o=Dp(o)),{path:n,name:r,children:o,meta:i}})}function $D(e){if(e){const{fullPath:t,hash:n,href:r,path:o,name:i,matched:s,params:a,query:c}=e;return{fullPath:t,hash:n,href:r,path:o,name:i,params:a,query:c,matched:Dp(s)}}return e}function SD(e,t){function n(){var r;const o=(r=e.app)==null?void 0:r.config.globalProperties.$router,i=$D(o?.currentRoute.value),s=Dp(ED(o)),a=console.warn;console.warn=()=>{},ge[Ui]={currentRoute:i?hy(i):{},routes:hy(s)},ge[Sa]=o,console.warn=a}n(),nb.on.componentUpdated(Fi(()=>{var r;((r=t.value)==null?void 0:r.app)===e.app&&(n(),!At.highPerfModeEnabled&&lo.hooks.callHook("routerInfoUpdated",{state:ge[Ui]}))},200))}function TD(e){return{async getInspectorTree(t){const n={...t,app:cn.value.app,rootNodes:[]};return await new Promise(r=>{e.callHookWith(async o=>{await Promise.all(o.map(i=>i(n))),r()},"getInspectorTree")}),n.rootNodes},async getInspectorState(t){const n={...t,app:cn.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(o=>{e.callHookWith(async i=>{await Promise.all(i.map(s=>s(n,r))),o()},"getInspectorState")}),n.state},editInspectorState(t){const n=new GL,r={...t,app:cn.value.app,set:(o,i=t.path,s=t.state.value,a)=>{n.set(o,i,s,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(o=>{o.forEach(i=>i(r))},"editInspectorState")},sendInspectorState(t){const n=wc(t);e.callHook("sendInspectorState",{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return UL()},cancelInspectComponentInspector(){return BL()},getComponentRenderCode(t){const n=Tp(cn.value,t);if(n)return typeof n?.type!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return jL({id:t})},openInEditor:lD,getVueInspector:qL,toggleApp(t,n){const r=Ac.value.find(o=>o.id===t);r&&(rD(t),nD(r),SD(r,cn),Dy(),sb(r.app,n))},inspectDOM(t){const n=Tp(cn.value,t);if(n){const[r]=wp(n);r&&(ge.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=r)}},updatePluginSettings(t,n,r){uD(t,n,r)},getPluginSettings(t){return{options:cD(t),values:Vy(t)}}}}ee();var ub,fb;(fb=(ub=ge).__VUE_DEVTOOLS_ENV__)!=null||(ub.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var pb=VL(),mb,_b;(_b=(mb=ge).__VUE_DEVTOOLS_KIT_CONTEXT__)!=null||(mb.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:pb,get state(){return{...At,activeAppRecordId:cn.id,activeAppRecord:cn.value,appRecords:Ac.value}},api:TD(pb)});var lo=ge.__VUE_DEVTOOLS_KIT_CONTEXT__;ee(),EL(SL());var hb,gb;(gb=(hb=ge).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__)!=null||(hb.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),ee();function wD(e){return new Promise(t=>{if(At.connected&&At.clientConnected){e(),t();return}lo.hooks.hook("devtoolsConnectedUpdated",({state:n})=>{n.connected&&n.clientConnected&&(e(),t())})})}ee();function AD(e){At.highPerfModeEnabled=e??!At.highPerfModeEnabled,!e&&cn.value&&sb(cn.value.app)}ee(),ee(),ee();function kD(e){At.devtoolsClientDetected={...At.devtoolsClientDetected,...e};const t=Object.values(At.devtoolsClientDetected).some(Boolean);AD(!t)}var yb,bb;(bb=(yb=ge).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__)!=null||(yb.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=kD),ee(),ee(),ee(),ee(),ee(),ee(),ee();var CD=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},vb=class{constructor(e){this.generateIdentifier=e,this.kv=new CD}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},ND=class extends vb{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};ee(),ee();function ID(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function OD(e,t){const n=ID(e);if("find"in n)return n.find(t);const r=n;for(let o=0;o<r.length;o++){const i=r[o];if(t(i))return i}}function ji(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function kc(e,t){return e.indexOf(t)!==-1}function Eb(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var RD=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return OD(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};ee(),ee();var xD=e=>Object.prototype.toString.call(e).slice(8,-1),$b=e=>typeof e>"u",PD=e=>e===null,Ta=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,Fp=e=>Ta(e)&&Object.keys(e).length===0,co=e=>Array.isArray(e),MD=e=>typeof e=="string",LD=e=>typeof e=="number"&&!isNaN(e),DD=e=>typeof e=="boolean",FD=e=>e instanceof RegExp,wa=e=>e instanceof Map,Aa=e=>e instanceof Set,Sb=e=>xD(e)==="Symbol",BD=e=>e instanceof Date&&!isNaN(e.valueOf()),UD=e=>e instanceof Error,Tb=e=>typeof e=="number"&&isNaN(e),jD=e=>DD(e)||PD(e)||$b(e)||LD(e)||MD(e)||Sb(e),HD=e=>typeof e=="bigint",zD=e=>e===1/0||e===-1/0,qD=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),WD=e=>e instanceof URL;ee();var wb=e=>e.replace(/\./g,"\\."),Bp=e=>e.map(String).map(wb).join("."),ka=e=>{const t=[];let n="";for(let o=0;o<e.length;o++){let i=e.charAt(o);if(i==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(i==="."){t.push(n),n="";continue}n+=i}const r=n;return t.push(r),t};ee();function hr(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Ab=[hr($b,"undefined",()=>null,()=>{}),hr(HD,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),hr(BD,"Date",e=>e.toISOString(),e=>new Date(e)),hr(UD,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),hr(FD,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),hr(Aa,"set",e=>[...e.values()],e=>new Set(e)),hr(wa,"map",e=>[...e.entries()],e=>new Map(e)),hr(e=>Tb(e)||zD(e),"number",e=>Tb(e)?"NaN":e>0?"Infinity":"-Infinity",Number),hr(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),hr(WD,"URL",e=>e.toString(),e=>new URL(e))];function Cc(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var kb=Cc((e,t)=>Sb(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),GD=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Cb=Cc(qD,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=GD[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Nb(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var Ib=Cc(Nb,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(o=>{r[o]=e[o]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),Ob=Cc((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),YD=[Ib,kb,Ob,Cb],Rb=(e,t)=>{const n=Eb(YD,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=Eb(Ab,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},xb={};Ab.forEach(e=>{xb[e.annotation]=e});var KD=(e,t,n)=>{if(co(t))switch(t[0]){case"symbol":return kb.untransform(e,t,n);case"class":return Ib.untransform(e,t,n);case"custom":return Ob.untransform(e,t,n);case"typed-array":return Cb.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=xb[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}};ee();var Hi=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Pb(e){if(kc(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(kc(e,"prototype"))throw new Error("prototype is not allowed as a property");if(kc(e,"constructor"))throw new Error("constructor is not allowed as a property")}var XD=(e,t)=>{Pb(t);for(let n=0;n<t.length;n++){const r=t[n];if(Aa(e))e=Hi(e,+r);else if(wa(e)){const o=+r,i=+t[++n]==0?"key":"value",s=Hi(e,o);switch(i){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[r]}return e},Up=(e,t,n)=>{if(Pb(t),t.length===0)return n(e);let r=e;for(let i=0;i<t.length-1;i++){const s=t[i];if(co(r)){const a=+s;r=r[a]}else if(Ta(r))r=r[s];else if(Aa(r)){const a=+s;r=Hi(r,a)}else if(wa(r)){if(i===t.length-2)break;const c=+s,d=+t[++i]==0?"key":"value",f=Hi(r,c);switch(d){case"key":r=f;break;case"value":r=r.get(f);break}}}const o=t[t.length-1];if(co(r)?r[+o]=n(r[+o]):Ta(r)&&(r[o]=n(r[o])),Aa(r)){const i=Hi(r,+o),s=n(i);i!==s&&(r.delete(i),r.add(s))}if(wa(r)){const i=+t[t.length-2],s=Hi(r,i);switch(+o==0?"key":"value"){case"key":{const c=n(s);r.set(c,r.get(s)),c!==s&&r.delete(s);break}case"value":{r.set(s,n(r.get(s)));break}}}return e};function jp(e,t,n=[]){if(!e)return;if(!co(e)){ji(e,(i,s)=>jp(i,t,[...n,...ka(s)]));return}const[r,o]=e;o&&ji(o,(i,s)=>{jp(i,t,[...n,...ka(s)])}),t(r,n)}function JD(e,t,n){return jp(t,(r,o)=>{e=Up(e,o,i=>KD(i,r,n))}),e}function ZD(e,t){function n(r,o){const i=XD(e,ka(o));r.map(ka).forEach(s=>{e=Up(e,s,()=>i)})}if(co(t)){const[r,o]=t;r.forEach(i=>{e=Up(e,ka(i),()=>e)}),o&&ji(o,n)}else ji(t,n);return e}var QD=(e,t)=>Ta(e)||co(e)||wa(e)||Aa(e)||Nb(e,t);function VD(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function eF(e,t){const n={};let r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(a=>a.map(String)).sort((a,c)=>a.length-c.length));const[i,...s]=o;i.length===0?r=s.map(Bp):n[Bp(i)]=s.map(Bp)}),r?Fp(n)?[r]:[r,n]:Fp(n)?void 0:n}var Mb=(e,t,n,r,o=[],i=[],s=new Map)=>{var a;const c=jD(e);if(!c){VD(e,o,t);const _=s.get(e);if(_)return r?{transformedValue:null}:_}if(!QD(e,n)){const _=Rb(e,n),y=_?{transformedValue:_.value,annotations:[_.type]}:{transformedValue:e};return c||s.set(e,y),y}if(kc(i,e))return{transformedValue:null};const d=Rb(e,n),f=(a=d?.value)!=null?a:e,u=co(f)?[]:{},p={};ji(f,(_,y)=>{if(y==="__proto__"||y==="constructor"||y==="prototype")throw new Error(`Detected property ${y}. This is a prototype pollution risk, please remove it from your object.`);const g=Mb(_,t,n,r,[...o,y],[...i,e],s);u[y]=g.transformedValue,co(g.annotations)?p[y]=g.annotations:Ta(g.annotations)&&ji(g.annotations,(h,b)=>{p[wb(y)+"."+b]=h})});const m=Fp(p)?{transformedValue:u,annotations:d?[d.type]:void 0}:{transformedValue:u,annotations:d?[d.type,p]:p};return c||s.set(e,m),m};ee(),ee();function Lb(e){return Object.prototype.toString.call(e).slice(8,-1)}function Db(e){return Lb(e)==="Array"}function tF(e){if(Lb(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function nF(e,t,n,r,o){const i={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),o&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function Hp(e,t={}){if(Db(e))return e.map(o=>Hp(o,t));if(!tF(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,i)=>{if(Db(t.props)&&!t.props.includes(i))return o;const s=e[i],a=Hp(s,t);return nF(o,i,a,e,t.nonenumerable),o},{})}var pt=class{constructor({dedupe:e=!1}={}){this.classRegistry=new ND,this.symbolRegistry=new vb(t=>{var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new RD,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=Mb(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=eF(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=Hp(t);return n?.values&&(r=JD(r,n.values,this)),n?.referentialEqualities&&(r=ZD(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};pt.defaultInstance=new pt,pt.serialize=pt.defaultInstance.serialize.bind(pt.defaultInstance),pt.deserialize=pt.defaultInstance.deserialize.bind(pt.defaultInstance),pt.stringify=pt.defaultInstance.stringify.bind(pt.defaultInstance),pt.parse=pt.defaultInstance.parse.bind(pt.defaultInstance),pt.registerClass=pt.defaultInstance.registerClass.bind(pt.defaultInstance),pt.registerSymbol=pt.defaultInstance.registerSymbol.bind(pt.defaultInstance),pt.registerCustom=pt.defaultInstance.registerCustom.bind(pt.defaultInstance),pt.allowErrorProps=pt.defaultInstance.allowErrorProps.bind(pt.defaultInstance),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee(),ee();var Fb,Bb;(Bb=(Fb=ge).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__)!=null||(Fb.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var Ub,jb;(jb=(Ub=ge).__VUE_DEVTOOLS_KIT_RPC_CLIENT__)!=null||(Ub.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var Hb,zb;(zb=(Hb=ge).__VUE_DEVTOOLS_KIT_RPC_SERVER__)!=null||(Hb.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var qb,Wb;(Wb=(qb=ge).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__)!=null||(qb.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var Gb,Yb;(Yb=(Gb=ge).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__)!=null||(Gb.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var Kb,Xb;(Xb=(Kb=ge).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__)!=null||(Kb.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),ee(),ee(),ee(),ee(),ee(),ee(),ee();const rF=Object.freeze(Object.defineProperty({__proto__:null,addCustomCommand:sD,addCustomTab:iD,onDevToolsClientConnected:wD,onDevToolsConnected:oD,removeCustomCommand:aD,setupDevToolsPlugin:ib,setupDevtoolsPlugin:ib},Symbol.toStringTag,{value:"Module"})),ue=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Se=globalThis,Lr="10.51.0";function Dr(){return Ca(Se),Se}function Ca(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Lr,t[Lr]=t[Lr]||{}}function zi(e,t,n=Se){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[Lr]=r[Lr]||{};return o[e]||(o[e]=t())}const zp=["debug","info","warn","error","log","assert","trace"],oF="Sentry Logger ",Nc={};function er(e){if(!("console"in Se))return e();const t=Se.console,n={},r=Object.keys(Nc);r.forEach(o=>{const i=Nc[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function iF(){Wp().enabled=!0}function sF(){Wp().enabled=!1}function Jb(){return Wp().enabled}function aF(...e){qp("log",...e)}function lF(...e){qp("warn",...e)}function cF(...e){qp("error",...e)}function qp(e,...t){ue&&Jb()&&er(()=>{Se.console[e](`${oF}[${e}]:`,...t)})}function Wp(){return ue?zi("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const R={enable:iF,disable:sF,isEnabled:Jb,log:aF,warn:lF,error:cF},Zb=50,gr="?",Qb=/\(error: (.*)\)/,Vb=/captureMessage|captureException/;function ev(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const i=[],s=n.split(`
30
+ `);for(let a=r;a<s.length;a++){let c=s[a];c.length>1024&&(c=c.slice(0,1024));const d=Qb.test(c)?c.replace(Qb,"$1"):c;if(!d.includes("Error: ")){for(const f of t){const u=f(d);if(u){i.push(u);break}}if(i.length>=Zb+o)break}}return uF(i.slice(o))}}function dF(e){return Array.isArray(e)?ev(...e):e}function uF(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Ic(t).function||"")&&t.pop(),t.reverse(),Vb.test(Ic(t).function||"")&&(t.pop(),Vb.test(Ic(t).function||"")&&t.pop()),t.slice(0,Zb).map(n=>({...n,filename:n.filename||Ic(t).filename,function:n.function||gr}))}function Ic(e){return e[e.length-1]||{}}const Gp="<anonymous>";function Fr(e){try{return!e||typeof e!="function"?Gp:e.name||Gp}catch{return Gp}}function Yp(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function tv(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function fF(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}const Na={},nv={};function uo(e,t){return Na[e]=Na[e]||[],Na[e].push(t),()=>{const n=Na[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}}function fo(e,t){if(!nv[e]){nv[e]=!0;try{t()}catch(n){ue&&R.error(`Error while instrumenting ${e}`,n)}}}function Un(e,t){const n=e&&Na[e];if(n)for(const r of n)try{r(t)}catch(o){ue&&R.error(`Error while triggering instrumentation handler.
31
+ Type: ${e}
32
+ Name: ${Fr(r)}
33
+ Error:`,o)}}let Kp=null;function rv(e){const t="error";uo(t,e),fo(t,pF)}function pF(){Kp=Se.onerror,Se.onerror=function(e,t,n,r,o){return Un("error",{column:r,error:o,line:n,msg:e,url:t}),Kp?Kp.apply(this,arguments):!1},Se.onerror.__SENTRY_INSTRUMENTED__=!0}let Xp=null;function ov(e){const t="unhandledrejection";uo(t,e),fo(t,mF)}function mF(){Xp=Se.onunhandledrejection,Se.onunhandledrejection=function(e){return Un("unhandledrejection",e),Xp?Xp.apply(this,arguments):!0},Se.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const iv=Object.prototype.toString;function Br(e){switch(iv.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return jr(e,Error)}}function qi(e,t){return iv.call(e)===`[object ${t}]`}function sv(e){return qi(e,"ErrorEvent")}function av(e){return qi(e,"DOMError")}function _F(e){return qi(e,"DOMException")}function tr(e){return qi(e,"String")}function Oc(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ur(e){return e===null||Oc(e)||typeof e!="object"&&typeof e!="function"}function En(e){return qi(e,"Object")}function Rc(e){return typeof Event<"u"&&jr(e,Event)}function hF(e){return typeof Element<"u"&&jr(e,Element)}function gF(e){return qi(e,"RegExp")}function Wo(e){return!!(e?.then&&typeof e.then=="function")}function yF(e){return En(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function jr(e,t){try{return e instanceof t}catch{return!1}}function lv(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function Jp(e){return typeof Request<"u"&&jr(e,Request)}const Zp=Se,bF=80;function Bt(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const a=" > ",c=a.length;let d;const f=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||bF;for(;n&&i++<r&&(d=vF(n,f),!(d==="html"||i>1&&s+o.length*c+d.length>=u));)o.push(d),s+=d.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function vF(e,t){const n=e,r=[];if(!n?.tagName)return"";if(Zp.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t?.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(o?.length)o.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&tr(i)){const s=i.split(/\s+/);for(const a of s)r.push(`.${a}`)}}for(const i of["aria-label","type","name","title","alt"]){const s=n.getAttribute(i);s&&r.push(`[${i}="${s}"]`)}return r.join("")}function Go(){try{return Zp.document.location.href}catch{return""}}function Qp(e,t=5){if(!Zp.HTMLElement)return null;let n=e;for(let r=0;r<t;r++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}function Wt(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const o=n(r);typeof o=="function"&&cv(o,r);try{e[t]=o}catch{ue&&R.log(`Failed to replace method "${t}" in object`,e)}}function Gt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{ue&&R.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function cv(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Gt(e,"__sentry_original__",t)}catch{}}function Vp(e){return e.__sentry_original__}function dv(e){if(Br(e))return{message:e.message,name:e.name,stack:e.stack,...fv(e)};if(Rc(e)){const t={type:e.type,target:uv(e.target),currentTarget:uv(e.currentTarget),...fv(e)};return typeof CustomEvent<"u"&&jr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function uv(e){try{return hF(e)?Bt(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function fv(e){return typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e)):{}}function EF(e){const t=Object.keys(dv(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let Wi;function Ia(e){if(Wi!==void 0)return Wi?Wi(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=Se;return t in n&&typeof n[t]=="function"?(Wi=n[t],Wi(e)):(Wi=null,e())}function Hr(){return Ia(()=>Math.random())}function Oa(){return Ia(()=>Date.now())}function Ra(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function em(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function xc(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const o=e[r];try{lv(o)?n.push(tv(o)):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function xa(e,t,n=!1){return tr(e)?gF(t)?t.test(e):tr(t)?n?e===t:e.includes(t):typeof t=="function"?t(e):!1:!1}function nr(e,t=[],n=!1){return t.some(r=>xa(e,r,n))}function $F(){const e=Se;return e.crypto||e.msCrypto}let tm;function SF(){return Hr()*16}function Ut(e=$F()){try{if(e?.randomUUID)return Ia(()=>e.randomUUID()).replace(/-/g,"")}catch{}return tm||(tm="10000000100040008000"+1e11),tm.replace(/[018]/g,t=>(t^(SF()&15)>>t/4).toString(16))}function pv(e){return e.exception?.values?.[0]}function Yo(e){const{message:t,event_id:n}=e;if(t)return t;const r=pv(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function nm(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function zr(e,t){const n=pv(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const i={...o?.data,...t.data};n.mechanism.data=i}}function TF(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map(s=>em(s,0));const i=Math.min(r-1,o);t.context_line=em(e[i],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map(s=>em(s,0))}function mv(e){if(wF(e))return!0;try{Gt(e,"__sentry_captured__",!0)}catch{}return!1}function wF(e){try{return e.__sentry_captured__}catch{}}const _v=1e3;function Ko(){return Oa()/_v}function AF(){const{performance:e}=Se;if(!e?.now||!e.timeOrigin)return Ko;const t=e.timeOrigin;return()=>(t+Ia(()=>e.now()))/_v}let hv;function at(){return(hv??(hv=AF()))()}let rm=null;function kF(){const{performance:e}=Se;if(!e?.now)return;const t=3e5,n=Ia(()=>e.now()),r=Oa(),o=e.timeOrigin;if(typeof o=="number"&&Math.abs(o+n-r)<t)return o;const i=e.timing?.navigationStart;return typeof i=="number"&&Math.abs(i+n-r)<t?i:r-n}function Mt(){return rm===null&&(rm=kF()),rm}function CF(e){const t=at(),n={sid:Ut(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>IF(n)};return e&&Gi(n,e),n}function Gi(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||at(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Ut()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function NF(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Gi(e,n)}function IF(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Pa(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=Pa(r[o],t[o],n-1));return r}function yr(){return Ut()}function qr(){return Ut().substring(16)}const om="_sentrySpan";function br(e,t){t?Gt(e,om,t):delete e[om]}function Yi(e){return e[om]}const OF=100;class rr{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:yr(),sampleRand:Hr()}}clone(){const t=new rr;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,br(t,Yi(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Gi(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof rr?n.getScopeData():En(n)?t:void 0,{tags:o,attributes:i,extra:s,user:a,contexts:c,level:d,fingerprint:f=[],propagationContext:u,conversationId:p}=r||{};return this._tags={...this._tags,...o},this._attributes={...this._attributes,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),d&&(this._level=d),f.length&&(this._fingerprint=f),u&&(this._propagationContext=u),p&&(this._conversationId=p),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,br(this,void 0),this._attachments=[],this.setPropagationContext({traceId:yr(),sampleRand:Hr()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:OF;if(r<=0)return this;const o={timestamp:Ko(),...t,message:t.message?Ra(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Yi(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Pa(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||Ut();if(!this._client)return ue&&R.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=r?.event_id||Ut();if(!this._client)return ue&&R.warn("No client configured on scope - will not capture message!"),o;const i=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){const r=t.event_id||n?.event_id||Ut();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(ue&&R.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function RF(){return zi("defaultCurrentScope",()=>new rr)}function xF(){return zi("defaultIsolationScope",()=>new rr)}const gv=e=>e instanceof Promise&&!e[yv],yv=Symbol("chained PromiseLike"),bv=(e,t,n)=>{const r=e.then(o=>(t(o),o),o=>{throw n(o),o});return gv(r)&&gv(e)?r:PF(e,r)},PF=(e,t)=>{let n=!1;for(const r in e){if(r in t)continue;n=!0;const o=e[r];typeof o=="function"?Object.defineProperty(t,r,{value:(...i)=>o.apply(e,i),enumerable:!0,configurable:!0,writable:!0}):t[r]=o}return n&&Object.assign(t,{[yv]:!0}),t};class MF{constructor(t,n){let r;t?r=t:r=new rr;let o;n?o=n:o=new rr,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(o){throw this._popScope(),o}return Wo(r)?bv(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Ki(){const e=Dr(),t=Ca(e);return t.stack=t.stack||new MF(RF(),xF())}function LF(e){return Ki().withScope(e)}function DF(e,t){const n=Ki();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function vv(e){return Ki().withScope(()=>e(Ki().getIsolationScope()))}function FF(){return{withIsolationScope:vv,withScope:LF,withSetScope:DF,withSetIsolationScope:(e,t)=>vv(t),getCurrentScope:()=>Ki().getScope(),getIsolationScope:()=>Ki().getIsolationScope()}}function po(e){const t=Ca(e);return t.acs?t.acs:FF()}function BF(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.keys(e).includes("value")}function UF(e,t){const{value:n,unit:r}=BF(e)?e:{value:e,unit:void 0},o=jF(n),i=r&&typeof r=="string"?{unit:r}:{};if(o)return{...o,...i};if(!t||t==="skip-undefined"&&n===void 0)return;let s="";try{s=JSON.stringify(n)??""}catch{}return{value:s,type:"string",...i}}function Xi(e,t=!1){const n={};for(const[r,o]of Object.entries(e??{})){const i=UF(o,t);i&&(n[r]=i)}return n}function Ev(e){if(!e)return 0;let t=0;for(const[n,r]of Object.entries(e)){t+=n.length*2,t+=r.type.length*2,t+=(r.unit?.length??0)*2;const o=r.value;Array.isArray(o)?t+=$v(o[0])*o.length:Ur(o)?t+=$v(o):t+=100}return t}function $v(e){return typeof e=="string"?e.length*2:typeof e=="boolean"?4:typeof e=="number"?8:0}function jF(e){const t=typeof e=="string"?"string":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?Number.isInteger(e)?"integer":"double":null;if(t)return{value:e,type:t}}function Pe(){const e=Dr();return po(e).getCurrentScope()}function vt(){const e=Dr();return po(e).getIsolationScope()}function Xo(){return zi("globalScope",()=>new rr)}function jn(...e){const t=Dr(),n=po(t);if(e.length===2){const[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function HF(...e){const t=Dr(),n=po(t);if(e.length===2){const[r,o]=e;return r?n.withSetIsolationScope(r,o):n.withIsolationScope(o)}return n.withIsolationScope(e[0])}function fe(){return Pe().getClient()}function Sv(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=t,i={trace_id:n,span_id:o||qr()};return r&&(i.parent_span_id=r),i}const Nt="sentry.source",Pc="sentry.sample_rate",Tv="sentry.previous_trace_sample_rate",tt="sentry.op",qe="sentry.origin",Ma="sentry.idle_span_finish_reason",La="sentry.measurement_unit",Da="sentry.measurement_value",zF="sentry.release",qF="sentry.environment",WF="sentry.segment.name",GF="sentry.segment.id",YF="sentry.sdk.name",KF="sentry.sdk.version",XF="user.id",JF="user.email",ZF="user.ip_address",QF="user.name",Fa="sentry.custom_span_name",im="sentry.profile_id",mo="sentry.exclusive_time",VF="http.request.method",eB="url.full",tB="sentry.link.type",nB="gen_ai.conversation.id",wv=0,Ba=1,Ye=2;function Av(e){if(e<400&&e>=100)return{code:Ba};if(e>=400&&e<500)switch(e){case 401:return{code:Ye,message:"unauthenticated"};case 403:return{code:Ye,message:"permission_denied"};case 404:return{code:Ye,message:"not_found"};case 409:return{code:Ye,message:"already_exists"};case 413:return{code:Ye,message:"failed_precondition"};case 429:return{code:Ye,message:"resource_exhausted"};case 499:return{code:Ye,message:"cancelled"};default:return{code:Ye,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Ye,message:"unimplemented"};case 503:return{code:Ye,message:"unavailable"};case 504:return{code:Ye,message:"deadline_exceeded"};default:return{code:Ye,message:"internal_error"}}return{code:Ye,message:"internal_error"}}function Ua(e,t){e.setAttribute("http.response.status_code",t);const n=Av(t);n.message!=="unknown_error"&&e.setStatus(n)}function rB(e){try{const t=Se.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function oB(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}const kv="_sentryScope",Cv="_sentryIsolationScope";function iB(e,t,n){e&&(Gt(e,Cv,rB(n)),Gt(e,kv,t))}function ja(e){const t=e;return{scope:t[kv],isolationScope:oB(t[Cv])}}const Mc="sentry-",sB=8192;function sm(e){const t=aB(e);if(!t)return;const n=Object.entries(t).reduce((r,[o,i])=>{if(o.startsWith(Mc)){const s=o.slice(Mc.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function Nv(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${Mc}${r}`]=o),n),{});return lB(t)}function aB(e){if(!(!e||!tr(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Iv(n);return Object.entries(r).forEach(([o,i])=>{t[o]=i}),t},{}):Iv(e)}function Iv(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),o=t.slice(n+1);return[r,o].map(i=>{try{return decodeURIComponent(i.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function lB(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=o===0?i:`${t},${i}`;return s.length>sB?(ue&&R.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const cB=/^o(\d+)\./,dB=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function uB(e){return e==="http"||e==="https"}function vr(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function Ov(e){const t=dB.exec(e);if(!t){er(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",i="",s="",a=""]=t.slice(1);let c="",d=a;const f=d.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),d=f.pop()),d){const u=d.match(/^\d+/);u&&(d=u[0])}return Rv({host:i,pass:o,path:c,projectId:d,port:s,protocol:n,publicKey:r})}function Rv(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function fB(e){if(!ue)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(R.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?uB(r)?t&&isNaN(parseInt(t,10))?(R.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(R.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(R.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function pB(e){return e.match(cB)?.[1]}function xv(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=pB(n)),r}function Pv(e){const t=typeof e=="string"?Ov(e):Rv(e);if(!(!t||!fB(t)))return t}function Jo(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const Mv=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function mB(e){if(!e)return;const t=e.match(Mv);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Lv(e,t){const n=mB(e),r=sm(t);if(!n?.traceId)return{traceId:yr(),sampleRand:Hr()};const o=_B(n,r);r&&(r.sample_rand=o.toString());const{traceId:i,parentSpanId:s,parentSampled:a}=n;return{traceId:i,parentSpanId:s,sampled:a,dsc:r||{},sampleRand:o}}function Dv(e=yr(),t=qr(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Fv(e=yr(),t=qr(),n){return`00-${e}-${t}-${n?"01":"00"}`}function _B(e,t){const n=Jo(t?.sample_rand);if(n!==void 0)return n;const r=Jo(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Hr()*r:r+Hr()*(1-r):Hr()}function hB(e,t){const n=xv(e);return t&&n&&t!==n?(R.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):(e.getOptions().strictTraceContinuation||!1)&&(t&&!n||!t&&n)?(R.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1):!0}const Bv=0,Lc=1;let Uv=!1;function gB(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:a,links:c}=Le(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:s,origin:a,links:c}}function jv(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:Le(e).parent_span_id,i=ja(e).scope,s=r?i?.getPropagationContext().propagationSpanId||qr():t;return{parent_span_id:o,span_id:s,trace_id:n}}function Hv(e){const{traceId:t,spanId:n}=e.spanContext(),r=Gr(e);return Dv(t,n,r)}function yB(e){const{traceId:t,spanId:n}=e.spanContext(),r=Gr(e);return Fv(t,n,r)}function zv(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...o},attributes:i})=>({span_id:t,trace_id:n,sampled:r===Lc,attributes:i,...o}))}function qv(e){if(e?.length)return e.map(({context:{spanId:t,traceId:n,traceFlags:r},attributes:o})=>({span_id:t,trace_id:n,sampled:r===Lc,attributes:o}))}function Wr(e){return typeof e=="number"?Wv(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Wv(e.getTime()):at()}function Wv(e){return e>9999999999?e/1e3:e}function Le(e){if(Kv(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(Yv(e)){const{attributes:r,startTime:o,name:i,endTime:s,status:a,links:c}=e;return{span_id:t,trace_id:n,data:r,description:i,parent_span_id:Gv(e),start_timestamp:Wr(o),timestamp:Wr(s)||void 0,status:Xv(a),op:r[tt],origin:r[qe],links:zv(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Dc(e){if(Kv(e))return e.getStreamedSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(Yv(e)){const{attributes:r,startTime:o,name:i,endTime:s,status:a,links:c}=e;return{name:i,span_id:t,trace_id:n,parent_span_id:Gv(e),start_timestamp:Wr(o),end_timestamp:Wr(s),is_segment:e===Fc(e),status:Jv(a),attributes:r,links:qv(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===Fc(e)}}function Gv(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function bB(e){return{...e,attributes:Xi(e.attributes),links:e.links?.map(t=>({...t,attributes:Xi(t.attributes)}))}}function Yv(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Kv(e){return typeof e.getSpanJSON=="function"}function Gr(e){const{traceFlags:t}=e.spanContext();return t===Lc}function Xv(e){if(!(!e||e.code===wv))return e.code===Ba?"ok":e.message||"internal_error"}function Jv(e){return!e||e.code===Ba||e.code===wv||e.message==="cancelled"?"ok":"error"}const Zo="_sentryChildSpans",am="_sentryRootSpan";function Zv(e,t){const n=e[am]||e;Gt(t,am,n),e[Zo]?e[Zo].add(t):Gt(e,Zo,new Set([t]))}function vB(e,t){e[Zo]&&e[Zo].delete(t)}function Ha(e){const t=new Set;function n(r){if(!t.has(r)&&Gr(r)){t.add(r);const o=r[Zo]?Array.from(r[Zo]):[];for(const i of o)n(i)}}return n(e),Array.from(t)}const Et=Fc;function Fc(e){return e[am]||e}function $t(){const e=Dr(),t=po(e);return t.getActiveSpan?t.getActiveSpan():Yi(Pe())}function Bc(){Uv||(er(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Uv=!0)}function EB(e,t){e.updateName(t),e.setAttributes({[Nt]:"custom",[Fa]:t})}let Qv=!1;function Vv(){if(Qv)return;function e(){const t=$t(),n=t&&Et(t);if(n){const r="internal_error";ue&&R.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:Ye,message:r})}}e.tag="sentry_tracingErrorCallback",Qv=!0,rv(e),ov(e)}function Nn(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||fe()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function e3(e){R.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function za(e,t){if(!t?.length)return!1;for(const n of t){if(TB(n)){if(e.description&&xa(e.description,n))return ue&&e3(e),!0;continue}const r=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!r)continue;const o=n.name?e.description&&xa(e.description,n.name):!0,i=n.op?e.op&&xa(e.op,n.op):!0,s=n.attributes?Object.entries(n.attributes).every(([a,c])=>$B(e.attributes?.[a],c)):!0;if(o&&i&&s)return ue&&e3(e),!0}return!1}function $B(e,t){return typeof e=="string"&&(typeof t=="string"||t instanceof RegExp)?xa(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e===t}function SB(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const o of e)o.parent_span_id===r&&(o.parent_span_id=n)}function TB(e){return typeof e=="string"||e instanceof RegExp}const Uc="production",t3="_frozenDsc";function jc(e,t){Gt(e,t3,t)}function n3(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o={environment:n.environment||Uc,release:n.release,public_key:r,trace_id:e,org_id:xv(t)};return t.emit("createDsc",o),o}function lm(e,t){const n=t.getPropagationContext();return n.dsc||n3(n.traceId,e)}function Hn(e){const t=fe();if(!t)return{};const n=Et(e),r=Le(n),o=r.data,i=n.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[Pc]??o[Tv];function a(_){return(typeof s=="number"||typeof s=="string")&&(_.sample_rate=`${s}`),_}const c=n[t3];if(c)return a(c);const d=i?.get("sentry.dsc"),f=d&&sm(d);if(f)return a(f);const u=n3(e.spanContext().traceId,t),p=o[Nt]??o["sentry.span.source"],m=r.description;return p!=="url"&&m&&(u.transaction=m),Nn()&&(u.sampled=String(Gr(n)),u.sample_rand=i?.get("sentry.sample_rand")??ja(n).scope?.getPropagationContext().sampleRand.toString()),a(u),t.emit("createDsc",u,n),u}function wB(e){const t=Hn(e);return Nv(t)}class In{constructor(t={}){this._traceId=t.traceId||yr(),this._spanId=t.spanId||qr(),this.dropReason=t.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Bv}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function AB(e){return Gt(e,"_streamed",!0),e}function Hc(e){return!!e&&typeof e=="function"&&"_streamed"in e&&!!e._streamed}const r3=Symbol.for("sentry.skipNormalization"),o3=Symbol.for("sentry.overrideNormalizationDepth");function kB(e){Gt(e,r3,!0)}function CB(e,t){Gt(e,o3,t)}function NB(e){return!!e[r3]}function IB(e){const t=e[o3];return typeof t=="number"?t:void 0}function Yt(e,t=100,n=1/0){try{return cm("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function i3(e,t=3,n=100*1024){const r=Yt(e,t);return PB(r)>n?i3(e,t-1,n):r}function cm(e,t,n=1/0,r=1/0,o=MB()){const[i,s]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=OB(e,t);if(!a.startsWith("[object "))return a;if(NB(t))return t;const c=IB(t),d=c!==void 0?c:n;if(d===0)return a.replace("object ","");if(i(t))return"[Circular ~]";const f=t;if(f&&typeof f.toJSON=="function")try{const _=f.toJSON();return cm("",_,d-1,r,o)}catch{}const u=Array.isArray(t)?[]:{};let p=0;const m=dv(t);for(const _ in m){if(!Object.prototype.hasOwnProperty.call(m,_))continue;if(p>=r){u[_]="[MaxProperties ~]";break}const y=m[_];u[_]=cm(_,y,d-1,r,o),p++}return s(t),u}function OB(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(lv(t))return tv(t);if(yF(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Fr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=RB(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function RB(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function xB(e){return~-encodeURI(e).split(/%..|./).length}function PB(e){return xB(JSON.stringify(e))}function MB(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function zn(e,t=[]){return[e,t]}function LB(e,t){const[n,r]=e;return[n,[...r,t]]}function Qo(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function dm(e,t){return Qo(e,(n,r)=>t.includes(r))}function zc(e){const t=Ca(Se);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function DB(e){const t=Ca(Se);return t.decodePolyfill?t.decodePolyfill(e):new TextDecoder().decode(e)}function qc(e){const[t,n]=e;let r=JSON.stringify(t);function o(i){typeof r=="string"?r=typeof i=="string"?r+i:[zc(r),i]:r.push(typeof i=="string"?zc(i):i)}for(const i of n){const[s,a]=i;if(o(`
34
+ ${JSON.stringify(s)}
35
+ `),typeof a=="string"||a instanceof Uint8Array)o(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Yt(a))}o(c)}}return typeof r=="string"?r:FB(r)}function FB(e){const t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function BB(e){let t=typeof e=="string"?zc(e):e;function n(s){const a=t.subarray(0,s);return t=t.subarray(s+1),a}function r(){let s=t.indexOf(10);return s<0&&(s=t.length),JSON.parse(DB(n(s)))}const o=r(),i=[];for(;t.length;){const s=r(),a=typeof s.length=="number"?s.length:void 0;i.push([s,a?n(a):r()])}return[o,i]}function UB(e){return[{type:"span"},e]}function jB(e){const t=typeof e.data=="string"?zc(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const s3={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function HB(e){return e in s3}function a3(e){return HB(e)?s3[e]:e}function qa(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function l3(e,t,n,r){const o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:vr(r)},...o&&{trace:o}}}function zB(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function qB(e,t,n,r){const o=qa(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:vr(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return zn(i,[s])}function WB(e,t,n,r){const o=qa(n),i=e.type&&e.type!=="replay_event"?e.type:"event";zB(e,n?.sdk);const s=l3(e,o,r,t);return delete e.sdkProcessingMetadata,zn(s,[[{type:i},e]])}function GB(e,t){function n(m){return!!m.trace_id&&!!m.public_key}const r=Hn(e[0]),o=t?.getDsn(),i=t?.getOptions().tunnel,s={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!i&&o&&{dsn:vr(o)}},{beforeSendSpan:a,ignoreSpans:c}=t?.getOptions()||{},d=c?.length?e.filter(m=>{const _=Le(m);return!za({description:_.description,op:_.op,attributes:_.data},c)}):e,f=e.length-d.length;f&&t?.recordDroppedEvent("before_send","span",f);const u=a?m=>{const _=Le(m),y=Hc(a)?_:a(_);return y||(Bc(),_)}:Le,p=[];for(const m of d){const _=u(m);_&&p.push(UB(_))}return zn(s,p)}function YB(e){if(!ue)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Le(e),{spanId:o}=e.spanContext(),i=Gr(e),s=Et(e),a=s===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,d=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&d.push(`parent ID: ${r}`),!a){const{op:f,description:u}=Le(s);d.push(`root ID: ${s.spanContext().spanId}`),f&&d.push(`root op: ${f}`),u&&d.push(`root description: ${u}`)}R.log(`${c}
36
+ ${d.join(`
37
+ `)}`)}function KB(e){if(!ue)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Le(e),{spanId:r}=e.spanContext(),i=Et(e)===e,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;R.log(s)}function c3(e,t,n,r=$t()){const o=r&&Et(r);o&&(ue&&R.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[Da]:t,[La]:n}))}function d3(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},o=r[La],i=r[Da];typeof o=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:o})}),t}function Yr(e){return e.getOptions().traceLifecycle==="stream"}const u3=1e3;class Wc{constructor(t={}){this._traceId=t.traceId||yr(),this._spanId=t.spanId||qr(),this._startTime=t.startTimestamp||at(),this._links=t.links,this._attributes={},this.setAttributes({[qe]:"manual",[tt]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Lc:Bv}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Wr(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Nt,"custom"),this}end(t){this._endTime||(this._endTime=Wr(t),KB(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[tt],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Xv(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[qe],profile_id:this._attributes[im],exclusive_time:this._attributes[mo],measurements:d3(this._events),is_segment:this._isStandaloneSpan&&Et(this)===this||void 0,segment_id:this._isStandaloneSpan?Et(this).spanContext().spanId:void 0,links:zv(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===Et(this),status:Jv(this._status),attributes:this._attributes,links:qv(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){ue&&R.log("[Tracing] Adding an event to span:",t);const o=f3(n)?n:r||at(),i=f3(n)?{}:n||{},s={name:t,time:Wr(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=fe();if(t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this)),!(this._isStandaloneSpan||this===Et(this)))return;if(this._isStandaloneSpan){this._sampled?JB(GB([this],t)):(ue&&R.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}else if(t&&Yr(t)){t.emit("afterSegmentSpanEnd",this);return}const r=this._convertSpanToTransaction();r&&(ja(this).scope||Pe()).captureEvent(r)}_convertSpanToTransaction(){if(!p3(Le(this)))return;this._name||(ue&&R.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=ja(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const i=Ha(this).filter(f=>f!==this&&!XB(f)).map(f=>Le(f)).filter(p3),s=this._attributes[Nt];delete this._attributes[Fa],i.forEach(f=>{delete f.data[Fa]});const a={contexts:{trace:gB(this)},spans:i.length>u3?i.sort((f,u)=>f.start_timestamp-u.start_timestamp).slice(0,u3):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Hn(this)},request:r,...s&&{transaction_info:{source:s}}},c=d3(this._events);return c&&Object.keys(c).length&&(ue&&R.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),a.measurements=c),a}}function f3(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function p3(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function XB(e){return e instanceof Wc&&e.isStandaloneSpan()}function JB(e){const t=fe();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function um(e,t,n=()=>{},r=()=>{}){let o;try{o=e()}catch(i){throw t(i),n(),i}return ZB(o,t,n,r)}function ZB(e,t,n,r){return Wo(e)?bv(e,o=>{n(),r(o)},o=>{t(o),n()}):(n(),r(e),e)}function QB(e,t,n){if(!Nn(e))return[!1];let r,o;typeof e.tracesSampler=="function"?(o=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),r=!0):t.parentSampled!==void 0?o=t.parentSampled:typeof e.tracesSampleRate<"u"&&(o=e.tracesSampleRate,r=!0);const i=Jo(o);if(i===void 0)return ue&&R.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!i)return ue&&R.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i,r];const s=n<i;return s||ue&&R.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[s,i,r]}const fm="__SENTRY_SUPPRESS_TRACING__";function Er(e,t){const n=Ji();if(n.startSpan)return n.startSpan(e,t);const r=mm(e),{forceTransaction:o,parentSpan:i,scope:s}=e,a=s?.clone();return jn(a,()=>g3(i)(()=>{const d=Pe(),f=_m(d,i),u=fe(),p=e.onlyIfParent&&!f,m=p?new In:pm({parentSpan:f,spanArguments:r,forceTransaction:o,scope:d});return p&&u?.recordDroppedEvent("no_parent_span","span"),(!y3(m)||!f)&&br(d,m),um(()=>t(m),()=>{const{status:_}=Le(m);m.isRecording()&&(!_||_==="ok")&&m.setStatus({code:Ye,message:"internal_error"})},()=>{m.end()})}))}function Kr(e,t){const n=Ji();if(n.startSpanManual)return n.startSpanManual(e,t);const r=mm(e),{forceTransaction:o,parentSpan:i,scope:s}=e,a=s?.clone();return jn(a,()=>g3(i)(()=>{const d=Pe(),f=_m(d,i),u=e.onlyIfParent&&!f,p=u?new In:pm({parentSpan:f,spanArguments:r,forceTransaction:o,scope:d});return u&&fe()?.recordDroppedEvent("no_parent_span","span"),(!y3(p)||!f)&&br(d,p),um(()=>t(p,()=>p.end()),()=>{const{status:m}=Le(p);p.isRecording()&&(!m||m==="ok")&&p.setStatus({code:Ye,message:"internal_error"})})}))}function $r(e){const t=Ji();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=mm(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?s=>jn(e.scope,s):o!==void 0?s=>Wa(o,s):s=>s())(()=>{const s=Pe(),a=_m(s,o),c=fe();return e.onlyIfParent&&!a?(c?.recordDroppedEvent("no_parent_span","span"),new In):pm({parentSpan:a,spanArguments:n,forceTransaction:r,scope:s})})}const VB=(e,t)=>{const n=Dr(),r=po(n);if(r.continueTrace)return r.continueTrace(e,t);const{sentryTrace:o,baggage:i}=e,s=fe(),a=sm(i);return s&&!hB(s,a?.org_id)?_3(t):jn(c=>{const d=Lv(o,i);return c.setPropagationContext(d),br(c,void 0),t()})};function Wa(e,t){const n=Ji();return n.withActiveSpan?n.withActiveSpan(e,t):jn(r=>(br(r,e||void 0),t(r)))}function m3(e){const t=Ji();return t.suppressTracing?t.suppressTracing(e):jn(n=>{n.setSDKProcessingMetadata({[fm]:!0});const r=e();return n.setSDKProcessingMetadata({[fm]:void 0}),r})}function _3(e){const t=Ji();return t.startNewTrace?t.startNewTrace(e):jn(n=>(n.setPropagationContext({traceId:yr(),sampleRand:Hr()}),ue&&R.log(`Starting a new trace with id ${n.getPropagationContext().traceId}`),Wa(null,e)))}function pm({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Nn()){const a=new In;if(n||!e){const c={sampled:"false",sample_rate:"0",transaction:t.name,...Hn(a)};jc(a,c)}return a}const o=fe();if(tU(o,t))return hm(r)||o?.recordDroppedEvent("ignored","span"),new In({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});const i=vt();let s;if(e&&!n)s=eU(e,r,t),Zv(e,s);else if(e){const a=Hn(e),{traceId:c,spanId:d}=e.spanContext(),f=Gr(e);s=h3({traceId:c,parentSpanId:d,...t},r,f),jc(s,a)}else{const{traceId:a,dsc:c,parentSpanId:d,sampled:f}={...i.getPropagationContext(),...r.getPropagationContext()};s=h3({traceId:a,parentSpanId:d,...t},r,f),c&&jc(s,c)}return YB(s),iB(s,r,i),s}function mm(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=Wr(e.startTime),delete r.startTime,r}return n}function Ji(){const e=Dr();return po(e)}function h3(e,t,n){const r=fe(),o=r?.getOptions()||{},{name:i=""}=e,s={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};r?.emit("beforeSampling",s,{decision:!1});const a=s.parentSampled??n,c=s.spanAttributes,d=t.getPropagationContext(),f=hm(t),[u,p,m]=f?[!1]:QB(o,{name:i,parentSampled:a,attributes:c,parentSampleRate:Jo(d.dsc?.sample_rate)},d.sampleRand),_=new Wc({...e,attributes:{[Nt]:"custom",[Pc]:p!==void 0&&m?p:void 0,...c},sampled:u});return!u&&r&&!f&&(ue&&R.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate",Yr(r)?"span":"transaction")),r&&r.emit("spanStart",_),_}function eU(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),i=hm(t),s=i?!1:Gr(e),a=s?new Wc({...n,parentSpanId:r,traceId:o,sampled:s}):new In({traceId:o});Zv(e,a);const c=fe();return c&&(Yr(c)&&a instanceof In&&(e instanceof In&&e.dropReason?(a.dropReason=e.dropReason,c.recordDroppedEvent(e.dropReason,"span")):i||(a.dropReason="sample_rate",c.recordDroppedEvent("sample_rate","span"))),c.emit("spanStart",a),n.endTimestamp&&(c.emit("spanEnd",a),c.emit("afterSpanEnd",a))),a}function _m(e,t){if(t)return t;if(t===null)return;const n=Yi(e);if(!n)return;const r=fe();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Et(n):n}function g3(e){return e!==void 0?t=>Wa(e,t):t=>t()}function tU(e,t){const n=e?.getOptions().ignoreSpans;return!e||!Yr(e)||!n?.length?!1:za({description:t.name||"",op:t.attributes?.[tt]||t.op,attributes:t.attributes},n)}function y3(e){return e instanceof In&&e.dropReason==="ignored"}function hm(e){return e.getScopeData().sdkProcessingMetadata[fm]===!0}const Gc={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},nU="heartbeatFailed",rU="idleTimeout",oU="finalTimeout",iU="externalFinish";function b3(e,t={}){const n=new Map;let r=!1,o,i=iU,s=!t.disableAutoFinish;const a=[],{idleTimeout:c=Gc.idleTimeout,finalTimeout:d=Gc.finalTimeout,childSpanTimeout:f=Gc.childSpanTimeout,beforeSpanEnd:u,trimIdleSpanEndTimestamp:p=!0}=t,m=fe();if(!m||!Nn()){const $=new In,H={sample_rate:"0",sampled:"false",...Hn($)};return jc($,H),$}const _=Pe(),y=$t(),g=sU(e);g.end=new Proxy(g.end,{apply($,H,q){if(u&&u(g),H instanceof In)return;const[k,...O]=q,I=k||at(),D=Wr(I),x=Ha(g).filter(W=>W!==g),z=Le(g);if(!x.length||!p)return A(D),Reflect.apply($,H,[D,...O]);const B=m.getOptions().ignoreSpans,F=x?.reduce((W,X)=>{const oe=Le(X);return!oe.timestamp||B&&za({description:oe.description,op:oe.op,attributes:oe.data},B)?W:W?Math.max(W,oe.timestamp):oe.timestamp},void 0),M=z.start_timestamp,K=Math.min(M?M+d/1e3:1/0,Math.max(M||-1/0,Math.min(D,F||1/0)));return A(K),Reflect.apply($,H,[K,...O])}});function h(){o&&(clearTimeout(o),o=void 0)}function b($){h(),o=setTimeout(()=>{!r&&n.size===0&&s&&(i=rU,g.end($))},c)}function v($){o=setTimeout(()=>{!r&&s&&(i=nU,g.end($))},f)}function S($){h(),n.set($,!0);const H=at();v(H+f/1e3)}function N($){if(n.has($)&&n.delete($),n.size===0){const H=at();b(H+c/1e3)}}function A($){r=!0,n.clear(),a.forEach(x=>x()),br(_,y);const H=Le(g),{start_timestamp:q}=H;if(!q)return;H.data[Ma]||g.setAttribute(Ma,i);const O=H.status;(!O||O==="unknown")&&g.setStatus({code:Ba}),R.log(`[Tracing] Idle span "${H.op}" finished`);const I=Ha(g).filter(x=>x!==g);let D=0;I.forEach(x=>{x.isRecording()&&(x.setStatus({code:Ye,message:"cancelled"}),x.end($),ue&&R.log("[Tracing] Cancelling span since span ended early",JSON.stringify(x,void 0,2)));const z=Le(x),{timestamp:B=0,start_timestamp:F=0}=z,M=F<=$,K=(d+c)/1e3,W=B-F<=K;if(ue){const X=JSON.stringify(x,void 0,2);M?W||R.log("[Tracing] Discarding span since it finished after idle span final timeout",X):R.log("[Tracing] Discarding span since it happened after idle span was finished",X)}(!W||!M)&&(vB(g,x),D++)}),D>0&&g.setAttribute("sentry.idle_span_discarded_spans",D)}return a.push(m.on("spanStart",$=>{if(r||$===g||Le($).timestamp||$ instanceof Wc&&$.isStandaloneSpan())return;Ha(g).includes($)&&S($.spanContext().spanId)})),a.push(m.on("spanEnd",$=>{r||N($.spanContext().spanId)})),a.push(m.on("idleSpanEnableAutoFinish",$=>{$===g&&(s=!0,b(),n.size&&v())})),t.disableAutoFinish||b(),setTimeout(()=>{r||(g.setStatus({code:Ye,message:"deadline_exceeded"}),i=oU,g.end())},d),g}function sU(e){const t=$r(e);return br(Pe(),t),ue&&R.log("[Tracing] Started span is an idle span"),t}function aU(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;lU(e,t),r&&uU(e,r),fU(e,n),cU(e,o),dU(e,i)}function v3(e,t){const{extra:n,tags:r,attributes:o,user:i,contexts:s,level:a,sdkProcessingMetadata:c,breadcrumbs:d,fingerprint:f,eventProcessors:u,attachments:p,propagationContext:m,transactionName:_,span:y}=t;Ga(e,"extra",n),Ga(e,"tags",r),Ga(e,"attributes",o),Ga(e,"user",i),Ga(e,"contexts",s),e.sdkProcessingMetadata=Pa(e.sdkProcessingMetadata,c,2),a&&(e.level=a),_&&(e.transactionName=_),y&&(e.span=y),d.length&&(e.breadcrumbs=[...e.breadcrumbs,...d]),f.length&&(e.fingerprint=[...e.fingerprint,...f]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...m}}function Ga(e,t,n){e[t]=Pa(e[t],n,1)}function Ya(e,t){const n=Xo().getScopeData();return e&&v3(n,e.getScopeData()),t&&v3(n,t.getScopeData()),n}function lU(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),s&&(e.level=s),a&&e.type!=="transaction"&&(e.transaction=a)}function cU(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function dU(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function uU(e,t){e.contexts={trace:jv(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Hn(t),...e.sdkProcessingMetadata};const n=Et(t),r=Le(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function fU(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function pU(e,t){const n=Dc(e),r=Fc(e),o=Dc(r),{isolationScope:i,scope:s}=ja(e),a=Ya(i,s);mU(n,o,t,a);const c=e.kind;yU(n,c),n.is_segment&&t.emit("processSegmentSpan",n),t.emit("processSpan",n);const{beforeSendSpan:d}=t.getOptions(),f=d&&Hc(d)?_U(n,d):n,u=f.attributes?.[Nt];return u&&qn(f,{"sentry.span.source":u}),{...bB(f),_segmentSpan:r}}function mU(e,t,n,r){const o=n.getSdkMetadata(),{release:i,environment:s,sendDefaultPii:a}=n.getOptions();qn(e,{[zF]:i,[qF]:s,[WF]:t.name,[GF]:t.span_id,[YF]:o?.sdk?.name,[KF]:o?.sdk?.version,...a?{[XF]:r.user?.id,[JF]:r.user?.email,[ZF]:r.user?.ip_address,[QF]:r.user?.username}:{},...r.attributes})}function _U(e,t){const n=t(e);return n||(Bc(),e)}function qn(e,t){const n=e.attributes??(e.attributes={});Object.entries(t).forEach(([r,o])=>{o!=null&&!(r in n)&&(n[r]=o)})}const hU=1,gU=2;function yU(e,t){const n=e.attributes;if(!n)return;const r=n["http.request.method"]||n["http.method"];if(r){bU(e,n,t,r);return}const o=n["db.system.name"]||n["db.system"],i=typeof n[tt]=="string"&&`${n[tt]}`.startsWith("cache.");if(o&&!i){vU(e,n);return}if(n["rpc.service"]){qn(e,{[tt]:"rpc"});return}if(n["messaging.system"]){qn(e,{[tt]:"message"});return}const s=n["faas.trigger"];s&&qn(e,{[tt]:`${s}`})}function bU(e,t,n,r){const o=["http"];n===gU?o.push("client"):n===hU&&o.push("server"),t["sentry.http.prefetch"]&&o.push("prefetch"),qn(e,{[tt]:o.join(".")});const i=t[Fa];if(typeof i=="string"){e.name=i;return}if(t[Nt]==="custom")return;const s=t["http.route"];typeof s=="string"?(e.name=`${r} ${s}`,qn(e,{[Nt]:"route"})):qn(e,{[Nt]:"url"})}function vU(e,t){qn(e,{[tt]:"db"});const n=t[Fa];if(typeof n=="string"){e.name=n;return}if(t[Nt]==="custom")return;const r=t["db.statement"];r&&(e.name=`${r}`,qn(e,{[Nt]:"task"}))}const gm=0,E3=1,$3=2;function Ka(e){return new Xa(t=>{t(e)})}function ym(e){return new Xa((t,n)=>{n(e)})}class Xa{constructor(t){this._state=gm,this._handlers=[],this._runExecutor(t)}then(t,n){return new Xa((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Xa((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}_executeHandlers(){if(this._state===gm)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===E3&&n[1](this._value),this._state===$3&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(i,s)=>{if(this._state===gm){if(Wo(s)){s.then(r,o);return}this._state=i,this._value=s,this._executeHandlers()}},r=i=>{n(E3,i)},o=i=>{n($3,i)};try{t(r,o)}catch(i){o(i)}}}function EU(e,t,n,r=0){try{const o=bm(t,n,e,r);return Wo(o)?o:Ka(o)}catch(o){return ym(o)}}function bm(e,t,n,r){const o=n[r];if(!e||!o)return e;const i=o({...e},t);return ue&&i===null&&R.log(`Event processor "${o.id||"?"}" dropped event`),Wo(i)?i.then(s=>bm(s,t,n,r+1)):bm(i,t,n,r+1)}let Vo,S3,T3,_o;function w3(e){const t=Se._sentryDebugIds,n=Se._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],o=n?Object.keys(n):[];if(_o&&r.length===S3&&o.length===T3)return _o;S3=r.length,T3=o.length,_o={},Vo||(Vo={});const i=(s,a)=>{for(const c of s){const d=a[c],f=Vo?.[c];if(f&&_o&&d)_o[f[0]]=d,Vo&&(Vo[c]=[f[0],d]);else if(d){const u=e(c);for(let p=u.length-1;p>=0;p--){const _=u[p]?.filename;if(_&&_o&&Vo){_o[_]=d,Vo[c]=[_,d];break}}}}};return t&&i(r,t),n&&i(o,n),_o}function $U(e,t){const n=w3(e);if(!n)return[];const r=[];for(const o of t){const i=fF(o);i&&n[i]&&r.push({type:"sourcemap",code_file:o,debug_id:n[i]})}return r}function A3(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Ut(),timestamp:t.timestamp||Ko()},d=n.integrations||e.integrations.map(h=>h.name);SU(c,e),AU(c,d),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&TU(c,e.stackParser);const f=CU(r,n.captureContext);n.mechanism&&zr(c,n.mechanism);const u=o?o.getEventProcessors():[],p=Ya(i,f),m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),aU(c,p);const _=[...u,...p.eventProcessors];return(n.data&&n.data.__sentry__===!0?Ka(c):EU(_,c,n)).then(h=>(h&&wU(h),typeof s=="number"&&s>0?kU(h,s,a):h))}function SU(e,t){const{environment:n,release:r,dist:o,maxValueLength:i}=t;e.environment=e.environment||n||Uc,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o);const s=e.request;s?.url&&i&&(s.url=Ra(s.url,i)),i&&e.exception?.values?.forEach(a=>{a.value&&(a.value=Ra(a.value,i))})}function TU(e,t){const n=w3(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=n[o.filename])})})}function wU(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function AU(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function kU(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:Yt(o.data,t,n)}}))},...e.user&&{user:Yt(e.user,t,n)},...e.contexts&&{contexts:Yt(e.contexts,t,n)},...e.extra&&{extra:Yt(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Yt(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:Yt(o.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Yt(e.contexts.flags,3,n)),r}function CU(e,t){if(!t)return e;const n=e?e.clone():new rr;return n.update(t),n}function NU(e){if(e)return IU(e)?{captureContext:e}:RU(e)?{captureContext:e}:e}function IU(e){return e instanceof rr||typeof e=="function"}const OU=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function RU(e){return Object.keys(e).some(t=>OU.includes(t))}function it(e,t){return Pe().captureException(e,NU(t))}function k3(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return Pe().captureMessage(e,n,r)}function Zi(e,t){return Pe().captureEvent(e,t)}function C3(e,t){vt().setContext(e,t)}function xU(e){vt().setExtras(e)}function PU(e,t){vt().setExtra(e,t)}function MU(e){vt().setTags(e)}function LU(e,t){vt().setTag(e,t)}function DU(e){vt().setUser(e)}function FU(e){vt().setConversationId(e)}function N3(){return vt().lastEventId()}async function BU(e){const t=fe();return t?t.flush(e):(ue&&R.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function UU(e){const t=fe();return t?t.close(e):(ue&&R.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function jU(){return!!fe()}function I3(){const e=fe();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function O3(e){vt().addEventProcessor(e)}function vm(e){const t=vt(),{user:n}=Ya(t,Pe()),{userAgent:r}=Se.navigator||{},o=CF({user:n,...r&&{userAgent:r},...e}),i=t.getSession();return i?.status==="ok"&&Gi(i,{status:"exited"}),Em(),t.setSession(o),o}function Em(){const e=vt(),n=Pe().getSession()||e.getSession();n&&NF(n),R3(),e.setSession()}function R3(){const e=vt(),t=fe(),n=e.getSession();n&&t&&t.captureSession(n)}function Yc(e=!1){if(e){Em();return}R3()}const HU="7";function x3(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function zU(e){return`${x3(e)}${e.projectId}/envelope/`}function qU(e,t){const n={sentry_version:HU};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function P3(e,t,n){return t||`${zU(e)}?${qU(e,n)}`}function WU(e,t){const n=Pv(e);if(!n)return"";const r=`${x3(n)}embed/error-page/`;let o=`dsn=${vr(n)}`;for(const i in t)if(i!=="dsn"&&i!=="onClose")if(i==="user"){const s=t.user;if(!s)continue;s.name&&(o+=`&name=${encodeURIComponent(s.name)}`),s.email&&(o+=`&email=${encodeURIComponent(s.email)}`)}else o+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${r}?${o}`}const M3=[];function GU(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function YU(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const o=n(t);r=Array.isArray(o)?o:[o]}else r=t;return GU(r)}function KU(e,t){const n={};return t.forEach(r=>{r?.beforeSetup&&r.beforeSetup(e)}),t.forEach(r=>{r&&D3(e,r,n)}),n}function L3(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function D3(e,t,n){if(n[t.name]){ue&&R.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!M3.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),M3.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((i,s)=>r(i,s,e),{id:t.name});e.addEventProcessor(o)}["processSpan","processSegmentSpan"].forEach(r=>{const o=t[r];typeof o=="function"&&e.on(r,i=>o.call(t,i,e))}),ue&&R.log(`Integration installed: ${t.name}`)}function $m(e){const t=fe();if(!t){ue&&R.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function r0e(e){return e}const XU="sentry.timestamp.sequence";let Sm=0,Tm;function F3(e){const t=Math.floor(e*1e3);Tm!==void 0&&t!==Tm&&(Sm=0);const n=Sm;return Sm++,Tm=t,{key:XU,value:{value:n,type:"integer"}}}function B3(e,t){return t?jn(t,()=>{const n=$t(),r=n?jv(n):Sv(t);return[n?Hn(n):lm(e,t),r]}):[void 0,void 0]}const JU={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function ZU(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function QU(e,t,n,r){const o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=vr(r)),zn(o,[ZU(e)])}const VU=100;function Sr(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function ej(e,t){const n=wm(),r=U3(e);r===void 0?n.set(e,[t]):r.length>=VU?(Xc(e,r),n.set(e,[t])):n.set(e,[...r,t])}function Kc(e,t=Pe(),n=ej){const r=t?.getClient()??fe();if(!r){ue&&R.warn("No client available to capture log.");return}const{release:o,environment:i,enableLogs:s=!1,beforeSendLog:a}=r.getOptions();if(!s){ue&&R.warn("logging option not enabled, log will not be captured.");return}const[,c]=B3(r,t),d={...e.attributes},{user:{id:f,email:u,username:p},attributes:m={}}=Ya(vt(),t);Sr(d,"user.id",f,!1),Sr(d,"user.email",u,!1),Sr(d,"user.name",p,!1),Sr(d,"sentry.release",o),Sr(d,"sentry.environment",i);const{name:_,version:y}=r.getSdkMetadata()?.sdk??{};Sr(d,"sentry.sdk.name",_),Sr(d,"sentry.sdk.version",y);const g=r.getIntegrationByName("Replay"),h=g?.getReplayId(!0);Sr(d,"sentry.replay_id",h),h&&g?.getRecordingMode()==="buffer"&&Sr(d,"sentry._internal.replay_is_buffering",!0);const b=e.message;if(Oc(b)){const{__sentry_template_string__:D,__sentry_template_values__:x=[]}=b;x?.length&&(d["sentry.message.template"]=D),x.forEach((z,B)=>{d[`sentry.message.parameter.${B}`]=z})}const v=Yi(t);Sr(d,"sentry.trace.parent_span_id",v?.spanContext().spanId);const S={...e,attributes:d};r.emit("beforeCaptureLog",S);const N=a?er(()=>a(S)):S;if(!N){r.recordDroppedEvent("before_send","log_item",1),ue&&R.warn("beforeSendLog returned null, log will not be captured.");return}const{level:A,message:$,attributes:H={},severityNumber:q}=N,k=at(),O=F3(k),I={timestamp:k,level:A,body:$,trace_id:c?.trace_id,severity_number:q??JU[A],attributes:{...Xi(m),...Xi(H,!0),[O.key]:O.value}};n(r,I),r.emit("afterCaptureLog",N)}function Xc(e,t){const n=t??U3(e)??[];if(n.length===0)return;const r=e.getOptions(),o=QU(n,r._metadata,r.tunnel,e.getDsn());wm().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function U3(e){return wm().get(e)}function wm(){return zi("clientToLogBufferMap",()=>new WeakMap)}function tj(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function nj(e,t,n,r){const o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=vr(r)),zn(o,[tj(e)])}const rj=1e3;function Xr(e,t,n,r=!0){n&&(r||!(t in e))&&(e[t]=n)}function oj(e,t){const n=km(),r=j3(e);r===void 0?n.set(e,[t]):r.length>=rj?(Am(e,r),n.set(e,[t])):n.set(e,[...r,t])}function ij(e,t,n){const{release:r,environment:o}=t.getOptions(),i={...e.attributes};Xr(i,"user.id",n.id,!1),Xr(i,"user.email",n.email,!1),Xr(i,"user.name",n.username,!1),Xr(i,"sentry.release",r),Xr(i,"sentry.environment",o);const{name:s,version:a}=t.getSdkMetadata()?.sdk??{};Xr(i,"sentry.sdk.name",s),Xr(i,"sentry.sdk.version",a);const c=t.getIntegrationByName("Replay"),d=c?.getReplayId(!0);return Xr(i,"sentry.replay_id",d),d&&c?.getRecordingMode()==="buffer"&&Xr(i,"sentry._internal.replay_is_buffering",!0),{...e,attributes:i}}function sj(e,t,n,r){const[,o]=B3(t,n),i=Yi(n),s=i?i.spanContext().traceId:o?.trace_id,a=i?i.spanContext().spanId:void 0,c=at(),d=F3(c);return{timestamp:c,trace_id:s??"",span_id:a,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...Xi(r),...Xi(e.attributes,"skip-undefined"),[d.key]:d.value}}}function aj(e,t){const n=t?.scope??Pe(),r=t?.captureSerializedMetric??oj,o=n?.getClient()??fe();if(!o){ue&&R.warn("No client available to capture metric.");return}const{_experiments:i,enableMetrics:s,beforeSendMetric:a}=o.getOptions();if(!(s??i?.enableMetrics??!0)){ue&&R.warn("metrics option not enabled, metric will not be captured.");return}const{user:d,attributes:f}=Ya(vt(),n),u=ij(e,o,d);o.emit("processMetric",u);const p=a||i?.beforeSendMetric,m=p?p(u):u;if(!m){ue&&R.log("`beforeSendMetric` returned `null`, will not send metric.");return}const _=sj(m,o,n,f);ue&&R.log("[Metric]",_),r(o,_),o.emit("afterCaptureMetric",m)}function Am(e,t){const n=t??j3(e)??[];if(n.length===0)return;const r=e.getOptions(),o=nj(n,r._metadata,r.tunnel,e.getDsn());km().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function j3(e){return km().get(e)}function km(){return zi("clientToMetricBufferMap",()=>new WeakMap)}function Jc(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}const Cm=Symbol.for("SentryBufferFullError");function Nm(e=100){const t=new Set;function n(){return t.size<e}function r(s){t.delete(s)}function o(s){if(!n())return ym(Cm);const a=s();return t.add(a),a.then(()=>r(a),()=>r(a)),a}function i(s){if(!t.size)return Ka(!0);const a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!s)return a;const c=[a,new Promise(d=>Jc(setTimeout(()=>d(!1),s)))];return Promise.race(c)}return{get $(){return Array.from(t)},add:o,drain:i}}const lj=60*1e3;function H3(e,t=Oa()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?lj:r-t}function cj(e,t){return e[t]||e.all||0}function z3(e,t,n=Oa()){return cj(e,t)>n}function q3(e,{statusCode:t,headers:n},r=Oa()){const o={...e},i=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(i)for(const a of i.trim().split(",")){const[c,d,,,f]=a.split(":",5),u=parseInt(c,10),p=(isNaN(u)?60:u)*1e3;if(!d)o.all=r+p;else for(const m of d.split(";"))m==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(o[m]=r+p):o[m]=r+p}else s?o.all=r+H3(s,r):t===429&&(o.all=r+60*1e3);return o}const W3=64;function G3(e,t,n=Nm(e.bufferSize||W3)){let r={};const o=s=>n.drain(s);function i(s){const a=[];if(Qo(s,(u,p)=>{const m=a3(p);z3(r,m)?e.recordDroppedEvent("ratelimit_backoff",m):a.push(u)}),a.length===0)return Promise.resolve({});const c=zn(s[0],a),d=u=>{if(dm(c,["client_report"])){ue&&R.warn(`Dropping client report. Will not send outcomes (reason: ${u}).`);return}Qo(c,(p,m)=>{e.recordDroppedEvent(u,a3(m))})},f=()=>t({body:qc(c)}).then(u=>u.statusCode===413?(ue&&R.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),d("send_error"),u):(ue&&u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&R.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),r=q3(r,u),u),u=>{throw d("network_error"),ue&&R.error("Encountered error running transport request:",u),u});return n.add(f).then(u=>u,u=>{if(u===Cm)return ue&&R.error("Skipped sending event because buffer is full."),d("queue_overflow"),Promise.resolve({});throw u})}return{send:i,flush:o}}function dj(e,t,n){const r=[{type:"client_report"},{timestamp:Ko(),discarded_events:e}];return zn(t?{dsn:t}:{},[r])}function Y3(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function uj(e){const{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:i,data:s,op:a}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[im],exclusive_time:s?.[mo],measurements:e.measurements,is_segment:!0}}function fj(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[im]:e.profile_id},...e.exclusive_time&&{[mo]:e.exclusive_time}}}},measurements:e.measurements}}const K3="Not capturing exception because it's already been captured.",X3="Discarded session because of missing or non-string release",J3=Symbol.for("SentryInternalError"),Z3=Symbol.for("SentryDoNotSendEventError"),pj=5e3;function Zc(e){return{message:e,[J3]:!0}}function Im(e){return{message:e,[Z3]:!0}}function Q3(e){return!!e&&typeof e=="object"&&J3 in e}function V3(e){return!!e&&typeof e=="object"&&Z3 in e}function e4(e,t,n,r,o){let i=0,s,a=!1;e.on(n,()=>{i=0,clearTimeout(s),a=!1}),e.on(t,c=>{i+=r(c),i>=8e5?o(e):a||(a=!0,s=Jc(setTimeout(()=>{o(e)},pj)))}),e.on("flush",()=>{o(e)})}class mj{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Nm(t.transportOptions?.bufferSize??W3),t.dsn?this._dsn=Pv(t.dsn):ue&&R.warn("No DSN provided, client will not send events."),this._dsn){const r=P3(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&e4(this,"afterCaptureLog","flushLogs",yj,Xc),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&e4(this,"afterCaptureMetric","flushMetrics",gj,Am)}captureException(t,n,r){const o=Ut();if(mv(t))return ue&&R.log(K3),o;const i={event_id:o,...n};return this._process(()=>this.eventFromException(t,i).then(s=>this._captureEvent(s,i,r)).then(s=>s),"error"),i.event_id}captureMessage(t,n,r,o){const i={event_id:Ut(),...r},s=Oc(t)?t:String(t),a=Ur(t),c=a?this.eventFromMessage(s,n,i):this.eventFromException(t,i);return this._process(()=>c.then(d=>this._captureEvent(d,i,o)),a?"unknown":"error"),i.event_id}captureEvent(t,n,r){const o=Ut();if(n?.originalException&&mv(n.originalException))return ue&&R.log(K3),o;const i={event_id:o,...n},s=t.sdkProcessingMetadata||{},a=s.capturedSpanScope,c=s.capturedSpanIsolationScope,d=t4(t.type);return this._process(()=>this._captureEvent(t,i,a||r,c),d),i.event_id}captureSession(t){this.sendSession(t),Gi(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(t),o=await n.flush(t);return r&&o}async close(t){Xc(this);const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];!n&&t.beforeSetup&&t.beforeSetup(this),D3(this,t,this._integrations),n||L3(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=WB(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=LB(r,jB(o));this.sendEnvelope(r).then(o=>this.emit("afterSendEvent",t,o))}sendSession(t){const{release:n,environment:r=Uc}=this._options;if("aggregates"in t){const i=t.attrs||{};if(!i.release&&!n){ue&&R.warn(X3);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){ue&&R.warn(X3);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const o=qB(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const o=`${t}:${n}`;ue&&R.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,o=(...i)=>n(...i);return r.add(o),()=>{r.delete(o)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return ue&&R.error("Error while sending envelope:",n),{}}return ue&&R.error("Transport disabled"),{}}registerCleanup(t){}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=KU(this,t),L3(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",o=!1;const i=n.exception?.values;if(i){o=!0,r=!1;for(const c of i)if(c.mechanism?.handled===!1){r=!0;break}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(Gi(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o){const i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s?.length&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),A3(i,t,n,r,this,o).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:{...a.contexts?.trace,...Sv(r)},...a.contexts};const c=lm(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=Pe(),o=vt()){return ue&&Om(t)&&R.log(`Captured error event \`${Y3(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,o).then(i=>i.event_id,i=>{ue&&(V3(i)?R.log(i.message):Q3(i)?R.warn(i.message):R.warn(i))})}_processEvent(t,n,r,o){const i=this.getOptions(),{sampleRate:s}=i,a=n4(t),c=Om(t),f=`before send for type \`${t.type||"error"}\``,u=typeof s>"u"?void 0:Jo(s);if(c&&typeof u=="number"&&Hr()>u)return this.recordDroppedEvent("sample_rate","error"),ym(Im(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));const p=t4(t.type);return this._prepareEvent(t,n,r,o).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",p),Im("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return m;const y=hj(this,i,m,n);return _j(y,f)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",p),a){const h=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",h)}throw Im(`${f} returned \`null\`, will not send event.`)}const _=r.getSession()||o.getSession();if(c&&_&&this._updateSessionFromEvent(_,m),a){const g=m.sdkProcessingMetadata?.spanCountBeforeProcessing||0,h=m.spans?m.spans.length:0,b=g-h;b>0&&this.recordDroppedEvent("before_send","span",b)}const y=m.transaction_info;if(a&&y&&m.transaction!==t.transaction){const g="custom";m.transaction_info={...y,source:g}}return this.sendEvent(m,n),m}).then(null,m=>{throw V3(m)||Q3(m)?m:(this.captureException(m,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:m}),Zc(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
38
+ Reason: ${m}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===Cm&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[o,i]=n.split(":");return{reason:o,category:i,quantity:r}})}_flushOutcomes(){ue&&R.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){ue&&R.log("No outcomes to send");return}if(!this._dsn){ue&&R.log("No dsn provided, will not send outcomes");return}ue&&R.log("Sending outcomes:",t);const n=dj(t,this._options.tunnel&&vr(this._dsn));this.sendEnvelope(n)}}function t4(e){return e==="replay_event"?"replay":e||"error"}function _j(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Wo(e))return e.then(r=>{if(!En(r)&&r!==null)throw Zc(n);return r},r=>{throw Zc(`${t} rejected with ${r}`)});if(!En(e)&&e!==null)throw Zc(n);return e}function hj(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,ignoreSpans:s}=t,a=!Hc(t.beforeSendSpan)&&t.beforeSendSpan;let c=n;if(Om(c)&&o)return o(c,r);if(n4(c)){if(a||s){const d=uj(c);if(s?.length&&za({description:d.description,op:d.op,attributes:d.data},s))return null;if(a){const f=a(d);f?c=Pa(n,fj(f)):Bc()}if(c.spans){const f=[],u=c.spans;for(const m of u){if(s?.length&&za({description:m.description,op:m.op,attributes:m.data},s)){SB(u,m);continue}if(a){const _=a(m);_?f.push(_):(Bc(),f.push(m))}else f.push(m)}const p=c.spans.length-f.length;p&&e.recordDroppedEvent("before_send","span",p),c.spans=f}}if(i){if(c.spans){const d=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:d}}return i(c,r)}}return c}function Om(e){return e.type===void 0}function n4(e){return e.type==="transaction"}function gj(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+r4(e.attributes)}function yj(e){let t=0;return e.message&&(t+=e.message.length*2),t+r4(e.attributes)}function r4(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*o4(n[0]):Ur(n)?t+=o4(n):t+=100}),t}function o4(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function bj(e){return Br(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function i4(e){return bj(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function vj(e,t){t.debug===!0&&(ue?R.enable():er(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Pe().update(t.initialScope);const r=new e(t);return s4(r),r.init(),r}function s4(e){Pe().setClient(e)}const Rm=100,xm=5e3,Ej=36e5;function $j(e){function t(...n){ue&&R.log("[Offline]:",...n)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const o=n.createStore(n);let i=xm,s;function a(u,p,m){return dm(u,["client_report"])?!1:n.shouldStore?n.shouldStore(u,p,m):!0}function c(u){s&&clearTimeout(s),s=Jc(setTimeout(async()=>{s=void 0;const p=await o.shift();p&&(t("Attempting to send previously queued event"),p[0].sent_at=new Date().toISOString(),f(p,!0).catch(m=>{t("Failed to retry sending",m)}))},u))}function d(){s||(c(i),i=Math.min(i*2,Ej))}async function f(u,p=!1){if(!p&&dm(u,["replay_event","replay_recording"]))return await o.push(u),c(Rm),{};try{if(n.shouldSend&&await n.shouldSend(u)===!1)throw new Error("Envelope not sent because `shouldSend` callback returned false");const m=await r.send(u);let _=Rm;if(m){if(m.headers?.["retry-after"])_=H3(m.headers["retry-after"]);else if(m.headers?.["x-sentry-rate-limits"])_=6e4;else if((m.statusCode||0)>=400)return m}return c(_),i=xm,m}catch(m){if(await a(u,m,i))return p?await o.unshift(u):await o.push(u),d(),t("Error sending. Event queued.",m),{};throw m}}return n.flushAtStartup&&d(),{send:f,flush:u=>(u===void 0&&(i=xm,c(Rm)),r.flush(u))}}}const Qc="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function a4(e,t){let n;return Qo(e,(r,o)=>(t.includes(o)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function Sj(e,t){return n=>{const r=e(n);return{...r,send:async o=>{const i=a4(o,["event","transaction","profile","replay_event"]);return i&&(i.release=t),r.send(o)}}}}function Tj(e,t){return zn(t?{...e[0],dsn:t}:e[0],e[1])}function wj(e,t){return n=>{const r=e(n),o=new Map,i=t||(d=>{const f=d.getEvent();return f?.extra?.[Qc]&&Array.isArray(f.extra[Qc])?f.extra[Qc]:[]});function s(d,f){const u=f?`${d}:${f}`:d;let p=o.get(u);if(!p){const m=Ov(d);if(!m)return;const _=P3(m,n.tunnel);p=f?Sj(e,f)({...n,url:_}):e({...n,url:_}),o.set(u,p)}return[d,p]}async function a(d){function f(_){const y=_?.length?_:["event"];return a4(d,y)}const u=i({envelope:d,getEvent:f}).map(_=>typeof _=="string"?s(_,void 0):s(_.dsn,_.release)).filter(_=>!!_),p=u.length?u:[["",r]];return(await Promise.all(p.map(([_,y])=>y.send(Tj(d,_)))))[0]}async function c(d){const f=[...o.values(),r];return(await Promise.all(f.map(p=>p.flush(d)))).every(p=>p)}return{send:a,flush:c}}}const Aj="thismessage:/";function Pm(e){return"isRelative"in e}function Mm(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?Aj:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const o=new URL(e,r);return n?{isRelative:n,pathname:o.pathname,search:o.search,hash:o.hash}:o}catch{}}function kj(e){if(Pm(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function ei(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function l4(e){return e.split(/[?#]/,1)[0]}function ho(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",o=e.includes(";base64,"),i=e.indexOf(",");let s="";if(t&&i!==-1){const a=e.slice(i+1);s=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${o?",base64":""}${s?`,${s}`:""}`}return e}function c4(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return Nj(e,n)||Cj(e,r)}function Cj(e,t){return t?d4(e)===d4(t):!1}function Nj(e,t){const n=Mm(e);return!n||Pm(n)||!t?!1:Ij(n.hostname,t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}function Ij(e,t){return e===t||t.length>0&&e.endsWith(`.${t}`)}function d4(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function u4(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}const Oj=u4;function Rj(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function f4(e,t,n=[t],r="npm"){const o=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};o.name||(o.name=`sentry.javascript.${t}`,o.packages=n.map(i=>({name:`${r}:@sentry/${i}`,version:Lr})),o.version=Lr)}function Lm(e={}){const t=e.client||fe();if(!I3()||!t)return{};const n=Dr(),r=po(n);if(r.getTraceData)return r.getTraceData(e);const o=e.scope||Pe(),i=e.span||$t(),s=i?Hv(i):xj(o),a=i?Hn(i):lm(t,o),c=Nv(a);if(!Mv.test(s))return R.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const f={"sentry-trace":s,baggage:c};return e.propagateTraceparent&&(f.traceparent=i?yB(i):Pj(o)),f}function xj(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Dv(t,r,n)}function Pj(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Fv(t,r,n)}function Mj(e,t,n){let r,o,i;const s=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function c(){return d(),r=e(),r}function d(){o!==void 0&&clearTimeout(o),i!==void 0&&clearTimeout(i),o=i=void 0}function f(){return o!==void 0||i!==void 0?c():r}function u(){return o&&clearTimeout(o),o=a(c,t),s&&i===void 0&&(i=a(c,s)),r}return u.cancel=d,u.flush=f,u}const Lj=100;function or(e,t){const n=fe(),r=vt();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Lj}=n.getOptions();if(i<=0)return;const a={timestamp:Ko(),...e},c=o?er(()=>o(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,i))}let p4;const Dj="FunctionToString",m4=new WeakMap,_4=(()=>({name:Dj,setupOnce(){p4=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Vp(this),n=m4.has(fe())&&t!==void 0?t:this;return p4.apply(n,e)}}catch{}},setup(e){m4.set(e,!0)}})),Fj=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Bj="EventFilters",h4=(e={})=>{let t;return{name:Bj,setup(n){const r=n.getOptions();t=y4(e,r)},processEvent(n,r,o){if(!t){const i=o.getOptions();t=y4(e,i)}return Uj(n,t)?null:n}}},g4=((e={})=>({...h4(e),name:"InboundFilters"}));function y4(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Fj],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Uj(e,t){if(e.type){if(e.type==="transaction"&&Hj(e,t.ignoreTransactions))return ue&&R.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
39
+ Event: ${Yo(e)}`),!0}else{if(jj(e,t.ignoreErrors))return ue&&R.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
40
+ Event: ${Yo(e)}`),!0;if(Gj(e))return ue&&R.warn(`Event dropped due to not having an error message, error type or stacktrace.
41
+ Event: ${Yo(e)}`),!0;if(zj(e,t.denyUrls))return ue&&R.warn(`Event dropped due to being matched by \`denyUrls\` option.
42
+ Event: ${Yo(e)}.
43
+ Url: ${Vc(e)}`),!0;if(!qj(e,t.allowUrls))return ue&&R.warn(`Event dropped due to not being matched by \`allowUrls\` option.
44
+ Event: ${Yo(e)}.
45
+ Url: ${Vc(e)}`),!0}return!1}function jj(e,t){return t?.length?Y3(e).some(n=>nr(n,t)):!1}function Hj(e,t){if(!t?.length)return!1;const n=e.transaction;return n?nr(n,t):!1}function zj(e,t){if(!t?.length)return!1;const n=Vc(e);return n?nr(n,t):!1}function qj(e,t){if(!t?.length)return!0;const n=Vc(e);return n?nr(n,t):!0}function Wj(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Vc(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?Wj(n):null}catch{return ue&&R.error(`Cannot extract url for event ${Yo(e)}`),null}}function Gj(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function Yj(e,t,n,r,o,i){if(!o.exception?.values||!i||!jr(i.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=Dm(e,t,r,i.originalException,n,o.exception.values,s,0))}function Dm(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(jr(r[o],Error)){v4(s,a,r);const d=e(t,r[o]),f=c.length;E4(d,o,f,a),c=Dm(e,t,n,r[o],o,[d,...c],d,f)}return b4(r)&&r.errors.forEach((d,f)=>{if(jr(d,Error)){v4(s,a,r);const u=e(t,d),p=c.length;E4(u,`errors[${f}]`,p,a),c=Dm(e,t,n,d,o,[u,...c],u,p)}}),c}function b4(e){return Array.isArray(e.errors)}function v4(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...b4(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function E4(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const $4=new Map,S4=new Set;function Kj(e){if(Se._sentryModuleMetadata)for(const t of Object.keys(Se._sentryModuleMetadata)){const n=Se._sentryModuleMetadata[t];if(S4.has(t))continue;S4.add(t);const r=e(t);for(const o of r.reverse())if(o.filename){$4.set(o.filename,n);break}}}function Xj(e,t){return Kj(e),$4.get(t)}function T4(e,t){t.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(r=>{if(!r.filename||r.module_metadata)return;const o=Xj(e,r.filename);o&&(r.module_metadata=o)})})}function w4(e){e.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(n=>{delete n.module_metadata})})}const Jj=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",t=>{Qo(t,(n,r)=>{if(r==="event"){const o=Array.isArray(n)?n[1]:void 0;o&&(w4(o),n[1]=o)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;T4(n,t)})}});function Fm(e){const t="console",n=uo(t,e);return fo(t,Zj),n}function Zj(){"console"in Se&&zp.forEach(function(e){e in Se.console&&Wt(Se.console,e,function(t){return Nc[e]=t,function(...n){Un("console",{args:n,level:e}),Nc[e]?.apply(Se.console,n)}})})}function ed(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Qj="CaptureConsole",Vj=((e={})=>{const t=e.levels||zp,n=e.handled??!0;return{name:Qj,setup(r){"console"in Se&&Fm(({args:o,level:i})=>{fe()!==r||!t.includes(i)||eH(o,i,n)})}}});function eH(e,t,n){const r=ed(t),o=new Error,i={level:ed(t),extra:{arguments:e}};jn(s=>{if(s.addEventProcessor(d=>(d.logger="console",zr(d,{handled:n,type:"auto.core.capture_console"}),d)),t==="assert"){if(!e[0]){const d=`Assertion failed: ${xc(e.slice(1)," ")||"console.assert"}`;s.setExtra("arguments",e.slice(1)),s.captureMessage(d,r,{captureContext:i,syntheticException:o})}return}const a=e.find(d=>d instanceof Error);if(a){it(a,i);return}const c=xc(e," ");s.captureMessage(c,r,{captureContext:i,syntheticException:o})})}const tH="Dedupe",A4=(()=>{let e;return{name:tH,processEvent(t){if(t.type)return t;try{if(nH(t,e))return ue&&R.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}});function nH(e,t){return t?!!(rH(e,t)||oH(e,t)):!1}function rH(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!C4(e,t)||!k4(e,t))}function oH(e,t){const n=N4(t),r=N4(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!C4(e,t)||!k4(e,t))}function k4(e,t){let n=Yp(e),r=Yp(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){const i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function C4(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function N4(e){return e.exception?.values?.[0]}const iH="ExtraErrorData",sH=((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:iH,processEvent(r,o,i){const{maxValueLength:s}=i.getOptions();return aH(r,o,t,n,s)}}});function aH(e,t={},n,r,o){if(!t.originalException||!Br(t.originalException))return e;const i=t.originalException.name||t.originalException.constructor.name,s=I4(t.originalException,r,o);if(s){const a={...e.contexts},c=Yt(s,n);return En(c)&&(kB(c),a[i]=c),{...e,contexts:a}}return e}function I4(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const i of Object.keys(e)){if(r.indexOf(i)!==-1)continue;const s=e[i];o[i]=Br(s)||typeof s=="string"?n?Ra(`${s}`,n):`${s}`:s}if(t&&e.cause!==void 0)if(Br(e.cause)){const i=e.cause.name||e.cause.constructor.name;o.cause={[i]:I4(e.cause,!1,n)}}else o.cause=e.cause;if(typeof e.toJSON=="function"){const i=e.toJSON();for(const s of Object.keys(i)){const a=i[s];o[s]=Br(a)?a.toString():a}}return o}catch(r){ue&&R.error("Unable to extract extra data from the Error object:",r)}return null}function lH(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const cH=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function dH(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=cH.exec(t);return n?n.slice(1):[]}function O4(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n=o.charAt(0)==="/")}return t=lH(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function R4(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function uH(e,t){e=O4(e).slice(1),t=O4(t).slice(1);const n=R4(e.split("/")),r=R4(t.split("/")),o=Math.min(n.length,r.length);let i=o;for(let a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}let s=[];for(let a=i;a<n.length;a++)s.push("..");return s=s.concat(r.slice(i)),s.join("/")}function fH(e,t){return dH(e)[2]||""}const pH="RewriteFrames",mH=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in Se&&!!Se.window,o=e.iteratee||_H({isBrowser:r,root:t,prefix:n});function i(a){try{return{...a,exception:{...a.exception,values:a.exception.values.map(c=>({...c,...c.stacktrace&&{stacktrace:s(c.stacktrace)}}))}}}catch{return a}}function s(a){return{...a,frames:a?.frames?.map(c=>o(c))}}return{name:pH,processEvent(a){let c=a;return a.exception&&Array.isArray(a.exception.values)&&(c=i(c)),c}}};function _H({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const o=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),i=/^\//.test(r.filename);if(e){if(t){const s=r.filename;s.indexOf(t)===0&&(r.filename=s.replace(t,n))}}else if(o||i){const s=o?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?uH(t,s):fH(s);r.filename=`${n}${a}`}return r}}const hH=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],gH=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],yH={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},x4=["select","insert","upsert","update","delete"];function td(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function nd(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function P4(e,t){if(Object.keys(t).length>0)return t;if(Array.isArray(e)&&e.length>0)return e}function bH(e,t){return P4(e,t)!==void 0}function vH(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function EH(e,t){if(t===""||t==="*")return"select(*)";if(e==="select")return`select(${t})`;if(e==="or"||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");let o;return n?.startsWith("fts")?o="textSearch":n?.startsWith("plfts")?o="textSearch[plain]":n?.startsWith("phfts")?o="textSearch[phrase]":n?.startsWith("wfts")?o="textSearch[websearch]":o=n&&yH[n]||"filter",`${o}(${e}, ${r.join(".")})`}function M4(e,t=!1){return new Proxy(e,{apply(n,r,o){return Er({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[qe]:"auto.db.supabase",[tt]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},i=>Reflect.apply(n,r,o).then(s=>(s&&typeof s=="object"&&"error"in s&&s.error?(i.setStatus({code:Ye}),it(s.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):i.setStatus({code:Ba}),i.end(),s)).catch(s=>{throw i.setStatus({code:Ye}),i.end(),it(s,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),s}).then(...o))}})}function $H(e){const t=e.auth;if(!(!t||nd(e.auth))){for(const n of hH){const r=t[n];r&&typeof e.auth[n]=="function"&&(e.auth[n]=M4(r))}for(const n of gH){const r=t.admin[n];r&&typeof e.auth.admin[n]=="function"&&(e.auth.admin[n]=M4(r,!0))}td(e.auth)}}function SH(e){nd(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(t,n,r){const o=Reflect.apply(t,n,r),i=o.constructor;return wH(i),o}}),td(e.prototype.from))}function TH(e){nd(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(t,n,r){const o=x4,i=n,s=vH(i.method,i.headers);if(!o.includes(s)||!i?.url?.pathname||typeof i.url.pathname!="string")return Reflect.apply(t,n,r);const a=i.url.pathname.split("/"),c=a.length>0?a[a.length-1]:"",d=[];for(const[b,v]of i.url.searchParams.entries())d.push(EH(b,v));const f=Object.create(null);if(En(i.body))for(const[b,v]of Object.entries(i.body))f[b]=v;const u=!!fe()?.getOptions().sendDefaultPii,p=P4(i.body,f),m=s==="select"?"":`${s}${bH(i.body,f)?"(...) ":""}`,_=u?d.join(" "):d.length>0?"[redacted]":"",y=[m.trimEnd(),_].filter(Boolean).join(" "),g=y?`${y} from(${c})`:`from(${c})`,h={"db.table":c,"db.schema":i.schema,"db.url":i.url.origin,"db.sdk":i.headers["X-Client-Info"],"db.system":"postgresql","db.operation":s,[qe]:"auto.db.supabase",[tt]:"db"};return d.length&&u&&(h["db.query"]=d),p!==void 0&&u&&(h["db.body"]=p),Er({name:g,attributes:h},b=>Reflect.apply(t,n,[]).then(v=>{if(b&&(v&&typeof v=="object"&&"status"in v&&Ua(b,v.status||500),b.end()),v?.error){const A=new Error(v.error.message);v.error.code&&(A.code=v.error.code),v.error.details&&(A.details=v.error.details);const $={};d.length&&u&&($.query=d),p!==void 0&&u&&($.body=p),it(A,H=>(H.addEventProcessor(q=>(zr(q,{handled:!1,type:"auto.db.supabase.postgres"}),q)),H.setContext("supabase",$),H))}const S={type:"supabase",category:`db.${s}`,message:g},N={};return d.length&&u&&(N.query=d),p!==void 0&&u&&(N.body=p),Object.keys(N).length&&(S.data=N),or(S),v},v=>{throw b&&(Ua(b,500),b.end()),v}).then(...r))}}),td(e.prototype.then))}function wH(e){for(const t of x4)nd(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(n,r,o){const i=Reflect.apply(n,r,o),s=i.constructor;return ue&&R.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),TH(s),i}}),td(e.prototype[t]))}const L4=e=>{if(!e){ue&&R.warn("Supabase integration was not installed because no Supabase client was provided.");return}const t=e.constructor===Function?e:e.constructor;SH(t),$H(e)},AH="Supabase",kH=(e=>({setupOnce(){L4(e)},name:AH})),CH=e=>kH(e.supabaseClient),NH=10,IH="ZodErrors";function OH(e){return Br(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function RH(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function xH(e){return e.map(t=>typeof t=="number"?"<array>":t).join(".")}function PH(e){const t=new Set;for(const r of e.issues){const o=xH(r.path);o.length>0&&t.add(o)}const n=Array.from(t);if(n.length===0){let r="variable";if(e.issues.length>0){const o=e.issues[0];o!==void 0&&"expected"in o&&typeof o.expected=="string"&&(r=o.expected)}return`Failed to validate ${r}`}return`Failed to validate keys: ${Ra(n.join(", "),100)}`}function MH(e,t=!1,n,r){if(!n.exception?.values||!r.originalException||!OH(r.originalException)||r.originalException.issues.length===0)return n;try{const i=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(RH);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:i})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:PH(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":i.slice(0,e)}}}catch(o){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:o instanceof Error?`${o.name}: ${o.message}
46
+ ${o.stack}`:"unknown"}}}}}const LH=((e={})=>{const t=e.limit??NH;return{name:IH,processEvent(n,r){return MH(t,e.saveZodIssuesAsAttachment,n,r)}}}),DH=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{Qo(n,(r,o)=>{if(o==="event"){const i=Array.isArray(r)?r[1]:void 0;i&&(w4(i),r[1]=i)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;const r=t.getOptions().stackParser;T4(r,n)})},processEvent(t){const n=BH(t,e.ignoreSentryInternalFrames);if(n){const r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](i=>!i.some(s=>e.filterKeys.includes(s)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}});function FH(e,t){if(t!==0||!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(jH))return!1;if(e.pre_context){const n=e.pre_context.length;for(let r=0;r<n;r++)if(e.pre_context[r]?.includes(UH))return!0}return!1}function BH(e,t){const n=Yp(e);if(n)return n.filter((r,o)=>!r.filename||r.lineno==null&&r.colno==null&&r.instruction_addr==null?!1:!t||!FH(r,o)).map(r=>r.module_metadata?Object.keys(r.module_metadata).filter(o=>o.startsWith(D4)).map(o=>o.slice(D4.length)):[])}const D4="_sentryBundlerPluginAppKey:",UH="Attempt to invoke user-land function",jH="fn.apply(this, wrappedArguments)",HH=100,zH=10,rd="flag.evaluation.";function Qi(e){if(e.type)return e;const n=Pe().getScopeData().contexts.flags,r=n?n.values:[];return r.length&&(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function ti(e,t,n=HH){const r=Pe().getScopeData().contexts;r.flags||(r.flags={values:[]});const o=r.flags.values;qH(o,e,t,n)}function qH(e,t,n,r){if(typeof n!="boolean")return;if(e.length>r){ue&&R.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}const o=e.findIndex(i=>i.flag===t);o!==-1&&e.splice(o,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}function ni(e,t,n=zH){if(typeof t!="boolean")return;const r=$t();if(!r)return;const o=Le(r).data;if(`${rd}${e}`in o){r.setAttribute(`${rd}${e}`,t);return}Object.keys(o).filter(s=>s.startsWith(rd)).length<n&&r.setAttribute(`${rd}${e}`,t)}const WH=()=>({name:"FeatureFlags",processEvent(e,t,n){return Qi(e)},addFeatureFlag(e,t){ti(e,t),ni(e,t)}}),GH=({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){const t=e.prototype;typeof t.isOn=="function"&&Wt(t,"isOn",F4),typeof t.getFeatureValue=="function"&&Wt(t,"getFeatureValue",F4)},processEvent(t,n,r){return Qi(t)}});function F4(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"&&(ti(n,r),ni(n,r)),r}}const YH="ConversationId",KH=(()=>({name:YH,setup(e){e.on("spanStart",t=>{const n=Pe().getScopeData(),r=vt().getScopeData(),o=n.conversationId||r.conversationId;if(o){const{op:i,data:s,description:a}=Le(t);if(!i?.startsWith("gen_ai.")&&!s["ai.operationId"]&&!a?.startsWith("ai."))return;t.setAttribute(nB,o)}})}}));function XH(e,t,n,r,o){if(!e.fetchData)return;const{method:i,url:s}=e.fetchData,a=Nn()&&t(s);if(e.endTimestamp){const m=e.fetchData.__span;if(!m)return;const _=r[m];_&&(a&&(QH(_,e),JH(_,e,o)),delete r[m]);return}const{spanOrigin:c="auto.http.browser",propagateTraceparent:d=!1}=typeof o=="object"?o:{spanOrigin:o},f=fe(),u=!!$t(),p=a&&u?$r(tz(s,i,c)):new In;if(a&&!u&&f?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p,n(e.fetchData.url)){const m=e.args[0],_={...e.args[1]||{}},y=ZH(m,_,Nn()&&u?p:void 0,d);y&&(e.args[1]=_,_.headers=y)}if(f){const m={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",p,m)}return p}function JH(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function ZH(e,t,n,r){const o=Lm({span:n,propagateTraceparent:r}),i=o["sentry-trace"],s=o.baggage,a=o.traceparent;if(!i)return;const c=t.headers||(Jp(e)?e.headers:void 0);if(c)if(VH(c)){const d=new Headers(c);if(d.get("sentry-trace")||d.set("sentry-trace",i),r&&a&&!d.get("traceparent")&&d.set("traceparent",a),s){const f=d.get("baggage");f?od(f)||d.set("baggage",`${f},${s}`):d.set("baggage",s)}return d}else if(ez(c)){const d=[...c];d.find(u=>u[0]==="sentry-trace")||d.push(["sentry-trace",i]),r&&a&&!d.find(u=>u[0]==="traceparent")&&d.push(["traceparent",a]);const f=c.find(u=>u[0]==="baggage"&&typeof u[1]=="string"&&od(u[1]));return s&&!f&&d.push(["baggage",s]),d}else{const d="sentry-trace"in c?c["sentry-trace"]:void 0,f="traceparent"in c?c.traceparent:void 0,u="baggage"in c?c.baggage:void 0,p=u?Array.isArray(u)?[...u]:[u]:[],m=u&&(Array.isArray(u)?u.find(y=>od(y)):od(u));s&&!m&&p.push(s);const _=Object.assign({},c,{"sentry-trace":d??i,baggage:p.length>0?p.join(","):void 0});return r&&a&&!f&&(_.traceparent=a),_}else return{...o}}function QH(e,t){if(t.response){Ua(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:Ye,message:"internal_error"});e.end()}function od(e){return typeof e!="string"?!1:e.split(",").some(t=>t.trim().startsWith(Mc))}function VH(e){return typeof Headers<"u"&&jr(e,Headers)}function ez(e){return Array.isArray(e)?e.every(t=>Array.isArray(t)&&t.length===2&&typeof t[0]=="string"):!1}function tz(e,t,n){if(e.startsWith("data:")){const i=ho(e);return{name:`${t} ${i}`,attributes:B4(e,void 0,t,n)}}const r=Mm(e),o=r?kj(r):e;return{name:`${t} ${o}`,attributes:B4(e,r,t,n)}}function B4(e,t,n,r){const o={url:ho(e),type:"fetch","http.method":n,[qe]:r,[tt]:"http.client"};return t&&(Pm(t)||(o["http.url"]=ho(t.href),o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}function U4(e,t={},n=Pe()){const{message:r,name:o,email:i,url:s,source:a,associatedEventId:c,tags:d}=e,f={contexts:{feedback:{contact_email:i,name:o,message:r,url:s,source:a,associated_event_id:c}},type:"feedback",level:"info",tags:d},u=n?.getClient()||fe();return u&&u.emit("beforeSendFeedback",f,t),n.captureEvent(f,t)}function Vi(e,t,n,r,o){Kc({level:e,message:t,attributes:n,severityNumber:o},r)}function nz(e,t,{scope:n}={}){Vi("trace",e,t,n)}function rz(e,t,{scope:n}={}){Vi("debug",e,t,n)}function oz(e,t,{scope:n}={}){Vi("info",e,t,n)}function iz(e,t,{scope:n}={}){Vi("warn",e,t,n)}function sz(e,t,{scope:n}={}){Vi("error",e,t,n)}function az(e,t,{scope:n}={}){Vi("fatal",e,t,n)}const lz=Object.freeze(Object.defineProperty({__proto__:null,debug:rz,error:sz,fatal:az,fmt:Oj,info:oz,trace:nz,warn:iz},Symbol.toStringTag,{value:"Module"}));function id(e,t,n){return"util"in Se&&typeof Se.util.format=="function"?Se.util.format(...e):cz(e,t,n)}function cz(e,t,n){return e.map(r=>Ur(r)?String(r):JSON.stringify(Yt(r,t,n))).join(" ")}function j4(e){return/%[sdifocO]/.test(e)}function H4(e,t){const n={},r=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((o,i)=>{n[`sentry.message.parameter.${i}`]=o}),n}const dz="ConsoleLogs",z4={[qe]:"auto.log.console"},uz=((e={})=>{const t=e.levels||zp;return{name:dz,setup(n){const{enableLogs:r,normalizeDepth:o=3,normalizeMaxBreadth:i=1e3}=n.getOptions();if(!r){ue&&R.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}const s=Fm(({args:a,level:c})=>{if(fe()!==n||!t.includes(c))return;const d=a[0],f=a.slice(1);if(c==="assert"){if(!d){const _=f.length>0?`Assertion failed: ${id(f,o,i)}`:"Assertion failed";Kc({level:"error",message:_,attributes:z4})}return}const u=c==="log",p=a.length>1&&typeof a[0]=="string"&&!j4(a[0]),m={...z4,...p?H4(d,f):{}};Kc({level:u?"info":c,message:id(a,o,i),severityNumber:u?10:void 0,attributes:m})});n.registerCleanup(s)}}});function Bm(e,t,n,r){aj({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function fz(e,t=1,n){Bm("counter",e,t,n)}function pz(e,t,n){Bm("gauge",e,t,n)}function Um(e,t,n){Bm("distribution",e,t,n)}const mz=Object.freeze(Object.defineProperty({__proto__:null,count:fz,distribution:Um,gauge:pz},Symbol.toStringTag,{value:"Module"})),_z=["trace","debug","info","warn","error","fatal"];function hz(e={}){const t=new Set(e.levels??_z),n=e.client;return{log(r){const{type:o,level:i,message:s,args:a,tag:c,date:d,...f}=r,u=n||fe();if(!u)return;const p=bz(o,i);if(!t.has(p))return;const{normalizeDepth:m=3,normalizeMaxBreadth:_=1e3}=u.getOptions(),y={};for(const[h,b]of Object.entries(f))y[h]=Yt(b,m,_);y["sentry.origin"]="auto.log.consola",c&&(y["consola.tag"]=c),o&&(y["consola.type"]=o),i!=null&&typeof i=="number"&&(y["consola.level"]=i);const g=Ez(vz(a,m,_),m,_);g?.attributes&&Object.assign(y,g.attributes),Kc({level:p,message:g?.message||s||a&&id(a,m,_)||"",attributes:y})}}}const gz={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},yz={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};function bz(e,t){if(e==="verbose")return"debug";if(e==="silent")return"trace";if(e){const n=gz[e];if(n)return n}if(typeof t=="number"){const n=yz[t];if(n)return n}return"info"}function vz(e,t,n){if(!e?.length)return{message:""};const r=id(e,t,n),o=e[0];if(En(o)){const i=typeof e[1]=="string"?2:1,s=e.slice(i);return{message:r,attributes:o,messageParameters:s}}else{const i=e.slice(1),s=i.length>0&&typeof o=="string"&&!j4(o);return{message:r,messageTemplate:s?o:void 0,messageParameters:s?i:void 0}}}function Ez(e,t,n){const{message:r,attributes:o,messageTemplate:i,messageParameters:s}=e,a={};if(i&&s){const c=H4(i,s);for(const[d,f]of Object.entries(c))a[d]=d.startsWith("sentry.message.parameter.")?Yt(f,t,n):f}else s&&s.length>0&&s.forEach((c,d)=>{a[`sentry.message.parameter.${d}`]=Yt(c,t,n)});return{message:r,attributes:{...Yt(o,t,n),...a}}}const $z="gen_ai.prompt",Ja="gen_ai.system",Kt="gen_ai.request.model",jm="gen_ai.request.stream",sd="gen_ai.request.temperature",Hm="gen_ai.request.max_tokens",ad="gen_ai.request.frequency_penalty",zm="gen_ai.request.presence_penalty",ld="gen_ai.request.top_p",q4="gen_ai.request.top_k",W4="gen_ai.request.encoding_format",G4="gen_ai.request.dimensions",es="gen_ai.response.finish_reasons",ts="gen_ai.response.model",cd="gen_ai.response.id",Sz="gen_ai.response.stop_reason",ri="gen_ai.usage.input_tokens",oi="gen_ai.usage.output_tokens",go="gen_ai.usage.total_tokens",ir="gen_ai.operation.name",ii="sentry.sdk_meta.gen_ai.input.messages.original_length",ns="gen_ai.input.messages",Za="gen_ai.system_instructions",Tr="gen_ai.response.text",Qa="gen_ai.request.available_tools",Tz="gen_ai.response.streaming",yo="gen_ai.response.tool_calls",dd="gen_ai.agent.name",wz="gen_ai.pipeline.name",qm="gen_ai.conversation.id",Az="gen_ai.usage.cache_creation_input_tokens",kz="gen_ai.usage.cache_read_input_tokens",Cz="gen_ai.invoke_agent",Wm="gen_ai.embeddings.input",Y4="gen_ai.embeddings",K4="gen_ai.execute_tool",X4="gen_ai.tool.name",Nz="gen_ai.tool.call.id",Iz="gen_ai.tool.type",J4="gen_ai.tool.input",Z4="gen_ai.tool.output",Oz="gen_ai.tool.description";function rs(e){return!e||typeof e!="object"?!1:xz(e)||V4(e)||Rz(e)||e9(e)||t9(e)||Pz(e)||Mz(e)||Lz(e)||Dz(e)||Fz(e)||Bz(e)||Uz(e)}function Rz(e){return"image_url"in e?typeof e.image_url=="string"?e.image_url.startsWith("data:"):Q4(e):!1}function Q4(e){return"image_url"in e&&!!e.image_url&&typeof e.image_url=="object"&&"url"in e.image_url&&typeof e.image_url.url=="string"&&e.image_url.url.startsWith("data:")}function xz(e){return"type"in e&&typeof e.type=="string"&&"source"in e&&rs(e.source)}function V4(e){return"inlineData"in e&&!!e.inlineData&&typeof e.inlineData=="object"&&"data"in e.inlineData&&typeof e.inlineData.data=="string"}function e9(e){return"type"in e&&e.type==="input_audio"&&"input_audio"in e&&!!e.input_audio&&typeof e.input_audio=="object"&&"data"in e.input_audio&&typeof e.input_audio.data=="string"}function t9(e){return"type"in e&&e.type==="file"&&"file"in e&&!!e.file&&typeof e.file=="object"&&"file_data"in e.file&&typeof e.file.file_data=="string"}function Pz(e){return"media_type"in e&&typeof e.media_type=="string"&&"data"in e}function Mz(e){return"type"in e&&e.type==="file"&&"mediaType"in e&&typeof e.mediaType=="string"&&"data"in e&&typeof e.data=="string"&&!e.data.startsWith("http://")&&!e.data.startsWith("https://")}function Lz(e){return"type"in e&&e.type==="image"&&"image"in e&&typeof e.image=="string"&&!e.image.startsWith("http://")&&!e.image.startsWith("https://")}function Dz(e){return"type"in e&&(e.type==="blob"||e.type==="base64")}function Fz(e){return"b64_json"in e}function Bz(e){return"type"in e&&"result"in e&&e.type==="image_generation"}function Uz(e){return"uri"in e&&typeof e.uri=="string"&&e.uri.startsWith("data:")}const Va="[Blob substitute]",jz=["image_url","data","content","b64_json","result","uri","image"];function el(e){const t={...e};rs(t.source)&&(t.source=el(t.source)),V4(e)&&(t.inlineData={...e.inlineData,data:Va}),Q4(e)&&(t.image_url={...e.image_url,url:Va}),e9(e)&&(t.input_audio={...e.input_audio,data:Va}),t9(e)&&(t.file={...e.file,file_data:Va});for(const n of jz)typeof t[n]=="string"&&(t[n]=Va);return t}const n9=2e4,ud=e=>new TextEncoder().encode(e).length,Gm=e=>ud(JSON.stringify(e));function fd(e,t){if(ud(e)<=t)return e;let n=0,r=e.length,o="";for(;n<=r;){const i=Math.floor((n+r)/2),s=e.slice(0,i);ud(s)<=t?(o=s,n=i+1):r=i-1}return o}function Hz(e){return typeof e=="string"?e:"text"in e&&typeof e.text=="string"?e.text:""}function r9(e,t){return typeof e=="string"?t:{...e,text:t}}function zz(e){return e!==null&&typeof e=="object"&&"content"in e&&typeof e.content=="string"}function o9(e){return e!==null&&typeof e=="object"&&"content"in e&&Array.isArray(e.content)}function i9(e){return e!==null&&typeof e=="object"&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function qz(e,t){const n={...e,content:""},r=Gm(n),o=t-r;if(o<=0)return[];const i=fd(e.content,o);return[{...e,content:i}]}function Wz(e){return"parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]}}function Gz(e,t){const{key:n,items:r}=Wz(e);if(n===null||r.length===0)return[];const o=r.map(c=>r9(c,"")),i=Gm({...e,[n]:o});let s=t-i;if(s<=0)return[];const a=[];for(const c of r){const d=Hz(c),f=ud(d);if(f<=s)a.push(c),s-=f;else if(a.length===0){const u=fd(d,s);u&&a.push(r9(c,u));break}else break}return a.length<=0?[]:[{...e,[n]:a}]}function Yz(e,t){if(!e)return[];if(typeof e=="string"){const n=fd(e,t);return n?[n]:[]}return typeof e!="object"?[]:zz(e)?qz(e,t):o9(e)||i9(e)?Gz(e,t):[]}function Ym(e){return e.map(n=>{let r;return n&&typeof n=="object"&&(o9(n)?r={...n,content:Ym(n.content)}:"content"in n&&rs(n.content)&&(r={...n,content:el(n.content)}),i9(n)&&(r={...r??n,parts:Ym(n.parts)}),rs(r)?r=el(r):rs(n)&&(r=el(n))),r??n})}function Kz(e,t){if(!Array.isArray(e)||e.length===0)return e;const n=t-2,r=e[e.length-1],o=Ym([r]),i=o[0];return Gm(i)<=n?o:Yz(i,n)}function Xz(e){return Kz(e,n9)}function Jz(e){return fd(e,n9)}function si(e){const t=!!fe()?.getOptions().sendDefaultPii;return{...e,recordInputs:e?.recordInputs??t,recordOutputs:e?.recordOutputs??t}}function Jr(e){const t=fe();return e??!(t&&Yr(t))}function Km(e,t){return e?`${e}.${t}`:t}function Zz(e,t,n,r,o){if(t!==void 0&&e.setAttributes({[ri]:t}),n!==void 0&&e.setAttributes({[oi]:n}),t!==void 0||n!==void 0||r!==void 0||o!==void 0){const i=(t??0)+(n??0)+(r??0)+(o??0);e.setAttributes({[go]:i})}}function pd(e,t,n){if(!e.isRecording())return;const r={[Tz]:!0};t.responseId&&(r[cd]=t.responseId),t.responseModel&&(r[ts]=t.responseModel),t.promptTokens!==void 0&&(r[ri]=t.promptTokens),t.completionTokens!==void 0&&(r[oi]=t.completionTokens),t.totalTokens!==void 0?r[go]=t.totalTokens:(t.promptTokens!==void 0||t.completionTokens!==void 0||t.cacheCreationInputTokens!==void 0||t.cacheReadInputTokens!==void 0)&&(r[go]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(r[es]=JSON.stringify(t.finishReasons)),n&&t.responseTexts.length&&(r[Tr]=t.responseTexts.join("")),n&&t.toolCalls.length&&(r[yo]=JSON.stringify(t.toolCalls)),e.setAttributes(r),e.end()}function os(e){return typeof e=="string"?e:JSON.stringify(e)}function is(e){if(typeof e=="string")return Jz(e);if(Array.isArray(e)){const t=Xz(e);return JSON.stringify(t)}return JSON.stringify(e)}function tl(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};const t=e.findIndex(s=>s&&typeof s=="object"&&"role"in s&&s.role==="system");if(t===-1)return{systemInstructions:void 0,filteredMessages:e};const n=e[t],r=typeof n.content=="string"?n.content:n.content!==void 0?JSON.stringify(n.content):void 0;if(!r)return{systemInstructions:void 0,filteredMessages:e};const o=JSON.stringify([{type:"text",content:r}]),i=[...e.slice(0,t),...e.slice(t+1)];return{systemInstructions:o,filteredMessages:i}}async function Qz(e,t,n){const r=e.catch(s=>{throw it(s,{mechanism:{handled:!1,type:n}}),s}),o=await t,i=await r;return i&&typeof i=="object"&&"data"in i?{...i,data:o}:o}function md(e,t,n){return Wo(e)?new Proxy(e,{get(r,o){const s=o in Promise.prototype||o===Symbol.toStringTag?t:r,a=Reflect.get(s,o);return o==="withResponse"&&typeof a=="function"?function(){const d=a.call(r);return Qz(d,t,n)}:typeof a=="function"?a.bind(s):a}}):t}const Vz={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},eq=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"]];function tq(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.startsWith("response.")}function nq(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion.chunk"}function rq(e,t,n){if(!t||typeof t!="object")return;const r=t,o={};if(typeof r.id=="string"&&(o[cd]=r.id),typeof r.model=="string"&&(o[ts]=r.model),r.object==="conversation"&&typeof r.id=="string"&&(o[qm]=r.id),r.usage&&typeof r.usage=="object"){const i=r.usage,s=i.prompt_tokens??i.input_tokens;typeof s=="number"&&(o[ri]=s);const a=i.completion_tokens??i.output_tokens;typeof a=="number"&&(o[oi]=a),typeof i.total_tokens=="number"&&(o[go]=i.total_tokens)}if(Array.isArray(r.choices)){const i=r.choices,s=i.map(a=>a.finish_reason).filter(a=>typeof a=="string");if(s.length>0&&(o[es]=JSON.stringify(s)),n){const a=i.map(d=>d.message?.content||"");o[Tr]=JSON.stringify(a);const c=i.map(d=>d.message?.tool_calls).filter(d=>Array.isArray(d)&&d.length>0).flat();c.length>0&&(o[yo]=JSON.stringify(c))}}if(typeof r.status=="string"&&(o[es]||(o[es]=JSON.stringify([r.status]))),n&&(typeof r.output_text=="string"&&!o[Tr]&&(o[Tr]=r.output_text),Array.isArray(r.output)&&r.output.length>0&&!o[yo])){const i=r.output.filter(s=>s?.type==="function_call");i.length>0&&(o[yo]=JSON.stringify(i))}e.setAttributes(o)}function oq(e){if("conversation"in e&&typeof e.conversation=="string")return e.conversation;if("previous_response_id"in e&&typeof e.previous_response_id=="string")return e.previous_response_id}function iq(e){const t={[Kt]:e.model??"unknown"};"temperature"in e&&(t[sd]=e.temperature),"top_p"in e&&(t[ld]=e.top_p),"frequency_penalty"in e&&(t[ad]=e.frequency_penalty),"presence_penalty"in e&&(t[zm]=e.presence_penalty),"stream"in e&&(t[jm]=e.stream),"encoding_format"in e&&(t[W4]=e.encoding_format),"dimensions"in e&&(t[G4]=e.dimensions);const n=oq(e);return n&&(t[qm]=n),t}function sq(e,t){for(const n of e){const r=n.index;if(!(r===void 0||!n.function))if(!(r in t.chatCompletionToolCalls))t.chatCompletionToolCalls[r]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}};else{const o=t.chatCompletionToolCalls[r];n.function.arguments&&o?.function&&(o.function.arguments+=n.function.arguments)}}}function aq(e,t,n){t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(const r of e.choices??[])n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&sq(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}function lq(e,t,n,r){if(!(e&&typeof e=="object")){t.eventTypes.push("unknown:non-object");return}if(e instanceof Error){r.setStatus({code:Ye,message:"internal_error"}),it(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if(!("type"in e))return;const o=e;if(!eq.includes(o.type)){t.eventTypes.push(o.type);return}if(n&&(o.type==="response.output_item.done"&&"item"in o&&t.responsesApiToolCalls.push(o.item),o.type==="response.output_text.delta"&&"delta"in o&&o.delta)){t.responseTexts.push(o.delta);return}if("response"in o){const{response:i}=o;t.responseId=i.id??t.responseId,t.responseModel=i.model??t.responseModel,i.usage&&(t.promptTokens=i.usage.input_tokens,t.completionTokens=i.usage.output_tokens,t.totalTokens=i.usage.total_tokens),i.status&&t.finishReasons.push(i.status),n&&i.output_text&&t.responseTexts.push(i.output_text)}}async function*cq(e,t,n){const r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const o of e)nq(o)?aq(o,r,n):tq(o)&&lq(o,r,n,t),yield o}finally{const o=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];pd(t,{...r,toolCalls:o},n)}}function dq(e){const t=Array.isArray(e.tools)?e.tools:[],r=e.web_search_options&&typeof e.web_search_options=="object"?[{type:"web_search_options",...e.web_search_options}]:[],o=[...t,...r];if(o.length!==0)try{return JSON.stringify(o)}catch(i){ue&&R.error("Failed to serialize OpenAI tools:",i);return}}function uq(e,t){const n={[Ja]:"openai",[ir]:t,[qe]:"auto.ai.openai"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const r=e[0],o=dq(r);o&&(n[Qa]=o),Object.assign(n,iq(r))}else n[Kt]="unknown";return n}function s9(e,t,n,r){if(n==="embeddings"&&"input"in t){const a=t.input;if(a==null||typeof a=="string"&&a.length===0||Array.isArray(a)&&a.length===0)return;e.setAttribute(Wm,typeof a=="string"?a:JSON.stringify(a));return}const o="input"in t?t.input:"messages"in t?t.messages:void 0;if(!o||Array.isArray(o)&&o.length===0)return;const{systemInstructions:i,filteredMessages:s}=tl(o);i&&e.setAttribute(Za,i),e.setAttribute(ns,r?is(s):os(s)),Array.isArray(s)?e.setAttribute(ii,s.length):e.setAttribute(ii,1)}function fq(e,t,n,r,o){return function(...s){const a=n.operation||"unknown",c=uq(s,a),d=c[Kt]||"unknown",f=s[0],u=f&&typeof f=="object"&&f.stream===!0,p={name:`${a} ${d}`,op:`gen_ai.${a}`,attributes:c};if(u){let y;const g=Kr(p,h=>(y=e.apply(r,s),o.recordInputs&&f&&s9(h,f,a,Jr(o.enableTruncation)),(async()=>{try{const b=await y;return cq(b,h,o.recordOutputs??!1)}catch(b){throw h.setStatus({code:Ye,message:"internal_error"}),it(b,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:t}}}),h.end(),b}})()));return md(y,g,"auto.ai.openai")}let m;const _=Er(p,y=>(m=e.apply(r,s),o.recordInputs&&f&&s9(y,f,a,Jr(o.enableTruncation)),m.then(g=>(rq(y,g,o.recordOutputs),g),g=>{throw it(g,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:t}}}),g})));return md(m,_,"auto.ai.openai")}}function a9(e,t="",n){return new Proxy(e,{get(r,o){const i=r[o],s=Km(t,String(o)),a=Vz[s];return typeof i=="function"&&a?fq(i,s,a,r,n):typeof i=="function"?i.bind(r):i&&typeof i=="object"?a9(i,s,n):i}})}function pq(e,t){return a9(e,"",si(t))}const mq={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}};function _q(e,t,n){if(Array.isArray(t)&&t.length===0)return;const{systemInstructions:r,filteredMessages:o}=tl(t);r&&e.setAttributes({[Za]:r});const i=Array.isArray(o)?o.length:1;e.setAttributes({[ns]:n?is(o):os(o),[ii]:i})}const hq={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function l9(e){return e&&hq[e]||"internal_error"}function gq(e,t){t.error&&(e.setStatus({code:Ye,message:l9(t.error.type)}),it(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function yq(e){const{system:t,messages:n,input:r}=e,o=typeof t=="string"?[{role:"system",content:e.system}]:[],i=Array.isArray(r)?r:r!=null?[r]:void 0,s=Array.isArray(n)?n:n!=null?[n]:[],a=i??s;return[...o,...a]}function bq(e,t){return"type"in e&&typeof e.type=="string"&&e.type==="error"?(t.setStatus({code:Ye,message:l9(e.error?.type)}),it(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0):!1}function vq(e,t){if(e.type==="message_delta"&&e.usage&&"output_tokens"in e.usage&&typeof e.usage.output_tokens=="number"&&(t.completionTokens=e.usage.output_tokens),e.message){const n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&(typeof n.usage.input_tokens=="number"&&(t.promptTokens=n.usage.input_tokens),typeof n.usage.cache_creation_input_tokens=="number"&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),typeof n.usage.cache_read_input_tokens=="number"&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}}function Eq(e,t){e.type!=="content_block_start"||typeof e.index!="number"||!e.content_block||(e.content_block.type==="tool_use"||e.content_block.type==="server_tool_use")&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]})}function $q(e,t,n){if(!(e.type!=="content_block_delta"||!e.delta)){if(typeof e.index=="number"&&"partial_json"in e.delta&&typeof e.delta.partial_json=="string"){const r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}n&&typeof e.delta.text=="string"&&t.responseTexts.push(e.delta.text)}}function Sq(e,t){if(e.type!=="content_block_stop"||typeof e.index!="number")return;const n=t.activeToolBlocks[e.index];if(!n)return;const r=n.inputJsonParts.join("");let o;try{o=r?JSON.parse(r):{}}catch{o={__unparsed:r}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:o}),delete t.activeToolBlocks[e.index]}function c9(e,t,n,r){!(e&&typeof e=="object")||bq(e,r)||(vq(e,t),Eq(e,t),$q(e,t,n),Sq(e,t))}async function*Tq(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const o of e)c9(o,r,n,t),yield o}finally{pd(t,r,n)}}function wq(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",o=>{c9(o,r,n,t)}),e.on("message",()=>{pd(t,r,n)}),e.on("error",o=>{it(o,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:Ye,message:"internal_error"}),t.end())}),e}function Aq(e,t,n){const r={[Ja]:"anthropic",[ir]:n,[qe]:"auto.ai.anthropic"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const o=e[0];o.tools&&Array.isArray(o.tools)&&(r[Qa]=JSON.stringify(o.tools)),r[Kt]=o.model??"unknown","temperature"in o&&(r[sd]=o.temperature),"top_p"in o&&(r[ld]=o.top_p),"stream"in o&&(r[jm]=o.stream),"top_k"in o&&(r[q4]=o.top_k),"frequency_penalty"in o&&(r[ad]=o.frequency_penalty),"max_tokens"in o&&(r[Hm]=o.max_tokens)}else t==="models.retrieve"||t==="models.get"?r[Kt]=e[0]:r[Kt]="unknown";return r}function Xm(e,t,n){const r=yq(t);_q(e,r,n),"prompt"in t&&e.setAttributes({[$z]:JSON.stringify(t.prompt)})}function kq(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[Tr]:t.content.map(r=>r.text).filter(r=>!!r).join("")});const n=[];for(const r of t.content)(r.type==="tool_use"||r.type==="server_tool_use")&&n.push(r);n.length>0&&e.setAttributes({[yo]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[Tr]:t.completion}),"input_tokens"in t&&e.setAttributes({[Tr]:JSON.stringify(t.input_tokens)})}function Cq(e,t){"id"in t&&"model"in t&&(e.setAttributes({[cd]:t.id,[ts]:t.model}),"usage"in t&&t.usage&&Zz(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}function Nq(e,t,n){if(!(!t||typeof t!="object")){if("type"in t&&t.type==="error"){gq(e,t);return}n&&kq(e,t),Cq(e,t)}}function d9(e,t,n){throw it(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:Ye,message:"internal_error"}),t.end()),e}function Iq(e,t,n,r,o,i,s,a,c,d,f){const u=o[Kt]??"unknown",p={name:`${i} ${u}`,op:`gen_ai.${i}`,attributes:o};if(d&&!f){let m;const _=Kr(p,y=>(m=e.apply(n,r),c.recordInputs&&a&&Xm(y,a,Jr(c.enableTruncation)),(async()=>{try{const g=await m;return Tq(g,y,c.recordOutputs??!1)}catch(g){return d9(g,y,s)}})()));return md(m,_,"auto.ai.anthropic")}else return Kr(p,m=>{try{c.recordInputs&&a&&Xm(m,a,Jr(c.enableTruncation));const _=t.apply(n,r);return wq(_,m,c.recordOutputs??!1)}catch(_){return d9(_,m,s)}})}function Oq(e,t,n,r,o){return new Proxy(e,{apply(i,s,a){const c=n.operation||"unknown",d=Aq(a,t,c),f=d[Kt]??"unknown",u=typeof a[0]=="object"?a[0]:void 0,p=!!u?.stream,m=n.streaming===!0;if(p||m)return Iq(e,i,r,a,d,c,t,u,o,p,m);let _;const y=Er({name:`${c} ${f}`,op:`gen_ai.${c}`,attributes:d},g=>(_=i.apply(r,a),o.recordInputs&&u&&Xm(g,u,Jr(o.enableTruncation)),_.then(h=>(Nq(g,h,o.recordOutputs),h),h=>{throw it(h,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}}),h})));return md(_,y,"auto.ai.anthropic")}})}function u9(e,t="",n){return new Proxy(e,{get(r,o){const i=r[o],s=Km(t,String(o)),a=mq[s];return typeof i=="function"&&a?Oq(i,s,a,r,n):typeof i=="function"?i.bind(r):i&&typeof i=="object"?u9(i,s,n):i}})}function Rq(e,t){return u9(e,"",si(t))}const xq={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},Pq="google_genai";function Mq(e,t){const n=e?.promptFeedback;if(n?.blockReason){const r=n.blockReasonMessage??n.blockReason;return t.setStatus({code:Ye,message:"internal_error"}),it(`Content blocked: ${r}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}function Lq(e,t){typeof e.responseId=="string"&&(t.responseId=e.responseId),typeof e.modelVersion=="string"&&(t.responseModel=e.modelVersion);const n=e.usageMetadata;n&&(typeof n.promptTokenCount=="number"&&(t.promptTokens=n.promptTokenCount),typeof n.candidatesTokenCount=="number"&&(t.completionTokens=n.candidatesTokenCount),typeof n.totalTokenCount=="number"&&(t.totalTokens=n.totalTokenCount))}function Dq(e,t,n){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const r of e.candidates??[]){r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason);for(const o of r?.content?.parts??[])n&&o.text&&t.responseTexts.push(o.text),o.functionCall&&t.toolCalls.push({type:"function",id:o.functionCall.id,name:o.functionCall.name,arguments:o.functionCall.args})}}function Fq(e,t,n,r){!e||Mq(e,r)||(Lq(e,t),Dq(e,t,n))}async function*Bq(e,t,n){const r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const o of e)Fq(o,r,n,t),yield o}finally{pd(t,r,n)}}function nl(e,t="user"){return typeof e=="string"?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(n=>nl(n,t)):typeof e!="object"||!e?[]:"role"in e&&typeof e.role=="string"?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]}function f9(e,t){if("model"in e&&typeof e.model=="string")return e.model;if(t&&typeof t=="object"){const n=t;if("model"in n&&typeof n.model=="string")return n.model;if("modelVersion"in n&&typeof n.modelVersion=="string")return n.modelVersion}return"unknown"}function Uq(e){const t={};return"temperature"in e&&typeof e.temperature=="number"&&(t[sd]=e.temperature),"topP"in e&&typeof e.topP=="number"&&(t[ld]=e.topP),"topK"in e&&typeof e.topK=="number"&&(t[q4]=e.topK),"maxOutputTokens"in e&&typeof e.maxOutputTokens=="number"&&(t[Hm]=e.maxOutputTokens),"frequencyPenalty"in e&&typeof e.frequencyPenalty=="number"&&(t[ad]=e.frequencyPenalty),"presencePenalty"in e&&typeof e.presencePenalty=="number"&&(t[zm]=e.presencePenalty),t}function jq(e,t,n){const r={[Ja]:Pq,[ir]:e,[qe]:"auto.ai.google_genai"};if(t){if(r[Kt]=f9(t,n),"config"in t&&typeof t.config=="object"&&t.config){const o=t.config;if(Object.assign(r,Uq(o)),"tools"in o&&Array.isArray(o.tools)){const i=o.tools.flatMap(s=>s.functionDeclarations);r[Qa]=JSON.stringify(i)}}}else r[Kt]=f9({},n);return r}function p9(e,t,n,r){if(n){const i=t.contents;i!=null&&e.setAttribute(Wm,typeof i=="string"?i:JSON.stringify(i));return}const o=[];if("config"in t&&t.config&&typeof t.config=="object"&&"systemInstruction"in t.config&&t.config.systemInstruction&&o.push(...nl(t.config.systemInstruction,"system")),"history"in t&&o.push(...nl(t.history,"user")),"contents"in t&&o.push(...nl(t.contents,"user")),"message"in t&&o.push(...nl(t.message,"user")),Array.isArray(o)&&o.length){const{systemInstructions:i,filteredMessages:s}=tl(o);i&&e.setAttribute(Za,i);const a=Array.isArray(s)?s.length:0;e.setAttributes({[ii]:a,[ns]:r?is(s):os(s)})}}function Hq(e,t,n){if(!(!t||typeof t!="object")){if(t.modelVersion&&e.setAttribute(ts,t.modelVersion),t.usageMetadata&&typeof t.usageMetadata=="object"){const r=t.usageMetadata;typeof r.promptTokenCount=="number"&&e.setAttributes({[ri]:r.promptTokenCount}),typeof r.candidatesTokenCount=="number"&&e.setAttributes({[oi]:r.candidatesTokenCount}),typeof r.totalTokenCount=="number"&&e.setAttributes({[go]:r.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){const r=t.candidates.map(o=>o.content?.parts&&Array.isArray(o.content.parts)?o.content.parts.map(i=>typeof i.text=="string"?i.text:"").filter(i=>i.length>0).join(""):"").filter(o=>o.length>0);r.length>0&&e.setAttributes({[Tr]:r.join("")})}if(n&&t.functionCalls){const r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[yo]:JSON.stringify(r)})}}}function zq(e,t,n,r,o){const i=n.operation==="embeddings";return new Proxy(e,{apply(s,a,c){const d=n.operation||"unknown",f=c[0],u=jq(d,f,r),p=u[Kt]??"unknown";return n.streaming?Kr({name:`${d} ${p}`,op:`gen_ai.${d}`,attributes:u},async m=>{try{o.recordInputs&&f&&p9(m,f,i,Jr(o.enableTruncation));const _=await s.apply(r,c);return Bq(_,m,!!o.recordOutputs)}catch(_){throw m.setStatus({code:Ye,message:"internal_error"}),it(_,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),m.end(),_}}):Er({name:`${d} ${p}`,op:`gen_ai.${d}`,attributes:u},m=>(o.recordInputs&&f&&p9(m,f,i,Jr(o.enableTruncation)),um(()=>s.apply(r,c),_=>{it(_,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},_=>{i||Hq(m,_,o.recordOutputs)})))}})}function Jm(e,t="",n){return new Proxy(e,{get:(r,o,i)=>{const s=Reflect.get(r,o,i),a=Km(t,String(o)),c=xq[a];if(typeof s=="function"&&c){const d=c.operation?zq(s,a,c,r,n):s.bind(r);return c.proxyResultPath?function(...f){const u=d(...f);return u&&typeof u=="object"?Jm(u,c.proxyResultPath,n):u}:d}return typeof s=="function"?s.bind(r):s&&typeof s=="object"?Jm(s,a,n):s}})}function qq(e,t){return Jm(e,"",si(t))}const ss="auto.ai.langchain",Wq={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},Wn=(e,t,n)=>{n!=null&&(e[t]=n)},On=(e,t,n)=>{const r=Number(n);Number.isNaN(r)||(e[t]=r)};function ai(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function as(e){if(Array.isArray(e))try{const t=e.map(n=>n&&typeof n=="object"&&rs(n)?el(n):n);return JSON.stringify(t)}catch{return String(e)}return ai(e)}function rl(e){const t=e.toLowerCase();return Wq[t]??t}function m9(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function _9(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function Zm(e){return e.map(t=>{const n=t._getType;if(typeof n=="function"){const o=n.call(t);return{role:rl(o),content:as(t.content)}}if(t.lc===1&&t.kwargs){const o=t.id,i=Array.isArray(o)&&o.length>0?o[o.length-1]:"",s=typeof i=="string"?m9(i):"user";return{role:rl(s),content:as(t.kwargs?.content)}}if(t.type){const o=String(t.type).toLowerCase();return{role:rl(o),content:as(t.content)}}if(t.role)return{role:rl(String(t.role)),content:as(t.content)};const r=t.constructor?.name;return r&&r!=="Object"?{role:rl(m9(r)),content:as(t.content)}:{role:"user",content:as(t.content)}})}function Gq(e,t,n){const r={},o="kwargs"in e?e.kwargs:void 0,i=t?.temperature??n?.ls_temperature??o?.temperature;On(r,sd,i);const s=t?.max_tokens??n?.ls_max_tokens??o?.max_tokens;On(r,Hm,s);const a=t?.top_p??o?.top_p;On(r,ld,a);const c=t?.frequency_penalty;On(r,ad,c);const d=t?.presence_penalty;return On(r,zm,d),t&&"stream"in t&&Wn(r,jm,!!t.stream),r}function h9(e,t,n,r,o){return{[Ja]:ai(e??"langchain"),[ir]:"chat",[Kt]:ai(t),[qe]:ss,...Gq(n,r,o)}}function Yq(e,t,n,r,o,i){const s=i?.ls_provider,a=o?.model??i?.ls_model_name??"unknown",c=h9(s,a,e,o,i);if(n&&Array.isArray(t)&&t.length>0){Wn(c,ii,t.length);const d=t.map(f=>({role:"user",content:f}));Wn(c,ns,r?is(d):os(d))}return c}function Kq(e,t,n,r,o,i){const s=i?.ls_provider??e.id?.[2],a=o?.model??i?.ls_model_name??"unknown",c=h9(s,a,e,o,i);if(n&&Array.isArray(t)&&t.length>0){const d=Zm(t.flat()),{systemInstructions:f,filteredMessages:u}=tl(d);f&&Wn(c,Za,f);const p=Array.isArray(u)?u.length:0;Wn(c,ii,p),Wn(c,ns,r?is(u):os(u))}return c}function Xq(e,t){const n=[],r=e.flat();for(const o of r){const s=o.message?.tool_calls;if(Array.isArray(s)&&s.length>0)n.push(...s);else{const a=o.message?.content;if(Array.isArray(a))for(const c of a){const d=c;d.type==="tool_use"&&n.push(d)}}}n.length>0&&Wn(t,yo,ai(n))}function Jq(e,t){if(!e)return;const n=e.tokenUsage,r=e.usage;if(n)On(t,ri,n.promptTokens),On(t,oi,n.completionTokens),On(t,go,n.totalTokens);else if(r){On(t,ri,r.input_tokens),On(t,oi,r.output_tokens);const o=Number(r.input_tokens),i=Number(r.output_tokens),s=(Number.isNaN(o)?0:o)+(Number.isNaN(i)?0:i);s>0&&On(t,go,s),r.cache_creation_input_tokens!==void 0&&On(t,Az,r.cache_creation_input_tokens),r.cache_read_input_tokens!==void 0&&On(t,kz,r.cache_read_input_tokens)}}function Zq(e,t){if(!e)return;const n={};if(Array.isArray(e.generations)){const d=e.generations.flat().map(f=>f.generationInfo?.finish_reason?f.generationInfo.finish_reason:f.generation_info?.finish_reason?f.generation_info.finish_reason:null).filter(f=>typeof f=="string");if(d.length>0&&Wn(n,es,ai(d)),Xq(e.generations,n),t){const f=e.generations.flat().map(u=>u.text??u.message?.content).filter(u=>typeof u=="string");f.length>0&&Wn(n,Tr,ai(f))}}Jq(e.llmOutput,n);const r=e.llmOutput,i=e.generations?.[0]?.[0]?.message,s=r?.model_name??r?.model??i?.response_metadata?.model_name;s&&Wn(n,ts,s);const a=r?.id??i?.id;a&&Wn(n,cd,a);const c=r?.stop_reason??i?.response_metadata?.finish_reason;return c&&Wn(n,Sz,ai(c)),n}function Qm(e){const t={},n=e?.lc_agent_name;return typeof n=="string"&&(t[dd]=n),t}function Qq(e){const t=e?.invocation_params?.tools??e?.options?.tools;if(!Array.isArray(t)||t.length===0)return;const n=t.map(r=>{const o=r.function;return{type:"function",name:r.name??o?.name??"",description:r.description??o?.description}});return JSON.stringify(n)}function Vm(e={}){const{recordInputs:t,recordOutputs:n}=si(e),r=Jr(e.enableTruncation),o=new Map,i=a=>{const c=o.get(a);c?.isRecording()&&(c.end(),o.delete(a))},s={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(a,c,d,f,u,p,m,_){const y=_9(p),g=Yq(a,c,t,r,y,m),h=g[Kt],b=g[ir];Kr({name:`${b} ${h}`,op:"gen_ai.chat",attributes:{...Qm(m),...g,[tt]:"gen_ai.chat"}},v=>(o.set(d,v),v))},handleChatModelStart(a,c,d,f,u,p,m,_){const y=_9(p),g=Kq(a,c,t,r,y,m),h=Qq(u);h&&(g[Qa]=h);const b=g[Kt],v=g[ir];Kr({name:`${v} ${b}`,op:"gen_ai.chat",attributes:{...Qm(m),...g,[tt]:"gen_ai.chat"}},S=>(o.set(d,S),S))},handleLLMEnd(a,c,d,f,u){const p=o.get(c);if(p?.isRecording()){const m=Zq(a,n);m&&p.setAttributes(m),i(c)}},handleLLMError(a,c){const d=o.get(c);d?.isRecording()&&(d.setStatus({code:Ye,message:"internal_error"}),i(c)),it(a,{mechanism:{handled:!1,type:`${ss}.llm_error_handler`}})},handleChainStart(a,c,d,f,u,p,m,_){if(p?.__sentry_langgraph__)return;const y=_||a.name||"unknown_chain",g={[qe]:"auto.ai.langchain","langchain.chain.name":y};t&&(g["langchain.chain.inputs"]=JSON.stringify(c)),Kr({name:`chain ${y}`,op:"gen_ai.invoke_agent",attributes:{...g,[tt]:"gen_ai.invoke_agent"}},h=>(o.set(d,h),h))},handleChainEnd(a,c){const d=o.get(c);d?.isRecording()&&(n&&d.setAttributes({"langchain.chain.outputs":JSON.stringify(a)}),i(c))},handleChainError(a,c){const d=o.get(c);d?.isRecording()&&(d.setStatus({code:Ye,message:"internal_error"}),i(c)),it(a,{mechanism:{handled:!1,type:`${ss}.chain_error_handler`}})},handleToolStart(a,c,d,f,u,p,m){if(p?.__sentry_langgraph__)return;const _=m||a.name||"unknown_tool",y={...Qm(p),[qe]:ss,[ir]:"execute_tool",[X4]:_};t&&(y[J4]=c),Kr({name:`execute_tool ${_}`,op:"gen_ai.execute_tool",attributes:{...y,[tt]:"gen_ai.execute_tool"}},g=>(o.set(d,g),g))},handleToolEnd(a,c){const d=o.get(c);if(d?.isRecording()){if(n){const f=a,u=f&&typeof f=="object"&&"content"in f?f.content:a;d.setAttributes({[Z4]:typeof u=="string"?u:JSON.stringify(u)})}i(c)}},handleToolError(a,c){const d=o.get(c);d?.isRecording()&&(d.setStatus({code:Ye,message:"internal_error"}),i(c)),it(a,{mechanism:{handled:!1,type:`${ss}.tool_error_handler`}})},copy(){return s},toJSON(){return{lc:1,type:"not_implemented",id:s.lc_id}},toJSONNotImplemented(){return{lc:1,type:"not_implemented",id:s.lc_id}}};return s}const e0="auto.ai.langgraph";function Vq(e){const t=e[0];if(typeof t!="object"||!t||!("llm"in t)||!t.llm||typeof t.llm!="object")return null;const n=t.llm;return typeof n.modelName!="string"&&typeof n.model!="string"?null:n}function eW(e){const t=e[0];return typeof t=="object"&&t&&"name"in t&&typeof t.name=="string"?t.name:null}function tW(e,t,n){const r="__sentry_tool_wrapped__";for(const o of e){if(!o||typeof o!="object")continue;const i=o,s=i.invoke;if(typeof s!="function"||Object.prototype.hasOwnProperty.call(i,r))continue;const a=typeof i.name=="string"?i.name:"unknown_tool",c=typeof i.description=="string"?i.description:void 0,d=new Proxy(s,{apply(f,u,p){const m={[qe]:e0,[tt]:K4,[ir]:"execute_tool",[X4]:a,[Iz]:"function"},y=p[1]?.metadata?.lc_agent_name??n;typeof y=="string"&&(m[dd]=y),c&&(m[Oz]=c);const g=p[0];if(typeof g=="object"&&g&&("id"in g&&typeof g.id=="string"&&(m[Nz]=g.id),t.recordInputs)){const h="args"in g&&typeof g.args=="object"?g.args:g;try{m[J4]=JSON.stringify(h)}catch{}}return Er({op:K4,name:`execute_tool ${a}`,attributes:m},async h=>{try{const b=await Reflect.apply(f,u,p);if(t.recordOutputs)try{const v=b,S=v&&typeof v=="object"&&"content"in v?v.content:b;h.setAttribute(Z4,typeof S=="string"?S:JSON.stringify(S))}catch{}return b}catch(b){throw h.setStatus({code:Ye,message:"internal_error"}),it(b,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),b}})}});i.invoke=d,Object.defineProperty(i,r,{value:!0,enumerable:!1})}return e}function nW(e){if(!e||e.length===0)return null;const t=[];for(const n of e)if(n&&typeof n=="object"){const r=n.tool_calls;r&&Array.isArray(r)&&t.push(...r)}return t.length>0?t:null}function rW(e){const t=e;let n=0,r=0,o=0;if(t.usage_metadata&&typeof t.usage_metadata=="object"){const i=t.usage_metadata;return typeof i.input_tokens=="number"&&(n=i.input_tokens),typeof i.output_tokens=="number"&&(r=i.output_tokens),typeof i.total_tokens=="number"&&(o=i.total_tokens),{inputTokens:n,outputTokens:r,totalTokens:o}}if(t.response_metadata&&typeof t.response_metadata=="object"){const i=t.response_metadata;if(i.tokenUsage&&typeof i.tokenUsage=="object"){const s=i.tokenUsage;typeof s.promptTokens=="number"&&(n=s.promptTokens),typeof s.completionTokens=="number"&&(r=s.completionTokens),typeof s.totalTokens=="number"&&(o=s.totalTokens)}}return{inputTokens:n,outputTokens:r,totalTokens:o}}function oW(e,t){const n=t;if(n.response_metadata&&typeof n.response_metadata=="object"){const r=n.response_metadata;r.model_name&&typeof r.model_name=="string"&&e.setAttribute(ts,r.model_name),r.finish_reason&&typeof r.finish_reason=="string"&&e.setAttribute(es,[r.finish_reason])}}function iW(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;const t=e.builder?.nodes?.tools?.runnable?.tools;return!t||!Array.isArray(t)||t.length===0?null:t.map(n=>({name:n.lc_kwargs?.name,description:n.lc_kwargs?.description,schema:n.lc_kwargs?.schema}))}function sW(e,t,n){const o=n?.messages;if(!o||!Array.isArray(o))return;const i=t?.length??0,s=o.length>i?o.slice(i):[];if(s.length===0)return;const a=nW(s);a&&e.setAttribute(yo,JSON.stringify(a));const c=Zm(s);e.setAttribute(Tr,JSON.stringify(c));let d=0,f=0,u=0;for(const p of s){const m=rW(p);d+=m.inputTokens,f+=m.outputTokens,u+=m.totalTokens,oW(e,p)}d>0&&e.setAttribute(ri,d),f>0&&e.setAttribute(oi,f),u>0&&e.setAttribute(go,u)}function aW(e,t){if(!e)return[t];if(Array.isArray(e))return e.includes(t)?e:[...e,t];const n=e;return typeof n.addHandler=="function"&&(Array.isArray(n.handlers)&&n.handlers.includes(t)||n.addHandler(t)),e}let t0=!1;const _d="__sentry_patched__";function lW(e,t){if(Object.prototype.hasOwnProperty.call(e,_d))return e;const n=Vm(t),r=new Proxy(e,{apply(o,i,s){return t0?Reflect.apply(o,i,s):Er({op:"gen_ai.create_agent",name:"create_agent",attributes:{[qe]:e0,[tt]:"gen_ai.create_agent",[ir]:"create_agent"}},a=>{try{const c=Reflect.apply(o,i,s),d=s.length>0?s[0]:{};d?.name&&typeof d.name=="string"&&(a.setAttribute(dd,d.name),a.updateName(`create_agent ${d.name}`));const f=c.invoke;return f&&typeof f=="function"&&(c.invoke=g9(f.bind(c),c,d,t,void 0,n)),c}catch(c){throw a.setStatus({code:Ye,message:"internal_error"}),it(c,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),c}})}});return Object.defineProperty(r,_d,{value:!0,enumerable:!1}),r}function g9(e,t,n,r,o,i){return new Proxy(e,{apply(s,a,c){const d=o?.modelName??o?.model;return Er({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[qe]:e0,[tt]:Cz,[ir]:"invoke_agent"}},async f=>{try{const u=n?.name;u&&typeof u=="string"&&(f.setAttribute(wz,u),f.setAttribute(dd,u),f.updateName(`invoke_agent ${u}`)),d&&f.setAttribute(Kt,d);const _=(c.length>1?c[1]:void 0)?.configurable?.thread_id;if(_&&typeof _=="string"&&f.setAttribute(qm,_),i){const S=c[1]??{};c[1]=S;const N=S.metadata??{};S.metadata={...N,__sentry_langgraph__:!0,...typeof u=="string"?{lc_agent_name:u}:{}},S.callbacks=aW(S.callbacks,i)}const y=iW(t);y&&f.setAttribute(Qa,JSON.stringify(y));const g=r.recordInputs,h=r.recordOutputs,b=c.length>0?c[0]?.messages??[]:[];if(b&&g){const S=Zm(b),{systemInstructions:N,filteredMessages:A}=tl(S);N&&f.setAttribute(Za,N);const $=Jr(r.enableTruncation),H=Array.isArray(A)?A.length:0;f.setAttributes({[ns]:$?is(A):os(A),[ii]:H})}const v=await Reflect.apply(s,a,c);return h&&sW(f,b??null,v),v}catch(u){throw f.setStatus({code:Ye,message:"internal_error"}),it(u,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),u}})}})}function cW(e,t){if(Object.prototype.hasOwnProperty.call(e,_d))return e;const n=si(t),r=Vm(n),o=new Proxy(e,{apply(i,s,a){const c=Vq(a),d=eW(a),f=a[0];f&&Array.isArray(f.tools)&&f.tools.length>0&&tW(f.tools,n,d??void 0),t0=!0;let u;try{u=Reflect.apply(i,s,a)}finally{t0=!1}const p=u.invoke;if(p&&typeof p=="function"){const m={};d&&(m.name=d),u.invoke=g9(p.bind(u),u,m,n,c,r)}return u}});return Object.defineProperty(o,_d,{value:!0,enumerable:!1}),o}function dW(e,t){return e.compile=lW(e.compile,si(t)),e}function uW(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function fW(){return"npm"}function pW(){return!uW()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function ol(){return typeof window<"u"&&(!pW()||mW())}function mW(){return Se.process?.type==="renderer"}function _W(e,t,n){const r=n.getOptions(),o=n.getDsn(),i=r.tunnel,s=qa(r._metadata),a={sent_at:new Date().toISOString(),...hW(t)&&{trace:t},...s&&{sdk:s},...!!i&&o&&{dsn:vr(o)}},c=r.sendDefaultPii?"auto":"never",d=[{type:"span",item_count:e.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...ol()&&{ingest_settings:{infer_ip:c,infer_user_agent:c}},items:e}];return zn(a,[d])}function hW(e){return!!e.trace_id&&!!e.public_key}function gW(e){let t=156;if(t+=e.name.length*2,t+=Ev(e.attributes),e.links&&e.links.length>0){const r=e.links[0]?.attributes,o=100+(r?Ev(r):0);t+=o*e.links.length}return t}const y9=1e3,yW=5e6;class bW{constructor(t,n){this._traceBuckets=new Map,this._client=t;const{maxSpanLimit:r,flushInterval:o,maxTraceWeightInBytes:i}=n??{};this._maxSpanLimit=r&&r>0&&r<=y9?r:y9,this._flushInterval=o&&o>0?o:5e3,this._maxTraceWeight=i&&i>0?i:yW,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(s=>{clearTimeout(s.timeout)}),this._traceBuckets.clear()})}add(t){const n=t.trace_id;let r=this._traceBuckets.get(n);r||(r={spans:new Set,size:0,timeout:Jc(setTimeout(()=>{this.flush(n)},this._flushInterval))},this._traceBuckets.set(n,r)),r.spans.add(t),r.size+=gW(t),(r.spans.size>=this._maxSpanLimit||r.size>=this._maxTraceWeight)&&this.flush(n)}drain(){this._traceBuckets.size&&(ue&&R.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((t,n)=>{this.flush(n)}))}flush(t){const n=this._traceBuckets.get(t);if(!n)return;if(!n.spans.size){this._removeTrace(t);return}const r=Array.from(n.spans),o=r[0]?._segmentSpan;if(!o){ue&&R.warn("No segment span reference found on span JSON, cannot compute DSC"),this._removeTrace(t);return}const i=Hn(o),s=r.map(c=>{const{_segmentSpan:d,...f}=c;return f}),a=_W(s,i,this._client);ue&&R.log(`Sending span envelope for trace ${t} with ${s.length} spans`),this._client.sendEnvelope(a).then(null,c=>{ue&&R.error("Error while sending streamed span envelope:",c)}),this._removeTrace(t)}_removeTrace(t){const n=this._traceBuckets.get(t);n&&clearTimeout(n.timeout),this._traceBuckets.delete(t)}}function b9(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const ls=Se;function vW(){return"history"in ls&&!!ls.history}function EW(){if(!("fetch"in ls))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function n0(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function v9(){if(typeof EdgeRuntime=="string")return!0;if(!EW())return!1;if(n0(ls.fetch))return!0;let e=!1;const t=ls.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=n0(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){ue&&R.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function $W(){return"ReportingObserver"in ls}function r0(e,t){const n="fetch",r=uo(n,e);return fo(n,()=>E9(void 0,t)),r}function SW(e){const t="fetch-body-resolved",n=uo(t,e);return fo(t,()=>E9(wW)),n}function E9(e,t=!1){t&&!v9()||Wt(Se,"fetch",function(n){return function(...r){const o=new Error,{method:i,url:s}=AW(r),a={args:r,fetchData:{method:i,url:s},startTimestamp:at()*1e3,virtualError:o,headers:kW(r)};return e||Un("fetch",{...a}),n.apply(Se,r).then(async c=>(e?e(c):Un("fetch",{...a,endTimestamp:at()*1e3,response:c}),c),c=>{Un("fetch",{...a,endTimestamp:at()*1e3,error:c}),Br(c)&&c.stack===void 0&&(c.stack=o.stack,Gt(c,"framesToPop",1));const f=fe()?.getOptions().enhanceFetchErrorMessages??"always";if(f!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const m=new URL(a.fetchData.url).host;f==="always"?c.message=`${c.message} (${m})`:Gt(c,"__sentry_fetch_url_host__",m)}catch{}throw c})}})}async function TW(e,t){if(e?.body){const n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(s),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(s)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}function wW(e){let t;try{t=e.clone()}catch{return}TW(t,()=>{Un("fetch-body-resolved",{endTimestamp:at()*1e3,response:e})})}function hd(e,t){return!!e&&typeof e=="object"&&!!e[t]}function $9(e){return typeof e=="string"?e:e?hd(e,"url")?e.url:e.toString?e.toString():"":""}function AW(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:$9(n),method:hd(r,"method")?String(r.method).toUpperCase():Jp(n)&&hd(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:$9(t),method:hd(t,"method")?String(t.method).toUpperCase():"GET"}}function kW(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Jp(t))return new Headers(t.headers)}catch{}}function CW(e){const t=e.constructor?.name??"";return t.includes("OpenAI")?"openai":t.includes("Google")?"google_genai":t.includes("Mistral")?"mistralai":t.includes("Vertex")?"google_vertexai":t.includes("Bedrock")?"aws_bedrock":t.includes("Ollama")?"ollama":t.includes("Cloudflare")?"cloudflare":t.includes("Cohere")?"cohere":"langchain"}function NW(e){const t=e??{},n={[qe]:ss,[tt]:Y4,[ir]:"embeddings",[Kt]:t.model??"unknown"};return n[Ja]=CW(t),"dimensions"in t&&(n[G4]=t.dimensions),"encodingFormat"in t&&(n[W4]=t.encodingFormat),n}function S9(e,t={}){const{recordInputs:n}=si(t);return new Proxy(e,{apply(r,o,i){const s=NW(o),a=s[Kt]||"unknown";if(n){const c=i[0];c!=null&&(s[Wm]=typeof c=="string"?c:JSON.stringify(c))}return Er({name:`embeddings ${a}`,op:Y4,attributes:s},()=>Reflect.apply(r,o,i).then(void 0,c=>{throw it(c,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),c}))}})}function IW(e,t){const n=e;return typeof n.embedQuery=="function"&&(n.embedQuery=S9(n.embedQuery,t)),typeof n.embedDocuments=="function"&&(n.embedDocuments=S9(n.embedDocuments,t)),e}const sr=Se,lt=sr.document,il=sr.navigator,T9="Report a Bug",OW="Cancel",RW="Send Bug Report",xW="Confirm",PW="Report a Bug",MW="your.email@example.org",LW="Email",DW="What's the bug? What did you expect?",FW="Description",BW="Your Name",UW="Name",jW="Thank you for your report!",HW="(required)",zW="Add a screenshot",qW="Remove screenshot",WW="Highlight",GW="Hide",YW="Remove",w9="Unable to submit feedback with empty message",A9="No client setup, cannot send feedback.",k9="Unable to determine if Feedback was correctly sent.",C9="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",N9="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",KW="widget",XW="api",JW=5e3,ZW={ERROR_EMPTY_MESSAGE:w9,ERROR_NO_CLIENT:A9,ERROR_TIMEOUT:k9,ERROR_FORBIDDEN:C9,ERROR_GENERIC:N9};function gd(e,t){return t?.[e]??ZW[e]}function I9(e,t){return new Error(gd(e,t))}const O9=(e,t={includeReplay:!0})=>{const n=t.errorMessages;if(!e.message)throw I9("ERROR_EMPTY_MESSAGE",n);const r=fe();if(!r)throw I9("ERROR_NO_CLIENT",n);e.tags&&Object.keys(e.tags).length&&Pe().setTags(e.tags);const o=U4({source:XW,url:Go(),...e},t);return new Promise((i,s)=>{const a=setTimeout(()=>{c(),s(gd("ERROR_TIMEOUT",n))},3e4),c=r.on("afterSendEvent",(d,f)=>{if(d.event_id===o)return clearTimeout(a),c(),f?.statusCode&&f.statusCode>=200&&f.statusCode<300?i(o):f?.statusCode===403?s(gd("ERROR_FORBIDDEN",n)):s(gd("ERROR_GENERIC",n))})})},yd=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function QW(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(il.userAgent)||/Macintosh/i.test(il.userAgent)&&il.maxTouchPoints&&il.maxTouchPoints>1||!isSecureContext)}function bd(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function VW(e){const t=lt.createElement("style");return t.textContent=`
47
+ .widget__actor {
48
+ position: fixed;
49
+ z-index: var(--z-index);
50
+ margin: var(--page-margin);
51
+ inset: var(--actor-inset);
52
+
53
+ display: flex;
54
+ align-items: center;
55
+ gap: 8px;
56
+ padding: 16px;
57
+
58
+ font-family: inherit;
59
+ font-size: var(--font-size);
60
+ font-weight: 600;
61
+ line-height: 1.14em;
62
+ text-decoration: none;
63
+
64
+ background: var(--actor-background, var(--background));
65
+ border-radius: var(--actor-border-radius, 1.7em/50%);
66
+ border: var(--actor-border, var(--border));
67
+ box-shadow: var(--actor-box-shadow, var(--box-shadow));
68
+ color: var(--actor-color, var(--foreground));
69
+ fill: var(--actor-color, var(--foreground));
70
+ cursor: pointer;
71
+ opacity: 1;
72
+ transition: transform 0.2s ease-in-out;
73
+ transform: translate(0, 0) scale(1);
74
+ }
75
+ .widget__actor[aria-hidden="true"] {
76
+ opacity: 0;
77
+ pointer-events: none;
78
+ visibility: hidden;
79
+ transform: translate(0, 16px) scale(0.98);
80
+ }
81
+
82
+ .widget__actor:hover {
83
+ background: var(--actor-hover-background, var(--background));
84
+ filter: var(--interactive-filter);
85
+ }
86
+
87
+ .widget__actor svg {
88
+ width: 1.14em;
89
+ height: 1.14em;
90
+ }
91
+
92
+ @media (max-width: 600px) {
93
+ .widget__actor span {
94
+ display: none;
95
+ }
96
+ }
97
+ `,e&&t.setAttribute("nonce",e),t}function Rn(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const cs=20,eG="http://www.w3.org/2000/svg";function tG(){const e=a=>sr.document.createElementNS(eG,a),t=Rn(e("svg"),{width:`${cs}`,height:`${cs}`,viewBox:`0 0 ${cs} ${cs}`,fill:"var(--actor-color, var(--foreground))"}),n=Rn(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Rn(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const o=e("defs"),i=Rn(e("clipPath"),{id:"clip0_57_80"}),s=Rn(e("rect"),{width:`${cs}`,height:`${cs}`,fill:"white"});return i.appendChild(s),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(s),t}function nG({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const o=lt.createElement("button");if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=t||e||T9,o.appendChild(tG()),e){const s=lt.createElement("span");s.appendChild(lt.createTextNode(e)),o.appendChild(s)}const i=VW(r);return{el:o,appendToDom(){n.appendChild(i),n.appendChild(o)},removeFromDom(){o.remove(),i.remove()},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}const R9="rgba(88, 74, 192, 1)",rG={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:R9,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},x9={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:R9,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function P9(e){return`
98
+ --foreground: ${e.foreground};
99
+ --background: ${e.background};
100
+ --accent-foreground: ${e.accentForeground};
101
+ --accent-background: ${e.accentBackground};
102
+ --success-color: ${e.successColor};
103
+ --error-color: ${e.errorColor};
104
+ --border: ${e.border};
105
+ --box-shadow: ${e.boxShadow};
106
+ --outline: ${e.outline};
107
+ --interactive-filter: ${e.interactiveFilter};
108
+ `}function M9({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const o=lt.createElement("style");return o.textContent=`
109
+ :host {
110
+ --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
111
+ --font-size: 14px;
112
+ --z-index: 100000;
113
+
114
+ --page-margin: 16px;
115
+ --inset: auto 0 0 auto;
116
+ --actor-inset: var(--inset);
117
+
118
+ font-family: var(--font-family);
119
+ font-size: var(--font-size);
120
+
121
+ ${e!=="system"?`color-scheme: only ${e};`:""}
122
+
123
+ ${P9(e==="dark"?{...x9,...t}:{...rG,...n})}
124
+ }
125
+
126
+ ${e==="system"?`
127
+ @media (prefers-color-scheme: dark) {
128
+ :host {
129
+ color-scheme: only dark;
130
+
131
+ ${P9({...x9,...t})}
132
+ }
133
+ }`:""}
134
+ `,r&&o.setAttribute("nonce",r),o}const L9=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>(({id:o="sentry-feedback",autoInject:i=!0,showBranding:s=!0,isEmailRequired:a=!1,isNameRequired:c=!1,showEmail:d=!0,showName:f=!0,enableScreenshot:u=!0,useSentryUser:p={email:"email",name:"username"},tags:m,styleNonce:_,scriptNonce:y,colorScheme:g="system",themeLight:h={},themeDark:b={},addScreenshotButtonLabel:v=zW,cancelButtonLabel:S=OW,confirmButtonLabel:N=xW,emailLabel:A=LW,emailPlaceholder:$=MW,formTitle:H=PW,isRequiredLabel:q=HW,messageLabel:k=FW,messagePlaceholder:O=DW,nameLabel:I=UW,namePlaceholder:D=BW,removeScreenshotButtonLabel:x=qW,submitButtonLabel:z=RW,successMessageText:B=jW,triggerLabel:F=T9,triggerAriaLabel:M="",highlightToolText:K=WW,hideToolText:W=GW,removeHighlightText:X=YW,errorEmptyMessageText:oe=w9,errorNoClientText:ce=A9,errorTimeoutText:ne=k9,errorForbiddenText:ke=C9,errorGenericText:J=N9,onFormOpen:de,onFormClose:ve,onSubmitSuccess:$e,onSubmitError:Re,onFormSubmitted:He}={})=>{const Ce={id:o,autoInject:i,showBranding:s,isEmailRequired:a,isNameRequired:c,showEmail:d,showName:f,enableScreenshot:u,useSentryUser:p,tags:m,styleNonce:_,scriptNonce:y,colorScheme:g,themeDark:b,themeLight:h,triggerLabel:F,triggerAriaLabel:M,cancelButtonLabel:S,submitButtonLabel:z,confirmButtonLabel:N,formTitle:H,emailLabel:A,emailPlaceholder:$,messageLabel:k,messagePlaceholder:O,nameLabel:I,namePlaceholder:D,successMessageText:B,isRequiredLabel:q,addScreenshotButtonLabel:v,removeScreenshotButtonLabel:x,highlightToolText:K,hideToolText:W,removeHighlightText:X,errorEmptyMessageText:oe,errorNoClientText:ce,errorTimeoutText:ne,errorForbiddenText:ke,errorGenericText:J,onFormClose:ve,onFormOpen:de,onSubmitError:Re,onSubmitSuccess:$e,onFormSubmitted:He};let We=null,be=null,Fe=[];const se=C=>{if(!We){const G=lt.createElement("div");G.id=String(C.id),lt.body.appendChild(G),We=G.attachShadow({mode:"open"}),be=M9(C),We.appendChild(be)}return We},Ge=async C=>{const G=C.enableScreenshot&&QW();let te,ae;try{te=(t?t():await e("feedbackModalIntegration",y))(),$m(te)}catch{throw yd&&R.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const Te=G?n?n():await e("feedbackScreenshotIntegration",y):void 0;Te&&(ae=Te(),$m(ae))}catch{yd&&R.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const re={ERROR_EMPTY_MESSAGE:C.errorEmptyMessageText,ERROR_NO_CLIENT:C.errorNoClientText,ERROR_TIMEOUT:C.errorTimeoutText,ERROR_FORBIDDEN:C.errorForbiddenText,ERROR_GENERIC:C.errorGenericText},Y=(Te,Ue)=>O9(Te,{includeReplay:!0,...Ue,errorMessages:re}),Z=te.createDialog({options:{...C,onFormClose:()=>{Z?.close(),C.onFormClose?.()},onFormSubmitted:()=>{Z?.close(),C.onFormSubmitted?.()}},screenshotIntegration:ae,sendFeedback:Y,shadow:se(C)});return Z},E=(C,G={})=>{const te=bd(Ce,G),ae=typeof C=="string"?lt.querySelector(C):typeof C.addEventListener=="function"?C:null;if(!ae)throw yd&&R.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let re=null;const Y=async()=>{re||(re=await Ge({...te,onFormSubmitted:()=>{re?.removeFromDom(),te.onFormSubmitted?.()}})),re.appendToDom(),re.open()};ae.addEventListener("click",Y);const Z=()=>{Fe=Fe.filter(Te=>Te!==Z),re?.removeFromDom(),re=null,ae.removeEventListener("click",Y)};return Fe.push(Z),Z},T=(C={})=>{const G=bd(Ce,C),te=se(G),ae=nG({triggerLabel:G.triggerLabel,triggerAriaLabel:G.triggerAriaLabel,shadow:te,styleNonce:_});return E(ae.el,{...G,onFormOpen(){ae.hide()},onFormClose(){ae.show()},onFormSubmitted(){ae.show()}}),ae};return{name:"Feedback",setupOnce(){!ol()||!Ce.autoInject||(lt.readyState==="loading"?lt.addEventListener("DOMContentLoaded",()=>T().appendToDom()):T().appendToDom())},attachTo:E,createWidget(C={}){const G=T(bd(Ce,C));return G.appendToDom(),G},async createForm(C={}){return Ge(bd(Ce,C))},setTheme(C){if(Ce.colorScheme=C,We){const G=M9(Ce);be?We.replaceChild(G,be):We.prepend(G),be=G}},remove(){We&&(We.parentElement?.remove(),We=null,be=null),Fe.forEach(C=>C()),Fe=[]}}});function oG(){return fe()?.getIntegrationByName("Feedback")}var vd,ct,D9,li,F9,B9,o0,sl={},i0=[],iG=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,s0=Array.isArray;function bo(e,t){for(var n in t)e[n]=t[n];return e}function U9(e){var t=e.parentNode;t&&t.removeChild(e)}function ze(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?vd.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return Ed(e,s,r,o,null)}function Ed(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++D9,__i:-1,__u:0};return o==null&&ct.vnode!=null&&ct.vnode(i),i}function al(e){return e.children}function $d(e,t){this.props=e,this.context=t}function ds(e,t){if(t==null)return e.__?ds(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?ds(e):null}function sG(e,t,n){var r,o=e.__v,i=o.__e,s=e.__P;if(s)return(r=bo({},o)).__v=o.__v+1,ct.vnode&&ct.vnode(r),a0(s,r,o,e.__n,s.ownerSVGElement!==void 0,32&o.__u?[i]:null,t,i??ds(o),!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&j9(r),r}function j9(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return j9(e)}}function H9(e){(!e.__d&&(e.__d=!0)&&li.push(e)&&!Sd.__r++||F9!==ct.debounceRendering)&&((F9=ct.debounceRendering)||B9)(Sd)}function Sd(){var e,t,n,r=[],o=[];for(li.sort(o0);e=li.shift();)e.__d&&(n=li.length,t=sG(e,r,o)||t,n===0||li.length>n?(l0(r,t,o),o.length=r.length=0,t=void 0,li.sort(o0)):t&&ct.__c&&ct.__c(t,i0));t&&l0(r,t,o),Sd.__r=0}function z9(e,t,n,r,o,i,s,a,c,d,f){var u,p,m,_,y,g=r&&r.__k||i0,h=t.length;for(n.__d=c,aG(n,t,g),c=n.__d,u=0;u<h;u++)(m=n.__k[u])!=null&&typeof m!="boolean"&&typeof m!="function"&&(p=m.__i===-1?sl:g[m.__i]||sl,m.__i=u,a0(e,m,p,o,i,s,a,c,d,f),_=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&c0(p.ref,null,m),f.push(m.ref,m.__c||_,m)),y==null&&_!=null&&(y=_),65536&m.__u||p.__k===m.__k?c=q9(m,c,e):typeof m.type=="function"&&m.__d!==void 0?c=m.__d:_&&(c=_.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=c,n.__e=y}function aG(e,t,n){var r,o,i,s,a,c=t.length,d=n.length,f=d,u=0;for(e.__k=[],r=0;r<c;r++)(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Ed(null,o,null,null,o):s0(o)?Ed(al,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Ed(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=lG(o,n,s=r+u,f),o.__i=a,i=null,a!==-1&&(f--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&u--,typeof o.type!="function"&&(o.__u|=65536)):a!==s&&(a===s+1?u++:a>s?f>c-s?u+=a-s:u--:u=a<s&&a==s-1?a-s:0,a!==r+u&&(o.__u|=65536))):(i=n[r])&&i.key==null&&i.__e&&(i.__e==e.__d&&(e.__d=ds(i)),d0(i,i,!1),n[r]=null,f--);if(f)for(r=0;r<d;r++)(i=n[r])!=null&&(131072&i.__u)==0&&(i.__e==e.__d&&(e.__d=ds(i)),d0(i,i))}function q9(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=q9(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function lG(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,c=t[n];if(c===null||c&&o==c.key&&i===c.type)return n;if(r>(c!=null&&(131072&c.__u)==0?1:0))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&(131072&c.__u)==0&&o==c.key&&i===c.type)return s;s--}if(a<t.length){if((c=t[a])&&(131072&c.__u)==0&&o==c.key&&i===c.type)return a;a++}}return-1}function W9(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||iG.test(t)?n:n+"px"}function Td(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||W9(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||W9(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?Y9:G9,i)):e.removeEventListener(t,i?Y9:G9,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function G9(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(ct.event?ct.event(e):e)}}function Y9(e){if(this.l)return this.l[e.type+!0](ct.event?ct.event(e):e)}function a0(e,t,n,r,o,i,s,a,c,d){var f,u,p,m,_,y,g,h,b,v,S,N,A,$,H,q=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=ct.__b)&&f(t);e:if(typeof q=="function")try{if(h=t.props,b=(f=q.contextType)&&r[f.__c],v=f?b?b.props.value:f.__:r,n.__c?g=(u=t.__c=n.__c).__=u.__E:("prototype"in q&&q.prototype.render?t.__c=u=new q(h,v):(t.__c=u=new $d(h,v),u.constructor=q,u.render=dG),b&&b.sub(u),u.props=h,u.state||(u.state={}),u.context=v,u.__n=r,p=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),q.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=bo({},u.__s)),bo(u.__s,q.getDerivedStateFromProps(h,u.__s))),m=u.props,_=u.state,u.__v=t,p)q.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(q.getDerivedStateFromProps==null&&h!==m&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(h,v),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(h,u.__s,v)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=h,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(k){k&&(k.__=t)}),S=0;S<u._sb.length;S++)u.__h.push(u._sb[S]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(h,u.__s,v),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(m,_,y)})}if(u.context=v,u.props=h,u.__P=e,u.__e=!1,N=ct.__r,A=0,"prototype"in q&&q.prototype.render){for(u.state=u.__s,u.__d=!1,N&&N(t),f=u.render(u.props,u.state,u.context),$=0;$<u._sb.length;$++)u.__h.push(u._sb[$]);u._sb=[]}else do u.__d=!1,N&&N(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++A<25);u.state=u.__s,u.getChildContext!=null&&(r=bo(bo({},r),u.getChildContext())),p||u.getSnapshotBeforeUpdate==null||(y=u.getSnapshotBeforeUpdate(m,_)),z9(e,s0(H=f!=null&&f.type===al&&f.key==null?f.props.children:f)?H:[H],t,n,r,o,i,s,a,c,d),u.base=t.__e,t.__u&=-161,u.__h.length&&s.push(u),g&&(u.__E=u.__=null)}catch(k){t.__v=null,c||i!=null?(t.__e=a,t.__u|=c?160:32,i[i.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),ct.__e(k,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=cG(n.__e,t,n,r,o,i,s,c,d);(f=ct.diffed)&&f(t)}function l0(e,t,n){for(var r=0;r<n.length;r++)c0(n[r],n[++r],n[++r]);ct.__c&&ct.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){ct.__e(i,o.__v)}})}function cG(e,t,n,r,o,i,s,a,c){var d,f,u,p,m,_,y,g=n.props,h=t.props,b=t.type;if(b==="svg"&&(o=!0),i!=null){for(d=0;d<i.length;d++)if((m=i[d])&&"setAttribute"in m==!!b&&(b?m.localName===b:m.nodeType===3)){e=m,i[d]=null;break}}if(e==null){if(b===null)return document.createTextNode(h);e=o?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,h.is&&h),i=null,a=!1}if(b===null)g===h||a&&e.data===h||(e.data=h);else{if(i=i&&vd.call(e.childNodes),g=n.props||sl,!a&&i!=null)for(g={},d=0;d<e.attributes.length;d++)g[(m=e.attributes[d]).name]=m.value;for(d in g)m=g[d],d=="children"||(d=="dangerouslySetInnerHTML"?u=m:d==="key"||d in h||Td(e,d,null,m,o));for(d in h)m=h[d],d=="children"?p=m:d=="dangerouslySetInnerHTML"?f=m:d=="value"?_=m:d=="checked"?y=m:d==="key"||a&&typeof m!="function"||g[d]===m||Td(e,d,m,g[d],o);if(f)a||u&&(f.__html===u.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),z9(e,s0(p)?p:[p],t,n,r,o&&b!=="foreignObject",i,s,i?i[0]:n.__k&&ds(n,0),a,c),i!=null)for(d=i.length;d--;)i[d]!=null&&U9(i[d]);a||(d="value",_!==void 0&&(_!==e[d]||b==="progress"&&!_||b==="option"&&_!==g[d])&&Td(e,d,_,g[d],!1),d="checked",y!==void 0&&y!==e[d]&&Td(e,d,y,g[d],!1))}return e}function c0(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){ct.__e(r,n)}}function d0(e,t,n){var r,o;if(ct.unmount&&ct.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||c0(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){ct.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&d0(r[o],t,n||typeof e.type!="function");n||e.__e==null||U9(e.__e),e.__=e.__e=e.__d=void 0}function dG(e,t,n){return this.constructor(e,n)}function uG(e,t,n){var r,o,i,s;ct.__&&ct.__(e,t),o=(r=!1)?null:t.__k,i=[],s=[],a0(t,e=t.__k=ze(al,null,[e]),o||sl,sl,t.ownerSVGElement!==void 0,o?null:t.firstChild?vd.call(t.childNodes):null,i,o?o.__e:t.firstChild,r,s),e.__d=void 0,l0(i,e,s)}vd=i0.slice,ct={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},D9=0,$d.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=bo({},this.state),typeof e=="function"&&(e=e(bo({},n),this.props)),e&&bo(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),H9(this))},$d.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),H9(this))},$d.prototype.render=al,li=[],B9=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o0=function(e,t){return e.__v.__b-t.__v.__b},Sd.__r=0;var Zr,dt,u0,K9,us=0,X9=[],wd=[],St=ct,J9=St.__b,Z9=St.__r,Q9=St.diffed,V9=St.__c,eE=St.unmount,tE=St.__;function ci(e,t){St.__h&&St.__h(dt,e,us||t),us=0;var n=dt.__H||(dt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:wd}),n.__[e]}function di(e){return us=1,nE(iE,e)}function nE(e,t,n){var r=ci(Zr++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):iE(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],d=r.t(c,a);c!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=dt,!dt.u)){var o=function(a,c,d){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!i||i.call(this,a,c,d);var u=!1;return f.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!i||i.call(this,a,c,d))};dt.u=!0;var i=dt.shouldComponentUpdate,s=dt.componentWillUpdate;dt.componentWillUpdate=function(a,c,d){if(this.__e){var f=i;i=void 0,o(a,c,d),i=f}s&&s.call(this,a,c,d)},dt.shouldComponentUpdate=o}return r.__N||r.__}function fG(e,t){var n=ci(Zr++,3);!St.__s&&p0(n.__H,t)&&(n.__=e,n.i=t,dt.__H.__h.push(n))}function rE(e,t){var n=ci(Zr++,4);!St.__s&&p0(n.__H,t)&&(n.__=e,n.i=t,dt.__h.push(n))}function pG(e){return us=5,ll(function(){return{current:e}},[])}function mG(e,t,n){us=6,rE(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function ll(e,t){var n=ci(Zr++,7);return p0(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function fs(e,t){return us=8,ll(function(){return e},t)}function _G(e){var t=dt.context[e.__c],n=ci(Zr++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(dt)),t.props.value):e.__}function hG(e,t){St.useDebugValue&&St.useDebugValue(t?t(e):e)}function gG(e){var t=ci(Zr++,10),n=di();return t.__=e,dt.componentDidCatch||(dt.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function yG(){var e=ci(Zr++,11);if(!e.__){for(var t=dt.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function bG(){for(var e;e=X9.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ad),e.__H.__h.forEach(f0),e.__H.__h=[]}catch(t){e.__H.__h=[],St.__e(t,e.__v)}}St.__b=function(e){dt=null,J9&&J9(e)},St.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),tE&&tE(e,t)},St.__r=function(e){Z9&&Z9(e),Zr=0;var t=(dt=e.__c).__H;t&&(u0===dt?(t.__h=[],dt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=wd,n.__N=n.i=void 0})):(t.__h.forEach(Ad),t.__h.forEach(f0),t.__h=[],Zr=0)),u0=dt},St.diffed=function(e){Q9&&Q9(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(X9.push(t)!==1&&K9===St.requestAnimationFrame||((K9=St.requestAnimationFrame)||vG)(bG)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==wd&&(n.__=n.__V),n.i=void 0,n.__V=wd})),u0=dt=null},St.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ad),n.__h=n.__h.filter(function(r){return!r.__||f0(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],St.__e(r,n.__v)}}),V9&&V9(e,t)},St.unmount=function(e){eE&&eE(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Ad(r)}catch(o){t=o}}),n.__H=void 0,t&&St.__e(t,n.__v))};var oE=typeof requestAnimationFrame=="function";function vG(e){var t,n=function(){clearTimeout(r),oE&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);oE&&(t=requestAnimationFrame(n))}function Ad(e){var t=dt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),dt=t}function f0(e){var t=dt;e.__c=e.__(),dt=t}function p0(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function iE(e,t){return typeof t=="function"?t(e):t}const EG=Object.defineProperty({__proto__:null,useCallback:fs,useContext:_G,useDebugValue:hG,useEffect:fG,useErrorBoundary:gG,useId:yG,useImperativeHandle:mG,useLayoutEffect:rE,useMemo:ll,useReducer:nE,useRef:pG,useState:di},Symbol.toStringTag,{value:"Module"}),$G="http://www.w3.org/2000/svg";function SG(){const e=r=>lt.createElementNS($G,r),t=Rn(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Rn(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function TG({options:e}){const t=ll(()=>({__html:SG().outerHTML}),[]);return ze("h2",{class:"dialog__header"},ze("span",{class:"dialog__title"},e.formTitle),e.showBranding?ze("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function wG(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function m0(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function AG({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:o,onSubmitSuccess:i,onSubmitError:s,showEmail:a,showName:c,screenshotInput:d}){const{tags:f,addScreenshotButtonLabel:u,removeScreenshotButtonLabel:p,cancelButtonLabel:m,emailLabel:_,emailPlaceholder:y,isEmailRequired:g,isNameRequired:h,messageLabel:b,messagePlaceholder:v,nameLabel:S,namePlaceholder:N,submitButtonLabel:A,isRequiredLabel:$}=e,[H,q]=di(!1),[k,O]=di(null),[I,D]=di(!1),x=d?.input,[z,B]=di(null),F=fs(W=>{B(W),D(!1)},[]),M=fs(W=>{const X=wG(W,{emailLabel:_,isEmailRequired:g,isNameRequired:h,messageLabel:b,nameLabel:S});return X.length>0?O(`Please enter in the following required fields: ${X.join(", ")}`):O(null),X.length===0},[_,g,h,b,S]),K=fs(async W=>{q(!0);try{if(W.preventDefault(),!(W.target instanceof HTMLFormElement))return;const X=new FormData(W.target),oe=await(d&&I?d.value():void 0),ce={name:m0(X,"name"),email:m0(X,"email"),message:m0(X,"message"),attachments:oe?[oe]:void 0};if(!M(ce))return;try{const ne=await o({name:ce.name,email:ce.email,message:ce.message,source:KW,tags:f},{attachments:ce.attachments});i(ce,ne)}catch(ne){yd&&R.error(ne);const ke=ne instanceof Error?ne:new Error(String(ne));O(ke.message),s(ke)}}finally{q(!1)}},[d&&I,i,s]);return ze("form",{class:"form",onSubmit:K},x&&I?ze(x,{onError:F}):null,ze("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:H},ze("div",{class:"form__top"},k?ze("div",{class:"form__error-container"},k):null,c?ze("label",{for:"name",class:"form__label"},ze(_0,{label:S,isRequiredLabel:$,isRequired:h}),ze("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:N,required:h,type:"text"})):ze("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?ze("label",{for:"email",class:"form__label"},ze(_0,{label:_,isRequiredLabel:$,isRequired:g}),ze("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:y,required:g,type:"email"})):ze("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),ze("label",{for:"message",class:"form__label"},ze(_0,{label:b,isRequiredLabel:$,isRequired:!0}),ze("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:v,required:!0,rows:5})),x?ze("label",{for:"screenshot",class:"form__label"},ze("button",{class:"btn btn--default",disabled:H,type:"button",onClick:()=>{B(null),D(W=>!W)}},I?p:u),z?ze("div",{class:"form__error-container"},z.message):null):null),ze("div",{class:"btn-group"},ze("button",{class:"btn btn--primary",disabled:H,type:"submit"},A),ze("button",{class:"btn btn--default",disabled:H,type:"button",onClick:r},m))))}function _0({label:e,isRequired:t,isRequiredLabel:n}){return ze("span",{class:"form__label__text"},e,t&&ze("span",{class:"form__label__text--required"},n))}const kd=16,sE=17,kG="http://www.w3.org/2000/svg";function CG(){const e=c=>sr.document.createElementNS(kG,c),t=Rn(e("svg"),{width:`${kd}`,height:`${sE}`,viewBox:`0 0 ${kd} ${sE}`,fill:"inherit"}),n=Rn(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Rn(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=Rn(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(o,r);const i=e("defs"),s=Rn(e("clipPath"),{id:"clip0_57_156"}),a=Rn(e("rect"),{width:`${kd}`,height:`${kd}`,fill:"white",transform:"translate(0 0.5)"});return s.appendChild(a),i.appendChild(s),t.appendChild(i).appendChild(s).appendChild(a),t}function NG({open:e,onFormSubmitted:t,...n}){const r=n.options,o=ll(()=>({__html:CG().outerHTML}),[]),[i,s]=di(null),a=fs(()=>{i&&(clearTimeout(i),s(null)),t()},[i]),c=fs((d,f)=>{n.onSubmitSuccess(d,f),s(setTimeout(()=>{t(),s(null)},JW))},[t]);return ze(al,null,i?ze("div",{class:"success__position",onClick:a},ze("div",{class:"success__content"},r.successMessageText,ze("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):ze("dialog",{class:"dialog",onClick:r.onFormClose,open:e},ze("div",{class:"dialog__position"},ze("div",{class:"dialog__content",onClick:d=>{d.stopPropagation()}},ze(TG,{options:r}),ze(AG,{...n,onSubmitSuccess:c})))))}const IG=`
135
+ .dialog {
136
+ position: fixed;
137
+ z-index: var(--z-index);
138
+ margin: 0;
139
+ inset: 0;
140
+
141
+ display: flex;
142
+ align-items: center;
143
+ justify-content: center;
144
+ padding: 0;
145
+ height: 100vh;
146
+ width: 100vw;
147
+
148
+ color: var(--dialog-color, var(--foreground));
149
+ fill: var(--dialog-color, var(--foreground));
150
+ line-height: 1.75em;
151
+
152
+ background-color: rgba(0, 0, 0, 0.05);
153
+ border: none;
154
+ inset: 0;
155
+ opacity: 1;
156
+ transition: opacity 0.2s ease-in-out;
157
+ }
158
+
159
+ .dialog__position {
160
+ position: fixed;
161
+ z-index: var(--z-index);
162
+ inset: var(--dialog-inset);
163
+ padding: var(--page-margin);
164
+ display: flex;
165
+ max-height: calc(100vh - (2 * var(--page-margin)));
166
+ }
167
+ @media (max-width: 600px) {
168
+ .dialog__position {
169
+ inset: var(--page-margin);
170
+ padding: 0;
171
+ }
172
+ }
173
+
174
+ .dialog__position:has(.editor) {
175
+ inset: var(--page-margin);
176
+ padding: 0;
177
+ }
178
+
179
+ .dialog:not([open]) {
180
+ opacity: 0;
181
+ pointer-events: none;
182
+ visibility: hidden;
183
+ }
184
+ .dialog:not([open]) .dialog__content {
185
+ transform: translate(0, -16px) scale(0.98);
186
+ }
187
+
188
+ .dialog__content {
189
+ display: flex;
190
+ flex-direction: column;
191
+ gap: 16px;
192
+ padding: var(--dialog-padding, 24px);
193
+ max-width: 100%;
194
+ width: 100%;
195
+ max-height: 100%;
196
+ overflow: auto;
197
+
198
+ background: var(--dialog-background, var(--background));
199
+ border-radius: var(--dialog-border-radius, 20px);
200
+ border: var(--dialog-border, var(--border));
201
+ box-shadow: var(--dialog-box-shadow, var(--box-shadow));
202
+ transform: translate(0, 0) scale(1);
203
+ transition: transform 0.2s ease-in-out;
204
+ }
205
+
206
+ `,OG=`
207
+ .dialog__header {
208
+ display: flex;
209
+ gap: 4px;
210
+ justify-content: space-between;
211
+ font-weight: var(--dialog-header-weight, 600);
212
+ margin: 0;
213
+ }
214
+ .dialog__title {
215
+ align-self: center;
216
+ width: var(--form-width, 272px);
217
+ }
218
+
219
+ @media (max-width: 600px) {
220
+ .dialog__title {
221
+ width: auto;
222
+ }
223
+ }
224
+
225
+ .dialog__position:has(.editor) .dialog__title {
226
+ width: auto;
227
+ }
228
+
229
+
230
+ .brand-link {
231
+ display: inline-flex;
232
+ }
233
+ .brand-link:focus-visible {
234
+ outline: var(--outline);
235
+ }
236
+ `,RG=`
237
+ .form {
238
+ display: flex;
239
+ overflow: auto;
240
+ flex-direction: row;
241
+ gap: 16px;
242
+ flex: 1 0;
243
+ }
244
+
245
+ .form fieldset {
246
+ border: none;
247
+ margin: 0;
248
+ padding: 0;
249
+ }
250
+
251
+ .form__right {
252
+ flex: 0 0 auto;
253
+ display: flex;
254
+ overflow: auto;
255
+ flex-direction: column;
256
+ justify-content: space-between;
257
+ gap: 20px;
258
+ width: var(--form-width, 100%);
259
+ }
260
+
261
+ .dialog__position:has(.editor) .form__right {
262
+ width: var(--form-width, 272px);
263
+ }
264
+
265
+ .form__top {
266
+ display: flex;
267
+ flex-direction: column;
268
+ gap: 8px;
269
+ }
270
+
271
+ .form__error-container {
272
+ color: var(--error-color);
273
+ fill: var(--error-color);
274
+ }
275
+
276
+ .form__label {
277
+ display: flex;
278
+ flex-direction: column;
279
+ gap: 4px;
280
+ margin: 0px;
281
+ }
282
+
283
+ .form__label__text {
284
+ display: flex;
285
+ gap: 4px;
286
+ align-items: center;
287
+ }
288
+
289
+ .form__label__text--required {
290
+ font-size: 0.85em;
291
+ }
292
+
293
+ .form__input {
294
+ font-family: inherit;
295
+ line-height: inherit;
296
+ background: transparent;
297
+ box-sizing: border-box;
298
+ border: var(--input-border, var(--border));
299
+ border-radius: var(--input-border-radius, 6px);
300
+ color: var(--input-color, inherit);
301
+ fill: var(--input-color, inherit);
302
+ font-size: var(--input-font-size, inherit);
303
+ font-weight: var(--input-font-weight, 500);
304
+ padding: 6px 12px;
305
+ }
306
+
307
+ .form__input::placeholder {
308
+ opacity: 0.65;
309
+ color: var(--input-placeholder-color, inherit);
310
+ filter: var(--interactive-filter);
311
+ }
312
+
313
+ .form__input:focus-visible {
314
+ outline: var(--input-focus-outline, var(--outline));
315
+ }
316
+
317
+ .form__input--textarea {
318
+ font-family: inherit;
319
+ resize: vertical;
320
+ }
321
+
322
+ .error {
323
+ color: var(--error-color);
324
+ fill: var(--error-color);
325
+ }
326
+ `,xG=`
327
+ .btn-group {
328
+ display: grid;
329
+ gap: 8px;
330
+ }
331
+
332
+ .btn {
333
+ line-height: inherit;
334
+ border: var(--button-border, var(--border));
335
+ border-radius: var(--button-border-radius, 6px);
336
+ cursor: pointer;
337
+ font-family: inherit;
338
+ font-size: var(--button-font-size, inherit);
339
+ font-weight: var(--button-font-weight, 600);
340
+ padding: var(--button-padding, 6px 16px);
341
+ }
342
+ .btn[disabled] {
343
+ opacity: 0.6;
344
+ pointer-events: none;
345
+ }
346
+
347
+ .btn--primary {
348
+ color: var(--button-primary-color, var(--accent-foreground));
349
+ fill: var(--button-primary-color, var(--accent-foreground));
350
+ background: var(--button-primary-background, var(--accent-background));
351
+ border: var(--button-primary-border, var(--border));
352
+ border-radius: var(--button-primary-border-radius, 6px);
353
+ font-weight: var(--button-primary-font-weight, 500);
354
+ }
355
+ .btn--primary:hover {
356
+ color: var(--button-primary-hover-color, var(--accent-foreground));
357
+ fill: var(--button-primary-hover-color, var(--accent-foreground));
358
+ background: var(--button-primary-hover-background, var(--accent-background));
359
+ filter: var(--interactive-filter);
360
+ }
361
+ .btn--primary:focus-visible {
362
+ background: var(--button-primary-hover-background, var(--accent-background));
363
+ filter: var(--interactive-filter);
364
+ outline: var(--button-primary-focus-outline, var(--outline));
365
+ }
366
+
367
+ .btn--default {
368
+ color: var(--button-color, var(--foreground));
369
+ fill: var(--button-color, var(--foreground));
370
+ background: var(--button-background, var(--background));
371
+ border: var(--button-border, var(--border));
372
+ border-radius: var(--button-border-radius, 6px);
373
+ font-weight: var(--button-font-weight, 500);
374
+ }
375
+ .btn--default:hover {
376
+ color: var(--button-color, var(--foreground));
377
+ fill: var(--button-color, var(--foreground));
378
+ background: var(--button-hover-background, var(--background));
379
+ filter: var(--interactive-filter);
380
+ }
381
+ .btn--default:focus-visible {
382
+ background: var(--button-hover-background, var(--background));
383
+ filter: var(--interactive-filter);
384
+ outline: var(--button-focus-outline, var(--outline));
385
+ }
386
+ `,PG=`
387
+ .success__position {
388
+ position: fixed;
389
+ inset: var(--dialog-inset);
390
+ padding: var(--page-margin);
391
+ z-index: var(--z-index);
392
+ }
393
+ .success__content {
394
+ background: var(--success-background, var(--background));
395
+ border: var(--success-border, var(--border));
396
+ border-radius: var(--success-border-radius, 1.7em/50%);
397
+ box-shadow: var(--success-box-shadow, var(--box-shadow));
398
+ font-weight: var(--success-font-weight, 600);
399
+ color: var(--success-color);
400
+ fill: var(--success-color);
401
+ padding: 12px 24px;
402
+ line-height: 1.75em;
403
+
404
+ display: grid;
405
+ align-items: center;
406
+ grid-auto-flow: column;
407
+ gap: 6px;
408
+ cursor: default;
409
+ }
410
+
411
+ .success__icon {
412
+ display: flex;
413
+ }
414
+ `;function MG(e){const t=lt.createElement("style");return t.textContent=`
415
+ :host {
416
+ --dialog-inset: var(--inset);
417
+ }
418
+
419
+ ${IG}
420
+ ${OG}
421
+ ${RG}
422
+ ${xG}
423
+ ${PG}
424
+ `,e&&t.setAttribute("nonce",e),t}function LG(){const e=Pe().getUser(),t=vt().getUser(),n=Xo().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}const DG=(()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const o=r,i=e.useSentryUser,s=LG(),a=lt.createElement("div"),c=MG(e.styleNonce);let d="";const f={get el(){return a},appendToDom(){!o.contains(c)&&!o.contains(a)&&(o.appendChild(c),o.appendChild(a))},removeFromDom(){a.remove(),c.remove(),lt.body.style.overflow=d},open(){p(!0),e.onFormOpen?.(),fe()?.emit("openFeedbackWidget"),d=lt.body.style.overflow,lt.body.style.overflow="hidden"},close(){p(!1),lt.body.style.overflow=d}},u=t?.createInput({h:ze,hooks:EG,dialog:f,options:e}),p=m=>{uG(ze(NG,{options:e,screenshotInput:u,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(i&&s?.[i.name]||""),defaultEmail:String(i&&s?.[i.email]||""),onFormClose:()=>{p(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(_,y)=>{p(!1),e.onSubmitSuccess?.(_,y)},onSubmitError:_=>{e.onSubmitError?.(_)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:m}),a)};return f}}));function FG({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function BG(e){const t=lt.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`
425
+ .editor {
426
+ display: flex;
427
+ flex-grow: 1;
428
+ flex-direction: column;
429
+ }
430
+
431
+ .editor__image-container {
432
+ justify-items: center;
433
+ padding: 15px;
434
+ position: relative;
435
+ height: 100%;
436
+ border-radius: var(--menu-border-radius, 6px);
437
+
438
+ background-color: ${n};
439
+ background-image: repeating-linear-gradient(
440
+ -145deg,
441
+ transparent,
442
+ transparent 8px,
443
+ ${n} 8px,
444
+ ${n} 11px
445
+ ),
446
+ repeating-linear-gradient(
447
+ -45deg,
448
+ transparent,
449
+ transparent 15px,
450
+ ${r} 15px,
451
+ ${r} 16px
452
+ );
453
+ }
454
+
455
+ .editor__canvas-container {
456
+ width: 100%;
457
+ height: 100%;
458
+ position: relative;
459
+ display: flex;
460
+ align-items: center;
461
+ justify-content: center;
462
+ }
463
+
464
+ .editor__canvas-container > * {
465
+ object-fit: contain;
466
+ position: absolute;
467
+ }
468
+
469
+ .editor__tool-container {
470
+ padding-top: 8px;
471
+ display: flex;
472
+ justify-content: center;
473
+ }
474
+
475
+ .editor__tool-bar {
476
+ display: flex;
477
+ gap: 8px;
478
+ }
479
+
480
+ .editor__tool {
481
+ display: flex;
482
+ padding: 8px 12px;
483
+ justify-content: center;
484
+ align-items: center;
485
+ border: var(--button-border, var(--border));
486
+ border-radius: var(--button-border-radius, 6px);
487
+ background: var(--button-background, var(--background));
488
+ color: var(--button-color, var(--foreground));
489
+ }
490
+
491
+ .editor__tool--active {
492
+ background: var(--button-primary-background, var(--accent-background));
493
+ color: var(--button-primary-color, var(--accent-foreground));
494
+ }
495
+
496
+ .editor__rect {
497
+ position: absolute;
498
+ z-index: 2;
499
+ }
500
+
501
+ .editor__rect button {
502
+ opacity: 0;
503
+ position: absolute;
504
+ top: -12px;
505
+ right: -12px;
506
+ cursor: pointer;
507
+ padding: 0;
508
+ z-index: 3;
509
+ border: none;
510
+ background: none;
511
+ }
512
+
513
+ .editor__rect:hover button {
514
+ opacity: 1;
515
+ }
516
+ `,e&&t.setAttribute("nonce",e),t}function UG({h:e}){return function({action:n,setAction:r,options:o}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${n==="highlight"?"editor__tool--active":""}`,onClick:()=>{r(n==="highlight"?"":"highlight")}},o.highlightToolText),e("button",{type:"button",class:`editor__tool ${n==="hide"?"editor__tool--active":""}`,onClick:()=>{r(n==="hide"?"":"hide")}},o.hideToolText)))}}function jG({hooks:e}){function t(){const[n,r]=e.useState(sr.devicePixelRatio??1);return e.useEffect(()=>{const o=()=>{r(sr.devicePixelRatio)},i=matchMedia(`(resolution: ${sr.devicePixelRatio}dppx)`);return i.addEventListener("change",o),()=>{i.removeEventListener("change",o)}},[]),n}return function({onBeforeScreenshot:r,onScreenshot:o,onAfterScreenshot:i,onError:s}){const a=t();e.useEffect(()=>{(async()=>{r();const d=await il.mediaDevices.getDisplayMedia({video:{width:sr.innerWidth*a,height:sr.innerHeight*a},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),f=lt.createElement("video");await new Promise((u,p)=>{f.srcObject=d,f.onloadedmetadata=()=>{o(f,a),d.getTracks().forEach(m=>m.stop()),u()},f.play().catch(p)}),i()})().catch(s)},[])}}function HG(e,t,n){switch(e.type){case"highlight":{t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break}case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h);break}}function vo(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function h0(e,t){vo(e,{alpha:!0},(n,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height)})}function g0(e,t,n){vo(e,{alpha:!0},(r,o)=>{n.length&&(o.fillStyle="rgba(0, 0, 0, 0.25)",o.fillRect(0,0,r.width,r.height)),n.forEach(i=>{HG(i,o,t)})})}function zG({h:e,hooks:t,outputBuffer:n,dialog:r,options:o}){const i=jG({hooks:t}),s=UG({h:e}),a=FG({h:e}),c={__html:BG(o.styleNonce).innerText},d=r.el.style,f=({screenshot:u})=>{const[p,m]=t.useState("highlight"),[_,y]=t.useState([]),g=t.useRef(null),h=t.useRef(null),b=t.useRef(null),v=t.useRef(null),[S,N]=t.useState(1),A=t.useMemo(()=>{const I=lt.getElementById(o.id);if(!I)return"white";const D=getComputedStyle(I);return D.getPropertyValue("--button-primary-background")||D.getPropertyValue("--accent-background")},[o.id]);t.useLayoutEffect(()=>{const I=()=>{const D=g.current;D&&(vo(u.canvas,{alpha:!1},x=>{const z=Math.min(D.clientWidth/x.width,D.clientHeight/x.height);N(z)}),(D.clientHeight===0||D.clientWidth===0)&&setTimeout(I,0))};return I(),sr.addEventListener("resize",I),()=>{sr.removeEventListener("resize",I)}},[u]);const $=t.useCallback((I,D)=>{vo(I,{alpha:!0},(x,z)=>{z.scale(D,D),x.width=u.canvas.width,x.height=u.canvas.height})},[u]);t.useEffect(()=>{$(h.current,u.dpi),h0(h.current,u.canvas)},[u]),t.useEffect(()=>{$(b.current,u.dpi),vo(b.current,{alpha:!0},(I,D)=>{D.clearRect(0,0,I.width,I.height)}),g0(b.current,A,_)},[_,A]),t.useEffect(()=>{$(n,u.dpi),h0(n,u.canvas),vo(lt.createElement("canvas"),{alpha:!0},(I,D)=>{D.scale(u.dpi,u.dpi),I.width=u.canvas.width,I.height=u.canvas.height,g0(I,A,_),h0(n,I)})},[_,u,A]);const H=I=>{if(!p||!v.current)return;const D=v.current.getBoundingClientRect(),x={type:p,x:I.offsetX/S,y:I.offsetY/S},z=(M,K)=>{const W=(K.clientX-D.x)/S,X=(K.clientY-D.y)/S;return{type:M.type,x:Math.min(M.x,W),y:Math.min(M.y,X),w:Math.abs(W-M.x),h:Math.abs(X-M.y)}},B=M=>{vo(b.current,{alpha:!0},(K,W)=>{W.clearRect(0,0,K.width,K.height)}),g0(b.current,A,[..._,z(x,M)])},F=M=>{const K=z(x,M);K.w*S>=1&&K.h*S>=1&&y(W=>[...W,K]),lt.removeEventListener("mousemove",B),lt.removeEventListener("mouseup",F)};lt.addEventListener("mousemove",B),lt.addEventListener("mouseup",F)},q=t.useCallback(I=>D=>{D.preventDefault(),D.stopPropagation(),y(x=>{const z=[...x];return z.splice(I,1),z})},[]),k={width:`${u.canvas.width*S}px`,height:`${u.canvas.height*S}px`},O=I=>{I.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:g},e("canvas",{ref:h,id:"background",style:k}),e("canvas",{ref:b,id:"foreground",style:k}),e("div",{ref:v,onMouseDown:H,style:k},_.map((I,D)=>e("div",{key:D,class:"editor__rect",style:{top:`${I.y*S}px`,left:`${I.x*S}px`,width:`${I.w*S}px`,height:`${I.h*S}px`}},e("button",{"aria-label":o.removeHighlightText,onClick:q(D),onMouseDown:O,onMouseUp:O,type:"button"},e(a,null))))))),e(s,{options:o,action:p,setAction:m}))};return function({onError:p}){const[m,_]=t.useState();return i({onBeforeScreenshot:t.useCallback(()=>{d.display="none"},[]),onScreenshot:t.useCallback((y,g)=>{vo(lt.createElement("canvas"),{alpha:!1},(h,b)=>{b.scale(g,g),h.width=y.videoWidth,h.height=y.videoHeight,b.drawImage(y,0,0,h.width,h.height),_({canvas:h,dpi:g})}),n.width=y.videoWidth,n.height=y.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{d.display="block"},[]),onError:t.useCallback(y=>{d.display="block",p(y)},[])}),m?e(f,{screenshot:m}):e("div",null)}}const qG=(()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const o=lt.createElement("canvas");return{input:zG({h:e,hooks:t,outputBuffer:o,dialog:n,options:r}),value:async()=>{const i=await new Promise(s=>{o.toBlob(s,"image/png")});if(i)return{data:new Uint8Array(await i.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}})),ye=Se;let y0=0;function aE(){return y0>0}function WG(){y0++,setTimeout(()=>{y0--})}function ps(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(Vp(e))return e}catch{return e}const r=function(...o){try{const i=o.map(s=>ps(s,t));return e.apply(this,i)}catch(i){throw WG(),jn(s=>{s.addEventProcessor(a=>(t.mechanism&&(nm(a,void 0),zr(a,t.mechanism)),a.extra={...a.extra,arguments:o},a)),it(i)}),i}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}cv(r,e),Gt(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Cd(){const e=Go(),{referrer:t}=ye.document||{},{userAgent:n}=ye.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}const GG=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],YG={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};function KG(e){return YG[e]||e.replace("Integration","").toLowerCase()}const lE=ye;async function cE(e,t){const n=GG.includes(e)?KG(e):void 0,r=lE.Sentry=lE.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const o=r[e];if(typeof o=="function"&&!("_isShim"in o))return o;const i=XG(n),s=ye.document.createElement("script");s.src=i,s.crossOrigin="anonymous",s.referrerPolicy="strict-origin",t&&s.setAttribute("nonce",t);const a=new Promise((u,p)=>{s.addEventListener("load",()=>u()),s.addEventListener("error",p)}),c=ye.document.currentScript,d=ye.document.body||ye.document.head||c?.parentElement;if(d)d.appendChild(s);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await a}catch{throw new Error(`Error when loading integration: ${e}`)}const f=r[e];if(typeof f!="function")throw new Error(`Could not load integration: ${e}`);return f}function XG(e){const n=fe()?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${Lr}/${e}.min.js`,n).toString()}const JG=L9({lazyLoadIntegration:cE}),dE=L9({getModalIntegration:()=>DG,getScreenshotIntegration:()=>qG});function Nd(e,t){const n=v0(e,t),r={type:tY(t),value:nY(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function ZG(e,t,n,r){const i=fe()?.getOptions().normalizeDepth,s=iY(t),a={__serialized__:i3(t,i)};if(s)return{exception:{values:[Nd(e,s)]},extra:a};const c={exception:{values:[{type:Rc(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:rY(t,{isUnhandledRejection:r})}]},extra:a};if(n){const d=v0(e,n);d.length&&(c.exception.values[0].stacktrace={frames:d})}return c}function b0(e,t){return{exception:{values:[Nd(e,t)]}}}function v0(e,t){const n=t.stacktrace||t.stack||"",r=VG(t),o=eY(t);try{return e(n,r,o)}catch{}return[]}const QG=/Minified React error #\d+;/i;function VG(e){return e&&QG.test(e.message)?1:0}function eY(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function uE(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function tY(e){const t=e?.name;return!t&&uE(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function nY(e){const t=e?.message;return uE(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?i4(t.error):i4(e):"No error message"}function fE(e,t,n,r){const o=n?.syntheticException||void 0,i=Id(e,t,o,r);return zr(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),Ka(i)}function pE(e,t,n="info",r,o){const i=r?.syntheticException||void 0,s=E0(e,t,i,o);return s.level=n,r?.event_id&&(s.event_id=r.event_id),Ka(s)}function Id(e,t,n,r,o){let i;if(sv(t)&&t.error)return b0(e,t.error);if(av(t)||_F(t)){const s=t;if("stack"in t)i=b0(e,t);else{const a=s.name||(av(s)?"DOMError":"DOMException"),c=s.message?`${a}: ${s.message}`:a;i=E0(e,c,n,r),nm(i,c)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return Br(t)?b0(e,t):En(t)||Rc(t)?(i=ZG(e,t,n,o),zr(i,{synthetic:!0}),i):(i=E0(e,t,n,r),nm(i,`${t}`),zr(i,{synthetic:!0}),i)}function E0(e,t,n,r){const o={};if(r&&n){const i=v0(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]}),zr(o,{synthetic:!0})}if(Oc(t)){const{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function rY(e,{isUnhandledRejection:t}){const n=EF(e),r=t?"promise rejection":"exception";return sv(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Rc(e)?`Event \`${oY(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function oY(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function iY(e){return Object.values(e).find(t=>t instanceof Error)}class mE extends mj{constructor(t){const n=sY(t),r=ye.SENTRY_SDK_SOURCE||fW();f4(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:o,sendClientReports:i,enableLogs:s,_experiments:a,enableMetrics:c}=this._options,d=c??a?.enableMetrics??!0;ye.document&&(i||s||d)&&ye.document.addEventListener("visibilitychange",()=>{ye.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),s&&Xc(this),d&&Am(this))}),o&&this.on("beforeSendSession",Rj)}eventFromException(t,n){return fE(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return pE(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,o)}}function sY(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:ye.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const ar=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,De=Se,aY=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",cl=(e,t,n,r)=>{let o,i;return s=>{t.value>=0&&(s||r)&&(i=t.value-(o??0),(i||o===void 0)&&(o=t.value,t.delta=i,t.rating=aY(t.value,n),e(t)))}},dl=(e=!0)=>{const t=De.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},ms=()=>dl()?.activationStart??0;function Eo(e,t,n){De.document&&De.addEventListener(e,t,n)}function Od(e,t,n){De.document&&De.removeEventListener(e,t,n)}let _s=-1;const _E=new Set,lY=()=>De.document?.visibilityState==="hidden"&&!De.document?.prerendering?0:1/0,Rd=e=>{if(cY(e)&&_s>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of _E)t();isFinite(_s)||(_s=e.type==="visibilitychange"?e.timeStamp:0,Od("prerenderingchange",Rd,!0))}},ul=()=>{if(De.document&&_s<0){const e=ms();_s=(De.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??lY(),Eo("visibilitychange",Rd,!0),Eo("pagehide",Rd,!0),Eo("prerenderingchange",Rd,!0)}return{get firstHiddenTime(){return _s},onHidden(e){_E.add(e)}}};function cY(e){return e.type==="pagehide"||De.document?.visibilityState==="hidden"}const dY=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,fl=(e,t=-1)=>{const n=dl();let r="navigate";return n&&(De.document?.prerendering||ms()>0?r="prerender":De.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:dY(),navigationType:r}},$0=new WeakMap;function S0(e,t){try{return $0.get(e)||$0.set(e,new t),$0.get(e)}catch{return new t}}class xd{constructor(){xd.prototype.__init.call(this),xd.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const hs=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},T0=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Pd=e=>{De.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},uY=[1800,3e3],fY=(e,t={})=>{Pd(()=>{const n=ul(),r=fl("FCP");let o;const s=hs("paint",a=>{for(const c of a)c.name==="first-contentful-paint"&&(s.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-ms(),0),r.entries.push(c),o(!0)))});s&&(o=cl(e,r,uY,t.reportAllChanges))})},pY=[.1,.25],mY=(e,t={})=>{fY(T0(()=>{const n=fl("CLS",0);let r;const o=ul(),i=S0(t,xd),s=c=>{for(const d of c)i._processEntry(d);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},a=hs("layout-shift",s);a&&(r=cl(e,n,pY,t.reportAllChanges),o.onHidden(()=>{s(a.takeRecords()),r(!0)}),De?.setTimeout?.(r))}))};let hE=0,w0=1/0,Md=0;const _Y=e=>{e.forEach(t=>{t.interactionId&&(w0=Math.min(w0,t.interactionId),Md=Math.max(Md,t.interactionId),hE=Md?(Md-w0)/7+1:0)})};let A0;const gE=()=>A0?hE:performance.interactionCount||0,hY=()=>{"interactionCount"in performance||A0||(A0=hs("event",_Y,{type:"event",buffered:!0,durationThreshold:0}))},k0=10;let yE=0;const gY=()=>gE()-yE;class Ld{constructor(){Ld.prototype.__init.call(this),Ld.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){yE=gE(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(gY()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<k0||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((o,i)=>i._latency-o._latency),this._longestInteractionList.length>k0){const o=this._longestInteractionList.splice(k0);for(const i of o)this._longestInteractionMap.delete(i.id)}this._onAfterProcessingINPCandidate?.(r)}}}const bE=e=>{const t=De.requestIdleCallback||De.setTimeout;De.document?.visibilityState==="hidden"?e():(e=T0(e),Eo("visibilitychange",e,{once:!0,capture:!0}),Eo("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),Od("visibilitychange",e,{capture:!0}),Od("pagehide",e,{capture:!0})}))},yY=[200,500],bY=40,vY=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=ul();Pd(()=>{hY();const r=fl("INP");let o;const i=S0(t,Ld),s=c=>{bE(()=>{for(const f of c)i._processEntry(f);const d=i._estimateP98LongestInteraction();d&&d._latency!==r.value&&(r.value=d._latency,r.entries=d.entries,o())})},a=hs("event",s,{durationThreshold:t.durationThreshold??bY});o=cl(e,r,yY,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(a.takeRecords()),o(!0)}))})};class EY{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const $Y=[2500,4e3],SY=(e,t={})=>{Pd(()=>{const n=ul(),r=fl("LCP");let o;const i=S0(t,EY),s=c=>{t.reportAllChanges||(c=c.slice(-1));for(const d of c)i._processEntry(d),d.startTime<n.firstHiddenTime&&(r.value=Math.max(d.startTime-ms(),0),r.entries=[d],o())},a=hs("largest-contentful-paint",s);if(a){o=cl(e,r,$Y,t.reportAllChanges);const c=T0(()=>{s(a.takeRecords()),a.disconnect(),o(!0)}),d=f=>{f.isTrusted&&(bE(c),Od(f.type,d,{capture:!0}))};for(const f of["keydown","click","visibilitychange"])Eo(f,d,{capture:!0})}})},TY=[800,1800],C0=e=>{De.document?.prerendering?Pd(()=>C0(e)):De.document?.readyState!=="complete"?addEventListener("load",()=>C0(e),!0):setTimeout(e)},wY=(e,t={})=>{const n=fl("TTFB"),r=cl(e,n,TY,t.reportAllChanges);C0(()=>{const o=dl();o&&(n.value=Math.max(o.responseStart-ms(),0),n.entries=[o],r(!0))})},pl={},Dd={};let vE,EE,$E,SE;function Fd(e,t=!1){return Ud("cls",e,kY,vE,t)}function Bd(e,t=!1){return Ud("lcp",e,CY,EE,t)}function AY(e){return Ud("ttfb",e,NY,$E)}function N0(e){return Ud("inp",e,IY,SE)}function ui(e,t){return TE(e,t),Dd[e]||(OY(e),Dd[e]=!0),wE(e,t)}function ml(e,t){const n=pl[e];if(n?.length)for(const r of n)try{r(t)}catch(o){ar&&R.error(`Error while triggering instrumentation handler.
517
+ Type: ${e}
518
+ Name: ${Fr(r)}
519
+ Error:`,o)}}function kY(){return mY(e=>{ml("cls",{metric:e}),vE=e},{reportAllChanges:!0})}function CY(){return SY(e=>{ml("lcp",{metric:e}),EE=e},{reportAllChanges:!0})}function NY(){return wY(e=>{ml("ttfb",{metric:e}),$E=e})}function IY(){return vY(e=>{ml("inp",{metric:e}),SE=e})}function Ud(e,t,n,r,o=!1){TE(e,t);let i;return Dd[e]||(i=n(),Dd[e]=!0),r&&t({metric:r}),wE(e,t,o?i:void 0)}function OY(e){const t={};e==="event"&&(t.durationThreshold=0),hs(e,n=>{ml(e,{entries:n})},t)}function TE(e,t){pl[e]=pl[e]||[],pl[e].push(t)}function wE(e,t,n){return()=>{n&&n();const r=pl[e];if(!r)return;const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}function RY(e){return"duration"in e}const xY=e=>{const t=n=>{(n.type==="pagehide"||De.document?.visibilityState==="hidden")&&e(n)};Eo("visibilitychange",t,{capture:!0,once:!0}),Eo("pagehide",t,{capture:!0,once:!0})};function I0(e){return typeof e=="number"&&isFinite(e)}function $o(e,t,n,{...r}){const o=Le(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Wa(e,()=>{const i=$r({startTime:t,...r});return i&&i.end(n),i})}function O0(e){const t=fe();if(!t)return;const{name:n,transaction:r,attributes:o,startTime:i}=e,{release:s,environment:a,sendDefaultPii:c}=t.getOptions(),f=t.getIntegrationByName("Replay")?.getReplayId(),u=Pe(),p=u.getUser(),m=p!==void 0?p.email||p.id||p.ip_address:void 0;let _;try{_=u.getScopeData().contexts.profile.profile_id}catch{}const y={release:s,environment:a,user:m||void 0,profile_id:_||void 0,replay_id:f||void 0,transaction:r,"user_agent.original":De.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...o};return $r({name:n,attributes:y,startTime:i,experimental:{standalone:!0}})}function gs(){return De.addEventListener&&De.performance}function gt(e){return e/1e3}function PY(e){let t="unknown",n="unknown",r="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function jd(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Hd(e,t){let n,r=!1;function o(a){!r&&n&&t(a,n.spanContext().spanId,n),r=!0}xY(()=>{o("pagehide")});const i=e.on("beforeStartNavigationSpan",(a,c)=>{c?.isRedirect||(o("navigation"),i(),s())}),s=e.on("afterStartPageLoadSpan",a=>{n=a,s()})}function MY(e){let t=0,n;if(!jd("layout-shift"))return;const r=Fd(({metric:o})=>{const i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);Hd(e,(o,i)=>{LY(t,n,i,o),r()})}function LY(e,t,n,r){ar&&R.log(`Sending CLS span (${e})`);const o=t?gt((Mt()||0)+t.startTime):at(),i=Pe().getScopeData().transactionName,s=t?Bt(t.sources[0]?.node):"Layout shift",a={[qe]:"auto.http.browser.cls",[tt]:"ui.webvital.cls",[mo]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((d,f)=>{a[`cls.source.${f+1}`]=Bt(d.node)});const c=O0({name:s,transaction:i,attributes:a,startTime:o});c&&(c.addEvent("cls",{[La]:"",[Da]:e}),c.end(o))}const DY=6e4;function _l(e){return e!=null&&e>0&&e<=DY}function FY(e){let t=0,n;if(!jd("largest-contentful-paint"))return;const r=Bd(({metric:o})=>{const i=o.entries[o.entries.length-1];!i||!_l(o.value)||(t=o.value,n=i)},!0);Hd(e,(o,i)=>{BY(t,n,i,o),r()})}function BY(e,t,n,r){if(!_l(e))return;ar&&R.log(`Sending LCP span (${e})`);const o=gt((Mt()||0)+(t?.startTime||0)),i=Pe().getScopeData().transactionName,s=t?Bt(t.element):"Largest contentful paint",a={[qe]:"auto.http.browser.lcp",[tt]:"ui.webvital.lcp",[mo]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=Bt(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));const c=O0({name:s,transaction:i,attributes:a,startTime:o});c&&(c.addEvent("lcp",{[La]:"millisecond",[Da]:e}),c.end(o))}function Gn(e){return e&&((Mt()||performance.timeOrigin)+e)/1e3}function AE(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=PY(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return Mt()||gs()?.timeOrigin?UY({...t,"http.request.redirect_start":Gn(e.redirectStart),"http.request.redirect_end":Gn(e.redirectEnd),"http.request.worker_start":Gn(e.workerStart),"http.request.fetch_start":Gn(e.fetchStart),"http.request.domain_lookup_start":Gn(e.domainLookupStart),"http.request.domain_lookup_end":Gn(e.domainLookupEnd),"http.request.connect_start":Gn(e.connectStart),"http.request.secure_connection_start":Gn(e.secureConnectionStart),"http.request.connection_end":Gn(e.connectEnd),"http.request.request_start":Gn(e.requestStart),"http.request.response_start":Gn(e.responseStart),"http.request.response_end":Gn(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function UY(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const jY=2147483647;let kE=0,dn={},$n,zd;function HY({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=gs();if(r&&Mt()){r.mark&&De.performance.mark("sentry-tracing-init");const o=t?FY(n):t===!1?YY():void 0,i=e?MY(n):e===!1?GY():void 0,s=KY();return()=>{s(),o?.(),i?.()}}return()=>{}}function zY(){ui("longtask",({entries:e})=>{const t=$t();if(!t)return;const{op:n,start_timestamp:r}=Le(t);for(const o of e){const i=gt(Mt()+o.startTime),s=gt(o.duration);n==="navigation"&&r&&i<r||$o(t,i,i+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[qe]:"auto.ui.browser.metrics"}})}})}function qY(){new PerformanceObserver(t=>{const n=$t();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const o=gt(Mt()+r.startTime),{start_timestamp:i,op:s}=Le(n);if(s==="navigation"&&i&&o<i)continue;const a=gt(r.duration),c={[qe]:"auto.ui.browser.metrics"},d=r.scripts[0],{invoker:f,invokerType:u,sourceURL:p,sourceFunctionName:m,sourceCharPosition:_}=d;c["browser.script.invoker"]=f,c["browser.script.invoker_type"]=u,p&&(c["code.filepath"]=p),m&&(c["code.function"]=m),_!==-1&&(c["browser.script.source_char_position"]=_),$o(n,o,o+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function WY(){ui("event",({entries:e})=>{const t=$t();if(t){for(const n of e)if(n.name==="click"){const r=gt(Mt()+n.startTime),o=gt(n.duration),i={name:Bt(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[qe]:"auto.ui.browser.metrics"}},s=Qp(n.target);s&&(i.attributes["ui.component_name"]=s),$o(t,r,r+o,i)}}})}function GY(){return Fd(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(dn.cls={value:e.value,unit:""},zd=t)},!0)}function YY(){return Bd(({metric:e})=>{const t=e.entries[e.entries.length-1];!t||!_l(e.value)||(dn.lcp={value:e.value,unit:"millisecond"},$n=t)},!0)}function KY(){return AY(({metric:e})=>{e.entries[e.entries.length-1]&&(dn.ttfb={value:e.value,unit:"millisecond"})})}function XY(e,t){const n=gs(),r=Mt();if(!n?.getEntries||!r)return;const{spanStreamingEnabled:o,ignorePerformanceApiSpans:i,ignoreResourceSpans:s,recordClsOnPageloadSpan:a,recordLcpOnPageloadSpan:c}=t,d=gt(r),f=n.getEntries(),{op:u,start_timestamp:p}=Le(e);if(f.slice(kE).forEach(m=>{const _=gt(m.startTime),y=gt(Math.max(0,m.duration));if(!(u==="navigation"&&p&&d+_<p))switch(m.entryType){case"navigation":{VY(e,m,d);break}case"mark":case"paint":case"measure":{ZY(e,m,_,y,d,i);const g=ul(),h=m.startTime<g.firstHiddenTime;m.name==="first-paint"&&h&&(dn.fp={value:m.startTime,unit:"millisecond"}),m.name==="first-contentful-paint"&&h&&(dn.fcp={value:m.startTime,unit:"millisecond"});break}case"resource":{nK(e,m,m.name,_,y,d,s);break}}}),kE=Math.max(f.length-1,0),rK(e,o),u==="pageload"){if(sK(dn),o){const m=(_,y,g)=>{const h=g??`browser.web_vital.${_}.value`;e.setAttribute(h,y),ar&&R.log("Setting web vital attribute",{[h]:y},"on pageload span")};["ttfb","fp","fcp"].forEach(_=>{dn[_]&&m(_,dn[_].value)}),dn["ttfb.requestTime"]&&m("ttfb.requestTime",dn["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else a||delete dn.cls,c||delete dn.lcp,Object.entries(dn).forEach(([m,_])=>{c3(m,_.value,_.unit)}),oK(e,t);e.setAttribute(o?"browser.performance.time_origin":"performance.timeOrigin",d),e.setAttribute(o?"browser.performance.navigation.activation_start":"performance.activationStart",ms())}$n=void 0,zd=void 0,dn={}}function JY(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function ZY(e,t,n,r,o,i){if(JY(t)||["mark","measure"].includes(t.entryType)&&nr(t.name,i))return;const s=dl(!1),a=gt(s?s.requestStart:0),c=o+Math.max(n,a),d=o+n,f=d+r,u={[qe]:"auto.resource.browser.metrics"};c!==d&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=c),QY(u,t),c<=f&&$o(e,c,f,{name:t.name,op:t.entryType,attributes:u})}function QY(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,o]of Object.entries(n))if(o&&Ur(o))e[`sentry.browser.measure.detail.${r}`]=o;else if(o!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(o)}catch{}return}if(Ur(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function VY(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{qd(e,t,r,n)}),qd(e,t,"secureConnection",n,"TLS/SSL"),qd(e,t,"fetch",n,"cache"),qd(e,t,"domainLookup",n,"DNS"),tK(e,t,n)}function qd(e,t,n,r,o=n){const i=eK(n),s=t[i],a=t[`${n}Start`];!a||!s||$o(e,r+gt(a),r+gt(s),{op:`browser.${o}`,name:t.name,attributes:{[qe]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function eK(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function tK(e,t,n){const r=n+gt(t.requestStart),o=n+gt(t.responseEnd),i=n+gt(t.responseStart);t.responseEnd&&($o(e,r,o,{op:"browser.request",name:t.name,attributes:{[qe]:"auto.ui.browser.metrics"}}),$o(e,i,o,{op:"browser.response",name:t.name,attributes:{[qe]:"auto.ui.browser.metrics"}}))}function nK(e,t,n,r,o,i,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(a))return;const c={[qe]:"auto.resource.browser.metrics"},d=ei(n);d.protocol&&(c["url.scheme"]=d.protocol.split(":").pop()),d.host&&(c["server.address"]=d.host),c["url.same_origin"]=n.includes(De.location.origin),iK(t,c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const f={...c,...AE(t)},u=i+r,p=u+o;$o(e,u,p,{name:n.replace(De.location.origin,""),op:a,attributes:f})}function rK(e,t){const n=De.navigator;if(!n)return;const r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute(t?"network.connection.type":"connectionType",r.type),I0(r.rtt)&&(dn["connection.rtt"]={value:r.rtt,unit:"millisecond"},t&&e.setAttribute("network.connection.rtt",r.rtt))),I0(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),I0(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}function oK(e,t){$n&&t.recordLcpOnPageloadSpan&&($n.element&&e.setAttribute("lcp.element",Bt($n.element)),$n.id&&e.setAttribute("lcp.id",$n.id),$n.url&&e.setAttribute("lcp.url",$n.url.trim().slice(0,200)),$n.loadTime!=null&&e.setAttribute("lcp.loadTime",$n.loadTime),$n.renderTime!=null&&e.setAttribute("lcp.renderTime",$n.renderTime),e.setAttribute("lcp.size",$n.size)),zd?.sources&&t.recordClsOnPageloadSpan&&zd.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,Bt(n.node)))}function iK(e,t,n){n.forEach(([r,o])=>{const i=e[r];i!=null&&(typeof i=="number"&&i<jY||typeof i=="string")&&(t[o]=i)})}function sK(e){const t=dl(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const aK="ElementTiming",lK=(()=>({name:aK,setup(){!gs()||!Mt()||ui("element",({entries:t})=>{for(const n of t){const r=n;if(!r.identifier)continue;const o=r.identifier,i=r.name,s=r.renderTime,a=r.loadTime,c={"sentry.origin":"auto.ui.browser.element_timing","ui.element.identifier":o};i&&(c["ui.element.paint_type"]=i),r.id&&(c["ui.element.id"]=r.id),r.element&&(c["ui.element.type"]=r.element.tagName.toLowerCase()),r.url&&(c["ui.element.url"]=r.url),r.naturalWidth&&(c["ui.element.width"]=r.naturalWidth),r.naturalHeight&&(c["ui.element.height"]=r.naturalHeight),s>0&&Um("ui.element.render_time",s,{unit:"millisecond",attributes:c}),a>0&&Um("ui.element.load_time",a,{unit:"millisecond",attributes:c})}})}})),R0=[],hl=new Map,ys=new Map,CE=60;function cK(){if(gs()&&Mt()){const t=dK();return()=>{t()}}return()=>{}}const gl={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function dK(){return N0(uK)}const uK=({metric:e})=>{if(e.value==null)return;const t=gt(e.value);if(t>CE)return;const n=e.entries.find(_=>_.duration===e.value&&gl[_.name]);if(!n)return;const{interactionId:r}=n,o=gl[n.name],i=gt(Mt()+n.startTime),s=$t(),a=s?Et(s):void 0,c=r!=null?hl.get(r):void 0,d=c?.span||a,f=d?Le(d).description:Pe().getScopeData().transactionName,u=c?.elementName||Bt(n.target),p={[qe]:"auto.http.browser.inp",[tt]:`ui.interaction.${o}`,[mo]:n.duration},m=O0({name:u,transaction:f,attributes:p,startTime:i});m&&(m.addEvent("inp",{[La]:"millisecond",[Da]:e.value}),m.end(i+t))};function fK(e){return e!=null?hl.get(e):void 0}function pK(){const e=Object.keys(gl);ol()&&e.forEach(o=>{De.addEventListener(o,t,{capture:!0,passive:!0})});function t(o){const i=o.target;if(!i)return;const s=Bt(i),a=Math.round(o.timeStamp);if(ys.set(a,s),ys.size>50){const c=ys.keys().next().value;c!==void 0&&ys.delete(c)}}function n(o){const i=Math.round(o.startTime);let s=ys.get(i);if(!s)for(let a=-5;a<=5;a++){const c=ys.get(i+a);if(c){s=c;break}}return s||"<unknown>"}const r=({entries:o})=>{const i=$t(),s=i&&Et(i);o.forEach(a=>{if(!RY(a))return;const c=a.interactionId;if(c==null||hl.has(c))return;const d=a.target?Bt(a.target):n(a);if(R0.length>10){const f=R0.shift();hl.delete(f)}R0.push(c),hl.set(c,{span:s,elementName:d})})};ui("event",r),ui("first-input",r)}function x0(e){const{name:t,op:n,origin:r,metricName:o,value:i,attributes:s,parentSpan:a,reportEvent:c,startTime:d,endTime:f}=e,u=Pe().getScopeData().transactionName,p={[qe]:r,[tt]:n,[mo]:0,[`browser.web_vital.${o}.value`]:i,"sentry.transaction":u,"user_agent.original":De.navigator?.userAgent,...s};a&&Dc(a).attributes?.[tt]==="pageload"&&(p["sentry.pageload.span_id"]=a.spanContext().spanId),c&&(p[`browser.web_vital.${o}.report_event`]=c);const m=$r({name:t,attributes:p,startTime:d,parentSpan:a});m&&m.end(f??d)}function mK(e){let t=0,n;if(!jd("largest-contentful-paint"))return;const r=Bd(({metric:o})=>{const i=o.entries[o.entries.length-1];!i||!_l(o.value)||(t=o.value,n=i)},!0);Hd(e,(o,i,s)=>{_K(t,n,s,o),r()})}function _K(e,t,n,r){if(!_l(e))return;ar&&R.log(`Sending LCP span (${e})`);const o=Mt()||0,i=gt(o),s=gt(o+(t?.startTime||0)),a=t?Bt(t.element):"Largest contentful paint",c={};t?.element&&(c["browser.web_vital.lcp.element"]=Bt(t.element)),t?.id&&(c["browser.web_vital.lcp.id"]=t.id),t?.url&&(c["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(c["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(c["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(c["browser.web_vital.lcp.size"]=t.size),x0({name:a,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:c,parentSpan:n,reportEvent:r,startTime:i,endTime:s})}function hK(e){let t=0,n;if(!jd("layout-shift"))return;const r=Fd(({metric:o})=>{const i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);Hd(e,(o,i,s)=>{gK(t,n,s,o),r()})}function gK(e,t,n,r){ar&&R.log(`Sending CLS span (${e})`);const o=t?gt((Mt()||0)+t.startTime):at(),i=t?Bt(t.sources[0]?.node):"Layout shift",s={};t?.sources&&t.sources.forEach((a,c)=>{s[`browser.web_vital.cls.source.${c+1}`]=Bt(a.node)}),x0({name:i,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:s,parentSpan:n,reportEvent:r,startTime:o})}function yK(){if(!gs()||!Mt())return;N0(({metric:n})=>{if(n.value==null||gt(n.value)>CE)return;const o=n.entries.find(i=>i.duration===n.value&&gl[i.name]);o&&bK(n.value,o)})}function bK(e,t){ar&&R.log(`Sending INP span (${e})`);const n=gt(Mt()+t.startTime),r=gt(e),o=gl[t.name],i=fK(t.interactionId),s=$t(),a=s?Et(s):void 0,c=i?.span||a,d=c?Dc(c).name:Pe().getScopeData().transactionName,f=i?.elementName||Bt(t.target);x0({name:f,op:`ui.interaction.${o}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[mo]:t.duration,"sentry.transaction":d},startTime:n,endTime:n+r,parentSpan:c})}const vK=1e3;let NE,P0,M0;function IE(e){uo("dom",e),fo("dom",EK)}function EK(){if(!De.document)return;const e=Un.bind(null,"dom"),t=OE(e,!0);De.document.addEventListener("click",t,!1),De.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const o=De[n]?.prototype;o?.hasOwnProperty?.("addEventListener")&&(Wt(o,"addEventListener",function(i){return function(s,a,c){if(s==="click"||s=="keypress")try{const d=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},f=d[s]=d[s]||{refCount:0};if(!f.handler){const u=OE(e);f.handler=u,i.call(this,s,u,c)}f.refCount++}catch{}return i.call(this,s,a,c)}}),Wt(o,"removeEventListener",function(i){return function(s,a,c){if(s==="click"||s=="keypress")try{const d=this.__sentry_instrumentation_handlers__||{},f=d[s];f&&(f.refCount--,f.refCount<=0&&(i.call(this,s,f.handler,c),f.handler=void 0,delete d[s]),Object.keys(d).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,a,c)}}))})}function $K(e){if(e.type!==P0)return!1;try{if(!e.target||e.target._sentryId!==M0)return!1}catch{}return!0}function SK(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function OE(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=TK(n);if(SK(n.type,r))return;Gt(n,"_sentryCaptured",!0),r&&!r._sentryId&&Gt(r,"_sentryId",Ut());const o=n.type==="keypress"?"input":n.type;$K(n)||(e({event:n,name:o,global:t}),P0=n.type,M0=r?r._sentryId:void 0),clearTimeout(NE),NE=De.setTimeout(()=>{M0=void 0,P0=void 0},vK)}}function TK(e){try{return e.target}catch{return null}}let Wd;function Gd(e){const t="history";uo(t,e),fo(t,wK)}function wK(){if(De.addEventListener("popstate",()=>{const t=De.location.href,n=Wd;if(Wd=t,n===t)return;Un("history",{from:n,to:t})}),!vW())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const o=Wd,i=AK(String(r));if(Wd=i,o===i)return t.apply(this,n);Un("history",{from:o,to:i})}return t.apply(this,n)}}Wt(De.history,"pushState",e),Wt(De.history,"replaceState",e)}function AK(e){try{return new URL(e,De.location.origin).toString()}catch{return e}}const Yd={};function L0(e){const t=Yd[e];if(t)return t;let n=De[e];if(n0(n))return Yd[e]=n.bind(De);const r=De.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const i=o.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(o)}catch(o){ar&&R.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(Yd[e]=n.bind(De))}function kK(e){Yd[e]=void 0}function yl(...e){return L0("setTimeout")(...e)}const Qr="__sentry_xhr_v3__";function D0(e){uo("xhr",e),fo("xhr",CK)}function CK(){if(!De.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const o=new Error,i=at()*1e3,s=tr(r[0])?r[0].toUpperCase():void 0,a=NK(r[1]);if(!s||!a)return t.apply(n,r);n[Qr]={method:s,url:a,request_headers:{}},s==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const d=n[Qr];if(d&&n.readyState===4){try{d.status_code=n.status}catch{}const f={endTimestamp:at()*1e3,startTimestamp:i,xhr:n,virtualError:o};Un("xhr",f)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(d,f,u){return c(),d.apply(f,u)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(d,f,u){const[p,m]=u,_=f[Qr];return _&&tr(p)&&tr(m)&&(_.request_headers[p.toLowerCase()]=m),d.apply(f,u)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const o=n[Qr];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);const i={startTimestamp:at()*1e3,xhr:n};return Un("xhr",i),t.apply(n,r)}})}function NK(e){if(tr(e))return e;try{return e.toString()}catch{}}const IK=Symbol.for("sentry__originalRequestBody");function RE(e){return new URLSearchParams(e).toString()}function Kd(e,t=R){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[RE(e)];if(!e)return[void 0]}catch(n){return ar&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ar&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function F0(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const n=e[0][IK];return n!==void 0?n:void 0}}function xE(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return ar&&R.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r
520
+ `).reduce((n,r)=>{const[o,i]=r.split(": ");return i&&(n[o.toLowerCase()]=i),n},{}):{}}const OK=40;function B0(e,t=L0("fetch")){let n=0,r=0;async function o(i){const s=i.body.length;n+=s,r++;const a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const c=await t(e.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw kK("fetch"),c}finally{n-=s,r--}}return G3(e,o,Nm(e.bufferSize||OK))}const le=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function RK(){const e=fe();if(!e){le&&R.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){le&&R.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")}function xK(){const e=fe();if(!e){le&&R.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){le&&R.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}const PK={startProfiler:RK,stopProfiler:xK},MK=10,LK=20,DK=30,FK=40,BK=50;function bs(e,t,n,r){const o={filename:e,function:t==="<anonymous>"?gr:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const UK=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,jK=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,HK=/\((\S*)(?::(\d+))(?::(\d+))\)/,zK=/at (.+?) ?\(data:(.+?),/,PE=[DK,e=>{const t=e.match(zK);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=UK.exec(e);if(n){const[,o,i,s]=n;return bs(o,gr,+i,+s)}const r=jK.exec(e);if(r){if(r[2]?.indexOf("eval")===0){const a=HK.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[i,s]=FE(r[1]||gr,r[2]);return bs(s,i,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],qK=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,WK=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ME=[BK,e=>{const t=qK.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=WK.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||gr;return[o,r]=FE(o,r),bs(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],GK=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,YK=[FK,e=>{const t=GK.exec(e);return t?bs(t[2],t[1]||gr,+t[3],t[4]?+t[4]:void 0):void 0}],KK=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,XK=[MK,e=>{const t=KK.exec(e);return t?bs(t[2],t[3]||gr,+t[1]):void 0}],JK=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,ZK=[LK,e=>{const t=JK.exec(e);return t?bs(t[5],t[3]||t[4]||gr,+t[1],+t[2]):void 0}],LE=[PE,ME],DE=ev(...LE),FE=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:gr,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function QK(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:vr(r)}},i=VK(e);return zn(o,[i])}function VK(e){return[{type:"user_report"},e]}const Xd=1024,eX="Breadcrumbs",BE=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:eX,setup(n){t.console&&Fm(rX(n)),t.dom&&IE(nX(n,t.dom)),t.xhr&&D0(oX(n)),t.fetch&&r0(iX(n)),t.history&&Gd(sX(n)),t.sentry&&n.on("beforeSendEvent",tX(n))}}});function tX(e){return function(n){fe()===e&&or({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Yo(n)},{event:n})}}function nX(e,t){return function(r){if(fe()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Xd&&(le&&R.warn(`\`dom.maxStringLength\` cannot exceed ${Xd}, but a value of ${a} was configured. Sentry will use ${Xd} instead.`),a=Xd),typeof s=="string"&&(s=[s]);try{const d=r.event,f=aX(d)?d.target:d;o=Bt(f,{keyAttrs:s,maxStringLength:a}),i=Qp(f)}catch{o="<unknown>"}if(o.length===0)return;const c={category:`ui.${r.name}`,message:o};i&&(c.data={"ui.component_name":i}),or(c,{event:r.event,name:r.name,global:r.global})}}function rX(e){return function(n){if(fe()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:ed(n.level),message:xc(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${xc(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;or(r,{input:n.args,level:n.level})}}function oX(e){return function(n){if(fe()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[Qr];if(!r||!o||!i)return;const{method:s,url:a,status_code:c,body:d}=i,f={method:s,url:a,status_code:c},u={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:o},p={category:"xhr",data:f,type:"http",level:b9(c)};e.emit("beforeOutgoingRequestBreadcrumb",p,u),or(p,u)}}function iX(e){return function(n){if(fe()!==e)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o},s={category:"fetch",data:n.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",s,i),or(s,i)}else{const i=n.response,s={...n.fetchData,status_code:i?.status},a={input:n.args,response:i,startTimestamp:r,endTimestamp:o},c={category:"fetch",data:s,type:"http",level:b9(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),or(c,a)}}}function sX(e){return function(n){if(fe()!==e)return;let r=n.from,o=n.to;const i=ei(ye.location.href);let s=r?ei(r):void 0;const a=ei(o);s?.path||(s=i),i.protocol===a.protocol&&i.host===a.host&&(o=a.relative),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),or({category:"navigation",data:{from:r,to:o}})}}function aX(e){return!!e&&!!e.target}const lX="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),cX="BrowserApiErrors",UE=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:cX,setupOnce(){t.setTimeout&&Wt(ye,"setTimeout",jE),t.setInterval&&Wt(ye,"setInterval",jE),t.requestAnimationFrame&&Wt(ye,"requestAnimationFrame",dX),t.XMLHttpRequest&&"XMLHttpRequest"in ye&&Wt(XMLHttpRequest.prototype,"send",uX);const n=t.eventTarget;n&&(Array.isArray(n)?n:lX).forEach(o=>fX(o,t))}}});function jE(e){return function(...t){const n=t[0];return t[0]=ps(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Fr(e)}`}}),e.apply(this,t)}}function dX(e){return function(t){return e.apply(this,[ps(t,{mechanism:{data:{handler:Fr(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function uX(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&Wt(n,o,function(i){const s={mechanism:{data:{handler:Fr(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${o}`}},a=Vp(i);return a&&(s.mechanism.data.handler=Fr(a)),ps(i,s)})}),e.apply(this,t)}}function fX(e,t){const r=ye[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Wt(r,"addEventListener",function(o){return function(i,s,a){try{pX(s)&&(s.handleEvent=ps(s.handleEvent,{mechanism:{data:{handler:Fr(s),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&mX(this,i,s),o.apply(this,[i,ps(s,{mechanism:{data:{handler:Fr(s),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),Wt(r,"removeEventListener",function(o){return function(i,s,a){try{const c=s.__sentry_wrapped__;c&&o.call(this,i,c,a)}catch{}return o.call(this,i,s,a)}}))}function pX(e){return typeof e.handleEvent=="function"}function mX(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const HE=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof ye.document>"u"){le&&R.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}vm({ignoreDuration:!0}),Yc();const n=vt();let r=n.getUser();n.addScopeListener(o=>{const i=o.getUser();(r?.id!==i?.id||r?.ip_address!==i?.ip_address)&&(Yc(),r=i)}),t==="route"&&Gd(({from:o,to:i})=>{o!==i&&(vm({ignoreDuration:!0}),Yc())})}}},_X="CultureContext",zE=(()=>({name:_X,preprocessEvent(e){const t=qE();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){const t=qE();t&&qn(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}}));function qE(){try{const e=ye.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const hX="GlobalHandlers",WE=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:hX,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(gX(n),KE("onerror")),t.onunhandledrejection&&(yX(n),KE("onunhandledrejection"))}}});function gX(e){rv(t=>{const{stackParser:n,attachStacktrace:r}=XE();if(fe()!==e||aE())return;const{msg:o,url:i,line:s,column:a,error:c}=t,d=bX(Id(n,c||o,void 0,r,!1),i,s,a);d.level="error",Zi(d,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function yX(e){ov(t=>{const{stackParser:n,attachStacktrace:r}=XE();if(fe()!==e||aE())return;const o=GE(t),i=Ur(o)?YE(o):Id(n,o,void 0,r,!0);i.level="error",Zi(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function GE(e){if(Ur(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function YE(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function bX(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:vX(t)??Go(),function:gr,in_app:!0}),e}function KE(e){le&&R.log(`Global Handler attached: ${e}`)}function XE(){return fe()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function vX(e){if(!(!tr(e)||e.length===0))return e.startsWith("data:")?`<${ho(e,!1)}>`:e}const JE=()=>({name:"HttpContext",preprocessEvent(e){if(!ye.navigator&&!ye.location&&!ye.document)return;const t=Cd(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){if(!ye.navigator&&!ye.location&&!ye.document)return;const t=Cd();qn(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers["User-Agent"],"http.request.header.referer":t.headers.Referer})}}),EX="cause",$X=5,SX="LinkedErrors",ZE=((e={})=>{const t=e.limit||$X,n=e.key||EX;return{name:SX,preprocessEvent(r,o,i){const s=i.getOptions();Yj(Nd,s.stackParser,n,t,r,o)}}}),TX="SpotlightBrowser",wX=((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:TX,setup:()=>{le&&R.log("Using Sidecar URL",t)},processEvent:n=>CX(n)?null:n,afterAllSetup:n=>{AX(n,t)}}});function AX(e,t){const n=L0("fetch");let r=0;e.on("beforeEnvelope",o=>{if(r>3){R.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:qc(o),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(i=>{i.status>=200&&i.status<400&&(r=0)},i=>{r++,R.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",i)})})}const kX=wX;function CX(e){return!!(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t?.includes("#sentry-spotlight")))}function NX(){return IX()?(le&&er(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function IX(){if(typeof ye.window>"u")return!1;const e=ye;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=Go();return!(ye===ye.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}function U0(e){return[g4(),_4(),KH(),UE(),BE(),WE(),ZE(),A4(),JE(),zE(),HE()]}function OX(e={}){const t=!e.skipBrowserExtensionCheck&&NX();let n=e.defaultIntegrations==null?U0():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:dF(e.stackParser||DE),integrations:YU({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||B0};return vj(mE,r)}function RX(){}function xX(e){e()}function PX(e={}){const t=ye.document,n=t?.head||t?.body;if(!n){le&&R.error("[showReportDialog] Global document not defined");return}const r=Pe(),i=fe()?.getDsn();if(!i){le&&R.error("[showReportDialog] DSN not configured");return}const s={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||N3()},a=ye.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=WU(i,s);const{onLoad:c,onClose:d}=s;if(c&&(a.onload=c),d){const f=u=>{if(u.data==="__sentry_reportdialog_closed__")try{d()}finally{ye.removeEventListener("message",f)}};ye.addEventListener("message",f)}n.appendChild(a)}const MX=Se,LX="ReportingObserver",QE=new WeakMap,DX=((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(r){if(QE.has(fe()))for(const o of r)jn(i=>{i.setExtra("url",o.url);const s=`ReportingObserver [${o.type}]`;let a="No details available";if(o.body){const c={};for(const d in o.body)c[d]=o.body[d];if(i.setExtra("body",c),o.type==="crash"){const d=o.body;a=[d.crashId||"",d.reason||""].join(" ").trim()||a}else a=o.body.message||a}k3(`${s}: ${a}`)})}return{name:LX,setupOnce(){if(!$W())return;new MX.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){QE.set(r,!0)}}}),FX="HttpClient",BX=((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:FX,setup(n){YX(n,t),KX(n,t)}}});function UX(e,t,n,r,o){if(t6(e,n.status,n.url)){const i=XX(t,r);let s,a,c,d;r6()&&([s,c]=VE("Cookie",i),[a,d]=VE("Set-Cookie",n));const f=n6({url:i.url,method:i.method,status:n.status,requestHeaders:s,responseHeaders:a,requestCookies:c,responseCookies:d,error:o,type:"fetch"});Zi(f)}}function VE(e,t){const n=zX(t.headers);let r;try{const o=n[e]||n[e.toLowerCase()]||void 0;o&&(r=e6(o))}catch{}return[n,r]}function jX(e,t,n,r,o){if(t6(e,t.status,t.responseURL)){let i,s,a;if(r6()){try{const d=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;d&&(s=e6(d))}catch{}try{a=qX(t)}catch{}i=r}const c=n6({url:t.responseURL,method:n,status:t.status,requestHeaders:i,responseHeaders:a,responseCookies:s,error:o,type:"xhr"});Zi(c)}}function HX(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function e6(e){return e.split("; ").reduce((t,n)=>{const[r,o]=n.split("=");return r&&o&&(t[r]=o),t},{})}function zX(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function qX(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
521
+ `).reduce((n,r)=>{const[o,i]=r.split(": ");return o&&i&&(n[o]=i),n},{}):{}}function WX(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function GX(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function YX(e,t){v9()&&r0(n=>{if(fe()!==e)return;const{response:r,args:o,error:i,virtualError:s}=n,[a,c]=o;r&&UX(t,a,r,c,i||s)},!1)}function KX(e,t){"XMLHttpRequest"in Se&&D0(n=>{if(fe()!==e)return;const{error:r,virtualError:o}=n,i=n.xhr,s=i[Qr];if(!s)return;const{method:a,request_headers:c}=s;try{jX(t,i,a,c,r||o)}catch(d){le&&R.warn("Error while extracting response event form XHR response",d)}})}function t6(e,t,n){return GX(e.failedRequestStatusCodes,t)&&WX(e.failedRequestTargets,n)&&!c4(n,fe())}function n6(e){const t=fe(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,i={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:HX(e.responseHeaders)}}};return zr(i,{type:`auto.http.client.${e.type}`,handled:!1}),i}function XX(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function r6(){const e=fe();return e?!!e.getOptions().sendDefaultPii:!1}const j0=Se,JX=7,ZX="ContextLines",QX=((e={})=>{const t=e.frameContextLines!=null?e.frameContextLines:JX;return{name:ZX,processEvent(n){return VX(n,t)}}});function VX(e,t){const n=j0.document,r=j0.location&&l4(j0.location.href);if(!n||!r)return e;const o=e.exception?.values;if(!o?.length)return e;const i=n.documentElement.innerHTML;if(!i)return e;const s=["<!DOCTYPE html>","<html>",...i.split(`
522
+ `),"</html>"];return o.forEach(a=>{const c=a.stacktrace;c?.frames&&(c.frames=c.frames.map(d=>eJ(d,s,r,t)))}),e}function eJ(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||TF(t,e,r),e}const tJ="GraphQLClient",nJ=(e=>({name:tJ,setup(t){rJ(t,e),oJ(t,e)}}));function rJ(e,t){e.on("beforeOutgoingRequestSpan",(n,r)=>{const i=Le(n).data||{};if(!(i[tt]==="http.client"))return;const c=i[eB]||i["http.url"]||i.url,d=i[VF]||i["http.method"];if(!tr(c)||!tr(d))return;const{endpoints:f}=t,u=nr(c,f),p=i6(r);if(u&&p){const m=s6(p);if(m){const _=o6(m);n.updateName(`${d} ${c} (${_})`),Zd(m)&&n.setAttribute("graphql.document",m.query),Qd(m)&&(n.setAttribute("graphql.persisted_query.hash.sha256",m.extensions.persistedQuery.sha256Hash),n.setAttribute("graphql.persisted_query.version",m.extensions.persistedQuery.version))}}})}function oJ(e,t){e.on("beforeOutgoingRequestBreadcrumb",(n,r)=>{const{category:o,type:i,data:s}=n;if(i==="http"&&(o==="fetch"||o==="xhr")){const f=s?.url,{endpoints:u}=t,p=nr(f,u),m=i6(r);if(p&&s&&m){const _=s6(m);if(!s.graphql&&_){const y=o6(_);s["graphql.operation"]=y,Zd(_)&&(s["graphql.document"]=_.query),Qd(_)&&(s["graphql.persisted_query.hash.sha256"]=_.extensions.persistedQuery.sha256Hash,s["graphql.persisted_query.version"]=_.extensions.persistedQuery.version)}}}})}function o6(e){if(Qd(e))return`persisted ${e.operationName}`;if(Zd(e)){const{query:t,operationName:n}=e,{operationName:r=n,operationType:o}=iJ(t);return r?`${o} ${r}`:`${o}`}return"unknown"}function i6(e){const t="xhr"in e;let n;if(t){const r=e.xhr[Qr];n=r&&Kd(r.body)[0]}else{const r=F0(e.input);n=Kd(r)[0]}return n}function iJ(e){const t=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=e.match(t);if(r)return{operationType:r[1],operationName:r[2]};const o=e.match(n);return o?{operationType:o[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function Jd(e){return typeof e=="object"&&e!==null}function Zd(e){return Jd(e)&&typeof e.query=="string"}function Qd(e){return Jd(e)&&typeof e.operationName=="string"&&Jd(e.extensions)&&Jd(e.extensions.persistedQuery)&&typeof e.extensions.persistedQuery.sha256Hash=="string"&&typeof e.extensions.persistedQuery.version=="number"}function s6(e){try{const t=JSON.parse(e);return Zd(t)||Qd(t)?t:void 0}catch{return}}const sJ=nJ,aJ=(e={})=>{const t=["script"];function n(r,o,i=0){if(!r)return;const s="shadowRoot"in r&&r.shadowRoot?r.shadowRoot.children:r.children;for(const a of s){if(!(a instanceof HTMLElement))continue;const c=Qp(a,1)||void 0,d=a.tagName.toLowerCase();if(t.includes(d))continue;const f=e.onElement?.({element:a,componentName:c,tagName:d,depth:i})||{};if(f==="skip")continue;if(f==="children"){n(a,o,i+1);continue}const{x:u,y:p,width:m,height:_}=a.getBoundingClientRect(),y={identifier:a.id||void 0,type:c||d,visible:!0,alpha:1,height:_,width:m,x:u,y:p,...f},g=[];y.children=g,n(a,y.children,i+1),o.push(y)}}return{name:"ViewHierarchy",processEvent:(r,o)=>{if(r.type!==void 0||e.shouldAttach?.(r,o)===!1)return r;const i={rendering_system:"DOM",positioning:"absolute",windows:[]};n(e.rootElement?.()||ye.document.body,i.windows);const s={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(i)};return o.attachments=o.attachments||[],o.attachments.push(s),r}}},mt=Se,H0="sentryReplaySession",lJ="replay_event",z0="Unable to send Replay",cJ=3e5,dJ=9e5,uJ=5e3,fJ=5500,pJ=6e4,mJ=5e3,_J=3,a6=15e4,Vd=5e3,hJ=3e3,gJ=300,q0=2e7,yJ=4999,bJ=5e4,l6=36e5;var vJ=Object.defineProperty,EJ=(e,t,n)=>t in e?vJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c6=(e,t,n)=>EJ(e,typeof t!="symbol"?t+"":t,n),Lt=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Lt||{});function $J(e){return e.nodeType===e.ELEMENT_NODE}function bl(e){return e?.host?.shadowRoot===e}function vl(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function SJ(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function TJ(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function eu(e){try{const t=e.rules||e.cssRules;return t?SJ(Array.from(t,d6).join("")):null}catch{return null}}function wJ(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],i=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function d6(e){let t;if(kJ(e))try{t=eu(e.styleSheet)||TJ(e)}catch{}else if(CJ(e)){let n=e.cssText;const r=e.selectorText.includes(":"),o=typeof e.style.all=="string"&&e.style.all;if(o&&(n=wJ(e)),r&&(n=AJ(n)),r||o)return n}return t||e.cssText}function AJ(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function kJ(e){return"styleSheet"in e}function CJ(e){return"selectorText"in e}let u6=class{constructor(){c6(this,"idNodeMap",new Map),c6(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function NJ(){return new u6}function tu({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function El({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function vs(e){return e.toLowerCase()}function W0(e){return e.toUpperCase()}const f6="__rrweb_original__";function IJ(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let o=0;o<e.height;o+=n){const i=t.getImageData,s=f6 in i?i[f6]:i;if(new Uint32Array(s.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer).some(c=>c!==0))return!1}return!0}function G0(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?vs(t):null}function nu(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function p6(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}const m6={};function _6(e){const t=m6[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch{}return m6[e]=r.bind(window)}function Y0(...e){return _6("setTimeout")(...e)}function h6(...e){return _6("clearTimeout")(...e)}function g6(e){try{return e.contentDocument}catch{}}let OJ=1;const RJ=new RegExp("[^a-z0-9-_:]"),$l=-2;function K0(){return OJ++}function xJ(e){if(e instanceof HTMLFormElement)return"form";const t=vs(e.tagName);return RJ.test(t)?"div":t}function PJ(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Es,y6;const MJ=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,LJ=/^(?:[a-z+]+:)?\/\//i,DJ=/^www\..*/i,FJ=/^(data:)([^,]*),(.*)/i;function BJ(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let o of n){if(o=o.trim(),!o)continue;const i=o.indexOf(":");if(i===-1){r.push(o);continue}const s=o.slice(0,i).trim();t.has(s)||r.push(o)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function ru(e,t){return(e||"").replace(MJ,(n,r,o,i,s,a)=>{const c=o||s||a,d=r||i||"";if(!c)return n;if(LJ.test(c)||DJ.test(c))return`url(${d}${c}${d})`;if(FJ.test(c))return`url(${d}${c}${d})`;if(c[0]==="/")return`url(${d}${PJ(t)+c}${d})`;const f=t.split("/"),u=c.split("/");f.pop();for(const p of u)p!=="."&&(p===".."?f.pop():f.push(p));return`url(${d}${f.join("/")}${d})`})}const UJ=/^[^ \t\n\r\u000c]+/,jJ=/^[, \t\n\r\u000c]+/;function HJ(e,t){if(t.trim()==="")return t;let n=0;function r(i){let s;const a=i.exec(t.substring(n));return a?(s=a[0],n+=s.length,s):""}const o=[];for(;r(jJ),!(n>=t.length);){let i=r(UJ);if(i.slice(-1)===",")i=$s(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=$s(e,i);let a=!1;for(;;){const c=t.charAt(n);if(c===""){o.push((i+s).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,o.push((i+s).trim());break}else c==="("&&(a=!0);s+=c,n+=1}}}return o.join(", ")}const b6=new WeakMap;function $s(e,t){return!t||t.trim()===""?t:ou(e,t)}function zJ(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function ou(e,t){let n=b6.get(e);if(n||(n=e.createElement("a"),b6.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function v6(e,t,n,r,o,i,s){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return $s(e,r);if(n==="xlink:href"&&r[0]!=="#")return $s(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return $s(e,r);if(n==="srcset")return HJ(e,r);if(n==="style"){let a=ru(r,ou(e));return s&&s.size>0&&(a=BJ(a,s)),a}else if(t==="object"&&n==="data")return $s(e,r);return typeof i=="function"?i(n,r,o):r}function E6(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function qJ(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const i=e.classList[o];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function WJ(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function fi(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:fi(e.parentNode,t,n,r+1)}function Ss(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(WJ(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Ts(e,t,n,r,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){const d=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(d))return!0}let a=-1,c=-1;if(i){if(c=fi(s,Ss(r,o)),c<0)return!0;a=fi(s,Ss(t,n),c>=0?c:1/0)}else{if(a=fi(s,Ss(t,n)),a<0)return!1;c=fi(s,Ss(r,o),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!i}catch{}return!!i}function GJ(e,t,n){const r=e.contentWindow;if(!r)return;let o=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){const a=Y0(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{h6(a),o=!0,t()});return}const s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return Y0(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function YJ(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;const i=Y0(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{h6(i),r=!0,t()})}function KJ(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:d,unmaskTextClass:f,maskTextSelector:u,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:_={},maskTextFn:y,maskInputFn:g,dataURLOptions:h={},inlineImages:b,recordCanvas:v,keepIframeSrcFn:S,newlyAddedElement:N=!1,ignoreCSSAttributes:A}=t,$=XJ(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Lt.Document,childNodes:[],compatMode:e.compatMode}:{type:Lt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Lt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:$};case e.ELEMENT_NODE:return ZJ(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:c,maskInputOptions:_,maskInputFn:g,dataURLOptions:h,inlineImages:b,recordCanvas:v,keepIframeSrcFn:S,newlyAddedElement:N,rootId:$,maskTextClass:d,unmaskTextClass:f,maskTextSelector:u,unmaskTextSelector:p,ignoreCSSAttributes:A});case e.TEXT_NODE:return JJ(e,{doc:n,maskAllText:a,maskTextClass:d,unmaskTextClass:f,maskTextSelector:u,unmaskTextSelector:p,maskTextFn:y,maskInputOptions:_,maskInputFn:g,rootId:$});case e.CDATA_SECTION_NODE:return{type:Lt.CDATA,textContent:"",rootId:$};case e.COMMENT_NODE:return{type:Lt.Comment,textContent:e.textContent||"",rootId:$};default:return!1}}function XJ(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function JJ(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:d,rootId:f}=t,u=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const m=u==="STYLE"?!0:void 0,_=u==="SCRIPT"?!0:void 0,y=u==="TEXTAREA"?!0:void 0;if(m&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=eu(e.parentNode.sheet))}catch(h){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${h}`,e)}p=ru(p,ou(t.doc))}_&&(p="SCRIPT_PLACEHOLDER");const g=Ts(e,r,i,o,s,n);if(!m&&!_&&!y&&p&&g&&(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),y&&p&&(c.textarea||g)&&(p=d?d(p,e.parentNode):p.replace(/[\S]/g,"*")),u==="OPTION"&&p){const h=tu({type:null,tagName:u,maskInputOptions:c});p=El({isMasked:Ts(e,r,i,o,s,h),element:e,value:p,maskInputFn:d})}return{type:Lt.Text,textContent:p||"",isStyle:m,rootId:f}}function ZJ(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:d,dataURLOptions:f={},inlineImages:u,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:_=!1,rootId:y,maskTextClass:g,unmaskTextClass:h,maskTextSelector:b,unmaskTextSelector:v,ignoreCSSAttributes:S}=t,N=qJ(e,r,o,i),A=xJ(e);let $={};const H=e.attributes.length;for(let k=0;k<H;k++){const O=e.attributes[k];O.name&&!E6(A,O.name,O.value)&&($[O.name]=v6(n,A,vs(O.name),O.value,e,c,S))}if(A==="link"&&s){const k=Array.from(n.styleSheets).find(I=>I.href===e.href);let O=null;k&&(O=eu(k)),O&&($.rel=null,$.href=null,$.crossorigin=null,$._cssText=ru(O,k.href))}if(A==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const k=eu(e.sheet);k&&($._cssText=ru(k,ou(n)))}if(A==="input"||A==="textarea"||A==="select"||A==="option"){const k=e,O=G0(k),I=nu(k,W0(A),O),D=k.checked;if(O!=="submit"&&O!=="button"&&I){const x=Ts(k,g,b,h,v,tu({type:O,tagName:W0(A),maskInputOptions:a}));$.value=El({isMasked:x,element:k,value:I,maskInputFn:d})}D&&($.checked=D)}if(A==="option"&&(e.selected&&!a.select?$.selected=!0:delete $.selected),A==="canvas"&&p){if(e.__context==="2d")IJ(e)||($.rr_dataURL=e.toDataURL(f.type,f.quality));else if(!("__context"in e)){const k=e.toDataURL(f.type,f.quality),O=n.createElement("canvas");O.width=e.width,O.height=e.height;const I=O.toDataURL(f.type,f.quality);k!==I&&($.rr_dataURL=k)}}if(A==="img"&&u){Es||(Es=n.createElement("canvas"),y6=Es.getContext("2d"));const k=e,O=k.currentSrc||k.getAttribute("src")||"<unknown-src>",I=k.crossOrigin,D=()=>{k.removeEventListener("load",D);try{Es.width=k.naturalWidth,Es.height=k.naturalHeight,y6.drawImage(k,0,0),$.rr_dataURL=Es.toDataURL(f.type,f.quality)}catch(x){if(k.crossOrigin!=="anonymous"){k.crossOrigin="anonymous",k.complete&&k.naturalWidth!==0?D():k.addEventListener("load",D);return}else console.warn(`Cannot inline img src=${O}! Error: ${x}`)}k.crossOrigin==="anonymous"&&(I?$.crossOrigin=I:k.removeAttribute("crossorigin"))};k.complete&&k.naturalWidth!==0?D():k.addEventListener("load",D)}if((A==="audio"||A==="video")&&($.rr_mediaState=e.paused?"paused":"played",$.rr_mediaCurrentTime=e.currentTime),_||(e.scrollLeft&&($.rr_scrollLeft=e.scrollLeft),e.scrollTop&&($.rr_scrollTop=e.scrollTop)),N){const{width:k,height:O}=e.getBoundingClientRect();$={class:$.class,rr_width:`${k}px`,rr_height:`${O}px`}}A==="iframe"&&!m($.src)&&(!N&&!g6(e)&&($.rr_src=$.src),delete $.src);let q;try{customElements.get(A)&&(q=!0)}catch{}return{type:Lt.Element,tagName:A,attributes:$,childNodes:[],isSVG:zJ(e)||void 0,needBlock:N,rootId:y,isCustom:q}}function _t(e){return e==null?"":e.toLowerCase()}function QJ(e,t){if(t.comment&&e.type===Lt.Comment)return!0;if(e.type===Lt.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&p6(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(_t(e.attributes.name).match(/^msapplication-tile(image|color)$/)||_t(e.attributes.name)==="application-name"||_t(e.attributes.rel)==="icon"||_t(e.attributes.rel)==="apple-touch-icon"||_t(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&_t(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(_t(e.attributes.property).match(/^(og|twitter|fb):/)||_t(e.attributes.name).match(/^(og|twitter):/)||_t(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(_t(e.attributes.name)==="robots"||_t(e.attributes.name)==="googlebot"||_t(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(_t(e.attributes.name)==="author"||_t(e.attributes.name)==="generator"||_t(e.attributes.name)==="framework"||_t(e.attributes.name)==="publisher"||_t(e.attributes.name)==="progid"||_t(e.attributes.property).match(/^article:/)||_t(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(_t(e.attributes.name)==="google-site-verification"||_t(e.attributes.name)==="yandex-verification"||_t(e.attributes.name)==="csrf-token"||_t(e.attributes.name)==="p:domain_verify"||_t(e.attributes.name)==="verify-v1"||_t(e.attributes.name)==="verification"||_t(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ws(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:u,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:_={},maskAttributeFn:y,maskTextFn:g,maskInputFn:h,slimDOMOptions:b,dataURLOptions:v={},inlineImages:S=!1,recordCanvas:N=!1,onSerialize:A,onIframeLoad:$,iframeLoadTimeout:H=5e3,onBlockedImageLoad:q,onStylesheetLoad:k,stylesheetLoadTimeout:O=5e3,keepIframeSrcFn:I=()=>!1,newlyAddedElement:D=!1,ignoreCSSAttributes:x}=t;let{preserveWhiteSpace:z=!0}=t;const B=KJ(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:u,inlineStylesheet:m,maskInputOptions:_,maskAttributeFn:y,maskTextFn:g,maskInputFn:h,dataURLOptions:v,inlineImages:S,recordCanvas:N,keepIframeSrcFn:I,newlyAddedElement:D,ignoreCSSAttributes:x});if(!B)return console.warn(e,"not serialized"),null;let F;r.hasNode(e)?F=r.getId(e):QJ(B,b)||!z&&B.type===Lt.Text&&!B.isStyle&&!B.textContent.replace(/^\s+|\s+$/gm,"").length?F=$l:F=K0();const M=Object.assign(B,{id:F});if(r.add(e,M),F===$l)return null;A&&A(e);let K=!p;if(M.type===Lt.Element){K=K&&!M.needBlock;const W=e.shadowRoot;W&&vl(W)&&(M.isShadowHost=!0)}if((M.type===Lt.Document||M.type===Lt.Element)&&K){b.headWhitespace&&M.type===Lt.Element&&M.tagName==="head"&&(z=!1);const W={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:u,skipChild:p,inlineStylesheet:m,maskInputOptions:_,maskAttributeFn:y,maskTextFn:g,maskInputFn:h,slimDOMOptions:b,dataURLOptions:v,inlineImages:S,recordCanvas:N,preserveWhiteSpace:z,onSerialize:A,onIframeLoad:$,iframeLoadTimeout:H,onBlockedImageLoad:q,onStylesheetLoad:k,stylesheetLoadTimeout:O,keepIframeSrcFn:I,ignoreCSSAttributes:x},X=e.childNodes?Array.from(e.childNodes):[];for(const oe of X){const ce=ws(oe,W);ce&&M.childNodes.push(ce)}if($J(e)&&e.shadowRoot)for(const oe of Array.from(e.shadowRoot.childNodes)){const ce=ws(oe,W);ce&&(vl(e.shadowRoot)&&(ce.isShadow=!0),M.childNodes.push(ce))}}if(e.parentNode&&bl(e.parentNode)&&vl(e.parentNode)&&(M.isShadow=!0),M.type===Lt.Element&&M.tagName==="iframe"&&!M.needBlock&&GJ(e,()=>{const W=g6(e);if(W&&$){const X=ws(W,{doc:W,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:m,maskInputOptions:_,maskAttributeFn:y,maskTextFn:g,maskInputFn:h,slimDOMOptions:b,dataURLOptions:v,inlineImages:S,recordCanvas:N,preserveWhiteSpace:z,onSerialize:A,onIframeLoad:$,iframeLoadTimeout:H,onStylesheetLoad:k,stylesheetLoadTimeout:O,keepIframeSrcFn:I,ignoreCSSAttributes:x});X&&$(e,X)}},H),M.type===Lt.Element&&M.tagName==="img"&&!e.complete&&M.needBlock){const W=e,X=()=>{if(W.isConnected&&!W.complete&&q)try{const oe=W.getBoundingClientRect();oe.width>0&&oe.height>0&&q(W,M,oe)}catch{}W.removeEventListener("load",X)};W.isConnected&&W.addEventListener("load",X)}return M.type===Lt.Element&&M.tagName==="link"&&typeof M.attributes.rel=="string"&&(M.attributes.rel==="stylesheet"||M.attributes.rel==="preload"&&typeof M.attributes.href=="string"&&p6(M.attributes.href)==="css")&&YJ(e,()=>{if(k){const W=ws(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:m,maskInputOptions:_,maskAttributeFn:y,maskTextFn:g,maskInputFn:h,slimDOMOptions:b,dataURLOptions:v,inlineImages:S,recordCanvas:N,preserveWhiteSpace:z,onSerialize:A,onIframeLoad:$,iframeLoadTimeout:H,onStylesheetLoad:k,stylesheetLoadTimeout:O,keepIframeSrcFn:I,ignoreCSSAttributes:x});W&&k(e,W)}},O),M.type===Lt.Element&&delete M.needBlock,M}function VJ(e,t){const{mirror:n=new u6,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:d=null,unmaskTextSelector:f=null,inlineStylesheet:u=!0,inlineImages:p=!1,recordCanvas:m=!1,maskAllInputs:_=!1,maskAttributeFn:y,maskTextFn:g,maskInputFn:h,slimDOM:b=!1,dataURLOptions:v,preserveWhiteSpace:S,onSerialize:N,onIframeLoad:A,iframeLoadTimeout:$,onBlockedImageLoad:H,onStylesheetLoad:q,stylesheetLoadTimeout:k,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:I=new Set([])}=t||{};return ws(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:u,maskInputOptions:_===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:_===!1?{}:_,maskAttributeFn:y,maskTextFn:g,maskInputFn:h,slimDOMOptions:b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:b==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:b===!1?{}:b,dataURLOptions:v,inlineImages:p,recordCanvas:m,preserveWhiteSpace:S,onSerialize:N,onIframeLoad:A,iframeLoadTimeout:$,onBlockedImageLoad:H,onStylesheetLoad:q,stylesheetLoadTimeout:k,keepIframeSrcFn:O,newlyAddedElement:!1,ignoreCSSAttributes:I})}function un(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const As=`Please stop import mirror directly. Instead of that,\r
523
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
524
+ or you can use record.mirror to access the mirror instance during recording.`;let $6={map:{},getId(){return console.error(As),-1},getNode(){return console.error(As),null},removeNodeFromMap(){console.error(As)},has(){return console.error(As),!1},reset(){console.error(As)}};typeof window<"u"&&window.Proxy&&window.Reflect&&($6=new Proxy($6,{get(e,t,n){return t==="map"&&console.error(As),Reflect.get(e,t,n)}}));function Sl(e,t,n={}){let r=null,o=0;return function(...i){const s=Date.now();!o&&n.leading===!1&&(o=s);const a=t-(s-o),c=this;a<=0||a>t?(r&&(sZ(r),r=null),o=s,e.apply(c,i)):!r&&n.trailing!==!1&&(r=su(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(c,i)},a))}}function S6(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){su(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>S6(e,t,i||{},!0)}function X0(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}let iu=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(iu=()=>new Date().getTime());function T6(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function w6(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function A6(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function k6(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function xn(e,t,n,r,o){if(!e)return!1;const i=k6(e);if(!i)return!1;const s=Ss(t,n);if(!o){const d=r&&i.matches(r);return s(i)&&!d}const a=fi(i,s);let c=-1;return a<0?!1:(r&&(c=fi(i,Ss(null,r))),a>-1&&c<0?!0:a<c)}function eZ(e,t){return t.getId(e)!==-1}function J0(e,t){return t.getId(e)===$l}function C6(e,t){if(bl(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?C6(e.parentNode,t):!0:!0}function Z0(e){return!!e.changedTouches}function tZ(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function N6(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function I6(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Q0(e){return!!e?.shadowRoot}class nZ{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function O6(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function rZ(e){let t=e,n;for(;n=O6(t);)t=n;return t}function oZ(e){const t=e.ownerDocument;if(!t)return!1;const n=rZ(e);return t.contains(n)}function R6(e){const t=e.ownerDocument;return t?t.contains(e)||oZ(e):!1}const x6={};function V0(e){const t=x6[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch{}return x6[e]=r.bind(window)}function iZ(...e){return V0("requestAnimationFrame")(...e)}function su(...e){return V0("setTimeout")(...e)}function sZ(...e){return V0("clearTimeout")(...e)}var je=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(je||{}),Me=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Me||{}),fn=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(fn||{}),Vr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Vr||{}),ks=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(ks||{});function e_(e){try{return e.contentDocument}catch{}}function aZ(e){try{return e.contentWindow}catch{}}function P6(e){return"__ln"in e}class lZ{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&P6(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&P6(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const M6=(e,t)=>`${e}@${t}`;class cZ{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new lZ,o=c=>{let d=c,f=$l;for(;f===$l;)d=d&&d.nextSibling,f=d&&this.mirror.getId(d);return f},i=c=>{if(!c.parentNode||!R6(c))return;const d=bl(c.parentNode)?this.mirror.getId(O6(c)):this.mirror.getId(c.parentNode),f=o(c);if(d===-1||f===-1)return r.addNode(c);const u=ws(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{N6(p,this.mirror)&&!xn(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(p),I6(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),Q0(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(p,m)=>{xn(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(p,m),p.contentWindow&&this.canvasManager.addWindow(p.contentWindow),this.shadowDomManager.observeAttachShadow(p))},onStylesheetLoad:(p,m)=>{this.stylesheetManager.attachLinkElement(p,m)},onBlockedImageLoad:(p,m,{width:_,height:y})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:m.id,attributes:{style:{width:`${_}px`,height:`${y}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});u&&(t.push({parentId:d,nextId:f,node:u}),n.add(u.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)L6(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(const c of this.addedSet)!D6(this.droppedSet,c)&&!L6(this.removes,c,this.mirror)||D6(this.movedSet,c)?i(c):this.droppedSet.add(c);let s=null;for(;r.length;){let c=null;if(s){const d=this.mirror.getId(s.value.parentNode),f=o(s.value);d!==-1&&f!==-1&&(c=s)}if(!c){let d=r.tail;for(;d;){const f=d;if(d=d.previous,f){const u=this.mirror.getId(f.value.parentNode);if(o(f.value)===-1)continue;if(u!==-1){c=f;break}else{const m=f.value;if(m.parentNode&&m.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const _=m.parentNode.host;if(this.mirror.getId(_)!==-1){c=f;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}s=c.previous,r.removeNode(c.value),i(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:d}=c;if(typeof d.style=="string"){const f=JSON.stringify(c.styleDiff),u=JSON.stringify(c._unchangedStyles);f.length<d.style.length&&(f+u).split("var(").length===d.style.split("var(").length&&(d.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:d}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!J0(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!xn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Ts(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,k6(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,o=t.target.getAttribute(r);if(r==="value"){const s=G0(n),a=n.tagName;o=nu(n,a,s);const c=tu({maskInputOptions:this.maskInputOptions,tagName:a,type:s}),d=Ts(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);o=El({isMasked:d,element:n,value:o,maskInputFn:this.maskInputFn})}if(xn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(o))if(!e_(n))r="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!E6(n.tagName,r)&&(i.attributes[r]=v6(this.doc,vs(n.tagName),vs(r),o,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),d=n.style.getPropertyPriority(a);c!==s.style.getPropertyValue(a)||d!==s.style.getPropertyPriority(a)?d===""?i.styleDiff[a]=c:i.styleDiff[a]=[c,d]:i._unchangedStyles[a]=[c,d]}for(const a of Array.from(s.style))n.style.getPropertyValue(a)===""&&(i.styleDiff[a]=!1)}break}case"childList":{if(xn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),o=bl(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);xn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||J0(n,this.mirror)||!eZ(n,this.mirror)||(this.addedSet.has(n)?(t_(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||C6(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[M6(r,o)]?t_(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:bl(t.target)&&vl(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(J0(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[M6(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);xn(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),Q0(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function t_(e,t){e.delete(t),t.childNodes?.forEach(n=>t_(e,n))}function L6(e,t,n){return e.length===0?!1:dZ(e,t,n)}function dZ(e,t,n){let r=t.parentNode;for(;r;){const o=n.getId(r);if(e.some(i=>i.id===o))return!0;r=r.parentNode}return!1}function D6(e,t){return e.size===0?!1:F6(e,t)}function F6(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:F6(e,n):!1}let Tl;function uZ(e){Tl=e}function fZ(){Tl=void 0}const Je=e=>Tl?(...n)=>{try{return e(...n)}catch(r){if(Tl&&Tl(r)===!0)return()=>{};throw r}}:e,Cs=[];function wl(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function B6(e,t){const n=new cZ;Cs.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(r=window[o]);const i=new r(Je(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function pZ({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let s=[],a;const c=Sl(Je(u=>{const p=Date.now()-a;e(s.map(m=>(m.timeOffset-=p,m)),u),s=[],a=null}),i),d=Je(Sl(Je(u=>{const p=wl(u),{clientX:m,clientY:_}=Z0(u)?u.changedTouches[0]:u;a||(a=iu()),s.push({x:m,y:_,id:r.getId(p),timeOffset:iu()-a}),c(typeof DragEvent<"u"&&u instanceof DragEvent?Me.Drag:u instanceof MouseEvent?Me.MouseMove:Me.TouchMove)}),o,{trailing:!1})),f=[un("mousemove",d,n),un("touchmove",d,n),un("drag",d,n)];return Je(()=>{f.forEach(u=>u())})}function mZ({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[];let d=null;const f=u=>p=>{const m=wl(p);if(xn(m,r,o,i,!0))return;let _=null,y=u;if("pointerType"in p){switch(p.pointerType){case"mouse":_=Vr.Mouse;break;case"touch":_=Vr.Touch;break;case"pen":_=Vr.Pen;break}_===Vr.Touch?fn[u]===fn.MouseDown?y="TouchStart":fn[u]===fn.MouseUp&&(y="TouchEnd"):Vr.Pen}else Z0(p)&&(_=Vr.Touch);_!==null?(d=_,(y.startsWith("Touch")&&_===Vr.Touch||y.startsWith("Mouse")&&_===Vr.Mouse)&&(_=null)):fn[u]===fn.Click&&(_=d,d=null);const g=Z0(p)?p.changedTouches[0]:p;if(!g)return;const h=n.getId(m),{clientX:b,clientY:v}=g;Je(e)({type:fn[y],id:h,x:b,y:v,..._!==null&&{pointerType:_}})};return Object.keys(fn).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&a[u]!==!1).forEach(u=>{let p=vs(u);const m=f(u);if(window.PointerEvent)switch(fn[u]){case fn.MouseDown:case fn.MouseUp:p=p.replace("mouse","pointer");break;case fn.TouchStart:case fn.TouchEnd:return}c.push(un(p,m,t))}),Je(()=>{c.forEach(u=>u())})}function U6({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){const a=Je(Sl(Je(c=>{const d=wl(c);if(!d||xn(d,r,o,i,!0))return;const f=n.getId(d);if(d===t&&t.defaultView){const u=T6(t.defaultView);e({id:f,x:u.left,y:u.top})}else e({id:f,x:d.scrollLeft,y:d.scrollTop})}),s.scroll||100));return un("scroll",a,t)}function _Z({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=Je(Sl(Je(()=>{const i=w6(),s=A6();(n!==i||r!==s)&&(e({width:Number(s),height:Number(i)}),n=i,r=s)}),200));return un("resize",o,t)}const hZ=["INPUT","TEXTAREA","SELECT"],j6=new WeakMap;function gZ({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:d,sampling:f,userTriggeredOnInput:u,maskTextClass:p,unmaskTextClass:m,maskTextSelector:_,unmaskTextSelector:y}){function g($){let H=wl($);const q=$.isTrusted,k=H&&W0(H.tagName);if(k==="OPTION"&&(H=H.parentElement),!H||!k||hZ.indexOf(k)<0||xn(H,r,o,i,!0))return;const O=H;if(O.classList.contains(s)||a&&O.matches(a))return;const I=G0(H);let D=nu(O,k,I),x=!1;const z=tu({maskInputOptions:c,tagName:k,type:I}),B=Ts(H,p,_,m,y,z);(I==="radio"||I==="checkbox")&&(x=H.checked),D=El({isMasked:B,element:H,value:D,maskInputFn:d}),h(H,u?{text:D,isChecked:x,userTriggered:q}:{text:D,isChecked:x});const F=H.name;I==="radio"&&F&&x&&t.querySelectorAll(`input[type="radio"][name="${F}"]`).forEach(M=>{if(M!==H){const K=El({isMasked:B,element:M,value:nu(M,k,I),maskInputFn:d});h(M,u?{text:K,isChecked:!x,userTriggered:!1}:{text:K,isChecked:!x})}})}function h($,H){const q=j6.get($);if(!q||q.text!==H.text||q.isChecked!==H.isChecked){j6.set($,H);const k=n.getId($);Je(e)({...H,id:k})}}const v=(f.input==="last"?["change"]:["input","change"]).map($=>un($,Je(g),t)),S=t.defaultView;if(!S)return()=>{v.forEach($=>$())};const N=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),A=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return N&&N.set&&v.push(...A.map($=>S6($[0],$[1],{set(){Je(g)({target:this,isTrusted:!1})}},!1,S))),Je(()=>{v.forEach($=>$())})}function au(e){const t=[];function n(r,o){if(lu("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||lu("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||lu("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||lu("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const s=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(s)}else if(r.parentStyleSheet){const s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(s)}return o}return n(e,t)}function So(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function yZ({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Je((f,u,p)=>{const[m,_]=p,{id:y,styleId:g}=So(u,t,n.styleMirror);return(y&&y!==-1||g&&g!==-1)&&e({id:y,styleId:g,adds:[{rule:m,index:_}]}),f.apply(u,p)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Je((f,u,p)=>{const[m]=p,{id:_,styleId:y}=So(u,t,n.styleMirror);return(_&&_!==-1||y&&y!==-1)&&e({id:_,styleId:y,removes:[{index:m}]}),f.apply(u,p)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Je((f,u,p)=>{const[m]=p,{id:_,styleId:y}=So(u,t,n.styleMirror);return(_&&_!==-1||y&&y!==-1)&&e({id:_,styleId:y,replace:m}),f.apply(u,p)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Je((f,u,p)=>{const[m]=p,{id:_,styleId:y}=So(u,t,n.styleMirror);return(_&&_!==-1||y&&y!==-1)&&e({id:_,styleId:y,replaceSync:m}),f.apply(u,p)})}));const c={};cu("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(cu("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),cu("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),cu("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const d={};return Object.entries(c).forEach(([f,u])=>{d[f]={insertRule:u.prototype.insertRule,deleteRule:u.prototype.deleteRule},u.prototype.insertRule=new Proxy(d[f].insertRule,{apply:Je((p,m,_)=>{const[y,g]=_,{id:h,styleId:b}=So(m.parentStyleSheet,t,n.styleMirror);return(h&&h!==-1||b&&b!==-1)&&e({id:h,styleId:b,adds:[{rule:y,index:[...au(m),g||0]}]}),p.apply(m,_)})}),u.prototype.deleteRule=new Proxy(d[f].deleteRule,{apply:Je((p,m,_)=>{const[y]=_,{id:g,styleId:h}=So(m.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,removes:[{index:[...au(m),y]}]}),p.apply(m,_)})})}),Je(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([f,u])=>{u.prototype.insertRule=d[f].insertRule,u.prototype.deleteRule=d[f].deleteRule})})}function H6({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const o=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!o||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(s){const a=i.set?.call(this,s);if(r!==null&&r!==-1)try{t.adoptStyleSheets(s,r)}catch{}return a}}),Je(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function bZ({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Je((a,c,d)=>{const[f,u,p]=d;if(n.has(f))return i.apply(c,[f,u,p]);const{id:m,styleId:_}=So(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(m&&m!==-1||_&&_!==-1)&&e({id:m,styleId:_,set:{property:f,value:u,priority:p},index:au(c.parentRule)}),a.apply(c,d)})});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Je((a,c,d)=>{const[f]=d;if(n.has(f))return s.apply(c,[f]);const{id:u,styleId:p}=So(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(u&&u!==-1||p&&p!==-1)&&e({id:u,styleId:p,remove:{property:f},index:au(c.parentRule)}),a.apply(c,d)})}),Je(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function vZ({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){const a=Je(d=>Sl(Je(f=>{const u=wl(f);if(!u||xn(u,t,n,r,!0))return;const{currentTime:p,volume:m,muted:_,playbackRate:y}=u;e({type:d,id:o.getId(u),currentTime:p,volume:m,muted:_,playbackRate:y})}),i.media||500)),c=[un("play",a(ks.Play),s),un("pause",a(ks.Pause),s),un("seeked",a(ks.Seeked),s),un("volumechange",a(ks.VolumeChange),s),un("ratechange",a(ks.RateChange),s)];return Je(()=>{c.forEach(d=>d())})}function EZ({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(c,d,f){const u=new i(c,d,f);return o.set(u,{family:c,buffer:typeof d!="string",descriptors:f,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),u};const s=X0(t.fonts,"add",function(a){return function(c){return su(Je(()=>{const d=o.get(c);d&&(e(d),o.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=i}),r.push(s),Je(()=>{r.forEach(a=>a())})}function $Z(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let a=!0;const c=Je(()=>{const d=t.getSelection();if(!d||a&&d?.isCollapsed)return;a=d.isCollapsed||!1;const f=[],u=d.rangeCount||0;for(let p=0;p<u;p++){const m=d.getRangeAt(p),{startContainer:_,startOffset:y,endContainer:g,endOffset:h}=m;xn(_,r,o,i,!0)||xn(g,r,o,i,!0)||f.push({start:n.getId(_),startOffset:y,end:n.getId(g),endOffset:h})}s({ranges:f})});return c(),un("selectionchange",c)}function SZ({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:X0(n.customElements,"define",function(o){return function(i,s,a){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,a])}})}function TZ(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=B6(e,e.doc));const o=pZ(e),i=mZ(e),s=U6(e),a=_Z(e,{win:n}),c=gZ(e),d=vZ(e);let f=()=>{},u=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(f=yZ(e,{win:n}),u=H6(e,e.doc),p=bZ(e,{win:n}),e.collectFonts&&(m=EZ(e)));const _=$Z(e),y=SZ(e),g=[];for(const h of e.plugins)g.push(h.observer(h.callback,n,h.options));return Je(()=>{Cs.forEach(h=>h.reset()),r?.disconnect(),o(),i(),s(),a(),c(),d(),f(),u(),p(),m(),_(),y(),g.forEach(h=>h())})}function lu(e){return typeof window[e]<"u"}function cu(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class n_{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){const i=r||this.getIdToRemoteIdMap(t),s=o||this.getRemoteIdToIdMap(t);let a=i.get(n);return a||(a=this.generateIdFn(),i.set(n,a),s.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,o))}getRemoteId(t,n,r){const o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=o.get(n);return i||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class wZ{constructor(){this.crossOriginIframeMirror=new n_(K0),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class AZ{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new n_(K0),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new n_(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const r=e_(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const i=this.transformCrossOriginEvent(o,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case je.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:je.IncrementalSnapshot,data:{source:Me.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case je.Meta:case je.Load:case je.DomContentLoaded:return!1;case je.Plugin:return n;case je.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case je.IncrementalSnapshot:switch(n.data.source){case Me.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(r.node,o)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Me.Drag:case Me.TouchMove:case Me.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Me.ViewportResize:return!1;case Me.MediaInteraction:case Me.MouseInteraction:case Me.Scroll:case Me.CanvasMutation:case Me.Input:return this.replaceIds(n.data,t,["id"]),n;case Me.StyleSheetRule:case Me.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case Me.Font:return n;case Me.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case Me.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(r=>{this.replaceStyleIds(r,t,["styleId"])}),n}}return!1}replace(t,n,r,o){for(const i of o)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Lt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class kZ{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class CZ{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!vl(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=B6({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(U6({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),su(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(H6({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=e_(t),r=aZ(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(X0(t.prototype,"attachShadow",function(o){return function(i){const s=o.call(this,i);return this.shadowRoot&&R6(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var z6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",NZ=typeof Uint8Array>"u"?[]:new Uint8Array(256),du=0;du<z6.length;du++)NZ[z6.charCodeAt(du)]=du;class q6{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class IZ{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new nZ,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},o=[];for(const i of t){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),o.push({styleId:s,rules:Array.from(i.rules||CSSRule,(a,c)=>({rule:d6(a),index:c}))})),r.styleIds.push(s)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class OZ{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.active||(this.active=!0,iZ(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let kt,uu;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const lr=NJ();function cr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:d=!1,maskTextClass:f="rr-mask",unmaskTextClass:u=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:_=!0,maskAllInputs:y,maskInputOptions:g,slimDOMOptions:h,maskAttributeFn:b,maskInputFn:v,maskTextFn:S,maxCanvasSize:N=null,packFn:A,sampling:$={},dataURLOptions:H={},mousemoveWait:q,recordDOM:k=!0,recordCanvas:O=!1,recordCrossOriginIframes:I=!1,recordAfter:D=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:x=!1,collectFonts:z=!1,inlineImages:B=!1,plugins:F,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:K=new Set([]),errorHandler:W,onMutation:X,getCanvasManager:oe}=e;uZ(W);const ce=I?window.parent===window:!0;let ne=!1;if(!ce)try{window.parent.document&&(ne=!1)}catch{ne=!0}if(ce&&!t)throw new Error("emit function is required");if(!ce&&!ne)return()=>{};q!==void 0&&$.mousemove===void 0&&($.mousemove=q),lr.reset();const ke=y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:g!==void 0?g:{},J=h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:h==="all",headMetaDescKeywords:h==="all"}:h||{};tZ();let de,ve=0;const $e=C=>{for(const G of F||[])G.eventProcessor&&(C=G.eventProcessor(C));return A&&!ne&&(C=A(C)),C};kt=(C,G)=>{const te=C;if(te.timestamp=iu(),Cs[0]?.isFrozen()&&te.type!==je.FullSnapshot&&!(te.type===je.IncrementalSnapshot&&te.data.source===Me.Mutation)&&Cs.forEach(ae=>ae.unfreeze()),ce)t?.($e(te),G);else if(ne){const ae={type:"rrweb",event:$e(te),origin:window.location.origin,isCheckout:G};window.parent.postMessage(ae,"*")}if(te.type===je.FullSnapshot)de=te,ve=0;else if(te.type===je.IncrementalSnapshot){if(te.data.source===Me.Mutation&&te.data.isAttachIframe)return;ve++;const ae=r&&ve>=r,re=n&&de&&te.timestamp-de.timestamp>n;(ae||re)&&T(!0)}};const Re=C=>{kt({type:je.IncrementalSnapshot,data:{source:Me.Mutation,...C}})},He=C=>kt({type:je.IncrementalSnapshot,data:{source:Me.Scroll,...C}}),Ce=C=>kt({type:je.IncrementalSnapshot,data:{source:Me.CanvasMutation,...C}}),We=C=>kt({type:je.IncrementalSnapshot,data:{source:Me.AdoptedStyleSheet,...C}}),be=new IZ({mutationCb:Re,adoptedStyleSheetCb:We}),Fe=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new wZ:new AZ({mirror:lr,mutationCb:Re,stylesheetManager:be,recordCrossOriginIframes:I,wrappedEmit:kt});for(const C of F||[])C.getMirror&&C.getMirror({nodeMirror:lr,crossOriginIframeMirror:Fe.crossOriginIframeMirror,crossOriginIframeStyleMirror:Fe.crossOriginIframeStyleMirror});const se=new OZ,Ge=xZ(oe,{mirror:lr,win:window,mutationCb:C=>kt({type:je.IncrementalSnapshot,data:{source:Me.CanvasMutation,...C}}),recordCanvas:O,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:N,sampling:$.canvas,dataURLOptions:H,errorHandler:W}),E=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new kZ:new CZ({mutationCb:Re,scrollCb:He,bypassOptions:{onMutation:X,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:d,maskTextClass:f,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:_,maskInputOptions:ke,dataURLOptions:H,maskAttributeFn:b,maskTextFn:S,maskInputFn:v,recordCanvas:O,inlineImages:B,sampling:$,slimDOMOptions:J,iframeManager:Fe,stylesheetManager:be,canvasManager:Ge,keepIframeSrcFn:M,processedNodeManager:se,ignoreCSSAttributes:K},mirror:lr}),T=(C=!1)=>{if(!k)return;kt({type:je.Meta,data:{href:window.location.href,width:A6(),height:w6()}},C),be.reset(),E.init(),Cs.forEach(te=>te.lock());const G=VJ(document,{mirror:lr,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:d,maskTextClass:f,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:_,maskAllInputs:ke,maskAttributeFn:b,maskInputFn:v,maskTextFn:S,slimDOM:J,dataURLOptions:H,recordCanvas:O,inlineImages:B,onSerialize:te=>{N6(te,lr)&&Fe.addIframe(te),I6(te,lr)&&be.trackLinkElement(te),Q0(te)&&E.addShadowRoot(te.shadowRoot,document)},onIframeLoad:(te,ae)=>{Fe.attachIframe(te,ae),te.contentWindow&&Ge.addWindow(te.contentWindow),E.observeAttachShadow(te)},onStylesheetLoad:(te,ae)=>{be.attachLinkElement(te,ae)},onBlockedImageLoad:(te,ae,{width:re,height:Y})=>{Re({adds:[],removes:[],texts:[],attributes:[{id:ae.id,attributes:{style:{width:`${re}px`,height:`${Y}px`}}}]})},keepIframeSrcFn:M,ignoreCSSAttributes:K});if(!G)return console.warn("Failed to snapshot the document");kt({type:je.FullSnapshot,data:{node:G,initialOffset:T6(window)}}),Cs.forEach(te=>te.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&be.adoptStyleSheets(document.adoptedStyleSheets,lr.getId(document))};uu=T;try{const C=[],G=ae=>Je(TZ)({onMutation:X,mutationCb:Re,mousemoveCb:(re,Y)=>kt({type:je.IncrementalSnapshot,data:{source:Y,positions:re}}),mouseInteractionCb:re=>kt({type:je.IncrementalSnapshot,data:{source:Me.MouseInteraction,...re}}),scrollCb:He,viewportResizeCb:re=>kt({type:je.IncrementalSnapshot,data:{source:Me.ViewportResize,...re}}),inputCb:re=>kt({type:je.IncrementalSnapshot,data:{source:Me.Input,...re}}),mediaInteractionCb:re=>kt({type:je.IncrementalSnapshot,data:{source:Me.MediaInteraction,...re}}),styleSheetRuleCb:re=>kt({type:je.IncrementalSnapshot,data:{source:Me.StyleSheetRule,...re}}),styleDeclarationCb:re=>kt({type:je.IncrementalSnapshot,data:{source:Me.StyleDeclaration,...re}}),canvasMutationCb:Ce,fontCb:re=>kt({type:je.IncrementalSnapshot,data:{source:Me.Font,...re}}),selectionCb:re=>{kt({type:je.IncrementalSnapshot,data:{source:Me.Selection,...re}})},customElementCb:re=>{kt({type:je.IncrementalSnapshot,data:{source:Me.CustomElement,...re}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:d,maskTextClass:f,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:ke,inlineStylesheet:_,sampling:$,recordDOM:k,recordCanvas:O,inlineImages:B,userTriggeredOnInput:x,collectFonts:z,doc:ae,maskAttributeFn:b,maskInputFn:v,maskTextFn:S,keepIframeSrcFn:M,blockSelector:i,unblockSelector:s,slimDOMOptions:J,dataURLOptions:H,mirror:lr,iframeManager:Fe,stylesheetManager:be,shadowDomManager:E,processedNodeManager:se,canvasManager:Ge,ignoreCSSAttributes:K,plugins:F?.filter(re=>re.observer)?.map(re=>({observer:re.observer,options:re.options,callback:Y=>kt({type:je.Plugin,data:{plugin:re.name,payload:Y}})}))||[]},{});Fe.addLoadListener(ae=>{try{C.push(G(ae.contentDocument))}catch(re){console.warn(re)}});const te=()=>{T(),C.push(G(document))};return document.readyState==="interactive"||document.readyState==="complete"?te():(C.push(un("DOMContentLoaded",()=>{kt({type:je.DomContentLoaded,data:{}}),D==="DOMContentLoaded"&&te()})),C.push(un("load",()=>{kt({type:je.Load,data:{}}),D==="load"&&te()},window))),()=>{C.forEach(ae=>ae()),se.destroy(),uu=void 0,fZ()}}catch(C){console.warn(C)}}function RZ(e){if(!uu)throw new Error("please take full snapshot after start recording");uu(e)}cr.mirror=lr,cr.takeFullSnapshot=RZ;function xZ(e,t){try{return e?e(t):new q6}catch{return console.warn("Unable to initialize CanvasManager"),new q6}}var W6;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(W6||(W6={}));const PZ=3,MZ=5;function r_(e){return e>9999999999?e:e*1e3}function o_(e){return e>9999999999?e/1e3:e}function Al(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:je.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Yt(t,10,1e3)}}),t.category==="console")))}const LZ="button,a";function G6(e){return e.closest(LZ)||e}function Y6(e){const t=K6(e);return!t||!(t instanceof Element)?t:G6(t)}function K6(e){return DZ(e)?e.target:e}function DZ(e){return typeof e=="object"&&!!e&&"target"in e}let To;function FZ(e){return To||(To=[],BZ()),To.push(e),()=>{const t=To?To.indexOf(e):-1;t>-1&&To.splice(t,1)}}function BZ(){Wt(mt,"open",function(e){return function(...t){if(To)try{To.forEach(n=>n())}catch{}return e.apply(mt,t)}})}const UZ=new Set([Me.Mutation,Me.StyleSheetRule,Me.StyleDeclaration,Me.AdoptedStyleSheet,Me.CanvasMutation,Me.Selection,Me.MediaInteraction]);function jZ(e,t,n){e.handleClick(t,n)}class HZ{constructor(t,n,r=Al){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=FZ(()=>{this._lastMutation=X6()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(qZ(n,this._ignoreSelector)||!WZ(t))return;const r={timestamp:o_(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===r.node&&Math.abs(o.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=o_(t)}registerScroll(t=Date.now()){this._lastScroll=o_(t)}registerClick(t){const n=G6(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=X6();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!o,{clickCount:s,clickBreadcrumb:a}=t;if(i){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,d=c<this._timeout*1e3?"mutation":"timeout",f={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:mt.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:d,clickCount:s||1}};this._addBreadcrumbEvent(n,f);return}if(s>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:mt.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=yl(()=>this._checkClicks(),1e3)}}const zZ=["A","BUTTON","INPUT"];function qZ(e,t){return!!(!zZ.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function WZ(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function X6(){return Date.now()/1e3}function GZ(e,t){try{if(!YZ(t))return;const{source:n}=t.data;if(UZ.has(n)&&e.registerMutation(t.timestamp),n===Me.Scroll&&e.registerScroll(t.timestamp),KZ(t)){const{type:r,id:o}=t.data,i=cr.mirror.getNode(o);i instanceof HTMLElement&&r===fn.Click&&e.registerClick(i)}}catch{}}function YZ(e){return e.type===PZ}function KZ(e){return e.data.source===Me.MouseInteraction}function wr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var fu=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(fu||{});const XZ=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function JZ(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(XZ.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const ZZ=e=>t=>{if(!e.isEnabled())return;const n=QZ(t);if(!n)return;const r=t.name==="click",o=r?t.event:void 0;r&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&jZ(e.clickDetector,n,Y6(t.event)),Al(e,n)};function J6(e,t){const n=cr.mirror.getId(e),r=n&&cr.mirror.getNode(n),o=r&&cr.mirror.getMeta(r),i=o&&eQ(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(s=>s.type===fu.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:JZ(i.attributes)}}:{}}}function QZ(e){const{target:t,message:n}=VZ(e);return wr({category:`ui.${e.name}`,...J6(t,n)})}function VZ(e){const t=e.name==="click";let n,r=null;try{r=t?Y6(e.event):K6(e.event),n=Bt(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function eQ(e){return e.type===fu.Element}function tQ(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=nQ(t);n&&Al(e,n)}function nQ(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||rQ(s)||!i)return null;const a=t||r||o,c=i.length===1;if(!a&&c)return null;const d=Bt(s,{maxStringLength:200})||"<unknown>",f=J6(s,d);return wr({category:"ui.keyDown",message:d,data:{...f.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}function rQ(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const oQ={resource:cQ,paint:aQ,navigation:lQ};function i_(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function iQ(e){return e.map(sQ).filter(Boolean)}function sQ(e){const t=oQ[e.entryType];return t?t(e):null}function Ns(e){return((Mt()||mt.performance.timeOrigin)+e)/1e3}function aQ(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=Ns(o);return{type:n,name:r,start:i,end:i+t,data:void 0}}function lQ(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:d,loadEventStart:f,loadEventEnd:u,redirectCount:p,startTime:m,transferSize:_,type:y}=e;return o===0?null:{type:`${t}.${y}`,start:Ns(m),end:Ns(i),name:n,data:{size:_,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:d,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:f,loadEventEnd:u,domComplete:i,redirectCount:p}}}function cQ(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:d}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Ns(i),end:Ns(o),name:r,data:{size:d,statusCode:c,decodedBodySize:s,encodedBodySize:a}}}function dQ(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return s_(e,"largest-contentful-paint",n)}function uQ(e){return e.sources!==void 0}function fQ(e){const t=[],n=[];for(const r of e.entries)if(uQ(r)){const o=[];for(const i of r.sources)if(i.node){n.push(i.node);const s=cr.mirror.getId(i.node);s&&o.push(s)}t.push({value:r.value,nodeIds:o.length?o:void 0})}return s_(e,"cumulative-layout-shift",n,t)}function pQ(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return s_(e,"interaction-to-next-paint",n)}function s_(e,t,n,r){const o=e.value,i=e.rating,s=Ns(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map(a=>cr.mirror.getId(a)):void 0,attributions:r}}}function mQ(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(o=>{r.push(ui(o,n))}),r.push(Bd(i_(dQ,e)),Fd(i_(fQ,e)),N0(i_(pQ,e))),()=>{r.forEach(o=>o())}}const Ne=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_Q='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function hQ(){const e=new Blob([_Q]);return URL.createObjectURL(e)}const Z6=["log","warn","error"],pu="[Replay] ";function a_(e,t="info"){or({category:"console",data:{logger:"replay"},level:t,message:`${pu}${e}`},{level:t})}function gQ(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return Ne?(Z6.forEach(r=>{n[r]=(...o)=>{R[r](pu,...o),t&&a_(o.join(""),ed(r))}}),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),R.error(pu,r),e?it(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&a_(r,"error")},n.infoTick=(...r)=>{R.log(pu,...r),t&&setTimeout(()=>a_(r[0]),0)}):Z6.forEach(r=>{n[r]=()=>{}}),n}const Ie=gQ();class l_ extends Error{constructor(){super(`Event buffer exceeded maximum size of ${q0}.`)}}class Q6{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>q0)throw new l_;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=null;for(const{timestamp:n}of this.events)(t===null||n<t)&&(t=n);return t===null?t:r_(t)}}class c_{constructor(t){c_.prototype.__init.call(this),this._worker=t,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():(Ne&&Ie.warn("Received worker message with unsuccessful status",r),n(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",r=>{Ne&&Ie.warn("Failed to load Replay compression worker",r),n(new Error(`Failed to load Replay compression worker: ${r instanceof ErrorEvent&&r.message?r.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})}),this._ensureReadyPromise)}destroy(){Ne&&Ie.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(t=>t.reject(new Error("Worker destroyed"))),this._pending.clear(),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((o,i)=>{this._pending.set(r,{method:t,resolve:o,reject:i});try{this._worker.postMessage({id:r,method:t,arg:n})}catch(s){this._pending.delete(r),i(s)}})}__init(){this._onMessage=({data:t})=>{const n=t;if(typeof n.id!="number")return;const r=this._pending.get(n.id);if(!(!r||r.method!==n.method)){if(this._pending.delete(n.id),!n.success){Ne&&Ie.error("Error in compression worker: ",n.response),r.reject(new Error("Error in compression worker"));return}r.resolve(n.response)}}}_getAndIncrementId(){return this._id++}}class yQ{constructor(t){this._worker=new c_(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=r_(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>q0?Promise.reject(new l_):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{Ne&&Ie.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class bQ{constructor(t){this._fallback=new Q6,this._compression=new yQ(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){Ne&&Ie.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,o=[];for(const i of t)o.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(o),this._fallback.clear()}catch(i){Ne&&Ie.exception(i,"Failed to add events when switching buffers.")}}}function vQ({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=EQ(t);if(n)return n}return Ne&&Ie.log("Using simple buffer"),new Q6}function EQ(e){try{const t=e||$Q();if(!t)return;Ne&&Ie.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new bQ(n)}catch(t){Ne&&Ie.exception(t,"Failed to create compression worker")}}function $Q(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?hQ():""}function d_(){try{return"sessionStorage"in mt&&!!mt.sessionStorage}catch{return!1}}function SQ(e){TQ(),e.session=void 0}function TQ(){if(d_())try{mt.sessionStorage.removeItem(H0)}catch{}}function V6(e){return e===void 0?!1:Math.random()<e}function mu(e){if(d_())try{mt.sessionStorage.setItem(H0,JSON.stringify(e))}catch{}}function e$(e){const t=Date.now(),n=e.id||Ut(),r=e.started||t,o=e.lastActivity||t,i=e.segmentId||0,s=e.sampled,a=e.previousSessionId,c=e.dirty||!1;return{id:n,started:r,lastActivity:o,segmentId:i,sampled:s,previousSessionId:a,dirty:c}}function wQ(e,t){return V6(e)?"session":t?"buffer":!1}function t$({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=wQ(e,t),i=e$({sampled:o,previousSessionId:r});return n&&mu(i),i}function AQ(){if(!d_())return null;try{const e=mt.sessionStorage.getItem(H0);if(!e)return null;const t=JSON.parse(e);return Ne&&Ie.infoTick("Loading existing session"),e$(t)}catch{return null}}function u_(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function n$(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return u_(e.started,t,r)||u_(e.lastActivity,n,r)}function r$(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!n$(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function f_({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&AQ();return o?r$(o,{sessionIdleExpire:e,maxReplayDuration:t})?(Ne&&Ie.infoTick("Session in sessionStorage is expired, creating new one..."),t$(r,{previousSessionId:o.id})):o:(Ne&&Ie.infoTick("Creating new session"),t$(r,{previousSessionId:n}))}function kQ(e){return e.type===je.Custom}function p_(e,t,n){return i$(e,t)?(o$(e,t,n),!0):!1}function CQ(e,t,n){return i$(e,t)?o$(e,t,n):Promise.resolve(null)}async function o$(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const o=e.recordingMode==="buffer";try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=e.getOptions(),s=NQ(t,i.beforeAddRecordingEvent);return s?await r.addEvent(s):void 0}catch(i){const s=i&&i instanceof l_,a=s?"eventBufferOverflow":"eventBufferError",c=fe();if(c){const d=s?"buffer_overflow":"internal_sdk_error";c.recordDroppedEvent(d,"replay")}if(s&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:a})}}function i$(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=r_(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Ne&&Ie.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function NQ(e,t){try{if(typeof t=="function"&&kQ(e))return t(e)}catch(n){return Ne&&Ie.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function m_(e){return!e.type}function __(e){return e.type==="transaction"}function IQ(e){return e.type==="replay_event"}function s$(e){return e.type==="feedback"}function OQ(e){return(t,n)=>{if(!e.isEnabled()||!m_(t)&&!__(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(__(t)){RQ(e,t);return}xQ(e,t)}}}function RQ(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function xQ(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags?.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||yl(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(o){e.handleException(o)}})}function PQ(e){return t=>{!e.isEnabled()||!m_(t)||MQ(e,t)}}function MQ(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=wr({category:"replay.hydrate-error",data:{url:Go()}});Al(e,r)}}function LQ(e){const t=fe();t&&t.on("beforeAddBreadcrumb",n=>DQ(e,n))}function DQ(e,t){if(!e.isEnabled()||!a$(t))return;const n=FQ(t);n&&Al(e,n)}function FQ(e){return!a$(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?BQ(e):wr(e)}function BQ(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return wr(e);let n=!1;const r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>Vd?(n=!0,`${o.slice(0,Vd)}…`):o;if(typeof o=="object")try{const i=Yt(o,7);return JSON.stringify(i).length>Vd?(n=!0,`${JSON.stringify(i,null,2).slice(0,Vd)}…`):i}catch{}return o});return wr({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function a$(e){return!!e.category}function UQ(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function l$(){const e=Pe().getPropagationContext().dsc;e&&delete e.replay_id;const t=$t();if(t){const n=Hn(t);delete n.replay_id}}function jQ(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:je.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function HQ(e,t){return e.recordingMode!=="buffer"||t.message===z0||!t.exception||t.type?!1:V6(e.getOptions().errorSampleRate)}function zQ(e){return Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(IQ(t))return delete t.breadcrumbs,t;if(!m_(t)&&!__(t)&&!s$(t))return t;if(!e.checkAndHandleExpiredSession())return l$(),t;if(s$(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),jQ(e,t),t;if(UQ(t,n)&&!e.getOptions()._experiments.captureExceptions)return Ne&&Ie.log("Ignoring error from rrweb internals",t),null;const o=HQ(e,t);if((o||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),o&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){const s=e.session;s.dirty=!0,e.getOptions().stickySession&&mu(s)}return t},{id:"Replay"})}function _u(e,t){return t.map(({type:n,start:r,end:o,name:i,data:s})=>{const a=e.throttledAddEvent({type:je.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:o,data:s}}});return typeof a=="string"?Promise.resolve(null):a})}function qQ(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function WQ(e){return t=>{if(!e.isEnabled())return;const n=qQ(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(_u(e,[n]),!1)))}}function GQ(e,t){return Ne&&e.getOptions()._experiments.traceInternals?!1:c4(t,fe())}function c$(e,t){e.isEnabled()&&t!==null&&(GQ(e,t.name)||e.addUpdate(()=>(_u(e,[t]),!0)))}function hu(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=RE(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function d$(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function gu(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function u$(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:{method:i,statusCode:s,request:a,response:c}}}function kl(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function wo(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:i}=YQ(n);return r.body=o,i?.length&&(r._meta={warnings:i}),r}function h_(e,t){return Object.entries(e).reduce((n,[r,o])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=o),n},{})}function YQ(e){if(!e||typeof e!="string")return{body:e};const t=e.length>a6,n=KQ(e);if(t){const r=e.slice(0,a6);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function KQ(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function yu(e,t){const n=XQ(e);return nr(n,t)}function XQ(e,t=mt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(mt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function JQ(e,t,n){try{const r=await QQ(e,t,n),o=u$("resource.fetch",r);c$(n.replay,o)}catch(r){Ne&&Ie.exception(r,"Failed to capture fetch breadcrumb")}}function ZQ(e,t){const{input:n,response:r}=t,o=n?F0(n):void 0,i=hu(o),s=r?d$(r.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}async function QQ(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:a,status_code:c=0,request_body_size:d,response_body_size:f}=e.data,u=yu(s,n.networkDetailAllowUrls)&&!yu(s,n.networkDetailDenyUrls),p=u?VQ(n,t.input,d):kl(d),m=await eV(u,n,t.response,f);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:c,request:p,response:m}}function VQ({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?rV(n,t):{};if(!e)return wo(o,r,void 0);const i=F0(n),[s,a]=Kd(i,Ie),c=wo(o,r,s);return a?gu(c,a):c}async function eV(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&o!==void 0)return kl(o);const i=r?f$(r.headers,n):{};if(!r||!t&&o!==void 0)return wo(i,o,void 0);const[s,a]=await nV(r),c=tV(s,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});return a?gu(c,a):c}function tV(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const i=e?.length&&n===void 0?hu(e):n;return r?t?wo(o,i,e):wo(o,i,void 0):kl(i)}catch(i){return Ne&&Ie.exception(i,"Failed to serialize response body"),wo(o,n,void 0)}}async function nV(e){const t=oV(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await iV(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(Ne&&Ie.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Ne&&Ie.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function f$(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function rV(e,t){return e.length===1&&typeof e[0]!="string"?p$(e[0],t):e.length===2?p$(e[1],t):{}}function p$(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?f$(n,t):Array.isArray(n)?{}:h_(n,t):{}}function oV(e){try{return e.clone()}catch(t){Ne&&Ie.exception(t,"Failed to clone response body")}}function iV(e){return new Promise((t,n)=>{const r=yl(()=>n(new Error("Timeout while trying to read response body")),500);sV(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function sV(e){return await e.text()}async function aV(e,t,n){try{const r=cV(e,t,n),o=u$("resource.xhr",r);c$(n.replay,o)}catch(r){Ne&&Ie.exception(r,"Failed to capture xhr breadcrumb")}}function lV(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=hu(r),i=n.getResponseHeader("content-length")?d$(n.getResponseHeader("content-length")):fV(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}function cV(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:a}=t,{url:c,method:d,status_code:f=0,request_body_size:u,response_body_size:p}=e.data;if(!c)return null;if(!a||!yu(c,n.networkDetailAllowUrls)||yu(c,n.networkDetailDenyUrls)){const A=kl(u),$=kl(p);return{startTimestamp:o,endTimestamp:i,url:c,method:d,statusCode:f,request:A,response:$}}const m=a[Qr],_=m?h_(m.request_headers,n.networkRequestHeaders):{},y=h_(xE(a),n.networkResponseHeaders),[g,h]=n.networkCaptureBodies?Kd(s,Ie):[void 0],[b,v]=n.networkCaptureBodies?dV(a):[void 0],S=wo(_,u,g),N=wo(y,p,b);return{startTimestamp:o,endTimestamp:i,url:c,method:d,statusCode:f,request:h?gu(S,h):S,response:v?gu(N,v):N}}function dV(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return uV(e.response,e.responseType)}catch(n){t.push(n)}return Ne&&Ie.warn("Failed to get xhr response body",...t),[void 0]}function uV(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return Ne&&Ie.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ne&&Ie.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function fV(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return hu(n)}catch{return}}function pV(e){const t=fe();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(c,d)=>mV(a,c,d))}catch{}}function mV(e,t,n){if(t.data)try{_V(t)&&gV(n)&&(lV(t,n),aV(t,n,e)),hV(t)&&yV(n)&&(ZQ(t,n),JQ(t,n,e))}catch(r){Ne&&Ie.exception(r,"Error when enriching network breadcrumb")}}function _V(e){return e.category==="xhr"}function hV(e){return e.category==="fetch"}function gV(e){return e?.xhr}function yV(e){return e?.response}function bV(e){const t=fe();IE(ZZ(e)),Gd(WQ(e)),LQ(e),pV(e);const n=zQ(e);O3(n),t&&(t.on("beforeSendEvent",PQ(e)),t.on("afterSendEvent",OQ(e)),t.on("createDsc",r=>{const o=e.getSessionId();o&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=o)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,o)=>{const i=e.getSessionId();o?.includeReplay&&e.isEnabled()&&i&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=i)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function vV(e){try{return Promise.all(_u(e,[EV(mt.performance.memory)]))}catch{return[]}}function EV(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function $V(e,t,n){return Mj(e,t,{...n,setTimeoutImpl:yl})}const bu=Se.navigator;function SV(){return/iPhone|iPad|iPod/i.test(bu?.userAgent??"")||/Macintosh/i.test(bu?.userAgent??"")&&bu?.maxTouchPoints&&bu?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function TV(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){Ne&&Ie.warn("Received replay event after session expired.");return}const o=r||!t;t=!0,wV(n),e.clickDetector&&GZ(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!p_(e,n,o))return!0;if(!o)return!1;const i=e.session;if(kV(e,o),e.recordingMode==="buffer"&&i&&e.eventBuffer&&!i.dirty){const s=e.eventBuffer.getEarliestTimestamp();s&&(Ne&&Ie.log(`Updating session start time to earliest event in buffer to ${new Date(s)}`),i.started=s,e.getOptions().stickySession&&mu(i))}return i?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function wV(e){const t=e.data;if(!(e.type!==je.IncrementalSnapshot||!t||typeof t!="object"||!("source"in t)||t.source!==Me.Mutation||!("attributes"in t)||!Array.isArray(t.attributes)))for(const n of t.attributes){const r=cr.mirror.getNode(n.id),o=r&&cr.mirror.getMeta(r);if(o?.type===fu.Element)for(const[i,s]of Object.entries(n.attributes))s===null?delete o.attributes[i]:o.attributes[i]=s}}function AV(e){const t=e.getOptions();return{type:je.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function kV(e,t){!t||e.session?.segmentId!==0||p_(e,AV(e),!1)}function CV(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function NV(e,t,n,r){return zn(l3(e,qa(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function IV({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
525
+ `;if(typeof e=="string")n=`${r}${e}`;else{const i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function OV({client:e,scope:t,replayId:n,event:r}){const o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:o};e.emit("preprocessEvent",r,i);const s=await A3(e.getOptions(),r,i,t,e,vt());if(!s)return null;e.emit("postprocessEvent",s,i),s.platform=s.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:d,settings:f}=a?.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:d||"0.0.0",settings:f},s}async function RV({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const s=IV({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:d,initialTimestamp:f}=r,u=fe(),p=Pe(),m=u?.getTransport(),_=u?.getDsn();if(!u||!m||!_||!i.sampled)return Promise.resolve({});const y={type:lJ,replay_start_timestamp:f/1e3,timestamp:o/1e3,error_ids:c,trace_ids:d,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},g=await OV({scope:p,client:u,replayId:t,event:y});if(!g)return u.recordDroppedEvent("event_processor","replay"),Ne&&Ie.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete g.sdkProcessingMetadata;const h=NV(g,s,_,u.getOptions().tunnel);let b;try{b=await m.send(h)}catch(S){const N=new Error(z0);try{N.cause=S}catch{}throw N}const v=q3({},b);if(z3(v,"replay"))throw new g_(v);if(typeof b.statusCode=="number"&&(b.statusCode<200||b.statusCode>=300))throw new m$(b.statusCode);return b}class m$ extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class g_ extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}class _$ extends Error{constructor(){super("Session is too long, not sending replay")}}async function h$(e,t={count:0,interval:mJ}){const{recordingData:n,onError:r}=e;if(n.length)try{return await RV(e),!0}catch(o){if(o instanceof m$||o instanceof g_)throw o;if(C3("Replays",{_retryCount:t.count}),r&&r(o),t.count>=_J){const i=new Error(`${z0} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{yl(async()=>{try{await h$(e,t),i(!0)}catch(a){s(a)}},t.interval)})}}const g$="__THROTTLED",xV="__SKIPPED";function PV(e,t,n){const r=new Map,o=a=>{const c=a-n;r.forEach((d,f)=>{f<c&&r.delete(f)})},i=()=>[...r.values()].reduce((a,c)=>a+c,0);let s=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(o(c),i()>=t){const f=s;return s=!0,f?xV:g$}s=!1;const d=r.get(c)||0;return r.set(c,d+1),e(...a)}}class MV{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:cJ,sessionIdleExpire:dJ},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=$V(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=PV((s,a)=>CQ(this,s,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),i=r?{threshold:Math.min(hJ,r),timeout:r,scrollTimeout:gJ,ignoreSelector:o?o.join(","):""}:void 0;if(i&&(this.clickDetector=new HZ(this,i)),Ne){const s=t._experiments;Ie.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{mt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const s=wr({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{const s=wr({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{tQ(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){Ne&&Ie.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,o=n<=0&&r<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){Ne&&Ie.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",Ne&&Ie.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){Ne&&Ie.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){Ne&&Ie.log("Buffering is in progress, call `flush()` to save the replay");return}Ne&&Ie.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=f_({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){Ne&&Ie.log("Buffering is in progress, call `flush()` to save the replay");return}Ne&&Ie.infoTick("Starting replay in buffer mode");const t=f_({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=cr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:pJ}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:TV(this),...SV(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode="buffer";const r=n??"manual";fe()?.emit("replayEnd",{sessionId:this.session?.id,reason:r});try{Ne&&Ie.log(`Stopping Replay triggered by ${r}`),l$(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,SQ(this)}catch(o){this.handleException(o)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Ne&&Ie.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Ne&&Ie.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();Ne&&Ie.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){if(!(t&&this.session?.sampled===!1))return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&u_(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${mt.location.pathname}${mt.location.hash}${mt.location.search}`,n=`${mt.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===g$){const o=wr({category:"replay.throttled"});this.addUpdate(()=>!p_(this,{type:MZ,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||$t(),n=t&&Et(t),o=(n&&Le(n).data||{})[Nt];if(!(!n||!o||!["route","custom"].includes(o)))return Le(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=vQ({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&fe()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=f_({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return r$(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(t.id))}_addListeners(){try{mt.document.addEventListener("visibilitychange",this._handleVisibilityChange),mt.addEventListener("blur",this._handleWindowBlur),mt.addEventListener("focus",this._handleWindowFocus),mt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(bV(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=mQ(this)}_removeListeners(){try{mt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),mt.removeEventListener("blur",this._handleWindowBlur),mt.removeEventListener("focus",this._handleWindowFocus),mt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||n$(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){Ne&&Ie.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:je.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=iQ(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(_u(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){Ne&&Ie.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await vV(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new _$;const r=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await h$({replayId:t,recordingData:i,segmentId:o,eventContext:r,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendError"});const r=fe();if(r){let o;n instanceof g_?o="ratelimit_backoff":n instanceof _$?o="invalid":o="send_error",r.recordDroppedEvent(o,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){Ne&&Ie.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();const i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){Ne&&Ie.log(`Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&Ne&&Ie.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(d){this.handleException(d)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&mu(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(a=>{const c=CV(a.target),d=n.join(",");return c?.matches(d)}))return!1;const r=t.length,o=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=o&&r>o;if(r>i||s){const a=wr({category:"replay.mutations",data:{count:r,limit:s}});this._createCustomBreadcrumb(a)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function Cl(e,t){return[...e,...t].join(",")}function LV({mask:e,unmask:t,block:n,unblock:r,ignore:o}){const i=["base","iframe[srcdoc]:not([src])"],s=Cl(e,[".sentry-mask","[data-sentry-mask]"]),a=Cl(t,[]);return{maskTextSelector:s,unmaskTextSelector:a,blockSelector:Cl(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:Cl(r,[]),ignoreSelector:Cl(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function DV({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){if(o.unmaskTextSelector&&e.matches(o.unmaskTextSelector))return i;const s=n.includes(t),a=r&&t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"");return s||a?i.replace(/[\S]/g,"*"):i}const y$='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',FV=["content-length","content-type","accept"],BV=Symbol.for("sentry__originalRequestBody");let b$=!1,v$=!1;function UV(){if(typeof Request>"u"||v$)return;const e=Request;try{const t=function(n,r){const o=new e(n,r);return r?.body!=null&&(o[BV]=r.body),o};t.prototype=e.prototype,Se.Request=t,v$=!0}catch{}}const jV=(e=>new HV(e));class HV{constructor({flushMinDelay:t=uJ,flushMaxDelay:n=fJ,minReplayDuration:r=yJ,maxReplayDuration:o=l6,stickySession:i=!0,useCompression:s=!0,workerUrl:a,_experiments:c={},maskAllText:d=!0,maskAllInputs:f=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:p=750,mutationLimit:m=1e4,slowClickTimeout:_=7e3,slowClickIgnoreSelectors:y=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:h=[],networkCaptureBodies:b=!0,networkRequestHeaders:v=[],networkResponseHeaders:S=[],mask:N=[],maskAttributes:A=["title","placeholder","aria-label"],unmask:$=[],block:H=[],unblock:q=[],ignore:k=[],maskFn:O,beforeAddRecordingEvent:I,beforeErrorSampling:D,onError:x,attachRawBodyFromRequest:z=!1}={}){this.name="Replay";const B=LV({mask:N,unmask:$,block:H,unblock:q,ignore:k});if(this._recordingOptions={maskAllInputs:f,maskAllText:d,maskInputOptions:{password:!0},maskTextFn:O,maskInputFn:O,maskAttributeFn:(F,M,K)=>DV({maskAttributes:A,maskAllText:d,privacyOptions:B,key:F,value:M,el:K}),...B,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:F=>{try{F.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,bJ),maxReplayDuration:Math.min(o,l6),stickySession:i,useCompression:s,workerUrl:a,blockAllMedia:u,maskAllInputs:f,maskAllText:d,mutationBreadcrumbLimit:p,mutationLimit:m,slowClickTimeout:_,slowClickIgnoreSelectors:y,networkDetailAllowUrls:g,networkDetailDenyUrls:h,networkCaptureBodies:b,networkRequestHeaders:E$(v),networkResponseHeaders:E$(S),beforeAddRecordingEvent:I,beforeErrorSampling:D,onError:x,attachRawBodyFromRequest:z,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${y$}`:y$,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&ol())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return b$}set _isInitialized(t){b$=t}afterAllSetup(t){!ol()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&UV(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session",reason:"manual"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){if(this._replay?.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=zV(this._initialOptions,t);this._replay=new MV({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function zV(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},o=Jo(n.replaysSessionSampleRate),i=Jo(n.replaysOnErrorSampleRate);return o==null&&i==null&&er(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(r.sessionSampleRate=o),i!=null&&(r.errorSampleRate=i),r}function E$(e){return[...FV,...e.map(t=>t.toLowerCase())]}function qV(){return fe()?.getIntegrationByName("Replay")}var WV=Object.defineProperty,GV=(e,t,n)=>t in e?WV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$$=(e,t,n)=>GV(e,typeof t!="symbol"?t+"":t,n);class YV{constructor(){$$(this,"idNodeMap",new Map),$$(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function KV(){return new YV}function XV(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function y_(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:y_(e.parentNode,t,n,r+1)}function S$(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(XV(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const Is=`Please stop import mirror directly. Instead of that,\r
526
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
527
+ or you can use record.mirror to access the mirror instance during recording.`;let T$={map:{},getId(){return console.error(Is),-1},getNode(){return console.error(Is),null},removeNodeFromMap(){console.error(Is)},has(){return console.error(Is),!1},reset(){console.error(Is)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(T$=new Proxy(T$,{get(e,t,n){return t==="map"&&console.error(Is),Reflect.get(e,t,n)}}));function b_(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){k$(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>b_(e,t,i||{},!0)}function v_(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function JV(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function vu(e,t,n,r,o){if(!e)return!1;const i=JV(e);if(!i)return!1;const s=S$(t,n),a=y_(i,s);let c=-1;return a<0?!1:(r&&(c=y_(i,S$(null,r))),a>-1&&c<0?!0:a<c)}const w$={};function A$(e){const t=w$[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch{}return w$[e]=r.bind(window)}function pi(...e){return A$("requestAnimationFrame")(...e)}function k$(...e){return A$("setTimeout")(...e)}var Os=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Os||{});let Eu;function ZV(e){Eu=e}const E_=e=>Eu?(...n)=>{try{return e(...n)}catch(r){if(Eu&&Eu(r)===!0)return()=>{};throw r}}:e;for(var Rs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",QV=typeof Uint8Array>"u"?[]:new Uint8Array(256),$u=0;$u<Rs.length;$u++)QV[Rs.charCodeAt($u)]=$u;var VV=function(e){var t=new Uint8Array(e),n,r=t.length,o="";for(n=0;n<r;n+=3)o+=Rs[t[n]>>2],o+=Rs[(t[n]&3)<<4|t[n+1]>>4],o+=Rs[(t[n+1]&15)<<2|t[n+2]>>6],o+=Rs[t[n+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o};const C$=new Map;function eee(e,t){let n=C$.get(e);return n||(n=new Map,C$.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const N$=(e,t,n)=>{if(!e||!(O$(e,t)||typeof e=="object"))return;const r=e.constructor.name,o=eee(n,r);let i=o.indexOf(e);return i===-1&&(i=o.length,o.push(e)),i};function Su(e,t,n){if(e instanceof Array)return e.map(r=>Su(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,o=VV(e);return{rr_type:r,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Su(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:o}=e;return{rr_type:r,src:o}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",o=e.toDataURL();return{rr_type:r,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Su(e.data,t,n),e.width,e.height]};if(O$(e,t)||typeof e=="object"){const r=e.constructor.name,o=N$(e,t,n);return{rr_type:r,index:o}}}}return e}const I$=(e,t,n)=>e.map(r=>Su(r,t,n)),O$=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(o=>typeof t[o]=="function").find(o=>e instanceof t[o]);function tee(e,t,n,r,o){const i=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of s)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=v_(t.CanvasRenderingContext2D.prototype,a,function(d){return function(...f){return vu(this.canvas,n,r,o,!0)||k$(()=>{const u=I$(f,t,this);e(this.canvas,{type:Os["2D"],property:a,args:u})},0),d.apply(this,f)}});i.push(c)}catch{const c=b_(t.CanvasRenderingContext2D.prototype,a,{set(d){e(this.canvas,{type:Os["2D"],property:a,args:[d],setter:!0})}});i.push(c)}return()=>{i.forEach(a=>a())}}function nee(e){return e==="experimental-webgl"?"webgl":e}function R$(e,t,n,r,o){const i=[];try{const s=v_(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...d){if(!vu(this,t,n,r,!0)){const f=nee(c);if("__context"in this||(this.__context=f),o&&["webgl","webgl2"].includes(f))if(d[0]&&typeof d[0]=="object"){const u=d[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else d.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...d])}});i.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(s=>s())}}function x$(e,t,n,r,o,i,s,a){const c=[],d=Object.getOwnPropertyNames(e);for(const f of d)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))try{if(typeof e[f]!="function")continue;const u=v_(e,f,function(p){return function(...m){const _=p.apply(this,m);if(N$(_,a,this),"tagName"in this.canvas&&!vu(this.canvas,r,o,i,!0)){const y=I$(m,a,this),g={type:t,property:f,args:y};n(this.canvas,g)}return _}});c.push(u)}catch{const u=b_(e,f,{set(p){n(this.canvas,{type:t,property:f,args:[p],setter:!0})}});c.push(u)}return c}function ree(e,t,n,r,o,i){const s=[];return s.push(...x$(t.WebGLRenderingContext.prototype,Os.WebGL,e,n,r,o,i,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...x$(t.WebGL2RenderingContext.prototype,Os.WebGL2,e,n,r,o,i,t)),()=>{s.forEach(a=>a())}}const oee='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function iee(){const e=new Blob([oee]);return URL.createObjectURL(e)}class see{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c)};const{enableManualSnapshot:n,sampling:r="all",win:o,recordCanvas:i,errorHandler:s}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,s&&ZV(s),(i&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(o),!n&&E_(()=>{i&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),i&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:o,unblockSelector:i,recordCanvas:s,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}E_(()=>{if(s&&n==="all"&&this.initCanvasMutationObserver(t,r,o,i),s&&typeof n=="number"){const c=R$(t,r,o,i,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}pi(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){const t=new Worker(iee());return t.onmessage=n=>{const r=n.data,{id:o}=r;if(this.snapshotInProgressMap.set(o,!1),!("base64"in r))return;const{base64:i,type:s,width:a,height:c}=r;this.mutationCb({id:o,type:Os["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:i}],type:s}]},0,0,a,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=pi(n)};t=pi(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,o){const i=R$(t,n,r,o,!1),s=tee(this.processMutation.bind(this),t,n,r,o),a=ree(this.processMutation.bind(this),t,n,r,o,this.mirror);this.restoreHandlers.push(()=>{i(),s(),a()})}getCanvasElements(t,n,r){const o=[],i=s=>{s.querySelectorAll("canvas").forEach(a=>{vu(a,t,n,r)||o.push(a)})};for(const s of this.windows){const a=s.deref();let c;try{c=a&&a.document}catch{}c&&i(c)}for(const s of this.shadowDoms){const a=s.deref();a&&i(a)}return o}takeSnapshot(t,n,r){const{sampling:o,blockClass:i,blockSelector:s,unblockSelector:a,dataURLOptions:c,maxCanvasSize:d}=this.options,u=1e3/(o==="all"?2:o||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<u?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(i,s,a)).forEach(_=>{const y=this.mirror.getId(_);if(!(!this.mirror.hasNode(_)||!_.width||!_.height||this.snapshotInProgressMap.get(y))){if(this.snapshotInProgressMap.set(y,!0),!n&&["webgl","webgl2"].includes(_.__context)){const g=_.getContext(_.__context);g?.getContextAttributes()?.preserveDrawingBuffer===!1&&g.clear(g.COLOR_BUFFER_BIT)}createImageBitmap(_).then(g=>{this.worker?.postMessage({id:y,bitmap:g,width:_.width,height:_.height,dataURLOptions:c,maxCanvasSize:d},[g])}).catch(g=>{E_(()=>{throw this.snapshotInProgressMap.delete(y),g})()})}}),!0)}startPendingCanvasMutationFlusher(){pi(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,pi(t)};pi(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),pi(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const o=r.map(s=>{const{type:a,...c}=s;return c}),{type:i}=r[0];this.mutationCb({id:n,type:i,commands:o}),this.pendingCanvasMutations.delete(t)}}try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}KV();var P$;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(P$||(P$={}));const M$={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},aee="ReplayCanvas",Tu=1280,lee=((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Tu):Tu,n?Math.min(n,Tu):Tu]};let o,i;const s=new Promise(a=>i=a);return{name:aee,getOptions(){const{quality:a,enableManualSnapshot:c,maxCanvasSize:d}=r;return{enableManualSnapshot:c,recordCanvas:!0,getCanvasManager:f=>{const u=new see({...f,enableManualSnapshot:c,maxCanvasSize:d,errorHandler:p=>{try{typeof p=="object"&&(p.__rrweb__=!0)}catch{}}});return o=u,i(u),u},...M$[a]||M$.medium}},async snapshot(a,c){(o||await s).snapshot(a,c)}}});function cee(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function L$(e){try{return new URL(e,ye.location.origin).href}catch{return}}function dee(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function D$(e){try{return new Headers(e)}catch{return}}const F$=new WeakMap,$_=new Map,S_={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function B$(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:d}={...S_,...t},f=typeof i=="function"?i:_=>!0,u=_=>fee(_,a),p={},m=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(_=>(_.type==="transaction"&&_.spans&&_.spans.forEach(y=>{if(y.op==="http.client"){const g=$_.get(y.span_id);g&&(y.timestamp=g/1e3,$_.delete(y.span_id))}}),_)),o&&SW(_=>{if(_.response){const y=F$.get(_.response);y&&_.endTimestamp&&$_.set(y,_.endTimestamp)}}),r0(_=>{const y=XH(_,f,u,p,{propagateTraceparent:m,onRequestSpanEnd:d});if(_.response&&_.fetchData.__span&&F$.set(_.response,_.fetchData.__span),y){const g=L$(_.fetchData.url),h=g?ei(g).host:void 0;y.setAttributes({"http.url":g?ho(g):void 0,"server.address":h}),s&&U$(y,e),c?.(y,{headers:_.headers})}})),r&&D0(_=>{const y=pee(_,f,u,p,m,d);y&&(s&&U$(y,e),c?.(y,{headers:D$(_.xhr.__sentry_xhr_v3__?.request_headers)}))})}const uee=300;function U$(e,t){const{url:n}=Le(e).data;if(!n||typeof n!="string")return;let r=()=>void setTimeout(o);if(Yr(t)){const i=e.end.bind(e);e.end=s=>{const a=s??at();let c=!1;const d=()=>{c||(c=!0,setTimeout(o),i(a),clearTimeout(f))};r=d;const f=setTimeout(d,uee)}}const o=ui("resource",({entries:i})=>{i.forEach(s=>{dee(s)&&s.name.endsWith(n)&&(e.setAttributes(AE(s)),r())})})}function fee(e,t){const n=Go();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const i=r.origin===o;return t?nr(r.toString(),t)||i&&nr(r.pathname,t):i}else{const r=!!e.match(/^\/(?!\/)/);return t?nr(e,t):r}}function pee(e,t,n,r,o,i){const s=e.xhr,a=s?.[Qr];if(!s||s.__sentry_own_request__||!a)return;const{url:c,method:d}=a,f=Nn()&&t(c);if(e.endTimestamp){const h=s.__sentry_xhr_span_id__;if(!h)return;const b=r[h];b&&(f&&a.status_code!==void 0&&(Ua(b,a.status_code),b.end(),i?.(b,{headers:D$(xE(s)),error:e.error})),delete r[h]);return}const u=L$(c),p=ei(u||c),m=ho(l4(c)),_=fe(),y=!!$t(),g=f&&y?$r({name:`${d} ${m}`,attributes:{url:ho(c),type:"xhr","http.method":d,"http.url":u?ho(u):void 0,"server.address":p?.host,[qe]:"auto.http.browser",[tt]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new In;return f&&!y&&_?.recordDroppedEvent("no_parent_span","span"),s.__sentry_xhr_span_id__=g.spanContext().spanId,r[s.__sentry_xhr_span_id__]=g,n(c)&&mee(s,Nn()&&y?g:void 0,o),_&&_.emit("beforeOutgoingRequestSpan",g,e),g}function mee(e,t,n){const{"sentry-trace":r,baggage:o,traceparent:i}=Lm({span:t,propagateTraceparent:n});r&&_ee(e,r,o,i)}function _ee(e,t,n,r){const o=e.__sentry_xhr_v3__?.request_headers;if(!(o?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!o?.traceparent&&e.setRequestHeader("traceparent",r),n){const i=o?.baggage;(!i||!cee(i))&&e.setRequestHeader("baggage",n)}}catch{}}function hee(){ye.document?ye.document.addEventListener("visibilitychange",()=>{const e=$t();if(!e)return;const t=Et(e);if(ye.document.hidden&&t){const n="cancelled",{op:r,status:o}=Le(t);le&&R.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),o||t.setStatus({code:Ye,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):le&&R.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const gee=3600,j$="sentry_previous_trace",yee="sentry.previous_trace";function bee(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let o=r?$ee():void 0;e.on("spanStart",s=>{if(Et(s)!==s)return;const a=Pe().getPropagationContext();o=vee(o,s,a),r&&Eee(o)});let i=!0;n&&e.on("beforeSampling",s=>{if(!o)return;const a=Pe(),c=a.getPropagationContext();if(i&&c.parentSpanId){i=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(o.sampleRate),sampled:String(T_(o.spanContext))},sampleRand:o.sampleRand}),s.parentSampled=T_(o.spanContext),s.parentSampleRate=o.sampleRate,s.spanAttributes={...s.spanAttributes,[Tv]:o.sampleRate}})}function vee(e,t,n){const r=Le(t);function o(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[Pc])}catch{return 0}}const i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:o(),sampleRand:n.sampleRand};if(!e)return i;const s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=gee&&(le&&R.log(`Adding previous_trace \`${JSON.stringify(s)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:s,attributes:{[tB]:"previous_trace"}}),t.setAttribute(yee,`${s.traceId}-${s.spanId}-${T_(s)?1:0}`)),i)}function Eee(e){try{ye.sessionStorage.setItem(j$,JSON.stringify(e))}catch(t){le&&R.warn("Could not store previous trace in sessionStorage",t)}}function $ee(){try{const e=ye.sessionStorage?.getItem(j$);return JSON.parse(e)}catch{return}}function T_(e){return e.traceFlags===1}const See="BrowserTracing",Tee=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function H$(){const e=ye.navigator;return e?.userAgent?Tee.test(e.userAgent):!1}const wee={...Gc,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...S_},z$=((e={})=>{"enableElementTiming"in e&&er(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},n=ye.document,{enableInp:r,enableLongTask:o,enableLongAnimationFrame:i,_experiments:{enableInteractions:s,enableStandaloneClsSpans:a,enableStandaloneLcpSpans:c},beforeStartSpan:d,idleTimeout:f,finalTimeout:u,childSpanTimeout:p,markBackgroundSpan:m,traceFetch:_,traceXHR:y,trackFetchStreamPerformance:g,shouldCreateSpanForRequest:h,enableHTTPTimings:b,ignoreResourceSpans:v,ignorePerformanceApiSpans:S,instrumentPageLoad:N,instrumentNavigation:A,detectRedirects:$,linkPreviousTrace:H,consistentTraceSampling:q,enableReportPageLoaded:k,onRequestSpanStart:O,onRequestSpanEnd:I}={...wee,...e},D=H$();let x,z,B;function F(M,K,W=!0){const X=K.op==="pageload",oe=K.name,ce=d?d(K):K,ne=ce.attributes||{};if(oe!==ce.name&&(ne[Nt]="custom",ce.attributes=ne),!W){const de=Ko();$r({...ce,startTime:de}).end(de);return}t.name=ce.name,t.source=ne[Nt];const ke=b3(ce,{idleTimeout:f,finalTimeout:u,childSpanTimeout:p,disableAutoFinish:X,beforeSpanEnd:de=>{x?.();const ve=Yr(M);XY(de,{recordClsOnPageloadSpan:!ve&&!a,recordLcpOnPageloadSpan:!ve&&!c,ignoreResourceSpans:v,ignorePerformanceApiSpans:S,spanStreamingEnabled:ve}),K$(M,void 0);const $e=Pe(),Re=$e.getPropagationContext();$e.setPropagationContext({...Re,traceId:ke.spanContext().traceId,sampled:Gr(ke),dsc:Hn(de)}),X&&(B=void 0)},trimIdleSpanEndTimestamp:!k});X&&k&&(B=ke),K$(M,ke);function J(){n&&["interactive","complete"].includes(n.readyState)&&M.emit("idleSpanEnableAutoFinish",ke)}X&&!k&&n&&(n.addEventListener("readystatechange",()=>{J()}),J())}return{name:See,setup(M){if(D){le&&R.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}Vv();const K=Yr(M);if(x=HY({recordClsStandaloneSpans:K?void 0:a||!1,recordLcpStandaloneSpans:K?void 0:c||!1,client:M}),K?(mK(M),hK(M),r&&yK()):r&&cK(),i&&Se.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?qY():o&&zY(),s&&WY(),$&&n){const X=()=>{z=at()};addEventListener("click",X,{capture:!0}),addEventListener("keydown",X,{capture:!0,passive:!0})}function W(){const X=Nl(M);X&&!Le(X).timestamp&&(le&&R.log(`[Tracing] Finishing current active span with op: ${Le(X).op}`),X.setAttribute(Ma,"cancelled"),X.end())}M.on("startNavigationSpan",(X,oe)=>{if(fe()!==M)return;if(oe?.isRedirect){le&&R.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),F(M,{op:"navigation.redirect",...X},!1);return}z=void 0,W(),vt().setPropagationContext({traceId:yr(),sampleRand:Math.random(),propagationSpanId:Nn()?void 0:qr()});const ce=Pe();ce.setPropagationContext({traceId:yr(),sampleRand:Math.random(),propagationSpanId:Nn()?void 0:qr()}),ce.setSDKProcessingMetadata({normalizedRequest:void 0}),F(M,{op:"navigation",...X,parentSpan:null,forceTransaction:!0})}),M.on("startPageLoadSpan",(X,oe={})=>{if(fe()!==M)return;W();const ce=oe.sentryTrace||W$("sentry-trace")||G$("sentry-trace"),ne=oe.baggage||W$("baggage")||G$("baggage"),ke=Lv(ce,ne),J=Pe();J.setPropagationContext(ke),Nn()||(J.getPropagationContext().propagationSpanId=qr()),J.setSDKProcessingMetadata({normalizedRequest:Cd()}),F(M,{op:"pageload",...X})}),M.on("endPageloadSpan",()=>{k&&B&&(B.setAttribute(Ma,"reportPageLoaded"),B.end())})},afterAllSetup(M){if(D)return;let K=Go();if(H!=="off"&&bee(M,{linkPreviousTrace:H,consistentTraceSampling:q}),ye.location){if(N){const W=Mt();q$(M,{name:ye.location.pathname,startTime:W?W/1e3:void 0,attributes:{[Nt]:"url",[qe]:"auto.pageload.browser"}})}A&&Gd(({to:W,from:X})=>{if(X===void 0&&K?.indexOf(W)!==-1){K=void 0;return}K=void 0;const oe=Mm(W),ce=Nl(M),ne=ce&&$&&kee(ce,z);w_(M,{name:oe?.pathname||ye.location.pathname,attributes:{[Nt]:"url",[qe]:"auto.navigation.browser"}},{url:W,isRedirect:ne})})}m&&hee(),s&&Aee(M,f,u,p,t),r&&pK(),B$(M,{traceFetch:_,traceXHR:y,trackFetchStreamPerformance:g,tracePropagationTargets:M.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:h,enableHTTPTimings:b,onRequestSpanStart:O,onRequestSpanEnd:I})}}});function q$(e,t,n){e.emit("startPageLoadSpan",t,n),Pe().setTransactionName(t.name);const r=Nl(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function w_(e,t,n){const{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const i=Pe();return i.setTransactionName(t.name),r&&!o&&i.setSDKProcessingMetadata({normalizedRequest:{...Cd(),url:r}}),Nl(e)}function W$(e){return ye.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function G$(e){return ye.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(r=>r.name===e)?.description}function Aee(e,t,n,r,o){const i=ye.document;let s;const a=()=>{const c="ui.action.click",d=Nl(e);if(d){const f=Le(d).op;if(["navigation","pageload"].includes(f)){le&&R.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(Ma,"interactionInterrupted"),s.end(),s=void 0),!o.name){le&&R.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}s=b3({name:o.name,op:c,attributes:{[Nt]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};i&&addEventListener("click",a,{capture:!0})}const Y$="_sentry_idleSpan";function Nl(e){return e[Y$]}function K$(e,t){Gt(e,Y$,t)}const X$=1.5;function kee(e,t){const n=Le(e),r=Ko(),o=n.start_timestamp;return!(r-o>X$||t&&r-t<=X$)}function Cee(e=fe()){e?.emit("endPageloadSpan")}function Nee(e){const t=$t();if(t===e)return;const n=Pe();e.end=new Proxy(e.end,{apply(r,o,i){return br(n,t),Reflect.apply(r,o,i)}}),br(n,e)}const Iee=()=>({name:"SpanStreaming",beforeSetup(e){const t=e.getOptions();t.traceLifecycle||(le&&R.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),t.traceLifecycle="stream")},setup(e){const t="SpanStreaming integration requires",n="Falling back to static trace lifecycle.",r=e.getOptions();if(!Yr(e)){r.traceLifecycle="static",le&&R.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${n}`);return}const o=r.beforeSendSpan;if(o&&!Hc(o)){r.traceLifecycle="static",le&&R.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${n}`);return}const i=new bW(e);e.on("afterSpanEnd",s=>{Gr(s)&&i.add(pU(s,e))}),e.on("afterSegmentSpanEnd",s=>{const a=s.spanContext().traceId;setTimeout(()=>{i.flush(a)},500)})}});function xs(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function Oee(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=xs(n);return o=>r.then(i=>o(i.transaction(t,"readwrite").objectStore(t)))}function A_(e){return xs(e.getAllKeys())}function Ree(e,t,n){return e(r=>A_(r).then(o=>{if(!(o.length>=n))return r.put(t,Math.max(...o,0)+1),xs(r.transaction)}))}function xee(e,t,n){return e(r=>A_(r).then(o=>{if(!(o.length>=n))return r.put(t,Math.min(...o,0)-1),xs(r.transaction)}))}function Pee(e){return e(t=>A_(t).then(n=>{const r=n[0];if(r!=null)return xs(t.get(r)).then(o=>(t.delete(r),xs(t.transaction).then(()=>o)))}))}function Mee(e){let t;function n(){return t==null&&(t=Oee(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const o=qc(r);await Ree(n(),o,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const o=qc(r);await xee(n(),o,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await Pee(n());if(r)return BB(r)}catch{}}}}function Lee(e){return t=>{const n=e({...t,createStore:Mee});return ye.addEventListener("online",async r=>{await n.flush()}),n}}function Dee(e=B0){return Lee($j(e))}const J$=1e6,Fee="window"in Se&&Se.window===Se&&typeof importScripts>"u",Ao=String(0),wu=Fee?"main":"worker",Au=ye.navigator;let Z$="",Q$="",V$="",k_=Au?.userAgent||"",e8="";const Bee=Au?.language||Au?.languages?.[0]||"";function Uee(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const t8=Au?.userAgentData;Uee(t8)&&t8.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(Z$=e.platform||"",V$=e.architecture||"",e8=e.model||"",Q$=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];k_=`${t.brand} ${t.version}`}}).catch(e=>{});function jee(e){return!("thread_metadata"in e)}function Hee(e){return jee(e)?Kee(e):e}function zee(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&le&&R.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function qee(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const o=zee(r),i=Hee(n),s=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:at()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:at()*1e3;return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Uc,runtime:{name:"javascript",version:ye.navigator.userAgent},os:{name:Z$,version:Q$,build_number:k_},device:{locale:Bee,model:e8,manufacturer:k_,architecture:V$,is_emulator:!1},debug_meta:{images:r8(n.resources)},profile:i,transactions:[{name:r.transaction||"",id:r.event_id||Ut(),trace_id:o,active_thread_id:Ao,relative_start_ns:"0",relative_end_ns:((a-s)*1e6).toFixed(0)}]}}function Wee(e,t,n){if(e==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const r=Yee(e),o=t.getOptions(),i=t.getSdkMetadata?.()?.sdk;return{chunk_id:Ut(),client_sdk:{name:i?.name??"sentry.javascript.browser",version:i?.version??"0.0.0"},profiler_id:n||Ut(),platform:"javascript",version:"2",release:o.release??"",environment:o.environment??"production",debug_meta:{images:r8(e.resources)},profile:r}}function Gee(e){try{if(!e||typeof e!="object")return{reason:"chunk is not an object"};const t=r=>typeof r=="string"&&/^[a-f0-9]{32}$/.test(r);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};const n=e.profile;return n?!Array.isArray(n.frames)||!n.frames.length?{reason:"profile has no frames"}:!Array.isArray(n.stacks)||!n.stacks.length?{reason:"profile has no stacks"}:!Array.isArray(n.samples)||!n.samples.length?{reason:"profile has no samples"}:{valid:!0}:{reason:"missing profile data"}}catch(t){return{reason:`unknown validation error: ${t}`}}}function Yee(e){const t=[];for(let a=0;a<e.frames.length;a++){const c=e.frames[a];c&&(t[a]={function:c.name,abs_path:typeof c.resourceId=="number"?e.resources[c.resourceId]:void 0,lineno:c.line,colno:c.column})}const n=[];for(let a=0;a<e.stacks.length;a++){const c=e.stacks[a];if(!c)continue;const d=[];let f=c;for(;f;)d.push(f.frameId),f=f.parentId===void 0?void 0:e.stacks[f.parentId];n[a]=d}const r=Mt(),o=typeof performance.timeOrigin=="number"?performance.timeOrigin:r||0,i=o-(r||o),s=[];for(let a=0;a<e.samples.length;a++){const c=e.samples[a];if(!c)continue;const d=(o+(c.timestamp-i))/1e3;s[a]={stack_id:c.stackId??0,thread_id:Ao,timestamp:d}}return{frames:t,stacks:n,samples:s,thread_metadata:{[Ao]:{name:wu}}}}function n8(e){return Le(e).op==="pageload"}function Kee(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Ao]:{name:wu}}},o=e.samples[0];if(!o)return r;const i=o.timestamp,s=Mt(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:s||0,c=a-(s||a);return e.samples.forEach((d,f)=>{if(d.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[f]={elapsed_since_start_ns:((d.timestamp+c-i)*J$).toFixed(0),stack_id:t,thread_id:Ao};return}let u=e.stacks[d.stackId];const p=[];for(;u;){p.push(u.frameId);const _=e.frames[u.frameId];_&&r.frames[u.frameId]===void 0&&(r.frames[u.frameId]={function:_.name,abs_path:typeof _.resourceId=="number"?e.resources[_.resourceId]:void 0,lineno:_.line,colno:_.column}),u=u.parentId===void 0?void 0:e.stacks[u.parentId]}const m={elapsed_since_start_ns:((d.timestamp+c-i)*J$).toFixed(0),stack_id:n,thread_id:Ao};r.stacks[n]=p,r.samples[f]=m,n++}),r}function Xee(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function Jee(e){const t=[];return Qo(e,(n,r)=>{if(r==="transaction")for(let o=1;o<n.length;o++)n[o]?.contexts?.profile?.profile_id&&t.push(n[o])}),t}function r8(e){const r=fe()?.getOptions()?.stackParser;return r?$U(r,e):[]}function o8(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(le&&R.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(le&&R.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function Zee(e){return e.samples.length<2?(le&&R.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(le&&R.log("[Profiling] Discarding profile because it contains no frames"),!1)}let C_=!1;const i8=3e4;function Qee(e){return typeof e=="function"}function s8(){const e=ye.Profiler;if(!Qee(e)){le&&R.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(i8/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{le&&(R.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),R.log("[Profiling] Disabling profiling for current user session.")),C_=!0}}function a8(e){if(C_)return le&&R.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return le&&R.log("[Profiling] Discarding profile because root span was not sampled."),!1;const n=fe()?.getOptions();if(!n)return le&&R.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return o8(r)?r?(r===!0?!0:Math.random()<r)?!0:(le&&R.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(le&&R.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(le&&R.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function Vee(e){if(C_)return le&&R.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if(e.profileLifecycle!=="trace"&&e.profileLifecycle!=="manual")return le&&R.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;const t=e.profileSessionSampleRate;return o8(t)?t?Math.random()<=t:(le&&R.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(le&&R.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}function ku(e){return typeof e.profilesSampleRate<"u"}function ete(e,t,n,r){return Zee(n)?qee(e,t,n,r):null}const mi=new Map;function tte(){return mi.size}function nte(e){const t=mi.get(e);return t&&mi.delete(e),t}function rte(e,t){if(mi.set(e,t),mi.size>30){const n=mi.keys().next().value;n!==void 0&&mi.delete(n)}}function ote(e){return!e?.contexts?.profile||!e.contexts||(e.contexts.trace?.trace_id&&(e.contexts.trace={...e.contexts.trace,data:{...e.contexts.trace.data??{},"thread.id":Ao,"thread.name":wu}}),e.spans?.forEach(t=>{t.data={...t.data||{},"thread.id":Ao,"thread.name":wu}})),e}function l8(e){let t;n8(e)&&(t=at()*1e3);const n=s8();if(!n)return;le&&R.log(`[Profiling] started profiling span: ${Le(e).description}`);const r=Ut();let o=null;Pe().setContext("profile",{profile_id:r,start_timestamp:t});async function i(){if(e&&n){if(o){le&&R.log("[Profiling] profile for:",Le(e).description,"already exists, returning early");return}return n.stop().then(d=>{if(s&&(ye.clearTimeout(s),s=void 0),le&&R.log(`[Profiling] stopped profiling of span: ${Le(e).description}`),!d){le&&R.log(`[Profiling] profiler returned null profile for: ${Le(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}o=d,rte(r,d)}).catch(d=>{le&&R.log("[Profiling] error while stopping profiler:",d)})}}let s=ye.setTimeout(()=>{le&&R.log("[Profiling] max profile duration elapsed, stopping profiling for:",Le(e).description),i()},i8);const a=e.end.bind(e);function c(){return e?(i().then(()=>{a()},()=>{a()}),e):a()}e.end=c}const ite=6e4,ste=3e5;class ate{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(t){const n=t.getOptions().profileLifecycle,r=Vee(t.getOptions());le&&R.log(`[Profiling] Initializing profiler (lifecycle='${n}').`),r||le&&R.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=Ut(),this._client=t,this._sessionSampled=r,this._lifecycleMode=n,n==="trace"&&this._setupTraceLifecycleListeners(t)}start(){if(this._lifecycleMode==="trace"){le&&R.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){le&&R.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){le&&R.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if(this._lifecycleMode==="trace"){le&&R.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){le&&R.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(t){if(this._lifecycleMode!=="trace"||!this._sessionSampled)return;const n=t.spanContext().spanId;if(!n||this._activeRootSpanIds.has(n))return;this._registerTraceRootSpan(n);const r=this._activeRootSpanIds.size;r===1&&(le&&R.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,le&&R.log("[Profiling] Started profiling with profiler ID:",this._profilerId),Xo().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){le&&R.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(t=>{le&&R.error("[Profiling] Failed to collect current profile chunk on `stop()`:",t)}),this._lifecycleMode==="manual"&&Xo().setContext("profile",{}))}_setupTraceLifecycleListeners(t){t.on("spanStart",n=>{if(!this._sessionSampled){le&&R.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(n!==Et(n))return;if(!n.isRecording()){le&&R.log("[Profiling] Discarding profile because root span was not sampled.");return}const r=n.spanContext().spanId;if(!r||this._activeRootSpanIds.has(r))return;this._registerTraceRootSpan(r);const o=this._activeRootSpanIds.size;o===1&&(le&&R.log(`[Profiling] Root span ${r} started. Profiling active while there are active root spans (count=${o}).`),this._beginProfiling())}),t.on("spanEnd",n=>{if(!this._sessionSampled)return;const r=n.spanContext().spanId;if(!r||!this._activeRootSpanIds.has(r))return;this._activeRootSpanIds.delete(r);const o=this._activeRootSpanIds.size;le&&R.log(`[Profiling] Root span with ID ${r} ended. Will continue profiling for as long as there are active root spans (currently: ${o}).`),o===0&&(this._collectCurrentChunk().catch(i=>{le&&R.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",i)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,Xo().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(t=>clearTimeout(t)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(t){this._activeRootSpanIds.add(t);const n=setTimeout(()=>this._onRootSpanTimeout(t),ste);this._rootSpanTimeouts.set(t,n)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;const t=s8();if(!t){le&&R.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=t}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(t=>{le&&R.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",t)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},ite))}_onRootSpanTimeout(t){this._rootSpanTimeouts.has(t)&&(this._rootSpanTimeouts.delete(t),this._activeRootSpanIds.has(t)&&(le&&R.log(`[Profiling] Reached 5-minute timeout for root span ${t}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(t),this._activeRootSpanIds.size===0&&this._endProfiling()))}async _collectCurrentChunk(){const t=this._profiler;if(this._profiler=void 0,!!t)try{const n=await t.stop(),r=Wee(n,this._client,this._profilerId),o=Gee(r);if("reason"in o){le&&R.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",o.reason);return}this._sendProfileChunk(r),le&&R.log("[Profiling] Collected browser profile chunk.")}catch(n){le&&R.log("[Profiling] Error while stopping JS Profiler for chunk:",n)}}_sendProfileChunk(t){const n=this._client,r=qa(n.getSdkMetadata?.()),o=n.getDsn(),i=n.getOptions().tunnel,s=zn({event_id:Ut(),sent_at:new Date().toISOString(),...r&&{sdk:r},...!!i&&o&&{dsn:vr(o)}},[[{type:"profile_chunk",platform:"javascript"},t]]);n.sendEnvelope(s).then(null,a=>{le&&R.error("Error while sending profile chunk envelope:",a)})}}const lte="BrowserProfiling",cte=(()=>({name:lte,setup(e){const t=e.getOptions(),n=new ate;if(!ku(t)&&!t.profileLifecycle&&(t.profileLifecycle="manual"),ku(t)&&!t.profilesSampleRate){le&&R.log("[Profiling] Profiling disabled, no profiling options found.");return}const r=$t(),o=r&&Et(r);if(ku(t)&&t.profileSessionSampleRate!==void 0&&le&&R.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),ku(t))o&&n8(o)&&a8(o)&&l8(o),e.on("spanStart",i=>{i===Et(i)&&a8(i)&&l8(i)}),e.on("beforeEnvelope",i=>{if(!tte())return;const s=Jee(i);if(!s.length)return;const a=[];for(const c of s){const d=c?.contexts,f=d?.profile?.profile_id,u=d?.profile?.start_timestamp;if(typeof f!="string"){le&&R.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!f){le&&R.log("[Profiling] cannot find profile for a span without a profile context");continue}d?.profile&&delete d.profile;const p=nte(f);if(!p){le&&R.log(`[Profiling] Could not retrieve profile for span: ${f}`);continue}const m=ete(f,u,p,c);m&&a.push(m)}Xee(i,a)});else{const i=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),i==="manual")n.initialize(e);else if(i==="trace"){if(!Nn(t)){le&&R.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),o&&n.notifyRootSpanActive(o),ye.setTimeout(()=>{const s=$t(),a=s&&Et(s);a&&n.notifyRootSpanActive(a)},0)}}},processEvent(e){return ote(e)}})),dte=()=>({name:"LaunchDarkly",processEvent(e,t,n){return Qi(e)}});function ute(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{ti(e,t.value),ni(e,t.value)}}}const fte=()=>({name:"OpenFeature",processEvent(e,t,n){return Qi(e)}});class pte{after(t,n){ti(n.flagKey,n.value),ni(n.flagKey,n.value)}error(t,n,r){ti(t.flagKey,t.defaultValue),ni(t.flagKey,t.defaultValue)}}const mte=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;Wt(t,"isEnabled",_te)},processEvent(t,n,r){return Qi(t)}});function _te(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(ti(n,r),ni(n,r)):le&&R.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const hte=(({growthbookClass:e})=>GH({growthbookClass:e})),gte=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{ti(n.gate.name,n.gate.value),ni(n.gate.name,n.gate.value)})},processEvent(t,n,r){return Qi(t)}});async function yte(){const e=fe();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";const r=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await m3(()=>fetch(r,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}const bte="WebWorker",vte=({worker:e})=>({name:bte,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>c8(t))},addWorker:t=>c8(t)});function c8(e){e.addEventListener("message",t=>{if(Ste(t.data)){if(t.stopImmediatePropagation(),t.data._sentryDebugIds&&(le&&R.log("Sentry debugId web worker message received",t.data),ye._sentryDebugIds={...t.data._sentryDebugIds,...ye._sentryDebugIds}),t.data._sentryModuleMetadata&&(le&&R.log("Sentry module metadata web worker message received",t.data),ye._sentryModuleMetadata={...t.data._sentryModuleMetadata,...ye._sentryModuleMetadata}),t.data._sentryWasmImages){le&&R.log("Sentry WASM images web worker message received",t.data);const n=ye._sentryWasmImages||[],r=t.data._sentryWasmImages.filter(o=>En(o)&&typeof o.code_file=="string"&&!n.some(i=>i.code_file===o.code_file));ye._sentryWasmImages=[...n,...r]}t.data._sentryWorkerError&&(le&&R.log("Sentry worker rejection message received",t.data._sentryWorkerError),Ete(t.data._sentryWorkerError))}})}function Ete(e){const t=fe();if(!t)return;const n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,o=e.reason,i=Ur(o)?YE(o):Id(n,o,void 0,r,!0);i.level="error",e.filename&&(i.contexts={...i.contexts,worker:{filename:e.filename}}),Zi(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),le&&R.log("Captured worker unhandled rejection",o)}function $te({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{const r={reason:GE(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}),le&&R.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),le&&R.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function Ste(e){if(!En(e)||e._sentryMessage!==!0)return!1;const t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,o="_sentryWasmImages"in e;return!(!t&&!n&&!r&&!o||t&&!(En(e._sentryDebugIds)||e._sentryDebugIds===void 0)||n&&!(En(e._sentryModuleMetadata)||e._sentryModuleMetadata===void 0)||r&&!En(e._sentryWorkerError)||o&&(!Array.isArray(e._sentryWasmImages)||!e._sentryWasmImages.every(i=>En(i)&&typeof i.code_file=="string")))}const d8=["activate","mount"],u8=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Tte=/(?:^|[-_])(\w)/g,wte=e=>e.replace(Tte,t=>t.toUpperCase()).replace(/[-_]/g,""),Ate="<Root>",N_="<Anonymous>",kte=(e,t)=>e.repeat(t),Il=(e,t)=>{if(!e)return N_;if(e.$root===e)return Ate;if(!e.$options)return N_;const n=e.$options;let r=n.name||n._componentTag||n.__name;const o=n.__file;if(!r&&o){const i=o.match(/([^/\\]+)\.vue$/);i&&(r=i[1])}return(r?`<${wte(r)}>`:N_)+(o&&t!==!1?` at ${o}`:"")},Cte=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const o=t[t.length-1];if(o.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[o,n],n=0)}t.push(e),e=e.$parent}return`
528
+
529
+ found in
530
+
531
+ ${t.map((o,i)=>`${(i===0?"---> ":kte(" ",5+i*2))+(Array.isArray(o)?`${Il(o[0])}... (${o[1]} recursive calls)`:Il(o))}`).join(`
532
+ `)}`}return`
533
+
534
+ (found in ${Il(e)})`},f8=(e,t)=>{const{errorHandler:n}=e.config;e.config.errorHandler=(r,o,i)=>{const s=Il(o,!1),a=o?Cte(o):"",c={componentName:s,lifecycleHook:i,trace:a};if(t?.attachProps!==!1&&o&&(o.$options?.propsData?c.propsData=o.$options.propsData:o.$props&&(c.propsData=o.$props)),setTimeout(()=>{it(r,{captureContext:{contexts:{vue:c}},mechanism:{handled:!!n,type:"auto.function.vue.error_handler"}})}),typeof n=="function"&&e.config.errorHandler)n.call(e,r,o,i);else throw r}},p8="ui.vue",Nte={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function I_(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{e.$root?.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function Ite(e,t){function n(o){return o.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(o=>n(t)===n(o))}const m8=(e={})=>{const t=(e.hooks||[]).concat(d8).filter((o,i,s)=>s.indexOf(o)===i),n={},r=e.timeout||2e3;for(const o of t){const i=Nte[o];if(!i){u8&&R.warn(`Unknown hook: ${o}`);continue}for(const s of i)n[s]=function(){const a=this.$root===this;a&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||$r({name:"Application Render",op:`${p8}.render`,attributes:{[qe]:"auto.ui.vue"},onlyIfParent:!0}),I_(this,at(),r));const c=Il(this,!1);if(!(a||(Array.isArray(e.trackComponents)?Ite(e.trackComponents,c):e.trackComponents))){I_(this,at(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const f=s===i[0],u=this.$root?.$_sentryRootComponentSpan||$t();if(f){if(u){const p=this.$_sentryComponentSpans[o];p&&p.end(),this.$_sentryComponentSpans[o]=$r({name:`Vue ${c}`,op:`${p8}.${o}`,attributes:{[qe]:"auto.ui.vue"},onlyIfParent:!0})}}else{const p=this.$_sentryComponentSpans[o];if(!p)return;p.end(),I_(this,at(),r)}}}return n},Ote={Vue:Se.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:d8,timeout:2e3,trackComponents:!1}},Rte="Vue",_8=(e={})=>({name:Rte,setup(t){const n={...Ote,...t.getOptions(),...e};if(!n.Vue&&!n.app){er(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(o=>h8(o,n)):n.Vue&&h8(n.Vue,n)}}),h8=(e,t)=>{u8&&e._instance?.isMounted===!0&&er(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&f8(e,t),Nn(t)&&e.mixin(m8(t.tracingOptions))};function xte(e={}){const t={defaultIntegrations:[...U0(),_8()],...e};return f4(t,"vue"),OX(t)}function Pte(e,t,n){let r=!1;const o="mode"in e;e.onError(i=>it(i,{mechanism:{handled:!1}})),e.beforeEach((i,s,...a)=>{const c=r?void 0:Mte(),d={};for(const p of Object.keys(i.params))d[`url.path.parameter.${p}`]=i.params[p],d[`params.${p}`]=i.params[p];for(const p of Object.keys(i.query)){const m=i.query[p];m&&(d[`query.${p}`]=m)}let f=i.path,u="url";if(i.name&&t.routeLabel!=="path")f=i.name.toString(),u="custom";else if(i.matched.length>0){const p=i.matched.length-1;f=i.matched[p].path,u="route"}if(Pe().setTransactionName(f),t.instrumentPageLoad&&c&&(Le(c).data[Nt]!=="custom"&&(c.updateName(f),c.setAttribute(Nt,u)),c.setAttributes({...d,[qe]:"auto.pageload.vue"}),r=!0),t.instrumentNavigation&&!c&&n({name:f,op:"navigation",attributes:{...d,[qe]:"auto.navigation.vue",[Nt]:u}}),o){const p=a[0];typeof p=="function"&&p()}})}function Mte(){const e=$t(),t=e&&Et(e);return t&&Le(t).op==="pageload"?t:void 0}function Lte(e={}){if(!e.router)return z$(e);const t=z$({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:o=!0,routeLabel:i="name"}=e;return{...t,afterAllSetup(s){t.afterAllSetup(s),Pte(n,{routeLabel:i,instrumentNavigation:r,instrumentPageLoad:o},c=>{w_(s,c)})}}}const Dte={attachPiniaState:!0,addBreadcrumbs:!0,actionTransformer:e=>e,stateTransformer:e=>e},g8=(e,t)=>{const n={};try{return Object.keys(e.state.value).forEach(r=>{n[r]=e.state.value[r]}),t?t(n):n}catch{return n}},Fte=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:mE,MULTIPLEXED_TRANSPORT_EXTRA_KEY:Qc,OpenFeatureIntegrationHook:pte,SDK_VERSION:Lr,SEMANTIC_ATTRIBUTE_SENTRY_OP:tt,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:qe,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:Pc,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:Nt,Scope:rr,WINDOW:ye,addBreadcrumb:or,addEventProcessor:O3,addIntegration:$m,attachErrorHandler:f8,breadcrumbsIntegration:BE,browserApiErrorsIntegration:UE,browserProfilingIntegration:cte,browserSessionIntegration:HE,browserTracingIntegration:Lte,buildLaunchDarklyFlagUsedHandler:ute,captureConsoleIntegration:Vj,captureEvent:Zi,captureException:it,captureFeedback:U4,captureMessage:k3,captureSession:Yc,chromeStackLineParser:PE,close:UU,consoleLoggingIntegration:uz,contextLinesIntegration:QX,continueTrace:VB,createConsolaReporter:hz,createLangChainCallbackHandler:Vm,createSentryPiniaPlugin:e=>{const t={...Dte,...e};return({store:r,pinia:o})=>{t.attachPiniaState!==!1&&Xo().addEventProcessor((i,s)=>{try{const c=`pinia_state_all_stores_${new Date().toTimeString().split(" ")[0]}.json`;s.attachments?.some(f=>f.filename.startsWith("pinia_state_all_stores_"))||(s.attachments=[...s.attachments||[],{filename:c,data:JSON.stringify(g8(o,t.stateTransformer))}])}catch{}return i}),r.$onAction(i=>{i.after(()=>{const s=t.actionTransformer(i.name);typeof s<"u"&&s!==null&&t.addBreadcrumbs!==!1&&or({category:"pinia.action",message:`Store: ${r.$id} | Action: ${s}`,level:"info"});const a=g8(o,t.stateTransformer),c=Pe(),d=c.getScopeData().contexts.state;if(typeof a<"u"&&a!==null){const p=fe()?.getOptions()?.normalizeDepth||3,_={...d||{},state:{type:"pinia",value:a}};CB(_,3+p),c.setContext("state",_)}else c.setContext("state",{...d||{},state:{type:"pinia",value:"undefined"}})})})}},createTracingMixins:m8,createTransport:G3,createUserFeedbackEnvelope:QK,cultureContextIntegration:zE,dedupeIntegration:A4,defaultRequestInstrumentationOptions:S_,defaultStackLineParsers:LE,defaultStackParser:DE,diagnoseSdkConnectivity:yte,elementTimingIntegration:lK,endSession:Em,eventFiltersIntegration:h4,eventFromException:fE,eventFromMessage:pE,exceptionFromError:Nd,extraErrorDataIntegration:sH,featureFlagsIntegration:WH,feedbackAsyncIntegration:JG,feedbackIntegration:dE,feedbackSyncIntegration:dE,flush:BU,forceLoad:RX,functionToStringIntegration:_4,geckoStackLineParser:ME,getActiveSpan:$t,getClient:fe,getCurrentScope:Pe,getDefaultIntegrations:U0,getFeedback:oG,getGlobalScope:Xo,getIsolationScope:vt,getReplay:qV,getRootSpan:Et,getSpanDescendants:Ha,getSpanStatusFromHttpCode:Av,getTraceData:Lm,globalHandlersIntegration:WE,graphqlClientIntegration:sJ,growthbookIntegration:hte,httpClientIntegration:BX,httpContextIntegration:JE,inboundFiltersIntegration:g4,init:xte,instrumentAnthropicAiClient:Rq,instrumentCreateReactAgent:cW,instrumentGoogleGenAIClient:qq,instrumentLangChainEmbeddings:IW,instrumentLangGraph:dW,instrumentOpenAiClient:pq,instrumentOutgoingRequests:B$,instrumentSupabaseClient:L4,isBotUserAgent:H$,isEnabled:I3,isInitialized:jU,lastEventId:N3,launchDarklyIntegration:dte,lazyLoadIntegration:cE,linkedErrorsIntegration:ZE,logger:lz,makeBrowserOfflineTransport:Dee,makeFetchTransport:B0,makeMultiplexedTransport:wj,metrics:mz,moduleMetadataIntegration:Jj,onLoad:xX,openFeatureIntegration:fte,opera10StackLineParser:XK,opera11StackLineParser:ZK,parameterize:u4,registerSpanErrorInstrumentation:Vv,registerWebWorker:$te,replayCanvasIntegration:lee,replayIntegration:jV,reportPageLoaded:Cee,reportingObserverIntegration:DX,rewriteFramesIntegration:mH,sendFeedback:O9,setActiveSpanInBrowser:Nee,setContext:C3,setConversationId:FU,setCurrentClient:s4,setExtra:PU,setExtras:xU,setHttpStatus:Ua,setMeasurement:c3,setTag:LU,setTags:MU,setUser:DU,showReportDialog:PX,spanStreamingIntegration:Iee,spanToBaggageHeader:wB,spanToJSON:Le,spanToTraceHeader:Hv,spotlightBrowserIntegration:kX,startBrowserTracingNavigationSpan:w_,startBrowserTracingPageLoadSpan:q$,startInactiveSpan:$r,startNewTrace:_3,startSession:vm,startSpan:Er,startSpanManual:Kr,statsigIntegration:gte,supabaseIntegration:CH,suppressTracing:m3,thirdPartyErrorFilterIntegration:DH,uiProfiler:PK,unleashIntegration:mte,updateSpanName:EB,viewHierarchyIntegration:aJ,vueIntegration:_8,webWorkerIntegration:vte,winjsStackLineParser:YK,withActiveSpan:Wa,withIsolationScope:HF,withScope:jn,withStreamedSpan:AB,zodErrorsIntegration:LH},Symbol.toStringTag,{value:"Module"}));Yn.FormBuilder=fy,Yn.HoustonForm=uy,Yn.captureException=Zs,Yn.default=fy,Yn.initSentry=Vh,Object.defineProperties(Yn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));