@nhtio/validation 1.20250720.0 → 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 +2 -5
- package/index.cjs.map +1 -1
- package/index.mjs +2 -5
- 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,4 +1,4 @@
|
|
|
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);function f(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 p(e){var t=f(e),n=t[0],r=t[1];return(n+r)*3/4-r}function m(e,t,n){return(t+n)*3/4-n}function h(e){var t,n=f(e),r=n[0],i=n[1],a=new C(m(e,r,i)),o=0,s=i>0?r-4:r,c;for(c=0;c<s;c+=4)t=S[e.charCodeAt(c)]<<18|S[e.charCodeAt(c+1)]<<12|S[e.charCodeAt(c+2)]<<6|S[e.charCodeAt(c+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=S[e.charCodeAt(c)]<<2|S[e.charCodeAt(c+1)]>>4,a[o++]=t&255),i===1&&(t=S[e.charCodeAt(c)]<<10|S[e.charCodeAt(c+1)]<<4|S[e.charCodeAt(c+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function g(e){return x[e>>18&63]+x[e>>12&63]+x[e>>6&63]+x[e&63]}function _(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(g(r));return i.join(``)}function v(e){for(var t,n=e.length,r=n%3,i=[],a=16383,o=0,s=n-r;o<s;o+=a)i.push(_(e,o,o+a>s?s:o+a));return r===1?(t=e[n-1],i.push(x[t>>2]+x[t<<4&63]+`==`)):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(x[t>>10]+x[t>>4&63]+x[t<<2&63]+`=`)),i.join(``)}var y,b,x,S,C,w,T,E,ee,D,O,k,A,j,M,N,te,ne,re,ie,ae,oe,P,F,se,ce=o(()=>{y={},b={},b.byteLength=p,b.toByteArray=h,b.fromByteArray=v,x=[],S=[],C=typeof Uint8Array<`u`?Uint8Array:Array,w=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;for(var e=0,t=w.length;e<t;++e)x[e]=w[e],S[w.charCodeAt(e)]=e;S[45]=62,S[95]=63,T={},T.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)},T.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=b,n=T,r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=u,e.SlowBuffer=S,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(Ee(e,o)||e&&Ee(e.buffer,o)||s!==void 0&&(Ee(e,s)||e&&Ee(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:x(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:x(e.length)|0,n=l(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function _(e){if(Ee(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=x(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`||De(e.length)?l(0):g(e);if(e.type===`Buffer`&&Array.isArray(e.data))return g(e.data)}function x(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function S(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(Ee(e,a)&&(e=u.from(e,e.offset,e.byteLength)),Ee(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(Ee(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)||Ee(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 xe(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return we(e).length;default:if(i)return r?-1:xe(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 oe(this,t,n);case`utf8`:case`utf-8`:return te(this,t,n);case`ascii`:return ie(this,t,n);case`latin1`:case`binary`:return ae(this,t,n);case`base64`:return N(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return P(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}u.prototype._isBuffer=!0;function E(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)E(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)E(this,t,t+3),E(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)E(this,t,t+7),E(this,t+1,t+6),E(this,t+2,t+5),E(this,t+3,t+4);return this},u.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?te(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(Ee(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 ee(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,De(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:D(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):D(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function D(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 ee(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return ee(this,e,t,n,!1)};function O(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(De(r))return o;e[n+o]=r}return o}function k(e,t,n,r){return Te(xe(t,e.length-n),e,n,r)}function A(e,t,n,r){return Te(Se(t),e,n,r)}function j(e,t,n,r){return Te(we(t),e,n,r)}function M(e,t,n,r){return Te(Ce(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 O(this,e,t,n);case`utf8`:case`utf-8`:return k(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return A(this,e,t,n);case`base64`:return j(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return M(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 N(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function te(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 re(r)}let ne=4096;function re(e){let t=e.length;if(t<=ne)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=ne));return n}function ie(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 ae(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 oe(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+=Oe[e[r]];return i}function P(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 F(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||F(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||F(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||F(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(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||F(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=ke(function(e){e>>>=0,_e(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ve(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=ke(function(e){e>>>=0,_e(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ve(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||F(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||F(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||F(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||F(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||F(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||F(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||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=ke(function(e){e>>>=0,_e(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ve(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=ke(function(e){e>>>=0,_e(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ve(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||F(e,4,this.length),n.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),n.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),n.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),n.read(this,e,!1,52,8)};function se(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;se(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;se(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||se(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||se(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||se(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||se(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||se(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 ce(e,t,n,r,i){ge(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 le(e,t,n,r,i){ge(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=ke(function(e,t=0){return ce(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),u.prototype.writeBigUInt64BE=ke(function(e,t=0){return le(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);se(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);se(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||se(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||se(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||se(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||se(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||se(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=ke(function(e,t=0){return ce(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),u.prototype.writeBigInt64BE=ke(function(e,t=0){return le(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function ue(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function I(e,t,r,i,a){return t=+t,r>>>=0,a||ue(e,t,r,4),n.write(e,t,r,i,23,4),r+4}u.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)};function de(e,t,r,i,a){return t=+t,r>>>=0,a||ue(e,t,r,8),n.write(e,t,r,i,52,8),r+8}u.prototype.writeDoubleLE=function(e,t,n){return de(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return de(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 fe={};function pe(e,t,n){fe[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}`}}}pe(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),pe(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),pe(`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=me(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=me(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function me(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 he(e,t,n){_e(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&ve(t,e.length-(n+1))}function ge(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 fe.ERR_OUT_OF_RANGE(`value`,i,e)}he(r,i,a)}function _e(e,t){if(typeof e!=`number`)throw new fe.ERR_INVALID_ARG_TYPE(t,`number`,e)}function ve(e,t,n){throw Math.floor(e)===e?t<0?new fe.ERR_BUFFER_OUT_OF_BOUNDS:new fe.ERR_OUT_OF_RANGE(n||`offset`,`>= ${n?1:0} and <= ${t}`,e):(_e(e,n),new fe.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}let ye=/[^+/0-9A-Za-z-_]/g;function be(e){if(e=e.split(`=`)[0],e=e.trim().replace(ye,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function xe(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 Se(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function Ce(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 we(e){return t.toByteArray(be(e))}function Te(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 Ee(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function De(e){return e!==e}let Oe=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 ke(e){return typeof BigInt>`u`?Ae:e}function Ae(){throw Error(`BigInt not supported`)}}(y),E=y.Buffer,ee=y.Blob,D=y.BlobOptions,O=y.Buffer,k=y.File,A=y.FileOptions,j=y.INSPECT_MAX_BYTES,M=y.SlowBuffer,N=y.TranscodeEncoding,te=y.atob,ne=y.btoa,re=y.constants,ie=y.isAscii,ae=y.isUtf8,oe=y.kMaxLength,P=y.kStringMaxLength,F=y.resolveObjectURL,se=y.transcode}),le=s((exports,t)=>{t.exports=function(...e){try{return JSON.stringify(...e)}catch(e){return`[Cannot display object: `+e.message+`]`}}}),ue=s((exports,t)=>{let n=le();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)}}}),I=s((exports,t)=>{let n=ue();t.exports=function(e,...t){if(!e)throw t.length===1&&t[0]instanceof Error?t[0]:new n(t)}}),de=s((exports,t)=>{let n=I(),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`}}),fe=s((exports,t)=>{ce();let n={};exports=t.exports={array:Array.prototype,buffer:E&&E.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(E&&t instanceof E)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}}),pe=s(exports=>{exports.keys=function(e,t={}){return t.symbols===!1?Object.getOwnPropertyNames(e):Reflect.ownKeys(e)}}),me=s((exports,t)=>{ce();let n=de(),r=fe(),i=pe(),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 E&&E.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)}}),he={};c(he,{browser:()=>Se,default:()=>ke,dependencies:()=>Te,description:()=>_e,devDependencies:()=>Ee,files:()=>Ce,keywords:()=>we,license:()=>Oe,main:()=>be,name:()=>ge,repository:()=>ye,scripts:()=>De,types:()=>xe,version:()=>ve});var ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae=o(()=>{ge=`joi`,_e=`Object schema validation`,ve=`17.13.3`,ye=`git://github.com/hapijs/joi`,be=`lib/index.js`,xe=`lib/index.d.ts`,Se=`dist/joi-browser.min.js`,Ce=[`lib/**/*`,`dist/*`],we=[`schema`,`validation`],Te={"@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`},Ee={"@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`},De={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`},Oe=`BSD-3-Clause`,ke={name:ge,description:_e,version:ve,repository:ye,main:be,types:xe,browser:Se,files:Ce,keywords:we,dependencies:Te,devDependencies:Ee,scripts:De,license:Oe}}),je=s(exports=>{let t=$n(),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())}),Me=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}()}),Ne=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}}),Pe=s(exports=>{let t=me(),n=ze(),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}}}),Fe=s(exports=>{let t=Pe(),n=ze(),r=Le();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}),Ie=s(exports=>{let t=I(),n=me(),r=de(),i=ze(),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||=Le(),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)}}}),Le=s((exports,t)=>{let n=I(),r=me(),i=Me(),a=Ne(),o=ze(),s=Fe(),c=Ie(),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}}}),Re=s(exports=>{let t=I(),n=me(),r=Le();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}}),ze=s(exports=>{let t=I(),n=ue(),r=(Ae(),d(he).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||=je();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||=Re(),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)}}),Be=s(exports=>{let t=I(),n=me(),r=ze(),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}}}),Ve=s(exports=>{let t=I(),n=ze(),r=Ie(),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=I(),n=me(),r=ze(),i=Re(),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}}}),Ue=s(exports=>{ce();let t=I(),n=me(),r=ze(),i=Re(),a=Ie(),o=Le(),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(E&&E.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(E,`Buffers are not supported`),E&&E.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||=je(),e.assert(t,s.description)}}),We=s((exports,t)=>{ce();let n=fe(),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 E&&E.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}}}),Ge=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()}}}),Ke=s(exports=>{let t=We(),n=Ge(),r=Fe(),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))}}),qe=s((exports,t)=>{ce();let n=I(),r=me(),i=pe(),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||E&&E.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}}),Je=s(exports=>{let t=I(),n=ze(),r=Ie(),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}}),Ye=s((exports,t)=>{t.exports=function(){}}),Xe=s((exports,t)=>{let n=me(),r=de(),i=ze(),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)}}}),Ze=s(exports=>{let t=I(),n=me(),r=Ye(),i=de(),a=ze(),o=Fe(),s=Xe(),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}}),Qe=s((exports,t)=>{let n=I(),r=We(),i=ze(),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}}),$e=s((exports,t)=>{let n=I(),r=me(),i=We(),a=qe(),o=Be(),s=ze(),c=Ve(),l=Fe(),u=He(),d=Ue(),f=Re(),p=Je(),m=Ie(),h=Ke(),g=Ze(),_=Qe(),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}),et=s((exports,t)=>{let n=I(),r=$e(),i=ze(),a=Re();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`}})}),tt=s((exports,t)=>{let n=I(),r=qe(),i=et(),a=ze(),o=Ve(),s=Fe(),c=Ie(),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}))}}}),nt=s((exports,t)=>{let n=I(),r=We(),i=de(),a=et(),o=ze(),s=Ve(),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}}),rt=s((exports,t)=>{let n=I(),r=et(),i=ze(),a=Qe(),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`}})}),it=s((exports,t)=>{let n=I(),r=et(),i=ze(),a=Le(),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}}),at=s((exports,t)=>{let n=I(),r=me(),i=qe(),a=de(),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}}),ot=s(exports=>{let t=I(),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}),st=s((exports,t)=>{let n=at(),r=I(),i=me(),a=ot(),o=et(),s=ze(),c=Ve(),l=Fe(),u=Ie(),d=Le(),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}}}),ct=s((exports,t)=>{let n=I(),r=st();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}}`}})}),lt=s((exports,t)=>{let n=I(),r=et(),i=ze(),a=Ve(),o=Fe(),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}`)}}),ut=s((exports,t)=>{let n=I(),r=et(),i=ze(),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}}),dt=s((exports,t)=>{let n=st();t.exports=n.extend({type:`object`,cast:{map:{from:e=>e&&typeof e==`object`,to(e,t){return new Map(Object.entries(e))}}}})}),ft={};c(ft,{URL:()=>vt,URLSearchParams:()=>_t});function pt(e,t,n){throw n=TypeError(e),n.code=t,n}function mt(e){pt(`Invalid URL: `+e,`ERR_INVALID_URL`)}function ht(e,t,n,r){n=`The "name" `,r=`argument`,e&&(n+=`and "value" `,r+=`s`),t<++e&&pt(n+r+` must be specified`,`ERR_MISSING_ARGS`)}function gt(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 _t(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(ht(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){ht(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(ht(0,arguments.length),r=c.length;r--;)c[r][0]==e&&c.splice(r,1);f()},s.entries=function(){return gt(c,a)},s.forEach=function(e){for(typeof e!=`function`&&pt(`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(ht(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(ht(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(ht(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 gt(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 gt(o,a)},a&&(s[Symbol.iterator]=s.entries),s}function vt(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 mt(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 mt(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 _t(r.search,r)))}),i.get=n||function(){return l(e)},i}return o=new _t(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 yt=o(()=>{}),bt=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]}}}),xt=s(exports=>{let t=(yt(),d(ft)),n=bt(),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 St(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Ct(){throw Error(`setTimeout has not been defined`)}function wt(){throw Error(`clearTimeout has not been defined`)}function Tt(e){if(Nt===setTimeout)return setTimeout(e,0);if((Nt===Ct||!Nt)&&setTimeout)return Nt=setTimeout,setTimeout(e,0);try{return Nt(e,0)}catch{try{return Nt.call(null,e,0)}catch{return Nt.call(this,e,0)}}}function Et(e){if(Pt===clearTimeout)return clearTimeout(e);if((Pt===wt||!Pt)&&clearTimeout)return Pt=clearTimeout,clearTimeout(e);try{return Pt(e)}catch{try{return Pt.call(null,e)}catch{return Pt.call(this,e)}}}function Dt(){!It||!Lt||(It=!1,Lt.length?Ft=Lt.concat(Ft):Rt=-1,Ft.length&&Ot())}function Ot(){if(!It){var e=Tt(Dt);It=!0;for(var t=Ft.length;t;){for(Lt=Ft,Ft=[];++Rt<t;)Lt&&Lt[Rt].run();Rt=-1,t=Ft.length}Lt=null,It=!1,Et(e)}}function kt(e,t){this.fun=e,this.array=t}function At(){}var jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt=o(()=>{jt={exports:{}},Mt=jt.exports={},function(){try{Nt=typeof setTimeout==`function`?setTimeout:Ct}catch{Nt=Ct}try{Pt=typeof clearTimeout==`function`?clearTimeout:wt}catch{Pt=wt}}(),Ft=[],It=!1,Rt=-1,Mt.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];Ft.push(new kt(e,t)),Ft.length===1&&!It&&Tt(Ot)},kt.prototype.run=function(){this.fun.apply(null,this.array)},Mt.title=`browser`,Mt.browser=!0,Mt.env={},Mt.argv=[],Mt.version=``,Mt.versions={},Mt.on=At,Mt.addListener=At,Mt.once=At,Mt.off=At,Mt.removeListener=At,Mt.removeAllListeners=At,Mt.emit=At,Mt.prependListener=At,Mt.prependOnceListener=At,Mt.listeners=function(e){return[]},Mt.binding=function(e){throw Error(`process.binding is not supported`)},Mt.cwd=function(){return`/`},Mt.chdir=function(e){throw Error(`process.chdir is not supported`)},Mt.umask=function(){return 0},zt=jt.exports,Bt=St(zt)}),Ht=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}}),Ut=s((exports,t)=>{var n=Ht();t.exports=function(){return n()&&!!Symbol.toStringTag}}),Wt=s((exports,t)=>{t.exports=Object}),Gt=s((exports,t)=>{t.exports=Error}),Kt=s((exports,t)=>{t.exports=EvalError}),qt=s((exports,t)=>{t.exports=RangeError}),Jt=s((exports,t)=>{t.exports=ReferenceError}),Yt=s((exports,t)=>{t.exports=SyntaxError}),Xt=s((exports,t)=>{t.exports=TypeError}),Zt=s((exports,t)=>{t.exports=URIError}),Qt=s((exports,t)=>{t.exports=Math.abs}),$t=s((exports,t)=>{t.exports=Math.floor}),en=s((exports,t)=>{t.exports=Math.max}),tn=s((exports,t)=>{t.exports=Math.min}),nn=s((exports,t)=>{t.exports=Math.pow}),rn=s((exports,t)=>{t.exports=Math.round}),an=s((exports,t)=>{t.exports=Number.isNaN||function(e){return e!==e}}),on=s((exports,t)=>{var n=an();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}),sn=s((exports,t)=>{t.exports=Object.getOwnPropertyDescriptor}),cn=s((exports,t)=>{var n=sn();if(n)try{n([],`length`)}catch{n=null}t.exports=n}),ln=s((exports,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}),un=s((exports,t)=>{var n=typeof Symbol<`u`&&Symbol,r=Ht();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}),dn=s((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}),fn=s((exports,t)=>{var n=Wt();t.exports=n.getPrototypeOf||null}),pn=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}}),mn=s((exports,t)=>{var n=pn();t.exports=Function.prototype.bind||n}),hn=s((exports,t)=>{t.exports=Function.prototype.call}),gn=s((exports,t)=>{t.exports=Function.prototype.apply}),_n=s((exports,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}),vn=s((exports,t)=>{var n=mn(),r=gn(),i=hn(),a=_n();t.exports=a||n.call(i,r)}),yn=s((exports,t)=>{var n=mn(),r=Xt(),i=hn(),a=vn();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}),bn=s((exports,t)=>{var n=yn(),r=cn(),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}),xn=s((exports,t)=>{var n=dn(),r=fn(),i=bn();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}),Sn=s((exports,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=mn();t.exports=i.call(n,r)}),Cn=s((exports,t)=>{var n,r=Wt(),i=Gt(),a=Kt(),o=qt(),s=Jt(),c=Yt(),l=Xt(),u=Zt(),d=Qt(),f=$t(),p=en(),m=tn(),h=nn(),g=rn(),_=on(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=cn(),x=ln(),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=un()(),T=xn(),E=fn(),ee=dn(),D=gn(),O=hn(),k={},A=typeof Uint8Array>`u`||!T?n:T(Uint8Array),j={__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%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%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%":k,"%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%":A,"%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%":O,"%Function.prototype.apply%":D,"%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%":ee};if(T)try{null.error}catch(e){var M=T(T(e));j[`%Error.prototype%`]=M}var N=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 j[t]=n,n},te={__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`]},ne=mn(),re=Sn(),ie=ne.call(O,Array.prototype.concat),ae=ne.call(D,Array.prototype.splice),oe=ne.call(O,String.prototype.replace),P=ne.call(O,String.prototype.slice),F=ne.call(O,RegExp.prototype.exec),se=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,le=function(e){var t=P(e,0,1),n=P(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 oe(e,se,function(e,t,n,i){r[r.length]=n?oe(i,ce,`$1`):t||e}),r},ue=function(e,t){var n=e,r;if(re(te,n)&&(r=te[n],n=`%`+r[0]+`%`),re(j,n)){var i=j[n];if(i===k&&(i=N(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(F(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=le(e),r=n.length>0?n[0]:``,i=ue(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],ae(n,ie([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=P(p,0,1),h=P(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+`%`,re(j,a))o=j[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=re(o,p),o=o[p];f&&!s&&(j[a]=o)}}return o}}),wn=s((exports,t)=>{var n=Cn(),r=yn(),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}}),Tn=s((exports,t)=>{var n=Ut()(),r=wn(),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}),En=s((exports,t)=>{var n=wn(),r=Ut()(),i=Sn(),a=cn(),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}),Dn=s((exports,t)=>{var n=wn(),r=En(),i=n(`RegExp.prototype.exec`),a=Xt();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}}),On=s((exports,t)=>{var n=wn(),r=Dn(),i=r(/^\s*(?:function)?\*/),a=Ut()(),o=xn(),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}}),kn=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)}}),An=s((exports,t)=>{var n=kn(),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)}}),jn=s((exports,t)=>{t.exports=[`Float16Array`,`Float32Array`,`Float64Array`,`Int8Array`,`Int16Array`,`Int32Array`,`Uint8Array`,`Uint8ClampedArray`,`Uint16Array`,`Uint32Array`,`BigInt64Array`,`BigUint64Array`]}),Mn=s((exports,t)=>{var n=jn(),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}}),Nn=s((exports,t)=>{var n=ln(),r=Yt(),i=Xt(),a=cn();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.`)}}),Pn=s((exports,t)=>{var n=ln(),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}),Fn=s((exports,t)=>{var n=Cn(),r=Nn(),i=Pn()(),a=cn(),o=Xt(),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}}),In=s((exports,t)=>{var n=mn(),r=gn(),i=vn();t.exports=function(){return i(n,r,arguments)}}),Ln=s((exports,t)=>{var n=Fn(),r=ln(),i=yn(),a=In();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}),Rn=s((exports,t)=>{var n=An(),r=Mn(),i=Ln(),a=wn(),o=cn(),s=xn(),c=a(`Object.prototype.toString`),l=Ut()(),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}}),zn=s((exports,t)=>{var n=Rn();t.exports=function(e){return!!n(e)}}),Bn=s(exports=>{var t=Tn(),n=On(),r=Rn(),i=zn();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)||ae(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 ee(e){return r(e)===`BigUint64Array`}exports.isBigUint64Array=ee;function D(e){return c(e)===`[object Map]`}D.working=typeof Map<`u`&&D(new Map);function O(e){return typeof Map>`u`?!1:D.working?D(e):e instanceof Map}exports.isMap=O;function k(e){return c(e)===`[object Set]`}k.working=typeof Set<`u`&&k(new Set);function A(e){return typeof Set>`u`?!1:k.working?k(e):e instanceof Set}exports.isSet=A;function j(e){return c(e)===`[object WeakMap]`}j.working=typeof WeakMap<`u`&&j(new WeakMap);function M(e){return typeof WeakMap>`u`?!1:j.working?j(e):e instanceof WeakMap}exports.isWeakMap=M;function N(e){return c(e)===`[object WeakSet]`}N.working=typeof WeakSet<`u`&&N(new WeakSet);function te(e){return N(e)}exports.isWeakSet=te;function ne(e){return c(e)===`[object ArrayBuffer]`}ne.working=typeof ArrayBuffer<`u`&&ne(new ArrayBuffer);function re(e){return typeof ArrayBuffer>`u`?!1:ne.working?ne(e):e instanceof ArrayBuffer}exports.isArrayBuffer=re;function ie(e){return c(e)===`[object DataView]`}ie.working=typeof ArrayBuffer<`u`&&typeof DataView<`u`&&ie(new DataView(new ArrayBuffer(1),0,1));function ae(e){return typeof DataView>`u`?!1:ie.working?ie(e):e instanceof DataView}exports.isDataView=ae;var oe=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:void 0;function P(e){return c(e)===`[object SharedArrayBuffer]`}function F(e){return oe===void 0?!1:(P.working===void 0&&(P.working=P(new oe)),P.working?P(e):e instanceof oe)}exports.isSharedArrayBuffer=F;function se(e){return c(e)===`[object AsyncFunction]`}exports.isAsyncFunction=se;function ce(e){return c(e)===`[object Map Iterator]`}exports.isMapIterator=ce;function le(e){return c(e)===`[object Set Iterator]`}exports.isSetIterator=le;function ue(e){return c(e)===`[object Generator]`}exports.isGeneratorObject=ue;function I(e){return c(e)===`[object WebAssembly.Module]`}exports.isWebAssemblyCompiledModule=I;function de(e){return m(e,l)}exports.isNumberObject=de;function fe(e){return m(e,u)}exports.isStringObject=fe;function pe(e){return m(e,d)}exports.isBooleanObject=pe;function me(e){return o&&m(e,f)}exports.isBigIntObject=me;function he(e){return s&&m(e,p)}exports.isSymbolObject=he;function ge(e){return de(e)||fe(e)||pe(e)||me(e)||he(e)}exports.isBoxedPrimitive=ge;function _e(e){return typeof Uint8Array<`u`&&(re(e)||F(e))}exports.isAnyArrayBuffer=_e,[`isProxy`,`isExternal`,`isModuleNamespaceObject`].forEach(function(t){Object.defineProperty(exports,t,{enumerable:!1,value:function(){throw Error(t+` is not supported in userland`)}})})}),Vn=s((exports,t)=>{ce(),t.exports=function(e){return e instanceof E}}),Hn=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}}}),Un=s((exports,t)=>{try{var n=Wn();if(typeof n.inherits!=`function`)throw``;t.exports=n.inherits}catch{t.exports=Hn()}}),Wn=s(exports=>{Vt();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(Bt!==void 0&&Bt.noDeprecation===!0)return t;if(Bt===void 0)return function(){return exports.deprecate(t,n).apply(this,arguments)};var r=!1;function i(){if(!r){if(Bt.throwDeprecation)throw Error(n);Bt.traceDeprecation?console.trace(n):console.error(n),r=!0}return t.apply(this,arguments)}return i};var r={},i=/^$/;if(Bt.env.NODE_DEBUG){var a=Bt.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=Bt.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&&D(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)),ee(n)&&(o.indexOf(`message`)>=0||o.indexOf(`description`)>=0))return f(n);if(o.length===0){if(D(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(ee(n))return f(n)}var _=``,v=!1,y=[`{`,`}`];if(g(n)&&(v=!0,y=[`[`,`]`]),D(n)){var b=n.name?`: `+n.name:``;_=` [Function`+b+`]`}if(w(n)&&(_=` `+RegExp.prototype.toString.call(n)),E(n)&&(_=` `+Date.prototype.toUTCString.call(n)),ee(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)N(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`)),N(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(`
|
|
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
2
|
`)>-1&&(s=a?s.split(`
|
|
3
3
|
`).map(function(e){return` `+e}).join(`
|
|
4
4
|
`).slice(2):`
|
|
@@ -7,8 +7,5 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
|
7
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
8
|
`)>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,``).length+1},0);return i>60?n[0]+(t===``?``:t+`
|
|
9
9
|
`)+` `+e.join(`,
|
|
10
|
-
`)+` `+n[1]:n[0]+t+` `+e.join(`, `)+` `+n[1]}exports.types=Bn();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)&&k(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)&&k(e)===`[object Date]`}exports.isDate=E,exports.types.isDate=E;function ee(e){return T(e)&&(k(e)===`[object Error]`||e instanceof Error)}exports.isError=ee,exports.types.isNativeError=ee;function D(e){return typeof e==`function`}exports.isFunction=D;function O(e){return e===null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`||typeof e==`symbol`||e===void 0}exports.isPrimitive=O,exports.isBuffer=Vn();function k(e){return Object.prototype.toString.call(e)}function A(e){return e<10?`0`+e.toString(10):e.toString(10)}var j=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function M(){var e=new Date,t=[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(`:`);return[e.getDate(),j[e.getMonth()],t].join(` `)}exports.log=function(){console.log(`%s - %s`,M(),exports.format.apply(exports,arguments))},exports.inherits=Un(),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 N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var te=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(te&&e[te]){var n=e[te];if(typeof n!=`function`)throw TypeError(`The "util.promisify.custom" argument must be of type Function`);return Object.defineProperty(n,te,{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)),te&&Object.defineProperty(n,te,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,t(e))},exports.promisify.custom=te;function ne(e,t){if(!e){var n=Error(`Promise was rejected with a falsy value`);n.reason=e,e=n}return t(e)}function re(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){Bt.nextTick(a.bind(null,null,e))},function(e){Bt.nextTick(ne.bind(null,e,a))})}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,t(e)),n}exports.callbackify=re}),Gn=s(exports=>{let t=Wn(),n=xt(),r=bt(),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(`|`))}),Kn=s((exports,t)=>{t.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,`\\$&`)}}),qn=s(exports=>{let t=I(),n=Kn(),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*)?`,ee=s+`*`,D=s+`+`,O=`[`+r+a+i+`@]+`,k=``,A=`(?:\\/`+ee+`)*`,j=`\\/(?:`+D+A+`)?`,M=D+A,N=O+A,te=`(?:\\/\\/\\/`+ee+A+`)`;return e.hierPart=`(?:(?:\\/\\/`+T+A+`)|`+j+`|`+M+`|`+te+`)`,e.hierPartCapture=`(?:(?:\\/\\/`+E+A+`)|`+j+`|`+M+`)`,e.relativeRef=`(?:(?:\\/\\/`+T+A+`)|`+j+`|`+N+`|)`,e.relativeRefCapture=`(?:(?:\\/\\/`+E+A+`)|`+j+`|`+N+`|)`,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}}),Jn=s(exports=>{let t=I(),n=qn();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}}}),Yn=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()))}),Xn=s((exports,t)=>{ce();let n=I(),r=xt(),i=Gn(),a=Jn(),o=Kn(),s=Yn(),c=qn(),l=et(),u=ze(),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?E&&E.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||E&&E.isEncoding(a),`Invalid encoding:`,a),e.$_addRule({name:t,method:`length`,args:{limit:r,encoding:a},operator:i})}}),Zn=s((exports,t)=>{let n=I(),r=et(),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)=>{ce();let n=I(),r=et(),i=ze();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:E.from(e,t._flags.encoding)}}catch{}}},validate(e,{error:t}){if(!E.isBuffer(e))return{value:e,errors:t(`binary.base`)}},rules:{encoding:{method(e){return n(E.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=>E.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`}})}),$n=s((exports,t)=>{ce();let n=I(),r=me(),i=Be(),a=ze(),o=Ve(),s=Fe(),c=He(),l=Ue(),u=Ie(),d=Le(),f=Ke(),p,m={types:{alternatives:tt(),any:et(),array:nt(),boolean:rt(),date:it(),function:ct(),link:lt(),number:ut(),object:dt(),string:Xn(),symbol:Zn()},aliases:{alt:`alternatives`,bool:`boolean`,func:`function`}};E&&(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||=je(),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()}),er=20,tr=1,nr=1e6,rr=1e6,ir=-7,ar=21,or=!1,sr=`[big.js] `,cr=sr+`Invalid `,lr=cr+`decimal places`,ur=cr+`rounding mode`,dr=sr+`Division by zero`,L={},fr=void 0,pr=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function mr(){function e(t){var n=this;if(!(n instanceof e))return t===fr&&arguments.length===0?mr():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(cr+`value`);t=t===0&&1/t<0?`-0`:String(t)}hr(n,t)}n.constructor=e}return e.prototype=L,e.DP=er,e.RM=tr,e.NE=ir,e.PE=ar,e.strict=or,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e}function hr(e,t){var n,r,i;if(!pr.test(t))throw Error(cr+`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 gr(e,t,n,r){var i=e.c;if(n===fr&&(n=e.constructor.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(ur);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]!==fr))),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]!==fr||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 _r(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}L.abs=function(){var e=new this.constructor(this);return e.s=1,e},L.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},L.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>nr)throw Error(lr);if(!i[0])throw Error(dr);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]!==fr)&&a--);return!v[0]&&y!=1&&(v.shift(),_.e--,b--),y>b&&gr(_,b,n.RM,h[0]!==fr),_},L.eq=function(e){return this.cmp(e)===0},L.gt=function(e){return this.cmp(e)>0},L.gte=function(e){return this.cmp(e)>-1},L.lt=function(e){return this.cmp(e)<0},L.lte=function(e){return this.cmp(e)<1},L.minus=L.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},L.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(dr);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)))},L.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e},L.plus=L.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},L.pow=function(e){var t=this,n=new t.constructor(`1`),r=n,i=e<0;if(e!==~~e||e<-rr||e>rr)throw Error(cr+`exponent`);for(i&&(e=-e);e&1&&(r=r.times(t)),e>>=1,e;)t=t.times(t);return i?n.div(r):r},L.prec=function(e,t){if(e!==~~e||e<1||e>nr)throw Error(cr+`precision`);return gr(new this.constructor(this),e,t)},L.round=function(e,t){if(e===fr)e=0;else if(e!==~~e||e<-nr||e>nr)throw Error(lr);return gr(new this.constructor(this),e+this.e+1,t)},L.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(sr+`No square root`);a=Math.sqrt(+_r(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 gr(e,(i.DP-=4)+e.e+1,i.RM)},L.times=L.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},L.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==fr){if(e!==~~e||e<0||e>nr)throw Error(lr);for(n=gr(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return _r(n,!0,!!r)},L.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==fr){if(e!==~~e||e<0||e>nr)throw Error(lr);for(n=gr(new n.constructor(n),e+n.e+1,t),e=e+n.e+1;n.c.length<e;)n.c.push(0)}return _r(n,!1,!!r)},L.toJSON=L.toString=function(){var e=this,t=e.constructor;return _r(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},typeof Symbol<`u`&&(L[Symbol.for(`nodejs.util.inspect.custom`)]=L.toJSON),L.toNumber=function(){var e=+_r(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(sr+`Imprecise conversion`);return e},L.toPrecision=function(e,t){var n=this,r=n.constructor,i=n.c[0];if(e!==fr){if(e!==~~e||e<1||e>nr)throw Error(cr+`precision`);for(n=gr(new r(n),e,t);n.c.length<e;)n.c.push(0)}return _r(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!i)},L.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(sr+`valueOf disallowed`);return _r(e,e.e<=t.NE||e.e>=t.PE,!0)};var vr=mr(),yr=vr;const br=(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}},xr=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=yr(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=yr(e.toString()),o=yr(n.toString()),s=br(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 Sr=class extends Error{},Cr=class extends Sr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},wr=class extends Sr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},Tr=class extends Sr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Er=class extends Sr{},Dr=class extends Sr{constructor(e){super(`Invalid unit ${e}`)}},Or=class extends Sr{},kr=class extends Sr{constructor(){super(`Zone is an abstract class`)}};const R=`numeric`,Ar=`short`,jr=`long`,Mr={year:R,month:R,day:R},Nr={year:R,month:Ar,day:R},Pr={year:R,month:Ar,day:R,weekday:Ar},Fr={year:R,month:jr,day:R},Ir={year:R,month:jr,day:R,weekday:jr},Lr={hour:R,minute:R},Rr={hour:R,minute:R,second:R},zr={hour:R,minute:R,second:R,timeZoneName:Ar},Br={hour:R,minute:R,second:R,timeZoneName:jr},Vr={hour:R,minute:R,hourCycle:`h23`},Hr={hour:R,minute:R,second:R,hourCycle:`h23`},Ur={hour:R,minute:R,second:R,hourCycle:`h23`,timeZoneName:Ar},Wr={hour:R,minute:R,second:R,hourCycle:`h23`,timeZoneName:jr},Gr={year:R,month:R,day:R,hour:R,minute:R},Kr={year:R,month:R,day:R,hour:R,minute:R,second:R},qr={year:R,month:Ar,day:R,hour:R,minute:R},Jr={year:R,month:Ar,day:R,hour:R,minute:R,second:R},Yr={year:R,month:Ar,day:R,weekday:Ar,hour:R,minute:R},Xr={year:R,month:jr,day:R,hour:R,minute:R,timeZoneName:Ar},Zr={year:R,month:jr,day:R,hour:R,minute:R,second:R,timeZoneName:Ar},Qr={year:R,month:jr,day:R,weekday:jr,hour:R,minute:R,timeZoneName:jr},$r={year:R,month:jr,day:R,weekday:jr,hour:R,minute:R,second:R,timeZoneName:jr};var ei=class{get type(){throw new kr}get name(){throw new kr}get ianaName(){return this.name}get isUniversal(){throw new kr}offsetName(e,t){throw new kr}formatOffset(e,t){throw new kr}offset(e){throw new kr}equals(e){throw new kr}get isValid(){throw new kr}};let ti=null;var ni=class e extends ei{static get instance(){return ti===null&&(ti=new e),ti}get type(){return`system`}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ha(e,t,n)}formatOffset(e,t){return Ka(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type===`system`}get isValid(){return!0}};const ri=new Map;function ii(e){let t=ri.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`}),ri.set(e,t)),t}const ai={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function oi(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 si(e,t){let n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){let{type:t,value:i}=n[e],a=ai[t];t===`era`?r[a]=i:B(a)||(r[a]=parseInt(i,10))}return r}const ci=new Map;var li=class e extends ei{static create(t){let n=ci.get(t);return n===void 0&&ci.set(t,n=new e(t)),n}static resetCache(){ci.clear(),ri.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 Ha(e,t,n,this.name)}formatOffset(e,t){return Ka(this.offset(e),t)}offset(e){if(!this.valid)return NaN;let t=new Date(e);if(isNaN(t))return NaN;let n=ii(this.name),[r,i,a,o,s,c,l]=n.formatToParts?si(n,t):oi(n,t);o===`BC`&&(r=-Math.abs(r)+1);let u=s===24?0:s,d=Ra({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 ui={};function di(e,t={}){let n=JSON.stringify([e,t]),r=ui[n];return r||(r=new Intl.ListFormat(e,t),ui[n]=r),r}const fi=new Map;function pi(e,t={}){let n=JSON.stringify([e,t]),r=fi.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),fi.set(n,r)),r}const mi=new Map;function hi(e,t={}){let n=JSON.stringify([e,t]),r=mi.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),mi.set(n,r)),r}const gi=new Map;function _i(e,t={}){let{base:n,...r}=t,i=JSON.stringify([e,r]),a=gi.get(i);return a===void 0&&(a=new Intl.RelativeTimeFormat(e,t),gi.set(i,a)),a}let vi=null;function yi(){return vi||(vi=new Intl.DateTimeFormat().resolvedOptions().locale,vi)}const bi=new Map;function xi(e){let t=bi.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),bi.set(e,t)),t}const Si=new Map;function Ci(e){let t=Si.get(e);if(!t){let n=new Intl.Locale(e);t=`getWeekInfo`in n?n.getWeekInfo():n.weekInfo,`minimalDays`in t||(t={...Ni,...t}),Si.set(e,t)}return t}function wi(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=pi(e).resolvedOptions(),r=e}catch{let i=e.substring(0,n);t=pi(i).resolvedOptions(),r=i}let{numberingSystem:i,calendar:a}=t;return[r,i,a]}}function Ti(e,t,n){return n||t?(e.includes(`-u-`)||(e+=`-u`),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}function Ei(e){let t=[];for(let n=1;n<=12;n++){let r=H.utc(2009,n,1);t.push(e(r))}return t}function Di(e){let t=[];for(let n=1;n<=7;n++){let r=H.utc(2016,11,13+n);t.push(e(r))}return t}function Oi(e,t,n,r){let i=e.listingMode();return i===`error`?null:i===`en`?n(t):r(t)}function ki(e){return e.numberingSystem&&e.numberingSystem!==`latn`?!1:e.numberingSystem===`latn`||!e.locale||e.locale.startsWith(`en`)||xi(e.locale).numberingSystem===`latn`}var Ai=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=hi(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):Pa(e,3);return Aa(t,this.padTo)}}},ji=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&&li.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=pi(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()}},Mi=class{constructor(e,t,n){this.opts={style:`long`,...n},!t&&xa()&&(this.rtf=_i(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):fo(t,e,this.opts.numeric,this.opts.style!==`long`)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}};const Ni={firstDay:1,minimalDays:4,weekend:[6,7]};var Pi=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||z.defaultLocale,s=o||(a?`en-US`:yi()),c=n||z.defaultNumberingSystem,l=r||z.defaultOutputCalendar,u=Da(i)||z.defaultWeekSettings;return new e(s,c,l,u,o)}static resetCache(){vi=null,fi.clear(),mi.clear(),gi.clear(),bi.clear(),Si.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]=wi(e);this.locale=a,this.numberingSystem=t||o||null,this.outputCalendar=n||s||null,this.weekSettings=r,this.intl=Ti(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??=ki(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,Da(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 Oi(this,e,Za,()=>{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]=Ei(t)}return this.monthsCache[i][e]})}weekdays(e,t=!1){return Oi(this,e,to,()=>{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]=Di(e=>this.extract(e,n,`weekday`))),this.weekdaysCache[r][e]})}meridiems(){return Oi(this,void 0,()=>no,()=>{if(!this.meridiemCache){let e={hour:`numeric`,hourCycle:`h12`};this.meridiemCache=[H.utc(2016,11,13,9),H.utc(2016,11,13,19)].map(t=>this.extract(t,e,`dayperiod`))}return this.meridiemCache})}eras(e){return Oi(this,e,oo,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[H.utc(-40,1,1),H.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 Ai(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new ji(e,this.intl,t)}relFormatter(e={}){return new Mi(this.intl,this.isEnglish(),e)}listFormatter(e={}){return di(this.intl,e)}isEnglish(){return this.locale===`en`||this.locale.toLowerCase()===`en-us`||xi(this.intl).locale.startsWith(`en-us`)}getWeekSettings(){return this.weekSettings?this.weekSettings:Sa()?Ci(this.locale):Ni}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 Fi=null;var Ii=class e extends ei{static get utcInstance(){return Fi===null&&(Fi=new e(0)),Fi}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(Ua(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return`fixed`}get name(){return this.fixed===0?`UTC`:`UTC${Ka(this.fixed,`narrow`)}`}get ianaName(){return this.fixed===0?`Etc/UTC`:`Etc/GMT${Ka(-this.fixed,`narrow`)}`}offsetName(){return this.name}formatOffset(e,t){return Ka(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}},Li=class extends ei{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 Ri(e,t){let n;if(B(e)||e===null)return t;if(e instanceof ei)return e;if(ya(e)){let n=e.toLowerCase();return n===`default`?t:n===`local`||n===`system`?ni.instance:n===`utc`||n===`gmt`?Ii.utcInstance:Ii.parseSpecifier(n)||li.create(e)}else if(_a(e))return Ii.instance(e);else if(typeof e==`object`&&`offset`in e&&typeof e.offset==`function`)return e;else return new Li(e)}const zi={arab:`[٠-٩]`,arabext:`[۰-۹]`,bali:`[᭐-᭙]`,beng:`[০-৯]`,deva:`[०-९]`,fullwide:`[0-9]`,gujr:`[૦-૯]`,hanidec:`[〇|一|二|三|四|五|六|七|八|九]`,khmr:`[០-៩]`,knda:`[೦-೯]`,laoo:`[໐-໙]`,limb:`[᥆-᥏]`,mlym:`[൦-൯]`,mong:`[᠐-᠙]`,mymr:`[၀-၉]`,orya:`[୦-୯]`,tamldec:`[௦-௯]`,telu:`[౦-౯]`,thai:`[๐-๙]`,tibt:`[༠-༩]`,latn:`\\d`},Bi={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]},Vi=zi.hanidec.replace(/[\[|\]]/g,``).split(``);function Hi(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(zi.hanidec)!==-1)t+=Vi.indexOf(e[n]);else for(let e in Bi){let[n,i]=Bi[e];r>=n&&r<=i&&(t+=r-n)}}return parseInt(t,10)}else return t}const Ui=new Map;function Wi(){Ui.clear()}function Gi({numberingSystem:e},t=``){let n=e||`latn`,r=Ui.get(n);r===void 0&&(r=new Map,Ui.set(n,r));let i=r.get(t);return i===void 0&&(i=RegExp(`${zi[n]}${t}`),r.set(t,i)),i}let Ki=()=>Date.now(),qi=`system`,Ji=null,Yi=null,Xi=null,Zi=60,Qi,$i=null;var z=class{static get now(){return Ki}static set now(e){Ki=e}static set defaultZone(e){qi=e}static get defaultZone(){return Ri(qi,ni.instance)}static get defaultLocale(){return Ji}static set defaultLocale(e){Ji=e}static get defaultNumberingSystem(){return Yi}static set defaultNumberingSystem(e){Yi=e}static get defaultOutputCalendar(){return Xi}static set defaultOutputCalendar(e){Xi=e}static get defaultWeekSettings(){return $i}static set defaultWeekSettings(e){$i=Da(e)}static get twoDigitCutoffYear(){return Zi}static set twoDigitCutoffYear(e){Zi=e%100}static get throwOnInvalid(){return Qi}static set throwOnInvalid(e){Qi=e}static resetCaches(){Pi.resetCache(),li.resetCache(),H.resetCache(),Wi()}},ea=class{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const ta=[0,31,59,90,120,151,181,212,243,273,304,334],na=[0,31,60,91,121,152,182,213,244,274,305,335];function ra(e,t){return new ea(`unit out of range`,`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function ia(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 aa(e,t,n){return n+(Fa(e)?na:ta)[t-1]}function oa(e,t){let n=Fa(e)?na:ta,r=n.findIndex(e=>e<t),i=t-n[r];return{month:r+1,day:i}}function sa(e,t){return(e-t+7)%7+1}function ca(e,t=4,n=1){let{year:r,month:i,day:a}=e,o=aa(r,i,a),s=sa(ia(r,i,a),n),c=Math.floor((o-s+14-t)/7),l;return c<1?(l=r-1,c=Ba(l,t,n)):c>Ba(r,t,n)?(l=r+1,c=1):l=r,{weekYear:l,weekNumber:c,weekday:s,...qa(e)}}function la(e,t=4,n=1){let{weekYear:r,weekNumber:i,weekday:a}=e,o=sa(ia(r,1,t),n),s=Ia(r),c=i*7+a-o-7+t,l;c<1?(l=r-1,c+=Ia(l)):c>s?(l=r+1,c-=Ia(r)):l=r;let{month:u,day:d}=oa(l,c);return{year:l,month:u,day:d,...qa(e)}}function ua(e){let{year:t,month:n,day:r}=e,i=aa(t,n,r);return{year:t,ordinal:i,...qa(e)}}function da(e){let{year:t,ordinal:n}=e,{month:r,day:i}=oa(t,n);return{year:t,month:r,day:i,...qa(e)}}function fa(e,t){let n=!B(e.localWeekday)||!B(e.localWeekNumber)||!B(e.localWeekYear);if(n){let n=!B(e.weekday)||!B(e.weekNumber)||!B(e.weekYear);if(n)throw new Er(`Cannot mix locale-based week fields with ISO-based week fields`);return B(e.localWeekday)||(e.weekday=e.localWeekday),B(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),B(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 pa(e,t=4,n=1){let r=va(e.weekYear),i=Oa(e.weekNumber,1,Ba(e.weekYear,t,n)),a=Oa(e.weekday,1,7);return r?i?a?!1:ra(`weekday`,e.weekday):ra(`week`,e.weekNumber):ra(`weekYear`,e.weekYear)}function ma(e){let t=va(e.year),n=Oa(e.ordinal,1,Ia(e.year));return t?n?!1:ra(`ordinal`,e.ordinal):ra(`year`,e.year)}function ha(e){let t=va(e.year),n=Oa(e.month,1,12),r=Oa(e.day,1,La(e.year,e.month));return t?n?r?!1:ra(`day`,e.day):ra(`month`,e.month):ra(`year`,e.year)}function ga(e){let{hour:t,minute:n,second:r,millisecond:i}=e,a=Oa(t,0,23)||t===24&&n===0&&r===0&&i===0,o=Oa(n,0,59),s=Oa(r,0,59),c=Oa(i,0,999);return a?o?s?c?!1:ra(`millisecond`,i):ra(`second`,r):ra(`minute`,n):ra(`hour`,t)}function B(e){return e===void 0}function _a(e){return typeof e==`number`}function va(e){return typeof e==`number`&&e%1==0}function ya(e){return typeof e==`string`}function ba(e){return Object.prototype.toString.call(e)===`[object Date]`}function xa(){try{return typeof Intl<`u`&&!!Intl.RelativeTimeFormat}catch{return!1}}function Sa(){try{return typeof Intl<`u`&&!!Intl.Locale&&(`weekInfo`in Intl.Locale.prototype||`getWeekInfo`in Intl.Locale.prototype)}catch{return!1}}function Ca(e){return Array.isArray(e)?e:[e]}function wa(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 Ta(e,t){return t.reduce((t,n)=>(t[n]=e[n],t),{})}function Ea(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Da(e){if(e==null)return null;if(typeof e!=`object`)throw new Or(`Week settings must be an object`);if(!Oa(e.firstDay,1,7)||!Oa(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!Oa(e,1,7)))throw new Or(`Invalid week settings`);return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Oa(e,t,n){return va(e)&&e>=t&&e<=n}function ka(e,t){return e-t*Math.floor(e/t)}function Aa(e,t=2){let n=e<0,r;return r=n?`-`+(``+-e).padStart(t,`0`):(``+e).padStart(t,`0`),r}function ja(e){if(!(B(e)||e===null||e===``))return parseInt(e,10)}function Ma(e){if(!(B(e)||e===null||e===``))return parseFloat(e)}function Na(e){if(!(B(e)||e===null||e===``)){let t=parseFloat(`0.`+e)*1e3;return Math.floor(t)}}function Pa(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 Fa(e){return e%4==0&&(e%100!=0||e%400==0)}function Ia(e){return Fa(e)?366:365}function La(e,t){let n=ka(t-1,12)+1,r=e+(t-n)/12;return n===2?Fa(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Ra(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 za(e,t,n){let r=sa(ia(e,1,t),n);return-r+t-1}function Ba(e,t=4,n=1){let r=za(e,t,n),i=za(e+1,t,n);return(Ia(e)-r+i)/7}function Va(e){return e>99?e:e>z.twoDigitCutoffYear?1900+e:2e3+e}function Ha(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 Ua(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 Wa(e){let t=Number(e);if(typeof e==`boolean`||e===``||!Number.isFinite(t))throw new Or(`Invalid unit value ${e}`);return t}function Ga(e,t){let n={};for(let r in e)if(Ea(e,r)){let i=e[r];if(i==null)continue;n[t(r)]=Wa(i)}return n}function Ka(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}${Aa(n,2)}:${Aa(r,2)}`;case`narrow`:return`${i}${n}${r>0?`:${r}`:``}`;case`techie`:return`${i}${Aa(n,2)}${Aa(r,2)}`;default:throw RangeError(`Value format ${t} is out of range for property format`)}}function qa(e){return Ta(e,[`hour`,`minute`,`second`,`millisecond`])}const Ja=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Ya=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],Xa=[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`];function Za(e){switch(e){case`narrow`:return[...Xa];case`short`:return[...Ya];case`long`:return[...Ja];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 Qa=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],$a=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],eo=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function to(e){switch(e){case`narrow`:return[...eo];case`short`:return[...$a];case`long`:return[...Qa];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`];default:return null}}const no=[`AM`,`PM`],ro=[`Before Christ`,`Anno Domini`],io=[`BC`,`AD`],ao=[`B`,`A`];function oo(e){switch(e){case`narrow`:return[...ao];case`short`:return[...io];case`long`:return[...ro];default:return null}}function so(e){return no[e.hour<12?0:1]}function co(e,t){return to(t)[e.weekday-1]}function lo(e,t){return Za(t)[e.month-1]}function uo(e,t){return oo(t)[e.year<0?0:1]}function fo(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 po(e,t){let n=``;for(let r of e)r.literal?n+=r.val:n+=t(r.val);return n}const mo={D:Mr,DD:Nr,DDD:Fr,DDDD:Ir,t:Lr,tt:Rr,ttt:zr,tttt:Br,T:Vr,TT:Hr,TTT:Ur,TTTT:Wr,f:Gr,ff:qr,fff:Xr,ffff:Qr,F:Kr,FF:Jr,FFF:Zr,FFFF:$r};var ho=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 mo[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 Aa(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?so(t):a({hour:`numeric`,hourCycle:`h12`},`dayperiod`),c=(e,n)=>r?lo(t,e):a(n?{month:e}:{month:e,day:`numeric`},`month`),l=(e,n)=>r?co(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?uo(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 po(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 po(o,a(c,l))}};const go=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function _o(...e){let t=e.reduce((e,t)=>e+t.source,``);return RegExp(`^${t}$`)}function vo(...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 yo(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 bo(...e){return(t,n)=>{let r={},i;for(i=0;i<e.length;i++)r[e[i]]=ja(t[n+i]);return[r,null,n+i]}}const xo=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,So=`(?:${xo.source}?(?:\\[(${go.source})\\])?)?`,Co=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,wo=RegExp(`${Co.source}${So}`),To=RegExp(`(?:[Tt]${wo.source})?`),Eo=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Do=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Oo=/(\d{4})-?(\d{3})/,ko=bo(`weekYear`,`weekNumber`,`weekDay`),Ao=bo(`year`,`ordinal`),jo=/(\d{4})-(\d\d)-(\d\d)/,Mo=RegExp(`${Co.source} ?(?:${xo.source}|(${go.source}))?`),No=RegExp(`(?: ${Mo.source})?`);function Po(e,t,n){let r=e[t];return B(r)?n:ja(r)}function Fo(e,t){let n={year:Po(e,t),month:Po(e,t+1,1),day:Po(e,t+2,1)};return[n,null,t+3]}function Io(e,t){let n={hours:Po(e,t,0),minutes:Po(e,t+1,0),seconds:Po(e,t+2,0),milliseconds:Na(e[t+3])};return[n,null,t+4]}function Lo(e,t){let n=!e[t]&&!e[t+1],r=Ua(e[t+1],e[t+2]),i=n?null:Ii.instance(r);return[{},i,t+3]}function Ro(e,t){let n=e[t]?li.create(e[t]):null;return[{},n,t+1]}const zo=RegExp(`^T?${Co.source}$`),Bo=/^-?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 Vo(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(Ma(n)),months:f(Ma(r)),weeks:f(Ma(i)),days:f(Ma(a)),hours:f(Ma(o)),minutes:f(Ma(s)),seconds:f(Ma(c),c===`-0`),milliseconds:f(Na(l),d)}]}const Ho={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 Uo(e,t,n,r,i,a,o){let s={year:t.length===2?Va(ja(t)):ja(t),month:Ya.indexOf(n)+1,day:ja(r),hour:ja(i),minute:ja(a)};return o&&(s.second=ja(o)),e&&(s.weekday=e.length>3?Qa.indexOf(e)+1:$a.indexOf(e)+1),s}const Wo=/^(?:(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 Go(e){let[,t,n,r,i,a,o,s,c,l,u,d]=e,f=Uo(t,i,r,n,a,o,s),p;return p=c?Ho[c]:l?0:Ua(u,d),[f,new Ii(p)]}function Ko(e){return e.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).trim()}const qo=/^(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$/,Jo=/^(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$/,Yo=/^(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 Xo(e){let[,t,n,r,i,a,o,s]=e,c=Uo(t,i,r,n,a,o,s);return[c,Ii.utcInstance]}function Zo(e){let[,t,n,r,i,a,o,s]=e,c=Uo(t,s,n,r,i,a,o);return[c,Ii.utcInstance]}const Qo=_o(Eo,To),$o=_o(Do,To),es=_o(Oo,To),ts=_o(wo),ns=vo(Fo,Io,Lo,Ro),rs=vo(ko,Io,Lo,Ro),os=vo(Ao,Io,Lo,Ro),ss=vo(Io,Lo,Ro);function cs(e){return yo(e,[Qo,ns],[$o,rs],[es,os],[ts,ss])}function ls(e){return yo(Ko(e),[Wo,Go])}function us(e){return yo(e,[qo,Xo],[Jo,Xo],[Yo,Zo])}function ds(e){return yo(e,[Bo,Vo])}const fs=vo(Io);function ps(e){return yo(e,[zo,fs])}const ms=_o(jo,No),hs=_o(Mo),gs=vo(Io,Lo,Ro);function _s(e){return yo(e,[ms,ns],[hs,gs])}const vs=`Invalid Duration`,ys={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}},bs={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},...ys},xs=146097/400,Ss=146097/4800,Cs={years:{quarters:4,months:12,weeks:xs/7,days:xs,hours:xs*24,minutes:xs*24*60,seconds:xs*24*60*60,milliseconds:xs*24*60*60*1e3},quarters:{months:3,weeks:xs/28,days:xs/4,hours:xs*24/4,minutes:xs*24*60/4,seconds:xs*24*60*60/4,milliseconds:xs*24*60*60*1e3/4},months:{weeks:Ss/7,days:Ss,hours:Ss*24,minutes:Ss*24*60,seconds:Ss*24*60*60,milliseconds:Ss*24*60*60*1e3},...ys},ws=[`years`,`quarters`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`],Ts=ws.slice(0).reverse();function Es(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 As(r)}function Ds(e,t){let n=t.milliseconds??0;for(let r of Ts.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function Os(e,t){let n=Ds(e,t)<0?-1:1;ws.reduceRight((r,i)=>{if(B(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),ws.reduce((n,r)=>{if(B(t[r]))return n;if(n){let i=t[n]%1;t[n]-=i,t[r]+=i*e[n][r]}return r},null)}function ks(e){let t={};for(let[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}var As=class e{constructor(e){let t=e.conversionAccuracy===`longterm`||!1,n=t?Cs:bs;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Pi.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 Or(`Duration.fromObject: argument expected to be an object, got ${t===null?`null`:typeof t}`);return new e({values:Ga(t,e.normalizeUnit),loc:Pi.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(_a(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t==`object`)return e.fromObject(t);throw new Or(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){let[r]=ds(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]=ps(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 Or(`need to specify a reason the Duration is invalid`);let r=t instanceof ea?t:new ea(t,n);if(z.throwOnInvalid)throw new Tr(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 Dr(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?ho.create(this.loc,n).formatDurationFromString(this,e):vs}toHuman(e={}){if(!this.isValid)return vs;let t=e.showZeros!==!1,n=ws.map(n=>{let r=this.values[n];return B(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+=Pa(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=H.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?Ds(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 ws)(Ea(n.values,e)||Ea(this.values,e))&&(r[e]=n.get(e)+this.get(e));return Es(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]=Wa(e(this.values[n],n));return Es(this,{values:t},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let n={...this.values,...Ga(t,e.normalizeUnit)};return Es(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 Es(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return Os(this.matrix,e),Es(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=ks(this.normalize().shiftToAll().toObject());return Es(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 ws)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;_a(i[e])&&(t+=i[e]);let o=Math.trunc(t);n[e]=o,r[e]=(t*1e3-o*1e3)/1e3}else _a(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 Os(this.matrix,n),Es(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 Es(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=ks(this.values);return Es(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 ws)if(!t(this.values[n],e.values[n]))return!1;return!0}};const js=`Invalid Interval`;function Ms(e,t){return!e||!e.isValid?Ns.invalid(`missing or invalid start`):!t||!t.isValid?Ns.invalid(`missing or invalid end`):t<e?Ns.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 Ns=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 Or(`need to specify a reason the Interval is invalid`);let r=t instanceof ea?t:new ea(t,n);if(z.throwOnInvalid)throw new wr(r);return new e({invalid:r})}static fromDateTimes(t,n){let r=Ic(t),i=Ic(n),a=Ms(r,i);return a??new e({start:r,end:i})}static after(t,n){let r=As.fromDurationLike(n),i=Ic(t);return e.fromDateTimes(i,i.plus(r))}static before(t,n){let r=As.fromDurationLike(n),i=Ic(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=H.fromISO(r,n),a=t.isValid}catch{a=!1}let o,s;try{o=H.fromISO(i,n),s=o.isValid}catch{s=!1}if(a&&s)return e.fromDateTimes(t,o);if(a){let r=As.fromISO(i,n);if(r.isValid)return e.after(t,r)}else if(s){let t=As.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(Ic).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=As.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()})`:js}[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=Mr,t={}){return this.isValid?ho.create(this.s.loc.clone(t),e).formatInterval(this):js}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:js}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:js}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:js}toFormat(e,{separator:t=` – `}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:js}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):As.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}},Ps=class{static hasDST(e=z.defaultZone){let t=H.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return li.isValidZone(e)}static normalizeZone(e){return Ri(e,z.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Pi.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Pi.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Pi.create(e)).getWeekendDays().slice()}static months(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i=`gregory`}={}){return(r||Pi.create(t,n,i)).months(e)}static monthsFormat(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i=`gregory`}={}){return(r||Pi.create(t,n,i)).months(e,!0)}static weekdays(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Pi.create(t,n,null)).weekdays(e)}static weekdaysFormat(e=`long`,{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Pi.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Pi.create(e).meridiems()}static eras(e=`short`,{locale:t=null}={}){return Pi.create(t,null,`gregory`).eras(e)}static features(){return{relative:xa(),localeWeek:Sa()}}};function Fs(e,t){let n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf(`day`).valueOf(),r=n(t)-n(e);return Math.floor(As.fromMillis(r).as(`days`))}function Is(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=Fs(e,t);return(n-n%7)/7}],[`days`,Fs]],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 Ls(e,t,n,r){let[i,a,o,s]=Is(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=As.fromObject(a,r);return l.length>0?As.fromMillis(c,r).shiftTo(...l).plus(u):u}const Rs=`missing Intl.DateTimeFormat.formatToParts support`;function V(e,t=e=>e){return{regex:e,deser:([e])=>t(Hi(e))}}const zs=`\xA0`,Bs=`[ ${zs}]`,Vs=new RegExp(Bs,`g`);function Hs(e){return e.replace(/\./g,`\\.?`).replace(Vs,Bs)}function Us(e){return e.replace(/\./g,``).replace(Vs,` `).toLowerCase()}function Ws(e,t){return e===null?null:{regex:RegExp(e.map(Hs).join(`|`)),deser:([n])=>e.findIndex(e=>Us(n)===Us(e))+t}}function Gs(e,t){return{regex:e,deser:([,e,t])=>Ua(e,t),groups:t}}function Ks(e){return{regex:e,deser:([e])=>e}}function qs(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,`\\$&`)}function Js(e,t){let n=Gi(t),r=Gi(t,`{2}`),i=Gi(t,`{3}`),a=Gi(t,`{4}`),o=Gi(t,`{6}`),s=Gi(t,`{1,2}`),c=Gi(t,`{1,3}`),l=Gi(t,`{1,6}`),u=Gi(t,`{1,9}`),d=Gi(t,`{2,4}`),f=Gi(t,`{4,6}`),p=e=>({regex:RegExp(qs(e.val)),deser:([e])=>e,literal:!0}),m=m=>{if(e.literal)return p(m);switch(m.val){case`G`:return Ws(t.eras(`short`),0);case`GG`:return Ws(t.eras(`long`),0);case`y`:return V(l);case`yy`:return V(d,Va);case`yyyy`:return V(a);case`yyyyy`:return V(f);case`yyyyyy`:return V(o);case`M`:return V(s);case`MM`:return V(r);case`MMM`:return Ws(t.months(`short`,!0),1);case`MMMM`:return Ws(t.months(`long`,!0),1);case`L`:return V(s);case`LL`:return V(r);case`LLL`:return Ws(t.months(`short`,!1),1);case`LLLL`:return Ws(t.months(`long`,!1),1);case`d`:return V(s);case`dd`:return V(r);case`o`:return V(c);case`ooo`:return V(i);case`HH`:return V(r);case`H`:return V(s);case`hh`:return V(r);case`h`:return V(s);case`mm`:return V(r);case`m`:return V(s);case`q`:return V(s);case`qq`:return V(r);case`s`:return V(s);case`ss`:return V(r);case`S`:return V(c);case`SSS`:return V(i);case`u`:return Ks(u);case`uu`:return Ks(s);case`uuu`:return V(n);case`a`:return Ws(t.meridiems(),0);case`kkkk`:return V(a);case`kk`:return V(d,Va);case`W`:return V(s);case`WW`:return V(r);case`E`:case`c`:return V(n);case`EEE`:return Ws(t.weekdays(`short`,!1),1);case`EEEE`:return Ws(t.weekdays(`long`,!1),1);case`ccc`:return Ws(t.weekdays(`short`,!0),1);case`cccc`:return Ws(t.weekdays(`long`,!0),1);case`Z`:case`ZZ`:return Gs(RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case`ZZZ`:return Gs(RegExp(`([+-]${s.source})(${r.source})?`),2);case`z`:return Ks(/[a-z_+-/]{1,256}?/i);case` `:return Ks(/[^\S\n\r]/);default:return p(m)}},h=m(e)||{invalidReason:Rs};return h.token=e,h}const Ys={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 Xs(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=Ys[o];if(typeof s==`object`&&(s=s[a]),s)return{literal:!1,val:s}}function Zs(e){let t=e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,``);return[`^${t}$`,e]}function Qs(e,t,n){let r=e.match(t);if(r){let e={},t=1;for(let i in n)if(Ea(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 $s(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;B(e.z)||(n=li.create(e.z)),B(e.Z)||(n||=new Ii(e.Z),r=e.Z),B(e.q)||(e.M=(e.q-1)*3+1),B(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),B(e.u)||(e.S=Na(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 ec=null;function tc(){return ec||=H.fromMillis(1555555555555),ec}function nc(e,t){if(e.literal)return e;let n=ho.macroTokenToFormatOpts(e.val),r=sc(n,t);return r==null||r.includes(void 0)?e:r}function rc(e,t){return Array.prototype.concat(...e.map(e=>nc(e,t)))}var ic=class{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=rc(ho.parseFormat(t),e),this.units=this.tokens.map(t=>Js(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){let[e,t]=Zs(this.units);this.regex=RegExp(e,`i`),this.handlers=t}}explainFromTokens(e){if(this.isValid){let[t,n]=Qs(e,this.regex,this.handlers),[r,i,a]=n?$s(n):[null,null,void 0];if(Ea(n,`a`)&&Ea(n,`H`))throw new Er(`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 ac(e,t,n){let r=new ic(e,n);return r.explainFromTokens(t)}function oc(e,t,n){let{result:r,zone:i,specificOffset:a,invalidReason:o}=ac(e,t,n);return[r,i,a,o]}function sc(e,t){if(!e)return null;let n=ho.create(t,e),r=n.dtFormatter(tc()),i=r.formatToParts(),a=r.resolvedOptions();return i.map(t=>Xs(t,e,a))}const cc=`Invalid DateTime`,lc=864e13;function uc(e){return new ea(`unsupported zone`,`the zone "${e.name}" is not supported`)}function dc(e){return e.weekData===null&&(e.weekData=ca(e.c)),e.weekData}function fc(e){return e.localWeekData===null&&(e.localWeekData=ca(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function pc(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new H({...n,...t,old:n})}function mc(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 hc(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 gc(e,t,n){return mc(Ra(e),t,n)}function _c(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,La(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=As.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=Ra(a),[c,l]=mc(s,n,e.zone);return o!==0&&(c+=o,l=e.zone.offset(c)),{ts:c,o:l}}function vc(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=H.fromObject(e,{...n,zone:r,specificOffset:a});return o?i:i.setZone(s)}else return H.invalid(new ea(`unparsable`,`the input "${i}" can't be parsed as ${r}`))}function yc(e,t,n=!0){return e.isValid?ho.create(Pi.create(`en-US`),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function bc(e,t,n){let r=e.c.year>9999||e.c.year<0,i=``;if(r&&e.c.year>=0&&(i+=`+`),i+=Aa(e.c.year,r?6:4),n===`year`)return i;if(t){if(i+=`-`,i+=Aa(e.c.month),n===`month`)return i;i+=`-`}else if(i+=Aa(e.c.month),n===`month`)return i;return i+=Aa(e.c.day),i}function xc(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+=Aa(e.c.hour),o===`hour`)break;if(t){if(c+=`:`,c+=Aa(e.c.minute),o===`minute`)break;s&&(c+=`:`,c+=Aa(e.c.second))}else{if(c+=Aa(e.c.minute),o===`minute`)break;s&&(c+=Aa(e.c.second))}if(o===`second`)break;s&&(!r||e.c.millisecond!==0)&&(c+=`.`,c+=Aa(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!a?c+=`Z`:e.o<0?(c+=`-`,c+=Aa(Math.trunc(-e.o/60)),c+=`:`,c+=Aa(Math.trunc(-e.o%60))):(c+=`+`,c+=Aa(Math.trunc(e.o/60)),c+=`:`,c+=Aa(Math.trunc(e.o%60)))),a&&(c+=`[`+e.zone.ianaName+`]`),c}const Sc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Cc={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},wc={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Tc=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],Ec=[`weekYear`,`weekNumber`,`weekday`,`hour`,`minute`,`second`,`millisecond`],Dc=[`year`,`ordinal`,`hour`,`minute`,`second`,`millisecond`];function Oc(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 Dr(e);return t}function kc(e){switch(e.toLowerCase()){case`localweekday`:case`localweekdays`:return`localWeekday`;case`localweeknumber`:case`localweeknumbers`:return`localWeekNumber`;case`localweekyear`:case`localweekyears`:return`localWeekYear`;default:return Oc(e)}}function Ac(e){if(Pc===void 0&&(Pc=z.now()),e.type!==`iana`)return e.offset(Pc);let t=e.name,n=Fc.get(t);return n===void 0&&(n=e.offset(Pc),Fc.set(t,n)),n}function jc(e,t){let n=Ri(t.zone,z.defaultZone);if(!n.isValid)return H.invalid(uc(n));let r=Pi.fromObject(t),i,a;if(B(e.year))i=z.now();else{for(let t of Tc)B(e[t])&&(e[t]=Sc[t]);let t=ha(e)||ga(e);if(t)return H.invalid(t);let r=Ac(n);[i,a]=gc(e,r,n)}return new H({ts:i,zone:n,loc:r,o:a})}function Mc(e,t,n){let r=B(n.round)?!0:n.round,i=B(n.rounding)?`trunc`:n.rounding,a=(e,a)=>{e=Pa(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 Nc(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 Pc;const Fc=new Map;var H=class e{constructor(e){let t=e.zone||z.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new ea(`invalid input`):null)||(t.isValid?null:uc(t));this.ts=B(e.ts)?z.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=_a(e.o)&&!e.old?e.o:t.offset(this.ts);r=hc(this.ts,a),n=Number.isNaN(r.year)?new ea(`invalid input`):null,r=n?null:r,i=n?null:a}}this._zone=t,this.loc=e.loc||Pi.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]=Nc(arguments),[n,r,i,a,o,s,c]=t;return jc({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:c},e)}static utc(){let[e,t]=Nc(arguments),[n,r,i,a,o,s,c]=t;return e.zone=Ii.utcInstance,jc({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:c},e)}static fromJSDate(t,n={}){let r=ba(t)?t.valueOf():NaN;if(Number.isNaN(r))return e.invalid(`invalid input`);let i=Ri(n.zone,z.defaultZone);return i.isValid?new e({ts:r,zone:i,loc:Pi.fromObject(n)}):e.invalid(uc(i))}static fromMillis(t,n={}){if(_a(t))return t<-lc||t>lc?e.invalid(`Timestamp out of range`):new e({ts:t,zone:Ri(n.zone,z.defaultZone),loc:Pi.fromObject(n)});throw new Or(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(_a(t))return new e({ts:t*1e3,zone:Ri(n.zone,z.defaultZone),loc:Pi.fromObject(n)});throw new Or(`fromSeconds requires a numerical input`)}static fromObject(t,n={}){t||={};let r=Ri(n.zone,z.defaultZone);if(!r.isValid)return e.invalid(uc(r));let i=Pi.fromObject(n),a=Ga(t,kc),{minDaysInFirstWeek:o,startOfWeek:s}=fa(a,i),c=z.now(),l=B(n.specificOffset)?r.offset(c):n.specificOffset,u=!B(a.ordinal),d=!B(a.year),f=!B(a.month)||!B(a.day),p=d||f,m=a.weekYear||a.weekNumber;if((p||u)&&m)throw new Er(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(f&&u)throw new Er(`Can't mix ordinal dates with month/day`);let h=m||a.weekday&&!p,g,_,v=hc(c,l);h?(g=Ec,_=Cc,v=ca(v,o,s)):u?(g=Dc,_=wc,v=ua(v)):(g=Tc,_=Sc);let y=!1;for(let e of g){let t=a[e];B(t)?y?a[e]=_[e]:a[e]=v[e]:y=!0}let b=h?pa(a,o,s):u?ma(a):ha(a),x=b||ga(a);if(x)return e.invalid(x);let S=h?la(a,o,s):u?da(a):a,[C,w]=gc(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]=cs(e);return vc(n,r,t,`ISO 8601`,e)}static fromRFC2822(e,t={}){let[n,r]=ls(e);return vc(n,r,t,`RFC 2822`,e)}static fromHTTP(e,t={}){let[n,r]=us(e);return vc(n,r,t,`HTTP`,t)}static fromFormat(t,n,r={}){if(B(t)||B(n))throw new Or(`fromFormat requires an input string and a format`);let{locale:i=null,numberingSystem:a=null}=r,o=Pi.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),[s,c,l,u]=oc(o,t,n);return u?e.invalid(u):vc(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]=_s(e);return vc(n,r,t,`SQL`,e)}static invalid(t,n=null){if(!t)throw new Or(`need to specify a reason the DateTime is invalid`);let r=t instanceof ea?t:new ea(t,n);if(z.throwOnInvalid)throw new Cr(r);return new e({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let n=sc(e,Pi.fromObject(t));return n?n.map(e=>e?e.val:null).join(``):null}static expandFormat(e,t={}){let n=rc(ho.parseFormat(e),Pi.fromObject(t));return n.map(e=>e.val).join(``)}static resetCache(){Pc=void 0,Fc.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?dc(this).weekYear:NaN}get weekNumber(){return this.isValid?dc(this).weekNumber:NaN}get weekday(){return this.isValid?dc(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?fc(this).weekday:NaN}get localWeekNumber(){return this.isValid?fc(this).weekNumber:NaN}get localWeekYear(){return this.isValid?fc(this).weekYear:NaN}get ordinal(){return this.isValid?ua(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ps.months(`short`,{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ps.months(`long`,{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ps.weekdays(`short`,{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ps.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=Ra(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=hc(s,a),u=hc(c,o);return l.hour===u.hour&&l.minute===u.minute&&l.second===u.second&&l.millisecond===u.millisecond?[pc(this,{ts:s}),pc(this,{ts:c})]:[this]}get isInLeapYear(){return Fa(this.year)}get daysInMonth(){return La(this.year,this.month)}get daysInYear(){return this.isValid?Ia(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ba(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ba(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:n,calendar:r}=ho.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(Ii.instance(e),t)}toLocal(){return this.setZone(z.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=Ri(t,z.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]=gc(r,n,t)}return pc(this,{ts:e,zone:t})}else return e.invalid(uc(t))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){let r=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return pc(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let t=Ga(e,kc),{minDaysInFirstWeek:n,startOfWeek:r}=fa(t,this.loc),i=!B(t.weekYear)||!B(t.weekNumber)||!B(t.weekday),a=!B(t.ordinal),o=!B(t.year),s=!B(t.month)||!B(t.day),c=o||s,l=t.weekYear||t.weekNumber;if((c||a)&&l)throw new Er(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(s&&a)throw new Er(`Can't mix ordinal dates with month/day`);let u;i?u=la({...ca(this.c,n,r),...t},n,r):B(t.ordinal)?(u={...this.toObject(),...t},B(t.day)&&(u.day=Math.min(La(u.year,u.month),u.day))):u=da({...ua(this.c),...t});let[d,f]=gc(u,this.o,this.zone);return pc(this,{ts:d,o:f})}plus(e){if(!this.isValid)return this;let t=As.fromDurationLike(e);return pc(this,_c(this,t))}minus(e){if(!this.isValid)return this;let t=As.fromDurationLike(e).negate();return pc(this,_c(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let n={},r=As.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?ho.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):cc}toLocaleString(e=Mr,t={}){return this.isValid?ho.create(this.loc.clone(t),e).formatDateTime(this):cc}toLocaleParts(e={}){return this.isValid?ho.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=Oc(a);let o=e===`extended`,s=bc(this,o,a);return Tc.indexOf(a)>=3&&(s+=`T`),s+=xc(this,o,t,n,r,i,a),s}toISODate({format:e=`extended`,precision:t=`day`}={}){return this.isValid?bc(this,e===`extended`,Oc(t)):null}toISOWeekDate(){return yc(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=Oc(o);let s=r&&Tc.indexOf(o)>=3?`T`:``;return s+xc(this,a===`extended`,t,e,n,i,o)}toRFC2822(){return yc(this,`EEE, dd LLL yyyy HH:mm:ss ZZZ`,!1)}toHTTP(){return yc(this.toUTC(),`EEE, dd LLL yyyy HH:mm:ss 'GMT'`)}toSQLDate(){return this.isValid?bc(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`)),yc(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():cc}[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 As.invalid(`created by diffing an invalid DateTime`);let r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=Ca(t).map(As.normalizeUnit),a=e.valueOf()>this.valueOf(),o=a?this:e,s=a?e:this,c=Ls(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?Ns.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),Mc(n,this.plus(r),{...t,numeric:`always`,units:i,unit:a})}toRelativeCalendar(t={}){return this.isValid?Mc(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 Or(`min requires all arguments be DateTimes`);return wa(t,e=>e.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new Or(`max requires all arguments be DateTimes`);return wa(t,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){let{locale:r=null,numberingSystem:i=null}=n,a=Pi.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return ac(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=Pi.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new ic(i,e)}static fromFormatParser(t,n,r={}){if(B(t)||B(n))throw new Or(`fromFormatParser requires an input string and a format parser`);let{locale:i=null,numberingSystem:a=null}=r,o=Pi.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});if(!o.equals(n.locale))throw new Or(`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):vc(s,c,r,`format ${n.format}`,t,l)}static get DATE_SHORT(){return Mr}static get DATE_MED(){return Nr}static get DATE_MED_WITH_WEEKDAY(){return Pr}static get DATE_FULL(){return Fr}static get DATE_HUGE(){return Ir}static get TIME_SIMPLE(){return Lr}static get TIME_WITH_SECONDS(){return Rr}static get TIME_WITH_SHORT_OFFSET(){return zr}static get TIME_WITH_LONG_OFFSET(){return Br}static get TIME_24_SIMPLE(){return Vr}static get TIME_24_WITH_SECONDS(){return Hr}static get TIME_24_WITH_SHORT_OFFSET(){return Ur}static get TIME_24_WITH_LONG_OFFSET(){return Wr}static get DATETIME_SHORT(){return Gr}static get DATETIME_SHORT_WITH_SECONDS(){return Kr}static get DATETIME_MED(){return qr}static get DATETIME_MED_WITH_SECONDS(){return Jr}static get DATETIME_MED_WITH_WEEKDAY(){return Yr}static get DATETIME_FULL(){return Xr}static get DATETIME_FULL_WITH_SECONDS(){return Zr}static get DATETIME_HUGE(){return Qr}static get DATETIME_HUGE_WITH_SECONDS(){return $r}};function Ic(e){if(H.isDateTime(e))return e;if(e&&e.valueOf&&_a(e.valueOf()))return H.fromJSDate(e);if(e&&typeof e==`object`)return H.fromObject(e);throw new Or(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var Lc=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}(),ee=E.prototype;return w.prototype=ee,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach(function(e){ee[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 Rc=(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},zc=e=>e instanceof H?!0:typeof e!=`object`||!e||!(`isLuxonDateTime`in e)?!1:e.isLuxonDateTime===!0,Bc=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Vc=e=>{if(!Bc(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 Hc=u(Lc());z.defaultZone=`utc`,z.defaultLocale=`en`,z.defaultWeekSettings={firstDay:7,minimalDays:4,weekend:[6,7]},z.throwOnInvalid=!1;const Uc={"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`},Wc=(e,t,n)=>{switch(e=Gc(e),t=Gc(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}},Gc=(e,t)=>{if(zc(e))return e;if(Rc(e,`Date`,Date))return H.fromJSDate(e);if(Rc(e,`Dayjs`,Hc.Dayjs)||Hc.default.isDayjs(e))return H.fromJSDate(e.toDate());if(Vc(e))return H.fromObject(e,{zone:`utc`});if(typeof e==`number`){let t=(0,Hc.default)(e);if(t.isValid())return H.fromJSDate(t.toDate(),{zone:`utc`})}if(typeof e==`string`){if(t){let n=H.fromFormat(e,t,{zone:`utc`});if(n.isValid)return n}let n=[H.fromISO,H.fromRFC2822,H.fromHTTP,H.fromSQL];for(let t of n){let n=t(e,{zone:`utc`});if(n.isValid)return n}let r=(0,Hc.default)(e);if(r.isValid())return H.fromJSDate(r.toDate(),{zone:`utc`})}return!1},Kc=(e,t)=>{let n=Gc(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)})]}},qc=function(e){return{type:`datetime`,base:e.any(),coerce:{from:[`string`,`number`,`date`,`object`],method:Kc},rules:{compare:{method:!1,validate(e,t,{limit:n},{name:r,operator:i}){let a=Gc(e),o=Gc(n);if(!a||!o)return t.error(`datetime.base`,{value:zc(e)?e.toLocaleString(H.DATETIME_MED):String(e)});let s=Wc(a,o,i);return s?e:t.error(`datetime.`+r,{limit:o.toLocaleString(H.DATETIME_MED),value:a.toLocaleString(H.DATETIME_MED)})},args:[{name:`limit`,ref:!0,assert:e=>zc(Gc(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=Gc(e);return n.isWeekend?e:t.error(`datetime.weekend`,{value:n.toLocaleString(H.DATE_MED)})}},weekday:{method(){return this.$_addRule({name:`weekday`})},validate(e,t){let n=Gc(e);return n.isWeekend?t.error(`datetime.weekday`,{value:n.toLocaleString(H.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:Uc}};var Jc={};c(Jc,{default:()=>Jh});function U(){return Vp.apply(null,arguments)}function Yc(e){Vp=e}function Xc(e){return e instanceof Array||Object.prototype.toString.call(e)===`[object Array]`}function Zc(e){return e!=null&&Object.prototype.toString.call(e)===`[object Object]`}function W(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qc(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;for(var t in e)if(W(e,t))return!1;return!0}function $c(e){return e===void 0}function el(e){return typeof e==`number`||Object.prototype.toString.call(e)===`[object Number]`}function tl(e){return e instanceof Date||Object.prototype.toString.call(e)===`[object Date]`}function nl(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function rl(e,t){for(var n in t)W(t,n)&&(e[n]=t[n]);return W(t,`toString`)&&(e.toString=t.toString),W(t,`valueOf`)&&(e.valueOf=t.valueOf),e}function il(e,t,n,r){return fd(e,t,n,r,!0).utc()}function al(){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 G(e){return e._pf??=al(),e._pf}function ol(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=G(e),n=Hp.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 sl(e){var t=il(NaN);return e==null?G(t).userInvalidated=!0:rl(G(t),e),t}function cl(e,t){var n,r,i,a=Up.length;if($c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),$c(t._i)||(e._i=t._i),$c(t._f)||(e._f=t._f),$c(t._l)||(e._l=t._l),$c(t._strict)||(e._strict=t._strict),$c(t._tzm)||(e._tzm=t._tzm),$c(t._isUTC)||(e._isUTC=t._isUTC),$c(t._offset)||(e._offset=t._offset),$c(t._pf)||(e._pf=G(t)),$c(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)r=Up[n],i=t[r],$c(i)||(e[r]=i);return e}function ll(e){cl(this,e),this._d=new Date(e._d==null?NaN:e._d.getTime()),this.isValid()||(this._d=new Date(NaN)),Wp===!1&&(Wp=!0,U.updateOffset(this),Wp=!1)}function ul(e){return e instanceof ll||e!=null&&e._isAMomentObject!=null}function dl(e){U.suppressDeprecationWarnings===!1&&typeof console<`u`&&console.warn&&console.warn(`Deprecation warning: `+e)}function fl(e,t){var n=!0;return rl(function(){if(U.deprecationHandler!=null&&U.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+=`
|
|
11
|
-
[`+a+`] `,arguments[0])W(arguments[0],o)&&(i+=o+`: `+arguments[0][o]+`, `);i=i.slice(0,-2)}else i=arguments[a];r.push(i)}dl(e+`
|
|
12
|
-
Arguments: `+Array.prototype.slice.call(r).join(``)+`
|
|
13
|
-
`+Error().stack),n=!1}return t.apply(this,arguments)},t)}function pl(e,t){U.deprecationHandler!=null&&U.deprecationHandler(e,t),Gp[e]||(dl(t),Gp[e]=!0)}function ml(e){return typeof Function<`u`&&e instanceof Function||Object.prototype.toString.call(e)===`[object Function]`}function hl(e){var t,n;for(n in e)W(e,n)&&(t=e[n],ml(t)?this[n]=t:this[`_`+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+`|`+/\d{1,2}/.source)}function gl(e,t){var n=rl({},e),r;for(r in t)W(t,r)&&(Zc(e[r])&&Zc(t[r])?(n[r]={},rl(n[r],e[r]),rl(n[r],t[r])):t[r]==null?delete n[r]:n[r]=t[r]);for(r in e)W(e,r)&&!W(t,r)&&Zc(e[r])&&(n[r]=rl({},n[r]));return n}function _l(e){e!=null&&this.set(e)}function vl(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return ml(r)?r.call(t,n):r}function yl(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 K(e,t,n,r){var i=r;typeof r==`string`&&(i=function(){return this[r]()}),e&&(Zp[e]=i),t&&(Zp[t[0]]=function(){return yl(i.apply(this,arguments),t[1],t[2])}),n&&(Zp[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function bl(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,``):e.replace(/\\/g,``)}function xl(e){var t=e.match(Jp),n,r;for(n=0,r=t.length;n<r;n++)Zp[t[n]]?t[n]=Zp[t[n]]:t[n]=bl(t[n]);return function(n){var i=``,a;for(a=0;a<r;a++)i+=ml(t[a])?t[a].call(n,e):t[a];return i}}function Sl(e,t){return e.isValid()?(t=Cl(t,e.localeData()),Xp[t]=Xp[t]||xl(t),Xp[t](e)):e.localeData().invalidDate()}function Cl(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(Yp.lastIndex=0;n>=0&&Yp.test(e);)e=e.replace(Yp,r),Yp.lastIndex=0,--n;return e}function wl(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Jp).map(function(e){return e===`MMMM`||e===`MM`||e===`DD`||e===`dddd`?e.slice(1):e}).join(``),this._longDateFormat[e])}function Tl(){return this._invalidDate}function El(e){return this._ordinal.replace(`%d`,e)}function Dl(e,t,n,r){var i=this._relativeTime[n];return ml(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Ol(e,t){var n=this._relativeTime[e>0?`future`:`past`];return ml(n)?n(t):n.replace(/%s/i,t)}function kl(e){return typeof e==`string`?rm[e]||rm[e.toLowerCase()]:void 0}function Al(e){var t={},n,r;for(r in e)W(e,r)&&(n=kl(r),n&&(t[n]=e[r]));return t}function jl(e){var t=[],n;for(n in e)W(e,n)&&t.push({unit:n,priority:im[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function q(e,t,n){Cm[e]=ml(t)?t:function(e,r){return e&&n?n:t}}function Ml(e,t){return W(Cm,e)?Cm[e](t._strict,t._locale):new RegExp(Nl(e))}function Nl(e){return Pl(e.replace(`\\`,``).replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function Pl(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,`\\$&`)}function Fl(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function J(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Fl(t)),n}function Y(e,t){var n,r=t,i;for(typeof e==`string`&&(e=[e]),el(t)&&(r=function(e,n){n[t]=J(e)}),i=e.length,n=0;n<i;n++)wm[e[n]]=r}function Il(e,t){Y(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function Ll(e,t,n){t!=null&&W(wm,e)&&wm[e](t,n._a,n,e)}function Rl(e){return e%4==0&&e%100!=0||e%400==0}function zl(e){return Rl(e)?366:365}function Bl(){return Rl(this.year())}function Vl(e,t){return function(n){return n==null?Hl(this,e):(Ul(this,e,n),U.updateOffset(this,t),this)}}function Hl(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 Ul(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&&!Rl(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function Wl(e){return e=kl(e),ml(this[e])?this[e]():this}function Gl(e,t){if(typeof e==`object`){e=Al(e);var n=jl(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=kl(e),ml(this[e]))return this[e](t);return this}function Kl(e,t){return(e%t+t)%t}function ql(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Kl(t,12);return e+=(t-n)/12,n===1?Rl(e)?29:28:31-n%7%2}function Jl(e,t){return e?Xc(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Rm).test(t)?`format`:`standalone`][e.month()]:Xc(this._months)?this._months:this._months.standalone}function Yl(e,t){return e?Xc(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Rm.test(t)?`format`:`standalone`][e.month()]:Xc(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Xl(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=il([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,``).toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,``).toLocaleLowerCase();return n?t===`MMM`?(i=Fm.call(this._shortMonthsParse,o),i===-1?null:i):(i=Fm.call(this._longMonthsParse,o),i===-1?null:i):t===`MMM`?(i=Fm.call(this._shortMonthsParse,o),i===-1?(i=Fm.call(this._longMonthsParse,o),i===-1?null:i):i):(i=Fm.call(this._longMonthsParse,o),i===-1?(i=Fm.call(this._shortMonthsParse,o),i===-1?null:i):i)}function Zl(e,t,n){var r,i,a;if(this._monthsParseExact)return Xl.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if(i=il([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 Ql(e,t){if(!e.isValid())return e;if(typeof t==`string`){if(/^\d+$/.test(t))t=J(t);else if(t=e.localeData().monthsParse(t),!el(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,ql(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function $l(e){return e==null?Hl(this,`Month`):(Ql(this,e),U.updateOffset(this,!0),this)}function eu(){return ql(this.year(),this.month())}function tu(e){return this._monthsParseExact?(W(this,`_monthsRegex`)||ru.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(W(this,`_monthsShortRegex`)||(this._monthsShortRegex=zm),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function nu(e){return this._monthsParseExact?(W(this,`_monthsRegex`)||ru.call(this),e?this._monthsStrictRegex:this._monthsRegex):(W(this,`_monthsRegex`)||(this._monthsRegex=Bm),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ru(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i,a,o,s;for(i=0;i<12;i++)a=il([2e3,i]),o=Pl(this.monthsShort(a,``)),s=Pl(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 iu(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 au(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 ou(e,t,n){var r=7+t-n,i=(7+au(e,0,r).getUTCDay()-t)%7;return-i+r-1}function su(e,t,n,r,i){var a=(7+n-r)%7,o=ou(e,r,i),s=1+7*(t-1)+a+o,c,l;return s<=0?(c=e-1,l=zl(c)+s):s>zl(e)?(c=e+1,l=s-zl(e)):(c=e,l=s),{year:c,dayOfYear:l}}function cu(e,t,n){var r=ou(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+lu(o,t,n)):i>lu(e.year(),t,n)?(a=i-lu(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function lu(e,t,n){var r=ou(e,t,n),i=ou(e+1,t,n);return(zl(e)-r+i)/7}function uu(e){return cu(e,this._week.dow,this._week.doy).week}function du(){return this._week.dow}function fu(){return this._week.doy}function pu(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,`d`)}function mu(e){var t=cu(this,1,4).week;return e==null?t:this.add((e-t)*7,`d`)}function hu(e,t){return typeof e==`string`?isNaN(e)?(e=t.weekdaysParse(e),typeof e==`number`?e:null):parseInt(e,10):e}function gu(e,t){return typeof e==`string`?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function _u(e,t){return e.slice(t,7).concat(e.slice(0,t))}function vu(e,t){var n=Xc(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?`format`:`standalone`];return e===!0?_u(n,this._week.dow):e?n[e.day()]:n}function yu(e){return e===!0?_u(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function bu(e){return e===!0?_u(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function xu(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=il([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=Fm.call(this._weekdaysParse,o),i===-1?null:i):t===`ddd`?(i=Fm.call(this._shortWeekdaysParse,o),i===-1?null:i):(i=Fm.call(this._minWeekdaysParse,o),i===-1?null:i):t===`dddd`?(i=Fm.call(this._weekdaysParse,o),i!==-1||(i=Fm.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=Fm.call(this._minWeekdaysParse,o),i===-1?null:i)):t===`ddd`?(i=Fm.call(this._shortWeekdaysParse,o),i!==-1||(i=Fm.call(this._weekdaysParse,o),i!==-1)?i:(i=Fm.call(this._minWeekdaysParse,o),i===-1?null:i)):(i=Fm.call(this._minWeekdaysParse,o),i!==-1||(i=Fm.call(this._weekdaysParse,o),i!==-1)?i:(i=Fm.call(this._shortWeekdaysParse,o),i===-1?null:i))}function Su(e,t,n){var r,i,a;if(this._weekdaysParseExact)return xu.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if(i=il([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 Cu(e){if(!this.isValid())return e==null?NaN:this;var t=Hl(this,`Day`);return e==null?t:(e=hu(e,this.localeData()),this.add(e-t,`d`))}function wu(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 Tu(e){if(!this.isValid())return e==null?NaN:this;if(e!=null){var t=gu(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Eu(e){return this._weekdaysParseExact?(W(this,`_weekdaysRegex`)||ku.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(W(this,`_weekdaysRegex`)||(this._weekdaysRegex=Gm),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Du(e){return this._weekdaysParseExact?(W(this,`_weekdaysRegex`)||ku.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(W(this,`_weekdaysShortRegex`)||(this._weekdaysShortRegex=Km),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ou(e){return this._weekdaysParseExact?(W(this,`_weekdaysRegex`)||ku.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(W(this,`_weekdaysMinRegex`)||(this._weekdaysMinRegex=qm),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ku(){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=il([2e3,1]).day(a),s=Pl(this.weekdaysMin(o,``)),c=Pl(this.weekdaysShort(o,``)),l=Pl(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 Au(){return this.hours()%12||12}function ju(){return this.hours()||24}function Mu(e,t){K(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Nu(e,t){return t._meridiemParse}function Pu(e){return(e+``).toLowerCase().charAt(0)===`p`}function Fu(e,t,n){return e>11?n?`pm`:`PM`:n?`am`:`AM`}function Iu(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 Lu(e){return e&&e.toLowerCase().replace(`_`,`-`)}function Ru(e){for(var t=0,n,r,i,a;t<e.length;){for(a=Lu(e[t]).split(`-`),n=a.length,r=Lu(e[t+1]),r=r?r.split(`-`):null;n>0;){if(i=Bu(a.slice(0,n).join(`-`)),i)return i;if(r&&r.length>=n&&Iu(a,r)>=n-1)break;n--}t++}return $m}function zu(e){return!!(e&&e.match(`^[^/\\\\]*$`))}function Bu(e){var t=null,n;if(Zm[e]===void 0&&typeof module<`u`&&module&&module.exports&&zu(e))try{t=$m._abbr,n=require,n(`./locale/`+e),Vu(t)}catch{Zm[e]=null}return Zm[e]}function Vu(e,t){var n;return e&&(n=$c(t)?Wu(e):Hu(e,t),n?$m=n:typeof console<`u`&&console.warn&&console.warn(`Locale `+e+` not found. Did you forget to load it?`)),$m._abbr}function Hu(e,t){if(t!==null){var n,r=Xm;if(t.abbr=e,Zm[e]!=null)pl(`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=Zm[e]._config;else if(t.parentLocale!=null)if(Zm[t.parentLocale]!=null)r=Zm[t.parentLocale]._config;else if(n=Bu(t.parentLocale),n!=null)r=n._config;else return Qm[t.parentLocale]||(Qm[t.parentLocale]=[]),Qm[t.parentLocale].push({name:e,config:t}),null;return Zm[e]=new _l(gl(r,t)),Qm[e]&&Qm[e].forEach(function(e){Hu(e.name,e.config)}),Vu(e),Zm[e]}else return delete Zm[e],null}function Uu(e,t){if(t!=null){var n,r,i=Xm;Zm[e]!=null&&Zm[e].parentLocale!=null?Zm[e].set(gl(Zm[e]._config,t)):(r=Bu(e),r!=null&&(i=r._config),t=gl(i,t),r??(t.abbr=e),n=new _l(t),n.parentLocale=Zm[e],Zm[e]=n),Vu(e)}else Zm[e]!=null&&(Zm[e].parentLocale==null?Zm[e]!=null&&delete Zm[e]:(Zm[e]=Zm[e].parentLocale,e===Vu()&&Vu(e)));return Zm[e]}function Wu(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return $m;if(!Xc(e)){if(t=Bu(e),t)return t;e=[e]}return Ru(e)}function Gu(){return Kp(Zm)}function Ku(e){var t,n=e._a;return n&&G(e).overflow===-2&&(t=n[Em]<0||n[Em]>11?Em:n[Dm]<1||n[Dm]>ql(n[Tm],n[Em])?Dm:n[Om]<0||n[Om]>24||n[Om]===24&&(n[km]!==0||n[Am]!==0||n[jm]!==0)?Om:n[km]<0||n[km]>59?km:n[Am]<0||n[Am]>59?Am:n[jm]<0||n[jm]>999?jm:-1,G(e)._overflowDayOfYear&&(t<Tm||t>Dm)&&(t=Dm),G(e)._overflowWeeks&&t===-1&&(t=Mm),G(e)._overflowWeekday&&t===-1&&(t=Nm),G(e).overflow=t),e}function qu(e){var t,n,r=e._i,i=eh.exec(r)||th.exec(r),a,o,s,c,l=rh.length,u=ih.length;if(i){for(G(e).iso=!0,t=0,n=l;t<n;t++)if(rh[t][1].exec(i[1])){o=rh[t][0],a=rh[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(i[3]){for(t=0,n=u;t<n;t++)if(ih[t][1].exec(i[3])){s=(i[2]||` `)+ih[t][0];break}if(s==null){e._isValid=!1;return}}if(!a&&s!=null){e._isValid=!1;return}if(i[4])if(nh.exec(i[4]))c=`Z`;else{e._isValid=!1;return}e._f=o+(s||``)+(c||``),ad(e)}else e._isValid=!1}function Ju(e,t,n,r,i,a){var o=[Yu(e),Lm.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Yu(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Xu(e){return e.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function Zu(e,t,n){if(e){var r=Um.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return G(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Qu(e,t,n){if(e)return sh[e];if(t)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return a*60+i}function $u(e){var t=oh.exec(Xu(e._i)),n;if(t){if(n=Ju(t[4],t[3],t[2],t[5],t[6],t[7]),!Zu(t[1],n,e))return;e._a=n,e._tzm=Qu(t[8],t[9],t[10]),e._d=au.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),G(e).rfc2822=!0}else e._isValid=!1}function ed(e){var t=ah.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(qu(e),e._isValid===!1)delete e._isValid;else return;if($u(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:U.createFromInputFallback(e)}function td(e,t,n){return e??t??n}function nd(e){var t=new Date(U.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function rd(e){var t,n,r=[],i,a,o;if(!e._d){for(i=nd(e),e._w&&e._a[Dm]==null&&e._a[Em]==null&&id(e),e._dayOfYear!=null&&(o=td(e._a[Tm],i[Tm]),(e._dayOfYear>zl(o)||e._dayOfYear===0)&&(G(e)._overflowDayOfYear=!0),n=au(o,0,e._dayOfYear),e._a[Em]=n.getUTCMonth(),e._a[Dm]=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[Om]===24&&e._a[km]===0&&e._a[Am]===0&&e._a[jm]===0&&(e._nextDay=!0,e._a[Om]=0),e._d=(e._useUTC?au:iu).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[Om]=24),e._w&&e._w.d!==void 0&&e._w.d!==a&&(G(e).weekdayMismatch=!0)}}function id(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=td(t.GG,e._a[Tm],cu(pd(),1,4).year),r=td(t.W,1),i=td(t.E,1),(i<1||i>7)&&(c=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,l=cu(pd(),a,o),n=td(t.gg,e._a[Tm],l.year),r=td(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>lu(n,a,o)?G(e)._overflowWeeks=!0:c==null?(s=su(n,r,i,a,o),e._a[Tm]=s.year,e._dayOfYear=s.dayOfYear):G(e)._overflowWeekday=!0}function ad(e){if(e._f===U.ISO_8601){qu(e);return}if(e._f===U.RFC_2822){$u(e);return}e._a=[],G(e).empty=!0;var t=``+e._i,n,r,i,a,o,s=t.length,c=0,l,u;for(i=Cl(e._f,e._locale).match(Jp)||[],u=i.length,n=0;n<u;n++)a=i[n],r=(t.match(Ml(a,e))||[])[0],r&&(o=t.substr(0,t.indexOf(r)),o.length>0&&G(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),c+=r.length),Zp[a]?(r?G(e).empty=!1:G(e).unusedTokens.push(a),Ll(a,r,e)):e._strict&&!r&&G(e).unusedTokens.push(a);G(e).charsLeftOver=s-c,t.length>0&&G(e).unusedInput.push(t),e._a[Om]<=12&&G(e).bigHour===!0&&e._a[Om]>0&&(G(e).bigHour=void 0),G(e).parsedDateParts=e._a.slice(0),G(e).meridiem=e._meridiem,e._a[Om]=od(e._locale,e._a[Om],e._meridiem),l=G(e).era,l!==null&&(e._a[Tm]=e._locale.erasConvertYear(l,e._a[Tm])),rd(e),Ku(e)}function od(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 sd(e){var t,n,r,i,a,o,s=!1,c=e._f.length;if(c===0){G(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)a=0,o=!1,t=cl({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],ad(t),ol(t)&&(o=!0),a+=G(t).charsLeftOver,a+=G(t).unusedTokens.length*10,G(t).score=a,s?a<r&&(r=a,n=t):(r==null||a<r||o)&&(r=a,n=t,o&&(s=!0));rl(e,n||t)}function cd(e){if(!e._d){var t=Al(e._i),n=t.day===void 0?t.date:t.day;e._a=nl([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),rd(e)}}function ld(e){var t=new ll(Ku(ud(e)));return t._nextDay&&(t.add(1,`d`),t._nextDay=void 0),t}function ud(e){var t=e._i,n=e._f;return e._locale=e._locale||Wu(e._l),t===null||n===void 0&&t===``?sl({nullInput:!0}):(typeof t==`string`&&(e._i=t=e._locale.preparse(t)),ul(t)?new ll(Ku(t)):(tl(t)?e._d=t:Xc(n)?sd(e):n?ad(e):dd(e),ol(e)||(e._d=null),e))}function dd(e){var t=e._i;$c(t)?e._d=new Date(U.now()):tl(t)?e._d=new Date(t.valueOf()):typeof t==`string`?ed(e):Xc(t)?(e._a=nl(t.slice(0),function(e){return parseInt(e,10)}),rd(e)):Zc(t)?cd(e):el(t)?e._d=new Date(t):U.createFromInputFallback(e)}function fd(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),(Zc(e)&&Qc(e)||Xc(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,ld(a)}function pd(e,t,n,r){return fd(e,t,n,r,!1)}function md(e,t){var n,r;if(t.length===1&&Xc(t[0])&&(t=t[0]),!t.length)return pd();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function hd(){var e=[].slice.call(arguments,0);return md(`isBefore`,e)}function gd(){var e=[].slice.call(arguments,0);return md(`isAfter`,e)}function _d(e){var t,n=!1,r,i=dh.length;for(t in e)if(W(e,t)&&!(Fm.call(dh,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[dh[r]]){if(n)return!1;parseFloat(e[dh[r]])!==J(e[dh[r]])&&(n=!0)}return!0}function vd(){return this._isValid}function yd(){return zd(NaN)}function bd(e){var t=Al(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=_d(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=Wu(),this._bubble()}function xd(e){return e instanceof bd}function Sd(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Cd(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&&J(e[o])!==J(t[o]))&&a++;return a+i}function wd(e,t){K(e,0,0,function(){var e=this.utcOffset(),n=`+`;return e<0&&(e=-e,n=`-`),n+yl(~~(e/60),2)+t+yl(~~e%60,2)})}function Td(e,t){var n=(t||``).match(e),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+``).match(fh)||[`-`,0,0],a=+(i[1]*60)+J(i[2]),a===0?0:i[0]===`+`?a:-a)}function Ed(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(ul(e)||tl(e)?e.valueOf():pd(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),U.updateOffset(n,!1),n):pd(e).local()}function Dd(e){return-Math.round(e._d.getTimezoneOffset())}function Od(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=Td(vm,e),e===null)return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Dd(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,`m`),r!==e&&(!t||this._changeInProgress?Wd(this,zd(e-r,`m`),1,!1):this._changeInProgress||(this._changeInProgress=!0,U.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Dd(this)}function kd(e,t){return e==null?-this.utcOffset():(typeof e!=`string`&&(e=-e),this.utcOffset(e,t),this)}function Ad(e){return this.utcOffset(0,e)}function jd(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Dd(this),`m`)),this}function Md(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i==`string`){var e=Td(_m,this._i);e==null?this.utcOffset(0,!0):this.utcOffset(e)}return this}function Nd(e){return this.isValid()?(e=e?pd(e).utcOffset():0,(this.utcOffset()-e)%60==0):!1}function Pd(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Fd(){if(!$c(this._isDSTShifted))return this._isDSTShifted;var e={},t;return cl(e,this),e=ud(e),e._a?(t=e._isUTC?il(e._a):pd(e._a),this._isDSTShifted=this.isValid()&&Cd(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Id(){return this.isValid()?!this._isUTC:!1}function Ld(){return this.isValid()?this._isUTC:!1}function Rd(){return this.isValid()?this._isUTC&&this._offset===0:!1}function zd(e,t){var n=e,r=null,i,a,o;return xd(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:el(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=ph.exec(e))?(i=r[1]===`-`?-1:1,n={y:0,d:J(r[Dm])*i,h:J(r[Om])*i,m:J(r[km])*i,s:J(r[Am])*i,ms:J(Sd(r[jm]*1e3))*i}):(r=mh.exec(e))?(i=r[1]===`-`?-1:1,n={y:Bd(r[2],i),M:Bd(r[3],i),w:Bd(r[4],i),d:Bd(r[5],i),h:Bd(r[6],i),m:Bd(r[7],i),s:Bd(r[8],i)}):n==null?n={}:typeof n==`object`&&(`from`in n||`to`in n)&&(o=Hd(pd(n.from),pd(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),a=new bd(n),xd(e)&&W(e,`_locale`)&&(a._locale=e._locale),xd(e)&&W(e,`_isValid`)&&(a._isValid=e._isValid),a}function Bd(e,t){var n=e&&parseFloat(e.replace(`,`,`.`));return(isNaN(n)?0:n)*t}function Vd(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 Hd(e,t){var n;return e.isValid()&&t.isValid()?(t=Ed(t,e),e.isBefore(t)?n=Vd(e,t):(n=Vd(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ud(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(pl(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=zd(n,r),Wd(this,i,e),this}}function Wd(e,t,n,r){var i=t._milliseconds,a=Sd(t._days),o=Sd(t._months);e.isValid()&&(r??=!0,o&&Ql(e,Hl(e,`Month`)+o*n),a&&Ul(e,`Date`,Hl(e,`Date`)+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&U.updateOffset(e,a||o))}function Gd(e){return typeof e==`string`||e instanceof String}function Kd(e){return ul(e)||tl(e)||Gd(e)||el(e)||Jd(e)||qd(e)||e==null}function qd(e){var t=Zc(e)&&!Qc(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||=W(e,a);return t&&n}function Jd(e){var t=Xc(e),n=!1;return t&&(n=e.filter(function(t){return!el(t)&&Gd(e)}).length===0),t&&n}function Yd(e){var t=Zc(e)&&!Qc(e),n=!1,r=[`sameDay`,`nextDay`,`lastDay`,`nextWeek`,`lastWeek`,`sameElse`],i,a;for(i=0;i<r.length;i+=1)a=r[i],n||=W(e,a);return t&&n}function Xd(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 Zd(e,t){arguments.length===1&&(arguments[0]?Kd(arguments[0])?(e=arguments[0],t=void 0):Yd(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||pd(),r=Ed(n,this).startOf(`day`),i=U.calendarFormat(this,r)||`sameElse`,a=t&&(ml(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,pd(n)))}function Qd(){return new ll(this)}function $d(e,t){var n=ul(e)?e:pd(e);return this.isValid()&&n.isValid()?(t=kl(t)||`millisecond`,t===`millisecond`?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function ef(e,t){var n=ul(e)?e:pd(e);return this.isValid()&&n.isValid()?(t=kl(t)||`millisecond`,t===`millisecond`?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function tf(e,t,n,r){var i=ul(e)?e:pd(e),a=ul(t)?t:pd(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 nf(e,t){var n=ul(e)?e:pd(e),r;return this.isValid()&&n.isValid()?(t=kl(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 rf(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function af(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function sf(e,t,n){var r,i,a;if(!this.isValid()||(r=Ed(e,this),!r.isValid()))return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=kl(t),t){case`year`:a=cf(this,r)/12;break;case`month`:a=cf(this,r);break;case`quarter`:a=cf(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:Fl(a)}function cf(e,t){if(e.date()<t.date())return-cf(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 lf(){return this.clone().locale(`en`).format(`ddd MMM DD YYYY HH:mm:ss [GMT]ZZ`)}function uf(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Sl(n,t?`YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]`:`YYYYYY-MM-DD[T]HH:mm:ss.SSSZ`):ml(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace(`Z`,Sl(n,`Z`)):Sl(n,t?`YYYY-MM-DD[T]HH:mm:ss.SSS[Z]`:`YYYY-MM-DD[T]HH:mm:ss.SSSZ`)}function df(){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 ff(e){e||=this.isUtc()?U.defaultFormatUtc:U.defaultFormat;var t=Sl(this,e);return this.localeData().postformat(t)}function pf(e,t){return this.isValid()&&(ul(e)&&e.isValid()||pd(e).isValid())?zd({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mf(e){return this.from(pd(),e)}function hf(e,t){return this.isValid()&&(ul(e)&&e.isValid()||pd(e).isValid())?zd({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gf(e){return this.to(pd(),e)}function _f(e){var t;return e===void 0?this._locale._abbr:(t=Wu(e),t!=null&&(this._locale=t),this)}function vf(){return this._locale}function yf(e,t){return(e%t+t)%t}function bf(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-xh:new Date(e,t,n).valueOf()}function xf(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-xh:Date.UTC(e,t,n)}function Sf(e){var t,n;if(e=kl(e),e===void 0||e===`millisecond`||!this.isValid())return this;switch(n=this._isUTC?xf:bf,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-=yf(t+(this._isUTC?0:this.utcOffset()*yh),bh);break;case`minute`:t=this._d.valueOf(),t-=yf(t,yh);break;case`second`:t=this._d.valueOf(),t-=yf(t,vh);break}return this._d.setTime(t),U.updateOffset(this,!0),this}function Cf(e){var t,n;if(e=kl(e),e===void 0||e===`millisecond`||!this.isValid())return this;switch(n=this._isUTC?xf:bf,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+=bh-yf(t+(this._isUTC?0:this.utcOffset()*yh),bh)-1;break;case`minute`:t=this._d.valueOf(),t+=yh-yf(t,yh)-1;break;case`second`:t=this._d.valueOf(),t+=vh-yf(t,vh)-1;break}return this._d.setTime(t),U.updateOffset(this,!0),this}function wf(){return this._d.valueOf()-(this._offset||0)*6e4}function Tf(){return Math.floor(this.valueOf()/1e3)}function Ef(){return new Date(this.valueOf())}function Df(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Of(){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 kf(){return this.isValid()?this.toISOString():null}function Af(){return ol(this)}function jf(){return rl({},G(this))}function Mf(){return G(this).overflow}function Nf(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Pf(e,t){var n,r,i,a=this._eras||Wu(`en`)._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case`string`:i=U(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=U(a[n].until).startOf(`day`).valueOf(),a[n].until=i.valueOf();break}}return a}function Ff(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 If(e,t){var n=e.since<=e.until?1:-1;return t===void 0?U(e.since).year():U(e.since).year()+(t-e.offset)*n}function Lf(){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 Rf(){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 zf(){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 Bf(){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()-U(i[e].since).year())*n+i[e].offset;return this.year()}function Vf(e){return W(this,`_erasNameRegex`)||Jf.call(this),e?this._erasNameRegex:this._erasRegex}function Hf(e){return W(this,`_erasAbbrRegex`)||Jf.call(this),e?this._erasAbbrRegex:this._erasRegex}function Uf(e){return W(this,`_erasNarrowRegex`)||Jf.call(this),e?this._erasNarrowRegex:this._erasRegex}function Wf(e,t){return t.erasAbbrRegex(e)}function Gf(e,t){return t.erasNameRegex(e)}function Kf(e,t){return t.erasNarrowRegex(e)}function qf(e,t){return t._eraYearOrdinalRegex||hm}function Jf(){var e=[],t=[],n=[],r=[],i,a,o,s,c,l=this.eras();for(i=0,a=l.length;i<a;++i)o=Pl(l[i].name),s=Pl(l[i].abbr),c=Pl(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 Yf(e,t){K(0,[e,e.length],0,t)}function Xf(e){return np.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Zf(e){return np.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Qf(){return lu(this.year(),1,4)}function $f(){return lu(this.isoWeekYear(),1,4)}function ep(){var e=this.localeData()._week;return lu(this.year(),e.dow,e.doy)}function tp(){var e=this.localeData()._week;return lu(this.weekYear(),e.dow,e.doy)}function np(e,t,n,r,i){var a;return e==null?cu(this,r,i).year:(a=lu(e,r,i),t>a&&(t=a),rp.call(this,e,t,n,r,i))}function rp(e,t,n,r,i){var a=su(e,t,n,r,i),o=au(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function ip(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}function ap(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 op(e,t){t[jm]=J((`0.`+e)*1e3)}function sp(){return this._isUTC?`UTC`:``}function cp(){return this._isUTC?`Coordinated Universal Time`:``}function lp(e){return pd(e*1e3)}function up(){return pd.apply(null,arguments).parseZone()}function dp(e){return e}function fp(e,t,n,r){var i=Wu(),a=il().set(r,t);return i[n](a,e)}function pp(e,t,n){if(el(e)&&(t=e,e=void 0),e||=``,t!=null)return fp(e,t,n,`month`);var r,i=[];for(r=0;r<12;r++)i[r]=fp(e,r,n,`month`);return i}function mp(e,t,n,r){typeof e==`boolean`?(el(t)&&(n=t,t=void 0),t||=``):(t=e,n=t,e=!1,el(t)&&(n=t,t=void 0),t||=``);var i=Wu(),a=e?i._week.dow:0,o,s=[];if(n!=null)return fp(t,(n+a)%7,r,`day`);for(o=0;o<7;o++)s[o]=fp(t,(o+a)%7,r,`day`);return s}function hp(e,t){return pp(e,t,`months`)}function gp(e,t){return pp(e,t,`monthsShort`)}function _p(e,t,n){return mp(e,t,n,`weekdays`)}function vp(e,t,n){return mp(e,t,n,`weekdaysShort`)}function yp(e,t,n){return mp(e,t,n,`weekdaysMin`)}function bp(){var e=this._data;return this._milliseconds=Dh(this._milliseconds),this._days=Dh(this._days),this._months=Dh(this._months),e.milliseconds=Dh(e.milliseconds),e.seconds=Dh(e.seconds),e.minutes=Dh(e.minutes),e.hours=Dh(e.hours),e.months=Dh(e.months),e.years=Dh(e.years),this}function xp(e,t,n,r){var i=zd(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Sp(e,t){return xp(this,e,t,1)}function Cp(e,t){return xp(this,e,t,-1)}function wp(e){return e<0?Math.floor(e):Math.ceil(e)}function Tp(){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+=wp(Dp(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Fl(e/1e3),r.seconds=i%60,a=Fl(i/60),r.minutes=a%60,o=Fl(a/60),r.hours=o%24,t+=Fl(o/24),c=Fl(Ep(t)),n+=c,t-=wp(Dp(c)),s=Fl(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Ep(e){return e*4800/146097}function Dp(e){return e*146097/4800}function Op(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=kl(e),e===`month`||e===`quarter`||e===`year`)switch(t=this._days+r/864e5,n=this._months+Ep(t),e){case`month`:return n;case`quarter`:return n/3;case`year`:return n/12}else switch(t=this._days+Math.round(Dp(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 kp(e){return function(){return this.as(e)}}function Ap(){return zd(this)}function jp(e){return e=kl(e),this.isValid()?this[e+`s`]():NaN}function Mp(e){return function(){return this.isValid()?this._data[e]:NaN}}function Np(){return Fl(this.days()/7)}function Pp(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function Fp(e,t,n,r){var i=zd(e).abs(),a=Gh(i.as(`s`)),o=Gh(i.as(`m`)),s=Gh(i.as(`h`)),c=Gh(i.as(`d`)),l=Gh(i.as(`M`)),u=Gh(i.as(`w`)),d=Gh(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,Pp.apply(null,f)}function Ip(e){return e===void 0?Gh:typeof e==`function`?(Gh=e,!0):!1}function Lp(e,t){return Kh[e]===void 0?!1:t===void 0?Kh[e]:(Kh[e]=t,e===`s`&&(Kh.ss=t-1),!0)}function Rp(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Kh,i,a;return typeof e==`object`&&(t=e,e=!1),typeof e==`boolean`&&(n=e),typeof t==`object`&&(r=Object.assign({},Kh,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=Fp(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}function zp(e){return(e>0)-(e<0)||+e}function Bp(){if(!this.isValid())return this.localeData().invalidDate();var e=qh(this._milliseconds)/1e3,t=qh(this._days),n=qh(this._months),r,i,a,o,s=this.asSeconds(),c,l,u,d;return s?(r=Fl(e/60),i=Fl(r/60),e%=60,r%=60,a=Fl(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,``):``,c=s<0?`-`:``,l=zp(this._months)===zp(s)?``:`-`,u=zp(this._days)===zp(s)?``:`-`,d=zp(this._milliseconds)===zp(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 Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,X,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm,Im,Lm,Rm,zm,Bm,Vm,Hm,Um,Wm,Gm,Km,qm,Jm,Ym,Xm,Zm,Qm,$m,eh,th,nh,rh,ih,ah,oh,sh,ch,lh,uh,dh,fh,ph,mh,hh,gh,_h,vh,yh,bh,xh,Sh,Ch,wh,Th,Eh,Z,Q,Dh,Oh,kh,Ah,jh,Mh,Nh,Ph,Fh,Ih,Lh,Rh,zh,Bh,Vh,Hh,Uh,Wh,Gh,Kh,qh,$,Jh,Yh=o(()=>{for(Hp=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},Up=U.momentProperties=[],Wp=!1,Gp={},U.suppressDeprecationWarnings=!1,U.deprecationHandler=null,Kp=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)W(e,t)&&n.push(t);return n},qp={sameDay:`[Today at] LT`,nextDay:`[Tomorrow at] LT`,nextWeek:`dddd [at] LT`,lastDay:`[Yesterday at] LT`,lastWeek:`[Last] dddd [at] LT`,sameElse:`L`},Jp=/(\[[^\[]*\])|(\\)?([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,Yp=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Xp={},Zp={},Qp={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`},$p=`Invalid date`,em=`%d`,tm=/\d{1,2}/,nm={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`},rm={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`},im={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},am=/\d/,om=/\d\d/,sm=/\d{3}/,cm=/\d{4}/,lm=/[+-]?\d{6}/,X=/\d\d?/,um=/\d\d\d\d?/,dm=/\d\d\d\d\d\d?/,fm=/\d{1,3}/,pm=/\d{1,4}/,mm=/[+-]?\d{1,6}/,hm=/\d+/,gm=/[+-]?\d+/,_m=/Z|[+-]\d\d:?\d\d/gi,vm=/Z|[+-]\d\d(?::?\d\d)?/gi,ym=/[+-]?\d+(\.\d{1,3})?/,bm=/[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,xm=/^[1-9]\d?/,Sm=/^([1-9]\d|\d)/,Cm={},wm={},Tm=0,Em=1,Dm=2,Om=3,km=4,Am=5,jm=6,Mm=7,Nm=8,K(`Y`,0,0,function(){var e=this.year();return e<=9999?yl(e,4):`+`+e}),K(0,[`YY`,2],0,function(){return this.year()%100}),K(0,[`YYYY`,4],0,`year`),K(0,[`YYYYY`,5],0,`year`),K(0,[`YYYYYY`,6,!0],0,`year`),q(`Y`,gm),q(`YY`,X,om),q(`YYYY`,pm,cm),q(`YYYYY`,mm,lm),q(`YYYYYY`,mm,lm),Y([`YYYYY`,`YYYYYY`],Tm),Y(`YYYY`,function(e,t){t[Tm]=e.length===2?U.parseTwoDigitYear(e):J(e)}),Y(`YY`,function(e,t){t[Tm]=U.parseTwoDigitYear(e)}),Y(`Y`,function(e,t){t[Tm]=parseInt(e,10)}),U.parseTwoDigitYear=function(e){return J(e)+(J(e)>68?1900:2e3)},Pm=Vl(`FullYear`,!0),Fm=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},K(`M`,[`MM`,2],`Mo`,function(){return this.month()+1}),K(`MMM`,0,0,function(e){return this.localeData().monthsShort(this,e)}),K(`MMMM`,0,0,function(e){return this.localeData().months(this,e)}),q(`M`,X,xm),q(`MM`,X,om),q(`MMM`,function(e,t){return t.monthsShortRegex(e)}),q(`MMMM`,function(e,t){return t.monthsRegex(e)}),Y([`M`,`MM`],function(e,t){t[Em]=J(e)-1}),Y([`MMM`,`MMMM`],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i==null?G(n).invalidMonth=e:t[Em]=i}),Im=`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),Lm=`Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec`.split(`_`),Rm=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,zm=bm,Bm=bm,K(`w`,[`ww`,2],`wo`,`week`),K(`W`,[`WW`,2],`Wo`,`isoWeek`),q(`w`,X,xm),q(`ww`,X,om),q(`W`,X,xm),q(`WW`,X,om),Il([`w`,`ww`,`W`,`WW`],function(e,t,n,r){t[r.substr(0,1)]=J(e)}),Vm={dow:0,doy:6},K(`d`,0,`do`,`day`),K(`dd`,0,0,function(e){return this.localeData().weekdaysMin(this,e)}),K(`ddd`,0,0,function(e){return this.localeData().weekdaysShort(this,e)}),K(`dddd`,0,0,function(e){return this.localeData().weekdays(this,e)}),K(`e`,0,0,`weekday`),K(`E`,0,0,`isoWeekday`),q(`d`,X),q(`e`,X),q(`E`,X),q(`dd`,function(e,t){return t.weekdaysMinRegex(e)}),q(`ddd`,function(e,t){return t.weekdaysShortRegex(e)}),q(`dddd`,function(e,t){return t.weekdaysRegex(e)}),Il([`dd`,`ddd`,`dddd`],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i==null?G(n).invalidWeekday=e:t.d=i}),Il([`d`,`e`,`E`],function(e,t,n,r){t[r]=J(e)}),Hm=`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),Um=`Sun_Mon_Tue_Wed_Thu_Fri_Sat`.split(`_`),Wm=`Su_Mo_Tu_We_Th_Fr_Sa`.split(`_`),Gm=bm,Km=bm,qm=bm,K(`H`,[`HH`,2],0,`hour`),K(`h`,[`hh`,2],0,Au),K(`k`,[`kk`,2],0,ju),K(`hmm`,0,0,function(){return``+Au.apply(this)+yl(this.minutes(),2)}),K(`hmmss`,0,0,function(){return``+Au.apply(this)+yl(this.minutes(),2)+yl(this.seconds(),2)}),K(`Hmm`,0,0,function(){return``+this.hours()+yl(this.minutes(),2)}),K(`Hmmss`,0,0,function(){return``+this.hours()+yl(this.minutes(),2)+yl(this.seconds(),2)}),Mu(`a`,!0),Mu(`A`,!1),q(`a`,Nu),q(`A`,Nu),q(`H`,X,Sm),q(`h`,X,xm),q(`k`,X,xm),q(`HH`,X,om),q(`hh`,X,om),q(`kk`,X,om),q(`hmm`,um),q(`hmmss`,dm),q(`Hmm`,um),q(`Hmmss`,dm),Y([`H`,`HH`],Om),Y([`k`,`kk`],function(e,t,n){var r=J(e);t[Om]=r===24?0:r}),Y([`a`,`A`],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Y([`h`,`hh`],function(e,t,n){t[Om]=J(e),G(n).bigHour=!0}),Y(`hmm`,function(e,t,n){var r=e.length-2;t[Om]=J(e.substr(0,r)),t[km]=J(e.substr(r)),G(n).bigHour=!0}),Y(`hmmss`,function(e,t,n){var r=e.length-4,i=e.length-2;t[Om]=J(e.substr(0,r)),t[km]=J(e.substr(r,2)),t[Am]=J(e.substr(i)),G(n).bigHour=!0}),Y(`Hmm`,function(e,t,n){var r=e.length-2;t[Om]=J(e.substr(0,r)),t[km]=J(e.substr(r))}),Y(`Hmmss`,function(e,t,n){var r=e.length-4,i=e.length-2;t[Om]=J(e.substr(0,r)),t[km]=J(e.substr(r,2)),t[Am]=J(e.substr(i))}),Jm=/[ap]\.?m?\.?/i,Ym=Vl(`Hours`,!0),Xm={calendar:qp,longDateFormat:Qp,invalidDate:$p,ordinal:em,dayOfMonthOrdinalParse:tm,relativeTime:nm,months:Im,monthsShort:Lm,week:Vm,weekdays:Hm,weekdaysMin:Wm,weekdaysShort:Um,meridiemParse:Jm},Zm={},Qm={},eh=/^\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)?)?$/,th=/^\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)?)?$/,nh=/Z|[+-]\d\d(?::?\d\d)?/,rh=[[`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]],ih=[[`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/]],ah=/^\/?Date\((-?\d+)/i,oh=/^(?:(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}))$/,sh={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},U.createFromInputFallback=fl(`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`:``))}),U.ISO_8601=function(){},U.RFC_2822=function(){},ch=fl(`moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/`,function(){var e=pd.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:sl()}),lh=fl(`moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/`,function(){var e=pd.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:sl()}),uh=function(){return Date.now?Date.now():+new Date},dh=[`year`,`quarter`,`month`,`week`,`day`,`hour`,`minute`,`second`,`millisecond`],wd(`Z`,`:`),wd(`ZZ`,``),q(`Z`,vm),q(`ZZ`,vm),Y([`Z`,`ZZ`],function(e,t,n){n._useUTC=!0,n._tzm=Td(vm,e)}),fh=/([\+\-]|\d\d)/gi,U.updateOffset=function(){},ph=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,mh=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,zd.fn=bd.prototype,zd.invalid=yd,hh=Ud(1,`add`),gh=Ud(-1,`subtract`),U.defaultFormat=`YYYY-MM-DDTHH:mm:ssZ`,U.defaultFormatUtc=`YYYY-MM-DDTHH:mm:ss[Z]`,_h=fl(`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)}),vh=1e3,yh=60*vh,bh=60*yh,xh=146097*24*bh,K(`N`,0,0,`eraAbbr`),K(`NN`,0,0,`eraAbbr`),K(`NNN`,0,0,`eraAbbr`),K(`NNNN`,0,0,`eraName`),K(`NNNNN`,0,0,`eraNarrow`),K(`y`,[`y`,1],`yo`,`eraYear`),K(`y`,[`yy`,2],0,`eraYear`),K(`y`,[`yyy`,3],0,`eraYear`),K(`y`,[`yyyy`,4],0,`eraYear`),q(`N`,Wf),q(`NN`,Wf),q(`NNN`,Wf),q(`NNNN`,Gf),q(`NNNNN`,Kf),Y([`N`,`NN`,`NNN`,`NNNN`,`NNNNN`],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?G(n).era=i:G(n).invalidEra=e}),q(`y`,hm),q(`yy`,hm),q(`yyy`,hm),q(`yyyy`,hm),q(`yo`,qf),Y([`y`,`yy`,`yyy`,`yyyy`],Tm),Y([`yo`],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Tm]=n._locale.eraYearOrdinalParse(e,i):t[Tm]=parseInt(e,10)}),K(0,[`gg`,2],0,function(){return this.weekYear()%100}),K(0,[`GG`,2],0,function(){return this.isoWeekYear()%100}),Yf(`gggg`,`weekYear`),Yf(`ggggg`,`weekYear`),Yf(`GGGG`,`isoWeekYear`),Yf(`GGGGG`,`isoWeekYear`),q(`G`,gm),q(`g`,gm),q(`GG`,X,om),q(`gg`,X,om),q(`GGGG`,pm,cm),q(`gggg`,pm,cm),q(`GGGGG`,mm,lm),q(`ggggg`,mm,lm),Il([`gggg`,`ggggg`,`GGGG`,`GGGGG`],function(e,t,n,r){t[r.substr(0,2)]=J(e)}),Il([`gg`,`GG`],function(e,t,n,r){t[r]=U.parseTwoDigitYear(e)}),K(`Q`,0,`Qo`,`quarter`),q(`Q`,am),Y(`Q`,function(e,t){t[Em]=(J(e)-1)*3}),K(`D`,[`DD`,2],`Do`,`date`),q(`D`,X,xm),q(`DD`,X,om),q(`Do`,function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Y([`D`,`DD`],Dm),Y(`Do`,function(e,t){t[Dm]=J(e.match(X)[0])}),Sh=Vl(`Date`,!0),K(`DDD`,[`DDDD`,3],`DDDo`,`dayOfYear`),q(`DDD`,fm),q(`DDDD`,sm),Y([`DDD`,`DDDD`],function(e,t,n){n._dayOfYear=J(e)}),K(`m`,[`mm`,2],0,`minute`),q(`m`,X,Sm),q(`mm`,X,om),Y([`m`,`mm`],km),Ch=Vl(`Minutes`,!1),K(`s`,[`ss`,2],0,`second`),q(`s`,X,Sm),q(`ss`,X,om),Y([`s`,`ss`],Am),wh=Vl(`Seconds`,!1),K(`S`,0,0,function(){return~~(this.millisecond()/100)}),K(0,[`SS`,2],0,function(){return~~(this.millisecond()/10)}),K(0,[`SSS`,3],0,`millisecond`),K(0,[`SSSS`,4],0,function(){return this.millisecond()*10}),K(0,[`SSSSS`,5],0,function(){return this.millisecond()*100}),K(0,[`SSSSSS`,6],0,function(){return this.millisecond()*1e3}),K(0,[`SSSSSSS`,7],0,function(){return this.millisecond()*1e4}),K(0,[`SSSSSSSS`,8],0,function(){return this.millisecond()*1e5}),K(0,[`SSSSSSSSS`,9],0,function(){return this.millisecond()*1e6}),q(`S`,fm,am),q(`SS`,fm,om),q(`SSS`,fm,sm),Th=`SSSS`;Th.length<=9;Th+=`S`)q(Th,hm);for(Th=`S`;Th.length<=9;Th+=`S`)Y(Th,op);Eh=Vl(`Milliseconds`,!1),K(`z`,0,0,`zoneAbbr`),K(`zz`,0,0,`zoneName`),Z=ll.prototype,Z.add=hh,Z.calendar=Zd,Z.clone=Qd,Z.diff=sf,Z.endOf=Cf,Z.format=ff,Z.from=pf,Z.fromNow=mf,Z.to=hf,Z.toNow=gf,Z.get=Wl,Z.invalidAt=Mf,Z.isAfter=$d,Z.isBefore=ef,Z.isBetween=tf,Z.isSame=nf,Z.isSameOrAfter=rf,Z.isSameOrBefore=af,Z.isValid=Af,Z.lang=_h,Z.locale=_f,Z.localeData=vf,Z.max=lh,Z.min=ch,Z.parsingFlags=jf,Z.set=Gl,Z.startOf=Sf,Z.subtract=gh,Z.toArray=Df,Z.toObject=Of,Z.toDate=Ef,Z.toISOString=uf,Z.inspect=df,typeof Symbol<`u`&&Symbol.for!=null&&(Z[Symbol.for(`nodejs.util.inspect.custom`)]=function(){return`Moment<`+this.format()+`>`}),Z.toJSON=kf,Z.toString=lf,Z.unix=Tf,Z.valueOf=wf,Z.creationData=Nf,Z.eraName=Lf,Z.eraNarrow=Rf,Z.eraAbbr=zf,Z.eraYear=Bf,Z.year=Pm,Z.isLeapYear=Bl,Z.weekYear=Xf,Z.isoWeekYear=Zf,Z.quarter=Z.quarters=ip,Z.month=$l,Z.daysInMonth=eu,Z.week=Z.weeks=pu,Z.isoWeek=Z.isoWeeks=mu,Z.weeksInYear=ep,Z.weeksInWeekYear=tp,Z.isoWeeksInYear=Qf,Z.isoWeeksInISOWeekYear=$f,Z.date=Sh,Z.day=Z.days=Cu,Z.weekday=wu,Z.isoWeekday=Tu,Z.dayOfYear=ap,Z.hour=Z.hours=Ym,Z.minute=Z.minutes=Ch,Z.second=Z.seconds=wh,Z.millisecond=Z.milliseconds=Eh,Z.utcOffset=Od,Z.utc=Ad,Z.local=jd,Z.parseZone=Md,Z.hasAlignedHourOffset=Nd,Z.isDST=Pd,Z.isLocal=Id,Z.isUtcOffset=Ld,Z.isUtc=Rd,Z.isUTC=Rd,Z.zoneAbbr=sp,Z.zoneName=cp,Z.dates=fl(`dates accessor is deprecated. Use date instead.`,Sh),Z.months=fl(`months accessor is deprecated. Use month instead`,$l),Z.years=fl(`years accessor is deprecated. Use year instead`,Pm),Z.zone=fl(`moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/`,kd),Z.isDSTShifted=fl(`isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information`,Fd),Q=_l.prototype,Q.calendar=vl,Q.longDateFormat=wl,Q.invalidDate=Tl,Q.ordinal=El,Q.preparse=dp,Q.postformat=dp,Q.relativeTime=Dl,Q.pastFuture=Ol,Q.set=hl,Q.eras=Pf,Q.erasParse=Ff,Q.erasConvertYear=If,Q.erasAbbrRegex=Hf,Q.erasNameRegex=Vf,Q.erasNarrowRegex=Uf,Q.months=Jl,Q.monthsShort=Yl,Q.monthsParse=Zl,Q.monthsRegex=nu,Q.monthsShortRegex=tu,Q.week=uu,Q.firstDayOfYear=fu,Q.firstDayOfWeek=du,Q.weekdays=vu,Q.weekdaysMin=bu,Q.weekdaysShort=yu,Q.weekdaysParse=Su,Q.weekdaysRegex=Eu,Q.weekdaysShortRegex=Du,Q.weekdaysMinRegex=Ou,Q.isPM=Pu,Q.meridiem=Fu,Vu(`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=J(e%100/10)===1?`th`:t===1?`st`:t===2?`nd`:t===3?`rd`:`th`;return e+n}}),U.lang=fl(`moment.lang is deprecated. Use moment.locale instead.`,Vu),U.langData=fl(`moment.langData is deprecated. Use moment.localeData instead.`,Wu),Dh=Math.abs,Oh=kp(`ms`),kh=kp(`s`),Ah=kp(`m`),jh=kp(`h`),Mh=kp(`d`),Nh=kp(`w`),Ph=kp(`M`),Fh=kp(`Q`),Ih=kp(`y`),Lh=Oh,Rh=Mp(`milliseconds`),zh=Mp(`seconds`),Bh=Mp(`minutes`),Vh=Mp(`hours`),Hh=Mp(`days`),Uh=Mp(`months`),Wh=Mp(`years`),Gh=Math.round,Kh={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},qh=Math.abs,$=bd.prototype,$.isValid=vd,$.abs=bp,$.add=Sp,$.subtract=Cp,$.as=Op,$.asMilliseconds=Oh,$.asSeconds=kh,$.asMinutes=Ah,$.asHours=jh,$.asDays=Mh,$.asWeeks=Nh,$.asMonths=Ph,$.asQuarters=Fh,$.asYears=Ih,$.valueOf=Lh,$._bubble=Tp,$.clone=Ap,$.get=jp,$.milliseconds=Rh,$.seconds=zh,$.minutes=Bh,$.hours=Vh,$.days=Hh,$.weeks=Np,$.months=Uh,$.years=Wh,$.humanize=Rp,$.toISOString=Bp,$.toString=Bp,$.toJSON=Bp,$.locale=_f,$.localeData=vf,$.toIsoString=fl(`toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)`,Bp),$.lang=_h,K(`X`,0,0,`unix`),K(`x`,0,0,`valueOf`),q(`x`,gm),q(`X`,ym),Y(`X`,function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),Y(`x`,function(e,t,n){n._d=new Date(J(e))}),U.version=`2.30.1`,Yc(pd),U.fn=Z,U.min=hd,U.max=gd,U.now=uh,U.utc=il,U.unix=lp,U.months=hp,U.isDate=tl,U.locale=Vu,U.invalid=sl,U.duration=zd,U.isMoment=ul,U.weekdays=_p,U.parseZone=up,U.localeData=Wu,U.isDuration=xd,U.monthsShort=gp,U.weekdaysMin=yp,U.defineLocale=Hu,U.updateLocale=Uu,U.locales=Gu,U.weekdaysShort=vp,U.normalizeUnits=kl,U.relativeTimeRounding=Ip,U.relativeTimeThreshold=Lp,U.calendarFormat=Xd,U.prototype=Z,U.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`},Jh=U}),Xh=s((exports,t)=>{let n=(Yh(),d(Jc));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}),Zh=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}}),Qh=s((exports,t)=>{Vt();let n=typeof Bt==`object`&&Bt.env&&Bt.env.NODE_DEBUG&&/\bsemver\b/i.test(Bt.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{};t.exports=n}),$h=s((exports,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Zh(),a=Qh();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*$`)}),eg=s((exports,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({}),i=e=>e?typeof e==`object`?e:n:r;t.exports=i}),tg=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}}),ng=s((exports,t)=>{let n=Qh(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=Zh(),{safeRe:a,t:o}=$h(),s=eg(),{compareIdentifiers:c}=tg();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}),rg=s((exports,t)=>{let n=ng(),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}),ig=s((exports,t)=>{let n=rg(),r=(e,t)=>{let r=n(e,t);return r?r.version:null};t.exports=r}),ag=s((exports,t)=>{let n=rg(),r=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null};t.exports=r}),og=s((exports,t)=>{let n=ng(),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}),sg=s((exports,t)=>{let n=rg(),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}),cg=s((exports,t)=>{let n=ng(),r=(e,t)=>new n(e,t).major;t.exports=r}),lg=s((exports,t)=>{let n=ng(),r=(e,t)=>new n(e,t).minor;t.exports=r}),ug=s((exports,t)=>{let n=ng(),r=(e,t)=>new n(e,t).patch;t.exports=r}),dg=s((exports,t)=>{let n=rg(),r=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null};t.exports=r}),fg=s((exports,t)=>{let n=ng(),r=(e,t,r)=>new n(e,r).compare(new n(t,r));t.exports=r}),pg=s((exports,t)=>{let n=fg(),r=(e,t,r)=>n(t,e,r);t.exports=r}),mg=s((exports,t)=>{let n=fg(),r=(e,t)=>n(e,t,!0);t.exports=r}),hg=s((exports,t)=>{let n=ng(),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}),gg=s((exports,t)=>{let n=hg(),r=(e,t)=>e.sort((e,r)=>n(e,r,t));t.exports=r}),_g=s((exports,t)=>{let n=hg(),r=(e,t)=>e.sort((e,r)=>n(r,e,t));t.exports=r}),vg=s((exports,t)=>{let n=fg(),r=(e,t,r)=>n(e,t,r)>0;t.exports=r}),yg=s((exports,t)=>{let n=fg(),r=(e,t,r)=>n(e,t,r)<0;t.exports=r}),bg=s((exports,t)=>{let n=fg(),r=(e,t,r)=>n(e,t,r)===0;t.exports=r}),xg=s((exports,t)=>{let n=fg(),r=(e,t,r)=>n(e,t,r)!==0;t.exports=r}),Sg=s((exports,t)=>{let n=fg(),r=(e,t,r)=>n(e,t,r)>=0;t.exports=r}),Cg=s((exports,t)=>{let n=fg(),r=(e,t,r)=>n(e,t,r)<=0;t.exports=r}),wg=s((exports,t)=>{let n=bg(),r=xg(),i=vg(),a=Sg(),o=yg(),s=Cg(),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}),Tg=s((exports,t)=>{let n=ng(),r=rg(),{safeRe:i,t:a}=$h(),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}),Eg=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}),Dg=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,k(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=>O(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(A(this.set[t],e,this.options))return!0;return!1}};t.exports=r;let i=Eg(),a=new i,o=eg(),s=Og(),c=Qh(),l=ng(),{safeRe:u,t:d,comparatorTrimReplace:f,tildeTrimReplace:p,caretTrimReplace:m}=$h(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:g}=Zh(),_=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=D(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=>ee(e,t)).join(` `)),ee=(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})},D=(e,t)=>(c(`replaceStars`,e,t),e.trim().replace(u[d.STAR],``)),O=(e,t)=>(c(`replaceGTE0`,e,t),e.trim().replace(u[t.includePrerelease?d.GTE0PRE:d.GTE0],``)),k=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()),A=(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}}),Og=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=eg(),{safeRe:a,t:o}=$h(),s=wg(),c=Qh(),l=ng(),u=Dg()}),kg=s((exports,t)=>{let n=Dg(),r=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)};t.exports=r}),Ag=s((exports,t)=>{let n=Dg(),r=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `));t.exports=r}),jg=s((exports,t)=>{let n=ng(),r=Dg(),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}),Mg=s((exports,t)=>{let n=ng(),r=Dg(),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}),Ng=s((exports,t)=>{let n=ng(),r=Dg(),i=vg(),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}),Pg=s((exports,t)=>{let n=Dg(),r=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}};t.exports=r}),Fg=s((exports,t)=>{let n=ng(),r=Og(),{ANY:i}=r,a=Dg(),o=kg(),s=vg(),c=yg(),l=Cg(),u=Sg(),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}),Ig=s((exports,t)=>{let n=Fg(),r=(e,t,r)=>n(e,t,`>`,r);t.exports=r}),Lg=s((exports,t)=>{let n=Fg(),r=(e,t,r)=>n(e,t,`<`,r);t.exports=r}),Rg=s((exports,t)=>{let n=Dg(),r=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r));t.exports=r}),zg=s((exports,t)=>{let n=kg(),r=fg();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}}),Bg=s((exports,t)=>{let n=Dg(),r=Og(),{ANY:i}=r,a=kg(),o=fg(),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}),Vg=s((exports,t)=>{let n=$h(),r=Zh(),i=ng(),a=tg(),o=rg(),s=ig(),c=ag(),l=og(),u=sg(),d=cg(),f=lg(),p=ug(),m=dg(),h=fg(),g=pg(),_=mg(),v=hg(),y=gg(),b=_g(),x=vg(),S=yg(),C=bg(),w=xg(),T=Sg(),E=Cg(),ee=wg(),D=Tg(),O=Og(),k=Dg(),A=kg(),j=Ag(),M=jg(),N=Mg(),te=Ng(),ne=Pg(),re=Fg(),ie=Ig(),ae=Lg(),oe=Rg(),P=zg(),F=Bg();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:ee,coerce:D,Comparator:O,Range:k,satisfies:A,toComparators:j,maxSatisfying:M,minSatisfying:N,minVersion:te,validRange:ne,outside:re,gtr:ie,ltr:ae,intersects:oe,simplifyRange:P,subset:F,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}}),Hg=Uint8Array,Ug=Uint16Array,Wg=Int32Array,Gg=new Hg([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]),Kg=new Hg([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]),qg=new Hg([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Jg=function(e,t){for(var n=new Ug(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new Wg(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}},Yg=Jg(Gg,2),Xg=Yg.b,Zg=Yg.r;Xg[28]=258,Zg[258]=28;for(var Qg=Jg(Kg,0),$g=Qg.b,e_=Qg.r,t_=new Ug(32768),n_=0;n_<32768;++n_){var r_=(n_&43690)>>1|(n_&21845)<<1;r_=(r_&52428)>>2|(r_&13107)<<2,r_=(r_&61680)>>4|(r_&3855)<<4,t_[n_]=((r_&65280)>>8|(r_&255)<<8)>>1}for(var i_=function(e,t,n){for(var r=e.length,i=0,a=new Ug(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new Ug(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new Ug(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[t_[d]>>c]=l}else for(s=new Ug(r),i=0;i<r;++i)e[i]&&(s[i]=t_[o[e[i]-1]++]>>15-e[i]);return s},a_=new Hg(288),n_=0;n_<144;++n_)a_[n_]=8;for(var n_=144;n_<256;++n_)a_[n_]=9;for(var n_=256;n_<280;++n_)a_[n_]=7;for(var n_=280;n_<288;++n_)a_[n_]=8;for(var o_=new Hg(32),n_=0;n_<32;++n_)o_[n_]=5;var s_=i_(a_,9,0),c_=i_(a_,9,1),l_=i_(o_,5,0),u_=i_(o_,5,1),d_=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},f_=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},p_=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},m_=function(e){return(e+7)/8|0},h_=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new Hg(e.subarray(t,n))},g_=[`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`],__=function(e,t,n){var r=Error(t||g_[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,__),!n)throw r;return r},v_=function(e,t,n,r){var i=e.length,a=r?r.length:0;if(!i||t.f&&!t.l)return n||new Hg(0);var o=!n,s=o||t.i!=2,c=t.i;o&&(n=new Hg(i*3));var l=function(e){var t=n.length;if(e>t){var r=new Hg(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=f_(e,d,1);var v=f_(e,d+1,3);if(d+=3,v)if(v==1)p=c_,m=u_,h=9,g=5;else if(v==2){var y=f_(e,d,31)+257,b=f_(e,d+10,15)+4,x=y+f_(e,d+5,31)+1;d+=14;for(var S=new Hg(x),C=new Hg(19),w=0;w<b;++w)C[qg[w]]=f_(e,d+w*3,7);d+=b*3;for(var T=d_(C),E=(1<<T)-1,ee=i_(C,T,1),w=0;w<x;){var D=ee[f_(e,d,E)];d+=D&15;var O=D>>4;if(O<16)S[w++]=O;else{var k=0,A=0;for(O==16?(A=3+f_(e,d,3),d+=2,k=S[w-1]):O==17?(A=3+f_(e,d,7),d+=3):O==18&&(A=11+f_(e,d,127),d+=7);A--;)S[w++]=k}}var j=S.subarray(0,y),M=S.subarray(y);h=d_(j),g=d_(M),p=i_(j,h,1),m=i_(M,g,1)}else __(1);else{var O=m_(d)+4,N=e[O-4]|e[O-3]<<8,te=O+N;if(te>i){c&&__(0);break}s&&l(f+N),n.set(e.subarray(O,te),f),t.b=f+=N,t.p=d=te*8,t.f=u;continue}if(d>_){c&&__(0);break}}s&&l(f+131072);for(var ne=(1<<h)-1,re=(1<<g)-1,ie=d;;ie=d){var k=p[p_(e,d)&ne],ae=k>>4;if(d+=k&15,d>_){c&&__(0);break}if(k||__(2),ae<256)n[f++]=ae;else if(ae==256){ie=d,p=null;break}else{var oe=ae-254;if(ae>264){var w=ae-257,P=Gg[w];oe=f_(e,d,(1<<P)-1)+Xg[w],d+=P}var F=m[p_(e,d)&re],se=F>>4;F||__(3),d+=F&15;var M=$g[se];if(se>3){var P=Kg[se];M+=p_(e,d)&(1<<P)-1,d+=P}if(d>_){c&&__(0);break}s&&l(f+131072);var ce=f+oe;if(f<M){var le=a-M,ue=Math.min(M,ce);for(le+f<0&&__(3);f<ue;++f)n[f]=r[le+f]}for(;f<ce;++f)n[f]=n[f-M]}}t.l=p,t.p=ie,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?h_(n,0,f):n.subarray(0,f)},y_=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},b_=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},x_=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:O_,l:0};if(i==1){var o=new Hg(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 Ug(f+1),m=S_(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 Hg(p),l:m}},S_=function(e,t,n){return e.s==-1?Math.max(S_(e.l,t,n+1),S_(e.r,t,n+1)):t[e.s]=n},C_=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Ug(++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}},w_=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},T_=function(e,t,n){var r=n.length,i=m_(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},E_=function(e,t,n,r,i,a,o,s,c,l,u){y_(t,u++,n),++i[256];for(var d=x_(i,15),f=d.t,p=d.l,m=x_(a,15),h=m.t,g=m.l,_=C_(f),v=_.c,y=_.n,b=C_(h),x=b.c,S=b.n,C=new Ug(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=x_(C,7),E=T.t,ee=T.l,D=19;D>4&&!E[qg[D-1]];--D);var O=l+5<<3,k=w_(i,a_)+w_(a,o_)+o,A=w_(i,f)+w_(a,h)+o+14+3*D+w_(C,E)+2*C[16]+3*C[17]+7*C[18];if(c>=0&&O<=k&&O<=A)return T_(t,u,e.subarray(c,c+l));var j,M,N,te;if(y_(t,u,1+(A<k)),u+=2,A<k){j=i_(f,p,0),M=f,N=i_(h,g,0),te=h;var ne=i_(E,ee,0);y_(t,u,y-257),y_(t,u+5,S-1),y_(t,u+10,D-4),u+=14;for(var w=0;w<D;++w)y_(t,u+3*w,E[qg[w]]);u+=3*D;for(var re=[v,x],ie=0;ie<2;++ie)for(var ae=re[ie],w=0;w<ae.length;++w){var oe=ae[w]&31;y_(t,u,ne[oe]),u+=E[oe],oe>15&&(y_(t,u,ae[w]>>5&127),u+=ae[w]>>12)}}else j=s_,M=a_,N=l_,te=o_;for(var w=0;w<s;++w){var P=r[w];if(P>255){var oe=P>>18&31;b_(t,u,j[oe+257]),u+=M[oe+257],oe>7&&(y_(t,u,P>>23&31),u+=Gg[oe]);var F=P&31;b_(t,u,N[F]),u+=te[F],F>3&&(b_(t,u,P>>5&8191),u+=Kg[F])}else b_(t,u,j[P]),u+=M[P]}return b_(t,u,j[256]),u+M[256]},D_=new Wg([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),O_=new Hg(0),k_=function(e,t,n,r,i,a){var o=a.z||e.length,s=new Hg(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=D_[t-1],f=d>>13,p=d&8191,m=(1<<n)-1,h=a.p||new Ug(32768),g=a.h||new Ug(m+1),_=Math.ceil(n/3),v=2*_,y=function(t){return(e[t]^e[t+1]<<_^e[t+2]<<v)&m},b=new Wg(25e3),x=new Ug(288),S=new Ug(32),C=0,w=0,T=a.i||0,E=0,ee=a.w||0,D=0;T+2<o;++T){var O=y(T),k=T&32767,A=g[O];if(h[k]=A,g[O]=k,ee<=T){var j=o-T;if((C>7e3||E>24576)&&(j>423||!l)){u=E_(e,c,0,b,x,S,w,E,D,T-D,u),E=C=w=0,D=T;for(var M=0;M<286;++M)x[M]=0;for(var M=0;M<30;++M)S[M]=0}var N=2,te=0,ne=p,re=k-A&32767;if(j>2&&O==y(T-re))for(var ie=Math.min(f,j)-1,ae=Math.min(32767,T),oe=Math.min(258,j);re<=ae&&--ne&&k!=A;){if(e[T+N]==e[T+N-re]){for(var P=0;P<oe&&e[T+P]==e[T+P-re];++P);if(P>N){if(N=P,te=re,P>ie)break;for(var F=Math.min(re,P-2),se=0,M=0;M<F;++M){var ce=T-re+M&32767,le=h[ce],ue=ce-le&32767;ue>se&&(se=ue,A=ce)}}}k=A,A=h[k],re+=k-A&32767}if(te){b[E++]=268435456|Zg[N]<<18|e_[te];var I=Zg[N]&31,de=e_[te]&31;w+=Gg[I]+Kg[de],++x[257+I],++S[de],ee=T+N,++C}else b[E++]=e[T],++x[e[T]]}}for(T=Math.max(T,ee);T<o;++T)b[E++]=e[T],++x[e[T]];u=E_(e,c,l,b,x,S,w,E,D,T-D,u),l||(a.r=u&7|c[u/8|0]<<3,u-=7,a.h=g,a.p=h,a.i=T,a.w=ee)}else{for(var T=a.w||0;T<o+l;T+=65535){var fe=T+65535;fe>=o&&(c[u/8|0]=l,fe=o),u=T_(c,u+1,e.subarray(T,fe))}a.i=o}return h_(s,0,r+m_(u)+i)},A_=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}}},j_=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new Hg(a.length+e.length);o.set(a),o.set(e,a.length),e=o,i.w=a.length}return k_(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)},M_=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},N_=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=A_();i.p(t.dictionary),M_(e,2,i.d())}},P_=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&__(6,`invalid zlib data`),(e[1]>>5&1)==+!t&&__(6,`invalid zlib data: `+(e[1]&32?`need`:`unexpected`)+` dictionary`),(e[1]>>3&4)+2};function F_(e,t){t||={};var n=A_();n.p(e);var r=j_(e,t,t.dictionary?6:2,4);return N_(r,t),M_(r,r.length-4,n.d()),r}function I_(e,t){return v_(e.subarray(P_(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var L_=typeof TextEncoder<`u`&&new TextEncoder,R_=typeof TextDecoder<`u`&&new TextDecoder,z_=0;try{R_.decode(O_,{stream:!0}),z_=1}catch{}var B_=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:h_(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 V_(e,t){if(t){for(var n=new Hg(e.length),r=0;r<e.length;++r)n[r]=e.charCodeAt(r);return n}if(L_)return L_.encode(e);for(var i=e.length,a=new Hg(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 Hg(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 h_(a,0,o)}function H_(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(R_)return R_.decode(e);else{var i=B_(e),a=i.s,n=i.r;return n.length&&__(8),a}}var U_=u(Vg());const W_=e=>{let t=V_(e),n=F_(t,{level:9}),r=H_(n,!0);return btoa(r)},G_=e=>{let t=atob(e);if(t.startsWith(`xÚ`)){let e=V_(t,!0),n=I_(e);return H_(n)}return decodeURIComponent(escape(t))},K_=e=>e instanceof H?e:H.fromObject(e.c,{zone:e.zone}).setLocale(e.loc.locale),q_=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];zc(n)&&(e.args[t]=K_(n).toJSDate())}return e})}let n=JSON.stringify({version:`1.20250720.0`,schema:t});return W_(n)},J_=e=>{let t=G_(e),n=JSON.parse(t);if(!Bc(n)||!(`version`in n)||!(`schema`in n)||typeof n.version!=`string`||!Bc(n.schema))throw TypeError(`Not a valid encoded schema`);let{version:r,schema:i}=n;if(U_.valid(`1.20250720.0`)){if(!U_.valid(U_.coerce(r)))throw TypeError(`Invalid schema version: ${r}`);if(U_.gt(U_.coerce(r),`1.20250720.0`))throw TypeError(`Schema version ${r} is not compatible with current version 1.20250720.0`)}return Z_.build(i)};var Y_=u($n()),X_=u(Xh());const Z_=Y_.default.extend(X_.default).extend(xr).extend(qc),Q_={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:Q_[e]}}yt();const ev=2,tv=/[^\x00-\x7f]/,nv=/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,rv=/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,iv=/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,av=/^[a-zA-Z0-9_](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,ov=vt||URL;function sv(e){return!!e.allow}function cv(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=!tv.test(e);if(!n){if(t.allowUnicode===!1)return $_(`DOMAIN_INVALID_UNICODE_CHARS`);e=e.normalize(`NFC`)}if(nv.test(e))return $_(`DOMAIN_INVALID_CHARS`);e=uv(e),t.allowFullyQualified&&e[e.length-1]===`.`&&(e=e.slice(0,-1));let r=t.minDomainSegments||ev,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(sv(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(!av.test(n))return $_(`DOMAIN_INVALID_CHARS`)}else if(!iv.test(n))return $_(`DOMAIN_INVALID_CHARS`)}else if(!rv.test(n))return $_(`DOMAIN_INVALID_TLDS_CHARS`)}return null}function lv(e,t){return!cv(e,t)}function uv(e){e.includes(`%`)&&(e=e.replace(/%/g,`%25`));try{return new ov(`http://${e}`).host}catch{return e}}function dv(e){if(e){if(typeof e.tlds!=`object`)throw Error(`Invalid options: tlds must be a boolean or an object`);if(sv(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 fv=u(Wn());const pv=/[^\x00-\x7f]/,mv=new(fv.TextEncoder||TextEncoder);function hv(e,t){return _v(e,t)}function gv(e,t){return!_v(e,t)}function _v(e,t={}){if(typeof e!=`string`)throw Error(`Invalid input: email must be a string`);if(!e)return $_(`EMPTY_STRING`);let n=!pv.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(mv.encode(i).length>64)return $_(`LOCAL_TOO_LONG`)}return vv(i,n)||cv(a,t)}function vv(e,t){let n=e.split(`.`);for(let e of n){if(!e.length)return $_(`EMPTY_LOCAL_SEGMENT`);if(t){if(!bv.test(e))return $_(`INVALID_LOCAL_CHARS`);continue}for(let t of e){if(bv.test(t))continue;let e=yv(t);if(!xv.test(e))return $_(`INVALID_LOCAL_CHARS`)}}return null}function yv(e){return Array.from(mv.encode(e),e=>String.fromCharCode(e)).join(``)}const bv=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,xv=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 Sv=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)}}}),Cv=s((exports,t)=>{t.exports=function(...e){try{return JSON.stringify(...e)}catch(e){return`[Cannot display object: `+e.message+`]`}}}),wv=s((exports,t)=>{let n=Sv(),r=Cv(),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)}}),Tv=s((exports,t)=>{let n=wv(),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`}}),Ev=s((exports,t)=>{ce();let n={};exports=t.exports={array:Array.prototype,buffer:E&&E.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(E&&t instanceof E)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}}),Dv=s(exports=>{exports.keys=function(e,t={}){return t.symbols===!1?Object.getOwnPropertyNames(e):Reflect.ownKeys(e)}}),Ov=s((exports,t)=>{ce();let n=Tv(),r=Ev(),i=Dv(),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 E?.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)}}),kv=s((exports,t)=>{ce();let n=wv(),r=Ov(),i=Dv(),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||E&&E.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}}),Av=s((exports,t)=>{let n=wv(),r=Ov(),i=kv(),a=Tv(),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}}),jv=s((exports,t)=>{Vt();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=Bt.hrtime();return e[0]*1e3+e[1]/1e6}}}),Mv=s((exports,t)=>{t.exports=function(){}}),Nv=s((exports,t)=>{let n=Mv();t.exports=function(){return new Promise(n)}}),Pv=s((exports,t)=>{ce();let n=Ev(),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 E&&E.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}}}),Fv=s((exports,t)=>{t.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,`\\$&`)}}),Iv=s((exports,t)=>{let n=wv(),r=Pv(),i=Fv(),a=Dv(),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}}),Lv=s((exports,t)=>{let n=wv();t.exports=function(e){return n(/^[ \w\!#\$%&'\(\)\*\+,\-\.\/\:;<\=>\?@\[\]\^`\{\|\}~\"\\]*$/.test(e),`Bad attribute value (`+e+`)`),e.replace(/\\/g,`\\\\`).replace(/\"/g,`\\"`)}}),Rv=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}()}),zv=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`]])}),Bv=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}}),Vv=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}}),Hv=s((exports,t)=>{t.exports=function(e){return typeof e?.then==`function`}}),Uv=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}}),Wv=s((exports,t)=>{let n=Tv();t.exports=function(e,t,r){return t.replace(/{([^{}]+)}/g,(t,i)=>{let a=n(e,i,r);return a??``})}}),Gv=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()})}}),Kv=u(Av(),1),qv=u(wv(),1),Jv=u(jv(),1),Yv=u(Nv(),1),Xv=u(Ov(),1),Zv=u(Iv(),1),Qv=u(Pv(),1),$v=u(Sv(),1),ey=u(Lv(),1),ty=u(Rv(),1),ny=u(zv(),1),ry=u(Fv(),1),iy=u(Bv(),1),ay=u(Mv(),1),oy=u(Vv(),1),sy=u(Hv(),1),cy=u(kv(),1),ly=u(Uv(),1),uy=u(Tv(),1),dy=u(Wv(),1),fy=u(Cv(),1),py=u(Gv(),1);function my(){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*)?`,ee=s+`*`,D=s+`+`,O=`[`+r+a+i+`@]+`,k=``,A=`(?:\\/`+ee+`)*`,j=`\\/(?:`+D+A+`)?`,M=D+A,N=O+A,te=`(?:\\/\\/\\/`+ee+A+`)`;return e.hierPart=`(?:(?:\\/\\/`+T+A+`)|`+j+`|`+M+`|`+te+`)`,e.hierPartCapture=`(?:(?:\\/\\/`+E+A+`)|`+j+`|`+M+`)`,e.relativeRef=`(?:(?:\\/\\/`+T+A+`)|`+j+`|`+N+`|)`,e.relativeRefCapture=`(?:(?:\\/\\/`+E+A+`)|`+j+`|`+N+`|)`,e.query=`[`+o+`\\/\\?]*(?=#|$)`,e.queryWithSquareBrackets=`[`+o+`\\[\\]\\/\\?]*(?=#|$)`,e.fragment=`[`+o+`\\/\\?]*`,e}const hy=my(),gy={v4Cidr:hy.ipv4Cidr,v6Cidr:hy.ipv6Cidr,ipv4:hy.ipv4address,ipv6:hy.ipv6address,ipvfuture:hy.ipvFuture};function _y(e){let t=hy,n=e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query,r=`(?:\\?`+n+`)?(?:#`+t.fragment+`)?`,i=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return vy(i+r);let a=``;if(e.scheme){(0,qv.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,qv.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,qv.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,qv.default)(t.schemeRegex.test(i),`scheme at position `+e+` must be a valid scheme`),r.push((0,ry.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 vy(c+r,a)}function vy(e,t=null){return e=`(?=.)(?!https?\:/(?:$|[^/]))(?!https?\:///)(?!https?\:[^/])${e}`,{raw:e,regex:RegExp(`^${e}$`),scheme:t}}const yy=_y({});function by(e={}){return e.scheme||e.allowRelative||e.relativeOnly||e.allowQuerySquareBrackets||e.domain?_y(e):yy}function xy(e={}){let t=e.cidr||`optional`;(0,qv.default)([`required`,`optional`,`forbidden`].includes(t),`options.cidr must be one of required, optional, forbidden`),(0,qv.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,qv.default)(n.length>=1,`options.version must have at least 1 version specified`);for(let e of n)(0,qv.default)(typeof e==`string`&&e===e.toLowerCase(),`Invalid options.version value`),(0,qv.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 gy[e];let n=`\\/${e===`ipv4`?gy.v4Cidr:gy.v6Cidr}`;return t===`required`?`${gy[e]}${n}`:`${gy[e]}(?:${n})?`}),i=`(?:${r.join(`|`)})`,a=RegExp(`^${i}$`);return{cidr:t,versions:n,regex:a,raw:i}}const Sy={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},Cy={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 wy(e){let t=e.indexOf(`%`);if(t===-1)return e;let n=``,r=0,i=0,a=t,o=Cy.accept;for(;t>-1&&t<e.length;){let s=Ty(e[t+1],4),c=Ty(e[t+2],0),l=s|c,u=Cy.data[l];if(o=Cy.data[256+o+u],i=i<<6|l&Cy.data[364+u],o===Cy.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===Cy.reject||(t+=3,t>=e.length||e[t]!==`%`))return null}return n+e.slice(r)}function Ty(e,t){let n=Sy[e];return n===void 0?255:n<<t}var Ey={};c(Ey,{analyzeDomain:()=>cv,analyzeEmail:()=>hv,errorCodes:()=>Q_,ipRegex:()=>xy,isDomainValid:()=>lv,isEmailValid:()=>gv,uriDecode:()=>wy,uriRegex:()=>by,validateDomainOptions:()=>dv});var Dy=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}}),Oy=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 ky=`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(`.`),Ay=new Set(ky.map(e=>e.toLowerCase()));var jy=u(Dy()),My=u(Oy()),Ny=u($n());const Py=`1.20250720.0`;Object.defineProperty(exports,`ValidationError`,{enumerable:!0,get:function(){return Ny.ValidationError}}),Object.defineProperty(exports,`address`,{enumerable:!0,get:function(){return Ey}}),exports.decode=J_,exports.encode=q_,Object.defineProperty(exports,`formula`,{enumerable:!0,get:function(){return jy}}),Object.defineProperty(exports,`location`,{enumerable:!0,get:function(){return My.location}}),exports.tlds=Ay,exports.validator=Z_,exports.version=Py;
|
|
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;
|
|
14
11
|
//# sourceMappingURL=index.cjs.map
|