(function(){try{var ke=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Ye=new ke.Error().stack;Ye&&(ke._sentryDebugIds=ke._sentryDebugIds||{},ke._sentryDebugIds[Ye]="df4859f4-2f47-446c-939f-3d8b6206cefd",ke._sentryDebugIdIdentifier="sentry-dbid-df4859f4-2f47-446c-939f-3d8b6206cefd")}catch(Ne){}})();(function(ke){ke()})(function(){"use strict";var ET=Object.defineProperty,ST=Object.defineProperties;var CT=Object.getOwnPropertyDescriptors;var ju=Object.getOwnPropertySymbols,NT=Object.getPrototypeOf,Tm=Object.prototype.hasOwnProperty,Am=Object.prototype.propertyIsEnumerable,OT=Reflect.get;var km=Math.pow,Om=(ke,Ye,Ne)=>Ye in ke?ET(ke,Ye,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):ke[Ye]=Ne,C=(ke,Ye)=>{for(var Ne in Ye||(Ye={}))Tm.call(Ye,Ne)&&Om(ke,Ne,Ye[Ne]);if(ju)for(var Ne of ju(Ye))Am.call(Ye,Ne)&&Om(ke,Ne,Ye[Ne]);return ke},we=(ke,Ye)=>ST(ke,CT(Ye));var ff=(ke,Ye)=>{var Ne={};for(var bn in ke)Tm.call(ke,bn)&&Ye.indexOf(bn)<0&&(Ne[bn]=ke[bn]);if(ke!=null&&ju)for(var bn of ju(ke))Ye.indexOf(bn)<0&&Am.call(ke,bn)&&(Ne[bn]=ke[bn]);return Ne};var Pm=(ke,Ye,Ne)=>OT(NT(ke),Ne,Ye);var Le=(ke,Ye,Ne)=>new Promise((bn,Ho)=>{var Ft=yr=>{try{mr(Ne.next(yr))}catch(zo){Ho(zo)}},qu=yr=>{try{mr(Ne.throw(yr))}catch(zo){Ho(zo)}},mr=yr=>yr.done?bn(yr.value):Promise.resolve(yr.value).then(Ft,qu);mr((Ne=Ne.apply(ke,Ye)).next())});var Kp,Jp,Xp,Qp,e3,t3,n3;const ke={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 Ye(n,e,t,r=!1){const o=String(e),a=(c,h)=>`\x1B[${h[0]}m${c}\x1B[${h[1]}m`,u=(c,h)=>h!=null&&typeof h=="string"?a(c,ke[h]):h!=null&&Array.isArray(h)?h.reduce((g,$)=>u(g,$),c):h!=null&&h[c.trim()]!=null?u(c,h[c.trim()]):h!=null&&h["*"]!=null?u(c,h["*"]):c,d=null;return o.replace(/{{(.+?)}}/g,(c,h)=>{var $,_;const g=t[h]!=null?String(t[h]):r?"":c;return n.stylePrettyLogs?u(g,(_=($=n==null?void 0:n.prettyLogStyles)==null?void 0:$[h])!=null?_:d)+a("",ke.reset):g})}function Ne(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 bn(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 Ho(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 Ft(n,e){const t={seen:[],stylize:yr};return e!=null&&yf(t,e),mr(t.showHidden)&&(t.showHidden=!1),mr(t.depth)&&(t.depth=2),mr(t.colors)&&(t.colors=!0),mr(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=zo),Qs(t,n,t.depth)}Ft.colors=ke,Ft.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function qu(n){return typeof n=="boolean"}function mr(n){return n===void 0}function yr(n){return n}function zo(n,e){var r,o,a,u;const t=Ft.styles[e];return t!=null&&((o=(r=Ft==null?void 0:Ft.colors)==null?void 0:r[t])==null?void 0:o[0])!=null&&((u=(a=Ft==null?void 0:Ft.colors)==null?void 0:a[t])==null?void 0:u[1])!=null?"\x1B["+Ft.colors[t][0]+"m"+n+"\x1B["+Ft.colors[t][1]+"m":n}function Js(n){return typeof n=="function"}function hf(n){return typeof n=="string"}function Dm(n){return typeof n=="number"}function pf(n){return n===null}function gf(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function Yu(n){return Xs(n)&&Ju(n)==="[object RegExp]"}function Xs(n){return typeof n=="object"&&n!==null}function Ku(n){return Xs(n)&&(Ju(n)==="[object Error]"||n instanceof Error)}function mf(n){return Xs(n)&&Ju(n)==="[object Date]"}function Ju(n){return Object.prototype.toString.call(n)}function Fm(n){const e={};return n.forEach(t=>{e[t]=!0}),e}function Lm(n,e,t,r,o){const a=[];for(let u=0,d=e.length;u{u.match(/^\d+$/)||a.push(Qu(n,e,t,r,u,!0))}),a}function Xu(n){return"["+Error.prototype.toString.call(n)+"]"}function Qs(n,e,t=0){if(n.customInspect&&e!=null&&Js(e)&&(e==null?void 0:e.inspect)!==Ft&&!(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 hf(g)||(g=Qs(n,g,t)),g}const r=Qr(n,e);if(r)return r;let o=Object.keys(e);const a=Fm(o);try{n.showHidden&&Object.getOwnPropertyNames&&(o=Object.getOwnPropertyNames(e))}catch(g){}if(Ku(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Xu(e);if(o.length===0)if(Js(n.stylize)){if(Js(e)){const g=e.name?": "+e.name:"";return n.stylize("[Function"+g+"]","special")}if(Yu(e))return n.stylize(RegExp.prototype.toString.call(e),"regexp");if(mf(e))return n.stylize(Date.prototype.toISOString.call(e),"date");if(Ku(e))return Xu(e)}else return e;let u="",d=!1,c=[`{ `,` }`];if(Array.isArray(e)&&(d=!0,c=[`[ `,` ]`]),Js(e)&&(u=" [Function"+(e.name?": "+e.name:"")+"]"),Yu(e)&&(u=" "+RegExp.prototype.toString.call(e)),mf(e)&&(u=" "+Date.prototype.toUTCString.call(e)),Ku(e)&&(u=" "+Xu(e)),o.length===0&&(!d||e.length==0))return c[0]+u+c[1];if(t<0)return Yu(e)?n.stylize(RegExp.prototype.toString.call(e),"regexp"):n.stylize("[Object]","special");n.seen.push(e);let h;return d?h=Lm(n,e,t,a,o):h=o.map(g=>Qu(n,e,t,a,g,d)),n.seen.pop(),Rm(h,u,c)}function Qu(n,e,t,r,o,a){let u,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")),gf(r,o)||(u="["+o+"]"),d||(n.seen.indexOf(c.value)<0?(pf(t)?d=Qs(n,c.value,void 0):d=Qs(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")),mr(u)){if(a&&o.match(/^\d+$/))return d;u=JSON.stringify(""+o),u.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=n.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,"\\'").replace(/(^"|"$)/g,"'"),u=n.stylize(u,"string"))}return u+": "+d}function Qr(n,e){if(mr(e))return n.stylize("undefined","undefined");if(hf(e)){const t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,"\\'")+"'";return n.stylize(t,"string")}if(Dm(e))return n.stylize(""+e,"number");if(qu(e))return n.stylize(""+e,"boolean");if(pf(e))return n.stylize("null","null")}function Rm(n,e,t){return t[0]+(e===""?"":e+` `)+" "+n.join(`, `)+" "+t[1]}function yf(n,e){const t=C({},n);if(!e||!Xs(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 Mm(n,...e){const t={seen:[],stylize:yr};n!=null&&yf(t,n);const r=e[0];let o=0,a="",u="";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 $f(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,u)=>(a.push(bf(u)),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(Um);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 zm(n,e){return n.reduce((t,r)=>(wf(r)?t.errors.push(_f(r,e)):t.args.push(r),t),{args:[],errors:[]})}function _f(n,e){const t=$f(n).map(o=>Ye(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 Ye(e,e.prettyErrorTemplate,r)}function Vm(n,e,t,r){const o=(t.length>0&&e.length>0?` `:"")+t.join(` `);r.prettyInspectOptions.colors=r.stylePrettyLogs,console.log(n+Mm(r.prettyInspectOptions,...e)+o)}function Gm(n){console.log(Ho(n))}function Zm(n){return!1}class jm{constructor(e,t,r=4){var o,a,u,d,c,h,g,$,_,m,O,P,A,W,q,Z,Y,j,K,R,ge,X,he,Ie,Ke,De;this.logObj=t,this.stackDepthLevel=r,this.runtime=Bm,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:(u=e==null?void 0:e.hideLogPositionForProduction)!=null?u:!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:($=e==null?void 0:e.prettyErrorLoggerNameDelimiter)!=null?$:" ",stylePrettyLogs:(_=e==null?void 0:e.stylePrettyLogs)!=null?_:!0,prettyLogTimeZone:(m=e==null?void 0:e.prettyLogTimeZone)!=null?m:"UTC",prettyLogStyles:(O=e==null?void 0:e.prettyLogStyles)!=null?O:{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:(P=e==null?void 0:e.prettyInspectOptions)!=null?P:{colors:!0,compact:!1,depth:1/0},metaProperty:(A=e==null?void 0:e.metaProperty)!=null?A:"_meta",maskPlaceholder:(W=e==null?void 0:e.maskPlaceholder)!=null?W:"[***]",maskValuesOfKeys:(q=e==null?void 0:e.maskValuesOfKeys)!=null?q:["password"],maskValuesOfKeysCaseInsensitive:(Z=e==null?void 0:e.maskValuesOfKeysCaseInsensitive)!=null?Z:!1,maskValuesRegEx:e==null?void 0:e.maskValuesRegEx,prefix:[...(Y=e==null?void 0:e.prefix)!=null?Y:[]],attachedTransports:[...(j=e==null?void 0:e.attachedTransports)!=null?j:[]],overwrite:{mask:(K=e==null?void 0:e.overwrite)==null?void 0:K.mask,toLogObj:(R=e==null?void 0:e.overwrite)==null?void 0:R.toLogObj,addMeta:(ge=e==null?void 0:e.overwrite)==null?void 0:ge.addMeta,addPlaceholders:(X=e==null?void 0:e.overwrite)==null?void 0:X.addPlaceholders,formatMeta:(he=e==null?void 0:e.overwrite)==null?void 0:he.formatMeta,formatLogObj:(Ie=e==null?void 0:e.overwrite)==null?void 0:Ie.formatLogObj,transportFormatted:(Ke=e==null?void 0:e.overwrite)==null?void 0:Ke.transportFormatted,transportJSON:(De=e==null?void 0:e.overwrite)==null?void 0:De.transportJSON}}}log(e,t,...r){var $,_,m,O,P,A,W,q,Z,Y,j,K,R,ge;if(e0?this._mask(o):o,u=this.logObj!=null?this._recursiveCloneAndExecuteFunctions(this.logObj):void 0,d=((m=this.settings.overwrite)==null?void 0:m.toLogObj)!=null?(O=this.settings.overwrite)==null?void 0:O.toLogObj(a,u):this._toLogObj(a,u),c=((P=this.settings.overwrite)==null?void 0:P.addMeta)!=null?(A=this.settings.overwrite)==null?void 0:A.addMeta(d,e,t):this._addMetaToLogObj(d,e,t);let h,g;return((W=this.settings.overwrite)==null?void 0:W.formatMeta)!=null&&(h=(q=this.settings.overwrite)==null?void 0:q.formatMeta(c==null?void 0:c[this.settings.metaProperty])),((Z=this.settings.overwrite)==null?void 0:Z.formatLogObj)!=null&&(g=(Y=this.settings.overwrite)==null?void 0:Y.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?((j=this.settings.overwrite)==null?void 0:j.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):((R=this.settings.overwrite)==null?void 0:R.transportJSON)!=null?(ge=this.settings.overwrite)==null||ge.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,u,d,c;const r=we(C(C({},this.settings),e),{parentNames:((a=this.settings)==null?void 0:a.parentNames)!=null&&((u=this.settings)==null?void 0:u.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(u=>this._recursiveCloneAndMaskValuesOfKeys(u,t,r));if(e instanceof Date)return new Date(e.getTime());if(e instanceof URL)return bn(e);if(e!==null&&typeof e=="object"){const u=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},u)}else{if(typeof e=="string"){let u=e;for(const d of((o=this.settings)==null?void 0:o.maskValuesRegEx)||[])u=u.replace(d,((a=this.settings)==null?void 0:a.maskPlaceholder)||"");return u}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 u=e[o];r[o]=typeof u=="function"?u():this._recursiveCloneAndExecuteFunctions(u,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=we(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 we(C({},e),{[this.settings.metaProperty]:this.runtime.getMeta(t,r,this.stackDepthLevel,this.settings.hideLogPositionForProduction,this.settings.name,this.settings.parentNames)})}_prettyFormatLogObjMeta(e){var u,d,c,h,g,$,_,m,O,P,A,W,q,Z,Y,j,K,R,ge,X,he,Ie,Ke,De,$t,Et,ot;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=(u=e==null?void 0:e.date)==null?void 0:u.getUTCFullYear())!=null?d:"----",r.mm=Ne((c=e==null?void 0:e.date)==null?void 0:c.getUTCMonth(),2,1),r.dd=Ne((h=e==null?void 0:e.date)==null?void 0:h.getUTCDate(),2),r.hh=Ne((g=e==null?void 0:e.date)==null?void 0:g.getUTCHours(),2),r.MM=Ne(($=e==null?void 0:e.date)==null?void 0:$.getUTCMinutes(),2),r.ss=Ne((_=e==null?void 0:e.date)==null?void 0:_.getUTCSeconds(),2),r.ms=Ne((m=e==null?void 0:e.date)==null?void 0:m.getUTCMilliseconds(),3)):(r.yyyy=(P=(O=e==null?void 0:e.date)==null?void 0:O.getFullYear())!=null?P:"----",r.mm=Ne((A=e==null?void 0:e.date)==null?void 0:A.getMonth(),2,1),r.dd=Ne((W=e==null?void 0:e.date)==null?void 0:W.getDate(),2),r.hh=Ne((q=e==null?void 0:e.date)==null?void 0:q.getHours(),2),r.MM=Ne((Z=e==null?void 0:e.date)==null?void 0:Z.getMinutes(),2),r.ss=Ne((Y=e==null?void 0:e.date)==null?void 0:Y.getSeconds(),2),r.ms=Ne((j=e==null?void 0:e.date)==null?void 0:j.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())-((R=e==null?void 0:e.date)==null?void 0:R.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=(ge=e==null?void 0:e.path)==null?void 0:ge.fileNameWithLine)!=null?X:"",r.filePathWithLine=(Ie=(he=e==null?void 0:e.path)==null?void 0:he.filePathWithLine)!=null?Ie:"",r.fullFilePath=(De=(Ke=e==null?void 0:e.path)==null?void 0:Ke.fullFilePath)!=null?De:"";let a=($t=this.settings.parentNames)==null?void 0:$t.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:"",((Et=this.settings.overwrite)==null?void 0:Et.addPlaceholders)!=null&&((ot=this.settings.overwrite)==null||ot.addPlaceholders(e,r)),Ye(this.settings,t,r)}}class qm extends jm{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 Ym=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};Ym.SENTRY_RELEASE={id:"10a43ca29a1dde63af40eaa6916c9c9d5eb0c221"};var el=function(){return el=Object.assign||function(n){for(var e,t=1,r=arguments.length;t(n.godaddy="godaddy",n.salesforce="salesforce",n.unknown="unknown",n))(tl||{});class Nt{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:vt.error(`Invalid ?acct= format: ${t}`)}!window.gbWidgets.aid&&!Vo.isCurrentHostnameGivebutter()&&vt.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 Jm={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"};Xm(Jm);function Xm(n){var e={};for(var t in n)n.hasOwnProperty(t)&&(e[n[t]]=t);return e}class xi extends Error{}class Qm extends xi{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class e4 extends xi{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class t4 extends xi{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Zi extends xi{}class xf extends xi{constructor(e){super(`Invalid unit ${e}`)}}class qt extends xi{}class ei extends xi{constructor(){super("Zone is an abstract class")}}const H="numeric",Kn="short",wn="long",ea={year:H,month:H,day:H},Ef={year:H,month:Kn,day:H},n4={year:H,month:Kn,day:H,weekday:Kn},Sf={year:H,month:wn,day:H},Cf={year:H,month:wn,day:H,weekday:wn},Nf={hour:H,minute:H},Of={hour:H,minute:H,second:H},Tf={hour:H,minute:H,second:H,timeZoneName:Kn},Af={hour:H,minute:H,second:H,timeZoneName:wn},kf={hour:H,minute:H,hourCycle:"h23"},Pf={hour:H,minute:H,second:H,hourCycle:"h23"},If={hour:H,minute:H,second:H,hourCycle:"h23",timeZoneName:Kn},Df={hour:H,minute:H,second:H,hourCycle:"h23",timeZoneName:wn},Ff={year:H,month:H,day:H,hour:H,minute:H},Lf={year:H,month:H,day:H,hour:H,minute:H,second:H},Rf={year:H,month:Kn,day:H,hour:H,minute:H},Mf={year:H,month:Kn,day:H,hour:H,minute:H,second:H},r4={year:H,month:Kn,day:H,weekday:Kn,hour:H,minute:H},Bf={year:H,month:wn,day:H,hour:H,minute:H,timeZoneName:Kn},Wf={year:H,month:wn,day:H,hour:H,minute:H,second:H,timeZoneName:Kn},Uf={year:H,month:wn,day:H,weekday:wn,hour:H,minute:H,timeZoneName:wn},Hf={year:H,month:wn,day:H,weekday:wn,hour:H,minute:H,second:H,timeZoneName:wn};class Go{get type(){throw new ei}get name(){throw new ei}get ianaName(){return this.name}get isUniversal(){throw new ei}offsetName(e,t){throw new ei}formatOffset(e,t){throw new ei}offset(e){throw new ei}equals(e){throw new ei}get isValid(){throw new ei}}let nl=null;class ta extends Go{static get instance(){return nl===null&&(nl=new ta),nl}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return h0(e,t,r)}formatOffset(e,t){return Yo(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let na={};function i4(n){return na[n]||(na[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"})),na[n]}const o4={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function s4(n,e){const t=n.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,o,a,u,d,c,h,g]=r;return[u,o,a,d,c,h,g]}function a4(n,e){const t=n.formatToParts(e),r=[];for(let o=0;o=0?O:1e3+O,(_-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let zf={};function u4(n,e={}){const t=JSON.stringify([n,e]);let r=zf[t];return r||(r=new Intl.ListFormat(n,e),zf[t]=r),r}let rl={};function il(n,e={}){const t=JSON.stringify([n,e]);let r=rl[t];return r||(r=new Intl.DateTimeFormat(n,e),rl[t]=r),r}let ol={};function l4(n,e={}){const t=JSON.stringify([n,e]);let r=ol[t];return r||(r=new Intl.NumberFormat(n,e),ol[t]=r),r}let sl={};function d4(n,e={}){const u=e,{base:t}=u,r=ff(u,["base"]),o=JSON.stringify([n,r]);let a=sl[o];return a||(a=new Intl.RelativeTimeFormat(n,e),sl[o]=a),a}let Zo=null;function c4(){return Zo||(Zo=new Intl.DateTimeFormat().resolvedOptions().locale,Zo)}let Vf={};function f4(n){let e=Vf[n];if(!e){const t=new Intl.Locale(n);e="getWeekInfo"in t?t.getWeekInfo():t.weekInfo,Vf[n]=e}return e}function h4(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=il(n).resolvedOptions(),o=n}catch(d){const c=n.substring(0,t);r=il(c).resolvedOptions(),o=c}const{numberingSystem:a,calendar:u}=r;return[o,a,u]}}function p4(n,e,t){return(t||e)&&(n.includes("-u-")||(n+="-u"),t&&(n+=`-ca-${t}`),e&&(n+=`-nu-${e}`)),n}function g4(n){const e=[];for(let t=1;t<=12;t++){const r=ce.utc(2009,t,1);e.push(n(r))}return e}function m4(n){const e=[];for(let t=1;t<=7;t++){const r=ce.utc(2016,11,13+t);e.push(n(r))}return e}function ia(n,e,t,r){const o=n.listingMode();return o==="error"?null:o==="en"?t(e):r(e)}function y4(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 v4{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const d=r,{padTo:o,floor:a}=d,u=ff(d,["padTo","floor"]);if(!t||Object.keys(u).length>0){const c=C({useGrouping:!1},r);r.padTo>0&&(c.minimumIntegerDigits=r.padTo),this.inf=l4(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):pl(e,3);return _t(t,this.padTo)}}}class $4{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 u=-1*(e.offset/60),d=u>=0?`Etc/GMT+${u}`:`Etc/GMT${u}`;e.offset!==0&&kr.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=il(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 we(C({},t),{value:r})}else return t}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class b4{constructor(e,t,r){this.opts=C({style:"long"},r),!t&&l0()&&(this.rtf=d4(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):z4(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const w4={firstDay:1,minimalDays:4,weekend:[6,7]};class We{static fromOpts(e){return We.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,o,a=!1){const u=e||dt.defaultLocale,d=u||(a?"en-US":c4()),c=t||dt.defaultNumberingSystem,h=r||dt.defaultOutputCalendar,g=fl(o)||dt.defaultWeekSettings;return new We(d,c,h,g,u)}static resetCache(){Zo=null,rl={},ol={},sl={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:o}={}){return We.create(e,t,r,o)}constructor(e,t,r,o,a){const[u,d,c]=h4(e);this.locale=u,this.numberingSystem=t||d||null,this.outputCalendar=r||c||null,this.weekSettings=o,this.intl=p4(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=y4(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:We.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,fl(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone(we(C({},e),{defaultToEN:!0}))}redefaultToSystem(e={}){return this.clone(we(C({},e),{defaultToEN:!1}))}months(e,t=!1){return ia(this,e,m0,()=>{const r=t?{month:e,day:"numeric"}:{month:e},o=t?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=g4(a=>this.extract(a,r,"month"))),this.monthsCache[o][e]})}weekdays(e,t=!1){return ia(this,e,$0,()=>{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]=m4(a=>this.extract(a,r,"weekday"))),this.weekdaysCache[o][e]})}meridiems(){return ia(this,void 0,()=>b0,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ce.utc(2016,11,13,9),ce.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ia(this,e,w0,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[ce.utc(-40,1,1),ce.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(),u=a.find(d=>d.type.toLowerCase()===r);return u?u.value:null}numberFormatter(e={}){return new v4(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new $4(e,this.intl,t)}relFormatter(e={}){return new b4(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:d0()?f4(this.locale):w4}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 al=null;class nn extends Go{static get utcInstance(){return al===null&&(al=new nn(0)),al}static instance(e){return e===0?nn.utcInstance:new nn(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new nn(la(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Yo(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Yo(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Yo(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 _4 extends Go{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 ti(n,e){if(de(n)||n===null)return e;if(n instanceof Go)return n;if(O4(n)){const t=n.toLowerCase();return t==="default"?e:t==="local"||t==="system"?ta.instance:t==="utc"||t==="gmt"?nn.utcInstance:nn.parseSpecifier(t)||kr.create(n)}else return ni(n)?nn.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new _4(n)}const ul={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Gf={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]},x4=ul.hanidec.replace(/[\[|\]]/g,"").split("");function E4(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let t=0;t=a&&r<=u&&(e+=r-a)}}return parseInt(e,10)}else return e}let ji={};function S4(){ji={}}function Jn({numberingSystem:n},e=""){const t=n||"latn";return ji[t]||(ji[t]={}),ji[t][e]||(ji[t][e]=new RegExp(`${ul[t]}${e}`)),ji[t][e]}let Zf=()=>Date.now(),jf="system",qf=null,Yf=null,Kf=null,Jf=60,Xf,Qf=null;class dt{static get now(){return Zf}static set now(e){Zf=e}static set defaultZone(e){jf=e}static get defaultZone(){return ti(jf,ta.instance)}static get defaultLocale(){return qf}static set defaultLocale(e){qf=e}static get defaultNumberingSystem(){return Yf}static set defaultNumberingSystem(e){Yf=e}static get defaultOutputCalendar(){return Kf}static set defaultOutputCalendar(e){Kf=e}static get defaultWeekSettings(){return Qf}static set defaultWeekSettings(e){Qf=fl(e)}static get twoDigitCutoffYear(){return Jf}static set twoDigitCutoffYear(e){Jf=e%100}static get throwOnInvalid(){return Xf}static set throwOnInvalid(e){Xf=e}static resetCaches(){We.resetCache(),kr.resetCache(),ce.resetCache(),S4()}}class Xn{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const e0=[0,31,59,90,120,151,181,212,243,273,304,334],t0=[0,31,60,91,121,152,182,213,244,274,305,335];function In(n,e){return new Xn("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function ll(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 n0(n,e,t){return t+(jo(n)?t0:e0)[e-1]}function r0(n,e){const t=jo(n)?t0:e0,r=t.findIndex(a=>aqo(r,e,t)?(h=r+1,c=1):h=r,C({weekYear:h,weekNumber:c,weekday:d},ca(n))}function i0(n,e=4,t=1){const{weekYear:r,weekNumber:o,weekday:a}=n,u=dl(ll(r,1,e),t),d=Yi(r);let c=o*7+a-u-7+e,h;c<1?(h=r-1,c+=Yi(h)):c>d?(h=r+1,c-=Yi(r)):h=r;const{month:g,day:$}=r0(h,c);return C({year:h,month:g,day:$},ca(n))}function cl(n){const{year:e,month:t,day:r}=n,o=n0(e,t,r);return C({year:e,ordinal:o},ca(n))}function o0(n){const{year:e,ordinal:t}=n,{month:r,day:o}=r0(e,t);return C({year:e,month:r,day:o},ca(n))}function s0(n,e){if(!de(n.localWeekday)||!de(n.localWeekNumber)||!de(n.localWeekYear)){if(!de(n.weekday)||!de(n.weekNumber)||!de(n.weekYear))throw new Zi("Cannot mix locale-based week fields with ISO-based week fields");return de(n.localWeekday)||(n.weekday=n.localWeekday),de(n.localWeekNumber)||(n.weekNumber=n.localWeekNumber),de(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 C4(n,e=4,t=1){const r=sa(n.weekYear),o=Dn(n.weekNumber,1,qo(n.weekYear,e,t)),a=Dn(n.weekday,1,7);return r?o?a?!1:In("weekday",n.weekday):In("week",n.weekNumber):In("weekYear",n.weekYear)}function N4(n){const e=sa(n.year),t=Dn(n.ordinal,1,Yi(n.year));return e?t?!1:In("ordinal",n.ordinal):In("year",n.year)}function a0(n){const e=sa(n.year),t=Dn(n.month,1,12),r=Dn(n.day,1,aa(n.year,n.month));return e?t?r?!1:In("day",n.day):In("month",n.month):In("year",n.year)}function u0(n){const{hour:e,minute:t,second:r,millisecond:o}=n,a=Dn(e,0,23)||e===24&&t===0&&r===0&&o===0,u=Dn(t,0,59),d=Dn(r,0,59),c=Dn(o,0,999);return a?u?d?c?!1:In("millisecond",o):In("second",r):In("minute",t):In("hour",e)}function de(n){return typeof n=="undefined"}function ni(n){return typeof n=="number"}function sa(n){return typeof n=="number"&&n%1===0}function O4(n){return typeof n=="string"}function T4(n){return Object.prototype.toString.call(n)==="[object Date]"}function l0(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch(n){return!1}}function d0(){try{return typeof Intl!="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(n){return!1}}function A4(n){return Array.isArray(n)?n:[n]}function c0(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 k4(n,e){return e.reduce((t,r)=>(t[r]=n[r],t),{})}function qi(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function fl(n){if(n==null)return null;if(typeof n!="object")throw new qt("Week settings must be an object");if(!Dn(n.firstDay,1,7)||!Dn(n.minimalDays,1,7)||!Array.isArray(n.weekend)||n.weekend.some(e=>!Dn(e,1,7)))throw new qt("Invalid week settings");return{firstDay:n.firstDay,minimalDays:n.minimalDays,weekend:Array.from(n.weekend)}}function Dn(n,e,t){return sa(n)&&n>=e&&n<=t}function P4(n,e){return n-e*Math.floor(n/e)}function _t(n,e=2){const t=n<0;let r;return t?r="-"+(""+-n).padStart(e,"0"):r=(""+n).padStart(e,"0"),r}function ri(n){if(!(de(n)||n===null||n===""))return parseInt(n,10)}function Ei(n){if(!(de(n)||n===null||n===""))return parseFloat(n)}function hl(n){if(!(de(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function pl(n,e,t=!1){const r=km(10,e);return(t?Math.trunc:Math.round)(n*r)/r}function jo(n){return n%4===0&&(n%100!==0||n%400===0)}function Yi(n){return jo(n)?366:365}function aa(n,e){const t=P4(e-1,12)+1,r=n+(e-t)/12;return t===2?jo(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function ua(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 f0(n,e,t){return-dl(ll(n,1,e),t)+e-1}function qo(n,e=4,t=1){const r=f0(n,e,t),o=f0(n+1,e,t);return(Yi(n)-r+o)/7}function gl(n){return n>99?n:n>dt.twoDigitCutoffYear?1900+n:2e3+n}function h0(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 u=C({timeZoneName:e},a),d=new Intl.DateTimeFormat(t,u).formatToParts(o).find(c=>c.type.toLowerCase()==="timezonename");return d?d.value:null}function la(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 p0(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new qt(`Invalid unit value ${n}`);return e}function da(n,e){const t={};for(const r in n)if(qi(n,r)){const o=n[r];if(o==null)continue;t[e(r)]=p0(o)}return t}function Yo(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}${_t(t,2)}:${_t(r,2)}`;case"narrow":return`${o}${t}${r>0?`:${r}`:""}`;case"techie":return`${o}${_t(t,2)}${_t(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ca(n){return k4(n,["hour","minute","second","millisecond"])}const I4=["January","February","March","April","May","June","July","August","September","October","November","December"],g0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],D4=["J","F","M","A","M","J","J","A","S","O","N","D"];function m0(n){switch(n){case"narrow":return[...D4];case"short":return[...g0];case"long":return[...I4];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 y0=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],v0=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],F4=["M","T","W","T","F","S","S"];function $0(n){switch(n){case"narrow":return[...F4];case"short":return[...v0];case"long":return[...y0];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const b0=["AM","PM"],L4=["Before Christ","Anno Domini"],R4=["BC","AD"],M4=["B","A"];function w0(n){switch(n){case"narrow":return[...M4];case"short":return[...R4];case"long":return[...L4];default:return null}}function B4(n){return b0[n.hour<12?0:1]}function W4(n,e){return $0(e)[n.weekday-1]}function U4(n,e){return m0(e)[n.month-1]}function H4(n,e){return w0(e)[n.year<0?0:1]}function z4(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 $=n==="days";switch(e){case 1:return $?"tomorrow":`next ${o[n][0]}`;case-1:return $?"yesterday":`last ${o[n][0]}`;case 0:return $?"today":`this ${o[n][0]}`}}const u=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 u?`${d} ${g} ago`:`in ${d} ${g}`}function _0(n,e){let t="";for(const r of n)r.literal?t+=r.val:t+=e(r.val);return t}const V4={D:ea,DD:Ef,DDD:Sf,DDDD:Cf,t:Nf,tt:Of,ttt:Tf,tttt:Af,T:kf,TT:Pf,TTT:If,TTTT:Df,f:Ff,ff:Rf,fff:Bf,ffff:Uf,F:Lf,FF:Mf,FFF:Wf,FFFF:Hf};class Yt{static create(e,t={}){return new Yt(e,t)}static parseFormat(e){let t=null,r="",o=!1;const a=[];for(let u=0;u0&&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 V4[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 _t(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,O)=>this.loc.extract(e,m,O),u=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",d=()=>r?B4(e):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(m,O)=>r?U4(e,m):a(O?{month:m}:{month:m,day:"numeric"},"month"),h=(m,O)=>r?W4(e,m):a(O?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),g=m=>{const O=Yt.macroTokenToFormatOpts(m);return O?this.formatWithSystemDefault(e,O):m},$=m=>r?H4(e,m):a({era:m},"era"),_=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 u({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return u({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return u({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 $("short");case"GG":return $("long");case"GGGGG":return $("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 _0(Yt.parseFormat(t),_)}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=Yt.parseFormat(t),u=a.reduce((c,{literal:h,val:g})=>h?c:c.concat(g),[]),d=e.shiftTo(...u.map(r).filter(c=>c));return _0(a,o(d))}}const x0=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ki(...n){const e=n.reduce((t,r)=>t+r.source,"");return RegExp(`^${e}$`)}function Ji(...n){return e=>n.reduce(([t,r,o],a)=>{const[u,d,c]=a(e,o);return[C(C({},t),u),d||r,c]},[{},null,1]).slice(0,2)}function Xi(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 E0(...n){return(e,t)=>{const r={};let o;for(o=0;om!==void 0&&(O||m&&g)?-m:m;return[{years:_(Ei(t)),months:_(Ei(r)),weeks:_(Ei(o)),days:_(Ei(a)),hours:_(Ei(u)),minutes:_(Ei(d)),seconds:_(Ei(c),c==="-0"),milliseconds:_(hl(h),$)}]}const r6={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 vl(n,e,t,r,o,a,u){const d={year:e.length===2?gl(ri(e)):ri(e),month:g0.indexOf(t)+1,day:ri(r),hour:ri(o),minute:ri(a)};return u&&(d.second=ri(u)),n&&(d.weekday=n.length>3?y0.indexOf(n)+1:v0.indexOf(n)+1),d}const i6=/^(?:(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 o6(n){const[,e,t,r,o,a,u,d,c,h,g,$]=n,_=vl(e,o,r,t,a,u,d);let m;return c?m=r6[c]:h?m=0:m=la(g,$),[_,new nn(m)]}function s6(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const a6=/^(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$/,l6=/^(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 O0(n){const[,e,t,r,o,a,u,d]=n;return[vl(e,o,r,t,a,u,d),nn.utcInstance]}function d6(n){const[,e,t,r,o,a,u,d]=n;return[vl(e,d,t,r,o,a,u),nn.utcInstance]}const c6=Ki(Z4,yl),f6=Ki(j4,yl),h6=Ki(q4,yl),p6=Ki(C0),T0=Ji(Q4,eo,Ko,Jo),g6=Ji(Y4,eo,Ko,Jo),m6=Ji(K4,eo,Ko,Jo),y6=Ji(eo,Ko,Jo);function v6(n){return Xi(n,[c6,T0],[f6,g6],[h6,m6],[p6,y6])}function $6(n){return Xi(s6(n),[i6,o6])}function b6(n){return Xi(n,[a6,O0],[u6,O0],[l6,d6])}function w6(n){return Xi(n,[t6,n6])}const _6=Ji(eo);function x6(n){return Xi(n,[e6,_6])}const E6=Ki(J4,X4),S6=Ki(N0),C6=Ji(eo,Ko,Jo);function N6(n){return Xi(n,[E6,T0],[S6,C6])}const A0="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}},O6=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),Fn=146097/400,to=146097/4800,T6=C({years:{quarters:4,months:12,weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},quarters:{months:3,weeks:Fn/28,days:Fn/4,hours:Fn*24/4,minutes:Fn*24*60/4,seconds:Fn*24*60*60/4,milliseconds:Fn*24*60*60*1e3/4},months:{weeks:to/7,days:to,hours:to*24,minutes:to*24*60,seconds:to*24*60*60,milliseconds:to*24*60*60*1e3}},k0),Si=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],A6=Si.slice(0).reverse();function ii(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 Pe(r)}function P0(n,e){var r;let t=(r=e.milliseconds)!=null?r:0;for(const o of A6.slice(1))e[o]&&(t+=e[o]*n[o].milliseconds);return t}function I0(n,e){const t=P0(n,e)<0?-1:1;Si.reduceRight((r,o)=>{if(de(e[o]))return r;if(r){const a=e[r]*t,u=n[o][r],d=Math.floor(a/u);e[o]+=d*t,e[r]-=d*u*t}return o},null),Si.reduce((r,o)=>{if(de(e[o]))return r;if(r){const a=e[r]%1;e[r]-=a,e[o]+=a*n[r][o]}return o},null)}function k6(n){const e={};for(const[t,r]of Object.entries(n))r!==0&&(e[t]=r);return e}class Pe{constructor(e){const t=e.conversionAccuracy==="longterm"||!1;let r=t?T6:O6;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||We.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return Pe.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new qt(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Pe({values:da(e,Pe.normalizeUnit),loc:We.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(ni(e))return Pe.fromMillis(e);if(Pe.isDuration(e))return e;if(typeof e=="object")return Pe.fromObject(e);throw new qt(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[r]=w6(e);return r?Pe.fromObject(r,t):Pe.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[r]=x6(e);return r?Pe.fromObject(r,t):Pe.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new qt("need to specify a reason the Duration is invalid");const r=e instanceof Xn?e:new Xn(e,t);if(dt.throwOnInvalid)throw new t4(r);return new Pe({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 xf(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=we(C({},t),{floor:t.round!==!1&&t.floor!==!1});return this.isValid?Yt.create(this.loc,r).formatDurationFromString(this,e):A0}toHuman(e={}){if(!this.isValid)return A0;const t=Si.map(r=>{const o=this.values[r];return de(o)?null:this.loc.numberFormatter(we(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+=pl(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=we(C({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e),{includeOffset:!1}),ce.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?P0(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Pe.fromDurationLike(e),r={};for(const o of Si)(qi(t.values,o)||qi(this.values,o))&&(r[o]=t.get(o)+this.get(o));return ii(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const t=Pe.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]=p0(e(this.values[r],r));return ii(this,{values:t},!0)}get(e){return this[Pe.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t=C(C({},this.values),da(e,Pe.normalizeUnit));return ii(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:o}={}){const u={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:o,conversionAccuracy:r};return ii(this,u)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return I0(this.matrix,e),ii(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=k6(this.normalize().shiftToAll().toObject());return ii(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(u=>Pe.normalizeUnit(u));const t={},r={},o=this.toObject();let a;for(const u of Si)if(e.indexOf(u)>=0){a=u;let d=0;for(const h in r)d+=this.matrix[h][u]*r[h],r[h]=0;ni(o[u])&&(d+=o[u]);const c=Math.trunc(d);t[u]=c,r[u]=(d*1e3-c*1e3)/1e3}else ni(o[u])&&(r[u]=o[u]);for(const u in r)r[u]!==0&&(t[a]+=u===a?r[u]:r[u]/this.matrix[a][u]);return I0(this.matrix,t),ii(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 ii(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 Si)if(!t(this.values[r],e.values[r]))return!1;return!0}}const no="Invalid Interval";function P6(n,e){return!n||!n.isValid?ct.invalid("missing or invalid start"):!e||!e.isValid?ct.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?ct.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Qo).filter(u=>this.contains(u)).sort((u,d)=>u.toMillis()-d.toMillis()),r=[];let{s:o}=this,a=0;for(;o+this.e?this.e:u;r.push(ct.fromDateTimes(o,d)),o=d,a+=1}return r}splitBy(e){const t=Pe.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:r}=this,o=1,a;const u=[];for(;rc*o));a=+d>+this.e?this.e:d,u.push(ct.fromDateTimes(r,a)),r=a,o+=1}return u}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:ct.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return ct.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort((o,a)=>o.s-a.s).reduce(([o,a],u)=>a?a.overlaps(u)||a.abutsStart(u)?[o,a.union(u)]:[o.concat([a]),u]:[o,u],[[],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"}]),u=Array.prototype.concat(...a),d=u.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(ct.fromDateTimes(t,c.time)),t=null);return ct.merge(o)}difference(...e){return ct.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:no}[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=ea,t={}){return this.isValid?Yt.create(this.s.loc.clone(t),e).formatInterval(this):no}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:no}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:no}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:no}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:no}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Pe.invalid(this.invalidReason)}mapEndpoints(e){return ct.fromDateTimes(e(this.s),e(this.e))}}class fa{static hasDST(e=dt.defaultZone){const t=ce.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return kr.isValidZone(e)}static normalizeZone(e){return ti(e,dt.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||We.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||We.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||We.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null,outputCalendar:a="gregory"}={}){return(o||We.create(t,r,a)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null,outputCalendar:a="gregory"}={}){return(o||We.create(t,r,a)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null}={}){return(o||We.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null}={}){return(o||We.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return We.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return We.create(t,null,"gregory").eras(e)}static features(){return{relative:l0(),localeWeek:d0()}}}function D0(n,e){const t=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=t(e)-t(n);return Math.floor(Pe.fromMillis(r).as("days"))}function I6(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=D0(c,h);return(g-g%7)/7}],["days",D0]],o={},a=n;let u,d;for(const[c,h]of r)t.indexOf(c)>=0&&(u=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,u]}function D6(n,e,t,r){let[o,a,u,d]=I6(n,e,t);const c=e-o,h=t.filter($=>["hours","minutes","seconds","milliseconds"].indexOf($)>=0);h.length===0&&(u0?Pe.fromMillis(c,r).shiftTo(...h).plus(g):g}const F6="missing Intl.DateTimeFormat.formatToParts support";function Re(n,e=t=>t){return{regex:n,deser:([t])=>e(E4(t))}}const F0="[  ]",L0=new RegExp(F0,"g");function L6(n){return n.replace(/\./g,"\\.?").replace(L0,F0)}function R0(n){return n.replace(/\./g,"").replace(L0," ").toLowerCase()}function Qn(n,e){return n===null?null:{regex:RegExp(n.map(L6).join("|")),deser:([t])=>n.findIndex(r=>R0(t)===R0(r))+e}}function M0(n,e){return{regex:n,deser:([,t,r])=>la(t,r),groups:e}}function ha(n){return{regex:n,deser:([e])=>e}}function R6(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function M6(n,e){const t=Jn(e),r=Jn(e,"{2}"),o=Jn(e,"{3}"),a=Jn(e,"{4}"),u=Jn(e,"{6}"),d=Jn(e,"{1,2}"),c=Jn(e,"{1,3}"),h=Jn(e,"{1,6}"),g=Jn(e,"{1,9}"),$=Jn(e,"{2,4}"),_=Jn(e,"{4,6}"),m=A=>({regex:RegExp(R6(A.val)),deser:([W])=>W,literal:!0}),P=(A=>{if(n.literal)return m(A);switch(A.val){case"G":return Qn(e.eras("short"),0);case"GG":return Qn(e.eras("long"),0);case"y":return Re(h);case"yy":return Re($,gl);case"yyyy":return Re(a);case"yyyyy":return Re(_);case"yyyyyy":return Re(u);case"M":return Re(d);case"MM":return Re(r);case"MMM":return Qn(e.months("short",!0),1);case"MMMM":return Qn(e.months("long",!0),1);case"L":return Re(d);case"LL":return Re(r);case"LLL":return Qn(e.months("short",!1),1);case"LLLL":return Qn(e.months("long",!1),1);case"d":return Re(d);case"dd":return Re(r);case"o":return Re(c);case"ooo":return Re(o);case"HH":return Re(r);case"H":return Re(d);case"hh":return Re(r);case"h":return Re(d);case"mm":return Re(r);case"m":return Re(d);case"q":return Re(d);case"qq":return Re(r);case"s":return Re(d);case"ss":return Re(r);case"S":return Re(c);case"SSS":return Re(o);case"u":return ha(g);case"uu":return ha(d);case"uuu":return Re(t);case"a":return Qn(e.meridiems(),0);case"kkkk":return Re(a);case"kk":return Re($,gl);case"W":return Re(d);case"WW":return Re(r);case"E":case"c":return Re(t);case"EEE":return Qn(e.weekdays("short",!1),1);case"EEEE":return Qn(e.weekdays("long",!1),1);case"ccc":return Qn(e.weekdays("short",!0),1);case"cccc":return Qn(e.weekdays("long",!0),1);case"Z":case"ZZ":return M0(new RegExp(`([+-]${d.source})(?::(${r.source}))?`),2);case"ZZZ":return M0(new RegExp(`([+-]${d.source})(${r.source})?`),2);case"z":return ha(/[a-z_+-/]{1,256}?/i);case" ":return ha(/[^\S\n\r]/);default:return m(A)}})(n)||{invalidReason:F6};return P.token=n,P}const B6={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 W6(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 u=r;r==="hour"&&(e.hour12!=null?u=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?u="hour12":u="hour24":u=t.hour12?"hour12":"hour24");let d=B6[u];if(typeof d=="object"&&(d=d[a]),d)return{literal:!1,val:d}}function U6(n){return[`^${n.map(t=>t.regex).reduce((t,r)=>`${t}(${r.source})`,"")}$`,n]}function H6(n,e,t){const r=n.match(e);if(r){const o={};let a=1;for(const u in t)if(qi(t,u)){const d=t[u],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 z6(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 de(n.z)||(t=kr.create(n.z)),de(n.Z)||(t||(t=new nn(n.Z)),r=n.Z),de(n.q)||(n.M=(n.q-1)*3+1),de(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),de(n.u)||(n.S=hl(n.u)),[Object.keys(n).reduce((a,u)=>{const d=e(u);return d&&(a[d]=n[u]),a},{}),t,r]}let $l=null;function V6(){return $l||($l=ce.fromMillis(1555555555555)),$l}function G6(n,e){if(n.literal)return n;const t=Yt.macroTokenToFormatOpts(n.val),r=H0(t,e);return r==null||r.includes(void 0)?n:r}function B0(n,e){return Array.prototype.concat(...n.map(t=>G6(t,e)))}class W0{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=B0(Yt.parseFormat(t),e),this.units=this.tokens.map(r=>M6(r,e)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,o]=U6(this.units);this.regex=RegExp(r,"i"),this.handlers=o}}explainFromTokens(e){if(this.isValid){const[t,r]=H6(e,this.regex,this.handlers),[o,a,u]=r?z6(r):[null,null,void 0];if(qi(r,"a")&&qi(r,"H"))throw new Zi("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:u}}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 U0(n,e,t){return new W0(n,t).explainFromTokens(e)}function Z6(n,e,t){const{result:r,zone:o,specificOffset:a,invalidReason:u}=U0(n,e,t);return[r,o,a,u]}function H0(n,e){if(!n)return null;const r=Yt.create(e,n).dtFormatter(V6()),o=r.formatToParts(),a=r.resolvedOptions();return o.map(u=>W6(u,n,a))}const bl="Invalid DateTime",z0=864e13;function Xo(n){return new Xn("unsupported zone",`the zone "${n.name}" is not supported`)}function wl(n){return n.weekData===null&&(n.weekData=oa(n.c)),n.weekData}function _l(n){return n.localWeekData===null&&(n.localWeekData=oa(n.c,n.loc.getMinDaysInFirstWeek(),n.loc.getStartOfWeek())),n.localWeekData}function Ci(n,e){const t={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new ce(we(C(C({},t),e),{old:t}))}function V0(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 pa(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 ga(n,e,t){return V0(ua(n),e,t)}function G0(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=we(C({},n.c),{year:r,month:o,day:Math.min(n.c.day,aa(r,o))+Math.trunc(e.days)+Math.trunc(e.weeks)*7}),u=Pe.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=ua(a);let[c,h]=V0(d,t,n.zone);return u!==0&&(c+=u,h=n.zone.offset(c)),{ts:c,o:h}}function ro(n,e,t,r,o,a){const{setZone:u,zone:d}=t;if(n&&Object.keys(n).length!==0||e){const c=e||d,h=ce.fromObject(n,we(C({},t),{zone:c,specificOffset:a}));return u?h:h.setZone(d)}else return ce.invalid(new Xn("unparsable",`the input "${o}" can't be parsed as ${r}`))}function ma(n,e,t=!0){return n.isValid?Yt.create(We.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(n,e):null}function xl(n,e){const t=n.c.year>9999||n.c.year<0;let r="";return t&&n.c.year>=0&&(r+="+"),r+=_t(n.c.year,t?6:4),e?(r+="-",r+=_t(n.c.month),r+="-",r+=_t(n.c.day)):(r+=_t(n.c.month),r+=_t(n.c.day)),r}function Z0(n,e,t,r,o,a){let u=_t(n.c.hour);return e?(u+=":",u+=_t(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(u+=":")):u+=_t(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(u+=_t(n.c.second),(n.c.millisecond!==0||!r)&&(u+=".",u+=_t(n.c.millisecond,3))),o&&(n.isOffsetFixed&&n.offset===0&&!a?u+="Z":n.o<0?(u+="-",u+=_t(Math.trunc(-n.o/60)),u+=":",u+=_t(Math.trunc(-n.o%60))):(u+="+",u+=_t(Math.trunc(n.o/60)),u+=":",u+=_t(Math.trunc(n.o%60)))),a&&(u+="["+n.zone.ianaName+"]"),u}const j0={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},j6={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},q6={ordinal:1,hour:0,minute:0,second:0,millisecond:0},q0=["year","month","day","hour","minute","second","millisecond"],Y6=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],K6=["year","ordinal","hour","minute","second","millisecond"];function J6(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 xf(n);return e}function Y0(n){switch(n.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return J6(n)}}function X6(n){return va[n]||(ya===void 0&&(ya=dt.now()),va[n]=n.offset(ya)),va[n]}function K0(n,e){const t=ti(e.zone,dt.defaultZone);if(!t.isValid)return ce.invalid(Xo(t));const r=We.fromObject(e);let o,a;if(de(n.year))o=dt.now();else{for(const c of q0)de(n[c])&&(n[c]=j0[c]);const u=a0(n)||u0(n);if(u)return ce.invalid(u);const d=X6(t);[o,a]=ga(n,d,t)}return new ce({ts:o,zone:t,loc:r,o:a})}function J0(n,e,t){const r=de(t.round)?!0:t.round,o=(u,d)=>(u=pl(u,r||t.calendary?0:2,!0),e.loc.clone(t).relFormatter(t).format(u,d)),a=u=>t.calendary?e.hasSame(n,u)?0:e.startOf(u).diff(n.startOf(u),u).get(u):e.diff(n,u).get(u);if(t.unit)return o(a(t.unit),t.unit);for(const u of t.units){const d=a(u);if(Math.abs(d)>=1)return o(d,u)}return o(n>e?-0:0,t.units[t.units.length-1])}function X0(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 ya,va={};class ce{constructor(e){const t=e.zone||dt.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Xn("invalid input"):null)||(t.isValid?null:Xo(t));this.ts=de(e.ts)?dt.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=ni(e.o)&&!e.old?e.o:t.offset(this.ts);o=pa(this.ts,d),r=Number.isNaN(o.year)?new Xn("invalid input"):null,o=r?null:o,a=r?null:d}this._zone=t,this.loc=e.loc||We.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=o,this.o=a,this.isLuxonDateTime=!0}static now(){return new ce({})}static local(){const[e,t]=X0(arguments),[r,o,a,u,d,c,h]=t;return K0({year:r,month:o,day:a,hour:u,minute:d,second:c,millisecond:h},e)}static utc(){const[e,t]=X0(arguments),[r,o,a,u,d,c,h]=t;return e.zone=nn.utcInstance,K0({year:r,month:o,day:a,hour:u,minute:d,second:c,millisecond:h},e)}static fromJSDate(e,t={}){const r=T4(e)?e.valueOf():NaN;if(Number.isNaN(r))return ce.invalid("invalid input");const o=ti(t.zone,dt.defaultZone);return o.isValid?new ce({ts:r,zone:o,loc:We.fromObject(t)}):ce.invalid(Xo(o))}static fromMillis(e,t={}){if(ni(e))return e<-z0||e>z0?ce.invalid("Timestamp out of range"):new ce({ts:e,zone:ti(t.zone,dt.defaultZone),loc:We.fromObject(t)});throw new qt(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(ni(e))return new ce({ts:e*1e3,zone:ti(t.zone,dt.defaultZone),loc:We.fromObject(t)});throw new qt("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const r=ti(t.zone,dt.defaultZone);if(!r.isValid)return ce.invalid(Xo(r));const o=We.fromObject(t),a=da(e,Y0),{minDaysInFirstWeek:u,startOfWeek:d}=s0(a,o),c=dt.now(),h=de(t.specificOffset)?r.offset(c):t.specificOffset,g=!de(a.ordinal),$=!de(a.year),_=!de(a.month)||!de(a.day),m=$||_,O=a.weekYear||a.weekNumber;if((m||g)&&O)throw new Zi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(_&&g)throw new Zi("Can't mix ordinal dates with month/day");const P=O||a.weekday&&!m;let A,W,q=pa(c,h);P?(A=Y6,W=j6,q=oa(q,u,d)):g?(A=K6,W=q6,q=cl(q)):(A=q0,W=j0);let Z=!1;for(const he of A){const Ie=a[he];de(Ie)?Z?a[he]=W[he]:a[he]=q[he]:Z=!0}const Y=P?C4(a,u,d):g?N4(a):a0(a),j=Y||u0(a);if(j)return ce.invalid(j);const K=P?i0(a,u,d):g?o0(a):a,[R,ge]=ga(K,h,r),X=new ce({ts:R,zone:r,o:ge,loc:o});return a.weekday&&m&&e.weekday!==X.weekday?ce.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${X.toISO()}`):X.isValid?X:ce.invalid(X.invalid)}static fromISO(e,t={}){const[r,o]=v6(e);return ro(r,o,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,o]=$6(e);return ro(r,o,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,o]=b6(e);return ro(r,o,t,"HTTP",t)}static fromFormat(e,t,r={}){if(de(e)||de(t))throw new qt("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:a=null}=r,u=We.fromOpts({locale:o,numberingSystem:a,defaultToEN:!0}),[d,c,h,g]=Z6(u,e,t);return g?ce.invalid(g):ro(d,c,r,`format ${t}`,e,h)}static fromString(e,t,r={}){return ce.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,o]=N6(e);return ro(r,o,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new qt("need to specify a reason the DateTime is invalid");const r=e instanceof Xn?e:new Xn(e,t);if(dt.throwOnInvalid)throw new Qm(r);return new ce({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const r=H0(e,We.fromObject(t));return r?r.map(o=>o?o.val:null).join(""):null}static expandFormat(e,t={}){return B0(Yt.parseFormat(e),We.fromObject(t)).map(o=>o.val).join("")}static resetCache(){ya=void 0,va={}}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?wl(this).weekYear:NaN}get weekNumber(){return this.isValid?wl(this).weekNumber:NaN}get weekday(){return this.isValid?wl(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?_l(this).weekday:NaN}get localWeekNumber(){return this.isValid?_l(this).weekNumber:NaN}get localWeekYear(){return this.isValid?_l(this).weekYear:NaN}get ordinal(){return this.isValid?cl(this.c).ordinal:NaN}get monthShort(){return this.isValid?fa.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?fa.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?fa.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?fa.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=ua(this.c),o=this.zone.offset(r-e),a=this.zone.offset(r+e),u=this.zone.offset(r-o*t),d=this.zone.offset(r-a*t);if(u===d)return[this];const c=r-u*t,h=r-d*t,g=pa(c,u),$=pa(h,d);return g.hour===$.hour&&g.minute===$.minute&&g.second===$.second&&g.millisecond===$.millisecond?[Ci(this,{ts:c}),Ci(this,{ts:h})]:[this]}get isInLeapYear(){return jo(this.year)}get daysInMonth(){return aa(this.year,this.month)}get daysInYear(){return this.isValid?Yi(this.year):NaN}get weeksInWeekYear(){return this.isValid?qo(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?qo(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:o}=Yt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:o}}toUTC(e=0,t={}){return this.setZone(nn.instance(e),t)}toLocal(){return this.setZone(dt.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if(e=ti(e,dt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let o=this.ts;if(t||r){const a=e.offset(this.ts),u=this.toObject();[o]=ga(u,a,e)}return Ci(this,{ts:o,zone:e})}else return ce.invalid(Xo(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const o=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return Ci(this,{loc:o})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=da(e,Y0),{minDaysInFirstWeek:r,startOfWeek:o}=s0(t,this.loc),a=!de(t.weekYear)||!de(t.weekNumber)||!de(t.weekday),u=!de(t.ordinal),d=!de(t.year),c=!de(t.month)||!de(t.day),h=d||c,g=t.weekYear||t.weekNumber;if((h||u)&&g)throw new Zi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&u)throw new Zi("Can't mix ordinal dates with month/day");let $;a?$=i0(C(C({},oa(this.c,r,o)),t),r,o):de(t.ordinal)?($=C(C({},this.toObject()),t),de(t.day)&&($.day=Math.min(aa($.year,$.month),$.day))):$=o0(C(C({},cl(this.c)),t));const[_,m]=ga($,this.o,this.zone);return Ci(this,{ts:_,o:m})}plus(e){if(!this.isValid)return this;const t=Pe.fromDurationLike(e);return Ci(this,G0(this,t))}minus(e){if(!this.isValid)return this;const t=Pe.fromDurationLike(e).negate();return Ci(this,G0(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const r={},o=Pe.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:u}=this;uthis.valueOf(),d=u?this:e,c=u?e:this,h=D6(d,c,a,o);return u?h.negate():h}diffNow(e="milliseconds",t={}){return this.diff(ce.now(),e,t)}until(e){return this.isValid?ct.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||ce.fromObject({},{zone:this.zone}),r=e.padding?thist.valueOf(),Math.min)}static max(...e){if(!e.every(ce.isDateTime))throw new qt("max requires all arguments be DateTimes");return c0(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:o=null,numberingSystem:a=null}=r,u=We.fromOpts({locale:o,numberingSystem:a,defaultToEN:!0});return U0(u,e,t)}static fromStringExplain(e,t,r={}){return ce.fromFormatExplain(e,t,r)}static buildFormatParser(e,t={}){const{locale:r=null,numberingSystem:o=null}=t,a=We.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0});return new W0(a,e)}static fromFormatParser(e,t,r={}){if(de(e)||de(t))throw new qt("fromFormatParser requires an input string and a format parser");const{locale:o=null,numberingSystem:a=null}=r,u=We.fromOpts({locale:o,numberingSystem:a,defaultToEN:!0});if(!u.equals(t.locale))throw new qt(`fromFormatParser called with a locale of ${u}, but the format parser was created for ${t.locale}`);const{result:d,zone:c,specificOffset:h,invalidReason:g}=t.explainFromTokens(e);return g?ce.invalid(g):ro(d,c,r,`format ${t.format}`,e,h)}static get DATE_SHORT(){return ea}static get DATE_MED(){return Ef}static get DATE_MED_WITH_WEEKDAY(){return n4}static get DATE_FULL(){return Sf}static get DATE_HUGE(){return Cf}static get TIME_SIMPLE(){return Nf}static get TIME_WITH_SECONDS(){return Of}static get TIME_WITH_SHORT_OFFSET(){return Tf}static get TIME_WITH_LONG_OFFSET(){return Af}static get TIME_24_SIMPLE(){return kf}static get TIME_24_WITH_SECONDS(){return Pf}static get TIME_24_WITH_SHORT_OFFSET(){return If}static get TIME_24_WITH_LONG_OFFSET(){return Df}static get DATETIME_SHORT(){return Ff}static get DATETIME_SHORT_WITH_SECONDS(){return Lf}static get DATETIME_MED(){return Rf}static get DATETIME_MED_WITH_SECONDS(){return Mf}static get DATETIME_MED_WITH_WEEKDAY(){return r4}static get DATETIME_FULL(){return Bf}static get DATETIME_FULL_WITH_SECONDS(){return Wf}static get DATETIME_HUGE(){return Uf}static get DATETIME_HUGE_WITH_SECONDS(){return Hf}}function Qo(n){if(ce.isDateTime(n))return n;if(n&&n.valueOf&&ni(n.valueOf()))return ce.fromJSDate(n);if(n&&typeof n=="object")return ce.fromObject(n);throw new qt(`Unknown datetime argument: ${n}, of type ${typeof n}`)}var es=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},$a={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 */$a.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.",u="Expected a function",d="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",h=500,g="__lodash_placeholder__",$=1,_=2,m=4,O=1,P=2,A=1,W=2,q=4,Z=8,Y=16,j=32,K=64,R=128,ge=256,X=512,he=30,Ie="...",Ke=800,De=16,$t=1,Et=2,ot=3,Ve=1/0,pt=9007199254740991,on=17976931348623157e292,Xe=NaN,Ge=4294967295,hn=Ge-1,Un=Ge>>>1,sn=[["ary",R],["bind",A],["bindKey",W],["curry",Z],["curryRight",Y],["flip",X],["partial",j],["partialRight",K],["rearg",ge]],at="[object Arguments]",Mt="[object Array]",ar="[object AsyncFunction]",Bt="[object Boolean]",pn="[object Date]",xn="[object DOMException]",En="[object Error]",ur="[object Function]",Sr="[object GeneratorFunction]",Wt="[object Map]",E="[object Number]",U="[object Null]",ne="[object Object]",Q="[object Promise]",ve="[object Proxy]",re="[object RegExp]",He="[object Set]",St="[object String]",Tt="[object Symbol]",zt="[object Undefined]",Ae="[object WeakMap]",lr="[object WeakSet]",Jt="[object ArrayBuffer]",Xt="[object DataView]",Cr="[object Float32Array]",Nr="[object Float64Array]",ee="[object Int8Array]",te="[object Int16Array]",Qe="[object Int32Array]",gt="[object Uint8Array]",Vt="[object Uint8ClampedArray]",Sn="[object Uint16Array]",dr="[object Uint32Array]",Fi=/\b__p \+= '';/g,Li=/\b(__p \+=) '' \+/g,Hr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qt=/&(?:amp|lt|gt|quot|#39);/g,_e=/[&<>"']/g,ie=RegExp(Qt.source),V=RegExp(_e.source),ue=/<%-([\s\S]+?)%>/g,$e=/<%([\s\S]+?)%>/g,Ee=/<%=([\s\S]+?)%>/g,mt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,At=/^\w*$/,kt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zr=/[\\^$.*+?()[\]{}|]/g,iu=RegExp(zr.source),No=/^\s+/,gn=/\s/,ou=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,su=/\{\n\/\* \[wrapped with (.+)\] \*/,N=/,? & /,I=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,M=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,Fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ut=/\w*$/,Pt=/^[-+]0x[0-9a-f]+$/i,Ct=/^0b[01]+$/i,Ze=/^\[object .+?Constructor\]$/,et=/^0o[0-7]+$/i,je=/^(?:0|[1-9]\d*)$/,Se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gt=/($^)/,Cn=/['\n\r\u2028\u2029\\]/g,cr="\\ud800-\\udfff",ec="\\u0300-\\u036f",v_="\\ufe20-\\ufe2f",$_="\\u20d0-\\u20ff",r3=ec+v_+$_,i3="\\u2700-\\u27bf",o3="a-z\\xdf-\\xf6\\xf8-\\xff",b_="\\xac\\xb1\\xd7\\xf7",w_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",__="\\u2000-\\u206f",x_=" \\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",s3="A-Z\\xc0-\\xd6\\xd8-\\xde",a3="\\ufe0e\\ufe0f",u3=b_+w_+__+x_,tc="['’]",E_="["+cr+"]",l3="["+u3+"]",au="["+r3+"]",d3="\\d+",S_="["+i3+"]",c3="["+o3+"]",f3="[^"+cr+u3+d3+i3+o3+s3+"]",nc="\\ud83c[\\udffb-\\udfff]",C_="(?:"+au+"|"+nc+")",h3="[^"+cr+"]",rc="(?:\\ud83c[\\udde6-\\uddff]){2}",ic="[\\ud800-\\udbff][\\udc00-\\udfff]",Oo="["+s3+"]",p3="\\u200d",g3="(?:"+c3+"|"+f3+")",N_="(?:"+Oo+"|"+f3+")",m3="(?:"+tc+"(?:d|ll|m|re|s|t|ve))?",y3="(?:"+tc+"(?:D|LL|M|RE|S|T|VE))?",v3=C_+"?",$3="["+a3+"]?",O_="(?:"+p3+"(?:"+[h3,rc,ic].join("|")+")"+$3+v3+")*",T_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",A_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",b3=$3+v3+O_,k_="(?:"+[S_,rc,ic].join("|")+")"+b3,P_="(?:"+[h3+au+"?",au,rc,ic,E_].join("|")+")",I_=RegExp(tc,"g"),D_=RegExp(au,"g"),oc=RegExp(nc+"(?="+nc+")|"+P_+b3,"g"),F_=RegExp([Oo+"?"+c3+"+"+m3+"(?="+[l3,Oo,"$"].join("|")+")",N_+"+"+y3+"(?="+[l3,Oo+g3,"$"].join("|")+")",Oo+"?"+g3+"+"+m3,Oo+"+"+y3,A_,T_,d3,k_].join("|"),"g"),L_=RegExp("["+p3+cr+r3+a3+"]"),R_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,M_=["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"],B_=-1,tt={};tt[Cr]=tt[Nr]=tt[ee]=tt[te]=tt[Qe]=tt[gt]=tt[Vt]=tt[Sn]=tt[dr]=!0,tt[at]=tt[Mt]=tt[Jt]=tt[Bt]=tt[Xt]=tt[pn]=tt[En]=tt[ur]=tt[Wt]=tt[E]=tt[ne]=tt[re]=tt[He]=tt[St]=tt[Ae]=!1;var Je={};Je[at]=Je[Mt]=Je[Jt]=Je[Xt]=Je[Bt]=Je[pn]=Je[Cr]=Je[Nr]=Je[ee]=Je[te]=Je[Qe]=Je[Wt]=Je[E]=Je[ne]=Je[re]=Je[He]=Je[St]=Je[Tt]=Je[gt]=Je[Vt]=Je[Sn]=Je[dr]=!0,Je[En]=Je[ur]=Je[Ae]=!1;var W_={À:"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"},U_={"&":"&","<":"<",">":">",'"':""","'":"'"},H_={"&":"&","<":"<",">":">",""":'"',"'":"'"},z_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},V_=parseFloat,G_=parseInt,w3=typeof es=="object"&&es&&es.Object===Object&&es,Z_=typeof self=="object"&&self&&self.Object===Object&&self,Zt=w3||Z_||Function("return this")(),sc=e&&!e.nodeType&&e,Ri=sc&&!0&&n&&!n.nodeType&&n,_3=Ri&&Ri.exports===sc,ac=_3&&w3.process,Hn=function(){try{var x=Ri&&Ri.require&&Ri.require("util").types;return x||ac&&ac.binding&&ac.binding("util")}catch(k){}}(),x3=Hn&&Hn.isArrayBuffer,E3=Hn&&Hn.isDate,S3=Hn&&Hn.isMap,C3=Hn&&Hn.isRegExp,N3=Hn&&Hn.isSet,O3=Hn&&Hn.isTypedArray;function Nn(x,k,T){switch(T.length){case 0:return x.call(k);case 1:return x.call(k,T[0]);case 2:return x.call(k,T[0],T[1]);case 3:return x.call(k,T[0],T[1],T[2])}return x.apply(k,T)}function j_(x,k,T,G){for(var fe=-1,Be=x==null?0:x.length;++fe-1}function uc(x,k,T){for(var G=-1,fe=x==null?0:x.length;++G-1;);return T}function L3(x,k){for(var T=x.length;T--&&To(k,x[T],0)>-1;);return T}function nx(x,k){for(var T=x.length,G=0;T--;)x[T]===k&&++G;return G}var rx=fc(W_),ix=fc(U_);function ox(x){return"\\"+z_[x]}function sx(x,k){return x==null?t:x[k]}function Ao(x){return L_.test(x)}function ax(x){return R_.test(x)}function ux(x){for(var k,T=[];!(k=x.next()).done;)T.push(k.value);return T}function mc(x){var k=-1,T=Array(x.size);return x.forEach(function(G,fe){T[++k]=[fe,G]}),T}function R3(x,k){return function(T){return x(k(T))}}function mi(x,k){for(var T=-1,G=x.length,fe=0,Be=[];++T-1}function Yx(i,s){var l=this.__data__,f=Su(l,i);return f<0?(++this.size,l.push([i,s])):l[f][1]=s,this}Vr.prototype.clear=Gx,Vr.prototype.delete=Zx,Vr.prototype.get=jx,Vr.prototype.has=qx,Vr.prototype.set=Yx;function Gr(i){var s=-1,l=i==null?0:i.length;for(this.clear();++s=s?i:s)),i}function Zn(i,s,l,f,p,v){var b,w=s&$,S=s&_,D=s&m;if(l&&(b=p?l(i,f,p,v):l(i)),b!==t)return b;if(!lt(i))return i;var F=pe(i);if(F){if(b=QE(i),!w)return mn(i,b)}else{var L=tn(i),z=L==ur||L==Sr;if(_i(i))return $g(i,w);if(L==ne||L==at||z&&!p){if(b=S||z?{}:Mg(i),!w)return S?HE(i,cE(b,i)):UE(i,Y3(b,i))}else{if(!Je[L])return p?i:{};b=eS(i,L,w)}}v||(v=new hr);var J=v.get(i);if(J)return J;v.set(i,b),hm(i)?i.forEach(function(ae){b.add(Zn(ae,s,l,ae,i,v))}):cm(i)&&i.forEach(function(ae,xe){b.set(xe,Zn(ae,s,l,xe,i,v))});var se=D?S?Hc:Uc:S?vn:Ut,ye=F?t:se(i);return zn(ye||i,function(ae,xe){ye&&(xe=ae,ae=i[xe]),Hs(b,xe,Zn(ae,s,l,xe,i,v))}),b}function fE(i){var s=Ut(i);return function(l){return K3(l,i,s)}}function K3(i,s,l){var f=l.length;if(i==null)return!f;for(i=qe(i);f--;){var p=l[f],v=s[p],b=i[p];if(b===t&&!(p in i)||!v(b))return!1}return!0}function J3(i,s,l){if(typeof i!="function")throw new Vn(u);return Ys(function(){i.apply(t,l)},s)}function zs(i,s,l,f){var p=-1,v=uu,b=!0,w=i.length,S=[],D=s.length;if(!w)return S;l&&(s=st(s,On(l))),f?(v=uc,b=!1):s.length>=o&&(v=Ls,b=!1,s=new Wi(s));e:for(;++pp?0:p+l),f=f===t||f>p?p:me(f),f<0&&(f+=p),f=l>f?0:gm(f);l0&&l(w)?s>1?jt(w,s-1,l,f,p):gi(p,w):f||(p[p.length]=w)}return p}var xc=Sg(),eg=Sg(!0);function Or(i,s){return i&&xc(i,s,Ut)}function Ec(i,s){return i&&eg(i,s,Ut)}function Nu(i,s){return pi(s,function(l){return Kr(i[l])})}function Hi(i,s){s=bi(s,i);for(var l=0,f=s.length;i!=null&&ls}function gE(i,s){return i!=null&&ze.call(i,s)}function mE(i,s){return i!=null&&s in qe(i)}function yE(i,s,l){return i>=en(s,l)&&i=120&&F.length>=120)?new Wi(b&&F):t}F=i[0];var L=-1,z=w[0];e:for(;++L-1;)w!==i&&vu.call(w,S,1),vu.call(i,S,1);return i}function cg(i,s){for(var l=i?s.length:0,f=l-1;l--;){var p=s[l];if(l==f||p!==v){var v=p;Yr(p)?vu.call(i,p,1):Dc(i,p)}}return i}function kc(i,s){return i+wu(G3()*(s-i+1))}function AE(i,s,l,f){for(var p=-1,v=Dt(bu((s-i)/(l||1)),0),b=T(v);v--;)b[f?v:++p]=i,i+=l;return b}function Pc(i,s){var l="";if(!i||s<1||s>pt)return l;do s%2&&(l+=i),s=wu(s/2),s&&(i+=i);while(s);return l}function be(i,s){return Yc(Ug(i,s,$n),i+"")}function kE(i){return q3(Uo(i))}function PE(i,s){var l=Uo(i);return Mu(l,Ui(s,0,l.length))}function Zs(i,s,l,f){if(!lt(i))return i;s=bi(s,i);for(var p=-1,v=s.length,b=v-1,w=i;w!=null&&++pp?0:p+s),l=l>p?p:l,l<0&&(l+=p),p=s>l?0:l-s>>>0,s>>>=0;for(var v=T(p);++f>>1,b=i[v];b!==null&&!An(b)&&(l?b<=s:b=o){var D=s?null:ZE(i);if(D)return du(D);b=!1,p=Ls,S=new Wi}else S=s?[]:w;e:for(;++f=f?i:jn(i,s,l)}var vg=xx||function(i){return Zt.clearTimeout(i)};function $g(i,s){if(s)return i.slice();var l=i.length,f=W3?W3(l):new i.constructor(l);return i.copy(f),f}function Mc(i){var s=new i.constructor(i.byteLength);return new mu(s).set(new mu(i)),s}function RE(i,s){var l=s?Mc(i.buffer):i.buffer;return new i.constructor(l,i.byteOffset,i.byteLength)}function ME(i){var s=new i.constructor(i.source,ut.exec(i));return s.lastIndex=i.lastIndex,s}function BE(i){return Us?qe(Us.call(i)):{}}function bg(i,s){var l=s?Mc(i.buffer):i.buffer;return new i.constructor(l,i.byteOffset,i.length)}function wg(i,s){if(i!==s){var l=i!==t,f=i===null,p=i===i,v=An(i),b=s!==t,w=s===null,S=s===s,D=An(s);if(!w&&!D&&!v&&i>s||v&&b&&S&&!w&&!D||f&&b&&S||!l&&S||!p)return 1;if(!f&&!v&&!D&&i=w)return S;var D=l[f];return S*(D=="desc"?-1:1)}}return i.index-s.index}function _g(i,s,l,f){for(var p=-1,v=i.length,b=l.length,w=-1,S=s.length,D=Dt(v-b,0),F=T(S+D),L=!f;++w1?l[p-1]:t,b=p>2?l[2]:t;for(v=i.length>3&&typeof v=="function"?(p--,v):t,b&&un(l[0],l[1],b)&&(v=p<3?t:v,p=1),s=qe(s);++f-1?p[v?s[b]:b]:t}}function Og(i){return qr(function(s){var l=s.length,f=l,p=Gn.prototype.thru;for(i&&s.reverse();f--;){var v=s[f];if(typeof v!="function")throw new Vn(u);if(p&&!b&&Lu(v)=="wrapper")var b=new Gn([],!0)}for(f=b?f:l;++f1&&Te.reverse(),F&&Sw))return!1;var D=v.get(i),F=v.get(s);if(D&&F)return D==s&&F==i;var L=-1,z=!0,J=l&P?new Wi:t;for(v.set(i,s),v.set(s,i);++L1?"& ":"")+s[f],s=s.join(l>2?", ":" "),i.replace(ou,`{ /* [wrapped with `+s+`] */ `)}function nS(i){return pe(i)||Gi(i)||!!(z3&&i&&i[z3])}function Yr(i,s){var l=typeof i;return s=s==null?pt:s,!!s&&(l=="number"||l!="symbol"&&je.test(i))&&i>-1&&i%1==0&&i0){if(++s>=Ke)return arguments[0]}else s=0;return i.apply(t,arguments)}}function Mu(i,s){var l=-1,f=i.length,p=f-1;for(s=s===t?f:s;++l1?i[s-1]:t;return l=typeof l=="function"?(i.pop(),l):t,Qg(i,l)});function em(i){var s=y(i);return s.__chain__=!0,s}function hC(i,s){return s(i),i}function Bu(i,s){return s(i)}var pC=qr(function(i){var s=i.length,l=s?i[0]:0,f=this.__wrapped__,p=function(v){return _c(v,i)};return s>1||this.__actions__.length||!(f instanceof Ce)||!Yr(l)?this.thru(p):(f=f.slice(l,+l+(s?1:0)),f.__actions__.push({func:Bu,args:[p],thisArg:t}),new Gn(f,this.__chain__).thru(function(v){return s&&!v.length&&v.push(t),v}))});function gC(){return em(this)}function mC(){return new Gn(this.value(),this.__chain__)}function yC(){this.__values__===t&&(this.__values__=pm(this.value()));var i=this.__index__>=this.__values__.length,s=i?t:this.__values__[this.__index__++];return{done:i,value:s}}function vC(){return this}function $C(i){for(var s,l=this;l instanceof Eu;){var f=jg(l);f.__index__=0,f.__values__=t,s?p.__wrapped__=f:s=f;var p=f;l=l.__wrapped__}return p.__wrapped__=i,s}function bC(){var i=this.__wrapped__;if(i instanceof Ce){var s=i;return this.__actions__.length&&(s=new Ce(this)),s=s.reverse(),s.__actions__.push({func:Bu,args:[Kc],thisArg:t}),new Gn(s,this.__chain__)}return this.thru(Kc)}function wC(){return mg(this.__wrapped__,this.__actions__)}var _C=ku(function(i,s,l){ze.call(i,l)?++i[l]:Zr(i,l,1)});function xC(i,s,l){var f=pe(i)?T3:hE;return l&&un(i,s,l)&&(s=t),f(i,oe(s,3))}function EC(i,s){var l=pe(i)?pi:Q3;return l(i,oe(s,3))}var SC=Ng(qg),CC=Ng(Yg);function NC(i,s){return jt(Wu(i,s),1)}function OC(i,s){return jt(Wu(i,s),Ve)}function TC(i,s,l){return l=l===t?1:me(l),jt(Wu(i,s),l)}function tm(i,s){var l=pe(i)?zn:vi;return l(i,oe(s,3))}function nm(i,s){var l=pe(i)?q_:X3;return l(i,oe(s,3))}var AC=ku(function(i,s,l){ze.call(i,l)?i[l].push(s):Zr(i,l,[s])});function kC(i,s,l,f){i=yn(i)?i:Uo(i),l=l&&!f?me(l):0;var p=i.length;return l<0&&(l=Dt(p+l,0)),Gu(i)?l<=p&&i.indexOf(s,l)>-1:!!p&&To(i,s,l)>-1}var PC=be(function(i,s,l){var f=-1,p=typeof s=="function",v=yn(i)?T(i.length):[];return vi(i,function(b){v[++f]=p?Nn(s,b,l):Vs(b,s,l)}),v}),IC=ku(function(i,s,l){Zr(i,l,s)});function Wu(i,s){var l=pe(i)?st:og;return l(i,oe(s,3))}function DC(i,s,l,f){return i==null?[]:(pe(s)||(s=s==null?[]:[s]),l=f?t:l,pe(l)||(l=l==null?[]:[l]),lg(i,s,l))}var FC=ku(function(i,s,l){i[l?0:1].push(s)},function(){return[[],[]]});function LC(i,s,l){var f=pe(i)?lc:I3,p=arguments.length<3;return f(i,oe(s,4),l,p,vi)}function RC(i,s,l){var f=pe(i)?Y_:I3,p=arguments.length<3;return f(i,oe(s,4),l,p,X3)}function MC(i,s){var l=pe(i)?pi:Q3;return l(i,zu(oe(s,3)))}function BC(i){var s=pe(i)?q3:kE;return s(i)}function WC(i,s,l){(l?un(i,s,l):s===t)?s=1:s=me(s);var f=pe(i)?uE:PE;return f(i,s)}function UC(i){var s=pe(i)?lE:DE;return s(i)}function HC(i){if(i==null)return 0;if(yn(i))return Gu(i)?ko(i):i.length;var s=tn(i);return s==Wt||s==He?i.size:Oc(i).length}function zC(i,s,l){var f=pe(i)?dc:FE;return l&&un(i,s,l)&&(s=t),f(i,oe(s,3))}var VC=be(function(i,s){if(i==null)return[];var l=s.length;return l>1&&un(i,s[0],s[1])?s=[]:l>2&&un(s[0],s[1],s[2])&&(s=[s[0]]),lg(i,jt(s,1),[])}),Uu=Ex||function(){return Zt.Date.now()};function GC(i,s){if(typeof s!="function")throw new Vn(u);return i=me(i),function(){if(--i<1)return s.apply(this,arguments)}}function rm(i,s,l){return s=l?t:s,s=i&&s==null?i.length:s,jr(i,R,t,t,t,t,s)}function im(i,s){var l;if(typeof s!="function")throw new Vn(u);return i=me(i),function(){return--i>0&&(l=s.apply(this,arguments)),i<=1&&(s=t),l}}var Xc=be(function(i,s,l){var f=A;if(l.length){var p=mi(l,Bo(Xc));f|=j}return jr(i,f,s,l,p)}),om=be(function(i,s,l){var f=A|W;if(l.length){var p=mi(l,Bo(om));f|=j}return jr(s,f,i,l,p)});function sm(i,s,l){s=l?t:s;var f=jr(i,Z,t,t,t,t,t,s);return f.placeholder=sm.placeholder,f}function am(i,s,l){s=l?t:s;var f=jr(i,Y,t,t,t,t,t,s);return f.placeholder=am.placeholder,f}function um(i,s,l){var f,p,v,b,w,S,D=0,F=!1,L=!1,z=!0;if(typeof i!="function")throw new Vn(u);s=Yn(s)||0,lt(l)&&(F=!!l.leading,L="maxWait"in l,v=L?Dt(Yn(l.maxWait)||0,s):v,z="trailing"in l?!!l.trailing:z);function J(wt){var gr=f,Xr=p;return f=p=t,D=wt,b=i.apply(Xr,gr),b}function se(wt){return D=wt,w=Ys(xe,s),F?J(wt):b}function ye(wt){var gr=wt-S,Xr=wt-D,Nm=s-gr;return L?en(Nm,v-Xr):Nm}function ae(wt){var gr=wt-S,Xr=wt-D;return S===t||gr>=s||gr<0||L&&Xr>=v}function xe(){var wt=Uu();if(ae(wt))return Te(wt);w=Ys(xe,ye(wt))}function Te(wt){return w=t,z&&f?J(wt):(f=p=t,b)}function kn(){w!==t&&vg(w),D=0,f=S=p=w=t}function ln(){return w===t?b:Te(Uu())}function Pn(){var wt=Uu(),gr=ae(wt);if(f=arguments,p=this,S=wt,gr){if(w===t)return se(S);if(L)return vg(w),w=Ys(xe,s),J(S)}return w===t&&(w=Ys(xe,s)),b}return Pn.cancel=kn,Pn.flush=ln,Pn}var ZC=be(function(i,s){return J3(i,1,s)}),jC=be(function(i,s,l){return J3(i,Yn(s)||0,l)});function qC(i){return jr(i,X)}function Hu(i,s){if(typeof i!="function"||s!=null&&typeof s!="function")throw new Vn(u);var l=function(){var f=arguments,p=s?s.apply(this,f):f[0],v=l.cache;if(v.has(p))return v.get(p);var b=i.apply(this,f);return l.cache=v.set(p,b)||v,b};return l.cache=new(Hu.Cache||Gr),l}Hu.Cache=Gr;function zu(i){if(typeof i!="function")throw new Vn(u);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 YC(i){return im(2,i)}var KC=LE(function(i,s){s=s.length==1&&pe(s[0])?st(s[0],On(oe())):st(jt(s,1),On(oe()));var l=s.length;return be(function(f){for(var p=-1,v=en(f.length,l);++p=s}),Gi=ng(function(){return arguments}())?ng:function(i){return yt(i)&&ze.call(i,"callee")&&!H3.call(i,"callee")},pe=T.isArray,cN=x3?On(x3):$E;function yn(i){return i!=null&&Vu(i.length)&&!Kr(i)}function bt(i){return yt(i)&&yn(i)}function fN(i){return i===!0||i===!1||yt(i)&&an(i)==Bt}var _i=Cx||cf,hN=E3?On(E3):bE;function pN(i){return yt(i)&&i.nodeType===1&&!Ks(i)}function gN(i){if(i==null)return!0;if(yn(i)&&(pe(i)||typeof i=="string"||typeof i.splice=="function"||_i(i)||Wo(i)||Gi(i)))return!i.length;var s=tn(i);if(s==Wt||s==He)return!i.size;if(qs(i))return!Oc(i).length;for(var l in i)if(ze.call(i,l))return!1;return!0}function mN(i,s){return Gs(i,s)}function yN(i,s,l){l=typeof l=="function"?l:t;var f=l?l(i,s):t;return f===t?Gs(i,s,t,l):!!f}function ef(i){if(!yt(i))return!1;var s=an(i);return s==En||s==xn||typeof i.message=="string"&&typeof i.name=="string"&&!Ks(i)}function vN(i){return typeof i=="number"&&V3(i)}function Kr(i){if(!lt(i))return!1;var s=an(i);return s==ur||s==Sr||s==ar||s==ve}function dm(i){return typeof i=="number"&&i==me(i)}function Vu(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=pt}function lt(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}function yt(i){return i!=null&&typeof i=="object"}var cm=S3?On(S3):_E;function $N(i,s){return i===s||Nc(i,s,Vc(s))}function bN(i,s,l){return l=typeof l=="function"?l:t,Nc(i,s,Vc(s),l)}function wN(i){return fm(i)&&i!=+i}function _N(i){if(oS(i))throw new fe(a);return rg(i)}function xN(i){return i===null}function EN(i){return i==null}function fm(i){return typeof i=="number"||yt(i)&&an(i)==E}function Ks(i){if(!yt(i)||an(i)!=ne)return!1;var s=yu(i);if(s===null)return!0;var l=ze.call(s,"constructor")&&s.constructor;return typeof l=="function"&&l instanceof l&&hu.call(l)==bx}var tf=C3?On(C3):xE;function SN(i){return dm(i)&&i>=-pt&&i<=pt}var hm=N3?On(N3):EE;function Gu(i){return typeof i=="string"||!pe(i)&&yt(i)&&an(i)==St}function An(i){return typeof i=="symbol"||yt(i)&&an(i)==Tt}var Wo=O3?On(O3):SE;function CN(i){return i===t}function NN(i){return yt(i)&&tn(i)==Ae}function ON(i){return yt(i)&&an(i)==lr}var TN=Fu(Tc),AN=Fu(function(i,s){return i<=s});function pm(i){if(!i)return[];if(yn(i))return Gu(i)?fr(i):mn(i);if(Rs&&i[Rs])return ux(i[Rs]());var s=tn(i),l=s==Wt?mc:s==He?du:Uo;return l(i)}function Jr(i){if(!i)return i===0?i:0;if(i=Yn(i),i===Ve||i===-Ve){var s=i<0?-1:1;return s*on}return i===i?i:0}function me(i){var s=Jr(i),l=s%1;return s===s?l?s-l:s:0}function gm(i){return i?Ui(me(i),0,Ge):0}function Yn(i){if(typeof i=="number")return i;if(An(i))return Xe;if(lt(i)){var s=typeof i.valueOf=="function"?i.valueOf():i;i=lt(s)?s+"":s}if(typeof i!="string")return i===0?i:+i;i=D3(i);var l=Ct.test(i);return l||et.test(i)?G_(i.slice(2),l?2:8):Pt.test(i)?Xe:+i}function mm(i){return Tr(i,vn(i))}function kN(i){return i?Ui(me(i),-pt,pt):i===0?i:0}function Ue(i){return i==null?"":Tn(i)}var PN=Ro(function(i,s){if(qs(s)||yn(s)){Tr(s,Ut(s),i);return}for(var l in s)ze.call(s,l)&&Hs(i,l,s[l])}),ym=Ro(function(i,s){Tr(s,vn(s),i)}),Zu=Ro(function(i,s,l,f){Tr(s,vn(s),i,f)}),IN=Ro(function(i,s,l,f){Tr(s,Ut(s),i,f)}),DN=qr(_c);function FN(i,s){var l=Lo(i);return s==null?l:Y3(l,s)}var LN=be(function(i,s){i=qe(i);var l=-1,f=s.length,p=f>2?s[2]:t;for(p&&un(s[0],s[1],p)&&(f=1);++l1),v}),Tr(i,Hc(i),l),f&&(l=Zn(l,$|_|m,jE));for(var p=s.length;p--;)Dc(l,s[p]);return l});function eO(i,s){return $m(i,zu(oe(s)))}var tO=qr(function(i,s){return i==null?{}:OE(i,s)});function $m(i,s){if(i==null)return{};var l=st(Hc(i),function(f){return[f]});return s=oe(s),dg(i,l,function(f,p){return s(f,p[0])})}function nO(i,s,l){s=bi(s,i);var f=-1,p=s.length;for(p||(p=1,i=t);++fs){var f=i;i=s,s=f}if(l||i%1||s%1){var p=G3();return en(i+p*(s-i+V_("1e-"+((p+"").length-1))),s)}return kc(i,s)}var hO=Mo(function(i,s,l){return s=s.toLowerCase(),i+(l?_m(s):s)});function _m(i){return of(Ue(i).toLowerCase())}function xm(i){return i=Ue(i),i&&i.replace(Se,rx).replace(D_,"")}function pO(i,s,l){i=Ue(i),s=Tn(s);var f=i.length;l=l===t?f:Ui(me(l),0,f);var p=l;return l-=s.length,l>=0&&i.slice(l,p)==s}function gO(i){return i=Ue(i),i&&V.test(i)?i.replace(_e,ix):i}function mO(i){return i=Ue(i),i&&iu.test(i)?i.replace(zr,"\\$&"):i}var yO=Mo(function(i,s,l){return i+(l?"-":"")+s.toLowerCase()}),vO=Mo(function(i,s,l){return i+(l?" ":"")+s.toLowerCase()}),$O=Cg("toLowerCase");function bO(i,s,l){i=Ue(i),s=me(s);var f=s?ko(i):0;if(!s||f>=s)return i;var p=(s-f)/2;return Du(wu(p),l)+i+Du(bu(p),l)}function wO(i,s,l){i=Ue(i),s=me(s);var f=s?ko(i):0;return s&&f>>0,l?(i=Ue(i),i&&(typeof s=="string"||s!=null&&!tf(s))&&(s=Tn(s),!s&&Ao(i))?wi(fr(i),0,l):i.split(s,l)):[]}var OO=Mo(function(i,s,l){return i+(l?" ":"")+of(s)});function TO(i,s,l){return i=Ue(i),l=l==null?0:Ui(me(l),0,i.length),s=Tn(s),i.slice(l,l+s.length)==s}function AO(i,s,l){var f=y.templateSettings;l&&un(i,s,l)&&(s=t),i=Ue(i),s=Zu({},s,f,Ig);var p=Zu({},s.imports,f.imports,Ig),v=Ut(p),b=gc(p,v),w,S,D=0,F=s.interpolate||Gt,L="__p += '",z=yc((s.escape||Gt).source+"|"+F.source+"|"+(F===Ee?Fe:Gt).source+"|"+(s.evaluate||Gt).source+"|$","g"),J="//# sourceURL="+(ze.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++B_+"]")+` `;i.replace(z,function(ae,xe,Te,kn,ln,Pn){return Te||(Te=kn),L+=i.slice(D,Pn).replace(Cn,ox),xe&&(w=!0,L+=`' + __e(`+xe+`) + '`),ln&&(S=!0,L+=`'; `+ln+`; __p += '`),Te&&(L+=`' + ((__t = (`+Te+`)) == null ? '' : __t) + '`),D=Pn+ae.length,ae}),L+=`'; `;var se=ze.call(s,"variable")&&s.variable;if(!se)L=`with (obj) { `+L+` } `;else if(M.test(se))throw new fe(d);L=(S?L.replace(Fi,""):L).replace(Li,"$1").replace(Hr,"$1;"),L="function("+(se||"obj")+`) { `+(se?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(w?", __e = _.escape":"")+(S?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+L+`return __p }`;var ye=Sm(function(){return Be(v,J+"return "+L).apply(t,b)});if(ye.source=L,ef(ye))throw ye;return ye}function kO(i){return Ue(i).toLowerCase()}function PO(i){return Ue(i).toUpperCase()}function IO(i,s,l){if(i=Ue(i),i&&(l||s===t))return D3(i);if(!i||!(s=Tn(s)))return i;var f=fr(i),p=fr(s),v=F3(f,p),b=L3(f,p)+1;return wi(f,v,b).join("")}function DO(i,s,l){if(i=Ue(i),i&&(l||s===t))return i.slice(0,M3(i)+1);if(!i||!(s=Tn(s)))return i;var f=fr(i),p=L3(f,fr(s))+1;return wi(f,0,p).join("")}function FO(i,s,l){if(i=Ue(i),i&&(l||s===t))return i.replace(No,"");if(!i||!(s=Tn(s)))return i;var f=fr(i),p=F3(f,fr(s));return wi(f,p).join("")}function LO(i,s){var l=he,f=Ie;if(lt(s)){var p="separator"in s?s.separator:p;l="length"in s?me(s.length):l,f="omission"in s?Tn(s.omission):f}i=Ue(i);var v=i.length;if(Ao(i)){var b=fr(i);v=b.length}if(l>=v)return i;var w=l-ko(f);if(w<1)return f;var S=b?wi(b,0,w).join(""):i.slice(0,w);if(p===t)return S+f;if(b&&(w+=S.length-w),tf(p)){if(i.slice(w).search(p)){var D,F=S;for(p.global||(p=yc(p.source,Ue(ut.exec(p))+"g")),p.lastIndex=0;D=p.exec(F);)var L=D.index;S=S.slice(0,L===t?w:L)}}else if(i.indexOf(Tn(p),w)!=w){var z=S.lastIndexOf(p);z>-1&&(S=S.slice(0,z))}return S+f}function RO(i){return i=Ue(i),i&&ie.test(i)?i.replace(Qt,fx):i}var MO=Mo(function(i,s,l){return i+(l?" ":"")+s.toUpperCase()}),of=Cg("toUpperCase");function Em(i,s,l){return i=Ue(i),s=l?t:s,s===t?ax(i)?gx(i):X_(i):i.match(s)||[]}var Sm=be(function(i,s){try{return Nn(i,t,s)}catch(l){return ef(l)?l:new fe(l)}}),BO=qr(function(i,s){return zn(s,function(l){l=Ar(l),Zr(i,l,Xc(i[l],i))}),i});function WO(i){var s=i==null?0:i.length,l=oe();return i=s?st(i,function(f){if(typeof f[1]!="function")throw new Vn(u);return[l(f[0]),f[1]]}):[],be(function(f){for(var p=-1;++ppt)return[];var l=Ge,f=en(i,Ge);s=oe(s),i-=Ge;for(var p=pc(f,s);++l0||s<0)?new Ce(l):(i<0?l=l.takeRight(-i):i&&(l=l.drop(i)),s!==t&&(s=me(s),l=s<0?l.dropRight(-s):l.take(s-i)),l)},Ce.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Ce.prototype.toArray=function(){return this.take(Ge)},Or(Ce.prototype,function(i,s){var l=/^(?:filter|find|map|reject)|While$/.test(s),f=/^(?:head|last)$/.test(s),p=y[f?"take"+(s=="last"?"Right":""):s],v=f||/^find/.test(s);p&&(y.prototype[s]=function(){var b=this.__wrapped__,w=f?[1]:arguments,S=b instanceof Ce,D=w[0],F=S||pe(b),L=function(xe){var Te=p.apply(y,gi([xe],w));return f&&z?Te[0]:Te};F&&l&&typeof D=="function"&&D.length!=1&&(S=F=!1);var z=this.__chain__,J=!!this.__actions__.length,se=v&&!z,ye=S&&!J;if(!v&&F){b=ye?b:new Ce(this);var ae=i.apply(b,w);return ae.__actions__.push({func:Bu,args:[L],thisArg:t}),new Gn(ae,z)}return se&&ye?i.apply(this,w):(ae=this.thru(L),se?f?ae.value()[0]:ae.value():ae)})}),zn(["pop","push","shift","sort","splice","unshift"],function(i){var s=cu[i],l=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",f=/^(?:pop|shift)$/.test(i);y.prototype[i]=function(){var p=arguments;if(f&&!this.__chain__){var v=this.value();return s.apply(pe(v)?v:[],p)}return this[l](function(b){return s.apply(pe(b)?b:[],p)})}}),Or(Ce.prototype,function(i,s){var l=y[s];if(l){var f=l.name+"";ze.call(Fo,f)||(Fo[f]=[]),Fo[f].push({name:s,func:l})}}),Fo[Pu(t,W).name]=[{name:"wrapper",func:t}],Ce.prototype.clone=Rx,Ce.prototype.reverse=Mx,Ce.prototype.value=Bx,y.prototype.at=pC,y.prototype.chain=gC,y.prototype.commit=mC,y.prototype.next=yC,y.prototype.plant=$C,y.prototype.reverse=bC,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=wC,y.prototype.first=y.prototype.head,Rs&&(y.prototype[Rs]=vC),y},Po=mx();Ri?((Ri.exports=Po)._=Po,sc._=Po):Zt._=Po}).call(es)}($a,$a.exports);var Q6=$a.exports,e5=24,Q0=4,t5=60,n5=function(n,e){return n===void 0&&(n=e5),e===void 0&&(e=Q0),Array.from(Array(n).keys()).map(function(t){var r=r5();return Array.from(Array(e).keys()).map(function(o){var a=o*r,u=a===0?"0":"";return"".concat(t,":").concat(o*r).concat(u)})})},r5=function(n,e){return n===void 0&&(n=t5),e===void 0&&(e=Q0),n/e},i5=function(){for(var n=[],e=0;et===n.value&&r[0]===n.selection[0]&&r[1]===n.selection[1])}function l5({value:n,selection:e},t,r){const[o,a]=e,u=typeof r=="function"?r({value:n,selection:e}):r;return{value:n,selection:u==="replace"?[o,Math.max(o+t.length,a)]:[o,a]}}function ba(n){return typeof n=="string"}function th(n,e,t,r){let o="";for(let a=e.length;a{const o=e[r]||"";return ba(o)?t===o:t.match(o)}):e.test(n)}function d5(n,e,t){let r=null,o=null;const a=Array.from(n.value).reduce((d,c,h)=>{const g=th(e,d,c,t),$=d+g,_=e[$.length]||"";return r===null&&h>=n.selection[0]&&(r=$.length),o===null&&h>=n.selection[1]&&(o=$.length),ba(_)?$+_:c.match(_)?$+c:$},""),u=th(e,a,"",t);return{value:nh(a+u,e)?a+u:a,selection:[r!=null?r:a.length,o!=null?o:a.length]}}function c5({value:n,selection:e},t){const[r,o]=e;let a=r,u=o;const d=Array.from(n).reduce((c,h,g)=>{const $=c+h;return r===g&&(a=c.length),o===g&&(u=c.length),$.match(t)?$:c},"");return{value:d,selection:[Math.min(a,d.length),Math.min(u,d.length)]}}function wa(n,e,t=null){if(nh(n.value,e))return n;const{value:r,selection:o}=Array.isArray(e)?d5(n,e,t):c5(n,e);return{selection:o,value:Array.isArray(e)?r.slice(0,e.length):r}}function rh(n,e){if(!Array.isArray(e))return n;const[t,r]=n.selection,o=[],a=Array.from(n.value).reduce((u,d,c)=>{const h=e[c]||"";return c===t&&o.push(u.length),c===r&&o.push(u.length),ba(h)&&h===d?u:u+d},"");return o.length<2&&o.push(...new Array(2-o.length).fill(a.length)),{value:a,selection:[o[0],o[1]]}}class f5{constructor(e,t){this.initialElementState=e,this.maskOptions=t,this.value="",this.selection=[0,0];const{value:r,selection:o}=wa(this.initialElementState,this.getMaskExpression(this.initialElementState));this.value=r,this.selection=o}addCharacters([e,t],r){const{value:o,maskOptions:a}=this,u=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=rh(d,u),[h,g]=l5(c,r,a.overwriteMode).selection,$=c.value.slice(0,h)+r,_=$.length,m=wa({value:$+c.value.slice(g),selection:[_,_]},u,d);if(o.slice(0,e)===wa({value:$,selection:[_,_]},u,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]},u=rh(a,o),[d,c]=u.selection,h=u.value.slice(0,d)+u.value.slice(c),g=wa({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 El(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 ih(n=[]){return(e,...t)=>n.reduce((r,o)=>Object.assign(Object.assign({},r),o(r,...t)),e)}function oh(n,e){const t=Object.assign(Object.assign({},ts),e),r=ih(t.preprocessors),o=ih(t.postprocessors),a=typeof n=="string"?{value:n,selection:[0,0]}:n,{elementState:u}=r({elementState:a,data:""},"validation"),d=new f5(u,t),{value:c,selection:h}=o(d,a);return typeof n=="string"?c:{value:c,selection:h}}function Ni(n,e,t){const r=Math.min(Number(t),Math.max(Number(e),Number(n)));return n instanceof Date?new Date(r):r}function h5(n){return n.replaceAll(/\W/g,"").length}const sh=n=>{var e,t,r,o,a,u;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:(u=(a=n.match(/y/g))===null||a===void 0?void 0:a.length)!==null&&u!==void 0?u:0}};function p5(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 g5(n,e){return n.length!/^0+$/.exec(t))}function ah(n,e,t){const r=h5(e);return n.replace(t,"").match(new RegExp(`(\\D*\\d[^\\d\\s]*){1,${r}}`,"g"))||[]}function Sl(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,u])=>!!u).sort(([a],[u])=>e.toLowerCase().indexOf(a.slice(0,1))>e.toLowerCase().indexOf(u.slice(0,1))?1:-1))}function m5(n,e){var t,r,o,a,u,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((u=void 0)!==null&&u!==void 0?u:"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 uh=", ";function ns({day:n,month:e,year:t,hours:r,minutes:o,seconds:a,milliseconds:u},{dateMode:d,dateTimeSeparator:c=uh,timeMode:h}){var g;const $=((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,$!=null?$:"").replaceAll(/H+/g,r!=null?r:"").replaceAll("MSS",u!=null?u:"").replaceAll(/M+/g,o!=null?o:"").replaceAll(/S+/g,a!=null?a:"").replaceAll(/^\D+/g,"").replaceAll(/\D+$/g,"")}const lh={day:31,month:12,year:9999},y5=[".",",","б","ю"],v5=new Date("0001-01-01T00:00"),$5=new Date("9999-12-31T23:59:59.999"),b5=" ",w5="​",dh="–",ch="—",_a="-",Cl="−",fh="ー",_5=[":","."];function x5({dateString:n,dateModeTemplate:e,dateSegmentsSeparator:t,offset:r,selection:[o,a]}){const u=Sl(n,e),d=Object.entries(u),c={};for(const[$,_]of d){const m=ns(c,{dateMode:e}),O=lh[$],P=m.length&&t.length,A=r+m.length+P+sh(e)[$],W=A>=o&&A===a;if(W&&Number(_)>Number(O))return{validatedDateString:"",updatedSelection:[o,a]};if(W&&Number(_)<1)return{validatedDateString:"",updatedSelection:[o,a]};c[$]=_}const h=ns(c,{dateMode:e}),g=h.length-n.length;return{validatedDateString:h,updatedSelection:[o+g,a+g]}}function io(n){return n}function E5(){}const hh=/[\\^$.*+?()[\]{}|]/g,S5=new RegExp(hh.source);function Kt(n){return n&&S5.test(n)?n.replaceAll(hh,String.raw`\$&`):n}function er(n,{prefix:e,postfix:t}){var r,o;const a=new RegExp(`^${Kt(e)}`),u=new RegExp(`${Kt(t)}$`),[d=""]=(r=n.match(a))!==null&&r!==void 0?r:[],[c=""]=(o=n.match(u))!==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 C5(n,e){let t="";for(let r=0;rString.fromCharCode(e.charCodeAt(0)-65248))}function O5({dateModeTemplate:n,dateSegmentSeparator:e,splitFn:t,uniteFn:r}){return({value:o,selection:a})=>{var u;const[d,c]=a,{dateStrings:h,restPart:g=""}=t(o),$=[];let _=0;h.forEach(O=>{const P=Sl(O,n),W=Object.entries(P).reduce((q,[Z,Y])=>{const{validatedSegmentValue:j,prefixedZeroesCount:K}=Nl(Y,`${lh[Z]}`);return _+=K,Object.assign(Object.assign({},q),{[Z]:j})},{});$.push(ns(W,{dateMode:n}))});const m=r($,o)+(!((u=h[h.length-1])===null||u===void 0)&&u.endsWith(e)?e:"")+g;return _&&m.slice(c+_,c+_+e.length)===e&&(_+=e.length),{selection:[d+_,c+_],value:m}}}function gh(){return({elementState:n,data:e})=>{const{value:t,selection:r}=n;return{elementState:{selection:r,value:ph(t)},data:ph(e)}}}new RegExp(`[${_5.map(Kt).join("")}]$`);function T5(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 A5="1972";function k5({dateModeTemplate:n,min:e=v5,max:t=$5,rangeSeparator:r="",dateSegmentSeparator:o="."}){return({value:a,selection:u})=>{const d=r&&a.endsWith(r),c=ah(a,n,r);let h="";for(const g of c){h+=h?r:"";const $=Sl(g,n);if(!g5(g,n)){const O=T5($,n),P=ns(O,{dateMode:n}),A=g.endsWith(o)?o:"";h+=P+A;continue}const _=m5(Object.assign({year:A5},$)),m=Ni(_,e,t);h+=ns(p5(m),{dateMode:n})}return{selection:u,value:h+(d?r:"")}}}function P5({dateModeTemplate:n,dateSegmentsSeparator:e,rangeSeparator:t="",dateTimeSeparator:r=uh}){return({elementState:o,data:a})=>{const u=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%u.length!==0)return{elementState:o,data:a};const h=c.reduce((g,$,_)=>{var m;const O=(m=u[_%u.length])!==null&&m!==void 0?m:"",P=Math.trunc(_/u.length),A=_%u.length===u.length-1;return g[P]||(g[P]=""),g[P]+=A?$:`${$.padStart(O.length,"0")}${e}`,g},[]);return{elementState:o,data:d?`${h[0]}${a.slice(a.indexOf(r))}`:h.join(t)}}}function I5(n){const e=new RegExp(`${Kt(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,""),u=o.selection[1]>a.length,d=C5(a,t);return{selection:r,value:Array.from(n).reverse().reduce((c,h,g)=>{const $=c.length-1-g,_=d[$]===h&&u;return c[$]!==h||_?c.slice(0,$+1)+h+c.slice($+1):c},t)}}:io}function mh(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,u=Array.from(n).reduce((c,h,g)=>c[g]===h?c:c.slice(0,g)+h+c.slice(g),e),d=u.length-e.length;return{selection:[o+d,a+d],value:u}}:io}function D5({dateModeTemplate:n,dateSegmentsSeparator:e,rangeSeparator:t=""}){return({elementState:r,data:o})=>{const{value:a,selection:u}=r;if(o===e)return{elementState:r,data:u[0]===a.length?o:""};const d=o.replaceAll(new RegExp(`[^\\d${Kt(e)}${t}]`,"g"),"");if(!d)return{elementState:r,data:""};const[c,h]=u;let g=h+o.length;const $=a.slice(0,c)+d+a.slice(g),_=ah($,n,t);let m="";const O=!!t&&$.includes(t);for(const A of _){const{validatedDateString:W,updatedSelection:q}=x5({dateString:A,dateModeTemplate:n,dateSegmentsSeparator:e,offset:m.length,selection:[c,g]});if(A&&!W)return{elementState:r,data:""};g=q[1],m+=O&&!m?W+t:W}const P=m.slice(c,g);return{elementState:{selection:u,value:m.slice(0,c)+P.split(e).map(A=>"0".repeat(A.length)).join(e)+m.slice(g)},data:P}}}function Ol(n,e,t){return(r,o)=>{const a=()=>e(r,o);return r.addEventListener(n,a,t),()=>r.removeEventListener(n,a,t)}}function F5(n){return(e,t)=>{const r=e.ownerDocument;let o=0;const a=()=>o++,u=()=>{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",u,{passive:!0}),()=>{r.removeEventListener("selectionchange",d),e.removeEventListener("focus",d),e.removeEventListener("mousedown",a),r.removeEventListener("mouseup",u)}}}function L5(n){return F5(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,[u,d]=n(e.value,[o,a]);(u>o||d{const{value:t,selection:r}=n;if(!t||M5(t,r))return{elementState:n};const[o,a]=r,u=t.slice(o,a).replaceAll(/\d/g,"0"),d=t.slice(0,o)+u+t.slice(a);return u.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 M5(n,[e,t]){return t===n.length}function yh({mode:n,separator:e=".",max:t,min:r}){const o=n.split("/").join(e);return Object.assign(Object.assign({},ts),{mask:Array.from(o).map(a=>e.includes(a)?a:/\d/),overwriteMode:"replace",preprocessors:[gh(),R5(),P5({dateModeTemplate:o,dateSegmentsSeparator:e}),D5({dateModeTemplate:o,dateSegmentsSeparator:e})],postprocessors:[O5({dateModeTemplate:o,dateSegmentSeparator:e,splitFn:a=>({dateStrings:[a]}),uniteFn:([a=""])=>a}),k5({min:r,max:t,dateModeTemplate:o,dateSegmentSeparator:e})]})}function B5({prefix:n,postfix:e}){return({elementState:t,data:r})=>{const{cleanValue:o}=er(r,{prefix:n,postfix:e});return{elementState:t,data:o}}}function vh({decimalSeparator:n,isNegativeAllowed:e,maximumFractionDigits:t,thousandSeparator:r,prefix:o,postfix:a,decimalPseudoSeparators:u=[],pseudoMinuses:d=[],minusSign:c}){const h=$h(o),g=String.raw`\d`,$=e?`[${c}${d.map(A=>`\\${A}`).join("")}]?`:"",_=r?`[${g}${Kt(r).replaceAll(/\s/g,String.raw`\s`)}]*`:`[${g}]*`,m=Number.isFinite(t)?t:"",O=t>0?`([${Kt(n)}${u.map(Kt).join("")}]${g}{0,${m}})?`:"",P=$h(a);return new RegExp(`^${h}${$}${_}${O}${P}$`)}function $h(n){return n?`${n.split("").map(e=>`${Kt(e)}?`).join("")}`:""}function Tl(n,e="."){const t=!!new RegExp(`^\\D*[${Cl}\\${_a}${dh}${ch}${fh}]`).exec(n),r=Kt(e),o=n.replaceAll(new RegExp(`${r}(?!\\d)`,"g"),"").replaceAll(new RegExp(`[^\\d${r}]`,"g"),"").replace(e,e&&".");return o?+`${t?_a:""}${o}`:NaN}function W5(n){var e;const t=String(n),[r="",o]=t.split("e-");let a=t;if(o){const[,u]=r.split("."),d=Number(o)+((e=u==null?void 0:u.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=Kt(t),[,u="",d=""]=new RegExp(`^(?:[^\\d${a}])?(${a})?(.*)`).exec(r)||[];return{minus:u,integerPart:d,decimalPart:o}}function U5({decimalSeparator:n,thousandSeparator:e,decimalPseudoSeparators:t=y5}){return t.filter(r=>r!==e&&r!==n)}function H5({decimalSeparator:n,minimumFractionDigits:e,prefix:t,postfix:r}){return e?({value:o,selection:a})=>{const{cleanValue:u,extractedPrefix:d,extractedPostfix:c}=er(o,{prefix:t,postfix:r});if(Number.isNaN(Tl(u,n)))return{value:o,selection:a};const[h,g=""]=u.split(n);return{value:d+h+n+g.padEnd(e,"0")+c,selection:a}}:io}function z5({prefix:n,postfix:e,decimalSeparator:t,minusSign:r}){return({value:o,selection:a})=>{const[u]=a,{cleanValue:d,extractedPrefix:c,extractedPostfix:h}=er(o,{prefix:n,postfix:e}),{minus:g,integerPart:$,decimalPart:_}=bh(d,{decimalSeparator:t,minusSign:r}),m=!$&&!_&&!!t&&d.includes(t);return!$&&!Number(_)&&u===(g+c).length||m?{selection:a,value:c+g+h}:{value:o,selection:a}}}function V5({decimalSeparator:n,decimalPseudoSeparators:e,pseudoMinuses:t,prefix:r,postfix:o,minusSign:a}){let u=!0;const d=vh({decimalSeparator:n,decimalPseudoSeparators:e,pseudoMinuses:t,prefix:"",postfix:"",thousandSeparator:"",maximumFractionDigits:1/0,isNegativeAllowed:!0,minusSign:a});return({elementState:c,data:h})=>{if(!u)return{elementState:c,data:h};u=!1;const{value:g,selection:$}=c,[_,m]=$,{extractedPrefix:O,cleanValue:P,extractedPostfix:A}=er(g,{prefix:r,postfix:o}),W=oh({selection:[Math.max(_-O.length,0),Ni(m-O.length,0,P.length)],value:P},{mask:d}),[q,Z]=W.selection;return{elementState:{selection:[q+O.length,Z+O.length],value:O+W.value+A},data:h}}}function G5({decimalSeparator:n,thousandSeparator:e,prefix:t,postfix:r}){const o=u=>{const d=Kt(e);return u.replace(new RegExp(`^(\\D+)?[0${d}]+(?=0)`),"$1").replace(new RegExp(`^(\\D+)?[0${d}]+(?=[1-9])`),"$1")},a=(u,d)=>{const c=u.slice(0,d),h=u.slice(d).startsWith("0");return c.length-o(c).length+(h?1:0)};return({value:u,selection:d})=>{const[c,h]=d,{cleanValue:g,extractedPrefix:$,extractedPostfix:_}=er(u,{prefix:t,postfix:r}),m=!!n&&g.includes(n),[O="",P=""]=n?g.split(n):[g],A=o(O);if(O===A)return{value:u,selection:d};const W=c-a(u,c),q=h-a(u,h);return{value:$+A+(m?n:"")+P+_,selection:[Math.max(W,0),Math.max(q,0)]}}}function Z5({min:n,max:e,decimalSeparator:t,minusSign:r}){return({value:o,selection:a})=>{const u=Tl(o,t),d=u>0?Math.min(u,e):Math.max(u,n);if(u&&d!==u){const c=`${d}`.replace(".",t).replace(_a,r);return{value:c,selection:[c.length,c.length]}}return{value:o,selection:a}}}function j5({decimalSeparator:n,thousandSeparator:e,minimumFractionDigits:t}){return({elementState:r,data:o},a)=>{const{value:u,selection:d}=r,[c,h]=d,g=u.slice(c,h),$=t?[n,e]:[e],_=!!t&&c>u.indexOf(n)&&!!g.match(/^0+$/gi);return a!=="deleteBackward"&&a!=="deleteForward"||!$.includes(g)&&!_?{elementState:r,data:o}:{elementState:{value:u,selection:a==="deleteForward"?[h,h]:[c,c]},data:o}}}function q5({decimalSeparator:n,maximumFractionDigits:e,prefix:t,postfix:r}){const o=new RegExp(`^\\D*${Kt(n)}`);return({elementState:a,data:u})=>{const{value:d,selection:c}=a,{cleanValue:h,extractedPrefix:g}=er(d,{prefix:t,postfix:r}),[$,_]=c,m=Ni($-g.length,0,h.length),O=Ni(_-g.length,0,h.length);if(e<=0||h.slice(0,m).includes(n)||h.slice(O).includes(n)||!u.match(o))return{elementState:a,data:u};const P=/\d+/.exec(h.slice(0,m));return{elementState:a,data:P?u:`0${u}`}}}function wh({validCharacter:n,pseudoCharacters:e,prefix:t,postfix:r}){const o=new RegExp(`[${e.join("")}]`,"gi");return({elementState:a,data:u})=>{const{value:d,selection:c}=a,{cleanValue:h,extractedPostfix:g,extractedPrefix:$}=er(d,{prefix:t,postfix:r});return{elementState:{selection:c,value:$+h.replace(o,n)+g},data:u.replace(o,n)}}}function Y5({decimalSeparator:n,prefix:e,postfix:t}){return n?({elementState:r,data:o})=>{const{value:a,selection:u}=r,[d,c]=u,{cleanValue:h}=er(a,{prefix:e,postfix:t});return{elementState:r,data:!h.includes(n)||a.slice(d,c+1).includes(n)?o:o.replaceAll(new RegExp(Kt(n),"gi"),"")}}:io}function K5({thousandSeparator:n,decimalSeparator:e,prefix:t,postfix:r,minusSign:o}){if(!n)return io;const a=(...u)=>u.every(d=>/\s/.test(d));return({value:u,selection:d})=>{const[c,h]=d;let[g,$]=d;const{cleanValue:_,extractedPostfix:m,extractedPrefix:O}=er(u,{prefix:t,postfix:r}),{minus:P,integerPart:A,decimalPart:W}=bh(_,{decimalSeparator:e,minusSign:o}),q=e&&_.includes(e),Z=_.length-(P+A+(q?e+W:"")).length;Z>0&&c&&c<=Z&&(g-=Z),Z>0&&h&&h<=Z&&($-=Z);const Y=Array.from(A).reduceRight((j,K,R)=>{const X=!(!R&&K===n)&&!!j.length&&(j.length+1)%4===0,he=K===n||a(K,n);return X&&he?n+j:!X&&he?(R&&R<=c&&g--,R&&R<=h&&$--,j):X?(R0||!e)return io;const o=new RegExp(`${Kt(e)}.*$`,"g");return({elementState:a,data:u})=>{const{value:d,selection:c}=a,{cleanValue:h,extractedPrefix:g,extractedPostfix:$}=er(d,{prefix:t,postfix:r}),[_,m]=c,O=g+h.replace(o,"")+$;return{elementState:{selection:[Math.min(_,O.length),Math.min(m,O.length)],value:O},data:u.replace(o,"")}}}const _h=[0,0];function X5({decimalSeparator:n,thousandSeparator:e,prefix:t,postfix:r}){const o=G5({decimalSeparator:n,thousandSeparator:e,prefix:t,postfix:r});return Ol("blur",a=>{const u=o({value:a.value,selection:_h},{value:"",selection:_h}).value;El(a,u)},{capture:!0})}function Q5({min:n,max:e,decimalSeparator:t}){return Ol("blur",(r,o)=>{const a=Tl(r.value,t),u=Ni(a,n,e);!Number.isNaN(a)&&a!==u&&El(r,oh(W5(u),o))},{capture:!0})}function e8({decimalSeparator:n,prefix:e,postfix:t}){return n?Ol("blur",r=>{const{cleanValue:o,extractedPostfix:a,extractedPrefix:u}=er(r.value,{prefix:e,postfix:t}),d=u+o.replace(new RegExp(`^(\\D+)?${Kt(n)}`),`$10${n}`)+a;El(r,d)},{capture:!0}):E5}function xh({max:n=Number.MAX_SAFE_INTEGER,min:e=Number.MIN_SAFE_INTEGER,precision:t=0,thousandSeparator:r=b5,decimalSeparator:o=".",decimalPseudoSeparators:a,decimalZeroPadding:u=!1,prefix:d="",postfix:c="",minusSign:h=Cl,maximumFractionDigits:g=t,minimumFractionDigits:$=u?g:0}={}){const _=[_a,dh,ch,fh,Cl].filter(A=>A!==r&&A!==o&&A!==h),m=U5({decimalSeparator:o,thousandSeparator:r,decimalPseudoSeparators:a}),O=d.endsWith(o)&&g>0?`${d}${w5}`:d,P=V5({decimalSeparator:o,decimalPseudoSeparators:m,pseudoMinuses:_,prefix:O,postfix:c,minusSign:h});return o=g<=0&&o===r?"":o,Object.assign(Object.assign({},ts),{mask:vh({decimalSeparator:o,maximumFractionDigits:g,thousandSeparator:r,prefix:O,postfix:c,isNegativeAllowed:e<0,minusSign:h}),preprocessors:[gh(),P,B5({prefix:O,postfix:c}),wh({validCharacter:h,pseudoCharacters:_,prefix:O,postfix:c}),wh({validCharacter:o,pseudoCharacters:m,prefix:O,postfix:c}),q5({decimalSeparator:o,maximumFractionDigits:g,prefix:O,postfix:c}),j5({decimalSeparator:o,minimumFractionDigits:$,thousandSeparator:r}),J5({maximumFractionDigits:g,decimalSeparator:o,prefix:O,postfix:c}),Y5({decimalSeparator:o,prefix:O,postfix:c})],postprocessors:[Z5({decimalSeparator:o,min:e,max:n,minusSign:h}),mh(O),I5(c),K5({decimalSeparator:o,thousandSeparator:r,prefix:O,postfix:c,minusSign:h}),H5({decimalSeparator:o,prefix:O,postfix:c,minimumFractionDigits:Math.min($,g)}),z5({prefix:O,postfix:c,decimalSeparator:o,minusSign:h})],plugins:[X5({decimalSeparator:o,thousandSeparator:r,prefix:O,postfix:c}),e8({decimalSeparator:o,prefix:O,postfix:c}),Q5({min:e,max:n,decimalSeparator:o})],overwriteMode:$>0?({value:A,selection:[W]})=>W<=A.indexOf(o)?"shift":"replace":"shift"})}yh({mode:"mm/dd/yyyy",separator:"/"}),yh({mode:"mm/dd",separator:"/"});var xa=function(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,a;ru)return 1;if(u>a)return-1;if(!isNaN(a)&&isNaN(u))return 1;if(isNaN(a)&&!isNaN(u))return-1}return n[1]&&e[1]?n[1]>e[1]?1:n[1]=Pl&&A8.test(n)}function P8(n){return O8.test(n)}var Ph=new RegExp("(?:"+kh()+")$","i");function I8(n){var e=n.search(Ph);if(e<0)return{};for(var t=n.slice(0,e),r=n.match(Ph),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 F8(n,e){if(n){if(typeof n=="string")return Ih(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 Ih(n,e)}}function Ih(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 M8(n,e){if(n){if(typeof n=="string")return Fh(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 Fh(n,e)}}function Fh(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 U8(n,e,t){if(e===void 0&&(e={}),t=new Lt(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 Rh(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 Rh(n,e){switch(as(n,e)){case"IS_POSSIBLE":return!0;default:return!1}}function Ir(n,e){return n=n||"",new RegExp("^(?:"+e+")$").test(n)}function H8(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=z8(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 z8(n,e){if(n){if(typeof n=="string")return Mh(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 Mh(n,e)}}function Mh(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0}function Bh(n){return n.replace(new RegExp("[".concat(tr,"]+"),"g")," ").trim()}var Wh=/(\$\d)/;function Uh(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(Wh,e.nationalPrefixFormattingRule()):e.format());return r?Bh(a):a}var q8=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Y8(n,e,t){var r=new Lt(t);if(r.selectNumberingPlan(n,e),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(q8.test(r.IDDPrefix()))return r.IDDPrefix()}function K8(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 J8(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=X8(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 X8(n,e){if(n){if(typeof n=="string")return Hh(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 Hh(n,e)}}function Hh(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(Ir(e,o.pattern()))return o}}function Ll(n,e,t,r){return e?r(n,e,t):n}function n9(n,e,t,r,o){var a=ss(r,o.metadata);if(a===t){var u=Ta(n,e,"NATIONAL",o);return t==="1"?t+" "+u:u}var d=Y8(r,void 0,o.metadata);if(d)return"".concat(d," ").concat(t," ").concat(Ta(n,null,"INTERNATIONAL",o))}function Zh(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 jh(n){for(var e=1;e0&&u[1]==="0"))return n}}}function Rl(n,e){if(n&&e.numberingPlan.nationalPrefixForParsing()){var t=new RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),r=t.exec(n);if(r){var o,a,u=r.length-1,d=u>0&&r[u];if(e.nationalPrefixTransformRule()&&d)o=n.replace(t,e.nationalPrefixTransformRule()),u>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]),$=n.slice(0,g);$===e.numberingPlan.nationalPrefix()&&(h=e.numberingPlan.nationalPrefix())}else h=r[0];return{nationalNumber:o,nationalPrefix:h,carrierCode:a}}}return{nationalNumber:n}}function Ml(n,e){var t=Rl(n,e),r=t.carrierCode,o=t.nationalNumber;if(o!==n){if(!d9(n,o,e))return{nationalNumber:n};if(e.possibleLengths()&&!c9(o,e))return{nationalNumber:n}}return{nationalNumber:o,carrierCode:r}}function d9(n,e,t){return!(Ir(n,t.nationalNumberPattern())&&!Ir(e,t.nationalNumberPattern()))}function c9(n,e){switch(as(n,e)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Kh(n,e,t,r){var o=e?ss(e,r):t;if(n.indexOf(o)===0){r=new Lt(r),r.selectNumberingPlan(e,t);var a=n.slice(o.length),u=Ml(a,r),d=u.nationalNumber,c=Ml(n,r),h=c.nationalNumber;if(!Ir(h,r.nationalNumberPattern())&&Ir(d,r.nationalNumberPattern())||as(h,r)==="TOO_LONG")return{countryCallingCode:o,number:a}}return{number:n}}function Jh(n,e,t,r){if(!n)return{};var o;if(n[0]!=="+"){var a=Yh(n,e,t,r);if(a&&a!==n)o=!0,n="+"+a;else{if(e||t){var u=Kh(n,e,t,r),d=u.countryCallingCode,c=u.number;if(d)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:d,number:c}}return{number:n}}}if(n[1]==="0")return{};r=new Lt(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 f9(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=h9(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 h9(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)return"";var r=n.indexOf(";",t);return r>=0?n.substring(t,r):n.substring(t)}function E9(n){return n===null?!0:n.length===0?!1:m9.test(n)||w9.test(n)}function S9(n,e){var t=e.extractFormattedPhoneNumber,r=x9(n);if(!E9(r))throw new Pr("NOT_A_NUMBER");var o;if(r===null)o=t(n)||"";else{o="",r.charAt(0)===t1&&(o+=r);var a=n.indexOf(r1),u;a>=0?u=a+r1.length:u=0;var d=n.indexOf(Wl);o+=n.substring(u,d)}var c=o.indexOf(_9);if(c>0&&(o=o.substring(0,c)),o!=="")return o}var C9=250,N9=new RegExp("["+Sa+rn+"]"),O9=new RegExp("[^"+rn+"#]+$");function T9(n,e,t){if(e=e||{},t=new Lt(t),e.defaultCountry&&!t.hasCountry(e.defaultCountry))throw e.v2?new Pr("INVALID_COUNTRY"):new Error("Unknown country: ".concat(e.defaultCountry));var r=k9(n,e.v2,e.extract),o=r.number,a=r.ext,u=r.error;if(!o){if(e.v2)throw u==="TOO_SHORT"?new Pr("TOO_SHORT"):new Pr("NOT_A_NUMBER");return{}}var d=I9(o,e.defaultCountry,e.defaultCallingCode,t),c=d.country,h=d.nationalNumber,g=d.countryCallingCode,$=d.countryCallingCodeSource,_=d.carrierCode;if(!t.hasSelectedNumberingPlan()){if(e.v2)throw new Pr("INVALID_COUNTRY");return{}}if(!h||h.lengtha8){if(e.v2)throw new Pr("TOO_LONG");return{}}if(e.v2){var m=new qh(g,h,t.metadata);return c&&(m.country=c),_&&(m.carrierCode=_),a&&(m.ext=a),m.__countryCallingCodeSource=$,m}var O=(e.extended?t.hasSelectedNumberingPlan():c)?Ir(h,t.nationalNumberPattern()):!1;return e.extended?{country:c,countryCallingCode:g,carrierCode:_,valid:O,possible:O?!0:!!(e.extended===!0&&t.possibleLengths()&&Rh(h,t)),phone:h,ext:a}:O?P9(c,h,a):{}}function A9(n,e,t){if(n){if(n.length>C9){if(t)throw new Pr("TOO_LONG");return}if(e===!1)return n;var r=n.search(N9);if(!(r<0))return n.slice(r).replace(O9,"")}}function k9(n,e,t){var r=S9(n,{extractFormattedPhoneNumber:function(u){return A9(u,t,e)}});if(!r)return{};if(!k8(r))return P8(r)?{error:"TOO_SHORT"}:{};var o=I8(r);return o.ext?o:{number:r}}function P9(n,e,t){var r={country:n,phone:e};return t&&(r.ext=t),r}function I9(n,e,t,r){var o=Jh(Lh(n),e,t,r.metadata),a=o.countryCallingCodeSource,u=o.countryCallingCode,d=o.number,c;if(u)r.selectNumberingPlan(u);else if(d&&(e||t))r.selectNumberingPlan(e,t),e&&(c=e),u=t||ss(e,r.metadata);else return{};if(!d)return{countryCallingCodeSource:a,countryCallingCode:u};var h=Ml(Lh(d),r),g=h.nationalNumber,$=h.carrierCode,_=e1(u,{nationalNumber:g,defaultCountry:e,metadata:r});return _&&(c=_,_==="001"||r.country(c)),{country:c,countryCallingCode:u,countryCallingCodeSource:a,nationalNumber:g,carrierCode:$}}function i1(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 o1(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 q9(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;)e&1&&(t+=n),e>>=1,n+=n;return t+n}function p1(n,e){return n[e]===")"&&e++,Y9(n.slice(0,e))}function Y9(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 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);t1&&arguments[1]!==void 0?arguments[1]:{},o=r.allowOverflow;if(!t)throw new Error("String is required");var a=Vl(t.split(""),this.matchTree,!0);if(a&&a.match&&delete a.matchedChars,!(a&&a.overflow&&!o))return a}}]),n}();function Vl(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 hy(n,e){if(n){if(typeof n=="string")return $1(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 $1(n,e)}}function $1(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()&&$y.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+"$"),$=o.replace(/\d/g,Gl);g.test($)&&(h=$);var _=this.getFormatFormat(t,a),m;if(this.shouldTryNationalPrefixFormattingRule(t,{international:a,nationalPrefix:u})){var O=_.replace(Wh,t.nationalPrefixFormattingRule());if(Oa(t.nationalPrefixFormattingRule())===(u||"")+Oa("$1")&&(_=O,m=!0,u))for(var P=u.length;P>0;)_=_.replace(/\d/,nr),P--}var A=h.replace(new RegExp(c),_).replace(new RegExp(Gl,"g"),nr);return m||(d?A=Aa(nr,d.length)+" "+A:u&&(A=Aa(nr,u.length)+this.getSeparatorAfterNationalPrefix(t)+A)),a&&(A=Bh(A)),A}}},{key:"formatNextNationalNumberDigits",value:function(t){var r=K9(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,t);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],p1(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(t,r){var o=r.international,a=r.nationalPrefix;if(t.nationalPrefixFormattingRule()){var u=t.usesNationalPrefix();if(u&&a||!u&&!o)return!0}}}]),n}();function w1(n,e){return Ny(n)||Cy(n,e)||Sy(n,e)||Ey()}function Ey(){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 Sy(n,e){if(n){if(typeof n=="string")return _1(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 _1(n,e)}}function _1(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(u){return r.update(u)})}},{key:"isWaitingForCountryCallingCode",value:function(t){var r=t.international,o=t.callingCode;return r&&!o}},{key:"extractCountryCallingCode",value:function(t){var r=Jh("+"+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&&Fy.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(t,r){if(this.hasSelectedNumberingPlan){var o=Rl(t,this.metadata),a=o.nationalPrefix,u=o.nationalNumber,d=o.carrierCode;if(u!==t)return this.onExtractedNationalNumber(a,d,u,t,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(t,r,o){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(t,o);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var a=Rl(t,this.metadata),u=a.nationalPrefix,d=a.nationalNumber,c=a.carrierCode;if(d!==r)return this.onExtractedNationalNumber(u,c,d,t,o),!0}}},{key:"onExtractedNationalNumber",value:function(t,r,o,a,u){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)}u({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 u=Yh(a,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(u!==void 0&&u!==a)return t.update({IDDPrefix:a.slice(0,a.length-u.length)}),this.startInternationalNumber(t,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(t){if(!t.international){var r=Kh(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 Ry(n){var e=n.search(Iy);if(!(e<0)){n=n.slice(e);var t;return n[0]==="+"&&(t=!0,n=n.slice(1)),n=n.replace(Dy,""),t&&(n="+"+n),n}}function My(n){var e=Ry(n)||"";return e[0]==="+"?[e.slice(1),!0]:[e]}function By(n){var e=My(n),t=w1(e,2),r=t[0],o=t[1];return Py.test(r)||(r=""),[r,o]}function Wy(n,e){return Vy(n)||zy(n,e)||Hy(n,e)||Uy()}function Uy(){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 Hy(n,e){if(n){if(typeof n=="string")return x1(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 x1(n,e)}}function x1(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(e1(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,u=t.nationalSignificantNumber;if(r){if(this.isInternational())return o?"+"+o+u:"+"+r;if(a||o){var d=a?this.metadata.countryCallingCode():o;return"+"+d+u}}}},{key:"getNumber",value:function(){var t=this.state,r=t.nationalSignificantNumber,o=t.carrierCode,a=t.callingCode,u=this._getCountry();if(r&&!(!u&&!a)){if(u&&u===this.defaultCountry){var d=new Lt(this.metadata.metadata);d.selectNumberingPlan(u);var c=d.numberingPlan.callingCode(),h=this.metadata.getCountryCodesForCallingCode(c);if(h.length>1){var g=Qh(r,{countries:h,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});g&&(u=g)}}var $=new qh(u||a,r,this.metadata.metadata);return o&&($.carrierCode=o),$}}},{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 qy="x";function Yy({countryIsoCode:n,metadata:e}){let t=!0;return({elementState:r,data:o})=>{if(!t)return{elementState:r,data:o};const{value:a,selection:u}=r;t=!1;try{const d=Ul(a,n,e);return{elementState:{value:`+${ss(n,e)} ${d.nationalNumber}`,selection:u}}}catch(d){return{elementState:r}}}}function E1({phone:n,metadata:e}){return f1(n,e)==="TOO_LONG"?E1({phone:n.slice(0,n.length-1),metadata:e}):n}function S1({value:n,template:e,prefix:t}){return[...t,...e?e.slice(t.length).split("").map(r=>r===qy||/\d/.test(r)?/\d/:r):new Array(Math.max(n.length-t.length,t.length)).fill(/\d/)]}function C1(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 N1({currentTemplate:n,newTemplate:e,currentPhoneLength:t,newPhoneLength:r}){return e.lengtht?n:e}const Ky=3;function O1(n){return({value:e,selection:t})=>({value:e.length>Ky?E1({phone:e,metadata:n}):e,selection:t})}function T1({prefix:n,countryIsoCode:e,metadata:t}){return({elementState:r,data:o})=>{var a;const{selection:u,value:d}=r,[c]=u,h=c{const c=C1(r,d,t),h=d.replaceAll(/\D/g,"").length;return a=N1({currentTemplate:a,newTemplate:c,currentPhoneLength:u,newPhoneLength:h}),u=h,a.length===1?["+",/\d/]:S1({value:d,template:a,prefix:o})},preprocessors:[T1({prefix:o,countryIsoCode:n,metadata:e})],postprocessors:[O1(e)]})}function Xy({countryIsoCode:n,metadata:e,separator:t="-"}){const r=ss(n,e),o=new Zl(n,e),a=`+${r} `;let u="",d=0;return Object.assign(Object.assign({},ts),{mask:({value:c})=>{const h=C1(o,c,t),g=c.replaceAll(/\D/g,"").length;return u=N1({currentTemplate:u,newTemplate:h,currentPhoneLength:d,newPhoneLength:g}),d=g,S1({value:c,template:u,prefix:a})},plugins:[L5((c,[h,g])=>[h===g?a.length:0,c.length])],preprocessors:[Yy({countryIsoCode:n,metadata:e}),T1({prefix:a,countryIsoCode:n,metadata:e})],postprocessors:[mh(a),O1(e)]})}function Qy({countryIsoCode:n,metadata:e,strict:t=!0,separator:r="-"}){return t&&n?Xy({countryIsoCode:n,metadata:e,separator:r}):Jy({defaultIsoCode:n,metadata:e,separator:r})}Qy({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 jl;(function(n){n.DEMO="demo",n.DEV="dev",n.PREVIEW="preview",n.PRODUCTION="production"})(jl||(jl={}));var ev=function(){return jl.DEV};const A1=Object.prototype.toString;function k1(n){switch(A1.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ia(n,Error)}}function us(n,e){return A1.call(n)===`[object ${e}]`}function ql(n){return us(n,"ErrorEvent")}function P1(n){return us(n,"DOMError")}function tv(n){return us(n,"DOMException")}function Yl(n){return us(n,"String")}function Kl(n){return typeof n=="object"&&n!==null&&"__sentry_template_string__"in n&&"__sentry_template_values__"in n}function Jl(n){return n===null||Kl(n)||typeof n!="object"&&typeof n!="function"}function so(n){return us(n,"Object")}function ka(n){return typeof Event!="undefined"&&Ia(n,Event)}function nv(n){return typeof Element!="undefined"&&Ia(n,Element)}function Pa(n){return!!(n&&n.then&&typeof n.then=="function")}function rv(n){return so(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}function iv(n){return typeof n=="number"&&n!==n}function Ia(n,e){try{return n instanceof e}catch(t){return!1}}function ov(n){return!!(typeof n=="object"&&n!==null&&(n.__isVue||n._isVue))}function ls(n,e=0){return typeof n!="string"||e===0||n.length<=e?n:`${n.slice(0,e)}...`}function Da(n){return n&&n.Math==Math?n:void 0}const xt=typeof globalThis=="object"&&Da(globalThis)||typeof window=="object"&&Da(window)||typeof self=="object"&&Da(self)||typeof global=="object"&&Da(global)||function(){return this}()||{};function sv(){return xt}function I1(n,e,t){const r=t||xt,o=r.__SENTRY__=r.__SENTRY__||{};return o[n]||(o[n]=e())}const D1=sv(),av=80;function uv(n,e={}){if(!n)return"";try{let t=n;const r=5,o=[];let a=0,u=0;const d=" > ",c=d.length;let h;const g=Array.isArray(e)?e:e.keyAttrs,$=!Array.isArray(e)&&e.maxStringLength||av;for(;t&&a++1&&u+o.length*c+h.length>=$));)o.push(h),u+=h.length,t=t.parentNode;return o.reverse().join(d)}catch(t){return""}}function lv(n,e){const t=n,r=[];let o,a,u,d,c;if(!t||!t.tagName)return"";if(D1.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($=>t.getAttribute($)).map($=>[$,t.getAttribute($)]):null;if(h&&h.length)h.forEach($=>{r.push(`[${$[0]}="${$[1]}"]`)});else if(t.id&&r.push(`#${t.id}`),o=t.className,o&&Yl(o))for(a=o.split(/\s+/),c=0;c{const a=L1[o];t[o]=e[o],e[o]=a});try{return n()}finally{r.forEach(o=>{e[o]=t[o]})}}function fv(){let n=!1;const e={enable:()=>{n=!0},disable:()=>{n=!1},isEnabled:()=>n};return Fa?F1.forEach(t=>{e[t]=(...r)=>{n&&Xl(()=>{xt.console[t](`${cv}[${t}]:`,...r)})}}):F1.forEach(t=>{e[t]=()=>{}}),e}const Oe=fv(),hv=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function pv(n){return n==="http"||n==="https"}function ds(n,e=!1){const{host:t,path:r,pass:o,port:a,projectId:u,protocol:d,publicKey:c}=n;return`${d}://${c}${e&&o?`:${o}`:""}@${t}${a?`:${a}`:""}/${r&&`${r}/`}${u}`}function gv(n){const e=hv.exec(n);if(!e){Xl(()=>{console.error(`Invalid Sentry Dsn: ${n}`)});return}const[t,r,o="",a,u="",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 $=h.match(/^\d+/);$&&(h=$[0])}return R1({host:a,pass:o,path:c,projectId:h,port:u,protocol:t,publicKey:r})}function R1(n){return{protocol:n.protocol,publicKey:n.publicKey||"",pass:n.pass||"",host:n.host,port:n.port||"",path:n.path||"",projectId:n.projectId}}function mv(n){if(!Fa)return!0;const{port:e,projectId:t,protocol:r}=n;return["protocol","publicKey","host","projectId"].find(u=>n[u]?!1:(Oe.error(`Invalid Sentry Dsn: ${u} missing`),!0))?!1:t.match(/^\d+$/)?pv(r)?e&&isNaN(parseInt(e,10))?(Oe.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(Oe.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Oe.error(`Invalid Sentry Dsn: Invalid projectId ${t}`),!1)}function yv(n){const e=typeof n=="string"?gv(n):R1(n);if(!(!e||!mv(e)))return e}class vr 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 vv(n,e,t){try{Object.defineProperty(n,e,{value:t,writable:!0,configurable:!0})}catch(r){Fa&&Oe.log(`Failed to add non-enumerable property "${e}" to object`,n)}}function $v(n){return Object.keys(n).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`).join("&")}function M1(n){if(k1(n))return C({message:n.message,name:n.name,stack:n.stack},W1(n));if(ka(n)){const e=C({type:n.type,target:B1(n.target),currentTarget:B1(n.currentTarget)},W1(n));return typeof CustomEvent!="undefined"&&Ia(n,CustomEvent)&&(e.detail=n.detail),e}else return n}function B1(n){try{return nv(n)?uv(n):Object.prototype.toString.call(n)}catch(e){return""}}function W1(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 bv(n,e=40){const t=Object.keys(M1(n));if(t.sort(),!t.length)return"[object has no keys]";if(t[0].length>=e)return ls(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:ls(o,e)}return""}function Dr(n){return Ql(n,new Map)}function Ql(n,e){if(wv(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]=Ql(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(Ql(o,e))}),r}return n}function wv(n){if(!so(n))return!1;try{const e=Object.getPrototypeOf(n).constructor.name;return!e||e==="Object"}catch(e){return!0}}const U1=50,H1=/\(error: (.*)\)/,z1=/captureMessage|captureException/;function _v(...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 u=r;u1024)continue;const c=H1.test(d)?d.replace(H1,"$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>=U1)break}}return xv(o)}}function xv(n){if(!n.length)return[];const e=Array.from(n);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),z1.test(e[e.length-1].function||"")&&(e.pop(),z1.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,U1).map(t=>we(C({},t),{filename:t.filename||e[e.length-1].filename,function:t.function||"?"}))}const ed="";function V1(n){try{return!n||typeof n!="function"?ed:n.name||ed}catch(e){return ed}}const La={},G1={};function Z1(n,e){La[n]=La[n]||[],La[n].push(e)}function j1(n,e){G1[n]||(e(),G1[n]=!0)}function q1(n,e){const t=n&&La[n];if(t)for(const r of t)try{r(e)}catch(o){Fa&&Oe.error(`Error while triggering instrumentation handler. Type: ${n} Name: ${V1(r)} Error:`,o)}}function rr(){const n=xt,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 Ev(n){return n.exception&&n.exception.values?n.exception.values[0]:void 0}function Y1(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 Ra(n,e){const t=Ev(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 K1(n){if(n&&n.__sentry_captured__)return!0;try{vv(n,"__sentry_captured__",!0)}catch(e){}return!1}function Sv(n){return Array.isArray(n)?n:[n]}function Cv(n){return n&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}let Ma=null;function Nv(n){const e="error";Z1(e,n),j1(e,Ov)}function Ov(){Ma=xt.onerror,xt.onerror=function(n,e,t,r,o){return q1("error",{column:r,error:o,line:t,msg:n,url:e}),Ma&&!Ma.__SENTRY_LOADER__?Ma.apply(this,arguments):!1},xt.onerror.__SENTRY_INSTRUMENTED__=!0}let Ba=null;function Tv(n){const e="unhandledrejection";Z1(e,n),j1(e,Av)}function Av(){Ba=xt.onunhandledrejection,xt.onunhandledrejection=function(n){return q1("unhandledrejection",n),Ba&&!Ba.__SENTRY_LOADER__?Ba.apply(this,arguments):!0},xt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function kv(){return"npm"}function Pv(){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?J1(n,e-1,t):r}function td(n,e,t=1/0,r=1/0,o=Pv()){const[a,u]=o;if(e==null||["number","boolean","string"].includes(typeof e)&&!iv(e))return e;const d=Iv(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 td("",m,c-1,r,o)}catch(m){}const g=Array.isArray(e)?[]:{};let $=0;const _=M1(e);for(const m in _){if(!Object.prototype.hasOwnProperty.call(_,m))continue;if($>=r){g[m]="[MaxProperties ~]";break}const O=_[m];g[m]=td(m,O,c-1,r,o),$++}return u(e),g}function Iv(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(ov(e))return"[VueViewModel]";if(rv(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${V1(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const t=Dv(e);return/^HTML(\w*)Element$/.test(t)?`[HTMLElement: ${t}]`:`[object ${t}]`}catch(t){return`**non-serializable** (${t})`}}function Dv(n){const e=Object.getPrototypeOf(n);return e?e.constructor.name:"null prototype"}function Fv(n){return~-encodeURI(n).split(/%..|./).length}function Lv(n){return Fv(JSON.stringify(n))}var Fr;(function(n){n[n.PENDING=0]="PENDING";const t=1;n[n.RESOLVED=t]="RESOLVED";const r=2;n[n.REJECTED=r]="REJECTED"})(Fr||(Fr={}));function ao(n){return new Ln(e=>{e(n)})}function nd(n){return new Ln((e,t)=>{t(n)})}class Ln{constructor(e){Ln.prototype.__init.call(this),Ln.prototype.__init2.call(this),Ln.prototype.__init3.call(this),Ln.prototype.__init4.call(this),this._state=Fr.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new Ln((r,o)=>{this._handlers.push([!1,a=>{if(!e)r(a);else try{r(e(a))}catch(u){o(u)}},a=>{if(!t)o(a);else try{r(t(a))}catch(u){o(u)}}]),this._executeHandlers()})}catch(e){return this.then(t=>t,e)}finally(e){return new Ln((t,r)=>{let o,a;return this.then(u=>{a=!1,o=u,e&&e()},u=>{a=!0,o=u,e&&e()}).then(()=>{if(a){r(o);return}t(o)})})}__init(){this._resolve=e=>{this._setResult(Fr.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Fr.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===Fr.PENDING){if(Pa(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Fr.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(t=>{t[0]||(this._state===Fr.RESOLVED&&t[1](this._value),this._state===Fr.REJECTED&&t[2](this._value),t[0]=!0)})}}}function Rv(n){const e=[];function t(){return n===void 0||e.lengthr(d)).then(null,()=>r(d).then(null,()=>{})),d}function a(u){return new Ln((d,c)=>{let h=e.length;if(!h)return d(!0);const g=setTimeout(()=>{u&&u>0&&d(!1)},u);e.forEach($=>{ao($).then(()=>{--h||(clearTimeout(g),d(!0))},c)})})}return{$:e,add:o,drain:a}}const X1=1e3;function cs(){return Date.now()/X1}function Mv(){const{performance:n}=xt;if(!n||!n.now)return cs;const e=Date.now()-n.now(),t=n.timeOrigin==null?e:n.timeOrigin;return()=>(t+n.now())/X1}const Q1=Mv();(()=>{const{performance:n}=xt;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 Hv(n,e){const t=typeof n.data=="string"?rd(n.data,e):n.data;return[Dr({type:"attachment",length:t.length,filename:n.filename,content_type:n.contentType,attachment_type:n.attachmentType}),t]}const zv={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 t2(n){return zv[n]}function n2(n){if(!n||!n.sdk)return;const{name:e,version:t}=n.sdk;return{name:e,version:t}}function Vv(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:ds(r)}),o&&{trace:Dr(C({},o))})}function Gv(n,e,t){const r=[{type:"client_report"},{timestamp:cs(),discarded_events:n}];return uo(e?{dsn:e}:{},[r])}const Zv=60*1e3;function jv(n,e=Date.now()){const t=parseInt(`${n}`,10);if(!isNaN(t))return t*1e3;const r=Date.parse(`${n}`);return isNaN(r)?Zv:r-e}function qv(n,e){return n[e]||n.all||0}function Yv(n,e,t=Date.now()){return qv(n,e)>t}function Kv(n,{statusCode:e,headers:t},r=Date.now()){const o=C({},n),a=t&&t["x-sentry-rate-limits"],u=t&&t["retry-after"];if(a)for(const d of a.trim().split(",")){const[c,h,,,g]=d.split(":",5),$=parseInt(c,10),_=(isNaN($)?60:$)*1e3;if(!h)o.all=r+_;else for(const m of h.split(";"))m==="metric_bucket"?(!g||g.split(";").includes("custom"))&&(o[m]=r+_):o[m]=r+_}else u?o.all=r+jv(u,r):e===429&&(o.all=r+60*1e3);return o}const Rt=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__,id="production";function od(){return I1("globalEventProcessors",()=>[])}function Jv(n){od().push(n)}function Wa(n,e,t,r=0){return new Ln((o,a)=>{const u=n[r];if(e===null||typeof u!="function")o(e);else{const d=u(C({},e),t);Rt&&u.id&&d===null&&Oe.log(`Event processor "${u.id}" dropped event`),Pa(d)?d.then(c=>Wa(n,c,t,r+1).then(o)).then(null,a):Wa(n,d,t,r+1).then(o).then(null,a)}})}function Xv(n){const e=Q1(),t={sid:rr(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>e7(t)};return lo(t,n),t}function lo(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||Q1(),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:rr()),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 Qv(n,e){let t={};n.status==="ok"&&(t={status:"exited"}),lo(n,t)}function e7(n){return Dr({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 t7=1;function n7(n){const{spanId:e,traceId:t}=n.spanContext(),{data:r,op:o,parent_span_id:a,status:u,tags:d,origin:c}=fs(n);return Dr({data:r,op:o,parent_span_id:a,span_id:e,status:u,tags:d,trace_id:t,origin:c})}function fs(n){return r7(n)?n.getSpanJSON():typeof n.toJSON=="function"?n.toJSON():{}}function r7(n){return typeof n.getSpanJSON=="function"}function i7(n){const{traceFlags:e}=n.spanContext();return!!(e&t7)}function o7(n,e,t,r,o,a){const{normalizeDepth:u=3,normalizeMaxBreadth:d=1e3}=n,c=we(C({},e),{event_id:e.event_id||t.event_id||rr(),timestamp:e.timestamp||cs()}),h=t.integrations||n.integrations.map(A=>A.name);s7(c,n),l7(c,h),e.type===void 0&&a7(c,n.stackParser);const g=c7(r,t.captureContext);t.mechanism&&Ra(c,t.mechanism);const $=o&&o.getEventProcessors?o.getEventProcessors():[],_=b7().getScopeData();if(a){const A=a.getScopeData();u2(_,A)}if(g){const A=g.getScopeData();u2(_,A)}const m=[...t.attachments||[],..._.attachments];m.length&&(t.attachments=m),a2(c,_);const O=[...$,...od(),..._.eventProcessors];return Wa(O,c,t).then(A=>(A&&u7(A),typeof u=="number"&&u>0?d7(A,u,d):A))}function s7(n,e){const{environment:t,release:r,dist:o,maxValueLength:a=250}=e;"environment"in n||(n.environment="environment"in e?t:id),n.release===void 0&&r!==void 0&&(n.release=r),n.dist===void 0&&o!==void 0&&(n.dist=o),n.message&&(n.message=ls(n.message,a));const u=n.exception&&n.exception.values&&n.exception.values[0];u&&u.value&&(u.value=ls(u.value,a));const d=n.request;d&&d.url&&(d.url=ls(d.url,a))}const r2=new WeakMap;function a7(n,e){const t=xt._sentryDebugIds;if(!t)return;let r;const o=r2.get(e);o?r=o:(r=new Map,r2.set(e,r));const a=Object.keys(t).reduce((u,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 $=c[g];if($.filename){u[$.filename]=t[d];break}}return u},{});try{n.exception.values.forEach(u=>{u.stacktrace.frames.forEach(d=>{d.filename&&(d.debug_id=a[d.filename])})})}catch(u){}}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 l7(n,e){e.length>0&&(n.sdk=n.sdk||{},n.sdk.integrations=[...n.sdk.integrations||[],...e])}function d7(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:oi(o.data,e,t)}))}),n.user&&{user:oi(n.user,e,t)}),n.contexts&&{contexts:oi(n.contexts,e,t)}),n.extra&&{extra:oi(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=oi(n.contexts.trace.data,e,t))),n.spans&&(r.spans=n.spans.map(o=>{const a=fs(o).data;return a&&(o.data=oi(a,e,t)),o})),r}function c7(n,e){if(!e)return n;const t=n?n.clone():new Lr;return t.update(e),t}function i2(n,e){return gs().captureEvent(n,e)}function hs(){return gs().getClient()}function f7(){return gs().getScope()}function o2(n){return n.transaction}function s2(n,e,t){const r=e.getOptions(),{publicKey:o}=e.getDsn()||{},{segment:a}=t&&t.getUser()||{},u=Dr({environment:r.environment||id,release:r.release,user_segment:a,public_key:o,trace_id:n});return e.emit&&e.emit("createDsc",u),u}function h7(n){const e=hs();if(!e)return{};const t=s2(fs(n).trace_id||"",e,f7()),r=o2(n);if(!r)return t;const o=r&&r._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:a,source:u}=r.metadata;a!=null&&(t.sample_rate=`${a}`);const d=fs(r);return u&&u!=="url"&&(t.transaction=d.description),t.sampled=String(i7(r)),e.emit&&e.emit("createDsc",t),t}function a2(n,e){const{fingerprint:t,span:r,breadcrumbs:o,sdkProcessingMetadata:a}=e;p7(n,e),r&&y7(n,r),v7(n,t),g7(n,o),m7(n,a)}function u2(n,e){const{extra:t,tags:r,user:o,contexts:a,level:u,sdkProcessingMetadata:d,breadcrumbs:c,fingerprint:h,eventProcessors:g,attachments:$,propagationContext:_,transactionName:m,span:O}=e;ps(n,"extra",t),ps(n,"tags",r),ps(n,"user",o),ps(n,"contexts",a),ps(n,"sdkProcessingMetadata",d),u&&(n.level=u),m&&(n.transactionName=m),O&&(n.span=O),c.length&&(n.breadcrumbs=[...n.breadcrumbs,...c]),h.length&&(n.fingerprint=[...n.fingerprint,...h]),g.length&&(n.eventProcessors=[...n.eventProcessors,...g]),$.length&&(n.attachments=[...n.attachments,...$]),n.propagationContext=C(C({},n.propagationContext),_)}function ps(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 p7(n,e){const{extra:t,tags:r,user:o,contexts:a,level:u,transactionName:d}=e,c=Dr(t);c&&Object.keys(c).length&&(n.extra=C(C({},c),n.extra));const h=Dr(r);h&&Object.keys(h).length&&(n.tags=C(C({},h),n.tags));const g=Dr(o);g&&Object.keys(g).length&&(n.user=C(C({},g),n.user));const $=Dr(a);$&&Object.keys($).length&&(n.contexts=C(C({},$),n.contexts)),u&&(n.level=u),d&&(n.transaction=d)}function g7(n,e){const t=[...n.breadcrumbs||[],...e];n.breadcrumbs=t.length?t:void 0}function m7(n,e){n.sdkProcessingMetadata=C(C({},n.sdkProcessingMetadata),e)}function y7(n,e){n.contexts=C({trace:n7(e)},n.contexts);const t=o2(e);if(t){n.sdkProcessingMetadata=C({dynamicSamplingContext:h7(e)},n.sdkProcessingMetadata);const r=fs(t).description;r&&(n.tags=C({transaction:r},n.tags))}}function v7(n,e){n.fingerprint=n.fingerprint?Sv(n.fingerprint):[],e&&(n.fingerprint=n.fingerprint.concat(e)),n.fingerprint&&!n.fingerprint.length&&delete n.fingerprint}const $7=100;let sd;class Lr{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=l2()}static clone(e){return e?e.clone():new Lr}clone(){const e=new Lr;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&&lo(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=we(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=we(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 Lr){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(so(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=l2(),this}addBreadcrumb(e,t){const r=typeof t=="number"?t:$7;if(r<=0)return this;const o=C({timestamp:cs()},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:u,_level:d,_fingerprint:c,_eventProcessors:h,_propagationContext:g,_sdkProcessingMetadata:$,_transactionName:_,_span:m}=this;return{breadcrumbs:e,attachments:t,contexts:r,tags:o,extra:a,user:u,level:d,fingerprint:c||[],eventProcessors:h,propagationContext:g,sdkProcessingMetadata:$,transactionName:_,span:m}}applyToEvent(e,t={},r=[]){a2(e,this.getScopeData());const o=[...r,...od(),...this._eventProcessors];return Wa(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:rr();if(!this._client)return Oe.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(e,we(C({originalException:e,syntheticException:o},t),{event_id:r}),this),r}captureMessage(e,t,r){const o=r&&r.event_id?r.event_id:rr();if(!this._client)return Oe.warn("No client configured on scope - will not capture message!"),o;const a=new Error(e);return this._client.captureMessage(e,t,we(C({originalException:e,syntheticException:a},r),{event_id:o}),this),o}captureEvent(e,t){const r=t&&t.event_id?t.event_id:rr();return this._client?(this._client.captureEvent(e,we(C({},t),{event_id:r}),this),r):(Oe.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 b7(){return sd||(sd=new Lr),sd}function l2(){return{traceId:rr(),spanId:rr().substring(16)}}const ad="7.120.2",d2=parseFloat(ad),w7=100;class c2{constructor(e,t,r,o=d2){this._version=o;let a;t?a=t:(a=new Lr,a.setClient(e));let u;r?u=r:(u=new Lr,u.setClient(e)),this._stack=[{scope:a}],e&&this.bindClient(e),this._isolationScope=u}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:rr(),o=new Error("Sentry syntheticException");return this.getScope().captureException(e,we(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:rr(),a=new Error(e);return this.getScope().captureMessage(e,t,we(C({originalException:e,syntheticException:a},r),{event_id:o})),o}captureEvent(e,t){const r=t&&t.event_id?t.event_id:rr();return e.type||(this._lastEventId=r),this.getScope().captureEvent(e,we(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:u=w7}=o.getOptions&&o.getOptions()||{};if(u<=0)return;const d=cs(),c=C({timestamp:d},e),h=a?Xl(()=>a(c,t)):c;h!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",h,t),r.addBreadcrumb(h,u))}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=f2(this);try{e(this)}finally{f2(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(r){return Rt&&Oe.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const r=this._callExtensionMethod("startTransaction",e,t);return Rt&&!r&&(this.getClient()?Oe.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); `):Oe.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&&Qv(r),this._sendSessionUpdate(),t.setSession()}startSession(e){const{scope:t,client:r}=this.getStackTop(),{release:o,environment:a=id}=r&&r.getOptions()||{},{userAgent:u}=xt.navigator||{},d=Xv(C(C({release:o,environment:a,user:t.getUser()},u&&{userAgent:u}),e)),c=t.getSession&&t.getSession();return c&&c.status==="ok"&&lo(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=Ua().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[e]=="function")return o.extensions[e].apply(this,t);Rt&&Oe.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Ua(){return xt.__SENTRY__=xt.__SENTRY__||{extensions:{},hub:void 0},xt}function f2(n){const e=Ua(),t=ud(e);return h2(e,n),t}function gs(){const n=Ua();if(n.__SENTRY__&&n.__SENTRY__.acs){const e=n.__SENTRY__.acs.getCurrentHub();if(e)return e}return x7(n)}function _7(){return gs().getIsolationScope()}function x7(n=Ua()){return(!E7(n)||ud(n).isOlderThan(d2))&&h2(n,new c2),ud(n)}function E7(n){return!!(n&&n.__SENTRY__&&n.__SENTRY__.hub)}function ud(n){return I1("hub",()=>new c2,n)}function h2(n,e){if(!n)return!1;const t=n.__SENTRY__=n.__SENTRY__||{};return t.hub=e,!0}function S7(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 C7(n,e,t,r){const o=n2(t),a=C(C({sent_at:new Date().toISOString()},o&&{sdk:o}),!!r&&e&&{dsn:ds(e)}),u="aggregates"in n?[{type:"sessions"},n]:[{type:"session"},n.toJSON()];return uo(a,[u])}function N7(n,e,t,r){const o=n2(t),a=n.type&&n.type!=="replay_event"?n.type:"event";S7(n,t&&t.sdk);const u=Vv(n,o,r,e);return delete n.sdkProcessingMetadata,uo(u,[[{type:a},n]])}const O7="7";function T7(n){const e=n.protocol?`${n.protocol}:`:"",t=n.port?`:${n.port}`:"";return`${e}//${n.host}${t}${n.path?`/${n.path}`:""}/api/`}function A7(n){return`${T7(n)}${n.projectId}/envelope/`}function k7(n,e){return $v(C({sentry_key:n.publicKey,sentry_version:O7},e&&{sentry_client:`${e.name}/${e.version}`}))}function P7(n,e={}){const t=typeof e=="string"?e:e.tunnel,r=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return t||`${A7(n)}?${k7(n,r)}`}const p2=[];function I7(n,e){const t={};return e.forEach(r=>{r&&m2(n,r,t)}),t}function g2(n,e){for(const t of e)t&&t.afterAllSetup&&t.afterAllSetup(n)}function m2(n,e,t){if(t[e.name]){Rt&&Oe.log(`Integration skipped because it was already installed: ${e.name}`);return}if(t[e.name]=e,p2.indexOf(e.name)===-1&&(e.setupOnce(Jv,gs),p2.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,u)=>r(a,u,n),{id:e.name});n.addEventProcessor(o)}Rt&&Oe.log(`Integration installed: ${e.name}`)}function D7(n,e){return Object.assign(function(...r){return e(...r)},{id:n})}function kT(n){return n}function F7(n){let e="";for(const t of n){const r=Object.entries(t.tags),o=r.length>0?`|#${r.map(([a,u])=>`${a}:${u}`).join(",")}`:"";e+=`${t.name}@${t.unit}:${t.metric}|${t.metricType}${o}|T${t.timestamp} `}return e}function L7(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=ds(e));const a=R7(n);return uo(o,[a])}function R7(n){const e=F7(n);return[{type:"statsd",length:e.length},e]}const y2="Not capturing exception because it's already been captured.";class M7{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=yv(e.dsn):Rt&&Oe.warn("No DSN provided, client will not send events."),this._dsn){const t=P7(this._dsn,e);this._transport=e.transport(we(C({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:t}))}}captureException(e,t,r){if(K1(e)){Rt&&Oe.log(y2);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 u=Kl(e)?e:String(e),d=Jl(e)?this.eventFromMessage(u,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&&K1(t.originalException)){Rt&&Oe.log(y2);return}let o=t&&t.event_id;const u=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,u||r).then(d=>{o=d})),o}captureSession(e){typeof e.release!="string"?Rt&&Oe.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),lo(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))):ao(!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 Rt&&Oe.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];m2(this,e,this._integrations),t||g2(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=N7(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of t.attachments||[])r=Bv(r,Hv(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=C7(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}`;Rt&&Oe.log(`Recording outcome: "${a}"${o>1?` (${o} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+o}}captureAggregateMetrics(e){Rt&&Oe.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=L7(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=I7(this,e),g2(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 u=e.status==="ok";(u&&e.errors===0||u&&r)&&(lo(e,we(C({},r&&{status:"crashed"}),{errors:e.errors||Number(o||r)})),this.captureSession(e))}_isClientDoneProcessing(e){return new Ln(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=_7()){const a=this.getOptions(),u=Object.keys(this._integrations);return!t.integrations&&u.length>0&&(t.integrations=u),this.emit("preprocessEvent",e,t),o7(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:$,parentSpanId:_,dsc:m}=c;d.contexts=C({trace:{trace_id:g,span_id:$,parent_span_id:_}},d.contexts);const O=m||s2(g,this,r);d.sdkProcessingMetadata=C({dynamicSamplingContext:O},d.sdkProcessingMetadata)}return d})}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then(o=>o.event_id,o=>{if(Rt){const a=o;a.logLevel==="log"?Oe.log(a.message):Oe.warn(a)}})}_processEvent(e,t,r){const o=this.getOptions(),{sampleRate:a}=o,u=$2(e),d=v2(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),nd(new vr(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const g=c==="replay_event"?"replay":c,_=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,r,_).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",g,e),new vr("An event processor returned `null`, will not send event.","log");if(t.data&&t.data.__sentry__===!0)return m;const P=W7(o,m,t);return B7(P,h)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",g,e),u){const W=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",W)}throw new vr(`${h} returned \`null\`, will not send event.`,"log")}const O=r&&r.getSession();if(!u&&O&&this._updateSessionFromEvent(O,m),u){const A=m.sdkProcessingMetadata&&m.sdkProcessingMetadata.spanCountBeforeProcessing||0,W=m.spans?m.spans.length:0,q=A-W;q>0&&this.recordDroppedEvent("before_send","span",q)}const P=m.transaction_info;if(u&&P&&m.transaction!==e.transaction){const A="custom";m.transaction_info=we(C({},P),{source:A})}return this.sendEvent(m,t),m}).then(null,m=>{throw m instanceof vr?m:(this.captureException(m,{data:{__sentry__:!0},originalException:m}),new vr(`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=>{Rt&&Oe.error("Error while sending event:",t)});Rt&&Oe.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 B7(n,e){const t=`${e} must return \`null\` or a valid event.`;if(Pa(n))return n.then(r=>{if(!so(r)&&r!==null)throw new vr(t);return r},r=>{throw new vr(`${e} rejected with ${r}`)});if(!so(n)&&n!==null)throw new vr(t);return n}function W7(n,e,t){const{beforeSend:r,beforeSendTransaction:o}=n;if(v2(e)&&r)return r(e,t);if($2(e)&&o){if(e.spans){const a=e.spans.length;e.sdkProcessingMetadata=we(C({},e.sdkProcessingMetadata),{spanCountBeforeProcessing:a})}return o(e,t)}return e}function v2(n){return n.type===void 0}function $2(n){return n.type==="transaction"}const U7=30;function H7(n,e,t=Rv(n.bufferSize||U7)){let r={};const o=u=>t.drain(u);function a(u){const d=[];if(e2(u,($,_)=>{const m=t2(_);if(Yv(r,m)){const O=b2($,_);n.recordDroppedEvent("ratelimit_backoff",m,O)}else d.push($)}),d.length===0)return ao();const c=uo(u[0],d),h=$=>{e2(c,(_,m)=>{const O=b2(_,m);n.recordDroppedEvent($,t2(m),O)})},g=()=>e({body:Wv(c,n.textEncoder)}).then($=>($.statusCode!==void 0&&($.statusCode<200||$.statusCode>=300)&&Rt&&Oe.warn(`Sentry responded with status code ${$.statusCode} to sent event.`),r=Kv(r,$),$),$=>{throw h("network_error"),$});return t.add(g).then($=>$,$=>{if($ instanceof vr)return Rt&&Oe.error("Skipped sending event because buffer is full."),h("queue_overflow"),ao();throw $})}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 z7(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:ad})),version:ad}),n._metadata=o}const $r=xt;let V7=0;function w2(){return V7>0}const co=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;function G7(n,e){const t=dd(n,e),r={type:e&&e.name,value:Y7(e)};return t.length&&(r.stacktrace={frames:t}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Z7(n,e,t,r){const o=hs(),a=o&&o.getOptions().normalizeDepth,u={exception:{values:[{type:ka(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:X7(e,{isUnhandledRejection:r})}]},extra:{__serialized__:J1(e,a)}};if(t){const d=dd(n,t);d.length&&(u.exception.values[0].stacktrace={frames:d})}return u}function ld(n,e){return{exception:{values:[G7(n,e)]}}}function dd(n,e){const t=e.stacktrace||e.stack||"",r=q7(e);try{return n(t,r)}catch(o){}return[]}const j7=/Minified React error #\d+;/i;function q7(n){if(n){if(typeof n.framesToPop=="number")return n.framesToPop;if(j7.test(n.message))return 1}return 0}function Y7(n){const e=n&&n.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function K7(n,e,t,r){const o=t&&t.syntheticException||void 0,a=cd(n,e,o,r);return Ra(a),a.level="error",t&&t.event_id&&(a.event_id=t.event_id),ao(a)}function J7(n,e,t="info",r,o){const a=r&&r.syntheticException||void 0,u=fd(n,e,a,o);return u.level=t,r&&r.event_id&&(u.event_id=r.event_id),ao(u)}function cd(n,e,t,r,o){let a;if(ql(e)&&e.error)return ld(n,e.error);if(P1(e)||tv(e)){const u=e;if("stack"in e)a=ld(n,e);else{const d=u.name||(P1(u)?"DOMError":"DOMException"),c=u.message?`${d}: ${u.message}`:d;a=fd(n,c,t,r),Y1(a,c)}return"code"in u&&(a.tags=we(C({},a.tags),{"DOMException.code":`${u.code}`})),a}return k1(e)?ld(n,e):so(e)||ka(e)?(a=Z7(n,e,t,o),Ra(a,{synthetic:!0}),a):(a=fd(n,e,t,r),Y1(a,`${e}`),Ra(a,{synthetic:!0}),a)}function fd(n,e,t,r){const o={};if(r&&t){const a=dd(n,t);a.length&&(o.exception={values:[{value:e,stacktrace:{frames:a}}]})}if(Kl(e)){const{__sentry_template_string__:a,__sentry_template_values__:u}=e;return o.logentry={message:a,params:u},o}return o.message=e,o}function X7(n,{isUnhandledRejection:e}){const t=bv(n),r=e?"promise rejection":"exception";return ql(n)?`Event \`ErrorEvent\` captured as ${r} with message \`${n.message}\``:ka(n)?`Event \`${Q7(n)}\` (type=${n.type}) captured as ${r}`:`Object captured as ${r} with keys: ${t}`}function Q7(n){try{const e=Object.getPrototypeOf(n);return e?e.constructor.name:void 0}catch(e){}}function e$(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:ds(r)}),a=t$(n);return uo(o,[a])}function t$(n){return[{type:"user_report"},n]}class n$ extends M7{constructor(e){const t=$r.SENTRY_SDK_SOURCE||kv();z7(e,"browser",["browser"],t),super(e),e.sendClientReports&&$r.document&&$r.document.addEventListener("visibilitychange",()=>{$r.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,t){return K7(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return J7(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){co&&Oe.warn("SDK not enabled, will not capture user feedback.");return}const t=e$(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){co&&Oe.log("No outcomes to send");return}if(!this._dsn){co&&Oe.log("No dsn provided, will not send outcomes");return}co&&Oe.log("Sending outcomes:",e);const t=Gv(e,this._options.tunnel&&ds(this._dsn));this._sendEnvelope(t)}}let ms;function r$(){if(ms)return ms;if(Cv($r.fetch))return ms=$r.fetch.bind($r);const n=$r.document;let e=$r.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){co&&Oe.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return ms=e.bind($r)}function i$(){ms=void 0}function o$(n,e=r$()){let t=0,r=0;function o(a){const u=a.body.length;t+=u,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-=u,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 i$(),t-=u,r--,nd(c)}}return H7(n,o)}const Ha="?",s$=30,a$=40,u$=50;function hd(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 l$=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,d$=/\((\S*)(?::(\d+))(?::(\d+))\)/,c$=[s$,n=>{const e=l$.exec(n);if(e){if(e[2]&&e[2].indexOf("eval")===0){const a=d$.exec(e[2]);a&&(e[2]=a[1],e[3]=a[2],e[4]=a[3])}const[r,o]=_2(e[1]||Ha,e[2]);return hd(o,r,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],f$=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,h$=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,p$=[u$,n=>{const e=f$.exec(n);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const a=h$.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]||Ha;return[o,r]=_2(o,r),hd(r,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],g$=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,m$=_v(...[c$,p$,[a$,n=>{const e=g$.exec(n);return e?hd(e[2],e[1]||Ha,+e[3],e[4]?+e[4]:void 0):void 0}]]),_2=(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]:Ha,t?`safari-extension:${e}`:`safari-web-extension:${e}`]:[n,e]},x2="GlobalHandlers",E2=(n={})=>{const e=C({onerror:!0,onunhandledrejection:!0},n);return{name:x2,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(y$(t),C2("onerror")),e.onunhandledrejection&&(v$(t),C2("onunhandledrejection"))}}};D7(x2,E2);function y$(n){Nv(e=>{const{stackParser:t,attachStacktrace:r}=N2();if(hs()!==n||w2())return;const{msg:o,url:a,line:u,column:d,error:c}=e,h=c===void 0&&Yl(o)?w$(o,a,u,d):S2(cd(t,c||o,void 0,r,!1),a,u,d);h.level="error",i2(h,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function v$(n){Tv(e=>{const{stackParser:t,attachStacktrace:r}=N2();if(hs()!==n||w2())return;const o=$$(e),a=Jl(o)?b$(o):cd(t,o,void 0,r,!0);a.level="error",i2(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function $$(n){if(Jl(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 b$(n){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`}]}}}function w$(n,e,t,r){const o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=ql(n)?n.message:n,u="Error";const d=a.match(o);return d&&(u=d[1],a=d[2]),S2({exception:{values:[{type:u,value:a}]}},e,t,r)}function S2(n,e,t,r){const o=n.exception=n.exception||{},a=o.values=o.values||[],u=a[0]=a[0]||{},d=u.stacktrace=u.stacktrace||{},c=d.frames=d.frames||[],h=isNaN(parseInt(r,10))?void 0:r,g=isNaN(parseInt(t,10))?void 0:t,$=Yl(e)&&e.length>0?e:dv();return c.length===0&&c.push({colno:h,filename:$,function:"?",in_app:!0,lineno:g}),n}function C2(n){co&&Oe.log(`Global Handler attached: ${n}`)}function N2(){const n=hs();return n&&n.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const O2=new n$({dsn:"https://f2aaa5bc878c1490c270c1977ab38718@o211933.ingest.us.sentry.io/4507063779000320",transport:o$,stackParser:m$,environment:ev(),normalizeDepth:10,sampleRate:.8,tracesSampleRate:.5,integrations:[E2({onerror:!1,onunhandledrejection:!1})]}),T2=new Lr,_$="https://givebutter.com/elements/api/v2",x$=204;class E$ extends Error{constructor(e,t,r){super(e),this.url=t,this.response=r}}const A2=(n,e)=>Le(this,null,function*(){const t=decodeURIComponent(e).trim();return/^[a-zA-Z0-9]{6,}$/.test(t)||t==="signup-form-demo"?yield za(`${n}/elements/${t}`):{}}),S$=(n,e)=>Le(this,null,function*(){return yield za(`${n}/campaigns/${e}`)}),C$=(n,e)=>Le(this,null,function*(){return yield za(`${n}/campaigns/${e}/goal-status`)}),N$=()=>Le(this,null,function*(){const n=Nt.getAccountId();if(n)return yield za(`${n}/ping`)}),O$=n=>({status:n.status,statusText:n.statusText,headers:[...n.headers.entries()].reduce((e,[t,r])=>(e[t]=r,e),{})}),za=n=>Le(this,null,function*(){const e=`${_$}/${n}`,t=yield fetch(e),r=O$(t);if(!t.ok){const o=new E$(`HTTP error with status: ${t.status}`,e,r);throw[404].includes(t.status)||O2.captureException(o,{captureContext:{contexts:{data:{url:e,response:we(C({},r),{data:yield t.json()})}}}}),o}return t.status===x$?{}:t.json()}),k2=[],P2=[];function T$(){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 A$(){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){vt.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),P2.push(a));const u=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",u),k2.push({element:e,type:"click",listener:u})})}function I2(){Nt.isDynamicElementReplacementMode()&&T$(),A$()}const k$=()=>{I2(),["DOMContentLoaded","popstate","hashchange"].forEach(e=>{window.addEventListener(e,I2)}),window.addEventListener("pagehide",function(){k2.forEach(({element:e,type:t,listener:r})=>{e.removeEventListener(t,r)}),P2.forEach(e=>{document.body.removeChild(e)})})},P$=()=>{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()}},I$=(n,e)=>{let t=n==null?void 0:n.parentElement;for(;t;){if(t.classList.contains(e))return t;t=t.parentElement}return vt.error(`Could not find ancestor element with class ${e}`),null};Le(this,null,function*(){if(window.gbWidgets=window.gbWidgets||{},Nt.getPlatform()===tl.godaddy&&Nt.isInsideIframe()){P$();return}if(window.gbWidgets.init)return;T2.setClient(O2),T2.setUser({accountId:Nt.getAccountId(),platform:Nt.getPlatform(),iframe:Nt.isInsideIframe(),url:Vo.getParentHostUrl()}),N$(),k$();const n=window.customElements.define;window.customElements.define=function(e,t,r){window.customElements.get(e)?vt.warn(`Custom element "${e}" is already defined. Skipping.`):n.call(window.customElements,e,t,r)};try{yield Promise.resolve().then(()=>Ob),yield Promise.resolve().then(()=>Wb),yield Promise.resolve().then(()=>Zb),yield Promise.resolve().then(()=>Kb),yield Promise.resolve().then(()=>rw),yield Promise.resolve().then(()=>gw),yield Promise.resolve().then(()=>ew),yield Promise.resolve().then(()=>$w)}catch(e){vt.error("Error initializing web components",e)}window.gbWidgets.init=!0});/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Va=globalThis,pd=Va.ShadowRoot&&(Va.ShadyCSS===void 0||Va.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gd=Symbol(),D2=new WeakMap;let F2=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==gd)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(pd&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=D2.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&D2.set(t,e))}return e}toString(){return this.cssText}};const L2=n=>new F2(typeof n=="string"?n:n+"",void 0,gd),md=(n,...e)=>{const t=n.length===1?n[0]:e.reduce((r,o,a)=>r+(u=>{if(u._$cssResult$===!0)return u.cssText;if(typeof u=="number")return u;throw Error("Value passed to 'css' function must be a 'css' function result: "+u+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[a+1],n[0]);return new F2(t,n,gd)},R2=(n,e)=>{if(pd)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),o=Va.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,n.appendChild(r)}},M2=pd?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return L2(t)})(n):n;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const{is:D$,defineProperty:F$,getOwnPropertyDescriptor:L$,getOwnPropertyNames:R$,getOwnPropertySymbols:M$,getPrototypeOf:B$}=Object,si=globalThis,B2=si.trustedTypes,W$=B2?B2.emptyScript:"",yd=si.reactiveElementPolyfillSupport,ys=(n,e)=>n,Ga={toAttribute(n,e){switch(e){case Boolean:n=n?W$: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}},vd=(n,e)=>!D$(n,e),W2={attribute:!0,type:String,converter:Ga,reflect:!1,useDefault:!1,hasChanged:vd};(Jp=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Xp=si.litPropertyMetadata)!=null||(si.litPropertyMetadata=new WeakMap);let fo=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=W2){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&&F$(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){var u;const{get:o,set:a}=(u=L$(this.prototype,e))!=null?u:{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:W2}static _$Ei(){if(this.hasOwnProperty(ys("elementProperties")))return;const e=B$(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ys("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ys("properties"))){const t=this.properties,r=[...R$(t),...M$(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(M2(o))}else e!==void 0&&t.push(M2(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 R2(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 u=(((a=r.converter)==null?void 0:a.toAttribute)!==void 0?r.converter:Ga).toAttribute(t,r.type);this._$Em=e,u==null?this.removeAttribute(o):this.setAttribute(o,u),this._$Em=null}}_$AK(e,t){var a,u,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:Ga;this._$Em=o,this[o]=(c=(d=g.fromAttribute(t,h.type))!=null?d:(u=this._$Ej)==null?void 0:u.get(o))!=null?c:null,this._$Em=null}}requestUpdate(e,t,r){var o,a;if(e!==void 0){const u=this.constructor,d=this[e];if(r!=null||(r=u.getPropertyOptions(e)),!(((o=r.hasChanged)!=null?o:vd)(d,t)||r.useDefault&&r.reflect&&d===((a=this._$Ej)==null?void 0:a.get(e))&&!this.hasAttribute(u._$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},u){var d,c,h;r&&!((d=this._$Ej)!=null?d:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(c=u!=null?u:t)!=null?c:this[e]),a!==!0||u!==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 Le(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[u,d]of this._$Ep)this[u]=d;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[u,d]of a){const{wrapped:c}=d,h=this[u];c!==!0||this._$AL.has(u)||h===void 0||this.C(u,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 u;return(u=a.hostUpdate)==null?void 0:u.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){}};fo.elementStyles=[],fo.shadowRootOptions={mode:"open"},fo[ys("elementProperties")]=new Map,fo[ys("finalized")]=new Map,yd==null||yd({ReactiveElement:fo}),((Qp=si.reactiveElementVersions)!=null?Qp:si.reactiveElementVersions=[]).push("2.1.0");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const vs=globalThis,Za=vs.trustedTypes,U2=Za?Za.createPolicy("lit-html",{createHTML:n=>n}):void 0,H2="$lit$",ai=`lit$${Math.random().toFixed(9).slice(2)}$`,z2="?"+ai,U$=`<${z2}>`,Oi=document,$s=()=>Oi.createComment(""),bs=n=>n===null||typeof n!="object"&&typeof n!="function",$d=Array.isArray,H$=n=>$d(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",bd=`[ \f\r]`,ws=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V2=/-->/g,G2=/>/g,Ti=RegExp(`>|${bd}(?:([^\\s"'>=/]+)(${bd}*=${bd}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),Z2=/'/g,j2=/"/g,q2=/^(?:script|style|textarea|title)$/i,z$=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),Me=z$(1),Rr=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),Y2=new WeakMap,Ai=Oi.createTreeWalker(Oi,129);function K2(n,e){if(!$d(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return U2!==void 0?U2.createHTML(e):e}const V$=(n,e)=>{const t=n.length-1,r=[];let o,a=e===2?"":e===3?"":"",u=ws;for(let d=0;d"?(u=o!=null?o:ws,$=-1):g[1]===void 0?$=-2:($=u.lastIndex-g[2].length,h=g[1],u=g[3]===void 0?Ti:g[3]==='"'?j2:Z2):u===j2||u===Z2?u=Ti:u===V2||u===G2?u=ws:(u=Ti,o=void 0);const m=u===Ti&&n[d+1].startsWith("/>")?" ":"";a+=u===ws?c+U$:$>=0?(r.push(h),c.slice(0,$)+H2+c.slice($)+ai+m):c+ai+($===-2?d:m)}return[K2(n,a+(n[t]||"")+(e===2?"":e===3?"":"")),r]};let wd=class Im{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let a=0,u=0;const d=e.length-1,c=this.parts,[h,g]=V$(e,t);if(this.el=Im.createElement(h,r),Ai.currentNode=this.el.content,t===2||t===3){const $=this.el.content.firstChild;$.replaceWith(...$.childNodes)}for(;(o=Ai.nextNode())!==null&&c.length0){o.textContent=Za?Za.emptyScript:"";for(let m=0;m<_;m++)o.append($[m],$s()),Ai.nextNode(),c.push({type:2,index:++a});o.append($[_],$s())}}}else if(o.nodeType===8)if(o.data===z2)c.push({type:2,index:a});else{let $=-1;for(;($=o.data.indexOf(ai,$+1))!==-1;)c.push({type:7,index:a}),$+=ai.length-1}a++}}static createElement(e,t){const r=Oi.createElement("template");return r.innerHTML=e,r}};function ho(n,e,t=n,r){var u,d,c;if(e===Rr)return e;let o=r!==void 0?(u=t._$Co)==null?void 0:u[r]:t._$Cl;const a=bs(e)?void 0:e._$litDirective$;return(o==null?void 0:o.constructor)!==a&&((d=o==null?void 0:o._$AO)==null||d.call(o,!1),a===void 0?o=void 0:(o=new a(n),o._$AT(n,t,r)),r!==void 0?((c=t._$Co)!=null?c:t._$Co=[])[r]=o:t._$Cl=o),o!==void 0&&(e=ho(n,o._$AS(n,e.values),o,r)),e}class G${constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var h;const{el:{content:t},parts:r}=this._$AD,o=((h=e==null?void 0:e.creationScope)!=null?h:Oi).importNode(t,!0);Ai.currentNode=o;let a=Ai.nextNode(),u=0,d=0,c=r[0];for(;c!==void 0;){if(u===c.index){let g;c.type===2?g=new _s(a,a.nextSibling,this,e):c.type===1?g=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(g=new Y$(a,this,e)),this._$AV.push(g),c=r[++d]}u!==(c==null?void 0:c.index)&&(a=Ai.nextNode(),u++)}return Ai.currentNode=Oi,o}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class _s{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,o){var a;this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=(a=o==null?void 0:o.isConnected)!=null?a:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ho(this,e,t),bs(e)?e===nt||e==null||e===""?(this._$AH!==nt&&this._$AR(),this._$AH=nt):e!==this._$AH&&e!==Rr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):H$(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==nt&&bs(this._$AH)?this._$AA.nextSibling.data=e:this.T(Oi.createTextNode(e)),this._$AH=e}$(e){var a;const{values:t,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=wd.createElement(K2(r.h,r.h[0]),this.options)),r);if(((a=this._$AH)==null?void 0:a._$AD)===o)this._$AH.p(t);else{const u=new G$(o,this),d=u.u(this.options);u.p(t),this.T(d),this._$AH=u}}_$AC(e){let t=Y2.get(e.strings);return t===void 0&&Y2.set(e.strings,t=new wd(e)),t}k(e){$d(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const a of e)o===t.length?t.push(r=new _s(this.O($s()),this.O($s()),this,this.options)):r=t[o],r._$AI(a),o++;o2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=nt}_$AI(e,t=this,r,o){const a=this.strings;let u=!1;if(a===void 0)e=ho(this,e,t,0),u=!bs(e)||e!==this._$AH&&e!==Rr,u&&(this._$AH=e);else{const d=e;let c,h;for(e=a[0],c=0;c{var a,u;const r=(a=t==null?void 0:t.renderBefore)!=null?a:e;let o=r._$litPart$;if(o===void 0){const d=(u=t==null?void 0:t.renderBefore)!=null?u:null;r._$litPart$=o=new _s(e.insertBefore($s(),d),d,void 0,t!=null?t:{})}return o._$AI(n),o};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const ki=globalThis;let ui=class extends fo{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=K$(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 Rr}};ui._$litElement$=!0,ui.finalized=!0,(t3=ki.litElementHydrateSupport)==null||t3.call(ki,{LitElement:ui});const xd=ki.litElementPolyfillSupport;xd==null||xd({LitElement:ui}),((n3=ki.litElementVersions)!=null?n3:ki.litElementVersions=[]).push("4.2.0");const J$=md` 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; } `,J2={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 Mr{static __createGlobalStyleNode(){const e=document.createElement("style");return e.setAttribute("data-overlays",""),e.textContent=J$.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,Mr.__globalStyleNode||(Mr.__globalStyleNode=Mr.__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,Mr.__globalStyleNode&&(document.head.removeChild(Mr.__globalStyleNode),Mr.__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}=J2;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}=J2;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())}}Mr.__globalStyleNode=void 0;const Ed=Symbol.for("lion::SingletonManagerClassStorage"),Sd=globalThis||window;class X${constructor(){this._map=Sd[Ed]?Sd[Ed]:Sd[Ed]=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 Q$=new X$().get("@lion/ui::overlays::0.x")||new Mr;function Cd(){let n=document.activeElement||document.body;for(;n&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}const X2=({visibility:n,display:e})=>n!=="hidden"&&e!=="none",eb=({display:n})=>n==="contents";function tb(n){if(!n||!n.isConnected||!X2(n.style))return!1;const e=window.getComputedStyle(n);return X2(e)?eb(e)?!0:!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length):!1}function nb(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 rb(n,e){const t=[];for(;n.length>0&&e.length>0;)nb(n[0],e[0])?t.push(e.shift()):t.push(n.shift());return[...t,...n,...e]}function Nd(n){const e=n.length;if(e<2)return n;const t=Math.ceil(e/2),r=Nd(n.slice(0,t)),o=Nd(n.slice(t));return rb(r,o)}const Od="matches"in Element.prototype?"matches":"msMatchesSelector";function ib(n){return n[Od]("input, select, textarea, button, object")?n[Od](":not([disabled])"):n[Od]("a[href], area[href], iframe, [tabindex], [contentEditable]")}function ob(n){return ib(n)?Number(n.getAttribute("tabindex")||0):-1}function sb(n){if(n.localName==="slot")return n.assignedNodes({flatten:!0});const{children:e}=n.shadowRoot||n;return e||[]}function ab(n){return n.nodeType!==Node.ELEMENT_NODE?!1:n.localName==="slot"?!0:tb(n)}function Q2(n,e){if(!ab(n))return!1;const t=n,r=ob(t);let o=r>0;r>=0&&e.push(t);const a=sb(t);for(let u=0;u0&&r(u)}}return n instanceof HTMLElement&&n.shadowRoot&&(t=qa(n.shadowRoot,e),t)?!0:(r(n),t)}const ub={enter:13,space:32,escape:27,tab:9};function lb(n,e){const t=ep(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,u=Cd();u===n||t.includes(u)&&a!==u||(e.preventDefault(),o.focus())}function db(n){const e=ep(n),t=e.find(_=>_.hasAttribute("autofocus"))||n;let r,o;t===n&&(n.tabIndex=-1,n.style.setProperty("outline","none")),t.focus();function a(_){_.keyCode===ub.tab&&lb(n,_)}function u(){r=document.createElement("div"),r.style.display="none",r.setAttribute("data-is-tab-detection-element",""),n.insertBefore(r,n.children[0]),o=new MutationObserver(_=>{for(const m of _)if(m.type==="childList"){const O=!Array.from(n.children).find(A=>A.hasAttribute("data-is-tab-detection-element")),P=Array.from(m.addedNodes).find(A=>A instanceof HTMLElement&&A.hasAttribute("data-is-tab-detection-element"));O&&!P&&(o.disconnect(),u())}}),o.observe(n,{childList:!0})}function d(){return r.compareDocumentPosition(document.activeElement)===Node.DOCUMENT_POSITION_PRECEDING}function c({resetToRoot:_=!1}={}){if(qa(n,Cd()))return;let m;_?m=n:m=e[d()?0:e.length-1],m&&m.focus()}function h(){window.removeEventListener("focusin",h),c()}function g(){setTimeout(()=>{qa(n,Cd())||c({resetToRoot:!0})}),window.addEventListener("focusin",h)}function $(){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),u(),{disconnect:$}}const tp=md` .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; } `,po={supportsAdoptingStyleSheets:window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,adoptStyle:void 0,adoptStyles:void 0},Td=new Map;function cb(n){return Array.from(n.cssRules).map(e=>e.cssText).join("")}function fb(n,e,{teardown:t=!1}={}){const r=n===document?document.body:n,o=e.cssText||cb(e);if(t){const a=Array.from(r.querySelectorAll("style"));for(const u of a)if(u.textContent===o){u.remove();break}}else{const a=document.createElement("style"),u=window.litNonce;u!==void 0&&a.setAttribute("nonce",u),a.textContent=o,r.appendChild(a)}}function hb(n,e,{teardown:t=!1}={}){let r=!1;Td.has(n)||Td.set(n,[]);const o=Td.get(n),a=o.find(u=>e===u);return a&&t?o.splice(o.indexOf(e),1):!a&&!t?o.push(e):(a&&!t||!a&&t)&&(r=!0),{haltFurtherExecution:r}}function pb(n,e,{teardown:t=!1}={}){const{haltFurtherExecution:r}=hb(n,e,{teardown:t});if(r)return;if(!po.supportsAdoptingStyleSheets){fb(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 gb(n,e,{teardown:t=!1}={}){for(const r of e)po.adoptStyle(n,r,{teardown:t})}po.adoptStyle=pb,po.adoptStyles=gb;function mb({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 yb(){return Le(this,null,function*(){return Promise.resolve().then(()=>y_)})}class Pi extends EventTarget{constructor(e={},t=Q$){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=we(C(C(C({},this._defaultConfig),this.__sharedConfig),e),{popperConfig:we(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"&&(Pi.popperModule||(Pi.popperModule=yb())),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"?po.adoptStyle(t,tp):e==="teardown"&&po.adoptStyle(t,tp,{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"),mb({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 Le(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 Le(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,u=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(u)),document.body.attributeStyleMap.set("margin-bottom",CSS.px(d))):(document.body.style.marginRight=`${u}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 Le(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 Le(this,null,function*(){})}_transitionHide(r){return Le(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 Le(this,null,function*(){})}_transitionShow(e){return Le(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 Le(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=db(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 Le(this,null,function*(){var e;if(this._popper&&(this._popper.destroy(),this._popper=void 0),Pi.popperModule!==void 0){const{createPopper:t}=yield Pi.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}}Pi.popperModule=void 0;const np=new WeakMap;function vb(n,e){let t=e;for(;t;){if(np.get(t)===n)return!0;t=Object.getPrototypeOf(t)}return!1}function $b(n){return e=>{if(vb(n,e))return e;const t=n(e);return np.set(t,n),t}}function rp(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=>rp(n[a],e[a]);return t.every(o)}const bb=$b(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=!rp(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:u}){var c,h,g,$;const d=this._defineOverlayConfig()||{};return new Pi(we(C(C({contentNode:t,invokerNode:r,referenceNode:o,backdropNode:a,contentWrapperNode:u},d),this.config),{popperConfig:we(C(C({},d.popperConfig||{}),((c=this.config)==null?void 0:c.popperConfig)||{}),{modifiers:[...((h=d.popperConfig)==null?void 0:h.modifiers)||[],...(($=(g=this.config)==null?void 0:g.popperConfig)==null?void 0:$.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 Le(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 Le(this,null,function*(){yield this._overlayCtrl.toggle()})}open(){return Le(this,null,function*(){yield this._overlayCtrl.show()})}close(){return Le(this,null,function*(){yield this._overlayCtrl.hide()})}repositionOverlay(){const t=this._overlayCtrl;t.placementMode==="local"&&t._popper&&t._popper.update()}});function wb(){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 _b=()=>C({placementMode:"global",viewportConfig:{placement:"center"},hasBackdrop:!0,preventsScroll:!0,trapsKeyboardFocus:!0,hidesOnEsc:!0,handlesAccessibility:!0},wb()),xb=L2('*,: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-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-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%}.w-screen{width:100vw}.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-row{flex-direction:row}.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-\\[90vh\\]{max-height:90vh}.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}.max-modal-desktop\\:\\!w-screen{width:100vw!important}}@media (prefers-color-scheme: dark){.dark\\:text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}}'),Ya=n=>{class e extends n{connectedCallback(){super.connectedCallback(),this.shadowRoot&&R2(this.shadowRoot,[xb])}}return e};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const li=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 Eb={attribute:!0,type:String,converter:Ga,reflect:!1,hasChanged:vd},Sb=(n=Eb,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:u}=t;return{set(d){const c=e.get.call(this);e.set.call(this,d),this.requestUpdate(u,c,n)},init(d){return d!==void 0&&this.C(u,void 0,n,d),d}}}if(r==="setter"){const{name:u}=t;return function(d){const c=this[u];e.call(this,d),this.requestUpdate(u,c,n)}}throw Error("Unsupported decorator location: "+r)};function B(n){return(e,t)=>typeof t=="object"?Sb(n,e,t):((r,o,a)=>{const u=o.hasOwnProperty(a);return o.constructor.createProperty(a,r),u?Object.getOwnPropertyDescriptor(o,a):void 0})(n,e,t)}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function di(n){return B(we(C({},n),{state:!0,attribute:!1}))}var Cb=Object.defineProperty,Nb=Object.getOwnPropertyDescriptor,go=(n,e,t,r)=>{for(var o=r>1?void 0:r?Nb(e,t):e,a=n.length-1,u;a>=0;a--)(u=n[a])&&(o=(r?u(e,t,o):u(o))||o);return r&&o&&Cb(e,t,o),o},Ad=(n=>(n[n.MANUAL=0]="MANUAL",n[n.TIMED=1]="TIMED",n))(Ad||{});let ci=class extends Ya(bb(ui)){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",we(C({},_b()),{hidesOnOutsideEsc:this.hideOnEsc,hidesOnOutsideClick:this.hideOnOutsideClick,backdropNode:n})}connectedCallback(){super.connectedCallback(),this.trigger===1&&setTimeout(()=>{this.toggle()},this.openDelay)}render(){return Me` ${this.getBackdropStyles()}
${this.closeButton?this.renderCloseIcon():""}
`}renderCloseIcon(){return Me` `}getBackdropStyles(){return Me` `}};go([B({type:Number,attribute:"trigger"})],ci.prototype,"trigger",2),go([B({type:Number,attribute:"open-delay"})],ci.prototype,"openDelay",2),go([B({type:Boolean,attribute:"close-button"})],ci.prototype,"closeButton",2),go([B({type:Boolean,attribute:"hide-on-esc"})],ci.prototype,"hideOnEsc",2),go([B({type:Boolean,attribute:"hide-on-outside-click"})],ci.prototype,"hideOnOutsideClick",2),ci=go([li("givebutter-dialog")],ci);const Ob=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterDialog(){return ci},GivebutterDialogMode:Ad},Symbol.toStringTag,{value:"Module"}));/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let ip=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(u=>{this.handleChanges(u),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 Le(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 Tb{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 Me` `}heartIcon(){return Me` `}giftIcon(){return Me` `}givingHandsIcon(){return Me` `}}class op{static loadObjectFromLocalStorage(e,t){if(!window.localStorage)return vt.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 vt.error(r),{}}}static saveObjectToLocalStorage(e,t){if(!window.localStorage)return vt.warn("localStorage is not available. Can't save data."),!1;try{return window.localStorage.setItem(e,JSON.stringify(t)),!0}catch(r){return vt.error(r),!1}}}const sp="givebutter.analytics:0.0.0",xs={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 Ab{constructor(){this._filterTemporaryKeys=function(e){e=C({},e);for(const t of Object.keys(e))t.startsWith("gb.element.")&&(Nt.isLocalEnv()&&vt.debug("_filterTemporaryKeys) Filtering "+t),delete e[t]),t.toLowerCase().startsWith(xs.temporaryKeyPrefix)&&(Nt.isLocalEnv()&&vt.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=op.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+xs.maxAge*60*1e3,f:r};let a=this.saveToStorage();return r&&this.forwardToGa(function(u){u.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){Nt.isLocalEnv()&&vt.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(){Nt.isLocalEnv()&&vt.debug("saveToStorage() - userAllowsTracking = false");const e=this._filterTemporaryKeys(this.analyticsData);return op.saveObjectToLocalStorage(sp,e)}loadFromUrl(e){const t=Vo.getQueryParams(e);for(let r in t)if(r.toLowerCase().startsWith(xs.qsPrefix)){const o=t[r];Nt.isLocalEnv()&&vt.debug("loadFromUrl() qsPrefix match: "+r+" = "+o),this.set(r,o,!0)}for(const r of xs.qsThirdPartyKeys)t.hasOwnProperty(r)&&(Nt.isLocalEnv()&&vt.debug("loadFromUrl() qsThirdPartyKeys match: "+r+" = "+t[r]),this.set(r,t[r],!0));for(const r of xs.widgetFormKeys)t.hasOwnProperty(r)?(Nt.isLocalEnv()&&vt.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)Nt.isLocalEnv()&&vt.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,u=e[o];r.push(u!==null&&typeof u=="object"?this.objToQueryString(u,a):`${encodeURIComponent(a)}=${encodeURIComponent(u)}`)}return r.join("&")}}function ap(n){return n===null||typeof n=="undefined"}class Br{static string(e,t,r,o){return ap(t)?!1:o.includes(t)?t!==r:(vt.error(`Attribute ${e} is invalid. Accepted: ${o.join(", ")}.`),!1)}static number(e,t,r){return ap(t)?!1:typeof t!="number"||isNaN(t)?(vt.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 vt.error(a.charAt(0).toUpperCase()+a.slice(1)),!1}return!0}}var kb=Object.defineProperty,Ka=(n,e,t,r)=>{for(var o=void 0,a=n.length-1,u;a>=0;a--)(u=n[a])&&(o=u(e,t,o)||o);return o&&kb(e,t,o),o},mo=(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))(mo||{});const Es=Ya((n=>{class e extends n{constructor(){super(...arguments),this.analytics=Ab.getGivebutterAnalytics(),this.componentType=null,this.account=Nt.getAccountId(),this.campaign="",this.widgetId="",this.embedUrl=""}shouldUpdate(r){const o=this.componentType===1||this.componentType===3?["account","id"]:["account","campaign"];return Br.checkRequiredProps(this,r,o)}}return Ka([B({type:String,attribute:"account"})],e.prototype,"account"),Ka([B({type:String,attribute:"campaign"})],e.prototype,"campaign"),Ka([B({type:String,attribute:"id"})],e.prototype,"widgetId"),Ka([B({type:String,attribute:"embed-url"})],e.prototype,"embedUrl"),e})(ui)),Qd=class Qd{};Qd._boolean={fromAttribute:e=>e==="true",toAttribute:e=>e?"true":"false"};let ir=Qd;/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const br=n=>n!=null?n:nt;/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Pb=n=>n.strings===void 0;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Ss={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Cs=n=>(...e)=>({_$litDirective$:n,values:e});let Ja=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 Ns=(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),Ns(o,e);return!0},Xa=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)},up=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),Fb(e)}};function Ib(n){this._$AN!==void 0?(Xa(this),this._$AM=n,up(this)):this._$AM=n}function Db(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==Ss.CHILD&&((e=n._$AP)!=null||(n._$AP=Db),(t=n._$AQ)!=null||(n._$AQ=Ib))};class lp extends Ja{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),up(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&&(Ns(this,e),Xa(this))}setValue(e){if(Pb(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 kd=()=>new Lb;class Lb{}const Pd=new WeakMap,yo=Cs(class extends lp{render(n){return nt}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)),nt}rt(n){var e;if(this.isConnected||(n=void 0),typeof this.G=="function"){const t=(e=this.ht)!=null?e:globalThis;let r=Pd.get(t);r===void 0&&(r=new WeakMap,Pd.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=Pd.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 dp="important",Rb=" !"+dp,or=Cs(class extends Ja{constructor(n){var e;if(super(n),n.type!==Ss.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(Rb);r.includes("-")||a?t.setProperty(r,a?o.slice(0,-11):o,a?dp:""):t[r]=o}}return Rr}});var Mb=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,ft=(n,e,t,r)=>{for(var o=r>1?void 0:r?Bb(e,t):e,a=n.length-1,u;a>=0;a--)(u=n[a])&&(o=(r?u(e,t,o):u(o))||o);return r&&o&&Mb(e,t,o),o};const cp="z-[2147483598]";var fp=(n=>(n.LINK="link",n.MODAL="modal",n))(fp||{}),hp=(n=>(n.GIFT="gift",n.GIVING_HANDS="giving_hands",n.HEART="heart",n.NONE="none",n.TICKET="ticket",n))(hp||{}),pp=(n=>(n.LEFT="left",n.RIGHT="right",n))(pp||{}),gp=(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))(gp||{});let rt=class extends Es{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.contentRef=kd(),this.observer=new ip(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=mo.BUTTON}set embedUrl(n){this._embedUrl=n}get embedUrl(){return this._embedUrl}set type(n){Br.string("type",n,this._type,Object.values(fp))&&(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){Br.string("icon",n,this._icon,Object.values(hp))&&(this._icon=n)}get icon(){return this._icon}set iconPosition(n){Br.string("icon-position",n,this._iconPosition,Object.values(pp))&&(this._iconPosition=n)}get iconPosition(){return this._iconPosition}set dropShadow(n){this._dropShadow=n}get dropShadow(){return this._dropShadow}set borderRadius(n){Br.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){Br.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){Br.string("position",n,this._position,Object.values(gp))&&(this._position=n)}get position(){return this._position}set verticalOffset(n){Br.number("vertical-offset",n,this._verticalOffset)&&(this._verticalOffset=n)}get verticalOffset(){return this._verticalOffset}set horizontalOffset(n){Br.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}`),Me` `}return Me`
${this.isOpen?Me` `:""}
`}renderLabel(){return this.iconPosition==="left"?Me`${this.showIcon()} ${this.showLabel()}`:Me`${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?"":Me`${this.label}`}showIcon(){return new Tb(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}};ft([di()],rt.prototype,"isOpen",2),ft([B({type:String,attribute:"embed-url"})],rt.prototype,"embedUrl",1),ft([B({type:String,attribute:"type"})],rt.prototype,"type",1),ft([B({type:Boolean,attribute:"hide-button"})],rt.prototype,"hideButton",1),ft([B({type:String,attribute:"label"})],rt.prototype,"label",1),ft([B({type:Boolean,attribute:"hide-label"})],rt.prototype,"hideLabel",1),ft([B({type:String,attribute:"label-color"})],rt.prototype,"labelColor",1),ft([B({type:String,attribute:"background-color"})],rt.prototype,"backgroundColor",1),ft([B({type:String,attribute:"icon"})],rt.prototype,"icon",1),ft([B({type:String,attribute:"icon-position"})],rt.prototype,"iconPosition",1),ft([B({type:Boolean,attribute:"drop-shadow",converter:ir._boolean})],rt.prototype,"dropShadow",1),ft([B({type:Number,attribute:"border-radius"})],rt.prototype,"borderRadius",1),ft([B({type:String,attribute:"border-color"})],rt.prototype,"borderColor",1),ft([B({type:Number,attribute:"border-width"})],rt.prototype,"borderWidth",1),ft([B({type:String,attribute:"button-class"})],rt.prototype,"buttonClass",1),ft([B({type:String,attribute:"position"})],rt.prototype,"position",1),ft([B({type:Number,attribute:"vertical-offset"})],rt.prototype,"verticalOffset",1),ft([B({type:Number,attribute:"horizontal-offset"})],rt.prototype,"horizontalOffset",1),ft([B({type:String,attribute:"button-transform-show"})],rt.prototype,"buttonTransformShow",1),ft([B({type:String,attribute:"button-transform-hide"})],rt.prototype,"buttonTransformHide",1),ft([B({type:String,attribute:"max-width"})],rt.prototype,"maxWidth",1),rt=ft([li("givebutter-button")],rt);const Wb=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterButton(){return rt}},Symbol.toStringTag,{value:"Module"}));var mp={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,u="message",d=u.length,c="[iFrameSizer]",h=c.length,g=null,$=window.requestAnimationFrame,_=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),m={},O=null,P=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 A(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function W(E,U,ne){E.addEventListener(U,ne,!1)}function q(E,U,ne){E.removeEventListener(U,ne,!1)}function Z(){var E=["moz","webkit","o","ms"],U;for(U=0;Uue&&(mt=ue,R(ie,"Set "+Ee+" to max value")),_e[Ee]=""+mt}function He(){function V(){function Ee(){var At=0,kt=!1;for(R(ie,"Checking connection is from allowed list of origins: "+$e);At<$e.length;At++)if($e[At]===ue){kt=!0;break}return kt}function mt(){var At=m[ie]&&m[ie].remoteHost;return R(ie,"Checking connection is from: "+At),ue===At}return $e.constructor===Array?Ee():mt()}var ue=E.origin,$e=m[ie]&&m[ie].checkOrigin;if($e&&""+ue!="null"&&!V())throw new Error("Unexpected message received from: "+ue+" for "+_e.iframe.id+". Message was: "+E.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}function St(){return c===(""+Qt).slice(0,h)&&Qt.slice(h).split(":")[0]in m}function Tt(){var V=_e.type in{true:1,false:1,undefined:1};return V&&R(ie,"Ignoring init message from meta parent page"),V}function zt(V){return Qt.slice(Qt.indexOf(":")+d+V)}function Ae(V){R(ie,"onMessage passed: {iframe: "+_e.iframe.id+", message: "+V+"}"),Sn("onMessage",{iframe:_e.iframe,message:JSON.parse(V)}),R(ie,"--")}function lr(){var V=document.body.getBoundingClientRect(),ue=_e.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:ue.height,iframeWidth:ue.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(ue.top-V.top,10),offsetLeft:parseInt(ue.left-V.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})}function Jt(V,ue){function $e(){Ge("Send Page Info","pageInfo:"+lr(),V,ue)}ar($e,32,ue)}function Xt(){function V(mt,At){function kt(){m[Ee]?Jt(m[Ee].iframe,Ee):ue()}["scroll","resize"].forEach(function(zr){R(Ee,mt+zr+" listener for sendPageInfo"),At(window,zr,kt)})}function ue(){V("Remove ",q)}function $e(){V("Add ",W)}var Ee=ie;$e(),m[Ee]&&(m[Ee].stopPageInfo=ue)}function Cr(){m[ie]&&m[ie].stopPageInfo&&(m[ie].stopPageInfo(),delete m[ie].stopPageInfo)}function Nr(){var V=!0;return _e.iframe===null&&(X(ie,"IFrame ("+_e.id+") not found"),V=!1),V}function ee(V){var ue=V.getBoundingClientRect();return Et(ie),{x:Math.floor(Number(ue.left)+Number(g.x)),y:Math.floor(Number(ue.top)+Number(g.y))}}function te(V){function ue(){g=At,Qe(),R(ie,"--")}function $e(){return{x:Number(_e.width)+mt.x,y:Number(_e.height)+mt.y}}function Ee(){window.parentIFrame?window.parentIFrame["scrollTo"+(V?"Offset":"")](At.x,At.y):X(ie,"Unable to scroll to requested position, window.parentIFrame not found")}var mt=V?ee(_e.iframe):{x:0,y:0},At=$e();R(ie,"Reposition requested from iFrame (offset x:"+mt.x+" y:"+mt.y+")"),window.top===window.self?ue():Ee()}function Qe(){Sn("onScroll",g)===!1?Ve():ot(ie)}function gt(V){function ue(){var kt=ee(At);R(ie,"Moving to in page link (#"+Ee+") at x: "+kt.x+" y: "+kt.y),g={x:kt.x,y:kt.y},Qe(),R(ie,"--")}function $e(){window.parentIFrame?window.parentIFrame.moveToAnchor(Ee):R(ie,"In page link #"+Ee+" not found and window.parentIFrame not found")}var Ee=V.split("#")[1]||"",mt=decodeURIComponent(Ee),At=document.getElementById(mt)||document.getElementsByName(mt)[0];At?ue():window.top===window.self?R(ie,"In page link #"+Ee+" not found"):$e()}function Vt(V){var ue={};if(Number(_e.width)===0&&Number(_e.height)===0){var $e=zt(9).split(":");ue={x:$e[1],y:$e[0]}}else ue={x:_e.width,y:_e.height};Sn(V,{iframe:_e.iframe,screenX:Number(ue.x),screenY:Number(ue.y),type:_e.type})}function Sn(V,ue){return Ke(ie,V,ue)}function dr(){switch(m[ie]&&m[ie].firstRun&&Hr(),_e.type){case"close":{$t(_e.iframe);break}case"message":{Ae(zt(6));break}case"mouseenter":{Vt("onMouseEnter");break}case"mouseleave":{Vt("onMouseLeave");break}case"autoResize":{m[ie].autoResize=JSON.parse(zt(9));break}case"scrollTo":{te(!1);break}case"scrollToOffset":{te(!0);break}case"pageInfo":{Jt(m[ie]&&m[ie].iframe,ie),Xt();break}case"pageInfoStop":{Cr();break}case"inPageLink":{gt(zt(9));break}case"reset":{pt(_e);break}case"init":{U(),Sn("onInit",_e.iframe);break}default:Number(_e.width)===0&&Number(_e.height)===0?X("Unsupported message received ("+_e.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):U()}}function Fi(V){var ue=!0;return m[V]||(ue=!1,X(_e.type+" No settings for "+V+". Message was: "+Qt)),ue}function Li(){for(var V in m)Ge("iFrame requested init",hn(V),m[V].iframe,V)}function Hr(){m[ie]&&(m[ie].firstRun=!1)}var Qt=E.data,_e={},ie=null;Qt==="[iFrameResizerChild]Ready"?Li():St()?(_e=ne(),ie=_e.id,m[ie]&&(m[ie].loaded=!0),!Tt()&&Fi(ie)&&(R(ie,"Received: "+Qt),Nr()&&He()&&dr())):ge(ie,"Ignored: "+Qt)}function Ke(E,U,ne){var Q=null,ve=null;if(m[E])if(Q=m[E][U],typeof Q=="function")ve=Q(ne);else throw new TypeError(U+" on iFrame["+E+"] is not a function");return ve}function De(E){var U=E.id;delete m[U]}function $t(E){var U=E.id;if(Ke(U,"onClose",U)===!1){R(U,"Close iframe cancelled by onClose event");return}R(U,"Removing iFrame: "+U);try{E.parentNode&&E.parentNode.removeChild(E)}catch(ne){X(ne)}Ke(U,"onClosed",U),R(U,"--"),De(E),r&&(r.disconnect(),r=null)}function Et(E){g===null&&(g={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset},R(E,"Get page position: "+g.x+","+g.y))}function ot(E){g!==null&&(window.scrollTo(g.x,g.y),R(E,"Set page position: "+g.x+","+g.y),Ve())}function Ve(){g=null}function pt(E){function U(){on(E),Ge("reset","reset",E.iframe,E.id)}R(E.id,"Size reset requested by "+(E.type==="init"?"host page":"iFrame")),Et(E.id),Xe(U,E,"reset")}function on(E){function U(re){if(!E.id){R("undefined","messageData id not set");return}E.iframe.style[re]=E[re]+"px",R(E.id,"IFrame ("+ve+") "+re+" set to "+E[re]+"px")}function ne(re){!a&&E[re]==="0"&&(a=!0,R(ve,"Hidden iFrame detected, creating visibility listener"),Bt())}function Q(re){U(re),ne(re)}var ve=E.iframe.id;m[ve]&&(m[ve].sizeHeight&&Q("height"),m[ve].sizeWidth&&Q("width"))}function Xe(E,U,ne){ne!==U.type&&$&&!window.jasmine?(R(U.id,"Requesting animation frame"),$(E)):E()}function Ge(E,U,ne,Q,ve){function re(){var Ae=m[Q]&&m[Q].targetOrigin;R(Q,"["+E+"] Sending msg to iframe["+Q+"] ("+U+") targetOrigin: "+Ae),ne.contentWindow.postMessage(c+U,Ae)}function He(){X(Q,"["+E+"] IFrame("+Q+") not found")}function St(){ne&&"contentWindow"in ne&&ne.contentWindow!==null?re():He()}function Tt(){function Ae(){m[Q]&&!m[Q].loaded&&!zt&&(zt=!0,X(Q,"IFrame has not responded within "+m[Q].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}ve&&m[Q]&&m[Q].warningTimeout&&(m[Q].msgTimeout=setTimeout(Ae,m[Q].warningTimeout))}var zt=!1;Q=Q||ne.id,m[Q]&&(St(),Tt())}function hn(E){return E+":"+m[E].bodyMarginV1+":"+m[E].sizeWidth+":"+m[E].log+":"+m[E].interval+":"+m[E].enablePublicMethods+":"+m[E].autoResize+":"+m[E].bodyMargin+":"+m[E].heightCalculationMethod+":"+m[E].bodyBackground+":"+m[E].bodyPadding+":"+m[E].tolerance+":"+m[E].inPageLinks+":"+m[E].resizeFrom+":"+m[E].widthCalculationMethod+":"+m[E].mouseEvents}function Un(E){return typeof E=="number"}function sn(E,U){function ne(){function te(gt){var Vt=m[ee][gt];Vt!==1/0&&Vt!==0&&(E.style[gt]=Un(Vt)?Vt+"px":Vt,R(ee,"Set "+gt+" = "+E.style[gt]))}function Qe(gt){if(m[ee]["min"+gt]>m[ee]["max"+gt])throw new Error("Value for min"+gt+" can not be greater than max"+gt)}Qe("Height"),Qe("Width"),te("maxHeight"),te("minHeight"),te("maxWidth"),te("minWidth")}function Q(){var te=U&&U.id||P.id+t++;return document.getElementById(te)!==null&&(te+=t++),te}function ve(te){if(typeof te!="string")throw new TypeError("Invaild id for iFrame. Expected String");return te===""&&(E.id=te=Q(),o=(U||{}).log,R(te,"Added missing iframe ID: "+te+" ("+E.src+")")),te}function re(){switch(R(ee,"IFrame scrolling "+(m[ee]&&m[ee].scrolling?"enabled":"disabled")+" for "+ee),E.style.overflow=(m[ee]&&m[ee].scrolling)===!1?"hidden":"auto",m[ee]&&m[ee].scrolling){case"omit":break;case!0:{E.scrolling="yes";break}case!1:{E.scrolling="no";break}default:E.scrolling=m[ee]?m[ee].scrolling:"no"}}function He(){(typeof(m[ee]&&m[ee].bodyMargin)=="number"||(m[ee]&&m[ee].bodyMargin)==="0")&&(m[ee].bodyMarginV1=m[ee].bodyMargin,m[ee].bodyMargin=""+m[ee].bodyMargin+"px")}function St(){var te=m[ee]&&m[ee].firstRun,Qe=m[ee]&&m[ee].heightCalculationMethod in _;!te&&Qe&&pt({iframe:E,height:0,width:0,type:"init"})}function Tt(){m[ee]&&(m[ee].iframe.iFrameResizer={close:$t.bind(null,m[ee].iframe),removeListeners:De.bind(null,m[ee].iframe),resize:Ge.bind(null,"Window resize","resize",m[ee].iframe),moveToAnchor:function(te){Ge("Move to anchor","moveToAnchor:"+te,m[ee].iframe,ee)},sendMessage:function(te){te=JSON.stringify(te),Ge("Send Message","message:"+te,m[ee].iframe,ee)}})}function zt(te){function Qe(){Ge("iFrame.onload",te,E,e,!0),St()}function gt(Sn){if(!E.parentNode)return null;var dr=new Sn(function(Fi){Fi.forEach(function(Li){var Hr=Array.prototype.slice.call(Li.removedNodes);Hr.forEach(function(Qt){Qt===E&&$t(E)})})});return dr.observe(E.parentNode,{childList:!0}),dr}var Vt=A();Vt&&(r=gt(Vt)),W(E,"load",Qe),Ge("init",te,E,e,!0)}function Ae(te){if(typeof te!="object")throw new TypeError("Options is not an object")}function lr(te){for(var Qe in P)Object.prototype.hasOwnProperty.call(P,Qe)&&(m[ee][Qe]=Object.prototype.hasOwnProperty.call(te,Qe)?te[Qe]:P[Qe])}function Jt(te){return te===""||te.match(/^(about:blank|javascript:|file:\/\/)/)!==null?"*":te}function Xt(te){var Qe=te.split("Callback");if(Qe.length===2){var gt="on"+Qe[0].charAt(0).toUpperCase()+Qe[0].slice(1);this[gt]=this[te],delete this[te],X(ee,"Deprecated: '"+te+"' has been renamed '"+gt+"'. The old method will be removed in the next major version.")}}function Cr(te){te=te||{},m[ee]=Object.create(null),m[ee].iframe=E,m[ee].firstRun=!0,m[ee].remoteHost=E.src&&E.src.split("/").slice(0,3).join("/"),Ae(te),Object.keys(te).forEach(Xt,te),lr(te),m[ee]&&(m[ee].targetOrigin=m[ee].checkOrigin===!0?Jt(m[ee].remoteHost):"*")}function Nr(){return ee in m&&"iFrameResizer"in E}var ee=ve(E.id);Nr()?X(ee,"Ignored iFrame, already setup."):(Cr(U),re(),ne(),He(),zt(hn(ee)),Tt())}function at(E,U){O===null&&(O=setTimeout(function(){O=null,E()},U))}var Mt={};function ar(E,U,ne){Mt[ne]||(Mt[ne]=setTimeout(function(){Mt[ne]=null,E()},U))}function Bt(){function E(){function ve(re){function He(Tt){return(m[re]&&m[re].iframe.style[Tt])==="0px"}function St(Tt){return Tt.offsetParent!==null}m[re]&&St(m[re].iframe)&&(He("height")||He("width"))&&Ge("Visibility change","resize",m[re].iframe,re)}Object.keys(m).forEach(function(re){ve(re)})}function U(ve){R("window","Mutation observed: "+ve[0].target+" "+ve[0].type),at(E,16)}function ne(){var ve=document.querySelector("body"),re={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},He=new Q(U);He.observe(ve,re)}var Q=A();Q&&ne()}function pn(E){function U(){En("Window "+E,"resize")}R("window","Trigger event: "+E),at(U,16)}function xn(){function E(){En("Tab Visible","resize")}document.visibilityState!=="hidden"&&(R("document","Trigger event: Visibility change"),at(E,16))}function En(E,U){function ne(Q){return m[Q]&&m[Q].resizeFrom==="parent"&&m[Q].autoResize&&!m[Q].firstRun}Object.keys(m).forEach(function(Q){ne(Q)&&Ge(E,U,m[Q].iframe,Q)})}function ur(){W(window,"message",Ie),W(window,"resize",function(){pn("resize")}),W(document,"visibilitychange",xn),W(document,"-webkit-visibilitychange",xn)}function Sr(){function E(Q,ve){function re(){if(ve.tagName){if(ve.tagName.toUpperCase()!=="IFRAME")throw new TypeError("Expected ${this.renderPoweredByGivebutter()} `}renderPoweredByGivebutter(){return this.showPoweredByGivebutter?Me` `:""}iframeChanged(n){n&&(this.iframe=n,setTimeout(()=>zb.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{hidden:this.isLoading,[this.iframeClass]:!0,"w-full":!0,"rounded-t-2xl":this.showBorder,"rounded-b-2xl":this.showBorder&&!this.showPoweredByGivebutter,"bg-white":!0,border:this.showBorder,"border-gray-300":this.showBorder,"border-b-gray-100":this.showBorder&&this.showPoweredByGivebutter}}getIframeStyles(){return{maxWidth:this.maxWidth,maxHeight:this.maxHeight}}renderError(){return Me`
Warning
Uh-oh!

There was an error loading this widget.

Please check your widget
configuration.

Givebutter logo Powered by Givebutter
`}};Rn([di()],dn.prototype,"isLoading",2),Rn([B({type:String})],dn.prototype,"src",2),Rn([B({type:Boolean,converter:ir._boolean})],dn.prototype,"overrideIsLoading",2),Rn([B({type:Boolean,converter:ir._boolean})],dn.prototype,"showPoweredByGivebutter",2),Rn([B({type:Boolean,converter:ir._boolean})],dn.prototype,"showBorder",2),Rn([B({type:String})],dn.prototype,"error",2),Rn([B({type:Boolean,converter:ir._boolean})],dn.prototype,"closable",2),Rn([B({type:String,attribute:"max-width"})],dn.prototype,"maxWidth",2),Rn([B({type:String,attribute:"max-height"})],dn.prototype,"maxHeight",2),Rn([B({type:String,attribute:"iframe-class"})],dn.prototype,"iframeClass",2),Rn([B({type:String,attribute:"footer-class"})],dn.prototype,"footerClass",2),dn=Rn([li("givebutter-iframe")],dn);const Zb=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterIframe(){return dn}},Symbol.toStringTag,{value:"Module"}));var Id=(n=>(n.CHANNEL_SETTINGS="channel-settings",n.BUTTON_SETTINGS="button-settings",n))(Id||{}),wr=(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))(wr||{}),Dd=(n=>(n.CLOSE_OVERLAY="close-overlay",n))(Dd||{});const jb=5*60*1e3;class Qa{constructor({host:e,queryFn:t,cacheTime:r=jb,retryCount:o=3,onSuccess:a,onError:u,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=u,this.shouldStopInterval=d}hostConnected(){return Le(this,null,function*(){yield this.fetchData(),this.setRefetchInterval(),window.addEventListener("focus",this.handleWindowFocus)})}hostDisconnected(){this.stopInterval(),window.removeEventListener("focus",this.handleWindowFocus)}fetchData(){return Le(this,arguments,function*(e=this.retryCount){var t,r,o,a,u,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,(u=this.error)!=null?u:"Unknown error occurred"))}finally{this.host.requestUpdate()}})}setRefetchInterval(){this.intervalId=setInterval(()=>Le(this,null,function*(){yield this.fetchData()}),this.cacheTime)}handleWindowFocus(){return Le(this,null,function*(){yield this.fetchData()})}stopInterval(){this.intervalId!==null&&clearInterval(this.intervalId)}shouldRetry(e){return e!==404&&e!==422}}var qb=Object.defineProperty,Yb=Object.getOwnPropertyDescriptor,Wr=(n,e,t,r)=>{for(var o=r>1?void 0:r?Yb(e,t):e,a=n.length-1,u;a>=0;a--)(u=n[a])&&(o=(r?u(e,t,o):u(o))||o);return r&&o&&qb(e,t,o),o};let sr=class extends Ya(Es){constructor(){super(),this.isLoading=!0,this.themeColor="",this.maxWidth="",this.maxHeight="",this.closable=!1,this.showGoalBar=!1,this.iframeClass="",this.footerClass="",this.receiveMessageEvent=n=>{var e,t,r,o,a,u,d;if(n.data.event===wr.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===wr.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]"),(u=this.iframe)==null||u.resizeIframe())}(n.data.event===wr.DONATION_BUTTON_CLOSE||n.data===wr.CLOSE_MODAL)&&((d=this.shadowRoot)==null||d.dispatchEvent(new Event(Dd.CLOSE_OVERLAY,{bubbles:!0,composed:!0}))),this.iframe&&(n.data===wr.FORM_LOADED&&(this.isLoading=!1),[wr.DONATION_BUTTON_NEXT,wr.DONATION_BUTTON_BACK].indexOf(n.data.event)!==-1&&this.iframe.getBoundingClientRect().top<0&&this.iframe.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}))},this.componentType=mo.GIVING_FORM}connectedCallback(){super.connectedCallback(),this.embedUrl.length===0&&(this.dataController=new Qa({host:this,queryFn:()=>S$(this.account,this.campaign)})),window.addEventListener("message",this.receiveMessageEvent)}disconnectedCallback(){window.removeEventListener("message",this.receiveMessageEvent),super.disconnectedCallback()}willUpdate(n){var e,t,r,o;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")}render(){var n;return Me` ${this.showGoalBar?this.getGivebutterGoalBar():""} `}getGivebutterGoalBar(){return Me` `}iframeChanged(n){this.iframe=n}getEmbedUrl(){if(Vo.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""}};Wr([di()],sr.prototype,"isLoading",2),Wr([B({type:String,attribute:"theme-color"})],sr.prototype,"themeColor",2),Wr([B({type:String,attribute:"max-width"})],sr.prototype,"maxWidth",2),Wr([B({type:String,attribute:"max-height"})],sr.prototype,"maxHeight",2),Wr([B({type:Boolean,attribute:"closable"})],sr.prototype,"closable",2),Wr([B({type:Boolean,attribute:"show-goal-bar",converter:ir._boolean})],sr.prototype,"showGoalBar",2),Wr([B({type:String,attribute:"iframe-class"})],sr.prototype,"iframeClass",2),Wr([B({type:String,attribute:"footer-class"})],sr.prototype,"footerClass",2),sr=Wr([li("givebutter-giving-form")],sr);const Kb=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterGivingForm(){return sr}},Symbol.toStringTag,{value:"Module"})),Jb=n=>{class e extends n{constructor(){super(...arguments),this.emitIframeMessage=r=>{var u,d,c;const o=(u=this.iframe)==null?void 0:u.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 Xb=Object.defineProperty,Qb=Object.getOwnPropertyDescriptor,fi=(n,e,t,r)=>{for(var o=r>1?void 0:r?Qb(e,t):e,a=n.length-1,u;a>=0;a--)(u=n[a])&&(o=(r?u(e,t,o):u(o))||o);return r&&o&&Xb(e,t,o),o},$o=(n=>(n.STATIC="static",n.POPUP="popup",n))($o||{}),bo=(n=>(n.SIMPLE="simple",n.STACKED="stacked",n.TWO_COLUMN="two-column",n))(bo||{});let _r=class n extends Es{constructor(){super(),this.config={},this.align="left",this.position="",this.amount="",this.frequency="",this.fund="",this.promo="",this.componentType=mo.DYNAMIC}connectedCallback(){return Le(this,null,function*(){var e,t;if(Pm(n.prototype,this,"connectedCallback").call(this),!(!this.account||!this.widgetId)){if(Nt.getPlatform()===tl.godaddy&&Nt.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),!Nt.isGoDaddyBackoffice()&&this.position.length>0&&((t=I$(o,"widget-html"))==null||t.setAttribute("style","height: 0px;"));return}this.dataController=new Qa({host:this,queryFn:()=>A2(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 Me``}getButton(){var r,o,a,u,d;const e=(o=(r=this.dataController)==null?void 0:r.data)==null?void 0:o.config,t=(d=(u=(a=this.dataController)==null?void 0:a.data)==null?void 0:u.embed_max_width)!=null?d:"560px";return Me``}getGivingForm(){var r,o,a,u,d,c,h;const e=(o=(r=this.dataController)==null?void 0:r.data)==null?void 0:o.config,t=(d=(u=(a=this.dataController)==null?void 0:a.data)==null?void 0:u.embed_max_width)!=null?d:"560px";return Me``}getSignupForm(){var t,r,o,a;const e=(r=(t=this.dataController)==null?void 0:t.data)==null?void 0:r.config;return Me``}getGoalBar(){var t,r,o,a,u,d,c,h;const e=(r=(t=this.dataController)==null?void 0:t.data)==null?void 0:r.config;return Me``}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()}};fi([di()],_r.prototype,"config",2),fi([B({type:String,attribute:"align"})],_r.prototype,"align",2),fi([B({type:String,attribute:"position"})],_r.prototype,"position",2),fi([B({type:String,attribute:"amount"})],_r.prototype,"amount",2),fi([B({type:String,attribute:"frequency"})],_r.prototype,"frequency",2),fi([B({type:String,attribute:"fund"})],_r.prototype,"fund",2),fi([B({type:String,attribute:"promo"})],_r.prototype,"promo",2),_r=fi([li("givebutter-widget")],_r);const ew=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterDynamicElement(){return _r},SignupFormLayout:bo,SignupFormType:$o},Symbol.toStringTag,{value:"Module"}));var tw=Object.defineProperty,nw=Object.getOwnPropertyDescriptor,Ht=(n,e,t,r)=>{for(var o=r>1?void 0:r?nw(e,t):e,a=n.length-1,u;a>=0;a--)(u=n[a])&&(o=(r?u(e,t,o):u(o))||o);return r&&o&&tw(e,t,o),o};let Ot=class extends Jb(Es){constructor(){super(),this.contentRef=kd(),this.isLoading=!0,this.isOpen=!1,this.channel="email",this.type=$o.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 ip(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===wr.CLOSE_MODAL&&((e=this.shadowRoot)==null||e.dispatchEvent(new Event(Dd.CLOSE_OVERLAY,{bubbles:!0,composed:!0}))),this.iframe&&n.data===wr.FORM_LOADED&&(this.isLoading=!1)},this.componentType=mo.SIGNUP_FORM}connectedCallback(){super.connectedCallback(),window.addEventListener("message",this.receiveMessageEvent),this.embedUrl.length===0&&(this.dataController=new Qa({host:this,queryFn:()=>A2(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===$o.STATIC?this.renderForm():this.renderPopup()}renderPopup(){return Me`
${this.isOpen?this.renderForm():""}
`}renderForm(){var n;return Me`
${this.layout!=="simple"?Me`
`:""}

${this.title}

${this.description}

`}getBannerClass(){return{"h-32":this.layout===bo.STACKED,"w-64":this.layout===bo.TWO_COLUMN}}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===bo.TWO_COLUMN,e=this.layout===bo.STACKED,t=n||e;return{flex:t,"flex-col":t,"sm:flex-row":n,"gap-1":t,"max-w-[620px]":n,"max-w-[420px]":!n,[this.formClass]:this.type===$o.STATIC,"modal-desktop:overflow-auto max-h-dvh modal-desktop:max-h-[90vh]":this.type===$o.POPUP}}getFormStyles(){return{borderRadius:`${this.borderRadius}px`}}iframeChanged(n){n&&(this.iframe=n,this.refreshSubmitButtonSettings(),this.refreshChannel())}refreshChannel(){this.emitIframeMessage({event:Id.CHANNEL_SETTINGS,props:{channel:this.channel}})}refreshSubmitButtonSettings(){this.emitIframeMessage({event:Id.BUTTON_SETTINGS,props:{text:this.buttonText,textColor:this.buttonTextColor,backgroundColor:this.buttonBackgroundColor}})}getEmbedUrl(){return Vo.isValidEmbedUrl(this.embedUrl)?this.embedUrl:""}};Ht([di()],Ot.prototype,"isLoading",2),Ht([B({type:String,attribute:"channel"})],Ot.prototype,"channel",2),Ht([B({type:String,attribute:"type"})],Ot.prototype,"type",2),Ht([B({type:Number,attribute:"open-delay"})],Ot.prototype,"openDelay",2),Ht([B({type:String,attribute:"form-class"})],Ot.prototype,"formClass",2),Ht([B({type:String,attribute:"iframe-class"})],Ot.prototype,"iframeClass",2),Ht([B({type:String,attribute:"footer-class"})],Ot.prototype,"footerClass",2),Ht([B({type:String,attribute:"title"})],Ot.prototype,"title",2),Ht([B({type:String,attribute:"description"})],Ot.prototype,"description",2),Ht([B({type:Number,attribute:"border-radius"})],Ot.prototype,"borderRadius",2),Ht([B({type:String,attribute:"layout"})],Ot.prototype,"layout",2),Ht([B({type:String,attribute:"button-text"})],Ot.prototype,"buttonText",2),Ht([B({type:String,attribute:"button-text-color"})],Ot.prototype,"buttonTextColor",2),Ht([B({type:String,attribute:"button-background-color"})],Ot.prototype,"buttonBackgroundColor",2),Ht([B({type:String,attribute:"image"})],Ot.prototype,"image",2),Ht([B({type:String,attribute:"image-sizing"})],Ot.prototype,"imageSizing",2),Ot=Ht([li("givebutter-signup-form")],Ot);const rw=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterSignupForm(){return Ot}},Symbol.toStringTag,{value:"Module"})),Fs=class Fs{static animate(e,t,r,o){if(e>=t&&typeof o=="function"){o();return}const a=t/100,u=Math.min(e+a,t);r(u),uFs.animate(u,t,r,o),Fs.ANIMATION_STEP_INTERVAL)}};Fs.ANIMATION_STEP_INTERVAL=25;let Fd=Fs;const iw=new WeakMap;let $p=0;const Ld=new Map,bp=new WeakSet,wp=()=>new Promise(n=>requestAnimationFrame(n)),_p=(n,e)=>{const t=n-e;return t===0?void 0:t},xp=(n,e)=>{const t=n/e;return t===1?void 0:t},Rd={left:(n,e)=>{const t=_p(n,e);return{value:t,transform:t==null||isNaN(t)?void 0:`translateX(${t}px)`}},top:(n,e)=>{const t=_p(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=xp(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=xp(n,e);return{value:r,overrideFrom:t,transform:r==null||isNaN(r)?void 0:`scaleY(${r})`}}},ow={duration:333,easing:"ease-in-out"},sw=["left","top","width","height","opacity","color","background"],Ep=new WeakMap;class aw extends lp{constructor(e){if(super(e),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,e.type===Ss.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 Le(this,null,function*(){var e;(e=this.l)==null||e.call(this),this.l=void 0})}render(e){return nt}getController(){return iw.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,Ep.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=sw),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:Rd[o]?void 0:r[o],u=Number(a);e[o]=isNaN(u)?a+"":u}),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,u)=>a===o[u]))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 Le(this,null,function*(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let e;this.prepare(),yield wp;const t=this.O(),r=this.j(this.options.keyframeOptions,t),o=this.m();if(this.A!==void 0){const{from:a,to:u}=this.N(this.A,o,t);this.log("measured",[this.A,o,a,u]),e=this.calculateKeyframes(a,u)}else{const a=Ld.get(this.options.inId);if(a){Ld.delete(this.options.inId);const{from:u,to:d}=this.N(a,o,t);e=this.calculateKeyframes(u,d),e=this.options.in?[C(C({},this.options.in[0]),e[0]),...this.options.in.slice(1),e[1]]:e,$p++,e.forEach(c=>c.zIndex=$p)}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 Le(this,null,function*(){var t;if(!this.h||(this.options.id!==void 0&&Ld.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),yield wp(),(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,u=this.A.top-o.top;getComputedStyle(this.element).position!=="static"||a===0&&u===0||(this.element.style.position="relative"),a!==0&&(this.element.style.left=a+"px"),u!==0&&(this.element.style.top=u+"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=Ep.get(t);r&&!r.isDisabled()&&r&&e.push(r)}return e}get isHostRendered(){const e=bp.has(this.u);return e||this.u.updateComplete.then(()=>{bp.add(this.u)}),e}j(e,t=this.O()){const r=C({},ow);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,u=1;return o.length>0&&(o.forEach(d=>{d.width&&(a/=d.width),d.height&&(u/=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=u*e.top,t.top=u*t.top)),{from:e,to:t}}calculateKeyframes(e,t,r=!1){var c;const o={},a={};let u=!1;const d={};for(const h in t){const g=e[h],$=t[h];if(h in Rd){const _=Rd[h];if(g===void 0||$===void 0)continue;const m=_(g,$);m.transform!==void 0&&(d[h]=m.value,u=!0,o.transform=`${(c=o.transform)!=null?c:""} ${m.transform}`,m.overrideFrom!==void 0&&Object.assign(o,m.overrideFrom))}else g!==$&&g!==void 0&&$!==void 0&&(u=!0,o[h]=g,a[h]=$)}return o.transformOrigin=a.transformOrigin=r?"center center":"top left",this.animatingProperties=d,u?[o,a]:void 0}animate(r){return Le(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(u){}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 uw=Cs(aw);class wo{static toLocale(e,t=!0){return e||(e=0),t||(e=Math.round(e)),e.toLocaleString()}}function lw({raised:n,borderColor:e,borderWidth:t,borderRadius:r,backgroundColor:o,padding:a,progressBarColor:u,raisedPercentage:d,showAmountRaised:c,showRaisedPercentage:h,showGoalAmount:g,goal:$,textColor:_,size:m,areDisplayOptionsDisabled:O}){const P=vo({block:c,hidden:!c,"text-xl":m==="sm","text-2xl":m==="md","text-3xl":m==="lg"}),A=()=>({color:_,"border-color":e,"border-width":t+"px","border-radius":r+"px",padding:a+"px","background-color":o}),W=vo({"h-4":m==="sm","h-6":m==="md","h-8":m==="lg"}),q=()=>({width:(d>100?100:d)+"%","background-color":u});return Me`

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

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

`}function dw(n,e,t){const r=o=>t>=o?e:"#A0A0AB";return Me` `}function cw({thermometerGradientElement:n,progressBarColor:e,currentRaisedPercentage:t,raisedPercentage:r,showAmountRaised:o,showRaisedPercentage:a,showGoalAmount:u,goal:d,raised:c,size:h,textColor:g,areDisplayOptionsDisabled:$}){const _=vo({block:o,hidden:!o,"text-lg":h==="sm","text-3xl":h==="md","text-5xl":h==="lg"}),m=()=>({color:g});return Me`
${dw(n,e,t)}
${"$"+wo.toLocale(c,!1)}
${a?wo.toLocale(r)+"%":""} ${a&&u?" of ":""} ${u?"$"+wo.toLocale(d):""} ${$||!u?"":"goal"}
`}var fw=Object.defineProperty,hw=Object.getOwnPropertyDescriptor,ht=(n,e,t,r)=>{for(var o=r>1?void 0:r?hw(e,t):e,a=n.length-1,u;a>=0;a--)(u=n[a])&&(o=(r?u(e,t,o):u(o))||o);return r&&o&&fw(e,t,o),o};const pw=1e3*10;let it=class extends Es{constructor(){super(),this.thermometerGradientElement=kd(),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=mo.GOAL_BAR}connectedCallback(){super.connectedCallback(),this.dataController=new Qa({host:this,queryFn:()=>C$(this.account,this.campaign),cacheTime:pw,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,Fd.animate(this.currentRaisedPercentage,e,t=>{this.updateThermometerGradient(t)},()=>{this.isThermometerGradientUpdating=!1}))}this.areDisplayOptionsDisabled=!this.showGoalAmount&&!this.showAmountRaised&&!this.showRaisedPercentage}render(){return Me`
${this.type==="progress-bar"?lw(this):cw(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())}}};ht([di()],it.prototype,"currentRaisedPercentage",2),ht([di()],it.prototype,"isThermometerGradientUpdating",2),ht([di()],it.prototype,"areDisplayOptionsDisabled",2),ht([B({type:String})],it.prototype,"class",2),ht([B({type:String,attribute:"type"})],it.prototype,"type",2),ht([B({type:Number,attribute:"goal"})],it.prototype,"goal",2),ht([B({type:Number,attribute:"raised"})],it.prototype,"raised",2),ht([B({type:Number,attribute:"raised-percentage"})],it.prototype,"raisedPercentage",2),ht([B({type:String,attribute:"text-color"})],it.prototype,"textColor",2),ht([B({type:Number,attribute:"padding"})],it.prototype,"padding",2),ht([B({type:String,attribute:"progress-bar-color"})],it.prototype,"progressBarColor",2),ht([B({type:String,attribute:"progress-color"})],it.prototype,"fillColor",2),ht([B({type:String,attribute:"border-color"})],it.prototype,"borderColor",2),ht([B({type:Number,attribute:"border-width"})],it.prototype,"borderWidth",2),ht([B({type:Number,attribute:"border-radius"})],it.prototype,"borderRadius",2),ht([B({type:String,attribute:"background-color"})],it.prototype,"backgroundColor",2),ht([B({type:String,attribute:"size"})],it.prototype,"size",2),ht([B({type:String,attribute:"max-width"})],it.prototype,"maxWidth",2),ht([B({type:Boolean,attribute:"show-goal-amount",converter:ir._boolean})],it.prototype,"showGoalAmount",2),ht([B({type:Boolean,attribute:"show-amount-raised",converter:ir._boolean})],it.prototype,"showAmountRaised",2),ht([B({type:Boolean,attribute:"show-raised-percentage",converter:ir._boolean})],it.prototype,"showRaisedPercentage",2),it=ht([li("givebutter-goal-bar")],it);const gw=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterGoalBar(){return it}},Symbol.toStringTag,{value:"Module"}));/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */class Md extends Ja{constructor(e){if(super(e),this.it=nt,e.type!==Ss.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===nt||e==null)return this._t=void 0,this.it=e;if(e===Rr)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:[]}}}Md.directiveName="unsafeHTML",Md.resultType=1;const mw=Cs(Md);var yw=Object.defineProperty,vw=Object.getOwnPropertyDescriptor,Sp=(n,e,t,r)=>{for(var o=r>1?void 0:r?vw(e,t):e,a=n.length-1,u;a>=0;a--)(u=n[a])&&(o=(r?u(e,t,o):u(o))||o);return r&&o&&yw(e,t,o),o};let Os=class extends ui{constructor(){super(...arguments),this.html=""}render(){return this.html?Me`${mw(this.html)}`:""}};Os.styles=md` :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; } `,Sp([B({type:String,attribute:"html"})],Os.prototype,"html",2),Os=Sp([li("givebutter-html-renderer")],Os);const $w=Object.freeze(Object.defineProperty({__proto__:null,get GivebutterHTMLRenderer(){return Os}},Symbol.toStringTag,{value:"Module"}));function _n(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Ii(n){var e=_n(n).Element;return n instanceof e||n instanceof Element}function Mn(n){var e=_n(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function Bd(n){if(typeof ShadowRoot=="undefined")return!1;var e=_n(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}var Di=Math.max,eu=Math.min,_o=Math.round;function Wd(){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 Cp(){return!/^((?!chrome|android).)*safari/i.test(Wd())}function xo(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),o=1,a=1;e&&Mn(n)&&(o=n.offsetWidth>0&&_o(r.width)/n.offsetWidth||1,a=n.offsetHeight>0&&_o(r.height)/n.offsetHeight||1);var u=Ii(n)?_n(n):window,d=u.visualViewport,c=!Cp()&&t,h=(r.left+(c&&d?d.offsetLeft:0))/o,g=(r.top+(c&&d?d.offsetTop:0))/a,$=r.width/o,_=r.height/a;return{width:$,height:_,top:g,right:h+$,bottom:g+_,left:h,x:h,y:g}}function Ud(n){var e=_n(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function bw(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function ww(n){return n===_n(n)||!Mn(n)?Ud(n):bw(n)}function xr(n){return n?(n.nodeName||"").toLowerCase():null}function hi(n){return((Ii(n)?n.ownerDocument:n.document)||window.document).documentElement}function Hd(n){return xo(hi(n)).left+Ud(n).scrollLeft}function Ur(n){return _n(n).getComputedStyle(n)}function zd(n){var e=Ur(n),t=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function _w(n){var e=n.getBoundingClientRect(),t=_o(e.width)/n.offsetWidth||1,r=_o(e.height)/n.offsetHeight||1;return t!==1||r!==1}function xw(n,e,t){t===void 0&&(t=!1);var r=Mn(e),o=Mn(e)&&_w(e),a=hi(e),u=xo(n,o,t),d={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!t)&&((xr(e)!=="body"||zd(a))&&(d=ww(e)),Mn(e)?(c=xo(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):a&&(c.x=Hd(a))),{x:u.left+d.scrollLeft-c.x,y:u.top+d.scrollTop-c.y,width:u.width,height:u.height}}function Vd(n){var e=xo(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 tu(n){return xr(n)==="html"?n:n.assignedSlot||n.parentNode||(Bd(n)?n.host:null)||hi(n)}function Np(n){return["html","body","#document"].indexOf(xr(n))>=0?n.ownerDocument.body:Mn(n)&&zd(n)?n:Np(tu(n))}function Ts(n,e){var t;e===void 0&&(e=[]);var r=Np(n),o=r===((t=n.ownerDocument)==null?void 0:t.body),a=_n(r),u=o?[a].concat(a.visualViewport||[],zd(r)?r:[]):r,d=e.concat(u);return o?d:d.concat(Ts(tu(u)))}function Ew(n){return["table","td","th"].indexOf(xr(n))>=0}function Op(n){return!Mn(n)||Ur(n).position==="fixed"?null:n.offsetParent}function Sw(n){var e=/firefox/i.test(Wd()),t=/Trident/i.test(Wd());if(t&&Mn(n)){var r=Ur(n);if(r.position==="fixed")return null}var o=tu(n);for(Bd(o)&&(o=o.host);Mn(o)&&["html","body"].indexOf(xr(o))<0;){var a=Ur(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 As(n){for(var e=_n(n),t=Op(n);t&&Ew(t)&&Ur(t).position==="static";)t=Op(t);return t&&(xr(t)==="html"||xr(t)==="body"&&Ur(t).position==="static")?e:t||Sw(n)||e}var cn="top",Bn="bottom",Wn="right",fn="left",Gd="auto",ks=[cn,Bn,Wn,fn],Eo="start",Ps="end",Cw="clippingParents",Tp="viewport",Is="popper",Nw="reference",Ap=ks.reduce(function(n,e){return n.concat([e+"-"+Eo,e+"-"+Ps])},[]),kp=[].concat(ks,[Gd]).reduce(function(n,e){return n.concat([e,e+"-"+Eo,e+"-"+Ps])},[]),Ow="beforeRead",Tw="read",Aw="afterRead",kw="beforeMain",Pw="main",Iw="afterMain",Dw="beforeWrite",Fw="write",Lw="afterWrite",Rw=[Ow,Tw,Aw,kw,Pw,Iw,Dw,Fw,Lw];function Mw(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 u=[].concat(a.requires||[],a.requiresIfExists||[]);u.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 Bw(n){var e=Mw(n);return Rw.reduce(function(t,r){return t.concat(e.filter(function(o){return o.phase===r}))},[])}function Ww(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Uw(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 Hw(n,e){var t=_n(n),r=hi(n),o=t.visualViewport,a=r.clientWidth,u=r.clientHeight,d=0,c=0;if(o){a=o.width,u=o.height;var h=Cp();(h||!h&&e==="fixed")&&(d=o.offsetLeft,c=o.offsetTop)}return{width:a,height:u,x:d+Hd(n),y:c}}function zw(n){var e,t=hi(n),r=Ud(n),o=(e=n.ownerDocument)==null?void 0:e.body,a=Di(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=Di(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-r.scrollLeft+Hd(n),c=-r.scrollTop;return Ur(o||t).direction==="rtl"&&(d+=Di(t.clientWidth,o?o.clientWidth:0)-a),{width:a,height:u,x:d,y:c}}function Pp(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&Bd(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Zd(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Vw(n,e){var t=xo(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 Ip(n,e,t){return e===Tp?Zd(Hw(n,t)):Ii(e)?Vw(e,t):Zd(zw(hi(n)))}function Gw(n){var e=Ts(tu(n)),t=["absolute","fixed"].indexOf(Ur(n).position)>=0,r=t&&Mn(n)?As(n):n;return Ii(r)?e.filter(function(o){return Ii(o)&&Pp(o,r)&&xr(o)!=="body"}):[]}function Zw(n,e,t,r){var o=e==="clippingParents"?Gw(n):[].concat(e),a=[].concat(o,[t]),u=a[0],d=a.reduce(function(c,h){var g=Ip(n,h,r);return c.top=Di(g.top,c.top),c.right=eu(g.right,c.right),c.bottom=eu(g.bottom,c.bottom),c.left=Di(g.left,c.left),c},Ip(n,u,r));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function Er(n){return n.split("-")[0]}function So(n){return n.split("-")[1]}function jd(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Dp(n){var e=n.reference,t=n.element,r=n.placement,o=r?Er(r):null,a=r?So(r):null,u=e.x+e.width/2-t.width/2,d=e.y+e.height/2-t.height/2,c;switch(o){case cn:c={x:u,y:e.y-t.height};break;case Bn:c={x:u,y:e.y+e.height};break;case Wn:c={x:e.x+e.width,y:d};break;case fn:c={x:e.x-t.width,y:d};break;default:c={x:e.x,y:e.y}}var h=o?jd(o):null;if(h!=null){var g=h==="y"?"height":"width";switch(a){case Eo:c[h]=c[h]-(e[g]/2-t[g]/2);break;case Ps:c[h]=c[h]+(e[g]/2-t[g]/2);break}}return c}function Fp(){return{top:0,right:0,bottom:0,left:0}}function Lp(n){return Object.assign({},Fp(),n)}function Rp(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}function Co(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=r===void 0?n.placement:r,a=t.strategy,u=a===void 0?n.strategy:a,d=t.boundary,c=d===void 0?Cw:d,h=t.rootBoundary,g=h===void 0?Tp:h,$=t.elementContext,_=$===void 0?Is:$,m=t.altBoundary,O=m===void 0?!1:m,P=t.padding,A=P===void 0?0:P,W=Lp(typeof A!="number"?A:Rp(A,ks)),q=_===Is?Nw:Is,Z=n.rects.popper,Y=n.elements[O?q:_],j=Zw(Ii(Y)?Y:Y.contextElement||hi(n.elements.popper),c,g,u),K=xo(n.elements.reference),R=Dp({reference:K,element:Z,strategy:"absolute",placement:o}),ge=Zd(Object.assign({},Z,R)),X=_===Is?ge:K,he={top:j.top-X.top+W.top,bottom:X.bottom-j.bottom+W.bottom,left:j.left-X.left+W.left,right:X.right-j.right+W.right},Ie=n.modifiersData.offset;if(_===Is&&Ie){var Ke=Ie[o];Object.keys(he).forEach(function(De){var $t=[Wn,Bn].indexOf(De)>=0?1:-1,Et=[cn,Bn].indexOf(De)>=0?"y":"x";he[De]+=Ke[Et]*$t})}return he}var Mp={placement:"bottom",modifiers:[],strategy:"absolute"};function Bp(){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,u=a[0],d=a[1];return u=u||0,d=(d||0)*o,[fn,Wn].indexOf(r)>=0?{x:d,y:u}:{x:u,y:d}}function t_(n){var e=n.state,t=n.options,r=n.name,o=t.offset,a=o===void 0?[0,0]:o,u=kp.reduce(function(g,$){return g[$]=e_($,e.rects,a),g},{}),d=u[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]=u}const Up={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:t_};var n_={left:"right",right:"left",bottom:"top",top:"bottom"};function ru(n){return n.replace(/left|right|bottom|top/g,function(e){return n_[e]})}var r_={start:"end",end:"start"};function Hp(n){return n.replace(/start|end/g,function(e){return r_[e]})}function i_(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=t.boundary,a=t.rootBoundary,u=t.padding,d=t.flipVariations,c=t.allowedAutoPlacements,h=c===void 0?kp:c,g=So(r),$=g?d?Ap:Ap.filter(function(O){return So(O)===g}):ks,_=$.filter(function(O){return h.indexOf(O)>=0});_.length===0&&(_=$);var m=_.reduce(function(O,P){return O[P]=Co(n,{placement:P,boundary:o,rootBoundary:a,padding:u})[Er(P)],O},{});return Object.keys(m).sort(function(O,P){return m[O]-m[P]})}function o_(n){if(Er(n)===Gd)return[];var e=ru(n);return[Hp(n),e,Hp(e)]}function s_(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,u=t.altAxis,d=u===void 0?!0:u,c=t.fallbackPlacements,h=t.padding,g=t.boundary,$=t.rootBoundary,_=t.altBoundary,m=t.flipVariations,O=m===void 0?!0:m,P=t.allowedAutoPlacements,A=e.options.placement,W=Er(A),q=W===A,Z=c||(q||!O?[ru(A)]:o_(A)),Y=[A].concat(Z).reduce(function(sn,at){return sn.concat(Er(at)===Gd?i_(e,{placement:at,boundary:g,rootBoundary:$,padding:h,flipVariations:O,allowedAutoPlacements:P}):at)},[]),j=e.rects.reference,K=e.rects.popper,R=new Map,ge=!0,X=Y[0],he=0;he=0,Et=$t?"width":"height",ot=Co(e,{placement:Ie,boundary:g,rootBoundary:$,altBoundary:_,padding:h}),Ve=$t?De?Wn:fn:De?Bn:cn;j[Et]>K[Et]&&(Ve=ru(Ve));var pt=ru(Ve),on=[];if(a&&on.push(ot[Ke]<=0),d&&on.push(ot[Ve]<=0,ot[pt]<=0),on.every(function(sn){return sn})){X=Ie,ge=!1;break}R.set(Ie,on)}if(ge)for(var Xe=O?3:1,Ge=function(at){var Mt=Y.find(function(ar){var Bt=R.get(ar);if(Bt)return Bt.slice(0,at).every(function(pn){return pn})});if(Mt)return X=Mt,"break"},hn=Xe;hn>0;hn--){var Un=Ge(hn);if(Un==="break")break}e.placement!==X&&(e.modifiersData[r]._skip=!0,e.placement=X,e.reset=!0)}}const zp={name:"flip",enabled:!0,phase:"main",fn:s_,requiresIfExists:["offset"],data:{_skip:!1}};function a_(n){return n==="x"?"y":"x"}function Ds(n,e,t){return Di(n,eu(e,t))}function u_(n,e,t){var r=Ds(n,e,t);return r>t?t:r}function l_(n){var e=n.state,t=n.options,r=n.name,o=t.mainAxis,a=o===void 0?!0:o,u=t.altAxis,d=u===void 0?!1:u,c=t.boundary,h=t.rootBoundary,g=t.altBoundary,$=t.padding,_=t.tether,m=_===void 0?!0:_,O=t.tetherOffset,P=O===void 0?0:O,A=Co(e,{boundary:c,rootBoundary:h,padding:$,altBoundary:g}),W=Er(e.placement),q=So(e.placement),Z=!q,Y=jd(W),j=a_(Y),K=e.modifiersData.popperOffsets,R=e.rects.reference,ge=e.rects.popper,X=typeof P=="function"?P(Object.assign({},e.rects,{placement:e.placement})):P,he=typeof X=="number"?{mainAxis:X,altAxis:X}:Object.assign({mainAxis:0,altAxis:0},X),Ie=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Ke={x:0,y:0};if(K){if(a){var De,$t=Y==="y"?cn:fn,Et=Y==="y"?Bn:Wn,ot=Y==="y"?"height":"width",Ve=K[Y],pt=Ve+A[$t],on=Ve-A[Et],Xe=m?-ge[ot]/2:0,Ge=q===Eo?R[ot]:ge[ot],hn=q===Eo?-ge[ot]:-R[ot],Un=e.elements.arrow,sn=m&&Un?Vd(Un):{width:0,height:0},at=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Fp(),Mt=at[$t],ar=at[Et],Bt=Ds(0,R[ot],sn[ot]),pn=Z?R[ot]/2-Xe-Bt-Mt-he.mainAxis:Ge-Bt-Mt-he.mainAxis,xn=Z?-R[ot]/2+Xe+Bt+ar+he.mainAxis:hn+Bt+ar+he.mainAxis,En=e.elements.arrow&&As(e.elements.arrow),ur=En?Y==="y"?En.clientTop||0:En.clientLeft||0:0,Sr=(De=Ie==null?void 0:Ie[Y])!=null?De:0,Wt=Ve+pn-Sr-ur,E=Ve+xn-Sr,U=Ds(m?eu(pt,Wt):pt,Ve,m?Di(on,E):on);K[Y]=U,Ke[Y]=U-Ve}if(d){var ne,Q=Y==="x"?cn:fn,ve=Y==="x"?Bn:Wn,re=K[j],He=j==="y"?"height":"width",St=re+A[Q],Tt=re-A[ve],zt=[cn,fn].indexOf(W)!==-1,Ae=(ne=Ie==null?void 0:Ie[j])!=null?ne:0,lr=zt?St:re-R[He]-ge[He]-Ae+he.altAxis,Jt=zt?re+R[He]+ge[He]-Ae-he.altAxis:Tt,Xt=m&&zt?u_(lr,re,Jt):Ds(m?lr:St,re,m?Jt:Tt);K[j]=Xt,Ke[j]=Xt-re}e.modifiersData[r]=Ke}}const Vp={name:"preventOverflow",enabled:!0,phase:"main",fn:l_,requiresIfExists:["offset"]};var d_=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Lp(typeof e!="number"?e:Rp(e,ks))};function c_(n){var e,t=n.state,r=n.name,o=n.options,a=t.elements.arrow,u=t.modifiersData.popperOffsets,d=Er(t.placement),c=jd(d),h=[fn,Wn].indexOf(d)>=0,g=h?"height":"width";if(!(!a||!u)){var $=d_(o.padding,t),_=Vd(a),m=c==="y"?cn:fn,O=c==="y"?Bn:Wn,P=t.rects.reference[g]+t.rects.reference[c]-u[c]-t.rects.popper[g],A=u[c]-t.rects.reference[c],W=As(a),q=W?c==="y"?W.clientHeight||0:W.clientWidth||0:0,Z=P/2-A/2,Y=$[m],j=q-_[g]-$[O],K=q/2-_[g]/2+Z,R=Ds(Y,K,j),ge=c;t.modifiersData[r]=(e={},e[ge]=R,e.centerOffset=R-K,e)}}function f_(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)||Pp(e.elements.popper,o)&&(e.elements.arrow=o))}const Gp={name:"arrow",enabled:!0,phase:"main",fn:c_,effect:f_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zp(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 jp(n){return[cn,Wn,Bn,fn].some(function(e){return n[e]>=0})}function h_(n){var e=n.state,t=n.name,r=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,u=Co(e,{elementContext:"reference"}),d=Co(e,{altBoundary:!0}),c=Zp(u,r),h=Zp(d,o,a),g=jp(c),$=jp(h);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:h,isReferenceHidden:g,hasPopperEscaped:$},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":$})}const qp={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:h_};var p_=[Yd,Kd,Jd,Xd],g_=qd({defaultModifiers:p_}),Yp=[Yd,Kd,Jd,Xd,Up,zp,Vp,Gp,qp],m_=qd({defaultModifiers:Yp});const y_=Object.freeze(Object.defineProperty({__proto__:null,applyStyles:Xd,arrow:Gp,computeStyles:Jd,createPopper:m_,createPopperLite:g_,defaultModifiers:Yp,detectOverflow:Co,eventListeners:Yd,flip:zp,hide:qp,offset:Up,popperGenerator:qd,popperOffsets:Kd,preventOverflow:Vp},Symbol.toStringTag,{value:"Module"}))}); //# sourceMappingURL=latest.umd.cjs.map