(function(){try{var Be=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},at=new Be.Error().stack;at&&(Be._sentryDebugIds=Be._sentryDebugIds||{},Be._sentryDebugIds[at]="df33894a-edc7-47c8-9540-145772b9f598",Be._sentryDebugIdIdentifier="sentry-dbid-df33894a-edc7-47c8-9540-145772b9f598")}catch(Pe){}})();(function(Be){Be()})(function(){"use strict";var zk=Object.defineProperty,Gk=Object.defineProperties;var Vk=Object.getOwnPropertyDescriptors;var ou=Object.getOwnPropertySymbols,Zk=Object.getPrototypeOf,l4=Object.prototype.hasOwnProperty,u4=Object.prototype.propertyIsEnumerable,jk=Reflect.get;var d4=Math.pow,a4=(Be,at,Pe)=>at in Be?zk(Be,at,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Be[at]=Pe,C=(Be,at)=>{for(var Pe in at||(at={}))l4.call(at,Pe)&&a4(Be,Pe,at[Pe]);if(ou)for(var Pe of ou(at))u4.call(at,Pe)&&a4(Be,Pe,at[Pe]);return Be},Se=(Be,at)=>Gk(Be,Vk(at));var Af=(Be,at)=>{var Pe={};for(var On in Be)l4.call(Be,On)&&at.indexOf(On)<0&&(Pe[On]=Be[On]);if(Be!=null&&ou)for(var On of ou(Be))at.indexOf(On)<0&&u4.call(Be,On)&&(Pe[On]=Be[On]);return Pe};var c4=(Be,at,Pe)=>jk(Zk(Be),Pe,at);var He=(Be,at,Pe)=>new Promise((On,Xo)=>{var Vt=wr=>{try{$r(Pe.next(wr))}catch(Qo){Xo(Qo)}},su=wr=>{try{$r(Pe.throw(wr))}catch(Qo){Xo(Qo)}},$r=wr=>wr.done?On(wr.value):Promise.resolve(wr.value).then(Vt,su);$r((Pe=Pe.apply(Be,at)).next())});var Og,kg,Ag,Pg,Ig,Rg,Fg;const Be={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]};function at(n,e,t,r=!1){const o=String(e),a=(c,h)=>`\x1B[${h[0]}m${c}\x1B[${h[1]}m`,l=(c,h)=>h!=null&&typeof h=="string"?a(c,Be[h]):h!=null&&Array.isArray(h)?h.reduce((g,v)=>l(g,v),c):h!=null&&h[c.trim()]!=null?l(c,h[c.trim()]):h!=null&&h["*"]!=null?l(c,h["*"]):c,d=null;return o.replace(/{{(.+?)}}/g,(c,h)=>{var v,w;const g=t[h]!=null?String(t[h]):r?"":c;return n.stylePrettyLogs?l(g,(w=(v=n==null?void 0:n.prettyLogStyles)==null?void 0:v[h])!=null?w:d)+a("",Be.reset):g})}function Pe(n,e=2,t=0){return n!=null&&isNaN(n)?"":(n=n!=null?n+t:n,e===2?n==null?"--":n<10?"0"+n:n.toString():n==null?"---":n<10?"00"+n:n<100?"0"+n:n.toString())}function On(n){return{href:n.href,protocol:n.protocol,username:n.username,password:n.password,host:n.host,hostname:n.hostname,port:n.port,pathname:n.pathname,search:n.search,searchParams:[...n.searchParams].map(([e,t])=>({key:e,value:t})),hash:n.hash,origin:n.origin}}function Xo(n){const e=new Set;return JSON.stringify(n,(t,r)=>{if(typeof r=="object"&&r!==null){if(e.has(r))return"[Circular]";e.add(r)}return typeof r=="bigint"?`${r}`:r})}function Vt(n,e){const t={seen:[],stylize:wr};return e!=null&&Df(t,e),$r(t.showHidden)&&(t.showHidden=!1),$r(t.depth)&&(t.depth=2),$r(t.colors)&&(t.colors=!0),$r(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=Qo),la(t,n,t.depth)}Vt.colors=Be,Vt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function su(n){return typeof n=="boolean"}function $r(n){return n===void 0}function wr(n){return n}function Qo(n,e){var r,o,a,l;const t=Vt.styles[e];return t!=null&&((o=(r=Vt==null?void 0:Vt.colors)==null?void 0:r[t])==null?void 0:o[0])!=null&&((l=(a=Vt==null?void 0:Vt.colors)==null?void 0:a[t])==null?void 0:l[1])!=null?"\x1B["+Vt.colors[t][0]+"m"+n+"\x1B["+Vt.colors[t][1]+"m":n}function sa(n){return typeof n=="function"}function Pf(n){return typeof n=="string"}function h4(n){return typeof n=="number"}function If(n){return n===null}function Rf(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function au(n){return aa(n)&&uu(n)==="[object RegExp]"}function aa(n){return typeof n=="object"&&n!==null}function lu(n){return aa(n)&&(uu(n)==="[object Error]"||n instanceof Error)}function Ff(n){return aa(n)&&uu(n)==="[object Date]"}function uu(n){return Object.prototype.toString.call(n)}function p4(n){const e={};return n.forEach(t=>{e[t]=!0}),e}function g4(n,e,t,r,o){const a=[];for(let l=0,d=e.length;l{l.match(/^\d+$/)||a.push(cu(n,e,t,r,l,!0))}),a}function du(n){return"["+Error.prototype.toString.call(n)+"]"}function la(n,e,t=0){if(n.customInspect&&e!=null&&sa(e)&&(e==null?void 0:e.inspect)!==Vt&&!(e!=null&&e.constructor&&(e==null?void 0:e.constructor.prototype)===e)){if(typeof e.inspect!="function"&&e.toString!=null)return e.toString();let g=e==null?void 0:e.inspect(t,n);return Pf(g)||(g=la(n,g,t)),g}const r=ri(n,e);if(r)return r;let o=Object.keys(e);const a=p4(o);try{n.showHidden&&Object.getOwnPropertyNames&&(o=Object.getOwnPropertyNames(e))}catch(g){}if(lu(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return du(e);if(o.length===0)if(sa(n.stylize)){if(sa(e)){const g=e.name?": "+e.name:"";return n.stylize("[Function"+g+"]","special")}if(au(e))return n.stylize(RegExp.prototype.toString.call(e),"regexp");if(Ff(e))return n.stylize(Date.prototype.toISOString.call(e),"date");if(lu(e))return du(e)}else return e;let l="",d=!1,c=[`{ `,` }`];if(Array.isArray(e)&&(d=!0,c=[`[ `,` ]`]),sa(e)&&(l=" [Function"+(e.name?": "+e.name:"")+"]"),au(e)&&(l=" "+RegExp.prototype.toString.call(e)),Ff(e)&&(l=" "+Date.prototype.toUTCString.call(e)),lu(e)&&(l=" "+du(e)),o.length===0&&(!d||e.length==0))return c[0]+l+c[1];if(t<0)return au(e)?n.stylize(RegExp.prototype.toString.call(e),"regexp"):n.stylize("[Object]","special");n.seen.push(e);let h;return d?h=g4(n,e,t,a,o):h=o.map(g=>cu(n,e,t,a,g,d)),n.seen.pop(),m4(h,l,c)}function cu(n,e,t,r,o,a){let l,d,c={value:void 0};try{c.value=e[o]}catch(h){}try{Object.getOwnPropertyDescriptor&&(c=Object.getOwnPropertyDescriptor(e,o)||c)}catch(h){}if(c.get?c.set?d=n.stylize("[Getter/Setter]","special"):d=n.stylize("[Getter]","special"):c.set&&(d=n.stylize("[Setter]","special")),Rf(r,o)||(l="["+o+"]"),d||(n.seen.indexOf(c.value)<0?(If(t)?d=la(n,c.value,void 0):d=la(n,c.value,t-1),d.indexOf(` `)>-1&&(a?d=d.split(` `).map(h=>" "+h).join(` `).substr(2):d=` `+d.split(` `).map(h=>" "+h).join(` `))):d=n.stylize("[Circular]","special")),$r(l)){if(a&&o.match(/^\d+$/))return d;l=JSON.stringify(""+o),l.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(l=l.substr(1,l.length-2),l=n.stylize(l,"name")):(l=l.replace(/'/g,"\\'").replace(/\\"/g,"\\'").replace(/(^"|"$)/g,"'"),l=n.stylize(l,"string"))}return l+": "+d}function ri(n,e){if($r(e))return n.stylize("undefined","undefined");if(Pf(e)){const t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,"\\'")+"'";return n.stylize(t,"string")}if(h4(e))return n.stylize(""+e,"number");if(su(e))return n.stylize(""+e,"boolean");if(If(e))return n.stylize("null","null")}function m4(n,e,t){return t[0]+(e===""?"":e+` `)+" "+n.join(`, `)+" "+t[1]}function Df(n,e){const t=C({},n);if(!e||!aa(e))return n;const r=C({},e),o=Object.keys(e);let a=o.length;for(;a--;)t[o[a]]=r[o[a]];return t}function y4(n,...e){const t={seen:[],stylize:wr};n!=null&&Df(t,n);const r=e[0];let o=0,a="",l="";if(typeof r=="string"){if(e.length===1)return r;let d,c=0;for(let h=0;h!a.includes("Error: ")))==null?void 0:o[n])}function Mf(n){var e,t,r,o;return(o=(r=(t=(e=n==null?void 0:n.stack)==null?void 0:e.split(` `))!=null?t:[])==null?void 0:r.filter(a=>!a.includes("Error: ")))==null?void 0:o.reduce((a,l)=>(a.push(Bf(l)),a),[])}function Bf(n){var r;const e=(r=globalThis==null?void 0:globalThis.location)==null?void 0:r.origin,t={fullFilePath:void 0,fileName:void 0,fileNameWithLine:void 0,fileColumn:void 0,fileLine:void 0,filePath:void 0,filePathWithLine:void 0,method:void 0};if(n!=null){const o=n.match($4);if(o){t.filePath=o[1].replace(/\?.*$/,""),t.fullFilePath=`${e}${t.filePath}`;const a=t.filePath.split("/");t.fileName=a[a.length-1],t.fileLine=o[2],t.fileColumn=o[3],t.filePathWithLine=`${t.filePath}:${t.fileLine}`,t.fileNameWithLine=`${t.fileName}:${t.fileLine}`}}return t}function Wf(n){return n instanceof Error}function _4(n,e){return n.reduce((t,r)=>(Wf(r)?t.errors.push(Uf(r,e)):t.args.push(r),t),{args:[],errors:[]})}function Uf(n,e){const t=Mf(n).map(o=>at(e,e.prettyErrorStackTemplate,C({},o),!0)),r={errorName:` ${n.name} `,errorMessage:Object.getOwnPropertyNames(n).reduce((o,a)=>(a!=="stack"&&o.push(n[a]),o),[]).join(", "),errorStack:t.join(` `)};return at(e,e.prettyErrorTemplate,r)}function x4(n,e,t,r){const o=(t.length>0&&e.length>0?` `:"")+t.join(` `);r.prettyInspectOptions.colors=r.stylePrettyLogs,console.log(n+y4(r.prettyInspectOptions,...e)+o)}function E4(n){console.log(Xo(n))}function S4(n){return!1}class C4{constructor(e,t,r=4){var o,a,l,d,c,h,g,v,w,m,N,A,k,M,j,Z,q,V,K,L,U,X,me,Re,Ve,Fe;this.logObj=t,this.stackDepthLevel=r,this.runtime=v4,this.settings={type:(o=e==null?void 0:e.type)!=null?o:"pretty",name:e==null?void 0:e.name,parentNames:e==null?void 0:e.parentNames,minLevel:(a=e==null?void 0:e.minLevel)!=null?a:0,argumentsArrayName:e==null?void 0:e.argumentsArrayName,hideLogPositionForProduction:(l=e==null?void 0:e.hideLogPositionForProduction)!=null?l:!1,prettyLogTemplate:(d=e==null?void 0:e.prettyLogTemplate)!=null?d:"{{yyyy}}.{{mm}}.{{dd}} {{hh}}:{{MM}}:{{ss}}:{{ms}} {{logLevelName}} {{filePathWithLine}}{{nameWithDelimiterPrefix}} ",prettyErrorTemplate:(c=e==null?void 0:e.prettyErrorTemplate)!=null?c:` {{errorName}} {{errorMessage}} error stack: {{errorStack}}`,prettyErrorStackTemplate:(h=e==null?void 0:e.prettyErrorStackTemplate)!=null?h:` • {{fileName}} {{method}} {{filePathWithLine}}`,prettyErrorParentNamesSeparator:(g=e==null?void 0:e.prettyErrorParentNamesSeparator)!=null?g:":",prettyErrorLoggerNameDelimiter:(v=e==null?void 0:e.prettyErrorLoggerNameDelimiter)!=null?v:" ",stylePrettyLogs:(w=e==null?void 0:e.stylePrettyLogs)!=null?w:!0,prettyLogTimeZone:(m=e==null?void 0:e.prettyLogTimeZone)!=null?m:"UTC",prettyLogStyles:(N=e==null?void 0:e.prettyLogStyles)!=null?N:{logLevelName:{"*":["bold","black","bgWhiteBright","dim"],SILLY:["bold","white"],TRACE:["bold","whiteBright"],DEBUG:["bold","green"],INFO:["bold","blue"],WARN:["bold","yellow"],ERROR:["bold","red"],FATAL:["bold","redBright"]},dateIsoStr:"white",filePathWithLine:"white",name:["white","bold"],nameWithDelimiterPrefix:["white","bold"],nameWithDelimiterSuffix:["white","bold"],errorName:["bold","bgRedBright","whiteBright"],fileName:["yellow"],fileNameWithLine:"white"},prettyInspectOptions:(A=e==null?void 0:e.prettyInspectOptions)!=null?A:{colors:!0,compact:!1,depth:1/0},metaProperty:(k=e==null?void 0:e.metaProperty)!=null?k:"_meta",maskPlaceholder:(M=e==null?void 0:e.maskPlaceholder)!=null?M:"[***]",maskValuesOfKeys:(j=e==null?void 0:e.maskValuesOfKeys)!=null?j:["password"],maskValuesOfKeysCaseInsensitive:(Z=e==null?void 0:e.maskValuesOfKeysCaseInsensitive)!=null?Z:!1,maskValuesRegEx:e==null?void 0:e.maskValuesRegEx,prefix:[...(q=e==null?void 0:e.prefix)!=null?q:[]],attachedTransports:[...(V=e==null?void 0:e.attachedTransports)!=null?V:[]],overwrite:{mask:(K=e==null?void 0:e.overwrite)==null?void 0:K.mask,toLogObj:(L=e==null?void 0:e.overwrite)==null?void 0:L.toLogObj,addMeta:(U=e==null?void 0:e.overwrite)==null?void 0:U.addMeta,addPlaceholders:(X=e==null?void 0:e.overwrite)==null?void 0:X.addPlaceholders,formatMeta:(me=e==null?void 0:e.overwrite)==null?void 0:me.formatMeta,formatLogObj:(Re=e==null?void 0:e.overwrite)==null?void 0:Re.formatLogObj,transportFormatted:(Ve=e==null?void 0:e.overwrite)==null?void 0:Ve.transportFormatted,transportJSON:(Fe=e==null?void 0:e.overwrite)==null?void 0:Fe.transportJSON}}}log(e,t,...r){var v,w,m,N,A,k,M,j,Z,q,V,K,L,U;if(e0?this._mask(o):o,l=this.logObj!=null?this._recursiveCloneAndExecuteFunctions(this.logObj):void 0,d=((m=this.settings.overwrite)==null?void 0:m.toLogObj)!=null?(N=this.settings.overwrite)==null?void 0:N.toLogObj(a,l):this._toLogObj(a,l),c=((A=this.settings.overwrite)==null?void 0:A.addMeta)!=null?(k=this.settings.overwrite)==null?void 0:k.addMeta(d,e,t):this._addMetaToLogObj(d,e,t);let h,g;return((M=this.settings.overwrite)==null?void 0:M.formatMeta)!=null&&(h=(j=this.settings.overwrite)==null?void 0:j.formatMeta(c==null?void 0:c[this.settings.metaProperty])),((Z=this.settings.overwrite)==null?void 0:Z.formatLogObj)!=null&&(g=(q=this.settings.overwrite)==null?void 0:q.formatLogObj(a,this.settings)),this.settings.type==="pretty"&&(h=h!=null?h:this._prettyFormatLogObjMeta(c==null?void 0:c[this.settings.metaProperty]),g=g!=null?g:this.runtime.prettyFormatLogObj(a,this.settings)),h!=null&&g!=null?((V=this.settings.overwrite)==null?void 0:V.transportFormatted)!=null?(K=this.settings.overwrite)==null||K.transportFormatted(h,g.args,g.errors,this.settings):this.runtime.transportFormatted(h,g.args,g.errors,this.settings):((L=this.settings.overwrite)==null?void 0:L.transportJSON)!=null?(U=this.settings.overwrite)==null||U.transportJSON(c):this.settings.type!=="hidden"&&this.runtime.transportJSON(c),this.settings.attachedTransports!=null&&this.settings.attachedTransports.length>0&&this.settings.attachedTransports.forEach(X=>{X(c)}),c}attachTransport(e){this.settings.attachedTransports.push(e)}getSubLogger(e,t){var a,l,d,c;const r=Se(C(C({},this.settings),e),{parentNames:((a=this.settings)==null?void 0:a.parentNames)!=null&&((l=this.settings)==null?void 0:l.name)!=null?[...this.settings.parentNames,this.settings.name]:((d=this.settings)==null?void 0:d.name)!=null?[this.settings.name]:void 0,prefix:[...this.settings.prefix,...(c=e==null?void 0:e.prefix)!=null?c:[]]});return new this.constructor(r,t!=null?t:this.logObj,this.stackDepthLevel)}_mask(e){const t=this.settings.maskValuesOfKeysCaseInsensitive!==!0?this.settings.maskValuesOfKeys:this.settings.maskValuesOfKeys.map(r=>r.toLowerCase());return e==null?void 0:e.map(r=>this._recursiveCloneAndMaskValuesOfKeys(r,t))}_recursiveCloneAndMaskValuesOfKeys(e,t,r=[]){var o,a;if(r.includes(e))return C({},e);if(typeof e=="object"&&e!==null&&r.push(e),this.runtime.isError(e)||this.runtime.isBuffer(e))return e;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(Array.isArray(e))return e.map(l=>this._recursiveCloneAndMaskValuesOfKeys(l,t,r));if(e instanceof Date)return new Date(e.getTime());if(e instanceof URL)return On(e);if(e!==null&&typeof e=="object"){const l=this.runtime.isError(e)?this._cloneError(e):Object.create(Object.getPrototypeOf(e));return Object.getOwnPropertyNames(e).reduce((d,c)=>{var h;return d[c]=t.includes(((h=this.settings)==null?void 0:h.maskValuesOfKeysCaseInsensitive)!==!0?c:c.toLowerCase())?this.settings.maskPlaceholder:(()=>{try{return this._recursiveCloneAndMaskValuesOfKeys(e[c],t,r)}catch(g){return null}})(),d},l)}else{if(typeof e=="string"){let l=e;for(const d of((o=this.settings)==null?void 0:o.maskValuesRegEx)||[])l=l.replace(d,((a=this.settings)==null?void 0:a.maskPlaceholder)||"");return l}return e}}_recursiveCloneAndExecuteFunctions(e,t=[]){return this.isObjectOrArray(e)&&t.includes(e)?this.shallowCopy(e):(this.isObjectOrArray(e)&&t.push(e),Array.isArray(e)?e.map(r=>this._recursiveCloneAndExecuteFunctions(r,t)):e instanceof Date?new Date(e.getTime()):this.isObject(e)?Object.getOwnPropertyNames(e).reduce((r,o)=>{const a=Object.getOwnPropertyDescriptor(e,o);if(a){Object.defineProperty(r,o,a);const l=e[o];r[o]=typeof l=="function"?l():this._recursiveCloneAndExecuteFunctions(l,t)}return r},Object.create(Object.getPrototypeOf(e))):e)}isObjectOrArray(e){return typeof e=="object"&&e!==null}isObject(e){return typeof e=="object"&&!Array.isArray(e)&&e!==null}shallowCopy(e){return Array.isArray(e)?[...e]:C({},e)}_toLogObj(e,t={}){return e=e==null?void 0:e.map(r=>this.runtime.isError(r)?this._toErrorObject(r):r),this.settings.argumentsArrayName==null?e.length===1&&!Array.isArray(e[0])&&this.runtime.isBuffer(e[0])!==!0&&!(e[0]instanceof Date)?t=typeof e[0]=="object"&&e[0]!=null?C(C({},e[0]),t):C({0:e[0]},t):t=C(C({},t),e):t=Se(C({},t),{[this.settings.argumentsArrayName]:e}),t}_cloneError(e){const t=new e.constructor;return Object.getOwnPropertyNames(e).forEach(r=>{t[r]=e[r]}),t}_toErrorObject(e){var t;return{nativeError:e,name:(t=e.name)!=null?t:"Error",message:e.message,stack:this.runtime.getErrorTrace(e)}}_addMetaToLogObj(e,t,r){return Se(C({},e),{[this.settings.metaProperty]:this.runtime.getMeta(t,r,this.stackDepthLevel,this.settings.hideLogPositionForProduction,this.settings.name,this.settings.parentNames)})}_prettyFormatLogObjMeta(e){var l,d,c,h,g,v,w,m,N,A,k,M,j,Z,q,V,K,L,U,X,me,Re,Ve,Fe,dt,rt,Le;if(e==null)return"";let t=this.settings.prettyLogTemplate;const r={};t.includes("{{yyyy}}.{{mm}}.{{dd}} {{hh}}:{{MM}}:{{ss}}:{{ms}}")?t=t.replace("{{yyyy}}.{{mm}}.{{dd}} {{hh}}:{{MM}}:{{ss}}:{{ms}}","{{dateIsoStr}}"):this.settings.prettyLogTimeZone==="UTC"?(r.yyyy=(d=(l=e==null?void 0:e.date)==null?void 0:l.getUTCFullYear())!=null?d:"----",r.mm=Pe((c=e==null?void 0:e.date)==null?void 0:c.getUTCMonth(),2,1),r.dd=Pe((h=e==null?void 0:e.date)==null?void 0:h.getUTCDate(),2),r.hh=Pe((g=e==null?void 0:e.date)==null?void 0:g.getUTCHours(),2),r.MM=Pe((v=e==null?void 0:e.date)==null?void 0:v.getUTCMinutes(),2),r.ss=Pe((w=e==null?void 0:e.date)==null?void 0:w.getUTCSeconds(),2),r.ms=Pe((m=e==null?void 0:e.date)==null?void 0:m.getUTCMilliseconds(),3)):(r.yyyy=(A=(N=e==null?void 0:e.date)==null?void 0:N.getFullYear())!=null?A:"----",r.mm=Pe((k=e==null?void 0:e.date)==null?void 0:k.getMonth(),2,1),r.dd=Pe((M=e==null?void 0:e.date)==null?void 0:M.getDate(),2),r.hh=Pe((j=e==null?void 0:e.date)==null?void 0:j.getHours(),2),r.MM=Pe((Z=e==null?void 0:e.date)==null?void 0:Z.getMinutes(),2),r.ss=Pe((q=e==null?void 0:e.date)==null?void 0:q.getSeconds(),2),r.ms=Pe((V=e==null?void 0:e.date)==null?void 0:V.getMilliseconds(),3));const o=this.settings.prettyLogTimeZone==="UTC"?e==null?void 0:e.date:new Date(((K=e==null?void 0:e.date)==null?void 0:K.getTime())-((L=e==null?void 0:e.date)==null?void 0:L.getTimezoneOffset())*6e4);r.rawIsoStr=o==null?void 0:o.toISOString(),r.dateIsoStr=o==null?void 0:o.toISOString().replace("T"," ").replace("Z",""),r.logLevelName=e==null?void 0:e.logLevelName,r.fileNameWithLine=(X=(U=e==null?void 0:e.path)==null?void 0:U.fileNameWithLine)!=null?X:"",r.filePathWithLine=(Re=(me=e==null?void 0:e.path)==null?void 0:me.filePathWithLine)!=null?Re:"",r.fullFilePath=(Fe=(Ve=e==null?void 0:e.path)==null?void 0:Ve.fullFilePath)!=null?Fe:"";let a=(dt=this.settings.parentNames)==null?void 0:dt.join(this.settings.prettyErrorParentNamesSeparator);return a=a!=null&&(e==null?void 0:e.name)!=null?a+this.settings.prettyErrorParentNamesSeparator:void 0,r.name=(e==null?void 0:e.name)!=null||a!=null?(a!=null?a:"")+(e==null?void 0:e.name):"",r.nameWithDelimiterPrefix=r.name.length>0?this.settings.prettyErrorLoggerNameDelimiter+r.name:"",r.nameWithDelimiterSuffix=r.name.length>0?r.name+this.settings.prettyErrorLoggerNameDelimiter:"",((rt=this.settings.overwrite)==null?void 0:rt.addPlaceholders)!=null&&((Le=this.settings.overwrite)==null||Le.addPlaceholders(e,r)),at(this.settings,t,r)}}class N4 extends C4{constructor(e,t){const r=typeof window!="undefined"&&typeof document!="undefined",o=r?window.chrome!==void 0&&window.CSS!==void 0&&window.CSS.supports("color","green"):!1,a=r?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1;e=e||{},e.stylePrettyLogs=e.stylePrettyLogs&&r&&!o?!1:e.stylePrettyLogs,super(e,t,a?4:5)}log(e,t,...r){return super.log(e,t,...r)}silly(...e){return super.log(0,"SILLY",...e)}trace(...e){return super.log(1,"TRACE",...e)}debug(...e){return super.log(2,"DEBUG",...e)}info(...e){return super.log(3,"INFO",...e)}warn(...e){return super.log(4,"WARN",...e)}error(...e){return super.log(5,"ERROR",...e)}fatal(...e){return super.log(6,"FATAL",...e)}getSubLogger(e,t){return super.getSubLogger(e,t)}}var T4=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};T4.SENTRY_RELEASE={id:"d6ffdb0a2bd21dd4aca54857d9d877ea1cce9abf"};var fu=function(){return fu=Object.assign||function(n){for(var e,t=1,r=arguments.length;t(n.godaddy="godaddy",n.salesforce="salesforce",n.unknown="unknown",n))(hu||{});class Ft{static isLocalEnv(){return!1}static isInsideIframe(){return window.top!==window.self}static isGoDaddyBackoffice(){return window.parent.location.hostname.endsWith(".godaddy.com")}static isDynamicElementReplacementMode(){return this.getPlatform()==="salesforce"||this.isMode("dynamic")}static getAccountId(){if(!window.gbWidgets.aid){const e=this.getConfigParam("acct");if(e&&typeof e=="string"){const t=decodeURIComponent(e).trim();/^[a-zA-Z0-9]{16}$/.test(t)||this.isLocalEnv()?window.gbWidgets.aid=t:Ct.error(`Invalid ?acct= format: ${t}`)}!window.gbWidgets.aid&&!es.isCurrentHostnameGivebutter()&&Ct.error("Could not find ?acct= attribute in script url")}return window.gbWidgets.aid}static getPlatform(){return window.gbWidgets.platform||(window.gbWidgets.platform=this.getConfigParam("p","unknown")),window.gbWidgets.platform}static isMode(e){var t;return window.gbWidgets.mode||(window.gbWidgets.mode=(t=this.getConfigParam("mode"))!=null?t:""),window.gbWidgets.mode.includes(e)}static getConfigParam(e,t=null){const r=document.currentScript;return r instanceof HTMLScriptElement?new URL(r.src).searchParams.get(e):t}}var k4={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};A4(k4);function A4(n){var e={};for(var t in n)n.hasOwnProperty(t)&&(e[n[t]]=t);return e}class ki extends Error{}class P4 extends ki{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class I4 extends ki{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class R4 extends ki{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class eo extends ki{}class Hf extends ki{constructor(e){super(`Invalid unit ${e}`)}}class an extends ki{}class ii extends ki{constructor(){super("Zone is an abstract class")}}const z="numeric",rr="short",kn="long",ua={year:z,month:z,day:z},zf={year:z,month:rr,day:z},F4={year:z,month:rr,day:z,weekday:rr},Gf={year:z,month:kn,day:z},Vf={year:z,month:kn,day:z,weekday:kn},Zf={hour:z,minute:z},jf={hour:z,minute:z,second:z},qf={hour:z,minute:z,second:z,timeZoneName:rr},Yf={hour:z,minute:z,second:z,timeZoneName:kn},Kf={hour:z,minute:z,hourCycle:"h23"},Jf={hour:z,minute:z,second:z,hourCycle:"h23"},Xf={hour:z,minute:z,second:z,hourCycle:"h23",timeZoneName:rr},Qf={hour:z,minute:z,second:z,hourCycle:"h23",timeZoneName:kn},e0={year:z,month:z,day:z,hour:z,minute:z},t0={year:z,month:z,day:z,hour:z,minute:z,second:z},n0={year:z,month:rr,day:z,hour:z,minute:z},r0={year:z,month:rr,day:z,hour:z,minute:z,second:z},D4={year:z,month:rr,day:z,weekday:rr,hour:z,minute:z},i0={year:z,month:kn,day:z,hour:z,minute:z,timeZoneName:rr},o0={year:z,month:kn,day:z,hour:z,minute:z,second:z,timeZoneName:rr},s0={year:z,month:kn,day:z,weekday:kn,hour:z,minute:z,timeZoneName:kn},a0={year:z,month:kn,day:z,weekday:kn,hour:z,minute:z,second:z,timeZoneName:kn};class ts{get type(){throw new ii}get name(){throw new ii}get ianaName(){return this.name}get isUniversal(){throw new ii}offsetName(e,t){throw new ii}formatOffset(e,t){throw new ii}offset(e){throw new ii}equals(e){throw new ii}get isValid(){throw new ii}}let pu=null;class da extends ts{static get instance(){return pu===null&&(pu=new da),pu}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return P0(e,t,r)}formatOffset(e,t){return os(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let ca={};function L4(n){return ca[n]||(ca[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ca[n]}const M4={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function B4(n,e){const t=n.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,o,a,l,d,c,h,g]=r;return[l,o,a,d,c,h,g]}function W4(n,e){const t=n.formatToParts(e),r=[];for(let o=0;o=0?N:1e3+N,(w-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let l0={};function U4(n,e={}){const t=JSON.stringify([n,e]);let r=l0[t];return r||(r=new Intl.ListFormat(n,e),l0[t]=r),r}let gu={};function mu(n,e={}){const t=JSON.stringify([n,e]);let r=gu[t];return r||(r=new Intl.DateTimeFormat(n,e),gu[t]=r),r}let yu={};function H4(n,e={}){const t=JSON.stringify([n,e]);let r=yu[t];return r||(r=new Intl.NumberFormat(n,e),yu[t]=r),r}let vu={};function z4(n,e={}){const l=e,{base:t}=l,r=Af(l,["base"]),o=JSON.stringify([n,r]);let a=vu[o];return a||(a=new Intl.RelativeTimeFormat(n,e),vu[o]=a),a}let ns=null;function G4(){return ns||(ns=new Intl.DateTimeFormat().resolvedOptions().locale,ns)}let u0={};function V4(n){let e=u0[n];if(!e){const t=new Intl.Locale(n);e="getWeekInfo"in t?t.getWeekInfo():t.weekInfo,u0[n]=e}return e}function Z4(n){const e=n.indexOf("-x-");e!==-1&&(n=n.substring(0,e));const t=n.indexOf("-u-");if(t===-1)return[n];{let r,o;try{r=mu(n).resolvedOptions(),o=n}catch(d){const c=n.substring(0,t);r=mu(c).resolvedOptions(),o=c}const{numberingSystem:a,calendar:l}=r;return[o,a,l]}}function j4(n,e,t){return(t||e)&&(n.includes("-u-")||(n+="-u"),t&&(n+=`-ca-${t}`),e&&(n+=`-nu-${e}`)),n}function q4(n){const e=[];for(let t=1;t<=12;t++){const r=ge.utc(2009,t,1);e.push(n(r))}return e}function Y4(n){const e=[];for(let t=1;t<=7;t++){const r=ge.utc(2016,11,13+t);e.push(n(r))}return e}function ha(n,e,t,r){const o=n.listingMode();return o==="error"?null:o==="en"?t(e):r(e)}function K4(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem==="latn"}class J4{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const d=r,{padTo:o,floor:a}=d,l=Af(d,["padTo","floor"]);if(!t||Object.keys(l).length>0){const c=C({useGrouping:!1},r);r.padTo>0&&(c.minimumIntegerDigits=r.padTo),this.inf=H4(e,c)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):Cu(e,3);return At(t,this.padTo)}}}class X4{constructor(e,t,r){this.opts=r,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const l=-1*(e.offset/60),d=l>=0?`Etc/GMT+${l}`:`Etc/GMT${l}`;e.offset!==0&&Dr.create(d).valid?(o=d,this.dt=e):(o="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,o=e.zone.name):(o="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const a=C({},this.opts);a.timeZone=a.timeZone||o,this.dtf=mu(t,a)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(t=>{if(t.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return Se(C({},t),{value:r})}else return t}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Q4{constructor(e,t,r){this.opts=C({style:"long"},r),!t&&T0()&&(this.rtf=z4(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):_6(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const e6={firstDay:1,minimalDays:4,weekend:[6,7]};class je{static fromOpts(e){return je.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,o,a=!1){const l=e||$t.defaultLocale,d=l||(a?"en-US":G4()),c=t||$t.defaultNumberingSystem,h=r||$t.defaultOutputCalendar,g=Eu(o)||$t.defaultWeekSettings;return new je(d,c,h,g,l)}static resetCache(){ns=null,gu={},yu={},vu={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:o}={}){return je.create(e,t,r,o)}constructor(e,t,r,o,a){const[l,d,c]=Z4(e);this.locale=l,this.numberingSystem=t||d||null,this.outputCalendar=r||c||null,this.weekSettings=o,this.intl=j4(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=K4(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:je.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Eu(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone(Se(C({},e),{defaultToEN:!0}))}redefaultToSystem(e={}){return this.clone(Se(C({},e),{defaultToEN:!1}))}months(e,t=!1){return ha(this,e,F0,()=>{const r=t?{month:e,day:"numeric"}:{month:e},o=t?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=q4(a=>this.extract(a,r,"month"))),this.monthsCache[o][e]})}weekdays(e,t=!1){return ha(this,e,M0,()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=t?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=Y4(a=>this.extract(a,r,"weekday"))),this.weekdaysCache[o][e]})}meridiems(){return ha(this,void 0,()=>B0,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ge.utc(2016,11,13,9),ge.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ha(this,e,W0,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[ge.utc(-40,1,1),ge.utc(2017,1,1)].map(r=>this.extract(r,t,"era"))),this.eraCache[e]})}extract(e,t,r){const o=this.dtFormatter(e,t),a=o.formatToParts(),l=a.find(d=>d.type.toLowerCase()===r);return l?l.value:null}numberFormatter(e={}){return new J4(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new X4(e,this.intl,t)}relFormatter(e={}){return new Q4(this.intl,this.isEnglish(),e)}listFormatter(e={}){return U4(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:O0()?V4(this.locale):e6}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let bu=null;class mn extends ts{static get utcInstance(){return bu===null&&(bu=new mn(0)),bu}static instance(e){return e===0?mn.utcInstance:new mn(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new mn(va(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${os(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${os(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return os(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class t6 extends ts{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function oi(n,e){if(pe(n)||n===null)return e;if(n instanceof ts)return n;if(a6(n)){const t=n.toLowerCase();return t==="default"?e:t==="local"||t==="system"?da.instance:t==="utc"||t==="gmt"?mn.utcInstance:mn.parseSpecifier(t)||Dr.create(n)}else return si(n)?mn.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new t6(n)}const $u={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},d0={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},n6=$u.hanidec.replace(/[\[|\]]/g,"").split("");function r6(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let t=0;t=a&&r<=l&&(e+=r-a)}}return parseInt(e,10)}else return e}let to={};function i6(){to={}}function ir({numberingSystem:n},e=""){const t=n||"latn";return to[t]||(to[t]={}),to[t][e]||(to[t][e]=new RegExp(`${$u[t]}${e}`)),to[t][e]}let c0=()=>Date.now(),f0="system",h0=null,p0=null,g0=null,m0=60,y0,v0=null;class $t{static get now(){return c0}static set now(e){c0=e}static set defaultZone(e){f0=e}static get defaultZone(){return oi(f0,da.instance)}static get defaultLocale(){return h0}static set defaultLocale(e){h0=e}static get defaultNumberingSystem(){return p0}static set defaultNumberingSystem(e){p0=e}static get defaultOutputCalendar(){return g0}static set defaultOutputCalendar(e){g0=e}static get defaultWeekSettings(){return v0}static set defaultWeekSettings(e){v0=Eu(e)}static get twoDigitCutoffYear(){return m0}static set twoDigitCutoffYear(e){m0=e%100}static get throwOnInvalid(){return y0}static set throwOnInvalid(e){y0=e}static resetCaches(){je.resetCache(),Dr.resetCache(),ge.resetCache(),i6()}}class or{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const b0=[0,31,59,90,120,151,181,212,243,273,304,334],$0=[0,31,60,91,121,152,182,213,244,274,305,335];function Wn(n,e){return new or("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function wu(n,e,t){const r=new Date(Date.UTC(n,e-1,t));n<100&&n>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const o=r.getUTCDay();return o===0?7:o}function w0(n,e,t){return t+(rs(n)?$0:b0)[e-1]}function _0(n,e){const t=rs(n)?$0:b0,r=t.findIndex(a=>ais(r,e,t)?(h=r+1,c=1):h=r,C({weekYear:h,weekNumber:c,weekday:d},$a(n))}function x0(n,e=4,t=1){const{weekYear:r,weekNumber:o,weekday:a}=n,l=_u(wu(r,1,e),t),d=ro(r);let c=o*7+a-l-7+e,h;c<1?(h=r-1,c+=ro(h)):c>d?(h=r+1,c-=ro(r)):h=r;const{month:g,day:v}=_0(h,c);return C({year:h,month:g,day:v},$a(n))}function xu(n){const{year:e,month:t,day:r}=n,o=w0(e,t,r);return C({year:e,ordinal:o},$a(n))}function E0(n){const{year:e,ordinal:t}=n,{month:r,day:o}=_0(e,t);return C({year:e,month:r,day:o},$a(n))}function S0(n,e){if(!pe(n.localWeekday)||!pe(n.localWeekNumber)||!pe(n.localWeekYear)){if(!pe(n.weekday)||!pe(n.weekNumber)||!pe(n.weekYear))throw new eo("Cannot mix locale-based week fields with ISO-based week fields");return pe(n.localWeekday)||(n.weekday=n.localWeekday),pe(n.localWeekNumber)||(n.weekNumber=n.localWeekNumber),pe(n.localWeekYear)||(n.weekYear=n.localWeekYear),delete n.localWeekday,delete n.localWeekNumber,delete n.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function o6(n,e=4,t=1){const r=ga(n.weekYear),o=Un(n.weekNumber,1,is(n.weekYear,e,t)),a=Un(n.weekday,1,7);return r?o?a?!1:Wn("weekday",n.weekday):Wn("week",n.weekNumber):Wn("weekYear",n.weekYear)}function s6(n){const e=ga(n.year),t=Un(n.ordinal,1,ro(n.year));return e?t?!1:Wn("ordinal",n.ordinal):Wn("year",n.year)}function C0(n){const e=ga(n.year),t=Un(n.month,1,12),r=Un(n.day,1,ma(n.year,n.month));return e?t?r?!1:Wn("day",n.day):Wn("month",n.month):Wn("year",n.year)}function N0(n){const{hour:e,minute:t,second:r,millisecond:o}=n,a=Un(e,0,23)||e===24&&t===0&&r===0&&o===0,l=Un(t,0,59),d=Un(r,0,59),c=Un(o,0,999);return a?l?d?c?!1:Wn("millisecond",o):Wn("second",r):Wn("minute",t):Wn("hour",e)}function pe(n){return typeof n=="undefined"}function si(n){return typeof n=="number"}function ga(n){return typeof n=="number"&&n%1===0}function a6(n){return typeof n=="string"}function l6(n){return Object.prototype.toString.call(n)==="[object Date]"}function T0(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch(n){return!1}}function O0(){try{return typeof Intl!="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(n){return!1}}function u6(n){return Array.isArray(n)?n:[n]}function k0(n,e,t){if(n.length!==0)return n.reduce((r,o)=>{const a=[e(o),o];return r&&t(r[0],a[0])===r[0]?r:a},null)[1]}function d6(n,e){return e.reduce((t,r)=>(t[r]=n[r],t),{})}function no(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function Eu(n){if(n==null)return null;if(typeof n!="object")throw new an("Week settings must be an object");if(!Un(n.firstDay,1,7)||!Un(n.minimalDays,1,7)||!Array.isArray(n.weekend)||n.weekend.some(e=>!Un(e,1,7)))throw new an("Invalid week settings");return{firstDay:n.firstDay,minimalDays:n.minimalDays,weekend:Array.from(n.weekend)}}function Un(n,e,t){return ga(n)&&n>=e&&n<=t}function c6(n,e){return n-e*Math.floor(n/e)}function At(n,e=2){const t=n<0;let r;return t?r="-"+(""+-n).padStart(e,"0"):r=(""+n).padStart(e,"0"),r}function ai(n){if(!(pe(n)||n===null||n===""))return parseInt(n,10)}function Ai(n){if(!(pe(n)||n===null||n===""))return parseFloat(n)}function Su(n){if(!(pe(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function Cu(n,e,t=!1){const r=d4(10,e);return(t?Math.trunc:Math.round)(n*r)/r}function rs(n){return n%4===0&&(n%100!==0||n%400===0)}function ro(n){return rs(n)?366:365}function ma(n,e){const t=c6(e-1,12)+1,r=n+(e-t)/12;return t===2?rs(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function ya(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(n.year,n.month-1,n.day)),+e}function A0(n,e,t){return-_u(wu(n,1,e),t)+e-1}function is(n,e=4,t=1){const r=A0(n,e,t),o=A0(n+1,e,t);return(ro(n)-r+o)/7}function Nu(n){return n>99?n:n>$t.twoDigitCutoffYear?1900+n:2e3+n}function P0(n,e,t,r=null){const o=new Date(n),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);const l=C({timeZoneName:e},a),d=new Intl.DateTimeFormat(t,l).formatToParts(o).find(c=>c.type.toLowerCase()==="timezonename");return d?d.value:null}function va(n,e){let t=parseInt(n,10);Number.isNaN(t)&&(t=0);const r=parseInt(e,10)||0,o=t<0||Object.is(t,-0)?-r:r;return t*60+o}function I0(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new an(`Invalid unit value ${n}`);return e}function ba(n,e){const t={};for(const r in n)if(no(n,r)){const o=n[r];if(o==null)continue;t[e(r)]=I0(o)}return t}function os(n,e){const t=Math.trunc(Math.abs(n/60)),r=Math.trunc(Math.abs(n%60)),o=n>=0?"+":"-";switch(e){case"short":return`${o}${At(t,2)}:${At(r,2)}`;case"narrow":return`${o}${t}${r>0?`:${r}`:""}`;case"techie":return`${o}${At(t,2)}${At(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function $a(n){return d6(n,["hour","minute","second","millisecond"])}const f6=["January","February","March","April","May","June","July","August","September","October","November","December"],R0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],h6=["J","F","M","A","M","J","J","A","S","O","N","D"];function F0(n){switch(n){case"narrow":return[...h6];case"short":return[...R0];case"long":return[...f6];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const D0=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],L0=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],p6=["M","T","W","T","F","S","S"];function M0(n){switch(n){case"narrow":return[...p6];case"short":return[...L0];case"long":return[...D0];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const B0=["AM","PM"],g6=["Before Christ","Anno Domini"],m6=["BC","AD"],y6=["B","A"];function W0(n){switch(n){case"narrow":return[...y6];case"short":return[...m6];case"long":return[...g6];default:return null}}function v6(n){return B0[n.hour<12?0:1]}function b6(n,e){return M0(e)[n.weekday-1]}function $6(n,e){return F0(e)[n.month-1]}function w6(n,e){return W0(e)[n.year<0?0:1]}function _6(n,e,t="always",r=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(n)===-1;if(t==="auto"&&a){const v=n==="days";switch(e){case 1:return v?"tomorrow":`next ${o[n][0]}`;case-1:return v?"yesterday":`last ${o[n][0]}`;case 0:return v?"today":`this ${o[n][0]}`}}const l=Object.is(e,-0)||e<0,d=Math.abs(e),c=d===1,h=o[n],g=r?c?h[1]:h[2]||h[1]:c?o[n][0]:n;return l?`${d} ${g} ago`:`in ${d} ${g}`}function U0(n,e){let t="";for(const r of n)r.literal?t+=r.val:t+=e(r.val);return t}const x6={D:ua,DD:zf,DDD:Gf,DDDD:Vf,t:Zf,tt:jf,ttt:qf,tttt:Yf,T:Kf,TT:Jf,TTT:Xf,TTTT:Qf,f:e0,ff:n0,fff:i0,ffff:s0,F:t0,FF:r0,FFF:o0,FFFF:a0};class ln{static create(e,t={}){return new ln(e,t)}static parseFormat(e){let t=null,r="",o=!1;const a=[];for(let l=0;l0&&a.push({literal:o||/^\s+$/.test(r),val:r}),t=null,r="",o=!o):o||d===t?r+=d:(r.length>0&&a.push({literal:/^\s+$/.test(r),val:r}),r=d,t=d)}return r.length>0&&a.push({literal:o||/^\s+$/.test(r),val:r}),a}static macroTokenToFormatOpts(e){return x6[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,C(C({},this.opts),t)).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,C(C({},this.opts),t))}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return At(e,t);const r=C({},this.opts);return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(m,N)=>this.loc.extract(e,m,N),l=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",d=()=>r?v6(e):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(m,N)=>r?$6(e,m):a(N?{month:m}:{month:m,day:"numeric"},"month"),h=(m,N)=>r?b6(e,m):a(N?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),g=m=>{const N=ln.macroTokenToFormatOpts(m);return N?this.formatWithSystemDefault(e,N):m},v=m=>r?w6(e,m):a({era:m},"era"),w=m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return l({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return l({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return l({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return d();case"d":return o?a({day:"numeric"},"day"):this.num(e.day);case"dd":return o?a({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return h("short",!0);case"cccc":return h("long",!0);case"ccccc":return h("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return h("short",!1);case"EEEE":return h("long",!1);case"EEEEE":return h("narrow",!1);case"L":return o?a({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return o?a({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return o?a({month:"numeric"},"month"):this.num(e.month);case"MM":return o?a({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return o?a({year:"numeric"},"year"):this.num(e.year);case"yy":return o?a({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return o?a({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return o?a({year:"numeric"},"year"):this.num(e.year,6);case"G":return v("short");case"GG":return v("long");case"GGGGG":return v("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return g(m)}};return U0(ln.parseFormat(t),w)}formatDurationFromString(e,t){const r=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=c=>h=>{const g=r(h);return g?this.num(c.get(g),h.length):h},a=ln.parseFormat(t),l=a.reduce((c,{literal:h,val:g})=>h?c:c.concat(g),[]),d=e.shiftTo(...l.map(r).filter(c=>c));return U0(a,o(d))}}const H0=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function io(...n){const e=n.reduce((t,r)=>t+r.source,"");return RegExp(`^${e}$`)}function oo(...n){return e=>n.reduce(([t,r,o],a)=>{const[l,d,c]=a(e,o);return[C(C({},t),l),d||r,c]},[{},null,1]).slice(0,2)}function so(n,...e){if(n==null)return[null,null];for(const[t,r]of e){const o=t.exec(n);if(o)return r(o)}return[null,null]}function z0(...n){return(e,t)=>{const r={};let o;for(o=0;om!==void 0&&(N||m&&g)?-m:m;return[{years:w(Ai(t)),months:w(Ai(r)),weeks:w(Ai(o)),days:w(Ai(a)),hours:w(Ai(l)),minutes:w(Ai(d)),seconds:w(Ai(c),c==="-0"),milliseconds:w(Su(h),v)}]}const D6={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ku(n,e,t,r,o,a,l){const d={year:e.length===2?Nu(ai(e)):ai(e),month:R0.indexOf(t)+1,day:ai(r),hour:ai(o),minute:ai(a)};return l&&(d.second=ai(l)),n&&(d.weekday=n.length>3?D0.indexOf(n)+1:L0.indexOf(n)+1),d}const L6=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function M6(n){const[,e,t,r,o,a,l,d,c,h,g,v]=n,w=ku(e,o,r,t,a,l,d);let m;return c?m=D6[c]:h?m=0:m=va(g,v),[w,new mn(m)]}function B6(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const W6=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,U6=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,H6=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function j0(n){const[,e,t,r,o,a,l,d]=n;return[ku(e,o,r,t,a,l,d),mn.utcInstance]}function z6(n){const[,e,t,r,o,a,l,d]=n;return[ku(e,d,t,r,o,a,l),mn.utcInstance]}const G6=io(S6,Ou),V6=io(C6,Ou),Z6=io(N6,Ou),j6=io(V0),q0=oo(P6,lo,ss,as),q6=oo(T6,lo,ss,as),Y6=oo(O6,lo,ss,as),K6=oo(lo,ss,as);function J6(n){return so(n,[G6,q0],[V6,q6],[Z6,Y6],[j6,K6])}function X6(n){return so(B6(n),[L6,M6])}function Q6(n){return so(n,[W6,j0],[U6,j0],[H6,z6])}function e5(n){return so(n,[R6,F6])}const t5=oo(lo);function n5(n){return so(n,[I6,t5])}const r5=io(k6,A6),i5=io(Z0),o5=oo(lo,ss,as);function s5(n){return so(n,[r5,q0],[i5,o5])}const Y0="Invalid Duration",K0={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},a5=C({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3}},K0),Hn=146097/400,uo=146097/4800,l5=C({years:{quarters:4,months:12,weeks:Hn/7,days:Hn,hours:Hn*24,minutes:Hn*24*60,seconds:Hn*24*60*60,milliseconds:Hn*24*60*60*1e3},quarters:{months:3,weeks:Hn/28,days:Hn/4,hours:Hn*24/4,minutes:Hn*24*60/4,seconds:Hn*24*60*60/4,milliseconds:Hn*24*60*60*1e3/4},months:{weeks:uo/7,days:uo,hours:uo*24,minutes:uo*24*60,seconds:uo*24*60*60,milliseconds:uo*24*60*60*1e3}},K0),Pi=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],u5=Pi.slice(0).reverse();function li(n,e,t=!1){const r={values:t?e.values:C(C({},n.values),e.values||{}),loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy,matrix:e.matrix||n.matrix};return new We(r)}function J0(n,e){var r;let t=(r=e.milliseconds)!=null?r:0;for(const o of u5.slice(1))e[o]&&(t+=e[o]*n[o].milliseconds);return t}function X0(n,e){const t=J0(n,e)<0?-1:1;Pi.reduceRight((r,o)=>{if(pe(e[o]))return r;if(r){const a=e[r]*t,l=n[o][r],d=Math.floor(a/l);e[o]+=d*t,e[r]-=d*l*t}return o},null),Pi.reduce((r,o)=>{if(pe(e[o]))return r;if(r){const a=e[r]%1;e[r]-=a,e[o]+=a*n[r][o]}return o},null)}function d5(n){const e={};for(const[t,r]of Object.entries(n))r!==0&&(e[t]=r);return e}class We{constructor(e){const t=e.conversionAccuracy==="longterm"||!1;let r=t?l5:a5;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||je.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return We.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new an(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new We({values:ba(e,We.normalizeUnit),loc:je.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(si(e))return We.fromMillis(e);if(We.isDuration(e))return e;if(typeof e=="object")return We.fromObject(e);throw new an(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[r]=e5(e);return r?We.fromObject(r,t):We.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[r]=n5(e);return r?We.fromObject(r,t):We.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new an("need to specify a reason the Duration is invalid");const r=e instanceof or?e:new or(e,t);if($t.throwOnInvalid)throw new R4(r);return new We({invalid:r})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new Hf(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r=Se(C({},t),{floor:t.round!==!1&&t.floor!==!1});return this.isValid?ln.create(this.loc,r).formatDurationFromString(this,e):Y0}toHuman(e={}){if(!this.isValid)return Y0;const t=Pi.map(r=>{const o=this.values[r];return pe(o)?null:this.loc.numberFormatter(Se(C({style:"unit",unitDisplay:"long"},e),{unit:r.slice(0,-1)})).format(o)}).filter(r=>r);return this.loc.listFormatter(C({type:"conjunction",style:e.listStyle||"narrow"},e)).format(t)}toObject(){return this.isValid?C({},this.values):{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Cu(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e=Se(C({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e),{includeOffset:!1}),ge.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?J0(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=We.fromDurationLike(e),r={};for(const o of Pi)(no(t.values,o)||no(this.values,o))&&(r[o]=t.get(o)+this.get(o));return li(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const t=We.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=I0(e(this.values[r],r));return li(this,{values:t},!0)}get(e){return this[We.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t=C(C({},this.values),ba(e,We.normalizeUnit));return li(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:o}={}){const l={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:o,conversionAccuracy:r};return li(this,l)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return X0(this.matrix,e),li(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=d5(this.normalize().shiftToAll().toObject());return li(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(l=>We.normalizeUnit(l));const t={},r={},o=this.toObject();let a;for(const l of Pi)if(e.indexOf(l)>=0){a=l;let d=0;for(const h in r)d+=this.matrix[h][l]*r[h],r[h]=0;si(o[l])&&(d+=o[l]);const c=Math.trunc(d);t[l]=c,r[l]=(d*1e3-c*1e3)/1e3}else si(o[l])&&(r[l]=o[l]);for(const l in r)r[l]!==0&&(t[a]+=l===a?r[l]:r[l]/this.matrix[a][l]);return X0(this.matrix,t),li(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return li(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(r,o){return r===void 0||r===0?o===void 0||o===0:r===o}for(const r of Pi)if(!t(this.values[r],e.values[r]))return!1;return!0}}const co="Invalid Interval";function c5(n,e){return!n||!n.isValid?wt.invalid("missing or invalid start"):!e||!e.isValid?wt.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?wt.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(us).filter(l=>this.contains(l)).sort((l,d)=>l.toMillis()-d.toMillis()),r=[];let{s:o}=this,a=0;for(;o+this.e?this.e:l;r.push(wt.fromDateTimes(o,d)),o=d,a+=1}return r}splitBy(e){const t=We.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:r}=this,o=1,a;const l=[];for(;rc*o));a=+d>+this.e?this.e:d,l.push(wt.fromDateTimes(r,a)),r=a,o+=1}return l}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r?null:wt.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return wt.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort((o,a)=>o.s-a.s).reduce(([o,a],l)=>a?a.overlaps(l)||a.abutsStart(l)?[o,a.union(l)]:[o.concat([a]),l]:[o,l],[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0;const o=[],a=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),l=Array.prototype.concat(...a),d=l.sort((c,h)=>c.time-h.time);for(const c of d)r+=c.type==="s"?1:-1,r===1?t=c.time:(t&&+t!=+c.time&&o.push(wt.fromDateTimes(t,c.time)),t=null);return wt.merge(o)}difference(...e){return wt.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:co}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=ua,t={}){return this.isValid?ln.create(this.s.loc.clone(t),e).formatInterval(this):co}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:co}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:co}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:co}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:co}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):We.invalid(this.invalidReason)}mapEndpoints(e){return wt.fromDateTimes(e(this.s),e(this.e))}}class wa{static hasDST(e=$t.defaultZone){const t=ge.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Dr.isValidZone(e)}static normalizeZone(e){return oi(e,$t.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||je.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||je.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||je.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null,outputCalendar:a="gregory"}={}){return(o||je.create(t,r,a)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null,outputCalendar:a="gregory"}={}){return(o||je.create(t,r,a)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null}={}){return(o||je.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null}={}){return(o||je.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return je.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return je.create(t,null,"gregory").eras(e)}static features(){return{relative:T0(),localeWeek:O0()}}}function Q0(n,e){const t=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=t(e)-t(n);return Math.floor(We.fromMillis(r).as("days"))}function f5(n,e,t){const r=[["years",(c,h)=>h.year-c.year],["quarters",(c,h)=>h.quarter-c.quarter+(h.year-c.year)*4],["months",(c,h)=>h.month-c.month+(h.year-c.year)*12],["weeks",(c,h)=>{const g=Q0(c,h);return(g-g%7)/7}],["days",Q0]],o={},a=n;let l,d;for(const[c,h]of r)t.indexOf(c)>=0&&(l=c,o[c]=h(n,e),d=a.plus(o),d>e?(o[c]--,n=a.plus(o),n>e&&(d=n,o[c]--,n=a.plus(o))):n=d);return[n,o,d,l]}function h5(n,e,t,r){let[o,a,l,d]=f5(n,e,t);const c=e-o,h=t.filter(v=>["hours","minutes","seconds","milliseconds"].indexOf(v)>=0);h.length===0&&(l0?We.fromMillis(c,r).shiftTo(...h).plus(g):g}const p5="missing Intl.DateTimeFormat.formatToParts support";function ze(n,e=t=>t){return{regex:n,deser:([t])=>e(r6(t))}}const eh="[  ]",th=new RegExp(eh,"g");function g5(n){return n.replace(/\./g,"\\.?").replace(th,eh)}function nh(n){return n.replace(/\./g,"").replace(th," ").toLowerCase()}function sr(n,e){return n===null?null:{regex:RegExp(n.map(g5).join("|")),deser:([t])=>n.findIndex(r=>nh(t)===nh(r))+e}}function rh(n,e){return{regex:n,deser:([,t,r])=>va(t,r),groups:e}}function _a(n){return{regex:n,deser:([e])=>e}}function m5(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function y5(n,e){const t=ir(e),r=ir(e,"{2}"),o=ir(e,"{3}"),a=ir(e,"{4}"),l=ir(e,"{6}"),d=ir(e,"{1,2}"),c=ir(e,"{1,3}"),h=ir(e,"{1,6}"),g=ir(e,"{1,9}"),v=ir(e,"{2,4}"),w=ir(e,"{4,6}"),m=k=>({regex:RegExp(m5(k.val)),deser:([M])=>M,literal:!0}),A=(k=>{if(n.literal)return m(k);switch(k.val){case"G":return sr(e.eras("short"),0);case"GG":return sr(e.eras("long"),0);case"y":return ze(h);case"yy":return ze(v,Nu);case"yyyy":return ze(a);case"yyyyy":return ze(w);case"yyyyyy":return ze(l);case"M":return ze(d);case"MM":return ze(r);case"MMM":return sr(e.months("short",!0),1);case"MMMM":return sr(e.months("long",!0),1);case"L":return ze(d);case"LL":return ze(r);case"LLL":return sr(e.months("short",!1),1);case"LLLL":return sr(e.months("long",!1),1);case"d":return ze(d);case"dd":return ze(r);case"o":return ze(c);case"ooo":return ze(o);case"HH":return ze(r);case"H":return ze(d);case"hh":return ze(r);case"h":return ze(d);case"mm":return ze(r);case"m":return ze(d);case"q":return ze(d);case"qq":return ze(r);case"s":return ze(d);case"ss":return ze(r);case"S":return ze(c);case"SSS":return ze(o);case"u":return _a(g);case"uu":return _a(d);case"uuu":return ze(t);case"a":return sr(e.meridiems(),0);case"kkkk":return ze(a);case"kk":return ze(v,Nu);case"W":return ze(d);case"WW":return ze(r);case"E":case"c":return ze(t);case"EEE":return sr(e.weekdays("short",!1),1);case"EEEE":return sr(e.weekdays("long",!1),1);case"ccc":return sr(e.weekdays("short",!0),1);case"cccc":return sr(e.weekdays("long",!0),1);case"Z":case"ZZ":return rh(new RegExp(`([+-]${d.source})(?::(${r.source}))?`),2);case"ZZZ":return rh(new RegExp(`([+-]${d.source})(${r.source})?`),2);case"z":return _a(/[a-z_+-/]{1,256}?/i);case" ":return _a(/[^\S\n\r]/);default:return m(k)}})(n)||{invalidReason:p5};return A.token=n,A}const v5={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function b5(n,e,t){const{type:r,value:o}=n;if(r==="literal"){const c=/^\s+$/.test(o);return{literal:!c,val:c?" ":o}}const a=e[r];let l=r;r==="hour"&&(e.hour12!=null?l=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?l="hour12":l="hour24":l=t.hour12?"hour12":"hour24");let d=v5[l];if(typeof d=="object"&&(d=d[a]),d)return{literal:!1,val:d}}function $5(n){return[`^${n.map(t=>t.regex).reduce((t,r)=>`${t}(${r.source})`,"")}$`,n]}function w5(n,e,t){const r=n.match(e);if(r){const o={};let a=1;for(const l in t)if(no(t,l)){const d=t[l],c=d.groups?d.groups+1:1;!d.literal&&d.token&&(o[d.token.val[0]]=d.deser(r.slice(a,a+c))),a+=c}return[r,o]}else return[r,{}]}function _5(n){const e=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null,r;return pe(n.z)||(t=Dr.create(n.z)),pe(n.Z)||(t||(t=new mn(n.Z)),r=n.Z),pe(n.q)||(n.M=(n.q-1)*3+1),pe(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),pe(n.u)||(n.S=Su(n.u)),[Object.keys(n).reduce((a,l)=>{const d=e(l);return d&&(a[d]=n[l]),a},{}),t,r]}let Au=null;function x5(){return Au||(Au=ge.fromMillis(1555555555555)),Au}function E5(n,e){if(n.literal)return n;const t=ln.macroTokenToFormatOpts(n.val),r=ah(t,e);return r==null||r.includes(void 0)?n:r}function ih(n,e){return Array.prototype.concat(...n.map(t=>E5(t,e)))}class oh{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=ih(ln.parseFormat(t),e),this.units=this.tokens.map(r=>y5(r,e)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,o]=$5(this.units);this.regex=RegExp(r,"i"),this.handlers=o}}explainFromTokens(e){if(this.isValid){const[t,r]=w5(e,this.regex,this.handlers),[o,a,l]=r?_5(r):[null,null,void 0];if(no(r,"a")&&no(r,"H"))throw new eo("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:r,result:o,zone:a,specificOffset:l}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function sh(n,e,t){return new oh(n,t).explainFromTokens(e)}function S5(n,e,t){const{result:r,zone:o,specificOffset:a,invalidReason:l}=sh(n,e,t);return[r,o,a,l]}function ah(n,e){if(!n)return null;const r=ln.create(e,n).dtFormatter(x5()),o=r.formatToParts(),a=r.resolvedOptions();return o.map(l=>b5(l,n,a))}const Pu="Invalid DateTime",lh=864e13;function ls(n){return new or("unsupported zone",`the zone "${n.name}" is not supported`)}function Iu(n){return n.weekData===null&&(n.weekData=pa(n.c)),n.weekData}function Ru(n){return n.localWeekData===null&&(n.localWeekData=pa(n.c,n.loc.getMinDaysInFirstWeek(),n.loc.getStartOfWeek())),n.localWeekData}function Ii(n,e){const t={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new ge(Se(C(C({},t),e),{old:t}))}function uh(n,e,t){let r=n-e*60*1e3;const o=t.offset(r);if(e===o)return[r,e];r-=(o-e)*60*1e3;const a=t.offset(r);return o===a?[r,o]:[n-Math.min(o,a)*60*1e3,Math.max(o,a)]}function xa(n,e){n+=e*60*1e3;const t=new Date(n);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function Ea(n,e,t){return uh(ya(n),e,t)}function dh(n,e){const t=n.o,r=n.c.year+Math.trunc(e.years),o=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,a=Se(C({},n.c),{year:r,month:o,day:Math.min(n.c.day,ma(r,o))+Math.trunc(e.days)+Math.trunc(e.weeks)*7}),l=We.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),d=ya(a);let[c,h]=uh(d,t,n.zone);return l!==0&&(c+=l,h=n.zone.offset(c)),{ts:c,o:h}}function fo(n,e,t,r,o,a){const{setZone:l,zone:d}=t;if(n&&Object.keys(n).length!==0||e){const c=e||d,h=ge.fromObject(n,Se(C({},t),{zone:c,specificOffset:a}));return l?h:h.setZone(d)}else return ge.invalid(new or("unparsable",`the input "${o}" can't be parsed as ${r}`))}function Sa(n,e,t=!0){return n.isValid?ln.create(je.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(n,e):null}function Fu(n,e){const t=n.c.year>9999||n.c.year<0;let r="";return t&&n.c.year>=0&&(r+="+"),r+=At(n.c.year,t?6:4),e?(r+="-",r+=At(n.c.month),r+="-",r+=At(n.c.day)):(r+=At(n.c.month),r+=At(n.c.day)),r}function ch(n,e,t,r,o,a){let l=At(n.c.hour);return e?(l+=":",l+=At(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(l+=":")):l+=At(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(l+=At(n.c.second),(n.c.millisecond!==0||!r)&&(l+=".",l+=At(n.c.millisecond,3))),o&&(n.isOffsetFixed&&n.offset===0&&!a?l+="Z":n.o<0?(l+="-",l+=At(Math.trunc(-n.o/60)),l+=":",l+=At(Math.trunc(-n.o%60))):(l+="+",l+=At(Math.trunc(n.o/60)),l+=":",l+=At(Math.trunc(n.o%60)))),a&&(l+="["+n.zone.ianaName+"]"),l}const fh={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},C5={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},N5={ordinal:1,hour:0,minute:0,second:0,millisecond:0},hh=["year","month","day","hour","minute","second","millisecond"],T5=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],O5=["year","ordinal","hour","minute","second","millisecond"];function k5(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new Hf(n);return e}function ph(n){switch(n.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return k5(n)}}function A5(n){return Na[n]||(Ca===void 0&&(Ca=$t.now()),Na[n]=n.offset(Ca)),Na[n]}function gh(n,e){const t=oi(e.zone,$t.defaultZone);if(!t.isValid)return ge.invalid(ls(t));const r=je.fromObject(e);let o,a;if(pe(n.year))o=$t.now();else{for(const c of hh)pe(n[c])&&(n[c]=fh[c]);const l=C0(n)||N0(n);if(l)return ge.invalid(l);const d=A5(t);[o,a]=Ea(n,d,t)}return new ge({ts:o,zone:t,loc:r,o:a})}function mh(n,e,t){const r=pe(t.round)?!0:t.round,o=(l,d)=>(l=Cu(l,r||t.calendary?0:2,!0),e.loc.clone(t).relFormatter(t).format(l,d)),a=l=>t.calendary?e.hasSame(n,l)?0:e.startOf(l).diff(n.startOf(l),l).get(l):e.diff(n,l).get(l);if(t.unit)return o(a(t.unit),t.unit);for(const l of t.units){const d=a(l);if(Math.abs(d)>=1)return o(d,l)}return o(n>e?-0:0,t.units[t.units.length-1])}function yh(n){let e={},t;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],t=Array.from(n).slice(0,n.length-1)):t=Array.from(n),[e,t]}let Ca,Na={};class ge{constructor(e){const t=e.zone||$t.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new or("invalid input"):null)||(t.isValid?null:ls(t));this.ts=pe(e.ts)?$t.now():e.ts;let o=null,a=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[o,a]=[e.old.c,e.old.o];else{const d=si(e.o)&&!e.old?e.o:t.offset(this.ts);o=xa(this.ts,d),r=Number.isNaN(o.year)?new or("invalid input"):null,o=r?null:o,a=r?null:d}this._zone=t,this.loc=e.loc||je.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=o,this.o=a,this.isLuxonDateTime=!0}static now(){return new ge({})}static local(){const[e,t]=yh(arguments),[r,o,a,l,d,c,h]=t;return gh({year:r,month:o,day:a,hour:l,minute:d,second:c,millisecond:h},e)}static utc(){const[e,t]=yh(arguments),[r,o,a,l,d,c,h]=t;return e.zone=mn.utcInstance,gh({year:r,month:o,day:a,hour:l,minute:d,second:c,millisecond:h},e)}static fromJSDate(e,t={}){const r=l6(e)?e.valueOf():NaN;if(Number.isNaN(r))return ge.invalid("invalid input");const o=oi(t.zone,$t.defaultZone);return o.isValid?new ge({ts:r,zone:o,loc:je.fromObject(t)}):ge.invalid(ls(o))}static fromMillis(e,t={}){if(si(e))return e<-lh||e>lh?ge.invalid("Timestamp out of range"):new ge({ts:e,zone:oi(t.zone,$t.defaultZone),loc:je.fromObject(t)});throw new an(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(si(e))return new ge({ts:e*1e3,zone:oi(t.zone,$t.defaultZone),loc:je.fromObject(t)});throw new an("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const r=oi(t.zone,$t.defaultZone);if(!r.isValid)return ge.invalid(ls(r));const o=je.fromObject(t),a=ba(e,ph),{minDaysInFirstWeek:l,startOfWeek:d}=S0(a,o),c=$t.now(),h=pe(t.specificOffset)?r.offset(c):t.specificOffset,g=!pe(a.ordinal),v=!pe(a.year),w=!pe(a.month)||!pe(a.day),m=v||w,N=a.weekYear||a.weekNumber;if((m||g)&&N)throw new eo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(w&&g)throw new eo("Can't mix ordinal dates with month/day");const A=N||a.weekday&&!m;let k,M,j=xa(c,h);A?(k=T5,M=C5,j=pa(j,l,d)):g?(k=O5,M=N5,j=xu(j)):(k=hh,M=fh);let Z=!1;for(const me of k){const Re=a[me];pe(Re)?Z?a[me]=M[me]:a[me]=j[me]:Z=!0}const q=A?o6(a,l,d):g?s6(a):C0(a),V=q||N0(a);if(V)return ge.invalid(V);const K=A?x0(a,l,d):g?E0(a):a,[L,U]=Ea(K,h,r),X=new ge({ts:L,zone:r,o:U,loc:o});return a.weekday&&m&&e.weekday!==X.weekday?ge.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${X.toISO()}`):X.isValid?X:ge.invalid(X.invalid)}static fromISO(e,t={}){const[r,o]=J6(e);return fo(r,o,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,o]=X6(e);return fo(r,o,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,o]=Q6(e);return fo(r,o,t,"HTTP",t)}static fromFormat(e,t,r={}){if(pe(e)||pe(t))throw new an("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:a=null}=r,l=je.fromOpts({locale:o,numberingSystem:a,defaultToEN:!0}),[d,c,h,g]=S5(l,e,t);return g?ge.invalid(g):fo(d,c,r,`format ${t}`,e,h)}static fromString(e,t,r={}){return ge.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,o]=s5(e);return fo(r,o,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new an("need to specify a reason the DateTime is invalid");const r=e instanceof or?e:new or(e,t);if($t.throwOnInvalid)throw new P4(r);return new ge({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const r=ah(e,je.fromObject(t));return r?r.map(o=>o?o.val:null).join(""):null}static expandFormat(e,t={}){return ih(ln.parseFormat(e),je.fromObject(t)).map(o=>o.val).join("")}static resetCache(){Ca=void 0,Na={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Iu(this).weekYear:NaN}get weekNumber(){return this.isValid?Iu(this).weekNumber:NaN}get weekday(){return this.isValid?Iu(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ru(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ru(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ru(this).weekYear:NaN}get ordinal(){return this.isValid?xu(this.c).ordinal:NaN}get monthShort(){return this.isValid?wa.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?wa.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?wa.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?wa.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,r=ya(this.c),o=this.zone.offset(r-e),a=this.zone.offset(r+e),l=this.zone.offset(r-o*t),d=this.zone.offset(r-a*t);if(l===d)return[this];const c=r-l*t,h=r-d*t,g=xa(c,l),v=xa(h,d);return g.hour===v.hour&&g.minute===v.minute&&g.second===v.second&&g.millisecond===v.millisecond?[Ii(this,{ts:c}),Ii(this,{ts:h})]:[this]}get isInLeapYear(){return rs(this.year)}get daysInMonth(){return ma(this.year,this.month)}get daysInYear(){return this.isValid?ro(this.year):NaN}get weeksInWeekYear(){return this.isValid?is(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?is(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:o}=ln.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:o}}toUTC(e=0,t={}){return this.setZone(mn.instance(e),t)}toLocal(){return this.setZone($t.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if(e=oi(e,$t.defaultZone),e.equals(this.zone))return this;if(e.isValid){let o=this.ts;if(t||r){const a=e.offset(this.ts),l=this.toObject();[o]=Ea(l,a,e)}return Ii(this,{ts:o,zone:e})}else return ge.invalid(ls(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const o=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return Ii(this,{loc:o})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=ba(e,ph),{minDaysInFirstWeek:r,startOfWeek:o}=S0(t,this.loc),a=!pe(t.weekYear)||!pe(t.weekNumber)||!pe(t.weekday),l=!pe(t.ordinal),d=!pe(t.year),c=!pe(t.month)||!pe(t.day),h=d||c,g=t.weekYear||t.weekNumber;if((h||l)&&g)throw new eo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&l)throw new eo("Can't mix ordinal dates with month/day");let v;a?v=x0(C(C({},pa(this.c,r,o)),t),r,o):pe(t.ordinal)?(v=C(C({},this.toObject()),t),pe(t.day)&&(v.day=Math.min(ma(v.year,v.month),v.day))):v=E0(C(C({},xu(this.c)),t));const[w,m]=Ea(v,this.o,this.zone);return Ii(this,{ts:w,o:m})}plus(e){if(!this.isValid)return this;const t=We.fromDurationLike(e);return Ii(this,dh(this,t))}minus(e){if(!this.isValid)return this;const t=We.fromDurationLike(e).negate();return Ii(this,dh(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const r={},o=We.normalizeUnit(e);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(o==="weeks")if(t){const a=this.loc.getStartOfWeek(),{weekday:l}=this;lthis.valueOf(),d=l?this:e,c=l?e:this,h=h5(d,c,a,o);return l?h.negate():h}diffNow(e="milliseconds",t={}){return this.diff(ge.now(),e,t)}until(e){return this.isValid?wt.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return!1;const o=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(t,r)<=o&&o<=a.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||ge.fromObject({},{zone:this.zone}),r=e.padding?thist.valueOf(),Math.min)}static max(...e){if(!e.every(ge.isDateTime))throw new an("max requires all arguments be DateTimes");return k0(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:o=null,numberingSystem:a=null}=r,l=je.fromOpts({locale:o,numberingSystem:a,defaultToEN:!0});return sh(l,e,t)}static fromStringExplain(e,t,r={}){return ge.fromFormatExplain(e,t,r)}static buildFormatParser(e,t={}){const{locale:r=null,numberingSystem:o=null}=t,a=je.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0});return new oh(a,e)}static fromFormatParser(e,t,r={}){if(pe(e)||pe(t))throw new an("fromFormatParser requires an input string and a format parser");const{locale:o=null,numberingSystem:a=null}=r,l=je.fromOpts({locale:o,numberingSystem:a,defaultToEN:!0});if(!l.equals(t.locale))throw new an(`fromFormatParser called with a locale of ${l}, but the format parser was created for ${t.locale}`);const{result:d,zone:c,specificOffset:h,invalidReason:g}=t.explainFromTokens(e);return g?ge.invalid(g):fo(d,c,r,`format ${t.format}`,e,h)}static get DATE_SHORT(){return ua}static get DATE_MED(){return zf}static get DATE_MED_WITH_WEEKDAY(){return F4}static get DATE_FULL(){return Gf}static get DATE_HUGE(){return Vf}static get TIME_SIMPLE(){return Zf}static get TIME_WITH_SECONDS(){return jf}static get TIME_WITH_SHORT_OFFSET(){return qf}static get TIME_WITH_LONG_OFFSET(){return Yf}static get TIME_24_SIMPLE(){return Kf}static get TIME_24_WITH_SECONDS(){return Jf}static get TIME_24_WITH_SHORT_OFFSET(){return Xf}static get TIME_24_WITH_LONG_OFFSET(){return Qf}static get DATETIME_SHORT(){return e0}static get DATETIME_SHORT_WITH_SECONDS(){return t0}static get DATETIME_MED(){return n0}static get DATETIME_MED_WITH_SECONDS(){return r0}static get DATETIME_MED_WITH_WEEKDAY(){return D4}static get DATETIME_FULL(){return i0}static get DATETIME_FULL_WITH_SECONDS(){return o0}static get DATETIME_HUGE(){return s0}static get DATETIME_HUGE_WITH_SECONDS(){return a0}}function us(n){if(ge.isDateTime(n))return n;if(n&&n.valueOf&&si(n.valueOf()))return ge.fromJSDate(n);if(n&&typeof n=="object")return ge.fromObject(n);throw new an(`Unknown datetime argument: ${n}, of type ${typeof n}`)}var ds=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Ta={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */Ta.exports,function(n,e){(function(){var t,r="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",d="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",h=500,g="__lodash_placeholder__",v=1,w=2,m=4,N=1,A=2,k=1,M=2,j=4,Z=8,q=16,V=32,K=64,L=128,U=256,X=512,me=30,Re="...",Ve=800,Fe=16,dt=1,rt=2,Le=3,Te=1/0,Y=9007199254740991,qt=17976931348623157e292,et=NaN,qe=4294967295,Yt=qe-1,tt=qe>>>1,Je=[["ary",L],["bind",k],["bindKey",M],["curry",Z],["curryRight",q],["flip",X],["partial",V],["partialRight",K],["rearg",U]],nt="[object Arguments]",Nt="[object Array]",Ye="[object AsyncFunction]",Tt="[object Boolean]",Mt="[object Date]",Kt="[object DOMException]",en="[object Error]",dn="[object Function]",kr="[object GeneratorFunction]",Jt="[object Map]",E="[object Number]",H="[object Null]",se="[object Object]",re="[object Promise]",_e="[object Proxy]",ae="[object RegExp]",Xe="[object Set]",It="[object String]",Bt="[object Symbol]",tn="[object Undefined]",Me="[object WeakMap]",hr="[object WeakSet]",cn="[object ArrayBuffer]",fn="[object DataView]",Ar="[object Float32Array]",Pr="[object Float64Array]",ie="[object Int8Array]",oe="[object Int16Array]",ct="[object Int32Array]",xt="[object Uint8Array]",nn="[object Uint8ClampedArray]",Pn="[object Uint16Array]",pr="[object Uint32Array]",zi=/\b__p \+= '';/g,Gi=/\b(__p \+=) '' \+/g,Zr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,hn=/&(?:amp|lt|gt|quot|#39);/g,Ce=/[&<>"']/g,le=RegExp(hn.source),J=RegExp(Ce.source),fe=/<%-([\s\S]+?)%>/g,xe=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,Et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wt=/^\w*$/,Ut=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jr=/[\\^$.*+?()[\]{}|]/g,ml=RegExp(jr.source),Lo=/^\s+/,En=/\s/,yl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,vl=/\{\n\/\* \[wrapped with (.+)\] \*/,T=/,? & /,I=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,W=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,Ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vt=/\w*$/,Ht=/^[-+]0x[0-9a-f]+$/i,Rt=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,ft=/^0o[0-7]+$/i,ot=/^(?:0|[1-9]\d*)$/,ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rn=/($^)/,In=/['\n\r\u2028\u2029\\]/g,gr="\\ud800-\\udfff",bc="\\u0300-\\u036f",Lx="\\ufe20-\\ufe2f",Mx="\\u20d0-\\u20ff",Dg=bc+Lx+Mx,Lg="\\u2700-\\u27bf",Mg="a-z\\xdf-\\xf6\\xf8-\\xff",Bx="\\xac\\xb1\\xd7\\xf7",Wx="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ux="\\u2000-\\u206f",Hx=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bg="A-Z\\xc0-\\xd6\\xd8-\\xde",Wg="\\ufe0e\\ufe0f",Ug=Bx+Wx+Ux+Hx,$c="['’]",zx="["+gr+"]",Hg="["+Ug+"]",bl="["+Dg+"]",zg="\\d+",Gx="["+Lg+"]",Gg="["+Mg+"]",Vg="[^"+gr+Ug+zg+Lg+Mg+Bg+"]",wc="\\ud83c[\\udffb-\\udfff]",Vx="(?:"+bl+"|"+wc+")",Zg="[^"+gr+"]",_c="(?:\\ud83c[\\udde6-\\uddff]){2}",xc="[\\ud800-\\udbff][\\udc00-\\udfff]",Mo="["+Bg+"]",jg="\\u200d",qg="(?:"+Gg+"|"+Vg+")",Zx="(?:"+Mo+"|"+Vg+")",Yg="(?:"+$c+"(?:d|ll|m|re|s|t|ve))?",Kg="(?:"+$c+"(?:D|LL|M|RE|S|T|VE))?",Jg=Vx+"?",Xg="["+Wg+"]?",jx="(?:"+jg+"(?:"+[Zg,_c,xc].join("|")+")"+Xg+Jg+")*",qx="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yx="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qg=Xg+Jg+jx,Kx="(?:"+[Gx,_c,xc].join("|")+")"+Qg,Jx="(?:"+[Zg+bl+"?",bl,_c,xc,zx].join("|")+")",Xx=RegExp($c,"g"),Qx=RegExp(bl,"g"),Ec=RegExp(wc+"(?="+wc+")|"+Jx+Qg,"g"),eE=RegExp([Mo+"?"+Gg+"+"+Yg+"(?="+[Hg,Mo,"$"].join("|")+")",Zx+"+"+Kg+"(?="+[Hg,Mo+qg,"$"].join("|")+")",Mo+"?"+qg+"+"+Yg,Mo+"+"+Kg,Yx,qx,zg,Kx].join("|"),"g"),tE=RegExp("["+jg+gr+Dg+Wg+"]"),nE=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rE=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],iE=-1,ht={};ht[Ar]=ht[Pr]=ht[ie]=ht[oe]=ht[ct]=ht[xt]=ht[nn]=ht[Pn]=ht[pr]=!0,ht[nt]=ht[Nt]=ht[cn]=ht[Tt]=ht[fn]=ht[Mt]=ht[en]=ht[dn]=ht[Jt]=ht[E]=ht[se]=ht[ae]=ht[Xe]=ht[It]=ht[Me]=!1;var lt={};lt[nt]=lt[Nt]=lt[cn]=lt[fn]=lt[Tt]=lt[Mt]=lt[Ar]=lt[Pr]=lt[ie]=lt[oe]=lt[ct]=lt[Jt]=lt[E]=lt[se]=lt[ae]=lt[Xe]=lt[It]=lt[Bt]=lt[xt]=lt[nn]=lt[Pn]=lt[pr]=!0,lt[en]=lt[dn]=lt[Me]=!1;var oE={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},sE={"&":"&","<":"<",">":">",'"':""","'":"'"},aE={"&":"&","<":"<",">":">",""":'"',"'":"'"},lE={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},uE=parseFloat,dE=parseInt,e3=typeof ds=="object"&&ds&&ds.Object===Object&&ds,cE=typeof self=="object"&&self&&self.Object===Object&&self,on=e3||cE||Function("return this")(),Sc=e&&!e.nodeType&&e,Vi=Sc&&!0&&n&&!n.nodeType&&n,t3=Vi&&Vi.exports===Sc,Cc=t3&&e3.process,Yn=function(){try{var x=Vi&&Vi.require&&Vi.require("util").types;return x||Cc&&Cc.binding&&Cc.binding("util")}catch(P){}}(),n3=Yn&&Yn.isArrayBuffer,r3=Yn&&Yn.isDate,i3=Yn&&Yn.isMap,o3=Yn&&Yn.isRegExp,s3=Yn&&Yn.isSet,a3=Yn&&Yn.isTypedArray;function Rn(x,P,O){switch(O.length){case 0:return x.call(P);case 1:return x.call(P,O[0]);case 2:return x.call(P,O[0],O[1]);case 3:return x.call(P,O[0],O[1],O[2])}return x.apply(P,O)}function fE(x,P,O,Q){for(var ye=-1,Ze=x==null?0:x.length;++ye-1}function Nc(x,P,O){for(var Q=-1,ye=x==null?0:x.length;++Q-1;);return O}function g3(x,P){for(var O=x.length;O--&&Bo(P,x[O],0)>-1;);return O}function wE(x,P){for(var O=x.length,Q=0;O--;)x[O]===P&&++Q;return Q}var _E=Ac(oE),xE=Ac(sE);function EE(x){return"\\"+lE[x]}function SE(x,P){return x==null?t:x[P]}function Wo(x){return tE.test(x)}function CE(x){return nE.test(x)}function NE(x){for(var P,O=[];!(P=x.next()).done;)O.push(P.value);return O}function Fc(x){var P=-1,O=Array(x.size);return x.forEach(function(Q,ye){O[++P]=[ye,Q]}),O}function m3(x,P){return function(O){return x(P(O))}}function xi(x,P){for(var O=-1,Q=x.length,ye=0,Ze=[];++O-1}function pS(i,s){var u=this.__data__,f=Ll(u,i);return f<0?(++this.size,u.push([i,s])):u[f][1]=s,this}qr.prototype.clear=dS,qr.prototype.delete=cS,qr.prototype.get=fS,qr.prototype.has=hS,qr.prototype.set=pS;function Yr(i){var s=-1,u=i==null?0:i.length;for(this.clear();++s=s?i:s)),i}function Qn(i,s,u,f,p,b){var $,_=s&v,S=s&w,R=s&m;if(u&&($=p?u(i,f,p,b):u(i)),$!==t)return $;if(!bt(i))return i;var F=ve(i);if(F){if($=vC(i),!_)return Sn(i,$)}else{var D=gn(i),G=D==dn||D==kr;if(Oi(i))return X3(i,_);if(D==se||D==nt||G&&!p){if($=S||G?{}:ym(i),!_)return S?aC(i,kS($,i)):sC(i,T3($,i))}else{if(!lt[D])return p?i:{};$=bC(i,D,_)}}b||(b=new yr);var ne=b.get(i);if(ne)return ne;b.set(i,$),Zm(i)?i.forEach(function(ce){$.add(Qn(ce,s,u,ce,i,b))}):Gm(i)&&i.forEach(function(ce,Ne){$.set(Ne,Qn(ce,s,u,Ne,i,b))});var de=R?S?lf:af:S?Nn:Xt,$e=F?t:de(i);return Kn($e||i,function(ce,Ne){$e&&(Ne=ce,ce=i[Ne]),Js($,Ne,Qn(ce,s,u,Ne,i,b))}),$}function AS(i){var s=Xt(i);return function(u){return O3(u,i,s)}}function O3(i,s,u){var f=u.length;if(i==null)return!f;for(i=st(i);f--;){var p=u[f],b=s[p],$=i[p];if($===t&&!(p in i)||!b($))return!1}return!0}function k3(i,s,u){if(typeof i!="function")throw new Jn(l);return ia(function(){i.apply(t,u)},s)}function Xs(i,s,u,f){var p=-1,b=$l,$=!0,_=i.length,S=[],R=s.length;if(!_)return S;u&&(s=mt(s,Fn(u))),f?(b=Nc,$=!1):s.length>=o&&(b=Vs,$=!1,s=new qi(s));e:for(;++p<_;){var F=i[p],D=u==null?F:u(F);if(F=f||F!==0?F:0,$&&D===D){for(var G=R;G--;)if(s[G]===D)continue e;S.push(F)}else b(s,D,f)||S.push(F)}return S}var Si=rm(Ir),A3=rm(zc,!0);function PS(i,s){var u=!0;return Si(i,function(f,p,b){return u=!!s(f,p,b),u}),u}function Ml(i,s,u){for(var f=-1,p=i.length;++fp?0:p+u),f=f===t||f>p?p:be(f),f<0&&(f+=p),f=u>f?0:qm(f);u0&&u(_)?s>1?sn(_,s-1,u,f,p):_i(p,_):f||(p[p.length]=_)}return p}var Hc=im(),I3=im(!0);function Ir(i,s){return i&&Hc(i,s,Xt)}function zc(i,s){return i&&I3(i,s,Xt)}function Bl(i,s){return wi(s,function(u){return ei(i[u])})}function Ki(i,s){s=Ni(s,i);for(var u=0,f=s.length;i!=null&&us}function RS(i,s){return i!=null&&Qe.call(i,s)}function FS(i,s){return i!=null&&s in st(i)}function DS(i,s,u){return i>=pn(s,u)&&i=120&&F.length>=120)?new qi($&&F):t}F=i[0];var D=-1,G=_[0];e:for(;++D-1;)_!==i&&kl.call(_,S,1),kl.call(i,S,1);return i}function G3(i,s){for(var u=i?s.length:0,f=u-1;u--;){var p=s[u];if(u==f||p!==b){var b=p;Qr(p)?kl.call(i,p,1):Qc(i,p)}}return i}function Kc(i,s){return i+Il(E3()*(s-i+1))}function YS(i,s,u,f){for(var p=-1,b=Gt(Pl((s-i)/(u||1)),0),$=O(b);b--;)$[f?b:++p]=i,i+=u;return $}function Jc(i,s){var u="";if(!i||s<1||s>Y)return u;do s%2&&(u+=i),s=Il(s/2),s&&(i+=i);while(s);return u}function Ee(i,s){return gf($m(i,s,Tn),i+"")}function KS(i){return N3(Jo(i))}function JS(i,s){var u=Jo(i);return Kl(u,Yi(s,0,u.length))}function ta(i,s,u,f){if(!bt(i))return i;s=Ni(s,i);for(var p=-1,b=s.length,$=b-1,_=i;_!=null&&++pp?0:p+s),u=u>p?p:u,u<0&&(u+=p),p=s>u?0:u-s>>>0,s>>>=0;for(var b=O(p);++f>>1,$=i[b];$!==null&&!Ln($)&&(u?$<=s:$=o){var R=s?null:cC(i);if(R)return _l(R);$=!1,p=Vs,S=new qi}else S=s?[]:_;e:for(;++f=f?i:er(i,s,u)}var J3=HE||function(i){return on.clearTimeout(i)};function X3(i,s){if(s)return i.slice();var u=i.length,f=b3?b3(u):new i.constructor(u);return i.copy(f),f}function rf(i){var s=new i.constructor(i.byteLength);return new Tl(s).set(new Tl(i)),s}function nC(i,s){var u=s?rf(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.byteLength)}function rC(i){var s=new i.constructor(i.source,vt.exec(i));return s.lastIndex=i.lastIndex,s}function iC(i){return Ks?st(Ks.call(i)):{}}function Q3(i,s){var u=s?rf(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.length)}function em(i,s){if(i!==s){var u=i!==t,f=i===null,p=i===i,b=Ln(i),$=s!==t,_=s===null,S=s===s,R=Ln(s);if(!_&&!R&&!b&&i>s||b&&$&&S&&!_&&!R||f&&$&&S||!u&&S||!p)return 1;if(!f&&!b&&!R&&i=_)return S;var R=u[f];return S*(R=="desc"?-1:1)}}return i.index-s.index}function tm(i,s,u,f){for(var p=-1,b=i.length,$=u.length,_=-1,S=s.length,R=Gt(b-$,0),F=O(S+R),D=!f;++_1?u[p-1]:t,$=p>2?u[2]:t;for(b=i.length>3&&typeof b=="function"?(p--,b):t,$&&bn(u[0],u[1],$)&&(b=p<3?t:b,p=1),s=st(s);++f-1?p[b?s[$]:$]:t}}function am(i){return Xr(function(s){var u=s.length,f=u,p=Xn.prototype.thru;for(i&&s.reverse();f--;){var b=s[f];if(typeof b!="function")throw new Jn(l);if(p&&!$&&ql(b)=="wrapper")var $=new Xn([],!0)}for(f=$?f:u;++f1&&De.reverse(),F&&S_))return!1;var R=b.get(i),F=b.get(s);if(R&&F)return R==s&&F==i;var D=-1,G=!0,ne=u&A?new qi:t;for(b.set(i,s),b.set(s,i);++D<_;){var de=i[D],$e=s[D];if(f)var ce=$?f($e,de,D,s,i,b):f(de,$e,D,i,s,b);if(ce!==t){if(ce)continue;G=!1;break}if(ne){if(!Oc(s,function(Ne,De){if(!Vs(ne,De)&&(de===Ne||p(de,Ne,u,f,b)))return ne.push(De)})){G=!1;break}}else if(!(de===$e||p(de,$e,u,f,b))){G=!1;break}}return b.delete(i),b.delete(s),G}function hC(i,s,u,f,p,b,$){switch(u){case fn:if(i.byteLength!=s.byteLength||i.byteOffset!=s.byteOffset)return!1;i=i.buffer,s=s.buffer;case cn:return!(i.byteLength!=s.byteLength||!b(new Tl(i),new Tl(s)));case Tt:case Mt:case E:return vr(+i,+s);case en:return i.name==s.name&&i.message==s.message;case ae:case It:return i==s+"";case Jt:var _=Fc;case Xe:var S=f&N;if(_||(_=_l),i.size!=s.size&&!S)return!1;var R=$.get(i);if(R)return R==s;f|=A,$.set(i,s);var F=pm(_(i),_(s),f,p,b,$);return $.delete(i),F;case Bt:if(Ks)return Ks.call(i)==Ks.call(s)}return!1}function pC(i,s,u,f,p,b){var $=u&N,_=af(i),S=_.length,R=af(s),F=R.length;if(S!=F&&!$)return!1;for(var D=S;D--;){var G=_[D];if(!($?G in s:Qe.call(s,G)))return!1}var ne=b.get(i),de=b.get(s);if(ne&&de)return ne==s&&de==i;var $e=!0;b.set(i,s),b.set(s,i);for(var ce=$;++D1?"& ":"")+s[f],s=s.join(u>2?", ":" "),i.replace(yl,`{ /* [wrapped with `+s+`] */ `)}function wC(i){return ve(i)||Qi(i)||!!(_3&&i&&i[_3])}function Qr(i,s){var u=typeof i;return s=s==null?Y:s,!!s&&(u=="number"||u!="symbol"&&ot.test(i))&&i>-1&&i%1==0&&i0){if(++s>=Ve)return arguments[0]}else s=0;return i.apply(t,arguments)}}function Kl(i,s){var u=-1,f=i.length,p=f-1;for(s=s===t?f:s;++u1?i[s-1]:t;return u=typeof u=="function"?(i.pop(),u):t,Pm(i,u)});function Im(i){var s=y(i);return s.__chain__=!0,s}function PN(i,s){return s(i),i}function Jl(i,s){return s(i)}var IN=Xr(function(i){var s=i.length,u=s?i[0]:0,f=this.__wrapped__,p=function(b){return Uc(b,i)};return s>1||this.__actions__.length||!(f instanceof Ae)||!Qr(u)?this.thru(p):(f=f.slice(u,+u+(s?1:0)),f.__actions__.push({func:Jl,args:[p],thisArg:t}),new Xn(f,this.__chain__).thru(function(b){return s&&!b.length&&b.push(t),b}))});function RN(){return Im(this)}function FN(){return new Xn(this.value(),this.__chain__)}function DN(){this.__values__===t&&(this.__values__=jm(this.value()));var i=this.__index__>=this.__values__.length,s=i?t:this.__values__[this.__index__++];return{done:i,value:s}}function LN(){return this}function MN(i){for(var s,u=this;u instanceof Dl;){var f=Cm(u);f.__index__=0,f.__values__=t,s?p.__wrapped__=f:s=f;var p=f;u=u.__wrapped__}return p.__wrapped__=i,s}function BN(){var i=this.__wrapped__;if(i instanceof Ae){var s=i;return this.__actions__.length&&(s=new Ae(this)),s=s.reverse(),s.__actions__.push({func:Jl,args:[mf],thisArg:t}),new Xn(s,this.__chain__)}return this.thru(mf)}function WN(){return Y3(this.__wrapped__,this.__actions__)}var UN=zl(function(i,s,u){Qe.call(i,u)?++i[u]:Kr(i,u,1)});function HN(i,s,u){var f=ve(i)?l3:PS;return u&&bn(i,s,u)&&(s=t),f(i,ue(s,3))}function zN(i,s){var u=ve(i)?wi:P3;return u(i,ue(s,3))}var GN=sm(Nm),VN=sm(Tm);function ZN(i,s){return sn(Xl(i,s),1)}function jN(i,s){return sn(Xl(i,s),Te)}function qN(i,s,u){return u=u===t?1:be(u),sn(Xl(i,s),u)}function Rm(i,s){var u=ve(i)?Kn:Si;return u(i,ue(s,3))}function Fm(i,s){var u=ve(i)?hE:A3;return u(i,ue(s,3))}var YN=zl(function(i,s,u){Qe.call(i,u)?i[u].push(s):Kr(i,u,[s])});function KN(i,s,u,f){i=Cn(i)?i:Jo(i),u=u&&!f?be(u):0;var p=i.length;return u<0&&(u=Gt(p+u,0)),ru(i)?u<=p&&i.indexOf(s,u)>-1:!!p&&Bo(i,s,u)>-1}var JN=Ee(function(i,s,u){var f=-1,p=typeof s=="function",b=Cn(i)?O(i.length):[];return Si(i,function($){b[++f]=p?Rn(s,$,u):Qs($,s,u)}),b}),XN=zl(function(i,s,u){Kr(i,u,s)});function Xl(i,s){var u=ve(i)?mt:M3;return u(i,ue(s,3))}function QN(i,s,u,f){return i==null?[]:(ve(s)||(s=s==null?[]:[s]),u=f?t:u,ve(u)||(u=u==null?[]:[u]),H3(i,s,u))}var eT=zl(function(i,s,u){i[u?0:1].push(s)},function(){return[[],[]]});function tT(i,s,u){var f=ve(i)?Tc:f3,p=arguments.length<3;return f(i,ue(s,4),u,p,Si)}function nT(i,s,u){var f=ve(i)?pE:f3,p=arguments.length<3;return f(i,ue(s,4),u,p,A3)}function rT(i,s){var u=ve(i)?wi:P3;return u(i,tu(ue(s,3)))}function iT(i){var s=ve(i)?N3:KS;return s(i)}function oT(i,s,u){(u?bn(i,s,u):s===t)?s=1:s=be(s);var f=ve(i)?NS:JS;return f(i,s)}function sT(i){var s=ve(i)?TS:QS;return s(i)}function aT(i){if(i==null)return 0;if(Cn(i))return ru(i)?Uo(i):i.length;var s=gn(i);return s==Jt||s==Xe?i.size:jc(i).length}function lT(i,s,u){var f=ve(i)?Oc:eC;return u&&bn(i,s,u)&&(s=t),f(i,ue(s,3))}var uT=Ee(function(i,s){if(i==null)return[];var u=s.length;return u>1&&bn(i,s[0],s[1])?s=[]:u>2&&bn(s[0],s[1],s[2])&&(s=[s[0]]),H3(i,sn(s,1),[])}),Ql=zE||function(){return on.Date.now()};function dT(i,s){if(typeof s!="function")throw new Jn(l);return i=be(i),function(){if(--i<1)return s.apply(this,arguments)}}function Dm(i,s,u){return s=u?t:s,s=i&&s==null?i.length:s,Jr(i,L,t,t,t,t,s)}function Lm(i,s){var u;if(typeof s!="function")throw new Jn(l);return i=be(i),function(){return--i>0&&(u=s.apply(this,arguments)),i<=1&&(s=t),u}}var vf=Ee(function(i,s,u){var f=k;if(u.length){var p=xi(u,Yo(vf));f|=V}return Jr(i,f,s,u,p)}),Mm=Ee(function(i,s,u){var f=k|M;if(u.length){var p=xi(u,Yo(Mm));f|=V}return Jr(s,f,i,u,p)});function Bm(i,s,u){s=u?t:s;var f=Jr(i,Z,t,t,t,t,t,s);return f.placeholder=Bm.placeholder,f}function Wm(i,s,u){s=u?t:s;var f=Jr(i,q,t,t,t,t,t,s);return f.placeholder=Wm.placeholder,f}function Um(i,s,u){var f,p,b,$,_,S,R=0,F=!1,D=!1,G=!0;if(typeof i!="function")throw new Jn(l);s=nr(s)||0,bt(u)&&(F=!!u.leading,D="maxWait"in u,b=D?Gt(nr(u.maxWait)||0,s):b,G="trailing"in u?!!u.trailing:G);function ne(kt){var br=f,ni=p;return f=p=t,R=kt,$=i.apply(ni,br),$}function de(kt){return R=kt,_=ia(Ne,s),F?ne(kt):$}function $e(kt){var br=kt-S,ni=kt-R,s4=s-br;return D?pn(s4,b-ni):s4}function ce(kt){var br=kt-S,ni=kt-R;return S===t||br>=s||br<0||D&&ni>=b}function Ne(){var kt=Ql();if(ce(kt))return De(kt);_=ia(Ne,$e(kt))}function De(kt){return _=t,G&&f?ne(kt):(f=p=t,$)}function Mn(){_!==t&&J3(_),R=0,f=S=p=_=t}function $n(){return _===t?$:De(Ql())}function Bn(){var kt=Ql(),br=ce(kt);if(f=arguments,p=this,S=kt,br){if(_===t)return de(S);if(D)return J3(_),_=ia(Ne,s),ne(S)}return _===t&&(_=ia(Ne,s)),$}return Bn.cancel=Mn,Bn.flush=$n,Bn}var cT=Ee(function(i,s){return k3(i,1,s)}),fT=Ee(function(i,s,u){return k3(i,nr(s)||0,u)});function hT(i){return Jr(i,X)}function eu(i,s){if(typeof i!="function"||s!=null&&typeof s!="function")throw new Jn(l);var u=function(){var f=arguments,p=s?s.apply(this,f):f[0],b=u.cache;if(b.has(p))return b.get(p);var $=i.apply(this,f);return u.cache=b.set(p,$)||b,$};return u.cache=new(eu.Cache||Yr),u}eu.Cache=Yr;function tu(i){if(typeof i!="function")throw new Jn(l);return function(){var s=arguments;switch(s.length){case 0:return!i.call(this);case 1:return!i.call(this,s[0]);case 2:return!i.call(this,s[0],s[1]);case 3:return!i.call(this,s[0],s[1],s[2])}return!i.apply(this,s)}}function pT(i){return Lm(2,i)}var gT=tC(function(i,s){s=s.length==1&&ve(s[0])?mt(s[0],Fn(ue())):mt(sn(s,1),Fn(ue()));var u=s.length;return Ee(function(f){for(var p=-1,b=pn(f.length,u);++p=s}),Qi=F3(function(){return arguments}())?F3:function(i){return St(i)&&Qe.call(i,"callee")&&!w3.call(i,"callee")},ve=O.isArray,kT=n3?Fn(n3):MS;function Cn(i){return i!=null&&nu(i.length)&&!ei(i)}function Ot(i){return St(i)&&Cn(i)}function AT(i){return i===!0||i===!1||St(i)&&vn(i)==Tt}var Oi=VE||kf,PT=r3?Fn(r3):BS;function IT(i){return St(i)&&i.nodeType===1&&!oa(i)}function RT(i){if(i==null)return!0;if(Cn(i)&&(ve(i)||typeof i=="string"||typeof i.splice=="function"||Oi(i)||Ko(i)||Qi(i)))return!i.length;var s=gn(i);if(s==Jt||s==Xe)return!i.size;if(ra(i))return!jc(i).length;for(var u in i)if(Qe.call(i,u))return!1;return!0}function FT(i,s){return ea(i,s)}function DT(i,s,u){u=typeof u=="function"?u:t;var f=u?u(i,s):t;return f===t?ea(i,s,t,u):!!f}function $f(i){if(!St(i))return!1;var s=vn(i);return s==en||s==Kt||typeof i.message=="string"&&typeof i.name=="string"&&!oa(i)}function LT(i){return typeof i=="number"&&x3(i)}function ei(i){if(!bt(i))return!1;var s=vn(i);return s==dn||s==kr||s==Ye||s==_e}function zm(i){return typeof i=="number"&&i==be(i)}function nu(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Y}function bt(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}function St(i){return i!=null&&typeof i=="object"}var Gm=i3?Fn(i3):US;function MT(i,s){return i===s||Zc(i,s,df(s))}function BT(i,s,u){return u=typeof u=="function"?u:t,Zc(i,s,df(s),u)}function WT(i){return Vm(i)&&i!=+i}function UT(i){if(EC(i))throw new ye(a);return D3(i)}function HT(i){return i===null}function zT(i){return i==null}function Vm(i){return typeof i=="number"||St(i)&&vn(i)==E}function oa(i){if(!St(i)||vn(i)!=se)return!1;var s=Ol(i);if(s===null)return!0;var u=Qe.call(s,"constructor")&&s.constructor;return typeof u=="function"&&u instanceof u&&Sl.call(u)==BE}var wf=o3?Fn(o3):HS;function GT(i){return zm(i)&&i>=-Y&&i<=Y}var Zm=s3?Fn(s3):zS;function ru(i){return typeof i=="string"||!ve(i)&&St(i)&&vn(i)==It}function Ln(i){return typeof i=="symbol"||St(i)&&vn(i)==Bt}var Ko=a3?Fn(a3):GS;function VT(i){return i===t}function ZT(i){return St(i)&&gn(i)==Me}function jT(i){return St(i)&&vn(i)==hr}var qT=jl(qc),YT=jl(function(i,s){return i<=s});function jm(i){if(!i)return[];if(Cn(i))return ru(i)?mr(i):Sn(i);if(Zs&&i[Zs])return NE(i[Zs]());var s=gn(i),u=s==Jt?Fc:s==Xe?_l:Jo;return u(i)}function ti(i){if(!i)return i===0?i:0;if(i=nr(i),i===Te||i===-Te){var s=i<0?-1:1;return s*qt}return i===i?i:0}function be(i){var s=ti(i),u=s%1;return s===s?u?s-u:s:0}function qm(i){return i?Yi(be(i),0,qe):0}function nr(i){if(typeof i=="number")return i;if(Ln(i))return et;if(bt(i)){var s=typeof i.valueOf=="function"?i.valueOf():i;i=bt(s)?s+"":s}if(typeof i!="string")return i===0?i:+i;i=h3(i);var u=Rt.test(i);return u||ft.test(i)?dE(i.slice(2),u?2:8):Ht.test(i)?et:+i}function Ym(i){return Rr(i,Nn(i))}function KT(i){return i?Yi(be(i),-Y,Y):i===0?i:0}function Ke(i){return i==null?"":Dn(i)}var JT=jo(function(i,s){if(ra(s)||Cn(s)){Rr(s,Xt(s),i);return}for(var u in s)Qe.call(s,u)&&Js(i,u,s[u])}),Km=jo(function(i,s){Rr(s,Nn(s),i)}),iu=jo(function(i,s,u,f){Rr(s,Nn(s),i,f)}),XT=jo(function(i,s,u,f){Rr(s,Xt(s),i,f)}),QT=Xr(Uc);function eO(i,s){var u=Zo(i);return s==null?u:T3(u,s)}var tO=Ee(function(i,s){i=st(i);var u=-1,f=s.length,p=f>2?s[2]:t;for(p&&bn(s[0],s[1],p)&&(f=1);++u1),b}),Rr(i,lf(i),u),f&&(u=Qn(u,v|w|m,fC));for(var p=s.length;p--;)Qc(u,s[p]);return u});function bO(i,s){return Xm(i,tu(ue(s)))}var $O=Xr(function(i,s){return i==null?{}:jS(i,s)});function Xm(i,s){if(i==null)return{};var u=mt(lf(i),function(f){return[f]});return s=ue(s),z3(i,u,function(f,p){return s(f,p[0])})}function wO(i,s,u){s=Ni(s,i);var f=-1,p=s.length;for(p||(p=1,i=t);++fs){var f=i;i=s,s=f}if(u||i%1||s%1){var p=E3();return pn(i+p*(s-i+uE("1e-"+((p+"").length-1))),s)}return Kc(i,s)}var PO=qo(function(i,s,u){return s=s.toLowerCase(),i+(u?t4(s):s)});function t4(i){return Ef(Ke(i).toLowerCase())}function n4(i){return i=Ke(i),i&&i.replace(ke,_E).replace(Qx,"")}function IO(i,s,u){i=Ke(i),s=Dn(s);var f=i.length;u=u===t?f:Yi(be(u),0,f);var p=u;return u-=s.length,u>=0&&i.slice(u,p)==s}function RO(i){return i=Ke(i),i&&J.test(i)?i.replace(Ce,xE):i}function FO(i){return i=Ke(i),i&&ml.test(i)?i.replace(jr,"\\$&"):i}var DO=qo(function(i,s,u){return i+(u?"-":"")+s.toLowerCase()}),LO=qo(function(i,s,u){return i+(u?" ":"")+s.toLowerCase()}),MO=om("toLowerCase");function BO(i,s,u){i=Ke(i),s=be(s);var f=s?Uo(i):0;if(!s||f>=s)return i;var p=(s-f)/2;return Zl(Il(p),u)+i+Zl(Pl(p),u)}function WO(i,s,u){i=Ke(i),s=be(s);var f=s?Uo(i):0;return s&&f>>0,u?(i=Ke(i),i&&(typeof s=="string"||s!=null&&!wf(s))&&(s=Dn(s),!s&&Wo(i))?Ti(mr(i),0,u):i.split(s,u)):[]}var jO=qo(function(i,s,u){return i+(u?" ":"")+Ef(s)});function qO(i,s,u){return i=Ke(i),u=u==null?0:Yi(be(u),0,i.length),s=Dn(s),i.slice(u,u+s.length)==s}function YO(i,s,u){var f=y.templateSettings;u&&bn(i,s,u)&&(s=t),i=Ke(i),s=iu({},s,f,fm);var p=iu({},s.imports,f.imports,fm),b=Xt(p),$=Rc(p,b),_,S,R=0,F=s.interpolate||rn,D="__p += '",G=Dc((s.escape||rn).source+"|"+F.source+"|"+(F===Oe?Ue:rn).source+"|"+(s.evaluate||rn).source+"|$","g"),ne="//# sourceURL="+(Qe.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++iE+"]")+` `;i.replace(G,function(ce,Ne,De,Mn,$n,Bn){return De||(De=Mn),D+=i.slice(R,Bn).replace(In,EE),Ne&&(_=!0,D+=`' + __e(`+Ne+`) + '`),$n&&(S=!0,D+=`'; `+$n+`; __p += '`),De&&(D+=`' + ((__t = (`+De+`)) == null ? '' : __t) + '`),R=Bn+ce.length,ce}),D+=`'; `;var de=Qe.call(s,"variable")&&s.variable;if(!de)D=`with (obj) { `+D+` } `;else if(W.test(de))throw new ye(d);D=(S?D.replace(zi,""):D).replace(Gi,"$1").replace(Zr,"$1;"),D="function("+(de||"obj")+`) { `+(de?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(_?", __e = _.escape":"")+(S?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+D+`return __p }`;var $e=i4(function(){return Ze(b,ne+"return "+D).apply(t,$)});if($e.source=D,$f($e))throw $e;return $e}function KO(i){return Ke(i).toLowerCase()}function JO(i){return Ke(i).toUpperCase()}function XO(i,s,u){if(i=Ke(i),i&&(u||s===t))return h3(i);if(!i||!(s=Dn(s)))return i;var f=mr(i),p=mr(s),b=p3(f,p),$=g3(f,p)+1;return Ti(f,b,$).join("")}function QO(i,s,u){if(i=Ke(i),i&&(u||s===t))return i.slice(0,y3(i)+1);if(!i||!(s=Dn(s)))return i;var f=mr(i),p=g3(f,mr(s))+1;return Ti(f,0,p).join("")}function ek(i,s,u){if(i=Ke(i),i&&(u||s===t))return i.replace(Lo,"");if(!i||!(s=Dn(s)))return i;var f=mr(i),p=p3(f,mr(s));return Ti(f,p).join("")}function tk(i,s){var u=me,f=Re;if(bt(s)){var p="separator"in s?s.separator:p;u="length"in s?be(s.length):u,f="omission"in s?Dn(s.omission):f}i=Ke(i);var b=i.length;if(Wo(i)){var $=mr(i);b=$.length}if(u>=b)return i;var _=u-Uo(f);if(_<1)return f;var S=$?Ti($,0,_).join(""):i.slice(0,_);if(p===t)return S+f;if($&&(_+=S.length-_),wf(p)){if(i.slice(_).search(p)){var R,F=S;for(p.global||(p=Dc(p.source,Ke(vt.exec(p))+"g")),p.lastIndex=0;R=p.exec(F);)var D=R.index;S=S.slice(0,D===t?_:D)}}else if(i.indexOf(Dn(p),_)!=_){var G=S.lastIndexOf(p);G>-1&&(S=S.slice(0,G))}return S+f}function nk(i){return i=Ke(i),i&&le.test(i)?i.replace(hn,AE):i}var rk=qo(function(i,s,u){return i+(u?" ":"")+s.toUpperCase()}),Ef=om("toUpperCase");function r4(i,s,u){return i=Ke(i),s=u?t:s,s===t?CE(i)?RE(i):yE(i):i.match(s)||[]}var i4=Ee(function(i,s){try{return Rn(i,t,s)}catch(u){return $f(u)?u:new ye(u)}}),ik=Xr(function(i,s){return Kn(s,function(u){u=Fr(u),Kr(i,u,vf(i[u],i))}),i});function ok(i){var s=i==null?0:i.length,u=ue();return i=s?mt(i,function(f){if(typeof f[1]!="function")throw new Jn(l);return[u(f[0]),f[1]]}):[],Ee(function(f){for(var p=-1;++pY)return[];var u=qe,f=pn(i,qe);s=ue(s),i-=qe;for(var p=Ic(f,s);++u0||s<0)?new Ae(u):(i<0?u=u.takeRight(-i):i&&(u=u.drop(i)),s!==t&&(s=be(s),u=s<0?u.dropRight(-s):u.take(s-i)),u)},Ae.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Ae.prototype.toArray=function(){return this.take(qe)},Ir(Ae.prototype,function(i,s){var u=/^(?:filter|find|map|reject)|While$/.test(s),f=/^(?:head|last)$/.test(s),p=y[f?"take"+(s=="last"?"Right":""):s],b=f||/^find/.test(s);p&&(y.prototype[s]=function(){var $=this.__wrapped__,_=f?[1]:arguments,S=$ instanceof Ae,R=_[0],F=S||ve($),D=function(Ne){var De=p.apply(y,_i([Ne],_));return f&&G?De[0]:De};F&&u&&typeof R=="function"&&R.length!=1&&(S=F=!1);var G=this.__chain__,ne=!!this.__actions__.length,de=b&&!G,$e=S&&!ne;if(!b&&F){$=$e?$:new Ae(this);var ce=i.apply($,_);return ce.__actions__.push({func:Jl,args:[D],thisArg:t}),new Xn(ce,G)}return de&&$e?i.apply(this,_):(ce=this.thru(D),de?f?ce.value()[0]:ce.value():ce)})}),Kn(["pop","push","shift","sort","splice","unshift"],function(i){var s=xl[i],u=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",f=/^(?:pop|shift)$/.test(i);y.prototype[i]=function(){var p=arguments;if(f&&!this.__chain__){var b=this.value();return s.apply(ve(b)?b:[],p)}return this[u](function($){return s.apply(ve($)?$:[],p)})}}),Ir(Ae.prototype,function(i,s){var u=y[s];if(u){var f=u.name+"";Qe.call(Vo,f)||(Vo[f]=[]),Vo[f].push({name:s,func:u})}}),Vo[Gl(t,M).name]=[{name:"wrapper",func:t}],Ae.prototype.clone=nS,Ae.prototype.reverse=rS,Ae.prototype.value=iS,y.prototype.at=IN,y.prototype.chain=RN,y.prototype.commit=FN,y.prototype.next=DN,y.prototype.plant=MN,y.prototype.reverse=BN,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=WN,y.prototype.first=y.prototype.head,Zs&&(y.prototype[Zs]=LN),y},Ho=FE();Vi?((Vi.exports=Ho)._=Ho,Sc._=Ho):on._=Ho}).call(ds)}(Ta,Ta.exports);var P5=Ta.exports,I5=24,vh=4,R5=60,F5=function(n,e){return n===void 0&&(n=I5),e===void 0&&(e=vh),Array.from(Array(n).keys()).map(function(t){var r=D5();return Array.from(Array(e).keys()).map(function(o){var a=o*r,l=a===0?"0":"";return"".concat(t,":").concat(o*r).concat(l)})})},D5=function(n,e){return n===void 0&&(n=R5),e===void 0&&(e=vh),n/e},L5=function(){for(var n=[],e=0;et===n.value&&r[0]===n.selection[0]&&r[1]===n.selection[1])}function H5({value:n,selection:e},t,r){const[o,a]=e,l=typeof r=="function"?r({value:n,selection:e}):r;return{value:n,selection:l==="replace"?[o,Math.max(o+t.length,a)]:[o,a]}}function Oa(n){return typeof n=="string"}function $h(n,e,t,r){let o="";for(let a=e.length;a{const o=e[r]||"";return Oa(o)?t===o:t.match(o)}):e.test(n)}function z5(n,e,t){let r=null,o=null;const a=Array.from(n.value).reduce((d,c,h)=>{const g=$h(e,d,c,t),v=d+g,w=e[v.length]||"";return r===null&&h>=n.selection[0]&&(r=v.length),o===null&&h>=n.selection[1]&&(o=v.length),Oa(w)?v+w:c.match(w)?v+c:v},""),l=$h(e,a,"",t);return{value:wh(a+l,e)?a+l:a,selection:[r!=null?r:a.length,o!=null?o:a.length]}}function G5({value:n,selection:e},t){const[r,o]=e;let a=r,l=o;const d=Array.from(n).reduce((c,h,g)=>{const v=c+h;return r===g&&(a=c.length),o===g&&(l=c.length),v.match(t)?v:c},"");return{value:d,selection:[Math.min(a,d.length),Math.min(l,d.length)]}}function ka(n,e,t=null){if(wh(n.value,e))return n;const{value:r,selection:o}=Array.isArray(e)?z5(n,e,t):G5(n,e);return{selection:o,value:Array.isArray(e)?r.slice(0,e.length):r}}function _h(n,e){if(!Array.isArray(e))return n;const[t,r]=n.selection,o=[],a=Array.from(n.value).reduce((l,d,c)=>{const h=e[c]||"";return c===t&&o.push(l.length),c===r&&o.push(l.length),Oa(h)&&h===d?l:l+d},"");return o.length<2&&o.push(...new Array(2-o.length).fill(a.length)),{value:a,selection:[o[0],o[1]]}}class V5{constructor(e,t){this.initialElementState=e,this.maskOptions=t,this.value="",this.selection=[0,0];const{value:r,selection:o}=ka(this.initialElementState,this.getMaskExpression(this.initialElementState));this.value=r,this.selection=o}addCharacters([e,t],r){const{value:o,maskOptions:a}=this,l=this.getMaskExpression({value:o.slice(0,e)+r+o.slice(t),selection:[e+r.length,e+r.length]}),d={value:o,selection:[e,t]},c=_h(d,l),[h,g]=H5(c,r,a.overwriteMode).selection,v=c.value.slice(0,h)+r,w=v.length,m=ka({value:v+c.value.slice(g),selection:[w,w]},l,d);if(o.slice(0,e)===ka({value:v,selection:[w,w]},l,d).value||U5(this,m))throw new Error("Invalid mask value");this.value=m.value,this.selection=m.selection}deleteCharacters([e,t]){if(e===t||!t)return;const{value:r}=this,o=this.getMaskExpression({value:r.slice(0,e)+r.slice(t),selection:[e,e]}),a={value:r,selection:[e,t]},l=_h(a,o),[d,c]=l.selection,h=l.value.slice(0,d)+l.value.slice(c),g=ka({value:h,selection:[d,d]},o,a);this.value=g.value,this.selection=g.selection}getMaskExpression(e){const{mask:t}=this.maskOptions;return typeof t=="function"?t(e):t}}function Du(n,e){var t;const r=n.value;if(typeof e=="string")n.value=e;else{const[o,a]=e.selection;n.value=e.value,n.matches(":focus")&&((t=n.setSelectionRange)===null||t===void 0||t.call(n,o,a))}n.value!==r&&n.dispatchEvent(new Event("input",{bubbles:!0}))}function xh(n=[]){return(e,...t)=>n.reduce((r,o)=>Object.assign(Object.assign({},r),o(r,...t)),e)}function Eh(n,e){const t=Object.assign(Object.assign({},cs),e),r=xh(t.preprocessors),o=xh(t.postprocessors),a=typeof n=="string"?{value:n,selection:[0,0]}:n,{elementState:l}=r({elementState:a,data:""},"validation"),d=new V5(l,t),{value:c,selection:h}=o(d,a);return typeof n=="string"?c:{value:c,selection:h}}function Ri(n,e,t){const r=Math.min(Number(t),Math.max(Number(e),Number(n)));return n instanceof Date?new Date(r):r}function Z5(n){return n.replaceAll(/\W/g,"").length}const Sh=n=>{var e,t,r,o,a,l;return{day:(t=(e=n.match(/d/g))===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0,month:(o=(r=n.match(/m/g))===null||r===void 0?void 0:r.length)!==null&&o!==void 0?o:0,year:(l=(a=n.match(/y/g))===null||a===void 0?void 0:a.length)!==null&&l!==void 0?l:0}};function j5(n){return{day:String(n.getDate()).padStart(2,"0"),month:String(n.getMonth()+1).padStart(2,"0"),year:String(n.getFullYear()).padStart(4,"0"),hours:String(n.getHours()).padStart(2,"0"),minutes:String(n.getMinutes()).padStart(2,"0"),seconds:String(n.getSeconds()).padStart(2,"0"),milliseconds:String(n.getMilliseconds()).padStart(3,"0")}}function q5(n,e){return n.length!/^0+$/.exec(t))}function Ch(n,e,t){const r=Z5(e);return n.replace(t,"").match(new RegExp(`(\\D*\\d[^\\d\\s]*){1,${r}}`,"g"))||[]}function Lu(n,e){const t=e.replaceAll(/[^dmy]/g,""),r=n.replaceAll(/\D+/g,""),o={day:r.slice(t.indexOf("d"),t.lastIndexOf("d")+1),month:r.slice(t.indexOf("m"),t.lastIndexOf("m")+1),year:r.slice(t.indexOf("y"),t.lastIndexOf("y")+1)};return Object.fromEntries(Object.entries(o).filter(([a,l])=>!!l).sort(([a],[l])=>e.toLowerCase().indexOf(a.slice(0,1))>e.toLowerCase().indexOf(l.slice(0,1))?1:-1))}function Y5(n,e){var t,r,o,a,l,d,c;const h=((t=n.year)===null||t===void 0?void 0:t.length)===2?`20${n.year}`:n.year,g=new Date(Number(h!=null?h:"0"),Number((r=n.month)!==null&&r!==void 0?r:"1")-1,Number((o=n.day)!==null&&o!==void 0?o:"1"),Number((a=void 0)!==null&&a!==void 0?a:"0"),Number((l=void 0)!==null&&l!==void 0?l:"0"),Number((d=void 0)!==null&&d!==void 0?d:"0"),Number((c=void 0)!==null&&c!==void 0?c:"0"));return g.setFullYear(Number(h!=null?h:"0")),g}const Nh=", ";function fs({day:n,month:e,year:t,hours:r,minutes:o,seconds:a,milliseconds:l},{dateMode:d,dateTimeSeparator:c=Nh,timeMode:h}){var g;const v=((g=d.match(/y/g))===null||g===void 0?void 0:g.length)===2?t==null?void 0:t.slice(-2):t;return(d+(h?c+h:"")).replaceAll(/d+/g,n!=null?n:"").replaceAll(/m+/g,e!=null?e:"").replaceAll(/y+/g,v!=null?v:"").replaceAll(/H+/g,r!=null?r:"").replaceAll("MSS",l!=null?l:"").replaceAll(/M+/g,o!=null?o:"").replaceAll(/S+/g,a!=null?a:"").replaceAll(/^\D+/g,"").replaceAll(/\D+$/g,"")}const Th={day:31,month:12,year:9999},K5=[".",",","б","ю"],J5=new Date("0001-01-01T00:00"),X5=new Date("9999-12-31T23:59:59.999"),Q5=" ",e8="​",Oh="–",kh="—",Aa="-",Mu="−",Ah="ー",t8=[":","."];function n8({dateString:n,dateModeTemplate:e,dateSegmentsSeparator:t,offset:r,selection:[o,a]}){const l=Lu(n,e),d=Object.entries(l),c={};for(const[v,w]of d){const m=fs(c,{dateMode:e}),N=Th[v],A=m.length&&t.length,k=r+m.length+A+Sh(e)[v],M=k>=o&&k===a;if(M&&Number(w)>Number(N))return{validatedDateString:"",updatedSelection:[o,a]};if(M&&Number(w)<1)return{validatedDateString:"",updatedSelection:[o,a]};c[v]=w}const h=fs(c,{dateMode:e}),g=h.length-n.length;return{validatedDateString:h,updatedSelection:[o+g,a+g]}}function ho(n){return n}function r8(){}const Ph=/[\\^$.*+?()[\]{}|]/g,i8=new RegExp(Ph.source);function un(n){return n&&i8.test(n)?n.replaceAll(Ph,String.raw`\$&`):n}function ar(n,{prefix:e,postfix:t}){var r,o;const a=new RegExp(`^${un(e)}`),l=new RegExp(`${un(t)}$`),[d=""]=(r=n.match(a))!==null&&r!==void 0?r:[],[c=""]=(o=n.match(l))!==null&&o!==void 0?o:[];return{extractedPrefix:d,extractedPostfix:c,cleanValue:d||c?n.slice(d.length,c.length?-c.length:1/0):n}}function o8(n,e){let t="";for(let r=0;rString.fromCharCode(e.charCodeAt(0)-65248))}function a8({dateModeTemplate:n,dateSegmentSeparator:e,splitFn:t,uniteFn:r}){return({value:o,selection:a})=>{var l;const[d,c]=a,{dateStrings:h,restPart:g=""}=t(o),v=[];let w=0;h.forEach(N=>{const A=Lu(N,n),M=Object.entries(A).reduce((j,[Z,q])=>{const{validatedSegmentValue:V,prefixedZeroesCount:K}=Bu(q,`${Th[Z]}`);return w+=K,Object.assign(Object.assign({},j),{[Z]:V})},{});v.push(fs(M,{dateMode:n}))});const m=r(v,o)+(!((l=h[h.length-1])===null||l===void 0)&&l.endsWith(e)?e:"")+g;return w&&m.slice(c+w,c+w+e.length)===e&&(w+=e.length),{selection:[d+w,c+w],value:m}}}function Rh(){return({elementState:n,data:e})=>{const{value:t,selection:r}=n;return{elementState:{selection:r,value:Ih(t)},data:Ih(e)}}}new RegExp(`[${t8.map(un).join("")}]$`);function l8(n,e){const t=Sh(e);return Object.fromEntries(Object.entries(n).map(([r,o])=>{const a=t[r];return[r,o.length===a&&/^0+$/.exec(o)?"1".padStart(a,"0"):o]}))}const u8="1972";function d8({dateModeTemplate:n,min:e=J5,max:t=X5,rangeSeparator:r="",dateSegmentSeparator:o="."}){return({value:a,selection:l})=>{const d=r&&a.endsWith(r),c=Ch(a,n,r);let h="";for(const g of c){h+=h?r:"";const v=Lu(g,n);if(!q5(g,n)){const N=l8(v,n),A=fs(N,{dateMode:n}),k=g.endsWith(o)?o:"";h+=A+k;continue}const w=Y5(Object.assign({year:u8},v)),m=Ri(w,e,t);h+=fs(j5(m),{dateMode:n})}return{selection:l,value:h+(d?r:"")}}}function c8({dateModeTemplate:n,dateSegmentsSeparator:e,rangeSeparator:t="",dateTimeSeparator:r=Nh}){return({elementState:o,data:a})=>{const l=n.split(e),d=a.includes(r),c=a.slice(0,d?a.indexOf(r):1/0).split(/\D/).filter(Boolean);if(!c.length||c.length%l.length!==0)return{elementState:o,data:a};const h=c.reduce((g,v,w)=>{var m;const N=(m=l[w%l.length])!==null&&m!==void 0?m:"",A=Math.trunc(w/l.length),k=w%l.length===l.length-1;return g[A]||(g[A]=""),g[A]+=k?v:`${v.padStart(N.length,"0")}${e}`,g},[]);return{elementState:o,data:d?`${h[0]}${a.slice(a.indexOf(r))}`:h.join(t)}}}function f8(n){const e=new RegExp(`${un(n)}$`);return n?({value:t,selection:r},o)=>{if(!t&&!o.value.endsWith(n))return{value:t,selection:r};if(!t.endsWith(n)&&!o.value.endsWith(n))return{selection:r,value:t+n};const a=o.value.replace(e,""),l=o.selection[1]>a.length,d=o8(a,t);return{selection:r,value:Array.from(n).reverse().reduce((c,h,g)=>{const v=c.length-1-g,w=d[v]===h&&l;return c[v]!==h||w?c.slice(0,v+1)+h+c.slice(v+1):c},t)}}:ho}function Fh(n){return n?({value:e,selection:t},r)=>{if(e.startsWith(n)||!e&&!r.value.startsWith(n))return{value:e,selection:t};const[o,a]=t,l=Array.from(n).reduce((c,h,g)=>c[g]===h?c:c.slice(0,g)+h+c.slice(g),e),d=l.length-e.length;return{selection:[o+d,a+d],value:l}}:ho}function h8({dateModeTemplate:n,dateSegmentsSeparator:e,rangeSeparator:t=""}){return({elementState:r,data:o})=>{const{value:a,selection:l}=r;if(o===e)return{elementState:r,data:l[0]===a.length?o:""};const d=o.replaceAll(new RegExp(`[^\\d${un(e)}${t}]`,"g"),"");if(!d)return{elementState:r,data:""};const[c,h]=l;let g=h+o.length;const v=a.slice(0,c)+d+a.slice(g),w=Ch(v,n,t);let m="";const N=!!t&&v.includes(t);for(const k of w){const{validatedDateString:M,updatedSelection:j}=n8({dateString:k,dateModeTemplate:n,dateSegmentsSeparator:e,offset:m.length,selection:[c,g]});if(k&&!M)return{elementState:r,data:""};g=j[1],m+=N&&!m?M+t:M}const A=m.slice(c,g);return{elementState:{selection:l,value:m.slice(0,c)+A.split(e).map(k=>"0".repeat(k.length)).join(e)+m.slice(g)},data:A}}}function Wu(n,e,t){return(r,o)=>{const a=()=>e(r,o);return r.addEventListener(n,a,t),()=>r.removeEventListener(n,a,t)}}function p8(n){return(e,t)=>{const r=e.ownerDocument;let o=0;const a=()=>o++,l=()=>{o=Math.max(--o,0)},d=()=>{if(e.matches(":focus")){if(o)return r.addEventListener("mouseup",d,{once:!0,passive:!0});n(e,t)}};return r.addEventListener("selectionchange",d,{passive:!0}),e.addEventListener("focus",d,{passive:!0}),e.addEventListener("mousedown",a,{passive:!0}),r.addEventListener("mouseup",l,{passive:!0}),()=>{r.removeEventListener("selectionchange",d),e.removeEventListener("focus",d),e.removeEventListener("mousedown",a),r.removeEventListener("mouseup",l)}}}function g8(n){return p8(e=>{var t,r;const o=(t=e.selectionStart)!==null&&t!==void 0?t:0,a=(r=e.selectionEnd)!==null&&r!==void 0?r:0,[l,d]=n(e.value,[o,a]);(l>o||d{const{value:t,selection:r}=n;if(!t||y8(t,r))return{elementState:n};const[o,a]=r,l=t.slice(o,a).replaceAll(/\d/g,"0"),d=t.slice(0,o)+l+t.slice(a);return l.replaceAll(/\D/g,"")?e==="validation"||e==="insert"&&o===a?{elementState:{selection:r,value:d}}:{elementState:{selection:e==="deleteBackward"||e==="insert"?[o,o]:[a,a],value:d}}:{elementState:n}}}function y8(n,[e,t]){return t===n.length}function Dh({mode:n,separator:e=".",max:t,min:r}){const o=n.split("/").join(e);return Object.assign(Object.assign({},cs),{mask:Array.from(o).map(a=>e.includes(a)?a:/\d/),overwriteMode:"replace",preprocessors:[Rh(),m8(),c8({dateModeTemplate:o,dateSegmentsSeparator:e}),h8({dateModeTemplate:o,dateSegmentsSeparator:e})],postprocessors:[a8({dateModeTemplate:o,dateSegmentSeparator:e,splitFn:a=>({dateStrings:[a]}),uniteFn:([a=""])=>a}),d8({min:r,max:t,dateModeTemplate:o,dateSegmentSeparator:e})]})}function v8({prefix:n,postfix:e}){return({elementState:t,data:r})=>{const{cleanValue:o}=ar(r,{prefix:n,postfix:e});return{elementState:t,data:o}}}function Lh({decimalSeparator:n,isNegativeAllowed:e,maximumFractionDigits:t,thousandSeparator:r,prefix:o,postfix:a,decimalPseudoSeparators:l=[],pseudoMinuses:d=[],minusSign:c}){const h=Mh(o),g=String.raw`\d`,v=e?`[${c}${d.map(k=>`\\${k}`).join("")}]?`:"",w=r?`[${g}${un(r).replaceAll(/\s/g,String.raw`\s`)}]*`:`[${g}]*`,m=Number.isFinite(t)?t:"",N=t>0?`([${un(n)}${l.map(un).join("")}]${g}{0,${m}})?`:"",A=Mh(a);return new RegExp(`^${h}${v}${w}${N}${A}$`)}function Mh(n){return n?`${n.split("").map(e=>`${un(e)}?`).join("")}`:""}function Uu(n,e="."){const t=!!new RegExp(`^\\D*[${Mu}\\${Aa}${Oh}${kh}${Ah}]`).exec(n),r=un(e),o=n.replaceAll(new RegExp(`${r}(?!\\d)`,"g"),"").replaceAll(new RegExp(`[^\\d${r}]`,"g"),"").replace(e,e&&".");return o?+`${t?Aa:""}${o}`:NaN}function b8(n){var e;const t=String(n),[r="",o]=t.split("e-");let a=t;if(o){const[,l]=r.split("."),d=Number(o)+((e=l==null?void 0:l.length)!==null&&e!==void 0?e:0);a=n.toFixed(d)}return a}function Bh(n,{decimalSeparator:e,minusSign:t}){const[r="",o=""]=e?n.split(e):[n],a=un(t),[,l="",d=""]=new RegExp(`^(?:[^\\d${a}])?(${a})?(.*)`).exec(r)||[];return{minus:l,integerPart:d,decimalPart:o}}function $8({decimalSeparator:n,thousandSeparator:e,decimalPseudoSeparators:t=K5}){return t.filter(r=>r!==e&&r!==n)}function w8({decimalSeparator:n,minimumFractionDigits:e,prefix:t,postfix:r}){return e?({value:o,selection:a})=>{const{cleanValue:l,extractedPrefix:d,extractedPostfix:c}=ar(o,{prefix:t,postfix:r});if(Number.isNaN(Uu(l,n)))return{value:o,selection:a};const[h,g=""]=l.split(n);return{value:d+h+n+g.padEnd(e,"0")+c,selection:a}}:ho}function _8({prefix:n,postfix:e,decimalSeparator:t,minusSign:r}){return({value:o,selection:a})=>{const[l]=a,{cleanValue:d,extractedPrefix:c,extractedPostfix:h}=ar(o,{prefix:n,postfix:e}),{minus:g,integerPart:v,decimalPart:w}=Bh(d,{decimalSeparator:t,minusSign:r}),m=!v&&!w&&!!t&&d.includes(t);return!v&&!Number(w)&&l===(g+c).length||m?{selection:a,value:c+g+h}:{value:o,selection:a}}}function x8({decimalSeparator:n,decimalPseudoSeparators:e,pseudoMinuses:t,prefix:r,postfix:o,minusSign:a}){let l=!0;const d=Lh({decimalSeparator:n,decimalPseudoSeparators:e,pseudoMinuses:t,prefix:"",postfix:"",thousandSeparator:"",maximumFractionDigits:1/0,isNegativeAllowed:!0,minusSign:a});return({elementState:c,data:h})=>{if(!l)return{elementState:c,data:h};l=!1;const{value:g,selection:v}=c,[w,m]=v,{extractedPrefix:N,cleanValue:A,extractedPostfix:k}=ar(g,{prefix:r,postfix:o}),M=Eh({selection:[Math.max(w-N.length,0),Ri(m-N.length,0,A.length)],value:A},{mask:d}),[j,Z]=M.selection;return{elementState:{selection:[j+N.length,Z+N.length],value:N+M.value+k},data:h}}}function E8({decimalSeparator:n,thousandSeparator:e,prefix:t,postfix:r}){const o=l=>{const d=un(e);return l.replace(new RegExp(`^(\\D+)?[0${d}]+(?=0)`),"$1").replace(new RegExp(`^(\\D+)?[0${d}]+(?=[1-9])`),"$1")},a=(l,d)=>{const c=l.slice(0,d),h=l.slice(d).startsWith("0");return c.length-o(c).length+(h?1:0)};return({value:l,selection:d})=>{const[c,h]=d,{cleanValue:g,extractedPrefix:v,extractedPostfix:w}=ar(l,{prefix:t,postfix:r}),m=!!n&&g.includes(n),[N="",A=""]=n?g.split(n):[g],k=o(N);if(N===k)return{value:l,selection:d};const M=c-a(l,c),j=h-a(l,h);return{value:v+k+(m?n:"")+A+w,selection:[Math.max(M,0),Math.max(j,0)]}}}function S8({min:n,max:e,decimalSeparator:t,minusSign:r}){return({value:o,selection:a})=>{const l=Uu(o,t),d=l>0?Math.min(l,e):Math.max(l,n);if(l&&d!==l){const c=`${d}`.replace(".",t).replace(Aa,r);return{value:c,selection:[c.length,c.length]}}return{value:o,selection:a}}}function C8({decimalSeparator:n,thousandSeparator:e,minimumFractionDigits:t}){return({elementState:r,data:o},a)=>{const{value:l,selection:d}=r,[c,h]=d,g=l.slice(c,h),v=t?[n,e]:[e],w=!!t&&c>l.indexOf(n)&&!!g.match(/^0+$/gi);return a!=="deleteBackward"&&a!=="deleteForward"||!v.includes(g)&&!w?{elementState:r,data:o}:{elementState:{value:l,selection:a==="deleteForward"?[h,h]:[c,c]},data:o}}}function N8({decimalSeparator:n,maximumFractionDigits:e,prefix:t,postfix:r}){const o=new RegExp(`^\\D*${un(n)}`);return({elementState:a,data:l})=>{const{value:d,selection:c}=a,{cleanValue:h,extractedPrefix:g}=ar(d,{prefix:t,postfix:r}),[v,w]=c,m=Ri(v-g.length,0,h.length),N=Ri(w-g.length,0,h.length);if(e<=0||h.slice(0,m).includes(n)||h.slice(N).includes(n)||!l.match(o))return{elementState:a,data:l};const A=/\d+/.exec(h.slice(0,m));return{elementState:a,data:A?l:`0${l}`}}}function Wh({validCharacter:n,pseudoCharacters:e,prefix:t,postfix:r}){const o=new RegExp(`[${e.join("")}]`,"gi");return({elementState:a,data:l})=>{const{value:d,selection:c}=a,{cleanValue:h,extractedPostfix:g,extractedPrefix:v}=ar(d,{prefix:t,postfix:r});return{elementState:{selection:c,value:v+h.replace(o,n)+g},data:l.replace(o,n)}}}function T8({decimalSeparator:n,prefix:e,postfix:t}){return n?({elementState:r,data:o})=>{const{value:a,selection:l}=r,[d,c]=l,{cleanValue:h}=ar(a,{prefix:e,postfix:t});return{elementState:r,data:!h.includes(n)||a.slice(d,c+1).includes(n)?o:o.replaceAll(new RegExp(un(n),"gi"),"")}}:ho}function O8({thousandSeparator:n,decimalSeparator:e,prefix:t,postfix:r,minusSign:o}){if(!n)return ho;const a=(...l)=>l.every(d=>/\s/.test(d));return({value:l,selection:d})=>{const[c,h]=d;let[g,v]=d;const{cleanValue:w,extractedPostfix:m,extractedPrefix:N}=ar(l,{prefix:t,postfix:r}),{minus:A,integerPart:k,decimalPart:M}=Bh(w,{decimalSeparator:e,minusSign:o}),j=e&&w.includes(e),Z=w.length-(A+k+(j?e+M:"")).length;Z>0&&c&&c<=Z&&(g-=Z),Z>0&&h&&h<=Z&&(v-=Z);const q=Array.from(k).reduceRight((V,K,L)=>{const X=!(!L&&K===n)&&!!V.length&&(V.length+1)%4===0,me=K===n||a(K,n);return X&&me?n+V:!X&&me?(L&&L<=c&&g--,L&&L<=h&&v--,V):X?(L0||!e)return ho;const o=new RegExp(`${un(e)}.*$`,"g");return({elementState:a,data:l})=>{const{value:d,selection:c}=a,{cleanValue:h,extractedPrefix:g,extractedPostfix:v}=ar(d,{prefix:t,postfix:r}),[w,m]=c,N=g+h.replace(o,"")+v;return{elementState:{selection:[Math.min(w,N.length),Math.min(m,N.length)],value:N},data:l.replace(o,"")}}}const Uh=[0,0];function A8({decimalSeparator:n,thousandSeparator:e,prefix:t,postfix:r}){const o=E8({decimalSeparator:n,thousandSeparator:e,prefix:t,postfix:r});return Wu("blur",a=>{const l=o({value:a.value,selection:Uh},{value:"",selection:Uh}).value;Du(a,l)},{capture:!0})}function P8({min:n,max:e,decimalSeparator:t}){return Wu("blur",(r,o)=>{const a=Uu(r.value,t),l=Ri(a,n,e);!Number.isNaN(a)&&a!==l&&Du(r,Eh(b8(l),o))},{capture:!0})}function I8({decimalSeparator:n,prefix:e,postfix:t}){return n?Wu("blur",r=>{const{cleanValue:o,extractedPostfix:a,extractedPrefix:l}=ar(r.value,{prefix:e,postfix:t}),d=l+o.replace(new RegExp(`^(\\D+)?${un(n)}`),`$10${n}`)+a;Du(r,d)},{capture:!0}):r8}function Hh({max:n=Number.MAX_SAFE_INTEGER,min:e=Number.MIN_SAFE_INTEGER,precision:t=0,thousandSeparator:r=Q5,decimalSeparator:o=".",decimalPseudoSeparators:a,decimalZeroPadding:l=!1,prefix:d="",postfix:c="",minusSign:h=Mu,maximumFractionDigits:g=t,minimumFractionDigits:v=l?g:0}={}){const w=[Aa,Oh,kh,Ah,Mu].filter(k=>k!==r&&k!==o&&k!==h),m=$8({decimalSeparator:o,thousandSeparator:r,decimalPseudoSeparators:a}),N=d.endsWith(o)&&g>0?`${d}${e8}`:d,A=x8({decimalSeparator:o,decimalPseudoSeparators:m,pseudoMinuses:w,prefix:N,postfix:c,minusSign:h});return o=g<=0&&o===r?"":o,Object.assign(Object.assign({},cs),{mask:Lh({decimalSeparator:o,maximumFractionDigits:g,thousandSeparator:r,prefix:N,postfix:c,isNegativeAllowed:e<0,minusSign:h}),preprocessors:[Rh(),A,v8({prefix:N,postfix:c}),Wh({validCharacter:h,pseudoCharacters:w,prefix:N,postfix:c}),Wh({validCharacter:o,pseudoCharacters:m,prefix:N,postfix:c}),N8({decimalSeparator:o,maximumFractionDigits:g,prefix:N,postfix:c}),C8({decimalSeparator:o,minimumFractionDigits:v,thousandSeparator:r}),k8({maximumFractionDigits:g,decimalSeparator:o,prefix:N,postfix:c}),T8({decimalSeparator:o,prefix:N,postfix:c})],postprocessors:[S8({decimalSeparator:o,min:e,max:n,minusSign:h}),Fh(N),f8(c),O8({decimalSeparator:o,thousandSeparator:r,prefix:N,postfix:c,minusSign:h}),w8({decimalSeparator:o,prefix:N,postfix:c,minimumFractionDigits:Math.min(v,g)}),_8({prefix:N,postfix:c,decimalSeparator:o,minusSign:h})],plugins:[A8({decimalSeparator:o,thousandSeparator:r,prefix:N,postfix:c}),I8({decimalSeparator:o,prefix:N,postfix:c}),P8({min:e,max:n,decimalSeparator:o})],overwriteMode:v>0?({value:k,selection:[M]})=>M<=k.indexOf(o)?"shift":"replace":"shift"})}Dh({mode:"mm/dd/yyyy",separator:"/"}),Dh({mode:"mm/dd",separator:"/"});var Pa=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,a;rl)return 1;if(l>a)return-1;if(!isNaN(a)&&isNaN(l))return 1;if(isNaN(a)&&!isNaN(l))return-1}return n[1]&&e[1]?n[1]>e[1]?1:n[1]=Gu&&u9.test(n)}function c9(n){return a9.test(n)}var Jh=new RegExp("(?:"+Kh()+")$","i");function f9(n){var e=n.search(Jh);if(e<0)return{};for(var t=n.slice(0,e),r=n.match(Jh),o=1;o=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p9(n,e){if(n){if(typeof n=="string")return Xh(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Xh(n,e)}}function Xh(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y9(n,e){if(n){if(typeof n=="string")return e1(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return e1(n,e)}}function e1(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);ta?"TOO_SHORT":o[o.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function $9(n,e,t){if(e===void 0&&(e={}),t=new Zt(t),e.v2){if(!n.countryCallingCode)throw new Error("Invalid phone number object passed");t.selectNumberingPlan(n.countryCallingCode)}else{if(!n.phone)return!1;if(n.country){if(!t.hasCountry(n.country))throw new Error("Unknown country: ".concat(n.country));t.country(n.country)}else{if(!n.countryCallingCode)throw new Error("Invalid phone number object passed");t.selectNumberingPlan(n.countryCallingCode)}}if(t.possibleLengths())return n1(n.phone||n.nationalNumber,t);if(n.countryCallingCode&&t.isNonGeographicCallingCode(n.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function n1(n,e){switch(ys(n,e)){case"IS_POSSIBLE":return!0;default:return!1}}function Mr(n,e){return n=n||"",new RegExp("^(?:"+e+")$").test(n)}function w9(n,e){var t=typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=_9(n))||e){t&&(n=t);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _9(n,e){if(n){if(typeof n=="string")return r1(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r1(n,e)}}function r1(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0}function i1(n){return n.replace(new RegExp("[".concat(lr,"]+"),"g")," ").trim()}var o1=/(\$\d)/;function s1(n,e,t){var r=t.useInternationalFormat,o=t.withNationalPrefix;t.carrierCode,t.metadata;var a=n.replace(new RegExp(e.pattern()),r?e.internationalFormat():o&&e.nationalPrefixFormattingRule()?e.format().replace(o1,e.nationalPrefixFormattingRule()):e.format());return r?i1(a):a}var N9=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function T9(n,e,t){var r=new Zt(t);if(r.selectNumberingPlan(n,e),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(N9.test(r.IDDPrefix()))return r.IDDPrefix()}function O9(n){var e=n.number,t=n.ext;if(!e)return"";if(e[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(t?";ext="+t:"")}function k9(n,e){var t=typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=A9(n))||e){t&&(n=t);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A9(n,e){if(n){if(typeof n=="string")return a1(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a1(n,e)}}function a1(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t0){var a=o.leadingDigitsPatterns()[o.leadingDigitsPatterns().length-1];if(e.search(a)!==0)continue}if(Mr(e,o.pattern()))return o}}function qu(n,e,t,r){return e?r(n,e,t):n}function F9(n,e,t,r,o){var a=ms(r,o.metadata);if(a===t){var l=Ma(n,e,"NATIONAL",o);return t==="1"?t+" "+l:l}var d=T9(r,void 0,o.metadata);if(d)return"".concat(d," ").concat(t," ").concat(Ma(n,null,"INTERNATIONAL",o))}function c1(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,r)}return t}function f1(n){for(var e=1;e0&&l[1]==="0"))return n}}}function Yu(n,e){if(n&&e.numberingPlan.nationalPrefixForParsing()){var t=new RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),r=t.exec(n);if(r){var o,a,l=r.length-1,d=l>0&&r[l];if(e.nationalPrefixTransformRule()&&d)o=n.replace(t,e.nationalPrefixTransformRule()),l>1&&(a=r[1]);else{var c=r[0];o=n.slice(c.length),d&&(a=r[1])}var h;if(d){var g=n.indexOf(r[1]),v=n.slice(0,g);v===e.numberingPlan.nationalPrefix()&&(h=e.numberingPlan.nationalPrefix())}else h=r[0];return{nationalNumber:o,nationalPrefix:h,carrierCode:a}}}return{nationalNumber:n}}function Ku(n,e){var t=Yu(n,e),r=t.carrierCode,o=t.nationalNumber;if(o!==n){if(!z9(n,o,e))return{nationalNumber:n};if(e.possibleLengths()&&!G9(o,e))return{nationalNumber:n}}return{nationalNumber:o,carrierCode:r}}function z9(n,e,t){return!(Mr(n,t.nationalNumberPattern())&&!Mr(e,t.nationalNumberPattern()))}function G9(n,e){switch(ys(n,e)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function g1(n,e,t,r){var o=e?ms(e,r):t;if(n.indexOf(o)===0){r=new Zt(r),r.selectNumberingPlan(e,t);var a=n.slice(o.length),l=Ku(a,r),d=l.nationalNumber,c=Ku(n,r),h=c.nationalNumber;if(!Mr(h,r.nationalNumberPattern())&&Mr(d,r.nationalNumberPattern())||ys(h,r)==="TOO_LONG")return{countryCallingCode:o,number:a}}return{number:n}}function m1(n,e,t,r){if(!n)return{};var o;if(n[0]!=="+"){var a=p1(n,e,t,r);if(a&&a!==n)o=!0,n="+"+a;else{if(e||t){var l=g1(n,e,t,r),d=l.countryCallingCode,c=l.number;if(d)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:d,number:c}}return{number:n}}}if(n[1]==="0")return{};r=new Zt(r);for(var h=2;h-1<=U8&&h<=n.length;){var g=n.slice(1,h);if(r.hasCallingCode(g))return r.selectNumberingPlan(g),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:g,number:n.slice(h)};h++}return{}}function V9(n,e){var t=typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=Z9(n))||e){t&&(n=t);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z9(n,e){if(n){if(typeof n=="string")return y1(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return y1(n,e)}}function y1(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length)return"";var r=n.indexOf(";",t);return r>=0?n.substring(t,r):n.substring(t)}function ry(n){return n===null?!0:n.length===0?!1:Y9.test(n)||ey.test(n)}function iy(n,e){var t=e.extractFormattedPhoneNumber,r=ny(n);if(!ry(r))throw new Lr("NOT_A_NUMBER");var o;if(r===null)o=t(n)||"";else{o="",r.charAt(0)===$1&&(o+=r);var a=n.indexOf(_1),l;a>=0?l=a+_1.length:l=0;var d=n.indexOf(Xu);o+=n.substring(l,d)}var c=o.indexOf(ty);if(c>0&&(o=o.substring(0,c)),o!=="")return o}var oy=250,sy=new RegExp("["+Ra+yn+"]"),ay=new RegExp("[^"+yn+"#]+$");function ly(n,e,t){if(e=e||{},t=new Zt(t),e.defaultCountry&&!t.hasCountry(e.defaultCountry))throw e.v2?new Lr("INVALID_COUNTRY"):new Error("Unknown country: ".concat(e.defaultCountry));var r=dy(n,e.v2,e.extract),o=r.number,a=r.ext,l=r.error;if(!o){if(e.v2)throw l==="TOO_SHORT"?new Lr("TOO_SHORT"):new Lr("NOT_A_NUMBER");return{}}var d=fy(o,e.defaultCountry,e.defaultCallingCode,t),c=d.country,h=d.nationalNumber,g=d.countryCallingCode,v=d.countryCallingCodeSource,w=d.carrierCode;if(!t.hasSelectedNumberingPlan()){if(e.v2)throw new Lr("INVALID_COUNTRY");return{}}if(!h||h.lengthW8){if(e.v2)throw new Lr("TOO_LONG");return{}}if(e.v2){var m=new h1(g,h,t.metadata);return c&&(m.country=c),w&&(m.carrierCode=w),a&&(m.ext=a),m.__countryCallingCodeSource=v,m}var N=(e.extended?t.hasSelectedNumberingPlan():c)?Mr(h,t.nationalNumberPattern()):!1;return e.extended?{country:c,countryCallingCode:g,carrierCode:w,valid:N,possible:N?!0:!!(e.extended===!0&&t.possibleLengths()&&n1(h,t)),phone:h,ext:a}:N?cy(c,h,a):{}}function uy(n,e,t){if(n){if(n.length>oy){if(t)throw new Lr("TOO_LONG");return}if(e===!1)return n;var r=n.search(sy);if(!(r<0))return n.slice(r).replace(ay,"")}}function dy(n,e,t){var r=iy(n,{extractFormattedPhoneNumber:function(l){return uy(l,t,e)}});if(!r)return{};if(!d9(r))return c9(r)?{error:"TOO_SHORT"}:{};var o=f9(r);return o.ext?o:{number:r}}function cy(n,e,t){var r={country:n,phone:e};return t&&(r.ext=t),r}function fy(n,e,t,r){var o=m1(t1(n),e,t,r.metadata),a=o.countryCallingCodeSource,l=o.countryCallingCode,d=o.number,c;if(l)r.selectNumberingPlan(l);else if(d&&(e||t))r.selectNumberingPlan(e,t),e&&(c=e),l=t||ms(e,r.metadata);else return{};if(!d)return{countryCallingCodeSource:a,countryCallingCode:l};var h=Ku(t1(d),r),g=h.nationalNumber,v=h.carrierCode,w=b1(l,{nationalNumber:g,defaultCountry:e,metadata:r});return w&&(c=w,w==="001"||r.country(c)),{country:c,countryCallingCode:l,countryCallingCodeSource:a,nationalNumber:g,carrierCode:v}}function x1(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,r)}return t}function E1(n){for(var e=1;en.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ny(n,e){if(n){if(typeof n=="string")return P1(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return P1(n,e)}}function P1(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t1;)e&1&&(t+=n),e>>=1,n+=n;return t+n}function I1(n,e){return n[e]===")"&&e++,Ty(n.slice(0,e))}function Ty(n){for(var e=[],t=0;t=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uy(n,e){if(n){if(typeof n=="string")return D1(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return D1(n,e)}}function D1(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t1&&arguments[1]!==void 0?arguments[1]:{},o=r.allowOverflow;if(!t)throw new Error("String is required");var a=nd(t.split(""),this.matchTree,!0);if(a&&a.match&&delete a.matchedChars,!(a&&a.overflow&&!o))return a}}]),n}();function nd(n,e,t){if(typeof e=="string"){var r=n.join("");return e.indexOf(r)===0?n.length===e.length?{match:!0,matchedChars:n}:{partialMatch:!0}:r.indexOf(e)===0?t&&n.length>e.length?{overflow:!0}:{match:!0,matchedChars:n.slice(0,e.length)}:void 0}if(Array.isArray(e)){for(var o=n.slice(),a=0;a=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zy(n,e){if(n){if(typeof n=="string")return M1(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return M1(n,e)}}function M1(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0)){var o=this.getTemplateForFormat(t,r);if(o)return this.setNationalNumberTemplate(o,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(t){return this.isNANP||t&&t.nationalPrefixFormattingRule()&&Xy.test(t.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(t,r){var o=t.IDDPrefix,a=t.missingPlus;return o?r&&r.spacing===!1?o:o+" ":a?"":"+"}},{key:"getTemplate",value:function(t){if(this.template){for(var r=-1,o=0,a=t.international?this.getInternationalPrefixBeforeCountryCallingCode(t,{spacing:!1}):"";oh.length)){var g=new RegExp("^"+c+"$"),v=o.replace(/\d/g,rd);g.test(v)&&(h=v);var w=this.getFormatFormat(t,a),m;if(this.shouldTryNationalPrefixFormattingRule(t,{international:a,nationalPrefix:l})){var N=w.replace(o1,t.nationalPrefixFormattingRule());if(La(t.nationalPrefixFormattingRule())===(l||"")+La("$1")&&(w=N,m=!0,l))for(var A=l.length;A>0;)w=w.replace(/\d/,ur),A--}var k=h.replace(new RegExp(c),w).replace(new RegExp(rd,"g"),ur);return m||(d?k=Ba(ur,d.length)+" "+k:l&&(k=Ba(ur,l.length)+this.getSeparatorAfterNationalPrefix(t)+k)),a&&(k=i1(k)),k}}},{key:"formatNextNationalNumberDigits",value:function(t){var r=Oy(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,t);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],I1(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(t,r){var o=r.international,a=r.nationalPrefix;if(t.nationalPrefixFormattingRule()){var l=t.usesNationalPrefix();if(l&&a||!l&&!o)return!0}}}]),n}();function W1(n,e){return sv(n)||ov(n,e)||iv(n,e)||rv()}function rv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iv(n,e){if(n){if(typeof n=="string")return U1(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return U1(n,e)}}function U1(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=3;if(r.appendDigits(t),a&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(t);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(l){return r.update(l)})}},{key:"isWaitingForCountryCallingCode",value:function(t){var r=t.international,o=t.callingCode;return r&&!o}},{key:"extractCountryCallingCode",value:function(t){var r=m1("+"+t.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),o=r.countryCallingCode,a=r.number;if(o)return t.setCallingCode(o),t.update({nationalSignificantNumber:a}),!0}},{key:"reset",value:function(t){if(t){this.hasSelectedNumberingPlan=!0;var r=t._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&pv.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(t,r){if(this.hasSelectedNumberingPlan){var o=Yu(t,this.metadata),a=o.nationalPrefix,l=o.nationalNumber,d=o.carrierCode;if(l!==t)return this.onExtractedNationalNumber(a,d,l,t,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(t,r,o){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(t,o);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var a=Yu(t,this.metadata),l=a.nationalPrefix,d=a.nationalNumber,c=a.carrierCode;if(d!==r)return this.onExtractedNationalNumber(l,c,d,t,o),!0}}},{key:"onExtractedNationalNumber",value:function(t,r,o,a,l){var d,c,h=a.lastIndexOf(o);if(h>=0&&h===a.length-o.length){c=!0;var g=a.slice(0,h);g!==t&&(d=g)}l({nationalPrefix:t,carrierCode:r,nationalSignificantNumber:o,nationalSignificantNumberMatchesInput:c,complexPrefixBeforeNationalSignificantNumber:d}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(t){if(this.extractAnotherNationalSignificantNumber(t.getNationalDigits(),t.nationalSignificantNumber,function(r){return t.update(r)}))return!0;if(this.extractIddPrefix(t))return this.extractCallingCodeAndNationalSignificantNumber(t),!0;if(this.fixMissingPlus(t))return this.extractCallingCodeAndNationalSignificantNumber(t),!0}},{key:"extractIddPrefix",value:function(t){var r=t.international,o=t.IDDPrefix,a=t.digits;if(t.nationalSignificantNumber,!(r||o)){var l=p1(a,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(l!==void 0&&l!==a)return t.update({IDDPrefix:a.slice(0,a.length-l.length)}),this.startInternationalNumber(t,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(t){if(!t.international){var r=g1(t.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),o=r.countryCallingCode;if(r.number,o)return t.update({missingPlus:!0}),this.startInternationalNumber(t,{country:t.country,callingCode:o}),!0}}},{key:"startInternationalNumber",value:function(t,r){var o=r.country,a=r.callingCode;t.startInternationalNumber(o,a),t.nationalSignificantNumber&&(t.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(t){this.extractCountryCallingCode(t)&&this.extractNationalSignificantNumber(t.getNationalDigits(),function(r){return t.update(r)})}}]),n}();function mv(n){var e=n.search(fv);if(!(e<0)){n=n.slice(e);var t;return n[0]==="+"&&(t=!0,n=n.slice(1)),n=n.replace(hv,""),t&&(n="+"+n),n}}function yv(n){var e=mv(n)||"";return e[0]==="+"?[e.slice(1),!0]:[e]}function vv(n){var e=yv(n),t=W1(e,2),r=t[0],o=t[1];return cv.test(r)||(r=""),[r,o]}function bv(n,e){return xv(n)||_v(n,e)||wv(n,e)||$v()}function $v(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wv(n,e){if(n){if(typeof n=="string")return H1(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return H1(n,e)}}function H1(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t1}},{key:"determineTheCountry",value:function(){this.state.setCountry(b1(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var t=this.state,r=t.digits,o=t.callingCode,a=t.country,l=t.nationalSignificantNumber;if(r){if(this.isInternational())return o?"+"+o+l:"+"+r;if(a||o){var d=a?this.metadata.countryCallingCode():o;return"+"+d+l}}}},{key:"getNumber",value:function(){var t=this.state,r=t.nationalSignificantNumber,o=t.carrierCode,a=t.callingCode,l=this._getCountry();if(r&&!(!l&&!a)){if(l&&l===this.defaultCountry){var d=new Zt(this.metadata.metadata);d.selectNumberingPlan(l);var c=d.numberingPlan.callingCode(),h=this.metadata.getCountryCodesForCallingCode(c);if(h.length>1){var g=v1(r,{countries:h,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});g&&(l=g)}}var v=new h1(l||a,r,this.metadata.metadata);return o&&(v.carrierCode=o),v}}},{key:"isPossible",value:function(){var t=this.getNumber();return t?t.isPossible():!1}},{key:"isValid",value:function(){var t=this.getNumber();return t?t.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),n}();const Nv="x";function Tv({countryIsoCode:n,metadata:e}){let t=!0;return({elementState:r,data:o})=>{if(!t)return{elementState:r,data:o};const{value:a,selection:l}=r;t=!1;try{const d=Qu(a,n,e);return{elementState:{value:`+${ms(n,e)} ${d.nationalNumber}`,selection:l}}}catch(d){return{elementState:r}}}}function z1({phone:n,metadata:e}){return A1(n,e)==="TOO_LONG"?z1({phone:n.slice(0,n.length-1),metadata:e}):n}function G1({value:n,template:e,prefix:t}){return[...t,...e?e.slice(t.length).split("").map(r=>r===Nv||/\d/.test(r)?/\d/:r):new Array(Math.max(n.length-t.length,t.length)).fill(/\d/)]}function V1(n,e,t){n.input(e.replaceAll(/[^\d+]/g,""));const r=n.getTemplate(),o=r.split(" "),a=o.length>1?`${o.slice(0,2).join(" ")} ${o.slice(2).join(t)}`:r;return n.reset(),a.trim()}function Z1({currentTemplate:n,newTemplate:e,currentPhoneLength:t,newPhoneLength:r}){return e.lengtht?n:e}const Ov=3;function j1(n){return({value:e,selection:t})=>({value:e.length>Ov?z1({phone:e,metadata:n}):e,selection:t})}function q1({prefix:n,countryIsoCode:e,metadata:t}){return({elementState:r,data:o})=>{var a;const{selection:l,value:d}=r,[c]=l,h=c{const c=V1(r,d,t),h=d.replaceAll(/\D/g,"").length;return a=Z1({currentTemplate:a,newTemplate:c,currentPhoneLength:l,newPhoneLength:h}),l=h,a.length===1?["+",/\d/]:G1({value:d,template:a,prefix:o})},preprocessors:[q1({prefix:o,countryIsoCode:n,metadata:e})],postprocessors:[j1(e)]})}function Av({countryIsoCode:n,metadata:e,separator:t="-"}){const r=ms(n,e),o=new id(n,e),a=`+${r} `;let l="",d=0;return Object.assign(Object.assign({},cs),{mask:({value:c})=>{const h=V1(o,c,t),g=c.replaceAll(/\D/g,"").length;return l=Z1({currentTemplate:l,newTemplate:h,currentPhoneLength:d,newPhoneLength:g}),d=g,G1({value:c,template:l,prefix:a})},plugins:[g8((c,[h,g])=>[h===g?a.length:0,c.length])],preprocessors:[Tv({countryIsoCode:n,metadata:e}),q1({prefix:a,countryIsoCode:n,metadata:e})],postprocessors:[Fh(a),j1(e)]})}function Pv({countryIsoCode:n,metadata:e,strict:t=!0,separator:r="-"}){return t&&n?Av({countryIsoCode:n,metadata:e,separator:r}):kv({defaultIsoCode:n,metadata:e,separator:r})}Pv({metadata:{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]],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"]]]],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"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],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"],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"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],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"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],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(?: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"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],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",0,"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"],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"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],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"],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"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],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"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\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"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],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)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\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"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],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"]]]],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,0,"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"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],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-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,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"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],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]"]]]],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"],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"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],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{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[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[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"]]]],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"]]]],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,0,"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]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],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))"],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"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],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]"],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-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,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]"]]]],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"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],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"],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"],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"]]]],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"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],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]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],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]",0,"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,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],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"],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"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|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"],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"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],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","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{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],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]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\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]"]]]],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"]]]],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"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],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]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],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,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,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"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],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"],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"],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"],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"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],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|83)|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]|8[124-6])\\d|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",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],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"],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"],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,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","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"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|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",["7"],"0$1"]],"0"],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[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],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"],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"],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"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],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"],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))?"],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]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"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",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],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-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],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"],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"],LR:["231","00","(?:[245]\\d|33|77|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"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],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]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-4]|5[01]|8[0-3]))\\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]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],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"],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"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\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"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],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"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],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"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"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"],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]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[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"],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]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],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,0,"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,0,"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"],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,0,"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"],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"]]]],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"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],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]"]]]],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"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\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"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],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"],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]"],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"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],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,0,"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]"]]]],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"]]]],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,0,"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"]]]],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,0,"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"],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"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"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"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],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"],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]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,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",["[26]1|3[289]|4[1246-8]|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"],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[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-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,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|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-5]|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,0,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"],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,"3[04-689]|[489]",0,"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"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[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{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],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])"]]]],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,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],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"],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"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],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,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],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"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],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"],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]"]]]],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]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\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-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\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",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],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"],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"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],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"],TJ:["992","810","[0-57-9]\\d{8}",[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",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],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"]]]],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,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],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]"]]]],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-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|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"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],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"]]]],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{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?: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,0,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"],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,0,"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"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468]))\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\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,0,"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]"]]]],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"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],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"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],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"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],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"]]]],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"]]]],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"],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"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?: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"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],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"]},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|51"]],["(\\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})|50\\d{3})\\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}"]]]}},strict:!1});var od;(function(n){n.DEMO="demo",n.DEV="dev",n.PREVIEW="preview",n.PRODUCTION="production"})(od||(od={}));var Iv=function(){return od.DEV};const Y1=Object.prototype.toString;function K1(n){switch(Y1.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ha(n,Error)}}function vs(n,e){return Y1.call(n)===`[object ${e}]`}function sd(n){return vs(n,"ErrorEvent")}function J1(n){return vs(n,"DOMError")}function Rv(n){return vs(n,"DOMException")}function ad(n){return vs(n,"String")}function ld(n){return typeof n=="object"&&n!==null&&"__sentry_template_string__"in n&&"__sentry_template_values__"in n}function ud(n){return n===null||ld(n)||typeof n!="object"&&typeof n!="function"}function go(n){return vs(n,"Object")}function Wa(n){return typeof Event!="undefined"&&Ha(n,Event)}function Fv(n){return typeof Element!="undefined"&&Ha(n,Element)}function Ua(n){return!!(n&&n.then&&typeof n.then=="function")}function Dv(n){return go(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}function Lv(n){return typeof n=="number"&&n!==n}function Ha(n,e){try{return n instanceof e}catch(t){return!1}}function Mv(n){return!!(typeof n=="object"&&n!==null&&(n.__isVue||n._isVue))}function bs(n,e=0){return typeof n!="string"||e===0||n.length<=e?n:`${n.slice(0,e)}...`}function za(n){return n&&n.Math==Math?n:void 0}const Pt=typeof globalThis=="object"&&za(globalThis)||typeof window=="object"&&za(window)||typeof self=="object"&&za(self)||typeof global=="object"&&za(global)||function(){return this}()||{};function Bv(){return Pt}function X1(n,e,t){const r=t||Pt,o=r.__SENTRY__=r.__SENTRY__||{};return o[n]||(o[n]=e())}const Q1=Bv(),Wv=80;function Uv(n,e={}){if(!n)return"";try{let t=n;const r=5,o=[];let a=0,l=0;const d=" > ",c=d.length;let h;const g=Array.isArray(e)?e:e.keyAttrs,v=!Array.isArray(e)&&e.maxStringLength||Wv;for(;t&&a++1&&l+o.length*c+h.length>=v));)o.push(h),l+=h.length,t=t.parentNode;return o.reverse().join(d)}catch(t){return""}}function Hv(n,e){const t=n,r=[];let o,a,l,d,c;if(!t||!t.tagName)return"";if(Q1.HTMLElement&&t instanceof HTMLElement&&t.dataset&&t.dataset.sentryComponent)return t.dataset.sentryComponent;r.push(t.tagName.toLowerCase());const h=e&&e.length?e.filter(v=>t.getAttribute(v)).map(v=>[v,t.getAttribute(v)]):null;if(h&&h.length)h.forEach(v=>{r.push(`[${v[0]}="${v[1]}"]`)});else if(t.id&&r.push(`#${t.id}`),o=t.className,o&&ad(o))for(a=o.split(/\s+/),c=0;c{const a=t2[o];t[o]=e[o],e[o]=a});try{return n()}finally{r.forEach(o=>{e[o]=t[o]})}}function Vv(){let n=!1;const e={enable:()=>{n=!0},disable:()=>{n=!1},isEnabled:()=>n};return Ga?e2.forEach(t=>{e[t]=(...r)=>{n&&dd(()=>{Pt.console[t](`${Gv}[${t}]:`,...r)})}}):e2.forEach(t=>{e[t]=()=>{}}),e}const Ie=Vv(),Zv=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function jv(n){return n==="http"||n==="https"}function $s(n,e=!1){const{host:t,path:r,pass:o,port:a,projectId:l,protocol:d,publicKey:c}=n;return`${d}://${c}${e&&o?`:${o}`:""}@${t}${a?`:${a}`:""}/${r&&`${r}/`}${l}`}function qv(n){const e=Zv.exec(n);if(!e){dd(()=>{console.error(`Invalid Sentry Dsn: ${n}`)});return}const[t,r,o="",a,l="",d]=e.slice(1);let c="",h=d;const g=h.split("/");if(g.length>1&&(c=g.slice(0,-1).join("/"),h=g.pop()),h){const v=h.match(/^\d+/);v&&(h=v[0])}return n2({host:a,pass:o,path:c,projectId:h,port:l,protocol:t,publicKey:r})}function n2(n){return{protocol:n.protocol,publicKey:n.publicKey||"",pass:n.pass||"",host:n.host,port:n.port||"",path:n.path||"",projectId:n.projectId}}function Yv(n){if(!Ga)return!0;const{port:e,projectId:t,protocol:r}=n;return["protocol","publicKey","host","projectId"].find(l=>n[l]?!1:(Ie.error(`Invalid Sentry Dsn: ${l} missing`),!0))?!1:t.match(/^\d+$/)?jv(r)?e&&isNaN(parseInt(e,10))?(Ie.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(Ie.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Ie.error(`Invalid Sentry Dsn: Invalid projectId ${t}`),!1)}function Kv(n){const e=typeof n=="string"?qv(n):n2(n);if(!(!e||!Yv(e)))return e}class _r extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Jv(n,e,t){try{Object.defineProperty(n,e,{value:t,writable:!0,configurable:!0})}catch(r){Ga&&Ie.log(`Failed to add non-enumerable property "${e}" to object`,n)}}function Xv(n){return Object.keys(n).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`).join("&")}function r2(n){if(K1(n))return C({message:n.message,name:n.name,stack:n.stack},o2(n));if(Wa(n)){const e=C({type:n.type,target:i2(n.target),currentTarget:i2(n.currentTarget)},o2(n));return typeof CustomEvent!="undefined"&&Ha(n,CustomEvent)&&(e.detail=n.detail),e}else return n}function i2(n){try{return Fv(n)?Uv(n):Object.prototype.toString.call(n)}catch(e){return""}}function o2(n){if(typeof n=="object"&&n!==null){const e={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e}else return{}}function Qv(n,e=40){const t=Object.keys(r2(n));if(t.sort(),!t.length)return"[object has no keys]";if(t[0].length>=e)return bs(t[0],e);for(let r=t.length;r>0;r--){const o=t.slice(0,r).join(", ");if(!(o.length>e))return r===t.length?o:bs(o,e)}return""}function Br(n){return cd(n,new Map)}function cd(n,e){if(e7(n)){const t=e.get(n);if(t!==void 0)return t;const r={};e.set(n,r);for(const o of Object.keys(n))typeof n[o]!="undefined"&&(r[o]=cd(n[o],e));return r}if(Array.isArray(n)){const t=e.get(n);if(t!==void 0)return t;const r=[];return e.set(n,r),n.forEach(o=>{r.push(cd(o,e))}),r}return n}function e7(n){if(!go(n))return!1;try{const e=Object.getPrototypeOf(n).constructor.name;return!e||e==="Object"}catch(e){return!0}}const s2=50,a2=/\(error: (.*)\)/,l2=/captureMessage|captureException/;function t7(...n){const e=n.sort((t,r)=>t[0]-r[0]).map(t=>t[1]);return(t,r=0)=>{const o=[],a=t.split(` `);for(let l=r;l1024)continue;const c=a2.test(d)?d.replace(a2,"$1"):d;if(!c.match(/\S*Error: /)){for(const h of e){const g=h(c);if(g){o.push(g);break}}if(o.length>=s2)break}}return n7(o)}}function n7(n){if(!n.length)return[];const e=Array.from(n);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),l2.test(e[e.length-1].function||"")&&(e.pop(),l2.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,s2).map(t=>Se(C({},t),{filename:t.filename||e[e.length-1].filename,function:t.function||"?"}))}const fd="";function u2(n){try{return!n||typeof n!="function"?fd:n.name||fd}catch(e){return fd}}const Va={},d2={};function c2(n,e){Va[n]=Va[n]||[],Va[n].push(e)}function f2(n,e){d2[n]||(e(),d2[n]=!0)}function h2(n,e){const t=n&&Va[n];if(t)for(const r of t)try{r(e)}catch(o){Ga&&Ie.error(`Error while triggering instrumentation handler. Type: ${n} Name: ${u2(r)} Error:`,o)}}function dr(){const n=Pt,e=n.crypto||n.msCrypto;let t=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(t=()=>{const r=new Uint8Array(1);return e.getRandomValues(r),r[0]})}catch(r){}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(t()&15)>>r/4).toString(16))}function r7(n){return n.exception&&n.exception.values?n.exception.values[0]:void 0}function p2(n,e,t){const r=n.exception=n.exception||{},o=r.values=r.values||[],a=o[0]=o[0]||{};a.value||(a.value=e||""),a.type||(a.type="Error")}function Za(n,e){const t=r7(n);if(!t)return;const r={type:"generic",handled:!0},o=t.mechanism;if(t.mechanism=C(C(C({},r),o),e),e&&"data"in e){const a=C(C({},o&&o.data),e.data);t.mechanism.data=a}}function g2(n){if(n&&n.__sentry_captured__)return!0;try{Jv(n,"__sentry_captured__",!0)}catch(e){}return!1}function i7(n){return Array.isArray(n)?n:[n]}function o7(n){return n&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}let ja=null;function s7(n){const e="error";c2(e,n),f2(e,a7)}function a7(){ja=Pt.onerror,Pt.onerror=function(n,e,t,r,o){return h2("error",{column:r,error:o,line:t,msg:n,url:e}),ja&&!ja.__SENTRY_LOADER__?ja.apply(this,arguments):!1},Pt.onerror.__SENTRY_INSTRUMENTED__=!0}let qa=null;function l7(n){const e="unhandledrejection";c2(e,n),f2(e,u7)}function u7(){qa=Pt.onunhandledrejection,Pt.onunhandledrejection=function(n){return h2("unhandledrejection",n),qa&&!qa.__SENTRY_LOADER__?qa.apply(this,arguments):!0},Pt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function d7(){return"npm"}function c7(){const n=typeof WeakSet=="function",e=n?new WeakSet:[];function t(o){if(n)return e.has(o)?!0:(e.add(o),!1);for(let a=0;at?m2(n,e-1,t):r}function hd(n,e,t=1/0,r=1/0,o=c7()){const[a,l]=o;if(e==null||["number","boolean","string"].includes(typeof e)&&!Lv(e))return e;const d=f7(n,e);if(!d.startsWith("[object "))return d;if(e.__sentry_skip_normalization__)return e;const c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:t;if(c===0)return d.replace("object ","");if(a(e))return"[Circular ~]";const h=e;if(h&&typeof h.toJSON=="function")try{const m=h.toJSON();return hd("",m,c-1,r,o)}catch(m){}const g=Array.isArray(e)?[]:{};let v=0;const w=r2(e);for(const m in w){if(!Object.prototype.hasOwnProperty.call(w,m))continue;if(v>=r){g[m]="[MaxProperties ~]";break}const N=w[m];g[m]=hd(m,N,c-1,r,o),v++}return l(e),g}function f7(n,e){try{if(n==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(n==="domainEmitter")return"[DomainEmitter]";if(typeof global!="undefined"&&e===global)return"[Global]";if(typeof window!="undefined"&&e===window)return"[Window]";if(typeof document!="undefined"&&e===document)return"[Document]";if(Mv(e))return"[VueViewModel]";if(Dv(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${u2(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const t=h7(e);return/^HTML(\w*)Element$/.test(t)?`[HTMLElement: ${t}]`:`[object ${t}]`}catch(t){return`**non-serializable** (${t})`}}function h7(n){const e=Object.getPrototypeOf(n);return e?e.constructor.name:"null prototype"}function p7(n){return~-encodeURI(n).split(/%..|./).length}function g7(n){return p7(JSON.stringify(n))}var Wr;(function(n){n[n.PENDING=0]="PENDING";const t=1;n[n.RESOLVED=t]="RESOLVED";const r=2;n[n.REJECTED=r]="REJECTED"})(Wr||(Wr={}));function mo(n){return new zn(e=>{e(n)})}function pd(n){return new zn((e,t)=>{t(n)})}class zn{constructor(e){zn.prototype.__init.call(this),zn.prototype.__init2.call(this),zn.prototype.__init3.call(this),zn.prototype.__init4.call(this),this._state=Wr.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new zn((r,o)=>{this._handlers.push([!1,a=>{if(!e)r(a);else try{r(e(a))}catch(l){o(l)}},a=>{if(!t)o(a);else try{r(t(a))}catch(l){o(l)}}]),this._executeHandlers()})}catch(e){return this.then(t=>t,e)}finally(e){return new zn((t,r)=>{let o,a;return this.then(l=>{a=!1,o=l,e&&e()},l=>{a=!0,o=l,e&&e()}).then(()=>{if(a){r(o);return}t(o)})})}__init(){this._resolve=e=>{this._setResult(Wr.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Wr.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===Wr.PENDING){if(Ua(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Wr.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(t=>{t[0]||(this._state===Wr.RESOLVED&&t[1](this._value),this._state===Wr.REJECTED&&t[2](this._value),t[0]=!0)})}}}function m7(n){const e=[];function t(){return n===void 0||e.lengthr(d)).then(null,()=>r(d).then(null,()=>{})),d}function a(l){return new zn((d,c)=>{let h=e.length;if(!h)return d(!0);const g=setTimeout(()=>{l&&l>0&&d(!1)},l);e.forEach(v=>{mo(v).then(()=>{--h||(clearTimeout(g),d(!0))},c)})})}return{$:e,add:o,drain:a}}const y2=1e3;function ws(){return Date.now()/y2}function y7(){const{performance:n}=Pt;if(!n||!n.now)return ws;const e=Date.now()-n.now(),t=n.timeOrigin==null?e:n.timeOrigin;return()=>(t+n.now())/y2}const v2=y7();(()=>{const{performance:n}=Pt;if(!n||!n.now)return;const e=3600*1e3,t=n.now(),r=Date.now(),o=n.timeOrigin?Math.abs(n.timeOrigin+t-r):e,a=oo+a.length,0),t=new Uint8Array(e);let r=0;for(const o of n)t.set(o,r),r+=o.length;return t}function w7(n,e){const t=typeof n.data=="string"?gd(n.data,e):n.data;return[Br({type:"attachment",length:t.length,filename:n.filename,content_type:n.contentType,attachment_type:n.attachmentType}),t]}const _7={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function $2(n){return _7[n]}function w2(n){if(!n||!n.sdk)return;const{name:e,version:t}=n.sdk;return{name:e,version:t}}function x7(n,e,t,r){const o=n.sdkProcessingMetadata&&n.sdkProcessingMetadata.dynamicSamplingContext;return C(C(C({event_id:n.event_id,sent_at:new Date().toISOString()},e&&{sdk:e}),!!t&&r&&{dsn:$s(r)}),o&&{trace:Br(C({},o))})}function E7(n,e,t){const r=[{type:"client_report"},{timestamp:ws(),discarded_events:n}];return yo(e?{dsn:e}:{},[r])}const S7=60*1e3;function C7(n,e=Date.now()){const t=parseInt(`${n}`,10);if(!isNaN(t))return t*1e3;const r=Date.parse(`${n}`);return isNaN(r)?S7:r-e}function N7(n,e){return n[e]||n.all||0}function T7(n,e,t=Date.now()){return N7(n,e)>t}function O7(n,{statusCode:e,headers:t},r=Date.now()){const o=C({},n),a=t&&t["x-sentry-rate-limits"],l=t&&t["retry-after"];if(a)for(const d of a.trim().split(",")){const[c,h,,,g]=d.split(":",5),v=parseInt(c,10),w=(isNaN(v)?60:v)*1e3;if(!h)o.all=r+w;else for(const m of h.split(";"))m==="metric_bucket"?(!g||g.split(";").includes("custom"))&&(o[m]=r+w):o[m]=r+w}else l?o.all=r+C7(l,r):e===429&&(o.all=r+60*1e3);return o}const jt=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__,md="production";function yd(){return X1("globalEventProcessors",()=>[])}function k7(n){yd().push(n)}function Ya(n,e,t,r=0){return new zn((o,a)=>{const l=n[r];if(e===null||typeof l!="function")o(e);else{const d=l(C({},e),t);jt&&l.id&&d===null&&Ie.log(`Event processor "${l.id}" dropped event`),Ua(d)?d.then(c=>Ya(n,c,t,r+1).then(o)).then(null,a):Ya(n,d,t,r+1).then(o).then(null,a)}})}function A7(n){const e=v2(),t={sid:dr(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>I7(t)};return vo(t,n),t}function vo(n,e={}){if(e.user&&(!n.ipAddress&&e.user.ip_address&&(n.ipAddress=e.user.ip_address),!n.did&&!e.did&&(n.did=e.user.id||e.user.email||e.user.username)),n.timestamp=e.timestamp||v2(),e.abnormal_mechanism&&(n.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(n.ignoreDuration=e.ignoreDuration),e.sid&&(n.sid=e.sid.length===32?e.sid:dr()),e.init!==void 0&&(n.init=e.init),!n.did&&e.did&&(n.did=`${e.did}`),typeof e.started=="number"&&(n.started=e.started),n.ignoreDuration)n.duration=void 0;else if(typeof e.duration=="number")n.duration=e.duration;else{const t=n.timestamp-n.started;n.duration=t>=0?t:0}e.release&&(n.release=e.release),e.environment&&(n.environment=e.environment),!n.ipAddress&&e.ipAddress&&(n.ipAddress=e.ipAddress),!n.userAgent&&e.userAgent&&(n.userAgent=e.userAgent),typeof e.errors=="number"&&(n.errors=e.errors),e.status&&(n.status=e.status)}function P7(n,e){let t={};n.status==="ok"&&(t={status:"exited"}),vo(n,t)}function I7(n){return Br({sid:`${n.sid}`,init:n.init,started:new Date(n.started*1e3).toISOString(),timestamp:new Date(n.timestamp*1e3).toISOString(),status:n.status,errors:n.errors,did:typeof n.did=="number"||typeof n.did=="string"?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})}const R7=1;function F7(n){const{spanId:e,traceId:t}=n.spanContext(),{data:r,op:o,parent_span_id:a,status:l,tags:d,origin:c}=_s(n);return Br({data:r,op:o,parent_span_id:a,span_id:e,status:l,tags:d,trace_id:t,origin:c})}function _s(n){return D7(n)?n.getSpanJSON():typeof n.toJSON=="function"?n.toJSON():{}}function D7(n){return typeof n.getSpanJSON=="function"}function L7(n){const{traceFlags:e}=n.spanContext();return!!(e&R7)}function M7(n,e,t,r,o,a){const{normalizeDepth:l=3,normalizeMaxBreadth:d=1e3}=n,c=Se(C({},e),{event_id:e.event_id||t.event_id||dr(),timestamp:e.timestamp||ws()}),h=t.integrations||n.integrations.map(k=>k.name);B7(c,n),H7(c,h),e.type===void 0&&W7(c,n.stackParser);const g=G7(r,t.captureContext);t.mechanism&&Za(c,t.mechanism);const v=o&&o.getEventProcessors?o.getEventProcessors():[],w=Q7().getScopeData();if(a){const k=a.getScopeData();N2(w,k)}if(g){const k=g.getScopeData();N2(w,k)}const m=[...t.attachments||[],...w.attachments];m.length&&(t.attachments=m),C2(c,w);const N=[...v,...yd(),...w.eventProcessors];return Ya(N,c,t).then(k=>(k&&U7(k),typeof l=="number"&&l>0?z7(k,l,d):k))}function B7(n,e){const{environment:t,release:r,dist:o,maxValueLength:a=250}=e;"environment"in n||(n.environment="environment"in e?t:md),n.release===void 0&&r!==void 0&&(n.release=r),n.dist===void 0&&o!==void 0&&(n.dist=o),n.message&&(n.message=bs(n.message,a));const l=n.exception&&n.exception.values&&n.exception.values[0];l&&l.value&&(l.value=bs(l.value,a));const d=n.request;d&&d.url&&(d.url=bs(d.url,a))}const _2=new WeakMap;function W7(n,e){const t=Pt._sentryDebugIds;if(!t)return;let r;const o=_2.get(e);o?r=o:(r=new Map,_2.set(e,r));const a=Object.keys(t).reduce((l,d)=>{let c;const h=r.get(d);h?c=h:(c=e(d),r.set(d,c));for(let g=c.length-1;g>=0;g--){const v=c[g];if(v.filename){l[v.filename]=t[d];break}}return l},{});try{n.exception.values.forEach(l=>{l.stacktrace.frames.forEach(d=>{d.filename&&(d.debug_id=a[d.filename])})})}catch(l){}}function U7(n){const e={};try{n.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch(r){}if(Object.keys(e).length===0)return;n.debug_meta=n.debug_meta||{},n.debug_meta.images=n.debug_meta.images||[];const t=n.debug_meta.images;Object.keys(e).forEach(r=>{t.push({type:"sourcemap",code_file:r,debug_id:e[r]})})}function H7(n,e){e.length>0&&(n.sdk=n.sdk||{},n.sdk.integrations=[...n.sdk.integrations||[],...e])}function z7(n,e,t){if(!n)return null;const r=C(C(C(C(C({},n),n.breadcrumbs&&{breadcrumbs:n.breadcrumbs.map(o=>C(C({},o),o.data&&{data:ui(o.data,e,t)}))}),n.user&&{user:ui(n.user,e,t)}),n.contexts&&{contexts:ui(n.contexts,e,t)}),n.extra&&{extra:ui(n.extra,e,t)});return n.contexts&&n.contexts.trace&&r.contexts&&(r.contexts.trace=n.contexts.trace,n.contexts.trace.data&&(r.contexts.trace.data=ui(n.contexts.trace.data,e,t))),n.spans&&(r.spans=n.spans.map(o=>{const a=_s(o).data;return a&&(o.data=ui(a,e,t)),o})),r}function G7(n,e){if(!e)return n;const t=n?n.clone():new Ur;return t.update(e),t}function x2(n,e){return Ss().captureEvent(n,e)}function xs(){return Ss().getClient()}function V7(){return Ss().getScope()}function E2(n){return n.transaction}function S2(n,e,t){const r=e.getOptions(),{publicKey:o}=e.getDsn()||{},{segment:a}=t&&t.getUser()||{},l=Br({environment:r.environment||md,release:r.release,user_segment:a,public_key:o,trace_id:n});return e.emit&&e.emit("createDsc",l),l}function Z7(n){const e=xs();if(!e)return{};const t=S2(_s(n).trace_id||"",e,V7()),r=E2(n);if(!r)return t;const o=r&&r._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:a,source:l}=r.metadata;a!=null&&(t.sample_rate=`${a}`);const d=_s(r);return l&&l!=="url"&&(t.transaction=d.description),t.sampled=String(L7(r)),e.emit&&e.emit("createDsc",t),t}function C2(n,e){const{fingerprint:t,span:r,breadcrumbs:o,sdkProcessingMetadata:a}=e;j7(n,e),r&&K7(n,r),J7(n,t),q7(n,o),Y7(n,a)}function N2(n,e){const{extra:t,tags:r,user:o,contexts:a,level:l,sdkProcessingMetadata:d,breadcrumbs:c,fingerprint:h,eventProcessors:g,attachments:v,propagationContext:w,transactionName:m,span:N}=e;Es(n,"extra",t),Es(n,"tags",r),Es(n,"user",o),Es(n,"contexts",a),Es(n,"sdkProcessingMetadata",d),l&&(n.level=l),m&&(n.transactionName=m),N&&(n.span=N),c.length&&(n.breadcrumbs=[...n.breadcrumbs,...c]),h.length&&(n.fingerprint=[...n.fingerprint,...h]),g.length&&(n.eventProcessors=[...n.eventProcessors,...g]),v.length&&(n.attachments=[...n.attachments,...v]),n.propagationContext=C(C({},n.propagationContext),w)}function Es(n,e,t){if(t&&Object.keys(t).length){n[e]=C({},n[e]);for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[e][r]=t[r])}}function j7(n,e){const{extra:t,tags:r,user:o,contexts:a,level:l,transactionName:d}=e,c=Br(t);c&&Object.keys(c).length&&(n.extra=C(C({},c),n.extra));const h=Br(r);h&&Object.keys(h).length&&(n.tags=C(C({},h),n.tags));const g=Br(o);g&&Object.keys(g).length&&(n.user=C(C({},g),n.user));const v=Br(a);v&&Object.keys(v).length&&(n.contexts=C(C({},v),n.contexts)),l&&(n.level=l),d&&(n.transaction=d)}function q7(n,e){const t=[...n.breadcrumbs||[],...e];n.breadcrumbs=t.length?t:void 0}function Y7(n,e){n.sdkProcessingMetadata=C(C({},n.sdkProcessingMetadata),e)}function K7(n,e){n.contexts=C({trace:F7(e)},n.contexts);const t=E2(e);if(t){n.sdkProcessingMetadata=C({dynamicSamplingContext:Z7(e)},n.sdkProcessingMetadata);const r=_s(t).description;r&&(n.tags=C({transaction:r},n.tags))}}function J7(n,e){n.fingerprint=n.fingerprint?i7(n.fingerprint):[],e&&(n.fingerprint=n.fingerprint.concat(e)),n.fingerprint&&!n.fingerprint.length&&delete n.fingerprint}const X7=100;let vd;class Ur{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=T2()}static clone(e){return e?e.clone():new Ur}clone(){const e=new Ur;return e._breadcrumbs=[...this._breadcrumbs],e._tags=C({},this._tags),e._extra=C({},this._extra),e._contexts=C({},this._contexts),e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata=C({},this._sdkProcessingMetadata),e._propagationContext=C({},this._propagationContext),e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&vo(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags=C(C({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,t){return this._tags=Se(C({},this._tags),{[e]:t}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=C(C({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,t){return this._extra=Se(C({},this._extra),{[e]:t}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t=typeof e=="function"?e(this):e;if(t instanceof Ur){const r=t.getScopeData();this._tags=C(C({},this._tags),r.tags),this._extra=C(C({},this._extra),r.extra),this._contexts=C(C({},this._contexts),r.contexts),r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(go(t)){const r=e;this._tags=C(C({},this._tags),r.tags),this._extra=C(C({},this._extra),r.extra),this._contexts=C(C({},this._contexts),r.contexts),r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=T2(),this}addBreadcrumb(e,t){const r=typeof t=="number"?t:X7;if(r<=0)return this;const o=C({timestamp:ws()},e),a=this._breadcrumbs;return a.push(o),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:r,_tags:o,_extra:a,_user:l,_level:d,_fingerprint:c,_eventProcessors:h,_propagationContext:g,_sdkProcessingMetadata:v,_transactionName:w,_span:m}=this;return{breadcrumbs:e,attachments:t,contexts:r,tags:o,extra:a,user:l,level:d,fingerprint:c||[],eventProcessors:h,propagationContext:g,sdkProcessingMetadata:v,transactionName:w,span:m}}applyToEvent(e,t={},r=[]){C2(e,this.getScopeData());const o=[...r,...yd(),...this._eventProcessors];return Ya(o,e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=C(C({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const r=t&&t.event_id?t.event_id:dr();if(!this._client)return Ie.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(e,Se(C({originalException:e,syntheticException:o},t),{event_id:r}),this),r}captureMessage(e,t,r){const o=r&&r.event_id?r.event_id:dr();if(!this._client)return Ie.warn("No client configured on scope - will not capture message!"),o;const a=new Error(e);return this._client.captureMessage(e,t,Se(C({originalException:e,syntheticException:a},r),{event_id:o}),this),o}captureEvent(e,t){const r=t&&t.event_id?t.event_id:dr();return this._client?(this._client.captureEvent(e,Se(C({},t),{event_id:r}),this),r):(Ie.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function Q7(){return vd||(vd=new Ur),vd}function T2(){return{traceId:dr(),spanId:dr().substring(16)}}const bd="7.120.2",O2=parseFloat(bd),eb=100;class k2{constructor(e,t,r,o=O2){this._version=o;let a;t?a=t:(a=new Ur,a.setClient(e));let l;r?l=r:(l=new Ur,l.setClient(e)),this._stack=[{scope:a}],e&&this.bindClient(e),this._isolationScope=l}isOlderThan(e){return this._version(this.popScope(),o),o=>{throw this.popScope(),o}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const r=this._lastEventId=t&&t.event_id?t.event_id:dr(),o=new Error("Sentry syntheticException");return this.getScope().captureException(e,Se(C({originalException:e,syntheticException:o},t),{event_id:r})),r}captureMessage(e,t,r){const o=this._lastEventId=r&&r.event_id?r.event_id:dr(),a=new Error(e);return this.getScope().captureMessage(e,t,Se(C({originalException:e,syntheticException:a},r),{event_id:o})),o}captureEvent(e,t){const r=t&&t.event_id?t.event_id:dr();return e.type||(this._lastEventId=r),this.getScope().captureEvent(e,Se(C({},t),{event_id:r})),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:r,client:o}=this.getStackTop();if(!o)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:l=eb}=o.getOptions&&o.getOptions()||{};if(l<=0)return;const d=ws(),c=C({timestamp:d},e),h=a?dd(()=>a(c,t)):c;h!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",h,t),r.addBreadcrumb(h,l))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:r}=this.getStackTop();r&&e(t)}run(e){const t=A2(this);try{e(this)}finally{A2(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(r){return jt&&Ie.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const r=this._callExtensionMethod("startTransaction",e,t);return jt&&!r&&(this.getClient()?Ie.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); `):Ie.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,r=t.getSession();r&&P7(r),this._sendSessionUpdate(),t.setSession()}startSession(e){const{scope:t,client:r}=this.getStackTop(),{release:o,environment:a=md}=r&&r.getOptions()||{},{userAgent:l}=Pt.navigator||{},d=A7(C(C({release:o,environment:a,user:t.getUser()},l&&{userAgent:l}),e)),c=t.getSession&&t.getSession();return c&&c.status==="ok"&&vo(c,{status:"exited"}),this.endSession(),t.setSession(d),d}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),r=e.getSession();r&&t&&t.captureSession&&t.captureSession(r)}_callExtensionMethod(e,...t){const o=Ka().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[e]=="function")return o.extensions[e].apply(this,t);jt&&Ie.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Ka(){return Pt.__SENTRY__=Pt.__SENTRY__||{extensions:{},hub:void 0},Pt}function A2(n){const e=Ka(),t=$d(e);return P2(e,n),t}function Ss(){const n=Ka();if(n.__SENTRY__&&n.__SENTRY__.acs){const e=n.__SENTRY__.acs.getCurrentHub();if(e)return e}return nb(n)}function tb(){return Ss().getIsolationScope()}function nb(n=Ka()){return(!rb(n)||$d(n).isOlderThan(O2))&&P2(n,new k2),$d(n)}function rb(n){return!!(n&&n.__SENTRY__&&n.__SENTRY__.hub)}function $d(n){return X1("hub",()=>new k2,n)}function P2(n,e){if(!n)return!1;const t=n.__SENTRY__=n.__SENTRY__||{};return t.hub=e,!0}function ib(n,e){return e&&(n.sdk=n.sdk||{},n.sdk.name=n.sdk.name||e.name,n.sdk.version=n.sdk.version||e.version,n.sdk.integrations=[...n.sdk.integrations||[],...e.integrations||[]],n.sdk.packages=[...n.sdk.packages||[],...e.packages||[]]),n}function ob(n,e,t,r){const o=w2(t),a=C(C({sent_at:new Date().toISOString()},o&&{sdk:o}),!!r&&e&&{dsn:$s(e)}),l="aggregates"in n?[{type:"sessions"},n]:[{type:"session"},n.toJSON()];return yo(a,[l])}function sb(n,e,t,r){const o=w2(t),a=n.type&&n.type!=="replay_event"?n.type:"event";ib(n,t&&t.sdk);const l=x7(n,o,r,e);return delete n.sdkProcessingMetadata,yo(l,[[{type:a},n]])}const ab="7";function lb(n){const e=n.protocol?`${n.protocol}:`:"",t=n.port?`:${n.port}`:"";return`${e}//${n.host}${t}${n.path?`/${n.path}`:""}/api/`}function ub(n){return`${lb(n)}${n.projectId}/envelope/`}function db(n,e){return Xv(C({sentry_key:n.publicKey,sentry_version:ab},e&&{sentry_client:`${e.name}/${e.version}`}))}function cb(n,e={}){const t=typeof e=="string"?e:e.tunnel,r=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return t||`${ub(n)}?${db(n,r)}`}const I2=[];function fb(n,e){const t={};return e.forEach(r=>{r&&F2(n,r,t)}),t}function R2(n,e){for(const t of e)t&&t.afterAllSetup&&t.afterAllSetup(n)}function F2(n,e,t){if(t[e.name]){jt&&Ie.log(`Integration skipped because it was already installed: ${e.name}`);return}if(t[e.name]=e,I2.indexOf(e.name)===-1&&(e.setupOnce(k7,Ss),I2.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(n),n.on&&typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);n.on("preprocessEvent",(o,a)=>r(o,a,n))}if(n.addEventProcessor&&typeof e.processEvent=="function"){const r=e.processEvent.bind(e),o=Object.assign((a,l)=>r(a,l,n),{id:e.name});n.addEventProcessor(o)}jt&&Ie.log(`Integration installed: ${e.name}`)}function hb(n,e){return Object.assign(function(...r){return e(...r)},{id:n})}function Kk(n){return n}function pb(n){let e="";for(const t of n){const r=Object.entries(t.tags),o=r.length>0?`|#${r.map(([a,l])=>`${a}:${l}`).join(",")}`:"";e+=`${t.name}@${t.unit}:${t.metric}|${t.metricType}${o}|T${t.timestamp} `}return e}function gb(n,e,t,r){const o={sent_at:new Date().toISOString()};t&&t.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),r&&e&&(o.dsn=$s(e));const a=mb(n);return yo(o,[a])}function mb(n){const e=pb(n);return[{type:"statsd",length:e.length},e]}const D2="Not capturing exception because it's already been captured.";class yb{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Kv(e.dsn):jt&&Ie.warn("No DSN provided, client will not send events."),this._dsn){const t=cb(this._dsn,e);this._transport=e.transport(Se(C({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:t}))}}captureException(e,t,r){if(g2(e)){jt&&Ie.log(D2);return}let o=t&&t.event_id;return this._process(this.eventFromException(e,t).then(a=>this._captureEvent(a,t,r)).then(a=>{o=a})),o}captureMessage(e,t,r,o){let a=r&&r.event_id;const l=ld(e)?e:String(e),d=ud(e)?this.eventFromMessage(l,t,r):this.eventFromException(e,r);return this._process(d.then(c=>this._captureEvent(c,r,o)).then(c=>{a=c})),a}captureEvent(e,t,r){if(t&&t.originalException&&g2(t.originalException)){jt&&Ie.log(D2);return}let o=t&&t.event_id;const l=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,l||r).then(d=>{o=d})),o}captureSession(e){typeof e.release!="string"?jt&&Ie.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),vo(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(r=>t.flush(e).then(o=>r&&o))):mo(!0)}close(e){return this.flush(e).then(t=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),t))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return jt&&Ie.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];F2(this,e,this._integrations),t||R2(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=sb(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of t.attachments||[])r=v7(r,w7(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const o=this._sendEnvelope(r);o&&o.then(a=>this.emit("afterSendEvent",e,a),null)}sendSession(e){const t=ob(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){const o=typeof r=="number"?r:1,a=`${e}:${t}`;jt&&Ie.log(`Recording outcome: "${a}"${o>1?` (${o} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+o}}captureAggregateMetrics(e){jt&&Ie.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=gb(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(r=>r(...t))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=fb(this,e),R2(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let r=!1,o=!1;const a=t.exception&&t.exception.values;if(a){o=!0;for(const c of a){const h=c.mechanism;if(h&&h.handled===!1){r=!0;break}}}const l=e.status==="ok";(l&&e.errors===0||l&&r)&&(vo(e,Se(C({},r&&{status:"crashed"}),{errors:e.errors||Number(o||r)})),this.captureSession(e))}_isClientDoneProcessing(e){return new zn(t=>{let r=0;const o=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),t(!0)):(r+=o,e&&r>=e&&(clearInterval(a),t(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,r,o=tb()){const a=this.getOptions(),l=Object.keys(this._integrations);return!t.integrations&&l.length>0&&(t.integrations=l),this.emit("preprocessEvent",e,t),M7(a,e,t,r,this,o).then(d=>{if(d===null)return d;const c=C(C({},o.getPropagationContext()),r?r.getPropagationContext():void 0);if(!(d.contexts&&d.contexts.trace)&&c){const{traceId:g,spanId:v,parentSpanId:w,dsc:m}=c;d.contexts=C({trace:{trace_id:g,span_id:v,parent_span_id:w}},d.contexts);const N=m||S2(g,this,r);d.sdkProcessingMetadata=C({dynamicSamplingContext:N},d.sdkProcessingMetadata)}return d})}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then(o=>o.event_id,o=>{if(jt){const a=o;a.logLevel==="log"?Ie.log(a.message):Ie.warn(a)}})}_processEvent(e,t,r){const o=this.getOptions(),{sampleRate:a}=o,l=M2(e),d=L2(e),c=e.type||"error",h=`before send for type \`${c}\``;if(d&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",e),pd(new _r(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const g=c==="replay_event"?"replay":c,w=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,r,w).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",g,e),new _r("An event processor returned `null`, will not send event.","log");if(t.data&&t.data.__sentry__===!0)return m;const A=bb(o,m,t);return vb(A,h)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",g,e),l){const M=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",M)}throw new _r(`${h} returned \`null\`, will not send event.`,"log")}const N=r&&r.getSession();if(!l&&N&&this._updateSessionFromEvent(N,m),l){const k=m.sdkProcessingMetadata&&m.sdkProcessingMetadata.spanCountBeforeProcessing||0,M=m.spans?m.spans.length:0,j=k-M;j>0&&this.recordDroppedEvent("before_send","span",j)}const A=m.transaction_info;if(l&&A&&m.transaction!==e.transaction){const k="custom";m.transaction_info=Se(C({},A),{source:k})}return this.sendEvent(m,t),m}).then(null,m=>{throw m instanceof _r?m:(this.captureException(m,{data:{__sentry__:!0},originalException:m}),new _r(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${m}`))})}_process(e){this._numProcessing++,e.then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,t=>{jt&&Ie.error("Error while sending event:",t)});jt&&Ie.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{const[r,o]=t.split(":");return{reason:r,category:o,quantity:e[t]}})}}function vb(n,e){const t=`${e} must return \`null\` or a valid event.`;if(Ua(n))return n.then(r=>{if(!go(r)&&r!==null)throw new _r(t);return r},r=>{throw new _r(`${e} rejected with ${r}`)});if(!go(n)&&n!==null)throw new _r(t);return n}function bb(n,e,t){const{beforeSend:r,beforeSendTransaction:o}=n;if(L2(e)&&r)return r(e,t);if(M2(e)&&o){if(e.spans){const a=e.spans.length;e.sdkProcessingMetadata=Se(C({},e.sdkProcessingMetadata),{spanCountBeforeProcessing:a})}return o(e,t)}return e}function L2(n){return n.type===void 0}function M2(n){return n.type==="transaction"}const $b=30;function wb(n,e,t=m7(n.bufferSize||$b)){let r={};const o=l=>t.drain(l);function a(l){const d=[];if(b2(l,(v,w)=>{const m=$2(w);if(T7(r,m)){const N=B2(v,w);n.recordDroppedEvent("ratelimit_backoff",m,N)}else d.push(v)}),d.length===0)return mo();const c=yo(l[0],d),h=v=>{b2(c,(w,m)=>{const N=B2(w,m);n.recordDroppedEvent(v,$2(m),N)})},g=()=>e({body:b7(c,n.textEncoder)}).then(v=>(v.statusCode!==void 0&&(v.statusCode<200||v.statusCode>=300)&&jt&&Ie.warn(`Sentry responded with status code ${v.statusCode} to sent event.`),r=O7(r,v),v),v=>{throw h("network_error"),v});return t.add(g).then(v=>v,v=>{if(v instanceof _r)return jt&&Ie.error("Skipped sending event because buffer is full."),h("queue_overflow"),mo();throw v})}return a.__sentry__baseTransport__=!0,{send:a,flush:o}}function B2(n,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(n)?n[1]:void 0}function _b(n,e,t=[e],r="npm"){const o=n._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:t.map(a=>({name:`${r}:@sentry/${a}`,version:bd})),version:bd}),n._metadata=o}const xr=Pt;let xb=0;function W2(){return xb>0}const bo=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;function Eb(n,e){const t=_d(n,e),r={type:e&&e.name,value:Tb(e)};return t.length&&(r.stacktrace={frames:t}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Sb(n,e,t,r){const o=xs(),a=o&&o.getOptions().normalizeDepth,l={exception:{values:[{type:Wa(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Ab(e,{isUnhandledRejection:r})}]},extra:{__serialized__:m2(e,a)}};if(t){const d=_d(n,t);d.length&&(l.exception.values[0].stacktrace={frames:d})}return l}function wd(n,e){return{exception:{values:[Eb(n,e)]}}}function _d(n,e){const t=e.stacktrace||e.stack||"",r=Nb(e);try{return n(t,r)}catch(o){}return[]}const Cb=/Minified React error #\d+;/i;function Nb(n){if(n){if(typeof n.framesToPop=="number")return n.framesToPop;if(Cb.test(n.message))return 1}return 0}function Tb(n){const e=n&&n.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function Ob(n,e,t,r){const o=t&&t.syntheticException||void 0,a=xd(n,e,o,r);return Za(a),a.level="error",t&&t.event_id&&(a.event_id=t.event_id),mo(a)}function kb(n,e,t="info",r,o){const a=r&&r.syntheticException||void 0,l=Ed(n,e,a,o);return l.level=t,r&&r.event_id&&(l.event_id=r.event_id),mo(l)}function xd(n,e,t,r,o){let a;if(sd(e)&&e.error)return wd(n,e.error);if(J1(e)||Rv(e)){const l=e;if("stack"in e)a=wd(n,e);else{const d=l.name||(J1(l)?"DOMError":"DOMException"),c=l.message?`${d}: ${l.message}`:d;a=Ed(n,c,t,r),p2(a,c)}return"code"in l&&(a.tags=Se(C({},a.tags),{"DOMException.code":`${l.code}`})),a}return K1(e)?wd(n,e):go(e)||Wa(e)?(a=Sb(n,e,t,o),Za(a,{synthetic:!0}),a):(a=Ed(n,e,t,r),p2(a,`${e}`),Za(a,{synthetic:!0}),a)}function Ed(n,e,t,r){const o={};if(r&&t){const a=_d(n,t);a.length&&(o.exception={values:[{value:e,stacktrace:{frames:a}}]})}if(ld(e)){const{__sentry_template_string__:a,__sentry_template_values__:l}=e;return o.logentry={message:a,params:l},o}return o.message=e,o}function Ab(n,{isUnhandledRejection:e}){const t=Qv(n),r=e?"promise rejection":"exception";return sd(n)?`Event \`ErrorEvent\` captured as ${r} with message \`${n.message}\``:Wa(n)?`Event \`${Pb(n)}\` (type=${n.type}) captured as ${r}`:`Object captured as ${r} with keys: ${t}`}function Pb(n){try{const e=Object.getPrototypeOf(n);return e?e.constructor.name:void 0}catch(e){}}function Ib(n,{metadata:e,tunnel:t,dsn:r}){const o=C(C({event_id:n.event_id,sent_at:new Date().toISOString()},e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}}),!!t&&!!r&&{dsn:$s(r)}),a=Rb(n);return yo(o,[a])}function Rb(n){return[{type:"user_report"},n]}class Fb extends yb{constructor(e){const t=xr.SENTRY_SDK_SOURCE||d7();_b(e,"browser",["browser"],t),super(e),e.sendClientReports&&xr.document&&xr.document.addEventListener("visibilitychange",()=>{xr.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,t){return Ob(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return kb(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){bo&&Ie.warn("SDK not enabled, will not capture user feedback.");return}const t=Ib(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}_flushOutcomes(){const e=this._clearOutcomes();if(e.length===0){bo&&Ie.log("No outcomes to send");return}if(!this._dsn){bo&&Ie.log("No dsn provided, will not send outcomes");return}bo&&Ie.log("Sending outcomes:",e);const t=E7(e,this._options.tunnel&&$s(this._dsn));this._sendEnvelope(t)}}let Cs;function Db(){if(Cs)return Cs;if(o7(xr.fetch))return Cs=xr.fetch.bind(xr);const n=xr.document;let e=xr.fetch;if(n&&typeof n.createElement=="function")try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const r=t.contentWindow;r&&r.fetch&&(e=r.fetch),n.head.removeChild(t)}catch(t){bo&&Ie.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return Cs=e.bind(xr)}function Lb(){Cs=void 0}function Mb(n,e=Db()){let t=0,r=0;function o(a){const l=a.body.length;t+=l,r++;const d=C({body:a.body,method:"POST",referrerPolicy:"origin",headers:n.headers,keepalive:t<=6e4&&r<15},n.fetchOptions);try{return e(n.url,d).then(c=>(t-=l,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Lb(),t-=l,r--,pd(c)}}return wb(n,o)}const Ja="?",Bb=30,Wb=40,Ub=50;function Sd(n,e,t,r){const o={filename:n,function:e,in_app:!0};return t!==void 0&&(o.lineno=t),r!==void 0&&(o.colno=r),o}const Hb=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,zb=/\((\S*)(?::(\d+))(?::(\d+))\)/,Gb=[Bb,n=>{const e=Hb.exec(n);if(e){if(e[2]&&e[2].indexOf("eval")===0){const a=zb.exec(e[2]);a&&(e[2]=a[1],e[3]=a[2],e[4]=a[3])}const[r,o]=U2(e[1]||Ja,e[2]);return Sd(o,r,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],Vb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Zb=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,jb=[Ub,n=>{const e=Vb.exec(n);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const a=Zb.exec(e[3]);a&&(e[1]=e[1]||"eval",e[3]=a[1],e[4]=a[2],e[5]="")}let r=e[3],o=e[1]||Ja;return[o,r]=U2(o,r),Sd(r,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],qb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Yb=t7(...[Gb,jb,[Wb,n=>{const e=qb.exec(n);return e?Sd(e[2],e[1]||Ja,+e[3],e[4]?+e[4]:void 0):void 0}]]),U2=(n,e)=>{const t=n.indexOf("safari-extension")!==-1,r=n.indexOf("safari-web-extension")!==-1;return t||r?[n.indexOf("@")!==-1?n.split("@")[0]:Ja,t?`safari-extension:${e}`:`safari-web-extension:${e}`]:[n,e]},H2="GlobalHandlers",z2=(n={})=>{const e=C({onerror:!0,onunhandledrejection:!0},n);return{name:H2,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(Kb(t),V2("onerror")),e.onunhandledrejection&&(Jb(t),V2("onunhandledrejection"))}}};hb(H2,z2);function Kb(n){s7(e=>{const{stackParser:t,attachStacktrace:r}=Z2();if(xs()!==n||W2())return;const{msg:o,url:a,line:l,column:d,error:c}=e,h=c===void 0&&ad(o)?e$(o,a,l,d):G2(xd(t,c||o,void 0,r,!1),a,l,d);h.level="error",x2(h,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Jb(n){l7(e=>{const{stackParser:t,attachStacktrace:r}=Z2();if(xs()!==n||W2())return;const o=Xb(e),a=ud(o)?Qb(o):xd(t,o,void 0,r,!0);a.level="error",x2(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Xb(n){if(ud(n))return n;const e=n;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return n}function Qb(n){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`}]}}}function e$(n,e,t,r){const o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=sd(n)?n.message:n,l="Error";const d=a.match(o);return d&&(l=d[1],a=d[2]),G2({exception:{values:[{type:l,value:a}]}},e,t,r)}function G2(n,e,t,r){const o=n.exception=n.exception||{},a=o.values=o.values||[],l=a[0]=a[0]||{},d=l.stacktrace=l.stacktrace||{},c=d.frames=d.frames||[],h=isNaN(parseInt(r,10))?void 0:r,g=isNaN(parseInt(t,10))?void 0:t,v=ad(e)&&e.length>0?e:zv();return c.length===0&&c.push({colno:h,filename:v,function:"?",in_app:!0,lineno:g}),n}function V2(n){bo&&Ie.log(`Global Handler attached: ${n}`)}function Z2(){const n=xs();return n&&n.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const j2=new Fb({dsn:"https://f2aaa5bc878c1490c270c1977ab38718@o211933.ingest.us.sentry.io/4507063779000320",transport:Mb,stackParser:Yb,environment:Iv(),normalizeDepth:10,sampleRate:.8,tracesSampleRate:.5,integrations:[z2({onerror:!1,onunhandledrejection:!1})]}),q2=new Ur,t$="https://givebutter.com/elements/api/v2",n$=204;class r$ extends Error{constructor(e,t,r){super(e),this.url=t,this.response=r}}const Y2=(n,e)=>He(this,null,function*(){const t=decodeURIComponent(e).trim();return/^[a-zA-Z0-9]{6,}$/.test(t)||t==="signup-form-demo"?yield Xa(`${n}/elements/${t}`):{}}),i$=(n,e)=>He(this,null,function*(){return yield Xa(`${n}/campaigns/${e}`)}),o$=(n,e)=>He(this,null,function*(){return yield Xa(`${n}/campaigns/${e}/goal-status`)}),s$=()=>He(this,null,function*(){const n=Ft.getAccountId();if(n)return yield Xa(`${n}/ping`)}),a$=n=>({status:n.status,statusText:n.statusText,headers:[...n.headers.entries()].reduce((e,[t,r])=>(e[t]=r,e),{})}),Xa=n=>He(this,null,function*(){const e=`${t$}/${n}`,t=yield fetch(e),r=a$(t);if(!t.ok){const o=new r$(`HTTP error with status: ${t.status}`,e,r);throw[404].includes(t.status)||j2.captureException(o,{captureContext:{contexts:{data:{url:e,response:Se(C({},r),{data:yield t.json()})}}}}),o}return t.status===n$?{}:t.json()}),K2=[],J2=[];function l$(){const n=()=>{document.querySelectorAll("[data-gb-widget-id]").forEach(r=>{const o=r.getAttribute("data-gb-widget-id");if(r.parentNode&&o){const a=document.createElement("givebutter-widget");a.setAttribute("id",o),r.parentNode.replaceChild(a,r)}})};n();const e=new MutationObserver(t=>{t.forEach(r=>{r.addedNodes.forEach(o=>{o instanceof Element&&(o.hasAttribute("data-gb-widget-id")||o.querySelector("[data-gb-widget-id]"))&&n()})})});e.observe(document,{childList:!0,subtree:!0}),window.addEventListener("pagehide",()=>e.disconnect())}function u$(){document.querySelectorAll("[data-gb-account][data-gb-campaign]").forEach(function(e){if(e.hasAttribute("data-gb-processed"))return;e.setAttribute("data-gb-processed","true");const t=e.getAttribute("data-gb-account"),r=e.getAttribute("data-gb-campaign"),o=e.getAttribute("data-gb-type");if(!t||!r){Ct.error("Missing data-gb-account or data-gb-campaign attributes.");return}let a;o!=="link"&&(a=document.createElement("givebutter-button"),a.setAttribute("account",t),a.setAttribute("campaign",r),a.setAttribute("hide-button","true"),document.body.appendChild(a),J2.push(a));const l=function(d){var c,h;d.preventDefault(),o==="link"?window.location.href=`https://givebutter.com/c/${r}?source=widgets`:(h=(c=a.shadowRoot)==null?void 0:c.querySelector("button"))==null||h.click()};e.addEventListener("click",l),K2.push({element:e,type:"click",listener:l})})}function X2(){Ft.isDynamicElementReplacementMode()&&l$(),u$()}const d$=()=>{X2(),["DOMContentLoaded","popstate","hashchange"].forEach(e=>{window.addEventListener(e,X2)}),window.addEventListener("pagehide",function(){K2.forEach(({element:e,type:t,listener:r})=>{e.removeEventListener(t,r)}),J2.forEach(e=>{document.body.removeChild(e)})})},c$=()=>{const n=document.currentScript;if(n){const e=window.parent.document;if(!Array.from(e.querySelectorAll("script")).find(r=>r.src===n.src)){const r=window.parent.document.createElement("script");r.defer=!0,r.src=n.src,e.head.appendChild(r)}n.remove()}},f$=(n,e)=>{let t=n==null?void 0:n.parentElement;for(;t;){if(t.classList.contains(e))return t;t=t.parentElement}return Ct.error(`Could not find ancestor element with class ${e}`),null};He(this,null,function*(){if(window.gbWidgets=window.gbWidgets||{},Ft.getPlatform()===hu.godaddy&&Ft.isInsideIframe()){c$();return}if(window.gbWidgets.init)return;q2.setClient(j2),q2.setUser({accountId:Ft.getAccountId(),platform:Ft.getPlatform(),iframe:Ft.isInsideIframe(),url:es.getParentHostUrl()}),s$(),d$();const n=window.customElements.define;window.customElements.define=function(e,t,r){window.customElements.get(e)?Ct.warn(`Custom element "${e}" is already defined. Skipping.`):n.call(window.customElements,e,t,r)};try{yield Promise.resolve().then(()=>aw),yield Promise.resolve().then(()=>bw),yield Promise.resolve().then(()=>r_),yield Promise.resolve().then(()=>a_),yield Promise.resolve().then(()=>p_),yield Promise.resolve().then(()=>C_),yield Promise.resolve().then(()=>c_),yield Promise.resolve().then(()=>M_)}catch(e){Ct.error("Error initializing web components",e)}window.gbWidgets.init=!0});/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Qa=globalThis,Cd=Qa.ShadowRoot&&(Qa.ShadyCSS===void 0||Qa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Nd=Symbol(),Q2=new WeakMap;let ep=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Nd)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Cd&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=Q2.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Q2.set(t,e))}return e}toString(){return this.cssText}};const tp=n=>new ep(typeof n=="string"?n:n+"",void 0,Nd),Td=(n,...e)=>{const t=n.length===1?n[0]:e.reduce((r,o,a)=>r+(l=>{if(l._$cssResult$===!0)return l.cssText;if(typeof l=="number")return l;throw Error("Value passed to 'css' function must be a 'css' function result: "+l+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[a+1],n[0]);return new ep(t,n,Nd)},np=(n,e)=>{if(Cd)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),o=Qa.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,n.appendChild(r)}},rp=Cd?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return tp(t)})(n):n;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const{is:h$,defineProperty:p$,getOwnPropertyDescriptor:g$,getOwnPropertyNames:m$,getOwnPropertySymbols:y$,getPrototypeOf:v$}=Object,di=globalThis,ip=di.trustedTypes,b$=ip?ip.emptyScript:"",Od=di.reactiveElementPolyfillSupport,Ns=(n,e)=>n,el={toAttribute(n,e){switch(e){case Boolean:n=n?b$:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch(r){t=null}}return t}},kd=(n,e)=>!h$(n,e),op={attribute:!0,type:String,converter:el,reflect:!1,useDefault:!1,hasChanged:kd};(kg=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ag=di.litPropertyMetadata)!=null||(di.litPropertyMetadata=new WeakMap);let $o=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=op){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&p$(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){var l;const{get:o,set:a}=(l=g$(this.prototype,e))!=null?l:{get(){return this[t]},set(d){this[t]=d}};return{get:o,set(d){const c=o==null?void 0:o.call(this);a==null||a.call(this,d),this.requestUpdate(e,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:op}static _$Ei(){if(this.hasOwnProperty(Ns("elementProperties")))return;const e=v$(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ns("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ns("properties"))){const t=this.properties,r=[...m$(t),...y$(t)];for(const o of r)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const o of r)t.unshift(rp(o))}else e!==void 0&&t.push(rp(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;const e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return np(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var a;const r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){const l=(((a=r.converter)==null?void 0:a.toAttribute)!==void 0?r.converter:el).toAttribute(t,r.type);this._$Em=e,l==null?this.removeAttribute(o):this.setAttribute(o,l),this._$Em=null}}_$AK(e,t){var a,l,d,c;const r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const h=r.getPropertyOptions(o),g=typeof h.converter=="function"?{fromAttribute:h.converter}:((a=h.converter)==null?void 0:a.fromAttribute)!==void 0?h.converter:el;this._$Em=o,this[o]=(c=(d=g.fromAttribute(t,h.type))!=null?d:(l=this._$Ej)==null?void 0:l.get(o))!=null?c:null,this._$Em=null}}requestUpdate(e,t,r){var o,a;if(e!==void 0){const l=this.constructor,d=this[e];if(r!=null||(r=l.getPropertyOptions(e)),!(((o=r.hasChanged)!=null?o:kd)(d,t)||r.useDefault&&r.reflect&&d===((a=this._$Ej)==null?void 0:a.get(e))&&!this.hasAttribute(l._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:o,wrapped:a},l){var d,c,h;r&&!((d=this._$Ej)!=null?d:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(c=l!=null?l:t)!=null?c:this[e]),a!==!0||l!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&((h=this._$Eq)!=null?h:this._$Eq=new Set).add(e))}_$EP(){return He(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[l,d]of this._$Ep)this[l]=d;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[l,d]of a){const{wrapped:c}=d,h=this[l];c!==!0||this._$AL.has(l)||h===void 0||this.C(l,void 0,d,h)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(o=this._$EO)==null||o.forEach(a=>{var l;return(l=a.hostUpdate)==null?void 0:l.call(a)}),this.update(t)):this._$EM()}catch(a){throw e=!1,this._$EM(),a}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};$o.elementStyles=[],$o.shadowRootOptions={mode:"open"},$o[Ns("elementProperties")]=new Map,$o[Ns("finalized")]=new Map,Od==null||Od({ReactiveElement:$o}),((Pg=di.reactiveElementVersions)!=null?Pg:di.reactiveElementVersions=[]).push("2.1.0");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Ts=globalThis,tl=Ts.trustedTypes,sp=tl?tl.createPolicy("lit-html",{createHTML:n=>n}):void 0,ap="$lit$",ci=`lit$${Math.random().toFixed(9).slice(2)}$`,lp="?"+ci,$$=`<${lp}>`,Fi=document,Os=()=>Fi.createComment(""),ks=n=>n===null||typeof n!="object"&&typeof n!="function",Ad=Array.isArray,w$=n=>Ad(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Pd=`[ \f\r]`,As=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,up=/-->/g,dp=/>/g,Di=RegExp(`>|${Pd}(?:([^\\s"'>=/]+)(${Pd}*=${Pd}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),cp=/'/g,fp=/"/g,hp=/^(?:script|style|textarea|title)$/i,_$=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),Ge=_$(1),fi=Symbol.for("lit-noChange"),pt=Symbol.for("lit-nothing"),pp=new WeakMap,Li=Fi.createTreeWalker(Fi,129);function gp(n,e){if(!Ad(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return sp!==void 0?sp.createHTML(e):e}const x$=(n,e)=>{const t=n.length-1,r=[];let o,a=e===2?"":e===3?"":"",l=As;for(let d=0;d"?(l=o!=null?o:As,v=-1):g[1]===void 0?v=-2:(v=l.lastIndex-g[2].length,h=g[1],l=g[3]===void 0?Di:g[3]==='"'?fp:cp):l===fp||l===cp?l=Di:l===up||l===dp?l=As:(l=Di,o=void 0);const m=l===Di&&n[d+1].startsWith("/>")?" ":"";a+=l===As?c+$$:v>=0?(r.push(h),c.slice(0,v)+ap+c.slice(v)+ci+m):c+ci+(v===-2?d:m)}return[gp(n,a+(n[t]||"")+(e===2?"":e===3?"":"")),r]};let Id=class f4{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let a=0,l=0;const d=e.length-1,c=this.parts,[h,g]=x$(e,t);if(this.el=f4.createElement(h,r),Li.currentNode=this.el.content,t===2||t===3){const v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(o=Li.nextNode())!==null&&c.length0){o.textContent=tl?tl.emptyScript:"";for(let m=0;m2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=pt}_$AI(e,t=this,r,o){const a=this.strings;let l=!1;if(a===void 0)e=wo(this,e,t,0),l=!ks(e)||e!==this._$AH&&e!==fi,l&&(this._$AH=e);else{const d=e;let c,h;for(e=a[0],c=0;c{var a,l;const r=(a=t==null?void 0:t.renderBefore)!=null?a:e;let o=r._$litPart$;if(o===void 0){const d=(l=t==null?void 0:t.renderBefore)!=null?l:null;r._$litPart$=o=new Ps(e.insertBefore(Os(),d),d,void 0,t!=null?t:{})}return o._$AI(n),o};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Mi=globalThis;let hi=class extends $o{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;const e=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=O$(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return fi}};hi._$litElement$=!0,hi.finalized=!0,(Rg=Mi.litElementHydrateSupport)==null||Rg.call(Mi,{LitElement:hi});const Fd=Mi.litElementPolyfillSupport;Fd==null||Fd({LitElement:hi}),((Fg=Mi.litElementVersions)!=null?Fg:Mi.litElementVersions=[]).push("4.2.0");const k$=Td` body > *[inert] { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; pointer-events: none; } body.overlays-scroll-lock { overflow: hidden; } body.overlays-scroll-lock-ios-fix { position: fixed; width: 100%; } html.overlays-scroll-lock-ios-fix { height: 100vh; } `,mp={isIOS:/iPhone|iPad|iPod/i.test(navigator.userAgent),isMacSafari:navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&navigator.userAgent.indexOf("CriOS")===-1&&navigator.userAgent.indexOf("FxiOS")===-1&&navigator.appVersion.indexOf("Mac")!==-1};class Hr{static __createGlobalStyleNode(){const e=document.createElement("style");return e.setAttribute("data-overlays",""),e.textContent=k$.cssText,document.head.appendChild(e),e}get list(){return this.__list}get shownList(){return this.__shownList}constructor(){this.__list=[],this.__shownList=[],this.__siblingsInert=!1,this.__blockingMap=new WeakMap,Hr.__globalStyleNode||(Hr.__globalStyleNode=Hr.__createGlobalStyleNode())}add(e){if(this.list.find(t=>e===t))throw new Error("controller instance is already added");return this.list.push(e),e}remove(e){if(!this.list.find(t=>e===t))throw new Error("could not find controller to remove");this.__list=this.list.filter(t=>t!==e),this.__shownList=this.shownList.filter(t=>t!==e)}show(e){this.list.find(t=>e===t)&&this.hide(e),this.__shownList.unshift(e),Array.from(this.__shownList).reverse().forEach((t,r)=>{t.elevation=r+1})}hide(e){if(!this.list.find(t=>e===t))throw new Error("could not find controller to hide");this.__shownList=this.shownList.filter(t=>t!==e)}teardown(){this.list.forEach(e=>{e.teardown()}),this.__list=[],this.__shownList=[],this.__siblingsInert=!1,Hr.__globalStyleNode&&(document.head.removeChild(Hr.__globalStyleNode),Hr.__globalStyleNode=void 0)}get siblingsInert(){return this.__siblingsInert}disableTrapsKeyboardFocusForAll(){this.shownList.forEach(e=>{e.trapsKeyboardFocus===!0&&e.disableTrapsKeyboardFocus&&e.disableTrapsKeyboardFocus({findNewTrap:!1})})}informTrapsKeyboardFocusGotEnabled(e){this.siblingsInert===!1&&e==="global"&&(this.__siblingsInert=!0)}informTrapsKeyboardFocusGotDisabled({disabledCtrl:e,findNewTrap:t=!0}={}){const r=this.shownList.find(o=>o!==e&&o.trapsKeyboardFocus===!0);r?t&&r.enableTrapsKeyboardFocus():this.siblingsInert===!0&&(this.__siblingsInert=!1)}requestToPreventScroll(){const{isIOS:e,isMacSafari:t}=mp;document.body.classList.add("overlays-scroll-lock"),(e||t)&&document.body.classList.add("overlays-scroll-lock-ios-fix"),e&&document.documentElement.classList.add("overlays-scroll-lock-ios-fix")}requestToEnableScroll(){if(this.shownList.some(o=>o.preventsScroll===!0))return;const{isIOS:t,isMacSafari:r}=mp;document.body.classList.remove("overlays-scroll-lock"),(t||r)&&document.body.classList.remove("overlays-scroll-lock-ios-fix"),t&&document.documentElement.classList.remove("overlays-scroll-lock-ios-fix")}requestToShowOnly(e){const t=this.shownList.filter(r=>r!==e);t.forEach(r=>r.hide()),this.__blockingMap.set(e,t)}retractRequestToShowOnly(e){this.__blockingMap.has(e)&&this.__blockingMap.get(e).forEach(r=>r.show())}}Hr.__globalStyleNode=void 0;const Dd=Symbol.for("lion::SingletonManagerClassStorage"),Ld=globalThis||window;class A${constructor(){this._map=Ld[Dd]?Ld[Dd]:Ld[Dd]=new Map}set(e,t){this.has(e)||this._map.set(e,t)}get(e){return this._map.get(e)}has(e){return this._map.has(e)}}const P$=new A$().get("@lion/ui::overlays::0.x")||new Hr;function Md(){let n=document.activeElement||document.body;for(;n&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}const yp=({visibility:n,display:e})=>n!=="hidden"&&e!=="none",I$=({display:n})=>n==="contents";function R$(n){if(!n||!n.isConnected||!yp(n.style))return!1;const e=window.getComputedStyle(n);return yp(e)?I$(e)?!0:!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length):!1}function F$(n,e){const t=Math.max(n.tabIndex,0),r=Math.max(e.tabIndex,0);return t===0||r===0?r>t:t>r}function D$(n,e){const t=[];for(;n.length>0&&e.length>0;)F$(n[0],e[0])?t.push(e.shift()):t.push(n.shift());return[...t,...n,...e]}function Bd(n){const e=n.length;if(e<2)return n;const t=Math.ceil(e/2),r=Bd(n.slice(0,t)),o=Bd(n.slice(t));return D$(r,o)}const Wd="matches"in Element.prototype?"matches":"msMatchesSelector";function L$(n){return n[Wd]("input, select, textarea, button, object")?n[Wd](":not([disabled])"):n[Wd]("a[href], area[href], iframe, [tabindex], [contentEditable]")}function M$(n){return L$(n)?Number(n.getAttribute("tabindex")||0):-1}function B$(n){if(n.localName==="slot")return n.assignedNodes({flatten:!0});const{children:e}=n.shadowRoot||n;return e||[]}function W$(n){return n.nodeType!==Node.ELEMENT_NODE?!1:n.localName==="slot"?!0:R$(n)}function vp(n,e){if(!W$(n))return!1;const t=n,r=M$(t);let o=r>0;r>=0&&e.push(t);const a=B$(t);for(let l=0;l0&&r(l)}}return n instanceof HTMLElement&&n.shadowRoot&&(t=rl(n.shadowRoot,e),t)?!0:(r(n),t)}const U$={enter:13,space:32,escape:27,tab:9};function H$(n,e){const t=bp(n);let r;t.length>=2?r=[t[0],t[t.length-1]]:t.length===1?r=[t[0],t[0]]:r=[n,n],e.shiftKey&&r.reverse();const[o,a]=r,l=Md();l===n||t.includes(l)&&a!==l||(e.preventDefault(),o.focus())}function z$(n){const e=bp(n),t=e.find(w=>w.hasAttribute("autofocus"))||n;let r,o;t===n&&(n.tabIndex=-1,n.style.setProperty("outline","none")),t.focus();function a(w){w.keyCode===U$.tab&&H$(n,w)}function l(){r=document.createElement("div"),r.style.display="none",r.setAttribute("data-is-tab-detection-element",""),n.insertBefore(r,n.children[0]),o=new MutationObserver(w=>{for(const m of w)if(m.type==="childList"){const N=!Array.from(n.children).find(k=>k.hasAttribute("data-is-tab-detection-element")),A=Array.from(m.addedNodes).find(k=>k instanceof HTMLElement&&k.hasAttribute("data-is-tab-detection-element"));N&&!A&&(o.disconnect(),l())}}),o.observe(n,{childList:!0})}function d(){return r.compareDocumentPosition(document.activeElement)===Node.DOCUMENT_POSITION_PRECEDING}function c({resetToRoot:w=!1}={}){if(rl(n,Md()))return;let m;w?m=n:m=e[d()?0:e.length-1],m&&m.focus()}function h(){window.removeEventListener("focusin",h),c()}function g(){setTimeout(()=>{rl(n,Md())||c({resetToRoot:!0})}),window.addEventListener("focusin",h)}function v(){window.removeEventListener("keydown",a),window.removeEventListener("focusin",h),window.removeEventListener("focusout",g),o.disconnect(),Array.from(n.children).includes(r)&&n.removeChild(r),n.style.removeProperty("outline")}return window.addEventListener("keydown",a),window.addEventListener("focusout",g),l(),{disconnect:v}}const $p=Td` .overlays { position: fixed; z-index: 200; } .overlays__overlay-container { display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; } .overlays__overlay-container::backdrop { display: none; } .overlays__overlay-container--top-left { justify-content: flex-start; align-items: flex-start; } .overlays__overlay-container--top { justify-content: center; align-items: flex-start; } .overlays__overlay-container--top-right { justify-content: flex-end; align-items: flex-start; } .overlays__overlay-container--right { justify-content: flex-end; align-items: center; } .overlays__overlay-container--bottom-left { justify-content: flex-start; align-items: flex-end; } .overlays__overlay-container--bottom { justify-content: center; align-items: flex-end; } .overlays__overlay-container--bottom-right { justify-content: flex-end; align-items: flex-end; } .overlays__overlay-container--left { justify-content: flex-start; align-items: center; } .overlays__overlay-container--center { justify-content: center; align-items: center; } .overlays__overlay--bottom-sheet { width: 100%; } ::slotted(.overlays__overlay), .overlays__overlay { pointer-events: auto; } .overlays__backdrop { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background-color: #333333; display: none; } .overlays__backdrop--visible { display: block; } .overlays__backdrop--animation-in { animation: overlays-backdrop-fade-in 300ms; opacity: 0.3; } .overlays__backdrop--animation-out { animation: overlays-backdrop-fade-out 300ms; opacity: 0; } @keyframes overlays-backdrop-fade-in { from { opacity: 0; } } @keyframes overlays-backdrop-fade-out { from { opacity: 0.3; } } @media screen and (prefers-reduced-motion: reduce) { .overlays .overlays__backdrop--animation-in { animation: overlays-backdrop-fade-in 1ms; } .overlays .overlays__backdrop--animation-out { animation: overlays-backdrop-fade-out 1ms; } } dialog[data-overlay-outer-wrapper] { background-image: none; border-style: none; padding: 0px; } /** * We don't want to use pseudo el ::backdrop. * We have our own, that creates more flexibility wrt scrolling etc. */ dialog[data-overlay-outer-wrapper]::backdrop { display: none; } `,_o={supportsAdoptingStyleSheets:window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,adoptStyle:void 0,adoptStyles:void 0},Ud=new Map;function G$(n){return Array.from(n.cssRules).map(e=>e.cssText).join("")}function V$(n,e,{teardown:t=!1}={}){const r=n===document?document.body:n,o=e.cssText||G$(e);if(t){const a=Array.from(r.querySelectorAll("style"));for(const l of a)if(l.textContent===o){l.remove();break}}else{const a=document.createElement("style"),l=window.litNonce;l!==void 0&&a.setAttribute("nonce",l),a.textContent=o,r.appendChild(a)}}function Z$(n,e,{teardown:t=!1}={}){let r=!1;Ud.has(n)||Ud.set(n,[]);const o=Ud.get(n),a=o.find(l=>e===l);return a&&t?o.splice(o.indexOf(e),1):!a&&!t?o.push(e):(a&&!t||!a&&t)&&(r=!0),{haltFurtherExecution:r}}function j$(n,e,{teardown:t=!1}={}){const{haltFurtherExecution:r}=Z$(n,e,{teardown:t});if(r)return;if(!_o.supportsAdoptingStyleSheets){V$(n,e,{teardown:t});return}const o=e instanceof CSSStyleSheet?e:e.styleSheet;if(!o)throw new Error("Please provide a CSSResultOrNative style");t?n.adoptedStyleSheets.includes(o)&&n.adoptedStyleSheets.splice(n.adoptedStyleSheets.indexOf(o),1):n.adoptedStyleSheets=[...n.adoptedStyleSheets,o]}function q$(n,e,{teardown:t=!1}={}){for(const r of e)_o.adoptStyle(n,r,{teardown:t})}_o.adoptStyle=j$,_o.adoptStyles=q$;function Y$({wrappingDialogNodeL1:n,contentWrapperNodeL2:e,contentNodeL3:t}){if(!(e.isConnected||t.isConnected))throw new Error('[OverlayController] Could not find a render target, since the provided contentNode is not connected to the DOM. Make sure that it is connected, e.g. by doing "document.body.appendChild(contentNode)", before passing it on.');let r;const o=document.createComment("tempMarker");e.isConnected?(r=e.parentElement||e.getRootNode(),r.insertBefore(o,e),n.appendChild(e)):t.assignedSlot?(r=t.assignedSlot.parentElement||t.assignedSlot.getRootNode(),r.insertBefore(o,t.assignedSlot),n.appendChild(e),e.appendChild(t.assignedSlot)):(r=t.parentElement||t.getRootNode(),r.insertBefore(o,t),n.appendChild(e),e.appendChild(t)),r.insertBefore(n,o),r==null||r.removeChild(o)}function K$(){return He(this,null,function*(){return Promise.resolve().then(()=>Dx)})}class Bi extends EventTarget{constructor(e={},t=P$){super(),this.manager=t,this.__sharedConfig=e,this.__activeElementRightBeforeHide=null,this.config={},this._defaultConfig={placementMode:void 0,contentNode:e.contentNode,contentWrapperNode:e.contentWrapperNode,invokerNode:e.invokerNode,backdropNode:e.backdropNode,referenceNode:void 0,elementToFocusAfterHide:e.invokerNode,inheritsReferenceWidth:"none",hasBackdrop:!1,isBlocking:!1,preventsScroll:!1,trapsKeyboardFocus:!1,hidesOnEsc:!1,hidesOnOutsideEsc:!1,hidesOnOutsideClick:!1,isTooltip:!1,invokerRelation:"description",visibilityTriggerFunction:void 0,handlesAccessibility:!1,popperConfig:{placement:"top",strategy:"fixed",modifiers:[{name:"preventOverflow",enabled:!0,options:{boundariesElement:"viewport",padding:8}},{name:"flip",options:{boundariesElement:"viewport",padding:16}},{name:"offset",enabled:!0,options:{offset:[0,8]}},{name:"arrow",enabled:!1}]},viewportConfig:{placement:"center"},zIndex:9999},this.manager.add(this),this._contentId=`overlay-content--${Math.random().toString(36).slice(2,10)}`,this.__originalAttrs=new Map,this.updateConfig(e),this.__hasActiveTrapsKeyboardFocus=!1,this.__hasActiveBackdrop=!0,this.__escKeyHandler=this.__escKeyHandler.bind(this)}get invoker(){return this.invokerNode}get content(){return this.__wrappingDialogNode}get placementMode(){var e;return(e=this.config)==null?void 0:e.placementMode}get invokerNode(){var e;return(e=this.config)==null?void 0:e.invokerNode}get referenceNode(){var e;return(e=this.config)==null?void 0:e.referenceNode}get contentNode(){var e;return(e=this.config)==null?void 0:e.contentNode}get contentWrapperNode(){var e;return this.__contentWrapperNode||((e=this.config)==null?void 0:e.contentWrapperNode)}get backdropNode(){var e;return this.__backdropNode||((e=this.config)==null?void 0:e.backdropNode)}get elementToFocusAfterHide(){var e;return this.__elementToFocusAfterHide||((e=this.config)==null?void 0:e.elementToFocusAfterHide)}get hasBackdrop(){var e;return!!this.backdropNode||((e=this.config)==null?void 0:e.hasBackdrop)}get isBlocking(){var e;return(e=this.config)==null?void 0:e.isBlocking}get preventsScroll(){var e;return(e=this.config)==null?void 0:e.preventsScroll}get trapsKeyboardFocus(){var e;return(e=this.config)==null?void 0:e.trapsKeyboardFocus}get hidesOnEsc(){var e;return(e=this.config)==null?void 0:e.hidesOnEsc}get hidesOnOutsideClick(){var e;return(e=this.config)==null?void 0:e.hidesOnOutsideClick}get hidesOnOutsideEsc(){var e;return(e=this.config)==null?void 0:e.hidesOnOutsideEsc}get inheritsReferenceWidth(){var e;return(e=this.config)==null?void 0:e.inheritsReferenceWidth}get handlesAccessibility(){var e;return(e=this.config)==null?void 0:e.handlesAccessibility}get isTooltip(){var e;return(e=this.config)==null?void 0:e.isTooltip}get invokerRelation(){var e;return(e=this.config)==null?void 0:e.invokerRelation}get popperConfig(){var e;return(e=this.config)==null?void 0:e.popperConfig}get viewportConfig(){var e;return(e=this.config)==null?void 0:e.viewportConfig}get visibilityTriggerFunction(){var e;return(e=this.config)==null?void 0:e.visibilityTriggerFunction}get _referenceNode(){return this.referenceNode||this.invokerNode}set elevation(e){this.__wrappingDialogNode.style.zIndex=`${this.config.zIndex+e}`}get elevation(){var e;return Number((e=this.contentWrapperNode)==null?void 0:e.style.zIndex)}updateConfig(e){var t,r,o;this.teardown(),this.__prevConfig=this.config,this.config=Se(C(C(C({},this._defaultConfig),this.__sharedConfig),e),{popperConfig:Se(C(C(C({},this._defaultConfig.popperConfig||{}),this.__sharedConfig.popperConfig||{}),e.popperConfig||{}),{modifiers:[...((t=this._defaultConfig.popperConfig)==null?void 0:t.modifiers)||[],...((r=this.__sharedConfig.popperConfig)==null?void 0:r.modifiers)||[],...((o=e.popperConfig)==null?void 0:o.modifiers)||[]]})}),this.__validateConfiguration(this.config),this._init(),this.__elementToFocusAfterHide=void 0}__validateConfiguration(e){if(!e.placementMode)throw new Error('[OverlayController] You need to provide a .placementMode ("global"|"local")');if(!["global","local"].includes(e.placementMode))throw new Error(`[OverlayController] "${e.placementMode}" is not a valid .placementMode, use ("global"|"local")`);if(!e.contentNode)throw new Error("[OverlayController] You need to provide a .contentNode");if(e.isTooltip&&!e.handlesAccessibility)throw new Error("[OverlayController] .isTooltip only takes effect when .handlesAccessibility is enabled")}_init(){this.__contentHasBeenInitialized||(this.__initContentDomStructure(),this.__contentHasBeenInitialized=!0),this.contentWrapperNode.removeAttribute("style"),this.contentWrapperNode.removeAttribute("class"),this.placementMode==="local"&&(Bi.popperModule||(Bi.popperModule=K$())),this.__handleOverlayStyles({phase:"init"}),this._handleFeatures({phase:"init"})}__handleOverlayStyles({phase:e}){var r;const t=(r=this.contentWrapperNode)==null?void 0:r.getRootNode();e==="init"?_o.adoptStyle(t,$p):e==="teardown"&&_o.adoptStyle(t,$p,{teardown:!0})}__initContentDomStructure(){var t,r;const e=document.createElement((t=this.config)!=null&&t._noDialogEl?"div":"dialog");e.setAttribute("role","none"),e.setAttribute("data-overlay-outer-wrapper",""),e.style.cssText=`display:none; z-index: ${this.config.zIndex}; padding: 0;`,this.__wrappingDialogNode=e,(r=this.config)!=null&&r.contentWrapperNode||(this.__contentWrapperNode=document.createElement("div")),this.contentWrapperNode.setAttribute("data-id","content-wrapper"),Y$({wrappingDialogNodeL1:e,contentWrapperNodeL2:this.contentWrapperNode,contentNodeL3:this.contentNode}),e.open=!0,this.__wrappingDialogNode.style.display="none",this.contentWrapperNode.style.zIndex="1",getComputedStyle(this.contentNode).position==="absolute"&&(this.contentNode.style.position="static")}_handleZIndex({phase:e}){if(this.placementMode==="local"&&e==="setup"){const t=Number(getComputedStyle(this.contentNode).zIndex);(t<1||Number.isNaN(t))&&(this.contentNode.style.zIndex="1")}}__setupTeardownAccessibility({phase:e}){e==="init"?(this.__storeOriginalAttrs(this.contentNode,["role","id"]),this.invokerNode&&this.__storeOriginalAttrs(this.invokerNode,["aria-expanded","aria-labelledby","aria-describedby"]),this.contentNode.id||this.contentNode.setAttribute("id",this._contentId),this.isTooltip?(this.invokerNode&&this.invokerNode.setAttribute(this.invokerRelation==="label"?"aria-labelledby":"aria-describedby",this._contentId),this.contentNode.setAttribute("role","tooltip")):(this.invokerNode&&this.invokerNode.setAttribute("aria-expanded",`${this.isShown}`),this.contentNode.getAttribute("role")||this.contentNode.setAttribute("role","dialog"))):e==="teardown"&&this.__restoreOriginalAttrs()}__storeOriginalAttrs(e,t){const r={};t.forEach(o=>{r[o]=e.getAttribute(o)}),this.__originalAttrs.set(e,r)}__restoreOriginalAttrs(){for(const[e,t]of this.__originalAttrs)Object.entries(t).forEach(([r,o])=>{o!==null?e.setAttribute(r,o):e.removeAttribute(r)});this.__originalAttrs.clear()}get isShown(){var e;return((e=this.__wrappingDialogNode)==null?void 0:e.style.display)!=="none"}show(){return He(this,arguments,function*(e=this.elementToFocusAfterHide){if(this._showComplete&&(yield this._showComplete),this._showComplete=new Promise(r=>{this._showResolve=r}),this.manager&&this.manager.show(this),this.isShown){this._showResolve();return}const t=new CustomEvent("before-show",{cancelable:!0});this.dispatchEvent(t),t.defaultPrevented||("HTMLDialogElement"in window&&this.__wrappingDialogNode instanceof HTMLDialogElement&&(this.__wrappingDialogNode.open=!0),this.__wrappingDialogNode.style.display="",this._keepBodySize({phase:"before-show"}),yield this._handleFeatures({phase:"show"}),this._keepBodySize({phase:"show"}),yield this._handlePosition({phase:"show"}),this.__elementToFocusAfterHide=e,this.dispatchEvent(new Event("show")),yield this._transitionShow({backdropNode:this.backdropNode,contentNode:this.contentNode})),this._showResolve()})}_handlePosition(t){return He(this,arguments,function*({phase:e}){if(this.placementMode==="global"){const r=`overlays__overlay-container--${this.viewportConfig.placement}`;e==="show"?(this.contentWrapperNode.classList.add("overlays__overlay-container"),this.contentWrapperNode.classList.add(r),this.contentNode.classList.add("overlays__overlay")):e==="hide"&&(this.contentWrapperNode.classList.remove("overlays__overlay-container"),this.contentWrapperNode.classList.remove(r),this.contentNode.classList.remove("overlays__overlay"))}else this.placementMode==="local"&&e==="show"&&(yield this.__createPopperInstance(),this._popper.forceUpdate())})}_keepBodySize({phase:e}){var t,r;switch(e){case"before-show":this.__bodyClientWidth=document.body.clientWidth,this.__bodyClientHeight=document.body.clientHeight,this.__bodyMarginRightInline=document.body.style.marginRight,this.__bodyMarginBottomInline=document.body.style.marginBottom;break;case"show":{if(window.getComputedStyle){const c=window.getComputedStyle(document.body);this.__bodyMarginRight=parseInt(c.getPropertyValue("margin-right"),10),this.__bodyMarginBottom=parseInt(c.getPropertyValue("margin-bottom"),10)}else this.__bodyMarginRight=0,this.__bodyMarginBottom=0;const o=document.body.clientWidth-this.__bodyClientWidth,a=document.body.clientHeight-this.__bodyClientHeight,l=this.__bodyMarginRight+o,d=this.__bodyMarginBottom+a;(t=window.CSS)!=null&&t.number&&((r=document.body.attributeStyleMap)!=null&&r.set)?(document.body.attributeStyleMap.set("margin-right",CSS.px(l)),document.body.attributeStyleMap.set("margin-bottom",CSS.px(d))):(document.body.style.marginRight=`${l}px`,document.body.style.marginBottom=`${d}px`);break}case"hide":document.body.style.marginRight=this.__bodyMarginRightInline||"",document.body.style.marginBottom=this.__bodyMarginBottomInline||"";break}}hide(){return He(this,null,function*(){if(this._hideComplete=new Promise(t=>{this._hideResolve=t}),this.__activeElementRightBeforeHide=this.contentNode.getRootNode().activeElement,this.manager&&this.manager.hide(this),!this.isShown){this._hideResolve();return}const e=new CustomEvent("before-hide",{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented||(yield this._transitionHide({backdropNode:this.backdropNode,contentNode:this.contentNode}),"HTMLDialogElement"in window&&this.__wrappingDialogNode instanceof HTMLDialogElement&&this.__wrappingDialogNode.close(),this.__wrappingDialogNode.style.display="none",this._handleFeatures({phase:"hide"}),this._keepBodySize({phase:"hide"}),this.dispatchEvent(new Event("hide")),this._restoreFocus()),this._hideResolve()})}transitionHide(e){return He(this,null,function*(){})}_transitionHide(r){return He(this,arguments,function*({backdropNode:e,contentNode:t}){yield this.transitionHide({backdropNode:e,contentNode:t}),this._handlePosition({phase:"hide"}),e&&e.classList.remove("overlays__backdrop--animation-in")})}transitionShow(e){return He(this,null,function*(){})}_transitionShow(e){return He(this,null,function*(){yield this.transitionShow({backdropNode:this.backdropNode,contentNode:this.contentNode}),e.backdropNode&&e.backdropNode.classList.add("overlays__backdrop--animation-in")})}_restoreFocus(){this.__activeElementRightBeforeHide instanceof HTMLElement&&this.contentNode.contains(this.__activeElementRightBeforeHide)&&(this.elementToFocusAfterHide?(this.elementToFocusAfterHide.focus(),this.elementToFocusAfterHide.scrollIntoView({block:"center"})):this.__activeElementRightBeforeHide.blur())}toggle(){return He(this,null,function*(){return this.isShown?this.hide():this.show()})}_handleFeatures({phase:e}){this._handleZIndex({phase:e}),this.preventsScroll&&this._handlePreventsScroll({phase:e}),this.isBlocking&&this._handleBlocking({phase:e}),this.hasBackdrop&&this._handleBackdrop({phase:e}),this.trapsKeyboardFocus&&this._handleTrapsKeyboardFocus({phase:e}),this.hidesOnEsc&&this._handleHidesOnEsc({phase:e}),this.hidesOnOutsideEsc&&this._handleHidesOnOutsideEsc({phase:e}),this.hidesOnOutsideClick&&this._handleHidesOnOutsideClick({phase:e}),this.handlesAccessibility&&this._handleAccessibility({phase:e}),this.inheritsReferenceWidth&&this._handleInheritsReferenceWidth(),this.visibilityTriggerFunction&&this._handleVisibilityTriggers({phase:e})}_handleVisibilityTriggers({phase:e}){typeof this.visibilityTriggerFunction=="function"&&(e==="init"&&(this.__visibilityTriggerHandler=this.visibilityTriggerFunction({phase:e,controller:this})),this.__visibilityTriggerHandler[e]&&this.__visibilityTriggerHandler[e]())}_handlePreventsScroll({phase:e}){switch(e){case"show":this.manager.requestToPreventScroll();break;case"hide":this.manager.requestToEnableScroll();break}}_handleBlocking({phase:e}){switch(e){case"show":this.manager.requestToShowOnly(this);break;case"hide":this.manager.retractRequestToShowOnly(this);break}}get hasActiveBackdrop(){return this.__hasActiveBackdrop}_handleBackdrop({phase:e}){var t;switch(e){case"init":{this.__backdropInitialized||((t=this.config)!=null&&t.backdropNode||(this.__backdropNode=document.createElement("div"),this.__backdropNode.classList.add("overlays__backdrop")),this.__wrappingDialogNode.prepend(this.backdropNode),this.__backdropInitialized=!0);break}case"show":this.config.hasBackdrop&&this.backdropNode.classList.add("overlays__backdrop--visible"),this.__hasActiveBackdrop=!0;break;case"hide":case"teardown":this.backdropNode.classList.remove("overlays__backdrop--visible"),this.__hasActiveBackdrop=!1;break}}get hasActiveTrapsKeyboardFocus(){return this.__hasActiveTrapsKeyboardFocus}_handleTrapsKeyboardFocus({phase:e}){e==="show"?("showModal"in this.__wrappingDialogNode&&(this.__wrappingDialogNode.close(),this.__wrappingDialogNode.showModal()),this.enableTrapsKeyboardFocus()):(e==="hide"||e==="teardown")&&this.disableTrapsKeyboardFocus()}enableTrapsKeyboardFocus(){this.__hasActiveTrapsKeyboardFocus||(this.manager&&this.manager.disableTrapsKeyboardFocusForAll(),this._containFocusHandler=z$(this.contentNode),this.__hasActiveTrapsKeyboardFocus=!0,this.manager&&this.manager.informTrapsKeyboardFocusGotEnabled(this.placementMode))}disableTrapsKeyboardFocus({findNewTrap:e=!0}={}){this.__hasActiveTrapsKeyboardFocus&&(this._containFocusHandler&&(this._containFocusHandler.disconnect(),this._containFocusHandler=void 0),this.__hasActiveTrapsKeyboardFocus=!1,this.manager&&this.manager.informTrapsKeyboardFocusGotDisabled({disabledCtrl:this,findNewTrap:e}))}__escKeyHandler(e){return e.key==="Escape"&&this.hide()}_handleHidesOnEsc({phase:e}){e==="show"?(this.contentNode.addEventListener("keyup",this.__escKeyHandler),this.invokerNode&&this.invokerNode.addEventListener("keyup",this.__escKeyHandler)):e==="hide"&&(this.contentNode.removeEventListener("keyup",this.__escKeyHandler),this.invokerNode&&this.invokerNode.removeEventListener("keyup",this.__escKeyHandler))}_handleHidesOnOutsideEsc({phase:e}){e==="show"?(this.__escKeyHandler=t=>t.key==="Escape"&&this.hide(),document.addEventListener("keyup",this.__escKeyHandler)):e==="hide"&&document.removeEventListener("keyup",this.__escKeyHandler)}_handleInheritsReferenceWidth(){if(!this._referenceNode||this.placementMode==="global")return;const e=`${this._referenceNode.getBoundingClientRect().width}px`;switch(this.inheritsReferenceWidth){case"max":this.contentWrapperNode.style.maxWidth=e;break;case"full":this.contentWrapperNode.style.width=e;break;case"min":this.contentWrapperNode.style.minWidth=e,this.contentWrapperNode.style.width="auto";break}}_handleHidesOnOutsideClick({phase:e}){const t=e==="show"?"addEventListener":"removeEventListener";if(e==="show"){let r=!1,o=!1;this.__onInsideMouseDown=()=>{r=!0},this.__onInsideMouseUp=()=>{o=!0},this.__onDocumentMouseUp=()=>{setTimeout(()=>{!r&&!o&&this.hide(),r=!1,o=!1})}}this.contentWrapperNode[t]("mousedown",this.__onInsideMouseDown,!0),this.contentWrapperNode[t]("mouseup",this.__onInsideMouseUp,!0),this.invokerNode&&(this.invokerNode[t]("mousedown",this.__onInsideMouseDown,!0),this.invokerNode[t]("mouseup",this.__onInsideMouseUp,!0)),document.documentElement[t]("mouseup",this.__onDocumentMouseUp,!0)}_handleAccessibility({phase:e}){(e==="init"||e==="teardown")&&this.__setupTeardownAccessibility({phase:e}),this.invokerNode&&!this.isTooltip&&this.invokerNode.setAttribute("aria-expanded",`${e==="show"}`)}teardown(){this.__handleOverlayStyles({phase:"teardown"}),this._handleFeatures({phase:"teardown"})}__createPopperInstance(){return He(this,null,function*(){var e;if(this._popper&&(this._popper.destroy(),this._popper=void 0),Bi.popperModule!==void 0){const{createPopper:t}=yield Bi.popperModule;this._popper=t(this._referenceNode,this.contentWrapperNode,C({},(e=this.config)==null?void 0:e.popperConfig))}})}_hasDisabledInvoker(){return this.invokerNode?this.invokerNode.disabled||this.invokerNode.getAttribute("aria-disabled")==="true":!1}}Bi.popperModule=void 0;const wp=new WeakMap;function J$(n,e){let t=e;for(;t;){if(wp.get(t)===n)return!0;t=Object.getPrototypeOf(t)}return!1}function X$(n){return e=>{if(J$(n,e))return e;const t=n(e);return wp.set(t,n),t}}function _p(n,e){if(typeof n!="object"||typeof e!="object"||n===null||e===null)return n===e;const t=Object.keys(n),r=Object.keys(e);if(t.length!==r.length)return!1;const o=a=>_p(n[a],e[a]);return t.every(o)}const Q$=X$(n=>class extends n{static get properties(){return{opened:{type:Boolean,reflect:!0}}}constructor(){super(),this.opened=!1,this.config={},this.toggle=this.toggle.bind(this),this.open=this.open.bind(this),this.close=this.close.bind(this)}get config(){return this.__config}set config(t){const r=!_p(this.config,t);this._overlayCtrl&&r&&this._overlayCtrl.updateConfig(t),this.__config=t,this._overlayCtrl&&r&&this.__syncToOverlayController()}requestUpdate(t,r,o){super.requestUpdate(t,r,o),t==="opened"&&this.opened!==r&&this.dispatchEvent(new Event("opened-changed"))}_defineOverlay({contentNode:t,invokerNode:r,referenceNode:o,backdropNode:a,contentWrapperNode:l}){var c,h,g,v;const d=this._defineOverlayConfig()||{};return new Bi(Se(C(C({contentNode:t,invokerNode:r,referenceNode:o,backdropNode:a,contentWrapperNode:l},d),this.config),{popperConfig:Se(C(C({},d.popperConfig||{}),((c=this.config)==null?void 0:c.popperConfig)||{}),{modifiers:[...((h=d.popperConfig)==null?void 0:h.modifiers)||[],...((v=(g=this.config)==null?void 0:g.popperConfig)==null?void 0:v.modifiers)||[]]})}))}_defineOverlayConfig(){return{placementMode:"local"}}updated(t){super.updated(t),t.has("opened")&&this._overlayCtrl&&!this.__blockSyncToOverlayCtrl&&this.__syncToOverlayController()}_setupOpenCloseListeners(){this.__closeEventInContentNodeHandler=t=>{t.stopPropagation(),this._overlayCtrl.hide()},this._overlayContentNode&&this._overlayContentNode.addEventListener("close-overlay",this.__closeEventInContentNodeHandler)}_teardownOpenCloseListeners(){this._overlayContentNode&&this._overlayContentNode.removeEventListener("close-overlay",this.__closeEventInContentNodeHandler)}firstUpdated(t){super.firstUpdated(t),this._setupOverlayCtrl()}disconnectedCallback(){super.disconnectedCallback(),this._overlayCtrl&&this._teardownOverlayCtrl()}get _overlayInvokerNode(){return Array.from(this.children).find(t=>t.slot==="invoker")}get _overlayReferenceNode(){}get _overlayBackdropNode(){return this.__cachedOverlayBackdropNode||(this.__cachedOverlayBackdropNode=Array.from(this.children).find(t=>t.slot==="backdrop")),this.__cachedOverlayBackdropNode}get _overlayContentNode(){return this._cachedOverlayContentNode||(this._cachedOverlayContentNode=Array.from(this.children).find(t=>t.slot==="content")||this.config.contentNode),this._cachedOverlayContentNode}get _overlayContentWrapperNode(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector("#overlay-content-node-wrapper")}_setupOverlayCtrl(){this._overlayCtrl=this._defineOverlay({contentNode:this._overlayContentNode,contentWrapperNode:this._overlayContentWrapperNode,invokerNode:this._overlayInvokerNode,referenceNode:this._overlayReferenceNode,backdropNode:this._overlayBackdropNode}),this.__syncToOverlayController(),this.__setupSyncFromOverlayController(),this._setupOpenCloseListeners()}_teardownOverlayCtrl(){this._teardownOpenCloseListeners(),this.__teardownSyncFromOverlayController(),this._overlayCtrl.teardown()}_setOpenedWithoutPropertyEffects(t){return He(this,null,function*(){this.__blockSyncToOverlayCtrl=!0,this.opened=t,yield this.updateComplete,this.__blockSyncToOverlayCtrl=!1})}__setupSyncFromOverlayController(){this.__onOverlayCtrlShow=()=>{this.opened=!0},this.__onOverlayCtrlHide=()=>{this.opened=!1},this.__onBeforeShow=t=>{const r=new CustomEvent("before-opened",{cancelable:!0});this.dispatchEvent(r),r.defaultPrevented&&(this._setOpenedWithoutPropertyEffects(this._overlayCtrl.isShown),t.preventDefault())},this.__onBeforeHide=t=>{const r=new CustomEvent("before-closed",{cancelable:!0});this.dispatchEvent(r),r.defaultPrevented&&(this._setOpenedWithoutPropertyEffects(this._overlayCtrl.isShown),t.preventDefault())},this._overlayCtrl.addEventListener("show",this.__onOverlayCtrlShow),this._overlayCtrl.addEventListener("hide",this.__onOverlayCtrlHide),this._overlayCtrl.addEventListener("before-show",this.__onBeforeShow),this._overlayCtrl.addEventListener("before-hide",this.__onBeforeHide)}__teardownSyncFromOverlayController(){this._overlayCtrl.removeEventListener("show",this.__onOverlayCtrlShow),this._overlayCtrl.removeEventListener("hide",this.__onOverlayCtrlHide),this._overlayCtrl.removeEventListener("before-show",this.__onBeforeShow),this._overlayCtrl.removeEventListener("before-hide",this.__onBeforeHide)}__syncToOverlayController(){this.opened?this._overlayCtrl.show():this._overlayCtrl.hide()}toggle(){return He(this,null,function*(){yield this._overlayCtrl.toggle()})}open(){return He(this,null,function*(){yield this._overlayCtrl.show()})}close(){return He(this,null,function*(){yield this._overlayCtrl.hide()})}repositionOverlay(){const t=this._overlayCtrl;t.placementMode==="local"&&t._popper&&t._popper.update()}});function ew(){return{visibilityTriggerFunction:({controller:n})=>{function e(){n._hasDisabledInvoker()||n.toggle()}return{init:()=>{var t;(t=n.invokerNode)==null||t.addEventListener("click",e)},teardown:()=>{var t;(t=n.invokerNode)==null||t.removeEventListener("click",e)}}}}}const tw=()=>C({placementMode:"global",viewportConfig:{placement:"center"},hasBackdrop:!0,preventsScroll:!0,trapsKeyboardFocus:!0,hidesOnEsc:!0,handlesAccessibility:!0},ew()),nw=tp('*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-4{bottom:16px}.left-4{left:16px}.right-0{right:0}.right-4{right:16px}.top-0{top:0}.top-1\\/2{top:50%}.top-4{top:16px}.z-10{z-index:10}.z-\\[2147483598\\]{z-index:2147483598}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:4px}.mb-10{margin-bottom:40px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.ml-auto{margin-left:auto}.mr-2{margin-right:8px}.mr-4{margin-right:16px}.mr-auto{margin-right:auto}.mt-1{margin-top:4px}.mt-4{margin-top:16px}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.\\!h-full{height:100%!important}.h-32{height:128px}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-dvh{height:100dvh}.h-full{height:100%}.max-h-\\[90svh\\]{max-height:90svh}.max-h-\\[90vh\\]{max-height:90vh}.max-h-dvh{max-height:100dvh}.\\!w-screen{width:100vw!important}.w-5{width:20px}.w-64{width:256px}.w-7{width:28px}.w-\\[400px\\]{width:400px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\\[3rem\\]{min-width:48px}.max-w-\\[420px\\]{max-width:420px}.max-w-\\[620px\\]{max-width:620px}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-grow,.grow{flex-grow:1}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.gap-1{gap:4px}.gap-1\\.5{gap:6px}.gap-2{gap:8px}.gap-\\[1rem\\]{gap:16px}.gap-x-2{-moz-column-gap:8px;column-gap:8px}.overflow-auto{overflow:auto}.overflow-visible{overflow:visible}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-md{border-radius:6px}.rounded-b-2xl{border-bottom-right-radius:16px;border-bottom-left-radius:16px}.rounded-t-2xl{border-top-left-radius:16px;border-top-right-radius:16px}.border{border-width:1px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-b-gray-100{--tw-border-opacity: 1;border-bottom-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.fill-blue-500{fill:#3b82f6}.p-1{padding:4px}.p-12{padding:48px}.p-2{padding:8px}.p-20{padding:80px}.p-4{padding:16px}.p-6{padding:24px}.px-4{padding-left:16px;padding-right:16px}.py-3{padding-top:12px;padding-bottom:12px}.py-6{padding-top:24px;padding-bottom:24px}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:24px;line-height:32px}.text-3xl{font-size:30px;line-height:36px}.text-5xl{font-size:48px;line-height:1}.text-base{font-size:16px;line-height:24px}.text-lg{font-size:18px;line-height:28px}.text-xl{font-size:20px;line-height:28px}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-tight{line-height:1.25}.\\!text-gray-900{--tw-text-opacity: 1 !important;color:rgb(17 24 39 / var(--tw-text-opacity, 1))!important}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.\\!no-underline{text-decoration-line:none!important}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}:host{font-family:Matter,sans-serif}.hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}@media (min-width: 640px){.sm\\:flex-row{flex-direction:row}}@media (min-width: 768px){.md\\:shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media (min-width: 521px){.modal-desktop\\:h-auto{height:auto}.modal-desktop\\:max-h-\\[90dvh\\]{max-height:90dvh}.modal-desktop\\:max-h-\\[90vh\\]{max-height:90vh}.modal-desktop\\:max-h-\\[min\\(90dvh\\,725px\\)\\]{max-height:min(90dvh,725px)}.modal-desktop\\:w-auto{width:auto}.modal-desktop\\:overflow-auto{overflow:auto}.modal-desktop\\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}}@media (max-width: 520px){.max-modal-desktop\\:\\!h-full{height:100%!important}}@media (prefers-color-scheme: dark){.dark\\:text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}}'),il=n=>{class e extends n{connectedCallback(){super.connectedCallback(),this.shadowRoot&&np(this.shadowRoot,[nw])}}return e};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const pi=n=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(n,e)}):customElements.define(n,e)};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const rw={attribute:!0,type:String,converter:el,reflect:!1,hasChanged:kd},iw=(n=rw,e,t)=>{const{kind:r,metadata:o}=t;let a=globalThis.litPropertyMetadata.get(o);if(a===void 0&&globalThis.litPropertyMetadata.set(o,a=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),a.set(t.name,n),r==="accessor"){const{name:l}=t;return{set(d){const c=e.get.call(this);e.set.call(this,d),this.requestUpdate(l,c,n)},init(d){return d!==void 0&&this.C(l,void 0,n,d),d}}}if(r==="setter"){const{name:l}=t;return function(d){const c=this[l];e.call(this,d),this.requestUpdate(l,c,n)}}throw Error("Unsupported decorator location: "+r)};function B(n){return(e,t)=>typeof t=="object"?iw(n,e,t):((r,o,a)=>{const l=o.hasOwnProperty(a);return o.constructor.createProperty(a,r),l?Object.getOwnPropertyDescriptor(o,a):void 0})(n,e,t)}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function gi(n){return B(Se(C({},n),{state:!0,attribute:!1}))}var ow=Object.defineProperty,sw=Object.getOwnPropertyDescriptor,xo=(n,e,t,r)=>{for(var o=r>1?void 0:r?sw(e,t):e,a=n.length-1,l;a>=0;a--)(l=n[a])&&(o=(r?l(e,t,o):l(o))||o);return r&&o&&ow(e,t,o),o},Hd=(n=>(n[n.MANUAL=0]="MANUAL",n[n.TIMED=1]="TIMED",n))(Hd||{});let mi=class extends il(Q$(hi)){constructor(){super(...arguments),this.trigger=0,this.openDelay=5e3,this.closeButton=!1,this.hideOnEsc=!0,this.hideOnOutsideClick=!1}_defineOverlayConfig(){const n=document.createElement("div");return n.id="overlays-backdrop",Se(C({},tw()),{hidesOnOutsideEsc:this.hideOnEsc,hidesOnOutsideClick:this.hideOnOutsideClick,backdropNode:n})}connectedCallback(){super.connectedCallback(),this.trigger===1&&setTimeout(()=>{this.toggle()},this.openDelay)}render(){return Ge` ${this.getBackdropStyles()}
${this.closeButton?this.renderCloseIcon():""}
`}renderCloseIcon(){return Ge` `}getBackdropStyles(){return Ge` `}};xo([B({type:Number,attribute:"trigger"})],mi.prototype,"trigger",2),xo([B({type:Number,attribute:"open-delay"})],mi.prototype,"openDelay",2),xo([B({type:Boolean,attribute:"close-button"})],mi.prototype,"closeButton",2),xo([B({type:Boolean,attribute:"hide-on-esc"})],mi.prototype,"hideOnEsc",2),xo([B({type:Boolean,attribute:"hide-on-outside-click"})],mi.prototype,"hideOnOutsideClick",2),mi=xo([pi("givebutter-dialog")],mi);const aw=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterDialog(){return mi},GivebutterDialogMode:Hd},Symbol.toStringTag,{value:"Module"}));/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let xp=class{constructor(e,{target:t,config:r,callback:o,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=e,t!==null&&this.t.add(t!=null?t:e),this.l=r,this.o=a!=null?a:this.o,this.callback=o,window.MutationObserver?(this.u=new MutationObserver(l=>{this.handleChanges(l),this.h.requestUpdate()}),e.addController(this)):console.warn("MutationController error: browser does not support MutationObserver.")}handleChanges(e){var t;this.value=(t=this.callback)==null?void 0:t.call(this,e,this.u)}hostConnected(){for(const e of this.t)this.observe(e)}hostDisconnected(){this.disconnect()}hostUpdated(){return He(this,null,function*(){const e=this.u.takeRecords();(e.length||!this.o&&this.i)&&this.handleChanges(e),this.i=!1})}observe(e){this.t.add(e),this.u.observe(e,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}};class lw{constructor(e,t){this.icon=e,this.labelColor=t}getSVG(){switch(this.icon){case"none":return"";case"ticket":return this.ticketIcon();case"gift":return this.giftIcon();case"giving_hands":return this.givingHandsIcon();case"heart":default:return this.heartIcon()}}ticketIcon(){return Ge` `}heartIcon(){return Ge` `}giftIcon(){return Ge` `}givingHandsIcon(){return Ge` `}}class Ep{static loadObjectFromLocalStorage(e,t){if(!window.localStorage)return Ct.warn("localStorage is not available. Can't load data."),{};try{const r=window.localStorage.getItem(e);return t?JSON.parse(r!=null?r:"{}"):{}}catch(r){return Ct.error(r),{}}}static saveObjectToLocalStorage(e,t){if(!window.localStorage)return Ct.warn("localStorage is not available. Can't save data."),!1;try{return window.localStorage.setItem(e,JSON.stringify(t)),!0}catch(r){return Ct.error(r),!1}}}const Sp="givebutter.analytics:0.0.0",Is={maxAge:60*24*30,qsPrefix:"gba_",temporaryKeyPrefix:"tmp_",qsThirdPartyKeys:["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","wbraid","gbraid","gclsrc","dclid","fbclid"],widgetFormKeys:["amount","frequency","fund","promo"]};class uw{constructor(){this._filterTemporaryKeys=function(e){e=C({},e);for(const t of Object.keys(e))t.startsWith("gb.element.")&&(Ft.isLocalEnv()&&Ct.debug("_filterTemporaryKeys) Filtering "+t),delete e[t]),t.toLowerCase().startsWith(Is.temporaryKeyPrefix)&&(Ft.isLocalEnv()&&Ct.debug("_filterTemporaryKeys) Filtering "+t),delete e[t]);return e},this.analyticsData={},this.loadFromStorage(),this.cleanup(),this.loadFromUrl(window.location.href)}static getGivebutterAnalytics(){return window.gbWidgets.analytics||(window.gbWidgets.analytics=new this),window.gbWidgets.analytics}getQueryString(){const e=this.getAll();return Object.keys(e).length===0?"":this.objToQueryString(e,null)}loadFromStorage(){this.analyticsData=Ep.loadObjectFromLocalStorage(Sp,this.analyticsData)}set(e,t,r=!0){const o=Date.now();e=e.toLowerCase(),this.analyticsData[e]={v:t,c:o,e:o+Is.maxAge*60*1e3,f:r};let a=this.saveToStorage();return r&&this.forwardToGa(function(l){l.set(e,t)}),a}remove(e){delete this.analyticsData[e],this.saveToStorage()}cleanup(){const e=Date.now();let t=!1;for(let r in this.analyticsData)if(this.analyticsData[r].e<=e){Ft.isLocalEnv()&&Ct.debug("cleanup() Key '"+r+"' expired at "+this.analyticsData[r].e+" ("+(this.analyticsData[r].e-e)+")"),delete this.analyticsData[r],t=!0;break}return t?(this.saveToStorage(),!0):!1}saveToStorage(){Ft.isLocalEnv()&&Ct.debug("saveToStorage() - userAllowsTracking = false");const e=this._filterTemporaryKeys(this.analyticsData);return Ep.saveObjectToLocalStorage(Sp,e)}loadFromUrl(e){const t=es.getQueryParams(e);for(let r in t)if(r.toLowerCase().startsWith(Is.qsPrefix)){const o=t[r];Ft.isLocalEnv()&&Ct.debug("loadFromUrl() qsPrefix match: "+r+" = "+o),this.set(r,o,!0)}for(const r of Is.qsThirdPartyKeys)t.hasOwnProperty(r)&&(Ft.isLocalEnv()&&Ct.debug("loadFromUrl() qsThirdPartyKeys match: "+r+" = "+t[r]),this.set(r,t[r],!0));for(const r of Is.widgetFormKeys)t.hasOwnProperty(r)?(Ft.isLocalEnv()&&Ct.debug("loadFromUrl() widgetFormKeys match: "+r+" = "+t[r]),this.set(r,t[r],!1)):this.analyticsData.hasOwnProperty(r)&&this.remove(r)}forwardToGa(e){if(window.ga&&window.ga.getAll){const t=window.ga.getAll();for(const r of t)Ft.isLocalEnv()&&Ct.debug("set) Forward to GA: "+r.get("trackingId")),e(r);return!0}return!1}getAll(){let e=Date.now(),t={};for(const r in this.analyticsData)this.analyticsData[r].e>=e&&(t[r]=this.analyticsData[r].v);return t}serializeKey(e,t){return e&&e.length>0?`${e}.${t}`:t}objToQueryString(e,t=null){const r=[];for(const o in e)if(e.hasOwnProperty(o)){const a=t?this.serializeKey(t,o):o,l=e[o];r.push(l!==null&&typeof l=="object"?this.objToQueryString(l,a):`${encodeURIComponent(a)}=${encodeURIComponent(l)}`)}return r.join("&")}}function Cp(n){return n===null||typeof n=="undefined"}class zr{static string(e,t,r,o){return Cp(t)?!1:o.includes(t)?t!==r:(Ct.error(`Attribute ${e} is invalid. Accepted: ${o.join(", ")}.`),!1)}static number(e,t,r){return Cp(t)?!1:typeof t!="number"||isNaN(t)?(Ct.error(`Attribute ${e} must be a number`),!1):t!==r}static checkRequiredProps(e,t,r){for(const o of r)if(t.has(o)&&(!e[`${o}`]||e[`${o}`].length===0)){const a=`${o} attribute is required.`;return Ct.error(a.charAt(0).toUpperCase()+a.slice(1)),!1}return!0}}var dw=Object.defineProperty,ol=(n,e,t,r)=>{for(var o=void 0,a=n.length-1,l;a>=0;a--)(l=n[a])&&(o=l(e,t,o)||o);return o&&dw(e,t,o),o},Eo=(n=>(n[n.BUTTON=0]="BUTTON",n[n.DYNAMIC=1]="DYNAMIC",n[n.GIVING_FORM=2]="GIVING_FORM",n[n.SIGNUP_FORM=3]="SIGNUP_FORM",n[n.GOAL_BAR=4]="GOAL_BAR",n))(Eo||{});const Rs=il((n=>{class e extends n{constructor(){super(...arguments),this.analytics=uw.getGivebutterAnalytics(),this.componentType=null,this.account=Ft.getAccountId(),this.campaign="",this.widgetId="",this.embedUrl=""}shouldUpdate(r){const o=this.componentType===1||this.componentType===3?["account","id"]:["account","campaign"];return zr.checkRequiredProps(this,r,o)}}return ol([B({type:String,attribute:"account"})],e.prototype,"account"),ol([B({type:String,attribute:"campaign"})],e.prototype,"campaign"),ol([B({type:String,attribute:"id"})],e.prototype,"widgetId"),ol([B({type:String,attribute:"embed-url"})],e.prototype,"embedUrl"),e})(hi)),vc=class vc{};vc._boolean={fromAttribute:e=>e==="true",toAttribute:e=>e?"true":"false"};let cr=vc;/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Er=n=>n!=null?n:pt;/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const cw=n=>n.strings===void 0;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const sl={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},al=n=>(...e)=>({_$litDirective$:n,values:e});let zd=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Fs=(n,e)=>{var r;const t=n._$AN;if(t===void 0)return!1;for(const o of t)(r=o._$AO)==null||r.call(o,e,!1),Fs(o,e);return!0},ll=n=>{let e,t;do{if((e=n._$AM)===void 0)break;t=e._$AN,t.delete(n),n=e}while((t==null?void 0:t.size)===0)},Np=n=>{for(let e;e=n._$AM;n=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(n))break;t.add(n),pw(e)}};function fw(n){this._$AN!==void 0?(ll(this),this._$AM=n,Np(this)):this._$AM=n}function hw(n,e=!1,t=0){const r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(r))for(let a=t;a{var e,t;n.type==sl.CHILD&&((e=n._$AP)!=null||(n._$AP=hw),(t=n._$AQ)!=null||(n._$AQ=fw))};class Tp extends zd{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),Np(this),this.isConnected=e._$AU}_$AO(e,t=!0){var r,o;e!==this.isConnected&&(this.isConnected=e,e?(r=this.reconnected)==null||r.call(this):(o=this.disconnected)==null||o.call(this)),t&&(Fs(this,e),ll(this))}setValue(e){if(cw(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Gd=()=>new gw;class gw{}const Vd=new WeakMap,So=al(class extends Tp{render(n){return pt}update(n,[e]){var r;const t=e!==this.G;return t&&this.G!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=e,this.ht=(r=n.options)==null?void 0:r.host,this.rt(this.ct=n.element)),pt}rt(n){var e;if(this.isConnected||(n=void 0),typeof this.G=="function"){const t=(e=this.ht)!=null?e:globalThis;let r=Vd.get(t);r===void 0&&(r=new WeakMap,Vd.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.ht,void 0),r.set(this.G,n),n!==void 0&&this.G.call(this.ht,n)}else this.G.value=n}get lt(){var n,e,t;return typeof this.G=="function"?(e=Vd.get((n=this.ht)!=null?n:globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Op="important",mw=" !"+Op,fr=al(class extends zd{constructor(n){var e;if(super(n),n.type!==sl.ATTRIBUTE||n.name!=="style"||((e=n.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((e,t)=>{const r=n[t];return r==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(n,[e]){const{style:t}=n.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const r of this.ft)e[r]==null&&(this.ft.delete(r),r.includes("-")?t.removeProperty(r):t[r]=null);for(const r in e){const o=e[r];if(o!=null){this.ft.add(r);const a=typeof o=="string"&&o.endsWith(mw);r.includes("-")||a?t.setProperty(r,a?o.slice(0,-11):o,a?Op:""):t[r]=o}}return fi}});var yw=Object.defineProperty,vw=Object.getOwnPropertyDescriptor,yt=(n,e,t,r)=>{for(var o=r>1?void 0:r?vw(e,t):e,a=n.length-1,l;a>=0;a--)(l=n[a])&&(o=(r?l(e,t,o):l(o))||o);return r&&o&&yw(e,t,o),o};const kp="z-[2147483598]";var Ap=(n=>(n.LINK="link",n.MODAL="modal",n))(Ap||{}),Pp=(n=>(n.GIFT="gift",n.GIVING_HANDS="giving_hands",n.HEART="heart",n.NONE="none",n.TICKET="ticket",n))(Pp||{}),Ip=(n=>(n.LEFT="left",n.RIGHT="right",n))(Ip||{}),Rp=(n=>(n.BOTTOM_LEFT="bottom-left",n.BOTTOM_RIGHT="bottom-right",n.MIDDLE_LEFT="middle-left",n.MIDDLE_RIGHT="middle-right",n.NONE="",n.TOP_LEFT="top-left",n.TOP_RIGHT="top-right",n))(Rp||{});let ut=class extends Rs{constructor(){super(),this.isOpen=!1,this._embedUrl="",this._type="modal",this._hideButton=!1,this._label="Donate",this._hideLabel=!1,this._labelColor="#FFFFFF",this._backgroundColor="#3366FF",this._icon="heart",this._iconPosition="left",this._dropShadow=!0,this._borderRadius=100,this._borderColor="",this._borderWidth=0,this._buttonClass="",this._position="",this._verticalOffset=25,this._horizontalOffset=25,this._buttonTransformShow="scale(1)",this._buttonTransformHide="scale(0)",this._maxWidth="560px",this.isEventTicketsFlow=!1,this.contentRef=Gd(),this.observer=new xp(this,{config:{childList:!0,subtree:!0},target:document.querySelector("[data-overlay-outer-wrapper]"),callback:n=>{const e=n[0];e&&(this.isOpen=e.removedNodes.length<=0)}}),this.componentType=Eo.BUTTON}set embedUrl(n){this._embedUrl=n}get embedUrl(){return this._embedUrl}set type(n){zr.string("type",n,this._type,Object.values(Ap))&&(this._type=n)}get type(){return this._type}set hideButton(n){this._hideButton=n}get hideButton(){return this._hideButton}set label(n){this._label=n}get label(){return this._label}set hideLabel(n){this._hideLabel=n}get hideLabel(){return this._hideLabel}set labelColor(n){this._labelColor=n}get labelColor(){return this._labelColor}set backgroundColor(n){this._backgroundColor=n}get backgroundColor(){return this._backgroundColor}set icon(n){zr.string("icon",n,this._icon,Object.values(Pp))&&(this._icon=n)}get icon(){return this._icon}set iconPosition(n){zr.string("icon-position",n,this._iconPosition,Object.values(Ip))&&(this._iconPosition=n)}get iconPosition(){return this._iconPosition}set dropShadow(n){this._dropShadow=n}get dropShadow(){return this._dropShadow}set borderRadius(n){zr.number("border-radius",n,this._borderRadius)&&(this._borderRadius=n)}get borderRadius(){return this._borderRadius}set borderColor(n){this._borderColor=n}get borderColor(){return this._borderColor}set borderWidth(n){zr.number("border-width",n,this._borderWidth)&&(this._borderWidth=n)}get borderWidth(){return this._borderWidth}set buttonClass(n){this._buttonClass=n}get buttonClass(){return this._buttonClass}set position(n){zr.string("position",n,this._position,Object.values(Rp))&&(this._position=n)}get position(){return this._position}set verticalOffset(n){zr.number("vertical-offset",n,this._verticalOffset)&&(this._verticalOffset=n)}get verticalOffset(){return this._verticalOffset}set horizontalOffset(n){zr.number("horizontal-offset",n,this._horizontalOffset)&&(this._horizontalOffset=n)}get horizontalOffset(){return this._horizontalOffset}set buttonTransformShow(n){this._buttonTransformShow=n}get buttonTransformShow(){return this._buttonTransformShow}set buttonTransformHide(n){this._buttonTransformHide=n}get buttonTransformHide(){return this._buttonTransformHide}set maxWidth(n){this._maxWidth=n}get maxWidth(){return this._maxWidth}firstUpdated(){this.observer.observe(this.contentRef.value)}render(){const n=`${this.getDropShadowClass()} ${this.buttonClass} w-fit transition transform hover:scale-105 flex h-4 min-w-[3rem] cursor-pointer items-center justify-center gap-1.5 bg-transparent px-4 py-6 font-sans text-base font-semibold`;if(this.type==="link"){let e="?source=widgets";return this.widgetId.length>0&&(e+=`&gba_gb.element.id=${this.widgetId}`),Ge` `}return Ge`
${this.isOpen?Ge` `:""}
`}renderLabel(){return this.iconPosition==="left"?Ge`${this.showIcon()} ${this.showLabel()}`:Ge`${this.showLabel()} ${this.showIcon()}`}getButtonStyles(){return this.hideButton?{display:"none",pointerEvents:"none"}:{color:this.labelColor,backgroundColor:this.backgroundColor,borderColor:this.borderColor,borderRadius:`${this.borderRadius}px`,borderWidth:`${this.borderWidth}px`}}showLabel(){return this.hideLabel||this.label.length===0?"":Ge`${this.label}`}showIcon(){return new lw(this.icon,this.labelColor).getSVG()}getDropShadowClass(){return this.dropShadow?"drop-shadow-md":""}getPosition(){const n=this.position,e=[];n.length>0&&e.push("fixed");const[t,r]=n.toLowerCase().split("-");switch(t){case"top":e.push("top-4");break;case"middle":e.push("top-1/2"),e.push("translate-x-0"),e.push("-translate-y-1/2");break;case"bottom":e.push("bottom-4");break}switch(r){case"left":e.push("left-4");break;case"right":e.push("right-4");break}return e.join(" ")}getEmbedUrl(){return this.embedUrl.length>0?this.embedUrl:void 0}};yt([gi()],ut.prototype,"isOpen",2),yt([B({type:String,attribute:"embed-url"})],ut.prototype,"embedUrl",1),yt([B({type:String,attribute:"type"})],ut.prototype,"type",1),yt([B({type:Boolean,attribute:"hide-button"})],ut.prototype,"hideButton",1),yt([B({type:String,attribute:"label"})],ut.prototype,"label",1),yt([B({type:Boolean,attribute:"hide-label"})],ut.prototype,"hideLabel",1),yt([B({type:String,attribute:"label-color"})],ut.prototype,"labelColor",1),yt([B({type:String,attribute:"background-color"})],ut.prototype,"backgroundColor",1),yt([B({type:String,attribute:"icon"})],ut.prototype,"icon",1),yt([B({type:String,attribute:"icon-position"})],ut.prototype,"iconPosition",1),yt([B({type:Boolean,attribute:"drop-shadow",converter:cr._boolean})],ut.prototype,"dropShadow",1),yt([B({type:Number,attribute:"border-radius"})],ut.prototype,"borderRadius",1),yt([B({type:String,attribute:"border-color"})],ut.prototype,"borderColor",1),yt([B({type:Number,attribute:"border-width"})],ut.prototype,"borderWidth",1),yt([B({type:String,attribute:"button-class"})],ut.prototype,"buttonClass",1),yt([B({type:String,attribute:"position"})],ut.prototype,"position",1),yt([B({type:Number,attribute:"vertical-offset"})],ut.prototype,"verticalOffset",1),yt([B({type:Number,attribute:"horizontal-offset"})],ut.prototype,"horizontalOffset",1),yt([B({type:String,attribute:"button-transform-show"})],ut.prototype,"buttonTransformShow",1),yt([B({type:String,attribute:"button-transform-hide"})],ut.prototype,"buttonTransformHide",1),yt([B({type:String,attribute:"max-width"})],ut.prototype,"maxWidth",1),yt([B({type:Boolean})],ut.prototype,"isEventTicketsFlow",2),ut=yt([pi("givebutter-button")],ut);const bw=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterButton(){return ut}},Symbol.toStringTag,{value:"Module"}));var Fp={exports:{}};(function(n){console.info(` IFRAME-RESIZER Iframe-Resizer 5 is now available via the following two packages: * @iframe-resizer/parent * @iframe-resizer/child Additionally their are also new versions of iframe-resizer for React, Vue, and jQuery. Version 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events. Please see https://iframe-resizer.com/upgrade for more details. `),function(e){if(typeof window=="undefined")return;var t=0,r,o=!1,a=!1,l="message",d=l.length,c="[iFrameSizer]",h=c.length,g=null,v=window.requestAnimationFrame,w=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),m={},N=null,A=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){X("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}});function k(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function M(E,H,se){E.addEventListener(H,se,!1)}function j(E,H,se){E.removeEventListener(H,se,!1)}function Z(){var E=["moz","webkit","o","ms"],H;for(H=0;Hfe&&(Et=fe,L(le,"Set "+Oe+" to max value")),Ce[Oe]=""+Et}function Xe(){function J(){function Oe(){var Wt=0,Ut=!1;for(L(le,"Checking connection is from allowed list of origins: "+xe);Wtm[ie]["max"+xt])throw new Error("Value for min"+xt+" can not be greater than max"+xt)}ct("Height"),ct("Width"),oe("maxHeight"),oe("minHeight"),oe("maxWidth"),oe("minWidth")}function re(){var oe=H&&H.id||A.id+t++;return document.getElementById(oe)!==null&&(oe+=t++),oe}function _e(oe){if(typeof oe!="string")throw new TypeError("Invaild id for iFrame. Expected String");return oe===""&&(E.id=oe=re(),o=(H||{}).log,L(oe,"Added missing iframe ID: "+oe+" ("+E.src+")")),oe}function ae(){switch(L(ie,"IFrame scrolling "+(m[ie]&&m[ie].scrolling?"enabled":"disabled")+" for "+ie),E.style.overflow=(m[ie]&&m[ie].scrolling)===!1?"hidden":"auto",m[ie]&&m[ie].scrolling){case"omit":break;case!0:{E.scrolling="yes";break}case!1:{E.scrolling="no";break}default:E.scrolling=m[ie]?m[ie].scrolling:"no"}}function Xe(){(typeof(m[ie]&&m[ie].bodyMargin)=="number"||(m[ie]&&m[ie].bodyMargin)==="0")&&(m[ie].bodyMarginV1=m[ie].bodyMargin,m[ie].bodyMargin=""+m[ie].bodyMargin+"px")}function It(){var oe=m[ie]&&m[ie].firstRun,ct=m[ie]&&m[ie].heightCalculationMethod in w;!oe&&ct&&Y({iframe:E,height:0,width:0,type:"init"})}function Bt(){m[ie]&&(m[ie].iframe.iFrameResizer={close:dt.bind(null,m[ie].iframe),removeListeners:Fe.bind(null,m[ie].iframe),resize:qe.bind(null,"Window resize","resize",m[ie].iframe),moveToAnchor:function(oe){qe("Move to anchor","moveToAnchor:"+oe,m[ie].iframe,ie)},sendMessage:function(oe){oe=JSON.stringify(oe),qe("Send Message","message:"+oe,m[ie].iframe,ie)}})}function tn(oe){function ct(){qe("iFrame.onload",oe,E,e,!0),It()}function xt(Pn){if(!E.parentNode)return null;var pr=new Pn(function(zi){zi.forEach(function(Gi){var Zr=Array.prototype.slice.call(Gi.removedNodes);Zr.forEach(function(hn){hn===E&&dt(E)})})});return pr.observe(E.parentNode,{childList:!0}),pr}var nn=k();nn&&(r=xt(nn)),M(E,"load",ct),qe("init",oe,E,e,!0)}function Me(oe){if(typeof oe!="object")throw new TypeError("Options is not an object")}function hr(oe){for(var ct in A)Object.prototype.hasOwnProperty.call(A,ct)&&(m[ie][ct]=Object.prototype.hasOwnProperty.call(oe,ct)?oe[ct]:A[ct])}function cn(oe){return oe===""||oe.match(/^(about:blank|javascript:|file:\/\/)/)!==null?"*":oe}function fn(oe){var ct=oe.split("Callback");if(ct.length===2){var xt="on"+ct[0].charAt(0).toUpperCase()+ct[0].slice(1);this[xt]=this[oe],delete this[oe],X(ie,"Deprecated: '"+oe+"' has been renamed '"+xt+"'. The old method will be removed in the next major version.")}}function Ar(oe){oe=oe||{},m[ie]=Object.create(null),m[ie].iframe=E,m[ie].firstRun=!0,m[ie].remoteHost=E.src&&E.src.split("/").slice(0,3).join("/"),Me(oe),Object.keys(oe).forEach(fn,oe),hr(oe),m[ie]&&(m[ie].targetOrigin=m[ie].checkOrigin===!0?cn(m[ie].remoteHost):"*")}function Pr(){return ie in m&&"iFrameResizer"in E}var ie=_e(E.id);Pr()?X(ie,"Ignored iFrame, already setup."):(Ar(H),ae(),se(),Xe(),tn(Yt(ie)),Bt())}function nt(E,H){N===null&&(N=setTimeout(function(){N=null,E()},H))}var Nt={};function Ye(E,H,se){Nt[se]||(Nt[se]=setTimeout(function(){Nt[se]=null,E()},H))}function Tt(){function E(){function _e(ae){function Xe(Bt){return(m[ae]&&m[ae].iframe.style[Bt])==="0px"}function It(Bt){return Bt.offsetParent!==null}m[ae]&&It(m[ae].iframe)&&(Xe("height")||Xe("width"))&&qe("Visibility change","resize",m[ae].iframe,ae)}Object.keys(m).forEach(function(ae){_e(ae)})}function H(_e){L("window","Mutation observed: "+_e[0].target+" "+_e[0].type),nt(E,16)}function se(){var _e=document.querySelector("body"),ae={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},Xe=new re(H);Xe.observe(_e,ae)}var re=k();re&&se()}function Mt(E){function H(){en("Window "+E,"resize")}L("window","Trigger event: "+E),nt(H,16)}function Kt(){function E(){en("Tab Visible","resize")}document.visibilityState!=="hidden"&&(L("document","Trigger event: Visibility change"),nt(E,16))}function en(E,H){function se(re){return m[re]&&m[re].resizeFrom==="parent"&&m[re].autoResize&&!m[re].firstRun}Object.keys(m).forEach(function(re){se(re)&&qe(E,H,m[re].iframe,re)})}function dn(){M(window,"message",Re),M(window,"resize",function(){Mt("resize")}),M(document,"visibilitychange",Kt),M(document,"-webkit-visibilitychange",Kt)}function kr(){function E(re,_e){function ae(){if(_e.tagName){if(_e.tagName.toUpperCase()!=="IFRAME")throw new TypeError("Expected ${this.renderPoweredByGivebutter()} `}renderPoweredByGivebutter(){return this.showPoweredByGivebutter?Ge` `:""}iframeChanged(n){n&&(this.iframe=n,setTimeout(()=>_w.iframeResizer({checkOrigin:!1,scrolling:this.closable||this.maxHeight.length>0?"auto":!1,initCallback:()=>{this.overrideIsLoading||(this.isLoading=!1)},closedCallback:()=>{this.isLoading=!1}},n),0))}getIframeClass(){return vi("w-full bg-white",this.isLoading&&"hidden",this.showBorder&&"border border-gray-300 rounded-t-2xl",this.showBorder&&!this.showPoweredByGivebutter&&"rounded-b-2xl",this.showBorder&&this.showPoweredByGivebutter&&"border-b-gray-100",this.iframeClass)}getIframeStyles(){return{maxWidth:this.maxWidth,maxHeight:this.maxHeight}}renderError(){return Ge`
Warning
Uh-oh!

There was an error loading this widget.

Please check your widget
configuration.

Givebutter logo Powered by Givebutter
`}};Gn([gi()],wn.prototype,"isLoading",2),Gn([B({type:String})],wn.prototype,"src",2),Gn([B({type:Boolean,converter:cr._boolean})],wn.prototype,"overrideIsLoading",2),Gn([B({type:Boolean,converter:cr._boolean})],wn.prototype,"showPoweredByGivebutter",2),Gn([B({type:Boolean,converter:cr._boolean})],wn.prototype,"showBorder",2),Gn([B({type:String})],wn.prototype,"error",2),Gn([B({type:Boolean,converter:cr._boolean})],wn.prototype,"closable",2),Gn([B({type:String,attribute:"max-width"})],wn.prototype,"maxWidth",2),Gn([B({type:String,attribute:"max-height"})],wn.prototype,"maxHeight",2),Gn([B({type:String,attribute:"iframe-class"})],wn.prototype,"iframeClass",2),Gn([B({type:String,attribute:"footer-class"})],wn.prototype,"footerClass",2),wn=Gn([pi("givebutter-iframe")],wn);const r_=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterIframe(){return wn}},Symbol.toStringTag,{value:"Module"}));var Xd=(n=>(n.CHANNEL_SETTINGS="channel-settings",n.BUTTON_SETTINGS="button-settings",n))(Xd||{}),Sr=(n=>(n.FORM_LOADED="givebutter-form-loaded",n.CLOSE_MODAL="close-givebutter-modal",n.DONATION_BUTTON_CLOSE="donation.button.close",n.DONATION_BUTTON_NEXT="donation.button.next",n.DONATION_BUTTON_BACK="donation.button.back",n.PLAID_OPEN="plaid.open",n.PLAID_CLOSE="plaid.close",n))(Sr||{}),Qd=(n=>(n.CLOSE_OVERLAY="close-overlay",n))(Qd||{});const i_=5*60*1e3;class cl{constructor({host:e,queryFn:t,cacheTime:r=i_,retryCount:o=3,onSuccess:a,onError:l,shouldStopInterval:d}){this.host=e,this.queryFn=t,this.cacheTime=r,this.intervalId=null,this.retryCount=o,this.handleWindowFocus=this.handleWindowFocus.bind(this),this.host.addController(this),this.onSuccess=a,this.onError=l,this.shouldStopInterval=d}hostConnected(){return He(this,null,function*(){yield this.fetchData(),this.setRefetchInterval(),window.addEventListener("focus",this.handleWindowFocus)})}hostDisconnected(){this.stopInterval(),window.removeEventListener("focus",this.handleWindowFocus)}fetchData(){return He(this,arguments,function*(e=this.retryCount){var t,r,o,a,l,d;try{this.data=yield this.queryFn(),this.error=void 0,(t=this.onSuccess)==null||t.call(this,this.data),(r=this.shouldStopInterval)!=null&&r.call(this,this.data)&&this.stopInterval()}catch(c){this.shouldRetry((o=c==null?void 0:c.response)==null?void 0:o.status)&&e>0?yield this.fetchData(e-1):(this.error=(a=c==null?void 0:c.message)!=null?a:"Something went wrong.",this.stopInterval(),(d=this.onError)==null||d.call(this,(l=this.error)!=null?l:"Unknown error occurred"))}finally{this.host.requestUpdate()}})}setRefetchInterval(){this.intervalId=setInterval(()=>He(this,null,function*(){yield this.fetchData()}),this.cacheTime)}handleWindowFocus(){return He(this,null,function*(){yield this.fetchData()})}stopInterval(){this.intervalId!==null&&clearInterval(this.intervalId)}shouldRetry(e){return e!==404&&e!==422}}var o_=Object.defineProperty,s_=Object.getOwnPropertyDescriptor,Cr=(n,e,t,r)=>{for(var o=r>1?void 0:r?s_(e,t):e,a=n.length-1,l;a>=0;a--)(l=n[a])&&(o=(r?l(e,t,o):l(o))||o);return r&&o&&o_(e,t,o),o};let Vn=class extends il(Rs){constructor(){super(),this.isLoading=!0,this.themeColor="",this.maxWidth="",this.maxHeight="",this.closable=!1,this.showGoalBar=!1,this.iframeClass="",this.footerClass="",this.isEventTicketsFlow=!1,this.receiveMessageEvent=n=>{var e,t,r,o,a,l,d;if(n.data.event===Sr.PLAID_OPEN){const c=(t=(e=this.iframe)==null?void 0:e.shadowRoot)==null?void 0:t.querySelector("iframe");c&&(c.classList.add("max-h-[90vh]"),c.classList.add("max-h-[90svh]"),(r=this.iframe)==null||r.resizeIframe())}if(n.data.event===Sr.PLAID_CLOSE){const c=(a=(o=this.iframe)==null?void 0:o.shadowRoot)==null?void 0:a.querySelector("iframe");c&&(c.classList.remove("max-h-[90vh]"),c.classList.remove("max-h-[90svh]"),(l=this.iframe)==null||l.resizeIframe())}(n.data.event===Sr.DONATION_BUTTON_CLOSE||n.data===Sr.CLOSE_MODAL)&&((d=this.shadowRoot)==null||d.dispatchEvent(new Event(Qd.CLOSE_OVERLAY,{bubbles:!0,composed:!0}))),this.iframe&&(n.data===Sr.FORM_LOADED&&(this.isLoading=!1),[Sr.DONATION_BUTTON_NEXT,Sr.DONATION_BUTTON_BACK].indexOf(n.data.event)!==-1&&this.iframe.getBoundingClientRect().top<0&&this.iframe.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}))},this.componentType=Eo.GIVING_FORM}connectedCallback(){super.connectedCallback(),this.embedUrl.length===0&&(this.dataController=new cl({host:this,queryFn:()=>i$(this.account,this.campaign)})),window.addEventListener("message",this.receiveMessageEvent)}disconnectedCallback(){window.removeEventListener("message",this.receiveMessageEvent),super.disconnectedCallback()}willUpdate(n){var e,t,r,o,a,l;this.embedUrl.length===0&&(this.embedUrl=((t=(e=this.dataController)==null?void 0:e.data)==null?void 0:t.embed_url)||"",this.maxWidth=((o=(r=this.dataController)==null?void 0:r.data)==null?void 0:o.embed_max_width)||"560px",this.isEventTicketsFlow=((l=(a=this.dataController)==null?void 0:a.data)==null?void 0:l.is_event_tickets_flow)||!1)}render(){var n;return Ge` ${this.showGoalBar?this.getGivebutterGoalBar():""} `}getGivebutterGoalBar(){return Ge` `}iframeChanged(n){this.iframe=n}getEmbedUrl(){if(es.isValidEmbedUrl(this.embedUrl)){const n=new URL(this.embedUrl),e=new URLSearchParams(n.search);return new URLSearchParams(this.analytics.getQueryString()).forEach((r,o)=>{e.has(o)||e.set(o,r)}),e.append("goalBar","false"),this.closable&&e.append("closeButton","true"),this.widgetId.length>0&&e.append("gba_gb.element.id",this.widgetId),`${n.origin+n.pathname}?${e.toString()}`}return""}};Cr([gi()],Vn.prototype,"isLoading",2),Cr([B({type:String,attribute:"theme-color"})],Vn.prototype,"themeColor",2),Cr([B({type:String,attribute:"max-width"})],Vn.prototype,"maxWidth",2),Cr([B({type:String,attribute:"max-height"})],Vn.prototype,"maxHeight",2),Cr([B({type:Boolean,attribute:"closable"})],Vn.prototype,"closable",2),Cr([B({type:Boolean,attribute:"show-goal-bar",converter:cr._boolean})],Vn.prototype,"showGoalBar",2),Cr([B({type:String,attribute:"iframe-class"})],Vn.prototype,"iframeClass",2),Cr([B({type:String,attribute:"footer-class"})],Vn.prototype,"footerClass",2),Cr([B({type:Boolean})],Vn.prototype,"isEventTicketsFlow",2),Vn=Cr([pi("givebutter-giving-form")],Vn);const a_=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterGivingForm(){return Vn}},Symbol.toStringTag,{value:"Module"})),l_=n=>{class e extends n{constructor(){super(...arguments),this.emitIframeMessage=r=>{var l,d,c;const o=(l=this.iframe)==null?void 0:l.shadowRoot;(c=(d=o==null?void 0:o.querySelector("iframe"))==null?void 0:d.contentWindow)==null||c.postMessage(r,"https://givebutter.com")}}}return e};var u_=Object.defineProperty,d_=Object.getOwnPropertyDescriptor,bi=(n,e,t,r)=>{for(var o=r>1?void 0:r?d_(e,t):e,a=n.length-1,l;a>=0;a--)(l=n[a])&&(o=(r?l(e,t,o):l(o))||o);return r&&o&&u_(e,t,o),o},Oo=(n=>(n.STATIC="static",n.POPUP="popup",n))(Oo||{}),ko=(n=>(n.SIMPLE="simple",n.STACKED="stacked",n.TWO_COLUMN="two-column",n))(ko||{});let Nr=class n extends Rs{constructor(){super(),this.config={},this.align="left",this.position="",this.amount="",this.frequency="",this.fund="",this.promo="",this.componentType=Eo.DYNAMIC}connectedCallback(){return He(this,null,function*(){var e,t;if(c4(n.prototype,this,"connectedCallback").call(this),!(!this.account||!this.widgetId)){if(Ft.getPlatform()===hu.godaddy&&Ft.isInsideIframe()){const r=window.parent.document.createElement("givebutter-widget");r.id=this.widgetId,r.position=this.position,r.align=this.align;const o=window.frameElement;(e=o==null?void 0:o.parentElement)==null||e.insertBefore(r,o.nextSibling),!Ft.isGoDaddyBackoffice()&&this.position.length>0&&((t=f$(o,"widget-html"))==null||t.setAttribute("style","height: 0px;"));return}this.dataController=new cl({host:this,queryFn:()=>Y2(this.account,this.widgetId)})}})}render(){var t,r;const e=(r=(t=this.dataController)==null?void 0:t.data)==null?void 0:r.type;if(e){if(e==="button")return this.getButton();if(e==="giving-form")return this.getGivingForm();if(e==="signup-form")return this.getSignupForm();if(e==="goal-bar")return this.getGoalBar()}return Ge``}getButton(){var o,a,l,d,c,h,g,v;const e=(a=(o=this.dataController)==null?void 0:o.data)==null?void 0:a.config,t=(c=(d=(l=this.dataController)==null?void 0:l.data)==null?void 0:d.embed_max_width)!=null?c:"560px",r=(v=(g=(h=this.dataController)==null?void 0:h.data)==null?void 0:g.is_event_tickets_flow)!=null?v:!1;return Ge``}getGivingForm(){var o,a,l,d,c,h,g,v,w,m;const e=(a=(o=this.dataController)==null?void 0:o.data)==null?void 0:a.config,t=(c=(d=(l=this.dataController)==null?void 0:l.data)==null?void 0:d.embed_max_width)!=null?c:"560px",r=(v=(g=(h=this.dataController)==null?void 0:h.data)==null?void 0:g.is_event_tickets_flow)!=null?v:!1;return Ge``}getSignupForm(){var t,r,o,a;const e=(r=(t=this.dataController)==null?void 0:t.data)==null?void 0:r.config;return Ge``}getGoalBar(){var t,r,o,a,l,d,c,h;const e=(r=(t=this.dataController)==null?void 0:t.data)==null?void 0:r.config;return Ge``}getAlignClass(){switch(this.align){case"center":return"mx-auto";case"right":return"ml-auto";case"left":return"mr-auto";default:return""}}getEmbedUrl(){var o,a;const e=(a=(o=this.dataController)==null?void 0:o.data)==null?void 0:a.embed_url;if(!e)return;const t=new URL(e),r=new URLSearchParams(t.search);return this.amount.length>0&&r.set("amount",this.amount),this.frequency.length>0&&r.set("frequency",this.frequency),this.fund.length>0&&r.set("fund",this.fund),this.promo.length>0&&r.set("promo",this.promo),t.search=r.toString(),t.toString()}};bi([gi()],Nr.prototype,"config",2),bi([B({type:String,attribute:"align"})],Nr.prototype,"align",2),bi([B({type:String,attribute:"position"})],Nr.prototype,"position",2),bi([B({type:String,attribute:"amount"})],Nr.prototype,"amount",2),bi([B({type:String,attribute:"frequency"})],Nr.prototype,"frequency",2),bi([B({type:String,attribute:"fund"})],Nr.prototype,"fund",2),bi([B({type:String,attribute:"promo"})],Nr.prototype,"promo",2),Nr=bi([pi("givebutter-widget")],Nr);const c_=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterDynamicElement(){return Nr},SignupFormLayout:ko,SignupFormType:Oo},Symbol.toStringTag,{value:"Module"}));var f_=Object.defineProperty,h_=Object.getOwnPropertyDescriptor,Qt=(n,e,t,r)=>{for(var o=r>1?void 0:r?h_(e,t):e,a=n.length-1,l;a>=0;a--)(l=n[a])&&(o=(r?l(e,t,o):l(o))||o);return r&&o&&f_(e,t,o),o};let Lt=class extends l_(Rs){constructor(){super(),this.contentRef=Gd(),this.isLoading=!0,this.isOpen=!1,this.channel="email",this.type=Oo.STATIC,this.openDelay=5e3,this.formClass="",this.iframeClass="",this.footerClass="",this.title="",this.description="",this.borderRadius=0,this.layout="simple",this.buttonText="Subscribe",this.buttonTextColor="",this.buttonBackgroundColor="",this.image="",this.imageSizing="cover",this.observer=new xp(this,{config:{childList:!0,subtree:!0},target:document.querySelector("[data-overlay-outer-wrapper]"),callback:n=>{const e=n[0];e&&(this.isOpen=e.removedNodes.length<=0)}}),this.receiveMessageEvent=n=>{var e;n.data===Sr.CLOSE_MODAL&&((e=this.shadowRoot)==null||e.dispatchEvent(new Event(Qd.CLOSE_OVERLAY,{bubbles:!0,composed:!0}))),this.iframe&&n.data===Sr.FORM_LOADED&&(this.isLoading=!1)},this.componentType=Eo.SIGNUP_FORM}connectedCallback(){super.connectedCallback(),window.addEventListener("message",this.receiveMessageEvent),this.embedUrl.length===0&&(this.dataController=new cl({host:this,queryFn:()=>Y2(this.account,this.id)}))}disconnectedCallback(){window.removeEventListener("message",this.receiveMessageEvent),super.disconnectedCallback()}willUpdate(n){var e,t;this.embedUrl.length===0&&(this.embedUrl=((t=(e=this.dataController)==null?void 0:e.data)==null?void 0:t.embed_url)||"")}firstUpdated(){this.contentRef.value&&this.observer.observe(this.contentRef.value)}updated(n){n.has("isLoading")?(this.refreshSubmitButtonSettings(),this.refreshChannel()):((n.has("buttonText")||n.has("buttonTextColor")||n.has("buttonBackgroundColor"))&&this.refreshSubmitButtonSettings(),n.has("channel")&&this.refreshChannel())}render(){return this.type===Oo.STATIC?this.renderForm():this.renderPopup()}renderPopup(){return Ge`
${this.isOpen?this.renderForm():""}
`}renderForm(){var n;return Ge`
${this.layout!=="simple"?Ge`
`:""}

${this.title}

${this.description}

`}getBannerClass(){return vi(this.layout===ko.STACKED&&"h-32",this.layout===ko.TWO_COLUMN&&"w-64")}getBannerStyles(){const n={fill:"cover",fit:"contain",stretch:"100% 100%"};return{"background-image":`url(${this.image})`,"background-size":n[this.imageSizing]||"cover","background-repeat":this.imageSizing==="fit"?"no-repeat":"repeat","background-position":"center"}}getFormClass(){const n=this.layout===ko.TWO_COLUMN,e=this.layout===ko.STACKED;return vi((n||e)&&"flex flex-col gap-1",n?"sm:flex-row max-w-[620px]":"max-w-[420px]",this.type===Oo.STATIC&&this.formClass,this.type===Oo.POPUP&&"modal-desktop:overflow-auto max-h-dvh modal-desktop:max-h-[90vh]")}getFormStyles(){return{borderRadius:`${this.borderRadius}px`}}iframeChanged(n){n&&(this.iframe=n,this.refreshSubmitButtonSettings(),this.refreshChannel())}refreshChannel(){this.emitIframeMessage({event:Xd.CHANNEL_SETTINGS,props:{channel:this.channel}})}refreshSubmitButtonSettings(){this.emitIframeMessage({event:Xd.BUTTON_SETTINGS,props:{text:this.buttonText,textColor:this.buttonTextColor,backgroundColor:this.buttonBackgroundColor}})}getEmbedUrl(){return es.isValidEmbedUrl(this.embedUrl)?this.embedUrl:""}};Qt([gi()],Lt.prototype,"isLoading",2),Qt([B({type:String,attribute:"channel"})],Lt.prototype,"channel",2),Qt([B({type:String,attribute:"type"})],Lt.prototype,"type",2),Qt([B({type:Number,attribute:"open-delay"})],Lt.prototype,"openDelay",2),Qt([B({type:String,attribute:"form-class"})],Lt.prototype,"formClass",2),Qt([B({type:String,attribute:"iframe-class"})],Lt.prototype,"iframeClass",2),Qt([B({type:String,attribute:"footer-class"})],Lt.prototype,"footerClass",2),Qt([B({type:String,attribute:"title"})],Lt.prototype,"title",2),Qt([B({type:String,attribute:"description"})],Lt.prototype,"description",2),Qt([B({type:Number,attribute:"border-radius"})],Lt.prototype,"borderRadius",2),Qt([B({type:String,attribute:"layout"})],Lt.prototype,"layout",2),Qt([B({type:String,attribute:"button-text"})],Lt.prototype,"buttonText",2),Qt([B({type:String,attribute:"button-text-color"})],Lt.prototype,"buttonTextColor",2),Qt([B({type:String,attribute:"button-background-color"})],Lt.prototype,"buttonBackgroundColor",2),Qt([B({type:String,attribute:"image"})],Lt.prototype,"image",2),Qt([B({type:String,attribute:"image-sizing"})],Lt.prototype,"imageSizing",2),Lt=Qt([pi("givebutter-signup-form")],Lt);const p_=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterSignupForm(){return Lt}},Symbol.toStringTag,{value:"Module"})),Gs=class Gs{static animate(e,t,r,o){if(e>=t&&typeof o=="function"){o();return}const a=t/100,l=Math.min(e+a,t);r(l),lGs.animate(l,t,r,o),Gs.ANIMATION_STEP_INTERVAL)}};Gs.ANIMATION_STEP_INTERVAL=25;let ec=Gs;const g_=new WeakMap;let Xp=0;const tc=new Map,Qp=new WeakSet,eg=()=>new Promise(n=>requestAnimationFrame(n)),tg=(n,e)=>{const t=n-e;return t===0?void 0:t},ng=(n,e)=>{const t=n/e;return t===1?void 0:t},nc={left:(n,e)=>{const t=tg(n,e);return{value:t,transform:t==null||isNaN(t)?void 0:`translateX(${t}px)`}},top:(n,e)=>{const t=tg(n,e);return{value:t,transform:t==null||isNaN(t)?void 0:`translateY(${t}px)`}},width:(n,e)=>{let t;e===0&&(e=1,t={width:"1px"});const r=ng(n,e);return{value:r,overrideFrom:t,transform:r==null||isNaN(r)?void 0:`scaleX(${r})`}},height:(n,e)=>{let t;e===0&&(e=1,t={height:"1px"});const r=ng(n,e);return{value:r,overrideFrom:t,transform:r==null||isNaN(r)?void 0:`scaleY(${r})`}}},m_={duration:333,easing:"ease-in-out"},y_=["left","top","width","height","opacity","color","background"],rg=new WeakMap;class v_ extends Tp{constructor(e){if(super(e),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,e.type===sl.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var e;(e=this.resolveFinished)==null||e.call(this),this.finished=new Promise(t=>{this.l=t})}resolveFinished(){return He(this,null,function*(){var e;(e=this.l)==null||e.call(this),this.l=void 0})}render(e){return pt}getController(){return g_.get(this.u)}isDisabled(){var e;return this.options.disabled||((e=this.getController())==null?void 0:e.disabled)}update(e,[t]){var o;const r=this.u===void 0;return r&&(this.u=(o=e.options)==null?void 0:o.host,this.u.addController(this),this.u.updateComplete.then(a=>this.t=!0),this.element=e.element,rg.set(this.element,this)),this.optionsOrCallback=t,(r||typeof t!="function")&&this.p(t),this.render(t)}p(e){var r;e=e!=null?e:{};const t=this.getController();t!==void 0&&((e=C(C({},t.defaultOptions),e)).keyframeOptions=C(C({},t.defaultOptions.keyframeOptions),e.keyframeOptions)),(r=e.properties)!=null||(e.properties=y_),this.options=e}m(){const e={},t=this.element.getBoundingClientRect(),r=getComputedStyle(this.element);return this.options.properties.forEach(o=>{var d;const a=(d=t[o])!=null?d:nc[o]?void 0:r[o],l=Number(a);e[o]=isNaN(l)?a+"":l}),e}v(){let e,t=!0;return this.options.guard&&(e=this.options.guard(),t=((r,o)=>{if(Array.isArray(r)){if(Array.isArray(o)&&o.length===r.length&&r.every((a,l)=>a===o[l]))return!1}else if(o===r)return!1;return!0})(e,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&t&&this.element.isConnected,this.h&&(this._=Array.isArray(e)?Array.from(e):e),this.h}hostUpdate(){var e;typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=(e=this.i)!=null?e:this.element.parentNode,this.o=this.element.nextSibling)}hostUpdated(){return He(this,null,function*(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let e;this.prepare(),yield eg;const t=this.O(),r=this.j(this.options.keyframeOptions,t),o=this.m();if(this.A!==void 0){const{from:a,to:l}=this.N(this.A,o,t);this.log("measured",[this.A,o,a,l]),e=this.calculateKeyframes(a,l)}else{const a=tc.get(this.options.inId);if(a){tc.delete(this.options.inId);const{from:l,to:d}=this.N(a,o,t);e=this.calculateKeyframes(l,d),e=this.options.in?[C(C({},this.options.in[0]),e[0]),...this.options.in.slice(1),e[1]]:e,Xp++,e.forEach(c=>c.zIndex=Xp)}else this.options.in&&(e=[...this.options.in,{}])}this.animate(e,r)})}resetStyles(){var e;this.P!==void 0&&(this.element.setAttribute("style",(e=this.P)!=null?e:""),this.P=void 0)}commitStyles(){var e,t;this.P=this.element.getAttribute("style"),(e=this.webAnimation)==null||e.commitStyles(),(t=this.webAnimation)==null||t.cancel()}reconnected(){}disconnected(){return He(this,null,function*(){var t;if(!this.h||(this.options.id!==void 0&&tc.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),yield eg(),(t=this.i)==null?void 0:t.isConnected){const r=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,r),this.options.stabilizeOut){const o=this.m();this.log("stabilizing out");const a=this.A.left-o.left,l=this.A.top-o.top;getComputedStyle(this.element).position!=="static"||a===0&&l===0||(this.element.style.position="relative"),a!==0&&(this.element.style.left=a+"px"),l!==0&&(this.element.style.top=l+"px")}}const e=this.j(this.options.keyframeOptions);yield this.animate(this.options.out,e),this.element.remove()})}prepare(){this.createFinished()}start(){var e,t;(t=(e=this.options).onStart)==null||t.call(e,this)}didFinish(e){var t,r;e&&((r=(t=this.options).onComplete)==null||r.call(t,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const e=[];for(let t=this.element.parentNode;t;t=t==null?void 0:t.parentNode){const r=rg.get(t);r&&!r.isDisabled()&&r&&e.push(r)}return e}get isHostRendered(){const e=Qp.has(this.u);return e||this.u.updateComplete.then(()=>{Qp.add(this.u)}),e}j(e,t=this.O()){const r=C({},m_);return t.forEach(o=>Object.assign(r,o.options.keyframeOptions)),Object.assign(r,e),r}N(e,t,r){e=C({},e),t=C({},t);const o=r.map(d=>d.animatingProperties).filter(d=>d!==void 0);let a=1,l=1;return o.length>0&&(o.forEach(d=>{d.width&&(a/=d.width),d.height&&(l/=d.height)}),e.left!==void 0&&t.left!==void 0&&(e.left=a*e.left,t.left=a*t.left),e.top!==void 0&&t.top!==void 0&&(e.top=l*e.top,t.top=l*t.top)),{from:e,to:t}}calculateKeyframes(e,t,r=!1){var c;const o={},a={};let l=!1;const d={};for(const h in t){const g=e[h],v=t[h];if(h in nc){const w=nc[h];if(g===void 0||v===void 0)continue;const m=w(g,v);m.transform!==void 0&&(d[h]=m.value,l=!0,o.transform=`${(c=o.transform)!=null?c:""} ${m.transform}`,m.overrideFrom!==void 0&&Object.assign(o,m.overrideFrom))}else g!==v&&g!==void 0&&v!==void 0&&(l=!0,o[h]=g,a[h]=v)}return o.transformOrigin=a.transformOrigin=r?"center center":"top left",this.animatingProperties=d,l?[o,a]:void 0}animate(r){return He(this,arguments,function*(e,t=this.options.keyframeOptions){this.start(),this.frames=e;let o=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=e=this.options.onFrames(this),this.log("modified frames",e)),e!==void 0)){this.log("animate",[e,t]),o=!0,this.webAnimation=this.element.animate(e,t);const a=this.getController();a==null||a.add(this);try{yield this.webAnimation.finished}catch(l){}a==null||a.remove(this)}return this.didFinish(o),o})}isAnimating(){var e,t;return((e=this.webAnimation)==null?void 0:e.playState)==="running"||((t=this.webAnimation)==null?void 0:t.pending)}log(e,t){this.shouldLog&&!this.isDisabled()&&console.log(e,this.options.id,t)}}const b_=al(v_);class Ao{static toLocale(e,t=!0){return e||(e=0),t||(e=Math.round(e)),e.toLocaleString()}}function $_({raised:n,borderColor:e,borderWidth:t,borderRadius:r,backgroundColor:o,padding:a,progressBarColor:l,raisedPercentage:d,showAmountRaised:c,showRaisedPercentage:h,showGoalAmount:g,goal:v,textColor:w,size:m,areDisplayOptionsDisabled:N}){const A=vi(c?"block":"hidden",m==="sm"&&"text-xl",m==="md"&&"text-2xl",m==="lg"&&"text-3xl"),k=()=>({color:w,"border-color":e,"border-width":t+"px","border-radius":r+"px",padding:a+"px","background-color":o}),M=vi(m==="sm"&&"h-4",m==="md"&&"h-6",m==="lg"&&"h-8"),j=()=>({width:(d>100?100:d)+"%","background-color":l});return Ge`

${"$"+Ao.toLocale(n,!1)}

${h?Ao.toLocale(d)+"%":""} ${h&&g?" of ":""} ${g?"$"+Ao.toLocale(v):""} ${N||!g?"":"goal"}

`}function w_(n,e,t){const r=o=>t>=o?e:"#A0A0AB";return Ge` `}function __({thermometerGradientElement:n,progressBarColor:e,currentRaisedPercentage:t,raisedPercentage:r,showAmountRaised:o,showRaisedPercentage:a,showGoalAmount:l,goal:d,raised:c,size:h,textColor:g,areDisplayOptionsDisabled:v}){const w=vi(o?"block":"hidden",h==="sm"&&"text-lg",h==="md"&&"text-3xl",h==="lg"&&"text-5xl"),m=()=>({color:g});return Ge`
${w_(n,e,t)}
${"$"+Ao.toLocale(c,!1)}
${a?Ao.toLocale(r)+"%":""} ${a&&l?" of ":""} ${l?"$"+Ao.toLocale(d):""} ${v||!l?"":"goal"}
`}var x_=Object.defineProperty,E_=Object.getOwnPropertyDescriptor,_t=(n,e,t,r)=>{for(var o=r>1?void 0:r?E_(e,t):e,a=n.length-1,l;a>=0;a--)(l=n[a])&&(o=(r?l(e,t,o):l(o))||o);return r&&o&&x_(e,t,o),o};const S_=1e3*10;let gt=class extends Rs{constructor(){super(),this.thermometerGradientElement=Gd(),this.currentRaisedPercentage=0,this.isThermometerGradientUpdating=!1,this.areDisplayOptionsDisabled=!0,this.class="",this.type="progress-bar",this.goal=0,this.raised=0,this.raisedPercentage=0,this.textColor="#000",this.padding=16,this.progressBarColor="green",this.fillColor="red",this.borderColor="",this.borderWidth=1,this.borderRadius=0,this.backgroundColor="#FFF",this.size="md",this.maxWidth="100%",this.showGoalAmount=!0,this.showAmountRaised=!0,this.showRaisedPercentage=!0,this.componentType=Eo.GOAL_BAR}connectedCallback(){super.connectedCallback(),this.dataController=new cl({host:this,queryFn:()=>o$(this.account,this.campaign),cacheTime:S_,retryCount:1,onSuccess:n=>{n.goal>0&&(this.goal=n.goal,this.raised=n.raised,this.raisedPercentage=n.raised_percentage)},shouldStopInterval:n=>n.goal<=0})}disconnectedCallback(){super.disconnectedCallback()}updated(n){if(n.has("type")&&(this.currentRaisedPercentage=0),n.has("raised")||n.has("raisedPercentage")||n.has("type")){const e=this.raisedPercentage>100?100:this.raisedPercentage;e===0?this.updateThermometerGradient(0):(this.isThermometerGradientUpdating=!0,ec.animate(this.currentRaisedPercentage,e,t=>{this.updateThermometerGradient(t)},()=>{this.isThermometerGradientUpdating=!1}))}this.areDisplayOptionsDisabled=!this.showGoalAmount&&!this.showAmountRaised&&!this.showRaisedPercentage}render(){return Ge`
${this.type==="progress-bar"?$_(this):__(this)}
`}updateThermometerGradient(n){if(this.currentRaisedPercentage=n,this.thermometerGradientElement.value){const e=n===100?0:-.007*n+.785,t=this.thermometerGradientElement.value.querySelectorAll("stop");t[0].setAttribute("offset",e.toString()),t[1].setAttribute("offset",e.toString())}}};_t([gi()],gt.prototype,"currentRaisedPercentage",2),_t([gi()],gt.prototype,"isThermometerGradientUpdating",2),_t([gi()],gt.prototype,"areDisplayOptionsDisabled",2),_t([B({type:String})],gt.prototype,"class",2),_t([B({type:String,attribute:"type"})],gt.prototype,"type",2),_t([B({type:Number,attribute:"goal"})],gt.prototype,"goal",2),_t([B({type:Number,attribute:"raised"})],gt.prototype,"raised",2),_t([B({type:Number,attribute:"raised-percentage"})],gt.prototype,"raisedPercentage",2),_t([B({type:String,attribute:"text-color"})],gt.prototype,"textColor",2),_t([B({type:Number,attribute:"padding"})],gt.prototype,"padding",2),_t([B({type:String,attribute:"progress-bar-color"})],gt.prototype,"progressBarColor",2),_t([B({type:String,attribute:"progress-color"})],gt.prototype,"fillColor",2),_t([B({type:String,attribute:"border-color"})],gt.prototype,"borderColor",2),_t([B({type:Number,attribute:"border-width"})],gt.prototype,"borderWidth",2),_t([B({type:Number,attribute:"border-radius"})],gt.prototype,"borderRadius",2),_t([B({type:String,attribute:"background-color"})],gt.prototype,"backgroundColor",2),_t([B({type:String,attribute:"size"})],gt.prototype,"size",2),_t([B({type:String,attribute:"max-width"})],gt.prototype,"maxWidth",2),_t([B({type:Boolean,attribute:"show-goal-amount",converter:cr._boolean})],gt.prototype,"showGoalAmount",2),_t([B({type:Boolean,attribute:"show-amount-raised",converter:cr._boolean})],gt.prototype,"showAmountRaised",2),_t([B({type:Boolean,attribute:"show-raised-percentage",converter:cr._boolean})],gt.prototype,"showRaisedPercentage",2),gt=_t([pi("givebutter-goal-bar")],gt);const C_=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterGoalBar(){return gt}},Symbol.toStringTag,{value:"Module"})),N_=n=>{var e,t;return n.hasAttribute("href")&&((t=(e=n.getAttribute("href"))==null?void 0:e.startsWith("#"))!=null?t:!1)},T_=n=>{const e=n.getAttribute("href");return e?e.substring(1):null},O_=n=>{var e,t;(t=(e=window.parent)==null?void 0:e.location)!=null&&t.href?window.parent.history.pushState(null,"",`#${n}`):history.pushState(null,"",`#${n}`)},k_=()=>window.location.hash?window.location.hash.substring(1):"",A_=()=>{var n,e;if(window.parent&&window.parent!==window){const t=(e=(n=window.parent)==null?void 0:n.location)==null?void 0:e.hash;return t?t.substring(1):""}return""},P_=(n,e)=>{const t=n.getElementById(e)||n.querySelector(`[id="${e}"]`);return t||n.querySelector(`[name="${e}"], a[name="${e}"]`)},I_=n=>n.tagName==="A"&&!n.textContent&&n.parentElement||n,R_=(n,e=80)=>{const r=n.getBoundingClientRect().top+window.scrollY-e;window.scrollTo({top:r,behavior:"smooth"})};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */class rc extends zd{constructor(e){if(super(e),this.it=pt,e.type!==sl.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===pt||e==null)return this._t=void 0,this.it=e;if(e===fi)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}rc.directiveName="unsafeHTML",rc.resultType=1;const F_=al(rc);var D_=Object.defineProperty,L_=Object.getOwnPropertyDescriptor,ig=(n,e,t,r)=>{for(var o=r>1?void 0:r?L_(e,t):e,a=n.length-1,l;a>=0;a--)(l=n[a])&&(o=(r?l(e,t,o):l(o))||o);return r&&o&&D_(e,t,o),o};let Ls=class extends hi{constructor(){super(...arguments),this.html="",this.SCROLL_OFFSET=80,this.clickHandler=this.handleAnchorClick.bind(this),this.popstateHandler=this.checkAndHandleUrlHash.bind(this)}connectedCallback(){super.connectedCallback(),window.addEventListener("popstate",this.popstateHandler),setTimeout(()=>this.checkAndHandleUrlHash(),200)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this.popstateHandler),this.shadowRoot&&this.shadowRoot.removeEventListener("click",this.clickHandler,!0)}handleAnchorClick(n){const t=n.target.closest("a");if(t&&N_(t)){n.preventDefault(),n.stopPropagation();const r=T_(t);r&&(this.scrollToAnchor(r),O_(r))}}checkAndHandleUrlHash(){const n=k_();if(!n){const e=A_();if(e)return this.scrollToAnchor(e)}return n?this.scrollToAnchor(n):!1}scrollToAnchor(n){if(!this.shadowRoot)return!1;const e=P_(this.shadowRoot,n);if(e){const t=I_(e);return R_(t,this.SCROLL_OFFSET),!0}return!1}render(){return this.html?Ge`${F_(this.html)}`:""}};Ls.styles=Td` :host { all: initial; font-family: Matter, sans-serif; word-break: break-word; overflow-wrap: break-word; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; } p { font-size: 1.125rem; } a { color: #568fdf; } img, iframe { max-width: 100%; box-sizing: border-box; vertical-align: middle; } img { height: auto; } `,ig([B({type:String,attribute:"html"})],Ls.prototype,"html",2),Ls=ig([pi("givebutter-html-renderer")],Ls);const M_=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterHTMLRenderer(){return Ls}},Symbol.toStringTag,{value:"Module"}));function An(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Ui(n){var e=An(n).Element;return n instanceof e||n instanceof Element}function Zn(n){var e=An(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function ic(n){if(typeof ShadowRoot=="undefined")return!1;var e=An(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}var Hi=Math.max,fl=Math.min,Po=Math.round;function oc(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function og(){return!/^((?!chrome|android).)*safari/i.test(oc())}function Io(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),o=1,a=1;e&&Zn(n)&&(o=n.offsetWidth>0&&Po(r.width)/n.offsetWidth||1,a=n.offsetHeight>0&&Po(r.height)/n.offsetHeight||1);var l=Ui(n)?An(n):window,d=l.visualViewport,c=!og()&&t,h=(r.left+(c&&d?d.offsetLeft:0))/o,g=(r.top+(c&&d?d.offsetTop:0))/a,v=r.width/o,w=r.height/a;return{width:v,height:w,top:g,right:h+v,bottom:g+w,left:h,x:h,y:g}}function sc(n){var e=An(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function B_(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function W_(n){return n===An(n)||!Zn(n)?sc(n):B_(n)}function Tr(n){return n?(n.nodeName||"").toLowerCase():null}function $i(n){return((Ui(n)?n.ownerDocument:n.document)||window.document).documentElement}function ac(n){return Io($i(n)).left+sc(n).scrollLeft}function Vr(n){return An(n).getComputedStyle(n)}function lc(n){var e=Vr(n),t=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function U_(n){var e=n.getBoundingClientRect(),t=Po(e.width)/n.offsetWidth||1,r=Po(e.height)/n.offsetHeight||1;return t!==1||r!==1}function H_(n,e,t){t===void 0&&(t=!1);var r=Zn(e),o=Zn(e)&&U_(e),a=$i(e),l=Io(n,o,t),d={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!t)&&((Tr(e)!=="body"||lc(a))&&(d=W_(e)),Zn(e)?(c=Io(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):a&&(c.x=ac(a))),{x:l.left+d.scrollLeft-c.x,y:l.top+d.scrollTop-c.y,width:l.width,height:l.height}}function uc(n){var e=Io(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function hl(n){return Tr(n)==="html"?n:n.assignedSlot||n.parentNode||(ic(n)?n.host:null)||$i(n)}function sg(n){return["html","body","#document"].indexOf(Tr(n))>=0?n.ownerDocument.body:Zn(n)&&lc(n)?n:sg(hl(n))}function Ms(n,e){var t;e===void 0&&(e=[]);var r=sg(n),o=r===((t=n.ownerDocument)==null?void 0:t.body),a=An(r),l=o?[a].concat(a.visualViewport||[],lc(r)?r:[]):r,d=e.concat(l);return o?d:d.concat(Ms(hl(l)))}function z_(n){return["table","td","th"].indexOf(Tr(n))>=0}function ag(n){return!Zn(n)||Vr(n).position==="fixed"?null:n.offsetParent}function G_(n){var e=/firefox/i.test(oc()),t=/Trident/i.test(oc());if(t&&Zn(n)){var r=Vr(n);if(r.position==="fixed")return null}var o=hl(n);for(ic(o)&&(o=o.host);Zn(o)&&["html","body"].indexOf(Tr(o))<0;){var a=Vr(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Bs(n){for(var e=An(n),t=ag(n);t&&z_(t)&&Vr(t).position==="static";)t=ag(t);return t&&(Tr(t)==="html"||Tr(t)==="body"&&Vr(t).position==="static")?e:t||G_(n)||e}var _n="top",jn="bottom",qn="right",xn="left",dc="auto",Ws=[_n,jn,qn,xn],Ro="start",Us="end",V_="clippingParents",lg="viewport",Hs="popper",Z_="reference",ug=Ws.reduce(function(n,e){return n.concat([e+"-"+Ro,e+"-"+Us])},[]),dg=[].concat(Ws,[dc]).reduce(function(n,e){return n.concat([e,e+"-"+Ro,e+"-"+Us])},[]),j_="beforeRead",q_="read",Y_="afterRead",K_="beforeMain",J_="main",X_="afterMain",Q_="beforeWrite",ex="write",tx="afterWrite",nx=[j_,q_,Y_,K_,J_,X_,Q_,ex,tx];function rx(n){var e=new Map,t=new Set,r=[];n.forEach(function(a){e.set(a.name,a)});function o(a){t.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(d){if(!t.has(d)){var c=e.get(d);c&&o(c)}}),r.push(a)}return n.forEach(function(a){t.has(a.name)||o(a)}),r}function ix(n){var e=rx(n);return nx.reduce(function(t,r){return t.concat(e.filter(function(o){return o.phase===r}))},[])}function ox(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function sx(n){var e=n.reduce(function(t,r){var o=t[r.name];return t[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}function ax(n,e){var t=An(n),r=$i(n),o=t.visualViewport,a=r.clientWidth,l=r.clientHeight,d=0,c=0;if(o){a=o.width,l=o.height;var h=og();(h||!h&&e==="fixed")&&(d=o.offsetLeft,c=o.offsetTop)}return{width:a,height:l,x:d+ac(n),y:c}}function lx(n){var e,t=$i(n),r=sc(n),o=(e=n.ownerDocument)==null?void 0:e.body,a=Hi(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Hi(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-r.scrollLeft+ac(n),c=-r.scrollTop;return Vr(o||t).direction==="rtl"&&(d+=Hi(t.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:d,y:c}}function cg(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&ic(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function cc(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function ux(n,e){var t=Io(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function fg(n,e,t){return e===lg?cc(ax(n,t)):Ui(e)?ux(e,t):cc(lx($i(n)))}function dx(n){var e=Ms(hl(n)),t=["absolute","fixed"].indexOf(Vr(n).position)>=0,r=t&&Zn(n)?Bs(n):n;return Ui(r)?e.filter(function(o){return Ui(o)&&cg(o,r)&&Tr(o)!=="body"}):[]}function cx(n,e,t,r){var o=e==="clippingParents"?dx(n):[].concat(e),a=[].concat(o,[t]),l=a[0],d=a.reduce(function(c,h){var g=fg(n,h,r);return c.top=Hi(g.top,c.top),c.right=fl(g.right,c.right),c.bottom=fl(g.bottom,c.bottom),c.left=Hi(g.left,c.left),c},fg(n,l,r));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function Or(n){return n.split("-")[0]}function Fo(n){return n.split("-")[1]}function fc(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function hg(n){var e=n.reference,t=n.element,r=n.placement,o=r?Or(r):null,a=r?Fo(r):null,l=e.x+e.width/2-t.width/2,d=e.y+e.height/2-t.height/2,c;switch(o){case _n:c={x:l,y:e.y-t.height};break;case jn:c={x:l,y:e.y+e.height};break;case qn:c={x:e.x+e.width,y:d};break;case xn:c={x:e.x-t.width,y:d};break;default:c={x:e.x,y:e.y}}var h=o?fc(o):null;if(h!=null){var g=h==="y"?"height":"width";switch(a){case Ro:c[h]=c[h]-(e[g]/2-t[g]/2);break;case Us:c[h]=c[h]+(e[g]/2-t[g]/2);break}}return c}function pg(){return{top:0,right:0,bottom:0,left:0}}function gg(n){return Object.assign({},pg(),n)}function mg(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}function Do(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=r===void 0?n.placement:r,a=t.strategy,l=a===void 0?n.strategy:a,d=t.boundary,c=d===void 0?V_:d,h=t.rootBoundary,g=h===void 0?lg:h,v=t.elementContext,w=v===void 0?Hs:v,m=t.altBoundary,N=m===void 0?!1:m,A=t.padding,k=A===void 0?0:A,M=gg(typeof k!="number"?k:mg(k,Ws)),j=w===Hs?Z_:Hs,Z=n.rects.popper,q=n.elements[N?j:w],V=cx(Ui(q)?q:q.contextElement||$i(n.elements.popper),c,g,l),K=Io(n.elements.reference),L=hg({reference:K,element:Z,strategy:"absolute",placement:o}),U=cc(Object.assign({},Z,L)),X=w===Hs?U:K,me={top:V.top-X.top+M.top,bottom:X.bottom-V.bottom+M.bottom,left:V.left-X.left+M.left,right:X.right-V.right+M.right},Re=n.modifiersData.offset;if(w===Hs&&Re){var Ve=Re[o];Object.keys(me).forEach(function(Fe){var dt=[qn,jn].indexOf(Fe)>=0?1:-1,rt=[_n,jn].indexOf(Fe)>=0?"y":"x";me[Fe]+=Ve[rt]*dt})}return me}var yg={placement:"bottom",modifiers:[],strategy:"absolute"};function vg(){for(var n=arguments.length,e=new Array(n),t=0;t=0?-1:1,a=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,l=a[0],d=a[1];return l=l||0,d=(d||0)*o,[xn,qn].indexOf(r)>=0?{x:d,y:l}:{x:l,y:d}}function $x(n){var e=n.state,t=n.options,r=n.name,o=t.offset,a=o===void 0?[0,0]:o,l=dg.reduce(function(g,v){return g[v]=bx(v,e.rects,a),g},{}),d=l[e.placement],c=d.x,h=d.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=h),e.modifiersData[r]=l}const $g={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$x};var wx={left:"right",right:"left",bottom:"top",top:"bottom"};function gl(n){return n.replace(/left|right|bottom|top/g,function(e){return wx[e]})}var _x={start:"end",end:"start"};function wg(n){return n.replace(/start|end/g,function(e){return _x[e]})}function xx(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=t.boundary,a=t.rootBoundary,l=t.padding,d=t.flipVariations,c=t.allowedAutoPlacements,h=c===void 0?dg:c,g=Fo(r),v=g?d?ug:ug.filter(function(N){return Fo(N)===g}):Ws,w=v.filter(function(N){return h.indexOf(N)>=0});w.length===0&&(w=v);var m=w.reduce(function(N,A){return N[A]=Do(n,{placement:A,boundary:o,rootBoundary:a,padding:l})[Or(A)],N},{});return Object.keys(m).sort(function(N,A){return m[N]-m[A]})}function Ex(n){if(Or(n)===dc)return[];var e=gl(n);return[wg(n),e,wg(e)]}function Sx(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var o=t.mainAxis,a=o===void 0?!0:o,l=t.altAxis,d=l===void 0?!0:l,c=t.fallbackPlacements,h=t.padding,g=t.boundary,v=t.rootBoundary,w=t.altBoundary,m=t.flipVariations,N=m===void 0?!0:m,A=t.allowedAutoPlacements,k=e.options.placement,M=Or(k),j=M===k,Z=c||(j||!N?[gl(k)]:Ex(k)),q=[k].concat(Z).reduce(function(Je,nt){return Je.concat(Or(nt)===dc?xx(e,{placement:nt,boundary:g,rootBoundary:v,padding:h,flipVariations:N,allowedAutoPlacements:A}):nt)},[]),V=e.rects.reference,K=e.rects.popper,L=new Map,U=!0,X=q[0],me=0;me=0,rt=dt?"width":"height",Le=Do(e,{placement:Re,boundary:g,rootBoundary:v,altBoundary:w,padding:h}),Te=dt?Fe?qn:xn:Fe?jn:_n;V[rt]>K[rt]&&(Te=gl(Te));var Y=gl(Te),qt=[];if(a&&qt.push(Le[Ve]<=0),d&&qt.push(Le[Te]<=0,Le[Y]<=0),qt.every(function(Je){return Je})){X=Re,U=!1;break}L.set(Re,qt)}if(U)for(var et=N?3:1,qe=function(nt){var Nt=q.find(function(Ye){var Tt=L.get(Ye);if(Tt)return Tt.slice(0,nt).every(function(Mt){return Mt})});if(Nt)return X=Nt,"break"},Yt=et;Yt>0;Yt--){var tt=qe(Yt);if(tt==="break")break}e.placement!==X&&(e.modifiersData[r]._skip=!0,e.placement=X,e.reset=!0)}}const _g={name:"flip",enabled:!0,phase:"main",fn:Sx,requiresIfExists:["offset"],data:{_skip:!1}};function Cx(n){return n==="x"?"y":"x"}function zs(n,e,t){return Hi(n,fl(e,t))}function Nx(n,e,t){var r=zs(n,e,t);return r>t?t:r}function Tx(n){var e=n.state,t=n.options,r=n.name,o=t.mainAxis,a=o===void 0?!0:o,l=t.altAxis,d=l===void 0?!1:l,c=t.boundary,h=t.rootBoundary,g=t.altBoundary,v=t.padding,w=t.tether,m=w===void 0?!0:w,N=t.tetherOffset,A=N===void 0?0:N,k=Do(e,{boundary:c,rootBoundary:h,padding:v,altBoundary:g}),M=Or(e.placement),j=Fo(e.placement),Z=!j,q=fc(M),V=Cx(q),K=e.modifiersData.popperOffsets,L=e.rects.reference,U=e.rects.popper,X=typeof A=="function"?A(Object.assign({},e.rects,{placement:e.placement})):A,me=typeof X=="number"?{mainAxis:X,altAxis:X}:Object.assign({mainAxis:0,altAxis:0},X),Re=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Ve={x:0,y:0};if(K){if(a){var Fe,dt=q==="y"?_n:xn,rt=q==="y"?jn:qn,Le=q==="y"?"height":"width",Te=K[q],Y=Te+k[dt],qt=Te-k[rt],et=m?-U[Le]/2:0,qe=j===Ro?L[Le]:U[Le],Yt=j===Ro?-U[Le]:-L[Le],tt=e.elements.arrow,Je=m&&tt?uc(tt):{width:0,height:0},nt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:pg(),Nt=nt[dt],Ye=nt[rt],Tt=zs(0,L[Le],Je[Le]),Mt=Z?L[Le]/2-et-Tt-Nt-me.mainAxis:qe-Tt-Nt-me.mainAxis,Kt=Z?-L[Le]/2+et+Tt+Ye+me.mainAxis:Yt+Tt+Ye+me.mainAxis,en=e.elements.arrow&&Bs(e.elements.arrow),dn=en?q==="y"?en.clientTop||0:en.clientLeft||0:0,kr=(Fe=Re==null?void 0:Re[q])!=null?Fe:0,Jt=Te+Mt-kr-dn,E=Te+Kt-kr,H=zs(m?fl(Y,Jt):Y,Te,m?Hi(qt,E):qt);K[q]=H,Ve[q]=H-Te}if(d){var se,re=q==="x"?_n:xn,_e=q==="x"?jn:qn,ae=K[V],Xe=V==="y"?"height":"width",It=ae+k[re],Bt=ae-k[_e],tn=[_n,xn].indexOf(M)!==-1,Me=(se=Re==null?void 0:Re[V])!=null?se:0,hr=tn?It:ae-L[Xe]-U[Xe]-Me+me.altAxis,cn=tn?ae+L[Xe]+U[Xe]-Me-me.altAxis:Bt,fn=m&&tn?Nx(hr,ae,cn):zs(m?hr:It,ae,m?cn:Bt);K[V]=fn,Ve[V]=fn-ae}e.modifiersData[r]=Ve}}const xg={name:"preventOverflow",enabled:!0,phase:"main",fn:Tx,requiresIfExists:["offset"]};var Ox=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,gg(typeof e!="number"?e:mg(e,Ws))};function kx(n){var e,t=n.state,r=n.name,o=n.options,a=t.elements.arrow,l=t.modifiersData.popperOffsets,d=Or(t.placement),c=fc(d),h=[xn,qn].indexOf(d)>=0,g=h?"height":"width";if(!(!a||!l)){var v=Ox(o.padding,t),w=uc(a),m=c==="y"?_n:xn,N=c==="y"?jn:qn,A=t.rects.reference[g]+t.rects.reference[c]-l[c]-t.rects.popper[g],k=l[c]-t.rects.reference[c],M=Bs(a),j=M?c==="y"?M.clientHeight||0:M.clientWidth||0:0,Z=A/2-k/2,q=v[m],V=j-w[g]-v[N],K=j/2-w[g]/2+Z,L=zs(q,K,V),U=c;t.modifiersData[r]=(e={},e[U]=L,e.centerOffset=L-K,e)}}function Ax(n){var e=n.state,t=n.options,r=t.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||cg(e.elements.popper,o)&&(e.elements.arrow=o))}const Eg={name:"arrow",enabled:!0,phase:"main",fn:kx,effect:Ax,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sg(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Cg(n){return[_n,qn,jn,xn].some(function(e){return n[e]>=0})}function Px(n){var e=n.state,t=n.name,r=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,l=Do(e,{elementContext:"reference"}),d=Do(e,{altBoundary:!0}),c=Sg(l,r),h=Sg(d,o,a),g=Cg(c),v=Cg(h);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:h,isReferenceHidden:g,hasPopperEscaped:v},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":v})}const Ng={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Px};var Ix=[pc,gc,mc,yc],Rx=hc({defaultModifiers:Ix}),Tg=[pc,gc,mc,yc,$g,_g,xg,Eg,Ng],Fx=hc({defaultModifiers:Tg});const Dx=Object.freeze(Object.defineProperty({__proto__:null,applyStyles:yc,arrow:Eg,computeStyles:mc,createPopper:Fx,createPopperLite:Rx,defaultModifiers:Tg,detectOverflow:Do,eventListeners:pc,flip:_g,hide:Ng,offset:$g,popperGenerator:hc,popperOffsets:gc,preventOverflow:xg},Symbol.toStringTag,{value:"Module"}))}); //# sourceMappingURL=latest.umd.cjs.map