@nhtio/validation 1.20250719.2 → 1.20250804.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/index.cjs +10 -4
- package/index.cjs.map +1 -1
- package/index.mjs +10 -4
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/private/patches/index.d.ts +3 -0
- package/private/patches/json.d.ts +2 -0
- package/private/schemas/datetime.d.ts +18 -9
package/index.cjs
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>l(t({},`__esModule`,{value:!0}),e);const f=u(require(`url`)),p=u(require(`util`));var m=s((exports,t)=>{t.exports=function(...e){try{return JSON.stringify(...e)}catch(e){return`[Cannot display object: `+e.message+`]`}}}),h=s((exports,t)=>{let n=m();t.exports=class extends Error{constructor(t){let r=t.filter(e=>e!==``).map(e=>typeof e==`string`?e:e instanceof Error?e.message:n(e));super(r.join(` `)||`Unknown error`),typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,exports.assert)}}}),g=s((exports,t)=>{let n=h();t.exports=function(e,...t){if(!e)throw t.length===1&&t[0]instanceof Error?t[0]:new n(t)}}),_=s((exports,t)=>{let n=g(),r={};t.exports=function(e,t,i){if(t===!1||t==null)return e;i||={},typeof i==`string`&&(i={separator:i});let a=Array.isArray(t);n(!a||!i.separator,`Separator option is not valid for array-based chain`);let o=a?t:t.split(i.separator||`.`),s=e;for(let e=0;e<o.length;++e){let a=o[e],c=i.iterables&&r.iterables(s);if(Array.isArray(s)||c===`set`){let e=Number(a);Number.isInteger(e)&&(a=e<0?s.length+e:e)}if(!s||typeof s==`function`&&i.functions===!1||!c&&s[a]===void 0){n(!i.strict||e+1===o.length,`Missing segment`,a,`in reach path `,t),n(typeof s==`object`||i.functions===!0||typeof s!=`function`,`Invalid segment`,a,`in reach path `,t),s=i.default;break}s=c?c===`set`?[...s][a]:s.get(a):s[a]}return s},r.iterables=function(e){if(e instanceof Set)return`set`;if(e instanceof Map)return`map`}}),v=s((exports,t)=>{let n={};exports=t.exports={array:Array.prototype,buffer:Buffer&&Buffer.prototype,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},n.typeMap=new Map([[`[object Error]`,exports.error],[`[object Map]`,exports.map],[`[object Promise]`,exports.promise],[`[object Set]`,exports.set],[`[object WeakMap]`,exports.weakMap],[`[object WeakSet]`,exports.weakSet]]),exports.getInternalProto=function(t){if(Array.isArray(t))return exports.array;if(Buffer&&t instanceof Buffer)return exports.buffer;if(t instanceof Date)return exports.date;if(t instanceof RegExp)return exports.regex;if(t instanceof Error)return exports.error;let r=Object.prototype.toString.call(t);return n.typeMap.get(r)||exports.generic}}),y=s(exports=>{exports.keys=function(e,t={}){return t.symbols===!1?Object.getOwnPropertyNames(e):Reflect.ownKeys(e)}}),b=s((exports,t)=>{let n=_(),r=v(),i=y(),a={needsProtoHack:new Set([r.set,r.map,r.weakSet,r.weakMap])};t.exports=a.clone=function(e,t={},n=null){if(typeof e!=`object`||!e)return e;let o=a.clone,s=n;if(t.shallow){if(t.shallow!==!0)return a.cloneWithShallow(e,t);o=e=>e}else if(s){let t=s.get(e);if(t)return t}else s=new Map;let c=r.getInternalProto(e);if(c===r.buffer)return Buffer&&Buffer.from(e);if(c===r.date)return new Date(e.getTime());if(c===r.regex)return new RegExp(e);let l=a.base(e,c,t);if(l===e)return e;if(s&&s.set(e,l),c===r.set)for(let n of e)l.add(o(n,t,s));else if(c===r.map)for(let[n,r]of e)l.set(n,o(r,t,s));let u=i.keys(e,t);for(let n of u){if(n===`__proto__`)continue;if(c===r.array&&n===`length`){l.length=e.length;continue}let i=Object.getOwnPropertyDescriptor(e,n);i?i.get||i.set?Object.defineProperty(l,n,i):i.enumerable?l[n]=o(e[n],t,s):Object.defineProperty(l,n,{enumerable:!1,writable:!0,configurable:!0,value:o(e[n],t,s)}):Object.defineProperty(l,n,{enumerable:!0,writable:!0,configurable:!0,value:o(e[n],t,s)})}return l},a.cloneWithShallow=function(e,t){let r=t.shallow;t=Object.assign({},t),t.shallow=!1;let i=new Map;for(let t of r){let r=n(e,t);(typeof r==`object`||typeof r==`function`)&&i.set(r,r)}return a.clone(e,t,i)},a.base=function(e,t,n){if(n.prototype===!1)return a.needsProtoHack.has(t)?new t.constructor:t===r.array?[]:{};let i=Object.getPrototypeOf(e);if(i&&i.isImmutable)return e;if(t===r.array){let e=[];return i!==t&&Object.setPrototypeOf(e,i),e}if(a.needsProtoHack.has(t)){let e=new i.constructor;return i!==t&&Object.setPrototypeOf(e,i),e}return Object.create(i)}}),x={};c(x,{browser:()=>E,default:()=>ie,dependencies:()=>D,description:()=>S,devDependencies:()=>O,files:()=>ne,keywords:()=>re,license:()=>A,main:()=>T,name:()=>ee,repository:()=>w,scripts:()=>k,types:()=>te,version:()=>C});var ee,S,C,w,T,te,E,ne,re,D,O,k,A,ie,ae=o(()=>{ee=`joi`,S=`Object schema validation`,C=`17.13.3`,w=`git://github.com/hapijs/joi`,T=`lib/index.js`,te=`lib/index.d.ts`,E=`dist/joi-browser.min.js`,ne=[`lib/**/*`,`dist/*`],re=[`schema`,`validation`],D={"@hapi/hoek":`^9.3.0`,"@hapi/topo":`^5.1.0`,"@sideway/address":`^4.1.5`,"@sideway/formula":`^3.0.1`,"@sideway/pinpoint":`^2.0.0`},O={"@hapi/bourne":`2.x.x`,"@hapi/code":`8.x.x`,"@hapi/joi-legacy-test":`npm:@hapi/joi@15.x.x`,"@hapi/lab":`^25.1.3`,"@types/node":`^14.18.63`,typescript:`4.3.x`},k={prepublishOnly:`cd browser && npm install && npm run build`,test:`lab -t 100 -a @hapi/code -L -Y`,"test-cov-html":`lab -r html -o coverage.html -a @hapi/code`},A=`BSD-3-Clause`,ie={name:ee,description:S,version:C,repository:w,main:T,types:te,browser:E,files:ne,keywords:re,dependencies:D,devDependencies:O,scripts:k,license:A}}),oe=s(exports=>{let t=Ye(),n={};n.wrap=t.string().min(1).max(2).allow(!1),exports.preferences=t.object({allowUnknown:t.boolean(),abortEarly:t.boolean(),artifacts:t.boolean(),cache:t.boolean(),context:t.object(),convert:t.boolean(),dateFormat:t.valid(`date`,`iso`,`string`,`time`,`utc`),debug:t.boolean(),errors:{escapeHtml:t.boolean(),label:t.valid(`path`,`key`,!1),language:[t.string(),t.object().ref()],render:t.boolean(),stack:t.boolean(),wrap:{label:n.wrap,array:n.wrap,string:n.wrap}},externals:t.boolean(),messages:t.object(),noDefaults:t.boolean(),nonEnumerables:t.boolean(),presence:t.valid(`required`,`optional`,`forbidden`),skipFunctions:t.boolean(),stripUnknown:t.object({arrays:t.boolean(),objects:t.boolean()}).or(`arrays`,`objects`).allow(!0,!1),warnings:t.boolean()}).strict(),n.nameRx=/^[a-zA-Z0-9]\w*$/,n.rule=t.object({alias:t.array().items(t.string().pattern(n.nameRx)).single(),args:t.array().items(t.string(),t.object({name:t.string().pattern(n.nameRx).required(),ref:t.boolean(),assert:t.alternatives([t.function(),t.object().schema()]).conditional(`ref`,{is:!0,then:t.required()}),normalize:t.function(),message:t.string().when(`assert`,{is:t.function(),then:t.required()})})),convert:t.boolean(),manifest:t.boolean(),method:t.function().allow(!1),multi:t.boolean(),validate:t.function()}),exports.extension=t.object({type:t.alternatives([t.string(),t.object().regex()]).required(),args:t.function(),cast:t.object().pattern(n.nameRx,t.object({from:t.function().maxArity(1).required(),to:t.function().minArity(1).maxArity(2).required()})),base:t.object().schema().when(`type`,{is:t.object().regex(),then:t.forbidden()}),coerce:[t.function().maxArity(3),t.object({method:t.function().maxArity(3).required(),from:t.array().items(t.string()).single()})],flags:t.object().pattern(n.nameRx,t.object({setter:t.string(),default:t.any()})),manifest:{build:t.function().arity(2)},messages:[t.object(),t.string()],modifiers:t.object().pattern(n.nameRx,t.function().minArity(1).maxArity(2)),overrides:t.object().pattern(n.nameRx,t.function()),prepare:t.function().maxArity(3),rebuild:t.function().arity(1),rules:t.object().pattern(n.nameRx,n.rule),terms:t.object().pattern(n.nameRx,t.object({init:t.array().allow(null).required(),manifest:t.object().pattern(/.+/,[t.valid(`schema`,`single`),t.object({mapped:t.object({from:t.string().required(),to:t.string().required()}).required()})])})),validate:t.function().maxArity(3)}).strict(),exports.extensions=t.array().items(t.object(),t.function().arity(1)).strict(),n.desc={buffer:t.object({buffer:t.string()}),func:t.object({function:t.function().required(),options:{literal:!0}}),override:t.object({override:!0}),ref:t.object({ref:t.object({type:t.valid(`value`,`global`,`local`),path:t.array().required(),separator:t.string().length(1).allow(!1),ancestor:t.number().min(0).integer().allow(`root`),map:t.array().items(t.array().length(2)).min(1),adjust:t.function(),iterables:t.boolean(),in:t.boolean(),render:t.boolean()}).required()}),regex:t.object({regex:t.string().min(3)}),special:t.object({special:t.valid(`deep`).required()}),template:t.object({template:t.string().required(),options:t.object()}),value:t.object({value:t.alternatives([t.object(),t.array()]).required()})},n.desc.entity=t.alternatives([t.array().items(t.link(`...`)),t.boolean(),t.function(),t.number(),t.string(),n.desc.buffer,n.desc.func,n.desc.ref,n.desc.regex,n.desc.special,n.desc.template,n.desc.value,t.link(`/`)]),n.desc.values=t.array().items(null,t.boolean(),t.function(),t.number().allow(1/0,-1/0),t.string().allow(``),t.symbol(),n.desc.buffer,n.desc.func,n.desc.override,n.desc.ref,n.desc.regex,n.desc.template,n.desc.value),n.desc.messages=t.object().pattern(/.+/,[t.string(),n.desc.template,t.object().pattern(/.+/,[t.string(),n.desc.template])]),exports.description=t.object({type:t.string().required(),flags:t.object({cast:t.string(),default:t.any(),description:t.string(),empty:t.link(`/`),failover:n.desc.entity,id:t.string(),label:t.string(),only:!0,presence:[`optional`,`required`,`forbidden`],result:[`raw`,`strip`],strip:t.boolean(),unit:t.string()}).unknown(),preferences:{allowUnknown:t.boolean(),abortEarly:t.boolean(),artifacts:t.boolean(),cache:t.boolean(),convert:t.boolean(),dateFormat:[`date`,`iso`,`string`,`time`,`utc`],errors:{escapeHtml:t.boolean(),label:[`path`,`key`],language:[t.string(),n.desc.ref],wrap:{label:n.wrap,array:n.wrap}},externals:t.boolean(),messages:n.desc.messages,noDefaults:t.boolean(),nonEnumerables:t.boolean(),presence:[`required`,`optional`,`forbidden`],skipFunctions:t.boolean(),stripUnknown:t.object({arrays:t.boolean(),objects:t.boolean()}).or(`arrays`,`objects`).allow(!0,!1),warnings:t.boolean()},allow:n.desc.values,invalid:n.desc.values,rules:t.array().min(1).items({name:t.string().required(),args:t.object().min(1),keep:t.boolean(),message:[t.string(),n.desc.messages],warn:t.boolean()}),keys:t.object().pattern(/.*/,t.link(`/`)),link:n.desc.ref}).pattern(/^[a-z]\w*$/,t.any())}),se=s((exports,t)=>{let n={};t.exports=function(e){if(!e)return``;let t=``;for(let r=0;r<e.length;++r){let i=e.charCodeAt(r);n.isSafe(i)?t+=e[r]:t+=n.escapeHtmlChar(i)}return t},n.escapeHtmlChar=function(e){let t=n.namedHtml.get(e);if(t)return t;if(e>=256)return`&#`+e+`;`;let r=e.toString(16).padStart(2,`0`);return`&#x${r};`},n.isSafe=function(e){return n.safeCharCodes.has(e)},n.namedHtml=new Map([[38,`&`],[60,`<`],[62,`>`],[34,`"`],[160,` `],[162,`¢`],[163,`£`],[164,`¤`],[169,`©`],[174,`®`]]),n.safeCharCodes=function(){let e=new Set;for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||t===32||t===46||t===44||t===45||t===58||t===95)&&e.add(t);return e}()}),ce=s(exports=>{let t={operators:[`!`,`^`,`*`,`/`,`%`,`+`,`-`,`<`,`<=`,`>`,`>=`,`==`,`!=`,`&&`,`||`,`??`],operatorCharacters:[`!`,`^`,`*`,`/`,`%`,`+`,`-`,`<`,`=`,`>`,`&`,`|`,`?`],operatorsOrder:[[`^`],[`*`,`/`,`%`],[`+`,`-`],[`<`,`<=`,`>`,`>=`],[`==`,`!=`],[`&&`],[`||`,`??`]],operatorsPrefix:[`!`,`n`],literals:{'"':`"`,"`":"`","'":`'`,"[":`]`},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol(`formula`),settings:Symbol(`settings`)};exports.Parser=class{constructor(e,n={}){if(!n[t.settings]&&n.constants)for(let e in n.constants){let t=n.constants[e];if(t!==null&&![`boolean`,`number`,`string`].includes(typeof t))throw Error(`Formula constant ${e} contains invalid ${typeof t} value type`)}this.settings=n[t.settings]?n:Object.assign({[t.settings]:!0,constants:{},functions:{}},n),this.single=null,this._parts=null,this._parse(e)}_parse(n){let r=[],i=``,a=0,o=!1,s=n=>{if(a)throw Error(`Formula missing closing parenthesis`);let s=r.length?r[r.length-1]:null;if(!(!o&&!i&&!n)){if(s&&s.type===`reference`&&n===`)`){s.type=`function`,s.value=this._subFormula(i,s.value),i=``;return}if(n===`)`){let t=new exports.Parser(i,this.settings);r.push({type:`segment`,value:t})}else if(o){if(o===`]`){r.push({type:`reference`,value:i}),i=``;return}r.push({type:`literal`,value:i})}else if(t.operatorCharacters.includes(i))s&&s.type===`operator`&&t.operators.includes(s.value+i)?s.value+=i:r.push({type:`operator`,value:i});else if(i.match(t.numberRx))r.push({type:`constant`,value:parseFloat(i)});else if(this.settings.constants[i]!==void 0)r.push({type:`constant`,value:this.settings.constants[i]});else{if(!i.match(t.tokenRx))throw Error(`Formula contains invalid token: ${i}`);r.push({type:`reference`,value:i})}i=``}};for(let e of n)o?e===o?(s(),o=!1):i+=e:a?e===`(`?(i+=e,++a):e===`)`?(--a,a?i+=e:s(e)):i+=e:e in t.literals?o=t.literals[e]:e===`(`?(s(),++a):t.operatorCharacters.includes(e)?(s(),i=e,s()):e===` `?s():i+=e;s(),r=r.map((e,t)=>e.type!==`operator`||e.value!==`-`||t&&r[t-1].type!==`operator`?e:{type:`operator`,value:`n`});let c=!1;for(let e of r){if(e.type===`operator`){if(t.operatorsPrefix.includes(e.value))continue;if(!c)throw Error(`Formula contains an operator in invalid position`);if(!t.operators.includes(e.value))throw Error(`Formula contains an unknown operator ${e.value}`)}else if(c)throw Error(`Formula missing expected operator`);c=!c}if(!c)throw Error(`Formula contains invalid trailing operator`);r.length===1&&[`reference`,`literal`,`constant`].includes(r[0].type)&&(this.single={type:r[0].type===`reference`?`reference`:`value`,value:r[0].value}),this._parts=r.map(e=>{if(e.type===`operator`)return t.operatorsPrefix.includes(e.value)?e:e.value;if(e.type!==`reference`)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw Error(`Formula contains invalid reference ${e.value}`);return this.settings.reference?this.settings.reference(e.value):t.reference(e.value)})}_subFormula(n,r){let i=this.settings.functions[r];if(typeof i!=`function`)throw Error(`Formula contains unknown function ${r}`);let a=[];if(n){let e=``,i=0,o=!1,s=()=>{if(!e)throw Error(`Formula contains function ${r} with invalid arguments ${n}`);a.push(e),e=``};for(let r=0;r<n.length;++r){let a=n[r];o?(e+=a,a===o&&(o=!1)):a in t.literals&&!i?(e+=a,o=t.literals[a]):a===`,`&&!i?s():(e+=a,a===`(`?++i:a===`)`&&--i)}s()}return a=a.map(t=>new exports.Parser(t,this.settings)),function(e){let t=[];for(let n of a)t.push(n.evaluate(e));return i.call(e,...t)}}evaluate(e){let n=this._parts.slice();for(let r=n.length-2;r>=0;--r){let i=n[r];if(i&&i.type===`operator`){let a=n[r+1];n.splice(r+1,1);let o=t.evaluate(a,e);n[r]=t.single(i.value,o)}}return t.operatorsOrder.forEach(r=>{for(let i=1;i<n.length-1;)if(r.includes(n[i])){let r=n[i],a=t.evaluate(n[i-1],e),o=t.evaluate(n[i+1],e);n.splice(i,2);let s=t.calculate(r,a,o);n[i-1]=s===0?0:s}else i+=2}),t.evaluate(n[0],e)}},exports.Parser.prototype[t.symbol]=!0,t.reference=function(e){return function(t){return t&&t[e]!==void 0?t[e]:null}},t.evaluate=function(e,n){return e===null?null:typeof e==`function`?e(n):e[t.symbol]?e.evaluate(n):e},t.single=function(e,t){if(e===`!`)return!t;let n=-t;return n===0?0:n},t.calculate=function(e,n,r){if(e===`??`)return t.exists(n)?n:r;if(typeof n==`string`||typeof r==`string`){if(e===`+`)return n=t.exists(n)?n:``,r=t.exists(r)?r:``,n+r}else switch(e){case`^`:return n**+r;case`*`:return n*r;case`/`:return n/r;case`%`:return n%r;case`+`:return n+r;case`-`:return n-r}switch(e){case`<`:return n<r;case`<=`:return n<=r;case`>`:return n>r;case`>=`:return n>=r;case`==`:return n===r;case`!=`:return n!==r;case`&&`:return n&&r;case`||`:return n||r}return null},t.exists=function(e){return e!=null}}),le=s(exports=>{let t=b(),n=M(),r={annotations:Symbol(`annotations`)};exports.error=function(e){if(!this._original||typeof this._original!=`object`)return this.details[0].message;let i=e?``:`\x1B[31m`,a=e?``:`\x1B[41m`,o=e?``:`\x1B[0m`,s=t(this._original);for(let e=this.details.length-1;e>=0;--e){let t=e+1,i=this.details[e],a=i.path,o=s;for(let e=0;;++e){let s=a[e];if(n.isSchema(o)&&(o=o.clone()),e+1<a.length&&typeof o[s]!=`string`)o=o[s];else{let e=o[r.annotations]||{errors:{},missing:{}};o[r.annotations]=e;let n=s||i.context.key;o[s]===void 0?e.missing[n]=t:(e.errors[n]=e.errors[n]||[],e.errors[n].push(t));break}}}let c={key:/_\$key\$_([, \d]+)_\$end\$_"/g,missing:/"_\$miss\$_([^|]+)\|(\d+)_\$end\$_": "__missing__"/g,arrayIndex:/\s*"_\$idx\$_([, \d]+)_\$end\$_",?\n(.*)/g,specials:/"\[(NaN|Symbol.*|-?Infinity|function.*|\(.*)]"/g},l=r.safeStringify(s,2).replace(c.key,(e,t)=>`" ${i}[${t}]${o}`).replace(c.missing,(e,t,n)=>`${a}"${t}"${o}${i} [${n}]: -- missing --${o}`).replace(c.arrayIndex,(e,t,n)=>`\n${n} ${i}[${t}]${o}`).replace(c.specials,(e,t)=>t);l=`${l}\n${i}`;for(let e=0;e<this.details.length;++e){let t=e+1;l=`${l}\n[${t}] ${this.details[e].message}`}return l+=o,l},r.safeStringify=function(e,t){return JSON.stringify(e,r.serializer(),t)},r.serializer=function(){let e=[],t=[],n=(n,r)=>t[0]===r?`[Circular ~]`:`[Circular ~.`+e.slice(0,t.indexOf(r)).join(`.`)+`]`;return function(i,a){if(t.length>0){let r=t.indexOf(this);~r?(t.length=r+1,e.length=r+1,e[r]=i):(t.push(this),e.push(i)),~t.indexOf(a)&&(a=n.call(this,i,a))}else t.push(a);if(a){let e=a[r.annotations];if(e){if(Array.isArray(a)){let t=[];for(let n=0;n<a.length;++n)e.errors[n]&&t.push(`_$idx$_${e.errors[n].sort().join(`, `)}_$end$_`),t.push(a[n]);a=t}else{for(let t in e.errors)a[`${t}_$key$_${e.errors[t].sort().join(`, `)}_$end$_`]=a[t],a[t]=void 0;for(let t in e.missing)a[`_$miss$_${t}|${e.missing[t]}_$end$_`]=`__missing__`}return a}}return a===1/0||a===-1/0||Number.isNaN(a)||typeof a==`function`||typeof a==`symbol`?`[`+a.toString()+`]`:a}}}),j=s(exports=>{let t=le(),n=M(),r=de();exports.Report=class{constructor(t,n,r,i,a,o,s){if(this.code=t,this.flags=i,this.messages=a,this.path=o.path,this.prefs=s,this.state=o,this.value=n,this.message=null,this.template=null,this.local=r||{},this.local.label=exports.label(this.flags,this.state,this.prefs,this.messages),this.value!==void 0&&!this.local.hasOwnProperty(`value`)&&(this.local.value=this.value),this.path.length){let e=this.path[this.path.length-1];typeof e!=`object`&&(this.local.key=e)}}_setTemplate(e){if(this.template=e,!this.flags.label&&this.path.length===0){let e=this._template(this.template,`root`);e&&(this.local.label=e)}}toString(){if(this.message)return this.message;let e=this.code;if(!this.prefs.errors.render)return this.code;let t=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return t===void 0?`Error code "${e}" is not defined, your custom type is missing the correct messages definition`:(this.message=t.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,``).trim()),this.message)}_template(t,n){return exports.template(this.value,t,n||this.code,this.state,this.prefs)}},exports.path=function(e){let t=``;for(let n of e){if(typeof n==`object`)continue;typeof n==`string`?(t&&(t+=`.`),t+=n):t+=`[${n}]`}return t},exports.template=function(e,t,i,a,o){if(!t)return;if(r.isTemplate(t))return i===`root`?null:t;let s=o.errors.language;if(n.isResolvable(s)&&(s=s.resolve(e,a,o)),s&&t[s]){if(t[s][i]!==void 0)return t[s][i];if(t[s][`*`]!==void 0)return t[s][`*`]}return t[i]?t[i]:t[`*`]},exports.label=function(t,n,r,i){if(!r.errors.label)return``;if(t.label)return t.label;let a=n.path;r.errors.label===`key`&&n.path.length>1&&(a=n.path.slice(-1));let o=exports.path(a);return o||exports.template(null,r.messages,`root`,n,r)||i&&exports.template(null,i,`root`,n,r)||`value`},exports.process=function(t,n,r){if(!t)return null;let{override:i,message:a,details:o}=exports.details(t);if(i)return i;if(r.errors.stack)return new exports.ValidationError(a,o,n);let s=Error.stackTraceLimit;Error.stackTraceLimit=0;let c=new exports.ValidationError(a,o,n);return Error.stackTraceLimit=s,c},exports.details=function(e,t={}){let n=[],r=[];for(let i of e){if(i instanceof Error){if(t.override!==!1)return{override:i};let e=i.toString();n.push(e),r.push({message:e,type:`override`,context:{error:i}});continue}let e=i.toString();n.push(e),r.push({message:e,path:i.path.filter(e=>typeof e!=`object`),type:i.code,context:i.local})}return n.length>1&&(n=[...new Set(n)]),{message:n.join(`. `),details:r}},exports.ValidationError=class extends Error{constructor(e,t,n){super(e),this._original=n,this.details=t}static isError(t){return t instanceof exports.ValidationError}},exports.ValidationError.prototype.isJoi=!0,exports.ValidationError.prototype.name=`ValidationError`,exports.ValidationError.prototype.annotate=t.error}),ue=s(exports=>{let t=g(),n=b(),r=_(),i=M(),a,o={symbol:Symbol(`ref`),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:`.`,type:`value`}};exports.create=function(e,n={}){t(typeof e==`string`,`Invalid reference key:`,e),i.assertOptions(n,[`adjust`,`ancestor`,`in`,`iterables`,`map`,`prefix`,`render`,`separator`]),t(!n.prefix||typeof n.prefix==`object`,`options.prefix must be of type object`);let r=Object.assign({},o.defaults,n);delete r.prefix;let a=r.separator,s=o.context(e,a,n.prefix);if(r.type=s.type,e=s.key,r.type===`value`)if(s.root&&(t(!a||e[0]!==a,`Cannot specify relative path with root prefix`),r.ancestor=`root`,e||=null),a&&a===e)e=null,r.ancestor=0;else if(r.ancestor!==void 0)t(!a||!e||e[0]!==a,`Cannot combine prefix with ancestor option`);else{let[t,n]=o.ancestor(e,a);n&&(e=e.slice(n),e===``&&(e=null)),r.ancestor=t}return r.path=a?e===null?[]:e.split(a):[e],new o.Ref(r)},exports.in=function(t,n={}){return exports.create(t,{...n,in:!0})},exports.isRef=function(e){return e?!!e[i.symbols.ref]:!1},o.Ref=class{constructor(e){t(typeof e==`object`,`Invalid reference construction`),i.assertOptions(e,[`adjust`,`ancestor`,`in`,`iterables`,`map`,`path`,`render`,`separator`,`type`,`depth`,`key`,`root`,`display`]),t([!1,void 0].includes(e.separator)||typeof e.separator==`string`&&e.separator.length===1,`Invalid separator`),t(!e.adjust||typeof e.adjust==`function`,`options.adjust must be a function`),t(!e.map||Array.isArray(e.map),`options.map must be an array`),t(!e.map||!e.adjust,`Cannot set both map and adjust options`),Object.assign(this,o.defaults,e),t(this.type===`value`||this.ancestor===void 0,`Non-value references cannot reference ancestors`),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(e,n,r,i,a={}){return t(!this.in||a.in,`Invalid in() reference usage`),this.type===`global`?this._resolve(r.context,n,a):this.type===`local`?this._resolve(i,n,a):this.ancestor?this.ancestor===`root`?this._resolve(n.ancestors[n.ancestors.length-1],n,a):(t(this.ancestor<=n.ancestors.length,`Invalid reference exceeds the schema root:`,this.display),this._resolve(n.ancestors[this.ancestor-1],n,a)):this._resolve(e,n,a)}_resolve(e,t,n){let i;if(this.type===`value`&&t.mainstay.shadow&&n.shadow!==!1&&(i=t.mainstay.shadow.get(this.absolute(t))),i===void 0&&(i=r(e,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(i=this.adjust(i)),this.map){let e=this.map.get(i);e!==void 0&&(i=e)}return t.mainstay&&t.mainstay.tracer.resolve(t,this,i),i}toString(){return this.display}absolute(e){return[...e.path.slice(0,-this.ancestor),...this.path]}clone(){return new o.Ref(this)}describe(){let e={path:this.path};this.type!==`value`&&(e.type=this.type),this.separator!==`.`&&(e.separator=this.separator),this.type===`value`&&this.ancestor!==1&&(e.ancestor=this.ancestor),this.map&&(e.map=[...this.map]);for(let t of[`adjust`,`iterables`,`render`])this[t]!==null&&this[t]!==void 0&&(e[t]=this[t]);return this.in!==!1&&(e.in=!0),{ref:e}}updateDisplay(){let e=this.key===null?``:this.key;if(this.type!==`value`){this.display=`ref:${this.type}:${e}`;return}if(!this.separator){this.display=`ref:${e}`;return}if(!this.ancestor){this.display=`ref:${this.separator}${e}`;return}if(this.ancestor===`root`){this.display=`ref:root:${e}`;return}if(this.ancestor===1){this.display=`ref:${e||`..`}`;return}let t=Array(this.ancestor+1).fill(this.separator).join(``);this.display=`ref:${t}${e||``}`}},o.Ref.prototype[i.symbols.ref]=!0,exports.build=function(e){return e=Object.assign({},o.defaults,e),e.type===`value`&&e.ancestor===void 0&&(e.ancestor=1),new o.Ref(e)},o.context=function(e,t,n={}){if(e=e.trim(),n){let r=n.global===void 0?`$`:n.global;if(r!==t&&e.startsWith(r))return{key:e.slice(r.length),type:`global`};let i=n.local===void 0?`#`:n.local;if(i!==t&&e.startsWith(i))return{key:e.slice(i.length),type:`local`};let a=n.root===void 0?`/`:n.root;if(a!==t&&e.startsWith(a))return{key:e.slice(a.length),type:`value`,root:!0}}return{key:e,type:`value`}},o.ancestor=function(e,t){if(!t||e[0]!==t)return[1,0];if(e[1]!==t)return[0,1];let n=2;for(;e[n]===t;)++n;return[n-1,n]},exports.toSibling=0,exports.toParent=1,exports.Manager=class{constructor(){this.refs=[]}register(t,n){if(t){if(n=n===void 0?exports.toParent:n,Array.isArray(t)){for(let e of t)this.register(e,n);return}if(i.isSchema(t)){for(let e of t._refs.refs)e.ancestor-n>=0&&this.refs.push({ancestor:e.ancestor-n,root:e.root});return}exports.isRef(t)&&t.type===`value`&&t.ancestor-n>=0&&this.refs.push({ancestor:t.ancestor-n,root:t.root}),a||=de(),a.isTemplate(t)&&this.register(t.refs(),n)}}get length(){return this.refs.length}clone(){let t=new exports.Manager;return t.refs=n(this.refs),t}reset(){this.refs=[]}roots(){return this.refs.filter(e=>!e.ancestor).map(e=>e.root)}}}),de=s((exports,t)=>{let n=g(),r=b(),i=se(),a=ce(),o=M(),s=j(),c=ue(),l={symbol:Symbol(`template`),opens:Array(1e3).join(`\0`),closes:Array(1e3).join(``),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};t.exports=exports=l.Template=class{constructor(e,t){if(n(typeof e==`string`,`Template source must be a string`),n(!e.includes(`\0`)&&!e.includes(``),`Template source cannot contain reserved control characters`),this.source=e,this.rendered=e,this._template=null,t){let{functions:e,...i}=t;this._settings=Object.keys(i).length?r(i):void 0,this._functions=e,this._functions&&(n(Object.keys(this._functions).every(e=>typeof e==`string`),`Functions keys must be strings`),n(Object.values(this._functions).every(e=>typeof e==`function`),`Functions values must be functions`))}else this._settings=void 0,this._functions=void 0;this._parse()}_parse(){if(!this.source.includes(`{`))return;let e=l.encode(this.source),t=l.split(e),n=!1,r=[],i=t.shift();i&&r.push(i);for(let e of t){let t=e[0]!==`{`,i=t?`}`:`}}`,a=e.indexOf(i);if(a===-1||e[1]===`{`){r.push(`{${l.decode(e)}`);continue}let o=e.slice(t?0:1,a),s=o[0]===`:`;s&&(o=o.slice(1));let c=this._ref(l.decode(o),{raw:t,wrapped:s});r.push(c),typeof c!=`string`&&(n=!0);let u=e.slice(a+i.length);u&&r.push(l.decode(u))}if(!n){this.rendered=r.join(``);return}this._template=r}static date(e,t){return l.dateFormat[t.dateFormat].call(e)}describe(e={}){if(!this._settings&&e.compact)return this.source;let t={template:this.source};return this._settings&&(t.options=this._settings),this._functions&&(t.functions=this._functions),t}static build(e){return new l.Template(e.template,e.options||e.functions?{...e.options,functions:e.functions}:void 0)}isDynamic(){return!!this._template}static isTemplate(e){return e?!!e[o.symbols.template]:!1}refs(){if(!this._template)return;let e=[];for(let t of this._template)typeof t!=`string`&&e.push(...t.refs);return e}resolve(e,t,n,r){return this._template&&this._template.length===1?this._part(this._template[0],e,t,n,r,{}):this.render(e,t,n,r)}_part(e,...t){return e.ref?e.ref.resolve(...t):e.formula.evaluate(t)}render(e,t,n,r,a={}){if(!this.isDynamic())return this.rendered;let o=[];for(let s of this._template)if(typeof s==`string`)o.push(s);else{let c=this._part(s,e,t,n,r,a),u=l.stringify(c,e,t,n,r,a);if(u!==void 0){let e=s.raw||(a.errors&&a.errors.escapeHtml)===!1?u:i(u);o.push(l.wrap(e,s.wrapped&&n.errors.wrap.label))}}return o.join(``)}_ref(e,{raw:t,wrapped:n}){let r=[],i=e=>{let t=c.create(e,this._settings);return r.push(t),e=>{let n=t.resolve(...e);return n===void 0?null:n}};try{let t=this._functions?{...l.functions,...this._functions}:l.functions;var o=new a.Parser(e,{reference:i,functions:t,constants:l.constants})}catch(t){throw t.message=`Invalid template variable "${e}" fails due to: ${t.message}`,t}if(o.single){if(o.single.type===`reference`){let e=r[0];return{ref:e,raw:t,refs:r,wrapped:n||e.type===`local`&&e.key===`label`}}return l.stringify(o.single.value)}return{formula:o,raw:t,refs:r}}toString(){return this.source}},l.Template.prototype[o.symbols.template]=!0,l.Template.prototype.isImmutable=!0,l.encode=function(e){return e.replace(/\\(\{+)/g,(e,t)=>l.opens.slice(0,t.length)).replace(/\\(\}+)/g,(e,t)=>l.closes.slice(0,t.length))},l.decode=function(e){return e.replace(/\u0000/g,`{`).replace(/\u0001/g,`}`)},l.split=function(e){let t=[],n=``;for(let r=0;r<e.length;++r){let i=e[r];if(i===`{`){let i=``;for(;r+1<e.length&&e[r+1]===`{`;)i+=`{`,++r;t.push(n),n=i}else n+=i}return t.push(n),t},l.wrap=function(e,t){return t?t.length===1?`${t}${e}${t}`:`${t[0]}${e}${t[1]}`:e},l.stringify=function(e,t,n,r,i,a={}){let o=typeof e,s=r&&r.errors&&r.errors.wrap||{},u=!1;if(c.isRef(e)&&e.render&&(u=e.in,e=e.resolve(t,n,r,i,{in:e.in,...a})),e===null)return`null`;if(o===`string`)return l.wrap(e,a.arrayItems&&s.string);if(o===`number`||o===`function`||o===`symbol`)return e.toString();if(o!==`object`)return JSON.stringify(e);if(e instanceof Date)return l.Template.date(e,r);if(e instanceof Map){let t=[];for(let[n,r]of e.entries())t.push(`${n.toString()} -> ${r.toString()}`);e=t}if(!Array.isArray(e))return e.toString();let d=[];for(let o of e)d.push(l.stringify(o,t,n,r,i,{arrayItems:!0,...a}));return l.wrap(d.join(`, `),!u&&s.array)},l.constants={true:!0,false:!1,null:null,second:1e3,minute:60*1e3,hour:60*60*1e3,day:24*60*60*1e3},l.functions={if(e,t,n){return e?t:n},length(e){return typeof e==`string`?e.length:!e||typeof e!=`object`?null:Array.isArray(e)?e.length:Object.keys(e).length},msg(e){let[t,n,r,i,a]=this,o=a.messages;if(!o)return``;let c=s.template(t,o[0],e,n,r)||s.template(t,o[1],e,n,r);return c?c.render(t,n,r,i,a):``},number(e){return typeof e==`number`?e:typeof e==`string`?parseFloat(e):typeof e==`boolean`?e?1:0:e instanceof Date?e.getTime():null}}}),fe=s(exports=>{let t=g(),n=b(),r=de();exports.compile=function(e,i){if(typeof e==`string`)return t(!i,`Cannot set single message string`),new r(e);if(r.isTemplate(e))return t(!i,`Cannot set single message template`),e;for(let a in t(typeof e==`object`&&!Array.isArray(e),`Invalid message options`),i=i?n(i):{},e){let n=e[a];if(a===`root`||r.isTemplate(n)){i[a]=n;continue}if(typeof n==`string`){i[a]=new r(n);continue}t(typeof n==`object`&&!Array.isArray(n),`Invalid message for`,a);let o=a;for(a in i[o]=i[o]||{},n){let e=n[a];if(a===`root`||r.isTemplate(e)){i[o][a]=e;continue}t(typeof e==`string`,`Invalid message for`,a,`in`,o),i[o][a]=new r(e)}}return i},exports.decompile=function(e){let t={};for(let n in e){let i=e[n];if(n===`root`){t.root=i;continue}if(r.isTemplate(i)){t[n]=i.describe({compact:!0});continue}let a=n;for(n in t[a]={},i){let e=i[n];if(n===`root`){t[a].root=e;continue}t[a][n]=e.describe({compact:!0})}}return t},exports.merge=function(i,a){if(!i)return exports.compile(a);if(!a)return i;if(typeof a==`string`)return new r(a);if(r.isTemplate(a))return a;let o=n(i);for(let e in a){let n=a[e];if(e===`root`||r.isTemplate(n)){o[e]=n;continue}if(typeof n==`string`){o[e]=new r(n);continue}t(typeof n==`object`&&!Array.isArray(n),`Invalid message for`,e);let i=e;for(e in o[i]=o[i]||{},n){let a=n[e];if(e===`root`||r.isTemplate(a)){o[i][e]=a;continue}t(typeof a==`string`,`Invalid message for`,e,`in`,i),o[i][e]=new r(a)}}return o}}),M=s(exports=>{let t=g(),n=h(),r=(ae(),d(x).default),i,a,o={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};exports.version=r.version,exports.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:`iso`,errors:{escapeHtml:!1,label:`path`,language:null,render:!0,stack:!1,wrap:{label:`"`,array:`[]`}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:`optional`,skipFunctions:!1,stripUnknown:!1,warnings:!1},exports.symbols={any:Symbol.for(`@hapi/joi/schema`),arraySingle:Symbol(`arraySingle`),deepDefault:Symbol(`deepDefault`),errors:Symbol(`errors`),literal:Symbol(`literal`),override:Symbol(`override`),parent:Symbol(`parent`),prefs:Symbol(`prefs`),ref:Symbol(`ref`),template:Symbol(`template`),values:Symbol(`values`)},exports.assertOptions=function(e,n,r=`Options`){t(e&&typeof e==`object`&&!Array.isArray(e),`Options must be of type object`);let i=Object.keys(e).filter(e=>!n.includes(e));t(i.length===0,`${r} contain unknown keys: ${i}`)},exports.checkPreferences=function(e){a||=oe();let t=a.preferences.validate(e);if(t.error)throw new n([t.error.details[0].message])},exports.compare=function(e,t,n){switch(n){case`=`:return e===t;case`>`:return e>t;case`<`:return e<t;case`>=`:return e>=t;case`<=`:return e<=t}},exports.default=function(e,t){return e===void 0?t:e},exports.isIsoDate=function(e){return o.isoDate.test(e)},exports.isNumber=function(e){return typeof e==`number`&&!isNaN(e)},exports.isResolvable=function(t){return t?t[exports.symbols.ref]||t[exports.symbols.template]:!1},exports.isSchema=function(n,r={}){let i=n&&n[exports.symbols.any];return i?(t(r.legacy||i.version===exports.version,`Cannot mix different versions of joi schemas`),!0):!1},exports.isValues=function(t){return t[exports.symbols.values]},exports.limit=function(e){return Number.isSafeInteger(e)&&e>=0},exports.preferences=function(t,n){i||=fe(),t||={},n||={};let r=Object.assign({},t,n);return n.errors&&t.errors&&(r.errors=Object.assign({},t.errors,n.errors),r.errors.wrap=Object.assign({},t.errors.wrap,n.errors.wrap)),n.messages&&(r.messages=i.compile(n.messages,t.messages)),delete r[exports.symbols.prefs],r},exports.tryWithPath=function(e,t,n={}){try{return e()}catch(e){throw e.path===void 0?e.path=t:e.path=t+`.`+e.path,n.append&&(e.message=`${e.message} (${e.path})`),e}},exports.validateArg=function(t,n,{assert:r,message:i}){if(exports.isSchema(r)){let e=r.validate(t);return e.error?e.error.message:void 0}else if(!r(t))return n?`${n} ${i}`:i},exports.verifyFlat=function(e,n){for(let r of e)t(!Array.isArray(r),`Method no longer accepts array arguments:`,n)}}),pe=s(exports=>{let t=g(),n=b(),r=M(),i={max:1e3,supported:new Set([`undefined`,`boolean`,`number`,`string`])};exports.provider={provision(e){return new i.Cache(e)}},i.Cache=class{constructor(e={}){r.assertOptions(e,[`max`]),t(e.max===void 0||e.max&&e.max>0&&isFinite(e.max),`Invalid max cache size`),this._max=e.max||i.max,this._map=new Map,this._list=new i.List}get length(){return this._map.size}set(e,t){if(e!==null&&!i.supported.has(typeof e))return;let n=this._map.get(e);if(n){n.value=t,this._list.first(n);return}n=this._list.unshift({key:e,value:t}),this._map.set(e,n),this._compact()}get(e){let t=this._map.get(e);if(t)return this._list.first(t),n(t.value)}_compact(){if(this._map.size>this._max){let e=this._list.pop();this._map.delete(e.key)}}},i.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||=e,e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){let{next:t,prev:n}=e;return t.prev=n,n&&(n.next=t),e===this.tail&&(this.tail=t),e.prev=null,e.next=null,e}}}),me=s(exports=>{let t=g(),n=M(),r=ue(),i={};exports.schema=function(e,t,r={}){n.assertOptions(r,[`appendPath`,`override`]);try{return i.schema(e,t,r)}catch(e){throw r.appendPath&&e.path!==void 0&&(e.message=`${e.message} (${e.path})`),e}},i.schema=function(e,r,a){t(r!==void 0,`Invalid undefined schema`),Array.isArray(r)&&(t(r.length,`Invalid empty array schema`),r.length===1&&(r=r[0]));let o=(t,...n)=>a.override===!1?t.valid(...n):t.valid(e.override,...n);if(i.simple(r))return o(e,r);if(typeof r==`function`)return e.custom(r);if(t(typeof r==`object`,`Invalid schema content:`,typeof r),n.isResolvable(r))return o(e,r);if(n.isSchema(r))return r;if(Array.isArray(r)){for(let t of r)if(!i.simple(t))return e.alternatives().try(...r);return o(e,...r)}return r instanceof RegExp?e.string().regex(r):r instanceof Date?o(e.date(),r):(t(Object.getPrototypeOf(r)===Object.getPrototypeOf({}),`Schema can only contain plain objects`),e.object().keys(r))},exports.ref=function(e,t){return r.isRef(e)?e:r.create(e,t)},exports.compile=function(r,a,o={}){n.assertOptions(o,[`legacy`]);let s=a&&a[n.symbols.any];if(s)return t(o.legacy||s.version===n.version,`Cannot mix different versions of joi schemas:`,s.version,n.version),a;if(typeof a!=`object`||!o.legacy)return exports.schema(r,a,{appendPath:!0});let c=i.walk(a);return c?c.compile(c.root,a):exports.schema(r,a,{appendPath:!0})},i.walk=function(e){if(typeof e!=`object`)return null;if(Array.isArray(e)){for(let t of e){let e=i.walk(t);if(e)return e}return null}let r=e[n.symbols.any];if(r)return{root:e[r.root],compile:r.compile};for(let n in t(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),`Schema can only contain plain objects`),e){let t=i.walk(e[n]);if(t)return t}return null},i.simple=function(e){return e===null||[`boolean`,`string`,`number`].includes(typeof e)},exports.when=function(a,o,s){if(s===void 0&&(t(o&&typeof o==`object`,`Missing options`),s=o,o=r.create(`.`)),Array.isArray(s)&&(s={switch:s}),n.assertOptions(s,[`is`,`not`,`then`,`otherwise`,`switch`,`break`]),n.isSchema(o))return t(s.is===void 0,`"is" can not be used with a schema condition`),t(s.not===void 0,`"not" can not be used with a schema condition`),t(s.switch===void 0,`"switch" can not be used with a schema condition`),i.condition(a,{is:o,then:s.then,otherwise:s.otherwise,break:s.break});if(t(r.isRef(o)||typeof o==`string`,`Invalid condition:`,o),t(s.not===void 0||s.is===void 0,`Cannot combine "is" with "not"`),s.switch===void 0){let c=s;s.not!==void 0&&(c={is:s.not,then:s.otherwise,otherwise:s.then,break:s.break});let l=c.is===void 0?a.$_root.invalid(null,!1,0,``).required():a.$_compile(c.is);return t(c.then!==void 0||c.otherwise!==void 0,`options must have at least one of "then", "otherwise", or "switch"`),t(c.break===void 0||c.then===void 0||c.otherwise===void 0,`Cannot specify then, otherwise, and break all together`),s.is!==void 0&&!r.isRef(s.is)&&!n.isSchema(s.is)&&(l=l.required()),i.condition(a,{ref:exports.ref(o),is:l,then:c.then,otherwise:c.otherwise,break:c.break})}t(Array.isArray(s.switch),`"switch" must be an array`),t(s.is===void 0,`Cannot combine "switch" with "is"`),t(s.not===void 0,`Cannot combine "switch" with "not"`),t(s.then===void 0,`Cannot combine "switch" with "then"`);let c={ref:exports.ref(o),switch:[],break:s.break};for(let e=0;e<s.switch.length;++e){let i=s.switch[e],o=e===s.switch.length-1;n.assertOptions(i,o?[`is`,`then`,`otherwise`]:[`is`,`then`]),t(i.is!==void 0,`Switch statement missing "is"`),t(i.then!==void 0,`Switch statement missing "then"`);let l={is:a.$_compile(i.is),then:a.$_compile(i.then)};if(!r.isRef(i.is)&&!n.isSchema(i.is)&&(l.is=l.is.required()),o){t(s.otherwise===void 0||i.otherwise===void 0,`Cannot specify "otherwise" inside and outside a "switch"`);let e=s.otherwise===void 0?i.otherwise:s.otherwise;e!==void 0&&(t(c.break===void 0,`Cannot specify both otherwise and break`),l.otherwise=a.$_compile(e))}c.switch.push(l)}return c},i.condition=function(e,t){for(let n of[`then`,`otherwise`])t[n]===void 0?delete t[n]:t[n]=e.$_compile(t[n]);return t}}),he=s(exports=>{let t=g(),n=b(),r=M(),i=fe(),a={};exports.type=function(e,o){let s=Object.getPrototypeOf(e),c=n(s),l=e._assign(Object.create(c)),u=Object.assign({},o);delete u.base,c._definition=u;let d=s._definition||{};u.messages=i.merge(d.messages,u.messages),u.properties=Object.assign({},d.properties,u.properties),l.type=u.type,u.flags=Object.assign({},d.flags,u.flags);let f=Object.assign({},d.terms);if(u.terms)for(let e in u.terms){let n=u.terms[e];t(l.$_terms[e]===void 0,`Invalid term override for`,u.type,e),l.$_terms[e]=n.init,f[e]=n}u.terms=f,u.args||=d.args,u.prepare=a.prepare(u.prepare,d.prepare),u.coerce&&(typeof u.coerce==`function`&&(u.coerce={method:u.coerce}),u.coerce.from&&!Array.isArray(u.coerce.from)&&(u.coerce={method:u.coerce.method,from:[].concat(u.coerce.from)})),u.coerce=a.coerce(u.coerce,d.coerce),u.validate=a.validate(u.validate,d.validate);let p=Object.assign({},d.rules);if(u.rules)for(let e in u.rules){let n=u.rules[e];t(typeof n==`object`,`Invalid rule definition for`,u.type,e);let i=n.method;if(i===void 0&&(i=function(){return this.$_addRule(e)}),i&&(t(!c[e],`Rule conflict in`,u.type,e),c[e]=i),t(!p[e],`Rule conflict in`,u.type,e),p[e]=n,n.alias){let e=[].concat(n.alias);for(let t of e)c[t]=n.method}n.args&&(n.argsByName=new Map,n.args=n.args.map(e=>(typeof e==`string`&&(e={name:e}),t(!n.argsByName.has(e.name),`Duplicated argument name`,e.name),r.isSchema(e.assert)&&(e.assert=e.assert.strict().label(e.name)),n.argsByName.set(e.name,e),e)))}u.rules=p;let m=Object.assign({},d.modifiers);if(u.modifiers)for(let e in u.modifiers){t(!c[e],`Rule conflict in`,u.type,e);let n=u.modifiers[e];t(typeof n==`function`,`Invalid modifier definition for`,u.type,e);let r=function(t){return this.rule({[e]:t})};c[e]=r,m[e]=n}if(u.modifiers=m,u.overrides){for(let e in c._super=s,l.$_super={},u.overrides)t(s[e],`Cannot override missing`,e),u.overrides[e][r.symbols.parent]=s[e],l.$_super[e]=s[e].bind(l);Object.assign(c,u.overrides)}u.cast=Object.assign({},d.cast,u.cast);let h=Object.assign({},d.manifest,u.manifest);return h.build=a.build(u.manifest&&u.manifest.build,d.manifest&&d.manifest.build),u.manifest=h,u.rebuild=a.rebuild(u.rebuild,d.rebuild),l},a.build=function(e,t){return!e||!t?e||t:function(n,r){return t(e(n,r),r)}},a.coerce=function(e,t){return!e||!t?e||t:{from:e.from&&t.from?[...new Set([...e.from,...t.from])]:null,method(n,r){let i;if((!t.from||t.from.includes(typeof n))&&(i=t.method(n,r),i)){if(i.errors||i.value===void 0)return i;n=i.value}if(!e.from||e.from.includes(typeof n)){let t=e.method(n,r);if(t)return t}return i}}},a.prepare=function(e,t){return!e||!t?e||t:function(n,r){let i=e(n,r);if(i){if(i.errors||i.value===void 0)return i;n=i.value}return t(n,r)||i}},a.rebuild=function(e,t){return!e||!t?e||t:function(n){t(n),e(n)}},a.validate=function(e,t){return!e||!t?e||t:function(n,r){let i=t(n,r);if(i){if(i.errors&&(!Array.isArray(i.errors)||i.errors.length))return i;n=i.value}return e(n,r)||i}}}),ge=s(exports=>{let t=g(),n=b(),r=M(),i=fe(),a=ue(),o=de(),s,c={};exports.describe=function(e){let a=e._definition,o={type:e.type,flags:{},rules:[]};for(let t in e._flags)t[0]!==`_`&&(o.flags[t]=c.describe(e._flags[t]));Object.keys(o.flags).length||delete o.flags,e._preferences&&(o.preferences=n(e._preferences,{shallow:[`messages`]}),delete o.preferences[r.symbols.prefs],o.preferences.messages&&(o.preferences.messages=i.decompile(o.preferences.messages))),e._valids&&(o.allow=e._valids.describe()),e._invalids&&(o.invalid=e._invalids.describe());for(let t of e._rules){let e=a.rules[t.name];if(e.manifest===!1)continue;let n={name:t.name};for(let e in a.modifiers)t[e]!==void 0&&(n[e]=c.describe(t[e]));if(t.args){for(let e in n.args={},t.args){let r=t.args[e];if(e===`options`&&!Object.keys(r).length)continue;n.args[e]=c.describe(r,{assign:e})}Object.keys(n.args).length||delete n.args}o.rules.push(n)}for(let n in o.rules.length||delete o.rules,e.$_terms){if(n[0]===`_`)continue;t(!o[n],`Cannot describe schema due to internal name conflict with`,n);let i=e.$_terms[n];if(!i)continue;if(i instanceof Map){i.size&&(o[n]=[...i.entries()]);continue}if(r.isValues(i)){o[n]=i.describe();continue}t(a.terms[n],`Term`,n,`missing configuration`);let s=a.terms[n].manifest,l=typeof s==`object`;if(!i.length&&!l)continue;let u=[];for(let e of i)u.push(c.describe(e));if(l){let{from:e,to:t}=s.mapped;o[n]={};for(let r of u)o[n][r[t]]=r[e];continue}if(s===`single`){t(u.length===1,`Term`,n,`contains more than one item`),o[n]=u[0];continue}o[n]=u}return c.validate(e.$_root,o),o},c.describe=function(e,t={}){if(Array.isArray(e))return e.map(c.describe);if(e===r.symbols.deepDefault)return{special:`deep`};if(typeof e!=`object`||!e)return e;if(t.assign===`options`)return n(e);if(Buffer&&Buffer.isBuffer(e))return{buffer:e.toString(`binary`)};if(e instanceof Date)return e.toISOString();if(e instanceof Error)return e;if(e instanceof RegExp)return t.assign===`regex`?e.toString():{regex:e.toString()};if(e[r.symbols.literal])return{function:e.literal};if(typeof e.describe==`function`)return t.assign===`ref`?e.describe().ref:e.describe();let i={};for(let t in e){let n=e[t];if(n===void 0)continue;i[t]=c.describe(n,{assign:t})}return i},exports.build=function(e,t){let n=new c.Builder(e);return n.parse(t)},c.Builder=class{constructor(e){this.joi=e}parse(e){c.validate(this.joi,e);let n=this.joi[e.type]()._bare(),r=n._definition;if(e.flags)for(let i in e.flags){let a=r.flags[i]&&r.flags[i].setter||i;t(typeof n[a]==`function`,`Invalid flag`,i,`for type`,e.type),n=n[a](this.build(e.flags[i]))}if(e.preferences&&(n=n.preferences(this.build(e.preferences))),e.allow&&(n=n.allow(...this.build(e.allow))),e.invalid&&(n=n.invalid(...this.build(e.invalid))),e.rules)for(let i of e.rules){t(typeof n[i.name]==`function`,`Invalid rule`,i.name,`for type`,e.type);let a=[];if(i.args){let n={};for(let e in i.args)n[e]=this.build(i.args[e],{assign:e});let o=Object.keys(n),s=r.rules[i.name].args;if(s){t(o.length<=s.length,`Invalid number of arguments for`,e.type,i.name,`(expected up to`,s.length,`, found`,o.length,`)`);for(let{name:e}of s)a.push(n[e])}else t(o.length===1,`Invalid number of arguments for`,e.type,i.name,`(expected up to 1, found`,o.length,`)`),a.push(n[o[0]])}n=n[i.name](...a);let o={};for(let e in r.modifiers)i[e]!==void 0&&(o[e]=this.build(i[e]));Object.keys(o).length&&(n=n.rule(o))}let i={};for(let n in e){if([`allow`,`flags`,`invalid`,`whens`,`preferences`,`rules`,`type`].includes(n))continue;t(r.terms[n],`Term`,n,`missing configuration`);let a=r.terms[n].manifest;if(a===`schema`){i[n]=e[n].map(e=>this.parse(e));continue}if(a===`values`){i[n]=e[n].map(e=>this.build(e));continue}if(a===`single`){i[n]=this.build(e[n]);continue}if(typeof a==`object`){for(let t in i[n]={},e[n]){let r=e[n][t];i[n][t]=this.parse(r)}continue}i[n]=this.build(e[n])}return e.whens&&(i.whens=e.whens.map(e=>this.build(e))),n=r.manifest.build(n,i),n.$_temp.ruleset=!1,n}build(e,i={}){if(e===null)return null;if(Array.isArray(e))return e.map(e=>this.build(e));if(e instanceof Error)return e;if(i.assign===`options`)return n(e);if(i.assign===`regex`)return c.regex(e);if(i.assign===`ref`)return a.build(e);if(typeof e!=`object`)return e;if(Object.keys(e).length===1){if(e.buffer)return t(Buffer,`Buffers are not supported`),Buffer&&Buffer.from(e.buffer,`binary`);if(e.function)return{[r.symbols.literal]:!0,literal:e.function};if(e.override)return r.symbols.override;if(e.ref)return a.build(e.ref);if(e.regex)return c.regex(e.regex);if(e.special)return t([`deep`].includes(e.special),`Unknown special value`,e.special),r.symbols.deepDefault;if(e.value)return n(e.value)}if(e.type)return this.parse(e);if(e.template)return o.build(e);let s={};for(let t in e)s[t]=this.build(e[t],{assign:t});return s}},c.regex=function(e){let t=e.lastIndexOf(`/`),n=e.slice(1,t),r=e.slice(t+1);return new RegExp(n,r)},c.validate=function(e,t){s||=oe(),e.assert(t,s.description)}}),_e=s((exports,t)=>{let n=v(),r={mismatched:null};t.exports=function(e,t,n){return n=Object.assign({prototype:!0},n),!!r.isDeepEqual(e,t,n,[])},r.isDeepEqual=function(e,t,i,a){if(e===t)return e!==0||1/e==1/t;let o=typeof e;if(o!==typeof t||e===null||t===null)return!1;if(o===`function`){if(!i.deepFunction||e.toString()!==t.toString())return!1}else if(o!==`object`)return e!==e&&t!==t;let s=r.getSharedType(e,t,!!i.prototype);switch(s){case n.buffer:return Buffer&&Buffer.prototype.equals.call(e,t);case n.promise:return e===t;case n.regex:return e.toString()===t.toString();case r.mismatched:return!1}for(let n=a.length-1;n>=0;--n)if(a[n].isSame(e,t))return!0;a.push(new r.SeenEntry(e,t));try{return!!r.isDeepEqualObj(s,e,t,i,a)}finally{a.pop()}},r.getSharedType=function(e,t,i){if(i)return Object.getPrototypeOf(e)===Object.getPrototypeOf(t)?n.getInternalProto(e):r.mismatched;let a=n.getInternalProto(e);return a===n.getInternalProto(t)?a:r.mismatched},r.valueOf=function(e){let t=e.valueOf;if(t===void 0)return e;try{return t.call(e)}catch(e){return e}},r.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},r.isSetSimpleEqual=function(e,t){for(let n of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,n))return!1;return!0},r.isDeepEqualObj=function(e,t,i,a,o){let{isDeepEqual:s,valueOf:c,hasOwnEnumerableProperty:l}=r,{keys:u,getOwnPropertySymbols:d}=Object;if(e===n.array)if(a.part){for(let e of t)for(let t of i)if(s(e,t,a,o))return!0}else{if(t.length!==i.length)return!1;for(let e=0;e<t.length;++e)if(!s(t[e],i[e],a,o))return!1;return!0}else if(e===n.set){if(t.size!==i.size)return!1;if(!r.isSetSimpleEqual(t,i)){let e=new Set(Set.prototype.values.call(i));for(let n of Set.prototype.values.call(t)){if(e.delete(n))continue;let t=!1;for(let r of e)if(s(n,r,a,o)){e.delete(r),t=!0;break}if(!t)return!1}}}else if(e===n.map){if(t.size!==i.size)return!1;for(let[e,n]of Map.prototype.entries.call(t))if(n===void 0&&!Map.prototype.has.call(i,e)||!s(n,Map.prototype.get.call(i,e),a,o))return!1}else if(e===n.error&&(t.name!==i.name||t.message!==i.message))return!1;let f=c(t),p=c(i);if((t!==f||i!==p)&&!s(f,p,a,o))return!1;let m=u(t);if(!a.part&&m.length!==u(i).length&&!a.skip)return!1;let h=0;for(let e of m){if(a.skip&&a.skip.includes(e)){i[e]===void 0&&++h;continue}if(!l(i,e)||!s(t[e],i[e],a,o))return!1}if(!a.part&&m.length-h!==u(i).length)return!1;if(a.symbols!==!1){let e=d(t),n=new Set(d(i));for(let r of e){if(!a.skip||!a.skip.includes(r)){if(l(t,r)){if(!l(i,r)||!s(t[r],i[r],a,o))return!1}else if(l(i,r))return!1}n.delete(r)}for(let e of n)if(l(i,e))return!1}return!0},r.SeenEntry=class{constructor(e,t){this.obj=e,this.ref=t}isSame(e,t){return this.obj===e&&this.ref===t}}}),ve=s(exports=>{exports.location=function(e=0){let t=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;let n={};Error.captureStackTrace(n,this);let r=n.stack[e+1];return Error.prepareStackTrace=t,{filename:r.getFileName(),line:r.getLineNumber()}}}),ye=s(exports=>{let t=_e(),n=ve(),r=j(),i={codes:{error:1,pass:2,full:3},labels:{0:`never used`,1:`always error`,2:`always pass`}};exports.setup=function(e){let t=function(){return e._tracer=e._tracer||new i.Tracer,e._tracer};e.trace=t,e[Symbol.for(`@hapi/lab/coverage/initialize`)]=t,e.untrace=()=>{e._tracer=null}},exports.location=function(e){return e.$_setFlag(`_tracerLocation`,n.location(2))},i.Tracer=class{constructor(){this.name=`Joi`,this._schemas=new Map}_register(e){let t=this._schemas.get(e);if(t)return t.store;let r=new i.Store(e),{filename:a,line:o}=e._flags._tracerLocation||n.location(5);return this._schemas.set(e,{filename:a,line:o,store:r}),r}_combine(e,t){for(let{store:n}of this._schemas.values())n._combine(e,t)}report(e){let t=[];for(let{filename:n,line:r,store:a}of this._schemas.values()){if(e&&e!==n)continue;let o=[],s=[];for(let[e,t]of a._sources.entries()){if(i.sub(t.paths,s))continue;if(!t.entry){o.push({status:`never reached`,paths:[...t.paths]}),s.push(...t.paths);continue}for(let n of[`valid`,`invalid`]){let r=e[`_${n}s`];if(!r)continue;let i=new Set(r._values),a=new Set(r._refs);for(let{value:e,ref:r}of t[n])i.delete(e),a.delete(r);(i.size||a.size)&&o.push({status:[...i,...[...a].map(e=>e.display)],rule:`${n}s`})}let n=e._rules.map(e=>e.name);for(let t of[`default`,`failover`])e._flags[t]!==void 0&&n.push(t);for(let e of n){let n=i.labels[t.rule[e]||0];if(n){let r={rule:e,status:n};t.paths.size&&(r.paths=[...t.paths]),o.push(r)}}}o.length&&t.push({filename:n,line:r,missing:o,severity:`error`,message:`Schema missing tests for ${o.map(i.message).join(`, `)}`})}return t.length?t:null}},i.Store=class{constructor(e){this.active=!0,this._sources=new Map,this._combos=new Map,this._scan(e)}debug(e,t,n,r){e.mainstay.debug&&e.mainstay.debug.push({type:t,name:n,result:r,path:e.path})}entry(e,t){i.debug(t,{type:`entry`}),this._record(e,e=>{e.entry=!0})}filter(e,t,n,r){i.debug(t,{type:n,...r}),this._record(e,e=>{e[n].add(r)})}log(e,t,n,r,a){i.debug(t,{type:n,name:r,result:a===`full`?`pass`:a}),this._record(e,e=>{e[n][r]=e[n][r]||0,e[n][r]|=i.codes[a]})}resolve(e,t,n){if(!e.mainstay.debug)return;let r={type:`resolve`,ref:t.display,to:n,path:e.path};e.mainstay.debug.push(r)}value(e,n,r,i,a){if(!e.mainstay.debug||t(r,i))return;let o={type:`value`,by:n,from:r,to:i,path:e.path};a&&(o.name=a),e.mainstay.debug.push(o)}_record(e,t){let n=this._sources.get(e);if(n){t(n);return}let r=this._combos.get(e);for(let e of r)this._record(e,t)}_scan(e,t){let n=t||[],r=this._sources.get(e);r||(r={paths:new Set,entry:!1,rule:{},valid:new Set,invalid:new Set},this._sources.set(e,r)),n.length&&r.paths.add(n);let a=(e,t)=>{let r=i.id(e,t);this._scan(e,n.concat(r))};e.$_modify({each:a,ref:!1})}_combine(e,t){this._combos.set(e,t)}},i.message=function(e){let t=e.paths?r.path(e.paths[0])+(e.rule?`:`:``):``;return`${t}${e.rule||``} (${e.status})`},i.id=function(e,{source:t,name:n,path:r,key:i}){return e._flags.id?e._flags.id:i||(n=`@${n}`,t===`terms`?[n,r[Math.min(r.length-1,1)]]:n)},i.sub=function(e,n){for(let r of e)for(let e of n)if(t(r.slice(0,e.length),e))return!0;return!1},i.debug=function(e,t){e.mainstay.debug&&(t.path=e.debug?[...e.path,e.debug]:e.path,e.mainstay.debug.push(t))}}),be=s((exports,t)=>{let n=g(),r=b(),i=y(),a={};t.exports=a.merge=function(e,t,o){if(n(e&&typeof e==`object`,`Invalid target value: must be an object`),n(t==null||typeof t==`object`,`Invalid source value: must be null, undefined, or an object`),!t)return e;if(o=Object.assign({nullOverride:!0,mergeArrays:!0},o),Array.isArray(t)){n(Array.isArray(e),`Cannot merge array onto an object`),o.mergeArrays||(e.length=0);for(let n=0;n<t.length;++n)e.push(r(t[n],{symbols:o.symbols}));return e}let s=i.keys(t,o);for(let n=0;n<s.length;++n){let i=s[n];if(i===`__proto__`||!Object.prototype.propertyIsEnumerable.call(t,i))continue;let c=t[i];if(c&&typeof c==`object`){if(e[i]===c)continue;!e[i]||typeof e[i]!=`object`||Array.isArray(e[i])!==Array.isArray(c)||c instanceof Date||Buffer&&Buffer.isBuffer(c)||c instanceof RegExp?e[i]=r(c,{symbols:o.symbols}):a.merge(e[i],c,o)}else c==null?o.nullOverride&&(e[i]=c):e[i]=c}return e}}),xe=s(exports=>{let t=g(),n=M(),r=ue(),i={};exports.Ids=i.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){let e=new i.Ids;return e._byId=new Map(this._byId),e._byKey=new Map(this._byKey),e._schemaChain=this._schemaChain,e}concat(e){e._schemaChain&&(this._schemaChain=!0);for(let[n,r]of e._byId.entries())t(!this._byKey.has(n),`Schema id conflicts with existing key:`,n),this._byId.set(n,r);for(let[n,r]of e._byKey.entries())t(!this._byId.has(n),`Schema key conflicts with existing id:`,n),this._byKey.set(n,r)}fork(e,r,a){let o=this._collect(e);o.push({schema:a});let s=o.shift(),c={id:s.id,schema:r(s.schema)};t(n.isSchema(c.schema),`adjuster function failed to return a joi schema type`);for(let e of o)c={id:e.id,schema:i.fork(e.schema,c.id,c.schema)};return c.schema}labels(e,t=[]){let n=e[0],r=this._get(n);if(!r)return[...t,...e].join(`.`);let i=e.slice(1);return t=[...t,r.schema._flags.label||n],i.length?r.schema._ids.labels(i,t):t.join(`.`)}reach(e,n=[]){let r=e[0],i=this._get(r);t(i,`Schema does not contain path`,[...n,...e].join(`.`));let a=e.slice(1);return a.length?i.schema._ids.reach(a,[...n,r]):i.schema}register(e,{key:r}={}){if(!e||!n.isSchema(e))return;(e.$_property(`schemaChain`)||e._ids._schemaChain)&&(this._schemaChain=!0);let i=e._flags.id;if(i){let n=this._byId.get(i);t(!n||n.schema===e,`Cannot add different schemas with the same id:`,i),t(!this._byKey.has(i),`Schema id conflicts with existing key:`,i),this._byId.set(i,{schema:e,id:i})}r&&(t(!this._byKey.has(r),`Schema already contains key:`,r),t(!this._byId.has(r),`Schema key conflicts with existing id:`,r),this._byKey.set(r,{schema:e,id:r}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(e,n=[],r=[]){let i=e[0],a=this._get(i);t(a,`Schema does not contain path`,[...n,...e].join(`.`)),r=[a,...r];let o=e.slice(1);return o.length?a.schema._ids._collect(o,[...n,i],r):r}_get(e){return this._byId.get(e)||this._byKey.get(e)}},i.fork=function(t,n,r){let i=(e,{key:t})=>{if(n===(e._flags.id||t))return r},a=exports.schema(t,{each:i,ref:!1});return a?a.$_mutateRebuild():t},exports.schema=function(e,t){let n;for(let r in e._flags){if(r[0]===`_`)continue;let a=i.scan(e._flags[r],{source:`flags`,name:r},t);a!==void 0&&(n||=e.clone(),n._flags[r]=a)}for(let r=0;r<e._rules.length;++r){let a=e._rules[r],o=i.scan(a.args,{source:`rules`,name:a.name},t);if(o!==void 0){n||=e.clone();let t=Object.assign({},a);t.args=o,n._rules[r]=t;let i=n._singleRules.get(a.name);i===a&&n._singleRules.set(a.name,t)}}for(let r in e.$_terms){if(r[0]===`_`)continue;let a=i.scan(e.$_terms[r],{source:`terms`,name:r},t);a!==void 0&&(n||=e.clone(),n.$_terms[r]=a)}return n},i.scan=function(e,t,a,o,s){let c=o||[];if(typeof e!=`object`||!e)return;let l;if(Array.isArray(e)){for(let n=0;n<e.length;++n){let r=t.source===`terms`&&t.name===`keys`&&e[n].key,o=i.scan(e[n],t,a,[n,...c],r);o!==void 0&&(l||=e.slice(),l[n]=o)}return l}if(a.schema!==!1&&n.isSchema(e)||a.ref!==!1&&r.isRef(e)){let n=a.each(e,{...t,path:c,key:s});return n===e?void 0:n}for(let n in e){if(n[0]===`_`)continue;let r=i.scan(e[n],t,a,[n,...c],s);r!==void 0&&(l||=Object.assign({},e),l[n]=r)}return l}}),Se=s((exports,t)=>{t.exports=function(){}}),Ce=s((exports,t)=>{let n=b(),r=_(),i=M(),a={value:Symbol(`value`)};t.exports=a.State=class{constructor(e,t,n){this.path=e,this.ancestors=t,this.mainstay=n.mainstay,this.schemas=n.schemas,this.debug=null}localize(e,t=null,n=null){let r=new a.State(e,t,this);return n&&r.schemas&&(r.schemas=[a.schemas(n),...r.schemas]),r}nest(e,t){let n=new a.State(this.path,this.ancestors,this);return n.schemas=n.schemas&&[a.schemas(e),...n.schemas],n.debug=t,n}shadow(e,t){this.mainstay.shadow=this.mainstay.shadow||new a.Shadow,this.mainstay.shadow.set(this.path,e,t)}snapshot(){this.mainstay.shadow&&(this._snapshot=n(this.mainstay.shadow.node(this.path))),this.mainstay.snapshot()}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.restore()}commit(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.commit()}},a.schemas=function(e){return i.isSchema(e)?{schema:e}:e},a.Shadow=class{constructor(){this._values=null}set(e,t,n){if(!e.length||n===`strip`&&typeof e[e.length-1]==`number`)return;this._values=this._values||new Map;let r=this._values;for(let t=0;t<e.length;++t){let n=e[t],i=r.get(n);i||(i=new Map,r.set(n,i)),r=i}r[a.value]=t}get(e){let t=this.node(e);if(t)return t[a.value]}node(e){if(this._values)return r(this._values,e,{iterables:!0})}override(e,t){if(!this._values)return;let n=e.slice(0,-1),i=e[e.length-1],a=r(this._values,n,{iterables:!0});if(t){a.set(i,t);return}a&&a.delete(i)}}}),we=s(exports=>{let t=g(),n=b(),r=Se(),i=_(),a=M(),o=j(),s=Ce(),c={result:Symbol(`result`)};exports.entry=function(e,n,r){let i=a.defaults;r&&(t(r.warnings===void 0,`Cannot override warnings preference in synchronous validation`),t(r.artifacts===void 0,`Cannot override artifacts preference in synchronous validation`),i=a.preferences(a.defaults,r));let s=c.entry(e,n,i);t(!s.mainstay.externals.length,`Schema with external rules must use validateAsync()`);let l={value:s.value};return s.error&&(l.error=s.error),s.mainstay.warnings.length&&(l.warning=o.details(s.mainstay.warnings)),s.mainstay.debug&&(l.debug=s.mainstay.debug),s.mainstay.artifacts&&(l.artifacts=s.mainstay.artifacts),l},exports.entryAsync=async function(e,t,n){let r=a.defaults;n&&(r=a.preferences(a.defaults,n));let s=c.entry(e,t,r),l=s.mainstay;if(s.error)throw l.debug&&(s.error.debug=l.debug),s.error;if(l.externals.length){let t=s.value,u=[];for(let s of l.externals){let d=s.state.path,f=s.schema.type===`link`?l.links.get(s.schema):null,p=t,m,h,g=d.length?[t]:[],_=d.length?i(e,d):e;if(d.length){m=d[d.length-1];let e=t;for(let t of d.slice(0,-1))e=e[t],g.unshift(e);h=g[0],p=h[m]}try{let e=(e,t)=>(f||s.schema).$_createError(e,p,t,s.state,r),i=await s.method(p,{schema:s.schema,linked:f,state:s.state,prefs:n,original:_,error:e,errorsArray:c.errorsArray,warn:(e,t)=>l.warnings.push((f||s.schema).$_createError(e,p,t,s.state,r)),message:(e,t)=>(f||s.schema).$_createError(`external`,p,t,s.state,r,{messages:e})});if(i===void 0||i===p)continue;if(i instanceof o.Report){if(l.tracer.log(s.schema,s.state,`rule`,`external`,`error`),u.push(i),r.abortEarly)break;continue}if(Array.isArray(i)&&i[a.symbols.errors]){if(l.tracer.log(s.schema,s.state,`rule`,`external`,`error`),u.push(...i),r.abortEarly)break;continue}h?(l.tracer.value(s.state,`rule`,p,i,`external`),h[m]=i):(l.tracer.value(s.state,`rule`,t,i,`external`),t=i)}catch(e){throw r.errors.label&&(e.message+=` (${s.label})`),e}}if(s.value=t,u.length)throw s.error=o.process(u,e,r),l.debug&&(s.error.debug=l.debug),s.error}if(!r.warnings&&!r.debug&&!r.artifacts)return s.value;let u={value:s.value};return l.warnings.length&&(u.warning=o.details(l.warnings)),l.debug&&(u.debug=l.debug),l.artifacts&&(u.artifacts=l.artifacts),u},c.Mainstay=class{constructor(e,t,n){this.externals=[],this.warnings=[],this.tracer=e,this.debug=t,this.links=n,this.shadow=null,this.artifacts=null,this._snapshots=[]}snapshot(){this._snapshots.push({externals:this.externals.slice(),warnings:this.warnings.slice()})}restore(){let e=this._snapshots.pop();this.externals=e.externals,this.warnings=e.warnings}commit(){this._snapshots.pop()}},c.entry=function(t,n,r){let{tracer:i,cleanup:a}=c.tracer(n,r),l=r.debug?[]:null,u=n._ids._schemaChain?new Map:null,d=new c.Mainstay(i,l,u),f=n._ids._schemaChain?[{schema:n}]:null,p=new s([],[],{mainstay:d,schemas:f}),m=exports.validate(t,n,p,r);a&&n.$_root.untrace();let h=o.process(m.errors,t,r);return{value:m.value,error:h,mainstay:d}},c.tracer=function(e,n){return e.$_root._tracer?{tracer:e.$_root._tracer._register(e)}:n.debug?(t(e.$_root.trace,`Debug mode not supported`),{tracer:e.$_root.trace()._register(e),cleanup:!0}):{tracer:c.ignore}},exports.validate=function(e,t,n,r,i={}){if(t.$_terms.whens&&(t=t._generate(e,n,r).schema),t._preferences&&(r=c.prefs(t,r)),t._cache&&r.cache){let r=t._cache.get(e);if(n.mainstay.tracer.debug(n,`validate`,`cached`,!!r),r)return r}let o=(i,a,o)=>t.$_createError(i,e,a,o||n,r),s={original:e,prefs:r,schema:t,state:n,error:o,errorsArray:c.errorsArray,warn:(e,t,r)=>n.mainstay.warnings.push(o(e,t,r)),message:(i,a)=>t.$_createError(`custom`,e,a,n,r,{messages:i})};n.mainstay.tracer.entry(t,n);let l=t._definition;if(l.prepare&&e!==void 0&&r.convert){let t=l.prepare(e,s);if(t){if(n.mainstay.tracer.value(n,`prepare`,e,t.value),t.errors)return c.finalize(t.value,[].concat(t.errors),s);e=t.value}}if(l.coerce&&e!==void 0&&r.convert&&(!l.coerce.from||l.coerce.from.includes(typeof e))){let t=l.coerce.method(e,s);if(t){if(n.mainstay.tracer.value(n,`coerced`,e,t.value),t.errors)return c.finalize(t.value,[].concat(t.errors),s);e=t.value}}let u=t._flags.empty;u&&u.$_match(c.trim(e,t),n.nest(u),a.defaults)&&(n.mainstay.tracer.value(n,`empty`,e,void 0),e=void 0);let d=i.presence||t._flags.presence||(t._flags._endedSwitch?null:r.presence);if(e===void 0){if(d===`forbidden`)return c.finalize(e,null,s);if(d===`required`)return c.finalize(e,[t.$_createError(`any.required`,e,null,n,r)],s);if(d===`optional`){if(t._flags.default!==a.symbols.deepDefault)return c.finalize(e,null,s);n.mainstay.tracer.value(n,`default`,e,{}),e={}}}else if(d===`forbidden`)return c.finalize(e,[t.$_createError(`any.unknown`,e,null,n,r)],s);let f=[];if(t._valids){let i=t._valids.get(e,n,r,t._flags.insensitive);if(i)return r.convert&&(n.mainstay.tracer.value(n,`valids`,e,i.value),e=i.value),n.mainstay.tracer.filter(t,n,`valid`,i),c.finalize(e,null,s);if(t._flags.only){let i=t.$_createError(`any.only`,e,{valids:t._valids.values({display:!0})},n,r);if(r.abortEarly)return c.finalize(e,[i],s);f.push(i)}}if(t._invalids){let i=t._invalids.get(e,n,r,t._flags.insensitive);if(i){n.mainstay.tracer.filter(t,n,`invalid`,i);let a=t.$_createError(`any.invalid`,e,{invalids:t._invalids.values({display:!0})},n,r);if(r.abortEarly)return c.finalize(e,[a],s);f.push(a)}}if(l.validate){let t=l.validate(e,s);if(t&&(n.mainstay.tracer.value(n,`base`,e,t.value),e=t.value,t.errors)){if(!Array.isArray(t.errors))return f.push(t.errors),c.finalize(e,f,s);if(t.errors.length)return f.push(...t.errors),c.finalize(e,f,s)}}return t._rules.length?c.rules(e,f,s):c.finalize(e,f,s)},c.rules=function(e,t,n){let{schema:r,state:i,prefs:o}=n;for(let s of r._rules){let l=r._definition.rules[s.method];if(l.convert&&o.convert){i.mainstay.tracer.log(r,i,`rule`,s.name,`full`);continue}let u,d=s.args;if(s._resolve.length){d=Object.assign({},d);for(let t of s._resolve){let n=l.argsByName.get(t),s=d[t].resolve(e,i,o),c=n.normalize?n.normalize(s):s,f=a.validateArg(c,null,n);if(f){u=r.$_createError(`any.ref`,s,{arg:t,ref:d[t],reason:f},i,o);break}d[t]=c}}u||=l.validate(e,n,d,s);let f=c.rule(u,s);if(f.errors){if(i.mainstay.tracer.log(r,i,`rule`,s.name,`error`),s.warn){i.mainstay.warnings.push(...f.errors);continue}if(o.abortEarly)return c.finalize(e,f.errors,n);t.push(...f.errors)}else i.mainstay.tracer.log(r,i,`rule`,s.name,`pass`),i.mainstay.tracer.value(i,`rule`,e,f.value,s.name),e=f.value}return c.finalize(e,t,n)},c.rule=function(e,t){return e instanceof o.Report?(c.error(e,t),{errors:[e],value:null}):Array.isArray(e)&&e[a.symbols.errors]?(e.forEach(e=>c.error(e,t)),{errors:e,value:null}):{errors:null,value:e}},c.error=function(e,t){return t.message&&e._setTemplate(t.message),e},c.finalize=function(e,n,r){n||=[];let{schema:i,state:a,prefs:s}=r;if(n.length){let t=c.default(`failover`,void 0,n,r);t!==void 0&&(a.mainstay.tracer.value(a,`failover`,e,t),e=t,n=[])}if(n.length&&i._flags.error)if(typeof i._flags.error==`function`){n=i._flags.error(n),Array.isArray(n)||(n=[n]);for(let e of n)t(e instanceof Error||e instanceof o.Report,`error() must return an Error object`)}else n=[i._flags.error];if(e===void 0){let t=c.default(`default`,e,n,r);a.mainstay.tracer.value(a,`default`,e,t),e=t}if(i._flags.cast&&e!==void 0){let t=i._definition.cast[i._flags.cast];if(t.from(e)){let n=t.to(e,r);a.mainstay.tracer.value(a,`cast`,e,n,i._flags.cast),e=n}}if(i.$_terms.externals&&s.externals&&s._externals!==!1)for(let{method:e}of i.$_terms.externals)a.mainstay.externals.push({method:e,schema:i,state:a,label:o.label(i._flags,a,s)});let l={value:e,errors:n.length?n:null};return i._flags.result&&(l.value=i._flags.result===`strip`?void 0:r.original,a.mainstay.tracer.value(a,i._flags.result,e,l.value),a.shadow(e,i._flags.result)),i._cache&&s.cache!==!1&&!i._refs.length&&i._cache.set(r.original,l),e!==void 0&&!l.errors&&i._flags.artifact!==void 0&&(a.mainstay.artifacts=a.mainstay.artifacts||new Map,a.mainstay.artifacts.has(i._flags.artifact)||a.mainstay.artifacts.set(i._flags.artifact,[]),a.mainstay.artifacts.get(i._flags.artifact).push(a.path)),l},c.prefs=function(e,t){let n=t===a.defaults;return n&&e._preferences[a.symbols.prefs]?e._preferences[a.symbols.prefs]:(t=a.preferences(t,e._preferences),n&&(e._preferences[a.symbols.prefs]=t),t)},c.default=function(e,t,r,i){let{schema:o,state:s,prefs:c}=i,l=o._flags[e];if(c.noDefaults||l===void 0)return t;if(s.mainstay.tracer.log(o,s,`rule`,e,`full`),!l)return l;if(typeof l==`function`){let t=l.length?[n(s.ancestors[0]),i]:[];try{return l(...t)}catch(t){r.push(o.$_createError(`any.${e}`,null,{error:t},s,c));return}}return typeof l==`object`?l[a.symbols.literal]?l.literal:a.isResolvable(l)?l.resolve(t,s,c):n(l):l},c.trim=function(e,t){if(typeof e!=`string`)return e;let n=t.$_getRule(`trim`);return!n||!n.args.enabled?e:e.trim()},c.ignore={active:!1,debug:r,entry:r,filter:r,log:r,resolve:r,value:r},c.errorsArray=function(){let e=[];return e[a.symbols.errors]=!0,e}}),Te=s((exports,t)=>{let n=g(),r=_e(),i=M(),a={};t.exports=a.Values=class{constructor(e,t){this._values=new Set(e),this._refs=new Set(t),this._lowercase=a.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,t){if(i.isResolvable(e)){this._refs.has(e)||(this._refs.add(e),t&&t.register(e));return}this.has(e,null,null,!1)||(this._values.add(e),typeof e==`string`&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,t,n){if(e||=new a.Values,t){if(t._override)return t.clone();for(let n of[...t._values,...t._refs])e.add(n)}if(n)for(let t of[...n._values,...n._refs])e.remove(t);return e.length?e:null}remove(e){if(i.isResolvable(e)){this._refs.delete(e);return}this._values.delete(e),typeof e==`string`&&this._lowercase.delete(e.toLowerCase())}has(e,t,n,r){return!!this.get(e,t,n,r)}get(e,t,n,i){if(!this.length)return!1;if(this._values.has(e))return{value:e};if(typeof e==`string`&&e&&i){let t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&typeof e!=`object`)return!1;if(typeof e==`object`){for(let t of this._values)if(r(t,e))return{value:t}}if(t)for(let a of this._refs){let o=a.resolve(e,t,n,null,{in:!0});if(o===void 0)continue;let s=!a.in||typeof o!=`object`?[o]:Array.isArray(o)?o:Object.keys(o);for(let t of s){if(typeof t!=typeof e)continue;if(i&&e&&typeof e==`string`){if(t.toLowerCase()===e.toLowerCase())return{value:t,ref:a}}else if(r(t,e))return{value:t,ref:a}}}return!1}override(){this._override=!0}values(e){if(e&&e.display){let e=[];for(let t of[...this._values,...this._refs])t!==void 0&&e.push(t);return e}return Array.from([...this._values,...this._refs])}clone(){let e=new a.Values(this._values,this._refs);return e._override=this._override,e}concat(e){n(!e._override,`Cannot concat override set of values`);let t=new a.Values([...this._values,...e._values],[...this._refs,...e._refs]);return t._override=this._override,t}describe(){let e=[];this._override&&e.push({override:!0});for(let t of this._values.values())e.push(t&&typeof t==`object`?{value:t}:t);for(let t of this._refs.values())e.push(t.describe());return e}},a.Values.prototype[i.symbols.values]=!0,a.Values.prototype.slice=a.Values.prototype.clone,a.lowercases=function(e){let t=new Map;if(e)for(let n of e)typeof n==`string`&&t.set(n.toLowerCase(),n);return t}}),Ee=s((exports,t)=>{let n=g(),r=b(),i=_e(),a=be(),o=pe(),s=M(),c=me(),l=j(),u=he(),d=ge(),f=fe(),p=xe(),m=ue(),h=ye(),_=we(),v=Te(),y={};y.Base=class{constructor(e){this.type=e,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new p.Ids,this._preferences=null,this._refs=new m.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return n(typeof d.describe==`function`,`Manifest functionality disabled`),d.describe(this)}allow(...e){return s.verifyFlat(e,`allow`),this._values(e,`_valids`)}alter(e){n(e&&typeof e==`object`&&!Array.isArray(e),`Invalid targets argument`),n(!this._inRuleset(),`Cannot set alterations inside a ruleset`);let t=this.clone();for(let r in t.$_terms.alterations=t.$_terms.alterations||[],e){let i=e[r];n(typeof i==`function`,`Alteration adjuster for`,r,`must be a function`),t.$_terms.alterations.push({target:r,adjuster:i})}return t.$_temp.ruleset=!1,t}artifact(e){return n(e!==void 0,`Artifact cannot be undefined`),n(!this._cache,`Cannot set an artifact with a rule cache`),this.$_setFlag(`artifact`,e)}cast(e){return n(e===!1||typeof e==`string`,`Invalid to value`),n(e===!1||this._definition.cast[e],`Type`,this.type,`does not support casting to`,e),this.$_setFlag(`cast`,e===!1?void 0:e)}default(e,t){return this._default(`default`,e,t)}description(e){return n(e&&typeof e==`string`,`Description must be a non-empty string`),this.$_setFlag(`description`,e)}empty(e){let t=this.clone();return e!==void 0&&(e=t.$_compile(e,{override:!1})),t.$_setFlag(`empty`,e,{clone:!1})}error(e){return n(e,`Missing error`),n(e instanceof Error||typeof e==`function`,`Must provide a valid Error object or a function`),this.$_setFlag(`error`,e)}example(e,t={}){return n(e!==void 0,`Missing example`),s.assertOptions(t,[`override`]),this._inner(`examples`,e,{single:!0,override:t.override})}external(e,t){return typeof e==`object`&&(n(!t,`Cannot combine options with description`),t=e.description,e=e.method),n(typeof e==`function`,`Method must be a function`),n(t===void 0||t&&typeof t==`string`,`Description must be a non-empty string`),this._inner(`externals`,{method:e,description:t},{single:!0})}failover(e,t){return this._default(`failover`,e,t)}forbidden(){return this.presence(`forbidden`)}id(e){return e?(n(typeof e==`string`,`id must be a non-empty string`),n(/^[^\.]+$/.test(e),`id cannot contain period character`),this.$_setFlag(`id`,e)):this.$_setFlag(`id`,void 0)}invalid(...e){return this._values(e,`_invalids`)}label(e){return n(e&&typeof e==`string`,`Label name must be a non-empty string`),this.$_setFlag(`label`,e)}meta(e){return n(e!==void 0,`Meta cannot be undefined`),this._inner(`metas`,e,{single:!0})}note(...e){n(e.length,`Missing notes`);for(let t of e)n(t&&typeof t==`string`,`Notes must be non-empty strings`);return this._inner(`notes`,e)}only(e=!0){return n(typeof e==`boolean`,`Invalid mode:`,e),this.$_setFlag(`only`,e)}optional(){return this.presence(`optional`)}prefs(e){n(e,`Missing preferences`),n(e.context===void 0,`Cannot override context`),n(e.externals===void 0,`Cannot override externals`),n(e.warnings===void 0,`Cannot override warnings`),n(e.debug===void 0,`Cannot override debug`),s.checkPreferences(e);let t=this.clone();return t._preferences=s.preferences(t._preferences,e),t}presence(e){return n([`optional`,`required`,`forbidden`].includes(e),`Unknown presence mode`,e),this.$_setFlag(`presence`,e)}raw(e=!0){return this.$_setFlag(`result`,e?`raw`:void 0)}result(e){return n([`raw`,`strip`].includes(e),`Unknown result mode`,e),this.$_setFlag(`result`,e)}required(){return this.presence(`required`)}strict(e){let t=this.clone(),n=e===void 0?!1:!e;return t._preferences=s.preferences(t._preferences,{convert:n}),t}strip(e=!0){return this.$_setFlag(`result`,e?`strip`:void 0)}tag(...e){n(e.length,`Missing tags`);for(let t of e)n(t&&typeof t==`string`,`Tags must be non-empty strings`);return this._inner(`tags`,e)}unit(e){return n(e&&typeof e==`string`,`Unit name must be a non-empty string`),this.$_setFlag(`unit`,e)}valid(...e){s.verifyFlat(e,`valid`);let t=this.allow(...e);return t.$_setFlag(`only`,!!t._valids,{clone:!1}),t}when(e,t){let r=this.clone();r.$_terms.whens||(r.$_terms.whens=[]);let i=c.when(r,e,t);if(![`any`,`link`].includes(r.type)){let e=i.is?[i]:i.switch;for(let t of e)n(!t.then||t.then.type===`any`||t.then.type===r.type,`Cannot combine`,r.type,`with`,t.then&&t.then.type),n(!t.otherwise||t.otherwise.type===`any`||t.otherwise.type===r.type,`Cannot combine`,r.type,`with`,t.otherwise&&t.otherwise.type)}return r.$_terms.whens.push(i),r.$_mutateRebuild()}cache(e){n(!this._inRuleset(),`Cannot set caching inside a ruleset`),n(!this._cache,`Cannot override schema cache`),n(this._flags.artifact===void 0,`Cannot cache a rule with an artifact`);let t=this.clone();return t._cache=e||o.provider.provision(),t.$_temp.ruleset=!1,t}clone(){let e=Object.create(Object.getPrototypeOf(this));return this._assign(e)}concat(e){n(s.isSchema(e),`Invalid schema object`),n(this.type===`any`||e.type===`any`||e.type===this.type,`Cannot merge type`,this.type,`with another type:`,e.type),n(!this._inRuleset(),`Cannot concatenate onto a schema with open ruleset`),n(!e._inRuleset(),`Cannot concatenate a schema with open ruleset`);let t=this.clone();if(this.type===`any`&&e.type!==`any`){let n=e.clone();for(let e of Object.keys(t))e!==`type`&&(n[e]=t[e]);t=n}t._ids.concat(e._ids),t._refs.register(e,m.toSibling),t._preferences=t._preferences?s.preferences(t._preferences,e._preferences):e._preferences,t._valids=v.merge(t._valids,e._valids,e._invalids),t._invalids=v.merge(t._invalids,e._invalids,e._valids);for(let n of e._singleRules.keys())t._singleRules.has(n)&&(t._rules=t._rules.filter(e=>e.keep||e.name!==n),t._singleRules.delete(n));for(let n of e._rules)e._definition.rules[n.method].multi||t._singleRules.set(n.name,n),t._rules.push(n);if(t._flags.empty&&e._flags.empty){t._flags.empty=t._flags.empty.concat(e._flags.empty);let n=Object.assign({},e._flags);delete n.empty,a(t._flags,n)}else if(e._flags.empty){t._flags.empty=e._flags.empty;let n=Object.assign({},e._flags);delete n.empty,a(t._flags,n)}else a(t._flags,e._flags);for(let n in e.$_terms){let r=e.$_terms[n];if(!r){t.$_terms[n]||(t.$_terms[n]=r);continue}if(!t.$_terms[n]){t.$_terms[n]=r.slice();continue}t.$_terms[n]=t.$_terms[n].concat(r)}return this.$_root._tracer&&this.$_root._tracer._combine(t,[this,e]),t.$_mutateRebuild()}extend(e){return n(!e.base,`Cannot extend type with another base`),u.type(this,e)}extract(e){return e=Array.isArray(e)?e:e.split(`.`),this._ids.reach(e)}fork(e,t){n(!this._inRuleset(),`Cannot fork inside a ruleset`);let r=this;for(let n of[].concat(e))n=Array.isArray(n)?n:n.split(`.`),r=r._ids.fork(n,t,r);return r.$_temp.ruleset=!1,r}rule(e){let t=this._definition;s.assertOptions(e,Object.keys(t.modifiers)),n(this.$_temp.ruleset!==!1,`Cannot apply rules to empty ruleset or the last rule added does not support rule properties`);let i=this.$_temp.ruleset===null?this._rules.length-1:this.$_temp.ruleset;n(i>=0&&i<this._rules.length,`Cannot apply rules to empty ruleset`);let a=this.clone();for(let o=i;o<a._rules.length;++o){let i=a._rules[o],s=r(i);for(let r in e)t.modifiers[r](s,e[r]),n(s.name===i.name,`Cannot change rule name`);a._rules[o]=s,a._singleRules.get(s.name)===i&&a._singleRules.set(s.name,s)}return a.$_temp.ruleset=!1,a.$_mutateRebuild()}get ruleset(){n(!this._inRuleset(),`Cannot start a new ruleset without closing the previous one`);let e=this.clone();return e.$_temp.ruleset=e._rules.length,e}get $(){return this.ruleset}tailor(e){e=[].concat(e),n(!this._inRuleset(),`Cannot tailor inside a ruleset`);let t=this;if(this.$_terms.alterations)for(let{target:r,adjuster:i}of this.$_terms.alterations)e.includes(r)&&(t=i(t),n(s.isSchema(t),`Alteration adjuster for`,r,`failed to return a schema object`));return t=t.$_modify({each:t=>t.tailor(e),ref:!1}),t.$_temp.ruleset=!1,t.$_mutateRebuild()}tracer(){return h.location?h.location(this):this}validate(e,t){return _.entry(e,this,t)}validateAsync(e,t){return _.entryAsync(e,this,t)}$_addRule(e){for(let t in typeof e==`string`&&(e={name:e}),n(e&&typeof e==`object`,`Invalid options`),n(e.name&&typeof e.name==`string`,`Invalid rule name`),e)n(t[0]!==`_`,`Cannot set private rule properties`);let t=Object.assign({},e);t._resolve=[],t.method=t.method||t.name;let r=this._definition.rules[t.method],i=t.args;n(r,`Unknown rule`,t.method);let a=this.clone();if(i)for(let e in n(Object.keys(i).length===1||Object.keys(i).length===this._definition.rules[t.name].args.length,`Invalid rule definition for`,this.type,t.name),i){let o=i[e];if(r.argsByName){let c=r.argsByName.get(e);if(c.ref&&s.isResolvable(o))t._resolve.push(e),a.$_mutateRegister(o);else if(c.normalize&&(o=c.normalize(o),i[e]=o),c.assert){let t=s.validateArg(o,e,c);n(!t,t,`or reference`)}}if(o===void 0){delete i[e];continue}i[e]=o}return r.multi||(a._ruleRemove(t.name,{clone:!1}),a._singleRules.set(t.name,t)),a.$_temp.ruleset===!1&&(a.$_temp.ruleset=null),r.priority?a._rules.unshift(t):a._rules.push(t),a}$_compile(e,t){return c.schema(this.$_root,e,t)}$_createError(e,t,n,r,i,a={}){let o=a.flags===!1?{}:this._flags,s=a.messages?f.merge(this._definition.messages,a.messages):this._definition.messages;return new l.Report(e,t,n,o,s,r,i)}$_getFlag(e){return this._flags[e]}$_getRule(e){return this._singleRules.get(e)}$_mapLabels(e){return e=Array.isArray(e)?e:e.split(`.`),this._ids.labels(e)}$_match(e,t,n,r){n=Object.assign({},n),n.abortEarly=!0,n._externals=!1,t.snapshot();let i=!_.validate(e,this,t,n,r).errors;return t.restore(),i}$_modify(e){return s.assertOptions(e,[`each`,`once`,`ref`,`schema`]),p.schema(this,e)||this}$_mutateRebuild(){n(!this._inRuleset(),`Cannot add this rule inside a ruleset`),this._refs.reset(),this._ids.reset();let e=(e,{source:t,name:n,path:r,key:i})=>{let a=this._definition[t][n]&&this._definition[t][n].register;a!==!1&&this.$_mutateRegister(e,{family:a,key:i})};return this.$_modify({each:e}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(e,{family:t,key:n}={}){this._refs.register(e,t),this._ids.register(e,{key:n})}$_property(e){return this._definition.properties[e]}$_reach(e){return this._ids.reach(e)}$_rootReferences(){return this._refs.roots()}$_setFlag(e,t,r={}){n(e[0]===`_`||!this._inRuleset(),`Cannot set flag inside a ruleset`);let a=this._definition.flags[e]||{};if(i(t,a.default)&&(t=void 0),i(t,this._flags[e]))return this;let o=r.clone===!1?this:this.clone();return t===void 0?delete o._flags[e]:(o._flags[e]=t,o.$_mutateRegister(t)),e[0]!==`_`&&(o.$_temp.ruleset=!1),o}$_parent(e,...t){return this[e][s.symbols.parent].call(this,...t)}$_validate(e,t,n){return _.validate(e,this,t,n)}_assign(e){for(let t in e.type=this.type,e.$_root=this.$_root,e.$_temp=Object.assign({},this.$_temp),e.$_temp.whens={},e._ids=this._ids.clone(),e._preferences=this._preferences,e._valids=this._valids&&this._valids.clone(),e._invalids=this._invalids&&this._invalids.clone(),e._rules=this._rules.slice(),e._singleRules=r(this._singleRules,{shallow:!0}),e._refs=this._refs.clone(),e._flags=Object.assign({},this._flags),e._cache=null,e.$_terms={},this.$_terms)e.$_terms[t]=this.$_terms[t]?this.$_terms[t].slice():null;for(let t in e.$_super={},this.$_super)e.$_super[t]=this._super[t].bind(e);return e}_bare(){let e=this.clone();e._reset();let t=e._definition.terms;for(let n in t){let r=t[n];e.$_terms[n]=r.init}return e.$_mutateRebuild()}_default(e,t,r={}){s.assertOptions(r,`literal`),n(t!==void 0,`Missing`,e,`value`),n(typeof t==`function`||!r.literal,`Only function value supports literal option`),typeof t==`function`&&r.literal&&(t={[s.symbols.literal]:!0,literal:t});let i=this.$_setFlag(e,t);return i}_generate(e,t,n){if(!this.$_terms.whens)return{schema:this};let r=[],i=[];for(let a=0;a<this.$_terms.whens.length;++a){let o=this.$_terms.whens[a];if(o.concat){r.push(o.concat),i.push(`${a}.concat`);continue}let s=o.ref?o.ref.resolve(e,t,n):e,c=o.is?[o]:o.switch,l=i.length;for(let l=0;l<c.length;++l){let{is:u,then:d,otherwise:f}=c[l],p=`${a}${o.switch?`.`+l:``}`;if(u.$_match(s,t.nest(u,`${p}.is`),n)){if(d){let a=t.localize([...t.path,`${p}.then`],t.ancestors,t.schemas),{schema:o,id:s}=d._generate(e,a,n);r.push(o),i.push(`${p}.then${s?`(${s})`:``}`);break}}else if(f){let a=t.localize([...t.path,`${p}.otherwise`],t.ancestors,t.schemas),{schema:o,id:s}=f._generate(e,a,n);r.push(o),i.push(`${p}.otherwise${s?`(${s})`:``}`);break}}if(o.break&&i.length>l)break}let a=i.join(`, `);if(t.mainstay.tracer.debug(t,`rule`,`when`,a),!a)return{schema:this};if(!t.mainstay.tracer.active&&this.$_temp.whens[a])return{schema:this.$_temp.whens[a],id:a};let o=this;this._definition.generate&&(o=this._definition.generate(this,e,t,n));for(let e of r)o=o.concat(e);return this.$_root._tracer&&this.$_root._tracer._combine(o,[this,...r]),this.$_temp.whens[a]=o,{schema:o,id:a}}_inner(e,t,r={}){n(!this._inRuleset(),`Cannot set ${e} inside a ruleset`);let i=this.clone();return(!i.$_terms[e]||r.override)&&(i.$_terms[e]=[]),r.single?i.$_terms[e].push(t):i.$_terms[e].push(...t),i.$_temp.ruleset=!1,i}_inRuleset(){return this.$_temp.ruleset!==null&&this.$_temp.ruleset!==!1}_ruleRemove(e,t={}){if(!this._singleRules.has(e))return this;let n=t.clone===!1?this:this.clone();n._singleRules.delete(e);let r=[];for(let t=0;t<n._rules.length;++t){let i=n._rules[t];if(i.name===e&&!i.keep){n._inRuleset()&&t<n.$_temp.ruleset&&--n.$_temp.ruleset;continue}r.push(i)}return n._rules=r,n}_values(e,t){s.verifyFlat(e,t.slice(1,-1));let r=this.clone(),i=e[0]===s.symbols.override;if(i&&(e=e.slice(1)),!r[t]&&e.length?r[t]=new v:i&&(r[t]=e.length?new v:null,r.$_mutateRebuild()),!r[t])return r;i&&r[t].override();for(let i of e){n(i!==void 0,`Cannot call allow/valid/invalid with undefined`),n(i!==s.symbols.override,`Override must be the first value`);let e=t===`_invalids`?`_valids`:`_invalids`;r[e]&&(r[e].remove(i),r[e].length||(n(t===`_valids`||!r._flags.only,`Setting invalid value`,i,`leaves schema rejecting all values due to previous valid rule`),r[e]=null)),r[t].add(i,r._refs)}return r}},y.Base.prototype[s.symbols.any]={version:s.version,compile:c.compile,root:`$_root`},y.Base.prototype.isImmutable=!0,y.Base.prototype.deny=y.Base.prototype.invalid,y.Base.prototype.disallow=y.Base.prototype.invalid,y.Base.prototype.equal=y.Base.prototype.valid,y.Base.prototype.exist=y.Base.prototype.required,y.Base.prototype.not=y.Base.prototype.invalid,y.Base.prototype.options=y.Base.prototype.prefs,y.Base.prototype.preferences=y.Base.prototype.prefs,t.exports=new y.Base}),De=s((exports,t)=>{let n=g(),r=Ee(),i=M(),a=fe();t.exports=r.extend({type:`any`,flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,t){return n(typeof e==`function`,`Method must be a function`),n(t===void 0||t&&typeof t==`string`,`Description must be a non-empty string`),this.$_addRule({name:`custom`,args:{method:e,description:t}})},validate(e,t,{method:n}){try{return n(e,t)}catch(e){return t.error(`any.custom`,{error:e})}},args:[`method`,`description`],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){n(i.isSchema(e)&&e._flags.id,`Schema must be a schema with an id`);let t=this.clone();return t.$_terms.shared=t.$_terms.shared||[],t.$_terms.shared.push(e),t.$_mutateRegister(e),t}},warning:{method(e,t){return n(e&&typeof e==`string`,`Invalid warning code`),this.$_addRule({name:`warning`,args:{code:e,local:t},warn:!0})},validate(e,t,{code:n,local:r}){return t.error(n,r)},args:[`code`,`local`],multi:!0}},modifiers:{keep(e,t=!0){e.keep=t},message(e,t){e.message=a.compile(t)},warn(e,t=!0){e.warn=t}},manifest:{build(e,t){for(let n in t){let r=t[n];if([`examples`,`externals`,`metas`,`notes`,`tags`].includes(n)){for(let t of r)e=e[n.slice(0,-1)](t);continue}if(n===`alterations`){let t={};for(let{target:e,adjuster:n}of r)t[e]=n;e=e.alter(t);continue}if(n===`whens`){for(let t of r){let{ref:n,is:r,not:i,then:a,otherwise:o,concat:s}=t;e=s?e.concat(s):n?e.when(n,{is:r,not:i,then:a,otherwise:o,switch:t.switch,break:t.break}):e.when(r,{then:a,otherwise:o,break:t.break})}continue}if(n===`shared`)for(let t of r)e=e.shared(t)}return e}},messages:{"any.custom":`{{#label}} failed custom validation because {{#error.message}}`,"any.default":`{{#label}} threw an error when running default method`,"any.failover":`{{#label}} threw an error when running failover method`,"any.invalid":`{{#label}} contains an invalid value`,"any.only":`{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}`,"any.ref":`{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}`,"any.required":`{{#label}} is required`,"any.unknown":`{{#label}} is not allowed`}})}),Oe=s((exports,t)=>{let n=g(),r=be(),i=De(),a=M(),o=me(),s=j(),c=ue(),l={};t.exports=i.extend({type:`alternatives`,flags:{match:{default:`any`}},terms:{matches:{init:[],register:c.toSibling}},args(e,...t){return t.length===1&&Array.isArray(t[0])?e.try(...t[0]):e.try(...t)},validate(e,t){let{schema:n,error:i,state:a,prefs:o}=t;if(n._flags.match){let t=[],c=[];for(let r=0;r<n.$_terms.matches.length;++r){let i=n.$_terms.matches[r],s=a.nest(i.schema,`match.${r}`);s.snapshot();let l=i.schema.$_validate(e,s,o);l.errors?(c.push(l.errors),s.restore()):(t.push(l.value),s.commit())}if(t.length===0){let e={details:c.map(e=>s.details(e,{override:!1}))};return{errors:i(`alternatives.any`,e)}}if(n._flags.match===`one`)return t.length===1?{value:t[0]}:{errors:i(`alternatives.one`)};if(t.length!==n.$_terms.matches.length){let e={details:c.map(e=>s.details(e,{override:!1}))};return{errors:i(`alternatives.all`,e)}}let l=e=>e.$_terms.matches.some(e=>e.schema.type===`object`||e.schema.type===`alternatives`&&l(e.schema));return l(n)?{value:t.reduce((e,t)=>r(e,t,{mergeArrays:!1}))}:{value:t[t.length-1]}}let c=[];for(let t=0;t<n.$_terms.matches.length;++t){let r=n.$_terms.matches[t];if(r.schema){let n=a.nest(r.schema,`match.${t}`);n.snapshot();let i=r.schema.$_validate(e,n,o);if(!i.errors)return n.commit(),i;n.restore(),c.push({schema:r.schema,reports:i.errors});continue}let i=r.ref?r.ref.resolve(e,a,o):e,s=r.is?[r]:r.switch;for(let n=0;n<s.length;++n){let c=s[n],{is:l,then:u,otherwise:d}=c,f=`match.${t}${r.switch?`.`+n:``}`;if(l.$_match(i,a.nest(l,`${f}.is`),o)){if(u)return u.$_validate(e,a.nest(u,`${f}.then`),o)}else if(d)return d.$_validate(e,a.nest(d,`${f}.otherwise`),o)}}return l.errors(c,t)},rules:{conditional:{method(e,t){n(!this._flags._endedSwitch,`Unreachable condition`),n(!this._flags.match,`Cannot combine match mode`,this._flags.match,`with conditional rule`),n(t.break===void 0,`Cannot use break option with alternatives conditional`);let r=this.clone(),i=o.when(r,e,t),a=i.is?[i]:i.switch;for(let e of a)if(e.then&&e.otherwise){r.$_setFlag(`_endedSwitch`,!0,{clone:!1});break}return r.$_terms.matches.push(i),r.$_mutateRebuild()}},match:{method(e){if(n([`any`,`one`,`all`].includes(e),`Invalid alternatives match mode`,e),e!==`any`)for(let t of this.$_terms.matches)n(t.schema,`Cannot combine match mode`,e,`with conditional rules`);return this.$_setFlag(`match`,e)}},try:{method(...e){n(e.length,`Missing alternative schemas`),a.verifyFlat(e,`try`),n(!this._flags._endedSwitch,`Unreachable condition`);let t=this.clone();for(let n of e)t.$_terms.matches.push({schema:t.$_compile(n)});return t.$_mutateRebuild()}}},overrides:{label(e){let t=this.$_parent(`label`,e),n=(t,n)=>n.path[0]!==`is`&&typeof t._flags.label!=`string`?t.label(e):void 0;return t.$_modify({each:n,ref:!1})}},rebuild(e){let t=t=>{a.isSchema(t)&&t.type===`array`&&e.$_setFlag(`_arrayItems`,!0,{clone:!1})};e.$_modify({each:t})},manifest:{build(e,t){if(t.matches)for(let n of t.matches){let{schema:t,ref:r,is:i,not:a,then:o,otherwise:s}=n;e=t?e.try(t):r?e.conditional(r,{is:i,then:o,not:a,otherwise:s,switch:n.switch}):e.conditional(i,{then:o,otherwise:s})}return e}},messages:{"alternatives.all":`{{#label}} does not match all of the required types`,"alternatives.any":`{{#label}} does not match any of the allowed types`,"alternatives.match":`{{#label}} does not match any of the allowed types`,"alternatives.one":`{{#label}} matches more than one allowed type`,"alternatives.types":`{{#label}} must be one of {{#types}}`}}),l.errors=function(e,{error:t,state:n}){if(!e.length)return{errors:t(`alternatives.any`)};if(e.length===1)return{errors:e[0].reports};let r=new Set,i=[];for(let{reports:a,schema:o}of e){if(a.length>1)return l.unmatched(e,t);let c=a[0];if(!(c instanceof s.Report))return l.unmatched(e,t);if(c.state.path.length!==n.path.length){i.push({type:o.type,report:c});continue}if(c.code===`any.only`){for(let e of c.local.valids)r.add(e);continue}let[u,d]=c.code.split(`.`);d===`base`?c.code===`object.base`?r.add(c.local.type):r.add(u):i.push({type:o.type,report:c})}return i.length?i.length===1?{errors:i[0].report}:l.unmatched(e,t):{errors:t(`alternatives.types`,{types:[...r]})}},l.unmatched=function(e,t){let n=[];for(let t of e)n.push(...t.reports);return{errors:t(`alternatives.match`,s.details(n,{override:!1}))}}}),ke=s((exports,t)=>{let n=g(),r=_e(),i=_(),a=De(),o=M(),s=me(),c={};t.exports=a.extend({type:`array`,flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:`schema`},ordered:{init:[],manifest:`schema`},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:`object`,method(e,{schema:t,state:n,prefs:r}){if(!Array.isArray(e))return;let i=t.$_getRule(`sort`);if(i)return c.sort(t,e,i.args.options,n,r)}},validate(e,{schema:t,error:n}){if(!Array.isArray(e)){if(t._flags.single){let t=[e];return t[o.symbols.arraySingle]=!0,{value:t}}return{errors:n(`array.base`)}}if(!(!t.$_getRule(`items`)&&!t.$_terms.externals))return{value:e.slice()}},rules:{has:{method(e){e=this.$_compile(e,{appendPath:!0});let t=this.$_addRule({name:`has`,args:{schema:e}});return t.$_mutateRegister(e),t},validate(e,{state:t,prefs:n,error:r},{schema:i}){let a=[e,...t.ancestors];for(let r=0;r<e.length;++r){let o=t.localize([...t.path,r],a,i);if(i.$_match(e[r],o,n))return e}let o=i._flags.label;return o?r(`array.hasKnown`,{patternLabel:o}):r(`array.hasUnknown`,null)},multi:!0},items:{method(...e){o.verifyFlat(e,`items`);let t=this.$_addRule(`items`);for(let n=0;n<e.length;++n){let r=o.tryWithPath(()=>this.$_compile(e[n]),n,{append:!0});t.$_terms.items.push(r)}return t.$_mutateRebuild()},validate(e,{schema:t,error:n,state:r,prefs:i,errorsArray:a}){let s=t.$_terms._requireds.slice(),l=t.$_terms.ordered.slice(),u=[...t.$_terms._inclusions,...s],d=!e[o.symbols.arraySingle];delete e[o.symbols.arraySingle];let f=a(),p=e.length;for(let a=0;a<p;++a){let o=e[a],m=!1,h=!1,g=d?a:new Number(a),_=[...r.path,g];if(!t._flags.sparse&&o===void 0){if(f.push(n(`array.sparse`,{key:g,path:_,pos:a,value:void 0},r.localize(_))),i.abortEarly)return f;l.shift();continue}let v=[e,...r.ancestors];for(let e of t.$_terms._exclusions){if(!e.$_match(o,r.localize(_,v,e),i,{presence:`ignore`}))continue;if(f.push(n(`array.excludes`,{pos:a,value:o},r.localize(_))),i.abortEarly)return f;m=!0,l.shift();break}if(m)continue;if(t.$_terms.ordered.length){if(l.length){let s=l.shift(),u=s.$_validate(o,r.localize(_,v,s),i);if(u.errors){if(f.push(...u.errors),i.abortEarly)return f}else if(s._flags.result===`strip`)c.fastSplice(e,a),--a,--p;else if(!t._flags.sparse&&u.value===void 0){if(f.push(n(`array.sparse`,{key:g,path:_,pos:a,value:void 0},r.localize(_))),i.abortEarly)return f;continue}else e[a]=u.value;continue}else if(!t.$_terms.items.length){if(f.push(n(`array.orderedLength`,{pos:a,limit:t.$_terms.ordered.length})),i.abortEarly)return f;break}}let y=[],b=s.length;for(let l=0;l<b;++l){let u=r.localize(_,v,s[l]);u.snapshot();let d=s[l].$_validate(o,u,i);if(y[l]=d,!d.errors){if(u.commit(),e[a]=d.value,h=!0,c.fastSplice(s,l),--l,--b,!t._flags.sparse&&d.value===void 0&&(f.push(n(`array.sparse`,{key:g,path:_,pos:a,value:void 0},r.localize(_))),i.abortEarly))return f;break}u.restore()}if(h)continue;let x=i.stripUnknown&&!!i.stripUnknown.arrays||!1;b=u.length;for(let l of u){let u,d=s.indexOf(l);if(d!==-1)u=y[d];else{let s=r.localize(_,v,l);if(s.snapshot(),u=l.$_validate(o,s,i),!u.errors){s.commit(),l._flags.result===`strip`?(c.fastSplice(e,a),--a,--p):!t._flags.sparse&&u.value===void 0?(f.push(n(`array.sparse`,{key:g,path:_,pos:a,value:void 0},r.localize(_))),m=!0):e[a]=u.value,h=!0;break}s.restore()}if(b===1){if(x){c.fastSplice(e,a),--a,--p,h=!0;break}if(f.push(...u.errors),i.abortEarly)return f;m=!0;break}}if(!m&&(t.$_terms._inclusions.length||t.$_terms._requireds.length)&&!h){if(x){c.fastSplice(e,a),--a,--p;continue}if(f.push(n(`array.includes`,{pos:a,value:o},r.localize(_))),i.abortEarly)return f}}return s.length&&c.fillMissedErrors(t,f,s,e,r,i),l.length&&(c.fillOrderedErrors(t,f,l,e,r,i),f.length||c.fillDefault(l,e,r,i)),f.length?f:e},priority:!0,manifest:!1},length:{method(e){return this.$_addRule({name:`length`,args:{limit:e},operator:`=`})},validate(e,t,{limit:n},{name:r,operator:i,args:a}){return o.compare(e.length,n,i)?e:t.error(`array.`+r,{limit:a.limit,value:e})},args:[{name:`limit`,ref:!0,assert:o.limit,message:`must be a positive integer`}]},max:{method(e){return this.$_addRule({name:`max`,method:`length`,args:{limit:e},operator:`<=`})}},min:{method(e){return this.$_addRule({name:`min`,method:`length`,args:{limit:e},operator:`>=`})}},ordered:{method(...e){o.verifyFlat(e,`ordered`);let t=this.$_addRule(`items`);for(let n=0;n<e.length;++n){let r=o.tryWithPath(()=>this.$_compile(e[n]),n,{append:!0});c.validateSingle(r,t),t.$_mutateRegister(r),t.$_terms.ordered.push(r)}return t.$_mutateRebuild()}},single:{method(e){let t=e===void 0?!0:!!e;return n(!t||!this._flags._arrayItems,`Cannot specify single rule when array has array items`),this.$_setFlag(`single`,t)}},sort:{method(e={}){o.assertOptions(e,[`by`,`order`]);let t={order:e.order||`ascending`};return e.by&&(t.by=s.ref(e.by,{ancestor:0}),n(!t.by.ancestor,`Cannot sort by ancestor`)),this.$_addRule({name:`sort`,args:{options:t}})},validate(e,{error:t,state:n,prefs:r,schema:i},{options:a}){let{value:o,errors:s}=c.sort(i,e,a,n,r);if(s)return s;for(let n=0;n<e.length;++n)if(e[n]!==o[n])return t(`array.sort`,{order:a.order,by:a.by?a.by.key:`value`});return e},convert:!0},sparse:{method(e){let t=e===void 0?!0:!!e;if(this._flags.sparse===t)return this;let n=t?this.clone():this.$_addRule(`items`);return n.$_setFlag(`sparse`,t,{clone:!1})}},unique:{method(e,t={}){n(!e||typeof e==`function`||typeof e==`string`,`comparator must be a function or a string`),o.assertOptions(t,[`ignoreUndefined`,`separator`]);let r={name:`unique`,args:{options:t,comparator:e}};if(e)if(typeof e==`string`){let n=o.default(t.separator,`.`);r.path=n?e.split(n):[e]}else r.comparator=e;return this.$_addRule(r)},validate(e,{state:t,error:a,schema:o},{comparator:s,options:c},{comparator:l,path:u}){let d={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),bigint:Object.create(null),object:new Map,function:new Map,custom:new Map},f=l||r,p=c.ignoreUndefined;for(let r=0;r<e.length;++r){let o=u?i(e[r],u):e[r],c=l?d.custom:d[typeof o];if(n(c,`Failed to find unique map container for type`,typeof o),c instanceof Map){let n=c.entries(),i;for(;!(i=n.next()).done;)if(f(i.value[0],o)){let n=t.localize([...t.path,r],[e,...t.ancestors]),o={pos:r,value:e[r],dupePos:i.value[1],dupeValue:e[i.value[1]]};return u&&(o.path=s),a(`array.unique`,o,n)}c.set(o,r)}else{if((!p||o!==void 0)&&c[o]!==void 0){let n={pos:r,value:e[r],dupePos:c[o],dupeValue:e[c[o]]};u&&(n.path=s);let i=t.localize([...t.path,r],[e,...t.ancestors]);return a(`array.unique`,n,i)}c[o]=r}}return e},args:[`comparator`,`options`],multi:!0}},cast:{set:{from:Array.isArray,to(e,t){return new Set(e)}}},rebuild(e){e.$_terms._inclusions=[],e.$_terms._exclusions=[],e.$_terms._requireds=[];for(let t of e.$_terms.items)c.validateSingle(t,e),t._flags.presence===`required`?e.$_terms._requireds.push(t):t._flags.presence===`forbidden`?e.$_terms._exclusions.push(t):e.$_terms._inclusions.push(t);for(let t of e.$_terms.ordered)c.validateSingle(t,e)},manifest:{build(e,t){return t.items&&(e=e.items(...t.items)),t.ordered&&(e=e.ordered(...t.ordered)),e}},messages:{"array.base":`{{#label}} must be an array`,"array.excludes":`{{#label}} contains an excluded value`,"array.hasKnown":`{{#label}} does not contain at least one required match for type {:#patternLabel}`,"array.hasUnknown":`{{#label}} does not contain at least one required match`,"array.includes":`{{#label}} does not match any of the allowed types`,"array.includesRequiredBoth":`{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)`,"array.includesRequiredKnowns":`{{#label}} does not contain {{#knownMisses}}`,"array.includesRequiredUnknowns":`{{#label}} does not contain {{#unknownMisses}} required value(s)`,"array.length":`{{#label}} must contain {{#limit}} items`,"array.max":`{{#label}} must contain less than or equal to {{#limit}} items`,"array.min":`{{#label}} must contain at least {{#limit}} items`,"array.orderedLength":`{{#label}} must contain at most {{#limit}} items`,"array.sort":`{{#label}} must be sorted in {#order} order by {{#by}}`,"array.sort.mismatching":`{{#label}} cannot be sorted due to mismatching types`,"array.sort.unsupported":`{{#label}} cannot be sorted due to unsupported type {#type}`,"array.sparse":`{{#label}} must not be a sparse array item`,"array.unique":`{{#label}} contains a duplicate value`}}),c.fillMissedErrors=function(e,t,n,r,i,a){let o=[],s=0;for(let e of n){let t=e._flags.label;t?o.push(t):++s}o.length?s?t.push(e.$_createError(`array.includesRequiredBoth`,r,{knownMisses:o,unknownMisses:s},i,a)):t.push(e.$_createError(`array.includesRequiredKnowns`,r,{knownMisses:o},i,a)):t.push(e.$_createError(`array.includesRequiredUnknowns`,r,{unknownMisses:s},i,a))},c.fillOrderedErrors=function(e,t,n,r,i,a){let o=[];for(let e of n)e._flags.presence===`required`&&o.push(e);o.length&&c.fillMissedErrors(e,t,o,r,i,a)},c.fillDefault=function(e,t,n,r){let i=[],a=!0;for(let o=e.length-1;o>=0;--o){let s=e[o],c=[t,...n.ancestors],l=s.$_validate(void 0,n.localize(n.path,c,s),r).value;if(a){if(l===void 0)continue;a=!1}i.unshift(l)}i.length&&t.push(...i)},c.fastSplice=function(e,t){let n=t;for(;n<e.length;)e[n++]=e[n];--e.length},c.validateSingle=function(e,t){(e.type===`array`||e._flags._arrayItems)&&(n(!t._flags.single,`Cannot specify array item with single rule enabled`),t.$_setFlag(`_arrayItems`,!0,{clone:!1}))},c.sort=function(e,t,n,r,i){let a=n.order===`ascending`?1:-1,o=-1*a,s=a,l=(l,u)=>{let d=c.compare(l,u,o,s);if(d!==null||(n.by&&(l=n.by.resolve(l,r,i),u=n.by.resolve(u,r,i)),d=c.compare(l,u,o,s),d!==null))return d;let f=typeof l;if(f!==typeof u)throw e.$_createError(`array.sort.mismatching`,t,null,r,i);if(f!==`number`&&f!==`string`)throw e.$_createError(`array.sort.unsupported`,t,{type:f},r,i);return f===`number`?(l-u)*a:l<u?o:s};try{return{value:t.slice().sort(l)}}catch(e){return{errors:e}}},c.compare=function(e,t,n,r){return e===t?0:e===void 0?1:t===void 0?-1:e===null?r:t===null?n:null}}),Ae=s((exports,t)=>{let n=g(),r=De(),i=M(),a=Te(),o={};o.isBool=function(e){return typeof e==`boolean`},t.exports=r.extend({type:`boolean`,flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:`values`},truthy:{init:null,manifest:`values`}},coerce(e,{schema:t}){if(typeof e!=`boolean`){if(typeof e==`string`){let n=t._flags.sensitive?e:e.toLowerCase();e=n===`true`?!0:n===`false`?!1:e}return typeof e!=`boolean`&&(e=t.$_terms.truthy&&t.$_terms.truthy.has(e,null,null,!t._flags.sensitive)||(t.$_terms.falsy&&t.$_terms.falsy.has(e,null,null,!t._flags.sensitive)?!1:e)),{value:e}}},validate(e,{error:t}){if(typeof e!=`boolean`)return{value:e,errors:t(`boolean.base`)}},rules:{truthy:{method(...e){i.verifyFlat(e,`truthy`);let t=this.clone();t.$_terms.truthy=t.$_terms.truthy||new a;for(let r=0;r<e.length;++r){let i=e[r];n(i!==void 0,`Cannot call truthy with undefined`),t.$_terms.truthy.add(i)}return t}},falsy:{method(...e){i.verifyFlat(e,`falsy`);let t=this.clone();t.$_terms.falsy=t.$_terms.falsy||new a;for(let r=0;r<e.length;++r){let i=e[r];n(i!==void 0,`Cannot call falsy with undefined`),t.$_terms.falsy.add(i)}return t}},sensitive:{method(e=!0){return this.$_setFlag(`sensitive`,e)}}},cast:{number:{from:o.isBool,to(e,t){return e?1:0}},string:{from:o.isBool,to(e,t){return e?`true`:`false`}}},manifest:{build(e,t){return t.truthy&&(e=e.truthy(...t.truthy)),t.falsy&&(e=e.falsy(...t.falsy)),e}},messages:{"boolean.base":`{{#label}} must be a boolean`}})}),je=s((exports,t)=>{let n=g(),r=De(),i=M(),a=de(),o={};o.isDate=function(e){return e instanceof Date},t.exports=r.extend({type:`date`,coerce:{from:[`number`,`string`],method(e,{schema:t}){return{value:o.parse(e,t._flags.format)||e}}},validate(e,{schema:t,error:n,prefs:r}){if(e instanceof Date&&!isNaN(e.getTime()))return;let i=t._flags.format;return!r.convert||!i||typeof e!=`string`?{value:e,errors:n(`date.base`)}:{value:e,errors:n(`date.format`,{format:i})}},rules:{compare:{method:!1,validate(e,t,{date:n},{name:r,operator:a,args:o}){let s=n===`now`?Date.now():n.getTime();return i.compare(e.getTime(),s,a)?e:t.error(`date.`+r,{limit:o.date,value:e})},args:[{name:`date`,ref:!0,normalize:e=>e===`now`?e:o.parse(e),assert:e=>e!==null,message:`must have a valid date format`}]},format:{method(e){return n([`iso`,`javascript`,`unix`].includes(e),`Unknown date format`,e),this.$_setFlag(`format`,e)}},greater:{method(e){return this.$_addRule({name:`greater`,method:`compare`,args:{date:e},operator:`>`})}},iso:{method(){return this.format(`iso`)}},less:{method(e){return this.$_addRule({name:`less`,method:`compare`,args:{date:e},operator:`<`})}},max:{method(e){return this.$_addRule({name:`max`,method:`compare`,args:{date:e},operator:`<=`})}},min:{method(e){return this.$_addRule({name:`min`,method:`compare`,args:{date:e},operator:`>=`})}},timestamp:{method(e=`javascript`){return n([`javascript`,`unix`].includes(e),`"type" must be one of "javascript, unix"`),this.format(e)}}},cast:{number:{from:o.isDate,to(e,t){return e.getTime()}},string:{from:o.isDate,to(e,{prefs:t}){return a.date(e,t)}}},messages:{"date.base":`{{#label}} must be a valid date`,"date.format":`{{#label}} must be in {msg("date.format." + #format) || #format} format`,"date.greater":`{{#label}} must be greater than {{:#limit}}`,"date.less":`{{#label}} must be less than {{:#limit}}`,"date.max":`{{#label}} must be less than or equal to {{:#limit}}`,"date.min":`{{#label}} must be greater than or equal to {{:#limit}}`,"date.format.iso":`ISO 8601 date`,"date.format.javascript":`timestamp or number of milliseconds`,"date.format.unix":`timestamp or number of seconds`}}),o.parse=function(e,t){if(e instanceof Date)return e;if(typeof e!=`string`&&(isNaN(e)||!isFinite(e))||/^\s*$/.test(e))return null;if(t===`iso`)return i.isIsoDate(e)?o.date(e.toString()):null;let n=e;if(typeof e==`string`&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e)),t){if(t===`javascript`)return o.date(1*e);if(t===`unix`)return o.date(1e3*e);if(typeof n==`string`)return null}return o.date(e)},o.date=function(e){let t=new Date(e);return isNaN(t.getTime())?null:t}}),Me=s((exports,t)=>{let n=g(),r=b(),i=be(),a=_(),o={};t.exports=function(e,t,a={}){if(n(e&&typeof e==`object`,`Invalid defaults value: must be an object`),n(!t||t===!0||typeof t==`object`,`Invalid source value: must be true, falsy or an object`),n(typeof a==`object`,`Invalid options: must be an object`),!t)return null;if(a.shallow)return o.applyToDefaultsWithShallow(e,t,a);let s=r(e);if(t===!0)return s;let c=a.nullOverride===void 0?!1:a.nullOverride;return i(s,t,{nullOverride:c,mergeArrays:!1})},o.applyToDefaultsWithShallow=function(e,t,s){let c=s.shallow;n(Array.isArray(c),`Invalid keys`);let l=new Map,u=t===!0?null:new Set;for(let n of c){n=Array.isArray(n)?n:n.split(`.`);let r=a(e,n);r&&typeof r==`object`?l.set(r,u&&a(t,n)||r):u&&u.add(n)}let d=r(e,{},l);if(!u)return d;for(let e of u)o.reachCopy(d,t,e);let f=s.nullOverride===void 0?!1:s.nullOverride;return i(d,t,{nullOverride:f,mergeArrays:!1})},o.reachCopy=function(e,t,n){for(let e of n){if(!(e in t))return;let n=t[e];if(typeof n!=`object`||!n)return;t=n}let r=t,i=e;for(let e=0;e<n.length-1;++e){let t=n[e];typeof i[t]!=`object`&&(i[t]={}),i=i[t]}i[n[n.length-1]]=r}}),Ne=s(exports=>{let t=g(),n={};exports.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(e,n){n||={};let r=[].concat(n.before||[]),i=[].concat(n.after||[]),a=n.group||`?`,o=n.sort||0;t(!r.includes(a),`Item cannot come before itself: ${a}`),t(!r.includes(`?`),`Item cannot come before unassociated items`),t(!i.includes(a),`Item cannot come after itself: ${a}`),t(!i.includes(`?`),`Item cannot come after unassociated items`),Array.isArray(e)||(e=[e]);for(let t of e){let e={seq:this._items.length,sort:o,before:r,after:i,group:a,node:t};this._items.push(e)}if(!n.manual){let e=this._sort();t(e,`item`,a===`?`?``:`added into group ${a}`,`created a dependencies error`)}return this.nodes}merge(e){Array.isArray(e)||(e=[e]);for(let t of e)if(t)for(let e of t._items)this._items.push(Object.assign({},e));this._items.sort(n.mergeSort);for(let e=0;e<this._items.length;++e)this._items[e].seq=e;let r=this._sort();return t(r,`merge created a dependencies error`),this.nodes}sort(){let e=this._sort();return t(e,`sort created a dependencies error`),this.nodes}_sort(){let e={},t=Object.create(null),n=Object.create(null);for(let r of this._items){let i=r.seq,a=r.group;n[a]=n[a]||[],n[a].push(i),e[i]=r.before;for(let e of r.after)t[e]=t[e]||[],t[e].push(i)}for(let t in e){let r=[];for(let i in e[t]){let a=e[t][i];n[a]=n[a]||[],r.push(...n[a])}e[t]=r}for(let r in t)if(n[r])for(let i of n[r])e[i].push(...t[r]);let r={};for(let t in e){let n=e[t];for(let e of n)r[e]=r[e]||[],r[e].push(t)}let i={},a=[];for(let e=0;e<this._items.length;++e){let t=e;if(r[e]){t=null;for(let e=0;e<this._items.length;++e){if(i[e]===!0)continue;r[e]||(r[e]=[]);let n=r[e].length,a=0;for(let t=0;t<n;++t)i[r[e][t]]&&++a;if(a===n){t=e;break}}}t!==null&&(i[t]=!0,a.push(t))}if(a.length!==this._items.length)return!1;let o={};for(let e of this._items)o[e.seq]=e;this._items=[],this.nodes=[];for(let e of a){let t=o[e];this.nodes.push(t.node),this._items.push(t)}return!0}},n.mergeSort=(e,t)=>e.sort===t.sort?0:e.sort<t.sort?-1:1}),Pe=s((exports,t)=>{let n=Me(),r=g(),i=b(),a=Ne(),o=De(),s=M(),c=me(),l=j(),u=ue(),d=de(),f={renameDefaults:{alias:!1,multiple:!1,override:!1}};t.exports=o.extend({type:`_keys`,properties:{typeof:`object`},flags:{unknown:{default:void 0}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:`schema`,to:`key`}}},patterns:{init:null},renames:{init:null}},args(e,t){return e.keys(t)},validate(e,{schema:t,error:n,state:r,prefs:i}){if(!e||typeof e!==t.$_property(`typeof`)||Array.isArray(e))return{value:e,errors:n(`object.base`,{type:t.$_property(`typeof`)})};if(!t.$_terms.renames&&!t.$_terms.dependencies&&!t.$_terms.keys&&!t.$_terms.patterns&&!t.$_terms.externals)return;e=f.clone(e,i);let a=[];if(t.$_terms.renames&&!f.rename(t,e,r,i,a)||!t.$_terms.keys&&!t.$_terms.patterns&&!t.$_terms.dependencies)return{value:e,errors:a};let o=new Set(Object.keys(e));if(t.$_terms.keys){let n=[e,...r.ancestors];for(let s of t.$_terms.keys){let t=s.key,c=e[t];o.delete(t);let l=r.localize([...r.path,t],n,s),u=s.schema.$_validate(c,l,i);if(u.errors){if(i.abortEarly)return{value:e,errors:u.errors};u.value!==void 0&&(e[t]=u.value),a.push(...u.errors)}else s.schema._flags.result===`strip`||u.value===void 0&&c!==void 0?delete e[t]:u.value!==void 0&&(e[t]=u.value)}}if(o.size||t._flags._hasPatternMatch){let n=f.unknown(t,e,o,a,r,i);if(n)return n}if(t.$_terms.dependencies)for(let n of t.$_terms.dependencies){if(n.key!==null&&f.isPresent(n.options)(n.key.resolve(e,r,i,null,{shadow:!1}))===!1)continue;let o=f.dependencies[n.rel](t,n,e,r,i);if(o){let n=t.$_createError(o.code,e,o.context,r,i);if(i.abortEarly)return{value:e,errors:n};a.push(n)}}return{value:e,errors:a}},rules:{and:{method(...e){return s.verifyFlat(e,`and`),f.dependency(this,`and`,null,e)}},append:{method(e){return e==null||Object.keys(e).length===0?this:this.keys(e)}},assert:{method(e,t,n){d.isTemplate(e)||(e=c.ref(e)),r(n===void 0||typeof n==`string`,`Message must be a string`),t=this.$_compile(t,{appendPath:!0});let i=this.$_addRule({name:`assert`,args:{subject:e,schema:t,message:n}});return i.$_mutateRegister(e),i.$_mutateRegister(t),i},validate(e,{error:t,prefs:n,state:r},{subject:i,schema:a,message:o}){let s=i.resolve(e,r,n),c=u.isRef(i)?i.absolute(r):[];return a.$_match(s,r.localize(c,[e,...r.ancestors],a),n)?e:t(`object.assert`,{subject:i,message:o})},args:[`subject`,`schema`,`message`],multi:!0},instance:{method(e,t){return r(typeof e==`function`,`constructor must be a function`),t||=e.name,this.$_addRule({name:`instance`,args:{constructor:e,name:t}})},validate(e,t,{constructor:n,name:r}){return e instanceof n?e:t.error(`object.instance`,{type:r,value:e})},args:[`constructor`,`name`]},keys:{method(e){r(e===void 0||typeof e==`object`,`Object schema must be a valid object`),r(!s.isSchema(e),`Object schema cannot be a joi schema`);let t=this.clone();if(!e)t.$_terms.keys=null;else if(!Object.keys(e).length)t.$_terms.keys=new f.Keys;else for(let n in t.$_terms.keys=t.$_terms.keys?t.$_terms.keys.filter(t=>!e.hasOwnProperty(t.key)):new f.Keys,e)s.tryWithPath(()=>t.$_terms.keys.push({key:n,schema:this.$_compile(e[n])}),n);return t.$_mutateRebuild()}},length:{method(e){return this.$_addRule({name:`length`,args:{limit:e},operator:`=`})},validate(e,t,{limit:n},{name:r,operator:i,args:a}){return s.compare(Object.keys(e).length,n,i)?e:t.error(`object.`+r,{limit:a.limit,value:e})},args:[{name:`limit`,ref:!0,assert:s.limit,message:`must be a positive integer`}]},max:{method(e){return this.$_addRule({name:`max`,method:`length`,args:{limit:e},operator:`<=`})}},min:{method(e){return this.$_addRule({name:`min`,method:`length`,args:{limit:e},operator:`>=`})}},nand:{method(...e){return s.verifyFlat(e,`nand`),f.dependency(this,`nand`,null,e)}},or:{method(...e){return s.verifyFlat(e,`or`),f.dependency(this,`or`,null,e)}},oxor:{method(...e){return f.dependency(this,`oxor`,null,e)}},pattern:{method(e,t,n={}){let i=e instanceof RegExp;i||(e=this.$_compile(e,{appendPath:!0})),r(t!==void 0,`Invalid rule`),s.assertOptions(n,[`fallthrough`,`matches`]),i&&r(!e.flags.includes(`g`)&&!e.flags.includes(`y`),`pattern should not use global or sticky mode`),t=this.$_compile(t,{appendPath:!0});let a=this.clone();a.$_terms.patterns=a.$_terms.patterns||[];let o={[i?`regex`:`schema`]:e,rule:t};return n.matches&&(o.matches=this.$_compile(n.matches),o.matches.type!==`array`&&(o.matches=o.matches.$_root.array().items(o.matches)),a.$_mutateRegister(o.matches),a.$_setFlag(`_hasPatternMatch`,!0,{clone:!1})),n.fallthrough&&(o.fallthrough=!0),a.$_terms.patterns.push(o),a.$_mutateRegister(t),a}},ref:{method(){return this.$_addRule(`ref`)},validate(e,t){return u.isRef(e)?e:t.error(`object.refType`,{value:e})}},regex:{method(){return this.$_addRule(`regex`)},validate(e,t){return e instanceof RegExp?e:t.error(`object.regex`,{value:e})}},rename:{method(e,t,i={}){r(typeof e==`string`||e instanceof RegExp,`Rename missing the from argument`),r(typeof t==`string`||t instanceof d,`Invalid rename to argument`),r(t!==e,`Cannot rename key to same name:`,e),s.assertOptions(i,[`alias`,`ignoreUndefined`,`override`,`multiple`]);let a=this.clone();a.$_terms.renames=a.$_terms.renames||[];for(let t of a.$_terms.renames)r(t.from!==e,`Cannot rename the same key multiple times`);return t instanceof d&&a.$_mutateRegister(t),a.$_terms.renames.push({from:e,to:t,options:n(f.renameDefaults,i)}),a}},schema:{method(e=`any`){return this.$_addRule({name:`schema`,args:{type:e}})},validate(e,t,{type:n}){return s.isSchema(e)&&(n===`any`||e.type===n)?e:t.error(`object.schema`,{type:n})}},unknown:{method(e){return this.$_setFlag(`unknown`,e!==!1)}},with:{method(e,t,n={}){return f.dependency(this,`with`,e,t,n)}},without:{method(e,t,n={}){return f.dependency(this,`without`,e,t,n)}},xor:{method(...e){return s.verifyFlat(e,`xor`),f.dependency(this,`xor`,null,e)}}},overrides:{default(e,t){return e===void 0&&(e=s.symbols.deepDefault),this.$_parent(`default`,e,t)}},rebuild(e){if(e.$_terms.keys){let t=new a.Sorter;for(let n of e.$_terms.keys)s.tryWithPath(()=>t.add(n,{after:n.schema.$_rootReferences(),group:n.key}),n.key);e.$_terms.keys=new f.Keys(...t.nodes)}},manifest:{build(e,t){if(t.keys&&(e=e.keys(t.keys)),t.dependencies)for(let{rel:n,key:r=null,peers:i,options:a}of t.dependencies)e=f.dependency(e,n,r,i,a);if(t.patterns)for(let{regex:n,schema:r,rule:i,fallthrough:a,matches:o}of t.patterns)e=e.pattern(n||r,i,{fallthrough:a,matches:o});if(t.renames)for(let{from:n,to:r,options:i}of t.renames)e=e.rename(n,r,i);return e}},messages:{"object.and":`{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}`,"object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":`{{#label}} must be of type {{#type}}`,"object.instance":`{{#label}} must be an instance of {{:#type}}`,"object.length":`{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}`,"object.max":`{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}`,"object.min":`{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}`,"object.missing":`{{#label}} must contain at least one of {{#peersWithLabels}}`,"object.nand":`{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}`,"object.oxor":`{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}`,"object.pattern.match":`{{#label}} keys failed to match pattern requirements`,"object.refType":`{{#label}} must be a Joi reference`,"object.regex":`{{#label}} must be a RegExp object`,"object.rename.multiple":`{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}`,"object.rename.override":`{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists`,"object.schema":`{{#label}} must be a Joi schema of {{#type}} type`,"object.unknown":`{{#label}} is not allowed`,"object.with":`{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}`,"object.without":`{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}`,"object.xor":`{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}`}}),f.clone=function(e,t){if(typeof e==`object`){if(t.nonEnumerables)return i(e,{shallow:!0});let n=Object.create(Object.getPrototypeOf(e));return Object.assign(n,e),n}let n=function(...t){return e.apply(this,t)};return n.prototype=i(e.prototype),Object.defineProperty(n,`name`,{value:e.name,writable:!1}),Object.defineProperty(n,`length`,{value:e.length,writable:!1}),Object.assign(n,e),n},f.dependency=function(e,t,n,i,a){r(n===null||typeof n==`string`,t,`key must be a strings`),a||=i.length>1&&typeof i[i.length-1]==`object`?i.pop():{},s.assertOptions(a,[`separator`,`isPresent`]),i=[].concat(i);let o=s.default(a.separator,`.`),l=[];for(let e of i)r(typeof e==`string`,t,`peers must be strings`),l.push(c.ref(e,{separator:o,ancestor:0,prefix:!1}));n!==null&&(n=c.ref(n,{separator:o,ancestor:0,prefix:!1}));let u=e.clone();return u.$_terms.dependencies=u.$_terms.dependencies||[],u.$_terms.dependencies.push(new f.Dependency(t,n,l,i,a)),u},f.dependencies={and(e,t,n,r,i){let a=[],o=[],s=t.peers.length,c=f.isPresent(t.options);for(let e of t.peers)c(e.resolve(n,r,i,null,{shadow:!1}))===!1?a.push(e.key):o.push(e.key);if(a.length!==s&&o.length!==s)return{code:`object.and`,context:{present:o,presentWithLabels:f.keysToLabels(e,o),missing:a,missingWithLabels:f.keysToLabels(e,a)}}},nand(e,t,n,r,i){let a=[],o=f.isPresent(t.options);for(let e of t.peers)o(e.resolve(n,r,i,null,{shadow:!1}))&&a.push(e.key);if(a.length!==t.peers.length)return;let s=t.paths[0],c=t.paths.slice(1);return{code:`object.nand`,context:{main:s,mainWithLabel:f.keysToLabels(e,s),peers:c,peersWithLabels:f.keysToLabels(e,c)}}},or(e,t,n,r,i){let a=f.isPresent(t.options);for(let e of t.peers)if(a(e.resolve(n,r,i,null,{shadow:!1})))return;return{code:`object.missing`,context:{peers:t.paths,peersWithLabels:f.keysToLabels(e,t.paths)}}},oxor(e,t,n,r,i){let a=[],o=f.isPresent(t.options);for(let e of t.peers)o(e.resolve(n,r,i,null,{shadow:!1}))&&a.push(e.key);if(!a.length||a.length===1)return;let s={peers:t.paths,peersWithLabels:f.keysToLabels(e,t.paths)};return s.present=a,s.presentWithLabels=f.keysToLabels(e,a),{code:`object.oxor`,context:s}},with(e,t,n,r,i){let a=f.isPresent(t.options);for(let o of t.peers)if(a(o.resolve(n,r,i,null,{shadow:!1}))===!1)return{code:`object.with`,context:{main:t.key.key,mainWithLabel:f.keysToLabels(e,t.key.key),peer:o.key,peerWithLabel:f.keysToLabels(e,o.key)}}},without(e,t,n,r,i){let a=f.isPresent(t.options);for(let o of t.peers)if(a(o.resolve(n,r,i,null,{shadow:!1})))return{code:`object.without`,context:{main:t.key.key,mainWithLabel:f.keysToLabels(e,t.key.key),peer:o.key,peerWithLabel:f.keysToLabels(e,o.key)}}},xor(e,t,n,r,i){let a=[],o=f.isPresent(t.options);for(let e of t.peers)o(e.resolve(n,r,i,null,{shadow:!1}))&&a.push(e.key);if(a.length===1)return;let s={peers:t.paths,peersWithLabels:f.keysToLabels(e,t.paths)};return a.length===0?{code:`object.missing`,context:s}:(s.present=a,s.presentWithLabels=f.keysToLabels(e,a),{code:`object.xor`,context:s})}},f.keysToLabels=function(e,t){return Array.isArray(t)?t.map(t=>e.$_mapLabels(t)):e.$_mapLabels(t)},f.isPresent=function(e){return typeof e.isPresent==`function`?e.isPresent:e=>e!==void 0},f.rename=function(e,t,n,r,i){let a={};for(let o of e.$_terms.renames){let s=[],c=typeof o.from!=`string`;if(!c)Object.prototype.hasOwnProperty.call(t,o.from)&&(t[o.from]!==void 0||!o.options.ignoreUndefined)&&s.push(o);else for(let e in t){if(t[e]===void 0&&o.options.ignoreUndefined||e===o.to)continue;let n=o.from.exec(e);if(!n)continue;s.push({from:e,to:o.to,match:n})}for(let l of s){let s=l.from,u=l.to;if(u instanceof d&&(u=u.render(t,n,r,l.match)),s===u)continue;if(!o.options.multiple&&a[u]&&(i.push(e.$_createError(`object.rename.multiple`,t,{from:s,to:u,pattern:c},n,r)),r.abortEarly)||Object.prototype.hasOwnProperty.call(t,u)&&!o.options.override&&!a[u]&&(i.push(e.$_createError(`object.rename.override`,t,{from:s,to:u,pattern:c},n,r)),r.abortEarly))return!1;t[s]===void 0?delete t[u]:t[u]=t[s],a[u]=!0,o.options.alias||delete t[s]}}return!0},f.unknown=function(e,t,n,r,i,a){if(e.$_terms.patterns){let o=!1,s=e.$_terms.patterns.map(e=>{if(e.matches)return o=!0,[]}),c=[t,...i.ancestors];for(let o of n){let l=t[o],u=[...i.path,o];for(let d=0;d<e.$_terms.patterns.length;++d){let f=e.$_terms.patterns[d];if(f.regex){let e=f.regex.test(o);if(i.mainstay.tracer.debug(i,`rule`,`pattern.${d}`,e?`pass`:`error`),!e)continue}else if(!f.schema.$_match(o,i.nest(f.schema,`pattern.${d}`),a))continue;n.delete(o);let p=i.localize(u,c,{schema:f.rule,key:o}),m=f.rule.$_validate(l,p,a);if(m.errors){if(a.abortEarly)return{value:t,errors:m.errors};r.push(...m.errors)}if(f.matches&&s[d].push(o),t[o]=m.value,!f.fallthrough)break}}if(o)for(let n=0;n<s.length;++n){let o=s[n];if(!o)continue;let u=e.$_terms.patterns[n].matches,d=i.localize(i.path,c,u),f=u.$_validate(o,d,a);if(f.errors){let n=l.details(f.errors,{override:!1});n.matches=o;let s=e.$_createError(`object.pattern.match`,t,n,i,a);if(a.abortEarly)return{value:t,errors:s};r.push(s)}}}if(!n.size||!e.$_terms.keys&&!e.$_terms.patterns)return;if(a.stripUnknown&&e._flags.unknown===void 0||a.skipFunctions){let e=a.stripUnknown?a.stripUnknown===!0?!0:!!a.stripUnknown.objects:!1;for(let r of n)e?(delete t[r],n.delete(r)):typeof t[r]==`function`&&n.delete(r)}let o=!s.default(e._flags.unknown,a.allowUnknown);if(o)for(let o of n){let n=i.localize([...i.path,o],[]),s=e.$_createError(`object.unknown`,t[o],{child:o},n,a,{flags:!1});if(a.abortEarly)return{value:t,errors:s};r.push(s)}},f.Dependency=class{constructor(e,t,n,r,i){this.rel=e,this.key=t,this.peers=n,this.paths=r,this.options=i}describe(){let e={rel:this.rel,peers:this.paths};return this.key!==null&&(e.key=this.key.key),this.peers[0].separator!==`.`&&(e.options={...e.options,separator:this.peers[0].separator}),this.options.isPresent&&(e.options={...e.options,isPresent:this.options.isPresent}),e}},f.Keys=class extends Array{concat(e){let t=this.slice(),n=new Map;for(let e=0;e<t.length;++e)n.set(t[e].key,e);for(let r of e){let e=r.key,i=n.get(e);i===void 0?t.push(r):t[i]={key:e,schema:t[i].schema.concat(r.schema)}}return t}}}),Fe=s((exports,t)=>{let n=g(),r=Pe();t.exports=r.extend({type:`function`,properties:{typeof:`function`},rules:{arity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,`n must be a positive integer`),this.$_addRule({name:`arity`,args:{n:e}})},validate(e,t,{n}){return e.length===n?e:t.error(`function.arity`,{n})}},class:{method(){return this.$_addRule(`class`)},validate(e,t){return/^\s*class\s/.test(e.toString())?e:t.error(`function.class`,{value:e})}},minArity:{method(e){return n(Number.isSafeInteger(e)&&e>0,`n must be a strict positive integer`),this.$_addRule({name:`minArity`,args:{n:e}})},validate(e,t,{n}){return e.length>=n?e:t.error(`function.minArity`,{n})}},maxArity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,`n must be a positive integer`),this.$_addRule({name:`maxArity`,args:{n:e}})},validate(e,t,{n}){return e.length<=n?e:t.error(`function.maxArity`,{n})}}},messages:{"function.arity":`{{#label}} must have an arity of {{#n}}`,"function.class":`{{#label}} must be a class`,"function.maxArity":`{{#label}} must have an arity lesser or equal to {{#n}}`,"function.minArity":`{{#label}} must have an arity greater or equal to {{#n}}`}})}),Ie=s((exports,t)=>{let n=g(),r=De(),i=M(),a=me(),o=j(),s={};t.exports=r.extend({type:`link`,properties:{schemaChain:!0},terms:{link:{init:null,manifest:`single`,register:!1}},args(e,t){return e.ref(t)},validate(e,{schema:t,state:r,prefs:i}){n(t.$_terms.link,`Uninitialized link schema`);let a=s.generate(t,e,r,i),o=t.$_terms.link[0].ref;return a.$_validate(e,r.nest(a,`link:${o.display}:${a.type}`),i)},generate(e,t,n,r){return s.generate(e,t,n,r)},rules:{ref:{method(e){n(!this.$_terms.link,`Cannot reinitialize schema`),e=a.ref(e),n(e.type===`value`||e.type===`local`,`Invalid reference type:`,e.type),n(e.type===`local`||e.ancestor===`root`||e.ancestor>0,`Link cannot reference itself`);let t=this.clone();return t.$_terms.link=[{ref:e}],t}},relative:{method(e=!0){return this.$_setFlag(`relative`,e)}}},overrides:{concat(e){n(this.$_terms.link,`Uninitialized link schema`),n(i.isSchema(e),`Invalid schema object`),n(e.type!==`link`,`Cannot merge type link with another link`);let t=this.clone();return t.$_terms.whens||(t.$_terms.whens=[]),t.$_terms.whens.push({concat:e}),t.$_mutateRebuild()}},manifest:{build(e,t){return n(t.link,`Invalid link description missing link`),e.ref(t.link)}}}),s.generate=function(e,t,n,r){let i=n.mainstay.links.get(e);if(i)return i._generate(t,n,r).schema;let a=e.$_terms.link[0].ref,{perspective:o,path:c}=s.perspective(a,n);s.assert(o,`which is outside of schema boundaries`,a,e,n,r);try{i=c.length?o.$_reach(c):o}catch{s.assert(!1,`to non-existing schema`,a,e,n,r)}return s.assert(i.type!==`link`,`which is another link`,a,e,n,r),e._flags.relative||n.mainstay.links.set(e,i),i._generate(t,n,r).schema},s.perspective=function(e,t){if(e.type===`local`){for(let{schema:n,key:r}of t.schemas){let t=n._flags.id||r;if(t===e.path[0])return{perspective:n,path:e.path.slice(1)};if(n.$_terms.shared){for(let t of n.$_terms.shared)if(t._flags.id===e.path[0])return{perspective:t,path:e.path.slice(1)}}}return{perspective:null,path:null}}return e.ancestor===`root`?{perspective:t.schemas[t.schemas.length-1].schema,path:e.path}:{perspective:t.schemas[e.ancestor]&&t.schemas[e.ancestor].schema,path:e.path}},s.assert=function(e,t,r,i,a,s){e||n(!1,`"${o.label(i._flags,a,s)}" contains link reference "${r.display}" ${t}`)}}),Le=s((exports,t)=>{let n=g(),r=De(),i=M(),a={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/,decimalPlaces(e){let t=e.toString(),n=t.indexOf(`.`),r=t.indexOf(`e`);return(n<0?0:(r<0?t.length:r)-n-1)+(r<0?0:Math.max(0,-parseInt(t.slice(r+1))))}};t.exports=r.extend({type:`number`,flags:{unsafe:{default:!1}},coerce:{from:`string`,method(e,{schema:t,error:n}){let r=e.match(a.numberRx);if(!r)return;e=e.trim();let i={value:parseFloat(e)};if(i.value===0&&(i.value=0),!t._flags.unsafe)if(e.match(/e/i)){if(a.extractSignificantDigits(e)!==a.extractSignificantDigits(String(i.value)))return i.errors=n(`number.unsafe`),i}else{let t=i.value.toString();if(t.match(/e/i))return i;if(t!==a.normalizeDecimal(e))return i.errors=n(`number.unsafe`),i}return i}},validate(e,{schema:t,error:n,prefs:r}){if(e===1/0||e===-1/0)return{value:e,errors:n(`number.infinity`)};if(!i.isNumber(e))return{value:e,errors:n(`number.base`)};let a={value:e};if(r.convert){let e=t.$_getRule(`precision`);if(e){let t=10**e.args.limit;a.value=Math.round(a.value*t)/t}}return a.value===0&&(a.value=0),!t._flags.unsafe&&(e>2**53-1||e<-(2**53-1))&&(a.errors=n(`number.unsafe`)),a},rules:{compare:{method:!1,validate(e,t,{limit:n},{name:r,operator:a,args:o}){return i.compare(e,n,a)?e:t.error(`number.`+r,{limit:o.limit,value:e})},args:[{name:`limit`,ref:!0,assert:i.isNumber,message:`must be a number`}]},greater:{method(e){return this.$_addRule({name:`greater`,method:`compare`,args:{limit:e},operator:`>`})}},integer:{method(){return this.$_addRule(`integer`)},validate(e,t){return Math.trunc(e)-e===0?e:t.error(`number.integer`)}},less:{method(e){return this.$_addRule({name:`less`,method:`compare`,args:{limit:e},operator:`<`})}},max:{method(e){return this.$_addRule({name:`max`,method:`compare`,args:{limit:e},operator:`<=`})}},min:{method(e){return this.$_addRule({name:`min`,method:`compare`,args:{limit:e},operator:`>=`})}},multiple:{method(e){let t=typeof e==`number`?a.decimalPlaces(e):null,n=10**t;return this.$_addRule({name:`multiple`,args:{base:e,baseDecimalPlace:t,pfactor:n}})},validate(e,t,{base:n,baseDecimalPlace:r,pfactor:i},o){let s=a.decimalPlaces(e);return s>r?t.error(`number.multiple`,{multiple:o.args.base,value:e}):Math.round(i*e)%Math.round(i*n)===0?e:t.error(`number.multiple`,{multiple:o.args.base,value:e})},args:[{name:`base`,ref:!0,assert:e=>typeof e==`number`&&isFinite(e)&&e>0,message:`must be a positive number`},`baseDecimalPlace`,`pfactor`],multi:!0},negative:{method(){return this.sign(`negative`)}},port:{method(){return this.$_addRule(`port`)},validate(e,t){return Number.isSafeInteger(e)&&e>=0&&e<=65535?e:t.error(`number.port`)}},positive:{method(){return this.sign(`positive`)}},precision:{method(e){return n(Number.isSafeInteger(e),`limit must be an integer`),this.$_addRule({name:`precision`,args:{limit:e}})},validate(e,t,{limit:n}){let r=e.toString().match(a.precisionRx),i=Math.max((r[1]?r[1].length:0)-(r[2]?parseInt(r[2],10):0),0);return i<=n?e:t.error(`number.precision`,{limit:n,value:e})},convert:!0},sign:{method(e){return n([`negative`,`positive`].includes(e),`Invalid sign`,e),this.$_addRule({name:`sign`,args:{sign:e}})},validate(e,t,{sign:n}){return n===`negative`&&e<0||n===`positive`&&e>0?e:t.error(`number.${n}`)}},unsafe:{method(e=!0){return n(typeof e==`boolean`,`enabled must be a boolean`),this.$_setFlag(`unsafe`,e)}}},cast:{string:{from:e=>typeof e==`number`,to(e,t){return e.toString()}}},messages:{"number.base":`{{#label}} must be a number`,"number.greater":`{{#label}} must be greater than {{#limit}}`,"number.infinity":`{{#label}} cannot be infinity`,"number.integer":`{{#label}} must be an integer`,"number.less":`{{#label}} must be less than {{#limit}}`,"number.max":`{{#label}} must be less than or equal to {{#limit}}`,"number.min":`{{#label}} must be greater than or equal to {{#limit}}`,"number.multiple":`{{#label}} must be a multiple of {{#multiple}}`,"number.negative":`{{#label}} must be a negative number`,"number.port":`{{#label}} must be a valid port`,"number.positive":`{{#label}} must be a positive number`,"number.precision":`{{#label}} must have no more than {{#limit}} decimal places`,"number.unsafe":`{{#label}} must be a safe number`}}),a.extractSignificantDigits=function(e){return e.replace(a.exponentialPartRegex,``).replace(a.dotRegex,``).replace(a.trailingZerosRegex,``).replace(a.leadingSignAndZerosRegex,``)},a.normalizeDecimal=function(e){return e=e.replace(/^\+/,``).replace(/\.0*$/,``).replace(/^(-?)\.([^\.]*)$/,`$10.$2`).replace(/^(-?)0+([0-9])/,`$1$2`),e.includes(`.`)&&e.endsWith(`0`)&&(e=e.replace(/0+$/,``)),e===`-0`?`0`:e}}),Re=s((exports,t)=>{let n=Pe();t.exports=n.extend({type:`object`,cast:{map:{from:e=>e&&typeof e==`object`,to(e,t){return new Map(Object.entries(e))}}}})}),ze=s(exports=>{exports.codes={EMPTY_STRING:`Address must be a non-empty string`,FORBIDDEN_UNICODE:`Address contains forbidden Unicode characters`,MULTIPLE_AT_CHAR:`Address cannot contain more than one @ character`,MISSING_AT_CHAR:`Address must contain one @ character`,EMPTY_LOCAL:`Address local part cannot be empty`,ADDRESS_TOO_LONG:`Address too long`,LOCAL_TOO_LONG:`Address local part too long`,EMPTY_LOCAL_SEGMENT:`Address local part contains empty dot-separated segment`,INVALID_LOCAL_CHARS:`Address local part contains invalid character`,DOMAIN_NON_EMPTY_STRING:`Domain must be a non-empty string`,DOMAIN_TOO_LONG:`Domain too long`,DOMAIN_INVALID_UNICODE_CHARS:`Domain contains forbidden Unicode characters`,DOMAIN_INVALID_CHARS:`Domain contains invalid character`,DOMAIN_INVALID_TLDS_CHARS:`Domain contains invalid tld character`,DOMAIN_SEGMENTS_COUNT:`Domain lacks the minimum required number of segments`,DOMAIN_SEGMENTS_COUNT_MAX:`Domain contains too many segments`,DOMAIN_FORBIDDEN_TLDS:`Domain uses forbidden TLD`,DOMAIN_EMPTY_SEGMENT:`Domain contains empty dot-separated segment`,DOMAIN_LONG_SEGMENT:`Domain contains dot-separated segment that is too long`},exports.code=function(t){return{code:t,error:exports.codes[t]}}}),Be=s(exports=>{let t=require(`url`),n=ze(),r={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:t.URL||URL};exports.analyze=function(e,t={}){if(!e)return n.code(`DOMAIN_NON_EMPTY_STRING`);if(typeof e!=`string`)throw Error(`Invalid input: domain must be a string`);if(e.length>256)return n.code(`DOMAIN_TOO_LONG`);let i=!r.nonAsciiRx.test(e);if(!i){if(t.allowUnicode===!1)return n.code(`DOMAIN_INVALID_UNICODE_CHARS`);e=e.normalize(`NFC`)}if(r.domainControlRx.test(e))return n.code(`DOMAIN_INVALID_CHARS`);e=r.punycode(e),t.allowFullyQualified&&e[e.length-1]===`.`&&(e=e.slice(0,-1));let a=t.minDomainSegments||r.minDomainSegments,o=e.split(`.`);if(o.length<a)return n.code(`DOMAIN_SEGMENTS_COUNT`);if(t.maxDomainSegments&&o.length>t.maxDomainSegments)return n.code(`DOMAIN_SEGMENTS_COUNT_MAX`);let s=t.tlds;if(s){let e=o[o.length-1].toLowerCase();if(s.deny&&s.deny.has(e)||s.allow&&!s.allow.has(e))return n.code(`DOMAIN_FORBIDDEN_TLDS`)}for(let e=0;e<o.length;++e){let t=o[e];if(!t.length)return n.code(`DOMAIN_EMPTY_SEGMENT`);if(t.length>63)return n.code(`DOMAIN_LONG_SEGMENT`);if(e<o.length-1){if(!r.domainSegmentRx.test(t))return n.code(`DOMAIN_INVALID_CHARS`)}else if(!r.tldSegmentRx.test(t))return n.code(`DOMAIN_INVALID_TLDS_CHARS`)}return null},exports.isValid=function(t,n){return!exports.analyze(t,n)},r.punycode=function(e){e.includes(`%`)&&(e=e.replace(/%/g,`%25`));try{return new r.URL(`http://${e}`).host}catch{return e}}}),Ve=s(exports=>{let t=require(`util`),n=Be(),r=ze(),i={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(t.TextEncoder||TextEncoder)};exports.analyze=function(e,t){return i.email(e,t)},exports.isValid=function(e,t){return!i.email(e,t)},i.email=function(e,t={}){if(typeof e!=`string`)throw Error(`Invalid input: email must be a string`);if(!e)return r.code(`EMPTY_STRING`);let a=!i.nonAsciiRx.test(e);if(!a){if(t.allowUnicode===!1)return r.code(`FORBIDDEN_UNICODE`);e=e.normalize(`NFC`)}let o=e.split(`@`);if(o.length!==2)return o.length>2?r.code(`MULTIPLE_AT_CHAR`):r.code(`MISSING_AT_CHAR`);let[s,c]=o;if(!s)return r.code(`EMPTY_LOCAL`);if(!t.ignoreLength){if(e.length>254)return r.code(`ADDRESS_TOO_LONG`);if(i.encoder.encode(s).length>64)return r.code(`LOCAL_TOO_LONG`)}return i.local(s,a)||n.analyze(c,t)},i.local=function(e,t){let n=e.split(`.`);for(let e of n){if(!e.length)return r.code(`EMPTY_LOCAL_SEGMENT`);if(t){if(!i.atextRx.test(e))return r.code(`INVALID_LOCAL_CHARS`);continue}for(let t of e){if(i.atextRx.test(t))continue;let e=i.binary(t);if(!i.atomRx.test(e))return r.code(`INVALID_LOCAL_CHARS`)}}},i.binary=function(e){return Array.from(i.encoder.encode(e)).map(e=>String.fromCharCode(e)).join(``)},i.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,i.atomRx=new RegExp([`(?:[\\xc2-\\xdf][\\x80-\\xbf])`,`(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})`,`(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})`].join(`|`))}),He=s((exports,t)=>{t.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,`\\$&`)}}),Ue=s(exports=>{let t=g(),n=He(),r={};r.generate=function(){let e={},t=`\\dA-Fa-f`,n=`[`+t+`]`,r=`\\w-\\.~`,i=`!\\$&'\\(\\)\\*\\+,;=`,a=`%`+t,o=r+a+i+`:@`,s=`[`+o+`]`,c=`(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;e.ipv4address=`(?:`+c+`\\.){3}(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;let l=n+`{1,4}`,u=`(?:`+l+`:[\\dA-Fa-f]{1,4}|`+e.ipv4address+`)`,d=`(?:`+l+`:){6}`+u,f=`::(?:`+l+`:){5}`+u,p=`(?:`+l+`)?::(?:[\\dA-Fa-f]{1,4}:){4}`+u,m=`(?:(?:`+l+`:){0,1}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){3}`+u,h=`(?:(?:`+l+`:){0,2}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){2}`+u,g=`(?:(?:`+l+`:){0,3}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}:`+u,_=`(?:(?:`+l+`:){0,4}[\\dA-Fa-f]{1,4})?::`+u,v=`(?:(?:`+l+`:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}`,y=`(?:(?:`+l+`:){0,6}[\\dA-Fa-f]{1,4})?::`;e.ipv4Cidr=`(?:\\d|[1-2]\\d|3[0-2])`,e.ipv6Cidr=`(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])`,e.ipv6address=`(?:`+d+`|`+f+`|`+p+`|`+m+`|`+h+`|`+g+`|`+_+`|(?:(?:[\\dA-Fa-f]{1,4}:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}|(?:(?:[\\dA-Fa-f]{1,4}:){0,6}[\\dA-Fa-f]{1,4})?::)`,e.ipvFuture=`v`+n+`+\\.[\\w-\\.~!\\$&'\\(\\)\\*\\+,;=:]+`,e.scheme=`[a-zA-Z][a-zA-Z\\d+-\\.]*`,e.schemeRegex=new RegExp(e.scheme);let b=`[`+r+a+i+`:]*`,x=`\\[(?:`+e.ipv6address+`|`+e.ipvFuture+`)\\]`,ee=`[`+r+a+i+`]{1,255}`,S=`(?:`+x+`|`+e.ipv4address+`|[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=]{1,255})`,C=`\\d*`,w=`(?:`+b+`@)?`+S+`(?::\\d*)?`,T=`(?:`+b+`@)?(`+S+`)(?::\\d*)?`,te=s+`*`,E=s+`+`,ne=`[`+r+a+i+`@]+`,re=``,D=`(?:\\/`+te+`)*`,O=`\\/(?:`+E+D+`)?`,k=E+D,A=ne+D,ie=`(?:\\/\\/\\/`+te+D+`)`;return e.hierPart=`(?:(?:\\/\\/`+w+D+`)|`+O+`|`+k+`|`+ie+`)`,e.hierPartCapture=`(?:(?:\\/\\/`+T+D+`)|`+O+`|`+k+`)`,e.relativeRef=`(?:(?:\\/\\/`+w+D+`)|`+O+`|`+A+`|)`,e.relativeRefCapture=`(?:(?:\\/\\/`+T+D+`)|`+O+`|`+A+`|)`,e.query=`[`+o+`\\/\\?]*(?=#|$)`,e.queryWithSquareBrackets=`[`+o+`\\[\\]\\/\\?]*(?=#|$)`,e.fragment=`[`+o+`\\/\\?]*`,e},r.rfc3986=r.generate(),exports.ip={v4Cidr:r.rfc3986.ipv4Cidr,v6Cidr:r.rfc3986.ipv6Cidr,ipv4:r.rfc3986.ipv4address,ipv6:r.rfc3986.ipv6address,ipvfuture:r.rfc3986.ipvFuture},r.createRegex=function(e){let i=r.rfc3986,a=e.allowQuerySquareBrackets?i.queryWithSquareBrackets:i.query,o=`(?:\\?`+a+`)?(?:#`+i.fragment+`)?`,s=e.domain?i.relativeRefCapture:i.relativeRef;if(e.relativeOnly)return r.wrap(s+o);let c=``;if(e.scheme){t(e.scheme instanceof RegExp||typeof e.scheme==`string`||Array.isArray(e.scheme),`scheme must be a RegExp, String, or Array`);let r=[].concat(e.scheme);t(r.length>=1,`scheme must have at least 1 scheme specified`);let a=[];for(let e=0;e<r.length;++e){let o=r[e];t(o instanceof RegExp||typeof o==`string`,`scheme at position `+e+` must be a RegExp or String`),o instanceof RegExp?a.push(o.source.toString()):(t(i.schemeRegex.test(o),`scheme at position `+e+` must be a valid scheme`),a.push(n(o)))}c=a.join(`|`)}let l=c?`(?:`+c+`)`:i.scheme,u=`(?:`+l+`:`+(e.domain?i.hierPartCapture:i.hierPart)+`)`,d=e.allowRelative?`(?:`+u+`|`+s+`)`:u;return r.wrap(d+o,c)},r.wrap=function(e,t){return e=`(?=.)(?!https?\:/(?:$|[^/]))(?!https?\:///)(?!https?\:[^/])${e}`,{raw:e,regex:RegExp(`^${e}$`),scheme:t}},r.uriRegex=r.createRegex({}),exports.regex=function(e={}){return e.scheme||e.allowRelative||e.relativeOnly||e.allowQuerySquareBrackets||e.domain?r.createRegex(e):r.uriRegex}}),We=s(exports=>{let t=g(),n=Ue();exports.regex=function(e={}){t(e.cidr===void 0||typeof e.cidr==`string`,`options.cidr must be a string`);let r=e.cidr?e.cidr.toLowerCase():`optional`;t([`required`,`optional`,`forbidden`].includes(r),`options.cidr must be one of required, optional, forbidden`),t(e.version===void 0||typeof e.version==`string`||Array.isArray(e.version),`options.version must be a string or an array of string`);let i=e.version||[`ipv4`,`ipv6`,`ipvfuture`];Array.isArray(i)||(i=[i]),t(i.length>=1,`options.version must have at least 1 version specified`);for(let e=0;e<i.length;++e)t(typeof i[e]==`string`,`options.version must only contain strings`),i[e]=i[e].toLowerCase(),t([`ipv4`,`ipv6`,`ipvfuture`].includes(i[e]),`options.version contains unknown version `+i[e]+` - must be one of ipv4, ipv6, ipvfuture`);i=Array.from(new Set(i));let a=i.map(e=>{if(r===`forbidden`)return n.ip[e];let t=`\\/${e===`ipv4`?n.ip.v4Cidr:n.ip.v6Cidr}`;return r===`required`?`${n.ip[e]}${t}`:`${n.ip[e]}(?:${t})?`}),o=`(?:${a.join(`|`)})`,s=RegExp(`^${o}$`);return{cidr:r,versions:i,regex:s,raw:o}}}),Ge=s((exports,t)=>{let n={};n.tlds=`AAA.AARP.ABB.ABBOTT.ABBVIE.ABC.ABLE.ABOGADO.ABUDHABI.AC.ACADEMY.ACCENTURE.ACCOUNTANT.ACCOUNTANTS.ACO.ACTOR.AD.ADS.ADULT.AE.AEG.AERO.AETNA.AF.AFL.AFRICA.AG.AGAKHAN.AGENCY.AI.AIG.AIRBUS.AIRFORCE.AIRTEL.AKDN.AL.ALIBABA.ALIPAY.ALLFINANZ.ALLSTATE.ALLY.ALSACE.ALSTOM.AM.AMAZON.AMERICANEXPRESS.AMERICANFAMILY.AMEX.AMFAM.AMICA.AMSTERDAM.ANALYTICS.ANDROID.ANQUAN.ANZ.AO.AOL.APARTMENTS.APP.APPLE.AQ.AQUARELLE.AR.ARAB.ARAMCO.ARCHI.ARMY.ARPA.ART.ARTE.AS.ASDA.ASIA.ASSOCIATES.AT.ATHLETA.ATTORNEY.AU.AUCTION.AUDI.AUDIBLE.AUDIO.AUSPOST.AUTHOR.AUTO.AUTOS.AVIANCA.AW.AWS.AX.AXA.AZ.AZURE.BA.BABY.BAIDU.BANAMEX.BAND.BANK.BAR.BARCELONA.BARCLAYCARD.BARCLAYS.BAREFOOT.BARGAINS.BASEBALL.BASKETBALL.BAUHAUS.BAYERN.BB.BBC.BBT.BBVA.BCG.BCN.BD.BE.BEATS.BEAUTY.BEER.BENTLEY.BERLIN.BEST.BESTBUY.BET.BF.BG.BH.BHARTI.BI.BIBLE.BID.BIKE.BING.BINGO.BIO.BIZ.BJ.BLACK.BLACKFRIDAY.BLOCKBUSTER.BLOG.BLOOMBERG.BLUE.BM.BMS.BMW.BN.BNPPARIBAS.BO.BOATS.BOEHRINGER.BOFA.BOM.BOND.BOO.BOOK.BOOKING.BOSCH.BOSTIK.BOSTON.BOT.BOUTIQUE.BOX.BR.BRADESCO.BRIDGESTONE.BROADWAY.BROKER.BROTHER.BRUSSELS.BS.BT.BUILD.BUILDERS.BUSINESS.BUY.BUZZ.BV.BW.BY.BZ.BZH.CA.CAB.CAFE.CAL.CALL.CALVINKLEIN.CAM.CAMERA.CAMP.CANON.CAPETOWN.CAPITAL.CAPITALONE.CAR.CARAVAN.CARDS.CARE.CAREER.CAREERS.CARS.CASA.CASE.CASH.CASINO.CAT.CATERING.CATHOLIC.CBA.CBN.CBRE.CC.CD.CENTER.CEO.CERN.CF.CFA.CFD.CG.CH.CHANEL.CHANNEL.CHARITY.CHASE.CHAT.CHEAP.CHINTAI.CHRISTMAS.CHROME.CHURCH.CI.CIPRIANI.CIRCLE.CISCO.CITADEL.CITI.CITIC.CITY.CK.CL.CLAIMS.CLEANING.CLICK.CLINIC.CLINIQUE.CLOTHING.CLOUD.CLUB.CLUBMED.CM.CN.CO.COACH.CODES.COFFEE.COLLEGE.COLOGNE.COM.COMCAST.COMMBANK.COMMUNITY.COMPANY.COMPARE.COMPUTER.COMSEC.CONDOS.CONSTRUCTION.CONSULTING.CONTACT.CONTRACTORS.COOKING.COOL.COOP.CORSICA.COUNTRY.COUPON.COUPONS.COURSES.CPA.CR.CREDIT.CREDITCARD.CREDITUNION.CRICKET.CROWN.CRS.CRUISE.CRUISES.CU.CUISINELLA.CV.CW.CX.CY.CYMRU.CYOU.CZ.DABUR.DAD.DANCE.DATA.DATE.DATING.DATSUN.DAY.DCLK.DDS.DE.DEAL.DEALER.DEALS.DEGREE.DELIVERY.DELL.DELOITTE.DELTA.DEMOCRAT.DENTAL.DENTIST.DESI.DESIGN.DEV.DHL.DIAMONDS.DIET.DIGITAL.DIRECT.DIRECTORY.DISCOUNT.DISCOVER.DISH.DIY.DJ.DK.DM.DNP.DO.DOCS.DOCTOR.DOG.DOMAINS.DOT.DOWNLOAD.DRIVE.DTV.DUBAI.DUNLOP.DUPONT.DURBAN.DVAG.DVR.DZ.EARTH.EAT.EC.ECO.EDEKA.EDU.EDUCATION.EE.EG.EMAIL.EMERCK.ENERGY.ENGINEER.ENGINEERING.ENTERPRISES.EPSON.EQUIPMENT.ER.ERICSSON.ERNI.ES.ESQ.ESTATE.ET.EU.EUROVISION.EUS.EVENTS.EXCHANGE.EXPERT.EXPOSED.EXPRESS.EXTRASPACE.FAGE.FAIL.FAIRWINDS.FAITH.FAMILY.FAN.FANS.FARM.FARMERS.FASHION.FAST.FEDEX.FEEDBACK.FERRARI.FERRERO.FI.FIDELITY.FIDO.FILM.FINAL.FINANCE.FINANCIAL.FIRE.FIRESTONE.FIRMDALE.FISH.FISHING.FIT.FITNESS.FJ.FK.FLICKR.FLIGHTS.FLIR.FLORIST.FLOWERS.FLY.FM.FO.FOO.FOOD.FOOTBALL.FORD.FOREX.FORSALE.FORUM.FOUNDATION.FOX.FR.FREE.FRESENIUS.FRL.FROGANS.FRONTIER.FTR.FUJITSU.FUN.FUND.FURNITURE.FUTBOL.FYI.GA.GAL.GALLERY.GALLO.GALLUP.GAME.GAMES.GAP.GARDEN.GAY.GB.GBIZ.GD.GDN.GE.GEA.GENT.GENTING.GEORGE.GF.GG.GGEE.GH.GI.GIFT.GIFTS.GIVES.GIVING.GL.GLASS.GLE.GLOBAL.GLOBO.GM.GMAIL.GMBH.GMO.GMX.GN.GODADDY.GOLD.GOLDPOINT.GOLF.GOO.GOODYEAR.GOOG.GOOGLE.GOP.GOT.GOV.GP.GQ.GR.GRAINGER.GRAPHICS.GRATIS.GREEN.GRIPE.GROCERY.GROUP.GS.GT.GU.GUARDIAN.GUCCI.GUGE.GUIDE.GUITARS.GURU.GW.GY.HAIR.HAMBURG.HANGOUT.HAUS.HBO.HDFC.HDFCBANK.HEALTH.HEALTHCARE.HELP.HELSINKI.HERE.HERMES.HIPHOP.HISAMITSU.HITACHI.HIV.HK.HKT.HM.HN.HOCKEY.HOLDINGS.HOLIDAY.HOMEDEPOT.HOMEGOODS.HOMES.HOMESENSE.HONDA.HORSE.HOSPITAL.HOST.HOSTING.HOT.HOTELS.HOTMAIL.HOUSE.HOW.HR.HSBC.HT.HU.HUGHES.HYATT.HYUNDAI.IBM.ICBC.ICE.ICU.ID.IE.IEEE.IFM.IKANO.IL.IM.IMAMAT.IMDB.IMMO.IMMOBILIEN.IN.INC.INDUSTRIES.INFINITI.INFO.ING.INK.INSTITUTE.INSURANCE.INSURE.INT.INTERNATIONAL.INTUIT.INVESTMENTS.IO.IPIRANGA.IQ.IR.IRISH.IS.ISMAILI.IST.ISTANBUL.IT.ITAU.ITV.JAGUAR.JAVA.JCB.JE.JEEP.JETZT.JEWELRY.JIO.JLL.JM.JMP.JNJ.JO.JOBS.JOBURG.JOT.JOY.JP.JPMORGAN.JPRS.JUEGOS.JUNIPER.KAUFEN.KDDI.KE.KERRYHOTELS.KERRYLOGISTICS.KERRYPROPERTIES.KFH.KG.KH.KI.KIA.KIDS.KIM.KINDLE.KITCHEN.KIWI.KM.KN.KOELN.KOMATSU.KOSHER.KP.KPMG.KPN.KR.KRD.KRED.KUOKGROUP.KW.KY.KYOTO.KZ.LA.LACAIXA.LAMBORGHINI.LAMER.LANCASTER.LAND.LANDROVER.LANXESS.LASALLE.LAT.LATINO.LATROBE.LAW.LAWYER.LB.LC.LDS.LEASE.LECLERC.LEFRAK.LEGAL.LEGO.LEXUS.LGBT.LI.LIDL.LIFE.LIFEINSURANCE.LIFESTYLE.LIGHTING.LIKE.LILLY.LIMITED.LIMO.LINCOLN.LINK.LIPSY.LIVE.LIVING.LK.LLC.LLP.LOAN.LOANS.LOCKER.LOCUS.LOL.LONDON.LOTTE.LOTTO.LOVE.LPL.LPLFINANCIAL.LR.LS.LT.LTD.LTDA.LU.LUNDBECK.LUXE.LUXURY.LV.LY.MA.MADRID.MAIF.MAISON.MAKEUP.MAN.MANAGEMENT.MANGO.MAP.MARKET.MARKETING.MARKETS.MARRIOTT.MARSHALLS.MATTEL.MBA.MC.MCKINSEY.MD.ME.MED.MEDIA.MEET.MELBOURNE.MEME.MEMORIAL.MEN.MENU.MERCKMSD.MG.MH.MIAMI.MICROSOFT.MIL.MINI.MINT.MIT.MITSUBISHI.MK.ML.MLB.MLS.MM.MMA.MN.MO.MOBI.MOBILE.MODA.MOE.MOI.MOM.MONASH.MONEY.MONSTER.MORMON.MORTGAGE.MOSCOW.MOTO.MOTORCYCLES.MOV.MOVIE.MP.MQ.MR.MS.MSD.MT.MTN.MTR.MU.MUSEUM.MUSIC.MV.MW.MX.MY.MZ.NA.NAB.NAGOYA.NAME.NATURA.NAVY.NBA.NC.NE.NEC.NET.NETBANK.NETFLIX.NETWORK.NEUSTAR.NEW.NEWS.NEXT.NEXTDIRECT.NEXUS.NF.NFL.NG.NGO.NHK.NI.NICO.NIKE.NIKON.NINJA.NISSAN.NISSAY.NL.NO.NOKIA.NORTON.NOW.NOWRUZ.NOWTV.NP.NR.NRA.NRW.NTT.NU.NYC.NZ.OBI.OBSERVER.OFFICE.OKINAWA.OLAYAN.OLAYANGROUP.OLLO.OM.OMEGA.ONE.ONG.ONL.ONLINE.OOO.OPEN.ORACLE.ORANGE.ORG.ORGANIC.ORIGINS.OSAKA.OTSUKA.OTT.OVH.PA.PAGE.PANASONIC.PARIS.PARS.PARTNERS.PARTS.PARTY.PAY.PCCW.PE.PET.PF.PFIZER.PG.PH.PHARMACY.PHD.PHILIPS.PHONE.PHOTO.PHOTOGRAPHY.PHOTOS.PHYSIO.PICS.PICTET.PICTURES.PID.PIN.PING.PINK.PIONEER.PIZZA.PK.PL.PLACE.PLAY.PLAYSTATION.PLUMBING.PLUS.PM.PN.PNC.POHL.POKER.POLITIE.PORN.POST.PR.PRAMERICA.PRAXI.PRESS.PRIME.PRO.PROD.PRODUCTIONS.PROF.PROGRESSIVE.PROMO.PROPERTIES.PROPERTY.PROTECTION.PRU.PRUDENTIAL.PS.PT.PUB.PW.PWC.PY.QA.QPON.QUEBEC.QUEST.RACING.RADIO.RE.READ.REALESTATE.REALTOR.REALTY.RECIPES.RED.REDSTONE.REDUMBRELLA.REHAB.REISE.REISEN.REIT.RELIANCE.REN.RENT.RENTALS.REPAIR.REPORT.REPUBLICAN.REST.RESTAURANT.REVIEW.REVIEWS.REXROTH.RICH.RICHARDLI.RICOH.RIL.RIO.RIP.RO.ROCKS.RODEO.ROGERS.ROOM.RS.RSVP.RU.RUGBY.RUHR.RUN.RW.RWE.RYUKYU.SA.SAARLAND.SAFE.SAFETY.SAKURA.SALE.SALON.SAMSCLUB.SAMSUNG.SANDVIK.SANDVIKCOROMANT.SANOFI.SAP.SARL.SAS.SAVE.SAXO.SB.SBI.SBS.SC.SCB.SCHAEFFLER.SCHMIDT.SCHOLARSHIPS.SCHOOL.SCHULE.SCHWARZ.SCIENCE.SCOT.SD.SE.SEARCH.SEAT.SECURE.SECURITY.SEEK.SELECT.SENER.SERVICES.SEVEN.SEW.SEX.SEXY.SFR.SG.SH.SHANGRILA.SHARP.SHAW.SHELL.SHIA.SHIKSHA.SHOES.SHOP.SHOPPING.SHOUJI.SHOW.SI.SILK.SINA.SINGLES.SITE.SJ.SK.SKI.SKIN.SKY.SKYPE.SL.SLING.SM.SMART.SMILE.SN.SNCF.SO.SOCCER.SOCIAL.SOFTBANK.SOFTWARE.SOHU.SOLAR.SOLUTIONS.SONG.SONY.SOY.SPA.SPACE.SPORT.SPOT.SR.SRL.SS.ST.STADA.STAPLES.STAR.STATEBANK.STATEFARM.STC.STCGROUP.STOCKHOLM.STORAGE.STORE.STREAM.STUDIO.STUDY.STYLE.SU.SUCKS.SUPPLIES.SUPPLY.SUPPORT.SURF.SURGERY.SUZUKI.SV.SWATCH.SWISS.SX.SY.SYDNEY.SYSTEMS.SZ.TAB.TAIPEI.TALK.TAOBAO.TARGET.TATAMOTORS.TATAR.TATTOO.TAX.TAXI.TC.TCI.TD.TDK.TEAM.TECH.TECHNOLOGY.TEL.TEMASEK.TENNIS.TEVA.TF.TG.TH.THD.THEATER.THEATRE.TIAA.TICKETS.TIENDA.TIPS.TIRES.TIROL.TJ.TJMAXX.TJX.TK.TKMAXX.TL.TM.TMALL.TN.TO.TODAY.TOKYO.TOOLS.TOP.TORAY.TOSHIBA.TOTAL.TOURS.TOWN.TOYOTA.TOYS.TR.TRADE.TRADING.TRAINING.TRAVEL.TRAVELERS.TRAVELERSINSURANCE.TRUST.TRV.TT.TUBE.TUI.TUNES.TUSHU.TV.TVS.TW.TZ.UA.UBANK.UBS.UG.UK.UNICOM.UNIVERSITY.UNO.UOL.UPS.US.UY.UZ.VA.VACATIONS.VANA.VANGUARD.VC.VE.VEGAS.VENTURES.VERISIGN.VERSICHERUNG.VET.VG.VI.VIAJES.VIDEO.VIG.VIKING.VILLAS.VIN.VIP.VIRGIN.VISA.VISION.VIVA.VIVO.VLAANDEREN.VN.VODKA.VOLVO.VOTE.VOTING.VOTO.VOYAGE.VU.WALES.WALMART.WALTER.WANG.WANGGOU.WATCH.WATCHES.WEATHER.WEATHERCHANNEL.WEBCAM.WEBER.WEBSITE.WED.WEDDING.WEIBO.WEIR.WF.WHOSWHO.WIEN.WIKI.WILLIAMHILL.WIN.WINDOWS.WINE.WINNERS.WME.WOLTERSKLUWER.WOODSIDE.WORK.WORKS.WORLD.WOW.WS.WTC.WTF.XBOX.XEROX.XFINITY.XIHUAN.XIN.XN--11B4C3D.XN--1CK2E1B.XN--1QQW23A.XN--2SCRJ9C.XN--30RR7Y.XN--3BST00M.XN--3DS443G.XN--3E0B707E.XN--3HCRJ9C.XN--3PXU8K.XN--42C2D9A.XN--45BR5CYL.XN--45BRJ9C.XN--45Q11C.XN--4DBRK0CE.XN--4GBRIM.XN--54B7FTA0CC.XN--55QW42G.XN--55QX5D.XN--5SU34J936BGSG.XN--5TZM5G.XN--6FRZ82G.XN--6QQ986B3XL.XN--80ADXHKS.XN--80AO21A.XN--80AQECDR1A.XN--80ASEHDB.XN--80ASWG.XN--8Y0A063A.XN--90A3AC.XN--90AE.XN--90AIS.XN--9DBQ2A.XN--9ET52U.XN--9KRT00A.XN--B4W605FERD.XN--BCK1B9A5DRE4C.XN--C1AVG.XN--C2BR7G.XN--CCK2B3B.XN--CCKWCXETD.XN--CG4BKI.XN--CLCHC0EA0B2G2A9GCD.XN--CZR694B.XN--CZRS0T.XN--CZRU2D.XN--D1ACJ3B.XN--D1ALF.XN--E1A4C.XN--ECKVDTC9D.XN--EFVY88H.XN--FCT429K.XN--FHBEI.XN--FIQ228C5HS.XN--FIQ64B.XN--FIQS8S.XN--FIQZ9S.XN--FJQ720A.XN--FLW351E.XN--FPCRJ9C3D.XN--FZC2C9E2C.XN--FZYS8D69UVGM.XN--G2XX48C.XN--GCKR3F0F.XN--GECRJ9C.XN--GK3AT1E.XN--H2BREG3EVE.XN--H2BRJ9C.XN--H2BRJ9C8C.XN--HXT814E.XN--I1B6B1A6A2E.XN--IMR513N.XN--IO0A7I.XN--J1AEF.XN--J1AMH.XN--J6W193G.XN--JLQ480N2RG.XN--JVR189M.XN--KCRX77D1X4A.XN--KPRW13D.XN--KPRY57D.XN--KPUT3I.XN--L1ACC.XN--LGBBAT1AD8J.XN--MGB9AWBF.XN--MGBA3A3EJT.XN--MGBA3A4F16A.XN--MGBA7C0BBN0A.XN--MGBAAM7A8H.XN--MGBAB2BD.XN--MGBAH1A3HJKRD.XN--MGBAI9AZGQP6J.XN--MGBAYH7GPA.XN--MGBBH1A.XN--MGBBH1A71E.XN--MGBC0A9AZCG.XN--MGBCA7DZDO.XN--MGBCPQ6GPA1A.XN--MGBERP4A5D4AR.XN--MGBGU82A.XN--MGBI4ECEXP.XN--MGBPL2FH.XN--MGBT3DHD.XN--MGBTX2B.XN--MGBX4CD0AB.XN--MIX891F.XN--MK1BU44C.XN--MXTQ1M.XN--NGBC5AZD.XN--NGBE9E0A.XN--NGBRX.XN--NODE.XN--NQV7F.XN--NQV7FS00EMA.XN--NYQY26A.XN--O3CW4H.XN--OGBPF8FL.XN--OTU796D.XN--P1ACF.XN--P1AI.XN--PGBS0DH.XN--PSSY2U.XN--Q7CE6A.XN--Q9JYB4C.XN--QCKA1PMC.XN--QXA6A.XN--QXAM.XN--RHQV96G.XN--ROVU88B.XN--RVC1E0AM3E.XN--S9BRJ9C.XN--SES554G.XN--T60B56A.XN--TCKWE.XN--TIQ49XQYJ.XN--UNUP4Y.XN--VERMGENSBERATER-CTB.XN--VERMGENSBERATUNG-PWB.XN--VHQUV.XN--VUQ861B.XN--W4R85EL8FHU5DNRA.XN--W4RS40L.XN--WGBH1C.XN--WGBL6A.XN--XHQ521B.XN--XKC2AL3HYE2A.XN--XKC2DL3A5EE0H.XN--Y9A3AQ.XN--YFRO4I67O.XN--YGBI2AMMX.XN--ZFR164B.XXX.XYZ.YACHTS.YAHOO.YAMAXUN.YANDEX.YE.YODOBASHI.YOGA.YOKOHAMA.YOU.YOUTUBE.YT.YUN.ZA.ZAPPOS.ZARA.ZERO.ZIP.ZM.ZONE.ZUERICH.ZW`.split(`.`),t.exports=new Set(n.tlds.map(e=>e.toLowerCase()))}),Ke=s((exports,t)=>{let n=g(),r=Be(),i=Ve(),a=We(),o=He(),s=Ge(),c=Ue(),l=De(),u=M(),d={tlds:s instanceof Set?{tlds:{allow:s,deny:null}}:!1,base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:{withPrefix:/^0x[0-9a-f]+$/i,withOptionalPrefix:/^(?:0x)?[0-9a-f]+$/i,withoutPrefix:/^[0-9a-f]+$/i},ipRegex:a.regex({cidr:`forbidden`}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":`}`,"[":`]`,"(":`)`,"":``},guidVersions:{uuidv1:`1`,uuidv2:`2`,uuidv3:`3`,uuidv4:`4`,uuidv5:`5`,uuidv6:`6`,uuidv7:`7`,uuidv8:`8`},guidSeparators:new Set([void 0,!0,!1,`-`,`:`]),normalizationForms:[`NFC`,`NFD`,`NFKC`,`NFKD`]};t.exports=l.extend({type:`string`,flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:`string`,method(e,{schema:t,state:n,prefs:r}){let i=t.$_getRule(`normalize`);i&&(e=e.normalize(i.args.form));let a=t.$_getRule(`case`);a&&(e=a.args.direction===`upper`?e.toLocaleUpperCase():e.toLocaleLowerCase());let o=t.$_getRule(`trim`);if(o&&o.args.enabled&&(e=e.trim()),t.$_terms.replacements)for(let n of t.$_terms.replacements)e=e.replace(n.pattern,n.replacement);let s=t.$_getRule(`hex`);if(s&&s.args.options.byteAligned&&e.length%2!=0&&(e=`0${e}`),t.$_getRule(`isoDate`)){let t=d.isoDate(e);t&&(e=t)}if(t._flags.truncate){let i=t.$_getRule(`max`);if(i){let a=i.args.limit;if(u.isResolvable(a)&&(a=a.resolve(e,n,r),!u.limit(a)))return{value:e,errors:t.$_createError(`any.ref`,a,{ref:i.args.limit,arg:`limit`,reason:`must be a positive integer`},n,r)};e=e.slice(0,a)}}return{value:e}}},validate(e,{schema:t,error:n}){if(typeof e!=`string`)return{value:e,errors:n(`string.base`)};if(e===``){let r=t.$_getRule(`min`);return r&&r.args.limit===0?void 0:{value:e,errors:n(`string.empty`)}}},rules:{alphanum:{method(){return this.$_addRule(`alphanum`)},validate(e,t){return/^[a-zA-Z0-9]+$/.test(e)?e:t.error(`string.alphanum`)}},base64:{method(e={}){return u.assertOptions(e,[`paddingRequired`,`urlSafe`]),e={urlSafe:!1,paddingRequired:!0,...e},n(typeof e.paddingRequired==`boolean`,`paddingRequired must be boolean`),n(typeof e.urlSafe==`boolean`,`urlSafe must be boolean`),this.$_addRule({name:`base64`,args:{options:e}})},validate(e,t,{options:n}){let r=d.base64Regex[n.paddingRequired][n.urlSafe];return r.test(e)?e:t.error(`string.base64`)}},case:{method(e){return n([`lower`,`upper`].includes(e),`Invalid case:`,e),this.$_addRule({name:`case`,args:{direction:e}})},validate(e,t,{direction:n}){return n===`lower`&&e===e.toLocaleLowerCase()||n===`upper`&&e===e.toLocaleUpperCase()?e:t.error(`string.${n}case`)},convert:!0},creditCard:{method(){return this.$_addRule(`creditCard`)},validate(e,t){let n=e.length,r=0,i=1;for(;n--;){let t=e.charAt(n)*i;r+=t-(t>9)*9,i^=3}return r>0&&r%10==0?e:t.error(`string.creditCard`)}},dataUri:{method(e={}){return u.assertOptions(e,[`paddingRequired`]),e={paddingRequired:!0,...e},n(typeof e.paddingRequired==`boolean`,`paddingRequired must be boolean`),this.$_addRule({name:`dataUri`,args:{options:e}})},validate(e,t,{options:n}){let r=e.match(d.dataUriRegex);if(r){if(!r[2]||r[2]!==`base64`)return e;let t=d.base64Regex[n.paddingRequired].false;if(t.test(r[3]))return e}return t.error(`string.dataUri`)}},domain:{method(e){e&&u.assertOptions(e,[`allowFullyQualified`,`allowUnicode`,`maxDomainSegments`,`minDomainSegments`,`tlds`]);let t=d.addressOptions(e);return this.$_addRule({name:`domain`,args:{options:e},address:t})},validate(e,t,n,{address:i}){return r.isValid(e,i)?e:t.error(`string.domain`)}},email:{method(e={}){u.assertOptions(e,[`allowFullyQualified`,`allowUnicode`,`ignoreLength`,`maxDomainSegments`,`minDomainSegments`,`multiple`,`separator`,`tlds`]),n(e.multiple===void 0||typeof e.multiple==`boolean`,`multiple option must be an boolean`);let t=d.addressOptions(e),r=RegExp(`\\s*[${e.separator?o(e.separator):`,`}]\\s*`);return this.$_addRule({name:`email`,args:{options:e},regex:r,address:t})},validate(e,t,{options:n},{regex:r,address:a}){let o=n.multiple?e.split(r):[e],s=[];for(let e of o)i.isValid(e,a)||s.push(e);return s.length?t.error(`string.email`,{value:e,invalids:s}):e}},guid:{alias:`uuid`,method(e={}){u.assertOptions(e,[`version`,`separator`]);let t=``;if(e.version){let r=[].concat(e.version);n(r.length>=1,`version must have at least 1 valid version specified`);let i=new Set;for(let e=0;e<r.length;++e){let a=r[e];n(typeof a==`string`,`version at position `+e+` must be a string`);let o=d.guidVersions[a.toLowerCase()];n(o,`version at position `+e+` must be one of `+Object.keys(d.guidVersions).join(`, `)),n(!i.has(o),`version at position `+e+` must not be a duplicate`),t+=o,i.add(o)}}n(d.guidSeparators.has(e.separator),`separator must be one of true, false, "-", or ":"`);let r=e.separator===void 0?`[:-]?`:e.separator===!0?`[:-]`:e.separator===!1?`[]?`:`\\${e.separator}`,i=RegExp(`^([\\[{\\(]?)[0-9A-F]{8}(${r})[0-9A-F]{4}\\2?[${t||`0-9A-F`}][0-9A-F]{3}\\2?[${t?`89AB`:`0-9A-F`}][0-9A-F]{3}\\2?[0-9A-F]{12}([\\]}\\)]?)$`,`i`);return this.$_addRule({name:`guid`,args:{options:e},regex:i})},validate(e,t,n,{regex:r}){let i=r.exec(e);return!i||d.guidBrackets[i[1]]!==i[i.length-1]?t.error(`string.guid`):e}},hex:{method(e={}){return u.assertOptions(e,[`byteAligned`,`prefix`]),e={byteAligned:!1,prefix:!1,...e},n(typeof e.byteAligned==`boolean`,`byteAligned must be boolean`),n(typeof e.prefix==`boolean`||e.prefix===`optional`,`prefix must be boolean or "optional"`),this.$_addRule({name:`hex`,args:{options:e}})},validate(e,t,{options:n}){let r=n.prefix===`optional`?d.hexRegex.withOptionalPrefix:n.prefix===!0?d.hexRegex.withPrefix:d.hexRegex.withoutPrefix;return r.test(e)?n.byteAligned&&e.length%2!=0?t.error(`string.hexAlign`):e:t.error(`string.hex`)}},hostname:{method(){return this.$_addRule(`hostname`)},validate(e,t){return r.isValid(e,{minDomainSegments:1})||d.ipRegex.test(e)?e:t.error(`string.hostname`)}},insensitive:{method(){return this.$_setFlag(`insensitive`,!0)}},ip:{method(e={}){u.assertOptions(e,[`cidr`,`version`]);let{cidr:t,versions:n,regex:r}=a.regex(e),i=e.version?n:void 0;return this.$_addRule({name:`ip`,args:{options:{cidr:t,version:i}},regex:r})},validate(e,t,{options:n},{regex:r}){return r.test(e)?e:n.version?t.error(`string.ipVersion`,{value:e,cidr:n.cidr,version:n.version}):t.error(`string.ip`,{value:e,cidr:n.cidr})}},isoDate:{method(){return this.$_addRule(`isoDate`)},validate(e,{error:t}){return d.isoDate(e)?e:t(`string.isoDate`)}},isoDuration:{method(){return this.$_addRule(`isoDuration`)},validate(e,t){return d.isoDurationRegex.test(e)?e:t.error(`string.isoDuration`)}},length:{method(e,t){return d.length(this,`length`,e,`=`,t)},validate(e,t,{limit:n,encoding:r},{name:i,operator:a,args:o}){let s=r?Buffer&&Buffer.byteLength(e,r):e.length;return u.compare(s,n,a)?e:t.error(`string.`+i,{limit:o.limit,value:e,encoding:r})},args:[{name:`limit`,ref:!0,assert:u.limit,message:`must be a positive integer`},`encoding`]},lowercase:{method(){return this.case(`lower`)}},max:{method(e,t){return d.length(this,`max`,e,`<=`,t)},args:[`limit`,`encoding`]},min:{method(e,t){return d.length(this,`min`,e,`>=`,t)},args:[`limit`,`encoding`]},normalize:{method(e=`NFC`){return n(d.normalizationForms.includes(e),`normalization form must be one of `+d.normalizationForms.join(`, `)),this.$_addRule({name:`normalize`,args:{form:e}})},validate(e,{error:t},{form:n}){return e===e.normalize(n)?e:t(`string.normalize`,{value:e,form:n})},convert:!0},pattern:{alias:`regex`,method(e,t={}){n(e instanceof RegExp,`regex must be a RegExp`),n(!e.flags.includes(`g`)&&!e.flags.includes(`y`),`regex should not use global or sticky mode`),typeof t==`string`&&(t={name:t}),u.assertOptions(t,[`invert`,`name`]);let r=[`string.pattern`,t.invert?`.invert`:``,t.name?`.name`:`.base`].join(``);return this.$_addRule({name:`pattern`,args:{regex:e,options:t},errorCode:r})},validate(e,t,{regex:n,options:r},{errorCode:i}){let a=n.test(e);return a^r.invert?e:t.error(i,{name:r.name,regex:n,value:e})},args:[`regex`,`options`],multi:!0},replace:{method(e,t){typeof e==`string`&&(e=new RegExp(o(e),`g`)),n(e instanceof RegExp,`pattern must be a RegExp`),n(typeof t==`string`,`replacement must be a String`);let r=this.clone();return r.$_terms.replacements||(r.$_terms.replacements=[]),r.$_terms.replacements.push({pattern:e,replacement:t}),r}},token:{method(){return this.$_addRule(`token`)},validate(e,t){return/^\w+$/.test(e)?e:t.error(`string.token`)}},trim:{method(e=!0){return n(typeof e==`boolean`,`enabled must be a boolean`),this.$_addRule({name:`trim`,args:{enabled:e}})},validate(e,t,{enabled:n}){return!n||e===e.trim()?e:t.error(`string.trim`)},convert:!0},truncate:{method(e=!0){return n(typeof e==`boolean`,`enabled must be a boolean`),this.$_setFlag(`truncate`,e)}},uppercase:{method(){return this.case(`upper`)}},uri:{method(e={}){u.assertOptions(e,[`allowRelative`,`allowQuerySquareBrackets`,`domain`,`relativeOnly`,`scheme`,`encodeUri`]),e.domain&&u.assertOptions(e.domain,[`allowFullyQualified`,`allowUnicode`,`maxDomainSegments`,`minDomainSegments`,`tlds`]);let{regex:t,scheme:n}=c.regex(e),r=e.domain?d.addressOptions(e.domain):null;return this.$_addRule({name:`uri`,args:{options:e},regex:t,domain:r,scheme:n})},validate(e,t,{options:n},{regex:i,domain:a,scheme:o}){if([`http:/`,`https:/`].includes(e))return t.error(`string.uri`);let s=i.exec(e);if(!s&&t.prefs.convert&&n.encodeUri){let t=encodeURI(e);s=i.exec(t),s&&(e=t)}if(s){let i=s[1]||s[2];return a&&(!n.allowRelative||i)&&!r.isValid(i,a)?t.error(`string.domain`,{value:i}):e}return n.relativeOnly?t.error(`string.uriRelativeOnly`):n.scheme?t.error(`string.uriCustomScheme`,{scheme:o,value:e}):t.error(`string.uri`)}}},manifest:{build(e,t){if(t.replacements)for(let{pattern:n,replacement:r}of t.replacements)e=e.replace(n,r);return e}},messages:{"string.alphanum":`{{#label}} must only contain alpha-numeric characters`,"string.base":`{{#label}} must be a string`,"string.base64":`{{#label}} must be a valid base64 string`,"string.creditCard":`{{#label}} must be a credit card`,"string.dataUri":`{{#label}} must be a valid dataUri string`,"string.domain":`{{#label}} must contain a valid domain name`,"string.email":`{{#label}} must be a valid email`,"string.empty":`{{#label}} is not allowed to be empty`,"string.guid":`{{#label}} must be a valid GUID`,"string.hex":`{{#label}} must only contain hexadecimal characters`,"string.hexAlign":`{{#label}} hex decoded representation must be byte aligned`,"string.hostname":`{{#label}} must be a valid hostname`,"string.ip":`{{#label}} must be a valid ip address with a {{#cidr}} CIDR`,"string.ipVersion":`{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR`,"string.isoDate":`{{#label}} must be in iso format`,"string.isoDuration":`{{#label}} must be a valid ISO 8601 duration`,"string.length":`{{#label}} length must be {{#limit}} characters long`,"string.lowercase":`{{#label}} must only contain lowercase characters`,"string.max":`{{#label}} length must be less than or equal to {{#limit}} characters long`,"string.min":`{{#label}} length must be at least {{#limit}} characters long`,"string.normalize":`{{#label}} must be unicode normalized in the {{#form}} form`,"string.token":`{{#label}} must only contain alpha-numeric and underscore characters`,"string.pattern.base":`{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}`,"string.pattern.name":`{{#label}} with value {:[.]} fails to match the {{#name}} pattern`,"string.pattern.invert.base":`{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}`,"string.pattern.invert.name":`{{#label}} with value {:[.]} matches the inverted {{#name}} pattern`,"string.trim":`{{#label}} must not have leading or trailing whitespace`,"string.uri":`{{#label}} must be a valid uri`,"string.uriCustomScheme":`{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern`,"string.uriRelativeOnly":`{{#label}} must be a valid relative uri`,"string.uppercase":`{{#label}} must only contain uppercase characters`}}),d.addressOptions=function(e){if(!e)return d.tlds||e;if(n(e.minDomainSegments===void 0||Number.isSafeInteger(e.minDomainSegments)&&e.minDomainSegments>0,`minDomainSegments must be a positive integer`),n(e.maxDomainSegments===void 0||Number.isSafeInteger(e.maxDomainSegments)&&e.maxDomainSegments>0,`maxDomainSegments must be a positive integer`),e.tlds===!1)return e;if(e.tlds===!0||e.tlds===void 0)return n(d.tlds,`Built-in TLD list disabled`),Object.assign({},e,d.tlds);n(typeof e.tlds==`object`,`tlds must be true, false, or an object`);let t=e.tlds.deny;if(t)return Array.isArray(t)&&(e=Object.assign({},e,{tlds:{deny:new Set(t)}})),n(e.tlds.deny instanceof Set,`tlds.deny must be an array, Set, or boolean`),n(!e.tlds.allow,`Cannot specify both tlds.allow and tlds.deny lists`),d.validateTlds(e.tlds.deny,`tlds.deny`),e;let r=e.tlds.allow;return r?r===!0?(n(d.tlds,`Built-in TLD list disabled`),Object.assign({},e,d.tlds)):(Array.isArray(r)&&(e=Object.assign({},e,{tlds:{allow:new Set(r)}})),n(e.tlds.allow instanceof Set,`tlds.allow must be an array, Set, or boolean`),d.validateTlds(e.tlds.allow,`tlds.allow`),e):e},d.validateTlds=function(e,t){for(let i of e)n(r.isValid(i,{minDomainSegments:1,maxDomainSegments:1}),`${t} must contain valid top level domain names`)},d.isoDate=function(e){if(!u.isIsoDate(e))return null;/.*T.*[+-]\d\d$/.test(e)&&(e+=`00`);let t=new Date(e);return isNaN(t.getTime())?null:t.toISOString()},d.length=function(e,t,r,i,a){return n(!a||Buffer&&Buffer.isEncoding(a),`Invalid encoding:`,a),e.$_addRule({name:t,method:`length`,args:{limit:r,encoding:a},operator:i})}}),qe=s((exports,t)=>{let n=g(),r=De(),i={};i.Map=class extends Map{slice(){return new i.Map(this)}},t.exports=r.extend({type:`symbol`,terms:{map:{init:new i.Map}},coerce:{method(e,{schema:t,error:n}){let r=t.$_terms.map.get(e);return r&&(e=r),!t._flags.only||typeof e==`symbol`?{value:e}:{value:e,errors:n(`symbol.map`,{map:t.$_terms.map})}}},validate(e,{error:t}){if(typeof e!=`symbol`)return{value:e,errors:t(`symbol.base`)}},rules:{map:{method(e){e&&!e[Symbol.iterator]&&typeof e==`object`&&(e=Object.entries(e)),n(e&&e[Symbol.iterator],`Iterable must be an iterable or object`);let t=this.clone(),r=[];for(let i of e){n(i&&i[Symbol.iterator],`Entry must be an iterable`);let[e,a]=i;n(typeof e!=`object`&&typeof e!=`function`&&typeof e!=`symbol`,`Key must not be of type object, function, or Symbol`),n(typeof a==`symbol`,`Value must be a Symbol`),t.$_terms.map.set(e,a),r.push(a)}return t.valid(...r)}}},manifest:{build(e,t){return t.map&&(e=e.map(t.map)),e}},messages:{"symbol.base":`{{#label}} must be a symbol`,"symbol.map":`{{#label}} must be one of {{#map}}`}})}),Je=s((exports,t)=>{let n=g(),r=De(),i=M();t.exports=r.extend({type:`binary`,coerce:{from:[`string`,`object`],method(e,{schema:t}){if(typeof e==`string`||e!==null&&e.type===`Buffer`)try{return{value:Buffer.from(e,t._flags.encoding)}}catch{}}},validate(e,{error:t}){if(!Buffer.isBuffer(e))return{value:e,errors:t(`binary.base`)}},rules:{encoding:{method(e){return n(Buffer.isEncoding(e),`Invalid encoding:`,e),this.$_setFlag(`encoding`,e)}},length:{method(e){return this.$_addRule({name:`length`,method:`length`,args:{limit:e},operator:`=`})},validate(e,t,{limit:n},{name:r,operator:a,args:o}){return i.compare(e.length,n,a)?e:t.error(`binary.`+r,{limit:o.limit,value:e})},args:[{name:`limit`,ref:!0,assert:i.limit,message:`must be a positive integer`}]},max:{method(e){return this.$_addRule({name:`max`,method:`length`,args:{limit:e},operator:`<=`})}},min:{method(e){return this.$_addRule({name:`min`,method:`length`,args:{limit:e},operator:`>=`})}}},cast:{string:{from:e=>Buffer.isBuffer(e),to(e,t){return e.toString()}}},messages:{"binary.base":`{{#label}} must be a buffer or a string`,"binary.length":`{{#label}} must be {{#limit}} bytes`,"binary.max":`{{#label}} must be less than or equal to {{#limit}} bytes`,"binary.min":`{{#label}} must be at least {{#limit}} bytes`}})}),Ye=s((exports,t)=>{let n=g(),r=b(),i=pe(),a=M(),o=me(),s=j(),c=he(),l=ge(),u=ue(),d=de(),f=ye(),p,m={types:{alternatives:Oe(),any:De(),array:ke(),boolean:Ae(),date:je(),function:Fe(),link:Ie(),number:Le(),object:Re(),string:Ke(),symbol:qe()},aliases:{alt:`alternatives`,bool:`boolean`,func:`function`}};Buffer&&(m.types.binary=Je()),m.root=function(){let e={_types:new Set(Object.keys(m.types))};for(let t of e._types)e[t]=function(...e){return n(!e.length||[`alternatives`,`link`,`object`].includes(t),`The`,t,`type does not allow arguments`),m.generate(this,m.types[t],e)};for(let t of[`allow`,`custom`,`disallow`,`equal`,`exist`,`forbidden`,`invalid`,`not`,`only`,`optional`,`options`,`prefs`,`preferences`,`required`,`strip`,`valid`,`when`])e[t]=function(...e){return this.any()[t](...e)};for(let t in Object.assign(e,m.methods),m.aliases){let n=m.aliases[t];e[t]=e[n]}return e.x=e.expression,f.setup&&f.setup(e),e},m.methods={ValidationError:s.ValidationError,version:a.version,cache:i.provider,assert(e,t,...n){m.assert(e,t,!0,n)},attempt(e,t,...n){return m.assert(e,t,!1,n)},build(e){return n(typeof l.build==`function`,`Manifest functionality disabled`),l.build(this,e)},checkPreferences(e){a.checkPreferences(e)},compile(e,t){return o.compile(this,e,t)},defaults(e){n(typeof e==`function`,`modifier must be a function`);let t=Object.assign({},this);for(let r of t._types){let i=e(t[r]());n(a.isSchema(i),`modifier must return a valid schema object`),t[r]=function(...e){return m.generate(this,i,e)}}return t},expression(...e){return new d(...e)},extend(...e){a.verifyFlat(e,`extend`),p||=oe(),n(e.length,`You need to provide at least one extension`),this.assert(e,p.extensions);let t=Object.assign({},this);t._types=new Set(t._types);for(let r of e){typeof r==`function`&&(r=r(t)),this.assert(r,p.extension);let e=m.expandExtension(r,t);for(let r of e){n(t[r.type]===void 0||t._types.has(r.type),`Cannot override name`,r.type);let e=r.base||this.any(),i=c.type(e,r);t._types.add(r.type),t[r.type]=function(...e){return m.generate(this,i,e)}}}return t},isError:s.ValidationError.isError,isExpression:d.isTemplate,isRef:u.isRef,isSchema:a.isSchema,in(...e){return u.in(...e)},override:a.symbols.override,ref(...e){return u.create(...e)},types(){let e={};for(let t of this._types)e[t]=this[t]();for(let t in m.aliases)e[t]=this[t]();return e}},m.assert=function(e,t,n,i){let o=i[0]instanceof Error||typeof i[0]==`string`?i[0]:null,c=o===null?i[0]:i[1],l=t.validate(e,a.preferences({errors:{stack:!0}},c||{})),u=l.error;if(!u)return l.value;if(o instanceof Error)throw o;let d=n&&typeof u.annotate==`function`?u.annotate():u.message;throw u instanceof s.ValidationError||(u=r(u)),u.message=o?`${o} ${d}`:d,u},m.generate=function(e,t,r){return n(e,`Must be invoked on a Joi instance.`),t.$_root=e,!t._definition.args||!r.length?t:t._definition.args(t,...r)},m.expandExtension=function(e,t){if(typeof e.type==`string`)return[e];let n=[];for(let r of t._types)if(e.type.test(r)){let i=Object.assign({},e);i.type=r,i.base=t[r](),n.push(i)}return n},t.exports=m.root()}),Xe=20,Ze=1,Qe=1e6,$e=1e6,et=-7,tt=21,nt=!1,rt=`[big.js] `,it=rt+`Invalid `,at=it+`decimal places`,ot=it+`rounding mode`,st=rt+`Division by zero`,N={},ct=void 0,lt=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function ut(){function e(t){var n=this;if(!(n instanceof e))return t===ct&&arguments.length===0?ut():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice();else{if(typeof t!=`string`){if(e.strict===!0&&typeof t!=`bigint`)throw TypeError(it+`value`);t=t===0&&1/t<0?`-0`:String(t)}dt(n,t)}n.constructor=e}return e.prototype=N,e.DP=Xe,e.RM=Ze,e.NE=et,e.PE=tt,e.strict=nt,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e}function dt(e,t){var n,r,i;if(!lt.test(t))throw Error(it+`number`);for(e.s=t.charAt(0)==`-`?(t=t.slice(1),-1):1,(n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),i=t.length,r=0;r<i&&t.charAt(r)==`0`;)++r;if(r==i)e.c=[e.e=0];else{for(;i>0&&t.charAt(--i)==`0`;);for(e.e=n-r-1,e.c=[],n=0;r<=i;)e.c[n++]=+t.charAt(r++)}return e}function ft(e,t,n,r){var i=e.c;if(n===ct&&(n=e.constructor.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(ot);if(t<1)r=n===3&&(r||!!i[0])||t===0&&(n===1&&i[0]>=5||n===2&&(i[0]>5||i[0]===5&&(r||i[1]!==ct))),i.length=1,r?(e.e=e.e-t+1,i[0]=1):i[0]=e.e=0;else if(t<i.length){if(r=n===1&&i[t]>=5||n===2&&(i[t]>5||i[t]===5&&(r||i[t+1]!==ct||i[t-1]&1))||n===3&&(r||!!i[0]),i.length=t,r){for(;++i[--t]>9;)if(i[t]=0,t===0){++e.e,i.unshift(1);break}}for(t=i.length;!i[--t];)i.pop()}return e}function pt(e,t,n){var r=e.e,i=e.c.join(``),a=i.length;if(t)i=i.charAt(0)+(a>1?`.`+i.slice(1):``)+(r<0?`e`:`e+`)+r;else if(r<0){for(;++r;)i=`0`+i;i=`0.`+i}else if(r>0)if(++r>a)for(r-=a;r--;)i+=`0`;else r<a&&(i=i.slice(0,r)+`.`+i.slice(r));else a>1&&(i=i.charAt(0)+`.`+i.slice(1));return e.s<0&&n?`-`+i:i}N.abs=function(){var e=new this.constructor(this);return e.s=1,e},N.cmp=function(e){var t,n=this,r=n.c,i=(e=new n.constructor(e)).c,a=n.s,o=e.s,s=n.e,c=e.e;if(!r[0]||!i[0])return r[0]?a:i[0]?-o:0;if(a!=o)return a;if(t=a<0,s!=c)return s>c^t?1:-1;for(o=(s=r.length)<(c=i.length)?s:c,a=-1;++a<o;)if(r[a]!=i[a])return r[a]>i[a]^t?1:-1;return s==c?0:s>c^t?1:-1},N.div=function(e){var t=this,n=t.constructor,r=t.c,i=(e=new n(e)).c,a=t.s==e.s?1:-1,o=n.DP;if(o!==~~o||o<0||o>Qe)throw Error(at);if(!i[0])throw Error(st);if(!r[0])return e.s=a,e.c=[e.e=0],e;var s,c,l,u,d,f=i.slice(),p=s=i.length,m=r.length,h=r.slice(0,s),g=h.length,_=e,v=_.c=[],y=0,b=o+(_.e=t.e-e.e)+1;for(_.s=a,a=b<0?0:b,f.unshift(0);g++<s;)h.push(0);do{for(l=0;l<10;l++){if(s!=(g=h.length))u=s>g?1:-1;else for(d=-1,u=0;++d<s;)if(i[d]!=h[d]){u=i[d]>h[d]?1:-1;break}if(u<0){for(c=g==s?i:f;g;){if(h[--g]<c[g]){for(d=g;d&&!h[--d];)h[d]=9;--h[d],h[g]+=10}h[g]-=c[g]}for(;!h[0];)h.shift()}else break}v[y++]=u?l:++l,h[0]&&u?h[g]=r[p]||0:h=[r[p]]}while((p++<m||h[0]!==ct)&&a--);return!v[0]&&y!=1&&(v.shift(),_.e--,b--),y>b&&ft(_,b,n.RM,h[0]!==ct),_},N.eq=function(e){return this.cmp(e)===0},N.gt=function(e){return this.cmp(e)>0},N.gte=function(e){return this.cmp(e)>-1},N.lt=function(e){return this.cmp(e)<0},N.lte=function(e){return this.cmp(e)<1},N.minus=N.sub=function(e){var t,n,r,i,a=this,o=a.constructor,s=a.s,c=(e=new o(e)).s;if(s!=c)return e.s=-c,a.plus(e);var l=a.c.slice(),u=a.e,d=e.c,f=e.e;if(!l[0]||!d[0])return d[0]?e.s=-c:l[0]?e=new o(a):e.s=1,e;if(s=u-f){for((i=s<0)?(s=-s,r=l):(f=u,r=d),r.reverse(),c=s;c--;)r.push(0);r.reverse()}else for(n=((i=l.length<d.length)?l:d).length,s=c=0;c<n;c++)if(l[c]!=d[c]){i=l[c]<d[c];break}if(i&&(r=l,l=d,d=r,e.s=-e.s),(c=(n=d.length)-(t=l.length))>0)for(;c--;)l[t++]=0;for(c=t;n>s;){if(l[--n]<d[n]){for(t=n;t&&!l[--t];)l[t]=9;--l[t],l[n]+=10}l[n]-=d[n]}for(;l[--c]===0;)l.pop();for(;l[0]===0;)l.shift(),--f;return l[0]||(e.s=1,l=[f=0]),e.c=l,e.e=f,e},N.mod=function(e){var t,n=this,r=n.constructor,i=n.s,a=(e=new r(e)).s;if(!e.c[0])throw Error(st);return n.s=e.s=1,t=e.cmp(n)==1,n.s=i,e.s=a,t?new r(n):(i=r.DP,a=r.RM,r.DP=r.RM=0,n=n.div(e),r.DP=i,r.RM=a,this.minus(n.times(e)))},N.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e},N.plus=N.add=function(e){var t,n,r,i=this,a=i.constructor;if(e=new a(e),i.s!=e.s)return e.s=-e.s,i.minus(e);var o=i.e,s=i.c,c=e.e,l=e.c;if(!s[0]||!l[0])return l[0]||(s[0]?e=new a(i):e.s=i.s),e;if(s=s.slice(),t=o-c){for(t>0?(c=o,r=l):(t=-t,r=s),r.reverse();t--;)r.push(0);r.reverse()}for(s.length-l.length<0&&(r=l,l=s,s=r),t=l.length,n=0;t;s[t]%=10)n=(s[--t]=s[t]+l[t]+n)/10|0;for(n&&(s.unshift(n),++c),t=s.length;s[--t]===0;)s.pop();return e.c=s,e.e=c,e},N.pow=function(e){var t=this,n=new t.constructor(`1`),r=n,i=e<0;if(e!==~~e||e<-$e||e>$e)throw Error(it+`exponent`);for(i&&(e=-e);e&1&&(r=r.times(t)),e>>=1,e;)t=t.times(t);return i?n.div(r):r},N.prec=function(e,t){if(e!==~~e||e<1||e>Qe)throw Error(it+`precision`);return ft(new this.constructor(this),e,t)},N.round=function(e,t){if(e===ct)e=0;else if(e!==~~e||e<-Qe||e>Qe)throw Error(at);return ft(new this.constructor(this),e+this.e+1,t)},N.sqrt=function(){var e,t,n,r=this,i=r.constructor,a=r.s,o=r.e,s=new i(`0.5`);if(!r.c[0])return new i(r);if(a<0)throw Error(rt+`No square root`);a=Math.sqrt(+pt(r,!0,!0)),a===0||a===1/0?(t=r.c.join(``),t.length+o&1||(t+=`0`),a=Math.sqrt(t),o=((o+1)/2|0)-(o<0||o&1),e=new i((a==1/0?`5e`:(a=a.toExponential()).slice(0,a.indexOf(`e`)+1))+o)):e=new i(a+``),o=e.e+(i.DP+=4);do n=e,e=s.times(n.plus(r.div(n)));while(n.c.slice(0,o).join(``)!==e.c.slice(0,o).join(``));return ft(e,(i.DP-=4)+e.e+1,i.RM)},N.times=N.mul=function(e){var t,n=this,r=n.constructor,i=n.c,a=(e=new r(e)).c,o=i.length,s=a.length,c=n.e,l=e.e;if(e.s=n.s==e.s?1:-1,!i[0]||!a[0])return e.c=[e.e=0],e;for(e.e=c+l,o<s&&(t=i,i=a,a=t,l=o,o=s,s=l),t=Array(l=o+s);l--;)t[l]=0;for(c=s;c--;){for(s=0,l=o+c;l>c;)s=t[l]+a[c]*i[l-c-1]+s,t[l--]=s%10,s=s/10|0;t[l]=s}for(s?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},N.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==ct){if(e!==~~e||e<0||e>Qe)throw Error(at);for(n=ft(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return pt(n,!0,!!r)},N.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==ct){if(e!==~~e||e<0||e>Qe)throw Error(at);for(n=ft(new n.constructor(n),e+n.e+1,t),e=e+n.e+1;n.c.length<e;)n.c.push(0)}return pt(n,!1,!!r)},N.toJSON=N.toString=function(){var e=this,t=e.constructor;return pt(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},typeof Symbol<`u`&&(N[Symbol.for(`nodejs.util.inspect.custom`)]=N.toJSON),N.toNumber=function(){var e=+pt(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(rt+`Imprecise conversion`);return e},N.toPrecision=function(e,t){var n=this,r=n.constructor,i=n.c[0];if(e!==ct){if(e!==~~e||e<1||e>Qe)throw Error(it+`precision`);for(n=ft(new r(n),e,t);n.c.length<e;)n.c.push(0)}return pt(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!i)},N.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(rt+`valueOf disallowed`);return pt(e,e.e<=t.NE||e.e>=t.PE,!0)};var mt=ut(),ht=mt;const gt=(e,t,n)=>{switch(n){case`>`:return e.gt(t);case`<`:return e.lt(t);case`>=`:return e.gte(t);case`<=`:return e.lte(t);case`multiple`:return e.mod(t).eq(0);default:return!1}},_t=function(e){return{type:`bigint`,base:e.any(),coerce:{from:[`string`,`number`],method(e,t){if(typeof e==`bigint`)return{value:e};try{let n=ht(e.toString());return n.eq(n.round(0))?{value:BigInt(n.toString())}:{value:e,errors:[t.error(`bigint.base`,{value:String(e)})]}}catch{return{value:e,errors:[t.error(`bigint.base`,{value:String(e)})]}}}},messages:{"bigint.base":`"{{#label}}" must be a valid bigint`,"bigint.greater":`"{{#label}}" must be greater than {{#limit}}`,"bigint.less":`"{{#label}}" must be less than {{#limit}}`,"bigint.max":`"{{#label}}" must be less than or equal to {{#limit}}`,"bigint.min":`"{{#label}}" must be greater than or equal to {{#limit}}`,"bigint.multiple":`"{{#label}}" must be a multiple of {{#limit}}`,"bigint.negative":`"{{#label}}" must be a negative bigint`,"bigint.positive":`"{{#label}}" must be a positive bigint`},validate(e,{error:t}){return typeof e==`bigint`?{value:e}:{value:e,errors:t(`bigint.base`,{value:String(e)})}},rules:{compare:{method:!1,validate(e,t,{limit:n},{name:r,operator:i}){let a=ht(e.toString()),o=ht(n.toString()),s=gt(a,o,i);return s?e:t.error(`bigint.`+r,{limit:n.toString(),value:e.toString()})},args:[{name:`limit`,ref:!0,assert:e=>typeof e==`bigint`,message:`must be a bigint`}]},greater:{method(e){return this.$_addRule({name:`greater`,method:`compare`,args:{limit:e},operator:`>`})}},less:{method(e){return this.$_addRule({name:`less`,method:`compare`,args:{limit:e},operator:`<`})}},max:{method(e){return this.$_addRule({name:`max`,method:`compare`,args:{limit:e},operator:`<=`})}},min:{method(e){return this.$_addRule({name:`min`,method:`compare`,args:{limit:e},operator:`>=`})}},multiple:{method(e){return this.$_addRule({name:`multiple`,method:`compare`,args:{limit:e},operator:`multiple`})}},negative:{method(){return this.$_addRule(`negative`)},validate(e,t){return e>=0n?t.error(`bigint.negative`,{value:e.toString()}):e}},positive:{method(){return this.$_addRule(`positive`)},validate(e,t){return e<=0n?t.error(`bigint.positive`,{value:e.toString()}):e}}},cast:{string:{from:e=>typeof e==`bigint`,to(e){return e.toString()}}}}};var vt=class extends Error{},yt=class extends vt{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},bt=class extends vt{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},xt=class extends vt{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},St=class extends vt{},Ct=class extends vt{constructor(e){super(`Invalid unit ${e}`)}},wt=class extends vt{},Tt=class extends vt{constructor(){super(`Zone is an abstract class`)}};const P=`numeric`,Et=`short`,Dt=`long`,Ot={year:P,month:P,day:P},kt={year:P,month:Et,day:P},At={year:P,month:Et,day:P,weekday:Et},jt={year:P,month:Dt,day:P},Mt={year:P,month:Dt,day:P,weekday:Dt},Nt={hour:P,minute:P},Pt={hour:P,minute:P,second:P},Ft={hour:P,minute:P,second:P,timeZoneName:Et},It={hour:P,minute:P,second:P,timeZoneName:Dt},Lt={hour:P,minute:P,hourCycle:`h23`},Rt={hour:P,minute:P,second:P,hourCycle:`h23`},zt={hour:P,minute:P,second:P,hourCycle:`h23`,timeZoneName:Et},Bt={hour:P,minute:P,second:P,hourCycle:`h23`,timeZoneName:Dt},Vt={year:P,month:P,day:P,hour:P,minute:P},Ht={year:P,month:P,day:P,hour:P,minute:P,second:P},Ut={year:P,month:Et,day:P,hour:P,minute:P},Wt={year:P,month:Et,day:P,hour:P,minute:P,second:P},Gt={year:P,month:Et,day:P,weekday:Et,hour:P,minute:P},Kt={year:P,month:Dt,day:P,hour:P,minute:P,timeZoneName:Et},qt={year:P,month:Dt,day:P,hour:P,minute:P,second:P,timeZoneName:Et},Jt={year:P,month:Dt,day:P,weekday:Dt,hour:P,minute:P,timeZoneName:Dt},Yt={year:P,month:Dt,day:P,weekday:Dt,hour:P,minute:P,second:P,timeZoneName:Dt};var Xt=class{get type(){throw new Tt}get name(){throw new Tt}get ianaName(){return this.name}get isUniversal(){throw new Tt}offsetName(e,t){throw new Tt}formatOffset(e,t){throw new Tt}offset(e){throw new Tt}equals(e){throw new Tt}get isValid(){throw new Tt}};let Zt=null;var Qt=class e extends Xt{static get instance(){return Zt===null&&(Zt=new e),Zt}get type(){return`system`}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Rr(e,t,n)}formatOffset(e,t){return Hr(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type===`system`}get isValid(){return!0}};const $t=new Map;function en(e){let t=$t.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:e,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,era:`short`}),$t.set(e,t)),t}const tn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function nn(e,t){let n=e.format(t).replace(/\u200E/g,``),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,a,o,s,c,l,u]=r;return[o,i,a,s,c,l,u]}function rn(e,t){let n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){let{type:t,value:i}=n[e],a=tn[t];t===`era`?r[a]=i:L(a)||(r[a]=parseInt(i,10))}return r}const an=new Map;var on=class e extends Xt{static create(t){let n=an.get(t);return n===void 0&&an.set(t,n=new e(t)),n}static resetCache(){an.clear(),$t.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:e}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return`iana`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Rr(e,t,n,this.name)}formatOffset(e,t){return Hr(this.offset(e),t)}offset(e){if(!this.valid)return NaN;let t=new Date(e);if(isNaN(t))return NaN;let n=en(this.name),[r,i,a,o,s,c,l]=n.formatToParts?rn(n,t):nn(n,t);o===`BC`&&(r=-Math.abs(r)+1);let u=s===24?0:s,d=Pr({year:r,month:i,day:a,hour:u,minute:c,second:l,millisecond:0}),f=+t,p=f%1e3;return f-=p>=0?p:1e3+p,(d-f)/(60*1e3)}equals(e){return e.type===`iana`&&e.name===this.name}get isValid(){return this.valid}};let sn={};function cn(e,t={}){let n=JSON.stringify([e,t]),r=sn[n];return r||(r=new Intl.ListFormat(e,t),sn[n]=r),r}const ln=new Map;function un(e,t={}){let n=JSON.stringify([e,t]),r=ln.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),ln.set(n,r)),r}const dn=new Map;function fn(e,t={}){let n=JSON.stringify([e,t]),r=dn.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),dn.set(n,r)),r}const pn=new Map;function mn(e,t={}){let{base:n,...r}=t,i=JSON.stringify([e,r]),a=pn.get(i);return a===void 0&&(a=new Intl.RelativeTimeFormat(e,t),pn.set(i,a)),a}let hn=null;function gn(){return hn||(hn=new Intl.DateTimeFormat().resolvedOptions().locale,hn)}const _n=new Map;function vn(e){let t=_n.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),_n.set(e,t)),t}const yn=new Map;function bn(e){let t=yn.get(e);if(!t){let n=new Intl.Locale(e);t=`getWeekInfo`in n?n.getWeekInfo():n.weekInfo,`minimalDays`in t||(t={...An,...t}),yn.set(e,t)}return t}function xn(e){let t=e.indexOf(`-x-`);t!==-1&&(e=e.substring(0,t));let n=e.indexOf(`-u-`);if(n===-1)return[e];{let t,r;try{t=un(e).resolvedOptions(),r=e}catch{let i=e.substring(0,n);t=un(i).resolvedOptions(),r=i}let{numberingSystem:i,calendar:a}=t;return[r,i,a]}}function Sn(e,t,n){return n||t?(e.includes(`-u-`)||(e+=`-u`),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}function Cn(e){let t=[];for(let n=1;n<=12;n++){let r=z.utc(2009,n,1);t.push(e(r))}return t}function wn(e){let t=[];for(let n=1;n<=7;n++){let r=z.utc(2016,11,13+n);t.push(e(r))}return t}function Tn(e,t,n,r){let i=e.listingMode();return i===`error`?null:i===`en`?n(t):r(t)}function En(e){return e.numberingSystem&&e.numberingSystem!==`latn`?!1:e.numberingSystem===`latn`||!e.locale||e.locale.startsWith(`en`)||vn(e.locale).numberingSystem===`latn`}var Dn=class{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:r,floor:i,...a}=n;if(!t||Object.keys(a).length>0){let t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=fn(e,t)}}format(e){if(this.inf){let t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{let t=this.floor?Math.floor(e):Ar(e,3);return Er(t,this.padTo)}}},On=class{constructor(e,t,n){this.opts=n,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type===`fixed`){let t=-1*(e.offset/60),n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;e.offset!==0&&on.create(n).valid?(r=n,this.dt=e):(r=`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,r=e.zone.name):(r=`UTC`,this.dt=e.setZone(`UTC`).plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=un(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(``):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if(e.type===`timeZoneName`){let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},kn=class{constructor(e,t,n){this.opts={style:`long`,...n},!t&&_r()&&(this.rtf=mn(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):si(t,e,this.opts.numeric,this.opts.style!==`long`)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}};const An={firstDay:1,minimalDays:4,weekend:[6,7]};var F=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,i,a=!1){let o=t||I.defaultLocale,s=o||(a?`en-US`:gn()),c=n||I.defaultNumberingSystem,l=r||I.defaultOutputCalendar,u=Cr(i)||I.defaultWeekSettings;return new e(s,c,l,u,o)}static resetCache(){hn=null,ln.clear(),dn.clear(),pn.clear(),_n.clear(),yn.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return e.create(t,n,r,i)}constructor(e,t,n,r,i){let[a,o,s]=xn(e);this.locale=a,this.numberingSystem=t||o||null,this.outputCalendar=n||s||null,this.weekSettings=r,this.intl=Sn(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached??=En(this),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem===`latn`)&&(this.outputCalendar===null||this.outputCalendar===`gregory`);return e&&t?`en`:`intl`}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,Cr(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Tn(this,e,qr,()=>{let n=this.intl===`ja`||this.intl.startsWith(`ja-`);t&=!n;let r=t?{month:e,day:`numeric`}:{month:e},i=t?`format`:`standalone`;if(!this.monthsCache[i][e]){let t=n?e=>this.dtFormatter(e,r).format():e=>this.extract(e,r,`month`);this.monthsCache[i][e]=Cn(t)}return this.monthsCache[i][e]})}weekdays(e,t=!1){return Tn(this,e,Zr,()=>{let n=t?{weekday:e,year:`numeric`,month:`long`,day:`numeric`}:{weekday:e},r=t?`format`:`standalone`;return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=wn(e=>this.extract(e,n,`weekday`))),this.weekdaysCache[r][e]})}meridiems(){return Tn(this,void 0,()=>Qr,()=>{if(!this.meridiemCache){let e={hour:`numeric`,hourCycle:`h12`};this.meridiemCache=[z.utc(2016,11,13,9),z.utc(2016,11,13,19)].map(t=>this.extract(t,e,`dayperiod`))}return this.meridiemCache})}eras(e){return Tn(this,e,ni,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[z.utc(-40,1,1),z.utc(2017,1,1)].map(e=>this.extract(e,t,`era`))),this.eraCache[e]})}extract(e,t,n){let r=this.dtFormatter(e,t),i=r.formatToParts(),a=i.find(e=>e.type.toLowerCase()===n);return a?a.value:null}numberFormatter(e={}){return new Dn(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new On(e,this.intl,t)}relFormatter(e={}){return new kn(this.intl,this.isEnglish(),e)}listFormatter(e={}){return cn(this.intl,e)}isEnglish(){return this.locale===`en`||this.locale.toLowerCase()===`en-us`||vn(this.intl).locale.startsWith(`en-us`)}getWeekSettings(){return this.weekSettings?this.weekSettings:vr()?bn(this.locale):An}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 jn=null;var Mn=class e extends Xt{static get utcInstance(){return jn===null&&(jn=new e(0)),jn}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(zr(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return`fixed`}get name(){return this.fixed===0?`UTC`:`UTC${Hr(this.fixed,`narrow`)}`}get ianaName(){return this.fixed===0?`Etc/UTC`:`Etc/GMT${Hr(-this.fixed,`narrow`)}`}offsetName(){return this.name}formatOffset(e,t){return Hr(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}},Nn=class extends Xt{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 Pn(e,t){let n;if(L(e)||e===null)return t;if(e instanceof Xt)return e;if(hr(e)){let n=e.toLowerCase();return n===`default`?t:n===`local`||n===`system`?Qt.instance:n===`utc`||n===`gmt`?Mn.utcInstance:Mn.parseSpecifier(n)||on.create(e)}else if(pr(e))return Mn.instance(e);else if(typeof e==`object`&&`offset`in e&&typeof e.offset==`function`)return e;else return new Nn(e)}const Fn={arab:`[٠-٩]`,arabext:`[۰-۹]`,bali:`[᭐-᭙]`,beng:`[০-৯]`,deva:`[०-९]`,fullwide:`[0-9]`,gujr:`[૦-૯]`,hanidec:`[〇|一|二|三|四|五|六|七|八|九]`,khmr:`[០-៩]`,knda:`[೦-೯]`,laoo:`[໐-໙]`,limb:`[᥆-᥏]`,mlym:`[൦-൯]`,mong:`[᠐-᠙]`,mymr:`[၀-၉]`,orya:`[୦-୯]`,tamldec:`[௦-௯]`,telu:`[౦-౯]`,thai:`[๐-๙]`,tibt:`[༠-༩]`,latn:`\\d`},In={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]},Ln=Fn.hanidec.replace(/[\[|\]]/g,``).split(``);function Rn(e){let t=parseInt(e,10);if(isNaN(t)){t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(e[n].search(Fn.hanidec)!==-1)t+=Ln.indexOf(e[n]);else for(let e in In){let[n,i]=In[e];r>=n&&r<=i&&(t+=r-n)}}return parseInt(t,10)}else return t}const zn=new Map;function Bn(){zn.clear()}function Vn({numberingSystem:e},t=``){let n=e||`latn`,r=zn.get(n);r===void 0&&(r=new Map,zn.set(n,r));let i=r.get(t);return i===void 0&&(i=RegExp(`${Fn[n]}${t}`),r.set(t,i)),i}let Hn=()=>Date.now(),Un=`system`,Wn=null,Gn=null,Kn=null,qn=60,Jn,Yn=null;var I=class{static get now(){return Hn}static set now(e){Hn=e}static set defaultZone(e){Un=e}static get defaultZone(){return Pn(Un,Qt.instance)}static get defaultLocale(){return Wn}static set defaultLocale(e){Wn=e}static get defaultNumberingSystem(){return Gn}static set defaultNumberingSystem(e){Gn=e}static get defaultOutputCalendar(){return Kn}static set defaultOutputCalendar(e){Kn=e}static get defaultWeekSettings(){return Yn}static set defaultWeekSettings(e){Yn=Cr(e)}static get twoDigitCutoffYear(){return qn}static set twoDigitCutoffYear(e){qn=e%100}static get throwOnInvalid(){return Jn}static set throwOnInvalid(e){Jn=e}static resetCaches(){F.resetCache(),on.resetCache(),z.resetCache(),Bn()}},Xn=class{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const Zn=[0,31,59,90,120,151,181,212,243,273,304,334],Qn=[0,31,60,91,121,152,182,213,244,274,305,335];function $n(e,t){return new Xn(`unit out of range`,`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function er(e,t,n){let r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);let i=r.getUTCDay();return i===0?7:i}function tr(e,t,n){return n+(jr(e)?Qn:Zn)[t-1]}function nr(e,t){let n=jr(e)?Qn:Zn,r=n.findIndex(e=>e<t),i=t-n[r];return{month:r+1,day:i}}function rr(e,t){return(e-t+7)%7+1}function ir(e,t=4,n=1){let{year:r,month:i,day:a}=e,o=tr(r,i,a),s=rr(er(r,i,a),n),c=Math.floor((o-s+14-t)/7),l;return c<1?(l=r-1,c=Ir(l,t,n)):c>Ir(r,t,n)?(l=r+1,c=1):l=r,{weekYear:l,weekNumber:c,weekday:s,...Ur(e)}}function ar(e,t=4,n=1){let{weekYear:r,weekNumber:i,weekday:a}=e,o=rr(er(r,1,t),n),s=Mr(r),c=i*7+a-o-7+t,l;c<1?(l=r-1,c+=Mr(l)):c>s?(l=r+1,c-=Mr(r)):l=r;let{month:u,day:d}=nr(l,c);return{year:l,month:u,day:d,...Ur(e)}}function or(e){let{year:t,month:n,day:r}=e,i=tr(t,n,r);return{year:t,ordinal:i,...Ur(e)}}function sr(e){let{year:t,ordinal:n}=e,{month:r,day:i}=nr(t,n);return{year:t,month:r,day:i,...Ur(e)}}function cr(e,t){let n=!L(e.localWeekday)||!L(e.localWeekNumber)||!L(e.localWeekYear);if(n){let n=!L(e.weekday)||!L(e.weekNumber)||!L(e.weekYear);if(n)throw new St(`Cannot mix locale-based week fields with ISO-based week fields`);return L(e.localWeekday)||(e.weekday=e.localWeekday),L(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),L(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function lr(e,t=4,n=1){let r=mr(e.weekYear),i=wr(e.weekNumber,1,Ir(e.weekYear,t,n)),a=wr(e.weekday,1,7);return r?i?a?!1:$n(`weekday`,e.weekday):$n(`week`,e.weekNumber):$n(`weekYear`,e.weekYear)}function ur(e){let t=mr(e.year),n=wr(e.ordinal,1,Mr(e.year));return t?n?!1:$n(`ordinal`,e.ordinal):$n(`year`,e.year)}function dr(e){let t=mr(e.year),n=wr(e.month,1,12),r=wr(e.day,1,Nr(e.year,e.month));return t?n?r?!1:$n(`day`,e.day):$n(`month`,e.month):$n(`year`,e.year)}function fr(e){let{hour:t,minute:n,second:r,millisecond:i}=e,a=wr(t,0,23)||t===24&&n===0&&r===0&&i===0,o=wr(n,0,59),s=wr(r,0,59),c=wr(i,0,999);return a?o?s?c?!1:$n(`millisecond`,i):$n(`second`,r):$n(`minute`,n):$n(`hour`,t)}function L(e){return e===void 0}function pr(e){return typeof e==`number`}function mr(e){return typeof e==`number`&&e%1==0}function hr(e){return typeof e==`string`}function gr(e){return Object.prototype.toString.call(e)===`[object Date]`}function _r(){try{return typeof Intl<`u`&&!!Intl.RelativeTimeFormat}catch{return!1}}function vr(){try{return typeof Intl<`u`&&!!Intl.Locale&&(`weekInfo`in Intl.Locale.prototype||`getWeekInfo`in Intl.Locale.prototype)}catch{return!1}}function yr(e){return Array.isArray(e)?e:[e]}function br(e,t,n){if(e.length!==0)return e.reduce((e,r)=>{let i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function xr(e,t){return t.reduce((t,n)=>(t[n]=e[n],t),{})}function Sr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Cr(e){if(e==null)return null;if(typeof e!=`object`)throw new wt(`Week settings must be an object`);if(!wr(e.firstDay,1,7)||!wr(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!wr(e,1,7)))throw new wt(`Invalid week settings`);return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function wr(e,t,n){return mr(e)&&e>=t&&e<=n}function Tr(e,t){return e-t*Math.floor(e/t)}function Er(e,t=2){let n=e<0,r;return r=n?`-`+(``+-e).padStart(t,`0`):(``+e).padStart(t,`0`),r}function Dr(e){if(!(L(e)||e===null||e===``))return parseInt(e,10)}function Or(e){if(!(L(e)||e===null||e===``))return parseFloat(e)}function kr(e){if(!(L(e)||e===null||e===``)){let t=parseFloat(`0.`+e)*1e3;return Math.floor(t)}}function Ar(e,t,n=`round`){let r=10**t;switch(n){case`expand`:return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case`trunc`:return Math.trunc(e*r)/r;case`round`:return Math.round(e*r)/r;case`floor`:return Math.floor(e*r)/r;case`ceil`:return Math.ceil(e*r)/r;default:throw RangeError(`Value rounding ${n} is out of range`)}}function jr(e){return e%4==0&&(e%100!=0||e%400==0)}function Mr(e){return jr(e)?366:365}function Nr(e,t){let n=Tr(t-1,12)+1,r=e+(t-n)/12;return n===2?jr(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Pr(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Fr(e,t,n){let r=rr(er(e,1,t),n);return-r+t-1}function Ir(e,t=4,n=1){let r=Fr(e,t,n),i=Fr(e+1,t,n);return(Mr(e)-r+i)/7}function Lr(e){return e>99?e:e>I.twoDigitCutoffYear?1900+e:2e3+e}function Rr(e,t,n,r=null){let i=new Date(e),a={hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`};r&&(a.timeZone=r);let o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(n,o).formatToParts(i).find(e=>e.type.toLowerCase()===`timezonename`);return s?s.value:null}function zr(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);let r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function Br(e){let t=Number(e);if(typeof e==`boolean`||e===``||!Number.isFinite(t))throw new wt(`Invalid unit value ${e}`);return t}function Vr(e,t){let n={};for(let r in e)if(Sr(e,r)){let i=e[r];if(i==null)continue;n[t(r)]=Br(i)}return n}function Hr(e,t){let n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?`+`:`-`;switch(t){case`short`:return`${i}${Er(n,2)}:${Er(r,2)}`;case`narrow`:return`${i}${n}${r>0?`:${r}`:``}`;case`techie`:return`${i}${Er(n,2)}${Er(r,2)}`;default:throw RangeError(`Value format ${t} is out of range for property format`)}}function Ur(e){return xr(e,[`hour`,`minute`,`second`,`millisecond`])}const Wr=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Gr=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],Kr=[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`];function qr(e){switch(e){case`narrow`:return[...Kr];case`short`:return[...Gr];case`long`:return[...Wr];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 Jr=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],Yr=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],Xr=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function Zr(e){switch(e){case`narrow`:return[...Xr];case`short`:return[...Yr];case`long`:return[...Jr];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`];default:return null}}const Qr=[`AM`,`PM`],$r=[`Before Christ`,`Anno Domini`],ei=[`BC`,`AD`],ti=[`B`,`A`];function ni(e){switch(e){case`narrow`:return[...ti];case`short`:return[...ei];case`long`:return[...$r];default:return null}}function ri(e){return Qr[e.hour<12?0:1]}function ii(e,t){return Zr(t)[e.weekday-1]}function ai(e,t){return qr(t)[e.month-1]}function oi(e,t){return ni(t)[e.year<0?0:1]}function si(e,t,n=`always`,r=!1){let i={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(e)===-1;if(n===`auto`&&a){let n=e===`days`;switch(t){case 1:return n?`tomorrow`:`next ${i[e][0]}`;case-1:return n?`yesterday`:`last ${i[e][0]}`;case 0:return n?`today`:`this ${i[e][0]}`;default:}}let o=Object.is(t,-0)||t<0,s=Math.abs(t),c=s===1,l=i[e],u=r?c?l[1]:l[2]||l[1]:c?i[e][0]:e;return o?`${s} ${u} ago`:`in ${s} ${u}`}function ci(e,t){let n=``;for(let r of e)r.literal?n+=r.val:n+=t(r.val);return n}const li={D:Ot,DD:kt,DDD:jt,DDDD:Mt,t:Nt,tt:Pt,ttt:Ft,tttt:It,T:Lt,TT:Rt,TTT:zt,TTTT:Bt,f:Vt,ff:Ut,fff:Kt,ffff:Jt,F:Ht,FF:Wt,FFF:qt,FFFF:Yt};var ui=class e{static create(t,n={}){return new e(t,n)}static parseFormat(e){let t=null,n=``,r=!1,i=[];for(let a=0;a<e.length;a++){let o=e.charAt(a);o===`'`?((n.length>0||r)&&i.push({literal:r||/^\s+$/.test(n),val:n===``?`'`:n}),t=null,n=``,r=!r):r||o===t?n+=o:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=o,t=o)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return li[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem());let n=this.systemLoc.dtFormatter(e,{...this.opts,...t});return n.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){let n=this.dtFormatter(e.start,t);return n.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return Er(e,t);let r={...this.opts};return t>0&&(r.padTo=t),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(t,n){let r=this.loc.listingMode()===`en`,i=this.loc.outputCalendar&&this.loc.outputCalendar!==`gregory`,a=(e,n)=>this.loc.extract(t,e,n),o=e=>t.isOffsetFixed&&t.offset===0&&e.allowZ?`Z`:t.isValid?t.zone.formatOffset(t.ts,e.format):``,s=()=>r?ri(t):a({hour:`numeric`,hourCycle:`h12`},`dayperiod`),c=(e,n)=>r?ai(t,e):a(n?{month:e}:{month:e,day:`numeric`},`month`),l=(e,n)=>r?ii(t,e):a(n?{weekday:e}:{weekday:e,month:`long`,day:`numeric`},`weekday`),u=n=>{let r=e.macroTokenToFormatOpts(n);return r?this.formatWithSystemDefault(t,r):n},d=e=>r?oi(t,e):a({era:e},`era`),f=e=>{switch(e){case`S`:return this.num(t.millisecond);case`u`:case`SSS`:return this.num(t.millisecond,3);case`s`:return this.num(t.second);case`ss`:return this.num(t.second,2);case`uu`:return this.num(Math.floor(t.millisecond/10),2);case`uuu`:return this.num(Math.floor(t.millisecond/100));case`m`:return this.num(t.minute);case`mm`:return this.num(t.minute,2);case`h`:return this.num(t.hour%12==0?12:t.hour%12);case`hh`:return this.num(t.hour%12==0?12:t.hour%12,2);case`H`:return this.num(t.hour);case`HH`:return this.num(t.hour,2);case`Z`:return o({format:`narrow`,allowZ:this.opts.allowZ});case`ZZ`:return o({format:`short`,allowZ:this.opts.allowZ});case`ZZZ`:return o({format:`techie`,allowZ:this.opts.allowZ});case`ZZZZ`:return t.zone.offsetName(t.ts,{format:`short`,locale:this.loc.locale});case`ZZZZZ`:return t.zone.offsetName(t.ts,{format:`long`,locale:this.loc.locale});case`z`:return t.zoneName;case`a`:return s();case`d`:return i?a({day:`numeric`},`day`):this.num(t.day);case`dd`:return i?a({day:`2-digit`},`day`):this.num(t.day,2);case`c`:return this.num(t.weekday);case`ccc`:return l(`short`,!0);case`cccc`:return l(`long`,!0);case`ccccc`:return l(`narrow`,!0);case`E`:return this.num(t.weekday);case`EEE`:return l(`short`,!1);case`EEEE`:return l(`long`,!1);case`EEEEE`:return l(`narrow`,!1);case`L`:return i?a({month:`numeric`,day:`numeric`},`month`):this.num(t.month);case`LL`:return i?a({month:`2-digit`,day:`numeric`},`month`):this.num(t.month,2);case`LLL`:return c(`short`,!0);case`LLLL`:return c(`long`,!0);case`LLLLL`:return c(`narrow`,!0);case`M`:return i?a({month:`numeric`},`month`):this.num(t.month);case`MM`:return i?a({month:`2-digit`},`month`):this.num(t.month,2);case`MMM`:return c(`short`,!1);case`MMMM`:return c(`long`,!1);case`MMMMM`:return c(`narrow`,!1);case`y`:return i?a({year:`numeric`},`year`):this.num(t.year);case`yy`:return i?a({year:`2-digit`},`year`):this.num(t.year.toString().slice(-2),2);case`yyyy`:return i?a({year:`numeric`},`year`):this.num(t.year,4);case`yyyyyy`:return i?a({year:`numeric`},`year`):this.num(t.year,6);case`G`:return d(`short`);case`GG`:return d(`long`);case`GGGGG`:return d(`narrow`);case`kk`:return this.num(t.weekYear.toString().slice(-2),2);case`kkkk`:return this.num(t.weekYear,4);case`W`:return this.num(t.weekNumber);case`WW`:return this.num(t.weekNumber,2);case`n`:return this.num(t.localWeekNumber);case`nn`:return this.num(t.localWeekNumber,2);case`ii`:return this.num(t.localWeekYear.toString().slice(-2),2);case`iiii`:return this.num(t.localWeekYear,4);case`o`:return this.num(t.ordinal);case`ooo`:return this.num(t.ordinal,3);case`q`:return this.num(t.quarter);case`qq`:return this.num(t.quarter,2);case`X`:return this.num(Math.floor(t.ts/1e3));case`x`:return this.num(t.ts);default:return u(e)}};return ci(e.parseFormat(n),f)}formatDurationFromString(t,n){let r=this.opts.signMode===`negativeLargestOnly`?-1:1,i=e=>{switch(e[0]){case`S`:return`milliseconds`;case`s`:return`seconds`;case`m`:return`minutes`;case`h`:return`hours`;case`d`:return`days`;case`w`:return`weeks`;case`M`:return`months`;case`y`:return`years`;default:return null}},a=(e,t)=>n=>{let a=i(n);if(a){let i=t.isNegativeDuration&&a!==t.largestUnit?r:1,o;return o=this.opts.signMode===`negativeLargestOnly`&&a!==t.largestUnit?`never`:this.opts.signMode===`all`?`always`:`auto`,this.num(e.get(a)*i,n.length,o)}else return n},o=e.parseFormat(n),s=o.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]),c=t.shiftTo(...s.map(i).filter(e=>e)),l={isNegativeDuration:c<0,largestUnit:Object.keys(c.values)[0]};return ci(o,a(c,l))}};const di=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function fi(...e){let t=e.reduce((e,t)=>e+t.source,``);return RegExp(`^${t}$`)}function pi(...e){return t=>e.reduce(([e,n,r],i)=>{let[a,o,s]=i(t,r);return[{...e,...a},o||n,s]},[{},null,1]).slice(0,2)}function mi(e,...t){if(e==null)return[null,null];for(let[n,r]of t){let t=n.exec(e);if(t)return r(t)}return[null,null]}function hi(...e){return(t,n)=>{let r={},i;for(i=0;i<e.length;i++)r[e[i]]=Dr(t[n+i]);return[r,null,n+i]}}const gi=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,_i=`(?:${gi.source}?(?:\\[(${di.source})\\])?)?`,vi=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,yi=RegExp(`${vi.source}${_i}`),bi=RegExp(`(?:[Tt]${yi.source})?`),xi=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Si=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ci=/(\d{4})-?(\d{3})/,wi=hi(`weekYear`,`weekNumber`,`weekDay`),Ti=hi(`year`,`ordinal`),Ei=/(\d{4})-(\d\d)-(\d\d)/,Di=RegExp(`${vi.source} ?(?:${gi.source}|(${di.source}))?`),Oi=RegExp(`(?: ${Di.source})?`);function ki(e,t,n){let r=e[t];return L(r)?n:Dr(r)}function Ai(e,t){let n={year:ki(e,t),month:ki(e,t+1,1),day:ki(e,t+2,1)};return[n,null,t+3]}function ji(e,t){let n={hours:ki(e,t,0),minutes:ki(e,t+1,0),seconds:ki(e,t+2,0),milliseconds:kr(e[t+3])};return[n,null,t+4]}function Mi(e,t){let n=!e[t]&&!e[t+1],r=zr(e[t+1],e[t+2]),i=n?null:Mn.instance(r);return[{},i,t+3]}function Ni(e,t){let n=e[t]?on.create(e[t]):null;return[{},n,t+1]}const Pi=RegExp(`^T?${vi.source}$`),Fi=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Ii(e){let[t,n,r,i,a,o,s,c,l]=e,u=t[0]===`-`,d=c&&c[0]===`-`,f=(e,t=!1)=>e!==void 0&&(t||e&&u)?-e:e;return[{years:f(Or(n)),months:f(Or(r)),weeks:f(Or(i)),days:f(Or(a)),hours:f(Or(o)),minutes:f(Or(s)),seconds:f(Or(c),c===`-0`),milliseconds:f(kr(l),d)}]}const Li={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 Ri(e,t,n,r,i,a,o){let s={year:t.length===2?Lr(Dr(t)):Dr(t),month:Gr.indexOf(n)+1,day:Dr(r),hour:Dr(i),minute:Dr(a)};return o&&(s.second=Dr(o)),e&&(s.weekday=e.length>3?Jr.indexOf(e)+1:Yr.indexOf(e)+1),s}const zi=/^(?:(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 Bi(e){let[,t,n,r,i,a,o,s,c,l,u,d]=e,f=Ri(t,i,r,n,a,o,s),p;return p=c?Li[c]:l?0:zr(u,d),[f,new Mn(p)]}function Vi(e){return e.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).trim()}const Hi=/^(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$/,Ui=/^(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$/,Wi=/^(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 Gi(e){let[,t,n,r,i,a,o,s]=e,c=Ri(t,i,r,n,a,o,s);return[c,Mn.utcInstance]}function Ki(e){let[,t,n,r,i,a,o,s]=e,c=Ri(t,s,n,r,i,a,o);return[c,Mn.utcInstance]}const qi=fi(xi,bi),Ji=fi(Si,bi),Yi=fi(Ci,bi),Xi=fi(yi),Zi=pi(Ai,ji,Mi,Ni),Qi=pi(wi,ji,Mi,Ni),$i=pi(Ti,ji,Mi,Ni),ea=pi(ji,Mi,Ni);function ta(e){return mi(e,[qi,Zi],[Ji,Qi],[Yi,$i],[Xi,ea])}function na(e){return mi(Vi(e),[zi,Bi])}function ra(e){return mi(e,[Hi,Gi],[Ui,Gi],[Wi,Ki])}function ia(e){return mi(e,[Fi,Ii])}const aa=pi(ji);function oa(e){return mi(e,[Pi,aa])}const sa=fi(Ei,Oi),ca=fi(Di),la=pi(ji,Mi,Ni);function ua(e){return mi(e,[sa,Zi],[ca,la])}const da=`Invalid Duration`,fa={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}},pa={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},...fa},ma=146097/400,ha=146097/4800,ga={years:{quarters:4,months:12,weeks:ma/7,days:ma,hours:ma*24,minutes:ma*24*60,seconds:ma*24*60*60,milliseconds:ma*24*60*60*1e3},quarters:{months:3,weeks:ma/28,days:ma/4,hours:ma*24/4,minutes:ma*24*60/4,seconds:ma*24*60*60/4,milliseconds:ma*24*60*60*1e3/4},months:{weeks:ha/7,days:ha,hours:ha*24,minutes:ha*24*60,seconds:ha*24*60*60,milliseconds:ha*24*60*60*1e3},...fa},_a=[`years`,`quarters`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`],va=_a.slice(0).reverse();function ya(e,t,n=!1){let r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Ca(r)}function ba(e,t){let n=t.milliseconds??0;for(let r of va.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function xa(e,t){let n=ba(e,t)<0?-1:1;_a.reduceRight((r,i)=>{if(L(t[i]))return r;if(r){let a=t[r]*n,o=e[i][r],s=Math.floor(a/o);t[i]+=s*n,t[r]-=s*o*n}return i},null),_a.reduce((n,r)=>{if(L(t[r]))return n;if(n){let i=t[n]%1;t[n]-=i,t[r]+=i*e[n][r]}return r},null)}function Sa(e){let t={};for(let[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}var Ca=class e{constructor(e){let t=e.conversionAccuracy===`longterm`||!1,n=t?ga:pa;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||F.create(),this.conversionAccuracy=t?`longterm`:`casual`,this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,n){return e.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(typeof t!=`object`||!t)throw new wt(`Duration.fromObject: argument expected to be an object, got ${t===null?`null`:typeof t}`);return new e({values:Vr(t,e.normalizeUnit),loc:F.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(pr(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t==`object`)return e.fromObject(t);throw new wt(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){let[r]=ia(t);return r?e.fromObject(r,n):e.invalid(`unparsable`,`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){let[r]=oa(t);return r?e.fromObject(r,n):e.invalid(`unparsable`,`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new wt(`need to specify a reason the Duration is invalid`);let r=t instanceof Xn?t:new Xn(t,n);if(I.throwOnInvalid)throw new xt(r);return new e({invalid:r})}static normalizeUnit(e){let 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 Ct(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={}){let n={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?ui.create(this.loc,n).formatDurationFromString(this,e):da}toHuman(e={}){if(!this.isValid)return da;let t=e.showZeros!==!1,n=_a.map(n=>{let r=this.values[n];return L(r)||r===0&&!t?null:this.loc.numberFormatter({style:`unit`,unitDisplay:`long`,...e,unit:n.slice(0,-1)}).format(r)}).filter(e=>e);return this.loc.listFormatter({type:`conjunction`,style:e.listStyle||`narrow`,...e}).format(n)}toObject(){return this.isValid?{...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+=Ar(this.seconds+this.milliseconds/1e3,3)+`S`),e===`P`&&(e+=`T0S`),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:`extended`,...e,includeOffset:!1};let n=z.fromMillis(t,{zone:`UTC`});return n.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?ba(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t),r={};for(let e of _a)(Sr(n.values,e)||Sr(this.values,e))&&(r[e]=n.get(e)+this.get(e));return ya(this,{values:r},!0)}minus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=Br(e(this.values[n],n));return ya(this,{values:t},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let n={...this.values,...Vr(t,e.normalizeUnit)};return ya(this,{values:n})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){let i=this.loc.clone({locale:e,numberingSystem:t}),a={loc:i,matrix:r,conversionAccuracy:n};return ya(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return xa(this.matrix,e),ya(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=Sa(this.normalize().shiftToAll().toObject());return ya(this,{values:e},!0)}shiftTo(...t){if(!this.isValid||t.length===0)return this;t=t.map(t=>e.normalizeUnit(t));let n={},r={},i=this.toObject(),a;for(let e of _a)if(t.indexOf(e)>=0){a=e;let t=0;for(let n in r)t+=this.matrix[n][e]*r[n],r[n]=0;pr(i[e])&&(t+=i[e]);let o=Math.trunc(t);n[e]=o,r[e]=(t*1e3-o*1e3)/1e3}else pr(i[e])&&(r[e]=i[e]);for(let e in r)r[e]!==0&&(n[a]+=e===a?r[e]:r[e]/this.matrix[a][e]);return xa(this.matrix,n),ya(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo(`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return ya(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=Sa(this.values);return ya(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(e,t){return e===void 0||e===0?t===void 0||t===0:e===t}for(let n of _a)if(!t(this.values[n],e.values[n]))return!1;return!0}};const wa=`Invalid Interval`;function Ta(e,t){return!e||!e.isValid?Ea.invalid(`missing or invalid start`):!t||!t.isValid?Ea.invalid(`missing or invalid end`):t<e?Ea.invalid(`end before start`,`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var Ea=class e{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new wt(`need to specify a reason the Interval is invalid`);let r=t instanceof Xn?t:new Xn(t,n);if(I.throwOnInvalid)throw new bt(r);return new e({invalid:r})}static fromDateTimes(t,n){let r=Ao(t),i=Ao(n),a=Ta(r,i);return a??new e({start:r,end:i})}static after(t,n){let r=Ca.fromDurationLike(n),i=Ao(t);return e.fromDateTimes(i,i.plus(r))}static before(t,n){let r=Ca.fromDurationLike(n),i=Ao(t);return e.fromDateTimes(i.minus(r),i)}static fromISO(t,n){let[r,i]=(t||``).split(`/`,2);if(r&&i){let t,a;try{t=z.fromISO(r,n),a=t.isValid}catch{a=!1}let o,s;try{o=z.fromISO(i,n),s=o.isValid}catch{s=!1}if(a&&s)return e.fromDateTimes(t,o);if(a){let r=Ca.fromISO(i,n);if(r.isValid)return e.after(t,r)}else if(s){let t=Ca.fromISO(r,n);if(t.isValid)return e.before(o,t)}}return e.invalid(`unparsable`,`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e=`milliseconds`){return this.isValid?this.toDuration(e).get(e):NaN}count(e=`milliseconds`,t){if(!this.isValid)return NaN;let n=this.start.startOf(e,t),r;return r=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:t,end:n}={}){return this.isValid?e.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];let n=t.map(Ao).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),r=[],{s:i}=this,a=0;for(;i<this.e;){let t=n[a]||this.e,o=+t>+this.e?this.e:t;r.push(e.fromDateTimes(i,o)),i=o,a+=1}return r}splitBy(t){let n=Ca.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as(`milliseconds`)===0)return[];let{s:r}=this,i=1,a,o=[];for(;r<this.e;){let t=this.start.plus(n.mapUnits(e=>e*i));a=+t>+this.e?this.e:t,o.push(e.fromDateTimes(r,a)),r=a,i+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(t){if(!this.isValid)return this;let n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:e.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;let n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,r)}static merge(e){let[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(t){let n=null,r=0,i=[],a=t.map(e=>[{time:e.s,type:`s`},{time:e.e,type:`e`}]),o=Array.prototype.concat(...a),s=o.sort((e,t)=>e.time-t.time);for(let t of s)r+=t.type===`s`?1:-1,r===1?n=t.time:(n&&+n!=+t.time&&i.push(e.fromDateTimes(n,t.time)),n=null);return e.merge(i)}difference(...t){return e.xor([this].concat(t)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:wa}[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=Ot,t={}){return this.isValid?ui.create(this.s.loc.clone(t),e).formatInterval(this):wa}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:wa}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:wa}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:wa}toFormat(e,{separator:t=` – `}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:wa}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Ca.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}},Da=class{static hasDST(e=I.defaultZone){let t=z.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return on.isValidZone(e)}static normalizeZone(e){return Pn(e,I.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||F.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||F.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||F.create(e)).getWeekendDays().slice()}static months(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i=`gregory`}={}){return(r||F.create(t,n,i)).months(e)}static monthsFormat(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i=`gregory`}={}){return(r||F.create(t,n,i)).months(e,!0)}static weekdays(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||F.create(t,n,null)).weekdays(e)}static weekdaysFormat(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||F.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return F.create(e).meridiems()}static eras(e=`short`,{locale:t=null}={}){return F.create(t,null,`gregory`).eras(e)}static features(){return{relative:_r(),localeWeek:vr()}}};function Oa(e,t){let n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf(`day`).valueOf(),r=n(t)-n(e);return Math.floor(Ca.fromMillis(r).as(`days`))}function ka(e,t,n){let r=[[`years`,(e,t)=>t.year-e.year],[`quarters`,(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],[`months`,(e,t)=>t.month-e.month+(t.year-e.year)*12],[`weeks`,(e,t)=>{let n=Oa(e,t);return(n-n%7)/7}],[`days`,Oa]],i={},a=e,o,s;for(let[c,l]of r)n.indexOf(c)>=0&&(o=c,i[c]=l(e,t),s=a.plus(i),s>t?(i[c]--,e=a.plus(i),e>t&&(s=e,i[c]--,e=a.plus(i))):e=s);return[e,i,s,o]}function Aa(e,t,n,r){let[i,a,o,s]=ka(e,t,n),c=t-i,l=n.filter(e=>[`hours`,`minutes`,`seconds`,`milliseconds`].indexOf(e)>=0);l.length===0&&(o<t&&(o=i.plus({[s]:1})),o!==i&&(a[s]=(a[s]||0)+c/(o-i)));let u=Ca.fromObject(a,r);return l.length>0?Ca.fromMillis(c,r).shiftTo(...l).plus(u):u}const ja=`missing Intl.DateTimeFormat.formatToParts support`;function R(e,t=e=>e){return{regex:e,deser:([e])=>t(Rn(e))}}const Ma=`\xA0`,Na=`[ ${Ma}]`,Pa=new RegExp(Na,`g`);function Fa(e){return e.replace(/\./g,`\\.?`).replace(Pa,Na)}function Ia(e){return e.replace(/\./g,``).replace(Pa,` `).toLowerCase()}function La(e,t){return e===null?null:{regex:RegExp(e.map(Fa).join(`|`)),deser:([n])=>e.findIndex(e=>Ia(n)===Ia(e))+t}}function Ra(e,t){return{regex:e,deser:([,e,t])=>zr(e,t),groups:t}}function za(e){return{regex:e,deser:([e])=>e}}function Ba(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,`\\$&`)}function Va(e,t){let n=Vn(t),r=Vn(t,`{2}`),i=Vn(t,`{3}`),a=Vn(t,`{4}`),o=Vn(t,`{6}`),s=Vn(t,`{1,2}`),c=Vn(t,`{1,3}`),l=Vn(t,`{1,6}`),u=Vn(t,`{1,9}`),d=Vn(t,`{2,4}`),f=Vn(t,`{4,6}`),p=e=>({regex:RegExp(Ba(e.val)),deser:([e])=>e,literal:!0}),m=m=>{if(e.literal)return p(m);switch(m.val){case`G`:return La(t.eras(`short`),0);case`GG`:return La(t.eras(`long`),0);case`y`:return R(l);case`yy`:return R(d,Lr);case`yyyy`:return R(a);case`yyyyy`:return R(f);case`yyyyyy`:return R(o);case`M`:return R(s);case`MM`:return R(r);case`MMM`:return La(t.months(`short`,!0),1);case`MMMM`:return La(t.months(`long`,!0),1);case`L`:return R(s);case`LL`:return R(r);case`LLL`:return La(t.months(`short`,!1),1);case`LLLL`:return La(t.months(`long`,!1),1);case`d`:return R(s);case`dd`:return R(r);case`o`:return R(c);case`ooo`:return R(i);case`HH`:return R(r);case`H`:return R(s);case`hh`:return R(r);case`h`:return R(s);case`mm`:return R(r);case`m`:return R(s);case`q`:return R(s);case`qq`:return R(r);case`s`:return R(s);case`ss`:return R(r);case`S`:return R(c);case`SSS`:return R(i);case`u`:return za(u);case`uu`:return za(s);case`uuu`:return R(n);case`a`:return La(t.meridiems(),0);case`kkkk`:return R(a);case`kk`:return R(d,Lr);case`W`:return R(s);case`WW`:return R(r);case`E`:case`c`:return R(n);case`EEE`:return La(t.weekdays(`short`,!1),1);case`EEEE`:return La(t.weekdays(`long`,!1),1);case`ccc`:return La(t.weekdays(`short`,!0),1);case`cccc`:return La(t.weekdays(`long`,!0),1);case`Z`:case`ZZ`:return Ra(RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case`ZZZ`:return Ra(RegExp(`([+-]${s.source})(${r.source})?`),2);case`z`:return za(/[a-z_+-/]{1,256}?/i);case` `:return za(/[^\S\n\r]/);default:return p(m)}},h=m(e)||{invalidReason:ja};return h.token=e,h}const Ha={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 Ua(e,t,n){let{type:r,value:i}=e;if(r===`literal`){let e=/^\s+$/.test(i);return{literal:!e,val:e?` `:i}}let a=t[r],o=r;r===`hour`&&(o=t.hour12==null?t.hourCycle==null?n.hour12?`hour12`:`hour24`:t.hourCycle===`h11`||t.hourCycle===`h12`?`hour12`:`hour24`:t.hour12?`hour12`:`hour24`);let s=Ha[o];if(typeof s==`object`&&(s=s[a]),s)return{literal:!1,val:s}}function Wa(e){let t=e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,``);return[`^${t}$`,e]}function Ga(e,t,n){let r=e.match(t);if(r){let e={},t=1;for(let i in n)if(Sr(n,i)){let a=n[i],o=a.groups?a.groups+1:1;!a.literal&&a.token&&(e[a.token.val[0]]=a.deser(r.slice(t,t+o))),t+=o}return[r,e]}else return[r,{}]}function Ka(e){let t=e=>{switch(e){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}},n=null,r;L(e.z)||(n=on.create(e.z)),L(e.Z)||(n||=new Mn(e.Z),r=e.Z),L(e.q)||(e.M=(e.q-1)*3+1),L(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),L(e.u)||(e.S=kr(e.u));let i=Object.keys(e).reduce((n,r)=>{let i=t(r);return i&&(n[i]=e[r]),n},{});return[i,n,r]}let qa=null;function Ja(){return qa||=z.fromMillis(1555555555555),qa}function Ya(e,t){if(e.literal)return e;let n=ui.macroTokenToFormatOpts(e.val),r=eo(n,t);return r==null||r.includes(void 0)?e:r}function Xa(e,t){return Array.prototype.concat(...e.map(e=>Ya(e,t)))}var Za=class{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=Xa(ui.parseFormat(t),e),this.units=this.tokens.map(t=>Va(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){let[e,t]=Wa(this.units);this.regex=RegExp(e,`i`),this.handlers=t}}explainFromTokens(e){if(this.isValid){let[t,n]=Ga(e,this.regex,this.handlers),[r,i,a]=n?Ka(n):[null,null,void 0];if(Sr(n,`a`)&&Sr(n,`H`))throw new St(`Can't include meridiem when specifying 24-hour format`);return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:i,specificOffset:a}}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 Qa(e,t,n){let r=new Za(e,n);return r.explainFromTokens(t)}function $a(e,t,n){let{result:r,zone:i,specificOffset:a,invalidReason:o}=Qa(e,t,n);return[r,i,a,o]}function eo(e,t){if(!e)return null;let n=ui.create(t,e),r=n.dtFormatter(Ja()),i=r.formatToParts(),a=r.resolvedOptions();return i.map(t=>Ua(t,e,a))}const to=`Invalid DateTime`,no=864e13;function ro(e){return new Xn(`unsupported zone`,`the zone "${e.name}" is not supported`)}function io(e){return e.weekData===null&&(e.weekData=ir(e.c)),e.weekData}function ao(e){return e.localWeekData===null&&(e.localWeekData=ir(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function oo(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new z({...n,...t,old:n})}function so(e,t,n){let r=e-t*60*1e3,i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;let a=n.offset(r);return i===a?[r,i]:[e-Math.min(i,a)*60*1e3,Math.max(i,a)]}function co(e,t){e+=t*60*1e3;let n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function lo(e,t,n){return so(Pr(e),t,n)}function uo(e,t){let n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:r,month:i,day:Math.min(e.c.day,Nr(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=Ca.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as(`milliseconds`),s=Pr(a),[c,l]=so(s,n,e.zone);return o!==0&&(c+=o,l=e.zone.offset(c)),{ts:c,o:l}}function fo(e,t,n,r,i,a){let{setZone:o,zone:s}=n;if(e&&Object.keys(e).length!==0||t){let r=t||s,i=z.fromObject(e,{...n,zone:r,specificOffset:a});return o?i:i.setZone(s)}else return z.invalid(new Xn(`unparsable`,`the input "${i}" can't be parsed as ${r}`))}function po(e,t,n=!0){return e.isValid?ui.create(F.create(`en-US`),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function mo(e,t,n){let r=e.c.year>9999||e.c.year<0,i=``;if(r&&e.c.year>=0&&(i+=`+`),i+=Er(e.c.year,r?6:4),n===`year`)return i;if(t){if(i+=`-`,i+=Er(e.c.month),n===`month`)return i;i+=`-`}else if(i+=Er(e.c.month),n===`month`)return i;return i+=Er(e.c.day),i}function ho(e,t,n,r,i,a,o){let s=!n||e.c.millisecond!==0||e.c.second!==0,c=``;switch(o){case`day`:case`month`:case`year`:break;default:if(c+=Er(e.c.hour),o===`hour`)break;if(t){if(c+=`:`,c+=Er(e.c.minute),o===`minute`)break;s&&(c+=`:`,c+=Er(e.c.second))}else{if(c+=Er(e.c.minute),o===`minute`)break;s&&(c+=Er(e.c.second))}if(o===`second`)break;s&&(!r||e.c.millisecond!==0)&&(c+=`.`,c+=Er(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!a?c+=`Z`:e.o<0?(c+=`-`,c+=Er(Math.trunc(-e.o/60)),c+=`:`,c+=Er(Math.trunc(-e.o%60))):(c+=`+`,c+=Er(Math.trunc(e.o/60)),c+=`:`,c+=Er(Math.trunc(e.o%60)))),a&&(c+=`[`+e.zone.ianaName+`]`),c}const go={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},_o={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},vo={ordinal:1,hour:0,minute:0,second:0,millisecond:0},yo=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],bo=[`weekYear`,`weekNumber`,`weekday`,`hour`,`minute`,`second`,`millisecond`],xo=[`year`,`ordinal`,`hour`,`minute`,`second`,`millisecond`];function So(e){let t={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`}[e.toLowerCase()];if(!t)throw new Ct(e);return t}function Co(e){switch(e.toLowerCase()){case`localweekday`:case`localweekdays`:return`localWeekday`;case`localweeknumber`:case`localweeknumbers`:return`localWeekNumber`;case`localweekyear`:case`localweekyears`:return`localWeekYear`;default:return So(e)}}function wo(e){if(Oo===void 0&&(Oo=I.now()),e.type!==`iana`)return e.offset(Oo);let t=e.name,n=ko.get(t);return n===void 0&&(n=e.offset(Oo),ko.set(t,n)),n}function To(e,t){let n=Pn(t.zone,I.defaultZone);if(!n.isValid)return z.invalid(ro(n));let r=F.fromObject(t),i,a;if(L(e.year))i=I.now();else{for(let t of yo)L(e[t])&&(e[t]=go[t]);let t=dr(e)||fr(e);if(t)return z.invalid(t);let r=wo(n);[i,a]=lo(e,r,n)}return new z({ts:i,zone:n,loc:r,o:a})}function Eo(e,t,n){let r=L(n.round)?!0:n.round,i=L(n.rounding)?`trunc`:n.rounding,a=(e,a)=>{e=Ar(e,r||n.calendary?0:2,n.calendary?`round`:i);let o=t.loc.clone(n).relFormatter(n);return o.format(e,a)},o=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return a(o(n.unit),n.unit);for(let e of n.units){let t=o(e);if(Math.abs(t)>=1)return a(t,e)}return a(e>t?-0:0,n.units[n.units.length-1])}function Do(e){let t={},n;return e.length>0&&typeof e[e.length-1]==`object`?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let Oo;const ko=new Map;var z=class e{constructor(e){let t=e.zone||I.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Xn(`invalid input`):null)||(t.isValid?null:ro(t));this.ts=L(e.ts)?I.now():e.ts;let r=null,i=null;if(!n){let a=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(a)[r,i]=[e.old.c,e.old.o];else{let a=pr(e.o)&&!e.old?e.o:t.offset(this.ts);r=co(this.ts,a),n=Number.isNaN(r.year)?new Xn(`invalid input`):null,r=n?null:r,i=n?null:a}}this._zone=t,this.loc=e.loc||F.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[e,t]=Do(arguments),[n,r,i,a,o,s,c]=t;return To({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:c},e)}static utc(){let[e,t]=Do(arguments),[n,r,i,a,o,s,c]=t;return e.zone=Mn.utcInstance,To({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:c},e)}static fromJSDate(t,n={}){let r=gr(t)?t.valueOf():NaN;if(Number.isNaN(r))return e.invalid(`invalid input`);let i=Pn(n.zone,I.defaultZone);return i.isValid?new e({ts:r,zone:i,loc:F.fromObject(n)}):e.invalid(ro(i))}static fromMillis(t,n={}){if(pr(t))return t<-no||t>no?e.invalid(`Timestamp out of range`):new e({ts:t,zone:Pn(n.zone,I.defaultZone),loc:F.fromObject(n)});throw new wt(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(pr(t))return new e({ts:t*1e3,zone:Pn(n.zone,I.defaultZone),loc:F.fromObject(n)});throw new wt(`fromSeconds requires a numerical input`)}static fromObject(t,n={}){t||={};let r=Pn(n.zone,I.defaultZone);if(!r.isValid)return e.invalid(ro(r));let i=F.fromObject(n),a=Vr(t,Co),{minDaysInFirstWeek:o,startOfWeek:s}=cr(a,i),c=I.now(),l=L(n.specificOffset)?r.offset(c):n.specificOffset,u=!L(a.ordinal),d=!L(a.year),f=!L(a.month)||!L(a.day),p=d||f,m=a.weekYear||a.weekNumber;if((p||u)&&m)throw new St(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(f&&u)throw new St(`Can't mix ordinal dates with month/day`);let h=m||a.weekday&&!p,g,_,v=co(c,l);h?(g=bo,_=_o,v=ir(v,o,s)):u?(g=xo,_=vo,v=or(v)):(g=yo,_=go);let y=!1;for(let e of g){let t=a[e];L(t)?y?a[e]=_[e]:a[e]=v[e]:y=!0}let b=h?lr(a,o,s):u?ur(a):dr(a),x=b||fr(a);if(x)return e.invalid(x);let ee=h?ar(a,o,s):u?sr(a):a,[S,C]=lo(ee,l,r),w=new e({ts:S,zone:r,o:C,loc:i});return a.weekday&&p&&t.weekday!==w.weekday?e.invalid(`mismatched weekday`,`you can't specify both a weekday of ${a.weekday} and a date of ${w.toISO()}`):w.isValid?w:e.invalid(w.invalid)}static fromISO(e,t={}){let[n,r]=ta(e);return fo(n,r,t,`ISO 8601`,e)}static fromRFC2822(e,t={}){let[n,r]=na(e);return fo(n,r,t,`RFC 2822`,e)}static fromHTTP(e,t={}){let[n,r]=ra(e);return fo(n,r,t,`HTTP`,t)}static fromFormat(t,n,r={}){if(L(t)||L(n))throw new wt(`fromFormat requires an input string and a format`);let{locale:i=null,numberingSystem:a=null}=r,o=F.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),[s,c,l,u]=$a(o,t,n);return u?e.invalid(u):fo(s,c,r,`format ${n}`,t,l)}static fromString(t,n,r={}){return e.fromFormat(t,n,r)}static fromSQL(e,t={}){let[n,r]=ua(e);return fo(n,r,t,`SQL`,e)}static invalid(t,n=null){if(!t)throw new wt(`need to specify a reason the DateTime is invalid`);let r=t instanceof Xn?t:new Xn(t,n);if(I.throwOnInvalid)throw new yt(r);return new e({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let n=eo(e,F.fromObject(t));return n?n.map(e=>e?e.val:null).join(``):null}static expandFormat(e,t={}){let n=Xa(ui.parseFormat(e),F.fromObject(t));return n.map(e=>e.val).join(``)}static resetCache(){Oo=void 0,ko.clear()}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?io(this).weekYear:NaN}get weekNumber(){return this.isValid?io(this).weekNumber:NaN}get weekday(){return this.isValid?io(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ao(this).weekday:NaN}get localWeekNumber(){return this.isValid?ao(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ao(this).weekYear:NaN}get ordinal(){return this.isValid?or(this.c).ordinal:NaN}get monthShort(){return this.isValid?Da.months(`short`,{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Da.months(`long`,{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Da.weekdays(`short`,{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Da.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];let e=864e5,t=6e4,n=Pr(this.c),r=this.zone.offset(n-e),i=this.zone.offset(n+e),a=this.zone.offset(n-r*t),o=this.zone.offset(n-i*t);if(a===o)return[this];let s=n-a*t,c=n-o*t,l=co(s,a),u=co(c,o);return l.hour===u.hour&&l.minute===u.minute&&l.second===u.second&&l.millisecond===u.millisecond?[oo(this,{ts:s}),oo(this,{ts:c})]:[this]}get isInLeapYear(){return jr(this.year)}get daysInMonth(){return Nr(this.year,this.month)}get daysInYear(){return this.isValid?Mr(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ir(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ir(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:n,calendar:r}=ui.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(Mn.instance(e),t)}toLocal(){return this.setZone(I.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=Pn(t,I.defaultZone),t.equals(this.zone))return this;if(t.isValid){let e=this.ts;if(n||r){let n=t.offset(this.ts),r=this.toObject();[e]=lo(r,n,t)}return oo(this,{ts:e,zone:t})}else return e.invalid(ro(t))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){let r=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return oo(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let t=Vr(e,Co),{minDaysInFirstWeek:n,startOfWeek:r}=cr(t,this.loc),i=!L(t.weekYear)||!L(t.weekNumber)||!L(t.weekday),a=!L(t.ordinal),o=!L(t.year),s=!L(t.month)||!L(t.day),c=o||s,l=t.weekYear||t.weekNumber;if((c||a)&&l)throw new St(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(s&&a)throw new St(`Can't mix ordinal dates with month/day`);let u;i?u=ar({...ir(this.c,n,r),...t},n,r):L(t.ordinal)?(u={...this.toObject(),...t},L(t.day)&&(u.day=Math.min(Nr(u.year,u.month),u.day))):u=sr({...or(this.c),...t});let[d,f]=lo(u,this.o,this.zone);return oo(this,{ts:d,o:f})}plus(e){if(!this.isValid)return this;let t=Ca.fromDurationLike(e);return oo(this,uo(this,t))}minus(e){if(!this.isValid)return this;let t=Ca.fromDurationLike(e).negate();return oo(this,uo(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let n={},r=Ca.normalizeUnit(e);switch(r){case`years`:n.month=1;case`quarters`:case`months`:n.day=1;case`weeks`:case`days`:n.hour=0;case`hours`:n.minute=0;case`minutes`:n.second=0;case`seconds`:n.millisecond=0;break;case`milliseconds`:break}if(r===`weeks`)if(t){let e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if(r===`quarters`){let e=Math.ceil(this.month/3);n.month=(e-1)*3+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?ui.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):to}toLocaleString(e=Ot,t={}){return this.isValid?ui.create(this.loc.clone(t),e).formatDateTime(this):to}toLocaleParts(e={}){return this.isValid?ui.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e=`extended`,suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:i=!1,precision:a=`milliseconds`}={}){if(!this.isValid)return null;a=So(a);let o=e===`extended`,s=mo(this,o,a);return yo.indexOf(a)>=3&&(s+=`T`),s+=ho(this,o,t,n,r,i,a),s}toISODate({format:e=`extended`,precision:t=`day`}={}){return this.isValid?mo(this,e===`extended`,So(t)):null}toISOWeekDate(){return po(this,`kkkk-'W'WW-c`)}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:i=!1,format:a=`extended`,precision:o=`milliseconds`}={}){if(!this.isValid)return null;o=So(o);let s=r&&yo.indexOf(o)>=3?`T`:``;return s+ho(this,a===`extended`,t,e,n,i,o)}toRFC2822(){return po(this,`EEE, dd LLL yyyy HH:mm:ss ZZZ`,!1)}toHTTP(){return po(this.toUTC(),`EEE, dd LLL yyyy HH:mm:ss 'GMT'`)}toSQLDate(){return this.isValid?mo(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r=`HH:mm:ss.SSS`;return(t||e)&&(n&&(r+=` `),t?r+=`z`:e&&(r+=`ZZ`)),po(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():to}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t=`milliseconds`,n={}){if(!this.isValid||!e.isValid)return Ca.invalid(`created by diffing an invalid DateTime`);let r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=yr(t).map(Ca.normalizeUnit),a=e.valueOf()>this.valueOf(),o=a?this:e,s=a?e:this,c=Aa(o,s,i,r);return a?c.negate():c}diffNow(t=`milliseconds`,n={}){return this.diff(e.now(),t,n)}until(e){return this.isValid?Ea.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;let r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,n)<=r&&r<=i.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(t={}){if(!this.isValid)return null;let n=t.base||e.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0,i=[`years`,`months`,`days`,`hours`,`minutes`,`seconds`],a=t.unit;return Array.isArray(t.unit)&&(i=t.unit,a=void 0),Eo(n,this.plus(r),{...t,numeric:`always`,units:i,unit:a})}toRelativeCalendar(t={}){return this.isValid?Eo(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:`auto`,units:[`years`,`months`,`days`],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new wt(`min requires all arguments be DateTimes`);return br(t,e=>e.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new wt(`max requires all arguments be DateTimes`);return br(t,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){let{locale:r=null,numberingSystem:i=null}=n,a=F.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return Qa(a,e,t)}static fromStringExplain(t,n,r={}){return e.fromFormatExplain(t,n,r)}static buildFormatParser(e,t={}){let{locale:n=null,numberingSystem:r=null}=t,i=F.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new Za(i,e)}static fromFormatParser(t,n,r={}){if(L(t)||L(n))throw new wt(`fromFormatParser requires an input string and a format parser`);let{locale:i=null,numberingSystem:a=null}=r,o=F.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});if(!o.equals(n.locale))throw new wt(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);let{result:s,zone:c,specificOffset:l,invalidReason:u}=n.explainFromTokens(t);return u?e.invalid(u):fo(s,c,r,`format ${n.format}`,t,l)}static get DATE_SHORT(){return Ot}static get DATE_MED(){return kt}static get DATE_MED_WITH_WEEKDAY(){return At}static get DATE_FULL(){return jt}static get DATE_HUGE(){return Mt}static get TIME_SIMPLE(){return Nt}static get TIME_WITH_SECONDS(){return Pt}static get TIME_WITH_SHORT_OFFSET(){return Ft}static get TIME_WITH_LONG_OFFSET(){return It}static get TIME_24_SIMPLE(){return Lt}static get TIME_24_WITH_SECONDS(){return Rt}static get TIME_24_WITH_SHORT_OFFSET(){return zt}static get TIME_24_WITH_LONG_OFFSET(){return Bt}static get DATETIME_SHORT(){return Vt}static get DATETIME_SHORT_WITH_SECONDS(){return Ht}static get DATETIME_MED(){return Ut}static get DATETIME_MED_WITH_SECONDS(){return Wt}static get DATETIME_MED_WITH_WEEKDAY(){return Gt}static get DATETIME_FULL(){return Kt}static get DATETIME_FULL_WITH_SECONDS(){return qt}static get DATETIME_HUGE(){return Jt}static get DATETIME_HUGE_WITH_SECONDS(){return Yt}};function Ao(e){if(z.isDateTime(e))return e;if(e&&e.valueOf&&pr(e.valueOf()))return z.fromJSDate(e);if(e&&typeof e==`object`)return z.fromObject(e);throw new wt(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var jo=s((exports,t)=>{(function(n,r){typeof exports==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(exports,function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,ee=function(e){return e instanceof T||!(!e||!e[x])},S=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},C=function(e,t){if(ee(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new T(n)},w=v;w.l=S,w.i=ee,w.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return w},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return C(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<C(e)},_.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!w.u(t)||t,u=w.p(e),p=function(e,t){var i=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return w.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=w.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[w.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=w.p(u),h=function(e){var t=C(p);return w.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return w.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=w.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return w.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return w.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return w.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return w.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return w.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return w.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return w.s(t.$s,2,`0`);case`SSS`:return w.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=w.p(f),_=C(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return w.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:w.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return w.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),te=T.prototype;return C.prototype=te,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach(function(e){te[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),C.extend=function(e,t){return e.$i||(e(t,T,C),e.$i=!0),C},C.locale=S,C.isDayjs=ee,C.unix=function(e){return C(1e3*e)},C.en=b[y],C.Ls=b,C.p={},C})});const Mo=(e,t,n)=>{if(n!==void 0&&e instanceof n||n!==void 0&&typeof n[Symbol.hasInstance]==`function`&&n[Symbol.hasInstance](e))return!0;if(typeof e==`object`&&e){let n=e,r=n.constructor?.name;return r===t}return!1},No=e=>e instanceof z?!0:typeof e!=`object`||!e||!(`isLuxonDateTime`in e)?!1:e.isLuxonDateTime===!0,Po=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Fo=e=>{if(!Po(e))return!1;let t=Object.keys(e);if(t.length===0)return!1;let n=[`year`,`month`,`day`,`ordinal`,`weekYear`,`localWeekYear`,`weekNumber`,`localWeekNumber`,`weekday`,`localWeekday`,`hour`,`minute`,`second`,`millisecond`],r=t.filter(e=>!n.includes(e));return r.length>0?!1:t.every(t=>{let n=e[t];return typeof n==`number`||n===void 0})};var Io=u(jo());I.defaultZone=`utc`,I.defaultLocale=`en`,I.defaultWeekSettings={firstDay:7,minimalDays:4,weekend:[6,7]},I.throwOnInvalid=!1;const Lo={"datetime.base":`{{#label}} must be a datetime value`,"datetime.exactly":`{{#label}} must be a datetime exactly equal to {{#limit}}`,"datetime.equals":`{{#label}} must be a datetime equal to {{#limit}}`,"datetime.after":`{{#label}} must be a datetime after {{#limit}}`,"datetime.greater":`{{#label}} must be a datetime after {{#limit}}`,"datetime.before":`{{#label}} must be a datetime before {{#limit}}`,"datetime.less":`{{#label}} must be a datetime before {{#limit}}`,"datetime.afterOrEqual":`{{#label}} must be a datetime after or equal to {{#limit}}`,"datetime.min":`{{#label}} must be a datetime after or equal to {{#limit}}`,"datetime.beforeOrEqual":`{{#label}} must be a datetime before or equal to {{#limit}}`,"datetime.max":`{{#label}} must be a datetime before or equal to {{#limit}}`,"datetime.weekend":`{{#label}} is not a weekend`,"datetime.weekday":`{{#label}} is not a weekday`},Ro=(e,t,n)=>{switch(e=zo(e),t=zo(t),n){case`===`:return e.equals(t);case`=`:return e.hasSame(t,`millisecond`);case`>`:return e>t;case`<`:return e<t;case`>=`:return e>=t;case`<=`:return e<=t;default:return!1}},zo=(e,t)=>{if(No(e))return e;if(Mo(e,`Date`,Date))return z.fromJSDate(e);if(Mo(e,`Dayjs`,Io.Dayjs)||Io.default.isDayjs(e))return z.fromJSDate(e.toDate());if(Fo(e))return z.fromObject(e,{zone:`utc`});if(typeof e==`number`){let t=(0,Io.default)(e);if(t.isValid())return z.fromJSDate(t.toDate(),{zone:`utc`})}if(typeof e==`string`){if(t){let n=z.fromFormat(e,t,{zone:`utc`});if(n.isValid)return n}let n=[z.fromISO,z.fromRFC2822,z.fromHTTP,z.fromSQL];for(let t of n){let n=t(e,{zone:`utc`});if(n.isValid)return n}let r=(0,Io.default)(e);if(r.isValid())return z.fromJSDate(r.toDate(),{zone:`utc`})}return!1},Bo=(e,t)=>{let n=zo(e);if(n){let{schema:e,prefs:r}=t;if(r.convert){let t=n;if(e._flags.setZone)switch(e._flags.setZone){case`utc`:t=t.toUTC();break;case`local`:t=t.toLocal();break;default:t=t.setZone(e._flags.setZone);break}if(e._flags.setLocale&&(t=t.setLocale(e._flags.setLocale)),e._flags.toFormat)if(Array.isArray(e._flags.toFormat)){let n=Array.from(e._flags.toFormat),r=n.shift();t=t[r](...n)}else typeof e._flags.toFormat==`string`&&(t=t.toFormat(e._flags.toFormat));return{value:t}}return{value:n}}return{value:e,errors:[t.error(`datetime.base`,{value:String(e)})]}},Vo=function(e){return{type:`datetime`,base:e.any(),coerce:{from:[`string`,`number`,`date`,`object`],method:Bo},rules:{compare:{method:!1,validate(e,t,{limit:n},{name:r,operator:i}){let a=zo(e),o=zo(n);if(!a||!o)return t.error(`datetime.base`,{value:No(e)?e.toLocaleString(z.DATETIME_MED):String(e)});let s=Ro(a,o,i);return s?e:t.error(`datetime.`+r,{limit:o.toLocaleString(z.DATETIME_MED),value:a.toLocaleString(z.DATETIME_MED)})},args:[{name:`limit`,ref:!0,assert:e=>No(zo(e)),message:`must be a datetime`}]},exactly:{method(e){return this.$_addRule({name:`exactly`,method:`compare`,args:{limit:e},operator:`===`})}},equals:{method(e){return this.$_addRule({name:`equals`,method:`compare`,args:{limit:e},operator:`=`})}},after:{method(e){return this.$_addRule({name:`after`,method:`compare`,args:{limit:e},operator:`>`})}},greater:{method(e){return this.$_addRule({name:`greater`,method:`compare`,args:{limit:e},operator:`>`})}},before:{method(e){return this.$_addRule({name:`before`,method:`compare`,args:{limit:e},operator:`<`})}},less:{method(e){return this.$_addRule({name:`less`,method:`compare`,args:{limit:e},operator:`<`})}},afterOrEqual:{method(e){return this.$_addRule({name:`afterOrEqual`,method:`compare`,args:{limit:e},operator:`>=`})}},min:{method(e){return this.$_addRule({name:`min`,method:`compare`,args:{limit:e},operator:`>=`})}},beforeOrEqual:{method(e){return this.$_addRule({name:`beforeOrEqual`,method:`compare`,args:{limit:e},operator:`<=`})}},max:{method(e){return this.$_addRule({name:`max`,method:`compare`,args:{limit:e},operator:`<=`})}},weekend:{method(){return this.$_addRule({name:`weekend`})},validate(e,t){let n=zo(e);return n.isWeekend?e:t.error(`datetime.weekend`,{value:n.toLocaleString(z.DATE_MED)})}},weekday:{method(){return this.$_addRule({name:`weekday`})},validate(e,t){let n=zo(e);return n.isWeekend?t.error(`datetime.weekday`,{value:n.toLocaleString(z.DATE_MED)}):e}},toUTC:{method(){return this.$_setFlag(`setZone`,`utc`)}},toLocal:{method(){return this.$_setFlag(`setZone`,`local`)}},setZone:{method(e){return this.$_setFlag(`setZone`,e)}},toFormat:{method(e){return this.$_setFlag(`toFormat`,e,{clone:!0})}},toLocalizedString:{method(e){return this.$_setFlag(`toFormat`,[`toLocaleString`,e],{clone:!0})}},toISO:{method(){return this.$_setFlag(`toFormat`,[`toISO`],{clone:!0})}},toISODate:{method(){return this.$_setFlag(`toFormat`,[`toISODate`],{clone:!0})}},toISOWeekDate:{method(){return this.$_setFlag(`toFormat`,[`toISOWeekDate`],{clone:!0})}},toISOTime:{method(){return this.$_setFlag(`toFormat`,[`toISOTime`],{clone:!0})}},toRFC2822:{method(){return this.$_setFlag(`toFormat`,[`toRFC2822`],{clone:!0})}},toHTTP:{method(){return this.$_setFlag(`toFormat`,[`toHTTP`],{clone:!0})}},toSQLDate:{method(){return this.$_setFlag(`toFormat`,[`toSQLDate`],{clone:!0})}},toSQLTime:{method(){return this.$_setFlag(`toFormat`,[`toSQLTime`],{clone:!0})}},toSQL:{method(){return this.$_setFlag(`toFormat`,[`toSQL`],{clone:!0})}},toMillis:{method(){return this.$_setFlag(`toFormat`,[`toMillis`],{clone:!0})}},toSeconds:{method(){return this.$_setFlag(`toFormat`,[`toSeconds`],{clone:!0})}},toUnixInteger:{method(){return this.$_setFlag(`toFormat`,[`toUnixInteger`],{clone:!0})}},toJSON:{method(){return this.$_setFlag(`toFormat`,[`toJSON`],{clone:!0})}},toBSON:{method(){return this.$_setFlag(`toFormat`,[`toBSON`],{clone:!0})}},toObject:{method(){return this.$_setFlag(`toFormat`,[`toObject`,{includeConfig:!1}],{clone:!0})}},toJSDate:{method(){return this.$_setFlag(`toFormat`,[`toJSDate`],{clone:!0})}},toRelative:{method(){return this.$_setFlag(`toFormat`,[`toRelative`],{clone:!0})}},setLocale:{method(e){return this.$_setFlag(`setLocale`,e)}}},messages:Lo}};var Ho={};c(Ho,{default:()=>Hp});function B(){return Pd.apply(null,arguments)}function Uo(e){Pd=e}function Wo(e){return e instanceof Array||Object.prototype.toString.call(e)===`[object Array]`}function Go(e){return e!=null&&Object.prototype.toString.call(e)===`[object Object]`}function V(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ko(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;for(var t in e)if(V(e,t))return!1;return!0}function qo(e){return e===void 0}function Jo(e){return typeof e==`number`||Object.prototype.toString.call(e)===`[object Number]`}function Yo(e){return e instanceof Date||Object.prototype.toString.call(e)===`[object Date]`}function Xo(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function Zo(e,t){for(var n in t)V(t,n)&&(e[n]=t[n]);return V(t,`toString`)&&(e.toString=t.toString),V(t,`valueOf`)&&(e.valueOf=t.valueOf),e}function Qo(e,t,n,r){return cl(e,t,n,r,!0).utc()}function $o(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function H(e){return e._pf??=$o(),e._pf}function es(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=H(e),n=Fd.call(t.parsedDateParts,function(e){return e!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function ts(e){var t=Qo(NaN);return e==null?H(t).userInvalidated=!0:Zo(H(t),e),t}function ns(e,t){var n,r,i,a=Id.length;if(qo(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),qo(t._i)||(e._i=t._i),qo(t._f)||(e._f=t._f),qo(t._l)||(e._l=t._l),qo(t._strict)||(e._strict=t._strict),qo(t._tzm)||(e._tzm=t._tzm),qo(t._isUTC)||(e._isUTC=t._isUTC),qo(t._offset)||(e._offset=t._offset),qo(t._pf)||(e._pf=H(t)),qo(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)r=Id[n],i=t[r],qo(i)||(e[r]=i);return e}function rs(e){ns(this,e),this._d=new Date(e._d==null?NaN:e._d.getTime()),this.isValid()||(this._d=new Date(NaN)),Ld===!1&&(Ld=!0,B.updateOffset(this),Ld=!1)}function os(e){return e instanceof rs||e!=null&&e._isAMomentObject!=null}function ss(e){B.suppressDeprecationWarnings===!1&&typeof console<`u`&&console.warn&&console.warn(`Deprecation warning: `+e)}function cs(e,t){var n=!0;return Zo(function(){if(B.deprecationHandler!=null&&B.deprecationHandler(null,e),n){var r=[],i,a,o,s=arguments.length;for(a=0;a<s;a++){if(i=``,typeof arguments[a]==`object`){for(o in i+=`
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
`+Error().stack),n=!1}return t.apply(this,arguments)},t)}function ls(e,t){B.deprecationHandler!=null&&B.deprecationHandler(e,t),Rd[e]||(ss(t),Rd[e]=!0)}function us(e){return typeof Function<`u`&&e instanceof Function||Object.prototype.toString.call(e)===`[object Function]`}function ds(e){var t,n;for(n in e)V(e,n)&&(t=e[n],us(t)?this[n]=t:this[`_`+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+`|`+/\d{1,2}/.source)}function fs(e,t){var n=Zo({},e),r;for(r in t)V(t,r)&&(Go(e[r])&&Go(t[r])?(n[r]={},Zo(n[r],e[r]),Zo(n[r],t[r])):t[r]==null?delete n[r]:n[r]=t[r]);for(r in e)V(e,r)&&!V(t,r)&&Go(e[r])&&(n[r]=Zo({},n[r]));return n}function ps(e){e!=null&&this.set(e)}function ms(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return us(r)?r.call(t,n):r}function hs(e,t,n){var r=``+Math.abs(e),i=t-r.length,a=e>=0;return(a?n?`+`:``:`-`)+(10**Math.max(0,i)).toString().substr(1)+r}function U(e,t,n,r){var i=r;typeof r==`string`&&(i=function(){return this[r]()}),e&&(Wd[e]=i),t&&(Wd[t[0]]=function(){return hs(i.apply(this,arguments),t[1],t[2])}),n&&(Wd[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function gs(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,``):e.replace(/\\/g,``)}function _s(e){var t=e.match(Vd),n,r;for(n=0,r=t.length;n<r;n++)Wd[t[n]]?t[n]=Wd[t[n]]:t[n]=gs(t[n]);return function(n){var i=``,a;for(a=0;a<r;a++)i+=us(t[a])?t[a].call(n,e):t[a];return i}}function vs(e,t){return e.isValid()?(t=ys(t,e.localeData()),Ud[t]=Ud[t]||_s(t),Ud[t](e)):e.localeData().invalidDate()}function ys(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(Hd.lastIndex=0;n>=0&&Hd.test(e);)e=e.replace(Hd,r),Hd.lastIndex=0,--n;return e}function bs(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Vd).map(function(e){return e===`MMMM`||e===`MM`||e===`DD`||e===`dddd`?e.slice(1):e}).join(``),this._longDateFormat[e])}function xs(){return this._invalidDate}function Ss(e){return this._ordinal.replace(`%d`,e)}function Cs(e,t,n,r){var i=this._relativeTime[n];return us(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ws(e,t){var n=this._relativeTime[e>0?`future`:`past`];return us(n)?n(t):n.replace(/%s/i,t)}function Ts(e){return typeof e==`string`?Xd[e]||Xd[e.toLowerCase()]:void 0}function Es(e){var t={},n,r;for(r in e)V(e,r)&&(n=Ts(r),n&&(t[n]=e[r]));return t}function Ds(e){var t=[],n;for(n in e)V(e,n)&&t.push({unit:n,priority:Zd[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function W(e,t,n){vf[e]=us(t)?t:function(e,r){return e&&n?n:t}}function Os(e,t){return V(vf,e)?vf[e](t._strict,t._locale):new RegExp(ks(e))}function ks(e){return As(e.replace(`\\`,``).replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function As(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,`\\$&`)}function js(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function G(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=js(t)),n}function K(e,t){var n,r=t,i;for(typeof e==`string`&&(e=[e]),Jo(t)&&(r=function(e,n){n[t]=G(e)}),i=e.length,n=0;n<i;n++)yf[e[n]]=r}function Ms(e,t){K(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function Ns(e,t,n){t!=null&&V(yf,e)&&yf[e](t,n._a,n,e)}function Ps(e){return e%4==0&&e%100!=0||e%400==0}function Fs(e){return Ps(e)?366:365}function Is(){return Ps(this.year())}function Ls(e,t){return function(n){return n==null?Rs(this,e):(zs(this,e,n),B.updateOffset(this,t),this)}}function Rs(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case`Milliseconds`:return r?n.getUTCMilliseconds():n.getMilliseconds();case`Seconds`:return r?n.getUTCSeconds():n.getSeconds();case`Minutes`:return r?n.getUTCMinutes():n.getMinutes();case`Hours`:return r?n.getUTCHours():n.getHours();case`Date`:return r?n.getUTCDate():n.getDate();case`Day`:return r?n.getUTCDay():n.getDay();case`Month`:return r?n.getUTCMonth():n.getMonth();case`FullYear`:return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function zs(e,t,n){var r,i,a,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case`Milliseconds`:return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case`Seconds`:return void(i?r.setUTCSeconds(n):r.setSeconds(n));case`Minutes`:return void(i?r.setUTCMinutes(n):r.setMinutes(n));case`Hours`:return void(i?r.setUTCHours(n):r.setHours(n));case`Date`:return void(i?r.setUTCDate(n):r.setDate(n));case`FullYear`:break;default:return}a=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!Ps(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function Bs(e){return e=Ts(e),us(this[e])?this[e]():this}function Vs(e,t){if(typeof e==`object`){e=Es(e);var n=Ds(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=Ts(e),us(this[e]))return this[e](t);return this}function Hs(e,t){return(e%t+t)%t}function Us(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Hs(t,12);return e+=(t-n)/12,n===1?Ps(e)?29:28:31-n%7%2}function Ws(e,t){return e?Wo(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Nf).test(t)?`format`:`standalone`][e.month()]:Wo(this._months)?this._months:this._months.standalone}function Gs(e,t){return e?Wo(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Nf.test(t)?`format`:`standalone`][e.month()]:Wo(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Ks(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=Qo([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,``).toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,``).toLocaleLowerCase();return n?t===`MMM`?(i=Af.call(this._shortMonthsParse,o),i===-1?null:i):(i=Af.call(this._longMonthsParse,o),i===-1?null:i):t===`MMM`?(i=Af.call(this._shortMonthsParse,o),i===-1?(i=Af.call(this._longMonthsParse,o),i===-1?null:i):i):(i=Af.call(this._longMonthsParse,o),i===-1?(i=Af.call(this._shortMonthsParse,o),i===-1?null:i):i)}function qs(e,t,n){var r,i,a;if(this._monthsParseExact)return Ks.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if(i=Qo([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=RegExp(`^`+this.months(i,``).replace(`.`,``)+`$`,`i`),this._shortMonthsParse[r]=RegExp(`^`+this.monthsShort(i,``).replace(`.`,``)+`$`,`i`)),!n&&!this._monthsParse[r]&&(a=`^`+this.months(i,``)+`|^`+this.monthsShort(i,``),this._monthsParse[r]=new RegExp(a.replace(`.`,``),`i`)),n&&t===`MMMM`&&this._longMonthsParse[r].test(e)||n&&t===`MMM`&&this._shortMonthsParse[r].test(e)||!n&&this._monthsParse[r].test(e))return r}function Js(e,t){if(!e.isValid())return e;if(typeof t==`string`){if(/^\d+$/.test(t))t=G(t);else if(t=e.localeData().monthsParse(t),!Jo(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,Us(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Ys(e){return e==null?Rs(this,`Month`):(Js(this,e),B.updateOffset(this,!0),this)}function Xs(){return Us(this.year(),this.month())}function Zs(e){return this._monthsParseExact?(V(this,`_monthsRegex`)||$s.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(V(this,`_monthsShortRegex`)||(this._monthsShortRegex=Pf),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Qs(e){return this._monthsParseExact?(V(this,`_monthsRegex`)||$s.call(this),e?this._monthsStrictRegex:this._monthsRegex):(V(this,`_monthsRegex`)||(this._monthsRegex=Ff),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function $s(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i,a,o,s;for(i=0;i<12;i++)a=Qo([2e3,i]),o=As(this.monthsShort(a,``)),s=As(this.months(a,``)),t.push(o),n.push(s),r.push(s),r.push(o);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`),this._monthsShortStrictRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`)}function ec(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function tc(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function nc(e,t,n){var r=7+t-n,i=(7+tc(e,0,r).getUTCDay()-t)%7;return-i+r-1}function rc(e,t,n,r,i){var a=(7+n-r)%7,o=nc(e,r,i),s=1+7*(t-1)+a+o,c,l;return s<=0?(c=e-1,l=Fs(c)+s):s>Fs(e)?(c=e+1,l=s-Fs(e)):(c=e,l=s),{year:c,dayOfYear:l}}function ic(e,t,n){var r=nc(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+ac(o,t,n)):i>ac(e.year(),t,n)?(a=i-ac(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function ac(e,t,n){var r=nc(e,t,n),i=nc(e+1,t,n);return(Fs(e)-r+i)/7}function oc(e){return ic(e,this._week.dow,this._week.doy).week}function sc(){return this._week.dow}function cc(){return this._week.doy}function lc(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,`d`)}function uc(e){var t=ic(this,1,4).week;return e==null?t:this.add((e-t)*7,`d`)}function dc(e,t){return typeof e==`string`?isNaN(e)?(e=t.weekdaysParse(e),typeof e==`number`?e:null):parseInt(e,10):e}function fc(e,t){return typeof e==`string`?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function pc(e,t){return e.slice(t,7).concat(e.slice(0,t))}function mc(e,t){var n=Wo(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?`format`:`standalone`];return e===!0?pc(n,this._week.dow):e?n[e.day()]:n}function hc(e){return e===!0?pc(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function gc(e){return e===!0?pc(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function _c(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Qo([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,``).toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,``).toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,``).toLocaleLowerCase();return n?t===`dddd`?(i=Af.call(this._weekdaysParse,o),i===-1?null:i):t===`ddd`?(i=Af.call(this._shortWeekdaysParse,o),i===-1?null:i):(i=Af.call(this._minWeekdaysParse,o),i===-1?null:i):t===`dddd`?(i=Af.call(this._weekdaysParse,o),i!==-1||(i=Af.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=Af.call(this._minWeekdaysParse,o),i===-1?null:i)):t===`ddd`?(i=Af.call(this._shortWeekdaysParse,o),i!==-1||(i=Af.call(this._weekdaysParse,o),i!==-1)?i:(i=Af.call(this._minWeekdaysParse,o),i===-1?null:i)):(i=Af.call(this._minWeekdaysParse,o),i!==-1||(i=Af.call(this._weekdaysParse,o),i!==-1)?i:(i=Af.call(this._shortWeekdaysParse,o),i===-1?null:i))}function vc(e,t,n){var r,i,a;if(this._weekdaysParseExact)return _c.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if(i=Qo([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=RegExp(`^`+this.weekdays(i,``).replace(`.`,`\\.?`)+`$`,`i`),this._shortWeekdaysParse[r]=RegExp(`^`+this.weekdaysShort(i,``).replace(`.`,`\\.?`)+`$`,`i`),this._minWeekdaysParse[r]=RegExp(`^`+this.weekdaysMin(i,``).replace(`.`,`\\.?`)+`$`,`i`)),this._weekdaysParse[r]||(a=`^`+this.weekdays(i,``)+`|^`+this.weekdaysShort(i,``)+`|^`+this.weekdaysMin(i,``),this._weekdaysParse[r]=new RegExp(a.replace(`.`,``),`i`)),n&&t===`dddd`&&this._fullWeekdaysParse[r].test(e)||n&&t===`ddd`&&this._shortWeekdaysParse[r].test(e)||n&&t===`dd`&&this._minWeekdaysParse[r].test(e)||!n&&this._weekdaysParse[r].test(e))return r}function yc(e){if(!this.isValid())return e==null?NaN:this;var t=Rs(this,`Day`);return e==null?t:(e=dc(e,this.localeData()),this.add(e-t,`d`))}function bc(e){if(!this.isValid())return e==null?NaN:this;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,`d`)}function xc(e){if(!this.isValid())return e==null?NaN:this;if(e!=null){var t=fc(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Sc(e){return this._weekdaysParseExact?(V(this,`_weekdaysRegex`)||Tc.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(V(this,`_weekdaysRegex`)||(this._weekdaysRegex=Bf),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Cc(e){return this._weekdaysParseExact?(V(this,`_weekdaysRegex`)||Tc.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(V(this,`_weekdaysShortRegex`)||(this._weekdaysShortRegex=Vf),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function wc(e){return this._weekdaysParseExact?(V(this,`_weekdaysRegex`)||Tc.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(V(this,`_weekdaysMinRegex`)||(this._weekdaysMinRegex=Hf),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Tc(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i=[],a,o,s,c,l;for(a=0;a<7;a++)o=Qo([2e3,1]).day(a),s=As(this.weekdaysMin(o,``)),c=As(this.weekdaysShort(o,``)),l=As(this.weekdays(o,``)),t.push(s),n.push(c),r.push(l),i.push(s),i.push(c),i.push(l);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=RegExp(`^(`+i.join(`|`)+`)`,`i`),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._weekdaysShortStrictRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`),this._weekdaysMinStrictRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`)}function Ec(){return this.hours()%12||12}function Dc(){return this.hours()||24}function Oc(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function kc(e,t){return t._meridiemParse}function Ac(e){return(e+``).toLowerCase().charAt(0)===`p`}function jc(e,t,n){return e>11?n?`pm`:`PM`:n?`am`:`AM`}function Mc(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Nc(e){return e&&e.toLowerCase().replace(`_`,`-`)}function Pc(e){for(var t=0,n,r,i,a;t<e.length;){for(a=Nc(e[t]).split(`-`),n=a.length,r=Nc(e[t+1]),r=r?r.split(`-`):null;n>0;){if(i=Ic(a.slice(0,n).join(`-`)),i)return i;if(r&&r.length>=n&&Mc(a,r)>=n-1)break;n--}t++}return qf}function Fc(e){return!!(e&&e.match(`^[^/\\\\]*$`))}function Ic(e){var t=null,n;if(Y[e]===void 0&&typeof module<`u`&&module&&module.exports&&Fc(e))try{t=qf._abbr,n=require,n(`./locale/`+e),Lc(t)}catch{Y[e]=null}return Y[e]}function Lc(e,t){var n;return e&&(n=qo(t)?Bc(e):Rc(e,t),n?qf=n:typeof console<`u`&&console.warn&&console.warn(`Locale `+e+` not found. Did you forget to load it?`)),qf._abbr}function Rc(e,t){if(t!==null){var n,r=Gf;if(t.abbr=e,Y[e]!=null)ls(`defineLocaleOverride`,`use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.`),r=Y[e]._config;else if(t.parentLocale!=null)if(Y[t.parentLocale]!=null)r=Y[t.parentLocale]._config;else if(n=Ic(t.parentLocale),n!=null)r=n._config;else return Kf[t.parentLocale]||(Kf[t.parentLocale]=[]),Kf[t.parentLocale].push({name:e,config:t}),null;return Y[e]=new ps(fs(r,t)),Kf[e]&&Kf[e].forEach(function(e){Rc(e.name,e.config)}),Lc(e),Y[e]}else return delete Y[e],null}function zc(e,t){if(t!=null){var n,r,i=Gf;Y[e]!=null&&Y[e].parentLocale!=null?Y[e].set(fs(Y[e]._config,t)):(r=Ic(e),r!=null&&(i=r._config),t=fs(i,t),r??(t.abbr=e),n=new ps(t),n.parentLocale=Y[e],Y[e]=n),Lc(e)}else Y[e]!=null&&(Y[e].parentLocale==null?Y[e]!=null&&delete Y[e]:(Y[e]=Y[e].parentLocale,e===Lc()&&Lc(e)));return Y[e]}function Bc(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return qf;if(!Wo(e)){if(t=Ic(e),t)return t;e=[e]}return Pc(e)}function Vc(){return zd(Y)}function Hc(e){var t,n=e._a;return n&&H(e).overflow===-2&&(t=n[xf]<0||n[xf]>11?xf:n[Sf]<1||n[Sf]>Us(n[bf],n[xf])?Sf:n[Cf]<0||n[Cf]>24||n[Cf]===24&&(n[wf]!==0||n[Tf]!==0||n[Ef]!==0)?Cf:n[wf]<0||n[wf]>59?wf:n[Tf]<0||n[Tf]>59?Tf:n[Ef]<0||n[Ef]>999?Ef:-1,H(e)._overflowDayOfYear&&(t<bf||t>Sf)&&(t=Sf),H(e)._overflowWeeks&&t===-1&&(t=Df),H(e)._overflowWeekday&&t===-1&&(t=Of),H(e).overflow=t),e}function Uc(e){var t,n,r=e._i,i=Jf.exec(r)||Yf.exec(r),a,o,s,c,l=Zf.length,u=Qf.length;if(i){for(H(e).iso=!0,t=0,n=l;t<n;t++)if(Zf[t][1].exec(i[1])){o=Zf[t][0],a=Zf[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(i[3]){for(t=0,n=u;t<n;t++)if(Qf[t][1].exec(i[3])){s=(i[2]||` `)+Qf[t][0];break}if(s==null){e._isValid=!1;return}}if(!a&&s!=null){e._isValid=!1;return}if(i[4])if(Xf.exec(i[4]))c=`Z`;else{e._isValid=!1;return}e._f=o+(s||``)+(c||``),tl(e)}else e._isValid=!1}function Wc(e,t,n,r,i,a){var o=[Gc(e),Mf.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Gc(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Kc(e){return e.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function qc(e,t,n){if(e){var r=Rf.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return H(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Jc(e,t,n){if(e)return tp[e];if(t)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return a*60+i}function Yc(e){var t=ep.exec(Kc(e._i)),n;if(t){if(n=Wc(t[4],t[3],t[2],t[5],t[6],t[7]),!qc(t[1],n,e))return;e._a=n,e._tzm=Jc(t[8],t[9],t[10]),e._d=tc.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),H(e).rfc2822=!0}else e._isValid=!1}function Xc(e){var t=$f.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Uc(e),e._isValid===!1)delete e._isValid;else return;if(Yc(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:B.createFromInputFallback(e)}function Zc(e,t,n){return e??t??n}function Qc(e){var t=new Date(B.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function $c(e){var t,n,r=[],i,a,o;if(!e._d){for(i=Qc(e),e._w&&e._a[Sf]==null&&e._a[xf]==null&&el(e),e._dayOfYear!=null&&(o=Zc(e._a[bf],i[bf]),(e._dayOfYear>Fs(o)||e._dayOfYear===0)&&(H(e)._overflowDayOfYear=!0),n=tc(o,0,e._dayOfYear),e._a[xf]=n.getUTCMonth(),e._a[Sf]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Cf]===24&&e._a[wf]===0&&e._a[Tf]===0&&e._a[Ef]===0&&(e._nextDay=!0,e._a[Cf]=0),e._d=(e._useUTC?tc:ec).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Cf]=24),e._w&&e._w.d!==void 0&&e._w.d!==a&&(H(e).weekdayMismatch=!0)}}function el(e){var t,n,r,i,a,o,s,c,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,n=Zc(t.GG,e._a[bf],ic(q(),1,4).year),r=Zc(t.W,1),i=Zc(t.E,1),(i<1||i>7)&&(c=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,l=ic(q(),a,o),n=Zc(t.gg,e._a[bf],l.year),r=Zc(t.w,l.week),t.d==null?t.e==null?i=a:(i=t.e+a,(t.e<0||t.e>6)&&(c=!0)):(i=t.d,(i<0||i>6)&&(c=!0))),r<1||r>ac(n,a,o)?H(e)._overflowWeeks=!0:c==null?(s=rc(n,r,i,a,o),e._a[bf]=s.year,e._dayOfYear=s.dayOfYear):H(e)._overflowWeekday=!0}function tl(e){if(e._f===B.ISO_8601){Uc(e);return}if(e._f===B.RFC_2822){Yc(e);return}e._a=[],H(e).empty=!0;var t=``+e._i,n,r,i,a,o,s=t.length,c=0,l,u;for(i=ys(e._f,e._locale).match(Vd)||[],u=i.length,n=0;n<u;n++)a=i[n],r=(t.match(Os(a,e))||[])[0],r&&(o=t.substr(0,t.indexOf(r)),o.length>0&&H(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),c+=r.length),Wd[a]?(r?H(e).empty=!1:H(e).unusedTokens.push(a),Ns(a,r,e)):e._strict&&!r&&H(e).unusedTokens.push(a);H(e).charsLeftOver=s-c,t.length>0&&H(e).unusedInput.push(t),e._a[Cf]<=12&&H(e).bigHour===!0&&e._a[Cf]>0&&(H(e).bigHour=void 0),H(e).parsedDateParts=e._a.slice(0),H(e).meridiem=e._meridiem,e._a[Cf]=nl(e._locale,e._a[Cf],e._meridiem),l=H(e).era,l!==null&&(e._a[bf]=e._locale.erasConvertYear(l,e._a[bf])),$c(e),Hc(e)}function nl(e,t,n){var r;return n==null?t:e.meridiemHour==null?e.isPM==null?t:(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0),t):e.meridiemHour(t,n)}function rl(e){var t,n,r,i,a,o,s=!1,c=e._f.length;if(c===0){H(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)a=0,o=!1,t=ns({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],tl(t),es(t)&&(o=!0),a+=H(t).charsLeftOver,a+=H(t).unusedTokens.length*10,H(t).score=a,s?a<r&&(r=a,n=t):(r==null||a<r||o)&&(r=a,n=t,o&&(s=!0));Zo(e,n||t)}function il(e){if(!e._d){var t=Es(e._i),n=t.day===void 0?t.date:t.day;e._a=Xo([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),$c(e)}}function al(e){var t=new rs(Hc(ol(e)));return t._nextDay&&(t.add(1,`d`),t._nextDay=void 0),t}function ol(e){var t=e._i,n=e._f;return e._locale=e._locale||Bc(e._l),t===null||n===void 0&&t===``?ts({nullInput:!0}):(typeof t==`string`&&(e._i=t=e._locale.preparse(t)),os(t)?new rs(Hc(t)):(Yo(t)?e._d=t:Wo(n)?rl(e):n?tl(e):sl(e),es(e)||(e._d=null),e))}function sl(e){var t=e._i;qo(t)?e._d=new Date(B.now()):Yo(t)?e._d=new Date(t.valueOf()):typeof t==`string`?Xc(e):Wo(t)?(e._a=Xo(t.slice(0),function(e){return parseInt(e,10)}),$c(e)):Go(t)?il(e):Jo(t)?e._d=new Date(t):B.createFromInputFallback(e)}function cl(e,t,n,r,i){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Go(e)&&Ko(e)||Wo(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,al(a)}function q(e,t,n,r){return cl(e,t,n,r,!1)}function ll(e,t){var n,r;if(t.length===1&&Wo(t[0])&&(t=t[0]),!t.length)return q();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function ul(){var e=[].slice.call(arguments,0);return ll(`isBefore`,e)}function dl(){var e=[].slice.call(arguments,0);return ll(`isAfter`,e)}function fl(e){var t,n=!1,r,i=ap.length;for(t in e)if(V(e,t)&&!(Af.call(ap,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[ap[r]]){if(n)return!1;parseFloat(e[ap[r]])!==G(e[ap[r]])&&(n=!0)}return!0}function pl(){return this._isValid}function ml(){return Pl(NaN)}function hl(e){var t=Es(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=fl(t),this._milliseconds=+u+l*1e3+c*6e4+s*1e3*60*60,this._days=+o+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=Bc(),this._bubble()}function gl(e){return e instanceof hl}function _l(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function vl(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0,o;for(o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&G(e[o])!==G(t[o]))&&a++;return a+i}function yl(e,t){U(e,0,0,function(){var e=this.utcOffset(),n=`+`;return e<0&&(e=-e,n=`-`),n+hs(~~(e/60),2)+t+hs(~~e%60,2)})}function bl(e,t){var n=(t||``).match(e),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+``).match(op)||[`-`,0,0],a=+(i[1]*60)+G(i[2]),a===0?0:i[0]===`+`?a:-a)}function xl(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(os(e)||Yo(e)?e.valueOf():q(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),B.updateOffset(n,!1),n):q(e).local()}function Sl(e){return-Math.round(e._d.getTimezoneOffset())}function Cl(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e==null?NaN:this;if(e!=null){if(typeof e==`string`){if(e=bl(pf,e),e===null)return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Sl(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,`m`),r!==e&&(!t||this._changeInProgress?zl(this,Pl(e-r,`m`),1,!1):this._changeInProgress||(this._changeInProgress=!0,B.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Sl(this)}function wl(e,t){return e==null?-this.utcOffset():(typeof e!=`string`&&(e=-e),this.utcOffset(e,t),this)}function Tl(e){return this.utcOffset(0,e)}function El(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Sl(this),`m`)),this}function Dl(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i==`string`){var e=bl(ff,this._i);e==null?this.utcOffset(0,!0):this.utcOffset(e)}return this}function Ol(e){return this.isValid()?(e=e?q(e).utcOffset():0,(this.utcOffset()-e)%60==0):!1}function kl(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Al(){if(!qo(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ns(e,this),e=ol(e),e._a?(t=e._isUTC?Qo(e._a):q(e._a),this._isDSTShifted=this.isValid()&&vl(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function jl(){return this.isValid()?!this._isUTC:!1}function Ml(){return this.isValid()?this._isUTC:!1}function Nl(){return this.isValid()?this._isUTC&&this._offset===0:!1}function Pl(e,t){var n=e,r=null,i,a,o;return gl(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Jo(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=sp.exec(e))?(i=r[1]===`-`?-1:1,n={y:0,d:G(r[Sf])*i,h:G(r[Cf])*i,m:G(r[wf])*i,s:G(r[Tf])*i,ms:G(_l(r[Ef]*1e3))*i}):(r=cp.exec(e))?(i=r[1]===`-`?-1:1,n={y:Fl(r[2],i),M:Fl(r[3],i),w:Fl(r[4],i),d:Fl(r[5],i),h:Fl(r[6],i),m:Fl(r[7],i),s:Fl(r[8],i)}):n==null?n={}:typeof n==`object`&&(`from`in n||`to`in n)&&(o=Ll(q(n.from),q(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),a=new hl(n),gl(e)&&V(e,`_locale`)&&(a._locale=e._locale),gl(e)&&V(e,`_isValid`)&&(a._isValid=e._isValid),a}function Fl(e,t){var n=e&&parseFloat(e.replace(`,`,`.`));return(isNaN(n)?0:n)*t}function Il(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,`M`).isAfter(t)&&--n.months,n.milliseconds=t-+e.clone().add(n.months,`M`),n}function Ll(e,t){var n;return e.isValid()&&t.isValid()?(t=xl(t,e),e.isBefore(t)?n=Il(e,t):(n=Il(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Rl(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(ls(t,`moment().`+t+`(period, number) is deprecated. Please use moment().`+t+`(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.`),a=n,n=r,r=a),i=Pl(n,r),zl(this,i,e),this}}function zl(e,t,n,r){var i=t._milliseconds,a=_l(t._days),o=_l(t._months);e.isValid()&&(r??=!0,o&&Js(e,Rs(e,`Month`)+o*n),a&&zs(e,`Date`,Rs(e,`Date`)+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&B.updateOffset(e,a||o))}function Bl(e){return typeof e==`string`||e instanceof String}function Vl(e){return os(e)||Yo(e)||Bl(e)||Jo(e)||Ul(e)||Hl(e)||e==null}function Hl(e){var t=Go(e)&&!Ko(e),n=!1,r=[`years`,`year`,`y`,`months`,`month`,`M`,`days`,`day`,`d`,`dates`,`date`,`D`,`hours`,`hour`,`h`,`minutes`,`minute`,`m`,`seconds`,`second`,`s`,`milliseconds`,`millisecond`,`ms`],i,a,o=r.length;for(i=0;i<o;i+=1)a=r[i],n||=V(e,a);return t&&n}function Ul(e){var t=Wo(e),n=!1;return t&&(n=e.filter(function(t){return!Jo(t)&&Bl(e)}).length===0),t&&n}function Wl(e){var t=Go(e)&&!Ko(e),n=!1,r=[`sameDay`,`nextDay`,`lastDay`,`nextWeek`,`lastWeek`,`sameElse`],i,a;for(i=0;i<r.length;i+=1)a=r[i],n||=V(e,a);return t&&n}function Gl(e,t){var n=e.diff(t,`days`,!0);return n<-6?`sameElse`:n<-1?`lastWeek`:n<0?`lastDay`:n<1?`sameDay`:n<2?`nextDay`:n<7?`nextWeek`:`sameElse`}function Kl(e,t){arguments.length===1&&(arguments[0]?Vl(arguments[0])?(e=arguments[0],t=void 0):Wl(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||q(),r=xl(n,this).startOf(`day`),i=B.calendarFormat(this,r)||`sameElse`,a=t&&(us(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,q(n)))}function ql(){return new rs(this)}function Jl(e,t){var n=os(e)?e:q(e);return this.isValid()&&n.isValid()?(t=Ts(t)||`millisecond`,t===`millisecond`?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Yl(e,t){var n=os(e)?e:q(e);return this.isValid()&&n.isValid()?(t=Ts(t)||`millisecond`,t===`millisecond`?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Xl(e,t,n,r){var i=os(e)?e:q(e),a=os(t)?t:q(t);return this.isValid()&&i.isValid()&&a.isValid()?(r||=`()`,(r[0]===`(`?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===`)`?this.isBefore(a,n):!this.isAfter(a,n))):!1}function Zl(e,t){var n=os(e)?e:q(e),r;return this.isValid()&&n.isValid()?(t=Ts(t)||`millisecond`,t===`millisecond`?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Ql(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function $l(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function eu(e,t,n){var r,i,a;if(!this.isValid()||(r=xl(e,this),!r.isValid()))return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=Ts(t),t){case`year`:a=tu(this,r)/12;break;case`month`:a=tu(this,r);break;case`quarter`:a=tu(this,r)/3;break;case`second`:a=(this-r)/1e3;break;case`minute`:a=(this-r)/6e4;break;case`hour`:a=(this-r)/36e5;break;case`day`:a=(this-r-i)/864e5;break;case`week`:a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:js(a)}function tu(e,t){if(e.date()<t.date())return-tu(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,`months`),i,a;return t-r<0?(i=e.clone().add(n-1,`months`),a=(t-r)/(r-i)):(i=e.clone().add(n+1,`months`),a=(t-r)/(i-r)),-(n+a)||0}function nu(){return this.clone().locale(`en`).format(`ddd MMM DD YYYY HH:mm:ss [GMT]ZZ`)}function ru(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?vs(n,t?`YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]`:`YYYYYY-MM-DD[T]HH:mm:ss.SSSZ`):us(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace(`Z`,vs(n,`Z`)):vs(n,t?`YYYY-MM-DD[T]HH:mm:ss.SSS[Z]`:`YYYY-MM-DD[T]HH:mm:ss.SSSZ`)}function iu(){if(!this.isValid())return`moment.invalid(/* `+this._i+` */)`;var e=`moment`,t=``,n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?`moment.utc`:`moment.parseZone`,t=`Z`),n=`[`+e+`("]`,r=0<=this.year()&&this.year()<=9999?`YYYY`:`YYYYYY`,i=`-MM-DD[T]HH:mm:ss.SSS`,a=t+`[")]`,this.format(n+r+i+a)}function au(e){e||=this.isUtc()?B.defaultFormatUtc:B.defaultFormat;var t=vs(this,e);return this.localeData().postformat(t)}function ou(e,t){return this.isValid()&&(os(e)&&e.isValid()||q(e).isValid())?Pl({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function su(e){return this.from(q(),e)}function cu(e,t){return this.isValid()&&(os(e)&&e.isValid()||q(e).isValid())?Pl({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function lu(e){return this.to(q(),e)}function uu(e){var t;return e===void 0?this._locale._abbr:(t=Bc(e),t!=null&&(this._locale=t),this)}function du(){return this._locale}function fu(e,t){return(e%t+t)%t}function pu(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-hp:new Date(e,t,n).valueOf()}function mu(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hp:Date.UTC(e,t,n)}function hu(e){var t,n;if(e=Ts(e),e===void 0||e===`millisecond`||!this.isValid())return this;switch(n=this._isUTC?mu:pu,e){case`year`:t=n(this.year(),0,1);break;case`quarter`:t=n(this.year(),this.month()-this.month()%3,1);break;case`month`:t=n(this.year(),this.month(),1);break;case`week`:t=n(this.year(),this.month(),this.date()-this.weekday());break;case`isoWeek`:t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case`day`:case`date`:t=n(this.year(),this.month(),this.date());break;case`hour`:t=this._d.valueOf(),t-=fu(t+(this._isUTC?0:this.utcOffset()*pp),mp);break;case`minute`:t=this._d.valueOf(),t-=fu(t,pp);break;case`second`:t=this._d.valueOf(),t-=fu(t,fp);break}return this._d.setTime(t),B.updateOffset(this,!0),this}function gu(e){var t,n;if(e=Ts(e),e===void 0||e===`millisecond`||!this.isValid())return this;switch(n=this._isUTC?mu:pu,e){case`year`:t=n(this.year()+1,0,1)-1;break;case`quarter`:t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case`month`:t=n(this.year(),this.month()+1,1)-1;break;case`week`:t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case`isoWeek`:t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case`day`:case`date`:t=n(this.year(),this.month(),this.date()+1)-1;break;case`hour`:t=this._d.valueOf(),t+=mp-fu(t+(this._isUTC?0:this.utcOffset()*pp),mp)-1;break;case`minute`:t=this._d.valueOf(),t+=pp-fu(t,pp)-1;break;case`second`:t=this._d.valueOf(),t+=fp-fu(t,fp)-1;break}return this._d.setTime(t),B.updateOffset(this,!0),this}function _u(){return this._d.valueOf()-(this._offset||0)*6e4}function vu(){return Math.floor(this.valueOf()/1e3)}function yu(){return new Date(this.valueOf())}function bu(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xu(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Su(){return this.isValid()?this.toISOString():null}function Cu(){return es(this)}function wu(){return Zo({},H(this))}function Tu(){return H(this).overflow}function Eu(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Du(e,t){var n,r,i,a=this._eras||Bc(`en`)._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case`string`:i=B(a[n].since).startOf(`day`),a[n].since=i.valueOf();break}switch(typeof a[n].until){case`undefined`:a[n].until=1/0;break;case`string`:i=B(a[n].until).startOf(`day`).valueOf(),a[n].until=i.valueOf();break}}return a}function Ou(e,t,n){var r,i,a=this.eras(),o,s,c;for(e=e.toUpperCase(),r=0,i=a.length;r<i;++r)if(o=a[r].name.toUpperCase(),s=a[r].abbr.toUpperCase(),c=a[r].narrow.toUpperCase(),n)switch(t){case`N`:case`NN`:case`NNN`:if(s===e)return a[r];break;case`NNNN`:if(o===e)return a[r];break;case`NNNNN`:if(c===e)return a[r];break}else if([o,s,c].indexOf(e)>=0)return a[r]}function ku(e,t){var n=e.since<=e.until?1:-1;return t===void 0?B(e.since).year():B(e.since).year()+(t-e.offset)*n}function Au(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf(`day`).valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return``}function ju(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf(`day`).valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return``}function Mu(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf(`day`).valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return``}function Nu(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf(`day`).valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-B(i[e].since).year())*n+i[e].offset;return this.year()}function Pu(e){return V(this,`_erasNameRegex`)||Vu.call(this),e?this._erasNameRegex:this._erasRegex}function Fu(e){return V(this,`_erasAbbrRegex`)||Vu.call(this),e?this._erasAbbrRegex:this._erasRegex}function Iu(e){return V(this,`_erasNarrowRegex`)||Vu.call(this),e?this._erasNarrowRegex:this._erasRegex}function Lu(e,t){return t.erasAbbrRegex(e)}function Ru(e,t){return t.erasNameRegex(e)}function zu(e,t){return t.erasNarrowRegex(e)}function Bu(e,t){return t._eraYearOrdinalRegex||uf}function Vu(){var e=[],t=[],n=[],r=[],i,a,o,s,c,l=this.eras();for(i=0,a=l.length;i<a;++i)o=As(l[i].name),s=As(l[i].abbr),c=As(l[i].narrow),t.push(o),e.push(s),n.push(c),r.push(o),r.push(s),r.push(c);this._erasRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._erasNameRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`),this._erasAbbrRegex=RegExp(`^(`+e.join(`|`)+`)`,`i`),this._erasNarrowRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`)}function Hu(e,t){U(0,[e,e.length],0,t)}function Uu(e){return Yu.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Wu(e){return Yu.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Gu(){return ac(this.year(),1,4)}function Ku(){return ac(this.isoWeekYear(),1,4)}function qu(){var e=this.localeData()._week;return ac(this.year(),e.dow,e.doy)}function Ju(){var e=this.localeData()._week;return ac(this.weekYear(),e.dow,e.doy)}function Yu(e,t,n,r,i){var a;return e==null?ic(this,r,i).year:(a=ac(e,r,i),t>a&&(t=a),Xu.call(this,e,t,n,r,i))}function Xu(e,t,n,r,i){var a=rc(e,t,n,r,i),o=tc(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Zu(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}function Qu(e){var t=Math.round((this.clone().startOf(`day`)-this.clone().startOf(`year`))/864e5)+1;return e==null?t:this.add(e-t,`d`)}function $u(e,t){t[Ef]=G((`0.`+e)*1e3)}function ed(){return this._isUTC?`UTC`:``}function td(){return this._isUTC?`Coordinated Universal Time`:``}function nd(e){return q(e*1e3)}function rd(){return q.apply(null,arguments).parseZone()}function id(e){return e}function ad(e,t,n,r){var i=Bc(),a=Qo().set(r,t);return i[n](a,e)}function od(e,t,n){if(Jo(e)&&(t=e,e=void 0),e||=``,t!=null)return ad(e,t,n,`month`);var r,i=[];for(r=0;r<12;r++)i[r]=ad(e,r,n,`month`);return i}function sd(e,t,n,r){typeof e==`boolean`?(Jo(t)&&(n=t,t=void 0),t||=``):(t=e,n=t,e=!1,Jo(t)&&(n=t,t=void 0),t||=``);var i=Bc(),a=e?i._week.dow:0,o,s=[];if(n!=null)return ad(t,(n+a)%7,r,`day`);for(o=0;o<7;o++)s[o]=ad(t,(o+a)%7,r,`day`);return s}function cd(e,t){return od(e,t,`months`)}function ld(e,t){return od(e,t,`monthsShort`)}function ud(e,t,n){return sd(e,t,n,`weekdays`)}function dd(e,t,n){return sd(e,t,n,`weekdaysShort`)}function fd(e,t,n){return sd(e,t,n,`weekdaysMin`)}function pd(){var e=this._data;return this._milliseconds=xp(this._milliseconds),this._days=xp(this._days),this._months=xp(this._months),e.milliseconds=xp(e.milliseconds),e.seconds=xp(e.seconds),e.minutes=xp(e.minutes),e.hours=xp(e.hours),e.months=xp(e.months),e.years=xp(e.years),this}function md(e,t,n,r){var i=Pl(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function hd(e,t){return md(this,e,t,1)}function gd(e,t){return md(this,e,t,-1)}function _d(e){return e<0?Math.floor(e):Math.ceil(e)}function vd(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,o,s,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=_d(bd(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=js(e/1e3),r.seconds=i%60,a=js(i/60),r.minutes=a%60,o=js(a/60),r.hours=o%24,t+=js(o/24),c=js(yd(t)),n+=c,t-=_d(bd(c)),s=js(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function yd(e){return e*4800/146097}function bd(e){return e*146097/4800}function xd(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Ts(e),e===`month`||e===`quarter`||e===`year`)switch(t=this._days+r/864e5,n=this._months+yd(t),e){case`month`:return n;case`quarter`:return n/3;case`year`:return n/12}else switch(t=this._days+Math.round(bd(this._months)),e){case`week`:return t/7+r/6048e5;case`day`:return t+r/864e5;case`hour`:return t*24+r/36e5;case`minute`:return t*1440+r/6e4;case`second`:return t*86400+r/1e3;case`millisecond`:return Math.floor(t*864e5)+r;default:throw Error(`Unknown unit `+e)}}function Sd(e){return function(){return this.as(e)}}function Cd(){return Pl(this)}function wd(e){return e=Ts(e),this.isValid()?this[e+`s`]():NaN}function Td(e){return function(){return this.isValid()?this._data[e]:NaN}}function Ed(){return js(this.days()/7)}function Dd(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function Od(e,t,n,r){var i=Pl(e).abs(),a=zp(i.as(`s`)),o=zp(i.as(`m`)),s=zp(i.as(`h`)),c=zp(i.as(`d`)),l=zp(i.as(`M`)),u=zp(i.as(`w`)),d=zp(i.as(`y`)),f=a<=n.ss&&[`s`,a]||a<n.s&&[`ss`,a]||o<=1&&[`m`]||o<n.m&&[`mm`,o]||s<=1&&[`h`]||s<n.h&&[`hh`,s]||c<=1&&[`d`]||c<n.d&&[`dd`,c];return n.w!=null&&(f=f||u<=1&&[`w`]||u<n.w&&[`ww`,u]),f=f||l<=1&&[`M`]||l<n.M&&[`MM`,l]||d<=1&&[`y`]||[`yy`,d],f[2]=t,f[3]=+e>0,f[4]=r,Dd.apply(null,f)}function kd(e){return e===void 0?zp:typeof e==`function`?(zp=e,!0):!1}function Ad(e,t){return Bp[e]===void 0?!1:t===void 0?Bp[e]:(Bp[e]=t,e===`s`&&(Bp.ss=t-1),!0)}function jd(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Bp,i,a;return typeof e==`object`&&(t=e,e=!1),typeof e==`boolean`&&(n=e),typeof t==`object`&&(r=Object.assign({},Bp,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=Od(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}function Md(e){return(e>0)-(e<0)||+e}function Nd(){if(!this.isValid())return this.localeData().invalidDate();var e=Vp(this._milliseconds)/1e3,t=Vp(this._days),n=Vp(this._months),r,i,a,o,s=this.asSeconds(),c,l,u,d;return s?(r=js(e/60),i=js(r/60),e%=60,r%=60,a=js(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,``):``,c=s<0?`-`:``,l=Md(this._months)===Md(s)?``:`-`,u=Md(this._days)===Md(s)?``:`-`,d=Md(this._milliseconds)===Md(s)?``:`-`,c+`P`+(a?l+a+`Y`:``)+(n?l+n+`M`:``)+(t?u+t+`D`:``)+(i||r||e?`T`:``)+(i?d+i+`H`:``)+(r?d+r+`M`:``)+(e?d+o+`S`:``)):`P0D`}var Pd,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf,J,rf,af,sf,cf,lf,uf,df,ff,pf,mf,hf,gf,_f,vf,yf,bf,xf,Sf,Cf,wf,Tf,Ef,Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf,Wf,Gf,Y,Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,fp,pp,mp,hp,gp,_p,vp,yp,bp,X,Z,xp,Sp,Cp,wp,Tp,Ep,Dp,Op,kp,Ap,jp,Mp,Np,Pp,Fp,Ip,Lp,Rp,zp,Bp,Vp,Q,Hp,Up=o(()=>{for(Fd=Array.prototype.some?Array.prototype.some:function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},Id=B.momentProperties=[],Ld=!1,Rd={},B.suppressDeprecationWarnings=!1,B.deprecationHandler=null,zd=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)V(e,t)&&n.push(t);return n},Bd={sameDay:`[Today at] LT`,nextDay:`[Tomorrow at] LT`,nextWeek:`dddd [at] LT`,lastDay:`[Yesterday at] LT`,lastWeek:`[Last] dddd [at] LT`,sameElse:`L`},Vd=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Hd=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ud={},Wd={},Gd={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},Kd=`Invalid date`,qd=`%d`,Jd=/\d{1,2}/,Yd={future:`in %s`,past:`%s ago`,s:`a few seconds`,ss:`%d seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,w:`a week`,ww:`%d weeks`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`},Xd={D:`date`,dates:`date`,date:`date`,d:`day`,days:`day`,day:`day`,e:`weekday`,weekdays:`weekday`,weekday:`weekday`,E:`isoWeekday`,isoweekdays:`isoWeekday`,isoweekday:`isoWeekday`,DDD:`dayOfYear`,dayofyears:`dayOfYear`,dayofyear:`dayOfYear`,h:`hour`,hours:`hour`,hour:`hour`,ms:`millisecond`,milliseconds:`millisecond`,millisecond:`millisecond`,m:`minute`,minutes:`minute`,minute:`minute`,M:`month`,months:`month`,month:`month`,Q:`quarter`,quarters:`quarter`,quarter:`quarter`,s:`second`,seconds:`second`,second:`second`,gg:`weekYear`,weekyears:`weekYear`,weekyear:`weekYear`,GG:`isoWeekYear`,isoweekyears:`isoWeekYear`,isoweekyear:`isoWeekYear`,w:`week`,weeks:`week`,week:`week`,W:`isoWeek`,isoweeks:`isoWeek`,isoweek:`isoWeek`,y:`year`,years:`year`,year:`year`},Zd={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},Qd=/\d/,$d=/\d\d/,ef=/\d{3}/,tf=/\d{4}/,nf=/[+-]?\d{6}/,J=/\d\d?/,rf=/\d\d\d\d?/,af=/\d\d\d\d\d\d?/,sf=/\d{1,3}/,cf=/\d{1,4}/,lf=/[+-]?\d{1,6}/,uf=/\d+/,df=/[+-]?\d+/,ff=/Z|[+-]\d\d:?\d\d/gi,pf=/Z|[+-]\d\d(?::?\d\d)?/gi,mf=/[+-]?\d+(\.\d{1,3})?/,hf=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,gf=/^[1-9]\d?/,_f=/^([1-9]\d|\d)/,vf={},yf={},bf=0,xf=1,Sf=2,Cf=3,wf=4,Tf=5,Ef=6,Df=7,Of=8,U(`Y`,0,0,function(){var e=this.year();return e<=9999?hs(e,4):`+`+e}),U(0,[`YY`,2],0,function(){return this.year()%100}),U(0,[`YYYY`,4],0,`year`),U(0,[`YYYYY`,5],0,`year`),U(0,[`YYYYYY`,6,!0],0,`year`),W(`Y`,df),W(`YY`,J,$d),W(`YYYY`,cf,tf),W(`YYYYY`,lf,nf),W(`YYYYYY`,lf,nf),K([`YYYYY`,`YYYYYY`],bf),K(`YYYY`,function(e,t){t[bf]=e.length===2?B.parseTwoDigitYear(e):G(e)}),K(`YY`,function(e,t){t[bf]=B.parseTwoDigitYear(e)}),K(`Y`,function(e,t){t[bf]=parseInt(e,10)}),B.parseTwoDigitYear=function(e){return G(e)+(G(e)>68?1900:2e3)},kf=Ls(`FullYear`,!0),Af=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U(`M`,[`MM`,2],`Mo`,function(){return this.month()+1}),U(`MMM`,0,0,function(e){return this.localeData().monthsShort(this,e)}),U(`MMMM`,0,0,function(e){return this.localeData().months(this,e)}),W(`M`,J,gf),W(`MM`,J,$d),W(`MMM`,function(e,t){return t.monthsShortRegex(e)}),W(`MMMM`,function(e,t){return t.monthsRegex(e)}),K([`M`,`MM`],function(e,t){t[xf]=G(e)-1}),K([`MMM`,`MMMM`],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i==null?H(n).invalidMonth=e:t[xf]=i}),jf=`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),Mf=`Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec`.split(`_`),Nf=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pf=hf,Ff=hf,U(`w`,[`ww`,2],`wo`,`week`),U(`W`,[`WW`,2],`Wo`,`isoWeek`),W(`w`,J,gf),W(`ww`,J,$d),W(`W`,J,gf),W(`WW`,J,$d),Ms([`w`,`ww`,`W`,`WW`],function(e,t,n,r){t[r.substr(0,1)]=G(e)}),If={dow:0,doy:6},U(`d`,0,`do`,`day`),U(`dd`,0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U(`ddd`,0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U(`dddd`,0,0,function(e){return this.localeData().weekdays(this,e)}),U(`e`,0,0,`weekday`),U(`E`,0,0,`isoWeekday`),W(`d`,J),W(`e`,J),W(`E`,J),W(`dd`,function(e,t){return t.weekdaysMinRegex(e)}),W(`ddd`,function(e,t){return t.weekdaysShortRegex(e)}),W(`dddd`,function(e,t){return t.weekdaysRegex(e)}),Ms([`dd`,`ddd`,`dddd`],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i==null?H(n).invalidWeekday=e:t.d=i}),Ms([`d`,`e`,`E`],function(e,t,n,r){t[r]=G(e)}),Lf=`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),Rf=`Sun_Mon_Tue_Wed_Thu_Fri_Sat`.split(`_`),zf=`Su_Mo_Tu_We_Th_Fr_Sa`.split(`_`),Bf=hf,Vf=hf,Hf=hf,U(`H`,[`HH`,2],0,`hour`),U(`h`,[`hh`,2],0,Ec),U(`k`,[`kk`,2],0,Dc),U(`hmm`,0,0,function(){return``+Ec.apply(this)+hs(this.minutes(),2)}),U(`hmmss`,0,0,function(){return``+Ec.apply(this)+hs(this.minutes(),2)+hs(this.seconds(),2)}),U(`Hmm`,0,0,function(){return``+this.hours()+hs(this.minutes(),2)}),U(`Hmmss`,0,0,function(){return``+this.hours()+hs(this.minutes(),2)+hs(this.seconds(),2)}),Oc(`a`,!0),Oc(`A`,!1),W(`a`,kc),W(`A`,kc),W(`H`,J,_f),W(`h`,J,gf),W(`k`,J,gf),W(`HH`,J,$d),W(`hh`,J,$d),W(`kk`,J,$d),W(`hmm`,rf),W(`hmmss`,af),W(`Hmm`,rf),W(`Hmmss`,af),K([`H`,`HH`],Cf),K([`k`,`kk`],function(e,t,n){var r=G(e);t[Cf]=r===24?0:r}),K([`a`,`A`],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),K([`h`,`hh`],function(e,t,n){t[Cf]=G(e),H(n).bigHour=!0}),K(`hmm`,function(e,t,n){var r=e.length-2;t[Cf]=G(e.substr(0,r)),t[wf]=G(e.substr(r)),H(n).bigHour=!0}),K(`hmmss`,function(e,t,n){var r=e.length-4,i=e.length-2;t[Cf]=G(e.substr(0,r)),t[wf]=G(e.substr(r,2)),t[Tf]=G(e.substr(i)),H(n).bigHour=!0}),K(`Hmm`,function(e,t,n){var r=e.length-2;t[Cf]=G(e.substr(0,r)),t[wf]=G(e.substr(r))}),K(`Hmmss`,function(e,t,n){var r=e.length-4,i=e.length-2;t[Cf]=G(e.substr(0,r)),t[wf]=G(e.substr(r,2)),t[Tf]=G(e.substr(i))}),Uf=/[ap]\.?m?\.?/i,Wf=Ls(`Hours`,!0),Gf={calendar:Bd,longDateFormat:Gd,invalidDate:Kd,ordinal:qd,dayOfMonthOrdinalParse:Jd,relativeTime:Yd,months:jf,monthsShort:Mf,week:If,weekdays:Lf,weekdaysMin:zf,weekdaysShort:Rf,meridiemParse:Uf},Y={},Kf={},Jf=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Yf=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xf=/Z|[+-]\d\d(?::?\d\d)?/,Zf=[[`YYYYYY-MM-DD`,/[+-]\d{6}-\d\d-\d\d/],[`YYYY-MM-DD`,/\d{4}-\d\d-\d\d/],[`GGGG-[W]WW-E`,/\d{4}-W\d\d-\d/],[`GGGG-[W]WW`,/\d{4}-W\d\d/,!1],[`YYYY-DDD`,/\d{4}-\d{3}/],[`YYYY-MM`,/\d{4}-\d\d/,!1],[`YYYYYYMMDD`,/[+-]\d{10}/],[`YYYYMMDD`,/\d{8}/],[`GGGG[W]WWE`,/\d{4}W\d{3}/],[`GGGG[W]WW`,/\d{4}W\d{2}/,!1],[`YYYYDDD`,/\d{7}/],[`YYYYMM`,/\d{6}/,!1],[`YYYY`,/\d{4}/,!1]],Qf=[[`HH:mm:ss.SSSS`,/\d\d:\d\d:\d\d\.\d+/],[`HH:mm:ss,SSSS`,/\d\d:\d\d:\d\d,\d+/],[`HH:mm:ss`,/\d\d:\d\d:\d\d/],[`HH:mm`,/\d\d:\d\d/],[`HHmmss.SSSS`,/\d\d\d\d\d\d\.\d+/],[`HHmmss,SSSS`,/\d\d\d\d\d\d,\d+/],[`HHmmss`,/\d\d\d\d\d\d/],[`HHmm`,/\d\d\d\d/],[`HH`,/\d\d/]],$f=/^\/?Date\((-?\d+)/i,ep=/^(?:(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{4}))$/,tp={UT:0,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},B.createFromInputFallback=cs(`value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.`,function(e){e._d=new Date(e._i+(e._useUTC?` UTC`:``))}),B.ISO_8601=function(){},B.RFC_2822=function(){},np=cs(`moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/`,function(){var e=q.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ts()}),rp=cs(`moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/`,function(){var e=q.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ts()}),ip=function(){return Date.now?Date.now():+new Date},ap=[`year`,`quarter`,`month`,`week`,`day`,`hour`,`minute`,`second`,`millisecond`],yl(`Z`,`:`),yl(`ZZ`,``),W(`Z`,pf),W(`ZZ`,pf),K([`Z`,`ZZ`],function(e,t,n){n._useUTC=!0,n._tzm=bl(pf,e)}),op=/([\+\-]|\d\d)/gi,B.updateOffset=function(){},sp=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,cp=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,Pl.fn=hl.prototype,Pl.invalid=ml,lp=Rl(1,`add`),up=Rl(-1,`subtract`),B.defaultFormat=`YYYY-MM-DDTHH:mm:ssZ`,B.defaultFormatUtc=`YYYY-MM-DDTHH:mm:ss[Z]`,dp=cs(`moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.`,function(e){return e===void 0?this.localeData():this.locale(e)}),fp=1e3,pp=60*fp,mp=60*pp,hp=146097*24*mp,U(`N`,0,0,`eraAbbr`),U(`NN`,0,0,`eraAbbr`),U(`NNN`,0,0,`eraAbbr`),U(`NNNN`,0,0,`eraName`),U(`NNNNN`,0,0,`eraNarrow`),U(`y`,[`y`,1],`yo`,`eraYear`),U(`y`,[`yy`,2],0,`eraYear`),U(`y`,[`yyy`,3],0,`eraYear`),U(`y`,[`yyyy`,4],0,`eraYear`),W(`N`,Lu),W(`NN`,Lu),W(`NNN`,Lu),W(`NNNN`,Ru),W(`NNNNN`,zu),K([`N`,`NN`,`NNN`,`NNNN`,`NNNNN`],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?H(n).era=i:H(n).invalidEra=e}),W(`y`,uf),W(`yy`,uf),W(`yyy`,uf),W(`yyyy`,uf),W(`yo`,Bu),K([`y`,`yy`,`yyy`,`yyyy`],bf),K([`yo`],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[bf]=n._locale.eraYearOrdinalParse(e,i):t[bf]=parseInt(e,10)}),U(0,[`gg`,2],0,function(){return this.weekYear()%100}),U(0,[`GG`,2],0,function(){return this.isoWeekYear()%100}),Hu(`gggg`,`weekYear`),Hu(`ggggg`,`weekYear`),Hu(`GGGG`,`isoWeekYear`),Hu(`GGGGG`,`isoWeekYear`),W(`G`,df),W(`g`,df),W(`GG`,J,$d),W(`gg`,J,$d),W(`GGGG`,cf,tf),W(`gggg`,cf,tf),W(`GGGGG`,lf,nf),W(`ggggg`,lf,nf),Ms([`gggg`,`ggggg`,`GGGG`,`GGGGG`],function(e,t,n,r){t[r.substr(0,2)]=G(e)}),Ms([`gg`,`GG`],function(e,t,n,r){t[r]=B.parseTwoDigitYear(e)}),U(`Q`,0,`Qo`,`quarter`),W(`Q`,Qd),K(`Q`,function(e,t){t[xf]=(G(e)-1)*3}),U(`D`,[`DD`,2],`Do`,`date`),W(`D`,J,gf),W(`DD`,J,$d),W(`Do`,function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),K([`D`,`DD`],Sf),K(`Do`,function(e,t){t[Sf]=G(e.match(J)[0])}),gp=Ls(`Date`,!0),U(`DDD`,[`DDDD`,3],`DDDo`,`dayOfYear`),W(`DDD`,sf),W(`DDDD`,ef),K([`DDD`,`DDDD`],function(e,t,n){n._dayOfYear=G(e)}),U(`m`,[`mm`,2],0,`minute`),W(`m`,J,_f),W(`mm`,J,$d),K([`m`,`mm`],wf),_p=Ls(`Minutes`,!1),U(`s`,[`ss`,2],0,`second`),W(`s`,J,_f),W(`ss`,J,$d),K([`s`,`ss`],Tf),vp=Ls(`Seconds`,!1),U(`S`,0,0,function(){return~~(this.millisecond()/100)}),U(0,[`SS`,2],0,function(){return~~(this.millisecond()/10)}),U(0,[`SSS`,3],0,`millisecond`),U(0,[`SSSS`,4],0,function(){return this.millisecond()*10}),U(0,[`SSSSS`,5],0,function(){return this.millisecond()*100}),U(0,[`SSSSSS`,6],0,function(){return this.millisecond()*1e3}),U(0,[`SSSSSSS`,7],0,function(){return this.millisecond()*1e4}),U(0,[`SSSSSSSS`,8],0,function(){return this.millisecond()*1e5}),U(0,[`SSSSSSSSS`,9],0,function(){return this.millisecond()*1e6}),W(`S`,sf,Qd),W(`SS`,sf,$d),W(`SSS`,sf,ef),yp=`SSSS`;yp.length<=9;yp+=`S`)W(yp,uf);for(yp=`S`;yp.length<=9;yp+=`S`)K(yp,$u);bp=Ls(`Milliseconds`,!1),U(`z`,0,0,`zoneAbbr`),U(`zz`,0,0,`zoneName`),X=rs.prototype,X.add=lp,X.calendar=Kl,X.clone=ql,X.diff=eu,X.endOf=gu,X.format=au,X.from=ou,X.fromNow=su,X.to=cu,X.toNow=lu,X.get=Bs,X.invalidAt=Tu,X.isAfter=Jl,X.isBefore=Yl,X.isBetween=Xl,X.isSame=Zl,X.isSameOrAfter=Ql,X.isSameOrBefore=$l,X.isValid=Cu,X.lang=dp,X.locale=uu,X.localeData=du,X.max=rp,X.min=np,X.parsingFlags=wu,X.set=Vs,X.startOf=hu,X.subtract=up,X.toArray=bu,X.toObject=xu,X.toDate=yu,X.toISOString=ru,X.inspect=iu,typeof Symbol<`u`&&Symbol.for!=null&&(X[Symbol.for(`nodejs.util.inspect.custom`)]=function(){return`Moment<`+this.format()+`>`}),X.toJSON=Su,X.toString=nu,X.unix=vu,X.valueOf=_u,X.creationData=Eu,X.eraName=Au,X.eraNarrow=ju,X.eraAbbr=Mu,X.eraYear=Nu,X.year=kf,X.isLeapYear=Is,X.weekYear=Uu,X.isoWeekYear=Wu,X.quarter=X.quarters=Zu,X.month=Ys,X.daysInMonth=Xs,X.week=X.weeks=lc,X.isoWeek=X.isoWeeks=uc,X.weeksInYear=qu,X.weeksInWeekYear=Ju,X.isoWeeksInYear=Gu,X.isoWeeksInISOWeekYear=Ku,X.date=gp,X.day=X.days=yc,X.weekday=bc,X.isoWeekday=xc,X.dayOfYear=Qu,X.hour=X.hours=Wf,X.minute=X.minutes=_p,X.second=X.seconds=vp,X.millisecond=X.milliseconds=bp,X.utcOffset=Cl,X.utc=Tl,X.local=El,X.parseZone=Dl,X.hasAlignedHourOffset=Ol,X.isDST=kl,X.isLocal=jl,X.isUtcOffset=Ml,X.isUtc=Nl,X.isUTC=Nl,X.zoneAbbr=ed,X.zoneName=td,X.dates=cs(`dates accessor is deprecated. Use date instead.`,gp),X.months=cs(`months accessor is deprecated. Use month instead`,Ys),X.years=cs(`years accessor is deprecated. Use year instead`,kf),X.zone=cs(`moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/`,wl),X.isDSTShifted=cs(`isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information`,Al),Z=ps.prototype,Z.calendar=ms,Z.longDateFormat=bs,Z.invalidDate=xs,Z.ordinal=Ss,Z.preparse=id,Z.postformat=id,Z.relativeTime=Cs,Z.pastFuture=ws,Z.set=ds,Z.eras=Du,Z.erasParse=Ou,Z.erasConvertYear=ku,Z.erasAbbrRegex=Fu,Z.erasNameRegex=Pu,Z.erasNarrowRegex=Iu,Z.months=Ws,Z.monthsShort=Gs,Z.monthsParse=qs,Z.monthsRegex=Qs,Z.monthsShortRegex=Zs,Z.week=oc,Z.firstDayOfYear=cc,Z.firstDayOfWeek=sc,Z.weekdays=mc,Z.weekdaysMin=gc,Z.weekdaysShort=hc,Z.weekdaysParse=vc,Z.weekdaysRegex=Sc,Z.weekdaysShortRegex=Cc,Z.weekdaysMinRegex=wc,Z.isPM=Ac,Z.meridiem=jc,Lc(`en`,{eras:[{since:`0001-01-01`,until:1/0,offset:1,name:`Anno Domini`,narrow:`AD`,abbr:`AD`},{since:`0000-12-31`,until:-1/0,offset:1,name:`Before Christ`,narrow:`BC`,abbr:`BC`}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=G(e%100/10)===1?`th`:t===1?`st`:t===2?`nd`:t===3?`rd`:`th`;return e+n}}),B.lang=cs(`moment.lang is deprecated. Use moment.locale instead.`,Lc),B.langData=cs(`moment.langData is deprecated. Use moment.localeData instead.`,Bc),xp=Math.abs,Sp=Sd(`ms`),Cp=Sd(`s`),wp=Sd(`m`),Tp=Sd(`h`),Ep=Sd(`d`),Dp=Sd(`w`),Op=Sd(`M`),kp=Sd(`Q`),Ap=Sd(`y`),jp=Sp,Mp=Td(`milliseconds`),Np=Td(`seconds`),Pp=Td(`minutes`),Fp=Td(`hours`),Ip=Td(`days`),Lp=Td(`months`),Rp=Td(`years`),zp=Math.round,Bp={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},Vp=Math.abs,Q=hl.prototype,Q.isValid=pl,Q.abs=pd,Q.add=hd,Q.subtract=gd,Q.as=xd,Q.asMilliseconds=Sp,Q.asSeconds=Cp,Q.asMinutes=wp,Q.asHours=Tp,Q.asDays=Ep,Q.asWeeks=Dp,Q.asMonths=Op,Q.asQuarters=kp,Q.asYears=Ap,Q.valueOf=jp,Q._bubble=vd,Q.clone=Cd,Q.get=wd,Q.milliseconds=Mp,Q.seconds=Np,Q.minutes=Pp,Q.hours=Fp,Q.days=Ip,Q.weeks=Ed,Q.months=Lp,Q.years=Rp,Q.humanize=jd,Q.toISOString=Nd,Q.toString=Nd,Q.toJSON=Nd,Q.locale=uu,Q.localeData=du,Q.toIsoString=cs(`toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)`,Nd),Q.lang=dp,U(`X`,0,0,`unix`),U(`x`,0,0,`valueOf`),W(`x`,df),W(`X`,mf),K(`X`,function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),K(`x`,function(e,t,n){n._d=new Date(G(e))}),B.version=`2.30.1`,Uo(q),B.fn=X,B.min=ul,B.max=dl,B.now=ip,B.utc=Qo,B.unix=nd,B.months=cd,B.isDate=Yo,B.locale=Lc,B.invalid=ts,B.duration=Pl,B.isMoment=os,B.weekdays=ud,B.parseZone=rd,B.localeData=Bc,B.isDuration=gl,B.monthsShort=ld,B.weekdaysMin=fd,B.defineLocale=Rc,B.updateLocale=zc,B.locales=Vc,B.weekdaysShort=dd,B.normalizeUnits=Ts,B.relativeTimeRounding=kd,B.relativeTimeThreshold=Ad,B.calendarFormat=Gl,B.prototype=X,B.HTML5_FMT={DATETIME_LOCAL:`YYYY-MM-DDTHH:mm`,DATETIME_LOCAL_SECONDS:`YYYY-MM-DDTHH:mm:ss`,DATETIME_LOCAL_MS:`YYYY-MM-DDTHH:mm:ss.SSS`,DATE:`YYYY-MM-DD`,TIME:`HH:mm`,TIME_SECONDS:`HH:mm:ss`,TIME_MS:`HH:mm:ss.SSS`,WEEK:`GGGG-[W]WW`,MONTH:`YYYY-MM`},Hp=B}),Wp=s((exports,t)=>{let n=(Up(),d(Ho));t.exports=e=>{let t={format:e.alternatives([e.string(),e.array().items(e.string().invalid(`iso`,`javascript`,`unix`))])};return{type:`date`,base:e.date(),coerce:{from:`string`,method:function(e,{schema:t}){let r=t.$_getFlag(`format`);if(!r)return;let i=t.$_getFlag(`utc`)?n.utc(e,r,!0):n(e,r,!0);if(i.isValid())return{value:i.toDate()}}},rules:{utc:{method:function(e=!0){return this.$_setFlag(`utc`,e)}}},overrides:{format:function(n){return e.attempt(n,t.format,`Invalid format`),[`iso`,`javascript`,`unix`].includes(n)?this.$_super.format(n):this.$_setFlag(`format`,n)}}}},t.exports.default=t.exports}),Gp=s((exports,t)=>{let n=`2.0.0`,r=256,i=2**53-1||9007199254740991,a=16,o=r-6,s=[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`];t.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:i,RELEASE_TYPES:s,SEMVER_SPEC_VERSION:n,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}),Kp=s((exports,t)=>{let n=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{};t.exports=n}),qp=s((exports,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Gp(),a=Kp();exports=t.exports={};let o=exports.re=[],s=exports.safeRe=[],c=exports.src=[],l=exports.safeSrc=[],u=exports.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),exports.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)}),Jp=s((exports,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({}),i=e=>e?typeof e==`object`?e:n:r;t.exports=i}),Yp=s((exports,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},i=(e,t)=>r(t,e);t.exports={compareIdentifiers:r,rcompareIdentifiers:i}}),Xp=s((exports,t)=>{let n=Kp(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=Gp(),{safeRe:a,t:o}=qp(),s=Jp(),{compareIdentifiers:c}=Yp();var l=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),c(this.major,t.major)||c(this.minor,t.minor)||c(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}};t.exports=l}),Zp=s((exports,t)=>{let n=Xp(),r=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}};t.exports=r}),Qp=s((exports,t)=>{let n=Zp(),r=(e,t)=>{let r=n(e,t);return r?r.version:null};t.exports=r}),$p=s((exports,t)=>{let n=Zp(),r=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null};t.exports=r}),em=s((exports,t)=>{let n=Xp(),r=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}};t.exports=r}),tm=s((exports,t)=>{let n=Zp(),r=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length,u=!!c.prerelease.length;if(u&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let d=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:d+`patch`:d+`minor`:d+`major`};t.exports=r}),nm=s((exports,t)=>{let n=Xp(),r=(e,t)=>new n(e,t).major;t.exports=r}),rm=s((exports,t)=>{let n=Xp(),r=(e,t)=>new n(e,t).minor;t.exports=r}),im=s((exports,t)=>{let n=Xp(),r=(e,t)=>new n(e,t).patch;t.exports=r}),am=s((exports,t)=>{let n=Zp(),r=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null};t.exports=r}),om=s((exports,t)=>{let n=Xp(),r=(e,t,r)=>new n(e,r).compare(new n(t,r));t.exports=r}),sm=s((exports,t)=>{let n=om(),r=(e,t,r)=>n(t,e,r);t.exports=r}),cm=s((exports,t)=>{let n=om(),r=(e,t)=>n(e,t,!0);t.exports=r}),lm=s((exports,t)=>{let n=Xp(),r=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)};t.exports=r}),um=s((exports,t)=>{let n=lm(),r=(e,t)=>e.sort((e,r)=>n(e,r,t));t.exports=r}),dm=s((exports,t)=>{let n=lm(),r=(e,t)=>e.sort((e,r)=>n(r,e,t));t.exports=r}),fm=s((exports,t)=>{let n=om(),r=(e,t,r)=>n(e,t,r)>0;t.exports=r}),pm=s((exports,t)=>{let n=om(),r=(e,t,r)=>n(e,t,r)<0;t.exports=r}),mm=s((exports,t)=>{let n=om(),r=(e,t,r)=>n(e,t,r)===0;t.exports=r}),hm=s((exports,t)=>{let n=om(),r=(e,t,r)=>n(e,t,r)!==0;t.exports=r}),gm=s((exports,t)=>{let n=om(),r=(e,t,r)=>n(e,t,r)>=0;t.exports=r}),_m=s((exports,t)=>{let n=om(),r=(e,t,r)=>n(e,t,r)<=0;t.exports=r}),vm=s((exports,t)=>{let n=mm(),r=hm(),i=fm(),a=gm(),o=pm(),s=_m(),c=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}};t.exports=c}),ym=s((exports,t)=>{let n=Xp(),r=Zp(),{safeRe:i,t:a}=qp(),o=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2],c=o[3]||`0`,l=o[4]||`0`,u=t.includePrerelease&&o[5]?`-${o[5]}`:``,d=t.includePrerelease&&o[6]?`+${o[6]}`:``;return r(`${s}.${c}.${l}${u}${d}`,t)};t.exports=o}),bm=s((exports,t)=>{var n=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){let n=this.delete(e);if(!n&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}};t.exports=n}),xm=s((exports,t)=>{let n=/\s+/g;var r=class e{constructor(t,r){if(r=o(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof s)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=(this.options.includePrerelease&&h)|(this.options.loose&&g),n=t+`:`+e,r=a.get(n);if(r)return r;let i=this.options.loose,o=i?u[d.HYPHENRANGELOOSE]:u[d.HYPHENRANGE];e=e.replace(o,re(this.options.includePrerelease)),c(`hyphen replace`,e),e=e.replace(u[d.COMPARATORTRIM],f),c(`comparator trim`,e),e=e.replace(u[d.TILDETRIM],p),c(`tilde trim`,e),e=e.replace(u[d.CARETTRIM],m),c(`caret trim`,e);let l=e.split(` `).map(e=>b(e,this.options)).join(` `).split(/\s+/).map(e=>ne(e,this.options));i&&(l=l.filter(e=>(c(`loose invalid filter`,e,this.options),!!e.match(u[d.COMPARATORLOOSE])))),c(`range list`,l);let v=new Map,y=l.map(e=>new s(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return a.set(n,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>y(e,n)&&t.set.some(t=>y(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new l(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(D(this.set[t],e,this.options))return!0;return!1}};t.exports=r;let i=bm(),a=new i,o=Jp(),s=Sm(),c=Kp(),l=Xp(),{safeRe:u,t:d,comparatorTrimReplace:f,tildeTrimReplace:p,caretTrimReplace:m}=qp(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:g}=Gp(),_=e=>e.value===`<0.0.0-0`,v=e=>e.value===``,y=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},b=(e,t)=>(c(`comp`,e,t),e=C(e,t),c(`caret`,e),e=ee(e,t),c(`tildes`,e),e=T(e,t),c(`xrange`,e),e=E(e,t),c(`stars`,e),e),x=e=>!e||e.toLowerCase()===`x`||e===`*`,ee=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(` `),S=(e,t)=>{let n=t.loose?u[d.TILDELOOSE]:u[d.TILDE];return e.replace(n,(t,n,r,i,a)=>{c(`tilde`,e,t,n,r,i,a);let o;return x(n)?o=``:x(r)?o=`>=${n}.0.0 <${+n+1}.0.0-0`:x(i)?o=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(c(`replaceTilde pr`,a),o=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):o=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,c(`tilde return`,o),o})},C=(e,t)=>e.trim().split(/\s+/).map(e=>w(e,t)).join(` `),w=(e,t)=>{c(`caret`,e,t);let n=t.loose?u[d.CARETLOOSE]:u[d.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,o)=>{c(`caret`,e,t,n,i,a,o);let s;return x(n)?s=``:x(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?s=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:o?(c(`replaceCaret pr`,o),s=n===`0`?i===`0`?`>=${n}.${i}.${a}-${o} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${o} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${o} <${+n+1}.0.0-0`):(c(`no pr`),s=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),c(`caret return`,s),s})},T=(e,t)=>(c(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>te(e,t)).join(` `)),te=(e,t)=>{e=e.trim();let n=t.loose?u[d.XRANGELOOSE]:u[d.XRANGE];return e.replace(n,(n,r,i,a,o,s)=>{c(`xRange`,e,n,r,i,a,o,s);let l=x(i),u=l||x(a),d=u||x(o),f=d;return r===`=`&&f&&(r=``),s=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),o=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(s=`-0`),n=`${r+i}.${a}.${o}${s}`):u?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${s} <${i}.${+a+1}.0-0`),c(`xRange return`,n),n})},E=(e,t)=>(c(`replaceStars`,e,t),e.trim().replace(u[d.STAR],``)),ne=(e,t)=>(c(`replaceGTE0`,e,t),e.trim().replace(u[t.includePrerelease?d.GTE0PRE:d.GTE0],``)),re=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=x(r)?``:x(i)?`>=${r}.0.0${e?`-0`:``}`:x(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=x(l)?``:x(u)?`<${+l+1}.0.0-0`:x(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),D=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(c(e[n].semver),e[n].semver!==s.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}}),Sm=s((exports,t)=>{let n=Symbol(`SemVer ANY`);var r=class e{static get ANY(){return n}constructor(t,r){if(r=i(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),c(`comparator`,t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,c(`comp`,this)}parse(e){let t=this.options.loose?a[o.COMPARATORLOOSE]:a[o.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new l(e,this.options)}catch{return!1}return s(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new u(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new u(this.value,n).test(t.semver):(n=i(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||s(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||s(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};t.exports=r;let i=Jp(),{safeRe:a,t:o}=qp(),s=vm(),c=Kp(),l=Xp(),u=xm()}),Cm=s((exports,t)=>{let n=xm(),r=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)};t.exports=r}),wm=s((exports,t)=>{let n=xm(),r=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `));t.exports=r}),Tm=s((exports,t)=>{let n=Xp(),r=xm(),i=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a};t.exports=i}),Em=s((exports,t)=>{let n=Xp(),r=xm(),i=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a};t.exports=i}),Dm=s((exports,t)=>{let n=Xp(),r=xm(),i=fm(),a=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null};t.exports=a}),Om=s((exports,t)=>{let n=xm(),r=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}};t.exports=r}),km=s((exports,t)=>{let n=Xp(),r=Sm(),{ANY:i}=r,a=xm(),o=Cm(),s=fm(),c=pm(),l=_m(),u=gm(),d=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0};t.exports=d}),Am=s((exports,t)=>{let n=km(),r=(e,t,r)=>n(e,t,`>`,r);t.exports=r}),jm=s((exports,t)=>{let n=km(),r=(e,t,r)=>n(e,t,`<`,r);t.exports=r}),Mm=s((exports,t)=>{let n=xm(),r=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r));t.exports=r}),Nm=s((exports,t)=>{let n=Cm(),r=om();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c){let r=n(e,t,i);r?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null)}o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}}),Pm=s((exports,t)=>{let n=xm(),r=Sm(),{ANY:i}=r,a=Cm(),o=om(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s}),Fm=s((exports,t)=>{let n=qp(),r=Gp(),i=Xp(),a=Yp(),o=Zp(),s=Qp(),c=$p(),l=em(),u=tm(),d=nm(),f=rm(),p=im(),m=am(),h=om(),g=sm(),_=cm(),v=lm(),y=um(),b=dm(),x=fm(),ee=pm(),S=mm(),C=hm(),w=gm(),T=_m(),te=vm(),E=ym(),ne=Sm(),re=xm(),D=Cm(),O=wm(),k=Tm(),A=Em(),ie=Dm(),ae=Om(),oe=km(),se=Am(),ce=jm(),le=Mm(),j=Nm(),ue=Pm();t.exports={parse:o,valid:s,clean:c,inc:l,diff:u,major:d,minor:f,patch:p,prerelease:m,compare:h,rcompare:g,compareLoose:_,compareBuild:v,sort:y,rsort:b,gt:x,lt:ee,eq:S,neq:C,gte:w,lte:T,cmp:te,coerce:E,Comparator:ne,Range:re,satisfies:D,toComparators:O,maxSatisfying:k,minSatisfying:A,minVersion:ie,validRange:ae,outside:oe,gtr:se,ltr:ce,intersects:le,simplifyRange:j,subset:ue,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}),Im=Uint8Array,Lm=Uint16Array,Rm=Int32Array,zm=new Im([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Bm=new Im([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Vm=new Im([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Hm=function(e,t){for(var n=new Lm(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new Rm(n[30]),r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},Um=Hm(zm,2),Wm=Um.b,Gm=Um.r;Wm[28]=258,Gm[258]=28;for(var Km=Hm(Bm,0),qm=Km.b,Jm=Km.r,Ym=new Lm(32768),Xm=0;Xm<32768;++Xm){var Zm=(Xm&43690)>>1|(Xm&21845)<<1;Zm=(Zm&52428)>>2|(Zm&13107)<<2,Zm=(Zm&61680)>>4|(Zm&3855)<<4,Ym[Xm]=((Zm&65280)>>8|(Zm&255)<<8)>>1}for(var Qm=function(e,t,n){for(var r=e.length,i=0,a=new Lm(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new Lm(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new Lm(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=o[e[i]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)s[Ym[d]>>c]=l}else for(s=new Lm(r),i=0;i<r;++i)e[i]&&(s[i]=Ym[o[e[i]-1]++]>>15-e[i]);return s},$m=new Im(288),Xm=0;Xm<144;++Xm)$m[Xm]=8;for(var Xm=144;Xm<256;++Xm)$m[Xm]=9;for(var Xm=256;Xm<280;++Xm)$m[Xm]=7;for(var Xm=280;Xm<288;++Xm)$m[Xm]=8;for(var eh=new Im(32),Xm=0;Xm<32;++Xm)eh[Xm]=5;var th=Qm($m,9,0),nh=Qm($m,9,1),rh=Qm(eh,5,0),ih=Qm(eh,5,1),ah=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},oh=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},sh=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},ch=function(e){return(e+7)/8|0},lh=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new Im(e.subarray(t,n))},uh=[`unexpected EOF`,`invalid block type`,`invalid length/literal`,`invalid distance`,`stream finished`,`no stream handler`,,`no callback`,`invalid UTF-8 data`,`extra field too long`,`date not in range 1980-2099`,`filename too long`,`stream finishing`,`invalid zip data`],dh=function(e,t,n){var r=Error(t||uh[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,dh),!n)throw r;return r},fh=function(e,t,n,r){var i=e.length,a=r?r.length:0;if(!i||t.f&&!t.l)return n||new Im(0);var o=!n,s=o||t.i!=2,c=t.i;o&&(n=new Im(i*3));var l=function(e){var t=n.length;if(e>t){var r=new Im(Math.max(t*2,e));r.set(n),n=r}},u=t.f||0,d=t.p||0,f=t.b||0,p=t.l,m=t.d,h=t.m,g=t.n,_=i*8;do{if(!p){u=oh(e,d,1);var v=oh(e,d+1,3);if(d+=3,v)if(v==1)p=nh,m=ih,h=9,g=5;else if(v==2){var y=oh(e,d,31)+257,b=oh(e,d+10,15)+4,x=y+oh(e,d+5,31)+1;d+=14;for(var ee=new Im(x),S=new Im(19),C=0;C<b;++C)S[Vm[C]]=oh(e,d+C*3,7);d+=b*3;for(var w=ah(S),T=(1<<w)-1,te=Qm(S,w,1),C=0;C<x;){var E=te[oh(e,d,T)];d+=E&15;var ne=E>>4;if(ne<16)ee[C++]=ne;else{var re=0,D=0;for(ne==16?(D=3+oh(e,d,3),d+=2,re=ee[C-1]):ne==17?(D=3+oh(e,d,7),d+=3):ne==18&&(D=11+oh(e,d,127),d+=7);D--;)ee[C++]=re}}var O=ee.subarray(0,y),k=ee.subarray(y);h=ah(O),g=ah(k),p=Qm(O,h,1),m=Qm(k,g,1)}else dh(1);else{var ne=ch(d)+4,A=e[ne-4]|e[ne-3]<<8,ie=ne+A;if(ie>i){c&&dh(0);break}s&&l(f+A),n.set(e.subarray(ne,ie),f),t.b=f+=A,t.p=d=ie*8,t.f=u;continue}if(d>_){c&&dh(0);break}}s&&l(f+131072);for(var ae=(1<<h)-1,oe=(1<<g)-1,se=d;;se=d){var re=p[sh(e,d)&ae],ce=re>>4;if(d+=re&15,d>_){c&&dh(0);break}if(re||dh(2),ce<256)n[f++]=ce;else if(ce==256){se=d,p=null;break}else{var le=ce-254;if(ce>264){var C=ce-257,j=zm[C];le=oh(e,d,(1<<j)-1)+Wm[C],d+=j}var ue=m[sh(e,d)&oe],de=ue>>4;ue||dh(3),d+=ue&15;var k=qm[de];if(de>3){var j=Bm[de];k+=sh(e,d)&(1<<j)-1,d+=j}if(d>_){c&&dh(0);break}s&&l(f+131072);var fe=f+le;if(f<k){var M=a-k,pe=Math.min(k,fe);for(M+f<0&&dh(3);f<pe;++f)n[f]=r[M+f]}for(;f<fe;++f)n[f]=n[f-k]}}t.l=p,t.p=se,t.b=f,t.f=u,p&&(u=1,t.m=h,t.d=m,t.n=g)}while(!u);return f!=n.length&&o?lh(n,0,f):n.subarray(0,f)},ph=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},mh=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},hh=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,a=n.slice();if(!i)return{t:Sh,l:0};if(i==1){var o=new Im(n[0].s+1);return o[n[0].s]=1,{t:o,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=i-1;)s=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:s.f+c.f,l:s,r:c};for(var f=a[0].s,r=1;r<i;++r)a[r].s>f&&(f=a[r].s);var p=new Lm(f+1),m=gh(n[u-1],p,0);if(m>t){var r=0,h=0,g=m-t,_=1<<g;for(a.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});r<i;++r){var v=a[r].s;if(p[v]>t)h+=_-(1<<m-p[v]),p[v]=t;else break}for(h>>=g;h>0;){var y=a[r].s;p[y]<t?h-=1<<t-p[y]++-1:++r}for(;r>=0&&h;--r){var b=a[r].s;p[b]==t&&(--p[b],++h)}m=t}return{t:new Im(p),l:m}},gh=function(e,t,n){return e.s==-1?Math.max(gh(e.l,t,n+1),gh(e.r,t,n+1)):t[e.s]=n},_h=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Lm(++t),r=0,i=e[0],a=1,o=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return{c:n.subarray(0,r),n:t}},vh=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},yh=function(e,t,n){var r=n.length,i=ch(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<r;++a)e[i+a+4]=n[a];return(i+4+r)*8},bh=function(e,t,n,r,i,a,o,s,c,l,u){ph(t,u++,n),++i[256];for(var d=hh(i,15),f=d.t,p=d.l,m=hh(a,15),h=m.t,g=m.l,_=_h(f),v=_.c,y=_.n,b=_h(h),x=b.c,ee=b.n,S=new Lm(19),C=0;C<v.length;++C)++S[v[C]&31];for(var C=0;C<x.length;++C)++S[x[C]&31];for(var w=hh(S,7),T=w.t,te=w.l,E=19;E>4&&!T[Vm[E-1]];--E);var ne=l+5<<3,re=vh(i,$m)+vh(a,eh)+o,D=vh(i,f)+vh(a,h)+o+14+3*E+vh(S,T)+2*S[16]+3*S[17]+7*S[18];if(c>=0&&ne<=re&&ne<=D)return yh(t,u,e.subarray(c,c+l));var O,k,A,ie;if(ph(t,u,1+(D<re)),u+=2,D<re){O=Qm(f,p,0),k=f,A=Qm(h,g,0),ie=h;var ae=Qm(T,te,0);ph(t,u,y-257),ph(t,u+5,ee-1),ph(t,u+10,E-4),u+=14;for(var C=0;C<E;++C)ph(t,u+3*C,T[Vm[C]]);u+=3*E;for(var oe=[v,x],se=0;se<2;++se)for(var ce=oe[se],C=0;C<ce.length;++C){var le=ce[C]&31;ph(t,u,ae[le]),u+=T[le],le>15&&(ph(t,u,ce[C]>>5&127),u+=ce[C]>>12)}}else O=th,k=$m,A=rh,ie=eh;for(var C=0;C<s;++C){var j=r[C];if(j>255){var le=j>>18&31;mh(t,u,O[le+257]),u+=k[le+257],le>7&&(ph(t,u,j>>23&31),u+=zm[le]);var ue=j&31;mh(t,u,A[ue]),u+=ie[ue],ue>3&&(mh(t,u,j>>5&8191),u+=Bm[ue])}else mh(t,u,O[j]),u+=k[j]}return mh(t,u,O[256]),u+k[256]},xh=new Rm([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Sh=new Im(0),Ch=function(e,t,n,r,i,a){var o=a.z||e.length,s=new Im(r+o+5*(1+Math.ceil(o/7e3))+i),c=s.subarray(r,s.length-i),l=a.l,u=(a.r||0)&7;if(t){u&&(c[0]=a.r>>3);for(var d=xh[t-1],f=d>>13,p=d&8191,m=(1<<n)-1,h=a.p||new Lm(32768),g=a.h||new Lm(m+1),_=Math.ceil(n/3),v=2*_,y=function(t){return(e[t]^e[t+1]<<_^e[t+2]<<v)&m},b=new Rm(25e3),x=new Lm(288),ee=new Lm(32),S=0,C=0,w=a.i||0,T=0,te=a.w||0,E=0;w+2<o;++w){var ne=y(w),re=w&32767,D=g[ne];if(h[re]=D,g[ne]=re,te<=w){var O=o-w;if((S>7e3||T>24576)&&(O>423||!l)){u=bh(e,c,0,b,x,ee,C,T,E,w-E,u),T=S=C=0,E=w;for(var k=0;k<286;++k)x[k]=0;for(var k=0;k<30;++k)ee[k]=0}var A=2,ie=0,ae=p,oe=re-D&32767;if(O>2&&ne==y(w-oe))for(var se=Math.min(f,O)-1,ce=Math.min(32767,w),le=Math.min(258,O);oe<=ce&&--ae&&re!=D;){if(e[w+A]==e[w+A-oe]){for(var j=0;j<le&&e[w+j]==e[w+j-oe];++j);if(j>A){if(A=j,ie=oe,j>se)break;for(var ue=Math.min(oe,j-2),de=0,k=0;k<ue;++k){var fe=w-oe+k&32767,M=h[fe],pe=fe-M&32767;pe>de&&(de=pe,D=fe)}}}re=D,D=h[re],oe+=re-D&32767}if(ie){b[T++]=268435456|Gm[A]<<18|Jm[ie];var me=Gm[A]&31,he=Jm[ie]&31;C+=zm[me]+Bm[he],++x[257+me],++ee[he],te=w+A,++S}else b[T++]=e[w],++x[e[w]]}}for(w=Math.max(w,te);w<o;++w)b[T++]=e[w],++x[e[w]];u=bh(e,c,l,b,x,ee,C,T,E,w-E,u),l||(a.r=u&7|c[u/8|0]<<3,u-=7,a.h=g,a.p=h,a.i=w,a.w=te)}else{for(var w=a.w||0;w<o+l;w+=65535){var ge=w+65535;ge>=o&&(c[u/8|0]=l,ge=o),u=yh(c,u+1,e.subarray(w,ge))}a.i=o}return lh(s,0,r+ch(u)+i)},wh=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,a=n.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=r+=n[o];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},Th=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new Im(a.length+e.length);o.set(a),o.set(e,a.length),e=o,i.w=a.length}return Ch(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,i)},Eh=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},Dh=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=wh();i.p(t.dictionary),Eh(e,2,i.d())}},Oh=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&dh(6,`invalid zlib data`),(e[1]>>5&1)==+!t&&dh(6,`invalid zlib data: `+(e[1]&32?`need`:`unexpected`)+` dictionary`),(e[1]>>3&4)+2};function kh(e,t){t||={};var n=wh();n.p(e);var r=Th(e,t,t.dictionary?6:2,4);return Dh(r,t),Eh(r,r.length-4,n.d()),r}function Ah(e,t){return fh(e.subarray(Oh(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var jh=typeof TextEncoder<`u`&&new TextEncoder,Mh=typeof TextDecoder<`u`&&new TextDecoder,Nh=0;try{Mh.decode(Sh,{stream:!0}),Nh=1}catch{}var Ph=function(e){for(var t=``,n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:lh(e,n-1)};i?i==3?(r=((r&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):i&1?t+=String.fromCharCode((r&31)<<6|e[n++]&63):t+=String.fromCharCode((r&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(r)}};function Fh(e,t){if(t){for(var n=new Im(e.length),r=0;r<e.length;++r)n[r]=e.charCodeAt(r);return n}if(jh)return jh.encode(e);for(var i=e.length,a=new Im(e.length+(e.length>>1)),o=0,s=function(e){a[o++]=e},r=0;r<i;++r){if(o+5>a.length){var c=new Im(o+8+(i-r<<1));c.set(a),a=c}var l=e.charCodeAt(r);l<128||t?s(l):l<2048?(s(192|l>>6),s(128|l&63)):l>55295&&l<57344?(l=65536+(l&1047552)|e.charCodeAt(++r)&1023,s(240|l>>18),s(128|l>>12&63),s(128|l>>6&63),s(128|l&63)):(s(224|l>>12),s(128|l>>6&63),s(128|l&63))}return lh(a,0,o)}function Ih(e,t){if(t){for(var n=``,r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}else if(Mh)return Mh.decode(e);else{var i=Ph(e),a=i.s,n=i.r;return n.length&&dh(8),a}}var Lh=u(Fm());const Rh=e=>{let t=Fh(e),n=kh(t,{level:9}),r=Ih(n,!0);return btoa(r)},zh=e=>{let t=atob(e);if(t.startsWith(`xÚ`)){let e=Fh(t,!0),n=Ah(e);return Ih(n)}return decodeURIComponent(escape(t))},Bh=e=>e instanceof z?e:z.fromObject(e.c,{zone:e.zone}).setLocale(e.loc.locale),Vh=e=>{let t=e.describe();for(let e in t.keys){if(t.keys[e]===void 0||t.keys[e].rules===void 0)continue;t.keys[e].rules=t.keys[e].rules.map(e=>{for(let t in e.args){let n=e.args[t];No(n)&&(e.args[t]=Bh(n).toJSDate())}return e})}let n=JSON.stringify({version:`1.20250719.2`,schema:t});return Rh(n)},Hh=e=>{let t=zh(e),n=JSON.parse(t);if(!Po(n)||!(`version`in n)||!(`schema`in n)||typeof n.version!=`string`||!Po(n.schema))throw TypeError(`Not a valid encoded schema`);let{version:r,schema:i}=n;if(Lh.valid(`1.20250719.2`)){if(!Lh.valid(Lh.coerce(r)))throw TypeError(`Invalid schema version: ${r}`);if(Lh.gt(Lh.coerce(r),`1.20250719.2`))throw TypeError(`Schema version ${r} is not compatible with current version 1.20250719.2`)}return Gh.build(i)};var Uh=u(Ye()),Wh=u(Wp());const Gh=Uh.default.extend(Wh.default).extend(_t).extend(Vo),Kh={EMPTY_STRING:`Address must be a non-empty string`,FORBIDDEN_UNICODE:`Address contains forbidden Unicode characters`,MULTIPLE_AT_CHAR:`Address cannot contain more than one @ character`,MISSING_AT_CHAR:`Address must contain one @ character`,EMPTY_LOCAL:`Address local part cannot be empty`,ADDRESS_TOO_LONG:`Address too long`,LOCAL_TOO_LONG:`Address local part too long`,EMPTY_LOCAL_SEGMENT:`Address local part contains empty dot-separated segment`,INVALID_LOCAL_CHARS:`Address local part contains invalid character`,DOMAIN_NON_EMPTY_STRING:`Domain must be a non-empty string`,DOMAIN_TOO_LONG:`Domain too long`,DOMAIN_INVALID_UNICODE_CHARS:`Domain contains forbidden Unicode characters`,DOMAIN_INVALID_CHARS:`Domain contains invalid character`,DOMAIN_INVALID_TLDS_CHARS:`Domain contains invalid tld character`,DOMAIN_SEGMENTS_COUNT:`Domain lacks the minimum required number of segments`,DOMAIN_SEGMENTS_COUNT_MAX:`Domain contains too many segments`,DOMAIN_FORBIDDEN_TLDS:`Domain uses forbidden TLD`,DOMAIN_EMPTY_SEGMENT:`Domain contains empty dot-separated segment`,DOMAIN_LONG_SEGMENT:`Domain contains dot-separated segment that is too long`};function $(e){return{code:e,error:Kh[e]}}const qh=2,Jh=/[^\x00-\x7f]/,Yh=/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,Xh=/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,Zh=/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,Qh=/^[a-zA-Z0-9_](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,$h=f.URL||URL;function eg(e){return!!e.allow}function tg(e,t={}){if(!e)return $(`DOMAIN_NON_EMPTY_STRING`);if(typeof e!=`string`)throw Error(`Invalid input: domain must be a string`);if(e.length>256)return $(`DOMAIN_TOO_LONG`);let n=!Jh.test(e);if(!n){if(t.allowUnicode===!1)return $(`DOMAIN_INVALID_UNICODE_CHARS`);e=e.normalize(`NFC`)}if(Yh.test(e))return $(`DOMAIN_INVALID_CHARS`);e=rg(e),t.allowFullyQualified&&e[e.length-1]===`.`&&(e=e.slice(0,-1));let r=t.minDomainSegments||qh,i=e.split(`.`);if(i.length<r)return $(`DOMAIN_SEGMENTS_COUNT`);if(t.maxDomainSegments&&i.length>t.maxDomainSegments)return $(`DOMAIN_SEGMENTS_COUNT_MAX`);let a=t.tlds;if(a){let e=i[i.length-1].toLowerCase();if(eg(a)){if(!a.allow.has(e))return $(`DOMAIN_FORBIDDEN_TLDS`)}else if(a.deny.has(e))return $(`DOMAIN_FORBIDDEN_TLDS`)}for(let e=0;e<i.length;++e){let n=i[e];if(!n.length)return $(`DOMAIN_EMPTY_SEGMENT`);if(n.length>63)return $(`DOMAIN_LONG_SEGMENT`);if(e<i.length-1){if(t.allowUnderscore){if(!Qh.test(n))return $(`DOMAIN_INVALID_CHARS`)}else if(!Zh.test(n))return $(`DOMAIN_INVALID_CHARS`)}else if(!Xh.test(n))return $(`DOMAIN_INVALID_TLDS_CHARS`)}return null}function ng(e,t){return!tg(e,t)}function rg(e){e.includes(`%`)&&(e=e.replace(/%/g,`%25`));try{return new $h(`http://${e}`).host}catch{return e}}function ig(e){if(e){if(typeof e.tlds!=`object`)throw Error(`Invalid options: tlds must be a boolean or an object`);if(eg(e.tlds)){if(!(e.tlds.allow instanceof Set))throw Error(`Invalid options: tlds.allow must be a Set object or true`);if(e.tlds.deny)throw Error(`Invalid options: cannot specify both tlds.allow and tlds.deny lists`)}else if(!(e.tlds.deny instanceof Set))throw Error(`Invalid options: tlds.deny must be a Set object`)}}const ag=/[^\x00-\x7f]/,og=new(p.TextEncoder||TextEncoder);function sg(e,t){return lg(e,t)}function cg(e,t){return!lg(e,t)}function lg(e,t={}){if(typeof e!=`string`)throw Error(`Invalid input: email must be a string`);if(!e)return $(`EMPTY_STRING`);let n=!ag.test(e);if(!n){if(t.allowUnicode===!1)return $(`FORBIDDEN_UNICODE`);e=e.normalize(`NFC`)}let r=e.split(`@`);if(r.length!==2)return r.length>2?$(`MULTIPLE_AT_CHAR`):$(`MISSING_AT_CHAR`);let[i,a]=r;if(!i)return $(`EMPTY_LOCAL`);if(!t.ignoreLength){if(e.length>254)return $(`ADDRESS_TOO_LONG`);if(og.encode(i).length>64)return $(`LOCAL_TOO_LONG`)}return ug(i,n)||tg(a,t)}function ug(e,t){let n=e.split(`.`);for(let e of n){if(!e.length)return $(`EMPTY_LOCAL_SEGMENT`);if(t){if(!fg.test(e))return $(`INVALID_LOCAL_CHARS`);continue}for(let t of e){if(fg.test(t))continue;let e=dg(t);if(!pg.test(e))return $(`INVALID_LOCAL_CHARS`)}}return null}function dg(e){return Array.from(og.encode(e),e=>String.fromCharCode(e)).join(``)}const fg=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,pg=new RegExp([`(?:[\\xc2-\\xdf][\\x80-\\xbf])`,`(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})`,`(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})`].join(`|`));var mg=s((exports,t)=>{t.exports=class extends Error{name=`AssertError`;constructor(e,t){super(e||`Unknown error`),typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,t)}}}),hg=s((exports,t)=>{t.exports=function(...e){try{return JSON.stringify(...e)}catch(e){return`[Cannot display object: `+e.message+`]`}}}),gg=s((exports,t)=>{let n=mg(),r=hg(),i=t.exports=function(e,...t){if(e)return;if(t.length===1&&t[0]instanceof Error)throw t[0];let a=t.filter(e=>e!==``).map(e=>typeof e==`string`?e:e instanceof Error?e.message:r(e));throw new n(a.join(` `),i)}}),_g=s((exports,t)=>{let n=gg(),r={};t.exports=function(e,t,i){if(t===!1||t==null)return e;i||={},typeof i==`string`&&(i={separator:i});let a=Array.isArray(t);n(!a||!i.separator,`Separator option is not valid for array-based chain`);let o=a?t:t.split(i.separator||`.`),s=e;for(let e=0;e<o.length;++e){let a=o[e],c=i.iterables&&r.iterables(s);if(Array.isArray(s)||c===`set`){let e=Number(a);Number.isInteger(e)&&(a=e<0?s.length+e:e)}if(!s||typeof s==`function`&&i.functions===!1||!c&&s[a]===void 0){n(!i.strict||e+1===o.length,`Missing segment`,a,`in reach path `,t),n(typeof s==`object`||i.functions===!0||typeof s!=`function`,`Invalid segment`,a,`in reach path `,t),s=i.default;break}s=c?c===`set`?[...s][a]:s.get(a):s[a]}return s},r.iterables=function(e){if(e instanceof Set)return`set`;if(e instanceof Map)return`map`}}),vg=s((exports,t)=>{let n={};exports=t.exports={array:Array.prototype,buffer:Buffer&&Buffer.prototype,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,url:URL.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},n.typeMap=new Map([[`[object Error]`,exports.error],[`[object Map]`,exports.map],[`[object Promise]`,exports.promise],[`[object Set]`,exports.set],[`[object URL]`,exports.url],[`[object WeakMap]`,exports.weakMap],[`[object WeakSet]`,exports.weakSet]]),exports.getInternalProto=function(t){if(Array.isArray(t))return exports.array;if(Buffer&&t instanceof Buffer)return exports.buffer;if(t instanceof Date)return exports.date;if(t instanceof RegExp)return exports.regex;if(t instanceof Error)return exports.error;let r=Object.prototype.toString.call(t);return n.typeMap.get(r)||exports.generic}}),yg=s(exports=>{exports.keys=function(e,t={}){return t.symbols===!1?Object.getOwnPropertyNames(e):Reflect.ownKeys(e)}}),bg=s((exports,t)=>{let n=_g(),r=vg(),i=yg(),a={needsProtoHack:new Set([r.set,r.map,r.weakSet,r.weakMap]),structuredCloneExists:typeof structuredClone==`function`};t.exports=a.clone=function(e,t={},n=null){if(typeof e!=`object`||!e)return e;let o=a.clone,s=n;if(t.shallow){if(t.shallow!==!0)return a.cloneWithShallow(e,t);o=e=>e}else if(s){let t=s.get(e);if(t)return t}else s=new Map;let c=r.getInternalProto(e);switch(c){case r.buffer:return Buffer?.from(e);case r.date:return new Date(e.getTime());case r.regex:case r.url:return new c.constructor(e)}let l=a.base(e,c,t);if(l===e)return e;if(s&&s.set(e,l),c===r.set)for(let n of e)l.add(o(n,t,s));else if(c===r.map)for(let[n,r]of e)l.set(n,o(r,t,s));let u=i.keys(e,t);for(let n of u){if(n===`__proto__`)continue;if(c===r.array&&n===`length`){l.length=e.length;continue}if(a.structuredCloneExists&&c===r.error&&n===`stack`)continue;let i=Object.getOwnPropertyDescriptor(e,n);i?i.get||i.set?Object.defineProperty(l,n,i):i.enumerable?l[n]=o(e[n],t,s):Object.defineProperty(l,n,{enumerable:!1,writable:!0,configurable:!0,value:o(e[n],t,s)}):Object.defineProperty(l,n,{enumerable:!0,writable:!0,configurable:!0,value:o(e[n],t,s)})}return l},a.cloneWithShallow=function(e,t){let r=t.shallow;t=Object.assign({},t),t.shallow=!1;let i=new Map;for(let t of r){let r=n(e,t);(typeof r==`object`||typeof r==`function`)&&i.set(r,r)}return a.clone(e,t,i)},a.base=function(e,t,n){if(n.prototype===!1)return a.needsProtoHack.has(t)?new t.constructor:t===r.array?[]:{};let i=Object.getPrototypeOf(e);if(i&&i.isImmutable)return e;if(t===r.array){let e=[];return i!==t&&Object.setPrototypeOf(e,i),e}else if(t===r.error&&a.structuredCloneExists&&(i===t||Error.isPrototypeOf(i.constructor))){let t=structuredClone(e);return Object.getPrototypeOf(t)!==i&&Object.setPrototypeOf(t,i),t}if(a.needsProtoHack.has(t)){let e=new i.constructor;return i!==t&&Object.setPrototypeOf(e,i),e}return Object.create(i)}}),xg=s((exports,t)=>{let n=gg(),r=bg(),i=yg(),a={};t.exports=a.merge=function(e,t,o){if(n(e&&typeof e==`object`,`Invalid target value: must be an object`),n(t==null||typeof t==`object`,`Invalid source value: must be null, undefined, or an object`),!t)return e;if(o=Object.assign({nullOverride:!0,mergeArrays:!0},o),Array.isArray(t)){n(Array.isArray(e),`Cannot merge array onto an object`),o.mergeArrays||(e.length=0);for(let n=0;n<t.length;++n)e.push(r(t[n],{symbols:o.symbols}));return e}let s=i.keys(t,o);for(let n=0;n<s.length;++n){let i=s[n];if(i===`__proto__`||!Object.prototype.propertyIsEnumerable.call(t,i))continue;let c=t[i];if(c&&typeof c==`object`){if(e[i]===c)continue;!e[i]||typeof e[i]!=`object`||Array.isArray(e[i])!==Array.isArray(c)||c instanceof Date||Buffer&&Buffer.isBuffer(c)||c instanceof RegExp?e[i]=r(c,{symbols:o.symbols}):a.merge(e[i],c,o)}else c==null?o.nullOverride&&(e[i]=c):e[i]=c}return e}}),Sg=s((exports,t)=>{let n=gg(),r=bg(),i=xg(),a=_g(),o={};t.exports=function(e,t,a={}){if(n(e&&typeof e==`object`,`Invalid defaults value: must be an object`),n(!t||t===!0||typeof t==`object`,`Invalid source value: must be true, falsy or an object`),n(typeof a==`object`,`Invalid options: must be an object`),!t)return null;if(a.shallow)return o.applyToDefaultsWithShallow(e,t,a);let s=r(e);if(t===!0)return s;let c=a.nullOverride===void 0?!1:a.nullOverride;return i(s,t,{nullOverride:c,mergeArrays:!1})},o.applyToDefaultsWithShallow=function(e,t,s){let c=s.shallow;n(Array.isArray(c),`Invalid keys`);let l=new Map,u=t===!0?null:new Set;for(let n of c){n=Array.isArray(n)?n:n.split(`.`);let r=a(e,n);r&&typeof r==`object`?l.set(r,u&&a(t,n)||r):u&&u.add(n)}let d=r(e,{},l);if(!u)return d;for(let e of u)o.reachCopy(d,t,e);let f=s.nullOverride===void 0?!1:s.nullOverride;return i(d,t,{nullOverride:f,mergeArrays:!1})},o.reachCopy=function(e,t,n){for(let e of n){if(!(e in t))return;let n=t[e];if(typeof n!=`object`||!n)return;t=n}let r=t,i=e;for(let e=0;e<n.length-1;++e){let t=n[e];typeof i[t]!=`object`&&(i[t]={}),i=i[t]}i[n[n.length-1]]=r}}),Cg=s((exports,t)=>{let n={};t.exports=n.Bench=class{constructor(){this.ts=0,this.reset()}reset(){this.ts=n.Bench.now()}elapsed(){return n.Bench.now()-this.ts}static now(){let e=process.hrtime();return e[0]*1e3+e[1]/1e6}}}),wg=s((exports,t)=>{t.exports=function(){}}),Tg=s((exports,t)=>{let n=wg();t.exports=function(){return new Promise(n)}}),Eg=s((exports,t)=>{let n=vg(),r={mismatched:null};t.exports=function(e,t,n){return n=Object.assign({prototype:!0},n),!!r.isDeepEqual(e,t,n,[])},r.isDeepEqual=function(e,t,i,a){if(e===t)return e!==0||1/e==1/t;let o=typeof e;if(o!==typeof t||e===null||t===null)return!1;if(o===`function`){if(!i.deepFunction||e.toString()!==t.toString())return!1}else if(o!==`object`)return e!==e&&t!==t;let s=r.getSharedType(e,t,!!i.prototype);switch(s){case n.buffer:return Buffer&&Buffer.prototype.equals.call(e,t);case n.promise:return e===t;case n.regex:case n.url:return e.toString()===t.toString();case r.mismatched:return!1}for(let n=a.length-1;n>=0;--n)if(a[n].isSame(e,t))return!0;a.push(new r.SeenEntry(e,t));try{return!!r.isDeepEqualObj(s,e,t,i,a)}finally{a.pop()}},r.getSharedType=function(e,t,i){if(i)return Object.getPrototypeOf(e)===Object.getPrototypeOf(t)?n.getInternalProto(e):r.mismatched;let a=n.getInternalProto(e);return a===n.getInternalProto(t)?a:r.mismatched},r.valueOf=function(e){let t=e.valueOf;if(t===void 0)return e;try{return t.call(e)}catch(e){return e}},r.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},r.isSetSimpleEqual=function(e,t){for(let n of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,n))return!1;return!0},r.isDeepEqualObj=function(e,t,i,a,o){let{isDeepEqual:s,valueOf:c,hasOwnEnumerableProperty:l}=r,{keys:u,getOwnPropertySymbols:d}=Object;if(e===n.array)if(a.part){for(let e of t)for(let t of i)if(s(e,t,a,o))return!0}else{if(t.length!==i.length)return!1;for(let e=0;e<t.length;++e)if(!s(t[e],i[e],a,o))return!1;return!0}else if(e===n.set){if(t.size!==i.size)return!1;if(!r.isSetSimpleEqual(t,i)){let e=new Set(Set.prototype.values.call(i));for(let n of Set.prototype.values.call(t)){if(e.delete(n))continue;let t=!1;for(let r of e)if(s(n,r,a,o)){e.delete(r),t=!0;break}if(!t)return!1}}}else if(e===n.map){if(t.size!==i.size)return!1;for(let[e,n]of Map.prototype.entries.call(t))if(n===void 0&&!Map.prototype.has.call(i,e)||!s(n,Map.prototype.get.call(i,e),a,o))return!1}else if(e===n.error&&(t.name!==i.name||t.message!==i.message))return!1;let f=c(t),p=c(i);if((t!==f||i!==p)&&!s(f,p,a,o))return!1;let m=u(t);if(!a.part&&m.length!==u(i).length&&!a.skip)return!1;let h=0;for(let e of m){if(a.skip&&a.skip.includes(e)){i[e]===void 0&&++h;continue}if(!l(i,e)||!s(t[e],i[e],a,o))return!1}if(!a.part&&m.length-h!==u(i).length)return!1;if(a.symbols!==!1){let e=d(t),n=new Set(d(i));for(let r of e){if(!a.skip?.includes(r)){if(l(t,r)){if(!l(i,r)||!s(t[r],i[r],a,o))return!1}else if(l(i,r))return!1}n.delete(r)}for(let e of n)if(l(i,e))return!1}return!0},r.SeenEntry=class{constructor(e,t){this.obj=e,this.ref=t}isSame(e,t){return this.obj===e&&this.ref===t}}}),Dg=s((exports,t)=>{t.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,`\\$&`)}}),Og=s((exports,t)=>{let n=gg(),r=Eg(),i=Dg(),a=yg(),o={};t.exports=function(e,t,r={}){return typeof t!=`object`&&(t=[t]),n(!Array.isArray(t)||t.length,`Values array cannot be empty`),typeof e==`string`?o.string(e,t,r):Array.isArray(e)?o.array(e,t,r):(n(typeof e==`object`,`Reference must be string or an object`),o.object(e,t,r))},o.array=function(e,t,n){if(Array.isArray(t)||(t=[t]),!e.length||n.only&&n.once&&e.length!==t.length)return!1;let r,i=new Map;for(let e of t)if(!n.deep||!e||typeof e!=`object`){let t=i.get(e);t?++t.allowed:i.set(e,{allowed:1,hits:0})}else{r??=o.compare(n);let t=!1;for(let[n,a]of i.entries())if(r(n,e)){++a.allowed,t=!0;break}t||i.set(e,{allowed:1,hits:0})}let a=0;for(let t of e){let e;if(!n.deep||!t||typeof t!=`object`)e=i.get(t);else{r??=o.compare(n);for(let[n,a]of i.entries())if(r(n,t)){e=a;break}}if(e&&(++e.hits,++a,n.once&&e.hits>e.allowed))return!1}if(n.only&&a!==e.length)return!1;for(let e of i.values()){if(e.hits===e.allowed)continue;if(e.hits<e.allowed&&!n.part)return!1}return!!a},o.object=function(e,t,r){n(r.once===void 0,`Cannot use option once with object`);let i=a.keys(e,r);if(!i.length)return!1;if(Array.isArray(t))return o.array(i,t,r);let s=Object.getOwnPropertySymbols(t).filter(e=>t.propertyIsEnumerable(e)),c=[...Object.keys(t),...s],l=o.compare(r),u=new Set(c);for(let n of i){if(!u.has(n)){if(r.only)return!1;continue}if(!l(t[n],e[n]))return!1;u.delete(n)}return u.size?r.part?u.size<c.length:!1:!0},o.string=function(e,t,r){if(e===``)return t.length===1&&t[0]===``||!r.once&&!t.some(e=>e!==``);let a=new Map,o=[];for(let e of t)if(n(typeof e==`string`,`Cannot compare string reference to non-string value`),e){let t=a.get(e);t?++t.allowed:(a.set(e,{allowed:1,hits:0}),o.push(i(e)))}else if(r.once||r.only)return!1;if(!o.length)return!0;let s=RegExp(`(${o.join(`|`)})`,`g`),c=e.replace(s,(e,t)=>(++a.get(t).hits,``));if(r.only&&c)return!1;let l=!1;for(let e of a.values()){if(e.hits&&(l=!0),e.hits===e.allowed)continue;if(e.hits<e.allowed&&!r.part||r.once)return!1}return!!l},o.compare=function(e){if(!e.deep)return o.shallow;let t=e.only!==void 0,n=e.part!==void 0,i={prototype:t?e.only:n?!e.part:!1,part:t?!e.only:n?e.part:!1};return(e,t)=>r(e,t,i)},o.shallow=function(e,t){return e===t}}),kg=s((exports,t)=>{let n=gg();t.exports=function(e){return n(/^[ \w\!#\$%&'\(\)\*\+,\-\.\/\:;<\=>\?@\[\]\^`\{\|\}~\"\\]*$/.test(e),`Bad attribute value (`+e+`)`),e.replace(/\\/g,`\\\\`).replace(/\"/g,`\\"`)}}),Ag=s((exports,t)=>{let n={};t.exports=function(e){if(!e)return``;let t=``;for(let r=0;r<e.length;++r){let i=e.charCodeAt(r);n.isSafe(i)?t+=e[r]:t+=n.escapeHtmlChar(i)}return t},n.escapeHtmlChar=function(e){let t=n.namedHtml.get(e);if(t)return t;if(e>=256)return`&#`+e+`;`;let r=e.toString(16).padStart(2,`0`);return`&#x${r};`},n.isSafe=function(e){return n.safeCharCodes.has(e)},n.namedHtml=new Map([[38,`&`],[60,`<`],[62,`>`],[34,`"`],[160,` `],[162,`¢`],[163,`£`],[164,`¤`],[169,`©`],[174,`®`]]),n.safeCharCodes=function(){let e=new Set;for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||t===32||t===46||t===44||t===45||t===58||t===95)&&e.add(t);return e}()}),jg=s((exports,t)=>{let n={};t.exports=function(e){return e?e.replace(/[<>&\u2028\u2029]/g,n.escape):``},n.escape=function(e){return n.replacements.get(e)},n.replacements=new Map([[`<`,`\\u003c`],[`>`,`\\u003e`],[`&`,`\\u0026`],[`\u2028`,`\\u2028`],[`\u2029`,`\\u2029`]])}),Mg=s((exports,t)=>{let n={};t.exports=n.flatten=function(e,t){let r=t||[];for(let t of e)Array.isArray(t)?n.flatten(t,r):r.push(t);return r}}),Ng=s((exports,t)=>{let n={};t.exports=function(e,t,r={}){if(!e||!t)return r.first?null:[];let i=[],a=Array.isArray(e)?new Set(e):e,o=new Set;for(let e of t)if(n.has(a,e)&&!o.has(e)){if(r.first)return e;i.push(e),o.add(e)}return r.first?null:i},n.has=function(e,t){return typeof e.has==`function`?e.has(t):e[t]!==void 0}}),Pg=s((exports,t)=>{t.exports=function(e){return typeof e?.then==`function`}}),Fg=s((exports,t)=>{let n={wrapped:Symbol(`wrapped`)};t.exports=function(e){if(e[n.wrapped])return e;let t=!1,r=function(...n){t||(t=!0,e(...n))};return r[n.wrapped]=!0,r}}),Ig=s((exports,t)=>{let n=_g();t.exports=function(e,t,r){return t.replace(/{([^{}]+)}/g,(t,i)=>{let a=n(e,i,r);return a??``})}}),Lg=s((exports,t)=>{let n={maxTimer:2**31-1};t.exports=function(e,t,r){if(typeof e==`bigint`&&(e=Number(e)),e>=2**53-1&&(e=1/0),typeof e!=`number`&&e!==void 0)throw TypeError(`Timeout must be a number or bigint`);return new Promise(i=>{let a=r?r.setTimeout:setTimeout,o=()=>{let r=Math.min(e,n.maxTimer);e-=r,a(()=>e>0?o():i(t),r)};e!==1/0&&o()})}}),Rg=u(Sg(),1),zg=u(gg(),1),Bg=u(Cg(),1),Vg=u(Tg(),1),Hg=u(bg(),1),Ug=u(Og(),1),Wg=u(Eg(),1),Gg=u(mg(),1),Kg=u(kg(),1),qg=u(Ag(),1),Jg=u(jg(),1),Yg=u(Dg(),1),Xg=u(Mg(),1),Zg=u(wg(),1),Qg=u(Ng(),1),$g=u(Pg(),1),e_=u(xg(),1),t_=u(Fg(),1),n_=u(_g(),1),r_=u(Ig(),1),i_=u(hg(),1),a_=u(Lg(),1);function o_(){let e={},t=`\\dA-Fa-f`,n=`[`+t+`]`,r=`\\w-\\.~`,i=`!\\$&'\\(\\)\\*\\+,;=`,a=`%`+t,o=r+a+i+`:@`,s=`[`+o+`]`,c=`(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;e.ipv4address=`(?:`+c+`\\.){3}(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;let l=n+`{1,4}`,u=`(?:`+l+`:[\\dA-Fa-f]{1,4}|`+e.ipv4address+`)`,d=`(?:`+l+`:){6}`+u,f=`::(?:`+l+`:){5}`+u,p=`(?:`+l+`)?::(?:[\\dA-Fa-f]{1,4}:){4}`+u,m=`(?:(?:`+l+`:){0,1}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){3}`+u,h=`(?:(?:`+l+`:){0,2}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){2}`+u,g=`(?:(?:`+l+`:){0,3}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}:`+u,_=`(?:(?:`+l+`:){0,4}[\\dA-Fa-f]{1,4})?::`+u,v=`(?:(?:`+l+`:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}`,y=`(?:(?:`+l+`:){0,6}[\\dA-Fa-f]{1,4})?::`;e.ipv4Cidr=`(?:\\d|[1-2]\\d|3[0-2])`,e.ipv6Cidr=`(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])`,e.ipv6address=`(?:`+d+`|`+f+`|`+p+`|`+m+`|`+h+`|`+g+`|`+_+`|(?:(?:[\\dA-Fa-f]{1,4}:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}|(?:(?:[\\dA-Fa-f]{1,4}:){0,6}[\\dA-Fa-f]{1,4})?::)`,e.ipvFuture=`v`+n+`+\\.[\\w-\\.~!\\$&'\\(\\)\\*\\+,;=:]+`,e.scheme=`[a-zA-Z][a-zA-Z\\d+-\\.]*`,e.schemeRegex=new RegExp(e.scheme);let b=`[`+r+a+i+`:]*`,x=`\\[(?:`+e.ipv6address+`|`+e.ipvFuture+`)\\]`,ee=`[`+r+a+i+`]{1,255}`,S=`(?:`+x+`|`+e.ipv4address+`|[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=]{1,255})`,C=`\\d*`,w=`(?:`+b+`@)?`+S+`(?::\\d*)?`,T=`(?:`+b+`@)?(`+S+`)(?::\\d*)?`,te=s+`*`,E=s+`+`,ne=`[`+r+a+i+`@]+`,re=``,D=`(?:\\/`+te+`)*`,O=`\\/(?:`+E+D+`)?`,k=E+D,A=ne+D,ie=`(?:\\/\\/\\/`+te+D+`)`;return e.hierPart=`(?:(?:\\/\\/`+w+D+`)|`+O+`|`+k+`|`+ie+`)`,e.hierPartCapture=`(?:(?:\\/\\/`+T+D+`)|`+O+`|`+k+`)`,e.relativeRef=`(?:(?:\\/\\/`+w+D+`)|`+O+`|`+A+`|)`,e.relativeRefCapture=`(?:(?:\\/\\/`+T+D+`)|`+O+`|`+A+`|)`,e.query=`[`+o+`\\/\\?]*(?=#|$)`,e.queryWithSquareBrackets=`[`+o+`\\[\\]\\/\\?]*(?=#|$)`,e.fragment=`[`+o+`\\/\\?]*`,e}const s_=o_(),c_={v4Cidr:s_.ipv4Cidr,v6Cidr:s_.ipv6Cidr,ipv4:s_.ipv4address,ipv6:s_.ipv6address,ipvfuture:s_.ipvFuture};function l_(e){let t=s_,n=e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query,r=`(?:\\?`+n+`)?(?:#`+t.fragment+`)?`,i=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return u_(i+r);let a=``;if(e.scheme){(0,zg.default)(e.scheme instanceof RegExp||typeof e.scheme==`string`||Array.isArray(e.scheme),`scheme must be a RegExp, String, or Array`);let n=[].concat(e.scheme);(0,zg.default)(n.length>=1,`scheme must have at least 1 scheme specified`);let r=[];for(let e=0;e<n.length;++e){let i=n[e];(0,zg.default)(i instanceof RegExp||typeof i==`string`,`scheme at position `+e+` must be a RegExp or String`),i instanceof RegExp?r.push(i.source.toString()):((0,zg.default)(t.schemeRegex.test(i),`scheme at position `+e+` must be a valid scheme`),r.push((0,Yg.default)(i)))}a=r.join(`|`)}let o=a?`(?:`+a+`)`:t.scheme,s=`(?:`+o+`:`+(e.domain?t.hierPartCapture:t.hierPart)+`)`,c=e.allowRelative?`(?:`+s+`|`+i+`)`:s;return u_(c+r,a)}function u_(e,t=null){return e=`(?=.)(?!https?\:/(?:$|[^/]))(?!https?\:///)(?!https?\:[^/])${e}`,{raw:e,regex:RegExp(`^${e}$`),scheme:t}}const d_=l_({});function f_(e={}){return e.scheme||e.allowRelative||e.relativeOnly||e.allowQuerySquareBrackets||e.domain?l_(e):d_}function p_(e={}){let t=e.cidr||`optional`;(0,zg.default)([`required`,`optional`,`forbidden`].includes(t),`options.cidr must be one of required, optional, forbidden`),(0,zg.default)(e.version===void 0||typeof e.version==`string`||Array.isArray(e.version),`options.version must be a string or an array of string`);let n=e.version||[`ipv4`,`ipv6`,`ipvfuture`];Array.isArray(n)||(n=[n]),(0,zg.default)(n.length>=1,`options.version must have at least 1 version specified`);for(let e of n)(0,zg.default)(typeof e==`string`&&e===e.toLowerCase(),`Invalid options.version value`),(0,zg.default)([`ipv4`,`ipv6`,`ipvfuture`].includes(e),`options.version contains unknown version `+e+` - must be one of ipv4, ipv6, ipvfuture`);n=Array.from(new Set(n));let r=n.map(e=>{if(t===`forbidden`)return c_[e];let n=`\\/${e===`ipv4`?c_.v4Cidr:c_.v6Cidr}`;return t===`required`?`${c_[e]}${n}`:`${c_[e]}(?:${n})?`}),i=`(?:${r.join(`|`)})`,a=RegExp(`^${i}$`);return{cidr:t,versions:n,regex:a,raw:i}}const m_={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},h_={accept:12,reject:0,data:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7]};function g_(e){let t=e.indexOf(`%`);if(t===-1)return e;let n=``,r=0,i=0,a=t,o=h_.accept;for(;t>-1&&t<e.length;){let s=__(e[t+1],4),c=__(e[t+2],0),l=s|c,u=h_.data[l];if(o=h_.data[256+o+u],i=i<<6|l&h_.data[364+u],o===h_.accept){n+=e.slice(r,a),n+=i<=65535?String.fromCharCode(i):String.fromCharCode(55232+(i>>10),56320+(i&1023)),i=0,r=t+3,t=e.indexOf(`%`,r),a=t;continue}if(o===h_.reject||(t+=3,t>=e.length||e[t]!==`%`))return null}return n+e.slice(r)}function __(e,t){let n=m_[e];return n===void 0?255:n<<t}var v_={};c(v_,{analyzeDomain:()=>tg,analyzeEmail:()=>sg,errorCodes:()=>Kh,ipRegex:()=>p_,isDomainValid:()=>ng,isEmailValid:()=>cg,uriDecode:()=>g_,uriRegex:()=>f_,validateDomainOptions:()=>ig});var y_=s(exports=>{let t={operators:[`!`,`^`,`*`,`/`,`%`,`+`,`-`,`<`,`<=`,`>`,`>=`,`==`,`!=`,`&&`,`||`,`??`],operatorCharacters:[`!`,`^`,`*`,`/`,`%`,`+`,`-`,`<`,`=`,`>`,`&`,`|`,`?`],operatorsOrder:[[`^`],[`*`,`/`,`%`],[`+`,`-`],[`<`,`<=`,`>`,`>=`],[`==`,`!=`],[`&&`],[`||`,`??`]],operatorsPrefix:[`!`,`n`],literals:{'"':`"`,"`":"`","'":`'`,"[":`]`},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol(`formula`),settings:Symbol(`settings`)};exports.Parser=class{constructor(e,n={}){if(!n[t.settings]&&n.constants)for(let e in n.constants){let t=n.constants[e];if(t!==null&&![`boolean`,`number`,`string`].includes(typeof t))throw Error(`Formula constant ${e} contains invalid ${typeof t} value type`)}this.settings=n[t.settings]?n:Object.assign({[t.settings]:!0,constants:{},functions:{}},n),this.single=null,this._parts=null,this._parse(e)}_parse(n){let r=[],i=``,a=0,o=!1,s=n=>{if(a)throw Error(`Formula missing closing parenthesis`);let s=r.length?r[r.length-1]:null;if(!(!o&&!i&&!n)){if(s&&s.type===`reference`&&n===`)`){s.type=`function`,s.value=this._subFormula(i,s.value),i=``;return}if(n===`)`){let t=new exports.Parser(i,this.settings);r.push({type:`segment`,value:t})}else if(o){if(o===`]`){r.push({type:`reference`,value:i}),i=``;return}r.push({type:`literal`,value:i})}else if(t.operatorCharacters.includes(i))s&&s.type===`operator`&&t.operators.includes(s.value+i)?s.value+=i:r.push({type:`operator`,value:i});else if(i.match(t.numberRx))r.push({type:`constant`,value:parseFloat(i)});else if(this.settings.constants[i]!==void 0)r.push({type:`constant`,value:this.settings.constants[i]});else{if(!i.match(t.tokenRx))throw Error(`Formula contains invalid token: ${i}`);r.push({type:`reference`,value:i})}i=``}};for(let e of n)o?e===o?(s(),o=!1):i+=e:a?e===`(`?(i+=e,++a):e===`)`?(--a,a?i+=e:s(e)):i+=e:e in t.literals?o=t.literals[e]:e===`(`?(s(),++a):t.operatorCharacters.includes(e)?(s(),i=e,s()):e===` `?s():i+=e;s(),r=r.map((e,t)=>e.type!==`operator`||e.value!==`-`||t&&r[t-1].type!==`operator`?e:{type:`operator`,value:`n`});let c=!1;for(let e of r){if(e.type===`operator`){if(t.operatorsPrefix.includes(e.value))continue;if(!c)throw Error(`Formula contains an operator in invalid position`);if(!t.operators.includes(e.value))throw Error(`Formula contains an unknown operator ${e.value}`)}else if(c)throw Error(`Formula missing expected operator`);c=!c}if(!c)throw Error(`Formula contains invalid trailing operator`);r.length===1&&[`reference`,`literal`,`constant`].includes(r[0].type)&&(this.single={type:r[0].type===`reference`?`reference`:`value`,value:r[0].value}),this._parts=r.map(e=>{if(e.type===`operator`)return t.operatorsPrefix.includes(e.value)?e:e.value;if(e.type!==`reference`)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw Error(`Formula contains invalid reference ${e.value}`);return this.settings.reference?this.settings.reference(e.value):t.reference(e.value)})}_subFormula(n,r){let i=this.settings.functions[r];if(typeof i!=`function`)throw Error(`Formula contains unknown function ${r}`);let a=[];if(n){let e=``,i=0,o=!1,s=()=>{if(!e)throw Error(`Formula contains function ${r} with invalid arguments ${n}`);a.push(e),e=``};for(let r=0;r<n.length;++r){let a=n[r];o?(e+=a,a===o&&(o=!1)):a in t.literals&&!i?(e+=a,o=t.literals[a]):a===`,`&&!i?s():(e+=a,a===`(`?++i:a===`)`&&--i)}s()}return a=a.map(t=>new exports.Parser(t,this.settings)),function(e){let t=[];for(let n of a)t.push(n.evaluate(e));return i.call(e,...t)}}evaluate(e){let n=this._parts.slice();for(let r=n.length-2;r>=0;--r){let i=n[r];if(i&&i.type===`operator`){let a=n[r+1];n.splice(r+1,1);let o=t.evaluate(a,e);n[r]=t.single(i.value,o)}}return t.operatorsOrder.forEach(r=>{for(let i=1;i<n.length-1;)if(r.includes(n[i])){let r=n[i],a=t.evaluate(n[i-1],e),o=t.evaluate(n[i+1],e);n.splice(i,2);let s=t.calculate(r,a,o);n[i-1]=s===0?0:s}else i+=2}),t.evaluate(n[0],e)}},exports.Parser.prototype[t.symbol]=!0,t.reference=function(e){return function(t){return t&&t[e]!==void 0?t[e]:null}},t.evaluate=function(e,n){return e===null?null:typeof e==`function`?e(n):e[t.symbol]?e.evaluate(n):e},t.single=function(e,t){if(e===`!`)return!t;let n=-t;return n===0?0:n},t.calculate=function(e,n,r){if(e===`??`)return t.exists(n)?n:r;if(typeof n==`string`||typeof r==`string`){if(e===`+`)return n=t.exists(n)?n:``,r=t.exists(r)?r:``,n+r}else switch(e){case`^`:return n**+r;case`*`:return n*r;case`/`:return n/r;case`%`:return n%r;case`+`:return n+r;case`-`:return n-r}switch(e){case`<`:return n<r;case`<=`:return n<=r;case`>`:return n>r;case`>=`:return n>=r;case`==`:return n===r;case`!=`:return n!==r;case`&&`:return n&&r;case`||`:return n||r}return null},t.exists=function(e){return e!=null}}),b_=s(exports=>{exports.location=function(e=0){let t=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;let n={};Error.captureStackTrace(n,this);let r=n.stack[e+1];return Error.prepareStackTrace=t,{filename:r.getFileName(),line:r.getLineNumber()}}});const x_=`AAA.AARP.ABB.ABBOTT.ABBVIE.ABC.ABLE.ABOGADO.ABUDHABI.AC.ACADEMY.ACCENTURE.ACCOUNTANT.ACCOUNTANTS.ACO.ACTOR.AD.ADS.ADULT.AE.AEG.AERO.AETNA.AF.AFL.AFRICA.AG.AGAKHAN.AGENCY.AI.AIG.AIRBUS.AIRFORCE.AIRTEL.AKDN.AL.ALIBABA.ALIPAY.ALLFINANZ.ALLSTATE.ALLY.ALSACE.ALSTOM.AM.AMAZON.AMERICANEXPRESS.AMERICANFAMILY.AMEX.AMFAM.AMICA.AMSTERDAM.ANALYTICS.ANDROID.ANQUAN.ANZ.AO.AOL.APARTMENTS.APP.APPLE.AQ.AQUARELLE.AR.ARAB.ARAMCO.ARCHI.ARMY.ARPA.ART.ARTE.AS.ASDA.ASIA.ASSOCIATES.AT.ATHLETA.ATTORNEY.AU.AUCTION.AUDI.AUDIBLE.AUDIO.AUSPOST.AUTHOR.AUTO.AUTOS.AW.AWS.AX.AXA.AZ.AZURE.BA.BABY.BAIDU.BANAMEX.BAND.BANK.BAR.BARCELONA.BARCLAYCARD.BARCLAYS.BAREFOOT.BARGAINS.BASEBALL.BASKETBALL.BAUHAUS.BAYERN.BB.BBC.BBT.BBVA.BCG.BCN.BD.BE.BEATS.BEAUTY.BEER.BERLIN.BEST.BESTBUY.BET.BF.BG.BH.BHARTI.BI.BIBLE.BID.BIKE.BING.BINGO.BIO.BIZ.BJ.BLACK.BLACKFRIDAY.BLOCKBUSTER.BLOG.BLOOMBERG.BLUE.BM.BMS.BMW.BN.BNPPARIBAS.BO.BOATS.BOEHRINGER.BOFA.BOM.BOND.BOO.BOOK.BOOKING.BOSCH.BOSTIK.BOSTON.BOT.BOUTIQUE.BOX.BR.BRADESCO.BRIDGESTONE.BROADWAY.BROKER.BROTHER.BRUSSELS.BS.BT.BUILD.BUILDERS.BUSINESS.BUY.BUZZ.BV.BW.BY.BZ.BZH.CA.CAB.CAFE.CAL.CALL.CALVINKLEIN.CAM.CAMERA.CAMP.CANON.CAPETOWN.CAPITAL.CAPITALONE.CAR.CARAVAN.CARDS.CARE.CAREER.CAREERS.CARS.CASA.CASE.CASH.CASINO.CAT.CATERING.CATHOLIC.CBA.CBN.CBRE.CC.CD.CENTER.CEO.CERN.CF.CFA.CFD.CG.CH.CHANEL.CHANNEL.CHARITY.CHASE.CHAT.CHEAP.CHINTAI.CHRISTMAS.CHROME.CHURCH.CI.CIPRIANI.CIRCLE.CISCO.CITADEL.CITI.CITIC.CITY.CK.CL.CLAIMS.CLEANING.CLICK.CLINIC.CLINIQUE.CLOTHING.CLOUD.CLUB.CLUBMED.CM.CN.CO.COACH.CODES.COFFEE.COLLEGE.COLOGNE.COM.COMMBANK.COMMUNITY.COMPANY.COMPARE.COMPUTER.COMSEC.CONDOS.CONSTRUCTION.CONSULTING.CONTACT.CONTRACTORS.COOKING.COOL.COOP.CORSICA.COUNTRY.COUPON.COUPONS.COURSES.CPA.CR.CREDIT.CREDITCARD.CREDITUNION.CRICKET.CROWN.CRS.CRUISE.CRUISES.CU.CUISINELLA.CV.CW.CX.CY.CYMRU.CYOU.CZ.DAD.DANCE.DATA.DATE.DATING.DATSUN.DAY.DCLK.DDS.DE.DEAL.DEALER.DEALS.DEGREE.DELIVERY.DELL.DELOITTE.DELTA.DEMOCRAT.DENTAL.DENTIST.DESI.DESIGN.DEV.DHL.DIAMONDS.DIET.DIGITAL.DIRECT.DIRECTORY.DISCOUNT.DISCOVER.DISH.DIY.DJ.DK.DM.DNP.DO.DOCS.DOCTOR.DOG.DOMAINS.DOT.DOWNLOAD.DRIVE.DTV.DUBAI.DUNLOP.DUPONT.DURBAN.DVAG.DVR.DZ.EARTH.EAT.EC.ECO.EDEKA.EDU.EDUCATION.EE.EG.EMAIL.EMERCK.ENERGY.ENGINEER.ENGINEERING.ENTERPRISES.EPSON.EQUIPMENT.ER.ERICSSON.ERNI.ES.ESQ.ESTATE.ET.EU.EUROVISION.EUS.EVENTS.EXCHANGE.EXPERT.EXPOSED.EXPRESS.EXTRASPACE.FAGE.FAIL.FAIRWINDS.FAITH.FAMILY.FAN.FANS.FARM.FARMERS.FASHION.FAST.FEDEX.FEEDBACK.FERRARI.FERRERO.FI.FIDELITY.FIDO.FILM.FINAL.FINANCE.FINANCIAL.FIRE.FIRESTONE.FIRMDALE.FISH.FISHING.FIT.FITNESS.FJ.FK.FLICKR.FLIGHTS.FLIR.FLORIST.FLOWERS.FLY.FM.FO.FOO.FOOD.FOOTBALL.FORD.FOREX.FORSALE.FORUM.FOUNDATION.FOX.FR.FREE.FRESENIUS.FRL.FROGANS.FRONTIER.FTR.FUJITSU.FUN.FUND.FURNITURE.FUTBOL.FYI.GA.GAL.GALLERY.GALLO.GALLUP.GAME.GAMES.GAP.GARDEN.GAY.GB.GBIZ.GD.GDN.GE.GEA.GENT.GENTING.GEORGE.GF.GG.GGEE.GH.GI.GIFT.GIFTS.GIVES.GIVING.GL.GLASS.GLE.GLOBAL.GLOBO.GM.GMAIL.GMBH.GMO.GMX.GN.GODADDY.GOLD.GOLDPOINT.GOLF.GOO.GOODYEAR.GOOG.GOOGLE.GOP.GOT.GOV.GP.GQ.GR.GRAINGER.GRAPHICS.GRATIS.GREEN.GRIPE.GROCERY.GROUP.GS.GT.GU.GUCCI.GUGE.GUIDE.GUITARS.GURU.GW.GY.HAIR.HAMBURG.HANGOUT.HAUS.HBO.HDFC.HDFCBANK.HEALTH.HEALTHCARE.HELP.HELSINKI.HERE.HERMES.HIPHOP.HISAMITSU.HITACHI.HIV.HK.HKT.HM.HN.HOCKEY.HOLDINGS.HOLIDAY.HOMEDEPOT.HOMEGOODS.HOMES.HOMESENSE.HONDA.HORSE.HOSPITAL.HOST.HOSTING.HOT.HOTELS.HOTMAIL.HOUSE.HOW.HR.HSBC.HT.HU.HUGHES.HYATT.HYUNDAI.IBM.ICBC.ICE.ICU.ID.IE.IEEE.IFM.IKANO.IL.IM.IMAMAT.IMDB.IMMO.IMMOBILIEN.IN.INC.INDUSTRIES.INFINITI.INFO.ING.INK.INSTITUTE.INSURANCE.INSURE.INT.INTERNATIONAL.INTUIT.INVESTMENTS.IO.IPIRANGA.IQ.IR.IRISH.IS.ISMAILI.IST.ISTANBUL.IT.ITAU.ITV.JAGUAR.JAVA.JCB.JE.JEEP.JETZT.JEWELRY.JIO.JLL.JM.JMP.JNJ.JO.JOBS.JOBURG.JOT.JOY.JP.JPMORGAN.JPRS.JUEGOS.JUNIPER.KAUFEN.KDDI.KE.KERRYHOTELS.KERRYPROPERTIES.KFH.KG.KH.KI.KIA.KIDS.KIM.KINDLE.KITCHEN.KIWI.KM.KN.KOELN.KOMATSU.KOSHER.KP.KPMG.KPN.KR.KRD.KRED.KUOKGROUP.KW.KY.KYOTO.KZ.LA.LACAIXA.LAMBORGHINI.LAMER.LAND.LANDROVER.LANXESS.LASALLE.LAT.LATINO.LATROBE.LAW.LAWYER.LB.LC.LDS.LEASE.LECLERC.LEFRAK.LEGAL.LEGO.LEXUS.LGBT.LI.LIDL.LIFE.LIFEINSURANCE.LIFESTYLE.LIGHTING.LIKE.LILLY.LIMITED.LIMO.LINCOLN.LINK.LIVE.LIVING.LK.LLC.LLP.LOAN.LOANS.LOCKER.LOCUS.LOL.LONDON.LOTTE.LOTTO.LOVE.LPL.LPLFINANCIAL.LR.LS.LT.LTD.LTDA.LU.LUNDBECK.LUXE.LUXURY.LV.LY.MA.MADRID.MAIF.MAISON.MAKEUP.MAN.MANAGEMENT.MANGO.MAP.MARKET.MARKETING.MARKETS.MARRIOTT.MARSHALLS.MATTEL.MBA.MC.MCKINSEY.MD.ME.MED.MEDIA.MEET.MELBOURNE.MEME.MEMORIAL.MEN.MENU.MERCKMSD.MG.MH.MIAMI.MICROSOFT.MIL.MINI.MINT.MIT.MITSUBISHI.MK.ML.MLB.MLS.MM.MMA.MN.MO.MOBI.MOBILE.MODA.MOE.MOI.MOM.MONASH.MONEY.MONSTER.MORMON.MORTGAGE.MOSCOW.MOTO.MOTORCYCLES.MOV.MOVIE.MP.MQ.MR.MS.MSD.MT.MTN.MTR.MU.MUSEUM.MUSIC.MV.MW.MX.MY.MZ.NA.NAB.NAGOYA.NAME.NAVY.NBA.NC.NE.NEC.NET.NETBANK.NETFLIX.NETWORK.NEUSTAR.NEW.NEWS.NEXT.NEXTDIRECT.NEXUS.NF.NFL.NG.NGO.NHK.NI.NICO.NIKE.NIKON.NINJA.NISSAN.NISSAY.NL.NO.NOKIA.NORTON.NOW.NOWRUZ.NOWTV.NP.NR.NRA.NRW.NTT.NU.NYC.NZ.OBI.OBSERVER.OFFICE.OKINAWA.OLAYAN.OLAYANGROUP.OLLO.OM.OMEGA.ONE.ONG.ONL.ONLINE.OOO.OPEN.ORACLE.ORANGE.ORG.ORGANIC.ORIGINS.OSAKA.OTSUKA.OTT.OVH.PA.PAGE.PANASONIC.PARIS.PARS.PARTNERS.PARTS.PARTY.PAY.PCCW.PE.PET.PF.PFIZER.PG.PH.PHARMACY.PHD.PHILIPS.PHONE.PHOTO.PHOTOGRAPHY.PHOTOS.PHYSIO.PICS.PICTET.PICTURES.PID.PIN.PING.PINK.PIONEER.PIZZA.PK.PL.PLACE.PLAY.PLAYSTATION.PLUMBING.PLUS.PM.PN.PNC.POHL.POKER.POLITIE.PORN.POST.PR.PRAXI.PRESS.PRIME.PRO.PROD.PRODUCTIONS.PROF.PROGRESSIVE.PROMO.PROPERTIES.PROPERTY.PROTECTION.PRU.PRUDENTIAL.PS.PT.PUB.PW.PWC.PY.QA.QPON.QUEBEC.QUEST.RACING.RADIO.RE.READ.REALESTATE.REALTOR.REALTY.RECIPES.RED.REDSTONE.REDUMBRELLA.REHAB.REISE.REISEN.REIT.RELIANCE.REN.RENT.RENTALS.REPAIR.REPORT.REPUBLICAN.REST.RESTAURANT.REVIEW.REVIEWS.REXROTH.RICH.RICHARDLI.RICOH.RIL.RIO.RIP.RO.ROCKS.RODEO.ROGERS.ROOM.RS.RSVP.RU.RUGBY.RUHR.RUN.RW.RWE.RYUKYU.SA.SAARLAND.SAFE.SAFETY.SAKURA.SALE.SALON.SAMSCLUB.SAMSUNG.SANDVIK.SANDVIKCOROMANT.SANOFI.SAP.SARL.SAS.SAVE.SAXO.SB.SBI.SBS.SC.SCB.SCHAEFFLER.SCHMIDT.SCHOLARSHIPS.SCHOOL.SCHULE.SCHWARZ.SCIENCE.SCOT.SD.SE.SEARCH.SEAT.SECURE.SECURITY.SEEK.SELECT.SENER.SERVICES.SEVEN.SEW.SEX.SEXY.SFR.SG.SH.SHANGRILA.SHARP.SHELL.SHIA.SHIKSHA.SHOES.SHOP.SHOPPING.SHOUJI.SHOW.SI.SILK.SINA.SINGLES.SITE.SJ.SK.SKI.SKIN.SKY.SKYPE.SL.SLING.SM.SMART.SMILE.SN.SNCF.SO.SOCCER.SOCIAL.SOFTBANK.SOFTWARE.SOHU.SOLAR.SOLUTIONS.SONG.SONY.SOY.SPA.SPACE.SPORT.SPOT.SR.SRL.SS.ST.STADA.STAPLES.STAR.STATEBANK.STATEFARM.STC.STCGROUP.STOCKHOLM.STORAGE.STORE.STREAM.STUDIO.STUDY.STYLE.SU.SUCKS.SUPPLIES.SUPPLY.SUPPORT.SURF.SURGERY.SUZUKI.SV.SWATCH.SWISS.SX.SY.SYDNEY.SYSTEMS.SZ.TAB.TAIPEI.TALK.TAOBAO.TARGET.TATAMOTORS.TATAR.TATTOO.TAX.TAXI.TC.TCI.TD.TDK.TEAM.TECH.TECHNOLOGY.TEL.TEMASEK.TENNIS.TEVA.TF.TG.TH.THD.THEATER.THEATRE.TIAA.TICKETS.TIENDA.TIPS.TIRES.TIROL.TJ.TJMAXX.TJX.TK.TKMAXX.TL.TM.TMALL.TN.TO.TODAY.TOKYO.TOOLS.TOP.TORAY.TOSHIBA.TOTAL.TOURS.TOWN.TOYOTA.TOYS.TR.TRADE.TRADING.TRAINING.TRAVEL.TRAVELERS.TRAVELERSINSURANCE.TRUST.TRV.TT.TUBE.TUI.TUNES.TUSHU.TV.TVS.TW.TZ.UA.UBANK.UBS.UG.UK.UNICOM.UNIVERSITY.UNO.UOL.UPS.US.UY.UZ.VA.VACATIONS.VANA.VANGUARD.VC.VE.VEGAS.VENTURES.VERISIGN.VERSICHERUNG.VET.VG.VI.VIAJES.VIDEO.VIG.VIKING.VILLAS.VIN.VIP.VIRGIN.VISA.VISION.VIVA.VIVO.VLAANDEREN.VN.VODKA.VOLVO.VOTE.VOTING.VOTO.VOYAGE.VU.WALES.WALMART.WALTER.WANG.WANGGOU.WATCH.WATCHES.WEATHER.WEATHERCHANNEL.WEBCAM.WEBER.WEBSITE.WED.WEDDING.WEIBO.WEIR.WF.WHOSWHO.WIEN.WIKI.WILLIAMHILL.WIN.WINDOWS.WINE.WINNERS.WME.WOLTERSKLUWER.WOODSIDE.WORK.WORKS.WORLD.WOW.WS.WTC.WTF.XBOX.XEROX.XIHUAN.XIN.XN--11B4C3D.XN--1CK2E1B.XN--1QQW23A.XN--2SCRJ9C.XN--30RR7Y.XN--3BST00M.XN--3DS443G.XN--3E0B707E.XN--3HCRJ9C.XN--3PXU8K.XN--42C2D9A.XN--45BR5CYL.XN--45BRJ9C.XN--45Q11C.XN--4DBRK0CE.XN--4GBRIM.XN--54B7FTA0CC.XN--55QW42G.XN--55QX5D.XN--5SU34J936BGSG.XN--5TZM5G.XN--6FRZ82G.XN--6QQ986B3XL.XN--80ADXHKS.XN--80AO21A.XN--80AQECDR1A.XN--80ASEHDB.XN--80ASWG.XN--8Y0A063A.XN--90A3AC.XN--90AE.XN--90AIS.XN--9DBQ2A.XN--9ET52U.XN--9KRT00A.XN--B4W605FERD.XN--BCK1B9A5DRE4C.XN--C1AVG.XN--C2BR7G.XN--CCK2B3B.XN--CCKWCXETD.XN--CG4BKI.XN--CLCHC0EA0B2G2A9GCD.XN--CZR694B.XN--CZRS0T.XN--CZRU2D.XN--D1ACJ3B.XN--D1ALF.XN--E1A4C.XN--ECKVDTC9D.XN--EFVY88H.XN--FCT429K.XN--FHBEI.XN--FIQ228C5HS.XN--FIQ64B.XN--FIQS8S.XN--FIQZ9S.XN--FJQ720A.XN--FLW351E.XN--FPCRJ9C3D.XN--FZC2C9E2C.XN--FZYS8D69UVGM.XN--G2XX48C.XN--GCKR3F0F.XN--GECRJ9C.XN--GK3AT1E.XN--H2BREG3EVE.XN--H2BRJ9C.XN--H2BRJ9C8C.XN--HXT814E.XN--I1B6B1A6A2E.XN--IMR513N.XN--IO0A7I.XN--J1AEF.XN--J1AMH.XN--J6W193G.XN--JLQ480N2RG.XN--JVR189M.XN--KCRX77D1X4A.XN--KPRW13D.XN--KPRY57D.XN--KPUT3I.XN--L1ACC.XN--LGBBAT1AD8J.XN--MGB9AWBF.XN--MGBA3A3EJT.XN--MGBA3A4F16A.XN--MGBA7C0BBN0A.XN--MGBAAM7A8H.XN--MGBAB2BD.XN--MGBAH1A3HJKRD.XN--MGBAI9AZGQP6J.XN--MGBAYH7GPA.XN--MGBBH1A.XN--MGBBH1A71E.XN--MGBC0A9AZCG.XN--MGBCA7DZDO.XN--MGBCPQ6GPA1A.XN--MGBERP4A5D4AR.XN--MGBGU82A.XN--MGBI4ECEXP.XN--MGBPL2FH.XN--MGBT3DHD.XN--MGBTX2B.XN--MGBX4CD0AB.XN--MIX891F.XN--MK1BU44C.XN--MXTQ1M.XN--NGBC5AZD.XN--NGBE9E0A.XN--NGBRX.XN--NODE.XN--NQV7F.XN--NQV7FS00EMA.XN--NYQY26A.XN--O3CW4H.XN--OGBPF8FL.XN--OTU796D.XN--P1ACF.XN--P1AI.XN--PGBS0DH.XN--PSSY2U.XN--Q7CE6A.XN--Q9JYB4C.XN--QCKA1PMC.XN--QXA6A.XN--QXAM.XN--RHQV96G.XN--ROVU88B.XN--RVC1E0AM3E.XN--S9BRJ9C.XN--SES554G.XN--T60B56A.XN--TCKWE.XN--TIQ49XQYJ.XN--UNUP4Y.XN--VERMGENSBERATER-CTB.XN--VERMGENSBERATUNG-PWB.XN--VHQUV.XN--VUQ861B.XN--W4R85EL8FHU5DNRA.XN--W4RS40L.XN--WGBH1C.XN--WGBL6A.XN--XHQ521B.XN--XKC2AL3HYE2A.XN--XKC2DL3A5EE0H.XN--Y9A3AQ.XN--YFRO4I67O.XN--YGBI2AMMX.XN--ZFR164B.XXX.XYZ.YACHTS.YAHOO.YAMAXUN.YANDEX.YE.YODOBASHI.YOGA.YOKOHAMA.YOU.YOUTUBE.YT.YUN.ZA.ZAPPOS.ZARA.ZERO.ZIP.ZM.ZONE.ZUERICH.ZW`.split(`.`),S_=new Set(x_.map(e=>e.toLowerCase()));var C_=u(y_()),w_=u(b_()),T_=u(Ye());const E_=`1.20250719.2`;Object.defineProperty(exports,`ValidationError`,{enumerable:!0,get:function(){return T_.ValidationError}}),Object.defineProperty(exports,`address`,{enumerable:!0,get:function(){return v_}}),exports.decode=Hh,exports.encode=Vh,Object.defineProperty(exports,`formula`,{enumerable:!0,get:function(){return C_}}),Object.defineProperty(exports,`location`,{enumerable:!0,get:function(){return w_.location}}),exports.tlds=S_,exports.validator=Gh,exports.version=E_;
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>l(t({},`__esModule`,{value:!0}),e);const f=e=>e,p=e=>(e=f(e),e);function m(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function h(e){var t=m(e),n=t[0],r=t[1];return(n+r)*3/4-r}function g(e,t,n){return(t+n)*3/4-n}function _(e){var t,n=m(e),r=n[0],i=n[1],a=new T(g(e,r,i)),o=0,s=i>0?r-4:r,c;for(c=0;c<s;c+=4)t=w[e.charCodeAt(c)]<<18|w[e.charCodeAt(c+1)]<<12|w[e.charCodeAt(c+2)]<<6|w[e.charCodeAt(c+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=w[e.charCodeAt(c)]<<2|w[e.charCodeAt(c+1)]>>4,a[o++]=t&255),i===1&&(t=w[e.charCodeAt(c)]<<10|w[e.charCodeAt(c+1)]<<4|w[e.charCodeAt(c+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function v(e){return C[e>>18&63]+C[e>>12&63]+C[e>>6&63]+C[e&63]}function y(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(v(r));return i.join(``)}function b(e){for(var t,n=e.length,r=n%3,i=[],a=16383,o=0,s=n-r;o<s;o+=a)i.push(y(e,o,o+a>s?s:o+a));return r===1?(t=e[n-1],i.push(C[t>>2]+C[t<<4&63]+`==`)):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(C[t>>10]+C[t>>4&63]+C[t<<2&63]+`=`)),i.join(``)}var x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,ee,I,te,ne,re,L,R,z,ie,ae,B=o(()=>{x={},S={},S.byteLength=h,S.toByteArray=_,S.fromByteArray=b,C=[],w=[],T=typeof Uint8Array<`u`?Uint8Array:Array,E=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;for(var e=0,t=E.length;e<t;++e)C[e]=E[e],w[E.charCodeAt(e)]=e;w[45]=62,w[95]=63,D={},D.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},D.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128},function(e){let t=S,n=D,r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=u,e.SlowBuffer=x,e.INSPECT_MAX_BYTES=50;let i=2147483647;e.kMaxLength=i;let{Uint8Array:a,ArrayBuffer:o,SharedArrayBuffer:s}=globalThis;u.TYPED_ARRAY_SUPPORT=c(),!u.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{let e=new a(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,`parent`,{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,`offset`,{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function l(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new a(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return m(e)}return d(e,t,n)}u.poolSize=8192;function d(e,t,n){if(typeof e==`string`)return h(e,t);if(o.isView(e))return _(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(xe(e,o)||e&&xe(e.buffer,o)||s!==void 0&&(xe(e,s)||e&&xe(e.buffer,s)))return v(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return u.from(r,t,n);let i=y(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return u.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}u.from=function(e,t,n){return d(e,t,n)},Object.setPrototypeOf(u.prototype,a.prototype),Object.setPrototypeOf(u,a);function f(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function p(e,t,n){return f(e),e<=0||t===void 0?l(e):typeof n==`string`?l(e).fill(t,n):l(e).fill(t)}u.alloc=function(e,t,n){return p(e,t,n)};function m(e){return f(e),l(e<0?0:b(e)|0)}u.allocUnsafe=function(e){return m(e)},u.allocUnsafeSlow=function(e){return m(e)};function h(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!u.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=C(e,t)|0,r=l(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function g(e){let t=e.length<0?0:b(e.length)|0,n=l(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function _(e){if(xe(e,a)){let t=new a(e);return v(t.buffer,t.byteOffset,t.byteLength)}return g(e)}function v(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new a(e):n===void 0?new a(e,t):new a(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function y(e){if(u.isBuffer(e)){let t=b(e.length)|0,n=l(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||Se(e.length)?l(0):g(e);if(e.type===`Buffer`&&Array.isArray(e.data))return g(e.data)}function b(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function x(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==u.prototype},u.compare=function(e,t){if(xe(e,a)&&(e=u.from(e,e.offset,e.byteLength)),xe(t,a)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return u.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(xe(t,a))i+t.length>r.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,i)):a.prototype.set.call(r,t,i);else if(u.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function C(e,t){if(u.isBuffer(e))return e.length;if(o.isView(e)||xe(e,o))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return ge(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return ye(e).length;default:if(i)return r?-1:ge(e).length;t=(``+t).toLowerCase(),i=!0}}u.byteLength=C;function w(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return re(this,t,n);case`utf8`:case`utf-8`:return F(this,t,n);case`ascii`:return te(this,t,n);case`latin1`:case`binary`:return ne(this,t,n);case`base64`:return P(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return L(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}u.prototype._isBuffer=!0;function T(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}u.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)T(this,t,t+1);return this},u.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)T(this,t,t+3),T(this,t+1,t+2);return this},u.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)T(this,t,t+7),T(this,t+1,t+6),T(this,t+2,t+5),T(this,t+3,t+4);return this},u.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?F(this,0,e):w.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:u.compare(this,e)===0},u.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(u.prototype[r]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(xe(e,a)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let o=i-r,s=n-t,c=Math.min(o,s),l=this.slice(r,i),d=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==d[e]){o=l[e],s=d[e];break}return o<s?-1:s<o?1:0};function E(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Se(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=u.from(t,r)),u.isBuffer(t))return t.length===0?-1:O(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof a.prototype.indexOf==`function`?i?a.prototype.indexOf.call(e,t,n):a.prototype.lastIndexOf.call(e,t,n):O(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function O(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}u.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},u.prototype.indexOf=function(e,t,n){return E(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return E(this,e,t,n,!1)};function k(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(Se(r))return o;e[n+o]=r}return o}function A(e,t,n,r){return be(ge(t,e.length-n),e,n,r)}function j(e,t,n,r){return be(_e(t),e,n,r)}function M(e,t,n,r){return be(ye(t),e,n,r)}function N(e,t,n,r){return be(ve(t,e.length-n),e,n,r)}u.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return k(this,e,t,n);case`utf8`:case`utf-8`:return A(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return j(this,e,t,n);case`base64`:return M(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return N(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function P(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function F(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return I(r)}let ee=4096;function I(e){let t=e.length;if(t<=ee)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=ee));return n}function te(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function ne(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function re(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=Ce[e[r]];return i}function L(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}u.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r};function R(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=we(function(e){e>>>=0,fe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&pe(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),u.prototype.readBigUInt64BE=we(function(e){e>>>=0,fe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&pe(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},u.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=we(function(e){e>>>=0,fe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&pe(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),u.prototype.readBigInt64BE=we(function(e){e>>>=0,fe(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&pe(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),n.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),n.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),n.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),n.read(this,e,!1,52,8)};function z(e,t,n,r,i,a){if(!u.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;z(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;z(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,1,255,0),this[t]=e&255,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function ie(e,t,n,r,i){de(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function ae(e,t,n,r,i){de(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}u.prototype.writeBigUInt64LE=we(function(e,t=0){return ie(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),u.prototype.writeBigUInt64BE=we(function(e,t=0){return ae(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);z(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);z(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},u.prototype.writeBigInt64LE=we(function(e,t=0){return ie(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),u.prototype.writeBigInt64BE=we(function(e,t=0){return ae(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function B(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function oe(e,t,r,i,a){return t=+t,r>>>=0,a||B(e,t,r,4),n.write(e,t,r,i,23,4),r+4}u.prototype.writeFloatLE=function(e,t,n){return oe(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return oe(this,e,t,!1,n)};function se(e,t,r,i,a){return t=+t,r>>>=0,a||B(e,t,r,8),n.write(e,t,r,i,52,8),r+8}u.prototype.writeDoubleLE=function(e,t,n){return se(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return se(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof a.prototype.copyWithin==`function`?this.copyWithin(t,n,r):a.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!u.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=u.isBuffer(e)?e:u.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};let V={};function ce(e,t,n){V[e]=class extends n{constructor(){super(),Object.defineProperty(this,`message`,{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,`code`,{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}ce(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),ce(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),ce(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=le(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=le(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function le(e){let t=``,n=e.length,r=e[0]===`-`?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function ue(e,t,n){fe(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&pe(t,e.length-(n+1))}function de(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new V.ERR_OUT_OF_RANGE(`value`,i,e)}ue(r,i,a)}function fe(e,t){if(typeof e!=`number`)throw new V.ERR_INVALID_ARG_TYPE(t,`number`,e)}function pe(e,t,n){throw Math.floor(e)===e?t<0?new V.ERR_BUFFER_OUT_OF_BOUNDS:new V.ERR_OUT_OF_RANGE(n||`offset`,`>= ${n?1:0} and <= ${t}`,e):(fe(e,n),new V.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}let me=/[^+/0-9A-Za-z-_]/g;function he(e){if(e=e.split(`=`)[0],e=e.trim().replace(me,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function ge(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function _e(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function ve(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function ye(e){return t.toByteArray(he(e))}function be(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function xe(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Se(e){return e!==e}let Ce=function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function we(e){return typeof BigInt>`u`?Te:e}function Te(){throw Error(`BigInt not supported`)}}(x),O=x.Buffer,k=x.Blob,A=x.BlobOptions,j=x.Buffer,M=x.File,N=x.FileOptions,P=x.INSPECT_MAX_BYTES,F=x.SlowBuffer,ee=x.TranscodeEncoding,I=x.atob,te=x.btoa,ne=x.constants,re=x.isAscii,L=x.isUtf8,R=x.kMaxLength,z=x.kStringMaxLength,ie=x.resolveObjectURL,ae=x.transcode}),oe=s((exports,t)=>{t.exports=function(...e){try{return JSON.stringify(...e)}catch(e){return`[Cannot display object: `+e.message+`]`}}}),se=s((exports,t)=>{let n=oe();t.exports=class extends Error{constructor(t){let r=t.filter(e=>e!==``).map(e=>typeof e==`string`?e:e instanceof Error?e.message:n(e));super(r.join(` `)||`Unknown error`),typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,exports.assert)}}}),V=s((exports,t)=>{let n=se();t.exports=function(e,...t){if(!e)throw t.length===1&&t[0]instanceof Error?t[0]:new n(t)}}),ce=s((exports,t)=>{let n=V(),r={};t.exports=function(e,t,i){if(t===!1||t==null)return e;i||={},typeof i==`string`&&(i={separator:i});let a=Array.isArray(t);n(!a||!i.separator,`Separator option is not valid for array-based chain`);let o=a?t:t.split(i.separator||`.`),s=e;for(let e=0;e<o.length;++e){let a=o[e],c=i.iterables&&r.iterables(s);if(Array.isArray(s)||c===`set`){let e=Number(a);Number.isInteger(e)&&(a=e<0?s.length+e:e)}if(!s||typeof s==`function`&&i.functions===!1||!c&&s[a]===void 0){n(!i.strict||e+1===o.length,`Missing segment`,a,`in reach path `,t),n(typeof s==`object`||i.functions===!0||typeof s!=`function`,`Invalid segment`,a,`in reach path `,t),s=i.default;break}s=c?c===`set`?[...s][a]:s.get(a):s[a]}return s},r.iterables=function(e){if(e instanceof Set)return`set`;if(e instanceof Map)return`map`}}),le=s((exports,t)=>{B();let n={};exports=t.exports={array:Array.prototype,buffer:O&&O.prototype,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},n.typeMap=new Map([[`[object Error]`,exports.error],[`[object Map]`,exports.map],[`[object Promise]`,exports.promise],[`[object Set]`,exports.set],[`[object WeakMap]`,exports.weakMap],[`[object WeakSet]`,exports.weakSet]]),exports.getInternalProto=function(t){if(Array.isArray(t))return exports.array;if(O&&t instanceof O)return exports.buffer;if(t instanceof Date)return exports.date;if(t instanceof RegExp)return exports.regex;if(t instanceof Error)return exports.error;let r=Object.prototype.toString.call(t);return n.typeMap.get(r)||exports.generic}}),ue=s(exports=>{exports.keys=function(e,t={}){return t.symbols===!1?Object.getOwnPropertyNames(e):Reflect.ownKeys(e)}}),de=s((exports,t)=>{B();let n=ce(),r=le(),i=ue(),a={needsProtoHack:new Set([r.set,r.map,r.weakSet,r.weakMap])};t.exports=a.clone=function(e,t={},n=null){if(typeof e!=`object`||!e)return e;let o=a.clone,s=n;if(t.shallow){if(t.shallow!==!0)return a.cloneWithShallow(e,t);o=e=>e}else if(s){let t=s.get(e);if(t)return t}else s=new Map;let c=r.getInternalProto(e);if(c===r.buffer)return O&&O.from(e);if(c===r.date)return new Date(e.getTime());if(c===r.regex)return new RegExp(e);let l=a.base(e,c,t);if(l===e)return e;if(s&&s.set(e,l),c===r.set)for(let n of e)l.add(o(n,t,s));else if(c===r.map)for(let[n,r]of e)l.set(n,o(r,t,s));let u=i.keys(e,t);for(let n of u){if(n===`__proto__`)continue;if(c===r.array&&n===`length`){l.length=e.length;continue}let i=Object.getOwnPropertyDescriptor(e,n);i?i.get||i.set?Object.defineProperty(l,n,i):i.enumerable?l[n]=o(e[n],t,s):Object.defineProperty(l,n,{enumerable:!1,writable:!0,configurable:!0,value:o(e[n],t,s)}):Object.defineProperty(l,n,{enumerable:!0,writable:!0,configurable:!0,value:o(e[n],t,s)})}return l},a.cloneWithShallow=function(e,t){let r=t.shallow;t=Object.assign({},t),t.shallow=!1;let i=new Map;for(let t of r){let r=n(e,t);(typeof r==`object`||typeof r==`function`)&&i.set(r,r)}return a.clone(e,t,i)},a.base=function(e,t,n){if(n.prototype===!1)return a.needsProtoHack.has(t)?new t.constructor:t===r.array?[]:{};let i=Object.getPrototypeOf(e);if(i&&i.isImmutable)return e;if(t===r.array){let e=[];return i!==t&&Object.setPrototypeOf(e,i),e}if(a.needsProtoHack.has(t)){let e=new i.constructor;return i!==t&&Object.setPrototypeOf(e,i),e}return Object.create(i)}}),fe={};c(fe,{browser:()=>ye,default:()=>Ee,dependencies:()=>Se,description:()=>me,devDependencies:()=>Ce,files:()=>be,keywords:()=>xe,license:()=>Te,main:()=>_e,name:()=>pe,repository:()=>ge,scripts:()=>we,types:()=>ve,version:()=>he});var pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De=o(()=>{pe=`joi`,me=`Object schema validation`,he=`17.13.3`,ge=`git://github.com/hapijs/joi`,_e=`lib/index.js`,ve=`lib/index.d.ts`,ye=`dist/joi-browser.min.js`,be=[`lib/**/*`,`dist/*`],xe=[`schema`,`validation`],Se={"@hapi/hoek":`^9.3.0`,"@hapi/topo":`^5.1.0`,"@sideway/address":`^4.1.5`,"@sideway/formula":`^3.0.1`,"@sideway/pinpoint":`^2.0.0`},Ce={"@hapi/bourne":`2.x.x`,"@hapi/code":`8.x.x`,"@hapi/joi-legacy-test":`npm:@hapi/joi@15.x.x`,"@hapi/lab":`^25.1.3`,"@types/node":`^14.18.63`,typescript:`4.3.x`},we={prepublishOnly:`cd browser && npm install && npm run build`,test:`lab -t 100 -a @hapi/code -L -Y`,"test-cov-html":`lab -r html -o coverage.html -a @hapi/code`},Te=`BSD-3-Clause`,Ee={name:pe,description:me,version:he,repository:ge,main:_e,types:ve,browser:ye,files:be,keywords:xe,dependencies:Se,devDependencies:Ce,scripts:we,license:Te}}),Oe=s(exports=>{let t=Jn(),n={};n.wrap=t.string().min(1).max(2).allow(!1),exports.preferences=t.object({allowUnknown:t.boolean(),abortEarly:t.boolean(),artifacts:t.boolean(),cache:t.boolean(),context:t.object(),convert:t.boolean(),dateFormat:t.valid(`date`,`iso`,`string`,`time`,`utc`),debug:t.boolean(),errors:{escapeHtml:t.boolean(),label:t.valid(`path`,`key`,!1),language:[t.string(),t.object().ref()],render:t.boolean(),stack:t.boolean(),wrap:{label:n.wrap,array:n.wrap,string:n.wrap}},externals:t.boolean(),messages:t.object(),noDefaults:t.boolean(),nonEnumerables:t.boolean(),presence:t.valid(`required`,`optional`,`forbidden`),skipFunctions:t.boolean(),stripUnknown:t.object({arrays:t.boolean(),objects:t.boolean()}).or(`arrays`,`objects`).allow(!0,!1),warnings:t.boolean()}).strict(),n.nameRx=/^[a-zA-Z0-9]\w*$/,n.rule=t.object({alias:t.array().items(t.string().pattern(n.nameRx)).single(),args:t.array().items(t.string(),t.object({name:t.string().pattern(n.nameRx).required(),ref:t.boolean(),assert:t.alternatives([t.function(),t.object().schema()]).conditional(`ref`,{is:!0,then:t.required()}),normalize:t.function(),message:t.string().when(`assert`,{is:t.function(),then:t.required()})})),convert:t.boolean(),manifest:t.boolean(),method:t.function().allow(!1),multi:t.boolean(),validate:t.function()}),exports.extension=t.object({type:t.alternatives([t.string(),t.object().regex()]).required(),args:t.function(),cast:t.object().pattern(n.nameRx,t.object({from:t.function().maxArity(1).required(),to:t.function().minArity(1).maxArity(2).required()})),base:t.object().schema().when(`type`,{is:t.object().regex(),then:t.forbidden()}),coerce:[t.function().maxArity(3),t.object({method:t.function().maxArity(3).required(),from:t.array().items(t.string()).single()})],flags:t.object().pattern(n.nameRx,t.object({setter:t.string(),default:t.any()})),manifest:{build:t.function().arity(2)},messages:[t.object(),t.string()],modifiers:t.object().pattern(n.nameRx,t.function().minArity(1).maxArity(2)),overrides:t.object().pattern(n.nameRx,t.function()),prepare:t.function().maxArity(3),rebuild:t.function().arity(1),rules:t.object().pattern(n.nameRx,n.rule),terms:t.object().pattern(n.nameRx,t.object({init:t.array().allow(null).required(),manifest:t.object().pattern(/.+/,[t.valid(`schema`,`single`),t.object({mapped:t.object({from:t.string().required(),to:t.string().required()}).required()})])})),validate:t.function().maxArity(3)}).strict(),exports.extensions=t.array().items(t.object(),t.function().arity(1)).strict(),n.desc={buffer:t.object({buffer:t.string()}),func:t.object({function:t.function().required(),options:{literal:!0}}),override:t.object({override:!0}),ref:t.object({ref:t.object({type:t.valid(`value`,`global`,`local`),path:t.array().required(),separator:t.string().length(1).allow(!1),ancestor:t.number().min(0).integer().allow(`root`),map:t.array().items(t.array().length(2)).min(1),adjust:t.function(),iterables:t.boolean(),in:t.boolean(),render:t.boolean()}).required()}),regex:t.object({regex:t.string().min(3)}),special:t.object({special:t.valid(`deep`).required()}),template:t.object({template:t.string().required(),options:t.object()}),value:t.object({value:t.alternatives([t.object(),t.array()]).required()})},n.desc.entity=t.alternatives([t.array().items(t.link(`...`)),t.boolean(),t.function(),t.number(),t.string(),n.desc.buffer,n.desc.func,n.desc.ref,n.desc.regex,n.desc.special,n.desc.template,n.desc.value,t.link(`/`)]),n.desc.values=t.array().items(null,t.boolean(),t.function(),t.number().allow(1/0,-1/0),t.string().allow(``),t.symbol(),n.desc.buffer,n.desc.func,n.desc.override,n.desc.ref,n.desc.regex,n.desc.template,n.desc.value),n.desc.messages=t.object().pattern(/.+/,[t.string(),n.desc.template,t.object().pattern(/.+/,[t.string(),n.desc.template])]),exports.description=t.object({type:t.string().required(),flags:t.object({cast:t.string(),default:t.any(),description:t.string(),empty:t.link(`/`),failover:n.desc.entity,id:t.string(),label:t.string(),only:!0,presence:[`optional`,`required`,`forbidden`],result:[`raw`,`strip`],strip:t.boolean(),unit:t.string()}).unknown(),preferences:{allowUnknown:t.boolean(),abortEarly:t.boolean(),artifacts:t.boolean(),cache:t.boolean(),convert:t.boolean(),dateFormat:[`date`,`iso`,`string`,`time`,`utc`],errors:{escapeHtml:t.boolean(),label:[`path`,`key`],language:[t.string(),n.desc.ref],wrap:{label:n.wrap,array:n.wrap}},externals:t.boolean(),messages:n.desc.messages,noDefaults:t.boolean(),nonEnumerables:t.boolean(),presence:[`required`,`optional`,`forbidden`],skipFunctions:t.boolean(),stripUnknown:t.object({arrays:t.boolean(),objects:t.boolean()}).or(`arrays`,`objects`).allow(!0,!1),warnings:t.boolean()},allow:n.desc.values,invalid:n.desc.values,rules:t.array().min(1).items({name:t.string().required(),args:t.object().min(1),keep:t.boolean(),message:[t.string(),n.desc.messages],warn:t.boolean()}),keys:t.object().pattern(/.*/,t.link(`/`)),link:n.desc.ref}).pattern(/^[a-z]\w*$/,t.any())}),ke=s((exports,t)=>{let n={};t.exports=function(e){if(!e)return``;let t=``;for(let r=0;r<e.length;++r){let i=e.charCodeAt(r);n.isSafe(i)?t+=e[r]:t+=n.escapeHtmlChar(i)}return t},n.escapeHtmlChar=function(e){let t=n.namedHtml.get(e);if(t)return t;if(e>=256)return`&#`+e+`;`;let r=e.toString(16).padStart(2,`0`);return`&#x${r};`},n.isSafe=function(e){return n.safeCharCodes.has(e)},n.namedHtml=new Map([[38,`&`],[60,`<`],[62,`>`],[34,`"`],[160,` `],[162,`¢`],[163,`£`],[164,`¤`],[169,`©`],[174,`®`]]),n.safeCharCodes=function(){let e=new Set;for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||t===32||t===46||t===44||t===45||t===58||t===95)&&e.add(t);return e}()}),Ae=s(exports=>{let t={operators:[`!`,`^`,`*`,`/`,`%`,`+`,`-`,`<`,`<=`,`>`,`>=`,`==`,`!=`,`&&`,`||`,`??`],operatorCharacters:[`!`,`^`,`*`,`/`,`%`,`+`,`-`,`<`,`=`,`>`,`&`,`|`,`?`],operatorsOrder:[[`^`],[`*`,`/`,`%`],[`+`,`-`],[`<`,`<=`,`>`,`>=`],[`==`,`!=`],[`&&`],[`||`,`??`]],operatorsPrefix:[`!`,`n`],literals:{'"':`"`,"`":"`","'":`'`,"[":`]`},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol(`formula`),settings:Symbol(`settings`)};exports.Parser=class{constructor(e,n={}){if(!n[t.settings]&&n.constants)for(let e in n.constants){let t=n.constants[e];if(t!==null&&![`boolean`,`number`,`string`].includes(typeof t))throw Error(`Formula constant ${e} contains invalid ${typeof t} value type`)}this.settings=n[t.settings]?n:Object.assign({[t.settings]:!0,constants:{},functions:{}},n),this.single=null,this._parts=null,this._parse(e)}_parse(n){let r=[],i=``,a=0,o=!1,s=n=>{if(a)throw Error(`Formula missing closing parenthesis`);let s=r.length?r[r.length-1]:null;if(!(!o&&!i&&!n)){if(s&&s.type===`reference`&&n===`)`){s.type=`function`,s.value=this._subFormula(i,s.value),i=``;return}if(n===`)`){let t=new exports.Parser(i,this.settings);r.push({type:`segment`,value:t})}else if(o){if(o===`]`){r.push({type:`reference`,value:i}),i=``;return}r.push({type:`literal`,value:i})}else if(t.operatorCharacters.includes(i))s&&s.type===`operator`&&t.operators.includes(s.value+i)?s.value+=i:r.push({type:`operator`,value:i});else if(i.match(t.numberRx))r.push({type:`constant`,value:parseFloat(i)});else if(this.settings.constants[i]!==void 0)r.push({type:`constant`,value:this.settings.constants[i]});else{if(!i.match(t.tokenRx))throw Error(`Formula contains invalid token: ${i}`);r.push({type:`reference`,value:i})}i=``}};for(let e of n)o?e===o?(s(),o=!1):i+=e:a?e===`(`?(i+=e,++a):e===`)`?(--a,a?i+=e:s(e)):i+=e:e in t.literals?o=t.literals[e]:e===`(`?(s(),++a):t.operatorCharacters.includes(e)?(s(),i=e,s()):e===` `?s():i+=e;s(),r=r.map((e,t)=>e.type!==`operator`||e.value!==`-`||t&&r[t-1].type!==`operator`?e:{type:`operator`,value:`n`});let c=!1;for(let e of r){if(e.type===`operator`){if(t.operatorsPrefix.includes(e.value))continue;if(!c)throw Error(`Formula contains an operator in invalid position`);if(!t.operators.includes(e.value))throw Error(`Formula contains an unknown operator ${e.value}`)}else if(c)throw Error(`Formula missing expected operator`);c=!c}if(!c)throw Error(`Formula contains invalid trailing operator`);r.length===1&&[`reference`,`literal`,`constant`].includes(r[0].type)&&(this.single={type:r[0].type===`reference`?`reference`:`value`,value:r[0].value}),this._parts=r.map(e=>{if(e.type===`operator`)return t.operatorsPrefix.includes(e.value)?e:e.value;if(e.type!==`reference`)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw Error(`Formula contains invalid reference ${e.value}`);return this.settings.reference?this.settings.reference(e.value):t.reference(e.value)})}_subFormula(n,r){let i=this.settings.functions[r];if(typeof i!=`function`)throw Error(`Formula contains unknown function ${r}`);let a=[];if(n){let e=``,i=0,o=!1,s=()=>{if(!e)throw Error(`Formula contains function ${r} with invalid arguments ${n}`);a.push(e),e=``};for(let r=0;r<n.length;++r){let a=n[r];o?(e+=a,a===o&&(o=!1)):a in t.literals&&!i?(e+=a,o=t.literals[a]):a===`,`&&!i?s():(e+=a,a===`(`?++i:a===`)`&&--i)}s()}return a=a.map(t=>new exports.Parser(t,this.settings)),function(e){let t=[];for(let n of a)t.push(n.evaluate(e));return i.call(e,...t)}}evaluate(e){let n=this._parts.slice();for(let r=n.length-2;r>=0;--r){let i=n[r];if(i&&i.type===`operator`){let a=n[r+1];n.splice(r+1,1);let o=t.evaluate(a,e);n[r]=t.single(i.value,o)}}return t.operatorsOrder.forEach(r=>{for(let i=1;i<n.length-1;)if(r.includes(n[i])){let r=n[i],a=t.evaluate(n[i-1],e),o=t.evaluate(n[i+1],e);n.splice(i,2);let s=t.calculate(r,a,o);n[i-1]=s===0?0:s}else i+=2}),t.evaluate(n[0],e)}},exports.Parser.prototype[t.symbol]=!0,t.reference=function(e){return function(t){return t&&t[e]!==void 0?t[e]:null}},t.evaluate=function(e,n){return e===null?null:typeof e==`function`?e(n):e[t.symbol]?e.evaluate(n):e},t.single=function(e,t){if(e===`!`)return!t;let n=-t;return n===0?0:n},t.calculate=function(e,n,r){if(e===`??`)return t.exists(n)?n:r;if(typeof n==`string`||typeof r==`string`){if(e===`+`)return n=t.exists(n)?n:``,r=t.exists(r)?r:``,n+r}else switch(e){case`^`:return n**+r;case`*`:return n*r;case`/`:return n/r;case`%`:return n%r;case`+`:return n+r;case`-`:return n-r}switch(e){case`<`:return n<r;case`<=`:return n<=r;case`>`:return n>r;case`>=`:return n>=r;case`==`:return n===r;case`!=`:return n!==r;case`&&`:return n&&r;case`||`:return n||r}return null},t.exists=function(e){return e!=null}}),je=s(exports=>{let t=de(),n=H(),r={annotations:Symbol(`annotations`)};exports.error=function(e){if(!this._original||typeof this._original!=`object`)return this.details[0].message;let i=e?``:`\x1B[31m`,a=e?``:`\x1B[41m`,o=e?``:`\x1B[0m`,s=t(this._original);for(let e=this.details.length-1;e>=0;--e){let t=e+1,i=this.details[e],a=i.path,o=s;for(let e=0;;++e){let s=a[e];if(n.isSchema(o)&&(o=o.clone()),e+1<a.length&&typeof o[s]!=`string`)o=o[s];else{let e=o[r.annotations]||{errors:{},missing:{}};o[r.annotations]=e;let n=s||i.context.key;o[s]===void 0?e.missing[n]=t:(e.errors[n]=e.errors[n]||[],e.errors[n].push(t));break}}}let c={key:/_\$key\$_([, \d]+)_\$end\$_"/g,missing:/"_\$miss\$_([^|]+)\|(\d+)_\$end\$_": "__missing__"/g,arrayIndex:/\s*"_\$idx\$_([, \d]+)_\$end\$_",?\n(.*)/g,specials:/"\[(NaN|Symbol.*|-?Infinity|function.*|\(.*)]"/g},l=r.safeStringify(s,2).replace(c.key,(e,t)=>`" ${i}[${t}]${o}`).replace(c.missing,(e,t,n)=>`${a}"${t}"${o}${i} [${n}]: -- missing --${o}`).replace(c.arrayIndex,(e,t,n)=>`\n${n} ${i}[${t}]${o}`).replace(c.specials,(e,t)=>t);l=`${l}\n${i}`;for(let e=0;e<this.details.length;++e){let t=e+1;l=`${l}\n[${t}] ${this.details[e].message}`}return l+=o,l},r.safeStringify=function(e,t){return JSON.stringify(e,r.serializer(),t)},r.serializer=function(){let e=[],t=[],n=(n,r)=>t[0]===r?`[Circular ~]`:`[Circular ~.`+e.slice(0,t.indexOf(r)).join(`.`)+`]`;return function(i,a){if(t.length>0){let r=t.indexOf(this);~r?(t.length=r+1,e.length=r+1,e[r]=i):(t.push(this),e.push(i)),~t.indexOf(a)&&(a=n.call(this,i,a))}else t.push(a);if(a){let e=a[r.annotations];if(e){if(Array.isArray(a)){let t=[];for(let n=0;n<a.length;++n)e.errors[n]&&t.push(`_$idx$_${e.errors[n].sort().join(`, `)}_$end$_`),t.push(a[n]);a=t}else{for(let t in e.errors)a[`${t}_$key$_${e.errors[t].sort().join(`, `)}_$end$_`]=a[t],a[t]=void 0;for(let t in e.missing)a[`_$miss$_${t}|${e.missing[t]}_$end$_`]=`__missing__`}return a}}return a===1/0||a===-1/0||Number.isNaN(a)||typeof a==`function`||typeof a==`symbol`?`[`+a.toString()+`]`:a}}}),Me=s(exports=>{let t=je(),n=H(),r=Pe();exports.Report=class{constructor(t,n,r,i,a,o,s){if(this.code=t,this.flags=i,this.messages=a,this.path=o.path,this.prefs=s,this.state=o,this.value=n,this.message=null,this.template=null,this.local=r||{},this.local.label=exports.label(this.flags,this.state,this.prefs,this.messages),this.value!==void 0&&!this.local.hasOwnProperty(`value`)&&(this.local.value=this.value),this.path.length){let e=this.path[this.path.length-1];typeof e!=`object`&&(this.local.key=e)}}_setTemplate(e){if(this.template=e,!this.flags.label&&this.path.length===0){let e=this._template(this.template,`root`);e&&(this.local.label=e)}}toString(){if(this.message)return this.message;let e=this.code;if(!this.prefs.errors.render)return this.code;let t=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return t===void 0?`Error code "${e}" is not defined, your custom type is missing the correct messages definition`:(this.message=t.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,``).trim()),this.message)}_template(t,n){return exports.template(this.value,t,n||this.code,this.state,this.prefs)}},exports.path=function(e){let t=``;for(let n of e){if(typeof n==`object`)continue;typeof n==`string`?(t&&(t+=`.`),t+=n):t+=`[${n}]`}return t},exports.template=function(e,t,i,a,o){if(!t)return;if(r.isTemplate(t))return i===`root`?null:t;let s=o.errors.language;if(n.isResolvable(s)&&(s=s.resolve(e,a,o)),s&&t[s]){if(t[s][i]!==void 0)return t[s][i];if(t[s][`*`]!==void 0)return t[s][`*`]}return t[i]?t[i]:t[`*`]},exports.label=function(t,n,r,i){if(!r.errors.label)return``;if(t.label)return t.label;let a=n.path;r.errors.label===`key`&&n.path.length>1&&(a=n.path.slice(-1));let o=exports.path(a);return o||exports.template(null,r.messages,`root`,n,r)||i&&exports.template(null,i,`root`,n,r)||`value`},exports.process=function(t,n,r){if(!t)return null;let{override:i,message:a,details:o}=exports.details(t);if(i)return i;if(r.errors.stack)return new exports.ValidationError(a,o,n);let s=Error.stackTraceLimit;Error.stackTraceLimit=0;let c=new exports.ValidationError(a,o,n);return Error.stackTraceLimit=s,c},exports.details=function(e,t={}){let n=[],r=[];for(let i of e){if(i instanceof Error){if(t.override!==!1)return{override:i};let e=i.toString();n.push(e),r.push({message:e,type:`override`,context:{error:i}});continue}let e=i.toString();n.push(e),r.push({message:e,path:i.path.filter(e=>typeof e!=`object`),type:i.code,context:i.local})}return n.length>1&&(n=[...new Set(n)]),{message:n.join(`. `),details:r}},exports.ValidationError=class extends Error{constructor(e,t,n){super(e),this._original=n,this.details=t}static isError(t){return t instanceof exports.ValidationError}},exports.ValidationError.prototype.isJoi=!0,exports.ValidationError.prototype.name=`ValidationError`,exports.ValidationError.prototype.annotate=t.error}),Ne=s(exports=>{let t=V(),n=de(),r=ce(),i=H(),a,o={symbol:Symbol(`ref`),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:`.`,type:`value`}};exports.create=function(e,n={}){t(typeof e==`string`,`Invalid reference key:`,e),i.assertOptions(n,[`adjust`,`ancestor`,`in`,`iterables`,`map`,`prefix`,`render`,`separator`]),t(!n.prefix||typeof n.prefix==`object`,`options.prefix must be of type object`);let r=Object.assign({},o.defaults,n);delete r.prefix;let a=r.separator,s=o.context(e,a,n.prefix);if(r.type=s.type,e=s.key,r.type===`value`)if(s.root&&(t(!a||e[0]!==a,`Cannot specify relative path with root prefix`),r.ancestor=`root`,e||=null),a&&a===e)e=null,r.ancestor=0;else if(r.ancestor!==void 0)t(!a||!e||e[0]!==a,`Cannot combine prefix with ancestor option`);else{let[t,n]=o.ancestor(e,a);n&&(e=e.slice(n),e===``&&(e=null)),r.ancestor=t}return r.path=a?e===null?[]:e.split(a):[e],new o.Ref(r)},exports.in=function(t,n={}){return exports.create(t,{...n,in:!0})},exports.isRef=function(e){return e?!!e[i.symbols.ref]:!1},o.Ref=class{constructor(e){t(typeof e==`object`,`Invalid reference construction`),i.assertOptions(e,[`adjust`,`ancestor`,`in`,`iterables`,`map`,`path`,`render`,`separator`,`type`,`depth`,`key`,`root`,`display`]),t([!1,void 0].includes(e.separator)||typeof e.separator==`string`&&e.separator.length===1,`Invalid separator`),t(!e.adjust||typeof e.adjust==`function`,`options.adjust must be a function`),t(!e.map||Array.isArray(e.map),`options.map must be an array`),t(!e.map||!e.adjust,`Cannot set both map and adjust options`),Object.assign(this,o.defaults,e),t(this.type===`value`||this.ancestor===void 0,`Non-value references cannot reference ancestors`),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(e,n,r,i,a={}){return t(!this.in||a.in,`Invalid in() reference usage`),this.type===`global`?this._resolve(r.context,n,a):this.type===`local`?this._resolve(i,n,a):this.ancestor?this.ancestor===`root`?this._resolve(n.ancestors[n.ancestors.length-1],n,a):(t(this.ancestor<=n.ancestors.length,`Invalid reference exceeds the schema root:`,this.display),this._resolve(n.ancestors[this.ancestor-1],n,a)):this._resolve(e,n,a)}_resolve(e,t,n){let i;if(this.type===`value`&&t.mainstay.shadow&&n.shadow!==!1&&(i=t.mainstay.shadow.get(this.absolute(t))),i===void 0&&(i=r(e,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(i=this.adjust(i)),this.map){let e=this.map.get(i);e!==void 0&&(i=e)}return t.mainstay&&t.mainstay.tracer.resolve(t,this,i),i}toString(){return this.display}absolute(e){return[...e.path.slice(0,-this.ancestor),...this.path]}clone(){return new o.Ref(this)}describe(){let e={path:this.path};this.type!==`value`&&(e.type=this.type),this.separator!==`.`&&(e.separator=this.separator),this.type===`value`&&this.ancestor!==1&&(e.ancestor=this.ancestor),this.map&&(e.map=[...this.map]);for(let t of[`adjust`,`iterables`,`render`])this[t]!==null&&this[t]!==void 0&&(e[t]=this[t]);return this.in!==!1&&(e.in=!0),{ref:e}}updateDisplay(){let e=this.key===null?``:this.key;if(this.type!==`value`){this.display=`ref:${this.type}:${e}`;return}if(!this.separator){this.display=`ref:${e}`;return}if(!this.ancestor){this.display=`ref:${this.separator}${e}`;return}if(this.ancestor===`root`){this.display=`ref:root:${e}`;return}if(this.ancestor===1){this.display=`ref:${e||`..`}`;return}let t=Array(this.ancestor+1).fill(this.separator).join(``);this.display=`ref:${t}${e||``}`}},o.Ref.prototype[i.symbols.ref]=!0,exports.build=function(e){return e=Object.assign({},o.defaults,e),e.type===`value`&&e.ancestor===void 0&&(e.ancestor=1),new o.Ref(e)},o.context=function(e,t,n={}){if(e=e.trim(),n){let r=n.global===void 0?`$`:n.global;if(r!==t&&e.startsWith(r))return{key:e.slice(r.length),type:`global`};let i=n.local===void 0?`#`:n.local;if(i!==t&&e.startsWith(i))return{key:e.slice(i.length),type:`local`};let a=n.root===void 0?`/`:n.root;if(a!==t&&e.startsWith(a))return{key:e.slice(a.length),type:`value`,root:!0}}return{key:e,type:`value`}},o.ancestor=function(e,t){if(!t||e[0]!==t)return[1,0];if(e[1]!==t)return[0,1];let n=2;for(;e[n]===t;)++n;return[n-1,n]},exports.toSibling=0,exports.toParent=1,exports.Manager=class{constructor(){this.refs=[]}register(t,n){if(t){if(n=n===void 0?exports.toParent:n,Array.isArray(t)){for(let e of t)this.register(e,n);return}if(i.isSchema(t)){for(let e of t._refs.refs)e.ancestor-n>=0&&this.refs.push({ancestor:e.ancestor-n,root:e.root});return}exports.isRef(t)&&t.type===`value`&&t.ancestor-n>=0&&this.refs.push({ancestor:t.ancestor-n,root:t.root}),a||=Pe(),a.isTemplate(t)&&this.register(t.refs(),n)}}get length(){return this.refs.length}clone(){let t=new exports.Manager;return t.refs=n(this.refs),t}reset(){this.refs=[]}roots(){return this.refs.filter(e=>!e.ancestor).map(e=>e.root)}}}),Pe=s((exports,t)=>{let n=V(),r=de(),i=ke(),a=Ae(),o=H(),s=Me(),c=Ne(),l={symbol:Symbol(`template`),opens:Array(1e3).join(`\0`),closes:Array(1e3).join(``),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};t.exports=exports=l.Template=class{constructor(e,t){if(n(typeof e==`string`,`Template source must be a string`),n(!e.includes(`\0`)&&!e.includes(``),`Template source cannot contain reserved control characters`),this.source=e,this.rendered=e,this._template=null,t){let{functions:e,...i}=t;this._settings=Object.keys(i).length?r(i):void 0,this._functions=e,this._functions&&(n(Object.keys(this._functions).every(e=>typeof e==`string`),`Functions keys must be strings`),n(Object.values(this._functions).every(e=>typeof e==`function`),`Functions values must be functions`))}else this._settings=void 0,this._functions=void 0;this._parse()}_parse(){if(!this.source.includes(`{`))return;let e=l.encode(this.source),t=l.split(e),n=!1,r=[],i=t.shift();i&&r.push(i);for(let e of t){let t=e[0]!==`{`,i=t?`}`:`}}`,a=e.indexOf(i);if(a===-1||e[1]===`{`){r.push(`{${l.decode(e)}`);continue}let o=e.slice(t?0:1,a),s=o[0]===`:`;s&&(o=o.slice(1));let c=this._ref(l.decode(o),{raw:t,wrapped:s});r.push(c),typeof c!=`string`&&(n=!0);let u=e.slice(a+i.length);u&&r.push(l.decode(u))}if(!n){this.rendered=r.join(``);return}this._template=r}static date(e,t){return l.dateFormat[t.dateFormat].call(e)}describe(e={}){if(!this._settings&&e.compact)return this.source;let t={template:this.source};return this._settings&&(t.options=this._settings),this._functions&&(t.functions=this._functions),t}static build(e){return new l.Template(e.template,e.options||e.functions?{...e.options,functions:e.functions}:void 0)}isDynamic(){return!!this._template}static isTemplate(e){return e?!!e[o.symbols.template]:!1}refs(){if(!this._template)return;let e=[];for(let t of this._template)typeof t!=`string`&&e.push(...t.refs);return e}resolve(e,t,n,r){return this._template&&this._template.length===1?this._part(this._template[0],e,t,n,r,{}):this.render(e,t,n,r)}_part(e,...t){return e.ref?e.ref.resolve(...t):e.formula.evaluate(t)}render(e,t,n,r,a={}){if(!this.isDynamic())return this.rendered;let o=[];for(let s of this._template)if(typeof s==`string`)o.push(s);else{let c=this._part(s,e,t,n,r,a),u=l.stringify(c,e,t,n,r,a);if(u!==void 0){let e=s.raw||(a.errors&&a.errors.escapeHtml)===!1?u:i(u);o.push(l.wrap(e,s.wrapped&&n.errors.wrap.label))}}return o.join(``)}_ref(e,{raw:t,wrapped:n}){let r=[],i=e=>{let t=c.create(e,this._settings);return r.push(t),e=>{let n=t.resolve(...e);return n===void 0?null:n}};try{let t=this._functions?{...l.functions,...this._functions}:l.functions;var o=new a.Parser(e,{reference:i,functions:t,constants:l.constants})}catch(t){throw t.message=`Invalid template variable "${e}" fails due to: ${t.message}`,t}if(o.single){if(o.single.type===`reference`){let e=r[0];return{ref:e,raw:t,refs:r,wrapped:n||e.type===`local`&&e.key===`label`}}return l.stringify(o.single.value)}return{formula:o,raw:t,refs:r}}toString(){return this.source}},l.Template.prototype[o.symbols.template]=!0,l.Template.prototype.isImmutable=!0,l.encode=function(e){return e.replace(/\\(\{+)/g,(e,t)=>l.opens.slice(0,t.length)).replace(/\\(\}+)/g,(e,t)=>l.closes.slice(0,t.length))},l.decode=function(e){return e.replace(/\u0000/g,`{`).replace(/\u0001/g,`}`)},l.split=function(e){let t=[],n=``;for(let r=0;r<e.length;++r){let i=e[r];if(i===`{`){let i=``;for(;r+1<e.length&&e[r+1]===`{`;)i+=`{`,++r;t.push(n),n=i}else n+=i}return t.push(n),t},l.wrap=function(e,t){return t?t.length===1?`${t}${e}${t}`:`${t[0]}${e}${t[1]}`:e},l.stringify=function(e,t,n,r,i,a={}){let o=typeof e,s=r&&r.errors&&r.errors.wrap||{},u=!1;if(c.isRef(e)&&e.render&&(u=e.in,e=e.resolve(t,n,r,i,{in:e.in,...a})),e===null)return`null`;if(o===`string`)return l.wrap(e,a.arrayItems&&s.string);if(o===`number`||o===`function`||o===`symbol`)return e.toString();if(o!==`object`)return JSON.stringify(e);if(e instanceof Date)return l.Template.date(e,r);if(e instanceof Map){let t=[];for(let[n,r]of e.entries())t.push(`${n.toString()} -> ${r.toString()}`);e=t}if(!Array.isArray(e))return e.toString();let d=[];for(let o of e)d.push(l.stringify(o,t,n,r,i,{arrayItems:!0,...a}));return l.wrap(d.join(`, `),!u&&s.array)},l.constants={true:!0,false:!1,null:null,second:1e3,minute:60*1e3,hour:60*60*1e3,day:24*60*60*1e3},l.functions={if(e,t,n){return e?t:n},length(e){return typeof e==`string`?e.length:!e||typeof e!=`object`?null:Array.isArray(e)?e.length:Object.keys(e).length},msg(e){let[t,n,r,i,a]=this,o=a.messages;if(!o)return``;let c=s.template(t,o[0],e,n,r)||s.template(t,o[1],e,n,r);return c?c.render(t,n,r,i,a):``},number(e){return typeof e==`number`?e:typeof e==`string`?parseFloat(e):typeof e==`boolean`?e?1:0:e instanceof Date?e.getTime():null}}}),Fe=s(exports=>{let t=V(),n=de(),r=Pe();exports.compile=function(e,i){if(typeof e==`string`)return t(!i,`Cannot set single message string`),new r(e);if(r.isTemplate(e))return t(!i,`Cannot set single message template`),e;for(let a in t(typeof e==`object`&&!Array.isArray(e),`Invalid message options`),i=i?n(i):{},e){let n=e[a];if(a===`root`||r.isTemplate(n)){i[a]=n;continue}if(typeof n==`string`){i[a]=new r(n);continue}t(typeof n==`object`&&!Array.isArray(n),`Invalid message for`,a);let o=a;for(a in i[o]=i[o]||{},n){let e=n[a];if(a===`root`||r.isTemplate(e)){i[o][a]=e;continue}t(typeof e==`string`,`Invalid message for`,a,`in`,o),i[o][a]=new r(e)}}return i},exports.decompile=function(e){let t={};for(let n in e){let i=e[n];if(n===`root`){t.root=i;continue}if(r.isTemplate(i)){t[n]=i.describe({compact:!0});continue}let a=n;for(n in t[a]={},i){let e=i[n];if(n===`root`){t[a].root=e;continue}t[a][n]=e.describe({compact:!0})}}return t},exports.merge=function(i,a){if(!i)return exports.compile(a);if(!a)return i;if(typeof a==`string`)return new r(a);if(r.isTemplate(a))return a;let o=n(i);for(let e in a){let n=a[e];if(e===`root`||r.isTemplate(n)){o[e]=n;continue}if(typeof n==`string`){o[e]=new r(n);continue}t(typeof n==`object`&&!Array.isArray(n),`Invalid message for`,e);let i=e;for(e in o[i]=o[i]||{},n){let a=n[e];if(e===`root`||r.isTemplate(a)){o[i][e]=a;continue}t(typeof a==`string`,`Invalid message for`,e,`in`,i),o[i][e]=new r(a)}}return o}}),H=s(exports=>{let t=V(),n=se(),r=(De(),d(fe).default),i,a,o={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};exports.version=r.version,exports.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:`iso`,errors:{escapeHtml:!1,label:`path`,language:null,render:!0,stack:!1,wrap:{label:`"`,array:`[]`}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:`optional`,skipFunctions:!1,stripUnknown:!1,warnings:!1},exports.symbols={any:Symbol.for(`@hapi/joi/schema`),arraySingle:Symbol(`arraySingle`),deepDefault:Symbol(`deepDefault`),errors:Symbol(`errors`),literal:Symbol(`literal`),override:Symbol(`override`),parent:Symbol(`parent`),prefs:Symbol(`prefs`),ref:Symbol(`ref`),template:Symbol(`template`),values:Symbol(`values`)},exports.assertOptions=function(e,n,r=`Options`){t(e&&typeof e==`object`&&!Array.isArray(e),`Options must be of type object`);let i=Object.keys(e).filter(e=>!n.includes(e));t(i.length===0,`${r} contain unknown keys: ${i}`)},exports.checkPreferences=function(e){a||=Oe();let t=a.preferences.validate(e);if(t.error)throw new n([t.error.details[0].message])},exports.compare=function(e,t,n){switch(n){case`=`:return e===t;case`>`:return e>t;case`<`:return e<t;case`>=`:return e>=t;case`<=`:return e<=t}},exports.default=function(e,t){return e===void 0?t:e},exports.isIsoDate=function(e){return o.isoDate.test(e)},exports.isNumber=function(e){return typeof e==`number`&&!isNaN(e)},exports.isResolvable=function(t){return t?t[exports.symbols.ref]||t[exports.symbols.template]:!1},exports.isSchema=function(n,r={}){let i=n&&n[exports.symbols.any];return i?(t(r.legacy||i.version===exports.version,`Cannot mix different versions of joi schemas`),!0):!1},exports.isValues=function(t){return t[exports.symbols.values]},exports.limit=function(e){return Number.isSafeInteger(e)&&e>=0},exports.preferences=function(t,n){i||=Fe(),t||={},n||={};let r=Object.assign({},t,n);return n.errors&&t.errors&&(r.errors=Object.assign({},t.errors,n.errors),r.errors.wrap=Object.assign({},t.errors.wrap,n.errors.wrap)),n.messages&&(r.messages=i.compile(n.messages,t.messages)),delete r[exports.symbols.prefs],r},exports.tryWithPath=function(e,t,n={}){try{return e()}catch(e){throw e.path===void 0?e.path=t:e.path=t+`.`+e.path,n.append&&(e.message=`${e.message} (${e.path})`),e}},exports.validateArg=function(t,n,{assert:r,message:i}){if(exports.isSchema(r)){let e=r.validate(t);return e.error?e.error.message:void 0}else if(!r(t))return n?`${n} ${i}`:i},exports.verifyFlat=function(e,n){for(let r of e)t(!Array.isArray(r),`Method no longer accepts array arguments:`,n)}}),Ie=s(exports=>{let t=V(),n=de(),r=H(),i={max:1e3,supported:new Set([`undefined`,`boolean`,`number`,`string`])};exports.provider={provision(e){return new i.Cache(e)}},i.Cache=class{constructor(e={}){r.assertOptions(e,[`max`]),t(e.max===void 0||e.max&&e.max>0&&isFinite(e.max),`Invalid max cache size`),this._max=e.max||i.max,this._map=new Map,this._list=new i.List}get length(){return this._map.size}set(e,t){if(e!==null&&!i.supported.has(typeof e))return;let n=this._map.get(e);if(n){n.value=t,this._list.first(n);return}n=this._list.unshift({key:e,value:t}),this._map.set(e,n),this._compact()}get(e){let t=this._map.get(e);if(t)return this._list.first(t),n(t.value)}_compact(){if(this._map.size>this._max){let e=this._list.pop();this._map.delete(e.key)}}},i.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||=e,e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){let{next:t,prev:n}=e;return t.prev=n,n&&(n.next=t),e===this.tail&&(this.tail=t),e.prev=null,e.next=null,e}}}),Le=s(exports=>{let t=V(),n=H(),r=Ne(),i={};exports.schema=function(e,t,r={}){n.assertOptions(r,[`appendPath`,`override`]);try{return i.schema(e,t,r)}catch(e){throw r.appendPath&&e.path!==void 0&&(e.message=`${e.message} (${e.path})`),e}},i.schema=function(e,r,a){t(r!==void 0,`Invalid undefined schema`),Array.isArray(r)&&(t(r.length,`Invalid empty array schema`),r.length===1&&(r=r[0]));let o=(t,...n)=>a.override===!1?t.valid(...n):t.valid(e.override,...n);if(i.simple(r))return o(e,r);if(typeof r==`function`)return e.custom(r);if(t(typeof r==`object`,`Invalid schema content:`,typeof r),n.isResolvable(r))return o(e,r);if(n.isSchema(r))return r;if(Array.isArray(r)){for(let t of r)if(!i.simple(t))return e.alternatives().try(...r);return o(e,...r)}return r instanceof RegExp?e.string().regex(r):r instanceof Date?o(e.date(),r):(t(Object.getPrototypeOf(r)===Object.getPrototypeOf({}),`Schema can only contain plain objects`),e.object().keys(r))},exports.ref=function(e,t){return r.isRef(e)?e:r.create(e,t)},exports.compile=function(r,a,o={}){n.assertOptions(o,[`legacy`]);let s=a&&a[n.symbols.any];if(s)return t(o.legacy||s.version===n.version,`Cannot mix different versions of joi schemas:`,s.version,n.version),a;if(typeof a!=`object`||!o.legacy)return exports.schema(r,a,{appendPath:!0});let c=i.walk(a);return c?c.compile(c.root,a):exports.schema(r,a,{appendPath:!0})},i.walk=function(e){if(typeof e!=`object`)return null;if(Array.isArray(e)){for(let t of e){let e=i.walk(t);if(e)return e}return null}let r=e[n.symbols.any];if(r)return{root:e[r.root],compile:r.compile};for(let n in t(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),`Schema can only contain plain objects`),e){let t=i.walk(e[n]);if(t)return t}return null},i.simple=function(e){return e===null||[`boolean`,`string`,`number`].includes(typeof e)},exports.when=function(a,o,s){if(s===void 0&&(t(o&&typeof o==`object`,`Missing options`),s=o,o=r.create(`.`)),Array.isArray(s)&&(s={switch:s}),n.assertOptions(s,[`is`,`not`,`then`,`otherwise`,`switch`,`break`]),n.isSchema(o))return t(s.is===void 0,`"is" can not be used with a schema condition`),t(s.not===void 0,`"not" can not be used with a schema condition`),t(s.switch===void 0,`"switch" can not be used with a schema condition`),i.condition(a,{is:o,then:s.then,otherwise:s.otherwise,break:s.break});if(t(r.isRef(o)||typeof o==`string`,`Invalid condition:`,o),t(s.not===void 0||s.is===void 0,`Cannot combine "is" with "not"`),s.switch===void 0){let c=s;s.not!==void 0&&(c={is:s.not,then:s.otherwise,otherwise:s.then,break:s.break});let l=c.is===void 0?a.$_root.invalid(null,!1,0,``).required():a.$_compile(c.is);return t(c.then!==void 0||c.otherwise!==void 0,`options must have at least one of "then", "otherwise", or "switch"`),t(c.break===void 0||c.then===void 0||c.otherwise===void 0,`Cannot specify then, otherwise, and break all together`),s.is!==void 0&&!r.isRef(s.is)&&!n.isSchema(s.is)&&(l=l.required()),i.condition(a,{ref:exports.ref(o),is:l,then:c.then,otherwise:c.otherwise,break:c.break})}t(Array.isArray(s.switch),`"switch" must be an array`),t(s.is===void 0,`Cannot combine "switch" with "is"`),t(s.not===void 0,`Cannot combine "switch" with "not"`),t(s.then===void 0,`Cannot combine "switch" with "then"`);let c={ref:exports.ref(o),switch:[],break:s.break};for(let e=0;e<s.switch.length;++e){let i=s.switch[e],o=e===s.switch.length-1;n.assertOptions(i,o?[`is`,`then`,`otherwise`]:[`is`,`then`]),t(i.is!==void 0,`Switch statement missing "is"`),t(i.then!==void 0,`Switch statement missing "then"`);let l={is:a.$_compile(i.is),then:a.$_compile(i.then)};if(!r.isRef(i.is)&&!n.isSchema(i.is)&&(l.is=l.is.required()),o){t(s.otherwise===void 0||i.otherwise===void 0,`Cannot specify "otherwise" inside and outside a "switch"`);let e=s.otherwise===void 0?i.otherwise:s.otherwise;e!==void 0&&(t(c.break===void 0,`Cannot specify both otherwise and break`),l.otherwise=a.$_compile(e))}c.switch.push(l)}return c},i.condition=function(e,t){for(let n of[`then`,`otherwise`])t[n]===void 0?delete t[n]:t[n]=e.$_compile(t[n]);return t}}),Re=s(exports=>{let t=V(),n=de(),r=H(),i=Fe(),a={};exports.type=function(e,o){let s=Object.getPrototypeOf(e),c=n(s),l=e._assign(Object.create(c)),u=Object.assign({},o);delete u.base,c._definition=u;let d=s._definition||{};u.messages=i.merge(d.messages,u.messages),u.properties=Object.assign({},d.properties,u.properties),l.type=u.type,u.flags=Object.assign({},d.flags,u.flags);let f=Object.assign({},d.terms);if(u.terms)for(let e in u.terms){let n=u.terms[e];t(l.$_terms[e]===void 0,`Invalid term override for`,u.type,e),l.$_terms[e]=n.init,f[e]=n}u.terms=f,u.args||=d.args,u.prepare=a.prepare(u.prepare,d.prepare),u.coerce&&(typeof u.coerce==`function`&&(u.coerce={method:u.coerce}),u.coerce.from&&!Array.isArray(u.coerce.from)&&(u.coerce={method:u.coerce.method,from:[].concat(u.coerce.from)})),u.coerce=a.coerce(u.coerce,d.coerce),u.validate=a.validate(u.validate,d.validate);let p=Object.assign({},d.rules);if(u.rules)for(let e in u.rules){let n=u.rules[e];t(typeof n==`object`,`Invalid rule definition for`,u.type,e);let i=n.method;if(i===void 0&&(i=function(){return this.$_addRule(e)}),i&&(t(!c[e],`Rule conflict in`,u.type,e),c[e]=i),t(!p[e],`Rule conflict in`,u.type,e),p[e]=n,n.alias){let e=[].concat(n.alias);for(let t of e)c[t]=n.method}n.args&&(n.argsByName=new Map,n.args=n.args.map(e=>(typeof e==`string`&&(e={name:e}),t(!n.argsByName.has(e.name),`Duplicated argument name`,e.name),r.isSchema(e.assert)&&(e.assert=e.assert.strict().label(e.name)),n.argsByName.set(e.name,e),e)))}u.rules=p;let m=Object.assign({},d.modifiers);if(u.modifiers)for(let e in u.modifiers){t(!c[e],`Rule conflict in`,u.type,e);let n=u.modifiers[e];t(typeof n==`function`,`Invalid modifier definition for`,u.type,e);let r=function(t){return this.rule({[e]:t})};c[e]=r,m[e]=n}if(u.modifiers=m,u.overrides){for(let e in c._super=s,l.$_super={},u.overrides)t(s[e],`Cannot override missing`,e),u.overrides[e][r.symbols.parent]=s[e],l.$_super[e]=s[e].bind(l);Object.assign(c,u.overrides)}u.cast=Object.assign({},d.cast,u.cast);let h=Object.assign({},d.manifest,u.manifest);return h.build=a.build(u.manifest&&u.manifest.build,d.manifest&&d.manifest.build),u.manifest=h,u.rebuild=a.rebuild(u.rebuild,d.rebuild),l},a.build=function(e,t){return!e||!t?e||t:function(n,r){return t(e(n,r),r)}},a.coerce=function(e,t){return!e||!t?e||t:{from:e.from&&t.from?[...new Set([...e.from,...t.from])]:null,method(n,r){let i;if((!t.from||t.from.includes(typeof n))&&(i=t.method(n,r),i)){if(i.errors||i.value===void 0)return i;n=i.value}if(!e.from||e.from.includes(typeof n)){let t=e.method(n,r);if(t)return t}return i}}},a.prepare=function(e,t){return!e||!t?e||t:function(n,r){let i=e(n,r);if(i){if(i.errors||i.value===void 0)return i;n=i.value}return t(n,r)||i}},a.rebuild=function(e,t){return!e||!t?e||t:function(n){t(n),e(n)}},a.validate=function(e,t){return!e||!t?e||t:function(n,r){let i=t(n,r);if(i){if(i.errors&&(!Array.isArray(i.errors)||i.errors.length))return i;n=i.value}return e(n,r)||i}}}),ze=s(exports=>{B();let t=V(),n=de(),r=H(),i=Fe(),a=Ne(),o=Pe(),s,c={};exports.describe=function(e){let a=e._definition,o={type:e.type,flags:{},rules:[]};for(let t in e._flags)t[0]!==`_`&&(o.flags[t]=c.describe(e._flags[t]));Object.keys(o.flags).length||delete o.flags,e._preferences&&(o.preferences=n(e._preferences,{shallow:[`messages`]}),delete o.preferences[r.symbols.prefs],o.preferences.messages&&(o.preferences.messages=i.decompile(o.preferences.messages))),e._valids&&(o.allow=e._valids.describe()),e._invalids&&(o.invalid=e._invalids.describe());for(let t of e._rules){let e=a.rules[t.name];if(e.manifest===!1)continue;let n={name:t.name};for(let e in a.modifiers)t[e]!==void 0&&(n[e]=c.describe(t[e]));if(t.args){for(let e in n.args={},t.args){let r=t.args[e];if(e===`options`&&!Object.keys(r).length)continue;n.args[e]=c.describe(r,{assign:e})}Object.keys(n.args).length||delete n.args}o.rules.push(n)}for(let n in o.rules.length||delete o.rules,e.$_terms){if(n[0]===`_`)continue;t(!o[n],`Cannot describe schema due to internal name conflict with`,n);let i=e.$_terms[n];if(!i)continue;if(i instanceof Map){i.size&&(o[n]=[...i.entries()]);continue}if(r.isValues(i)){o[n]=i.describe();continue}t(a.terms[n],`Term`,n,`missing configuration`);let s=a.terms[n].manifest,l=typeof s==`object`;if(!i.length&&!l)continue;let u=[];for(let e of i)u.push(c.describe(e));if(l){let{from:e,to:t}=s.mapped;o[n]={};for(let r of u)o[n][r[t]]=r[e];continue}if(s===`single`){t(u.length===1,`Term`,n,`contains more than one item`),o[n]=u[0];continue}o[n]=u}return c.validate(e.$_root,o),o},c.describe=function(e,t={}){if(Array.isArray(e))return e.map(c.describe);if(e===r.symbols.deepDefault)return{special:`deep`};if(typeof e!=`object`||!e)return e;if(t.assign===`options`)return n(e);if(O&&O.isBuffer(e))return{buffer:e.toString(`binary`)};if(e instanceof Date)return e.toISOString();if(e instanceof Error)return e;if(e instanceof RegExp)return t.assign===`regex`?e.toString():{regex:e.toString()};if(e[r.symbols.literal])return{function:e.literal};if(typeof e.describe==`function`)return t.assign===`ref`?e.describe().ref:e.describe();let i={};for(let t in e){let n=e[t];if(n===void 0)continue;i[t]=c.describe(n,{assign:t})}return i},exports.build=function(e,t){let n=new c.Builder(e);return n.parse(t)},c.Builder=class{constructor(e){this.joi=e}parse(e){c.validate(this.joi,e);let n=this.joi[e.type]()._bare(),r=n._definition;if(e.flags)for(let i in e.flags){let a=r.flags[i]&&r.flags[i].setter||i;t(typeof n[a]==`function`,`Invalid flag`,i,`for type`,e.type),n=n[a](this.build(e.flags[i]))}if(e.preferences&&(n=n.preferences(this.build(e.preferences))),e.allow&&(n=n.allow(...this.build(e.allow))),e.invalid&&(n=n.invalid(...this.build(e.invalid))),e.rules)for(let i of e.rules){t(typeof n[i.name]==`function`,`Invalid rule`,i.name,`for type`,e.type);let a=[];if(i.args){let n={};for(let e in i.args)n[e]=this.build(i.args[e],{assign:e});let o=Object.keys(n),s=r.rules[i.name].args;if(s){t(o.length<=s.length,`Invalid number of arguments for`,e.type,i.name,`(expected up to`,s.length,`, found`,o.length,`)`);for(let{name:e}of s)a.push(n[e])}else t(o.length===1,`Invalid number of arguments for`,e.type,i.name,`(expected up to 1, found`,o.length,`)`),a.push(n[o[0]])}n=n[i.name](...a);let o={};for(let e in r.modifiers)i[e]!==void 0&&(o[e]=this.build(i[e]));Object.keys(o).length&&(n=n.rule(o))}let i={};for(let n in e){if([`allow`,`flags`,`invalid`,`whens`,`preferences`,`rules`,`type`].includes(n))continue;t(r.terms[n],`Term`,n,`missing configuration`);let a=r.terms[n].manifest;if(a===`schema`){i[n]=e[n].map(e=>this.parse(e));continue}if(a===`values`){i[n]=e[n].map(e=>this.build(e));continue}if(a===`single`){i[n]=this.build(e[n]);continue}if(typeof a==`object`){for(let t in i[n]={},e[n]){let r=e[n][t];i[n][t]=this.parse(r)}continue}i[n]=this.build(e[n])}return e.whens&&(i.whens=e.whens.map(e=>this.build(e))),n=r.manifest.build(n,i),n.$_temp.ruleset=!1,n}build(e,i={}){if(e===null)return null;if(Array.isArray(e))return e.map(e=>this.build(e));if(e instanceof Error)return e;if(i.assign===`options`)return n(e);if(i.assign===`regex`)return c.regex(e);if(i.assign===`ref`)return a.build(e);if(typeof e!=`object`)return e;if(Object.keys(e).length===1){if(e.buffer)return t(O,`Buffers are not supported`),O&&O.from(e.buffer,`binary`);if(e.function)return{[r.symbols.literal]:!0,literal:e.function};if(e.override)return r.symbols.override;if(e.ref)return a.build(e.ref);if(e.regex)return c.regex(e.regex);if(e.special)return t([`deep`].includes(e.special),`Unknown special value`,e.special),r.symbols.deepDefault;if(e.value)return n(e.value)}if(e.type)return this.parse(e);if(e.template)return o.build(e);let s={};for(let t in e)s[t]=this.build(e[t],{assign:t});return s}},c.regex=function(e){let t=e.lastIndexOf(`/`),n=e.slice(1,t),r=e.slice(t+1);return new RegExp(n,r)},c.validate=function(e,t){s||=Oe(),e.assert(t,s.description)}}),Be=s((exports,t)=>{B();let n=le(),r={mismatched:null};t.exports=function(e,t,n){return n=Object.assign({prototype:!0},n),!!r.isDeepEqual(e,t,n,[])},r.isDeepEqual=function(e,t,i,a){if(e===t)return e!==0||1/e==1/t;let o=typeof e;if(o!==typeof t||e===null||t===null)return!1;if(o===`function`){if(!i.deepFunction||e.toString()!==t.toString())return!1}else if(o!==`object`)return e!==e&&t!==t;let s=r.getSharedType(e,t,!!i.prototype);switch(s){case n.buffer:return O&&O.prototype.equals.call(e,t);case n.promise:return e===t;case n.regex:return e.toString()===t.toString();case r.mismatched:return!1}for(let n=a.length-1;n>=0;--n)if(a[n].isSame(e,t))return!0;a.push(new r.SeenEntry(e,t));try{return!!r.isDeepEqualObj(s,e,t,i,a)}finally{a.pop()}},r.getSharedType=function(e,t,i){if(i)return Object.getPrototypeOf(e)===Object.getPrototypeOf(t)?n.getInternalProto(e):r.mismatched;let a=n.getInternalProto(e);return a===n.getInternalProto(t)?a:r.mismatched},r.valueOf=function(e){let t=e.valueOf;if(t===void 0)return e;try{return t.call(e)}catch(e){return e}},r.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},r.isSetSimpleEqual=function(e,t){for(let n of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,n))return!1;return!0},r.isDeepEqualObj=function(e,t,i,a,o){let{isDeepEqual:s,valueOf:c,hasOwnEnumerableProperty:l}=r,{keys:u,getOwnPropertySymbols:d}=Object;if(e===n.array)if(a.part){for(let e of t)for(let t of i)if(s(e,t,a,o))return!0}else{if(t.length!==i.length)return!1;for(let e=0;e<t.length;++e)if(!s(t[e],i[e],a,o))return!1;return!0}else if(e===n.set){if(t.size!==i.size)return!1;if(!r.isSetSimpleEqual(t,i)){let e=new Set(Set.prototype.values.call(i));for(let n of Set.prototype.values.call(t)){if(e.delete(n))continue;let t=!1;for(let r of e)if(s(n,r,a,o)){e.delete(r),t=!0;break}if(!t)return!1}}}else if(e===n.map){if(t.size!==i.size)return!1;for(let[e,n]of Map.prototype.entries.call(t))if(n===void 0&&!Map.prototype.has.call(i,e)||!s(n,Map.prototype.get.call(i,e),a,o))return!1}else if(e===n.error&&(t.name!==i.name||t.message!==i.message))return!1;let f=c(t),p=c(i);if((t!==f||i!==p)&&!s(f,p,a,o))return!1;let m=u(t);if(!a.part&&m.length!==u(i).length&&!a.skip)return!1;let h=0;for(let e of m){if(a.skip&&a.skip.includes(e)){i[e]===void 0&&++h;continue}if(!l(i,e)||!s(t[e],i[e],a,o))return!1}if(!a.part&&m.length-h!==u(i).length)return!1;if(a.symbols!==!1){let e=d(t),n=new Set(d(i));for(let r of e){if(!a.skip||!a.skip.includes(r)){if(l(t,r)){if(!l(i,r)||!s(t[r],i[r],a,o))return!1}else if(l(i,r))return!1}n.delete(r)}for(let e of n)if(l(i,e))return!1}return!0},r.SeenEntry=class{constructor(e,t){this.obj=e,this.ref=t}isSame(e,t){return this.obj===e&&this.ref===t}}}),Ve=s(exports=>{exports.location=function(e=0){let t=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;let n={};Error.captureStackTrace(n,this);let r=n.stack[e+1];return Error.prepareStackTrace=t,{filename:r.getFileName(),line:r.getLineNumber()}}}),He=s(exports=>{let t=Be(),n=Ve(),r=Me(),i={codes:{error:1,pass:2,full:3},labels:{0:`never used`,1:`always error`,2:`always pass`}};exports.setup=function(e){let t=function(){return e._tracer=e._tracer||new i.Tracer,e._tracer};e.trace=t,e[Symbol.for(`@hapi/lab/coverage/initialize`)]=t,e.untrace=()=>{e._tracer=null}},exports.location=function(e){return e.$_setFlag(`_tracerLocation`,n.location(2))},i.Tracer=class{constructor(){this.name=`Joi`,this._schemas=new Map}_register(e){let t=this._schemas.get(e);if(t)return t.store;let r=new i.Store(e),{filename:a,line:o}=e._flags._tracerLocation||n.location(5);return this._schemas.set(e,{filename:a,line:o,store:r}),r}_combine(e,t){for(let{store:n}of this._schemas.values())n._combine(e,t)}report(e){let t=[];for(let{filename:n,line:r,store:a}of this._schemas.values()){if(e&&e!==n)continue;let o=[],s=[];for(let[e,t]of a._sources.entries()){if(i.sub(t.paths,s))continue;if(!t.entry){o.push({status:`never reached`,paths:[...t.paths]}),s.push(...t.paths);continue}for(let n of[`valid`,`invalid`]){let r=e[`_${n}s`];if(!r)continue;let i=new Set(r._values),a=new Set(r._refs);for(let{value:e,ref:r}of t[n])i.delete(e),a.delete(r);(i.size||a.size)&&o.push({status:[...i,...[...a].map(e=>e.display)],rule:`${n}s`})}let n=e._rules.map(e=>e.name);for(let t of[`default`,`failover`])e._flags[t]!==void 0&&n.push(t);for(let e of n){let n=i.labels[t.rule[e]||0];if(n){let r={rule:e,status:n};t.paths.size&&(r.paths=[...t.paths]),o.push(r)}}}o.length&&t.push({filename:n,line:r,missing:o,severity:`error`,message:`Schema missing tests for ${o.map(i.message).join(`, `)}`})}return t.length?t:null}},i.Store=class{constructor(e){this.active=!0,this._sources=new Map,this._combos=new Map,this._scan(e)}debug(e,t,n,r){e.mainstay.debug&&e.mainstay.debug.push({type:t,name:n,result:r,path:e.path})}entry(e,t){i.debug(t,{type:`entry`}),this._record(e,e=>{e.entry=!0})}filter(e,t,n,r){i.debug(t,{type:n,...r}),this._record(e,e=>{e[n].add(r)})}log(e,t,n,r,a){i.debug(t,{type:n,name:r,result:a===`full`?`pass`:a}),this._record(e,e=>{e[n][r]=e[n][r]||0,e[n][r]|=i.codes[a]})}resolve(e,t,n){if(!e.mainstay.debug)return;let r={type:`resolve`,ref:t.display,to:n,path:e.path};e.mainstay.debug.push(r)}value(e,n,r,i,a){if(!e.mainstay.debug||t(r,i))return;let o={type:`value`,by:n,from:r,to:i,path:e.path};a&&(o.name=a),e.mainstay.debug.push(o)}_record(e,t){let n=this._sources.get(e);if(n){t(n);return}let r=this._combos.get(e);for(let e of r)this._record(e,t)}_scan(e,t){let n=t||[],r=this._sources.get(e);r||(r={paths:new Set,entry:!1,rule:{},valid:new Set,invalid:new Set},this._sources.set(e,r)),n.length&&r.paths.add(n);let a=(e,t)=>{let r=i.id(e,t);this._scan(e,n.concat(r))};e.$_modify({each:a,ref:!1})}_combine(e,t){this._combos.set(e,t)}},i.message=function(e){let t=e.paths?r.path(e.paths[0])+(e.rule?`:`:``):``;return`${t}${e.rule||``} (${e.status})`},i.id=function(e,{source:t,name:n,path:r,key:i}){return e._flags.id?e._flags.id:i||(n=`@${n}`,t===`terms`?[n,r[Math.min(r.length-1,1)]]:n)},i.sub=function(e,n){for(let r of e)for(let e of n)if(t(r.slice(0,e.length),e))return!0;return!1},i.debug=function(e,t){e.mainstay.debug&&(t.path=e.debug?[...e.path,e.debug]:e.path,e.mainstay.debug.push(t))}}),Ue=s((exports,t)=>{B();let n=V(),r=de(),i=ue(),a={};t.exports=a.merge=function(e,t,o){if(n(e&&typeof e==`object`,`Invalid target value: must be an object`),n(t==null||typeof t==`object`,`Invalid source value: must be null, undefined, or an object`),!t)return e;if(o=Object.assign({nullOverride:!0,mergeArrays:!0},o),Array.isArray(t)){n(Array.isArray(e),`Cannot merge array onto an object`),o.mergeArrays||(e.length=0);for(let n=0;n<t.length;++n)e.push(r(t[n],{symbols:o.symbols}));return e}let s=i.keys(t,o);for(let n=0;n<s.length;++n){let i=s[n];if(i===`__proto__`||!Object.prototype.propertyIsEnumerable.call(t,i))continue;let c=t[i];if(c&&typeof c==`object`){if(e[i]===c)continue;!e[i]||typeof e[i]!=`object`||Array.isArray(e[i])!==Array.isArray(c)||c instanceof Date||O&&O.isBuffer(c)||c instanceof RegExp?e[i]=r(c,{symbols:o.symbols}):a.merge(e[i],c,o)}else c==null?o.nullOverride&&(e[i]=c):e[i]=c}return e}}),We=s(exports=>{let t=V(),n=H(),r=Ne(),i={};exports.Ids=i.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){let e=new i.Ids;return e._byId=new Map(this._byId),e._byKey=new Map(this._byKey),e._schemaChain=this._schemaChain,e}concat(e){e._schemaChain&&(this._schemaChain=!0);for(let[n,r]of e._byId.entries())t(!this._byKey.has(n),`Schema id conflicts with existing key:`,n),this._byId.set(n,r);for(let[n,r]of e._byKey.entries())t(!this._byId.has(n),`Schema key conflicts with existing id:`,n),this._byKey.set(n,r)}fork(e,r,a){let o=this._collect(e);o.push({schema:a});let s=o.shift(),c={id:s.id,schema:r(s.schema)};t(n.isSchema(c.schema),`adjuster function failed to return a joi schema type`);for(let e of o)c={id:e.id,schema:i.fork(e.schema,c.id,c.schema)};return c.schema}labels(e,t=[]){let n=e[0],r=this._get(n);if(!r)return[...t,...e].join(`.`);let i=e.slice(1);return t=[...t,r.schema._flags.label||n],i.length?r.schema._ids.labels(i,t):t.join(`.`)}reach(e,n=[]){let r=e[0],i=this._get(r);t(i,`Schema does not contain path`,[...n,...e].join(`.`));let a=e.slice(1);return a.length?i.schema._ids.reach(a,[...n,r]):i.schema}register(e,{key:r}={}){if(!e||!n.isSchema(e))return;(e.$_property(`schemaChain`)||e._ids._schemaChain)&&(this._schemaChain=!0);let i=e._flags.id;if(i){let n=this._byId.get(i);t(!n||n.schema===e,`Cannot add different schemas with the same id:`,i),t(!this._byKey.has(i),`Schema id conflicts with existing key:`,i),this._byId.set(i,{schema:e,id:i})}r&&(t(!this._byKey.has(r),`Schema already contains key:`,r),t(!this._byId.has(r),`Schema key conflicts with existing id:`,r),this._byKey.set(r,{schema:e,id:r}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(e,n=[],r=[]){let i=e[0],a=this._get(i);t(a,`Schema does not contain path`,[...n,...e].join(`.`)),r=[a,...r];let o=e.slice(1);return o.length?a.schema._ids._collect(o,[...n,i],r):r}_get(e){return this._byId.get(e)||this._byKey.get(e)}},i.fork=function(t,n,r){let i=(e,{key:t})=>{if(n===(e._flags.id||t))return r},a=exports.schema(t,{each:i,ref:!1});return a?a.$_mutateRebuild():t},exports.schema=function(e,t){let n;for(let r in e._flags){if(r[0]===`_`)continue;let a=i.scan(e._flags[r],{source:`flags`,name:r},t);a!==void 0&&(n||=e.clone(),n._flags[r]=a)}for(let r=0;r<e._rules.length;++r){let a=e._rules[r],o=i.scan(a.args,{source:`rules`,name:a.name},t);if(o!==void 0){n||=e.clone();let t=Object.assign({},a);t.args=o,n._rules[r]=t;let i=n._singleRules.get(a.name);i===a&&n._singleRules.set(a.name,t)}}for(let r in e.$_terms){if(r[0]===`_`)continue;let a=i.scan(e.$_terms[r],{source:`terms`,name:r},t);a!==void 0&&(n||=e.clone(),n.$_terms[r]=a)}return n},i.scan=function(e,t,a,o,s){let c=o||[];if(typeof e!=`object`||!e)return;let l;if(Array.isArray(e)){for(let n=0;n<e.length;++n){let r=t.source===`terms`&&t.name===`keys`&&e[n].key,o=i.scan(e[n],t,a,[n,...c],r);o!==void 0&&(l||=e.slice(),l[n]=o)}return l}if(a.schema!==!1&&n.isSchema(e)||a.ref!==!1&&r.isRef(e)){let n=a.each(e,{...t,path:c,key:s});return n===e?void 0:n}for(let n in e){if(n[0]===`_`)continue;let r=i.scan(e[n],t,a,[n,...c],s);r!==void 0&&(l||=Object.assign({},e),l[n]=r)}return l}}),Ge=s((exports,t)=>{t.exports=function(){}}),Ke=s((exports,t)=>{let n=de(),r=ce(),i=H(),a={value:Symbol(`value`)};t.exports=a.State=class{constructor(e,t,n){this.path=e,this.ancestors=t,this.mainstay=n.mainstay,this.schemas=n.schemas,this.debug=null}localize(e,t=null,n=null){let r=new a.State(e,t,this);return n&&r.schemas&&(r.schemas=[a.schemas(n),...r.schemas]),r}nest(e,t){let n=new a.State(this.path,this.ancestors,this);return n.schemas=n.schemas&&[a.schemas(e),...n.schemas],n.debug=t,n}shadow(e,t){this.mainstay.shadow=this.mainstay.shadow||new a.Shadow,this.mainstay.shadow.set(this.path,e,t)}snapshot(){this.mainstay.shadow&&(this._snapshot=n(this.mainstay.shadow.node(this.path))),this.mainstay.snapshot()}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.restore()}commit(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.commit()}},a.schemas=function(e){return i.isSchema(e)?{schema:e}:e},a.Shadow=class{constructor(){this._values=null}set(e,t,n){if(!e.length||n===`strip`&&typeof e[e.length-1]==`number`)return;this._values=this._values||new Map;let r=this._values;for(let t=0;t<e.length;++t){let n=e[t],i=r.get(n);i||(i=new Map,r.set(n,i)),r=i}r[a.value]=t}get(e){let t=this.node(e);if(t)return t[a.value]}node(e){if(this._values)return r(this._values,e,{iterables:!0})}override(e,t){if(!this._values)return;let n=e.slice(0,-1),i=e[e.length-1],a=r(this._values,n,{iterables:!0});if(t){a.set(i,t);return}a&&a.delete(i)}}}),qe=s(exports=>{let t=V(),n=de(),r=Ge(),i=ce(),a=H(),o=Me(),s=Ke(),c={result:Symbol(`result`)};exports.entry=function(e,n,r){let i=a.defaults;r&&(t(r.warnings===void 0,`Cannot override warnings preference in synchronous validation`),t(r.artifacts===void 0,`Cannot override artifacts preference in synchronous validation`),i=a.preferences(a.defaults,r));let s=c.entry(e,n,i);t(!s.mainstay.externals.length,`Schema with external rules must use validateAsync()`);let l={value:s.value};return s.error&&(l.error=s.error),s.mainstay.warnings.length&&(l.warning=o.details(s.mainstay.warnings)),s.mainstay.debug&&(l.debug=s.mainstay.debug),s.mainstay.artifacts&&(l.artifacts=s.mainstay.artifacts),l},exports.entryAsync=async function(e,t,n){let r=a.defaults;n&&(r=a.preferences(a.defaults,n));let s=c.entry(e,t,r),l=s.mainstay;if(s.error)throw l.debug&&(s.error.debug=l.debug),s.error;if(l.externals.length){let t=s.value,u=[];for(let s of l.externals){let d=s.state.path,f=s.schema.type===`link`?l.links.get(s.schema):null,p=t,m,h,g=d.length?[t]:[],_=d.length?i(e,d):e;if(d.length){m=d[d.length-1];let e=t;for(let t of d.slice(0,-1))e=e[t],g.unshift(e);h=g[0],p=h[m]}try{let e=(e,t)=>(f||s.schema).$_createError(e,p,t,s.state,r),i=await s.method(p,{schema:s.schema,linked:f,state:s.state,prefs:n,original:_,error:e,errorsArray:c.errorsArray,warn:(e,t)=>l.warnings.push((f||s.schema).$_createError(e,p,t,s.state,r)),message:(e,t)=>(f||s.schema).$_createError(`external`,p,t,s.state,r,{messages:e})});if(i===void 0||i===p)continue;if(i instanceof o.Report){if(l.tracer.log(s.schema,s.state,`rule`,`external`,`error`),u.push(i),r.abortEarly)break;continue}if(Array.isArray(i)&&i[a.symbols.errors]){if(l.tracer.log(s.schema,s.state,`rule`,`external`,`error`),u.push(...i),r.abortEarly)break;continue}h?(l.tracer.value(s.state,`rule`,p,i,`external`),h[m]=i):(l.tracer.value(s.state,`rule`,t,i,`external`),t=i)}catch(e){throw r.errors.label&&(e.message+=` (${s.label})`),e}}if(s.value=t,u.length)throw s.error=o.process(u,e,r),l.debug&&(s.error.debug=l.debug),s.error}if(!r.warnings&&!r.debug&&!r.artifacts)return s.value;let u={value:s.value};return l.warnings.length&&(u.warning=o.details(l.warnings)),l.debug&&(u.debug=l.debug),l.artifacts&&(u.artifacts=l.artifacts),u},c.Mainstay=class{constructor(e,t,n){this.externals=[],this.warnings=[],this.tracer=e,this.debug=t,this.links=n,this.shadow=null,this.artifacts=null,this._snapshots=[]}snapshot(){this._snapshots.push({externals:this.externals.slice(),warnings:this.warnings.slice()})}restore(){let e=this._snapshots.pop();this.externals=e.externals,this.warnings=e.warnings}commit(){this._snapshots.pop()}},c.entry=function(t,n,r){let{tracer:i,cleanup:a}=c.tracer(n,r),l=r.debug?[]:null,u=n._ids._schemaChain?new Map:null,d=new c.Mainstay(i,l,u),f=n._ids._schemaChain?[{schema:n}]:null,p=new s([],[],{mainstay:d,schemas:f}),m=exports.validate(t,n,p,r);a&&n.$_root.untrace();let h=o.process(m.errors,t,r);return{value:m.value,error:h,mainstay:d}},c.tracer=function(e,n){return e.$_root._tracer?{tracer:e.$_root._tracer._register(e)}:n.debug?(t(e.$_root.trace,`Debug mode not supported`),{tracer:e.$_root.trace()._register(e),cleanup:!0}):{tracer:c.ignore}},exports.validate=function(e,t,n,r,i={}){if(t.$_terms.whens&&(t=t._generate(e,n,r).schema),t._preferences&&(r=c.prefs(t,r)),t._cache&&r.cache){let r=t._cache.get(e);if(n.mainstay.tracer.debug(n,`validate`,`cached`,!!r),r)return r}let o=(i,a,o)=>t.$_createError(i,e,a,o||n,r),s={original:e,prefs:r,schema:t,state:n,error:o,errorsArray:c.errorsArray,warn:(e,t,r)=>n.mainstay.warnings.push(o(e,t,r)),message:(i,a)=>t.$_createError(`custom`,e,a,n,r,{messages:i})};n.mainstay.tracer.entry(t,n);let l=t._definition;if(l.prepare&&e!==void 0&&r.convert){let t=l.prepare(e,s);if(t){if(n.mainstay.tracer.value(n,`prepare`,e,t.value),t.errors)return c.finalize(t.value,[].concat(t.errors),s);e=t.value}}if(l.coerce&&e!==void 0&&r.convert&&(!l.coerce.from||l.coerce.from.includes(typeof e))){let t=l.coerce.method(e,s);if(t){if(n.mainstay.tracer.value(n,`coerced`,e,t.value),t.errors)return c.finalize(t.value,[].concat(t.errors),s);e=t.value}}let u=t._flags.empty;u&&u.$_match(c.trim(e,t),n.nest(u),a.defaults)&&(n.mainstay.tracer.value(n,`empty`,e,void 0),e=void 0);let d=i.presence||t._flags.presence||(t._flags._endedSwitch?null:r.presence);if(e===void 0){if(d===`forbidden`)return c.finalize(e,null,s);if(d===`required`)return c.finalize(e,[t.$_createError(`any.required`,e,null,n,r)],s);if(d===`optional`){if(t._flags.default!==a.symbols.deepDefault)return c.finalize(e,null,s);n.mainstay.tracer.value(n,`default`,e,{}),e={}}}else if(d===`forbidden`)return c.finalize(e,[t.$_createError(`any.unknown`,e,null,n,r)],s);let f=[];if(t._valids){let i=t._valids.get(e,n,r,t._flags.insensitive);if(i)return r.convert&&(n.mainstay.tracer.value(n,`valids`,e,i.value),e=i.value),n.mainstay.tracer.filter(t,n,`valid`,i),c.finalize(e,null,s);if(t._flags.only){let i=t.$_createError(`any.only`,e,{valids:t._valids.values({display:!0})},n,r);if(r.abortEarly)return c.finalize(e,[i],s);f.push(i)}}if(t._invalids){let i=t._invalids.get(e,n,r,t._flags.insensitive);if(i){n.mainstay.tracer.filter(t,n,`invalid`,i);let a=t.$_createError(`any.invalid`,e,{invalids:t._invalids.values({display:!0})},n,r);if(r.abortEarly)return c.finalize(e,[a],s);f.push(a)}}if(l.validate){let t=l.validate(e,s);if(t&&(n.mainstay.tracer.value(n,`base`,e,t.value),e=t.value,t.errors)){if(!Array.isArray(t.errors))return f.push(t.errors),c.finalize(e,f,s);if(t.errors.length)return f.push(...t.errors),c.finalize(e,f,s)}}return t._rules.length?c.rules(e,f,s):c.finalize(e,f,s)},c.rules=function(e,t,n){let{schema:r,state:i,prefs:o}=n;for(let s of r._rules){let l=r._definition.rules[s.method];if(l.convert&&o.convert){i.mainstay.tracer.log(r,i,`rule`,s.name,`full`);continue}let u,d=s.args;if(s._resolve.length){d=Object.assign({},d);for(let t of s._resolve){let n=l.argsByName.get(t),s=d[t].resolve(e,i,o),c=n.normalize?n.normalize(s):s,f=a.validateArg(c,null,n);if(f){u=r.$_createError(`any.ref`,s,{arg:t,ref:d[t],reason:f},i,o);break}d[t]=c}}u||=l.validate(e,n,d,s);let f=c.rule(u,s);if(f.errors){if(i.mainstay.tracer.log(r,i,`rule`,s.name,`error`),s.warn){i.mainstay.warnings.push(...f.errors);continue}if(o.abortEarly)return c.finalize(e,f.errors,n);t.push(...f.errors)}else i.mainstay.tracer.log(r,i,`rule`,s.name,`pass`),i.mainstay.tracer.value(i,`rule`,e,f.value,s.name),e=f.value}return c.finalize(e,t,n)},c.rule=function(e,t){return e instanceof o.Report?(c.error(e,t),{errors:[e],value:null}):Array.isArray(e)&&e[a.symbols.errors]?(e.forEach(e=>c.error(e,t)),{errors:e,value:null}):{errors:null,value:e}},c.error=function(e,t){return t.message&&e._setTemplate(t.message),e},c.finalize=function(e,n,r){n||=[];let{schema:i,state:a,prefs:s}=r;if(n.length){let t=c.default(`failover`,void 0,n,r);t!==void 0&&(a.mainstay.tracer.value(a,`failover`,e,t),e=t,n=[])}if(n.length&&i._flags.error)if(typeof i._flags.error==`function`){n=i._flags.error(n),Array.isArray(n)||(n=[n]);for(let e of n)t(e instanceof Error||e instanceof o.Report,`error() must return an Error object`)}else n=[i._flags.error];if(e===void 0){let t=c.default(`default`,e,n,r);a.mainstay.tracer.value(a,`default`,e,t),e=t}if(i._flags.cast&&e!==void 0){let t=i._definition.cast[i._flags.cast];if(t.from(e)){let n=t.to(e,r);a.mainstay.tracer.value(a,`cast`,e,n,i._flags.cast),e=n}}if(i.$_terms.externals&&s.externals&&s._externals!==!1)for(let{method:e}of i.$_terms.externals)a.mainstay.externals.push({method:e,schema:i,state:a,label:o.label(i._flags,a,s)});let l={value:e,errors:n.length?n:null};return i._flags.result&&(l.value=i._flags.result===`strip`?void 0:r.original,a.mainstay.tracer.value(a,i._flags.result,e,l.value),a.shadow(e,i._flags.result)),i._cache&&s.cache!==!1&&!i._refs.length&&i._cache.set(r.original,l),e!==void 0&&!l.errors&&i._flags.artifact!==void 0&&(a.mainstay.artifacts=a.mainstay.artifacts||new Map,a.mainstay.artifacts.has(i._flags.artifact)||a.mainstay.artifacts.set(i._flags.artifact,[]),a.mainstay.artifacts.get(i._flags.artifact).push(a.path)),l},c.prefs=function(e,t){let n=t===a.defaults;return n&&e._preferences[a.symbols.prefs]?e._preferences[a.symbols.prefs]:(t=a.preferences(t,e._preferences),n&&(e._preferences[a.symbols.prefs]=t),t)},c.default=function(e,t,r,i){let{schema:o,state:s,prefs:c}=i,l=o._flags[e];if(c.noDefaults||l===void 0)return t;if(s.mainstay.tracer.log(o,s,`rule`,e,`full`),!l)return l;if(typeof l==`function`){let t=l.length?[n(s.ancestors[0]),i]:[];try{return l(...t)}catch(t){r.push(o.$_createError(`any.${e}`,null,{error:t},s,c));return}}return typeof l==`object`?l[a.symbols.literal]?l.literal:a.isResolvable(l)?l.resolve(t,s,c):n(l):l},c.trim=function(e,t){if(typeof e!=`string`)return e;let n=t.$_getRule(`trim`);return!n||!n.args.enabled?e:e.trim()},c.ignore={active:!1,debug:r,entry:r,filter:r,log:r,resolve:r,value:r},c.errorsArray=function(){let e=[];return e[a.symbols.errors]=!0,e}}),Je=s((exports,t)=>{let n=V(),r=Be(),i=H(),a={};t.exports=a.Values=class{constructor(e,t){this._values=new Set(e),this._refs=new Set(t),this._lowercase=a.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,t){if(i.isResolvable(e)){this._refs.has(e)||(this._refs.add(e),t&&t.register(e));return}this.has(e,null,null,!1)||(this._values.add(e),typeof e==`string`&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,t,n){if(e||=new a.Values,t){if(t._override)return t.clone();for(let n of[...t._values,...t._refs])e.add(n)}if(n)for(let t of[...n._values,...n._refs])e.remove(t);return e.length?e:null}remove(e){if(i.isResolvable(e)){this._refs.delete(e);return}this._values.delete(e),typeof e==`string`&&this._lowercase.delete(e.toLowerCase())}has(e,t,n,r){return!!this.get(e,t,n,r)}get(e,t,n,i){if(!this.length)return!1;if(this._values.has(e))return{value:e};if(typeof e==`string`&&e&&i){let t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&typeof e!=`object`)return!1;if(typeof e==`object`){for(let t of this._values)if(r(t,e))return{value:t}}if(t)for(let a of this._refs){let o=a.resolve(e,t,n,null,{in:!0});if(o===void 0)continue;let s=!a.in||typeof o!=`object`?[o]:Array.isArray(o)?o:Object.keys(o);for(let t of s){if(typeof t!=typeof e)continue;if(i&&e&&typeof e==`string`){if(t.toLowerCase()===e.toLowerCase())return{value:t,ref:a}}else if(r(t,e))return{value:t,ref:a}}}return!1}override(){this._override=!0}values(e){if(e&&e.display){let e=[];for(let t of[...this._values,...this._refs])t!==void 0&&e.push(t);return e}return Array.from([...this._values,...this._refs])}clone(){let e=new a.Values(this._values,this._refs);return e._override=this._override,e}concat(e){n(!e._override,`Cannot concat override set of values`);let t=new a.Values([...this._values,...e._values],[...this._refs,...e._refs]);return t._override=this._override,t}describe(){let e=[];this._override&&e.push({override:!0});for(let t of this._values.values())e.push(t&&typeof t==`object`?{value:t}:t);for(let t of this._refs.values())e.push(t.describe());return e}},a.Values.prototype[i.symbols.values]=!0,a.Values.prototype.slice=a.Values.prototype.clone,a.lowercases=function(e){let t=new Map;if(e)for(let n of e)typeof n==`string`&&t.set(n.toLowerCase(),n);return t}}),Ye=s((exports,t)=>{let n=V(),r=de(),i=Be(),a=Ue(),o=Ie(),s=H(),c=Le(),l=Me(),u=Re(),d=ze(),f=Fe(),p=We(),m=Ne(),h=He(),g=qe(),_=Je(),v={};v.Base=class{constructor(e){this.type=e,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new p.Ids,this._preferences=null,this._refs=new m.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return n(typeof d.describe==`function`,`Manifest functionality disabled`),d.describe(this)}allow(...e){return s.verifyFlat(e,`allow`),this._values(e,`_valids`)}alter(e){n(e&&typeof e==`object`&&!Array.isArray(e),`Invalid targets argument`),n(!this._inRuleset(),`Cannot set alterations inside a ruleset`);let t=this.clone();for(let r in t.$_terms.alterations=t.$_terms.alterations||[],e){let i=e[r];n(typeof i==`function`,`Alteration adjuster for`,r,`must be a function`),t.$_terms.alterations.push({target:r,adjuster:i})}return t.$_temp.ruleset=!1,t}artifact(e){return n(e!==void 0,`Artifact cannot be undefined`),n(!this._cache,`Cannot set an artifact with a rule cache`),this.$_setFlag(`artifact`,e)}cast(e){return n(e===!1||typeof e==`string`,`Invalid to value`),n(e===!1||this._definition.cast[e],`Type`,this.type,`does not support casting to`,e),this.$_setFlag(`cast`,e===!1?void 0:e)}default(e,t){return this._default(`default`,e,t)}description(e){return n(e&&typeof e==`string`,`Description must be a non-empty string`),this.$_setFlag(`description`,e)}empty(e){let t=this.clone();return e!==void 0&&(e=t.$_compile(e,{override:!1})),t.$_setFlag(`empty`,e,{clone:!1})}error(e){return n(e,`Missing error`),n(e instanceof Error||typeof e==`function`,`Must provide a valid Error object or a function`),this.$_setFlag(`error`,e)}example(e,t={}){return n(e!==void 0,`Missing example`),s.assertOptions(t,[`override`]),this._inner(`examples`,e,{single:!0,override:t.override})}external(e,t){return typeof e==`object`&&(n(!t,`Cannot combine options with description`),t=e.description,e=e.method),n(typeof e==`function`,`Method must be a function`),n(t===void 0||t&&typeof t==`string`,`Description must be a non-empty string`),this._inner(`externals`,{method:e,description:t},{single:!0})}failover(e,t){return this._default(`failover`,e,t)}forbidden(){return this.presence(`forbidden`)}id(e){return e?(n(typeof e==`string`,`id must be a non-empty string`),n(/^[^\.]+$/.test(e),`id cannot contain period character`),this.$_setFlag(`id`,e)):this.$_setFlag(`id`,void 0)}invalid(...e){return this._values(e,`_invalids`)}label(e){return n(e&&typeof e==`string`,`Label name must be a non-empty string`),this.$_setFlag(`label`,e)}meta(e){return n(e!==void 0,`Meta cannot be undefined`),this._inner(`metas`,e,{single:!0})}note(...e){n(e.length,`Missing notes`);for(let t of e)n(t&&typeof t==`string`,`Notes must be non-empty strings`);return this._inner(`notes`,e)}only(e=!0){return n(typeof e==`boolean`,`Invalid mode:`,e),this.$_setFlag(`only`,e)}optional(){return this.presence(`optional`)}prefs(e){n(e,`Missing preferences`),n(e.context===void 0,`Cannot override context`),n(e.externals===void 0,`Cannot override externals`),n(e.warnings===void 0,`Cannot override warnings`),n(e.debug===void 0,`Cannot override debug`),s.checkPreferences(e);let t=this.clone();return t._preferences=s.preferences(t._preferences,e),t}presence(e){return n([`optional`,`required`,`forbidden`].includes(e),`Unknown presence mode`,e),this.$_setFlag(`presence`,e)}raw(e=!0){return this.$_setFlag(`result`,e?`raw`:void 0)}result(e){return n([`raw`,`strip`].includes(e),`Unknown result mode`,e),this.$_setFlag(`result`,e)}required(){return this.presence(`required`)}strict(e){let t=this.clone(),n=e===void 0?!1:!e;return t._preferences=s.preferences(t._preferences,{convert:n}),t}strip(e=!0){return this.$_setFlag(`result`,e?`strip`:void 0)}tag(...e){n(e.length,`Missing tags`);for(let t of e)n(t&&typeof t==`string`,`Tags must be non-empty strings`);return this._inner(`tags`,e)}unit(e){return n(e&&typeof e==`string`,`Unit name must be a non-empty string`),this.$_setFlag(`unit`,e)}valid(...e){s.verifyFlat(e,`valid`);let t=this.allow(...e);return t.$_setFlag(`only`,!!t._valids,{clone:!1}),t}when(e,t){let r=this.clone();r.$_terms.whens||(r.$_terms.whens=[]);let i=c.when(r,e,t);if(![`any`,`link`].includes(r.type)){let e=i.is?[i]:i.switch;for(let t of e)n(!t.then||t.then.type===`any`||t.then.type===r.type,`Cannot combine`,r.type,`with`,t.then&&t.then.type),n(!t.otherwise||t.otherwise.type===`any`||t.otherwise.type===r.type,`Cannot combine`,r.type,`with`,t.otherwise&&t.otherwise.type)}return r.$_terms.whens.push(i),r.$_mutateRebuild()}cache(e){n(!this._inRuleset(),`Cannot set caching inside a ruleset`),n(!this._cache,`Cannot override schema cache`),n(this._flags.artifact===void 0,`Cannot cache a rule with an artifact`);let t=this.clone();return t._cache=e||o.provider.provision(),t.$_temp.ruleset=!1,t}clone(){let e=Object.create(Object.getPrototypeOf(this));return this._assign(e)}concat(e){n(s.isSchema(e),`Invalid schema object`),n(this.type===`any`||e.type===`any`||e.type===this.type,`Cannot merge type`,this.type,`with another type:`,e.type),n(!this._inRuleset(),`Cannot concatenate onto a schema with open ruleset`),n(!e._inRuleset(),`Cannot concatenate a schema with open ruleset`);let t=this.clone();if(this.type===`any`&&e.type!==`any`){let n=e.clone();for(let e of Object.keys(t))e!==`type`&&(n[e]=t[e]);t=n}t._ids.concat(e._ids),t._refs.register(e,m.toSibling),t._preferences=t._preferences?s.preferences(t._preferences,e._preferences):e._preferences,t._valids=_.merge(t._valids,e._valids,e._invalids),t._invalids=_.merge(t._invalids,e._invalids,e._valids);for(let n of e._singleRules.keys())t._singleRules.has(n)&&(t._rules=t._rules.filter(e=>e.keep||e.name!==n),t._singleRules.delete(n));for(let n of e._rules)e._definition.rules[n.method].multi||t._singleRules.set(n.name,n),t._rules.push(n);if(t._flags.empty&&e._flags.empty){t._flags.empty=t._flags.empty.concat(e._flags.empty);let n=Object.assign({},e._flags);delete n.empty,a(t._flags,n)}else if(e._flags.empty){t._flags.empty=e._flags.empty;let n=Object.assign({},e._flags);delete n.empty,a(t._flags,n)}else a(t._flags,e._flags);for(let n in e.$_terms){let r=e.$_terms[n];if(!r){t.$_terms[n]||(t.$_terms[n]=r);continue}if(!t.$_terms[n]){t.$_terms[n]=r.slice();continue}t.$_terms[n]=t.$_terms[n].concat(r)}return this.$_root._tracer&&this.$_root._tracer._combine(t,[this,e]),t.$_mutateRebuild()}extend(e){return n(!e.base,`Cannot extend type with another base`),u.type(this,e)}extract(e){return e=Array.isArray(e)?e:e.split(`.`),this._ids.reach(e)}fork(e,t){n(!this._inRuleset(),`Cannot fork inside a ruleset`);let r=this;for(let n of[].concat(e))n=Array.isArray(n)?n:n.split(`.`),r=r._ids.fork(n,t,r);return r.$_temp.ruleset=!1,r}rule(e){let t=this._definition;s.assertOptions(e,Object.keys(t.modifiers)),n(this.$_temp.ruleset!==!1,`Cannot apply rules to empty ruleset or the last rule added does not support rule properties`);let i=this.$_temp.ruleset===null?this._rules.length-1:this.$_temp.ruleset;n(i>=0&&i<this._rules.length,`Cannot apply rules to empty ruleset`);let a=this.clone();for(let o=i;o<a._rules.length;++o){let i=a._rules[o],s=r(i);for(let r in e)t.modifiers[r](s,e[r]),n(s.name===i.name,`Cannot change rule name`);a._rules[o]=s,a._singleRules.get(s.name)===i&&a._singleRules.set(s.name,s)}return a.$_temp.ruleset=!1,a.$_mutateRebuild()}get ruleset(){n(!this._inRuleset(),`Cannot start a new ruleset without closing the previous one`);let e=this.clone();return e.$_temp.ruleset=e._rules.length,e}get $(){return this.ruleset}tailor(e){e=[].concat(e),n(!this._inRuleset(),`Cannot tailor inside a ruleset`);let t=this;if(this.$_terms.alterations)for(let{target:r,adjuster:i}of this.$_terms.alterations)e.includes(r)&&(t=i(t),n(s.isSchema(t),`Alteration adjuster for`,r,`failed to return a schema object`));return t=t.$_modify({each:t=>t.tailor(e),ref:!1}),t.$_temp.ruleset=!1,t.$_mutateRebuild()}tracer(){return h.location?h.location(this):this}validate(e,t){return g.entry(e,this,t)}validateAsync(e,t){return g.entryAsync(e,this,t)}$_addRule(e){for(let t in typeof e==`string`&&(e={name:e}),n(e&&typeof e==`object`,`Invalid options`),n(e.name&&typeof e.name==`string`,`Invalid rule name`),e)n(t[0]!==`_`,`Cannot set private rule properties`);let t=Object.assign({},e);t._resolve=[],t.method=t.method||t.name;let r=this._definition.rules[t.method],i=t.args;n(r,`Unknown rule`,t.method);let a=this.clone();if(i)for(let e in n(Object.keys(i).length===1||Object.keys(i).length===this._definition.rules[t.name].args.length,`Invalid rule definition for`,this.type,t.name),i){let o=i[e];if(r.argsByName){let c=r.argsByName.get(e);if(c.ref&&s.isResolvable(o))t._resolve.push(e),a.$_mutateRegister(o);else if(c.normalize&&(o=c.normalize(o),i[e]=o),c.assert){let t=s.validateArg(o,e,c);n(!t,t,`or reference`)}}if(o===void 0){delete i[e];continue}i[e]=o}return r.multi||(a._ruleRemove(t.name,{clone:!1}),a._singleRules.set(t.name,t)),a.$_temp.ruleset===!1&&(a.$_temp.ruleset=null),r.priority?a._rules.unshift(t):a._rules.push(t),a}$_compile(e,t){return c.schema(this.$_root,e,t)}$_createError(e,t,n,r,i,a={}){let o=a.flags===!1?{}:this._flags,s=a.messages?f.merge(this._definition.messages,a.messages):this._definition.messages;return new l.Report(e,t,n,o,s,r,i)}$_getFlag(e){return this._flags[e]}$_getRule(e){return this._singleRules.get(e)}$_mapLabels(e){return e=Array.isArray(e)?e:e.split(`.`),this._ids.labels(e)}$_match(e,t,n,r){n=Object.assign({},n),n.abortEarly=!0,n._externals=!1,t.snapshot();let i=!g.validate(e,this,t,n,r).errors;return t.restore(),i}$_modify(e){return s.assertOptions(e,[`each`,`once`,`ref`,`schema`]),p.schema(this,e)||this}$_mutateRebuild(){n(!this._inRuleset(),`Cannot add this rule inside a ruleset`),this._refs.reset(),this._ids.reset();let e=(e,{source:t,name:n,path:r,key:i})=>{let a=this._definition[t][n]&&this._definition[t][n].register;a!==!1&&this.$_mutateRegister(e,{family:a,key:i})};return this.$_modify({each:e}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(e,{family:t,key:n}={}){this._refs.register(e,t),this._ids.register(e,{key:n})}$_property(e){return this._definition.properties[e]}$_reach(e){return this._ids.reach(e)}$_rootReferences(){return this._refs.roots()}$_setFlag(e,t,r={}){n(e[0]===`_`||!this._inRuleset(),`Cannot set flag inside a ruleset`);let a=this._definition.flags[e]||{};if(i(t,a.default)&&(t=void 0),i(t,this._flags[e]))return this;let o=r.clone===!1?this:this.clone();return t===void 0?delete o._flags[e]:(o._flags[e]=t,o.$_mutateRegister(t)),e[0]!==`_`&&(o.$_temp.ruleset=!1),o}$_parent(e,...t){return this[e][s.symbols.parent].call(this,...t)}$_validate(e,t,n){return g.validate(e,this,t,n)}_assign(e){for(let t in e.type=this.type,e.$_root=this.$_root,e.$_temp=Object.assign({},this.$_temp),e.$_temp.whens={},e._ids=this._ids.clone(),e._preferences=this._preferences,e._valids=this._valids&&this._valids.clone(),e._invalids=this._invalids&&this._invalids.clone(),e._rules=this._rules.slice(),e._singleRules=r(this._singleRules,{shallow:!0}),e._refs=this._refs.clone(),e._flags=Object.assign({},this._flags),e._cache=null,e.$_terms={},this.$_terms)e.$_terms[t]=this.$_terms[t]?this.$_terms[t].slice():null;for(let t in e.$_super={},this.$_super)e.$_super[t]=this._super[t].bind(e);return e}_bare(){let e=this.clone();e._reset();let t=e._definition.terms;for(let n in t){let r=t[n];e.$_terms[n]=r.init}return e.$_mutateRebuild()}_default(e,t,r={}){s.assertOptions(r,`literal`),n(t!==void 0,`Missing`,e,`value`),n(typeof t==`function`||!r.literal,`Only function value supports literal option`),typeof t==`function`&&r.literal&&(t={[s.symbols.literal]:!0,literal:t});let i=this.$_setFlag(e,t);return i}_generate(e,t,n){if(!this.$_terms.whens)return{schema:this};let r=[],i=[];for(let a=0;a<this.$_terms.whens.length;++a){let o=this.$_terms.whens[a];if(o.concat){r.push(o.concat),i.push(`${a}.concat`);continue}let s=o.ref?o.ref.resolve(e,t,n):e,c=o.is?[o]:o.switch,l=i.length;for(let l=0;l<c.length;++l){let{is:u,then:d,otherwise:f}=c[l],p=`${a}${o.switch?`.`+l:``}`;if(u.$_match(s,t.nest(u,`${p}.is`),n)){if(d){let a=t.localize([...t.path,`${p}.then`],t.ancestors,t.schemas),{schema:o,id:s}=d._generate(e,a,n);r.push(o),i.push(`${p}.then${s?`(${s})`:``}`);break}}else if(f){let a=t.localize([...t.path,`${p}.otherwise`],t.ancestors,t.schemas),{schema:o,id:s}=f._generate(e,a,n);r.push(o),i.push(`${p}.otherwise${s?`(${s})`:``}`);break}}if(o.break&&i.length>l)break}let a=i.join(`, `);if(t.mainstay.tracer.debug(t,`rule`,`when`,a),!a)return{schema:this};if(!t.mainstay.tracer.active&&this.$_temp.whens[a])return{schema:this.$_temp.whens[a],id:a};let o=this;this._definition.generate&&(o=this._definition.generate(this,e,t,n));for(let e of r)o=o.concat(e);return this.$_root._tracer&&this.$_root._tracer._combine(o,[this,...r]),this.$_temp.whens[a]=o,{schema:o,id:a}}_inner(e,t,r={}){n(!this._inRuleset(),`Cannot set ${e} inside a ruleset`);let i=this.clone();return(!i.$_terms[e]||r.override)&&(i.$_terms[e]=[]),r.single?i.$_terms[e].push(t):i.$_terms[e].push(...t),i.$_temp.ruleset=!1,i}_inRuleset(){return this.$_temp.ruleset!==null&&this.$_temp.ruleset!==!1}_ruleRemove(e,t={}){if(!this._singleRules.has(e))return this;let n=t.clone===!1?this:this.clone();n._singleRules.delete(e);let r=[];for(let t=0;t<n._rules.length;++t){let i=n._rules[t];if(i.name===e&&!i.keep){n._inRuleset()&&t<n.$_temp.ruleset&&--n.$_temp.ruleset;continue}r.push(i)}return n._rules=r,n}_values(e,t){s.verifyFlat(e,t.slice(1,-1));let r=this.clone(),i=e[0]===s.symbols.override;if(i&&(e=e.slice(1)),!r[t]&&e.length?r[t]=new _:i&&(r[t]=e.length?new _:null,r.$_mutateRebuild()),!r[t])return r;i&&r[t].override();for(let i of e){n(i!==void 0,`Cannot call allow/valid/invalid with undefined`),n(i!==s.symbols.override,`Override must be the first value`);let e=t===`_invalids`?`_valids`:`_invalids`;r[e]&&(r[e].remove(i),r[e].length||(n(t===`_valids`||!r._flags.only,`Setting invalid value`,i,`leaves schema rejecting all values due to previous valid rule`),r[e]=null)),r[t].add(i,r._refs)}return r}},v.Base.prototype[s.symbols.any]={version:s.version,compile:c.compile,root:`$_root`},v.Base.prototype.isImmutable=!0,v.Base.prototype.deny=v.Base.prototype.invalid,v.Base.prototype.disallow=v.Base.prototype.invalid,v.Base.prototype.equal=v.Base.prototype.valid,v.Base.prototype.exist=v.Base.prototype.required,v.Base.prototype.not=v.Base.prototype.invalid,v.Base.prototype.options=v.Base.prototype.prefs,v.Base.prototype.preferences=v.Base.prototype.prefs,t.exports=new v.Base}),Xe=s((exports,t)=>{let n=V(),r=Ye(),i=H(),a=Fe();t.exports=r.extend({type:`any`,flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,t){return n(typeof e==`function`,`Method must be a function`),n(t===void 0||t&&typeof t==`string`,`Description must be a non-empty string`),this.$_addRule({name:`custom`,args:{method:e,description:t}})},validate(e,t,{method:n}){try{return n(e,t)}catch(e){return t.error(`any.custom`,{error:e})}},args:[`method`,`description`],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){n(i.isSchema(e)&&e._flags.id,`Schema must be a schema with an id`);let t=this.clone();return t.$_terms.shared=t.$_terms.shared||[],t.$_terms.shared.push(e),t.$_mutateRegister(e),t}},warning:{method(e,t){return n(e&&typeof e==`string`,`Invalid warning code`),this.$_addRule({name:`warning`,args:{code:e,local:t},warn:!0})},validate(e,t,{code:n,local:r}){return t.error(n,r)},args:[`code`,`local`],multi:!0}},modifiers:{keep(e,t=!0){e.keep=t},message(e,t){e.message=a.compile(t)},warn(e,t=!0){e.warn=t}},manifest:{build(e,t){for(let n in t){let r=t[n];if([`examples`,`externals`,`metas`,`notes`,`tags`].includes(n)){for(let t of r)e=e[n.slice(0,-1)](t);continue}if(n===`alterations`){let t={};for(let{target:e,adjuster:n}of r)t[e]=n;e=e.alter(t);continue}if(n===`whens`){for(let t of r){let{ref:n,is:r,not:i,then:a,otherwise:o,concat:s}=t;e=s?e.concat(s):n?e.when(n,{is:r,not:i,then:a,otherwise:o,switch:t.switch,break:t.break}):e.when(r,{then:a,otherwise:o,break:t.break})}continue}if(n===`shared`)for(let t of r)e=e.shared(t)}return e}},messages:{"any.custom":`{{#label}} failed custom validation because {{#error.message}}`,"any.default":`{{#label}} threw an error when running default method`,"any.failover":`{{#label}} threw an error when running failover method`,"any.invalid":`{{#label}} contains an invalid value`,"any.only":`{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}`,"any.ref":`{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}`,"any.required":`{{#label}} is required`,"any.unknown":`{{#label}} is not allowed`}})}),Ze=s((exports,t)=>{let n=V(),r=Ue(),i=Xe(),a=H(),o=Le(),s=Me(),c=Ne(),l={};t.exports=i.extend({type:`alternatives`,flags:{match:{default:`any`}},terms:{matches:{init:[],register:c.toSibling}},args(e,...t){return t.length===1&&Array.isArray(t[0])?e.try(...t[0]):e.try(...t)},validate(e,t){let{schema:n,error:i,state:a,prefs:o}=t;if(n._flags.match){let t=[],c=[];for(let r=0;r<n.$_terms.matches.length;++r){let i=n.$_terms.matches[r],s=a.nest(i.schema,`match.${r}`);s.snapshot();let l=i.schema.$_validate(e,s,o);l.errors?(c.push(l.errors),s.restore()):(t.push(l.value),s.commit())}if(t.length===0){let e={details:c.map(e=>s.details(e,{override:!1}))};return{errors:i(`alternatives.any`,e)}}if(n._flags.match===`one`)return t.length===1?{value:t[0]}:{errors:i(`alternatives.one`)};if(t.length!==n.$_terms.matches.length){let e={details:c.map(e=>s.details(e,{override:!1}))};return{errors:i(`alternatives.all`,e)}}let l=e=>e.$_terms.matches.some(e=>e.schema.type===`object`||e.schema.type===`alternatives`&&l(e.schema));return l(n)?{value:t.reduce((e,t)=>r(e,t,{mergeArrays:!1}))}:{value:t[t.length-1]}}let c=[];for(let t=0;t<n.$_terms.matches.length;++t){let r=n.$_terms.matches[t];if(r.schema){let n=a.nest(r.schema,`match.${t}`);n.snapshot();let i=r.schema.$_validate(e,n,o);if(!i.errors)return n.commit(),i;n.restore(),c.push({schema:r.schema,reports:i.errors});continue}let i=r.ref?r.ref.resolve(e,a,o):e,s=r.is?[r]:r.switch;for(let n=0;n<s.length;++n){let c=s[n],{is:l,then:u,otherwise:d}=c,f=`match.${t}${r.switch?`.`+n:``}`;if(l.$_match(i,a.nest(l,`${f}.is`),o)){if(u)return u.$_validate(e,a.nest(u,`${f}.then`),o)}else if(d)return d.$_validate(e,a.nest(d,`${f}.otherwise`),o)}}return l.errors(c,t)},rules:{conditional:{method(e,t){n(!this._flags._endedSwitch,`Unreachable condition`),n(!this._flags.match,`Cannot combine match mode`,this._flags.match,`with conditional rule`),n(t.break===void 0,`Cannot use break option with alternatives conditional`);let r=this.clone(),i=o.when(r,e,t),a=i.is?[i]:i.switch;for(let e of a)if(e.then&&e.otherwise){r.$_setFlag(`_endedSwitch`,!0,{clone:!1});break}return r.$_terms.matches.push(i),r.$_mutateRebuild()}},match:{method(e){if(n([`any`,`one`,`all`].includes(e),`Invalid alternatives match mode`,e),e!==`any`)for(let t of this.$_terms.matches)n(t.schema,`Cannot combine match mode`,e,`with conditional rules`);return this.$_setFlag(`match`,e)}},try:{method(...e){n(e.length,`Missing alternative schemas`),a.verifyFlat(e,`try`),n(!this._flags._endedSwitch,`Unreachable condition`);let t=this.clone();for(let n of e)t.$_terms.matches.push({schema:t.$_compile(n)});return t.$_mutateRebuild()}}},overrides:{label(e){let t=this.$_parent(`label`,e),n=(t,n)=>n.path[0]!==`is`&&typeof t._flags.label!=`string`?t.label(e):void 0;return t.$_modify({each:n,ref:!1})}},rebuild(e){let t=t=>{a.isSchema(t)&&t.type===`array`&&e.$_setFlag(`_arrayItems`,!0,{clone:!1})};e.$_modify({each:t})},manifest:{build(e,t){if(t.matches)for(let n of t.matches){let{schema:t,ref:r,is:i,not:a,then:o,otherwise:s}=n;e=t?e.try(t):r?e.conditional(r,{is:i,then:o,not:a,otherwise:s,switch:n.switch}):e.conditional(i,{then:o,otherwise:s})}return e}},messages:{"alternatives.all":`{{#label}} does not match all of the required types`,"alternatives.any":`{{#label}} does not match any of the allowed types`,"alternatives.match":`{{#label}} does not match any of the allowed types`,"alternatives.one":`{{#label}} matches more than one allowed type`,"alternatives.types":`{{#label}} must be one of {{#types}}`}}),l.errors=function(e,{error:t,state:n}){if(!e.length)return{errors:t(`alternatives.any`)};if(e.length===1)return{errors:e[0].reports};let r=new Set,i=[];for(let{reports:a,schema:o}of e){if(a.length>1)return l.unmatched(e,t);let c=a[0];if(!(c instanceof s.Report))return l.unmatched(e,t);if(c.state.path.length!==n.path.length){i.push({type:o.type,report:c});continue}if(c.code===`any.only`){for(let e of c.local.valids)r.add(e);continue}let[u,d]=c.code.split(`.`);d===`base`?c.code===`object.base`?r.add(c.local.type):r.add(u):i.push({type:o.type,report:c})}return i.length?i.length===1?{errors:i[0].report}:l.unmatched(e,t):{errors:t(`alternatives.types`,{types:[...r]})}},l.unmatched=function(e,t){let n=[];for(let t of e)n.push(...t.reports);return{errors:t(`alternatives.match`,s.details(n,{override:!1}))}}}),Qe=s((exports,t)=>{let n=V(),r=Be(),i=ce(),a=Xe(),o=H(),s=Le(),c={};t.exports=a.extend({type:`array`,flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:`schema`},ordered:{init:[],manifest:`schema`},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:`object`,method(e,{schema:t,state:n,prefs:r}){if(!Array.isArray(e))return;let i=t.$_getRule(`sort`);if(i)return c.sort(t,e,i.args.options,n,r)}},validate(e,{schema:t,error:n}){if(!Array.isArray(e)){if(t._flags.single){let t=[e];return t[o.symbols.arraySingle]=!0,{value:t}}return{errors:n(`array.base`)}}if(!(!t.$_getRule(`items`)&&!t.$_terms.externals))return{value:e.slice()}},rules:{has:{method(e){e=this.$_compile(e,{appendPath:!0});let t=this.$_addRule({name:`has`,args:{schema:e}});return t.$_mutateRegister(e),t},validate(e,{state:t,prefs:n,error:r},{schema:i}){let a=[e,...t.ancestors];for(let r=0;r<e.length;++r){let o=t.localize([...t.path,r],a,i);if(i.$_match(e[r],o,n))return e}let o=i._flags.label;return o?r(`array.hasKnown`,{patternLabel:o}):r(`array.hasUnknown`,null)},multi:!0},items:{method(...e){o.verifyFlat(e,`items`);let t=this.$_addRule(`items`);for(let n=0;n<e.length;++n){let r=o.tryWithPath(()=>this.$_compile(e[n]),n,{append:!0});t.$_terms.items.push(r)}return t.$_mutateRebuild()},validate(e,{schema:t,error:n,state:r,prefs:i,errorsArray:a}){let s=t.$_terms._requireds.slice(),l=t.$_terms.ordered.slice(),u=[...t.$_terms._inclusions,...s],d=!e[o.symbols.arraySingle];delete e[o.symbols.arraySingle];let f=a(),p=e.length;for(let a=0;a<p;++a){let o=e[a],m=!1,h=!1,g=d?a:new Number(a),_=[...r.path,g];if(!t._flags.sparse&&o===void 0){if(f.push(n(`array.sparse`,{key:g,path:_,pos:a,value:void 0},r.localize(_))),i.abortEarly)return f;l.shift();continue}let v=[e,...r.ancestors];for(let e of t.$_terms._exclusions){if(!e.$_match(o,r.localize(_,v,e),i,{presence:`ignore`}))continue;if(f.push(n(`array.excludes`,{pos:a,value:o},r.localize(_))),i.abortEarly)return f;m=!0,l.shift();break}if(m)continue;if(t.$_terms.ordered.length){if(l.length){let s=l.shift(),u=s.$_validate(o,r.localize(_,v,s),i);if(u.errors){if(f.push(...u.errors),i.abortEarly)return f}else if(s._flags.result===`strip`)c.fastSplice(e,a),--a,--p;else if(!t._flags.sparse&&u.value===void 0){if(f.push(n(`array.sparse`,{key:g,path:_,pos:a,value:void 0},r.localize(_))),i.abortEarly)return f;continue}else e[a]=u.value;continue}else if(!t.$_terms.items.length){if(f.push(n(`array.orderedLength`,{pos:a,limit:t.$_terms.ordered.length})),i.abortEarly)return f;break}}let y=[],b=s.length;for(let l=0;l<b;++l){let u=r.localize(_,v,s[l]);u.snapshot();let d=s[l].$_validate(o,u,i);if(y[l]=d,!d.errors){if(u.commit(),e[a]=d.value,h=!0,c.fastSplice(s,l),--l,--b,!t._flags.sparse&&d.value===void 0&&(f.push(n(`array.sparse`,{key:g,path:_,pos:a,value:void 0},r.localize(_))),i.abortEarly))return f;break}u.restore()}if(h)continue;let x=i.stripUnknown&&!!i.stripUnknown.arrays||!1;b=u.length;for(let l of u){let u,d=s.indexOf(l);if(d!==-1)u=y[d];else{let s=r.localize(_,v,l);if(s.snapshot(),u=l.$_validate(o,s,i),!u.errors){s.commit(),l._flags.result===`strip`?(c.fastSplice(e,a),--a,--p):!t._flags.sparse&&u.value===void 0?(f.push(n(`array.sparse`,{key:g,path:_,pos:a,value:void 0},r.localize(_))),m=!0):e[a]=u.value,h=!0;break}s.restore()}if(b===1){if(x){c.fastSplice(e,a),--a,--p,h=!0;break}if(f.push(...u.errors),i.abortEarly)return f;m=!0;break}}if(!m&&(t.$_terms._inclusions.length||t.$_terms._requireds.length)&&!h){if(x){c.fastSplice(e,a),--a,--p;continue}if(f.push(n(`array.includes`,{pos:a,value:o},r.localize(_))),i.abortEarly)return f}}return s.length&&c.fillMissedErrors(t,f,s,e,r,i),l.length&&(c.fillOrderedErrors(t,f,l,e,r,i),f.length||c.fillDefault(l,e,r,i)),f.length?f:e},priority:!0,manifest:!1},length:{method(e){return this.$_addRule({name:`length`,args:{limit:e},operator:`=`})},validate(e,t,{limit:n},{name:r,operator:i,args:a}){return o.compare(e.length,n,i)?e:t.error(`array.`+r,{limit:a.limit,value:e})},args:[{name:`limit`,ref:!0,assert:o.limit,message:`must be a positive integer`}]},max:{method(e){return this.$_addRule({name:`max`,method:`length`,args:{limit:e},operator:`<=`})}},min:{method(e){return this.$_addRule({name:`min`,method:`length`,args:{limit:e},operator:`>=`})}},ordered:{method(...e){o.verifyFlat(e,`ordered`);let t=this.$_addRule(`items`);for(let n=0;n<e.length;++n){let r=o.tryWithPath(()=>this.$_compile(e[n]),n,{append:!0});c.validateSingle(r,t),t.$_mutateRegister(r),t.$_terms.ordered.push(r)}return t.$_mutateRebuild()}},single:{method(e){let t=e===void 0?!0:!!e;return n(!t||!this._flags._arrayItems,`Cannot specify single rule when array has array items`),this.$_setFlag(`single`,t)}},sort:{method(e={}){o.assertOptions(e,[`by`,`order`]);let t={order:e.order||`ascending`};return e.by&&(t.by=s.ref(e.by,{ancestor:0}),n(!t.by.ancestor,`Cannot sort by ancestor`)),this.$_addRule({name:`sort`,args:{options:t}})},validate(e,{error:t,state:n,prefs:r,schema:i},{options:a}){let{value:o,errors:s}=c.sort(i,e,a,n,r);if(s)return s;for(let n=0;n<e.length;++n)if(e[n]!==o[n])return t(`array.sort`,{order:a.order,by:a.by?a.by.key:`value`});return e},convert:!0},sparse:{method(e){let t=e===void 0?!0:!!e;if(this._flags.sparse===t)return this;let n=t?this.clone():this.$_addRule(`items`);return n.$_setFlag(`sparse`,t,{clone:!1})}},unique:{method(e,t={}){n(!e||typeof e==`function`||typeof e==`string`,`comparator must be a function or a string`),o.assertOptions(t,[`ignoreUndefined`,`separator`]);let r={name:`unique`,args:{options:t,comparator:e}};if(e)if(typeof e==`string`){let n=o.default(t.separator,`.`);r.path=n?e.split(n):[e]}else r.comparator=e;return this.$_addRule(r)},validate(e,{state:t,error:a,schema:o},{comparator:s,options:c},{comparator:l,path:u}){let d={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),bigint:Object.create(null),object:new Map,function:new Map,custom:new Map},f=l||r,p=c.ignoreUndefined;for(let r=0;r<e.length;++r){let o=u?i(e[r],u):e[r],c=l?d.custom:d[typeof o];if(n(c,`Failed to find unique map container for type`,typeof o),c instanceof Map){let n=c.entries(),i;for(;!(i=n.next()).done;)if(f(i.value[0],o)){let n=t.localize([...t.path,r],[e,...t.ancestors]),o={pos:r,value:e[r],dupePos:i.value[1],dupeValue:e[i.value[1]]};return u&&(o.path=s),a(`array.unique`,o,n)}c.set(o,r)}else{if((!p||o!==void 0)&&c[o]!==void 0){let n={pos:r,value:e[r],dupePos:c[o],dupeValue:e[c[o]]};u&&(n.path=s);let i=t.localize([...t.path,r],[e,...t.ancestors]);return a(`array.unique`,n,i)}c[o]=r}}return e},args:[`comparator`,`options`],multi:!0}},cast:{set:{from:Array.isArray,to(e,t){return new Set(e)}}},rebuild(e){e.$_terms._inclusions=[],e.$_terms._exclusions=[],e.$_terms._requireds=[];for(let t of e.$_terms.items)c.validateSingle(t,e),t._flags.presence===`required`?e.$_terms._requireds.push(t):t._flags.presence===`forbidden`?e.$_terms._exclusions.push(t):e.$_terms._inclusions.push(t);for(let t of e.$_terms.ordered)c.validateSingle(t,e)},manifest:{build(e,t){return t.items&&(e=e.items(...t.items)),t.ordered&&(e=e.ordered(...t.ordered)),e}},messages:{"array.base":`{{#label}} must be an array`,"array.excludes":`{{#label}} contains an excluded value`,"array.hasKnown":`{{#label}} does not contain at least one required match for type {:#patternLabel}`,"array.hasUnknown":`{{#label}} does not contain at least one required match`,"array.includes":`{{#label}} does not match any of the allowed types`,"array.includesRequiredBoth":`{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)`,"array.includesRequiredKnowns":`{{#label}} does not contain {{#knownMisses}}`,"array.includesRequiredUnknowns":`{{#label}} does not contain {{#unknownMisses}} required value(s)`,"array.length":`{{#label}} must contain {{#limit}} items`,"array.max":`{{#label}} must contain less than or equal to {{#limit}} items`,"array.min":`{{#label}} must contain at least {{#limit}} items`,"array.orderedLength":`{{#label}} must contain at most {{#limit}} items`,"array.sort":`{{#label}} must be sorted in {#order} order by {{#by}}`,"array.sort.mismatching":`{{#label}} cannot be sorted due to mismatching types`,"array.sort.unsupported":`{{#label}} cannot be sorted due to unsupported type {#type}`,"array.sparse":`{{#label}} must not be a sparse array item`,"array.unique":`{{#label}} contains a duplicate value`}}),c.fillMissedErrors=function(e,t,n,r,i,a){let o=[],s=0;for(let e of n){let t=e._flags.label;t?o.push(t):++s}o.length?s?t.push(e.$_createError(`array.includesRequiredBoth`,r,{knownMisses:o,unknownMisses:s},i,a)):t.push(e.$_createError(`array.includesRequiredKnowns`,r,{knownMisses:o},i,a)):t.push(e.$_createError(`array.includesRequiredUnknowns`,r,{unknownMisses:s},i,a))},c.fillOrderedErrors=function(e,t,n,r,i,a){let o=[];for(let e of n)e._flags.presence===`required`&&o.push(e);o.length&&c.fillMissedErrors(e,t,o,r,i,a)},c.fillDefault=function(e,t,n,r){let i=[],a=!0;for(let o=e.length-1;o>=0;--o){let s=e[o],c=[t,...n.ancestors],l=s.$_validate(void 0,n.localize(n.path,c,s),r).value;if(a){if(l===void 0)continue;a=!1}i.unshift(l)}i.length&&t.push(...i)},c.fastSplice=function(e,t){let n=t;for(;n<e.length;)e[n++]=e[n];--e.length},c.validateSingle=function(e,t){(e.type===`array`||e._flags._arrayItems)&&(n(!t._flags.single,`Cannot specify array item with single rule enabled`),t.$_setFlag(`_arrayItems`,!0,{clone:!1}))},c.sort=function(e,t,n,r,i){let a=n.order===`ascending`?1:-1,o=-1*a,s=a,l=(l,u)=>{let d=c.compare(l,u,o,s);if(d!==null||(n.by&&(l=n.by.resolve(l,r,i),u=n.by.resolve(u,r,i)),d=c.compare(l,u,o,s),d!==null))return d;let f=typeof l;if(f!==typeof u)throw e.$_createError(`array.sort.mismatching`,t,null,r,i);if(f!==`number`&&f!==`string`)throw e.$_createError(`array.sort.unsupported`,t,{type:f},r,i);return f===`number`?(l-u)*a:l<u?o:s};try{return{value:t.slice().sort(l)}}catch(e){return{errors:e}}},c.compare=function(e,t,n,r){return e===t?0:e===void 0?1:t===void 0?-1:e===null?r:t===null?n:null}}),$e=s((exports,t)=>{let n=V(),r=Xe(),i=H(),a=Je(),o={};o.isBool=function(e){return typeof e==`boolean`},t.exports=r.extend({type:`boolean`,flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:`values`},truthy:{init:null,manifest:`values`}},coerce(e,{schema:t}){if(typeof e!=`boolean`){if(typeof e==`string`){let n=t._flags.sensitive?e:e.toLowerCase();e=n===`true`?!0:n===`false`?!1:e}return typeof e!=`boolean`&&(e=t.$_terms.truthy&&t.$_terms.truthy.has(e,null,null,!t._flags.sensitive)||(t.$_terms.falsy&&t.$_terms.falsy.has(e,null,null,!t._flags.sensitive)?!1:e)),{value:e}}},validate(e,{error:t}){if(typeof e!=`boolean`)return{value:e,errors:t(`boolean.base`)}},rules:{truthy:{method(...e){i.verifyFlat(e,`truthy`);let t=this.clone();t.$_terms.truthy=t.$_terms.truthy||new a;for(let r=0;r<e.length;++r){let i=e[r];n(i!==void 0,`Cannot call truthy with undefined`),t.$_terms.truthy.add(i)}return t}},falsy:{method(...e){i.verifyFlat(e,`falsy`);let t=this.clone();t.$_terms.falsy=t.$_terms.falsy||new a;for(let r=0;r<e.length;++r){let i=e[r];n(i!==void 0,`Cannot call falsy with undefined`),t.$_terms.falsy.add(i)}return t}},sensitive:{method(e=!0){return this.$_setFlag(`sensitive`,e)}}},cast:{number:{from:o.isBool,to(e,t){return e?1:0}},string:{from:o.isBool,to(e,t){return e?`true`:`false`}}},manifest:{build(e,t){return t.truthy&&(e=e.truthy(...t.truthy)),t.falsy&&(e=e.falsy(...t.falsy)),e}},messages:{"boolean.base":`{{#label}} must be a boolean`}})}),et=s((exports,t)=>{let n=V(),r=Xe(),i=H(),a=Pe(),o={};o.isDate=function(e){return e instanceof Date},t.exports=r.extend({type:`date`,coerce:{from:[`number`,`string`],method(e,{schema:t}){return{value:o.parse(e,t._flags.format)||e}}},validate(e,{schema:t,error:n,prefs:r}){if(e instanceof Date&&!isNaN(e.getTime()))return;let i=t._flags.format;return!r.convert||!i||typeof e!=`string`?{value:e,errors:n(`date.base`)}:{value:e,errors:n(`date.format`,{format:i})}},rules:{compare:{method:!1,validate(e,t,{date:n},{name:r,operator:a,args:o}){let s=n===`now`?Date.now():n.getTime();return i.compare(e.getTime(),s,a)?e:t.error(`date.`+r,{limit:o.date,value:e})},args:[{name:`date`,ref:!0,normalize:e=>e===`now`?e:o.parse(e),assert:e=>e!==null,message:`must have a valid date format`}]},format:{method(e){return n([`iso`,`javascript`,`unix`].includes(e),`Unknown date format`,e),this.$_setFlag(`format`,e)}},greater:{method(e){return this.$_addRule({name:`greater`,method:`compare`,args:{date:e},operator:`>`})}},iso:{method(){return this.format(`iso`)}},less:{method(e){return this.$_addRule({name:`less`,method:`compare`,args:{date:e},operator:`<`})}},max:{method(e){return this.$_addRule({name:`max`,method:`compare`,args:{date:e},operator:`<=`})}},min:{method(e){return this.$_addRule({name:`min`,method:`compare`,args:{date:e},operator:`>=`})}},timestamp:{method(e=`javascript`){return n([`javascript`,`unix`].includes(e),`"type" must be one of "javascript, unix"`),this.format(e)}}},cast:{number:{from:o.isDate,to(e,t){return e.getTime()}},string:{from:o.isDate,to(e,{prefs:t}){return a.date(e,t)}}},messages:{"date.base":`{{#label}} must be a valid date`,"date.format":`{{#label}} must be in {msg("date.format." + #format) || #format} format`,"date.greater":`{{#label}} must be greater than {{:#limit}}`,"date.less":`{{#label}} must be less than {{:#limit}}`,"date.max":`{{#label}} must be less than or equal to {{:#limit}}`,"date.min":`{{#label}} must be greater than or equal to {{:#limit}}`,"date.format.iso":`ISO 8601 date`,"date.format.javascript":`timestamp or number of milliseconds`,"date.format.unix":`timestamp or number of seconds`}}),o.parse=function(e,t){if(e instanceof Date)return e;if(typeof e!=`string`&&(isNaN(e)||!isFinite(e))||/^\s*$/.test(e))return null;if(t===`iso`)return i.isIsoDate(e)?o.date(e.toString()):null;let n=e;if(typeof e==`string`&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e)),t){if(t===`javascript`)return o.date(1*e);if(t===`unix`)return o.date(1e3*e);if(typeof n==`string`)return null}return o.date(e)},o.date=function(e){let t=new Date(e);return isNaN(t.getTime())?null:t}}),tt=s((exports,t)=>{let n=V(),r=de(),i=Ue(),a=ce(),o={};t.exports=function(e,t,a={}){if(n(e&&typeof e==`object`,`Invalid defaults value: must be an object`),n(!t||t===!0||typeof t==`object`,`Invalid source value: must be true, falsy or an object`),n(typeof a==`object`,`Invalid options: must be an object`),!t)return null;if(a.shallow)return o.applyToDefaultsWithShallow(e,t,a);let s=r(e);if(t===!0)return s;let c=a.nullOverride===void 0?!1:a.nullOverride;return i(s,t,{nullOverride:c,mergeArrays:!1})},o.applyToDefaultsWithShallow=function(e,t,s){let c=s.shallow;n(Array.isArray(c),`Invalid keys`);let l=new Map,u=t===!0?null:new Set;for(let n of c){n=Array.isArray(n)?n:n.split(`.`);let r=a(e,n);r&&typeof r==`object`?l.set(r,u&&a(t,n)||r):u&&u.add(n)}let d=r(e,{},l);if(!u)return d;for(let e of u)o.reachCopy(d,t,e);let f=s.nullOverride===void 0?!1:s.nullOverride;return i(d,t,{nullOverride:f,mergeArrays:!1})},o.reachCopy=function(e,t,n){for(let e of n){if(!(e in t))return;let n=t[e];if(typeof n!=`object`||!n)return;t=n}let r=t,i=e;for(let e=0;e<n.length-1;++e){let t=n[e];typeof i[t]!=`object`&&(i[t]={}),i=i[t]}i[n[n.length-1]]=r}}),nt=s(exports=>{let t=V(),n={};exports.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(e,n){n||={};let r=[].concat(n.before||[]),i=[].concat(n.after||[]),a=n.group||`?`,o=n.sort||0;t(!r.includes(a),`Item cannot come before itself: ${a}`),t(!r.includes(`?`),`Item cannot come before unassociated items`),t(!i.includes(a),`Item cannot come after itself: ${a}`),t(!i.includes(`?`),`Item cannot come after unassociated items`),Array.isArray(e)||(e=[e]);for(let t of e){let e={seq:this._items.length,sort:o,before:r,after:i,group:a,node:t};this._items.push(e)}if(!n.manual){let e=this._sort();t(e,`item`,a===`?`?``:`added into group ${a}`,`created a dependencies error`)}return this.nodes}merge(e){Array.isArray(e)||(e=[e]);for(let t of e)if(t)for(let e of t._items)this._items.push(Object.assign({},e));this._items.sort(n.mergeSort);for(let e=0;e<this._items.length;++e)this._items[e].seq=e;let r=this._sort();return t(r,`merge created a dependencies error`),this.nodes}sort(){let e=this._sort();return t(e,`sort created a dependencies error`),this.nodes}_sort(){let e={},t=Object.create(null),n=Object.create(null);for(let r of this._items){let i=r.seq,a=r.group;n[a]=n[a]||[],n[a].push(i),e[i]=r.before;for(let e of r.after)t[e]=t[e]||[],t[e].push(i)}for(let t in e){let r=[];for(let i in e[t]){let a=e[t][i];n[a]=n[a]||[],r.push(...n[a])}e[t]=r}for(let r in t)if(n[r])for(let i of n[r])e[i].push(...t[r]);let r={};for(let t in e){let n=e[t];for(let e of n)r[e]=r[e]||[],r[e].push(t)}let i={},a=[];for(let e=0;e<this._items.length;++e){let t=e;if(r[e]){t=null;for(let e=0;e<this._items.length;++e){if(i[e]===!0)continue;r[e]||(r[e]=[]);let n=r[e].length,a=0;for(let t=0;t<n;++t)i[r[e][t]]&&++a;if(a===n){t=e;break}}}t!==null&&(i[t]=!0,a.push(t))}if(a.length!==this._items.length)return!1;let o={};for(let e of this._items)o[e.seq]=e;this._items=[],this.nodes=[];for(let e of a){let t=o[e];this.nodes.push(t.node),this._items.push(t)}return!0}},n.mergeSort=(e,t)=>e.sort===t.sort?0:e.sort<t.sort?-1:1}),rt=s((exports,t)=>{let n=tt(),r=V(),i=de(),a=nt(),o=Xe(),s=H(),c=Le(),l=Me(),u=Ne(),d=Pe(),f={renameDefaults:{alias:!1,multiple:!1,override:!1}};t.exports=o.extend({type:`_keys`,properties:{typeof:`object`},flags:{unknown:{default:void 0}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:`schema`,to:`key`}}},patterns:{init:null},renames:{init:null}},args(e,t){return e.keys(t)},validate(e,{schema:t,error:n,state:r,prefs:i}){if(!e||typeof e!==t.$_property(`typeof`)||Array.isArray(e))return{value:e,errors:n(`object.base`,{type:t.$_property(`typeof`)})};if(!t.$_terms.renames&&!t.$_terms.dependencies&&!t.$_terms.keys&&!t.$_terms.patterns&&!t.$_terms.externals)return;e=f.clone(e,i);let a=[];if(t.$_terms.renames&&!f.rename(t,e,r,i,a)||!t.$_terms.keys&&!t.$_terms.patterns&&!t.$_terms.dependencies)return{value:e,errors:a};let o=new Set(Object.keys(e));if(t.$_terms.keys){let n=[e,...r.ancestors];for(let s of t.$_terms.keys){let t=s.key,c=e[t];o.delete(t);let l=r.localize([...r.path,t],n,s),u=s.schema.$_validate(c,l,i);if(u.errors){if(i.abortEarly)return{value:e,errors:u.errors};u.value!==void 0&&(e[t]=u.value),a.push(...u.errors)}else s.schema._flags.result===`strip`||u.value===void 0&&c!==void 0?delete e[t]:u.value!==void 0&&(e[t]=u.value)}}if(o.size||t._flags._hasPatternMatch){let n=f.unknown(t,e,o,a,r,i);if(n)return n}if(t.$_terms.dependencies)for(let n of t.$_terms.dependencies){if(n.key!==null&&f.isPresent(n.options)(n.key.resolve(e,r,i,null,{shadow:!1}))===!1)continue;let o=f.dependencies[n.rel](t,n,e,r,i);if(o){let n=t.$_createError(o.code,e,o.context,r,i);if(i.abortEarly)return{value:e,errors:n};a.push(n)}}return{value:e,errors:a}},rules:{and:{method(...e){return s.verifyFlat(e,`and`),f.dependency(this,`and`,null,e)}},append:{method(e){return e==null||Object.keys(e).length===0?this:this.keys(e)}},assert:{method(e,t,n){d.isTemplate(e)||(e=c.ref(e)),r(n===void 0||typeof n==`string`,`Message must be a string`),t=this.$_compile(t,{appendPath:!0});let i=this.$_addRule({name:`assert`,args:{subject:e,schema:t,message:n}});return i.$_mutateRegister(e),i.$_mutateRegister(t),i},validate(e,{error:t,prefs:n,state:r},{subject:i,schema:a,message:o}){let s=i.resolve(e,r,n),c=u.isRef(i)?i.absolute(r):[];return a.$_match(s,r.localize(c,[e,...r.ancestors],a),n)?e:t(`object.assert`,{subject:i,message:o})},args:[`subject`,`schema`,`message`],multi:!0},instance:{method(e,t){return r(typeof e==`function`,`constructor must be a function`),t||=e.name,this.$_addRule({name:`instance`,args:{constructor:e,name:t}})},validate(e,t,{constructor:n,name:r}){return e instanceof n?e:t.error(`object.instance`,{type:r,value:e})},args:[`constructor`,`name`]},keys:{method(e){r(e===void 0||typeof e==`object`,`Object schema must be a valid object`),r(!s.isSchema(e),`Object schema cannot be a joi schema`);let t=this.clone();if(!e)t.$_terms.keys=null;else if(!Object.keys(e).length)t.$_terms.keys=new f.Keys;else for(let n in t.$_terms.keys=t.$_terms.keys?t.$_terms.keys.filter(t=>!e.hasOwnProperty(t.key)):new f.Keys,e)s.tryWithPath(()=>t.$_terms.keys.push({key:n,schema:this.$_compile(e[n])}),n);return t.$_mutateRebuild()}},length:{method(e){return this.$_addRule({name:`length`,args:{limit:e},operator:`=`})},validate(e,t,{limit:n},{name:r,operator:i,args:a}){return s.compare(Object.keys(e).length,n,i)?e:t.error(`object.`+r,{limit:a.limit,value:e})},args:[{name:`limit`,ref:!0,assert:s.limit,message:`must be a positive integer`}]},max:{method(e){return this.$_addRule({name:`max`,method:`length`,args:{limit:e},operator:`<=`})}},min:{method(e){return this.$_addRule({name:`min`,method:`length`,args:{limit:e},operator:`>=`})}},nand:{method(...e){return s.verifyFlat(e,`nand`),f.dependency(this,`nand`,null,e)}},or:{method(...e){return s.verifyFlat(e,`or`),f.dependency(this,`or`,null,e)}},oxor:{method(...e){return f.dependency(this,`oxor`,null,e)}},pattern:{method(e,t,n={}){let i=e instanceof RegExp;i||(e=this.$_compile(e,{appendPath:!0})),r(t!==void 0,`Invalid rule`),s.assertOptions(n,[`fallthrough`,`matches`]),i&&r(!e.flags.includes(`g`)&&!e.flags.includes(`y`),`pattern should not use global or sticky mode`),t=this.$_compile(t,{appendPath:!0});let a=this.clone();a.$_terms.patterns=a.$_terms.patterns||[];let o={[i?`regex`:`schema`]:e,rule:t};return n.matches&&(o.matches=this.$_compile(n.matches),o.matches.type!==`array`&&(o.matches=o.matches.$_root.array().items(o.matches)),a.$_mutateRegister(o.matches),a.$_setFlag(`_hasPatternMatch`,!0,{clone:!1})),n.fallthrough&&(o.fallthrough=!0),a.$_terms.patterns.push(o),a.$_mutateRegister(t),a}},ref:{method(){return this.$_addRule(`ref`)},validate(e,t){return u.isRef(e)?e:t.error(`object.refType`,{value:e})}},regex:{method(){return this.$_addRule(`regex`)},validate(e,t){return e instanceof RegExp?e:t.error(`object.regex`,{value:e})}},rename:{method(e,t,i={}){r(typeof e==`string`||e instanceof RegExp,`Rename missing the from argument`),r(typeof t==`string`||t instanceof d,`Invalid rename to argument`),r(t!==e,`Cannot rename key to same name:`,e),s.assertOptions(i,[`alias`,`ignoreUndefined`,`override`,`multiple`]);let a=this.clone();a.$_terms.renames=a.$_terms.renames||[];for(let t of a.$_terms.renames)r(t.from!==e,`Cannot rename the same key multiple times`);return t instanceof d&&a.$_mutateRegister(t),a.$_terms.renames.push({from:e,to:t,options:n(f.renameDefaults,i)}),a}},schema:{method(e=`any`){return this.$_addRule({name:`schema`,args:{type:e}})},validate(e,t,{type:n}){return s.isSchema(e)&&(n===`any`||e.type===n)?e:t.error(`object.schema`,{type:n})}},unknown:{method(e){return this.$_setFlag(`unknown`,e!==!1)}},with:{method(e,t,n={}){return f.dependency(this,`with`,e,t,n)}},without:{method(e,t,n={}){return f.dependency(this,`without`,e,t,n)}},xor:{method(...e){return s.verifyFlat(e,`xor`),f.dependency(this,`xor`,null,e)}}},overrides:{default(e,t){return e===void 0&&(e=s.symbols.deepDefault),this.$_parent(`default`,e,t)}},rebuild(e){if(e.$_terms.keys){let t=new a.Sorter;for(let n of e.$_terms.keys)s.tryWithPath(()=>t.add(n,{after:n.schema.$_rootReferences(),group:n.key}),n.key);e.$_terms.keys=new f.Keys(...t.nodes)}},manifest:{build(e,t){if(t.keys&&(e=e.keys(t.keys)),t.dependencies)for(let{rel:n,key:r=null,peers:i,options:a}of t.dependencies)e=f.dependency(e,n,r,i,a);if(t.patterns)for(let{regex:n,schema:r,rule:i,fallthrough:a,matches:o}of t.patterns)e=e.pattern(n||r,i,{fallthrough:a,matches:o});if(t.renames)for(let{from:n,to:r,options:i}of t.renames)e=e.rename(n,r,i);return e}},messages:{"object.and":`{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}`,"object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":`{{#label}} must be of type {{#type}}`,"object.instance":`{{#label}} must be an instance of {{:#type}}`,"object.length":`{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}`,"object.max":`{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}`,"object.min":`{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}`,"object.missing":`{{#label}} must contain at least one of {{#peersWithLabels}}`,"object.nand":`{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}`,"object.oxor":`{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}`,"object.pattern.match":`{{#label}} keys failed to match pattern requirements`,"object.refType":`{{#label}} must be a Joi reference`,"object.regex":`{{#label}} must be a RegExp object`,"object.rename.multiple":`{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}`,"object.rename.override":`{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists`,"object.schema":`{{#label}} must be a Joi schema of {{#type}} type`,"object.unknown":`{{#label}} is not allowed`,"object.with":`{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}`,"object.without":`{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}`,"object.xor":`{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}`}}),f.clone=function(e,t){if(typeof e==`object`){if(t.nonEnumerables)return i(e,{shallow:!0});let n=Object.create(Object.getPrototypeOf(e));return Object.assign(n,e),n}let n=function(...t){return e.apply(this,t)};return n.prototype=i(e.prototype),Object.defineProperty(n,`name`,{value:e.name,writable:!1}),Object.defineProperty(n,`length`,{value:e.length,writable:!1}),Object.assign(n,e),n},f.dependency=function(e,t,n,i,a){r(n===null||typeof n==`string`,t,`key must be a strings`),a||=i.length>1&&typeof i[i.length-1]==`object`?i.pop():{},s.assertOptions(a,[`separator`,`isPresent`]),i=[].concat(i);let o=s.default(a.separator,`.`),l=[];for(let e of i)r(typeof e==`string`,t,`peers must be strings`),l.push(c.ref(e,{separator:o,ancestor:0,prefix:!1}));n!==null&&(n=c.ref(n,{separator:o,ancestor:0,prefix:!1}));let u=e.clone();return u.$_terms.dependencies=u.$_terms.dependencies||[],u.$_terms.dependencies.push(new f.Dependency(t,n,l,i,a)),u},f.dependencies={and(e,t,n,r,i){let a=[],o=[],s=t.peers.length,c=f.isPresent(t.options);for(let e of t.peers)c(e.resolve(n,r,i,null,{shadow:!1}))===!1?a.push(e.key):o.push(e.key);if(a.length!==s&&o.length!==s)return{code:`object.and`,context:{present:o,presentWithLabels:f.keysToLabels(e,o),missing:a,missingWithLabels:f.keysToLabels(e,a)}}},nand(e,t,n,r,i){let a=[],o=f.isPresent(t.options);for(let e of t.peers)o(e.resolve(n,r,i,null,{shadow:!1}))&&a.push(e.key);if(a.length!==t.peers.length)return;let s=t.paths[0],c=t.paths.slice(1);return{code:`object.nand`,context:{main:s,mainWithLabel:f.keysToLabels(e,s),peers:c,peersWithLabels:f.keysToLabels(e,c)}}},or(e,t,n,r,i){let a=f.isPresent(t.options);for(let e of t.peers)if(a(e.resolve(n,r,i,null,{shadow:!1})))return;return{code:`object.missing`,context:{peers:t.paths,peersWithLabels:f.keysToLabels(e,t.paths)}}},oxor(e,t,n,r,i){let a=[],o=f.isPresent(t.options);for(let e of t.peers)o(e.resolve(n,r,i,null,{shadow:!1}))&&a.push(e.key);if(!a.length||a.length===1)return;let s={peers:t.paths,peersWithLabels:f.keysToLabels(e,t.paths)};return s.present=a,s.presentWithLabels=f.keysToLabels(e,a),{code:`object.oxor`,context:s}},with(e,t,n,r,i){let a=f.isPresent(t.options);for(let o of t.peers)if(a(o.resolve(n,r,i,null,{shadow:!1}))===!1)return{code:`object.with`,context:{main:t.key.key,mainWithLabel:f.keysToLabels(e,t.key.key),peer:o.key,peerWithLabel:f.keysToLabels(e,o.key)}}},without(e,t,n,r,i){let a=f.isPresent(t.options);for(let o of t.peers)if(a(o.resolve(n,r,i,null,{shadow:!1})))return{code:`object.without`,context:{main:t.key.key,mainWithLabel:f.keysToLabels(e,t.key.key),peer:o.key,peerWithLabel:f.keysToLabels(e,o.key)}}},xor(e,t,n,r,i){let a=[],o=f.isPresent(t.options);for(let e of t.peers)o(e.resolve(n,r,i,null,{shadow:!1}))&&a.push(e.key);if(a.length===1)return;let s={peers:t.paths,peersWithLabels:f.keysToLabels(e,t.paths)};return a.length===0?{code:`object.missing`,context:s}:(s.present=a,s.presentWithLabels=f.keysToLabels(e,a),{code:`object.xor`,context:s})}},f.keysToLabels=function(e,t){return Array.isArray(t)?t.map(t=>e.$_mapLabels(t)):e.$_mapLabels(t)},f.isPresent=function(e){return typeof e.isPresent==`function`?e.isPresent:e=>e!==void 0},f.rename=function(e,t,n,r,i){let a={};for(let o of e.$_terms.renames){let s=[],c=typeof o.from!=`string`;if(!c)Object.prototype.hasOwnProperty.call(t,o.from)&&(t[o.from]!==void 0||!o.options.ignoreUndefined)&&s.push(o);else for(let e in t){if(t[e]===void 0&&o.options.ignoreUndefined||e===o.to)continue;let n=o.from.exec(e);if(!n)continue;s.push({from:e,to:o.to,match:n})}for(let l of s){let s=l.from,u=l.to;if(u instanceof d&&(u=u.render(t,n,r,l.match)),s===u)continue;if(!o.options.multiple&&a[u]&&(i.push(e.$_createError(`object.rename.multiple`,t,{from:s,to:u,pattern:c},n,r)),r.abortEarly)||Object.prototype.hasOwnProperty.call(t,u)&&!o.options.override&&!a[u]&&(i.push(e.$_createError(`object.rename.override`,t,{from:s,to:u,pattern:c},n,r)),r.abortEarly))return!1;t[s]===void 0?delete t[u]:t[u]=t[s],a[u]=!0,o.options.alias||delete t[s]}}return!0},f.unknown=function(e,t,n,r,i,a){if(e.$_terms.patterns){let o=!1,s=e.$_terms.patterns.map(e=>{if(e.matches)return o=!0,[]}),c=[t,...i.ancestors];for(let o of n){let l=t[o],u=[...i.path,o];for(let d=0;d<e.$_terms.patterns.length;++d){let f=e.$_terms.patterns[d];if(f.regex){let e=f.regex.test(o);if(i.mainstay.tracer.debug(i,`rule`,`pattern.${d}`,e?`pass`:`error`),!e)continue}else if(!f.schema.$_match(o,i.nest(f.schema,`pattern.${d}`),a))continue;n.delete(o);let p=i.localize(u,c,{schema:f.rule,key:o}),m=f.rule.$_validate(l,p,a);if(m.errors){if(a.abortEarly)return{value:t,errors:m.errors};r.push(...m.errors)}if(f.matches&&s[d].push(o),t[o]=m.value,!f.fallthrough)break}}if(o)for(let n=0;n<s.length;++n){let o=s[n];if(!o)continue;let u=e.$_terms.patterns[n].matches,d=i.localize(i.path,c,u),f=u.$_validate(o,d,a);if(f.errors){let n=l.details(f.errors,{override:!1});n.matches=o;let s=e.$_createError(`object.pattern.match`,t,n,i,a);if(a.abortEarly)return{value:t,errors:s};r.push(s)}}}if(!n.size||!e.$_terms.keys&&!e.$_terms.patterns)return;if(a.stripUnknown&&e._flags.unknown===void 0||a.skipFunctions){let e=a.stripUnknown?a.stripUnknown===!0?!0:!!a.stripUnknown.objects:!1;for(let r of n)e?(delete t[r],n.delete(r)):typeof t[r]==`function`&&n.delete(r)}let o=!s.default(e._flags.unknown,a.allowUnknown);if(o)for(let o of n){let n=i.localize([...i.path,o],[]),s=e.$_createError(`object.unknown`,t[o],{child:o},n,a,{flags:!1});if(a.abortEarly)return{value:t,errors:s};r.push(s)}},f.Dependency=class{constructor(e,t,n,r,i){this.rel=e,this.key=t,this.peers=n,this.paths=r,this.options=i}describe(){let e={rel:this.rel,peers:this.paths};return this.key!==null&&(e.key=this.key.key),this.peers[0].separator!==`.`&&(e.options={...e.options,separator:this.peers[0].separator}),this.options.isPresent&&(e.options={...e.options,isPresent:this.options.isPresent}),e}},f.Keys=class extends Array{concat(e){let t=this.slice(),n=new Map;for(let e=0;e<t.length;++e)n.set(t[e].key,e);for(let r of e){let e=r.key,i=n.get(e);i===void 0?t.push(r):t[i]={key:e,schema:t[i].schema.concat(r.schema)}}return t}}}),it=s((exports,t)=>{let n=V(),r=rt();t.exports=r.extend({type:`function`,properties:{typeof:`function`},rules:{arity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,`n must be a positive integer`),this.$_addRule({name:`arity`,args:{n:e}})},validate(e,t,{n}){return e.length===n?e:t.error(`function.arity`,{n})}},class:{method(){return this.$_addRule(`class`)},validate(e,t){return/^\s*class\s/.test(e.toString())?e:t.error(`function.class`,{value:e})}},minArity:{method(e){return n(Number.isSafeInteger(e)&&e>0,`n must be a strict positive integer`),this.$_addRule({name:`minArity`,args:{n:e}})},validate(e,t,{n}){return e.length>=n?e:t.error(`function.minArity`,{n})}},maxArity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,`n must be a positive integer`),this.$_addRule({name:`maxArity`,args:{n:e}})},validate(e,t,{n}){return e.length<=n?e:t.error(`function.maxArity`,{n})}}},messages:{"function.arity":`{{#label}} must have an arity of {{#n}}`,"function.class":`{{#label}} must be a class`,"function.maxArity":`{{#label}} must have an arity lesser or equal to {{#n}}`,"function.minArity":`{{#label}} must have an arity greater or equal to {{#n}}`}})}),at=s((exports,t)=>{let n=V(),r=Xe(),i=H(),a=Le(),o=Me(),s={};t.exports=r.extend({type:`link`,properties:{schemaChain:!0},terms:{link:{init:null,manifest:`single`,register:!1}},args(e,t){return e.ref(t)},validate(e,{schema:t,state:r,prefs:i}){n(t.$_terms.link,`Uninitialized link schema`);let a=s.generate(t,e,r,i),o=t.$_terms.link[0].ref;return a.$_validate(e,r.nest(a,`link:${o.display}:${a.type}`),i)},generate(e,t,n,r){return s.generate(e,t,n,r)},rules:{ref:{method(e){n(!this.$_terms.link,`Cannot reinitialize schema`),e=a.ref(e),n(e.type===`value`||e.type===`local`,`Invalid reference type:`,e.type),n(e.type===`local`||e.ancestor===`root`||e.ancestor>0,`Link cannot reference itself`);let t=this.clone();return t.$_terms.link=[{ref:e}],t}},relative:{method(e=!0){return this.$_setFlag(`relative`,e)}}},overrides:{concat(e){n(this.$_terms.link,`Uninitialized link schema`),n(i.isSchema(e),`Invalid schema object`),n(e.type!==`link`,`Cannot merge type link with another link`);let t=this.clone();return t.$_terms.whens||(t.$_terms.whens=[]),t.$_terms.whens.push({concat:e}),t.$_mutateRebuild()}},manifest:{build(e,t){return n(t.link,`Invalid link description missing link`),e.ref(t.link)}}}),s.generate=function(e,t,n,r){let i=n.mainstay.links.get(e);if(i)return i._generate(t,n,r).schema;let a=e.$_terms.link[0].ref,{perspective:o,path:c}=s.perspective(a,n);s.assert(o,`which is outside of schema boundaries`,a,e,n,r);try{i=c.length?o.$_reach(c):o}catch{s.assert(!1,`to non-existing schema`,a,e,n,r)}return s.assert(i.type!==`link`,`which is another link`,a,e,n,r),e._flags.relative||n.mainstay.links.set(e,i),i._generate(t,n,r).schema},s.perspective=function(e,t){if(e.type===`local`){for(let{schema:n,key:r}of t.schemas){let t=n._flags.id||r;if(t===e.path[0])return{perspective:n,path:e.path.slice(1)};if(n.$_terms.shared){for(let t of n.$_terms.shared)if(t._flags.id===e.path[0])return{perspective:t,path:e.path.slice(1)}}}return{perspective:null,path:null}}return e.ancestor===`root`?{perspective:t.schemas[t.schemas.length-1].schema,path:e.path}:{perspective:t.schemas[e.ancestor]&&t.schemas[e.ancestor].schema,path:e.path}},s.assert=function(e,t,r,i,a,s){e||n(!1,`"${o.label(i._flags,a,s)}" contains link reference "${r.display}" ${t}`)}}),ot=s((exports,t)=>{let n=V(),r=Xe(),i=H(),a={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/,decimalPlaces(e){let t=e.toString(),n=t.indexOf(`.`),r=t.indexOf(`e`);return(n<0?0:(r<0?t.length:r)-n-1)+(r<0?0:Math.max(0,-parseInt(t.slice(r+1))))}};t.exports=r.extend({type:`number`,flags:{unsafe:{default:!1}},coerce:{from:`string`,method(e,{schema:t,error:n}){let r=e.match(a.numberRx);if(!r)return;e=e.trim();let i={value:parseFloat(e)};if(i.value===0&&(i.value=0),!t._flags.unsafe)if(e.match(/e/i)){if(a.extractSignificantDigits(e)!==a.extractSignificantDigits(String(i.value)))return i.errors=n(`number.unsafe`),i}else{let t=i.value.toString();if(t.match(/e/i))return i;if(t!==a.normalizeDecimal(e))return i.errors=n(`number.unsafe`),i}return i}},validate(e,{schema:t,error:n,prefs:r}){if(e===1/0||e===-1/0)return{value:e,errors:n(`number.infinity`)};if(!i.isNumber(e))return{value:e,errors:n(`number.base`)};let a={value:e};if(r.convert){let e=t.$_getRule(`precision`);if(e){let t=10**e.args.limit;a.value=Math.round(a.value*t)/t}}return a.value===0&&(a.value=0),!t._flags.unsafe&&(e>2**53-1||e<-(2**53-1))&&(a.errors=n(`number.unsafe`)),a},rules:{compare:{method:!1,validate(e,t,{limit:n},{name:r,operator:a,args:o}){return i.compare(e,n,a)?e:t.error(`number.`+r,{limit:o.limit,value:e})},args:[{name:`limit`,ref:!0,assert:i.isNumber,message:`must be a number`}]},greater:{method(e){return this.$_addRule({name:`greater`,method:`compare`,args:{limit:e},operator:`>`})}},integer:{method(){return this.$_addRule(`integer`)},validate(e,t){return Math.trunc(e)-e===0?e:t.error(`number.integer`)}},less:{method(e){return this.$_addRule({name:`less`,method:`compare`,args:{limit:e},operator:`<`})}},max:{method(e){return this.$_addRule({name:`max`,method:`compare`,args:{limit:e},operator:`<=`})}},min:{method(e){return this.$_addRule({name:`min`,method:`compare`,args:{limit:e},operator:`>=`})}},multiple:{method(e){let t=typeof e==`number`?a.decimalPlaces(e):null,n=10**t;return this.$_addRule({name:`multiple`,args:{base:e,baseDecimalPlace:t,pfactor:n}})},validate(e,t,{base:n,baseDecimalPlace:r,pfactor:i},o){let s=a.decimalPlaces(e);return s>r?t.error(`number.multiple`,{multiple:o.args.base,value:e}):Math.round(i*e)%Math.round(i*n)===0?e:t.error(`number.multiple`,{multiple:o.args.base,value:e})},args:[{name:`base`,ref:!0,assert:e=>typeof e==`number`&&isFinite(e)&&e>0,message:`must be a positive number`},`baseDecimalPlace`,`pfactor`],multi:!0},negative:{method(){return this.sign(`negative`)}},port:{method(){return this.$_addRule(`port`)},validate(e,t){return Number.isSafeInteger(e)&&e>=0&&e<=65535?e:t.error(`number.port`)}},positive:{method(){return this.sign(`positive`)}},precision:{method(e){return n(Number.isSafeInteger(e),`limit must be an integer`),this.$_addRule({name:`precision`,args:{limit:e}})},validate(e,t,{limit:n}){let r=e.toString().match(a.precisionRx),i=Math.max((r[1]?r[1].length:0)-(r[2]?parseInt(r[2],10):0),0);return i<=n?e:t.error(`number.precision`,{limit:n,value:e})},convert:!0},sign:{method(e){return n([`negative`,`positive`].includes(e),`Invalid sign`,e),this.$_addRule({name:`sign`,args:{sign:e}})},validate(e,t,{sign:n}){return n===`negative`&&e<0||n===`positive`&&e>0?e:t.error(`number.${n}`)}},unsafe:{method(e=!0){return n(typeof e==`boolean`,`enabled must be a boolean`),this.$_setFlag(`unsafe`,e)}}},cast:{string:{from:e=>typeof e==`number`,to(e,t){return e.toString()}}},messages:{"number.base":`{{#label}} must be a number`,"number.greater":`{{#label}} must be greater than {{#limit}}`,"number.infinity":`{{#label}} cannot be infinity`,"number.integer":`{{#label}} must be an integer`,"number.less":`{{#label}} must be less than {{#limit}}`,"number.max":`{{#label}} must be less than or equal to {{#limit}}`,"number.min":`{{#label}} must be greater than or equal to {{#limit}}`,"number.multiple":`{{#label}} must be a multiple of {{#multiple}}`,"number.negative":`{{#label}} must be a negative number`,"number.port":`{{#label}} must be a valid port`,"number.positive":`{{#label}} must be a positive number`,"number.precision":`{{#label}} must have no more than {{#limit}} decimal places`,"number.unsafe":`{{#label}} must be a safe number`}}),a.extractSignificantDigits=function(e){return e.replace(a.exponentialPartRegex,``).replace(a.dotRegex,``).replace(a.trailingZerosRegex,``).replace(a.leadingSignAndZerosRegex,``)},a.normalizeDecimal=function(e){return e=e.replace(/^\+/,``).replace(/\.0*$/,``).replace(/^(-?)\.([^\.]*)$/,`$10.$2`).replace(/^(-?)0+([0-9])/,`$1$2`),e.includes(`.`)&&e.endsWith(`0`)&&(e=e.replace(/0+$/,``)),e===`-0`?`0`:e}}),st=s((exports,t)=>{let n=rt();t.exports=n.extend({type:`object`,cast:{map:{from:e=>e&&typeof e==`object`,to(e,t){return new Map(Object.entries(e))}}}})}),ct={};c(ct,{URL:()=>mt,URLSearchParams:()=>pt});function lt(e,t,n){throw n=TypeError(e),n.code=t,n}function ut(e){lt(`Invalid URL: `+e,`ERR_INVALID_URL`)}function dt(e,t,n,r){n=`The "name" `,r=`argument`,e&&(n+=`and "value" `,r+=`s`),t<++e&<(n+r+` must be specified`,`ERR_MISSING_ARGS`)}function ft(e,t){var n,r=0,i={next:function(){return n=e[r++],{value:n,done:r>e.length}}};return t&&(i[Symbol.iterator]=function(){return i}),i}function pt(e,t){var n,r,i,a,o,s=this,c=[];try{a=!!Symbol.iterator}catch{a=!1}if(e){if(e.keys&&e.getAll)e.forEach(function(e,t){u(t,e)});else if(e.pop)for(r=0;r<e.length;r++)u.apply(0,e[r]);else if(typeof e==`object`)for(n in e)l(n,e[n]);else if(typeof e==`string`)for(e[0]==`?`&&(e=e.substring(1)),i=decodeURIComponent(e).split(`&`);n=i.shift();)r=n.indexOf(`=`),~r||(r=n.length),u(n.substring(0,r),n.substring(++r))}function l(e,t){for(dt(1,arguments.length),t=String(t),i=!1,r=c.length;r--;)o=c[r],o[0]==e&&(i?c.splice(r,1):(o[1]=t,i=!0));i||c.push([e,t]),f()}function u(e,t){dt(1,arguments.length),c.push([e,String(t)]),f()}function d(){for(o=``,r=0;r<c.length;r++)o&&(o+=`&`),o+=encodeURIComponent(c[r][0])+`=`+encodeURIComponent(c[r][1]);return o.replace(/%20/g,`+`)}function f(){t&&(t.search=c.length?`?`+d().replace(/=$/,``):``)}return s.append=u,s.delete=function(e){for(dt(0,arguments.length),r=c.length;r--;)c[r][0]==e&&c.splice(r,1);f()},s.entries=function(){return ft(c,a)},s.forEach=function(e){for(typeof e!=`function`&<(`Callback must be a function`,`ERR_INVALID_CALLBACK`),r=0;r<c.length;r++)e(c[r][1],c[r][0])},s.get=function(e){for(dt(0,arguments.length),r=0;r<c.length;r++)if(c[r][0]==e)return c[r][1];return null},s.getAll=function(e){for(dt(0,arguments.length),o=[],r=0;r<c.length;r++)c[r][0]==e&&o.push(c[r][1]);return o},s.has=function(e){for(dt(0,arguments.length),r=0;r<c.length;r++)if(c[r][0]==e)return!0;return!1},s.keys=function(){for(o=[],r=0;r<c.length;r++)o.push(c[r][0]);return ft(o,a)},s.set=l,s.sort=function(){for(i=[],o=[],r=0;r<c.length;i.push(c[r++][0]));for(i.sort();n=i.shift();)for(r=0;r<c.length;r++)if(c[r][0]==n){o.push(c.splice(r,1).shift());break}c=o,f()},s.toString=d,s.values=function(){for(o=[],r=0;r<c.length;r++)o.push(c[r][1]);return ft(o,a)},a&&(s[Symbol.iterator]=s.entries),s}function mt(e,t){var n=document.createElement(`a`),r=document.createElement(`a`),i=document.createElement(`input`),a,o,s=this,c=/(blob|ftp|wss?|https?):/;if(i.type=`url`,t=String(t||``).trim(),(i.value=t)&&!i.checkValidity())return ut(t);if(e=String(e).trim(),i.value=e||0,i.checkValidity())r.href=e;else if(t)r.href=t,e&&(o=e.match(/^\/+/),o&&o[0].length==2?r.href=r.protocol+e:/[?#]/.test(e[0])?r.href+=e:e[0]==`/`||r.pathname==`/`?r.href=r.origin+`/`+e.replace(/^\/+/,``):(a=r.pathname.split(`/`),t=e.replace(/^(\.\/)?/,``).split(`../`),r.href=r.origin+a.slice(0,Math.max(1,a.length-t.length)).concat(t.pop()).join(`/`)));else return ut(e);function l(e){return n.href=r.href,n.protocol=`http:`,e==`protocol`||e==`href`||c.test(r.protocol)?r[e]:e==`origin`?c.test(r.protocol)?r[e]:`null`:n[e]}function u(e,t,n,i){return i={enumerable:!0},t||(i.set=function(t){t!=null&&(r[e]=String(t),(e==`href`||e==`search`)&&(o=new pt(r.search,r)))}),i.get=n||function(){return l(e)},i}return o=new pt(r.search,r),s.toString=s.toJSON=r.toString.bind(r),Object.defineProperties(s,{href:u(`href`),protocol:u(`protocol`),username:u(`username`),password:u(`password`),hostname:u(`hostname`),host:u(`host`),port:u(`port`),search:u(`search`),hash:u(`hash`),pathname:u(`pathname`),origin:u(`origin`,1),searchParams:u(`searchParams`,1,function(){return o})})}var ht=o(()=>{}),gt=s(exports=>{exports.codes={EMPTY_STRING:`Address must be a non-empty string`,FORBIDDEN_UNICODE:`Address contains forbidden Unicode characters`,MULTIPLE_AT_CHAR:`Address cannot contain more than one @ character`,MISSING_AT_CHAR:`Address must contain one @ character`,EMPTY_LOCAL:`Address local part cannot be empty`,ADDRESS_TOO_LONG:`Address too long`,LOCAL_TOO_LONG:`Address local part too long`,EMPTY_LOCAL_SEGMENT:`Address local part contains empty dot-separated segment`,INVALID_LOCAL_CHARS:`Address local part contains invalid character`,DOMAIN_NON_EMPTY_STRING:`Domain must be a non-empty string`,DOMAIN_TOO_LONG:`Domain too long`,DOMAIN_INVALID_UNICODE_CHARS:`Domain contains forbidden Unicode characters`,DOMAIN_INVALID_CHARS:`Domain contains invalid character`,DOMAIN_INVALID_TLDS_CHARS:`Domain contains invalid tld character`,DOMAIN_SEGMENTS_COUNT:`Domain lacks the minimum required number of segments`,DOMAIN_SEGMENTS_COUNT_MAX:`Domain contains too many segments`,DOMAIN_FORBIDDEN_TLDS:`Domain uses forbidden TLD`,DOMAIN_EMPTY_SEGMENT:`Domain contains empty dot-separated segment`,DOMAIN_LONG_SEGMENT:`Domain contains dot-separated segment that is too long`},exports.code=function(t){return{code:t,error:exports.codes[t]}}}),_t=s(exports=>{let t=(ht(),d(ct)),n=gt(),r={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:t.URL||URL};exports.analyze=function(e,t={}){if(!e)return n.code(`DOMAIN_NON_EMPTY_STRING`);if(typeof e!=`string`)throw Error(`Invalid input: domain must be a string`);if(e.length>256)return n.code(`DOMAIN_TOO_LONG`);let i=!r.nonAsciiRx.test(e);if(!i){if(t.allowUnicode===!1)return n.code(`DOMAIN_INVALID_UNICODE_CHARS`);e=e.normalize(`NFC`)}if(r.domainControlRx.test(e))return n.code(`DOMAIN_INVALID_CHARS`);e=r.punycode(e),t.allowFullyQualified&&e[e.length-1]===`.`&&(e=e.slice(0,-1));let a=t.minDomainSegments||r.minDomainSegments,o=e.split(`.`);if(o.length<a)return n.code(`DOMAIN_SEGMENTS_COUNT`);if(t.maxDomainSegments&&o.length>t.maxDomainSegments)return n.code(`DOMAIN_SEGMENTS_COUNT_MAX`);let s=t.tlds;if(s){let e=o[o.length-1].toLowerCase();if(s.deny&&s.deny.has(e)||s.allow&&!s.allow.has(e))return n.code(`DOMAIN_FORBIDDEN_TLDS`)}for(let e=0;e<o.length;++e){let t=o[e];if(!t.length)return n.code(`DOMAIN_EMPTY_SEGMENT`);if(t.length>63)return n.code(`DOMAIN_LONG_SEGMENT`);if(e<o.length-1){if(!r.domainSegmentRx.test(t))return n.code(`DOMAIN_INVALID_CHARS`)}else if(!r.tldSegmentRx.test(t))return n.code(`DOMAIN_INVALID_TLDS_CHARS`)}return null},exports.isValid=function(t,n){return!exports.analyze(t,n)},r.punycode=function(e){e.includes(`%`)&&(e=e.replace(/%/g,`%25`));try{return new r.URL(`http://${e}`).host}catch{return e}}});function vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function yt(){throw Error(`setTimeout has not been defined`)}function bt(){throw Error(`clearTimeout has not been defined`)}function xt(e){if(Ot===setTimeout)return setTimeout(e,0);if((Ot===yt||!Ot)&&setTimeout)return Ot=setTimeout,setTimeout(e,0);try{return Ot(e,0)}catch{try{return Ot.call(null,e,0)}catch{return Ot.call(this,e,0)}}}function St(e){if(kt===clearTimeout)return clearTimeout(e);if((kt===bt||!kt)&&clearTimeout)return kt=clearTimeout,clearTimeout(e);try{return kt(e)}catch{try{return kt.call(null,e)}catch{return kt.call(this,e)}}}function Ct(){!jt||!Mt||(jt=!1,Mt.length?At=Mt.concat(At):Nt=-1,At.length&&wt())}function wt(){if(!jt){var e=xt(Ct);jt=!0;for(var t=At.length;t;){for(Mt=At,At=[];++Nt<t;)Mt&&Mt[Nt].run();Nt=-1,t=At.length}Mt=null,jt=!1,St(e)}}function Tt(e,t){this.fun=e,this.array=t}function Et(){}var Dt,U,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It=o(()=>{Dt={exports:{}},U=Dt.exports={},function(){try{Ot=typeof setTimeout==`function`?setTimeout:yt}catch{Ot=yt}try{kt=typeof clearTimeout==`function`?clearTimeout:bt}catch{kt=bt}}(),At=[],jt=!1,Nt=-1,U.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];At.push(new Tt(e,t)),At.length===1&&!jt&&xt(wt)},Tt.prototype.run=function(){this.fun.apply(null,this.array)},U.title=`browser`,U.browser=!0,U.env={},U.argv=[],U.version=``,U.versions={},U.on=Et,U.addListener=Et,U.once=Et,U.off=Et,U.removeListener=Et,U.removeAllListeners=Et,U.emit=Et,U.prependListener=Et,U.prependOnceListener=Et,U.listeners=function(e){return[]},U.binding=function(e){throw Error(`process.binding is not supported`)},U.cwd=function(){return`/`},U.chdir=function(e){throw Error(`process.chdir is not supported`)},U.umask=function(){return 0},Pt=Dt.exports,Ft=vt(Pt)}),Lt=s((exports,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}),Rt=s((exports,t)=>{var n=Lt();t.exports=function(){return n()&&!!Symbol.toStringTag}}),zt=s((exports,t)=>{t.exports=Object}),Bt=s((exports,t)=>{t.exports=Error}),Vt=s((exports,t)=>{t.exports=EvalError}),Ht=s((exports,t)=>{t.exports=RangeError}),Ut=s((exports,t)=>{t.exports=ReferenceError}),Wt=s((exports,t)=>{t.exports=SyntaxError}),Gt=s((exports,t)=>{t.exports=TypeError}),Kt=s((exports,t)=>{t.exports=URIError}),qt=s((exports,t)=>{t.exports=Math.abs}),Jt=s((exports,t)=>{t.exports=Math.floor}),Yt=s((exports,t)=>{t.exports=Math.max}),Xt=s((exports,t)=>{t.exports=Math.min}),Zt=s((exports,t)=>{t.exports=Math.pow}),Qt=s((exports,t)=>{t.exports=Math.round}),$t=s((exports,t)=>{t.exports=Number.isNaN||function(e){return e!==e}}),en=s((exports,t)=>{var n=$t();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}),tn=s((exports,t)=>{t.exports=Object.getOwnPropertyDescriptor}),nn=s((exports,t)=>{var n=tn();if(n)try{n([],`length`)}catch{n=null}t.exports=n}),rn=s((exports,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}),an=s((exports,t)=>{var n=typeof Symbol<`u`&&Symbol,r=Lt();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}),on=s((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),sn=s((exports,t)=>{var n=zt();t.exports=n.getPrototypeOf||null}),cn=s((exports,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}),ln=s((exports,t)=>{var n=cn();t.exports=Function.prototype.bind||n}),un=s((exports,t)=>{t.exports=Function.prototype.call}),dn=s((exports,t)=>{t.exports=Function.prototype.apply}),fn=s((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),pn=s((exports,t)=>{var n=ln(),r=dn(),i=un(),a=fn();t.exports=a||n.call(i,r)}),mn=s((exports,t)=>{var n=ln(),r=Gt(),i=un(),a=pn();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}),hn=s((exports,t)=>{var n=mn(),r=nn(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1}),gn=s((exports,t)=>{var n=on(),r=sn(),i=hn();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}),_n=s((exports,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=ln();t.exports=i.call(n,r)}),vn=s((exports,t)=>{var n,r=zt(),i=Bt(),a=Vt(),o=Ht(),s=Ut(),c=Wt(),l=Gt(),u=Kt(),d=qt(),f=Jt(),p=Yt(),m=Xt(),h=Zt(),g=Qt(),_=en(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=nn(),x=rn(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=an()(),T=gn(),E=sn(),D=on(),O=dn(),k=un(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){var N=T(T(e));M[`%Error.prototype%`]=N}var P=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},F={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},ee=ln(),I=_n(),te=ee.call(k,Array.prototype.concat),ne=ee.call(O,Array.prototype.splice),re=ee.call(k,String.prototype.replace),L=ee.call(k,String.prototype.slice),R=ee.call(k,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ie=/\\(\\)?/g,ae=function(e){var t=L(e,0,1),n=L(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return re(e,z,function(e,t,n,i){r[r.length]=n?re(i,ie,`$1`):t||e}),r},B=function(e,t){var n=e,r;if(I(F,n)&&(r=F[n],n=`%`+r[0]+`%`),I(M,n)){var i=M[n];if(i===A&&(i=P(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(R(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ae(e),r=n.length>0?n[0]:``,i=B(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],ne(n,te([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=L(p,0,1),h=L(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,I(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=I(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}}),yn=s((exports,t)=>{var n=vn(),r=mn(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}),bn=s((exports,t)=>{var n=Rt()(),r=yn(),i=r(`Object.prototype.toString`),a=function(e){return n&&e&&typeof e==`object`&&Symbol.toStringTag in e?!1:i(e)===`[object Arguments]`},o=function(e){return a(e)?!0:typeof e==`object`&&!!e&&`length`in e&&typeof e.length==`number`&&e.length>=0&&i(e)!==`[object Array]`&&`callee`in e&&i(e.callee)===`[object Function]`},s=function(){return a(arguments)}();a.isLegacyArguments=o,t.exports=s?a:o}),xn=s((exports,t)=>{var n=yn(),r=Rt()(),i=_n(),a=nn(),o;if(r){var s=n(`RegExp.prototype.exec`),c={},l=function(){throw c},u={toString:l,valueOf:l};typeof Symbol.toPrimitive==`symbol`&&(u[Symbol.toPrimitive]=l),o=function(e){if(!e||typeof e!=`object`)return!1;var t=a(e,`lastIndex`),n=t&&i(t,`value`);if(!n)return!1;try{s(e,u)}catch(e){return e===c}}}else{var d=n(`Object.prototype.toString`),f=`[object RegExp]`;o=function(e){return!e||typeof e!=`object`&&typeof e!=`function`?!1:d(e)===f}}t.exports=o}),Sn=s((exports,t)=>{var n=yn(),r=xn(),i=n(`RegExp.prototype.exec`),a=Gt();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}}),Cn=s((exports,t)=>{var n=yn(),r=Sn(),i=r(/^\s*(?:function)?\*/),a=Rt()(),o=gn(),s=n(`Object.prototype.toString`),c=n(`Function.prototype.toString`),l=function(){if(!a)return!1;try{return Function(`return function*() {}`)()}catch{}},u;t.exports=function(e){if(typeof e!=`function`)return!1;if(i(c(e)))return!0;if(!a){var t=s(e);return t===`[object GeneratorFunction]`}if(!o)return!1;if(u===void 0){var n=l();u=n?o(n):!1}return o(e)===u}}),wn=s((exports,t)=>{var n=Function.prototype.toString,r=typeof Reflect==`object`&&Reflect!==null&&Reflect.apply,i,a;if(typeof r==`function`&&typeof Object.defineProperty==`function`)try{i=Object.defineProperty({},`length`,{get:function(){throw a}}),a={},r(function(){throw 42},null,i)}catch(e){e!==a&&(r=null)}else r=null;var o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch{return!1}},c=function(e){try{return s(e)?!1:(n.call(e),!0)}catch{return!1}},l=Object.prototype.toString,u=`[object Object]`,d=`[object Function]`,f=`[object GeneratorFunction]`,p=`[object HTMLAllCollection]`,m=`[object HTML document.all class]`,h=`[object HTMLCollection]`,g=typeof Symbol==`function`&&!!Symbol.toStringTag,_=!(0 in[,]),v=function(){return!1};if(typeof document==`object`){var y=document.all;l.call(y)===l.call(document.all)&&(v=function(e){if((_||!e)&&(e===void 0||typeof e==`object`))try{var t=l.call(e);return(t===p||t===m||t===h||t===u)&&e(``)==null}catch{}return!1})}t.exports=r?function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;try{r(e,null,i)}catch(e){if(e!==a)return!1}return!s(e)&&c(e)}:function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;if(g)return c(e);if(s(e))return!1;var t=l.call(e);return t!==d&&t!==f&&!/^\[object HTML/.test(t)?!1:c(e)}}),Tn=s((exports,t)=>{var n=wn(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,a=e.length;r<a;r++)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))},o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)n==null?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},s=function(e,t,n){for(var r in e)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))};function c(e){return r.call(e)===`[object Array]`}t.exports=function(e,t,r){if(!n(t))throw TypeError(`iterator must be a function`);var i;arguments.length>=3&&(i=r),c(e)?a(e,t,i):typeof e==`string`?o(e,t,i):s(e,t,i)}}),En=s((exports,t)=>{t.exports=[`Float16Array`,`Float32Array`,`Float64Array`,`Int8Array`,`Int16Array`,`Int32Array`,`Uint8Array`,`Uint8ClampedArray`,`Uint16Array`,`Uint32Array`,`BigInt64Array`,`BigUint64Array`]}),Dn=s((exports,t)=>{var n=En(),r=typeof globalThis>`u`?global:globalThis;t.exports=function(){for(var e=[],t=0;t<n.length;t++)typeof r[n[t]]==`function`&&(e[e.length]=n[t]);return e}}),On=s((exports,t)=>{var n=rn(),r=Wt(),i=Gt(),a=nn();t.exports=function(e,t,o){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new i("`obj` must be an object or a function`");if(typeof t!=`string`&&typeof t!=`symbol`)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=`boolean`&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=`boolean`&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=`boolean`&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=`boolean`)throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,d=!!a&&a(e,t);if(n)n(e,t,{configurable:l===null&&d?d.configurable:!l,enumerable:s===null&&d?d.enumerable:!s,value:o,writable:c===null&&d?d.writable:!c});else if(u||!s&&!c&&!l)e[t]=o;else throw new r(`This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.`)}}),kn=s((exports,t)=>{var n=rn(),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],`length`,{value:1}).length!==1}catch{return!0}},t.exports=r}),An=s((exports,t)=>{var n=vn(),r=On(),i=kn()(),a=nn(),o=Gt(),s=n(`%Math.floor%`);t.exports=function(e,t){if(typeof e!=`function`)throw new o("`fn` is not a function");if(typeof t!=`number`||t<0||t>4294967295||s(t)!==t)throw new o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],c=!0,l=!0;if(`length`in e&&a){var u=a(e,`length`);u&&!u.configurable&&(c=!1),u&&!u.writable&&(l=!1)}return(c||l||!n)&&(i?r(e,`length`,t,!0,!0):r(e,`length`,t)),e}}),jn=s((exports,t)=>{var n=ln(),r=dn(),i=pn();t.exports=function(){return i(n,r,arguments)}}),Mn=s((exports,t)=>{var n=An(),r=rn(),i=mn(),a=jn();t.exports=function(e){var t=i(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},r?r(t.exports,`apply`,{value:a}):t.exports.apply=a}),Nn=s((exports,t)=>{var n=Tn(),r=Dn(),i=Mn(),a=yn(),o=nn(),s=gn(),c=a(`Object.prototype.toString`),l=Rt()(),u=typeof globalThis>`u`?global:globalThis,d=r(),f=a(`String.prototype.slice`),p=a(`Array.prototype.indexOf`,!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};l&&o&&s?n(d,function(e){var t=new u[e];if(Symbol.toStringTag in t&&s){var n=s(t),r=o(n,Symbol.toStringTag);if(!r&&n){var a=s(n);r=o(a,Symbol.toStringTag)}m[`$`+e]=i(r.get)}}):n(d,function(e){var t=new u[e],n=t.slice||t.set;n&&(m[`$`+e]=i(n))});var h=function(e){var t=!1;return n(m,function(n,r){if(!t)try{`$`+n(e)===r&&(t=f(r,1))}catch{}}),t},g=function(e){var t=!1;return n(m,function(n,r){if(!t)try{n(e),t=f(r,1)}catch{}}),t};t.exports=function(e){if(!e||typeof e!=`object`)return!1;if(!l){var t=f(c(e),8,-1);return p(d,t)>-1?t:t===`Object`?g(e):!1}return o?h(e):null}}),Pn=s((exports,t)=>{var n=Nn();t.exports=function(e){return!!n(e)}}),Fn=s(exports=>{var t=bn(),n=Cn(),r=Nn(),i=Pn();function a(e){return e.call.bind(e)}var o=typeof BigInt<`u`,s=typeof Symbol<`u`,c=a(Object.prototype.toString),l=a(Number.prototype.valueOf),u=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(o)var f=a(BigInt.prototype.valueOf);if(s)var p=a(Symbol.prototype.valueOf);function m(e,t){if(typeof e!=`object`)return!1;try{return t(e),!0}catch{return!1}}exports.isArgumentsObject=t,exports.isGeneratorFunction=n,exports.isTypedArray=i;function h(e){return typeof Promise<`u`&&e instanceof Promise||typeof e==`object`&&!!e&&typeof e.then==`function`&&typeof e.catch==`function`}exports.isPromise=h;function g(e){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):i(e)||ne(e)}exports.isArrayBufferView=g;function _(e){return r(e)===`Uint8Array`}exports.isUint8Array=_;function v(e){return r(e)===`Uint8ClampedArray`}exports.isUint8ClampedArray=v;function y(e){return r(e)===`Uint16Array`}exports.isUint16Array=y;function b(e){return r(e)===`Uint32Array`}exports.isUint32Array=b;function x(e){return r(e)===`Int8Array`}exports.isInt8Array=x;function S(e){return r(e)===`Int16Array`}exports.isInt16Array=S;function C(e){return r(e)===`Int32Array`}exports.isInt32Array=C;function w(e){return r(e)===`Float32Array`}exports.isFloat32Array=w;function T(e){return r(e)===`Float64Array`}exports.isFloat64Array=T;function E(e){return r(e)===`BigInt64Array`}exports.isBigInt64Array=E;function D(e){return r(e)===`BigUint64Array`}exports.isBigUint64Array=D;function O(e){return c(e)===`[object Map]`}O.working=typeof Map<`u`&&O(new Map);function k(e){return typeof Map>`u`?!1:O.working?O(e):e instanceof Map}exports.isMap=k;function A(e){return c(e)===`[object Set]`}A.working=typeof Set<`u`&&A(new Set);function j(e){return typeof Set>`u`?!1:A.working?A(e):e instanceof Set}exports.isSet=j;function M(e){return c(e)===`[object WeakMap]`}M.working=typeof WeakMap<`u`&&M(new WeakMap);function N(e){return typeof WeakMap>`u`?!1:M.working?M(e):e instanceof WeakMap}exports.isWeakMap=N;function P(e){return c(e)===`[object WeakSet]`}P.working=typeof WeakSet<`u`&&P(new WeakSet);function F(e){return P(e)}exports.isWeakSet=F;function ee(e){return c(e)===`[object ArrayBuffer]`}ee.working=typeof ArrayBuffer<`u`&&ee(new ArrayBuffer);function I(e){return typeof ArrayBuffer>`u`?!1:ee.working?ee(e):e instanceof ArrayBuffer}exports.isArrayBuffer=I;function te(e){return c(e)===`[object DataView]`}te.working=typeof ArrayBuffer<`u`&&typeof DataView<`u`&&te(new DataView(new ArrayBuffer(1),0,1));function ne(e){return typeof DataView>`u`?!1:te.working?te(e):e instanceof DataView}exports.isDataView=ne;var re=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:void 0;function L(e){return c(e)===`[object SharedArrayBuffer]`}function R(e){return re===void 0?!1:(L.working===void 0&&(L.working=L(new re)),L.working?L(e):e instanceof re)}exports.isSharedArrayBuffer=R;function z(e){return c(e)===`[object AsyncFunction]`}exports.isAsyncFunction=z;function ie(e){return c(e)===`[object Map Iterator]`}exports.isMapIterator=ie;function ae(e){return c(e)===`[object Set Iterator]`}exports.isSetIterator=ae;function B(e){return c(e)===`[object Generator]`}exports.isGeneratorObject=B;function oe(e){return c(e)===`[object WebAssembly.Module]`}exports.isWebAssemblyCompiledModule=oe;function se(e){return m(e,l)}exports.isNumberObject=se;function V(e){return m(e,u)}exports.isStringObject=V;function ce(e){return m(e,d)}exports.isBooleanObject=ce;function le(e){return o&&m(e,f)}exports.isBigIntObject=le;function ue(e){return s&&m(e,p)}exports.isSymbolObject=ue;function de(e){return se(e)||V(e)||ce(e)||le(e)||ue(e)}exports.isBoxedPrimitive=de;function fe(e){return typeof Uint8Array<`u`&&(I(e)||R(e))}exports.isAnyArrayBuffer=fe,[`isProxy`,`isExternal`,`isModuleNamespaceObject`].forEach(function(t){Object.defineProperty(exports,t,{enumerable:!1,value:function(){throw Error(t+` is not supported in userland`)}})})}),In=s((exports,t)=>{B(),t.exports=function(e){return e instanceof O}}),Ln=s((exports,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}}),Rn=s((exports,t)=>{try{var n=zn();if(typeof n.inherits!=`function`)throw``;t.exports=n.inherits}catch{t.exports=Ln()}}),zn=s(exports=>{It();var t=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},n=/%[sdj%]/g;exports.format=function(e){if(!x(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(` `)}for(var r=1,i=arguments,a=i.length,s=String(e).replace(n,function(e){if(e===`%%`)return`%`;if(r>=a)return e;switch(e){case`%s`:return String(i[r++]);case`%d`:return Number(i[r++]);case`%j`:try{return JSON.stringify(i[r++])}catch{return`[Circular]`}default:return e}}),c=i[r];r<a;c=i[++r])v(c)||!T(c)?s+=` `+c:s+=` `+o(c);return s},exports.deprecate=function(t,n){if(Ft!==void 0&&Ft.noDeprecation===!0)return t;if(Ft===void 0)return function(){return exports.deprecate(t,n).apply(this,arguments)};var r=!1;function i(){if(!r){if(Ft.throwDeprecation)throw Error(n);Ft.traceDeprecation?console.trace(n):console.error(n),r=!0}return t.apply(this,arguments)}return i};var r={},i=/^$/;if(Ft.env.NODE_DEBUG){var a=Ft.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,`\\$&`).replace(/\*/g,`.*`).replace(/,/g,`$|^`).toUpperCase(),i=RegExp(`^`+a+`$`,`i`)}exports.debuglog=function(t){if(t=t.toUpperCase(),!r[t])if(i.test(t)){var n=Ft.pid;r[t]=function(){var r=exports.format.apply(exports,arguments);console.error(`%s %d: %s`,t,n,r)}}else r[t]=function(){};return r[t]};function o(t,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),_(n)?r.showHidden=n:n&&exports._extend(r,n),C(r.showHidden)&&(r.showHidden=!1),C(r.depth)&&(r.depth=2),C(r.colors)&&(r.colors=!1),C(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),u(r,t,r.depth)}exports.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:`cyan`,number:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,date:`magenta`,regexp:`red`};function s(e,t){var n=o.styles[t];return n?`\x1B[`+o.colors[n][0]+`m`+e+`\x1B[`+o.colors[n][1]+`m`:e}function c(e,t){return e}function l(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function u(t,n,r){if(t.customInspect&&n&&O(n.inspect)&&n.inspect!==exports.inspect&&!(n.constructor&&n.constructor.prototype===n)){var i=n.inspect(r,t);return x(i)||(i=u(t,i,r)),i}var a=d(t,n);if(a)return a;var o=Object.keys(n),s=l(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(n)),D(n)&&(o.indexOf(`message`)>=0||o.indexOf(`description`)>=0))return f(n);if(o.length===0){if(O(n)){var c=n.name?`: `+n.name:``;return t.stylize(`[Function`+c+`]`,`special`)}if(w(n))return t.stylize(RegExp.prototype.toString.call(n),`regexp`);if(E(n))return t.stylize(Date.prototype.toString.call(n),`date`);if(D(n))return f(n)}var _=``,v=!1,y=[`{`,`}`];if(g(n)&&(v=!0,y=[`[`,`]`]),O(n)){var b=n.name?`: `+n.name:``;_=` [Function`+b+`]`}if(w(n)&&(_=` `+RegExp.prototype.toString.call(n)),E(n)&&(_=` `+Date.prototype.toUTCString.call(n)),D(n)&&(_=` `+f(n)),o.length===0&&(!v||n.length==0))return y[0]+_+y[1];if(r<0)return w(n)?t.stylize(RegExp.prototype.toString.call(n),`regexp`):t.stylize(`[Object]`,`special`);t.seen.push(n);var S;return S=v?p(t,n,r,s,o):o.map(function(e){return m(t,n,r,s,e,v)}),t.seen.pop(),h(S,_,y)}function d(e,t){if(C(t))return e.stylize(`undefined`,`undefined`);if(x(t)){var n=`'`+JSON.stringify(t).replace(/^"|"$/g,``).replace(/'/g,`\\'`).replace(/\\"/g,`"`)+`'`;return e.stylize(n,`string`)}if(b(t))return e.stylize(``+t,`number`);if(_(t))return e.stylize(``+t,`boolean`);if(v(t))return e.stylize(`null`,`null`)}function f(e){return`[`+Error.prototype.toString.call(e)+`]`}function p(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)P(t,String(o))?a.push(m(e,t,n,r,String(o),!0)):a.push(``);return i.forEach(function(i){i.match(/^\d+$/)||a.push(m(e,t,n,r,i,!0))}),a}function m(e,t,n,r,i,a){var o,s,c;if(c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},c.get?s=c.set?e.stylize(`[Getter/Setter]`,`special`):e.stylize(`[Getter]`,`special`):c.set&&(s=e.stylize(`[Setter]`,`special`)),P(r,i)||(o=`[`+i+`]`),s||(e.seen.indexOf(c.value)<0?(s=v(n)?u(e,c.value,null):u(e,c.value,n-1),s.indexOf(`
|
|
2
|
+
`)>-1&&(s=a?s.split(`
|
|
3
|
+
`).map(function(e){return` `+e}).join(`
|
|
4
|
+
`).slice(2):`
|
|
5
|
+
`+s.split(`
|
|
6
|
+
`).map(function(e){return` `+e}).join(`
|
|
7
|
+
`))):s=e.stylize(`[Circular]`,`special`)),C(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(``+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,`name`)):(o=o.replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`),o=e.stylize(o,`string`))}return o+`: `+s}function h(e,t,n){var r=0,i=e.reduce(function(e,t){return r++,t.indexOf(`
|
|
8
|
+
`)>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,``).length+1},0);return i>60?n[0]+(t===``?``:t+`
|
|
9
|
+
`)+` `+e.join(`,
|
|
10
|
+
`)+` `+n[1]:n[0]+t+` `+e.join(`, `)+` `+n[1]}exports.types=Fn();function g(e){return Array.isArray(e)}exports.isArray=g;function _(e){return typeof e==`boolean`}exports.isBoolean=_;function v(e){return e===null}exports.isNull=v;function y(e){return e==null}exports.isNullOrUndefined=y;function b(e){return typeof e==`number`}exports.isNumber=b;function x(e){return typeof e==`string`}exports.isString=x;function S(e){return typeof e==`symbol`}exports.isSymbol=S;function C(e){return e===void 0}exports.isUndefined=C;function w(e){return T(e)&&A(e)===`[object RegExp]`}exports.isRegExp=w,exports.types.isRegExp=w;function T(e){return typeof e==`object`&&!!e}exports.isObject=T;function E(e){return T(e)&&A(e)===`[object Date]`}exports.isDate=E,exports.types.isDate=E;function D(e){return T(e)&&(A(e)===`[object Error]`||e instanceof Error)}exports.isError=D,exports.types.isNativeError=D;function O(e){return typeof e==`function`}exports.isFunction=O;function k(e){return e===null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`||typeof e==`symbol`||e===void 0}exports.isPrimitive=k,exports.isBuffer=In();function A(e){return Object.prototype.toString.call(e)}function j(e){return e<10?`0`+e.toString(10):e.toString(10)}var M=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function N(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(`:`);return[e.getDate(),M[e.getMonth()],t].join(` `)}exports.log=function(){console.log(`%s - %s`,N(),exports.format.apply(exports,arguments))},exports.inherits=Rn(),exports._extend=function(e,t){if(!t||!T(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var F=typeof Symbol<`u`?Symbol(`util.promisify.custom`):void 0;exports.promisify=function(e){if(typeof e!=`function`)throw TypeError(`The "original" argument must be of type Function`);if(F&&e[F]){var n=e[F];if(typeof n!=`function`)throw TypeError(`The "util.promisify.custom" argument must be of type Function`);return Object.defineProperty(n,F,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push(function(e,r){e?n(e):t(r)});try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),F&&Object.defineProperty(n,F,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,t(e))},exports.promisify.custom=F;function ee(e,t){if(!e){var n=Error(`Promise was rejected with a falsy value`);n.reason=e,e=n}return t(e)}function I(e){if(typeof e!=`function`)throw TypeError(`The "original" argument must be of type Function`);function n(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if(typeof r!=`function`)throw TypeError(`The last argument must be of type Function`);var i=this,a=function(){return r.apply(i,arguments)};e.apply(this,t).then(function(e){Ft.nextTick(a.bind(null,null,e))},function(e){Ft.nextTick(ee.bind(null,e,a))})}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,t(e)),n}exports.callbackify=I}),Bn=s(exports=>{let t=zn(),n=_t(),r=gt(),i={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(t.TextEncoder||TextEncoder)};exports.analyze=function(e,t){return i.email(e,t)},exports.isValid=function(e,t){return!i.email(e,t)},i.email=function(e,t={}){if(typeof e!=`string`)throw Error(`Invalid input: email must be a string`);if(!e)return r.code(`EMPTY_STRING`);let a=!i.nonAsciiRx.test(e);if(!a){if(t.allowUnicode===!1)return r.code(`FORBIDDEN_UNICODE`);e=e.normalize(`NFC`)}let o=e.split(`@`);if(o.length!==2)return o.length>2?r.code(`MULTIPLE_AT_CHAR`):r.code(`MISSING_AT_CHAR`);let[s,c]=o;if(!s)return r.code(`EMPTY_LOCAL`);if(!t.ignoreLength){if(e.length>254)return r.code(`ADDRESS_TOO_LONG`);if(i.encoder.encode(s).length>64)return r.code(`LOCAL_TOO_LONG`)}return i.local(s,a)||n.analyze(c,t)},i.local=function(e,t){let n=e.split(`.`);for(let e of n){if(!e.length)return r.code(`EMPTY_LOCAL_SEGMENT`);if(t){if(!i.atextRx.test(e))return r.code(`INVALID_LOCAL_CHARS`);continue}for(let t of e){if(i.atextRx.test(t))continue;let e=i.binary(t);if(!i.atomRx.test(e))return r.code(`INVALID_LOCAL_CHARS`)}}},i.binary=function(e){return Array.from(i.encoder.encode(e)).map(e=>String.fromCharCode(e)).join(``)},i.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,i.atomRx=new RegExp([`(?:[\\xc2-\\xdf][\\x80-\\xbf])`,`(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})`,`(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})`].join(`|`))}),Vn=s((exports,t)=>{t.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,`\\$&`)}}),Hn=s(exports=>{let t=V(),n=Vn(),r={};r.generate=function(){let e={},t=`\\dA-Fa-f`,n=`[`+t+`]`,r=`\\w-\\.~`,i=`!\\$&'\\(\\)\\*\\+,;=`,a=`%`+t,o=r+a+i+`:@`,s=`[`+o+`]`,c=`(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;e.ipv4address=`(?:`+c+`\\.){3}(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;let l=n+`{1,4}`,u=`(?:`+l+`:[\\dA-Fa-f]{1,4}|`+e.ipv4address+`)`,d=`(?:`+l+`:){6}`+u,f=`::(?:`+l+`:){5}`+u,p=`(?:`+l+`)?::(?:[\\dA-Fa-f]{1,4}:){4}`+u,m=`(?:(?:`+l+`:){0,1}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){3}`+u,h=`(?:(?:`+l+`:){0,2}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){2}`+u,g=`(?:(?:`+l+`:){0,3}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}:`+u,_=`(?:(?:`+l+`:){0,4}[\\dA-Fa-f]{1,4})?::`+u,v=`(?:(?:`+l+`:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}`,y=`(?:(?:`+l+`:){0,6}[\\dA-Fa-f]{1,4})?::`;e.ipv4Cidr=`(?:\\d|[1-2]\\d|3[0-2])`,e.ipv6Cidr=`(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])`,e.ipv6address=`(?:`+d+`|`+f+`|`+p+`|`+m+`|`+h+`|`+g+`|`+_+`|(?:(?:[\\dA-Fa-f]{1,4}:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}|(?:(?:[\\dA-Fa-f]{1,4}:){0,6}[\\dA-Fa-f]{1,4})?::)`,e.ipvFuture=`v`+n+`+\\.[\\w-\\.~!\\$&'\\(\\)\\*\\+,;=:]+`,e.scheme=`[a-zA-Z][a-zA-Z\\d+-\\.]*`,e.schemeRegex=new RegExp(e.scheme);let b=`[`+r+a+i+`:]*`,x=`\\[(?:`+e.ipv6address+`|`+e.ipvFuture+`)\\]`,S=`[`+r+a+i+`]{1,255}`,C=`(?:`+x+`|`+e.ipv4address+`|[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=]{1,255})`,w=`\\d*`,T=`(?:`+b+`@)?`+C+`(?::\\d*)?`,E=`(?:`+b+`@)?(`+C+`)(?::\\d*)?`,D=s+`*`,O=s+`+`,k=`[`+r+a+i+`@]+`,A=``,j=`(?:\\/`+D+`)*`,M=`\\/(?:`+O+j+`)?`,N=O+j,P=k+j,F=`(?:\\/\\/\\/`+D+j+`)`;return e.hierPart=`(?:(?:\\/\\/`+T+j+`)|`+M+`|`+N+`|`+F+`)`,e.hierPartCapture=`(?:(?:\\/\\/`+E+j+`)|`+M+`|`+N+`)`,e.relativeRef=`(?:(?:\\/\\/`+T+j+`)|`+M+`|`+P+`|)`,e.relativeRefCapture=`(?:(?:\\/\\/`+E+j+`)|`+M+`|`+P+`|)`,e.query=`[`+o+`\\/\\?]*(?=#|$)`,e.queryWithSquareBrackets=`[`+o+`\\[\\]\\/\\?]*(?=#|$)`,e.fragment=`[`+o+`\\/\\?]*`,e},r.rfc3986=r.generate(),exports.ip={v4Cidr:r.rfc3986.ipv4Cidr,v6Cidr:r.rfc3986.ipv6Cidr,ipv4:r.rfc3986.ipv4address,ipv6:r.rfc3986.ipv6address,ipvfuture:r.rfc3986.ipvFuture},r.createRegex=function(e){let i=r.rfc3986,a=e.allowQuerySquareBrackets?i.queryWithSquareBrackets:i.query,o=`(?:\\?`+a+`)?(?:#`+i.fragment+`)?`,s=e.domain?i.relativeRefCapture:i.relativeRef;if(e.relativeOnly)return r.wrap(s+o);let c=``;if(e.scheme){t(e.scheme instanceof RegExp||typeof e.scheme==`string`||Array.isArray(e.scheme),`scheme must be a RegExp, String, or Array`);let r=[].concat(e.scheme);t(r.length>=1,`scheme must have at least 1 scheme specified`);let a=[];for(let e=0;e<r.length;++e){let o=r[e];t(o instanceof RegExp||typeof o==`string`,`scheme at position `+e+` must be a RegExp or String`),o instanceof RegExp?a.push(o.source.toString()):(t(i.schemeRegex.test(o),`scheme at position `+e+` must be a valid scheme`),a.push(n(o)))}c=a.join(`|`)}let l=c?`(?:`+c+`)`:i.scheme,u=`(?:`+l+`:`+(e.domain?i.hierPartCapture:i.hierPart)+`)`,d=e.allowRelative?`(?:`+u+`|`+s+`)`:u;return r.wrap(d+o,c)},r.wrap=function(e,t){return e=`(?=.)(?!https?\:/(?:$|[^/]))(?!https?\:///)(?!https?\:[^/])${e}`,{raw:e,regex:RegExp(`^${e}$`),scheme:t}},r.uriRegex=r.createRegex({}),exports.regex=function(e={}){return e.scheme||e.allowRelative||e.relativeOnly||e.allowQuerySquareBrackets||e.domain?r.createRegex(e):r.uriRegex}}),Un=s(exports=>{let t=V(),n=Hn();exports.regex=function(e={}){t(e.cidr===void 0||typeof e.cidr==`string`,`options.cidr must be a string`);let r=e.cidr?e.cidr.toLowerCase():`optional`;t([`required`,`optional`,`forbidden`].includes(r),`options.cidr must be one of required, optional, forbidden`),t(e.version===void 0||typeof e.version==`string`||Array.isArray(e.version),`options.version must be a string or an array of string`);let i=e.version||[`ipv4`,`ipv6`,`ipvfuture`];Array.isArray(i)||(i=[i]),t(i.length>=1,`options.version must have at least 1 version specified`);for(let e=0;e<i.length;++e)t(typeof i[e]==`string`,`options.version must only contain strings`),i[e]=i[e].toLowerCase(),t([`ipv4`,`ipv6`,`ipvfuture`].includes(i[e]),`options.version contains unknown version `+i[e]+` - must be one of ipv4, ipv6, ipvfuture`);i=Array.from(new Set(i));let a=i.map(e=>{if(r===`forbidden`)return n.ip[e];let t=`\\/${e===`ipv4`?n.ip.v4Cidr:n.ip.v6Cidr}`;return r===`required`?`${n.ip[e]}${t}`:`${n.ip[e]}(?:${t})?`}),o=`(?:${a.join(`|`)})`,s=RegExp(`^${o}$`);return{cidr:r,versions:i,regex:s,raw:o}}}),Wn=s((exports,t)=>{let n={};n.tlds=`AAA.AARP.ABB.ABBOTT.ABBVIE.ABC.ABLE.ABOGADO.ABUDHABI.AC.ACADEMY.ACCENTURE.ACCOUNTANT.ACCOUNTANTS.ACO.ACTOR.AD.ADS.ADULT.AE.AEG.AERO.AETNA.AF.AFL.AFRICA.AG.AGAKHAN.AGENCY.AI.AIG.AIRBUS.AIRFORCE.AIRTEL.AKDN.AL.ALIBABA.ALIPAY.ALLFINANZ.ALLSTATE.ALLY.ALSACE.ALSTOM.AM.AMAZON.AMERICANEXPRESS.AMERICANFAMILY.AMEX.AMFAM.AMICA.AMSTERDAM.ANALYTICS.ANDROID.ANQUAN.ANZ.AO.AOL.APARTMENTS.APP.APPLE.AQ.AQUARELLE.AR.ARAB.ARAMCO.ARCHI.ARMY.ARPA.ART.ARTE.AS.ASDA.ASIA.ASSOCIATES.AT.ATHLETA.ATTORNEY.AU.AUCTION.AUDI.AUDIBLE.AUDIO.AUSPOST.AUTHOR.AUTO.AUTOS.AVIANCA.AW.AWS.AX.AXA.AZ.AZURE.BA.BABY.BAIDU.BANAMEX.BAND.BANK.BAR.BARCELONA.BARCLAYCARD.BARCLAYS.BAREFOOT.BARGAINS.BASEBALL.BASKETBALL.BAUHAUS.BAYERN.BB.BBC.BBT.BBVA.BCG.BCN.BD.BE.BEATS.BEAUTY.BEER.BENTLEY.BERLIN.BEST.BESTBUY.BET.BF.BG.BH.BHARTI.BI.BIBLE.BID.BIKE.BING.BINGO.BIO.BIZ.BJ.BLACK.BLACKFRIDAY.BLOCKBUSTER.BLOG.BLOOMBERG.BLUE.BM.BMS.BMW.BN.BNPPARIBAS.BO.BOATS.BOEHRINGER.BOFA.BOM.BOND.BOO.BOOK.BOOKING.BOSCH.BOSTIK.BOSTON.BOT.BOUTIQUE.BOX.BR.BRADESCO.BRIDGESTONE.BROADWAY.BROKER.BROTHER.BRUSSELS.BS.BT.BUILD.BUILDERS.BUSINESS.BUY.BUZZ.BV.BW.BY.BZ.BZH.CA.CAB.CAFE.CAL.CALL.CALVINKLEIN.CAM.CAMERA.CAMP.CANON.CAPETOWN.CAPITAL.CAPITALONE.CAR.CARAVAN.CARDS.CARE.CAREER.CAREERS.CARS.CASA.CASE.CASH.CASINO.CAT.CATERING.CATHOLIC.CBA.CBN.CBRE.CC.CD.CENTER.CEO.CERN.CF.CFA.CFD.CG.CH.CHANEL.CHANNEL.CHARITY.CHASE.CHAT.CHEAP.CHINTAI.CHRISTMAS.CHROME.CHURCH.CI.CIPRIANI.CIRCLE.CISCO.CITADEL.CITI.CITIC.CITY.CK.CL.CLAIMS.CLEANING.CLICK.CLINIC.CLINIQUE.CLOTHING.CLOUD.CLUB.CLUBMED.CM.CN.CO.COACH.CODES.COFFEE.COLLEGE.COLOGNE.COM.COMCAST.COMMBANK.COMMUNITY.COMPANY.COMPARE.COMPUTER.COMSEC.CONDOS.CONSTRUCTION.CONSULTING.CONTACT.CONTRACTORS.COOKING.COOL.COOP.CORSICA.COUNTRY.COUPON.COUPONS.COURSES.CPA.CR.CREDIT.CREDITCARD.CREDITUNION.CRICKET.CROWN.CRS.CRUISE.CRUISES.CU.CUISINELLA.CV.CW.CX.CY.CYMRU.CYOU.CZ.DABUR.DAD.DANCE.DATA.DATE.DATING.DATSUN.DAY.DCLK.DDS.DE.DEAL.DEALER.DEALS.DEGREE.DELIVERY.DELL.DELOITTE.DELTA.DEMOCRAT.DENTAL.DENTIST.DESI.DESIGN.DEV.DHL.DIAMONDS.DIET.DIGITAL.DIRECT.DIRECTORY.DISCOUNT.DISCOVER.DISH.DIY.DJ.DK.DM.DNP.DO.DOCS.DOCTOR.DOG.DOMAINS.DOT.DOWNLOAD.DRIVE.DTV.DUBAI.DUNLOP.DUPONT.DURBAN.DVAG.DVR.DZ.EARTH.EAT.EC.ECO.EDEKA.EDU.EDUCATION.EE.EG.EMAIL.EMERCK.ENERGY.ENGINEER.ENGINEERING.ENTERPRISES.EPSON.EQUIPMENT.ER.ERICSSON.ERNI.ES.ESQ.ESTATE.ET.EU.EUROVISION.EUS.EVENTS.EXCHANGE.EXPERT.EXPOSED.EXPRESS.EXTRASPACE.FAGE.FAIL.FAIRWINDS.FAITH.FAMILY.FAN.FANS.FARM.FARMERS.FASHION.FAST.FEDEX.FEEDBACK.FERRARI.FERRERO.FI.FIDELITY.FIDO.FILM.FINAL.FINANCE.FINANCIAL.FIRE.FIRESTONE.FIRMDALE.FISH.FISHING.FIT.FITNESS.FJ.FK.FLICKR.FLIGHTS.FLIR.FLORIST.FLOWERS.FLY.FM.FO.FOO.FOOD.FOOTBALL.FORD.FOREX.FORSALE.FORUM.FOUNDATION.FOX.FR.FREE.FRESENIUS.FRL.FROGANS.FRONTIER.FTR.FUJITSU.FUN.FUND.FURNITURE.FUTBOL.FYI.GA.GAL.GALLERY.GALLO.GALLUP.GAME.GAMES.GAP.GARDEN.GAY.GB.GBIZ.GD.GDN.GE.GEA.GENT.GENTING.GEORGE.GF.GG.GGEE.GH.GI.GIFT.GIFTS.GIVES.GIVING.GL.GLASS.GLE.GLOBAL.GLOBO.GM.GMAIL.GMBH.GMO.GMX.GN.GODADDY.GOLD.GOLDPOINT.GOLF.GOO.GOODYEAR.GOOG.GOOGLE.GOP.GOT.GOV.GP.GQ.GR.GRAINGER.GRAPHICS.GRATIS.GREEN.GRIPE.GROCERY.GROUP.GS.GT.GU.GUARDIAN.GUCCI.GUGE.GUIDE.GUITARS.GURU.GW.GY.HAIR.HAMBURG.HANGOUT.HAUS.HBO.HDFC.HDFCBANK.HEALTH.HEALTHCARE.HELP.HELSINKI.HERE.HERMES.HIPHOP.HISAMITSU.HITACHI.HIV.HK.HKT.HM.HN.HOCKEY.HOLDINGS.HOLIDAY.HOMEDEPOT.HOMEGOODS.HOMES.HOMESENSE.HONDA.HORSE.HOSPITAL.HOST.HOSTING.HOT.HOTELS.HOTMAIL.HOUSE.HOW.HR.HSBC.HT.HU.HUGHES.HYATT.HYUNDAI.IBM.ICBC.ICE.ICU.ID.IE.IEEE.IFM.IKANO.IL.IM.IMAMAT.IMDB.IMMO.IMMOBILIEN.IN.INC.INDUSTRIES.INFINITI.INFO.ING.INK.INSTITUTE.INSURANCE.INSURE.INT.INTERNATIONAL.INTUIT.INVESTMENTS.IO.IPIRANGA.IQ.IR.IRISH.IS.ISMAILI.IST.ISTANBUL.IT.ITAU.ITV.JAGUAR.JAVA.JCB.JE.JEEP.JETZT.JEWELRY.JIO.JLL.JM.JMP.JNJ.JO.JOBS.JOBURG.JOT.JOY.JP.JPMORGAN.JPRS.JUEGOS.JUNIPER.KAUFEN.KDDI.KE.KERRYHOTELS.KERRYLOGISTICS.KERRYPROPERTIES.KFH.KG.KH.KI.KIA.KIDS.KIM.KINDLE.KITCHEN.KIWI.KM.KN.KOELN.KOMATSU.KOSHER.KP.KPMG.KPN.KR.KRD.KRED.KUOKGROUP.KW.KY.KYOTO.KZ.LA.LACAIXA.LAMBORGHINI.LAMER.LANCASTER.LAND.LANDROVER.LANXESS.LASALLE.LAT.LATINO.LATROBE.LAW.LAWYER.LB.LC.LDS.LEASE.LECLERC.LEFRAK.LEGAL.LEGO.LEXUS.LGBT.LI.LIDL.LIFE.LIFEINSURANCE.LIFESTYLE.LIGHTING.LIKE.LILLY.LIMITED.LIMO.LINCOLN.LINK.LIPSY.LIVE.LIVING.LK.LLC.LLP.LOAN.LOANS.LOCKER.LOCUS.LOL.LONDON.LOTTE.LOTTO.LOVE.LPL.LPLFINANCIAL.LR.LS.LT.LTD.LTDA.LU.LUNDBECK.LUXE.LUXURY.LV.LY.MA.MADRID.MAIF.MAISON.MAKEUP.MAN.MANAGEMENT.MANGO.MAP.MARKET.MARKETING.MARKETS.MARRIOTT.MARSHALLS.MATTEL.MBA.MC.MCKINSEY.MD.ME.MED.MEDIA.MEET.MELBOURNE.MEME.MEMORIAL.MEN.MENU.MERCKMSD.MG.MH.MIAMI.MICROSOFT.MIL.MINI.MINT.MIT.MITSUBISHI.MK.ML.MLB.MLS.MM.MMA.MN.MO.MOBI.MOBILE.MODA.MOE.MOI.MOM.MONASH.MONEY.MONSTER.MORMON.MORTGAGE.MOSCOW.MOTO.MOTORCYCLES.MOV.MOVIE.MP.MQ.MR.MS.MSD.MT.MTN.MTR.MU.MUSEUM.MUSIC.MV.MW.MX.MY.MZ.NA.NAB.NAGOYA.NAME.NATURA.NAVY.NBA.NC.NE.NEC.NET.NETBANK.NETFLIX.NETWORK.NEUSTAR.NEW.NEWS.NEXT.NEXTDIRECT.NEXUS.NF.NFL.NG.NGO.NHK.NI.NICO.NIKE.NIKON.NINJA.NISSAN.NISSAY.NL.NO.NOKIA.NORTON.NOW.NOWRUZ.NOWTV.NP.NR.NRA.NRW.NTT.NU.NYC.NZ.OBI.OBSERVER.OFFICE.OKINAWA.OLAYAN.OLAYANGROUP.OLLO.OM.OMEGA.ONE.ONG.ONL.ONLINE.OOO.OPEN.ORACLE.ORANGE.ORG.ORGANIC.ORIGINS.OSAKA.OTSUKA.OTT.OVH.PA.PAGE.PANASONIC.PARIS.PARS.PARTNERS.PARTS.PARTY.PAY.PCCW.PE.PET.PF.PFIZER.PG.PH.PHARMACY.PHD.PHILIPS.PHONE.PHOTO.PHOTOGRAPHY.PHOTOS.PHYSIO.PICS.PICTET.PICTURES.PID.PIN.PING.PINK.PIONEER.PIZZA.PK.PL.PLACE.PLAY.PLAYSTATION.PLUMBING.PLUS.PM.PN.PNC.POHL.POKER.POLITIE.PORN.POST.PR.PRAMERICA.PRAXI.PRESS.PRIME.PRO.PROD.PRODUCTIONS.PROF.PROGRESSIVE.PROMO.PROPERTIES.PROPERTY.PROTECTION.PRU.PRUDENTIAL.PS.PT.PUB.PW.PWC.PY.QA.QPON.QUEBEC.QUEST.RACING.RADIO.RE.READ.REALESTATE.REALTOR.REALTY.RECIPES.RED.REDSTONE.REDUMBRELLA.REHAB.REISE.REISEN.REIT.RELIANCE.REN.RENT.RENTALS.REPAIR.REPORT.REPUBLICAN.REST.RESTAURANT.REVIEW.REVIEWS.REXROTH.RICH.RICHARDLI.RICOH.RIL.RIO.RIP.RO.ROCKS.RODEO.ROGERS.ROOM.RS.RSVP.RU.RUGBY.RUHR.RUN.RW.RWE.RYUKYU.SA.SAARLAND.SAFE.SAFETY.SAKURA.SALE.SALON.SAMSCLUB.SAMSUNG.SANDVIK.SANDVIKCOROMANT.SANOFI.SAP.SARL.SAS.SAVE.SAXO.SB.SBI.SBS.SC.SCB.SCHAEFFLER.SCHMIDT.SCHOLARSHIPS.SCHOOL.SCHULE.SCHWARZ.SCIENCE.SCOT.SD.SE.SEARCH.SEAT.SECURE.SECURITY.SEEK.SELECT.SENER.SERVICES.SEVEN.SEW.SEX.SEXY.SFR.SG.SH.SHANGRILA.SHARP.SHAW.SHELL.SHIA.SHIKSHA.SHOES.SHOP.SHOPPING.SHOUJI.SHOW.SI.SILK.SINA.SINGLES.SITE.SJ.SK.SKI.SKIN.SKY.SKYPE.SL.SLING.SM.SMART.SMILE.SN.SNCF.SO.SOCCER.SOCIAL.SOFTBANK.SOFTWARE.SOHU.SOLAR.SOLUTIONS.SONG.SONY.SOY.SPA.SPACE.SPORT.SPOT.SR.SRL.SS.ST.STADA.STAPLES.STAR.STATEBANK.STATEFARM.STC.STCGROUP.STOCKHOLM.STORAGE.STORE.STREAM.STUDIO.STUDY.STYLE.SU.SUCKS.SUPPLIES.SUPPLY.SUPPORT.SURF.SURGERY.SUZUKI.SV.SWATCH.SWISS.SX.SY.SYDNEY.SYSTEMS.SZ.TAB.TAIPEI.TALK.TAOBAO.TARGET.TATAMOTORS.TATAR.TATTOO.TAX.TAXI.TC.TCI.TD.TDK.TEAM.TECH.TECHNOLOGY.TEL.TEMASEK.TENNIS.TEVA.TF.TG.TH.THD.THEATER.THEATRE.TIAA.TICKETS.TIENDA.TIPS.TIRES.TIROL.TJ.TJMAXX.TJX.TK.TKMAXX.TL.TM.TMALL.TN.TO.TODAY.TOKYO.TOOLS.TOP.TORAY.TOSHIBA.TOTAL.TOURS.TOWN.TOYOTA.TOYS.TR.TRADE.TRADING.TRAINING.TRAVEL.TRAVELERS.TRAVELERSINSURANCE.TRUST.TRV.TT.TUBE.TUI.TUNES.TUSHU.TV.TVS.TW.TZ.UA.UBANK.UBS.UG.UK.UNICOM.UNIVERSITY.UNO.UOL.UPS.US.UY.UZ.VA.VACATIONS.VANA.VANGUARD.VC.VE.VEGAS.VENTURES.VERISIGN.VERSICHERUNG.VET.VG.VI.VIAJES.VIDEO.VIG.VIKING.VILLAS.VIN.VIP.VIRGIN.VISA.VISION.VIVA.VIVO.VLAANDEREN.VN.VODKA.VOLVO.VOTE.VOTING.VOTO.VOYAGE.VU.WALES.WALMART.WALTER.WANG.WANGGOU.WATCH.WATCHES.WEATHER.WEATHERCHANNEL.WEBCAM.WEBER.WEBSITE.WED.WEDDING.WEIBO.WEIR.WF.WHOSWHO.WIEN.WIKI.WILLIAMHILL.WIN.WINDOWS.WINE.WINNERS.WME.WOLTERSKLUWER.WOODSIDE.WORK.WORKS.WORLD.WOW.WS.WTC.WTF.XBOX.XEROX.XFINITY.XIHUAN.XIN.XN--11B4C3D.XN--1CK2E1B.XN--1QQW23A.XN--2SCRJ9C.XN--30RR7Y.XN--3BST00M.XN--3DS443G.XN--3E0B707E.XN--3HCRJ9C.XN--3PXU8K.XN--42C2D9A.XN--45BR5CYL.XN--45BRJ9C.XN--45Q11C.XN--4DBRK0CE.XN--4GBRIM.XN--54B7FTA0CC.XN--55QW42G.XN--55QX5D.XN--5SU34J936BGSG.XN--5TZM5G.XN--6FRZ82G.XN--6QQ986B3XL.XN--80ADXHKS.XN--80AO21A.XN--80AQECDR1A.XN--80ASEHDB.XN--80ASWG.XN--8Y0A063A.XN--90A3AC.XN--90AE.XN--90AIS.XN--9DBQ2A.XN--9ET52U.XN--9KRT00A.XN--B4W605FERD.XN--BCK1B9A5DRE4C.XN--C1AVG.XN--C2BR7G.XN--CCK2B3B.XN--CCKWCXETD.XN--CG4BKI.XN--CLCHC0EA0B2G2A9GCD.XN--CZR694B.XN--CZRS0T.XN--CZRU2D.XN--D1ACJ3B.XN--D1ALF.XN--E1A4C.XN--ECKVDTC9D.XN--EFVY88H.XN--FCT429K.XN--FHBEI.XN--FIQ228C5HS.XN--FIQ64B.XN--FIQS8S.XN--FIQZ9S.XN--FJQ720A.XN--FLW351E.XN--FPCRJ9C3D.XN--FZC2C9E2C.XN--FZYS8D69UVGM.XN--G2XX48C.XN--GCKR3F0F.XN--GECRJ9C.XN--GK3AT1E.XN--H2BREG3EVE.XN--H2BRJ9C.XN--H2BRJ9C8C.XN--HXT814E.XN--I1B6B1A6A2E.XN--IMR513N.XN--IO0A7I.XN--J1AEF.XN--J1AMH.XN--J6W193G.XN--JLQ480N2RG.XN--JVR189M.XN--KCRX77D1X4A.XN--KPRW13D.XN--KPRY57D.XN--KPUT3I.XN--L1ACC.XN--LGBBAT1AD8J.XN--MGB9AWBF.XN--MGBA3A3EJT.XN--MGBA3A4F16A.XN--MGBA7C0BBN0A.XN--MGBAAM7A8H.XN--MGBAB2BD.XN--MGBAH1A3HJKRD.XN--MGBAI9AZGQP6J.XN--MGBAYH7GPA.XN--MGBBH1A.XN--MGBBH1A71E.XN--MGBC0A9AZCG.XN--MGBCA7DZDO.XN--MGBCPQ6GPA1A.XN--MGBERP4A5D4AR.XN--MGBGU82A.XN--MGBI4ECEXP.XN--MGBPL2FH.XN--MGBT3DHD.XN--MGBTX2B.XN--MGBX4CD0AB.XN--MIX891F.XN--MK1BU44C.XN--MXTQ1M.XN--NGBC5AZD.XN--NGBE9E0A.XN--NGBRX.XN--NODE.XN--NQV7F.XN--NQV7FS00EMA.XN--NYQY26A.XN--O3CW4H.XN--OGBPF8FL.XN--OTU796D.XN--P1ACF.XN--P1AI.XN--PGBS0DH.XN--PSSY2U.XN--Q7CE6A.XN--Q9JYB4C.XN--QCKA1PMC.XN--QXA6A.XN--QXAM.XN--RHQV96G.XN--ROVU88B.XN--RVC1E0AM3E.XN--S9BRJ9C.XN--SES554G.XN--T60B56A.XN--TCKWE.XN--TIQ49XQYJ.XN--UNUP4Y.XN--VERMGENSBERATER-CTB.XN--VERMGENSBERATUNG-PWB.XN--VHQUV.XN--VUQ861B.XN--W4R85EL8FHU5DNRA.XN--W4RS40L.XN--WGBH1C.XN--WGBL6A.XN--XHQ521B.XN--XKC2AL3HYE2A.XN--XKC2DL3A5EE0H.XN--Y9A3AQ.XN--YFRO4I67O.XN--YGBI2AMMX.XN--ZFR164B.XXX.XYZ.YACHTS.YAHOO.YAMAXUN.YANDEX.YE.YODOBASHI.YOGA.YOKOHAMA.YOU.YOUTUBE.YT.YUN.ZA.ZAPPOS.ZARA.ZERO.ZIP.ZM.ZONE.ZUERICH.ZW`.split(`.`),t.exports=new Set(n.tlds.map(e=>e.toLowerCase()))}),Gn=s((exports,t)=>{B();let n=V(),r=_t(),i=Bn(),a=Un(),o=Vn(),s=Wn(),c=Hn(),l=Xe(),u=H(),d={tlds:s instanceof Set?{tlds:{allow:s,deny:null}}:!1,base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:{withPrefix:/^0x[0-9a-f]+$/i,withOptionalPrefix:/^(?:0x)?[0-9a-f]+$/i,withoutPrefix:/^[0-9a-f]+$/i},ipRegex:a.regex({cidr:`forbidden`}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":`}`,"[":`]`,"(":`)`,"":``},guidVersions:{uuidv1:`1`,uuidv2:`2`,uuidv3:`3`,uuidv4:`4`,uuidv5:`5`,uuidv6:`6`,uuidv7:`7`,uuidv8:`8`},guidSeparators:new Set([void 0,!0,!1,`-`,`:`]),normalizationForms:[`NFC`,`NFD`,`NFKC`,`NFKD`]};t.exports=l.extend({type:`string`,flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:`string`,method(e,{schema:t,state:n,prefs:r}){let i=t.$_getRule(`normalize`);i&&(e=e.normalize(i.args.form));let a=t.$_getRule(`case`);a&&(e=a.args.direction===`upper`?e.toLocaleUpperCase():e.toLocaleLowerCase());let o=t.$_getRule(`trim`);if(o&&o.args.enabled&&(e=e.trim()),t.$_terms.replacements)for(let n of t.$_terms.replacements)e=e.replace(n.pattern,n.replacement);let s=t.$_getRule(`hex`);if(s&&s.args.options.byteAligned&&e.length%2!=0&&(e=`0${e}`),t.$_getRule(`isoDate`)){let t=d.isoDate(e);t&&(e=t)}if(t._flags.truncate){let i=t.$_getRule(`max`);if(i){let a=i.args.limit;if(u.isResolvable(a)&&(a=a.resolve(e,n,r),!u.limit(a)))return{value:e,errors:t.$_createError(`any.ref`,a,{ref:i.args.limit,arg:`limit`,reason:`must be a positive integer`},n,r)};e=e.slice(0,a)}}return{value:e}}},validate(e,{schema:t,error:n}){if(typeof e!=`string`)return{value:e,errors:n(`string.base`)};if(e===``){let r=t.$_getRule(`min`);return r&&r.args.limit===0?void 0:{value:e,errors:n(`string.empty`)}}},rules:{alphanum:{method(){return this.$_addRule(`alphanum`)},validate(e,t){return/^[a-zA-Z0-9]+$/.test(e)?e:t.error(`string.alphanum`)}},base64:{method(e={}){return u.assertOptions(e,[`paddingRequired`,`urlSafe`]),e={urlSafe:!1,paddingRequired:!0,...e},n(typeof e.paddingRequired==`boolean`,`paddingRequired must be boolean`),n(typeof e.urlSafe==`boolean`,`urlSafe must be boolean`),this.$_addRule({name:`base64`,args:{options:e}})},validate(e,t,{options:n}){let r=d.base64Regex[n.paddingRequired][n.urlSafe];return r.test(e)?e:t.error(`string.base64`)}},case:{method(e){return n([`lower`,`upper`].includes(e),`Invalid case:`,e),this.$_addRule({name:`case`,args:{direction:e}})},validate(e,t,{direction:n}){return n===`lower`&&e===e.toLocaleLowerCase()||n===`upper`&&e===e.toLocaleUpperCase()?e:t.error(`string.${n}case`)},convert:!0},creditCard:{method(){return this.$_addRule(`creditCard`)},validate(e,t){let n=e.length,r=0,i=1;for(;n--;){let t=e.charAt(n)*i;r+=t-(t>9)*9,i^=3}return r>0&&r%10==0?e:t.error(`string.creditCard`)}},dataUri:{method(e={}){return u.assertOptions(e,[`paddingRequired`]),e={paddingRequired:!0,...e},n(typeof e.paddingRequired==`boolean`,`paddingRequired must be boolean`),this.$_addRule({name:`dataUri`,args:{options:e}})},validate(e,t,{options:n}){let r=e.match(d.dataUriRegex);if(r){if(!r[2]||r[2]!==`base64`)return e;let t=d.base64Regex[n.paddingRequired].false;if(t.test(r[3]))return e}return t.error(`string.dataUri`)}},domain:{method(e){e&&u.assertOptions(e,[`allowFullyQualified`,`allowUnicode`,`maxDomainSegments`,`minDomainSegments`,`tlds`]);let t=d.addressOptions(e);return this.$_addRule({name:`domain`,args:{options:e},address:t})},validate(e,t,n,{address:i}){return r.isValid(e,i)?e:t.error(`string.domain`)}},email:{method(e={}){u.assertOptions(e,[`allowFullyQualified`,`allowUnicode`,`ignoreLength`,`maxDomainSegments`,`minDomainSegments`,`multiple`,`separator`,`tlds`]),n(e.multiple===void 0||typeof e.multiple==`boolean`,`multiple option must be an boolean`);let t=d.addressOptions(e),r=RegExp(`\\s*[${e.separator?o(e.separator):`,`}]\\s*`);return this.$_addRule({name:`email`,args:{options:e},regex:r,address:t})},validate(e,t,{options:n},{regex:r,address:a}){let o=n.multiple?e.split(r):[e],s=[];for(let e of o)i.isValid(e,a)||s.push(e);return s.length?t.error(`string.email`,{value:e,invalids:s}):e}},guid:{alias:`uuid`,method(e={}){u.assertOptions(e,[`version`,`separator`]);let t=``;if(e.version){let r=[].concat(e.version);n(r.length>=1,`version must have at least 1 valid version specified`);let i=new Set;for(let e=0;e<r.length;++e){let a=r[e];n(typeof a==`string`,`version at position `+e+` must be a string`);let o=d.guidVersions[a.toLowerCase()];n(o,`version at position `+e+` must be one of `+Object.keys(d.guidVersions).join(`, `)),n(!i.has(o),`version at position `+e+` must not be a duplicate`),t+=o,i.add(o)}}n(d.guidSeparators.has(e.separator),`separator must be one of true, false, "-", or ":"`);let r=e.separator===void 0?`[:-]?`:e.separator===!0?`[:-]`:e.separator===!1?`[]?`:`\\${e.separator}`,i=RegExp(`^([\\[{\\(]?)[0-9A-F]{8}(${r})[0-9A-F]{4}\\2?[${t||`0-9A-F`}][0-9A-F]{3}\\2?[${t?`89AB`:`0-9A-F`}][0-9A-F]{3}\\2?[0-9A-F]{12}([\\]}\\)]?)$`,`i`);return this.$_addRule({name:`guid`,args:{options:e},regex:i})},validate(e,t,n,{regex:r}){let i=r.exec(e);return!i||d.guidBrackets[i[1]]!==i[i.length-1]?t.error(`string.guid`):e}},hex:{method(e={}){return u.assertOptions(e,[`byteAligned`,`prefix`]),e={byteAligned:!1,prefix:!1,...e},n(typeof e.byteAligned==`boolean`,`byteAligned must be boolean`),n(typeof e.prefix==`boolean`||e.prefix===`optional`,`prefix must be boolean or "optional"`),this.$_addRule({name:`hex`,args:{options:e}})},validate(e,t,{options:n}){let r=n.prefix===`optional`?d.hexRegex.withOptionalPrefix:n.prefix===!0?d.hexRegex.withPrefix:d.hexRegex.withoutPrefix;return r.test(e)?n.byteAligned&&e.length%2!=0?t.error(`string.hexAlign`):e:t.error(`string.hex`)}},hostname:{method(){return this.$_addRule(`hostname`)},validate(e,t){return r.isValid(e,{minDomainSegments:1})||d.ipRegex.test(e)?e:t.error(`string.hostname`)}},insensitive:{method(){return this.$_setFlag(`insensitive`,!0)}},ip:{method(e={}){u.assertOptions(e,[`cidr`,`version`]);let{cidr:t,versions:n,regex:r}=a.regex(e),i=e.version?n:void 0;return this.$_addRule({name:`ip`,args:{options:{cidr:t,version:i}},regex:r})},validate(e,t,{options:n},{regex:r}){return r.test(e)?e:n.version?t.error(`string.ipVersion`,{value:e,cidr:n.cidr,version:n.version}):t.error(`string.ip`,{value:e,cidr:n.cidr})}},isoDate:{method(){return this.$_addRule(`isoDate`)},validate(e,{error:t}){return d.isoDate(e)?e:t(`string.isoDate`)}},isoDuration:{method(){return this.$_addRule(`isoDuration`)},validate(e,t){return d.isoDurationRegex.test(e)?e:t.error(`string.isoDuration`)}},length:{method(e,t){return d.length(this,`length`,e,`=`,t)},validate(e,t,{limit:n,encoding:r},{name:i,operator:a,args:o}){let s=r?O&&O.byteLength(e,r):e.length;return u.compare(s,n,a)?e:t.error(`string.`+i,{limit:o.limit,value:e,encoding:r})},args:[{name:`limit`,ref:!0,assert:u.limit,message:`must be a positive integer`},`encoding`]},lowercase:{method(){return this.case(`lower`)}},max:{method(e,t){return d.length(this,`max`,e,`<=`,t)},args:[`limit`,`encoding`]},min:{method(e,t){return d.length(this,`min`,e,`>=`,t)},args:[`limit`,`encoding`]},normalize:{method(e=`NFC`){return n(d.normalizationForms.includes(e),`normalization form must be one of `+d.normalizationForms.join(`, `)),this.$_addRule({name:`normalize`,args:{form:e}})},validate(e,{error:t},{form:n}){return e===e.normalize(n)?e:t(`string.normalize`,{value:e,form:n})},convert:!0},pattern:{alias:`regex`,method(e,t={}){n(e instanceof RegExp,`regex must be a RegExp`),n(!e.flags.includes(`g`)&&!e.flags.includes(`y`),`regex should not use global or sticky mode`),typeof t==`string`&&(t={name:t}),u.assertOptions(t,[`invert`,`name`]);let r=[`string.pattern`,t.invert?`.invert`:``,t.name?`.name`:`.base`].join(``);return this.$_addRule({name:`pattern`,args:{regex:e,options:t},errorCode:r})},validate(e,t,{regex:n,options:r},{errorCode:i}){let a=n.test(e);return a^r.invert?e:t.error(i,{name:r.name,regex:n,value:e})},args:[`regex`,`options`],multi:!0},replace:{method(e,t){typeof e==`string`&&(e=new RegExp(o(e),`g`)),n(e instanceof RegExp,`pattern must be a RegExp`),n(typeof t==`string`,`replacement must be a String`);let r=this.clone();return r.$_terms.replacements||(r.$_terms.replacements=[]),r.$_terms.replacements.push({pattern:e,replacement:t}),r}},token:{method(){return this.$_addRule(`token`)},validate(e,t){return/^\w+$/.test(e)?e:t.error(`string.token`)}},trim:{method(e=!0){return n(typeof e==`boolean`,`enabled must be a boolean`),this.$_addRule({name:`trim`,args:{enabled:e}})},validate(e,t,{enabled:n}){return!n||e===e.trim()?e:t.error(`string.trim`)},convert:!0},truncate:{method(e=!0){return n(typeof e==`boolean`,`enabled must be a boolean`),this.$_setFlag(`truncate`,e)}},uppercase:{method(){return this.case(`upper`)}},uri:{method(e={}){u.assertOptions(e,[`allowRelative`,`allowQuerySquareBrackets`,`domain`,`relativeOnly`,`scheme`,`encodeUri`]),e.domain&&u.assertOptions(e.domain,[`allowFullyQualified`,`allowUnicode`,`maxDomainSegments`,`minDomainSegments`,`tlds`]);let{regex:t,scheme:n}=c.regex(e),r=e.domain?d.addressOptions(e.domain):null;return this.$_addRule({name:`uri`,args:{options:e},regex:t,domain:r,scheme:n})},validate(e,t,{options:n},{regex:i,domain:a,scheme:o}){if([`http:/`,`https:/`].includes(e))return t.error(`string.uri`);let s=i.exec(e);if(!s&&t.prefs.convert&&n.encodeUri){let t=encodeURI(e);s=i.exec(t),s&&(e=t)}if(s){let i=s[1]||s[2];return a&&(!n.allowRelative||i)&&!r.isValid(i,a)?t.error(`string.domain`,{value:i}):e}return n.relativeOnly?t.error(`string.uriRelativeOnly`):n.scheme?t.error(`string.uriCustomScheme`,{scheme:o,value:e}):t.error(`string.uri`)}}},manifest:{build(e,t){if(t.replacements)for(let{pattern:n,replacement:r}of t.replacements)e=e.replace(n,r);return e}},messages:{"string.alphanum":`{{#label}} must only contain alpha-numeric characters`,"string.base":`{{#label}} must be a string`,"string.base64":`{{#label}} must be a valid base64 string`,"string.creditCard":`{{#label}} must be a credit card`,"string.dataUri":`{{#label}} must be a valid dataUri string`,"string.domain":`{{#label}} must contain a valid domain name`,"string.email":`{{#label}} must be a valid email`,"string.empty":`{{#label}} is not allowed to be empty`,"string.guid":`{{#label}} must be a valid GUID`,"string.hex":`{{#label}} must only contain hexadecimal characters`,"string.hexAlign":`{{#label}} hex decoded representation must be byte aligned`,"string.hostname":`{{#label}} must be a valid hostname`,"string.ip":`{{#label}} must be a valid ip address with a {{#cidr}} CIDR`,"string.ipVersion":`{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR`,"string.isoDate":`{{#label}} must be in iso format`,"string.isoDuration":`{{#label}} must be a valid ISO 8601 duration`,"string.length":`{{#label}} length must be {{#limit}} characters long`,"string.lowercase":`{{#label}} must only contain lowercase characters`,"string.max":`{{#label}} length must be less than or equal to {{#limit}} characters long`,"string.min":`{{#label}} length must be at least {{#limit}} characters long`,"string.normalize":`{{#label}} must be unicode normalized in the {{#form}} form`,"string.token":`{{#label}} must only contain alpha-numeric and underscore characters`,"string.pattern.base":`{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}`,"string.pattern.name":`{{#label}} with value {:[.]} fails to match the {{#name}} pattern`,"string.pattern.invert.base":`{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}`,"string.pattern.invert.name":`{{#label}} with value {:[.]} matches the inverted {{#name}} pattern`,"string.trim":`{{#label}} must not have leading or trailing whitespace`,"string.uri":`{{#label}} must be a valid uri`,"string.uriCustomScheme":`{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern`,"string.uriRelativeOnly":`{{#label}} must be a valid relative uri`,"string.uppercase":`{{#label}} must only contain uppercase characters`}}),d.addressOptions=function(e){if(!e)return d.tlds||e;if(n(e.minDomainSegments===void 0||Number.isSafeInteger(e.minDomainSegments)&&e.minDomainSegments>0,`minDomainSegments must be a positive integer`),n(e.maxDomainSegments===void 0||Number.isSafeInteger(e.maxDomainSegments)&&e.maxDomainSegments>0,`maxDomainSegments must be a positive integer`),e.tlds===!1)return e;if(e.tlds===!0||e.tlds===void 0)return n(d.tlds,`Built-in TLD list disabled`),Object.assign({},e,d.tlds);n(typeof e.tlds==`object`,`tlds must be true, false, or an object`);let t=e.tlds.deny;if(t)return Array.isArray(t)&&(e=Object.assign({},e,{tlds:{deny:new Set(t)}})),n(e.tlds.deny instanceof Set,`tlds.deny must be an array, Set, or boolean`),n(!e.tlds.allow,`Cannot specify both tlds.allow and tlds.deny lists`),d.validateTlds(e.tlds.deny,`tlds.deny`),e;let r=e.tlds.allow;return r?r===!0?(n(d.tlds,`Built-in TLD list disabled`),Object.assign({},e,d.tlds)):(Array.isArray(r)&&(e=Object.assign({},e,{tlds:{allow:new Set(r)}})),n(e.tlds.allow instanceof Set,`tlds.allow must be an array, Set, or boolean`),d.validateTlds(e.tlds.allow,`tlds.allow`),e):e},d.validateTlds=function(e,t){for(let i of e)n(r.isValid(i,{minDomainSegments:1,maxDomainSegments:1}),`${t} must contain valid top level domain names`)},d.isoDate=function(e){if(!u.isIsoDate(e))return null;/.*T.*[+-]\d\d$/.test(e)&&(e+=`00`);let t=new Date(e);return isNaN(t.getTime())?null:t.toISOString()},d.length=function(e,t,r,i,a){return n(!a||O&&O.isEncoding(a),`Invalid encoding:`,a),e.$_addRule({name:t,method:`length`,args:{limit:r,encoding:a},operator:i})}}),Kn=s((exports,t)=>{let n=V(),r=Xe(),i={};i.Map=class extends Map{slice(){return new i.Map(this)}},t.exports=r.extend({type:`symbol`,terms:{map:{init:new i.Map}},coerce:{method(e,{schema:t,error:n}){let r=t.$_terms.map.get(e);return r&&(e=r),!t._flags.only||typeof e==`symbol`?{value:e}:{value:e,errors:n(`symbol.map`,{map:t.$_terms.map})}}},validate(e,{error:t}){if(typeof e!=`symbol`)return{value:e,errors:t(`symbol.base`)}},rules:{map:{method(e){e&&!e[Symbol.iterator]&&typeof e==`object`&&(e=Object.entries(e)),n(e&&e[Symbol.iterator],`Iterable must be an iterable or object`);let t=this.clone(),r=[];for(let i of e){n(i&&i[Symbol.iterator],`Entry must be an iterable`);let[e,a]=i;n(typeof e!=`object`&&typeof e!=`function`&&typeof e!=`symbol`,`Key must not be of type object, function, or Symbol`),n(typeof a==`symbol`,`Value must be a Symbol`),t.$_terms.map.set(e,a),r.push(a)}return t.valid(...r)}}},manifest:{build(e,t){return t.map&&(e=e.map(t.map)),e}},messages:{"symbol.base":`{{#label}} must be a symbol`,"symbol.map":`{{#label}} must be one of {{#map}}`}})}),qn=s((exports,t)=>{B();let n=V(),r=Xe(),i=H();t.exports=r.extend({type:`binary`,coerce:{from:[`string`,`object`],method(e,{schema:t}){if(typeof e==`string`||e!==null&&e.type===`Buffer`)try{return{value:O.from(e,t._flags.encoding)}}catch{}}},validate(e,{error:t}){if(!O.isBuffer(e))return{value:e,errors:t(`binary.base`)}},rules:{encoding:{method(e){return n(O.isEncoding(e),`Invalid encoding:`,e),this.$_setFlag(`encoding`,e)}},length:{method(e){return this.$_addRule({name:`length`,method:`length`,args:{limit:e},operator:`=`})},validate(e,t,{limit:n},{name:r,operator:a,args:o}){return i.compare(e.length,n,a)?e:t.error(`binary.`+r,{limit:o.limit,value:e})},args:[{name:`limit`,ref:!0,assert:i.limit,message:`must be a positive integer`}]},max:{method(e){return this.$_addRule({name:`max`,method:`length`,args:{limit:e},operator:`<=`})}},min:{method(e){return this.$_addRule({name:`min`,method:`length`,args:{limit:e},operator:`>=`})}}},cast:{string:{from:e=>O.isBuffer(e),to(e,t){return e.toString()}}},messages:{"binary.base":`{{#label}} must be a buffer or a string`,"binary.length":`{{#label}} must be {{#limit}} bytes`,"binary.max":`{{#label}} must be less than or equal to {{#limit}} bytes`,"binary.min":`{{#label}} must be at least {{#limit}} bytes`}})}),Jn=s((exports,t)=>{B();let n=V(),r=de(),i=Ie(),a=H(),o=Le(),s=Me(),c=Re(),l=ze(),u=Ne(),d=Pe(),f=He(),p,m={types:{alternatives:Ze(),any:Xe(),array:Qe(),boolean:$e(),date:et(),function:it(),link:at(),number:ot(),object:st(),string:Gn(),symbol:Kn()},aliases:{alt:`alternatives`,bool:`boolean`,func:`function`}};O&&(m.types.binary=qn()),m.root=function(){let e={_types:new Set(Object.keys(m.types))};for(let t of e._types)e[t]=function(...e){return n(!e.length||[`alternatives`,`link`,`object`].includes(t),`The`,t,`type does not allow arguments`),m.generate(this,m.types[t],e)};for(let t of[`allow`,`custom`,`disallow`,`equal`,`exist`,`forbidden`,`invalid`,`not`,`only`,`optional`,`options`,`prefs`,`preferences`,`required`,`strip`,`valid`,`when`])e[t]=function(...e){return this.any()[t](...e)};for(let t in Object.assign(e,m.methods),m.aliases){let n=m.aliases[t];e[t]=e[n]}return e.x=e.expression,f.setup&&f.setup(e),e},m.methods={ValidationError:s.ValidationError,version:a.version,cache:i.provider,assert(e,t,...n){m.assert(e,t,!0,n)},attempt(e,t,...n){return m.assert(e,t,!1,n)},build(e){return n(typeof l.build==`function`,`Manifest functionality disabled`),l.build(this,e)},checkPreferences(e){a.checkPreferences(e)},compile(e,t){return o.compile(this,e,t)},defaults(e){n(typeof e==`function`,`modifier must be a function`);let t=Object.assign({},this);for(let r of t._types){let i=e(t[r]());n(a.isSchema(i),`modifier must return a valid schema object`),t[r]=function(...e){return m.generate(this,i,e)}}return t},expression(...e){return new d(...e)},extend(...e){a.verifyFlat(e,`extend`),p||=Oe(),n(e.length,`You need to provide at least one extension`),this.assert(e,p.extensions);let t=Object.assign({},this);t._types=new Set(t._types);for(let r of e){typeof r==`function`&&(r=r(t)),this.assert(r,p.extension);let e=m.expandExtension(r,t);for(let r of e){n(t[r.type]===void 0||t._types.has(r.type),`Cannot override name`,r.type);let e=r.base||this.any(),i=c.type(e,r);t._types.add(r.type),t[r.type]=function(...e){return m.generate(this,i,e)}}}return t},isError:s.ValidationError.isError,isExpression:d.isTemplate,isRef:u.isRef,isSchema:a.isSchema,in(...e){return u.in(...e)},override:a.symbols.override,ref(...e){return u.create(...e)},types(){let e={};for(let t of this._types)e[t]=this[t]();for(let t in m.aliases)e[t]=this[t]();return e}},m.assert=function(e,t,n,i){let o=i[0]instanceof Error||typeof i[0]==`string`?i[0]:null,c=o===null?i[0]:i[1],l=t.validate(e,a.preferences({errors:{stack:!0}},c||{})),u=l.error;if(!u)return l.value;if(o instanceof Error)throw o;let d=n&&typeof u.annotate==`function`?u.annotate():u.message;throw u instanceof s.ValidationError||(u=r(u)),u.message=o?`${o} ${d}`:d,u},m.generate=function(e,t,r){return n(e,`Must be invoked on a Joi instance.`),t.$_root=e,!t._definition.args||!r.length?t:t._definition.args(t,...r)},m.expandExtension=function(e,t){if(typeof e.type==`string`)return[e];let n=[];for(let r of t._types)if(e.type.test(r)){let i=Object.assign({},e);i.type=r,i.base=t[r](),n.push(i)}return n},t.exports=m.root()}),Yn=20,Xn=1,Zn=1e6,Qn=1e6,$n=-7,er=21,tr=!1,nr=`[big.js] `,rr=nr+`Invalid `,ir=rr+`decimal places`,ar=rr+`rounding mode`,or=nr+`Division by zero`,W={},sr=void 0,cr=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function lr(){function e(t){var n=this;if(!(n instanceof e))return t===sr&&arguments.length===0?lr():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice();else{if(typeof t!=`string`){if(e.strict===!0&&typeof t!=`bigint`)throw TypeError(rr+`value`);t=t===0&&1/t<0?`-0`:String(t)}ur(n,t)}n.constructor=e}return e.prototype=W,e.DP=Yn,e.RM=Xn,e.NE=$n,e.PE=er,e.strict=tr,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e}function ur(e,t){var n,r,i;if(!cr.test(t))throw Error(rr+`number`);for(e.s=t.charAt(0)==`-`?(t=t.slice(1),-1):1,(n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),i=t.length,r=0;r<i&&t.charAt(r)==`0`;)++r;if(r==i)e.c=[e.e=0];else{for(;i>0&&t.charAt(--i)==`0`;);for(e.e=n-r-1,e.c=[],n=0;r<=i;)e.c[n++]=+t.charAt(r++)}return e}function dr(e,t,n,r){var i=e.c;if(n===sr&&(n=e.constructor.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(ar);if(t<1)r=n===3&&(r||!!i[0])||t===0&&(n===1&&i[0]>=5||n===2&&(i[0]>5||i[0]===5&&(r||i[1]!==sr))),i.length=1,r?(e.e=e.e-t+1,i[0]=1):i[0]=e.e=0;else if(t<i.length){if(r=n===1&&i[t]>=5||n===2&&(i[t]>5||i[t]===5&&(r||i[t+1]!==sr||i[t-1]&1))||n===3&&(r||!!i[0]),i.length=t,r){for(;++i[--t]>9;)if(i[t]=0,t===0){++e.e,i.unshift(1);break}}for(t=i.length;!i[--t];)i.pop()}return e}function fr(e,t,n){var r=e.e,i=e.c.join(``),a=i.length;if(t)i=i.charAt(0)+(a>1?`.`+i.slice(1):``)+(r<0?`e`:`e+`)+r;else if(r<0){for(;++r;)i=`0`+i;i=`0.`+i}else if(r>0)if(++r>a)for(r-=a;r--;)i+=`0`;else r<a&&(i=i.slice(0,r)+`.`+i.slice(r));else a>1&&(i=i.charAt(0)+`.`+i.slice(1));return e.s<0&&n?`-`+i:i}W.abs=function(){var e=new this.constructor(this);return e.s=1,e},W.cmp=function(e){var t,n=this,r=n.c,i=(e=new n.constructor(e)).c,a=n.s,o=e.s,s=n.e,c=e.e;if(!r[0]||!i[0])return r[0]?a:i[0]?-o:0;if(a!=o)return a;if(t=a<0,s!=c)return s>c^t?1:-1;for(o=(s=r.length)<(c=i.length)?s:c,a=-1;++a<o;)if(r[a]!=i[a])return r[a]>i[a]^t?1:-1;return s==c?0:s>c^t?1:-1},W.div=function(e){var t=this,n=t.constructor,r=t.c,i=(e=new n(e)).c,a=t.s==e.s?1:-1,o=n.DP;if(o!==~~o||o<0||o>Zn)throw Error(ir);if(!i[0])throw Error(or);if(!r[0])return e.s=a,e.c=[e.e=0],e;var s,c,l,u,d,f=i.slice(),p=s=i.length,m=r.length,h=r.slice(0,s),g=h.length,_=e,v=_.c=[],y=0,b=o+(_.e=t.e-e.e)+1;for(_.s=a,a=b<0?0:b,f.unshift(0);g++<s;)h.push(0);do{for(l=0;l<10;l++){if(s!=(g=h.length))u=s>g?1:-1;else for(d=-1,u=0;++d<s;)if(i[d]!=h[d]){u=i[d]>h[d]?1:-1;break}if(u<0){for(c=g==s?i:f;g;){if(h[--g]<c[g]){for(d=g;d&&!h[--d];)h[d]=9;--h[d],h[g]+=10}h[g]-=c[g]}for(;!h[0];)h.shift()}else break}v[y++]=u?l:++l,h[0]&&u?h[g]=r[p]||0:h=[r[p]]}while((p++<m||h[0]!==sr)&&a--);return!v[0]&&y!=1&&(v.shift(),_.e--,b--),y>b&&dr(_,b,n.RM,h[0]!==sr),_},W.eq=function(e){return this.cmp(e)===0},W.gt=function(e){return this.cmp(e)>0},W.gte=function(e){return this.cmp(e)>-1},W.lt=function(e){return this.cmp(e)<0},W.lte=function(e){return this.cmp(e)<1},W.minus=W.sub=function(e){var t,n,r,i,a=this,o=a.constructor,s=a.s,c=(e=new o(e)).s;if(s!=c)return e.s=-c,a.plus(e);var l=a.c.slice(),u=a.e,d=e.c,f=e.e;if(!l[0]||!d[0])return d[0]?e.s=-c:l[0]?e=new o(a):e.s=1,e;if(s=u-f){for((i=s<0)?(s=-s,r=l):(f=u,r=d),r.reverse(),c=s;c--;)r.push(0);r.reverse()}else for(n=((i=l.length<d.length)?l:d).length,s=c=0;c<n;c++)if(l[c]!=d[c]){i=l[c]<d[c];break}if(i&&(r=l,l=d,d=r,e.s=-e.s),(c=(n=d.length)-(t=l.length))>0)for(;c--;)l[t++]=0;for(c=t;n>s;){if(l[--n]<d[n]){for(t=n;t&&!l[--t];)l[t]=9;--l[t],l[n]+=10}l[n]-=d[n]}for(;l[--c]===0;)l.pop();for(;l[0]===0;)l.shift(),--f;return l[0]||(e.s=1,l=[f=0]),e.c=l,e.e=f,e},W.mod=function(e){var t,n=this,r=n.constructor,i=n.s,a=(e=new r(e)).s;if(!e.c[0])throw Error(or);return n.s=e.s=1,t=e.cmp(n)==1,n.s=i,e.s=a,t?new r(n):(i=r.DP,a=r.RM,r.DP=r.RM=0,n=n.div(e),r.DP=i,r.RM=a,this.minus(n.times(e)))},W.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e},W.plus=W.add=function(e){var t,n,r,i=this,a=i.constructor;if(e=new a(e),i.s!=e.s)return e.s=-e.s,i.minus(e);var o=i.e,s=i.c,c=e.e,l=e.c;if(!s[0]||!l[0])return l[0]||(s[0]?e=new a(i):e.s=i.s),e;if(s=s.slice(),t=o-c){for(t>0?(c=o,r=l):(t=-t,r=s),r.reverse();t--;)r.push(0);r.reverse()}for(s.length-l.length<0&&(r=l,l=s,s=r),t=l.length,n=0;t;s[t]%=10)n=(s[--t]=s[t]+l[t]+n)/10|0;for(n&&(s.unshift(n),++c),t=s.length;s[--t]===0;)s.pop();return e.c=s,e.e=c,e},W.pow=function(e){var t=this,n=new t.constructor(`1`),r=n,i=e<0;if(e!==~~e||e<-Qn||e>Qn)throw Error(rr+`exponent`);for(i&&(e=-e);e&1&&(r=r.times(t)),e>>=1,e;)t=t.times(t);return i?n.div(r):r},W.prec=function(e,t){if(e!==~~e||e<1||e>Zn)throw Error(rr+`precision`);return dr(new this.constructor(this),e,t)},W.round=function(e,t){if(e===sr)e=0;else if(e!==~~e||e<-Zn||e>Zn)throw Error(ir);return dr(new this.constructor(this),e+this.e+1,t)},W.sqrt=function(){var e,t,n,r=this,i=r.constructor,a=r.s,o=r.e,s=new i(`0.5`);if(!r.c[0])return new i(r);if(a<0)throw Error(nr+`No square root`);a=Math.sqrt(+fr(r,!0,!0)),a===0||a===1/0?(t=r.c.join(``),t.length+o&1||(t+=`0`),a=Math.sqrt(t),o=((o+1)/2|0)-(o<0||o&1),e=new i((a==1/0?`5e`:(a=a.toExponential()).slice(0,a.indexOf(`e`)+1))+o)):e=new i(a+``),o=e.e+(i.DP+=4);do n=e,e=s.times(n.plus(r.div(n)));while(n.c.slice(0,o).join(``)!==e.c.slice(0,o).join(``));return dr(e,(i.DP-=4)+e.e+1,i.RM)},W.times=W.mul=function(e){var t,n=this,r=n.constructor,i=n.c,a=(e=new r(e)).c,o=i.length,s=a.length,c=n.e,l=e.e;if(e.s=n.s==e.s?1:-1,!i[0]||!a[0])return e.c=[e.e=0],e;for(e.e=c+l,o<s&&(t=i,i=a,a=t,l=o,o=s,s=l),t=Array(l=o+s);l--;)t[l]=0;for(c=s;c--;){for(s=0,l=o+c;l>c;)s=t[l]+a[c]*i[l-c-1]+s,t[l--]=s%10,s=s/10|0;t[l]=s}for(s?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},W.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==sr){if(e!==~~e||e<0||e>Zn)throw Error(ir);for(n=dr(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return fr(n,!0,!!r)},W.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==sr){if(e!==~~e||e<0||e>Zn)throw Error(ir);for(n=dr(new n.constructor(n),e+n.e+1,t),e=e+n.e+1;n.c.length<e;)n.c.push(0)}return fr(n,!1,!!r)},W.toJSON=W.toString=function(){var e=this,t=e.constructor;return fr(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},typeof Symbol<`u`&&(W[Symbol.for(`nodejs.util.inspect.custom`)]=W.toJSON),W.toNumber=function(){var e=+fr(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(nr+`Imprecise conversion`);return e},W.toPrecision=function(e,t){var n=this,r=n.constructor,i=n.c[0];if(e!==sr){if(e!==~~e||e<1||e>Zn)throw Error(rr+`precision`);for(n=dr(new r(n),e,t);n.c.length<e;)n.c.push(0)}return fr(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!i)},W.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(nr+`valueOf disallowed`);return fr(e,e.e<=t.NE||e.e>=t.PE,!0)};var pr=lr(),mr=pr;const hr=(e,t,n)=>{switch(n){case`>`:return e.gt(t);case`<`:return e.lt(t);case`>=`:return e.gte(t);case`<=`:return e.lte(t);case`multiple`:return e.mod(t).eq(0);default:return!1}},gr=function(e){return{type:`bigint`,base:e.any(),coerce:{from:[`string`,`number`],method(e,t){if(typeof e==`bigint`)return{value:e};try{let n=mr(e.toString());return n.eq(n.round(0))?{value:BigInt(n.toString())}:{value:e,errors:[t.error(`bigint.base`,{value:String(e)})]}}catch{return{value:e,errors:[t.error(`bigint.base`,{value:String(e)})]}}}},messages:{"bigint.base":`"{{#label}}" must be a valid bigint`,"bigint.greater":`"{{#label}}" must be greater than {{#limit}}`,"bigint.less":`"{{#label}}" must be less than {{#limit}}`,"bigint.max":`"{{#label}}" must be less than or equal to {{#limit}}`,"bigint.min":`"{{#label}}" must be greater than or equal to {{#limit}}`,"bigint.multiple":`"{{#label}}" must be a multiple of {{#limit}}`,"bigint.negative":`"{{#label}}" must be a negative bigint`,"bigint.positive":`"{{#label}}" must be a positive bigint`},validate(e,{error:t}){return typeof e==`bigint`?{value:e}:{value:e,errors:t(`bigint.base`,{value:String(e)})}},rules:{compare:{method:!1,validate(e,t,{limit:n},{name:r,operator:i}){let a=mr(e.toString()),o=mr(n.toString()),s=hr(a,o,i);return s?e:t.error(`bigint.`+r,{limit:n.toString(),value:e.toString()})},args:[{name:`limit`,ref:!0,assert:e=>typeof e==`bigint`,message:`must be a bigint`}]},greater:{method(e){return this.$_addRule({name:`greater`,method:`compare`,args:{limit:e},operator:`>`})}},less:{method(e){return this.$_addRule({name:`less`,method:`compare`,args:{limit:e},operator:`<`})}},max:{method(e){return this.$_addRule({name:`max`,method:`compare`,args:{limit:e},operator:`<=`})}},min:{method(e){return this.$_addRule({name:`min`,method:`compare`,args:{limit:e},operator:`>=`})}},multiple:{method(e){return this.$_addRule({name:`multiple`,method:`compare`,args:{limit:e},operator:`multiple`})}},negative:{method(){return this.$_addRule(`negative`)},validate(e,t){return e>=0n?t.error(`bigint.negative`,{value:e.toString()}):e}},positive:{method(){return this.$_addRule(`positive`)},validate(e,t){return e<=0n?t.error(`bigint.positive`,{value:e.toString()}):e}}},cast:{string:{from:e=>typeof e==`bigint`,to(e){return e.toString()}}}}};var _r=class extends Error{},vr=class extends _r{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},yr=class extends _r{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},br=class extends _r{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},xr=class extends _r{},Sr=class extends _r{constructor(e){super(`Invalid unit ${e}`)}},Cr=class extends _r{},wr=class extends _r{constructor(){super(`Zone is an abstract class`)}};const G=`numeric`,Tr=`short`,Er=`long`,Dr={year:G,month:G,day:G},Or={year:G,month:Tr,day:G},kr={year:G,month:Tr,day:G,weekday:Tr},Ar={year:G,month:Er,day:G},jr={year:G,month:Er,day:G,weekday:Er},Mr={hour:G,minute:G},Nr={hour:G,minute:G,second:G},Pr={hour:G,minute:G,second:G,timeZoneName:Tr},Fr={hour:G,minute:G,second:G,timeZoneName:Er},Ir={hour:G,minute:G,hourCycle:`h23`},Lr={hour:G,minute:G,second:G,hourCycle:`h23`},Rr={hour:G,minute:G,second:G,hourCycle:`h23`,timeZoneName:Tr},zr={hour:G,minute:G,second:G,hourCycle:`h23`,timeZoneName:Er},Br={year:G,month:G,day:G,hour:G,minute:G},Vr={year:G,month:G,day:G,hour:G,minute:G,second:G},Hr={year:G,month:Tr,day:G,hour:G,minute:G},Ur={year:G,month:Tr,day:G,hour:G,minute:G,second:G},Wr={year:G,month:Tr,day:G,weekday:Tr,hour:G,minute:G},Gr={year:G,month:Er,day:G,hour:G,minute:G,timeZoneName:Tr},Kr={year:G,month:Er,day:G,hour:G,minute:G,second:G,timeZoneName:Tr},qr={year:G,month:Er,day:G,weekday:Er,hour:G,minute:G,timeZoneName:Er},Jr={year:G,month:Er,day:G,weekday:Er,hour:G,minute:G,second:G,timeZoneName:Er};var Yr=class{get type(){throw new wr}get name(){throw new wr}get ianaName(){return this.name}get isUniversal(){throw new wr}offsetName(e,t){throw new wr}formatOffset(e,t){throw new wr}offset(e){throw new wr}equals(e){throw new wr}get isValid(){throw new wr}};let Xr=null;var Zr=class e extends Yr{static get instance(){return Xr===null&&(Xr=new e),Xr}get type(){return`system`}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Fa(e,t,n)}formatOffset(e,t){return za(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type===`system`}get isValid(){return!0}};const Qr=new Map;function $r(e){let t=Qr.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:e,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,era:`short`}),Qr.set(e,t)),t}const ei={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function ti(e,t){let n=e.format(t).replace(/\u200E/g,``),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,a,o,s,c,l,u]=r;return[o,i,a,s,c,l,u]}function ni(e,t){let n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){let{type:t,value:i}=n[e],a=ei[t];t===`era`?r[a]=i:J(a)||(r[a]=parseInt(i,10))}return r}const ri=new Map;var ii=class e extends Yr{static create(t){let n=ri.get(t);return n===void 0&&ri.set(t,n=new e(t)),n}static resetCache(){ri.clear(),Qr.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:e}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return`iana`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Fa(e,t,n,this.name)}formatOffset(e,t){return za(this.offset(e),t)}offset(e){if(!this.valid)return NaN;let t=new Date(e);if(isNaN(t))return NaN;let n=$r(this.name),[r,i,a,o,s,c,l]=n.formatToParts?ni(n,t):ti(n,t);o===`BC`&&(r=-Math.abs(r)+1);let u=s===24?0:s,d=ja({year:r,month:i,day:a,hour:u,minute:c,second:l,millisecond:0}),f=+t,p=f%1e3;return f-=p>=0?p:1e3+p,(d-f)/(60*1e3)}equals(e){return e.type===`iana`&&e.name===this.name}get isValid(){return this.valid}};let ai={};function oi(e,t={}){let n=JSON.stringify([e,t]),r=ai[n];return r||(r=new Intl.ListFormat(e,t),ai[n]=r),r}const si=new Map;function ci(e,t={}){let n=JSON.stringify([e,t]),r=si.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),si.set(n,r)),r}const li=new Map;function ui(e,t={}){let n=JSON.stringify([e,t]),r=li.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),li.set(n,r)),r}const di=new Map;function fi(e,t={}){let{base:n,...r}=t,i=JSON.stringify([e,r]),a=di.get(i);return a===void 0&&(a=new Intl.RelativeTimeFormat(e,t),di.set(i,a)),a}let pi=null;function mi(){return pi||(pi=new Intl.DateTimeFormat().resolvedOptions().locale,pi)}const hi=new Map;function gi(e){let t=hi.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),hi.set(e,t)),t}const _i=new Map;function vi(e){let t=_i.get(e);if(!t){let n=new Intl.Locale(e);t=`getWeekInfo`in n?n.getWeekInfo():n.weekInfo,`minimalDays`in t||(t={...Oi,...t}),_i.set(e,t)}return t}function yi(e){let t=e.indexOf(`-x-`);t!==-1&&(e=e.substring(0,t));let n=e.indexOf(`-u-`);if(n===-1)return[e];{let t,r;try{t=ci(e).resolvedOptions(),r=e}catch{let i=e.substring(0,n);t=ci(i).resolvedOptions(),r=i}let{numberingSystem:i,calendar:a}=t;return[r,i,a]}}function bi(e,t,n){return n||t?(e.includes(`-u-`)||(e+=`-u`),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}function xi(e){let t=[];for(let n=1;n<=12;n++){let r=Z.utc(2009,n,1);t.push(e(r))}return t}function Si(e){let t=[];for(let n=1;n<=7;n++){let r=Z.utc(2016,11,13+n);t.push(e(r))}return t}function Ci(e,t,n,r){let i=e.listingMode();return i===`error`?null:i===`en`?n(t):r(t)}function wi(e){return e.numberingSystem&&e.numberingSystem!==`latn`?!1:e.numberingSystem===`latn`||!e.locale||e.locale.startsWith(`en`)||gi(e.locale).numberingSystem===`latn`}var Ti=class{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:r,floor:i,...a}=n;if(!t||Object.keys(a).length>0){let t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=ui(e,t)}}format(e){if(this.inf){let t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{let t=this.floor?Math.floor(e):Da(e,3);return Y(t,this.padTo)}}},Ei=class{constructor(e,t,n){this.opts=n,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type===`fixed`){let t=-1*(e.offset/60),n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;e.offset!==0&&ii.create(n).valid?(r=n,this.dt=e):(r=`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,r=e.zone.name):(r=`UTC`,this.dt=e.setZone(`UTC`).plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=ci(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(``):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if(e.type===`timeZoneName`){let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},Di=class{constructor(e,t,n){this.opts={style:`long`,...n},!t&&ha()&&(this.rtf=fi(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):io(t,e,this.opts.numeric,this.opts.style!==`long`)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}};const Oi={firstDay:1,minimalDays:4,weekend:[6,7]};var K=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,i,a=!1){let o=t||q.defaultLocale,s=o||(a?`en-US`:mi()),c=n||q.defaultNumberingSystem,l=r||q.defaultOutputCalendar,u=xa(i)||q.defaultWeekSettings;return new e(s,c,l,u,o)}static resetCache(){pi=null,si.clear(),li.clear(),di.clear(),hi.clear(),_i.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return e.create(t,n,r,i)}constructor(e,t,n,r,i){let[a,o,s]=yi(e);this.locale=a,this.numberingSystem=t||o||null,this.outputCalendar=n||s||null,this.weekSettings=r,this.intl=bi(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached??=wi(this),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem===`latn`)&&(this.outputCalendar===null||this.outputCalendar===`gregory`);return e&&t?`en`:`intl`}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,xa(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Ci(this,e,Wa,()=>{let n=this.intl===`ja`||this.intl.startsWith(`ja-`);t&=!n;let r=t?{month:e,day:`numeric`}:{month:e},i=t?`format`:`standalone`;if(!this.monthsCache[i][e]){let t=n?e=>this.dtFormatter(e,r).format():e=>this.extract(e,r,`month`);this.monthsCache[i][e]=xi(t)}return this.monthsCache[i][e]})}weekdays(e,t=!1){return Ci(this,e,Ja,()=>{let n=t?{weekday:e,year:`numeric`,month:`long`,day:`numeric`}:{weekday:e},r=t?`format`:`standalone`;return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=Si(e=>this.extract(e,n,`weekday`))),this.weekdaysCache[r][e]})}meridiems(){return Ci(this,void 0,()=>Ya,()=>{if(!this.meridiemCache){let e={hour:`numeric`,hourCycle:`h12`};this.meridiemCache=[Z.utc(2016,11,13,9),Z.utc(2016,11,13,19)].map(t=>this.extract(t,e,`dayperiod`))}return this.meridiemCache})}eras(e){return Ci(this,e,$a,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[Z.utc(-40,1,1),Z.utc(2017,1,1)].map(e=>this.extract(e,t,`era`))),this.eraCache[e]})}extract(e,t,n){let r=this.dtFormatter(e,t),i=r.formatToParts(),a=i.find(e=>e.type.toLowerCase()===n);return a?a.value:null}numberFormatter(e={}){return new Ti(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Ei(e,this.intl,t)}relFormatter(e={}){return new Di(this.intl,this.isEnglish(),e)}listFormatter(e={}){return oi(this.intl,e)}isEnglish(){return this.locale===`en`||this.locale.toLowerCase()===`en-us`||gi(this.intl).locale.startsWith(`en-us`)}getWeekSettings(){return this.weekSettings?this.weekSettings:ga()?vi(this.locale):Oi}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 ki=null;var Ai=class e extends Yr{static get utcInstance(){return ki===null&&(ki=new e(0)),ki}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(Ia(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return`fixed`}get name(){return this.fixed===0?`UTC`:`UTC${za(this.fixed,`narrow`)}`}get ianaName(){return this.fixed===0?`Etc/UTC`:`Etc/GMT${za(-this.fixed,`narrow`)}`}offsetName(){return this.name}formatOffset(e,t){return za(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}},ji=class extends Yr{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 Mi(e,t){let n;if(J(e)||e===null)return t;if(e instanceof Yr)return e;if(pa(e)){let n=e.toLowerCase();return n===`default`?t:n===`local`||n===`system`?Zr.instance:n===`utc`||n===`gmt`?Ai.utcInstance:Ai.parseSpecifier(n)||ii.create(e)}else if(da(e))return Ai.instance(e);else if(typeof e==`object`&&`offset`in e&&typeof e.offset==`function`)return e;else return new ji(e)}const Ni={arab:`[٠-٩]`,arabext:`[۰-۹]`,bali:`[᭐-᭙]`,beng:`[০-৯]`,deva:`[०-९]`,fullwide:`[0-9]`,gujr:`[૦-૯]`,hanidec:`[〇|一|二|三|四|五|六|七|八|九]`,khmr:`[០-៩]`,knda:`[೦-೯]`,laoo:`[໐-໙]`,limb:`[᥆-᥏]`,mlym:`[൦-൯]`,mong:`[᠐-᠙]`,mymr:`[၀-၉]`,orya:`[୦-୯]`,tamldec:`[௦-௯]`,telu:`[౦-౯]`,thai:`[๐-๙]`,tibt:`[༠-༩]`,latn:`\\d`},Pi={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]},Fi=Ni.hanidec.replace(/[\[|\]]/g,``).split(``);function Ii(e){let t=parseInt(e,10);if(isNaN(t)){t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(e[n].search(Ni.hanidec)!==-1)t+=Fi.indexOf(e[n]);else for(let e in Pi){let[n,i]=Pi[e];r>=n&&r<=i&&(t+=r-n)}}return parseInt(t,10)}else return t}const Li=new Map;function Ri(){Li.clear()}function zi({numberingSystem:e},t=``){let n=e||`latn`,r=Li.get(n);r===void 0&&(r=new Map,Li.set(n,r));let i=r.get(t);return i===void 0&&(i=RegExp(`${Ni[n]}${t}`),r.set(t,i)),i}let Bi=()=>Date.now(),Vi=`system`,Hi=null,Ui=null,Wi=null,Gi=60,Ki,qi=null;var q=class{static get now(){return Bi}static set now(e){Bi=e}static set defaultZone(e){Vi=e}static get defaultZone(){return Mi(Vi,Zr.instance)}static get defaultLocale(){return Hi}static set defaultLocale(e){Hi=e}static get defaultNumberingSystem(){return Ui}static set defaultNumberingSystem(e){Ui=e}static get defaultOutputCalendar(){return Wi}static set defaultOutputCalendar(e){Wi=e}static get defaultWeekSettings(){return qi}static set defaultWeekSettings(e){qi=xa(e)}static get twoDigitCutoffYear(){return Gi}static set twoDigitCutoffYear(e){Gi=e%100}static get throwOnInvalid(){return Ki}static set throwOnInvalid(e){Ki=e}static resetCaches(){K.resetCache(),ii.resetCache(),Z.resetCache(),Ri()}},Ji=class{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const Yi=[0,31,59,90,120,151,181,212,243,273,304,334],Xi=[0,31,60,91,121,152,182,213,244,274,305,335];function Zi(e,t){return new Ji(`unit out of range`,`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Qi(e,t,n){let r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);let i=r.getUTCDay();return i===0?7:i}function $i(e,t,n){return n+(Oa(e)?Xi:Yi)[t-1]}function ea(e,t){let n=Oa(e)?Xi:Yi,r=n.findIndex(e=>e<t),i=t-n[r];return{month:r+1,day:i}}function ta(e,t){return(e-t+7)%7+1}function na(e,t=4,n=1){let{year:r,month:i,day:a}=e,o=$i(r,i,a),s=ta(Qi(r,i,a),n),c=Math.floor((o-s+14-t)/7),l;return c<1?(l=r-1,c=Na(l,t,n)):c>Na(r,t,n)?(l=r+1,c=1):l=r,{weekYear:l,weekNumber:c,weekday:s,...Ba(e)}}function ra(e,t=4,n=1){let{weekYear:r,weekNumber:i,weekday:a}=e,o=ta(Qi(r,1,t),n),s=ka(r),c=i*7+a-o-7+t,l;c<1?(l=r-1,c+=ka(l)):c>s?(l=r+1,c-=ka(r)):l=r;let{month:u,day:d}=ea(l,c);return{year:l,month:u,day:d,...Ba(e)}}function ia(e){let{year:t,month:n,day:r}=e,i=$i(t,n,r);return{year:t,ordinal:i,...Ba(e)}}function aa(e){let{year:t,ordinal:n}=e,{month:r,day:i}=ea(t,n);return{year:t,month:r,day:i,...Ba(e)}}function oa(e,t){let n=!J(e.localWeekday)||!J(e.localWeekNumber)||!J(e.localWeekYear);if(n){let n=!J(e.weekday)||!J(e.weekNumber)||!J(e.weekYear);if(n)throw new xr(`Cannot mix locale-based week fields with ISO-based week fields`);return J(e.localWeekday)||(e.weekday=e.localWeekday),J(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),J(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function sa(e,t=4,n=1){let r=fa(e.weekYear),i=Sa(e.weekNumber,1,Na(e.weekYear,t,n)),a=Sa(e.weekday,1,7);return r?i?a?!1:Zi(`weekday`,e.weekday):Zi(`week`,e.weekNumber):Zi(`weekYear`,e.weekYear)}function ca(e){let t=fa(e.year),n=Sa(e.ordinal,1,ka(e.year));return t?n?!1:Zi(`ordinal`,e.ordinal):Zi(`year`,e.year)}function la(e){let t=fa(e.year),n=Sa(e.month,1,12),r=Sa(e.day,1,Aa(e.year,e.month));return t?n?r?!1:Zi(`day`,e.day):Zi(`month`,e.month):Zi(`year`,e.year)}function ua(e){let{hour:t,minute:n,second:r,millisecond:i}=e,a=Sa(t,0,23)||t===24&&n===0&&r===0&&i===0,o=Sa(n,0,59),s=Sa(r,0,59),c=Sa(i,0,999);return a?o?s?c?!1:Zi(`millisecond`,i):Zi(`second`,r):Zi(`minute`,n):Zi(`hour`,t)}function J(e){return e===void 0}function da(e){return typeof e==`number`}function fa(e){return typeof e==`number`&&e%1==0}function pa(e){return typeof e==`string`}function ma(e){return Object.prototype.toString.call(e)===`[object Date]`}function ha(){try{return typeof Intl<`u`&&!!Intl.RelativeTimeFormat}catch{return!1}}function ga(){try{return typeof Intl<`u`&&!!Intl.Locale&&(`weekInfo`in Intl.Locale.prototype||`getWeekInfo`in Intl.Locale.prototype)}catch{return!1}}function _a(e){return Array.isArray(e)?e:[e]}function va(e,t,n){if(e.length!==0)return e.reduce((e,r)=>{let i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function ya(e,t){return t.reduce((t,n)=>(t[n]=e[n],t),{})}function ba(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function xa(e){if(e==null)return null;if(typeof e!=`object`)throw new Cr(`Week settings must be an object`);if(!Sa(e.firstDay,1,7)||!Sa(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!Sa(e,1,7)))throw new Cr(`Invalid week settings`);return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Sa(e,t,n){return fa(e)&&e>=t&&e<=n}function Ca(e,t){return e-t*Math.floor(e/t)}function Y(e,t=2){let n=e<0,r;return r=n?`-`+(``+-e).padStart(t,`0`):(``+e).padStart(t,`0`),r}function wa(e){if(!(J(e)||e===null||e===``))return parseInt(e,10)}function Ta(e){if(!(J(e)||e===null||e===``))return parseFloat(e)}function Ea(e){if(!(J(e)||e===null||e===``)){let t=parseFloat(`0.`+e)*1e3;return Math.floor(t)}}function Da(e,t,n=`round`){let r=10**t;switch(n){case`expand`:return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case`trunc`:return Math.trunc(e*r)/r;case`round`:return Math.round(e*r)/r;case`floor`:return Math.floor(e*r)/r;case`ceil`:return Math.ceil(e*r)/r;default:throw RangeError(`Value rounding ${n} is out of range`)}}function Oa(e){return e%4==0&&(e%100!=0||e%400==0)}function ka(e){return Oa(e)?366:365}function Aa(e,t){let n=Ca(t-1,12)+1,r=e+(t-n)/12;return n===2?Oa(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function ja(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Ma(e,t,n){let r=ta(Qi(e,1,t),n);return-r+t-1}function Na(e,t=4,n=1){let r=Ma(e,t,n),i=Ma(e+1,t,n);return(ka(e)-r+i)/7}function Pa(e){return e>99?e:e>q.twoDigitCutoffYear?1900+e:2e3+e}function Fa(e,t,n,r=null){let i=new Date(e),a={hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`};r&&(a.timeZone=r);let o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(n,o).formatToParts(i).find(e=>e.type.toLowerCase()===`timezonename`);return s?s.value:null}function Ia(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);let r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function La(e){let t=Number(e);if(typeof e==`boolean`||e===``||!Number.isFinite(t))throw new Cr(`Invalid unit value ${e}`);return t}function Ra(e,t){let n={};for(let r in e)if(ba(e,r)){let i=e[r];if(i==null)continue;n[t(r)]=La(i)}return n}function za(e,t){let n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?`+`:`-`;switch(t){case`short`:return`${i}${Y(n,2)}:${Y(r,2)}`;case`narrow`:return`${i}${n}${r>0?`:${r}`:``}`;case`techie`:return`${i}${Y(n,2)}${Y(r,2)}`;default:throw RangeError(`Value format ${t} is out of range for property format`)}}function Ba(e){return ya(e,[`hour`,`minute`,`second`,`millisecond`])}const Va=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Ha=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],Ua=[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`];function Wa(e){switch(e){case`narrow`:return[...Ua];case`short`:return[...Ha];case`long`:return[...Va];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 Ga=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],Ka=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],qa=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function Ja(e){switch(e){case`narrow`:return[...qa];case`short`:return[...Ka];case`long`:return[...Ga];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`];default:return null}}const Ya=[`AM`,`PM`],Xa=[`Before Christ`,`Anno Domini`],Za=[`BC`,`AD`],Qa=[`B`,`A`];function $a(e){switch(e){case`narrow`:return[...Qa];case`short`:return[...Za];case`long`:return[...Xa];default:return null}}function eo(e){return Ya[e.hour<12?0:1]}function to(e,t){return Ja(t)[e.weekday-1]}function no(e,t){return Wa(t)[e.month-1]}function ro(e,t){return $a(t)[e.year<0?0:1]}function io(e,t,n=`always`,r=!1){let i={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(e)===-1;if(n===`auto`&&a){let n=e===`days`;switch(t){case 1:return n?`tomorrow`:`next ${i[e][0]}`;case-1:return n?`yesterday`:`last ${i[e][0]}`;case 0:return n?`today`:`this ${i[e][0]}`;default:}}let o=Object.is(t,-0)||t<0,s=Math.abs(t),c=s===1,l=i[e],u=r?c?l[1]:l[2]||l[1]:c?i[e][0]:e;return o?`${s} ${u} ago`:`in ${s} ${u}`}function ao(e,t){let n=``;for(let r of e)r.literal?n+=r.val:n+=t(r.val);return n}const oo={D:Dr,DD:Or,DDD:Ar,DDDD:jr,t:Mr,tt:Nr,ttt:Pr,tttt:Fr,T:Ir,TT:Lr,TTT:Rr,TTTT:zr,f:Br,ff:Hr,fff:Gr,ffff:qr,F:Vr,FF:Ur,FFF:Kr,FFFF:Jr};var so=class e{static create(t,n={}){return new e(t,n)}static parseFormat(e){let t=null,n=``,r=!1,i=[];for(let a=0;a<e.length;a++){let o=e.charAt(a);o===`'`?((n.length>0||r)&&i.push({literal:r||/^\s+$/.test(n),val:n===``?`'`:n}),t=null,n=``,r=!r):r||o===t?n+=o:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=o,t=o)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return oo[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem());let n=this.systemLoc.dtFormatter(e,{...this.opts,...t});return n.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){let n=this.dtFormatter(e.start,t);return n.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return Y(e,t);let r={...this.opts};return t>0&&(r.padTo=t),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(t,n){let r=this.loc.listingMode()===`en`,i=this.loc.outputCalendar&&this.loc.outputCalendar!==`gregory`,a=(e,n)=>this.loc.extract(t,e,n),o=e=>t.isOffsetFixed&&t.offset===0&&e.allowZ?`Z`:t.isValid?t.zone.formatOffset(t.ts,e.format):``,s=()=>r?eo(t):a({hour:`numeric`,hourCycle:`h12`},`dayperiod`),c=(e,n)=>r?no(t,e):a(n?{month:e}:{month:e,day:`numeric`},`month`),l=(e,n)=>r?to(t,e):a(n?{weekday:e}:{weekday:e,month:`long`,day:`numeric`},`weekday`),u=n=>{let r=e.macroTokenToFormatOpts(n);return r?this.formatWithSystemDefault(t,r):n},d=e=>r?ro(t,e):a({era:e},`era`),f=e=>{switch(e){case`S`:return this.num(t.millisecond);case`u`:case`SSS`:return this.num(t.millisecond,3);case`s`:return this.num(t.second);case`ss`:return this.num(t.second,2);case`uu`:return this.num(Math.floor(t.millisecond/10),2);case`uuu`:return this.num(Math.floor(t.millisecond/100));case`m`:return this.num(t.minute);case`mm`:return this.num(t.minute,2);case`h`:return this.num(t.hour%12==0?12:t.hour%12);case`hh`:return this.num(t.hour%12==0?12:t.hour%12,2);case`H`:return this.num(t.hour);case`HH`:return this.num(t.hour,2);case`Z`:return o({format:`narrow`,allowZ:this.opts.allowZ});case`ZZ`:return o({format:`short`,allowZ:this.opts.allowZ});case`ZZZ`:return o({format:`techie`,allowZ:this.opts.allowZ});case`ZZZZ`:return t.zone.offsetName(t.ts,{format:`short`,locale:this.loc.locale});case`ZZZZZ`:return t.zone.offsetName(t.ts,{format:`long`,locale:this.loc.locale});case`z`:return t.zoneName;case`a`:return s();case`d`:return i?a({day:`numeric`},`day`):this.num(t.day);case`dd`:return i?a({day:`2-digit`},`day`):this.num(t.day,2);case`c`:return this.num(t.weekday);case`ccc`:return l(`short`,!0);case`cccc`:return l(`long`,!0);case`ccccc`:return l(`narrow`,!0);case`E`:return this.num(t.weekday);case`EEE`:return l(`short`,!1);case`EEEE`:return l(`long`,!1);case`EEEEE`:return l(`narrow`,!1);case`L`:return i?a({month:`numeric`,day:`numeric`},`month`):this.num(t.month);case`LL`:return i?a({month:`2-digit`,day:`numeric`},`month`):this.num(t.month,2);case`LLL`:return c(`short`,!0);case`LLLL`:return c(`long`,!0);case`LLLLL`:return c(`narrow`,!0);case`M`:return i?a({month:`numeric`},`month`):this.num(t.month);case`MM`:return i?a({month:`2-digit`},`month`):this.num(t.month,2);case`MMM`:return c(`short`,!1);case`MMMM`:return c(`long`,!1);case`MMMMM`:return c(`narrow`,!1);case`y`:return i?a({year:`numeric`},`year`):this.num(t.year);case`yy`:return i?a({year:`2-digit`},`year`):this.num(t.year.toString().slice(-2),2);case`yyyy`:return i?a({year:`numeric`},`year`):this.num(t.year,4);case`yyyyyy`:return i?a({year:`numeric`},`year`):this.num(t.year,6);case`G`:return d(`short`);case`GG`:return d(`long`);case`GGGGG`:return d(`narrow`);case`kk`:return this.num(t.weekYear.toString().slice(-2),2);case`kkkk`:return this.num(t.weekYear,4);case`W`:return this.num(t.weekNumber);case`WW`:return this.num(t.weekNumber,2);case`n`:return this.num(t.localWeekNumber);case`nn`:return this.num(t.localWeekNumber,2);case`ii`:return this.num(t.localWeekYear.toString().slice(-2),2);case`iiii`:return this.num(t.localWeekYear,4);case`o`:return this.num(t.ordinal);case`ooo`:return this.num(t.ordinal,3);case`q`:return this.num(t.quarter);case`qq`:return this.num(t.quarter,2);case`X`:return this.num(Math.floor(t.ts/1e3));case`x`:return this.num(t.ts);default:return u(e)}};return ao(e.parseFormat(n),f)}formatDurationFromString(t,n){let r=this.opts.signMode===`negativeLargestOnly`?-1:1,i=e=>{switch(e[0]){case`S`:return`milliseconds`;case`s`:return`seconds`;case`m`:return`minutes`;case`h`:return`hours`;case`d`:return`days`;case`w`:return`weeks`;case`M`:return`months`;case`y`:return`years`;default:return null}},a=(e,t)=>n=>{let a=i(n);if(a){let i=t.isNegativeDuration&&a!==t.largestUnit?r:1,o;return o=this.opts.signMode===`negativeLargestOnly`&&a!==t.largestUnit?`never`:this.opts.signMode===`all`?`always`:`auto`,this.num(e.get(a)*i,n.length,o)}else return n},o=e.parseFormat(n),s=o.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]),c=t.shiftTo(...s.map(i).filter(e=>e)),l={isNegativeDuration:c<0,largestUnit:Object.keys(c.values)[0]};return ao(o,a(c,l))}};const co=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function lo(...e){let t=e.reduce((e,t)=>e+t.source,``);return RegExp(`^${t}$`)}function uo(...e){return t=>e.reduce(([e,n,r],i)=>{let[a,o,s]=i(t,r);return[{...e,...a},o||n,s]},[{},null,1]).slice(0,2)}function fo(e,...t){if(e==null)return[null,null];for(let[n,r]of t){let t=n.exec(e);if(t)return r(t)}return[null,null]}function po(...e){return(t,n)=>{let r={},i;for(i=0;i<e.length;i++)r[e[i]]=wa(t[n+i]);return[r,null,n+i]}}const mo=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,ho=`(?:${mo.source}?(?:\\[(${co.source})\\])?)?`,go=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,_o=RegExp(`${go.source}${ho}`),vo=RegExp(`(?:[Tt]${_o.source})?`),yo=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,bo=/(\d{4})-?W(\d\d)(?:-?(\d))?/,xo=/(\d{4})-?(\d{3})/,So=po(`weekYear`,`weekNumber`,`weekDay`),Co=po(`year`,`ordinal`),wo=/(\d{4})-(\d\d)-(\d\d)/,To=RegExp(`${go.source} ?(?:${mo.source}|(${co.source}))?`),Eo=RegExp(`(?: ${To.source})?`);function Do(e,t,n){let r=e[t];return J(r)?n:wa(r)}function Oo(e,t){let n={year:Do(e,t),month:Do(e,t+1,1),day:Do(e,t+2,1)};return[n,null,t+3]}function ko(e,t){let n={hours:Do(e,t,0),minutes:Do(e,t+1,0),seconds:Do(e,t+2,0),milliseconds:Ea(e[t+3])};return[n,null,t+4]}function Ao(e,t){let n=!e[t]&&!e[t+1],r=Ia(e[t+1],e[t+2]),i=n?null:Ai.instance(r);return[{},i,t+3]}function jo(e,t){let n=e[t]?ii.create(e[t]):null;return[{},n,t+1]}const Mo=RegExp(`^T?${go.source}$`),No=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Po(e){let[t,n,r,i,a,o,s,c,l]=e,u=t[0]===`-`,d=c&&c[0]===`-`,f=(e,t=!1)=>e!==void 0&&(t||e&&u)?-e:e;return[{years:f(Ta(n)),months:f(Ta(r)),weeks:f(Ta(i)),days:f(Ta(a)),hours:f(Ta(o)),minutes:f(Ta(s)),seconds:f(Ta(c),c===`-0`),milliseconds:f(Ea(l),d)}]}const Fo={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 Io(e,t,n,r,i,a,o){let s={year:t.length===2?Pa(wa(t)):wa(t),month:Ha.indexOf(n)+1,day:wa(r),hour:wa(i),minute:wa(a)};return o&&(s.second=wa(o)),e&&(s.weekday=e.length>3?Ga.indexOf(e)+1:Ka.indexOf(e)+1),s}const Lo=/^(?:(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 Ro(e){let[,t,n,r,i,a,o,s,c,l,u,d]=e,f=Io(t,i,r,n,a,o,s),p;return p=c?Fo[c]:l?0:Ia(u,d),[f,new Ai(p)]}function zo(e){return e.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).trim()}const Bo=/^(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$/,Vo=/^(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$/,Ho=/^(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 Uo(e){let[,t,n,r,i,a,o,s]=e,c=Io(t,i,r,n,a,o,s);return[c,Ai.utcInstance]}function Wo(e){let[,t,n,r,i,a,o,s]=e,c=Io(t,s,n,r,i,a,o);return[c,Ai.utcInstance]}const Go=lo(yo,vo),Ko=lo(bo,vo),qo=lo(xo,vo),Jo=lo(_o),Yo=uo(Oo,ko,Ao,jo),Xo=uo(So,ko,Ao,jo),Zo=uo(Co,ko,Ao,jo),Qo=uo(ko,Ao,jo);function $o(e){return fo(e,[Go,Yo],[Ko,Xo],[qo,Zo],[Jo,Qo])}function es(e){return fo(zo(e),[Lo,Ro])}function ts(e){return fo(e,[Bo,Uo],[Vo,Uo],[Ho,Wo])}function ns(e){return fo(e,[No,Po])}const rs=uo(ko);function os(e){return fo(e,[Mo,rs])}const ss=lo(wo,Eo),cs=lo(To),ls=uo(ko,Ao,jo);function us(e){return fo(e,[ss,Yo],[cs,ls])}const ds=`Invalid Duration`,fs={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}},ps={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},...fs},ms=146097/400,hs=146097/4800,gs={years:{quarters:4,months:12,weeks:ms/7,days:ms,hours:ms*24,minutes:ms*24*60,seconds:ms*24*60*60,milliseconds:ms*24*60*60*1e3},quarters:{months:3,weeks:ms/28,days:ms/4,hours:ms*24/4,minutes:ms*24*60/4,seconds:ms*24*60*60/4,milliseconds:ms*24*60*60*1e3/4},months:{weeks:hs/7,days:hs,hours:hs*24,minutes:hs*24*60,seconds:hs*24*60*60,milliseconds:hs*24*60*60*1e3},...fs},_s=[`years`,`quarters`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`],vs=_s.slice(0).reverse();function ys(e,t,n=!1){let r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Cs(r)}function bs(e,t){let n=t.milliseconds??0;for(let r of vs.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function xs(e,t){let n=bs(e,t)<0?-1:1;_s.reduceRight((r,i)=>{if(J(t[i]))return r;if(r){let a=t[r]*n,o=e[i][r],s=Math.floor(a/o);t[i]+=s*n,t[r]-=s*o*n}return i},null),_s.reduce((n,r)=>{if(J(t[r]))return n;if(n){let i=t[n]%1;t[n]-=i,t[r]+=i*e[n][r]}return r},null)}function Ss(e){let t={};for(let[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}var Cs=class e{constructor(e){let t=e.conversionAccuracy===`longterm`||!1,n=t?gs:ps;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||K.create(),this.conversionAccuracy=t?`longterm`:`casual`,this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,n){return e.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(typeof t!=`object`||!t)throw new Cr(`Duration.fromObject: argument expected to be an object, got ${t===null?`null`:typeof t}`);return new e({values:Ra(t,e.normalizeUnit),loc:K.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(da(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t==`object`)return e.fromObject(t);throw new Cr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){let[r]=ns(t);return r?e.fromObject(r,n):e.invalid(`unparsable`,`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){let[r]=os(t);return r?e.fromObject(r,n):e.invalid(`unparsable`,`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new Cr(`need to specify a reason the Duration is invalid`);let r=t instanceof Ji?t:new Ji(t,n);if(q.throwOnInvalid)throw new br(r);return new e({invalid:r})}static normalizeUnit(e){let 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 Sr(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={}){let n={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?so.create(this.loc,n).formatDurationFromString(this,e):ds}toHuman(e={}){if(!this.isValid)return ds;let t=e.showZeros!==!1,n=_s.map(n=>{let r=this.values[n];return J(r)||r===0&&!t?null:this.loc.numberFormatter({style:`unit`,unitDisplay:`long`,...e,unit:n.slice(0,-1)}).format(r)}).filter(e=>e);return this.loc.listFormatter({type:`conjunction`,style:e.listStyle||`narrow`,...e}).format(n)}toObject(){return this.isValid?{...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+=Da(this.seconds+this.milliseconds/1e3,3)+`S`),e===`P`&&(e+=`T0S`),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:`extended`,...e,includeOffset:!1};let n=Z.fromMillis(t,{zone:`UTC`});return n.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?bs(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t),r={};for(let e of _s)(ba(n.values,e)||ba(this.values,e))&&(r[e]=n.get(e)+this.get(e));return ys(this,{values:r},!0)}minus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=La(e(this.values[n],n));return ys(this,{values:t},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let n={...this.values,...Ra(t,e.normalizeUnit)};return ys(this,{values:n})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){let i=this.loc.clone({locale:e,numberingSystem:t}),a={loc:i,matrix:r,conversionAccuracy:n};return ys(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return xs(this.matrix,e),ys(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=Ss(this.normalize().shiftToAll().toObject());return ys(this,{values:e},!0)}shiftTo(...t){if(!this.isValid||t.length===0)return this;t=t.map(t=>e.normalizeUnit(t));let n={},r={},i=this.toObject(),a;for(let e of _s)if(t.indexOf(e)>=0){a=e;let t=0;for(let n in r)t+=this.matrix[n][e]*r[n],r[n]=0;da(i[e])&&(t+=i[e]);let o=Math.trunc(t);n[e]=o,r[e]=(t*1e3-o*1e3)/1e3}else da(i[e])&&(r[e]=i[e]);for(let e in r)r[e]!==0&&(n[a]+=e===a?r[e]:r[e]/this.matrix[a][e]);return xs(this.matrix,n),ys(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo(`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return ys(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=Ss(this.values);return ys(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(e,t){return e===void 0||e===0?t===void 0||t===0:e===t}for(let n of _s)if(!t(this.values[n],e.values[n]))return!1;return!0}};const ws=`Invalid Interval`;function Ts(e,t){return!e||!e.isValid?Es.invalid(`missing or invalid start`):!t||!t.isValid?Es.invalid(`missing or invalid end`):t<e?Es.invalid(`end before start`,`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var Es=class e{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new Cr(`need to specify a reason the Interval is invalid`);let r=t instanceof Ji?t:new Ji(t,n);if(q.throwOnInvalid)throw new yr(r);return new e({invalid:r})}static fromDateTimes(t,n){let r=kc(t),i=kc(n),a=Ts(r,i);return a??new e({start:r,end:i})}static after(t,n){let r=Cs.fromDurationLike(n),i=kc(t);return e.fromDateTimes(i,i.plus(r))}static before(t,n){let r=Cs.fromDurationLike(n),i=kc(t);return e.fromDateTimes(i.minus(r),i)}static fromISO(t,n){let[r,i]=(t||``).split(`/`,2);if(r&&i){let t,a;try{t=Z.fromISO(r,n),a=t.isValid}catch{a=!1}let o,s;try{o=Z.fromISO(i,n),s=o.isValid}catch{s=!1}if(a&&s)return e.fromDateTimes(t,o);if(a){let r=Cs.fromISO(i,n);if(r.isValid)return e.after(t,r)}else if(s){let t=Cs.fromISO(r,n);if(t.isValid)return e.before(o,t)}}return e.invalid(`unparsable`,`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e=`milliseconds`){return this.isValid?this.toDuration(e).get(e):NaN}count(e=`milliseconds`,t){if(!this.isValid)return NaN;let n=this.start.startOf(e,t),r;return r=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:t,end:n}={}){return this.isValid?e.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];let n=t.map(kc).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),r=[],{s:i}=this,a=0;for(;i<this.e;){let t=n[a]||this.e,o=+t>+this.e?this.e:t;r.push(e.fromDateTimes(i,o)),i=o,a+=1}return r}splitBy(t){let n=Cs.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as(`milliseconds`)===0)return[];let{s:r}=this,i=1,a,o=[];for(;r<this.e;){let t=this.start.plus(n.mapUnits(e=>e*i));a=+t>+this.e?this.e:t,o.push(e.fromDateTimes(r,a)),r=a,i+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(t){if(!this.isValid)return this;let n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:e.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;let n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,r)}static merge(e){let[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(t){let n=null,r=0,i=[],a=t.map(e=>[{time:e.s,type:`s`},{time:e.e,type:`e`}]),o=Array.prototype.concat(...a),s=o.sort((e,t)=>e.time-t.time);for(let t of s)r+=t.type===`s`?1:-1,r===1?n=t.time:(n&&+n!=+t.time&&i.push(e.fromDateTimes(n,t.time)),n=null);return e.merge(i)}difference(...t){return e.xor([this].concat(t)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:ws}[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=Dr,t={}){return this.isValid?so.create(this.s.loc.clone(t),e).formatInterval(this):ws}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ws}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ws}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ws}toFormat(e,{separator:t=` – `}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:ws}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Cs.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}},Ds=class{static hasDST(e=q.defaultZone){let t=Z.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return ii.isValidZone(e)}static normalizeZone(e){return Mi(e,q.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||K.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||K.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||K.create(e)).getWeekendDays().slice()}static months(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i=`gregory`}={}){return(r||K.create(t,n,i)).months(e)}static monthsFormat(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i=`gregory`}={}){return(r||K.create(t,n,i)).months(e,!0)}static weekdays(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||K.create(t,n,null)).weekdays(e)}static weekdaysFormat(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||K.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return K.create(e).meridiems()}static eras(e=`short`,{locale:t=null}={}){return K.create(t,null,`gregory`).eras(e)}static features(){return{relative:ha(),localeWeek:ga()}}};function Os(e,t){let n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf(`day`).valueOf(),r=n(t)-n(e);return Math.floor(Cs.fromMillis(r).as(`days`))}function ks(e,t,n){let r=[[`years`,(e,t)=>t.year-e.year],[`quarters`,(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],[`months`,(e,t)=>t.month-e.month+(t.year-e.year)*12],[`weeks`,(e,t)=>{let n=Os(e,t);return(n-n%7)/7}],[`days`,Os]],i={},a=e,o,s;for(let[c,l]of r)n.indexOf(c)>=0&&(o=c,i[c]=l(e,t),s=a.plus(i),s>t?(i[c]--,e=a.plus(i),e>t&&(s=e,i[c]--,e=a.plus(i))):e=s);return[e,i,s,o]}function As(e,t,n,r){let[i,a,o,s]=ks(e,t,n),c=t-i,l=n.filter(e=>[`hours`,`minutes`,`seconds`,`milliseconds`].indexOf(e)>=0);l.length===0&&(o<t&&(o=i.plus({[s]:1})),o!==i&&(a[s]=(a[s]||0)+c/(o-i)));let u=Cs.fromObject(a,r);return l.length>0?Cs.fromMillis(c,r).shiftTo(...l).plus(u):u}const js=`missing Intl.DateTimeFormat.formatToParts support`;function X(e,t=e=>e){return{regex:e,deser:([e])=>t(Ii(e))}}const Ms=`\xA0`,Ns=`[ ${Ms}]`,Ps=new RegExp(Ns,`g`);function Fs(e){return e.replace(/\./g,`\\.?`).replace(Ps,Ns)}function Is(e){return e.replace(/\./g,``).replace(Ps,` `).toLowerCase()}function Ls(e,t){return e===null?null:{regex:RegExp(e.map(Fs).join(`|`)),deser:([n])=>e.findIndex(e=>Is(n)===Is(e))+t}}function Rs(e,t){return{regex:e,deser:([,e,t])=>Ia(e,t),groups:t}}function zs(e){return{regex:e,deser:([e])=>e}}function Bs(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,`\\$&`)}function Vs(e,t){let n=zi(t),r=zi(t,`{2}`),i=zi(t,`{3}`),a=zi(t,`{4}`),o=zi(t,`{6}`),s=zi(t,`{1,2}`),c=zi(t,`{1,3}`),l=zi(t,`{1,6}`),u=zi(t,`{1,9}`),d=zi(t,`{2,4}`),f=zi(t,`{4,6}`),p=e=>({regex:RegExp(Bs(e.val)),deser:([e])=>e,literal:!0}),m=m=>{if(e.literal)return p(m);switch(m.val){case`G`:return Ls(t.eras(`short`),0);case`GG`:return Ls(t.eras(`long`),0);case`y`:return X(l);case`yy`:return X(d,Pa);case`yyyy`:return X(a);case`yyyyy`:return X(f);case`yyyyyy`:return X(o);case`M`:return X(s);case`MM`:return X(r);case`MMM`:return Ls(t.months(`short`,!0),1);case`MMMM`:return Ls(t.months(`long`,!0),1);case`L`:return X(s);case`LL`:return X(r);case`LLL`:return Ls(t.months(`short`,!1),1);case`LLLL`:return Ls(t.months(`long`,!1),1);case`d`:return X(s);case`dd`:return X(r);case`o`:return X(c);case`ooo`:return X(i);case`HH`:return X(r);case`H`:return X(s);case`hh`:return X(r);case`h`:return X(s);case`mm`:return X(r);case`m`:return X(s);case`q`:return X(s);case`qq`:return X(r);case`s`:return X(s);case`ss`:return X(r);case`S`:return X(c);case`SSS`:return X(i);case`u`:return zs(u);case`uu`:return zs(s);case`uuu`:return X(n);case`a`:return Ls(t.meridiems(),0);case`kkkk`:return X(a);case`kk`:return X(d,Pa);case`W`:return X(s);case`WW`:return X(r);case`E`:case`c`:return X(n);case`EEE`:return Ls(t.weekdays(`short`,!1),1);case`EEEE`:return Ls(t.weekdays(`long`,!1),1);case`ccc`:return Ls(t.weekdays(`short`,!0),1);case`cccc`:return Ls(t.weekdays(`long`,!0),1);case`Z`:case`ZZ`:return Rs(RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case`ZZZ`:return Rs(RegExp(`([+-]${s.source})(${r.source})?`),2);case`z`:return zs(/[a-z_+-/]{1,256}?/i);case` `:return zs(/[^\S\n\r]/);default:return p(m)}},h=m(e)||{invalidReason:js};return h.token=e,h}const Hs={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 Us(e,t,n){let{type:r,value:i}=e;if(r===`literal`){let e=/^\s+$/.test(i);return{literal:!e,val:e?` `:i}}let a=t[r],o=r;r===`hour`&&(o=t.hour12==null?t.hourCycle==null?n.hour12?`hour12`:`hour24`:t.hourCycle===`h11`||t.hourCycle===`h12`?`hour12`:`hour24`:t.hour12?`hour12`:`hour24`);let s=Hs[o];if(typeof s==`object`&&(s=s[a]),s)return{literal:!1,val:s}}function Ws(e){let t=e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,``);return[`^${t}$`,e]}function Gs(e,t,n){let r=e.match(t);if(r){let e={},t=1;for(let i in n)if(ba(n,i)){let a=n[i],o=a.groups?a.groups+1:1;!a.literal&&a.token&&(e[a.token.val[0]]=a.deser(r.slice(t,t+o))),t+=o}return[r,e]}else return[r,{}]}function Ks(e){let t=e=>{switch(e){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}},n=null,r;J(e.z)||(n=ii.create(e.z)),J(e.Z)||(n||=new Ai(e.Z),r=e.Z),J(e.q)||(e.M=(e.q-1)*3+1),J(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),J(e.u)||(e.S=Ea(e.u));let i=Object.keys(e).reduce((n,r)=>{let i=t(r);return i&&(n[i]=e[r]),n},{});return[i,n,r]}let qs=null;function Js(){return qs||=Z.fromMillis(1555555555555),qs}function Ys(e,t){if(e.literal)return e;let n=so.macroTokenToFormatOpts(e.val),r=ec(n,t);return r==null||r.includes(void 0)?e:r}function Xs(e,t){return Array.prototype.concat(...e.map(e=>Ys(e,t)))}var Zs=class{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=Xs(so.parseFormat(t),e),this.units=this.tokens.map(t=>Vs(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){let[e,t]=Ws(this.units);this.regex=RegExp(e,`i`),this.handlers=t}}explainFromTokens(e){if(this.isValid){let[t,n]=Gs(e,this.regex,this.handlers),[r,i,a]=n?Ks(n):[null,null,void 0];if(ba(n,`a`)&&ba(n,`H`))throw new xr(`Can't include meridiem when specifying 24-hour format`);return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:i,specificOffset:a}}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 Qs(e,t,n){let r=new Zs(e,n);return r.explainFromTokens(t)}function $s(e,t,n){let{result:r,zone:i,specificOffset:a,invalidReason:o}=Qs(e,t,n);return[r,i,a,o]}function ec(e,t){if(!e)return null;let n=so.create(t,e),r=n.dtFormatter(Js()),i=r.formatToParts(),a=r.resolvedOptions();return i.map(t=>Us(t,e,a))}const tc=`Invalid DateTime`,nc=864e13;function rc(e){return new Ji(`unsupported zone`,`the zone "${e.name}" is not supported`)}function ic(e){return e.weekData===null&&(e.weekData=na(e.c)),e.weekData}function ac(e){return e.localWeekData===null&&(e.localWeekData=na(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function oc(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Z({...n,...t,old:n})}function sc(e,t,n){let r=e-t*60*1e3,i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;let a=n.offset(r);return i===a?[r,i]:[e-Math.min(i,a)*60*1e3,Math.max(i,a)]}function cc(e,t){e+=t*60*1e3;let n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function lc(e,t,n){return sc(ja(e),t,n)}function uc(e,t){let n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:r,month:i,day:Math.min(e.c.day,Aa(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=Cs.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as(`milliseconds`),s=ja(a),[c,l]=sc(s,n,e.zone);return o!==0&&(c+=o,l=e.zone.offset(c)),{ts:c,o:l}}function dc(e,t,n,r,i,a){let{setZone:o,zone:s}=n;if(e&&Object.keys(e).length!==0||t){let r=t||s,i=Z.fromObject(e,{...n,zone:r,specificOffset:a});return o?i:i.setZone(s)}else return Z.invalid(new Ji(`unparsable`,`the input "${i}" can't be parsed as ${r}`))}function fc(e,t,n=!0){return e.isValid?so.create(K.create(`en-US`),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function pc(e,t,n){let r=e.c.year>9999||e.c.year<0,i=``;if(r&&e.c.year>=0&&(i+=`+`),i+=Y(e.c.year,r?6:4),n===`year`)return i;if(t){if(i+=`-`,i+=Y(e.c.month),n===`month`)return i;i+=`-`}else if(i+=Y(e.c.month),n===`month`)return i;return i+=Y(e.c.day),i}function mc(e,t,n,r,i,a,o){let s=!n||e.c.millisecond!==0||e.c.second!==0,c=``;switch(o){case`day`:case`month`:case`year`:break;default:if(c+=Y(e.c.hour),o===`hour`)break;if(t){if(c+=`:`,c+=Y(e.c.minute),o===`minute`)break;s&&(c+=`:`,c+=Y(e.c.second))}else{if(c+=Y(e.c.minute),o===`minute`)break;s&&(c+=Y(e.c.second))}if(o===`second`)break;s&&(!r||e.c.millisecond!==0)&&(c+=`.`,c+=Y(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!a?c+=`Z`:e.o<0?(c+=`-`,c+=Y(Math.trunc(-e.o/60)),c+=`:`,c+=Y(Math.trunc(-e.o%60))):(c+=`+`,c+=Y(Math.trunc(e.o/60)),c+=`:`,c+=Y(Math.trunc(e.o%60)))),a&&(c+=`[`+e.zone.ianaName+`]`),c}const hc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},gc={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},_c={ordinal:1,hour:0,minute:0,second:0,millisecond:0},vc=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],yc=[`weekYear`,`weekNumber`,`weekday`,`hour`,`minute`,`second`,`millisecond`],bc=[`year`,`ordinal`,`hour`,`minute`,`second`,`millisecond`];function xc(e){let t={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`}[e.toLowerCase()];if(!t)throw new Sr(e);return t}function Sc(e){switch(e.toLowerCase()){case`localweekday`:case`localweekdays`:return`localWeekday`;case`localweeknumber`:case`localweeknumbers`:return`localWeekNumber`;case`localweekyear`:case`localweekyears`:return`localWeekYear`;default:return xc(e)}}function Cc(e){if(Dc===void 0&&(Dc=q.now()),e.type!==`iana`)return e.offset(Dc);let t=e.name,n=Oc.get(t);return n===void 0&&(n=e.offset(Dc),Oc.set(t,n)),n}function wc(e,t){let n=Mi(t.zone,q.defaultZone);if(!n.isValid)return Z.invalid(rc(n));let r=K.fromObject(t),i,a;if(J(e.year))i=q.now();else{for(let t of vc)J(e[t])&&(e[t]=hc[t]);let t=la(e)||ua(e);if(t)return Z.invalid(t);let r=Cc(n);[i,a]=lc(e,r,n)}return new Z({ts:i,zone:n,loc:r,o:a})}function Tc(e,t,n){let r=J(n.round)?!0:n.round,i=J(n.rounding)?`trunc`:n.rounding,a=(e,a)=>{e=Da(e,r||n.calendary?0:2,n.calendary?`round`:i);let o=t.loc.clone(n).relFormatter(n);return o.format(e,a)},o=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return a(o(n.unit),n.unit);for(let e of n.units){let t=o(e);if(Math.abs(t)>=1)return a(t,e)}return a(e>t?-0:0,n.units[n.units.length-1])}function Ec(e){let t={},n;return e.length>0&&typeof e[e.length-1]==`object`?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let Dc;const Oc=new Map;var Z=class e{constructor(e){let t=e.zone||q.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Ji(`invalid input`):null)||(t.isValid?null:rc(t));this.ts=J(e.ts)?q.now():e.ts;let r=null,i=null;if(!n){let a=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(a)[r,i]=[e.old.c,e.old.o];else{let a=da(e.o)&&!e.old?e.o:t.offset(this.ts);r=cc(this.ts,a),n=Number.isNaN(r.year)?new Ji(`invalid input`):null,r=n?null:r,i=n?null:a}}this._zone=t,this.loc=e.loc||K.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[e,t]=Ec(arguments),[n,r,i,a,o,s,c]=t;return wc({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:c},e)}static utc(){let[e,t]=Ec(arguments),[n,r,i,a,o,s,c]=t;return e.zone=Ai.utcInstance,wc({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:c},e)}static fromJSDate(t,n={}){let r=ma(t)?t.valueOf():NaN;if(Number.isNaN(r))return e.invalid(`invalid input`);let i=Mi(n.zone,q.defaultZone);return i.isValid?new e({ts:r,zone:i,loc:K.fromObject(n)}):e.invalid(rc(i))}static fromMillis(t,n={}){if(da(t))return t<-nc||t>nc?e.invalid(`Timestamp out of range`):new e({ts:t,zone:Mi(n.zone,q.defaultZone),loc:K.fromObject(n)});throw new Cr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(da(t))return new e({ts:t*1e3,zone:Mi(n.zone,q.defaultZone),loc:K.fromObject(n)});throw new Cr(`fromSeconds requires a numerical input`)}static fromObject(t,n={}){t||={};let r=Mi(n.zone,q.defaultZone);if(!r.isValid)return e.invalid(rc(r));let i=K.fromObject(n),a=Ra(t,Sc),{minDaysInFirstWeek:o,startOfWeek:s}=oa(a,i),c=q.now(),l=J(n.specificOffset)?r.offset(c):n.specificOffset,u=!J(a.ordinal),d=!J(a.year),f=!J(a.month)||!J(a.day),p=d||f,m=a.weekYear||a.weekNumber;if((p||u)&&m)throw new xr(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(f&&u)throw new xr(`Can't mix ordinal dates with month/day`);let h=m||a.weekday&&!p,g,_,v=cc(c,l);h?(g=yc,_=gc,v=na(v,o,s)):u?(g=bc,_=_c,v=ia(v)):(g=vc,_=hc);let y=!1;for(let e of g){let t=a[e];J(t)?y?a[e]=_[e]:a[e]=v[e]:y=!0}let b=h?sa(a,o,s):u?ca(a):la(a),x=b||ua(a);if(x)return e.invalid(x);let S=h?ra(a,o,s):u?aa(a):a,[C,w]=lc(S,l,r),T=new e({ts:C,zone:r,o:w,loc:i});return a.weekday&&p&&t.weekday!==T.weekday?e.invalid(`mismatched weekday`,`you can't specify both a weekday of ${a.weekday} and a date of ${T.toISO()}`):T.isValid?T:e.invalid(T.invalid)}static fromISO(e,t={}){let[n,r]=$o(e);return dc(n,r,t,`ISO 8601`,e)}static fromRFC2822(e,t={}){let[n,r]=es(e);return dc(n,r,t,`RFC 2822`,e)}static fromHTTP(e,t={}){let[n,r]=ts(e);return dc(n,r,t,`HTTP`,t)}static fromFormat(t,n,r={}){if(J(t)||J(n))throw new Cr(`fromFormat requires an input string and a format`);let{locale:i=null,numberingSystem:a=null}=r,o=K.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),[s,c,l,u]=$s(o,t,n);return u?e.invalid(u):dc(s,c,r,`format ${n}`,t,l)}static fromString(t,n,r={}){return e.fromFormat(t,n,r)}static fromSQL(e,t={}){let[n,r]=us(e);return dc(n,r,t,`SQL`,e)}static invalid(t,n=null){if(!t)throw new Cr(`need to specify a reason the DateTime is invalid`);let r=t instanceof Ji?t:new Ji(t,n);if(q.throwOnInvalid)throw new vr(r);return new e({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let n=ec(e,K.fromObject(t));return n?n.map(e=>e?e.val:null).join(``):null}static expandFormat(e,t={}){let n=Xs(so.parseFormat(e),K.fromObject(t));return n.map(e=>e.val).join(``)}static resetCache(){Dc=void 0,Oc.clear()}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?ic(this).weekYear:NaN}get weekNumber(){return this.isValid?ic(this).weekNumber:NaN}get weekday(){return this.isValid?ic(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ac(this).weekday:NaN}get localWeekNumber(){return this.isValid?ac(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ac(this).weekYear:NaN}get ordinal(){return this.isValid?ia(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ds.months(`short`,{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ds.months(`long`,{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ds.weekdays(`short`,{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ds.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];let e=864e5,t=6e4,n=ja(this.c),r=this.zone.offset(n-e),i=this.zone.offset(n+e),a=this.zone.offset(n-r*t),o=this.zone.offset(n-i*t);if(a===o)return[this];let s=n-a*t,c=n-o*t,l=cc(s,a),u=cc(c,o);return l.hour===u.hour&&l.minute===u.minute&&l.second===u.second&&l.millisecond===u.millisecond?[oc(this,{ts:s}),oc(this,{ts:c})]:[this]}get isInLeapYear(){return Oa(this.year)}get daysInMonth(){return Aa(this.year,this.month)}get daysInYear(){return this.isValid?ka(this.year):NaN}get weeksInWeekYear(){return this.isValid?Na(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Na(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:n,calendar:r}=so.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(Ai.instance(e),t)}toLocal(){return this.setZone(q.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=Mi(t,q.defaultZone),t.equals(this.zone))return this;if(t.isValid){let e=this.ts;if(n||r){let n=t.offset(this.ts),r=this.toObject();[e]=lc(r,n,t)}return oc(this,{ts:e,zone:t})}else return e.invalid(rc(t))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){let r=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return oc(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let t=Ra(e,Sc),{minDaysInFirstWeek:n,startOfWeek:r}=oa(t,this.loc),i=!J(t.weekYear)||!J(t.weekNumber)||!J(t.weekday),a=!J(t.ordinal),o=!J(t.year),s=!J(t.month)||!J(t.day),c=o||s,l=t.weekYear||t.weekNumber;if((c||a)&&l)throw new xr(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(s&&a)throw new xr(`Can't mix ordinal dates with month/day`);let u;i?u=ra({...na(this.c,n,r),...t},n,r):J(t.ordinal)?(u={...this.toObject(),...t},J(t.day)&&(u.day=Math.min(Aa(u.year,u.month),u.day))):u=aa({...ia(this.c),...t});let[d,f]=lc(u,this.o,this.zone);return oc(this,{ts:d,o:f})}plus(e){if(!this.isValid)return this;let t=Cs.fromDurationLike(e);return oc(this,uc(this,t))}minus(e){if(!this.isValid)return this;let t=Cs.fromDurationLike(e).negate();return oc(this,uc(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let n={},r=Cs.normalizeUnit(e);switch(r){case`years`:n.month=1;case`quarters`:case`months`:n.day=1;case`weeks`:case`days`:n.hour=0;case`hours`:n.minute=0;case`minutes`:n.second=0;case`seconds`:n.millisecond=0;break;case`milliseconds`:break}if(r===`weeks`)if(t){let e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if(r===`quarters`){let e=Math.ceil(this.month/3);n.month=(e-1)*3+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?so.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):tc}toLocaleString(e=Dr,t={}){return this.isValid?so.create(this.loc.clone(t),e).formatDateTime(this):tc}toLocaleParts(e={}){return this.isValid?so.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e=`extended`,suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:i=!1,precision:a=`milliseconds`}={}){if(!this.isValid)return null;a=xc(a);let o=e===`extended`,s=pc(this,o,a);return vc.indexOf(a)>=3&&(s+=`T`),s+=mc(this,o,t,n,r,i,a),s}toISODate({format:e=`extended`,precision:t=`day`}={}){return this.isValid?pc(this,e===`extended`,xc(t)):null}toISOWeekDate(){return fc(this,`kkkk-'W'WW-c`)}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:i=!1,format:a=`extended`,precision:o=`milliseconds`}={}){if(!this.isValid)return null;o=xc(o);let s=r&&vc.indexOf(o)>=3?`T`:``;return s+mc(this,a===`extended`,t,e,n,i,o)}toRFC2822(){return fc(this,`EEE, dd LLL yyyy HH:mm:ss ZZZ`,!1)}toHTTP(){return fc(this.toUTC(),`EEE, dd LLL yyyy HH:mm:ss 'GMT'`)}toSQLDate(){return this.isValid?pc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r=`HH:mm:ss.SSS`;return(t||e)&&(n&&(r+=` `),t?r+=`z`:e&&(r+=`ZZ`)),fc(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():tc}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t=`milliseconds`,n={}){if(!this.isValid||!e.isValid)return Cs.invalid(`created by diffing an invalid DateTime`);let r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=_a(t).map(Cs.normalizeUnit),a=e.valueOf()>this.valueOf(),o=a?this:e,s=a?e:this,c=As(o,s,i,r);return a?c.negate():c}diffNow(t=`milliseconds`,n={}){return this.diff(e.now(),t,n)}until(e){return this.isValid?Es.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;let r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,n)<=r&&r<=i.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(t={}){if(!this.isValid)return null;let n=t.base||e.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0,i=[`years`,`months`,`days`,`hours`,`minutes`,`seconds`],a=t.unit;return Array.isArray(t.unit)&&(i=t.unit,a=void 0),Tc(n,this.plus(r),{...t,numeric:`always`,units:i,unit:a})}toRelativeCalendar(t={}){return this.isValid?Tc(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:`auto`,units:[`years`,`months`,`days`],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new Cr(`min requires all arguments be DateTimes`);return va(t,e=>e.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new Cr(`max requires all arguments be DateTimes`);return va(t,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){let{locale:r=null,numberingSystem:i=null}=n,a=K.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return Qs(a,e,t)}static fromStringExplain(t,n,r={}){return e.fromFormatExplain(t,n,r)}static buildFormatParser(e,t={}){let{locale:n=null,numberingSystem:r=null}=t,i=K.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new Zs(i,e)}static fromFormatParser(t,n,r={}){if(J(t)||J(n))throw new Cr(`fromFormatParser requires an input string and a format parser`);let{locale:i=null,numberingSystem:a=null}=r,o=K.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});if(!o.equals(n.locale))throw new Cr(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);let{result:s,zone:c,specificOffset:l,invalidReason:u}=n.explainFromTokens(t);return u?e.invalid(u):dc(s,c,r,`format ${n.format}`,t,l)}static get DATE_SHORT(){return Dr}static get DATE_MED(){return Or}static get DATE_MED_WITH_WEEKDAY(){return kr}static get DATE_FULL(){return Ar}static get DATE_HUGE(){return jr}static get TIME_SIMPLE(){return Mr}static get TIME_WITH_SECONDS(){return Nr}static get TIME_WITH_SHORT_OFFSET(){return Pr}static get TIME_WITH_LONG_OFFSET(){return Fr}static get TIME_24_SIMPLE(){return Ir}static get TIME_24_WITH_SECONDS(){return Lr}static get TIME_24_WITH_SHORT_OFFSET(){return Rr}static get TIME_24_WITH_LONG_OFFSET(){return zr}static get DATETIME_SHORT(){return Br}static get DATETIME_SHORT_WITH_SECONDS(){return Vr}static get DATETIME_MED(){return Hr}static get DATETIME_MED_WITH_SECONDS(){return Ur}static get DATETIME_MED_WITH_WEEKDAY(){return Wr}static get DATETIME_FULL(){return Gr}static get DATETIME_FULL_WITH_SECONDS(){return Kr}static get DATETIME_HUGE(){return qr}static get DATETIME_HUGE_WITH_SECONDS(){return Jr}};function kc(e){if(Z.isDateTime(e))return e;if(e&&e.valueOf&&da(e.valueOf()))return Z.fromJSDate(e);if(e&&typeof e==`object`)return Z.fromObject(e);throw new Cr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var Ac=s((exports,t)=>{(function(n,r){typeof exports==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(exports,function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach(function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),w.extend=function(e,t){return e.$i||(e(t,E,w),e.$i=!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w})});const jc=(e,t,n)=>{if(n!==void 0&&e instanceof n||n!==void 0&&typeof n[Symbol.hasInstance]==`function`&&n[Symbol.hasInstance](e))return!0;if(typeof e==`object`&&e){let n=e,r=n.constructor?.name;return r===t}return!1},Mc=e=>e instanceof Z?!0:typeof e!=`object`||!e||!(`isLuxonDateTime`in e)?!1:e.isLuxonDateTime===!0,Nc=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Pc=e=>{if(!Nc(e))return!1;let t=Object.keys(e);if(t.length===0)return!1;let n=[`year`,`month`,`day`,`ordinal`,`weekYear`,`localWeekYear`,`weekNumber`,`localWeekNumber`,`weekday`,`localWeekday`,`hour`,`minute`,`second`,`millisecond`],r=t.filter(e=>!n.includes(e));return r.length>0?!1:t.every(t=>{let n=e[t];return typeof n==`number`||n===void 0})};var Fc=u(Ac());q.defaultZone=`utc`,q.defaultLocale=`en`,q.defaultWeekSettings={firstDay:7,minimalDays:4,weekend:[6,7]},q.throwOnInvalid=!1;const Ic={"datetime.base":`{{#label}} must be a datetime value`,"datetime.exactly":`{{#label}} must be a datetime exactly equal to {{#limit}}`,"datetime.equals":`{{#label}} must be a datetime equal to {{#limit}}`,"datetime.after":`{{#label}} must be a datetime after {{#limit}}`,"datetime.greater":`{{#label}} must be a datetime after {{#limit}}`,"datetime.before":`{{#label}} must be a datetime before {{#limit}}`,"datetime.less":`{{#label}} must be a datetime before {{#limit}}`,"datetime.afterOrEqual":`{{#label}} must be a datetime after or equal to {{#limit}}`,"datetime.min":`{{#label}} must be a datetime after or equal to {{#limit}}`,"datetime.beforeOrEqual":`{{#label}} must be a datetime before or equal to {{#limit}}`,"datetime.max":`{{#label}} must be a datetime before or equal to {{#limit}}`,"datetime.weekend":`{{#label}} is not a weekend`,"datetime.weekday":`{{#label}} is not a weekday`},Lc=(e,t,n)=>{switch(e=Rc(e),t=Rc(t),n){case`===`:return e.equals(t);case`=`:return e.hasSame(t,`millisecond`);case`>`:return e>t;case`<`:return e<t;case`>=`:return e>=t;case`<=`:return e<=t;default:return!1}},Rc=(e,t)=>{if(Mc(e))return e;if(jc(e,`Date`,Date))return Z.fromJSDate(e);if(jc(e,`Dayjs`,Fc.Dayjs)||Fc.default.isDayjs(e))return Z.fromJSDate(e.toDate());if(Pc(e))return Z.fromObject(e,{zone:`utc`});if(typeof e==`number`){let t=(0,Fc.default)(e);if(t.isValid())return Z.fromJSDate(t.toDate(),{zone:`utc`})}if(typeof e==`string`){if(t){let n=Z.fromFormat(e,t,{zone:`utc`});if(n.isValid)return n}let n=[Z.fromISO,Z.fromRFC2822,Z.fromHTTP,Z.fromSQL];for(let t of n){let n=t(e,{zone:`utc`});if(n.isValid)return n}let r=(0,Fc.default)(e);if(r.isValid())return Z.fromJSDate(r.toDate(),{zone:`utc`})}return!1},zc=(e,t)=>{let n=Rc(e);if(n){let{schema:e,prefs:r}=t;if(r.convert){let t=n;if(e._flags.setZone&&Array.isArray(e._flags.setZone)){let[n,r]=Array.from(e._flags.setZone);switch(n){case`utc`:t=t.toUTC();break;case`local`:t=t.toLocal();break;default:t=t.setZone(n,r);break}}if(e._flags.setLocale&&(t=t.setLocale(e._flags.setLocale)),e._flags.toFormat)if(Array.isArray(e._flags.toFormat)){let n=Array.from(e._flags.toFormat),r=n.shift();t=t[r](...n)}else typeof e._flags.toFormat==`string`&&(t=t.toFormat(e._flags.toFormat));return{value:t}}return{value:n}}return{value:e,errors:[t.error(`datetime.base`,{value:String(e)})]}},Bc=function(e){return{type:`datetime`,base:e.any(),coerce:{from:[`string`,`number`,`date`,`object`],method:zc},rules:{compare:{method:!1,validate(e,t,{limit:n},{name:r,operator:i}){let a=Rc(e),o=Rc(n);if(!a||!o)return t.error(`datetime.base`,{value:Mc(e)?e.toLocaleString(Z.DATETIME_MED):String(e)});let s=Lc(a,o,i);return s?e:t.error(`datetime.`+r,{limit:o.toLocaleString(Z.DATETIME_MED),value:a.toLocaleString(Z.DATETIME_MED)})},args:[{name:`limit`,ref:!0,assert:e=>Mc(Rc(e)),message:`must be a datetime`}]},exactly:{method(e){return this.$_addRule({name:`exactly`,method:`compare`,args:{limit:e},operator:`===`})}},equals:{method(e){return this.$_addRule({name:`equals`,method:`compare`,args:{limit:e},operator:`=`})}},after:{method(e){return this.$_addRule({name:`after`,method:`compare`,args:{limit:e},operator:`>`})}},greater:{method(e){return this.$_addRule({name:`greater`,method:`compare`,args:{limit:e},operator:`>`})}},before:{method(e){return this.$_addRule({name:`before`,method:`compare`,args:{limit:e},operator:`<`})}},less:{method(e){return this.$_addRule({name:`less`,method:`compare`,args:{limit:e},operator:`<`})}},afterOrEqual:{method(e){return this.$_addRule({name:`afterOrEqual`,method:`compare`,args:{limit:e},operator:`>=`})}},min:{method(e){return this.$_addRule({name:`min`,method:`compare`,args:{limit:e},operator:`>=`})}},beforeOrEqual:{method(e){return this.$_addRule({name:`beforeOrEqual`,method:`compare`,args:{limit:e},operator:`<=`})}},max:{method(e){return this.$_addRule({name:`max`,method:`compare`,args:{limit:e},operator:`<=`})}},weekend:{method(){return this.$_addRule({name:`weekend`})},validate(e,t){let n=Rc(e);return n.isWeekend?e:t.error(`datetime.weekend`,{value:n.toLocaleString(Z.DATE_MED)})}},weekday:{method(){return this.$_addRule({name:`weekday`})},validate(e,t){let n=Rc(e);return n.isWeekend?t.error(`datetime.weekday`,{value:n.toLocaleString(Z.DATE_MED)}):e}},toUTC:{method(){return this.$_setFlag(`setZone`,[`utc`])}},toLocal:{method(){return this.$_setFlag(`setZone`,[`local`])}},setZone:{method(e,t){return this.$_setFlag(`setZone`,[e,t])}},toFormat:{method(e){return this.$_setFlag(`toFormat`,e,{clone:!0})}},toLocalizedString:{method(e){return this.$_setFlag(`toFormat`,[`toLocaleString`,e],{clone:!0})}},toISO:{method(e){return this.$_setFlag(`toFormat`,e?[`toISO`,e]:[`toISO`],{clone:!0})}},toISODate:{method(e){return this.$_setFlag(`toFormat`,e?[`toISODate`,e]:[`toISODate`],{clone:!0})}},toISOWeekDate:{method(){return this.$_setFlag(`toFormat`,[`toISOWeekDate`],{clone:!0})}},toISOTime:{method(e){return this.$_setFlag(`toFormat`,e?[`toISOTime`,e]:[`toISOTime`],{clone:!0})}},toRFC2822:{method(){return this.$_setFlag(`toFormat`,[`toRFC2822`],{clone:!0})}},toHTTP:{method(){return this.$_setFlag(`toFormat`,[`toHTTP`],{clone:!0})}},toSQLDate:{method(){return this.$_setFlag(`toFormat`,[`toSQLDate`],{clone:!0})}},toSQLTime:{method(e){return this.$_setFlag(`toFormat`,e?[`toSQLTime`,e]:[`toSQLTime`],{clone:!0})}},toSQL:{method(e){return this.$_setFlag(`toFormat`,e?[`toSQL`,e]:[`toSQL`],{clone:!0})}},toMillis:{method(){return this.$_setFlag(`toFormat`,[`toMillis`],{clone:!0})}},toSeconds:{method(){return this.$_setFlag(`toFormat`,[`toSeconds`],{clone:!0})}},toUnixInteger:{method(){return this.$_setFlag(`toFormat`,[`toUnixInteger`],{clone:!0})}},toJSON:{method(){return this.$_setFlag(`toFormat`,[`toJSON`],{clone:!0})}},toBSON:{method(){return this.$_setFlag(`toFormat`,[`toBSON`],{clone:!0})}},toObject:{method(e){let t=e?.includeConfig===void 0?{includeConfig:!1}:{includeConfig:e.includeConfig};return this.$_setFlag(`toFormat`,[`toObject`,t],{clone:!0})}},toJSDate:{method(){return this.$_setFlag(`toFormat`,[`toJSDate`],{clone:!0})}},toRelative:{method(e){return this.$_setFlag(`toFormat`,e?[`toRelative`,e]:[`toRelative`],{clone:!0})}},setLocale:{method(e){return this.$_setFlag(`setLocale`,e)}}},messages:Ic}};var Vc=s((exports,t)=>{let n=`2.0.0`,r=256,i=2**53-1||9007199254740991,a=16,o=r-6,s=[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`];t.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:i,RELEASE_TYPES:s,SEMVER_SPEC_VERSION:n,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}),Hc=s((exports,t)=>{It();let n=typeof Ft==`object`&&Ft.env&&Ft.env.NODE_DEBUG&&/\bsemver\b/i.test(Ft.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{};t.exports=n}),Uc=s((exports,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Vc(),a=Hc();exports=t.exports={};let o=exports.re=[],s=exports.safeRe=[],c=exports.src=[],l=exports.safeSrc=[],u=exports.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),exports.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)}),Wc=s((exports,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({}),i=e=>e?typeof e==`object`?e:n:r;t.exports=i}),Gc=s((exports,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},i=(e,t)=>r(t,e);t.exports={compareIdentifiers:r,rcompareIdentifiers:i}}),Kc=s((exports,t)=>{let n=Hc(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=Vc(),{safeRe:a,t:o}=Uc(),s=Wc(),{compareIdentifiers:c}=Gc();var l=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),c(this.major,t.major)||c(this.minor,t.minor)||c(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}};t.exports=l}),qc=s((exports,t)=>{let n=Kc(),r=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}};t.exports=r}),Jc=s((exports,t)=>{let n=qc(),r=(e,t)=>{let r=n(e,t);return r?r.version:null};t.exports=r}),Yc=s((exports,t)=>{let n=qc(),r=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null};t.exports=r}),Xc=s((exports,t)=>{let n=Kc(),r=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}};t.exports=r}),Zc=s((exports,t)=>{let n=qc(),r=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length,u=!!c.prerelease.length;if(u&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let d=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:d+`patch`:d+`minor`:d+`major`};t.exports=r}),Qc=s((exports,t)=>{let n=Kc(),r=(e,t)=>new n(e,t).major;t.exports=r}),$c=s((exports,t)=>{let n=Kc(),r=(e,t)=>new n(e,t).minor;t.exports=r}),el=s((exports,t)=>{let n=Kc(),r=(e,t)=>new n(e,t).patch;t.exports=r}),tl=s((exports,t)=>{let n=qc(),r=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null};t.exports=r}),nl=s((exports,t)=>{let n=Kc(),r=(e,t,r)=>new n(e,r).compare(new n(t,r));t.exports=r}),rl=s((exports,t)=>{let n=nl(),r=(e,t,r)=>n(t,e,r);t.exports=r}),il=s((exports,t)=>{let n=nl(),r=(e,t)=>n(e,t,!0);t.exports=r}),al=s((exports,t)=>{let n=Kc(),r=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)};t.exports=r}),ol=s((exports,t)=>{let n=al(),r=(e,t)=>e.sort((e,r)=>n(e,r,t));t.exports=r}),sl=s((exports,t)=>{let n=al(),r=(e,t)=>e.sort((e,r)=>n(r,e,t));t.exports=r}),cl=s((exports,t)=>{let n=nl(),r=(e,t,r)=>n(e,t,r)>0;t.exports=r}),ll=s((exports,t)=>{let n=nl(),r=(e,t,r)=>n(e,t,r)<0;t.exports=r}),ul=s((exports,t)=>{let n=nl(),r=(e,t,r)=>n(e,t,r)===0;t.exports=r}),dl=s((exports,t)=>{let n=nl(),r=(e,t,r)=>n(e,t,r)!==0;t.exports=r}),fl=s((exports,t)=>{let n=nl(),r=(e,t,r)=>n(e,t,r)>=0;t.exports=r}),pl=s((exports,t)=>{let n=nl(),r=(e,t,r)=>n(e,t,r)<=0;t.exports=r}),ml=s((exports,t)=>{let n=ul(),r=dl(),i=cl(),a=fl(),o=ll(),s=pl(),c=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}};t.exports=c}),hl=s((exports,t)=>{let n=Kc(),r=qc(),{safeRe:i,t:a}=Uc(),o=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2],c=o[3]||`0`,l=o[4]||`0`,u=t.includePrerelease&&o[5]?`-${o[5]}`:``,d=t.includePrerelease&&o[6]?`+${o[6]}`:``;return r(`${s}.${c}.${l}${u}${d}`,t)};t.exports=o}),gl=s((exports,t)=>{var n=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){let n=this.delete(e);if(!n&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}};t.exports=n}),_l=s((exports,t)=>{let n=/\s+/g;var r=class e{constructor(t,r){if(r=o(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof s)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=(this.options.includePrerelease&&h)|(this.options.loose&&g),n=t+`:`+e,r=a.get(n);if(r)return r;let i=this.options.loose,o=i?u[d.HYPHENRANGELOOSE]:u[d.HYPHENRANGE];e=e.replace(o,A(this.options.includePrerelease)),c(`hyphen replace`,e),e=e.replace(u[d.COMPARATORTRIM],f),c(`comparator trim`,e),e=e.replace(u[d.TILDETRIM],p),c(`tilde trim`,e),e=e.replace(u[d.CARETTRIM],m),c(`caret trim`,e);let l=e.split(` `).map(e=>b(e,this.options)).join(` `).split(/\s+/).map(e=>k(e,this.options));i&&(l=l.filter(e=>(c(`loose invalid filter`,e,this.options),!!e.match(u[d.COMPARATORLOOSE])))),c(`range list`,l);let v=new Map,y=l.map(e=>new s(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return a.set(n,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>y(e,n)&&t.set.some(t=>y(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new l(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(j(this.set[t],e,this.options))return!0;return!1}};t.exports=r;let i=gl(),a=new i,o=Wc(),s=vl(),c=Hc(),l=Kc(),{safeRe:u,t:d,comparatorTrimReplace:f,tildeTrimReplace:p,caretTrimReplace:m}=Uc(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:g}=Vc(),_=e=>e.value===`<0.0.0-0`,v=e=>e.value===``,y=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},b=(e,t)=>(c(`comp`,e,t),e=w(e,t),c(`caret`,e),e=S(e,t),c(`tildes`,e),e=E(e,t),c(`xrange`,e),e=O(e,t),c(`stars`,e),e),x=e=>!e||e.toLowerCase()===`x`||e===`*`,S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(` `),C=(e,t)=>{let n=t.loose?u[d.TILDELOOSE]:u[d.TILDE];return e.replace(n,(t,n,r,i,a)=>{c(`tilde`,e,t,n,r,i,a);let o;return x(n)?o=``:x(r)?o=`>=${n}.0.0 <${+n+1}.0.0-0`:x(i)?o=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(c(`replaceTilde pr`,a),o=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):o=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,c(`tilde return`,o),o})},w=(e,t)=>e.trim().split(/\s+/).map(e=>T(e,t)).join(` `),T=(e,t)=>{c(`caret`,e,t);let n=t.loose?u[d.CARETLOOSE]:u[d.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,o)=>{c(`caret`,e,t,n,i,a,o);let s;return x(n)?s=``:x(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?s=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:o?(c(`replaceCaret pr`,o),s=n===`0`?i===`0`?`>=${n}.${i}.${a}-${o} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${o} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${o} <${+n+1}.0.0-0`):(c(`no pr`),s=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),c(`caret return`,s),s})},E=(e,t)=>(c(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>D(e,t)).join(` `)),D=(e,t)=>{e=e.trim();let n=t.loose?u[d.XRANGELOOSE]:u[d.XRANGE];return e.replace(n,(n,r,i,a,o,s)=>{c(`xRange`,e,n,r,i,a,o,s);let l=x(i),u=l||x(a),d=u||x(o),f=d;return r===`=`&&f&&(r=``),s=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),o=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(s=`-0`),n=`${r+i}.${a}.${o}${s}`):u?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${s} <${i}.${+a+1}.0-0`),c(`xRange return`,n),n})},O=(e,t)=>(c(`replaceStars`,e,t),e.trim().replace(u[d.STAR],``)),k=(e,t)=>(c(`replaceGTE0`,e,t),e.trim().replace(u[t.includePrerelease?d.GTE0PRE:d.GTE0],``)),A=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=x(r)?``:x(i)?`>=${r}.0.0${e?`-0`:``}`:x(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=x(l)?``:x(u)?`<${+l+1}.0.0-0`:x(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),j=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(c(e[n].semver),e[n].semver!==s.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}}),vl=s((exports,t)=>{let n=Symbol(`SemVer ANY`);var r=class e{static get ANY(){return n}constructor(t,r){if(r=i(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),c(`comparator`,t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,c(`comp`,this)}parse(e){let t=this.options.loose?a[o.COMPARATORLOOSE]:a[o.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new l(e,this.options)}catch{return!1}return s(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new u(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new u(this.value,n).test(t.semver):(n=i(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||s(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||s(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};t.exports=r;let i=Wc(),{safeRe:a,t:o}=Uc(),s=ml(),c=Hc(),l=Kc(),u=_l()}),yl=s((exports,t)=>{let n=_l(),r=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)};t.exports=r}),bl=s((exports,t)=>{let n=_l(),r=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `));t.exports=r}),xl=s((exports,t)=>{let n=Kc(),r=_l(),i=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a};t.exports=i}),Sl=s((exports,t)=>{let n=Kc(),r=_l(),i=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a};t.exports=i}),Cl=s((exports,t)=>{let n=Kc(),r=_l(),i=cl(),a=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null};t.exports=a}),wl=s((exports,t)=>{let n=_l(),r=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}};t.exports=r}),Tl=s((exports,t)=>{let n=Kc(),r=vl(),{ANY:i}=r,a=_l(),o=yl(),s=cl(),c=ll(),l=pl(),u=fl(),d=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0};t.exports=d}),El=s((exports,t)=>{let n=Tl(),r=(e,t,r)=>n(e,t,`>`,r);t.exports=r}),Dl=s((exports,t)=>{let n=Tl(),r=(e,t,r)=>n(e,t,`<`,r);t.exports=r}),Ol=s((exports,t)=>{let n=_l(),r=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r));t.exports=r}),kl=s((exports,t)=>{let n=yl(),r=nl();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c){let r=n(e,t,i);r?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null)}o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}}),Al=s((exports,t)=>{let n=_l(),r=vl(),{ANY:i}=r,a=yl(),o=nl(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s}),jl=s((exports,t)=>{let n=Uc(),r=Vc(),i=Kc(),a=Gc(),o=qc(),s=Jc(),c=Yc(),l=Xc(),u=Zc(),d=Qc(),f=$c(),p=el(),m=tl(),h=nl(),g=rl(),_=il(),v=al(),y=ol(),b=sl(),x=cl(),S=ll(),C=ul(),w=dl(),T=fl(),E=pl(),D=ml(),O=hl(),k=vl(),A=_l(),j=yl(),M=bl(),N=xl(),P=Sl(),F=Cl(),ee=wl(),I=Tl(),te=El(),ne=Dl(),re=Ol(),L=kl(),R=Al();t.exports={parse:o,valid:s,clean:c,inc:l,diff:u,major:d,minor:f,patch:p,prerelease:m,compare:h,rcompare:g,compareLoose:_,compareBuild:v,sort:y,rsort:b,gt:x,lt:S,eq:C,neq:w,gte:T,lte:E,cmp:D,coerce:O,Comparator:k,Range:A,satisfies:j,toComparators:M,maxSatisfying:N,minSatisfying:P,minVersion:F,validRange:ee,outside:I,gtr:te,ltr:ne,intersects:re,simplifyRange:L,subset:R,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}),Ml=Uint8Array,Nl=Uint16Array,Pl=Int32Array,Fl=new Ml([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Il=new Ml([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ll=new Ml([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Rl=function(e,t){for(var n=new Nl(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new Pl(n[30]),r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},zl=Rl(Fl,2),Bl=zl.b,Vl=zl.r;Bl[28]=258,Vl[258]=28;for(var Hl=Rl(Il,0),Ul=Hl.b,Wl=Hl.r,Gl=new Nl(32768),Q=0;Q<32768;++Q){var Kl=(Q&43690)>>1|(Q&21845)<<1;Kl=(Kl&52428)>>2|(Kl&13107)<<2,Kl=(Kl&61680)>>4|(Kl&3855)<<4,Gl[Q]=((Kl&65280)>>8|(Kl&255)<<8)>>1}for(var ql=function(e,t,n){for(var r=e.length,i=0,a=new Nl(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new Nl(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new Nl(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=o[e[i]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)s[Gl[d]>>c]=l}else for(s=new Nl(r),i=0;i<r;++i)e[i]&&(s[i]=Gl[o[e[i]-1]++]>>15-e[i]);return s},Jl=new Ml(288),Q=0;Q<144;++Q)Jl[Q]=8;for(var Q=144;Q<256;++Q)Jl[Q]=9;for(var Q=256;Q<280;++Q)Jl[Q]=7;for(var Q=280;Q<288;++Q)Jl[Q]=8;for(var Yl=new Ml(32),Q=0;Q<32;++Q)Yl[Q]=5;var Xl=ql(Jl,9,0),Zl=ql(Jl,9,1),Ql=ql(Yl,5,0),$l=ql(Yl,5,1),eu=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},tu=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},nu=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},ru=function(e){return(e+7)/8|0},iu=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new Ml(e.subarray(t,n))},au=[`unexpected EOF`,`invalid block type`,`invalid length/literal`,`invalid distance`,`stream finished`,`no stream handler`,,`no callback`,`invalid UTF-8 data`,`extra field too long`,`date not in range 1980-2099`,`filename too long`,`stream finishing`,`invalid zip data`],ou=function(e,t,n){var r=Error(t||au[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,ou),!n)throw r;return r},su=function(e,t,n,r){var i=e.length,a=r?r.length:0;if(!i||t.f&&!t.l)return n||new Ml(0);var o=!n,s=o||t.i!=2,c=t.i;o&&(n=new Ml(i*3));var l=function(e){var t=n.length;if(e>t){var r=new Ml(Math.max(t*2,e));r.set(n),n=r}},u=t.f||0,d=t.p||0,f=t.b||0,p=t.l,m=t.d,h=t.m,g=t.n,_=i*8;do{if(!p){u=tu(e,d,1);var v=tu(e,d+1,3);if(d+=3,v)if(v==1)p=Zl,m=$l,h=9,g=5;else if(v==2){var y=tu(e,d,31)+257,b=tu(e,d+10,15)+4,x=y+tu(e,d+5,31)+1;d+=14;for(var S=new Ml(x),C=new Ml(19),w=0;w<b;++w)C[Ll[w]]=tu(e,d+w*3,7);d+=b*3;for(var T=eu(C),E=(1<<T)-1,D=ql(C,T,1),w=0;w<x;){var O=D[tu(e,d,E)];d+=O&15;var k=O>>4;if(k<16)S[w++]=k;else{var A=0,j=0;for(k==16?(j=3+tu(e,d,3),d+=2,A=S[w-1]):k==17?(j=3+tu(e,d,7),d+=3):k==18&&(j=11+tu(e,d,127),d+=7);j--;)S[w++]=A}}var M=S.subarray(0,y),N=S.subarray(y);h=eu(M),g=eu(N),p=ql(M,h,1),m=ql(N,g,1)}else ou(1);else{var k=ru(d)+4,P=e[k-4]|e[k-3]<<8,F=k+P;if(F>i){c&&ou(0);break}s&&l(f+P),n.set(e.subarray(k,F),f),t.b=f+=P,t.p=d=F*8,t.f=u;continue}if(d>_){c&&ou(0);break}}s&&l(f+131072);for(var ee=(1<<h)-1,I=(1<<g)-1,te=d;;te=d){var A=p[nu(e,d)&ee],ne=A>>4;if(d+=A&15,d>_){c&&ou(0);break}if(A||ou(2),ne<256)n[f++]=ne;else if(ne==256){te=d,p=null;break}else{var re=ne-254;if(ne>264){var w=ne-257,L=Fl[w];re=tu(e,d,(1<<L)-1)+Bl[w],d+=L}var R=m[nu(e,d)&I],z=R>>4;R||ou(3),d+=R&15;var N=Ul[z];if(z>3){var L=Il[z];N+=nu(e,d)&(1<<L)-1,d+=L}if(d>_){c&&ou(0);break}s&&l(f+131072);var ie=f+re;if(f<N){var ae=a-N,B=Math.min(N,ie);for(ae+f<0&&ou(3);f<B;++f)n[f]=r[ae+f]}for(;f<ie;++f)n[f]=n[f-N]}}t.l=p,t.p=te,t.b=f,t.f=u,p&&(u=1,t.m=h,t.d=m,t.n=g)}while(!u);return f!=n.length&&o?iu(n,0,f):n.subarray(0,f)},cu=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},lu=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},uu=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,a=n.slice();if(!i)return{t:_u,l:0};if(i==1){var o=new Ml(n[0].s+1);return o[n[0].s]=1,{t:o,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=i-1;)s=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:s.f+c.f,l:s,r:c};for(var f=a[0].s,r=1;r<i;++r)a[r].s>f&&(f=a[r].s);var p=new Nl(f+1),m=du(n[u-1],p,0);if(m>t){var r=0,h=0,g=m-t,_=1<<g;for(a.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});r<i;++r){var v=a[r].s;if(p[v]>t)h+=_-(1<<m-p[v]),p[v]=t;else break}for(h>>=g;h>0;){var y=a[r].s;p[y]<t?h-=1<<t-p[y]++-1:++r}for(;r>=0&&h;--r){var b=a[r].s;p[b]==t&&(--p[b],++h)}m=t}return{t:new Ml(p),l:m}},du=function(e,t,n){return e.s==-1?Math.max(du(e.l,t,n+1),du(e.r,t,n+1)):t[e.s]=n},fu=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Nl(++t),r=0,i=e[0],a=1,o=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return{c:n.subarray(0,r),n:t}},pu=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},mu=function(e,t,n){var r=n.length,i=ru(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<r;++a)e[i+a+4]=n[a];return(i+4+r)*8},hu=function(e,t,n,r,i,a,o,s,c,l,u){cu(t,u++,n),++i[256];for(var d=uu(i,15),f=d.t,p=d.l,m=uu(a,15),h=m.t,g=m.l,_=fu(f),v=_.c,y=_.n,b=fu(h),x=b.c,S=b.n,C=new Nl(19),w=0;w<v.length;++w)++C[v[w]&31];for(var w=0;w<x.length;++w)++C[x[w]&31];for(var T=uu(C,7),E=T.t,D=T.l,O=19;O>4&&!E[Ll[O-1]];--O);var k=l+5<<3,A=pu(i,Jl)+pu(a,Yl)+o,j=pu(i,f)+pu(a,h)+o+14+3*O+pu(C,E)+2*C[16]+3*C[17]+7*C[18];if(c>=0&&k<=A&&k<=j)return mu(t,u,e.subarray(c,c+l));var M,N,P,F;if(cu(t,u,1+(j<A)),u+=2,j<A){M=ql(f,p,0),N=f,P=ql(h,g,0),F=h;var ee=ql(E,D,0);cu(t,u,y-257),cu(t,u+5,S-1),cu(t,u+10,O-4),u+=14;for(var w=0;w<O;++w)cu(t,u+3*w,E[Ll[w]]);u+=3*O;for(var I=[v,x],te=0;te<2;++te)for(var ne=I[te],w=0;w<ne.length;++w){var re=ne[w]&31;cu(t,u,ee[re]),u+=E[re],re>15&&(cu(t,u,ne[w]>>5&127),u+=ne[w]>>12)}}else M=Xl,N=Jl,P=Ql,F=Yl;for(var w=0;w<s;++w){var L=r[w];if(L>255){var re=L>>18&31;lu(t,u,M[re+257]),u+=N[re+257],re>7&&(cu(t,u,L>>23&31),u+=Fl[re]);var R=L&31;lu(t,u,P[R]),u+=F[R],R>3&&(lu(t,u,L>>5&8191),u+=Il[R])}else lu(t,u,M[L]),u+=N[L]}return lu(t,u,M[256]),u+N[256]},gu=new Pl([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),_u=new Ml(0),vu=function(e,t,n,r,i,a){var o=a.z||e.length,s=new Ml(r+o+5*(1+Math.ceil(o/7e3))+i),c=s.subarray(r,s.length-i),l=a.l,u=(a.r||0)&7;if(t){u&&(c[0]=a.r>>3);for(var d=gu[t-1],f=d>>13,p=d&8191,m=(1<<n)-1,h=a.p||new Nl(32768),g=a.h||new Nl(m+1),_=Math.ceil(n/3),v=2*_,y=function(t){return(e[t]^e[t+1]<<_^e[t+2]<<v)&m},b=new Pl(25e3),x=new Nl(288),S=new Nl(32),C=0,w=0,T=a.i||0,E=0,D=a.w||0,O=0;T+2<o;++T){var k=y(T),A=T&32767,j=g[k];if(h[A]=j,g[k]=A,D<=T){var M=o-T;if((C>7e3||E>24576)&&(M>423||!l)){u=hu(e,c,0,b,x,S,w,E,O,T-O,u),E=C=w=0,O=T;for(var N=0;N<286;++N)x[N]=0;for(var N=0;N<30;++N)S[N]=0}var P=2,F=0,ee=p,I=A-j&32767;if(M>2&&k==y(T-I))for(var te=Math.min(f,M)-1,ne=Math.min(32767,T),re=Math.min(258,M);I<=ne&&--ee&&A!=j;){if(e[T+P]==e[T+P-I]){for(var L=0;L<re&&e[T+L]==e[T+L-I];++L);if(L>P){if(P=L,F=I,L>te)break;for(var R=Math.min(I,L-2),z=0,N=0;N<R;++N){var ie=T-I+N&32767,ae=h[ie],B=ie-ae&32767;B>z&&(z=B,j=ie)}}}A=j,j=h[A],I+=A-j&32767}if(F){b[E++]=268435456|Vl[P]<<18|Wl[F];var oe=Vl[P]&31,se=Wl[F]&31;w+=Fl[oe]+Il[se],++x[257+oe],++S[se],D=T+P,++C}else b[E++]=e[T],++x[e[T]]}}for(T=Math.max(T,D);T<o;++T)b[E++]=e[T],++x[e[T]];u=hu(e,c,l,b,x,S,w,E,O,T-O,u),l||(a.r=u&7|c[u/8|0]<<3,u-=7,a.h=g,a.p=h,a.i=T,a.w=D)}else{for(var T=a.w||0;T<o+l;T+=65535){var V=T+65535;V>=o&&(c[u/8|0]=l,V=o),u=mu(c,u+1,e.subarray(T,V))}a.i=o}return iu(s,0,r+ru(u)+i)},yu=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,a=n.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=r+=n[o];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},bu=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new Ml(a.length+e.length);o.set(a),o.set(e,a.length),e=o,i.w=a.length}return vu(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,i)},xu=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},Su=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=yu();i.p(t.dictionary),xu(e,2,i.d())}},Cu=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&ou(6,`invalid zlib data`),(e[1]>>5&1)==+!t&&ou(6,`invalid zlib data: `+(e[1]&32?`need`:`unexpected`)+` dictionary`),(e[1]>>3&4)+2};function wu(e,t){t||={};var n=yu();n.p(e);var r=bu(e,t,t.dictionary?6:2,4);return Su(r,t),xu(r,r.length-4,n.d()),r}function Tu(e,t){return su(e.subarray(Cu(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var Eu=typeof TextEncoder<`u`&&new TextEncoder,Du=typeof TextDecoder<`u`&&new TextDecoder,Ou=0;try{Du.decode(_u,{stream:!0}),Ou=1}catch{}var ku=function(e){for(var t=``,n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:iu(e,n-1)};i?i==3?(r=((r&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):i&1?t+=String.fromCharCode((r&31)<<6|e[n++]&63):t+=String.fromCharCode((r&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(r)}};function Au(e,t){if(t){for(var n=new Ml(e.length),r=0;r<e.length;++r)n[r]=e.charCodeAt(r);return n}if(Eu)return Eu.encode(e);for(var i=e.length,a=new Ml(e.length+(e.length>>1)),o=0,s=function(e){a[o++]=e},r=0;r<i;++r){if(o+5>a.length){var c=new Ml(o+8+(i-r<<1));c.set(a),a=c}var l=e.charCodeAt(r);l<128||t?s(l):l<2048?(s(192|l>>6),s(128|l&63)):l>55295&&l<57344?(l=65536+(l&1047552)|e.charCodeAt(++r)&1023,s(240|l>>18),s(128|l>>12&63),s(128|l>>6&63),s(128|l&63)):(s(224|l>>12),s(128|l>>6&63),s(128|l&63))}return iu(a,0,o)}function ju(e,t){if(t){for(var n=``,r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}else if(Du)return Du.decode(e);else{var i=ku(e),a=i.s,n=i.r;return n.length&&ou(8),a}}var Mu=u(jl());const Nu=e=>{let t=Au(e),n=wu(t,{level:9}),r=ju(n,!0);return btoa(r)},Pu=e=>{let t=atob(e);if(t.startsWith(`xÚ`)){let e=Au(t,!0),n=Tu(e);return ju(n)}return decodeURIComponent(escape(t))},Fu=e=>e instanceof Z?e:Z.fromObject(e.c,{zone:e.zone}).setLocale(e.loc.locale),Iu=e=>{let t=e.describe();for(let e in t.keys){if(t.keys[e]===void 0||t.keys[e].rules===void 0)continue;t.keys[e].rules=t.keys[e].rules.map(e=>{for(let t in e.args){let n=e.args[t];Mc(n)&&(e.args[t]=Fu(n).toJSDate())}return e})}let n=JSON.stringify({version:`1.20250804.0`,schema:t});return Nu(n)},Lu=e=>{let t=Pu(e),n=JSON.parse(t);if(!Nc(n)||!(`version`in n)||!(`schema`in n)||typeof n.version!=`string`||!Nc(n.schema))throw TypeError(`Not a valid encoded schema`);let{version:r,schema:i}=n;if(Mu.valid(`1.20250804.0`)){if(!Mu.valid(Mu.coerce(r)))throw TypeError(`Invalid schema version: ${r}`);if(Mu.gt(Mu.coerce(r),`1.20250804.0`))throw TypeError(`Schema version ${r} is not compatible with current version 1.20250804.0`)}return zu.build(i)};var Ru=u(Jn());const zu=p(Ru.default.extend(gr).extend(Bc)),Bu={EMPTY_STRING:`Address must be a non-empty string`,FORBIDDEN_UNICODE:`Address contains forbidden Unicode characters`,MULTIPLE_AT_CHAR:`Address cannot contain more than one @ character`,MISSING_AT_CHAR:`Address must contain one @ character`,EMPTY_LOCAL:`Address local part cannot be empty`,ADDRESS_TOO_LONG:`Address too long`,LOCAL_TOO_LONG:`Address local part too long`,EMPTY_LOCAL_SEGMENT:`Address local part contains empty dot-separated segment`,INVALID_LOCAL_CHARS:`Address local part contains invalid character`,DOMAIN_NON_EMPTY_STRING:`Domain must be a non-empty string`,DOMAIN_TOO_LONG:`Domain too long`,DOMAIN_INVALID_UNICODE_CHARS:`Domain contains forbidden Unicode characters`,DOMAIN_INVALID_CHARS:`Domain contains invalid character`,DOMAIN_INVALID_TLDS_CHARS:`Domain contains invalid tld character`,DOMAIN_SEGMENTS_COUNT:`Domain lacks the minimum required number of segments`,DOMAIN_SEGMENTS_COUNT_MAX:`Domain contains too many segments`,DOMAIN_FORBIDDEN_TLDS:`Domain uses forbidden TLD`,DOMAIN_EMPTY_SEGMENT:`Domain contains empty dot-separated segment`,DOMAIN_LONG_SEGMENT:`Domain contains dot-separated segment that is too long`};function $(e){return{code:e,error:Bu[e]}}ht();const Vu=2,Hu=/[^\x00-\x7f]/,Uu=/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,Wu=/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,Gu=/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,Ku=/^[a-zA-Z0-9_](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,qu=mt||URL;function Ju(e){return!!e.allow}function Yu(e,t={}){if(!e)return $(`DOMAIN_NON_EMPTY_STRING`);if(typeof e!=`string`)throw Error(`Invalid input: domain must be a string`);if(e.length>256)return $(`DOMAIN_TOO_LONG`);let n=!Hu.test(e);if(!n){if(t.allowUnicode===!1)return $(`DOMAIN_INVALID_UNICODE_CHARS`);e=e.normalize(`NFC`)}if(Uu.test(e))return $(`DOMAIN_INVALID_CHARS`);e=Zu(e),t.allowFullyQualified&&e[e.length-1]===`.`&&(e=e.slice(0,-1));let r=t.minDomainSegments||Vu,i=e.split(`.`);if(i.length<r)return $(`DOMAIN_SEGMENTS_COUNT`);if(t.maxDomainSegments&&i.length>t.maxDomainSegments)return $(`DOMAIN_SEGMENTS_COUNT_MAX`);let a=t.tlds;if(a){let e=i[i.length-1].toLowerCase();if(Ju(a)){if(!a.allow.has(e))return $(`DOMAIN_FORBIDDEN_TLDS`)}else if(a.deny.has(e))return $(`DOMAIN_FORBIDDEN_TLDS`)}for(let e=0;e<i.length;++e){let n=i[e];if(!n.length)return $(`DOMAIN_EMPTY_SEGMENT`);if(n.length>63)return $(`DOMAIN_LONG_SEGMENT`);if(e<i.length-1){if(t.allowUnderscore){if(!Ku.test(n))return $(`DOMAIN_INVALID_CHARS`)}else if(!Gu.test(n))return $(`DOMAIN_INVALID_CHARS`)}else if(!Wu.test(n))return $(`DOMAIN_INVALID_TLDS_CHARS`)}return null}function Xu(e,t){return!Yu(e,t)}function Zu(e){e.includes(`%`)&&(e=e.replace(/%/g,`%25`));try{return new qu(`http://${e}`).host}catch{return e}}function Qu(e){if(e){if(typeof e.tlds!=`object`)throw Error(`Invalid options: tlds must be a boolean or an object`);if(Ju(e.tlds)){if(!(e.tlds.allow instanceof Set))throw Error(`Invalid options: tlds.allow must be a Set object or true`);if(e.tlds.deny)throw Error(`Invalid options: cannot specify both tlds.allow and tlds.deny lists`)}else if(!(e.tlds.deny instanceof Set))throw Error(`Invalid options: tlds.deny must be a Set object`)}}var $u=u(zn());const ed=/[^\x00-\x7f]/,td=new($u.TextEncoder||TextEncoder);function nd(e,t){return id(e,t)}function rd(e,t){return!id(e,t)}function id(e,t={}){if(typeof e!=`string`)throw Error(`Invalid input: email must be a string`);if(!e)return $(`EMPTY_STRING`);let n=!ed.test(e);if(!n){if(t.allowUnicode===!1)return $(`FORBIDDEN_UNICODE`);e=e.normalize(`NFC`)}let r=e.split(`@`);if(r.length!==2)return r.length>2?$(`MULTIPLE_AT_CHAR`):$(`MISSING_AT_CHAR`);let[i,a]=r;if(!i)return $(`EMPTY_LOCAL`);if(!t.ignoreLength){if(e.length>254)return $(`ADDRESS_TOO_LONG`);if(td.encode(i).length>64)return $(`LOCAL_TOO_LONG`)}return ad(i,n)||Yu(a,t)}function ad(e,t){let n=e.split(`.`);for(let e of n){if(!e.length)return $(`EMPTY_LOCAL_SEGMENT`);if(t){if(!sd.test(e))return $(`INVALID_LOCAL_CHARS`);continue}for(let t of e){if(sd.test(t))continue;let e=od(t);if(!cd.test(e))return $(`INVALID_LOCAL_CHARS`)}}return null}function od(e){return Array.from(td.encode(e),e=>String.fromCharCode(e)).join(``)}const sd=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,cd=new RegExp([`(?:[\\xc2-\\xdf][\\x80-\\xbf])`,`(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})`,`(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})`].join(`|`));var ld=s((exports,t)=>{t.exports=class extends Error{name=`AssertError`;constructor(e,t){super(e||`Unknown error`),typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,t)}}}),ud=s((exports,t)=>{t.exports=function(...e){try{return JSON.stringify(...e)}catch(e){return`[Cannot display object: `+e.message+`]`}}}),dd=s((exports,t)=>{let n=ld(),r=ud(),i=t.exports=function(e,...t){if(e)return;if(t.length===1&&t[0]instanceof Error)throw t[0];let a=t.filter(e=>e!==``).map(e=>typeof e==`string`?e:e instanceof Error?e.message:r(e));throw new n(a.join(` `),i)}}),fd=s((exports,t)=>{let n=dd(),r={};t.exports=function(e,t,i){if(t===!1||t==null)return e;i||={},typeof i==`string`&&(i={separator:i});let a=Array.isArray(t);n(!a||!i.separator,`Separator option is not valid for array-based chain`);let o=a?t:t.split(i.separator||`.`),s=e;for(let e=0;e<o.length;++e){let a=o[e],c=i.iterables&&r.iterables(s);if(Array.isArray(s)||c===`set`){let e=Number(a);Number.isInteger(e)&&(a=e<0?s.length+e:e)}if(!s||typeof s==`function`&&i.functions===!1||!c&&s[a]===void 0){n(!i.strict||e+1===o.length,`Missing segment`,a,`in reach path `,t),n(typeof s==`object`||i.functions===!0||typeof s!=`function`,`Invalid segment`,a,`in reach path `,t),s=i.default;break}s=c?c===`set`?[...s][a]:s.get(a):s[a]}return s},r.iterables=function(e){if(e instanceof Set)return`set`;if(e instanceof Map)return`map`}}),pd=s((exports,t)=>{B();let n={};exports=t.exports={array:Array.prototype,buffer:O&&O.prototype,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,url:URL.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},n.typeMap=new Map([[`[object Error]`,exports.error],[`[object Map]`,exports.map],[`[object Promise]`,exports.promise],[`[object Set]`,exports.set],[`[object URL]`,exports.url],[`[object WeakMap]`,exports.weakMap],[`[object WeakSet]`,exports.weakSet]]),exports.getInternalProto=function(t){if(Array.isArray(t))return exports.array;if(O&&t instanceof O)return exports.buffer;if(t instanceof Date)return exports.date;if(t instanceof RegExp)return exports.regex;if(t instanceof Error)return exports.error;let r=Object.prototype.toString.call(t);return n.typeMap.get(r)||exports.generic}}),md=s(exports=>{exports.keys=function(e,t={}){return t.symbols===!1?Object.getOwnPropertyNames(e):Reflect.ownKeys(e)}}),hd=s((exports,t)=>{B();let n=fd(),r=pd(),i=md(),a={needsProtoHack:new Set([r.set,r.map,r.weakSet,r.weakMap]),structuredCloneExists:typeof structuredClone==`function`};t.exports=a.clone=function(e,t={},n=null){if(typeof e!=`object`||!e)return e;let o=a.clone,s=n;if(t.shallow){if(t.shallow!==!0)return a.cloneWithShallow(e,t);o=e=>e}else if(s){let t=s.get(e);if(t)return t}else s=new Map;let c=r.getInternalProto(e);switch(c){case r.buffer:return O?.from(e);case r.date:return new Date(e.getTime());case r.regex:case r.url:return new c.constructor(e)}let l=a.base(e,c,t);if(l===e)return e;if(s&&s.set(e,l),c===r.set)for(let n of e)l.add(o(n,t,s));else if(c===r.map)for(let[n,r]of e)l.set(n,o(r,t,s));let u=i.keys(e,t);for(let n of u){if(n===`__proto__`)continue;if(c===r.array&&n===`length`){l.length=e.length;continue}if(a.structuredCloneExists&&c===r.error&&n===`stack`)continue;let i=Object.getOwnPropertyDescriptor(e,n);i?i.get||i.set?Object.defineProperty(l,n,i):i.enumerable?l[n]=o(e[n],t,s):Object.defineProperty(l,n,{enumerable:!1,writable:!0,configurable:!0,value:o(e[n],t,s)}):Object.defineProperty(l,n,{enumerable:!0,writable:!0,configurable:!0,value:o(e[n],t,s)})}return l},a.cloneWithShallow=function(e,t){let r=t.shallow;t=Object.assign({},t),t.shallow=!1;let i=new Map;for(let t of r){let r=n(e,t);(typeof r==`object`||typeof r==`function`)&&i.set(r,r)}return a.clone(e,t,i)},a.base=function(e,t,n){if(n.prototype===!1)return a.needsProtoHack.has(t)?new t.constructor:t===r.array?[]:{};let i=Object.getPrototypeOf(e);if(i&&i.isImmutable)return e;if(t===r.array){let e=[];return i!==t&&Object.setPrototypeOf(e,i),e}else if(t===r.error&&a.structuredCloneExists&&(i===t||Error.isPrototypeOf(i.constructor))){let t=structuredClone(e);return Object.getPrototypeOf(t)!==i&&Object.setPrototypeOf(t,i),t}if(a.needsProtoHack.has(t)){let e=new i.constructor;return i!==t&&Object.setPrototypeOf(e,i),e}return Object.create(i)}}),gd=s((exports,t)=>{B();let n=dd(),r=hd(),i=md(),a={};t.exports=a.merge=function(e,t,o){if(n(e&&typeof e==`object`,`Invalid target value: must be an object`),n(t==null||typeof t==`object`,`Invalid source value: must be null, undefined, or an object`),!t)return e;if(o=Object.assign({nullOverride:!0,mergeArrays:!0},o),Array.isArray(t)){n(Array.isArray(e),`Cannot merge array onto an object`),o.mergeArrays||(e.length=0);for(let n=0;n<t.length;++n)e.push(r(t[n],{symbols:o.symbols}));return e}let s=i.keys(t,o);for(let n=0;n<s.length;++n){let i=s[n];if(i===`__proto__`||!Object.prototype.propertyIsEnumerable.call(t,i))continue;let c=t[i];if(c&&typeof c==`object`){if(e[i]===c)continue;!e[i]||typeof e[i]!=`object`||Array.isArray(e[i])!==Array.isArray(c)||c instanceof Date||O&&O.isBuffer(c)||c instanceof RegExp?e[i]=r(c,{symbols:o.symbols}):a.merge(e[i],c,o)}else c==null?o.nullOverride&&(e[i]=c):e[i]=c}return e}}),_d=s((exports,t)=>{let n=dd(),r=hd(),i=gd(),a=fd(),o={};t.exports=function(e,t,a={}){if(n(e&&typeof e==`object`,`Invalid defaults value: must be an object`),n(!t||t===!0||typeof t==`object`,`Invalid source value: must be true, falsy or an object`),n(typeof a==`object`,`Invalid options: must be an object`),!t)return null;if(a.shallow)return o.applyToDefaultsWithShallow(e,t,a);let s=r(e);if(t===!0)return s;let c=a.nullOverride===void 0?!1:a.nullOverride;return i(s,t,{nullOverride:c,mergeArrays:!1})},o.applyToDefaultsWithShallow=function(e,t,s){let c=s.shallow;n(Array.isArray(c),`Invalid keys`);let l=new Map,u=t===!0?null:new Set;for(let n of c){n=Array.isArray(n)?n:n.split(`.`);let r=a(e,n);r&&typeof r==`object`?l.set(r,u&&a(t,n)||r):u&&u.add(n)}let d=r(e,{},l);if(!u)return d;for(let e of u)o.reachCopy(d,t,e);let f=s.nullOverride===void 0?!1:s.nullOverride;return i(d,t,{nullOverride:f,mergeArrays:!1})},o.reachCopy=function(e,t,n){for(let e of n){if(!(e in t))return;let n=t[e];if(typeof n!=`object`||!n)return;t=n}let r=t,i=e;for(let e=0;e<n.length-1;++e){let t=n[e];typeof i[t]!=`object`&&(i[t]={}),i=i[t]}i[n[n.length-1]]=r}}),vd=s((exports,t)=>{It();let n={};t.exports=n.Bench=class{constructor(){this.ts=0,this.reset()}reset(){this.ts=n.Bench.now()}elapsed(){return n.Bench.now()-this.ts}static now(){let e=Ft.hrtime();return e[0]*1e3+e[1]/1e6}}}),yd=s((exports,t)=>{t.exports=function(){}}),bd=s((exports,t)=>{let n=yd();t.exports=function(){return new Promise(n)}}),xd=s((exports,t)=>{B();let n=pd(),r={mismatched:null};t.exports=function(e,t,n){return n=Object.assign({prototype:!0},n),!!r.isDeepEqual(e,t,n,[])},r.isDeepEqual=function(e,t,i,a){if(e===t)return e!==0||1/e==1/t;let o=typeof e;if(o!==typeof t||e===null||t===null)return!1;if(o===`function`){if(!i.deepFunction||e.toString()!==t.toString())return!1}else if(o!==`object`)return e!==e&&t!==t;let s=r.getSharedType(e,t,!!i.prototype);switch(s){case n.buffer:return O&&O.prototype.equals.call(e,t);case n.promise:return e===t;case n.regex:case n.url:return e.toString()===t.toString();case r.mismatched:return!1}for(let n=a.length-1;n>=0;--n)if(a[n].isSame(e,t))return!0;a.push(new r.SeenEntry(e,t));try{return!!r.isDeepEqualObj(s,e,t,i,a)}finally{a.pop()}},r.getSharedType=function(e,t,i){if(i)return Object.getPrototypeOf(e)===Object.getPrototypeOf(t)?n.getInternalProto(e):r.mismatched;let a=n.getInternalProto(e);return a===n.getInternalProto(t)?a:r.mismatched},r.valueOf=function(e){let t=e.valueOf;if(t===void 0)return e;try{return t.call(e)}catch(e){return e}},r.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},r.isSetSimpleEqual=function(e,t){for(let n of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,n))return!1;return!0},r.isDeepEqualObj=function(e,t,i,a,o){let{isDeepEqual:s,valueOf:c,hasOwnEnumerableProperty:l}=r,{keys:u,getOwnPropertySymbols:d}=Object;if(e===n.array)if(a.part){for(let e of t)for(let t of i)if(s(e,t,a,o))return!0}else{if(t.length!==i.length)return!1;for(let e=0;e<t.length;++e)if(!s(t[e],i[e],a,o))return!1;return!0}else if(e===n.set){if(t.size!==i.size)return!1;if(!r.isSetSimpleEqual(t,i)){let e=new Set(Set.prototype.values.call(i));for(let n of Set.prototype.values.call(t)){if(e.delete(n))continue;let t=!1;for(let r of e)if(s(n,r,a,o)){e.delete(r),t=!0;break}if(!t)return!1}}}else if(e===n.map){if(t.size!==i.size)return!1;for(let[e,n]of Map.prototype.entries.call(t))if(n===void 0&&!Map.prototype.has.call(i,e)||!s(n,Map.prototype.get.call(i,e),a,o))return!1}else if(e===n.error&&(t.name!==i.name||t.message!==i.message))return!1;let f=c(t),p=c(i);if((t!==f||i!==p)&&!s(f,p,a,o))return!1;let m=u(t);if(!a.part&&m.length!==u(i).length&&!a.skip)return!1;let h=0;for(let e of m){if(a.skip&&a.skip.includes(e)){i[e]===void 0&&++h;continue}if(!l(i,e)||!s(t[e],i[e],a,o))return!1}if(!a.part&&m.length-h!==u(i).length)return!1;if(a.symbols!==!1){let e=d(t),n=new Set(d(i));for(let r of e){if(!a.skip?.includes(r)){if(l(t,r)){if(!l(i,r)||!s(t[r],i[r],a,o))return!1}else if(l(i,r))return!1}n.delete(r)}for(let e of n)if(l(i,e))return!1}return!0},r.SeenEntry=class{constructor(e,t){this.obj=e,this.ref=t}isSame(e,t){return this.obj===e&&this.ref===t}}}),Sd=s((exports,t)=>{t.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,`\\$&`)}}),Cd=s((exports,t)=>{let n=dd(),r=xd(),i=Sd(),a=md(),o={};t.exports=function(e,t,r={}){return typeof t!=`object`&&(t=[t]),n(!Array.isArray(t)||t.length,`Values array cannot be empty`),typeof e==`string`?o.string(e,t,r):Array.isArray(e)?o.array(e,t,r):(n(typeof e==`object`,`Reference must be string or an object`),o.object(e,t,r))},o.array=function(e,t,n){if(Array.isArray(t)||(t=[t]),!e.length||n.only&&n.once&&e.length!==t.length)return!1;let r,i=new Map;for(let e of t)if(!n.deep||!e||typeof e!=`object`){let t=i.get(e);t?++t.allowed:i.set(e,{allowed:1,hits:0})}else{r??=o.compare(n);let t=!1;for(let[n,a]of i.entries())if(r(n,e)){++a.allowed,t=!0;break}t||i.set(e,{allowed:1,hits:0})}let a=0;for(let t of e){let e;if(!n.deep||!t||typeof t!=`object`)e=i.get(t);else{r??=o.compare(n);for(let[n,a]of i.entries())if(r(n,t)){e=a;break}}if(e&&(++e.hits,++a,n.once&&e.hits>e.allowed))return!1}if(n.only&&a!==e.length)return!1;for(let e of i.values()){if(e.hits===e.allowed)continue;if(e.hits<e.allowed&&!n.part)return!1}return!!a},o.object=function(e,t,r){n(r.once===void 0,`Cannot use option once with object`);let i=a.keys(e,r);if(!i.length)return!1;if(Array.isArray(t))return o.array(i,t,r);let s=Object.getOwnPropertySymbols(t).filter(e=>t.propertyIsEnumerable(e)),c=[...Object.keys(t),...s],l=o.compare(r),u=new Set(c);for(let n of i){if(!u.has(n)){if(r.only)return!1;continue}if(!l(t[n],e[n]))return!1;u.delete(n)}return u.size?r.part?u.size<c.length:!1:!0},o.string=function(e,t,r){if(e===``)return t.length===1&&t[0]===``||!r.once&&!t.some(e=>e!==``);let a=new Map,o=[];for(let e of t)if(n(typeof e==`string`,`Cannot compare string reference to non-string value`),e){let t=a.get(e);t?++t.allowed:(a.set(e,{allowed:1,hits:0}),o.push(i(e)))}else if(r.once||r.only)return!1;if(!o.length)return!0;let s=RegExp(`(${o.join(`|`)})`,`g`),c=e.replace(s,(e,t)=>(++a.get(t).hits,``));if(r.only&&c)return!1;let l=!1;for(let e of a.values()){if(e.hits&&(l=!0),e.hits===e.allowed)continue;if(e.hits<e.allowed&&!r.part||r.once)return!1}return!!l},o.compare=function(e){if(!e.deep)return o.shallow;let t=e.only!==void 0,n=e.part!==void 0,i={prototype:t?e.only:n?!e.part:!1,part:t?!e.only:n?e.part:!1};return(e,t)=>r(e,t,i)},o.shallow=function(e,t){return e===t}}),wd=s((exports,t)=>{let n=dd();t.exports=function(e){return n(/^[ \w\!#\$%&'\(\)\*\+,\-\.\/\:;<\=>\?@\[\]\^`\{\|\}~\"\\]*$/.test(e),`Bad attribute value (`+e+`)`),e.replace(/\\/g,`\\\\`).replace(/\"/g,`\\"`)}}),Td=s((exports,t)=>{let n={};t.exports=function(e){if(!e)return``;let t=``;for(let r=0;r<e.length;++r){let i=e.charCodeAt(r);n.isSafe(i)?t+=e[r]:t+=n.escapeHtmlChar(i)}return t},n.escapeHtmlChar=function(e){let t=n.namedHtml.get(e);if(t)return t;if(e>=256)return`&#`+e+`;`;let r=e.toString(16).padStart(2,`0`);return`&#x${r};`},n.isSafe=function(e){return n.safeCharCodes.has(e)},n.namedHtml=new Map([[38,`&`],[60,`<`],[62,`>`],[34,`"`],[160,` `],[162,`¢`],[163,`£`],[164,`¤`],[169,`©`],[174,`®`]]),n.safeCharCodes=function(){let e=new Set;for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||t===32||t===46||t===44||t===45||t===58||t===95)&&e.add(t);return e}()}),Ed=s((exports,t)=>{let n={};t.exports=function(e){return e?e.replace(/[<>&\u2028\u2029]/g,n.escape):``},n.escape=function(e){return n.replacements.get(e)},n.replacements=new Map([[`<`,`\\u003c`],[`>`,`\\u003e`],[`&`,`\\u0026`],[`\u2028`,`\\u2028`],[`\u2029`,`\\u2029`]])}),Dd=s((exports,t)=>{let n={};t.exports=n.flatten=function(e,t){let r=t||[];for(let t of e)Array.isArray(t)?n.flatten(t,r):r.push(t);return r}}),Od=s((exports,t)=>{let n={};t.exports=function(e,t,r={}){if(!e||!t)return r.first?null:[];let i=[],a=Array.isArray(e)?new Set(e):e,o=new Set;for(let e of t)if(n.has(a,e)&&!o.has(e)){if(r.first)return e;i.push(e),o.add(e)}return r.first?null:i},n.has=function(e,t){return typeof e.has==`function`?e.has(t):e[t]!==void 0}}),kd=s((exports,t)=>{t.exports=function(e){return typeof e?.then==`function`}}),Ad=s((exports,t)=>{let n={wrapped:Symbol(`wrapped`)};t.exports=function(e){if(e[n.wrapped])return e;let t=!1,r=function(...n){t||(t=!0,e(...n))};return r[n.wrapped]=!0,r}}),jd=s((exports,t)=>{let n=fd();t.exports=function(e,t,r){return t.replace(/{([^{}]+)}/g,(t,i)=>{let a=n(e,i,r);return a??``})}}),Md=s((exports,t)=>{let n={maxTimer:2**31-1};t.exports=function(e,t,r){if(typeof e==`bigint`&&(e=Number(e)),e>=2**53-1&&(e=1/0),typeof e!=`number`&&e!==void 0)throw TypeError(`Timeout must be a number or bigint`);return new Promise(i=>{let a=r?r.setTimeout:setTimeout,o=()=>{let r=Math.min(e,n.maxTimer);e-=r,a(()=>e>0?o():i(t),r)};e!==1/0&&o()})}}),Nd=u(_d(),1),Pd=u(dd(),1),Fd=u(vd(),1),Id=u(bd(),1),Ld=u(hd(),1),Rd=u(Cd(),1),zd=u(xd(),1),Bd=u(ld(),1),Vd=u(wd(),1),Hd=u(Td(),1),Ud=u(Ed(),1),Wd=u(Sd(),1),Gd=u(Dd(),1),Kd=u(yd(),1),qd=u(Od(),1),Jd=u(kd(),1),Yd=u(gd(),1),Xd=u(Ad(),1),Zd=u(fd(),1),Qd=u(jd(),1),$d=u(ud(),1),ef=u(Md(),1);function tf(){let e={},t=`\\dA-Fa-f`,n=`[`+t+`]`,r=`\\w-\\.~`,i=`!\\$&'\\(\\)\\*\\+,;=`,a=`%`+t,o=r+a+i+`:@`,s=`[`+o+`]`,c=`(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;e.ipv4address=`(?:`+c+`\\.){3}(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;let l=n+`{1,4}`,u=`(?:`+l+`:[\\dA-Fa-f]{1,4}|`+e.ipv4address+`)`,d=`(?:`+l+`:){6}`+u,f=`::(?:`+l+`:){5}`+u,p=`(?:`+l+`)?::(?:[\\dA-Fa-f]{1,4}:){4}`+u,m=`(?:(?:`+l+`:){0,1}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){3}`+u,h=`(?:(?:`+l+`:){0,2}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){2}`+u,g=`(?:(?:`+l+`:){0,3}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}:`+u,_=`(?:(?:`+l+`:){0,4}[\\dA-Fa-f]{1,4})?::`+u,v=`(?:(?:`+l+`:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}`,y=`(?:(?:`+l+`:){0,6}[\\dA-Fa-f]{1,4})?::`;e.ipv4Cidr=`(?:\\d|[1-2]\\d|3[0-2])`,e.ipv6Cidr=`(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])`,e.ipv6address=`(?:`+d+`|`+f+`|`+p+`|`+m+`|`+h+`|`+g+`|`+_+`|(?:(?:[\\dA-Fa-f]{1,4}:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}|(?:(?:[\\dA-Fa-f]{1,4}:){0,6}[\\dA-Fa-f]{1,4})?::)`,e.ipvFuture=`v`+n+`+\\.[\\w-\\.~!\\$&'\\(\\)\\*\\+,;=:]+`,e.scheme=`[a-zA-Z][a-zA-Z\\d+-\\.]*`,e.schemeRegex=new RegExp(e.scheme);let b=`[`+r+a+i+`:]*`,x=`\\[(?:`+e.ipv6address+`|`+e.ipvFuture+`)\\]`,S=`[`+r+a+i+`]{1,255}`,C=`(?:`+x+`|`+e.ipv4address+`|[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=]{1,255})`,w=`\\d*`,T=`(?:`+b+`@)?`+C+`(?::\\d*)?`,E=`(?:`+b+`@)?(`+C+`)(?::\\d*)?`,D=s+`*`,O=s+`+`,k=`[`+r+a+i+`@]+`,A=``,j=`(?:\\/`+D+`)*`,M=`\\/(?:`+O+j+`)?`,N=O+j,P=k+j,F=`(?:\\/\\/\\/`+D+j+`)`;return e.hierPart=`(?:(?:\\/\\/`+T+j+`)|`+M+`|`+N+`|`+F+`)`,e.hierPartCapture=`(?:(?:\\/\\/`+E+j+`)|`+M+`|`+N+`)`,e.relativeRef=`(?:(?:\\/\\/`+T+j+`)|`+M+`|`+P+`|)`,e.relativeRefCapture=`(?:(?:\\/\\/`+E+j+`)|`+M+`|`+P+`|)`,e.query=`[`+o+`\\/\\?]*(?=#|$)`,e.queryWithSquareBrackets=`[`+o+`\\[\\]\\/\\?]*(?=#|$)`,e.fragment=`[`+o+`\\/\\?]*`,e}const nf=tf(),rf={v4Cidr:nf.ipv4Cidr,v6Cidr:nf.ipv6Cidr,ipv4:nf.ipv4address,ipv6:nf.ipv6address,ipvfuture:nf.ipvFuture};function af(e){let t=nf,n=e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query,r=`(?:\\?`+n+`)?(?:#`+t.fragment+`)?`,i=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return sf(i+r);let a=``;if(e.scheme){(0,Pd.default)(e.scheme instanceof RegExp||typeof e.scheme==`string`||Array.isArray(e.scheme),`scheme must be a RegExp, String, or Array`);let n=[].concat(e.scheme);(0,Pd.default)(n.length>=1,`scheme must have at least 1 scheme specified`);let r=[];for(let e=0;e<n.length;++e){let i=n[e];(0,Pd.default)(i instanceof RegExp||typeof i==`string`,`scheme at position `+e+` must be a RegExp or String`),i instanceof RegExp?r.push(i.source.toString()):((0,Pd.default)(t.schemeRegex.test(i),`scheme at position `+e+` must be a valid scheme`),r.push((0,Wd.default)(i)))}a=r.join(`|`)}let o=a?`(?:`+a+`)`:t.scheme,s=`(?:`+o+`:`+(e.domain?t.hierPartCapture:t.hierPart)+`)`,c=e.allowRelative?`(?:`+s+`|`+i+`)`:s;return sf(c+r,a)}function sf(e,t=null){return e=`(?=.)(?!https?\:/(?:$|[^/]))(?!https?\:///)(?!https?\:[^/])${e}`,{raw:e,regex:RegExp(`^${e}$`),scheme:t}}const cf=af({});function lf(e={}){return e.scheme||e.allowRelative||e.relativeOnly||e.allowQuerySquareBrackets||e.domain?af(e):cf}function uf(e={}){let t=e.cidr||`optional`;(0,Pd.default)([`required`,`optional`,`forbidden`].includes(t),`options.cidr must be one of required, optional, forbidden`),(0,Pd.default)(e.version===void 0||typeof e.version==`string`||Array.isArray(e.version),`options.version must be a string or an array of string`);let n=e.version||[`ipv4`,`ipv6`,`ipvfuture`];Array.isArray(n)||(n=[n]),(0,Pd.default)(n.length>=1,`options.version must have at least 1 version specified`);for(let e of n)(0,Pd.default)(typeof e==`string`&&e===e.toLowerCase(),`Invalid options.version value`),(0,Pd.default)([`ipv4`,`ipv6`,`ipvfuture`].includes(e),`options.version contains unknown version `+e+` - must be one of ipv4, ipv6, ipvfuture`);n=Array.from(new Set(n));let r=n.map(e=>{if(t===`forbidden`)return rf[e];let n=`\\/${e===`ipv4`?rf.v4Cidr:rf.v6Cidr}`;return t===`required`?`${rf[e]}${n}`:`${rf[e]}(?:${n})?`}),i=`(?:${r.join(`|`)})`,a=RegExp(`^${i}$`);return{cidr:t,versions:n,regex:a,raw:i}}const df={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},ff={accept:12,reject:0,data:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7]};function pf(e){let t=e.indexOf(`%`);if(t===-1)return e;let n=``,r=0,i=0,a=t,o=ff.accept;for(;t>-1&&t<e.length;){let s=mf(e[t+1],4),c=mf(e[t+2],0),l=s|c,u=ff.data[l];if(o=ff.data[256+o+u],i=i<<6|l&ff.data[364+u],o===ff.accept){n+=e.slice(r,a),n+=i<=65535?String.fromCharCode(i):String.fromCharCode(55232+(i>>10),56320+(i&1023)),i=0,r=t+3,t=e.indexOf(`%`,r),a=t;continue}if(o===ff.reject||(t+=3,t>=e.length||e[t]!==`%`))return null}return n+e.slice(r)}function mf(e,t){let n=df[e];return n===void 0?255:n<<t}var hf={};c(hf,{analyzeDomain:()=>Yu,analyzeEmail:()=>nd,errorCodes:()=>Bu,ipRegex:()=>uf,isDomainValid:()=>Xu,isEmailValid:()=>rd,uriDecode:()=>pf,uriRegex:()=>lf,validateDomainOptions:()=>Qu});var gf=s(exports=>{let t={operators:[`!`,`^`,`*`,`/`,`%`,`+`,`-`,`<`,`<=`,`>`,`>=`,`==`,`!=`,`&&`,`||`,`??`],operatorCharacters:[`!`,`^`,`*`,`/`,`%`,`+`,`-`,`<`,`=`,`>`,`&`,`|`,`?`],operatorsOrder:[[`^`],[`*`,`/`,`%`],[`+`,`-`],[`<`,`<=`,`>`,`>=`],[`==`,`!=`],[`&&`],[`||`,`??`]],operatorsPrefix:[`!`,`n`],literals:{'"':`"`,"`":"`","'":`'`,"[":`]`},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol(`formula`),settings:Symbol(`settings`)};exports.Parser=class{constructor(e,n={}){if(!n[t.settings]&&n.constants)for(let e in n.constants){let t=n.constants[e];if(t!==null&&![`boolean`,`number`,`string`].includes(typeof t))throw Error(`Formula constant ${e} contains invalid ${typeof t} value type`)}this.settings=n[t.settings]?n:Object.assign({[t.settings]:!0,constants:{},functions:{}},n),this.single=null,this._parts=null,this._parse(e)}_parse(n){let r=[],i=``,a=0,o=!1,s=n=>{if(a)throw Error(`Formula missing closing parenthesis`);let s=r.length?r[r.length-1]:null;if(!(!o&&!i&&!n)){if(s&&s.type===`reference`&&n===`)`){s.type=`function`,s.value=this._subFormula(i,s.value),i=``;return}if(n===`)`){let t=new exports.Parser(i,this.settings);r.push({type:`segment`,value:t})}else if(o){if(o===`]`){r.push({type:`reference`,value:i}),i=``;return}r.push({type:`literal`,value:i})}else if(t.operatorCharacters.includes(i))s&&s.type===`operator`&&t.operators.includes(s.value+i)?s.value+=i:r.push({type:`operator`,value:i});else if(i.match(t.numberRx))r.push({type:`constant`,value:parseFloat(i)});else if(this.settings.constants[i]!==void 0)r.push({type:`constant`,value:this.settings.constants[i]});else{if(!i.match(t.tokenRx))throw Error(`Formula contains invalid token: ${i}`);r.push({type:`reference`,value:i})}i=``}};for(let e of n)o?e===o?(s(),o=!1):i+=e:a?e===`(`?(i+=e,++a):e===`)`?(--a,a?i+=e:s(e)):i+=e:e in t.literals?o=t.literals[e]:e===`(`?(s(),++a):t.operatorCharacters.includes(e)?(s(),i=e,s()):e===` `?s():i+=e;s(),r=r.map((e,t)=>e.type!==`operator`||e.value!==`-`||t&&r[t-1].type!==`operator`?e:{type:`operator`,value:`n`});let c=!1;for(let e of r){if(e.type===`operator`){if(t.operatorsPrefix.includes(e.value))continue;if(!c)throw Error(`Formula contains an operator in invalid position`);if(!t.operators.includes(e.value))throw Error(`Formula contains an unknown operator ${e.value}`)}else if(c)throw Error(`Formula missing expected operator`);c=!c}if(!c)throw Error(`Formula contains invalid trailing operator`);r.length===1&&[`reference`,`literal`,`constant`].includes(r[0].type)&&(this.single={type:r[0].type===`reference`?`reference`:`value`,value:r[0].value}),this._parts=r.map(e=>{if(e.type===`operator`)return t.operatorsPrefix.includes(e.value)?e:e.value;if(e.type!==`reference`)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw Error(`Formula contains invalid reference ${e.value}`);return this.settings.reference?this.settings.reference(e.value):t.reference(e.value)})}_subFormula(n,r){let i=this.settings.functions[r];if(typeof i!=`function`)throw Error(`Formula contains unknown function ${r}`);let a=[];if(n){let e=``,i=0,o=!1,s=()=>{if(!e)throw Error(`Formula contains function ${r} with invalid arguments ${n}`);a.push(e),e=``};for(let r=0;r<n.length;++r){let a=n[r];o?(e+=a,a===o&&(o=!1)):a in t.literals&&!i?(e+=a,o=t.literals[a]):a===`,`&&!i?s():(e+=a,a===`(`?++i:a===`)`&&--i)}s()}return a=a.map(t=>new exports.Parser(t,this.settings)),function(e){let t=[];for(let n of a)t.push(n.evaluate(e));return i.call(e,...t)}}evaluate(e){let n=this._parts.slice();for(let r=n.length-2;r>=0;--r){let i=n[r];if(i&&i.type===`operator`){let a=n[r+1];n.splice(r+1,1);let o=t.evaluate(a,e);n[r]=t.single(i.value,o)}}return t.operatorsOrder.forEach(r=>{for(let i=1;i<n.length-1;)if(r.includes(n[i])){let r=n[i],a=t.evaluate(n[i-1],e),o=t.evaluate(n[i+1],e);n.splice(i,2);let s=t.calculate(r,a,o);n[i-1]=s===0?0:s}else i+=2}),t.evaluate(n[0],e)}},exports.Parser.prototype[t.symbol]=!0,t.reference=function(e){return function(t){return t&&t[e]!==void 0?t[e]:null}},t.evaluate=function(e,n){return e===null?null:typeof e==`function`?e(n):e[t.symbol]?e.evaluate(n):e},t.single=function(e,t){if(e===`!`)return!t;let n=-t;return n===0?0:n},t.calculate=function(e,n,r){if(e===`??`)return t.exists(n)?n:r;if(typeof n==`string`||typeof r==`string`){if(e===`+`)return n=t.exists(n)?n:``,r=t.exists(r)?r:``,n+r}else switch(e){case`^`:return n**+r;case`*`:return n*r;case`/`:return n/r;case`%`:return n%r;case`+`:return n+r;case`-`:return n-r}switch(e){case`<`:return n<r;case`<=`:return n<=r;case`>`:return n>r;case`>=`:return n>=r;case`==`:return n===r;case`!=`:return n!==r;case`&&`:return n&&r;case`||`:return n||r}return null},t.exists=function(e){return e!=null}}),_f=s(exports=>{exports.location=function(e=0){let t=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;let n={};Error.captureStackTrace(n,this);let r=n.stack[e+1];return Error.prepareStackTrace=t,{filename:r.getFileName(),line:r.getLineNumber()}}});const vf=`AAA.AARP.ABB.ABBOTT.ABBVIE.ABC.ABLE.ABOGADO.ABUDHABI.AC.ACADEMY.ACCENTURE.ACCOUNTANT.ACCOUNTANTS.ACO.ACTOR.AD.ADS.ADULT.AE.AEG.AERO.AETNA.AF.AFL.AFRICA.AG.AGAKHAN.AGENCY.AI.AIG.AIRBUS.AIRFORCE.AIRTEL.AKDN.AL.ALIBABA.ALIPAY.ALLFINANZ.ALLSTATE.ALLY.ALSACE.ALSTOM.AM.AMAZON.AMERICANEXPRESS.AMERICANFAMILY.AMEX.AMFAM.AMICA.AMSTERDAM.ANALYTICS.ANDROID.ANQUAN.ANZ.AO.AOL.APARTMENTS.APP.APPLE.AQ.AQUARELLE.AR.ARAB.ARAMCO.ARCHI.ARMY.ARPA.ART.ARTE.AS.ASDA.ASIA.ASSOCIATES.AT.ATHLETA.ATTORNEY.AU.AUCTION.AUDI.AUDIBLE.AUDIO.AUSPOST.AUTHOR.AUTO.AUTOS.AW.AWS.AX.AXA.AZ.AZURE.BA.BABY.BAIDU.BANAMEX.BAND.BANK.BAR.BARCELONA.BARCLAYCARD.BARCLAYS.BAREFOOT.BARGAINS.BASEBALL.BASKETBALL.BAUHAUS.BAYERN.BB.BBC.BBT.BBVA.BCG.BCN.BD.BE.BEATS.BEAUTY.BEER.BERLIN.BEST.BESTBUY.BET.BF.BG.BH.BHARTI.BI.BIBLE.BID.BIKE.BING.BINGO.BIO.BIZ.BJ.BLACK.BLACKFRIDAY.BLOCKBUSTER.BLOG.BLOOMBERG.BLUE.BM.BMS.BMW.BN.BNPPARIBAS.BO.BOATS.BOEHRINGER.BOFA.BOM.BOND.BOO.BOOK.BOOKING.BOSCH.BOSTIK.BOSTON.BOT.BOUTIQUE.BOX.BR.BRADESCO.BRIDGESTONE.BROADWAY.BROKER.BROTHER.BRUSSELS.BS.BT.BUILD.BUILDERS.BUSINESS.BUY.BUZZ.BV.BW.BY.BZ.BZH.CA.CAB.CAFE.CAL.CALL.CALVINKLEIN.CAM.CAMERA.CAMP.CANON.CAPETOWN.CAPITAL.CAPITALONE.CAR.CARAVAN.CARDS.CARE.CAREER.CAREERS.CARS.CASA.CASE.CASH.CASINO.CAT.CATERING.CATHOLIC.CBA.CBN.CBRE.CC.CD.CENTER.CEO.CERN.CF.CFA.CFD.CG.CH.CHANEL.CHANNEL.CHARITY.CHASE.CHAT.CHEAP.CHINTAI.CHRISTMAS.CHROME.CHURCH.CI.CIPRIANI.CIRCLE.CISCO.CITADEL.CITI.CITIC.CITY.CK.CL.CLAIMS.CLEANING.CLICK.CLINIC.CLINIQUE.CLOTHING.CLOUD.CLUB.CLUBMED.CM.CN.CO.COACH.CODES.COFFEE.COLLEGE.COLOGNE.COM.COMMBANK.COMMUNITY.COMPANY.COMPARE.COMPUTER.COMSEC.CONDOS.CONSTRUCTION.CONSULTING.CONTACT.CONTRACTORS.COOKING.COOL.COOP.CORSICA.COUNTRY.COUPON.COUPONS.COURSES.CPA.CR.CREDIT.CREDITCARD.CREDITUNION.CRICKET.CROWN.CRS.CRUISE.CRUISES.CU.CUISINELLA.CV.CW.CX.CY.CYMRU.CYOU.CZ.DAD.DANCE.DATA.DATE.DATING.DATSUN.DAY.DCLK.DDS.DE.DEAL.DEALER.DEALS.DEGREE.DELIVERY.DELL.DELOITTE.DELTA.DEMOCRAT.DENTAL.DENTIST.DESI.DESIGN.DEV.DHL.DIAMONDS.DIET.DIGITAL.DIRECT.DIRECTORY.DISCOUNT.DISCOVER.DISH.DIY.DJ.DK.DM.DNP.DO.DOCS.DOCTOR.DOG.DOMAINS.DOT.DOWNLOAD.DRIVE.DTV.DUBAI.DUNLOP.DUPONT.DURBAN.DVAG.DVR.DZ.EARTH.EAT.EC.ECO.EDEKA.EDU.EDUCATION.EE.EG.EMAIL.EMERCK.ENERGY.ENGINEER.ENGINEERING.ENTERPRISES.EPSON.EQUIPMENT.ER.ERICSSON.ERNI.ES.ESQ.ESTATE.ET.EU.EUROVISION.EUS.EVENTS.EXCHANGE.EXPERT.EXPOSED.EXPRESS.EXTRASPACE.FAGE.FAIL.FAIRWINDS.FAITH.FAMILY.FAN.FANS.FARM.FARMERS.FASHION.FAST.FEDEX.FEEDBACK.FERRARI.FERRERO.FI.FIDELITY.FIDO.FILM.FINAL.FINANCE.FINANCIAL.FIRE.FIRESTONE.FIRMDALE.FISH.FISHING.FIT.FITNESS.FJ.FK.FLICKR.FLIGHTS.FLIR.FLORIST.FLOWERS.FLY.FM.FO.FOO.FOOD.FOOTBALL.FORD.FOREX.FORSALE.FORUM.FOUNDATION.FOX.FR.FREE.FRESENIUS.FRL.FROGANS.FRONTIER.FTR.FUJITSU.FUN.FUND.FURNITURE.FUTBOL.FYI.GA.GAL.GALLERY.GALLO.GALLUP.GAME.GAMES.GAP.GARDEN.GAY.GB.GBIZ.GD.GDN.GE.GEA.GENT.GENTING.GEORGE.GF.GG.GGEE.GH.GI.GIFT.GIFTS.GIVES.GIVING.GL.GLASS.GLE.GLOBAL.GLOBO.GM.GMAIL.GMBH.GMO.GMX.GN.GODADDY.GOLD.GOLDPOINT.GOLF.GOO.GOODYEAR.GOOG.GOOGLE.GOP.GOT.GOV.GP.GQ.GR.GRAINGER.GRAPHICS.GRATIS.GREEN.GRIPE.GROCERY.GROUP.GS.GT.GU.GUCCI.GUGE.GUIDE.GUITARS.GURU.GW.GY.HAIR.HAMBURG.HANGOUT.HAUS.HBO.HDFC.HDFCBANK.HEALTH.HEALTHCARE.HELP.HELSINKI.HERE.HERMES.HIPHOP.HISAMITSU.HITACHI.HIV.HK.HKT.HM.HN.HOCKEY.HOLDINGS.HOLIDAY.HOMEDEPOT.HOMEGOODS.HOMES.HOMESENSE.HONDA.HORSE.HOSPITAL.HOST.HOSTING.HOT.HOTELS.HOTMAIL.HOUSE.HOW.HR.HSBC.HT.HU.HUGHES.HYATT.HYUNDAI.IBM.ICBC.ICE.ICU.ID.IE.IEEE.IFM.IKANO.IL.IM.IMAMAT.IMDB.IMMO.IMMOBILIEN.IN.INC.INDUSTRIES.INFINITI.INFO.ING.INK.INSTITUTE.INSURANCE.INSURE.INT.INTERNATIONAL.INTUIT.INVESTMENTS.IO.IPIRANGA.IQ.IR.IRISH.IS.ISMAILI.IST.ISTANBUL.IT.ITAU.ITV.JAGUAR.JAVA.JCB.JE.JEEP.JETZT.JEWELRY.JIO.JLL.JM.JMP.JNJ.JO.JOBS.JOBURG.JOT.JOY.JP.JPMORGAN.JPRS.JUEGOS.JUNIPER.KAUFEN.KDDI.KE.KERRYHOTELS.KERRYPROPERTIES.KFH.KG.KH.KI.KIA.KIDS.KIM.KINDLE.KITCHEN.KIWI.KM.KN.KOELN.KOMATSU.KOSHER.KP.KPMG.KPN.KR.KRD.KRED.KUOKGROUP.KW.KY.KYOTO.KZ.LA.LACAIXA.LAMBORGHINI.LAMER.LAND.LANDROVER.LANXESS.LASALLE.LAT.LATINO.LATROBE.LAW.LAWYER.LB.LC.LDS.LEASE.LECLERC.LEFRAK.LEGAL.LEGO.LEXUS.LGBT.LI.LIDL.LIFE.LIFEINSURANCE.LIFESTYLE.LIGHTING.LIKE.LILLY.LIMITED.LIMO.LINCOLN.LINK.LIVE.LIVING.LK.LLC.LLP.LOAN.LOANS.LOCKER.LOCUS.LOL.LONDON.LOTTE.LOTTO.LOVE.LPL.LPLFINANCIAL.LR.LS.LT.LTD.LTDA.LU.LUNDBECK.LUXE.LUXURY.LV.LY.MA.MADRID.MAIF.MAISON.MAKEUP.MAN.MANAGEMENT.MANGO.MAP.MARKET.MARKETING.MARKETS.MARRIOTT.MARSHALLS.MATTEL.MBA.MC.MCKINSEY.MD.ME.MED.MEDIA.MEET.MELBOURNE.MEME.MEMORIAL.MEN.MENU.MERCKMSD.MG.MH.MIAMI.MICROSOFT.MIL.MINI.MINT.MIT.MITSUBISHI.MK.ML.MLB.MLS.MM.MMA.MN.MO.MOBI.MOBILE.MODA.MOE.MOI.MOM.MONASH.MONEY.MONSTER.MORMON.MORTGAGE.MOSCOW.MOTO.MOTORCYCLES.MOV.MOVIE.MP.MQ.MR.MS.MSD.MT.MTN.MTR.MU.MUSEUM.MUSIC.MV.MW.MX.MY.MZ.NA.NAB.NAGOYA.NAME.NAVY.NBA.NC.NE.NEC.NET.NETBANK.NETFLIX.NETWORK.NEUSTAR.NEW.NEWS.NEXT.NEXTDIRECT.NEXUS.NF.NFL.NG.NGO.NHK.NI.NICO.NIKE.NIKON.NINJA.NISSAN.NISSAY.NL.NO.NOKIA.NORTON.NOW.NOWRUZ.NOWTV.NP.NR.NRA.NRW.NTT.NU.NYC.NZ.OBI.OBSERVER.OFFICE.OKINAWA.OLAYAN.OLAYANGROUP.OLLO.OM.OMEGA.ONE.ONG.ONL.ONLINE.OOO.OPEN.ORACLE.ORANGE.ORG.ORGANIC.ORIGINS.OSAKA.OTSUKA.OTT.OVH.PA.PAGE.PANASONIC.PARIS.PARS.PARTNERS.PARTS.PARTY.PAY.PCCW.PE.PET.PF.PFIZER.PG.PH.PHARMACY.PHD.PHILIPS.PHONE.PHOTO.PHOTOGRAPHY.PHOTOS.PHYSIO.PICS.PICTET.PICTURES.PID.PIN.PING.PINK.PIONEER.PIZZA.PK.PL.PLACE.PLAY.PLAYSTATION.PLUMBING.PLUS.PM.PN.PNC.POHL.POKER.POLITIE.PORN.POST.PR.PRAXI.PRESS.PRIME.PRO.PROD.PRODUCTIONS.PROF.PROGRESSIVE.PROMO.PROPERTIES.PROPERTY.PROTECTION.PRU.PRUDENTIAL.PS.PT.PUB.PW.PWC.PY.QA.QPON.QUEBEC.QUEST.RACING.RADIO.RE.READ.REALESTATE.REALTOR.REALTY.RECIPES.RED.REDSTONE.REDUMBRELLA.REHAB.REISE.REISEN.REIT.RELIANCE.REN.RENT.RENTALS.REPAIR.REPORT.REPUBLICAN.REST.RESTAURANT.REVIEW.REVIEWS.REXROTH.RICH.RICHARDLI.RICOH.RIL.RIO.RIP.RO.ROCKS.RODEO.ROGERS.ROOM.RS.RSVP.RU.RUGBY.RUHR.RUN.RW.RWE.RYUKYU.SA.SAARLAND.SAFE.SAFETY.SAKURA.SALE.SALON.SAMSCLUB.SAMSUNG.SANDVIK.SANDVIKCOROMANT.SANOFI.SAP.SARL.SAS.SAVE.SAXO.SB.SBI.SBS.SC.SCB.SCHAEFFLER.SCHMIDT.SCHOLARSHIPS.SCHOOL.SCHULE.SCHWARZ.SCIENCE.SCOT.SD.SE.SEARCH.SEAT.SECURE.SECURITY.SEEK.SELECT.SENER.SERVICES.SEVEN.SEW.SEX.SEXY.SFR.SG.SH.SHANGRILA.SHARP.SHELL.SHIA.SHIKSHA.SHOES.SHOP.SHOPPING.SHOUJI.SHOW.SI.SILK.SINA.SINGLES.SITE.SJ.SK.SKI.SKIN.SKY.SKYPE.SL.SLING.SM.SMART.SMILE.SN.SNCF.SO.SOCCER.SOCIAL.SOFTBANK.SOFTWARE.SOHU.SOLAR.SOLUTIONS.SONG.SONY.SOY.SPA.SPACE.SPORT.SPOT.SR.SRL.SS.ST.STADA.STAPLES.STAR.STATEBANK.STATEFARM.STC.STCGROUP.STOCKHOLM.STORAGE.STORE.STREAM.STUDIO.STUDY.STYLE.SU.SUCKS.SUPPLIES.SUPPLY.SUPPORT.SURF.SURGERY.SUZUKI.SV.SWATCH.SWISS.SX.SY.SYDNEY.SYSTEMS.SZ.TAB.TAIPEI.TALK.TAOBAO.TARGET.TATAMOTORS.TATAR.TATTOO.TAX.TAXI.TC.TCI.TD.TDK.TEAM.TECH.TECHNOLOGY.TEL.TEMASEK.TENNIS.TEVA.TF.TG.TH.THD.THEATER.THEATRE.TIAA.TICKETS.TIENDA.TIPS.TIRES.TIROL.TJ.TJMAXX.TJX.TK.TKMAXX.TL.TM.TMALL.TN.TO.TODAY.TOKYO.TOOLS.TOP.TORAY.TOSHIBA.TOTAL.TOURS.TOWN.TOYOTA.TOYS.TR.TRADE.TRADING.TRAINING.TRAVEL.TRAVELERS.TRAVELERSINSURANCE.TRUST.TRV.TT.TUBE.TUI.TUNES.TUSHU.TV.TVS.TW.TZ.UA.UBANK.UBS.UG.UK.UNICOM.UNIVERSITY.UNO.UOL.UPS.US.UY.UZ.VA.VACATIONS.VANA.VANGUARD.VC.VE.VEGAS.VENTURES.VERISIGN.VERSICHERUNG.VET.VG.VI.VIAJES.VIDEO.VIG.VIKING.VILLAS.VIN.VIP.VIRGIN.VISA.VISION.VIVA.VIVO.VLAANDEREN.VN.VODKA.VOLVO.VOTE.VOTING.VOTO.VOYAGE.VU.WALES.WALMART.WALTER.WANG.WANGGOU.WATCH.WATCHES.WEATHER.WEATHERCHANNEL.WEBCAM.WEBER.WEBSITE.WED.WEDDING.WEIBO.WEIR.WF.WHOSWHO.WIEN.WIKI.WILLIAMHILL.WIN.WINDOWS.WINE.WINNERS.WME.WOLTERSKLUWER.WOODSIDE.WORK.WORKS.WORLD.WOW.WS.WTC.WTF.XBOX.XEROX.XIHUAN.XIN.XN--11B4C3D.XN--1CK2E1B.XN--1QQW23A.XN--2SCRJ9C.XN--30RR7Y.XN--3BST00M.XN--3DS443G.XN--3E0B707E.XN--3HCRJ9C.XN--3PXU8K.XN--42C2D9A.XN--45BR5CYL.XN--45BRJ9C.XN--45Q11C.XN--4DBRK0CE.XN--4GBRIM.XN--54B7FTA0CC.XN--55QW42G.XN--55QX5D.XN--5SU34J936BGSG.XN--5TZM5G.XN--6FRZ82G.XN--6QQ986B3XL.XN--80ADXHKS.XN--80AO21A.XN--80AQECDR1A.XN--80ASEHDB.XN--80ASWG.XN--8Y0A063A.XN--90A3AC.XN--90AE.XN--90AIS.XN--9DBQ2A.XN--9ET52U.XN--9KRT00A.XN--B4W605FERD.XN--BCK1B9A5DRE4C.XN--C1AVG.XN--C2BR7G.XN--CCK2B3B.XN--CCKWCXETD.XN--CG4BKI.XN--CLCHC0EA0B2G2A9GCD.XN--CZR694B.XN--CZRS0T.XN--CZRU2D.XN--D1ACJ3B.XN--D1ALF.XN--E1A4C.XN--ECKVDTC9D.XN--EFVY88H.XN--FCT429K.XN--FHBEI.XN--FIQ228C5HS.XN--FIQ64B.XN--FIQS8S.XN--FIQZ9S.XN--FJQ720A.XN--FLW351E.XN--FPCRJ9C3D.XN--FZC2C9E2C.XN--FZYS8D69UVGM.XN--G2XX48C.XN--GCKR3F0F.XN--GECRJ9C.XN--GK3AT1E.XN--H2BREG3EVE.XN--H2BRJ9C.XN--H2BRJ9C8C.XN--HXT814E.XN--I1B6B1A6A2E.XN--IMR513N.XN--IO0A7I.XN--J1AEF.XN--J1AMH.XN--J6W193G.XN--JLQ480N2RG.XN--JVR189M.XN--KCRX77D1X4A.XN--KPRW13D.XN--KPRY57D.XN--KPUT3I.XN--L1ACC.XN--LGBBAT1AD8J.XN--MGB9AWBF.XN--MGBA3A3EJT.XN--MGBA3A4F16A.XN--MGBA7C0BBN0A.XN--MGBAAM7A8H.XN--MGBAB2BD.XN--MGBAH1A3HJKRD.XN--MGBAI9AZGQP6J.XN--MGBAYH7GPA.XN--MGBBH1A.XN--MGBBH1A71E.XN--MGBC0A9AZCG.XN--MGBCA7DZDO.XN--MGBCPQ6GPA1A.XN--MGBERP4A5D4AR.XN--MGBGU82A.XN--MGBI4ECEXP.XN--MGBPL2FH.XN--MGBT3DHD.XN--MGBTX2B.XN--MGBX4CD0AB.XN--MIX891F.XN--MK1BU44C.XN--MXTQ1M.XN--NGBC5AZD.XN--NGBE9E0A.XN--NGBRX.XN--NODE.XN--NQV7F.XN--NQV7FS00EMA.XN--NYQY26A.XN--O3CW4H.XN--OGBPF8FL.XN--OTU796D.XN--P1ACF.XN--P1AI.XN--PGBS0DH.XN--PSSY2U.XN--Q7CE6A.XN--Q9JYB4C.XN--QCKA1PMC.XN--QXA6A.XN--QXAM.XN--RHQV96G.XN--ROVU88B.XN--RVC1E0AM3E.XN--S9BRJ9C.XN--SES554G.XN--T60B56A.XN--TCKWE.XN--TIQ49XQYJ.XN--UNUP4Y.XN--VERMGENSBERATER-CTB.XN--VERMGENSBERATUNG-PWB.XN--VHQUV.XN--VUQ861B.XN--W4R85EL8FHU5DNRA.XN--W4RS40L.XN--WGBH1C.XN--WGBL6A.XN--XHQ521B.XN--XKC2AL3HYE2A.XN--XKC2DL3A5EE0H.XN--Y9A3AQ.XN--YFRO4I67O.XN--YGBI2AMMX.XN--ZFR164B.XXX.XYZ.YACHTS.YAHOO.YAMAXUN.YANDEX.YE.YODOBASHI.YOGA.YOKOHAMA.YOU.YOUTUBE.YT.YUN.ZA.ZAPPOS.ZARA.ZERO.ZIP.ZM.ZONE.ZUERICH.ZW`.split(`.`),yf=new Set(vf.map(e=>e.toLowerCase()));var bf=u(gf()),xf=u(_f()),Sf=u(Jn());const Cf=`1.20250804.0`;Object.defineProperty(exports,`ValidationError`,{enumerable:!0,get:function(){return Sf.ValidationError}}),Object.defineProperty(exports,`address`,{enumerable:!0,get:function(){return hf}}),exports.decode=Lu,exports.encode=Iu,Object.defineProperty(exports,`formula`,{enumerable:!0,get:function(){return bf}}),Object.defineProperty(exports,`location`,{enumerable:!0,get:function(){return xf.location}}),exports.tlds=yf,exports.validator=zu,exports.version=Cf;
|
|
5
11
|
//# sourceMappingURL=index.cjs.map
|