importmap_mocha-rails 0.3.3 → 0.3.4
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.
- checksums.yaml +4 -4
- data/lib/importmap_mocha/version.rb +1 -1
- data/vendor/javascripts/@mswjs--interceptors--presets--browser.js +305 -173
- data/vendor/javascripts/@mswjs--interceptors.js +8 -0
- data/vendor/javascripts/chai.js +124 -107
- data/vendor/javascripts/mocha.js +354 -251
- data/vendor/stylesheets/mocha.css +54 -17
- metadata +2 -2
data/vendor/javascripts/chai.js
CHANGED
@@ -1,109 +1,126 @@
|
|
1
|
-
var e=Object.defineProperty;var t=Object.getOwnPropertyNames;var __name=(t,s)=>e(t,"name",{value:s,configurable:true});var __commonJS=(e,s)=>function __require(){return s||(0,e[t(e)[0]])((s={exports:{}}).exports,s),s.exports};var __export=(t,s)=>{for(var r in s)e(t,r,{get:s[r],enumerable:true})};var s=__commonJS({"(disabled):util"(){}});var r={};__export(r,{addChainableMethod:()=>addChainableMethod,addLengthGuard:()=>addLengthGuard,addMethod:()=>addMethod,addProperty:()=>addProperty,checkError:()=>n,compareByInspect:()=>compareByInspect,eql:()=>q,expectTypes:()=>expectTypes,flag:()=>flag,getActual:()=>getActual,getMessage:()=>getMessage2,getName:()=>getName,getOperator:()=>getOperator,getOwnEnumerableProperties:()=>getOwnEnumerableProperties,getOwnEnumerablePropertySymbols:()=>getOwnEnumerablePropertySymbols,getPathInfo:()=>getPathInfo,hasProperty:()=>hasProperty,inspect:()=>inspect2,isNaN:()=>B,isProxyEnabled:()=>isProxyEnabled,objDisplay:()=>objDisplay,overwriteChainableMethod:()=>overwriteChainableMethod,overwriteMethod:()=>overwriteMethod,overwriteProperty:()=>overwriteProperty,proxify:()=>proxify,test:()=>test,transferFlags:()=>transferFlags,type:()=>type});var n={};__export(n,{compatibleConstructor:()=>compatibleConstructor,compatibleInstance:()=>compatibleInstance,compatibleMessage:()=>compatibleMessage,getConstructorName:()=>getConstructorName,getMessage:()=>getMessage});function compatibleInstance(e,t){return t instanceof Error&&e===t}__name(compatibleInstance,"compatibleInstance");function compatibleConstructor(e,t){return t instanceof Error?e.constructor===t.constructor||e instanceof t.constructor:(t.prototype instanceof Error||t===Error)&&(e.constructor===t||e instanceof t)}__name(compatibleConstructor,"compatibleConstructor");function compatibleMessage(e,t){const s=typeof e==="string"?e:e.message;return t instanceof RegExp?t.test(s):typeof t==="string"&&s.indexOf(t)!==-1}__name(compatibleMessage,"compatibleMessage");function getConstructorName(e){let t=e;if(e instanceof Error)t=e.constructor.name;else if(typeof e==="function"){t=e.name;if(t===""){const s=(new e).name;t=s||t}}return t}__name(getConstructorName,"getConstructorName");function getMessage(e){let t="";e&&e.message?t=e.message:typeof e==="string"&&(t=e);return t}__name(getMessage,"getMessage");function flag(e,t,s){var r=e.__flags||(e.__flags=Object.create(null));if(arguments.length!==3)return r[t];r[t]=s}__name(flag,"flag");function test(e,t){var s=flag(e,"negate"),r=t[0];return s?!r:r}__name(test,"test");function type(e){if(typeof e==="undefined")return"undefined";if(e===null)return"null";const t=e[Symbol.toStringTag];if(typeof t==="string")return t;const s=Object.prototype.toString.call(e).slice(8,-1);return s}__name(type,"type");var o="captureStackTrace"in Error;var a=class _AssertionError extends Error{static{__name(this,"AssertionError")}message;get name(){return"AssertionError"}get ok(){return false}constructor(e="Unspecified AssertionError",t,s){super(e);this.message=e;o&&Error.captureStackTrace(this,s||_AssertionError);for(const e in t)e in this||(this[e]=t[e])}toJSON(e){return{...this,name:this.name,message:this.message,ok:false,stack:e!==false?this.stack:void 0}}};function expectTypes(e,t){var s=flag(e,"message");var r=flag(e,"ssfi");s=s?s+": ":"";e=flag(e,"object");t=t.map((function(e){return e.toLowerCase()}));t.sort();var n=t.map((function(e,s){var r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an":"a";var n=t.length>1&&s===t.length-1?"or ":"";return n+r+" "+e})).join(", ");var o=type(e).toLowerCase();if(!t.some((function(e){return o===e})))throw new a(s+"object tested must be "+n+", but "+o+" given",void 0,r)}__name(expectTypes,"expectTypes");function getActual(e,t){return t.length>4?t[4]:e._obj}__name(getActual,"getActual");var i={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]};var c={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"};var u="…";function colorise(e,t){const s=i[c[t]]||i[t]||"";return s?`[${s[0]}m${String(e)}[${s[1]}m`:String(e)}__name(colorise,"colorise");function normaliseOptions({showHidden:e=false,depth:t=2,colors:s=false,customInspect:r=true,showProxy:n=false,maxArrayLength:o=Infinity,breakLength:a=Infinity,seen:i=[],truncate:c=Infinity,stylize:u=String}={},l){const p={showHidden:Boolean(e),depth:Number(t),colors:Boolean(s),customInspect:Boolean(r),showProxy:Boolean(n),maxArrayLength:Number(o),breakLength:Number(a),truncate:Number(c),seen:i,inspect:l,stylize:u};p.colors&&(p.stylize=colorise);return p}__name(normaliseOptions,"normaliseOptions");function truncate(e,t,s=u){e=String(e);const r=s.length;const n=e.length;return r>t&&n>r?s:n>t&&n>r?`${e.slice(0,t-r)}${s}`:e}__name(truncate,"truncate");function inspectList(e,t,s,r=", "){s=s||t.inspect;const n=e.length;if(n===0)return"";const o=t.truncate;let a="";let i="";let c="";for(let l=0;l<n;l+=1){const n=l+1===e.length;const p=l+2===e.length;c=`${u}(${e.length-l})`;const h=e[l];t.truncate=o-a.length-(n?0:r.length);const f=i||s(h,t)+(n?"":r);const d=a.length+f.length;const y=d+c.length;if(n&&d>o&&a.length+c.length<=o)break;if(!n&&!p&&y>o)break;i=n?"":s(e[l+1],t)+(p?"":r);if(!n&&p&&y>o&&d+i.length>o)break;a+=f;if(!n&&!p&&d+i.length>=o){c=`${u}(${e.length-l-1})`;break}c=""}return`${a}${c}`}__name(inspectList,"inspectList");function quoteComplexKey(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}__name(quoteComplexKey,"quoteComplexKey");function inspectProperty([e,t],s){s.truncate-=2;typeof e==="string"?e=quoteComplexKey(e):typeof e!=="number"&&(e=`[${s.inspect(e,s)}]`);s.truncate-=e.length;t=s.inspect(t,s);return`${e}: ${t}`}__name(inspectProperty,"inspectProperty");function inspectArray(e,t){const s=Object.keys(e).slice(e.length);if(!e.length&&!s.length)return"[]";t.truncate-=4;const r=inspectList(e,t);t.truncate-=r.length;let n="";s.length&&(n=inspectList(s.map((t=>[t,e[t]])),t,inspectProperty));return`[ ${r}${n?`, ${n}`:""} ]`}__name(inspectArray,"inspectArray");var l=__name((e=>typeof Buffer==="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name),"getArrayName");function inspectTypedArray(e,t){const s=l(e);t.truncate-=s.length+4;const r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${s}[]`;let n="";for(let s=0;s<e.length;s++){const r=`${t.stylize(truncate(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;t.truncate-=r.length;if(e[s]!==e.length&&t.truncate<=3){n+=`${u}(${e.length-e[s]+1})`;break}n+=r}let o="";r.length&&(o=inspectList(r.map((t=>[t,e[t]])),t,inspectProperty));return`${s}[ ${n}${o?`, ${o}`:""} ]`}__name(inspectTypedArray,"inspectTypedArray");function inspectDate(e,t){const s=e.toJSON();if(s===null)return"Invalid Date";const r=s.split("T");const n=r[0];return t.stylize(`${n}T${truncate(r[1],t.truncate-n.length-1)}`,"date")}__name(inspectDate,"inspectDate");function inspectFunction(e,t){const s=e[Symbol.toStringTag]||"Function";const r=e.name;return r?t.stylize(`[${s} ${truncate(r,t.truncate-11)}]`,"special"):t.stylize(`[${s}]`,"special")}__name(inspectFunction,"inspectFunction");function inspectMapEntry([e,t],s){s.truncate-=4;e=s.inspect(e,s);s.truncate-=e.length;t=s.inspect(t,s);return`${e} => ${t}`}__name(inspectMapEntry,"inspectMapEntry");function mapToEntries(e){const t=[];e.forEach(((e,s)=>{t.push([s,e])}));return t}__name(mapToEntries,"mapToEntries");function inspectMap(e,t){const s=e.size-1;if(s<=0)return"Map{}";t.truncate-=7;return`Map{ ${inspectList(mapToEntries(e),t,inspectMapEntry)} }`}__name(inspectMap,"inspectMap");var p=Number.isNaN||(e=>e!==e);function inspectNumber(e,t){return p(e)?t.stylize("NaN","number"):e===Infinity?t.stylize("Infinity","number"):e===-Infinity?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===Infinity?"+0":"-0","number"):t.stylize(truncate(String(e),t.truncate),"number")}__name(inspectNumber,"inspectNumber");function inspectBigInt(e,t){let s=truncate(e.toString(),t.truncate-1);s!==u&&(s+="n");return t.stylize(s,"bigint")}__name(inspectBigInt,"inspectBigInt");function inspectRegExp(e,t){const s=e.toString().split("/")[2];const r=t.truncate-(2+s.length);const n=e.source;return t.stylize(`/${truncate(n,r)}/${s}`,"regexp")}__name(inspectRegExp,"inspectRegExp");function arrayFromSet(e){const t=[];e.forEach((e=>{t.push(e)}));return t}__name(arrayFromSet,"arrayFromSet");function inspectSet(e,t){if(e.size===0)return"Set{}";t.truncate-=7;return`Set{ ${inspectList(arrayFromSet(e),t)} }`}__name(inspectSet,"inspectSet");var h=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g");var f={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};var d=16;var y=4;function escape(e){return f[e]||`\\u${`0000${e.charCodeAt(0).toString(d)}`.slice(-y)}`}__name(escape,"escape");function inspectString(e,t){h.test(e)&&(e=e.replace(h,escape));return t.stylize(`'${truncate(e,t.truncate-2)}'`,"string")}__name(inspectString,"inspectString");function inspectSymbol(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}__name(inspectSymbol,"inspectSymbol");var g=__name((()=>"Promise{…}"),"getPromiseValue");try{const{getPromiseDetails:e,kPending:t,kRejected:s}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(g=__name(((r,n)=>{const[o,a]=e(r);return o===t?"Promise{<pending>}":`Promise${o===s?"!":""}{${n.inspect(a,n)}}`}),"getPromiseValue"))}catch(e){}var b=g;function inspectObject(e,t){const s=Object.getOwnPropertyNames(e);const r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(s.length===0&&r.length===0)return"{}";t.truncate-=4;t.seen=t.seen||[];if(t.seen.indexOf(e)>=0)return"[Circular]";t.seen.push(e);const n=inspectList(s.map((t=>[t,e[t]])),t,inspectProperty);const o=inspectList(r.map((t=>[t,e[t]])),t,inspectProperty);t.seen.pop();let a="";n&&o&&(a=", ");return`{ ${n}${a}${o} }`}__name(inspectObject,"inspectObject");var m=!(typeof Symbol==="undefined"||!Symbol.toStringTag)&&Symbol.toStringTag;function inspectClass(e,t){let s="";m&&m in e&&(s=e[m]);s=s||e.constructor.name;s&&s!=="_class"||(s="<Anonymous Class>");t.truncate-=s.length;return`${s}${inspectObject(e,t)}`}__name(inspectClass,"inspectClass");function inspectArguments(e,t){if(e.length===0)return"Arguments[]";t.truncate-=13;return`Arguments[ ${inspectList(e,t)} ]`}__name(inspectArguments,"inspectArguments");var w=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function inspectObject2(e,t){const s=Object.getOwnPropertyNames(e).filter((e=>w.indexOf(e)===-1));const r=e.name;t.truncate-=r.length;let n="";typeof e.message==="string"?n=truncate(e.message,t.truncate):s.unshift("message");n=n?`: ${n}`:"";t.truncate-=n.length+5;const o=inspectList(s.map((t=>[t,e[t]])),t,inspectProperty);return`${r}${n}${o?` { ${o} }`:""}`}__name(inspectObject2,"inspectObject");function inspectAttribute([e,t],s){s.truncate-=3;return t?`${s.stylize(String(e),"yellow")}=${s.stylize(`"${t}"`,"string")}`:`${s.stylize(String(e),"yellow")}`}__name(inspectAttribute,"inspectAttribute");function inspectHTMLCollection(e,t){return inspectList(e,t,inspectHTML,"\n")}__name(inspectHTMLCollection,"inspectHTMLCollection");function inspectHTML(e,t){const s=e.getAttributeNames();const r=e.tagName.toLowerCase();const n=t.stylize(`<${r}`,"special");const o=t.stylize(">","special");const a=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let i="";if(s.length>0){i+=" ";i+=inspectList(s.map((t=>[t,e.getAttribute(t)])),t,inspectAttribute," ")}t.truncate-=i.length;const c=t.truncate;let l=inspectHTMLCollection(e.children,t);l&&l.length>c&&(l=`${u}(${e.children.length})`);return`${n}${i}${o}${l}${a}`}__name(inspectHTML,"inspectHTML");var v=typeof Symbol==="function"&&typeof Symbol.for==="function";var A=v?Symbol.for("chai/inspect"):"@@chai/inspect";var x=false;try{const e=s();x=!!e.inspect&&e.inspect.custom}catch(e){x=false}var O=new WeakMap;var P={};var E={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:inspectNumber,Number:inspectNumber,bigint:inspectBigInt,BigInt:inspectBigInt,string:inspectString,String:inspectString,function:inspectFunction,Function:inspectFunction,symbol:inspectSymbol,Symbol:inspectSymbol,Array:inspectArray,Date:inspectDate,Map:inspectMap,Set:inspectSet,RegExp:inspectRegExp,Promise:b,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:inspectArguments,Int8Array:inspectTypedArray,Uint8Array:inspectTypedArray,Uint8ClampedArray:inspectTypedArray,Int16Array:inspectTypedArray,Uint16Array:inspectTypedArray,Int32Array:inspectTypedArray,Uint32Array:inspectTypedArray,Float32Array:inspectTypedArray,Float64Array:inspectTypedArray,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:inspectObject2,HTMLCollection:inspectHTMLCollection,NodeList:inspectHTMLCollection};var M=__name(((e,t,s)=>A in e&&typeof e[A]==="function"?e[A](t):x&&x in e&&typeof e[x]==="function"?e[x](t.depth,t):"inspect"in e&&typeof e.inspect==="function"?e.inspect(t.depth,t):"constructor"in e&&O.has(e.constructor)?O.get(e.constructor)(e,t):P[s]?P[s](e,t):""),"inspectCustom");var S=Object.prototype.toString;function inspect(e,t={}){const s=normaliseOptions(t,inspect);const{customInspect:r}=s;let n=e===null?"null":typeof e;n==="object"&&(n=S.call(e).slice(8,-1));if(n in E)return E[n](e,s);if(r&&e){const t=M(e,s,n);if(t)return typeof t==="string"?t:inspect(t,s)}const o=!!e&&Object.getPrototypeOf(e);return o===Object.prototype||o===null?inspectObject(e,s):e&&typeof HTMLElement==="function"&&e instanceof HTMLElement?inspectHTML(e,s):"constructor"in e?e.constructor!==Object?inspectClass(e,s):inspectObject(e,s):e===Object(e)?inspectObject(e,s):s.stylize(String(e),n)}__name(inspect,"inspect");var j={
|
2
1
|
/**
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
*
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
deepEqual:null};function inspect2(e,t,s,r){var n={colors:r,depth:typeof s==="undefined"?2:s,showHidden:t,truncate:j.truncateThreshold?j.truncateThreshold:Infinity};return inspect(e,n)}__name(inspect2,"inspect");function objDisplay(e){var t=inspect2(e),s=Object.prototype.toString.call(e);if(j.truncateThreshold&&t.length>=j.truncateThreshold){if(s==="[object Function]")return e.name&&e.name!==""?"[Function: "+e.name+"]":"[Function]";if(s==="[object Array]")return"[ Array("+e.length+") ]";if(s==="[object Object]"){var r=Object.keys(e),n=r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", ");return"{ Object ("+n+") }"}return t}return t}__name(objDisplay,"objDisplay");function getMessage2(e,t){var s=flag(e,"negate"),r=flag(e,"object"),n=t[3],o=getActual(e,t),a=s?t[2]:t[1],i=flag(e,"message");typeof a==="function"&&(a=a());a=a||"";a=a.replace(/#\{this\}/g,(function(){return objDisplay(r)})).replace(/#\{act\}/g,(function(){return objDisplay(o)})).replace(/#\{exp\}/g,(function(){return objDisplay(n)}));return i?i+": "+a:a}__name(getMessage2,"getMessage");function transferFlags(e,t,s){var r=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null));s=arguments.length!==3||s;for(var n in r)(s||n!=="object"&&n!=="ssfi"&&n!=="lockSsfi"&&n!="message")&&(t.__flags[n]=r[n])}__name(transferFlags,"transferFlags");function type2(e){if(typeof e==="undefined")return"undefined";if(e===null)return"null";const t=e[Symbol.toStringTag];if(typeof t==="string")return t;const s=8;const r=-1;return Object.prototype.toString.call(e).slice(s,r)}__name(type2,"type");function FakeMap(){this._key="chai/deep-eql__"+Math.random()+Date.now()}__name(FakeMap,"FakeMap");FakeMap.prototype={get:__name((function get(e){return e[this._key]}),"get"),set:__name((function set(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:true})}),"set")};var N=typeof WeakMap==="function"?WeakMap:FakeMap;function memoizeCompare(e,t,s){if(!s||isPrimitive(e)||isPrimitive(t))return null;var r=s.get(e);if(r){var n=r.get(t);if(typeof n==="boolean")return n}return null}__name(memoizeCompare,"memoizeCompare");function memoizeSet(e,t,s,r){if(s&&!isPrimitive(e)&&!isPrimitive(t)){var n=s.get(e);if(n)n.set(t,r);else{n=new N;n.set(t,r);s.set(e,n)}}}__name(memoizeSet,"memoizeSet");var q=deepEqual;function deepEqual(e,t,s){if(s&&s.comparator)return extensiveDeepEqual(e,t,s);var r=simpleEqual(e,t);return r!==null?r:extensiveDeepEqual(e,t,s)}__name(deepEqual,"deepEqual");function simpleEqual(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t||!isPrimitive(e)&&!isPrimitive(t)&&null}__name(simpleEqual,"simpleEqual");function extensiveDeepEqual(e,t,s){s=s||{};s.memoize=s.memoize!==false&&(s.memoize||new N);var r=s&&s.comparator;var n=memoizeCompare(e,t,s.memoize);if(n!==null)return n;var o=memoizeCompare(t,e,s.memoize);if(o!==null)return o;if(r){var a=r(e,t);if(a===false||a===true){memoizeSet(e,t,s.memoize,a);return a}var i=simpleEqual(e,t);if(i!==null)return i}var c=type2(e);if(c!==type2(t)){memoizeSet(e,t,s.memoize,false);return false}memoizeSet(e,t,s.memoize,true);var u=extensiveDeepEqualByType(e,t,c,s);memoizeSet(e,t,s.memoize,u);return u}__name(extensiveDeepEqual,"extensiveDeepEqual");function extensiveDeepEqualByType(e,t,s,r){switch(s){case"String":case"Number":case"Boolean":case"Date":return deepEqual(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return keysEqual(e,t,["name","message","code"],r);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return iterableEqual(e,t,r);case"RegExp":return regexpEqual(e,t);case"Generator":return generatorEqual(e,t,r);case"DataView":return iterableEqual(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case"ArrayBuffer":return iterableEqual(new Uint8Array(e),new Uint8Array(t),r);case"Set":return entriesEqual(e,t,r);case"Map":return entriesEqual(e,t,r);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default:return objectEqual(e,t,r)}}__name(extensiveDeepEqualByType,"extensiveDeepEqualByType");function regexpEqual(e,t){return e.toString()===t.toString()}__name(regexpEqual,"regexpEqual");function entriesEqual(e,t,s){if(e.size!==t.size)return false;if(e.size===0)return true;var r=[];var n=[];e.forEach(__name((function gatherEntries(e,t){r.push([e,t])}),"gatherEntries"));t.forEach(__name((function gatherEntries(e,t){n.push([e,t])}),"gatherEntries"));return iterableEqual(r.sort(),n.sort(),s)}__name(entriesEqual,"entriesEqual");function iterableEqual(e,t,s){var r=e.length;if(r!==t.length)return false;if(r===0)return true;var n=-1;while(++n<r)if(deepEqual(e[n],t[n],s)===false)return false;return true}__name(iterableEqual,"iterableEqual");function generatorEqual(e,t,s){return iterableEqual(getGeneratorEntries(e),getGeneratorEntries(t),s)}__name(generatorEqual,"generatorEqual");function hasIteratorFunction(e){return typeof Symbol!=="undefined"&&typeof e==="object"&&typeof Symbol.iterator!=="undefined"&&typeof e[Symbol.iterator]==="function"}__name(hasIteratorFunction,"hasIteratorFunction");function getIteratorEntries(e){if(hasIteratorFunction(e))try{return getGeneratorEntries(e[Symbol.iterator]())}catch(e){return[]}return[]}__name(getIteratorEntries,"getIteratorEntries");function getGeneratorEntries(e){var t=e.next();var s=[t.value];while(t.done===false){t=e.next();s.push(t.value)}return s}__name(getGeneratorEntries,"getGeneratorEntries");function getEnumerableKeys(e){var t=[];for(var s in e)t.push(s);return t}__name(getEnumerableKeys,"getEnumerableKeys");function getEnumerableSymbols(e){var t=[];var s=Object.getOwnPropertySymbols(e);for(var r=0;r<s.length;r+=1){var n=s[r];Object.getOwnPropertyDescriptor(e,n).enumerable&&t.push(n)}return t}__name(getEnumerableSymbols,"getEnumerableSymbols");function keysEqual(e,t,s,r){var n=s.length;if(n===0)return true;for(var o=0;o<n;o+=1)if(deepEqual(e[s[o]],t[s[o]],r)===false)return false;return true}__name(keysEqual,"keysEqual");function objectEqual(e,t,s){var r=getEnumerableKeys(e);var n=getEnumerableKeys(t);var o=getEnumerableSymbols(e);var a=getEnumerableSymbols(t);r=r.concat(o);n=n.concat(a);if(r.length&&r.length===n.length)return iterableEqual(mapSymbols(r).sort(),mapSymbols(n).sort())!==false&&keysEqual(e,t,r,s);var i=getIteratorEntries(e);var c=getIteratorEntries(t);if(i.length&&i.length===c.length){i.sort();c.sort();return iterableEqual(i,c,s)}return r.length===0&&i.length===0&&n.length===0&&c.length===0}__name(objectEqual,"objectEqual");function isPrimitive(e){return e===null||typeof e!=="object"}__name(isPrimitive,"isPrimitive");function mapSymbols(e){return e.map(__name((function mapSymbol(e){return typeof e==="symbol"?e.toString():e}),"mapSymbol"))}__name(mapSymbols,"mapSymbols");function hasProperty(e,t){return typeof e!=="undefined"&&e!==null&&t in Object(e)}__name(hasProperty,"hasProperty");function parsePath(e){const t=e.replace(/([^\\])\[/g,"$1.[");const s=t.match(/(\\\.|[^.]+?)+/g);return s.map((e=>{if(e==="constructor"||e==="__proto__"||e==="prototype")return{};const t=/^\[(\d+)\]$/;const s=t.exec(e);let r=null;r=s?{i:parseFloat(s[1])}:{p:e.replace(/\\([.[\]])/g,"$1")};return r}))}__name(parsePath,"parsePath");function internalGetPathValue(e,t,s){let r=e;let n=null;s=typeof s==="undefined"?t.length:s;for(let e=0;e<s;e++){const o=t[e];if(r){r=typeof o.p==="undefined"?r[o.i]:r[o.p];e===s-1&&(n=r)}}return n}__name(internalGetPathValue,"internalGetPathValue");function getPathInfo(e,t){const s=parsePath(t);const r=s[s.length-1];const n={parent:s.length>1?internalGetPathValue(e,s,s.length-1):e,name:r.p||r.i,value:internalGetPathValue(e,s)};n.exists=hasProperty(n.parent,n.name);return n}__name(getPathInfo,"getPathInfo");function Assertion(e,t,s,r){flag(this,"ssfi",s||Assertion);flag(this,"lockSsfi",r);flag(this,"object",e);flag(this,"message",t);flag(this,"eql",j.deepEqual||q);return proxify(this)}__name(Assertion,"Assertion");Object.defineProperty(Assertion,"includeStack",{get:function(){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead.");return j.includeStack},set:function(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead.");j.includeStack=e}});Object.defineProperty(Assertion,"showDiff",{get:function(){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead.");return j.showDiff},set:function(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead.");j.showDiff=e}});Assertion.addProperty=function(e,t){addProperty(this.prototype,e,t)};Assertion.addMethod=function(e,t){addMethod(this.prototype,e,t)};Assertion.addChainableMethod=function(e,t,s){addChainableMethod(this.prototype,e,t,s)};Assertion.overwriteProperty=function(e,t){overwriteProperty(this.prototype,e,t)};Assertion.overwriteMethod=function(e,t){overwriteMethod(this.prototype,e,t)};Assertion.overwriteChainableMethod=function(e,t,s){overwriteChainableMethod(this.prototype,e,t,s)};Assertion.prototype.assert=function(e,t,s,r,n,o){var i=test(this,arguments);false!==o&&(o=true);void 0===r&&void 0===n&&(o=false);true!==j.showDiff&&(o=false);if(!i){t=getMessage2(this,arguments);var c=getActual(this,arguments);var u={actual:c,expected:r,showDiff:o};var l=getOperator(this,arguments);l&&(u.operator=l);throw new a(t,u,j.includeStack?this.assert:flag(this,"ssfi"))}};Object.defineProperty(Assertion.prototype,"_obj",{get:function(){return flag(this,"object")},set:function(e){flag(this,"object",e)}});function isProxyEnabled(){return j.useProxy&&typeof Proxy!=="undefined"&&typeof Reflect!=="undefined"}__name(isProxyEnabled,"isProxyEnabled");function addProperty(e,t,s){s=s===void 0?function(){}:s;Object.defineProperty(e,t,{get:__name((function propertyGetter(){isProxyEnabled()||flag(this,"lockSsfi")||flag(this,"ssfi",propertyGetter);var e=s.call(this);if(e!==void 0)return e;var t=new Assertion;transferFlags(this,t);return t}),"propertyGetter"),configurable:true})}__name(addProperty,"addProperty");var D=Object.getOwnPropertyDescriptor((function(){}),"length");function addLengthGuard(e,t,s){if(!D.configurable)return e;Object.defineProperty(e,"length",{get:function(){if(s)throw Error("Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.');throw Error("Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')}});return e}__name(addLengthGuard,"addLengthGuard");function getProperties(e){var t=Object.getOwnPropertyNames(e);function addProperty2(e){t.indexOf(e)===-1&&t.push(e)}__name(addProperty2,"addProperty");var s=Object.getPrototypeOf(e);while(s!==null){Object.getOwnPropertyNames(s).forEach(addProperty2);s=Object.getPrototypeOf(s)}return t}__name(getProperties,"getProperties");var k=["__flags","__methods","_obj","assert"];function proxify(e,t){return isProxyEnabled()?new Proxy(e,{get:__name((function proxyGetter(e,s){if(typeof s==="string"&&j.proxyExcludedKeys.indexOf(s)===-1&&!Reflect.has(e,s)){if(t)throw Error("Invalid Chai property: "+t+"."+s+'. See docs for proper usage of "'+t+'".');var r=null;var n=4;getProperties(e).forEach((function(e){if(!Object.prototype.hasOwnProperty(e)&&k.indexOf(e)===-1){var t=stringDistanceCapped(s,e,n);if(t<n){r=e;n=t}}}));throw r!==null?Error("Invalid Chai property: "+s+'. Did you mean "'+r+'"?'):Error("Invalid Chai property: "+s)}k.indexOf(s)!==-1||flag(e,"lockSsfi")||flag(e,"ssfi",proxyGetter);return Reflect.get(e,s)}),"proxyGetter")}):e}__name(proxify,"proxify");function stringDistanceCapped(e,t,s){if(Math.abs(e.length-t.length)>=s)return s;var r=[];for(var n=0;n<=e.length;n++){r[n]=Array(t.length+1).fill(0);r[n][0]=n}for(var o=0;o<t.length;o++)r[0][o]=o;for(n=1;n<=e.length;n++){var a=e.charCodeAt(n-1);for(o=1;o<=t.length;o++)Math.abs(n-o)>=s?r[n][o]=s:r[n][o]=Math.min(r[n-1][o]+1,r[n][o-1]+1,r[n-1][o-1]+(a===t.charCodeAt(o-1)?0:1))}return r[e.length][t.length]}__name(stringDistanceCapped,"stringDistanceCapped");function addMethod(e,t,s){var r=__name((function(){flag(this,"lockSsfi")||flag(this,"ssfi",r);var e=s.apply(this,arguments);if(e!==void 0)return e;var t=new Assertion;transferFlags(this,t);return t}),"methodWrapper");addLengthGuard(r,t,false);e[t]=proxify(r,t)}__name(addMethod,"addMethod");function overwriteProperty(e,t,s){var r=Object.getOwnPropertyDescriptor(e,t),n=__name((function(){}),"_super");r&&"function"===typeof r.get&&(n=r.get);Object.defineProperty(e,t,{get:__name((function overwritingPropertyGetter(){isProxyEnabled()||flag(this,"lockSsfi")||flag(this,"ssfi",overwritingPropertyGetter);var e=flag(this,"lockSsfi");flag(this,"lockSsfi",true);var t=s(n).call(this);flag(this,"lockSsfi",e);if(t!==void 0)return t;var r=new Assertion;transferFlags(this,r);return r}),"overwritingPropertyGetter"),configurable:true})}__name(overwriteProperty,"overwriteProperty");function overwriteMethod(e,t,s){var r=e[t],n=__name((function(){throw new Error(t+" is not a function")}),"_super");r&&"function"===typeof r&&(n=r);var o=__name((function(){flag(this,"lockSsfi")||flag(this,"ssfi",o);var e=flag(this,"lockSsfi");flag(this,"lockSsfi",true);var t=s(n).apply(this,arguments);flag(this,"lockSsfi",e);if(t!==void 0)return t;var r=new Assertion;transferFlags(this,r);return r}),"overwritingMethodWrapper");addLengthGuard(o,t,false);e[t]=proxify(o,t)}__name(overwriteMethod,"overwriteMethod");var C=typeof Object.setPrototypeOf==="function";var T=__name((function(){}),"testFn");var I=Object.getOwnPropertyNames(T).filter((function(e){var t=Object.getOwnPropertyDescriptor(T,e);return typeof t!=="object"||!t.configurable}));var L=Function.prototype.call;var z=Function.prototype.apply;function addChainableMethod(e,t,s,r){typeof r!=="function"&&(r=__name((function(){}),"chainingBehavior"));var n={method:s,chainingBehavior:r};e.__methods||(e.__methods={});e.__methods[t]=n;Object.defineProperty(e,t,{get:__name((function chainableMethodGetter(){n.chainingBehavior.call(this);var s=__name((function(){flag(this,"lockSsfi")||flag(this,"ssfi",s);var e=n.method.apply(this,arguments);if(e!==void 0)return e;var t=new Assertion;transferFlags(this,t);return t}),"chainableMethodWrapper");addLengthGuard(s,t,true);if(C){var r=Object.create(this);r.call=L;r.apply=z;Object.setPrototypeOf(s,r)}else{var o=Object.getOwnPropertyNames(e);o.forEach((function(t){if(I.indexOf(t)===-1){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,r)}}))}transferFlags(this,s);return proxify(s)}),"chainableMethodGetter"),configurable:true})}__name(addChainableMethod,"addChainableMethod");function overwriteChainableMethod(e,t,s,r){var n=e.__methods[t];var o=n.chainingBehavior;n.chainingBehavior=__name((function overwritingChainableMethodGetter(){var e=r(o).call(this);if(e!==void 0)return e;var t=new Assertion;transferFlags(this,t);return t}),"overwritingChainableMethodGetter");var a=n.method;n.method=__name((function overwritingChainableMethodWrapper(){var e=s(a).apply(this,arguments);if(e!==void 0)return e;var t=new Assertion;transferFlags(this,t);return t}),"overwritingChainableMethodWrapper")}__name(overwriteChainableMethod,"overwriteChainableMethod");function compareByInspect(e,t){return inspect2(e)<inspect2(t)?-1:1}__name(compareByInspect,"compareByInspect");function getOwnEnumerablePropertySymbols(e){return typeof Object.getOwnPropertySymbols!=="function"?[]:Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}__name(getOwnEnumerablePropertySymbols,"getOwnEnumerablePropertySymbols");function getOwnEnumerableProperties(e){return Object.keys(e).concat(getOwnEnumerablePropertySymbols(e))}__name(getOwnEnumerableProperties,"getOwnEnumerableProperties");function _isNaN(e){return e!==e}__name(_isNaN,"_isNaN");var B=Number.isNaN||_isNaN;function isObjectType(e){var t=type(e);var s=["Array","Object","Function"];return s.indexOf(t)!==-1}__name(isObjectType,"isObjectType");function getOperator(e,t){var s=flag(e,"operator");var r=flag(e,"negate");var n=t[3];var o=r?t[2]:t[1];if(s)return s;typeof o==="function"&&(o=o());o=o||"";if(o&&!/\shave\s/.test(o)){var a=isObjectType(n);return/\snot\s/.test(o)?a?"notDeepStrictEqual":"notStrictEqual":a?"deepStrictEqual":"strictEqual"}}__name(getOperator,"getOperator");function getName(e){return e.name}__name(getName,"getName");var{flag:$}=r;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach((function(e){Assertion.addProperty(e)}));Assertion.addProperty("not",(function(){$(this,"negate",true)}));Assertion.addProperty("deep",(function(){$(this,"deep",true)}));Assertion.addProperty("nested",(function(){$(this,"nested",true)}));Assertion.addProperty("own",(function(){$(this,"own",true)}));Assertion.addProperty("ordered",(function(){$(this,"ordered",true)}));Assertion.addProperty("any",(function(){$(this,"any",true);$(this,"all",false)}));Assertion.addProperty("all",(function(){$(this,"all",true);$(this,"any",false)}));var F={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function an(e,t){t&&$(this,"message",t);e=e.toLowerCase();var s=$(this,"object"),r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";const n=type(s).toLowerCase();F.function.includes(e)?this.assert(F[e].includes(n),"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e):this.assert(e===n,"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e)}__name(an,"an");Assertion.addChainableMethod("an",an);Assertion.addChainableMethod("a",an);function SameValueZero(e,t){return B(e)&&B(t)||e===t}__name(SameValueZero,"SameValueZero");function includeChainingBehavior(){$(this,"contains",true)}__name(includeChainingBehavior,"includeChainingBehavior");function include(e,t){t&&$(this,"message",t);var s=$(this,"object"),r=type(s).toLowerCase(),o=$(this,"message"),i=$(this,"negate"),c=$(this,"ssfi"),u=$(this,"deep"),l=u?"deep ":"",p=u?$(this,"eql"):SameValueZero;o=o?o+": ":"";var h=false;switch(r){case"string":h=s.indexOf(e)!==-1;break;case"weakset":if(u)throw new a(o+"unable to use .deep.include with WeakSet",void 0,c);h=s.has(e);break;case"map":s.forEach((function(t){h=h||p(t,e)}));break;case"set":u?s.forEach((function(t){h=h||p(t,e)})):h=s.has(e);break;case"array":h=u?s.some((function(t){return p(t,e)})):s.indexOf(e)!==-1;break;default:if(e!==Object(e))throw new a(o+"the given combination of arguments ("+r+" and "+type(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+type(e).toLowerCase(),void 0,c);var f=Object.keys(e),d=null,y=0;f.forEach((function(t){var r=new Assertion(s);transferFlags(this,r,true);$(r,"lockSsfi",true);if(i&&f.length!==1)try{r.property(t,e[t])}catch(e){if(!n.compatibleConstructor(e,a))throw e;d===null&&(d=e);y++}else r.property(t,e[t])}),this);if(i&&f.length>1&&y===f.length)throw d;return}this.assert(h,"expected #{this} to "+l+"include "+inspect2(e),"expected #{this} to not "+l+"include "+inspect2(e))}__name(include,"include");Assertion.addChainableMethod("include",include,includeChainingBehavior);Assertion.addChainableMethod("contain",include,includeChainingBehavior);Assertion.addChainableMethod("contains",include,includeChainingBehavior);Assertion.addChainableMethod("includes",include,includeChainingBehavior);Assertion.addProperty("ok",(function(){this.assert($(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")}));Assertion.addProperty("true",(function(){this.assert(true===$(this,"object"),"expected #{this} to be true","expected #{this} to be false",!$(this,"negate"))}));Assertion.addProperty("callable",(function(){const e=$(this,"object");const t=$(this,"ssfi");const s=$(this,"message");const r=s?`${s}: `:"";const n=$(this,"negate");const o=n?`${r}expected ${inspect2(e)} not to be a callable function`:`${r}expected ${inspect2(e)} to be a callable function`;const i=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(type(e));if(i&&n||!i&&!n)throw new a(o,void 0,t)}));Assertion.addProperty("false",(function(){this.assert(false===$(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!$(this,"negate"))}));Assertion.addProperty("null",(function(){this.assert(null===$(this,"object"),"expected #{this} to be null","expected #{this} not to be null")}));Assertion.addProperty("undefined",(function(){this.assert(void 0===$(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")}));Assertion.addProperty("NaN",(function(){this.assert(B($(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")}));function assertExist(){var e=$(this,"object");this.assert(e!==null&&e!==void 0,"expected #{this} to exist","expected #{this} to not exist")}__name(assertExist,"assertExist");Assertion.addProperty("exist",assertExist);Assertion.addProperty("exists",assertExist);Assertion.addProperty("empty",(function(){var e,t=$(this,"object"),s=$(this,"ssfi"),r=$(this,"message");r=r?r+": ":"";switch(type(t).toLowerCase()){case"array":case"string":e=t.length;break;case"map":case"set":e=t.size;break;case"weakmap":case"weakset":throw new a(r+".empty was passed a weak collection",void 0,s);case"function":var n=r+".empty was passed a function "+getName(t);throw new a(n.trim(),void 0,s);default:if(t!==Object(t))throw new a(r+".empty was passed non-string primitive "+inspect2(t),void 0,s);e=Object.keys(t).length}this.assert(0===e,"expected #{this} to be empty","expected #{this} not to be empty")}));function checkArguments(){var e=$(this,"object"),t=type(e);this.assert("Arguments"===t,"expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}__name(checkArguments,"checkArguments");Assertion.addProperty("arguments",checkArguments);Assertion.addProperty("Arguments",checkArguments);function assertEqual(e,t){t&&$(this,"message",t);var s=$(this,"object");if($(this,"deep")){var r=$(this,"lockSsfi");$(this,"lockSsfi",true);this.eql(e);$(this,"lockSsfi",r)}else this.assert(e===s,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,true)}__name(assertEqual,"assertEqual");Assertion.addMethod("equal",assertEqual);Assertion.addMethod("equals",assertEqual);Assertion.addMethod("eq",assertEqual);function assertEql(e,t){t&&$(this,"message",t);var s=$(this,"eql");this.assert(s(e,$(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,true)}__name(assertEql,"assertEql");Assertion.addMethod("eql",assertEql);Assertion.addMethod("eqls",assertEql);function assertAbove(e,t){t&&$(this,"message",t);var s,r=$(this,"object"),n=$(this,"doLength"),o=$(this,"message"),i=o?o+": ":"",c=$(this,"ssfi"),u=type(r).toLowerCase(),l=type(e).toLowerCase(),p=true;n&&u!=="map"&&u!=="set"&&new Assertion(r,o,c,true).to.have.property("length");if(n||u!=="date"||l==="date")if(l==="number"||!n&&u!=="number")if(n||u==="date"||u==="number")p=false;else{var h=u==="string"?"'"+r+"'":r;s=i+"expected "+h+" to be a number or a date"}else s=i+"the argument to above must be a number";else s=i+"the argument to above must be a date";if(p)throw new a(s,void 0,c);if(n){var f,d="length";if(u==="map"||u==="set"){d="size";f=r.size}else f=r.length;this.assert(f>e,"expected #{this} to have a "+d+" above #{exp} but got #{act}","expected #{this} to not have a "+d+" above #{exp}",e,f)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}__name(assertAbove,"assertAbove");Assertion.addMethod("above",assertAbove);Assertion.addMethod("gt",assertAbove);Assertion.addMethod("greaterThan",assertAbove);function assertLeast(e,t){t&&$(this,"message",t);var s,r=$(this,"object"),n=$(this,"doLength"),o=$(this,"message"),i=o?o+": ":"",c=$(this,"ssfi"),u=type(r).toLowerCase(),l=type(e).toLowerCase(),p=true;n&&u!=="map"&&u!=="set"&&new Assertion(r,o,c,true).to.have.property("length");if(n||u!=="date"||l==="date")if(l==="number"||!n&&u!=="number")if(n||u==="date"||u==="number")p=false;else{var h=u==="string"?"'"+r+"'":r;s=i+"expected "+h+" to be a number or a date"}else s=i+"the argument to least must be a number";else s=i+"the argument to least must be a date";if(p)throw new a(s,void 0,c);if(n){var f,d="length";if(u==="map"||u==="set"){d="size";f=r.size}else f=r.length;this.assert(f>=e,"expected #{this} to have a "+d+" at least #{exp} but got #{act}","expected #{this} to have a "+d+" below #{exp}",e,f)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}__name(assertLeast,"assertLeast");Assertion.addMethod("least",assertLeast);Assertion.addMethod("gte",assertLeast);Assertion.addMethod("greaterThanOrEqual",assertLeast);function assertBelow(e,t){t&&$(this,"message",t);var s,r=$(this,"object"),n=$(this,"doLength"),o=$(this,"message"),i=o?o+": ":"",c=$(this,"ssfi"),u=type(r).toLowerCase(),l=type(e).toLowerCase(),p=true;n&&u!=="map"&&u!=="set"&&new Assertion(r,o,c,true).to.have.property("length");if(n||u!=="date"||l==="date")if(l==="number"||!n&&u!=="number")if(n||u==="date"||u==="number")p=false;else{var h=u==="string"?"'"+r+"'":r;s=i+"expected "+h+" to be a number or a date"}else s=i+"the argument to below must be a number";else s=i+"the argument to below must be a date";if(p)throw new a(s,void 0,c);if(n){var f,d="length";if(u==="map"||u==="set"){d="size";f=r.size}else f=r.length;this.assert(f<e,"expected #{this} to have a "+d+" below #{exp} but got #{act}","expected #{this} to not have a "+d+" below #{exp}",e,f)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}__name(assertBelow,"assertBelow");Assertion.addMethod("below",assertBelow);Assertion.addMethod("lt",assertBelow);Assertion.addMethod("lessThan",assertBelow);function assertMost(e,t){t&&$(this,"message",t);var s,r=$(this,"object"),n=$(this,"doLength"),o=$(this,"message"),i=o?o+": ":"",c=$(this,"ssfi"),u=type(r).toLowerCase(),l=type(e).toLowerCase(),p=true;n&&u!=="map"&&u!=="set"&&new Assertion(r,o,c,true).to.have.property("length");if(n||u!=="date"||l==="date")if(l==="number"||!n&&u!=="number")if(n||u==="date"||u==="number")p=false;else{var h=u==="string"?"'"+r+"'":r;s=i+"expected "+h+" to be a number or a date"}else s=i+"the argument to most must be a number";else s=i+"the argument to most must be a date";if(p)throw new a(s,void 0,c);if(n){var f,d="length";if(u==="map"||u==="set"){d="size";f=r.size}else f=r.length;this.assert(f<=e,"expected #{this} to have a "+d+" at most #{exp} but got #{act}","expected #{this} to have a "+d+" above #{exp}",e,f)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}__name(assertMost,"assertMost");Assertion.addMethod("most",assertMost);Assertion.addMethod("lte",assertMost);Assertion.addMethod("lessThanOrEqual",assertMost);Assertion.addMethod("within",(function(e,t,s){s&&$(this,"message",s);var r,n=$(this,"object"),o=$(this,"doLength"),i=$(this,"message"),c=i?i+": ":"",u=$(this,"ssfi"),l=type(n).toLowerCase(),p=type(e).toLowerCase(),h=type(t).toLowerCase(),f=true,d=p==="date"&&h==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;o&&l!=="map"&&l!=="set"&&new Assertion(n,i,u,true).to.have.property("length");if(o||l!=="date"||p==="date"&&h==="date")if(p==="number"&&h==="number"||!o&&l!=="number")if(o||l==="date"||l==="number")f=false;else{var y=l==="string"?"'"+n+"'":n;r=c+"expected "+y+" to be a number or a date"}else r=c+"the arguments to within must be numbers";else r=c+"the arguments to within must be dates";if(f)throw new a(r,void 0,u);if(o){var g,b="length";if(l==="map"||l==="set"){b="size";g=n.size}else g=n.length;this.assert(g>=e&&g<=t,"expected #{this} to have a "+b+" within "+d,"expected #{this} to not have a "+b+" within "+d)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+d,"expected #{this} to not be within "+d)}));function assertInstanceOf(e,t){t&&$(this,"message",t);var s=$(this,"object");var r=$(this,"ssfi");var n=$(this,"message");try{var o=s instanceof e}catch(t){if(t instanceof TypeError){n=n?n+": ":"";throw new a(n+"The instanceof assertion needs a constructor but "+type(e)+" was given.",void 0,r)}throw t}var i=getName(e);i==null&&(i="an unnamed constructor");this.assert(o,"expected #{this} to be an instance of "+i,"expected #{this} to not be an instance of "+i)}__name(assertInstanceOf,"assertInstanceOf");Assertion.addMethod("instanceof",assertInstanceOf);Assertion.addMethod("instanceOf",assertInstanceOf);function assertProperty(e,t,s){s&&$(this,"message",s);var r=$(this,"nested"),n=$(this,"own"),o=$(this,"message"),i=$(this,"object"),c=$(this,"ssfi"),u=typeof e;o=o?o+": ":"";if(r){if(u!=="string")throw new a(o+"the argument to property must be a string when using nested syntax",void 0,c)}else if(u!=="string"&&u!=="number"&&u!=="symbol")throw new a(o+"the argument to property must be a string, number, or symbol",void 0,c);if(r&&n)throw new a(o+'The "nested" and "own" flags cannot be combined.',void 0,c);if(i===null||i===void 0)throw new a(o+"Target cannot be null or undefined.",void 0,c);var l=$(this,"deep"),p=$(this,"negate"),h=r?getPathInfo(i,e):null,f=r?h.value:i[e],d=l?$(this,"eql"):(e,t)=>e===t;var y="";l&&(y+="deep ");n&&(y+="own ");r&&(y+="nested ");y+="property ";var g;g=n?Object.prototype.hasOwnProperty.call(i,e):r?h.exists:hasProperty(i,e);p&&arguments.length!==1||this.assert(g,"expected #{this} to have "+y+inspect2(e),"expected #{this} to not have "+y+inspect2(e));arguments.length>1&&this.assert(g&&d(t,f),"expected #{this} to have "+y+inspect2(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+y+inspect2(e)+" of #{act}",t,f);$(this,"object",f)}__name(assertProperty,"assertProperty");Assertion.addMethod("property",assertProperty);function assertOwnProperty(e,t,s){$(this,"own",true);assertProperty.apply(this,arguments)}__name(assertOwnProperty,"assertOwnProperty");Assertion.addMethod("ownProperty",assertOwnProperty);Assertion.addMethod("haveOwnProperty",assertOwnProperty);function assertOwnPropertyDescriptor(e,t,s){if(typeof t==="string"){s=t;t=null}s&&$(this,"message",s);var r=$(this,"object");var n=Object.getOwnPropertyDescriptor(Object(r),e);var o=$(this,"eql");n&&t?this.assert(o(t,n),"expected the own property descriptor for "+inspect2(e)+" on #{this} to match "+inspect2(t)+", got "+inspect2(n),"expected the own property descriptor for "+inspect2(e)+" on #{this} to not match "+inspect2(t),t,n,true):this.assert(n,"expected #{this} to have an own property descriptor for "+inspect2(e),"expected #{this} to not have an own property descriptor for "+inspect2(e));$(this,"object",n)}__name(assertOwnPropertyDescriptor,"assertOwnPropertyDescriptor");Assertion.addMethod("ownPropertyDescriptor",assertOwnPropertyDescriptor);Assertion.addMethod("haveOwnPropertyDescriptor",assertOwnPropertyDescriptor);function assertLengthChain(){$(this,"doLength",true)}__name(assertLengthChain,"assertLengthChain");function assertLength(e,t){t&&$(this,"message",t);var s,r=$(this,"object"),n=type(r).toLowerCase(),o=$(this,"message"),a=$(this,"ssfi"),i="length";switch(n){case"map":case"set":i="size";s=r.size;break;default:new Assertion(r,o,a,true).to.have.property("length");s=r.length}this.assert(s==e,"expected #{this} to have a "+i+" of #{exp} but got #{act}","expected #{this} to not have a "+i+" of #{act}",e,s)}__name(assertLength,"assertLength");Assertion.addChainableMethod("length",assertLength,assertLengthChain);Assertion.addChainableMethod("lengthOf",assertLength,assertLengthChain);function assertMatch(e,t){t&&$(this,"message",t);var s=$(this,"object");this.assert(e.exec(s),"expected #{this} to match "+e,"expected #{this} not to match "+e)}__name(assertMatch,"assertMatch");Assertion.addMethod("match",assertMatch);Assertion.addMethod("matches",assertMatch);Assertion.addMethod("string",(function(e,t){t&&$(this,"message",t);var s=$(this,"object"),r=$(this,"message"),n=$(this,"ssfi");new Assertion(s,r,n,true).is.a("string");this.assert(~s.indexOf(e),"expected #{this} to contain "+inspect2(e),"expected #{this} to not contain "+inspect2(e))}));function assertKeys(e){var t,s,r=$(this,"object"),n=type(r),o=type(e),i=$(this,"ssfi"),c=$(this,"deep"),u="",l=true,p=$(this,"message");p=p?p+": ":"";var h=p+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(n==="Map"||n==="Set"){u=c?"deeply ":"";s=[];r.forEach((function(e,t){s.push(t)}));o!=="Array"&&(e=Array.prototype.slice.call(arguments))}else{s=getOwnEnumerableProperties(r);switch(o){case"Array":if(arguments.length>1)throw new a(h,void 0,i);break;case"Object":if(arguments.length>1)throw new a(h,void 0,i);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map((function(e){return typeof e==="symbol"?e:String(e)}))}if(!e.length)throw new a(p+"keys required",void 0,i);var f=e.length,d=$(this,"any"),y=$(this,"all"),g=e,b=c?$(this,"eql"):(e,t)=>e===t;d||y||(y=true);d&&(l=g.some((function(e){return s.some((function(t){return b(e,t)}))})));if(y){l=g.every((function(e){return s.some((function(t){return b(e,t)}))}));$(this,"contains")||(l=l&&e.length==s.length)}if(f>1){e=e.map((function(e){return inspect2(e)}));var m=e.pop();y&&(t=e.join(", ")+", and "+m);d&&(t=e.join(", ")+", or "+m)}else t=inspect2(e[0]);t=(f>1?"keys ":"key ")+t;t=($(this,"contains")?"contain ":"have ")+t;this.assert(l,"expected #{this} to "+u+t,"expected #{this} to not "+u+t,g.slice(0).sort(compareByInspect),s.sort(compareByInspect),true)}__name(assertKeys,"assertKeys");Assertion.addMethod("keys",assertKeys);Assertion.addMethod("key",assertKeys);function assertThrows(e,t,s){s&&$(this,"message",s);var r=$(this,"object"),o=$(this,"ssfi"),a=$(this,"message"),i=$(this,"negate")||false;new Assertion(r,a,o,true).is.a("function");if(e instanceof RegExp||typeof e==="string"){t=e;e=null}var c;try{r()}catch(e){c=e}var u=e===void 0&&t===void 0;var l=Boolean(e&&t);var p=false;var h=false;if(u||!u&&!i){var f="an error";e instanceof Error?f="#{exp}":e&&(f=n.getConstructorName(e));this.assert(c,"expected #{this} to throw "+f,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),c instanceof Error?c.toString():typeof c==="string"?c:c&&n.getConstructorName(c))}if(e&&c){if(e instanceof Error){var d=n.compatibleInstance(c,e);d===i&&(l&&i?p=true:this.assert(i,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c&&!i?" but #{act} was thrown":""),e.toString(),c.toString()))}var y=n.compatibleConstructor(c,e);y===i&&(l&&i?p=true:this.assert(i,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&n.getConstructorName(e),c instanceof Error?c.toString():c&&n.getConstructorName(c)))}if(c&&t!==void 0&&t!==null){var g="including";t instanceof RegExp&&(g="matching");var b=n.compatibleMessage(c,t);b===i&&(l&&i?h=true:this.assert(i,"expected #{this} to throw error "+g+" #{exp} but got #{act}","expected #{this} to throw error not "+g+" #{exp}",t,n.getMessage(c)))}p&&h&&this.assert(i,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&n.getConstructorName(e),c instanceof Error?c.toString():c&&n.getConstructorName(c));$(this,"object",c)}__name(assertThrows,"assertThrows");Assertion.addMethod("throw",assertThrows);Assertion.addMethod("throws",assertThrows);Assertion.addMethod("Throw",assertThrows);function respondTo(e,t){t&&$(this,"message",t);var s=$(this,"object"),r=$(this,"itself"),n="function"!==typeof s||r?s[e]:s.prototype[e];this.assert("function"===typeof n,"expected #{this} to respond to "+inspect2(e),"expected #{this} to not respond to "+inspect2(e))}__name(respondTo,"respondTo");Assertion.addMethod("respondTo",respondTo);Assertion.addMethod("respondsTo",respondTo);Assertion.addProperty("itself",(function(){$(this,"itself",true)}));function satisfy(e,t){t&&$(this,"message",t);var s=$(this,"object");var r=e(s);this.assert(r,"expected #{this} to satisfy "+objDisplay(e),"expected #{this} to not satisfy"+objDisplay(e),!$(this,"negate"),r)}__name(satisfy,"satisfy");Assertion.addMethod("satisfy",satisfy);Assertion.addMethod("satisfies",satisfy);function closeTo(e,t,s){s&&$(this,"message",s);var r=$(this,"object"),n=$(this,"message"),o=$(this,"ssfi");new Assertion(r,n,o,true).is.a("number");if(typeof e!=="number"||typeof t!=="number"){n=n?n+": ":"";var i=t===void 0?", and a delta is required":"";throw new a(n+"the arguments to closeTo or approximately must be numbers"+i,void 0,o)}this.assert(Math.abs(r-e)<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}__name(closeTo,"closeTo");Assertion.addMethod("closeTo",closeTo);Assertion.addMethod("approximately",closeTo);function isSubsetOf(e,t,s,r,n){let o=Array.from(t);let a=Array.from(e);if(!r){if(a.length!==o.length)return false;o=o.slice()}return a.every((function(e,t){if(n)return s?s(e,o[t]):e===o[t];if(!s){var a=o.indexOf(e);if(a===-1)return false;r||o.splice(a,1);return true}return o.some((function(t,n){if(!s(e,t))return false;r||o.splice(n,1);return true}))}))}__name(isSubsetOf,"isSubsetOf");Assertion.addMethod("members",(function(e,t){t&&$(this,"message",t);var s=$(this,"object"),r=$(this,"message"),n=$(this,"ssfi");new Assertion(s,r,n,true).to.be.iterable;new Assertion(e,r,n,true).to.be.iterable;var o=$(this,"contains");var a=$(this,"ordered");var i,c,u;if(o){i=a?"an ordered superset":"a superset";c="expected #{this} to be "+i+" of #{exp}";u="expected #{this} to not be "+i+" of #{exp}"}else{i=a?"ordered members":"members";c="expected #{this} to have the same "+i+" as #{exp}";u="expected #{this} to not have the same "+i+" as #{exp}"}var l=$(this,"deep")?$(this,"eql"):void 0;this.assert(isSubsetOf(e,s,l,o,a),c,u,e,s,true)}));Assertion.addProperty("iterable",(function(e){e&&$(this,"message",e);var t=$(this,"object");this.assert(t!=void 0&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)}));function oneOf(e,t){t&&$(this,"message",t);var s=$(this,"object"),r=$(this,"message"),n=$(this,"ssfi"),o=$(this,"contains"),a=$(this,"deep"),i=$(this,"eql");new Assertion(e,r,n,true).to.be.an("array");o?this.assert(e.some((function(e){return s.indexOf(e)>-1})),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,s):a?this.assert(e.some((function(e){return i(s,e)})),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,s):this.assert(e.indexOf(s)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,s)}__name(oneOf,"oneOf");Assertion.addMethod("oneOf",oneOf);function assertChanges(e,t,s){s&&$(this,"message",s);var r=$(this,"object"),n=$(this,"message"),o=$(this,"ssfi");new Assertion(r,n,o,true).is.a("function");var a;if(t){new Assertion(e,n,o,true).to.have.property(t);a=e[t]}else{new Assertion(e,n,o,true).is.a("function");a=e()}r();var i=t===void 0||t===null?e():e[t];var c=t===void 0||t===null?a:"."+t;$(this,"deltaMsgObj",c);$(this,"initialDeltaValue",a);$(this,"finalDeltaValue",i);$(this,"deltaBehavior","change");$(this,"realDelta",i!==a);this.assert(a!==i,"expected "+c+" to change","expected "+c+" to not change")}__name(assertChanges,"assertChanges");Assertion.addMethod("change",assertChanges);Assertion.addMethod("changes",assertChanges);function assertIncreases(e,t,s){s&&$(this,"message",s);var r=$(this,"object"),n=$(this,"message"),o=$(this,"ssfi");new Assertion(r,n,o,true).is.a("function");var a;if(t){new Assertion(e,n,o,true).to.have.property(t);a=e[t]}else{new Assertion(e,n,o,true).is.a("function");a=e()}new Assertion(a,n,o,true).is.a("number");r();var i=t===void 0||t===null?e():e[t];var c=t===void 0||t===null?a:"."+t;$(this,"deltaMsgObj",c);$(this,"initialDeltaValue",a);$(this,"finalDeltaValue",i);$(this,"deltaBehavior","increase");$(this,"realDelta",i-a);this.assert(i-a>0,"expected "+c+" to increase","expected "+c+" to not increase")}__name(assertIncreases,"assertIncreases");Assertion.addMethod("increase",assertIncreases);Assertion.addMethod("increases",assertIncreases);function assertDecreases(e,t,s){s&&$(this,"message",s);var r=$(this,"object"),n=$(this,"message"),o=$(this,"ssfi");new Assertion(r,n,o,true).is.a("function");var a;if(t){new Assertion(e,n,o,true).to.have.property(t);a=e[t]}else{new Assertion(e,n,o,true).is.a("function");a=e()}new Assertion(a,n,o,true).is.a("number");r();var i=t===void 0||t===null?e():e[t];var c=t===void 0||t===null?a:"."+t;$(this,"deltaMsgObj",c);$(this,"initialDeltaValue",a);$(this,"finalDeltaValue",i);$(this,"deltaBehavior","decrease");$(this,"realDelta",a-i);this.assert(i-a<0,"expected "+c+" to decrease","expected "+c+" to not decrease")}__name(assertDecreases,"assertDecreases");Assertion.addMethod("decrease",assertDecreases);Assertion.addMethod("decreases",assertDecreases);function assertDelta(e,t){t&&$(this,"message",t);var s=$(this,"deltaMsgObj");var r=$(this,"initialDeltaValue");var n=$(this,"finalDeltaValue");var o=$(this,"deltaBehavior");var a=$(this,"realDelta");var i;i=o==="change"?Math.abs(n-r)===Math.abs(e):a===Math.abs(e);this.assert(i,"expected "+s+" to "+o+" by "+e,"expected "+s+" to not "+o+" by "+e)}__name(assertDelta,"assertDelta");Assertion.addMethod("by",assertDelta);Assertion.addProperty("extensible",(function(){var e=$(this,"object");var t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")}));Assertion.addProperty("sealed",(function(){var e=$(this,"object");var t=e!==Object(e)||Object.isSealed(e);this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")}));Assertion.addProperty("frozen",(function(){var e=$(this,"object");var t=e!==Object(e)||Object.isFrozen(e);this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")}));Assertion.addProperty("finite",(function(e){var t=$(this,"object");this.assert(typeof t==="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")}));function expect(e,t){return new Assertion(e,t)}__name(expect,"expect");expect.fail=function(e,t,s,r){if(arguments.length<2){s=e;e=void 0}s=s||"expect.fail()";throw new a(s,{actual:e,expected:t,operator:r},expect.fail)};var _={};__export(_,{Should:()=>G,should:()=>V});function loadShould(){function shouldGetter(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol==="function"&&this instanceof Symbol||typeof BigInt==="function"&&this instanceof BigInt?new Assertion(this.valueOf(),null,shouldGetter):new Assertion(this,null,shouldGetter)}__name(shouldGetter,"shouldGetter");function shouldSetter(e){Object.defineProperty(this,"should",{value:e,enumerable:true,configurable:true,writable:true})}__name(shouldSetter,"shouldSetter");Object.defineProperty(Object.prototype,"should",{set:shouldSetter,get:shouldGetter,configurable:true});var e={};e.fail=function(t,s,r,n){if(arguments.length<2){r=t;t=void 0}r=r||"should.fail()";throw new a(r,{actual:t,expected:s,operator:n},e.fail)};e.equal=function(e,t,s){new Assertion(e,s).to.equal(t)};e.Throw=function(e,t,s,r){new Assertion(e,r).to.Throw(t,s)};e.exist=function(e,t){new Assertion(e,t).to.exist};e.not={};e.not.equal=function(e,t,s){new Assertion(e,s).to.not.equal(t)};e.not.Throw=function(e,t,s,r){new Assertion(e,r).to.not.Throw(t,s)};e.not.exist=function(e,t){new Assertion(e,t).to.not.exist};e.throw=e.Throw;e.not.throw=e.not.Throw;return e}__name(loadShould,"loadShould");var V=loadShould;var G=loadShould;function assert(e,t){var s=new Assertion(null,null,assert,true);s.assert(e,t,"[ negation message unavailable ]")}__name(assert,"assert");assert.fail=function(e,t,s,r){if(arguments.length<2){s=e;e=void 0}s=s||"assert.fail()";throw new a(s,{actual:e,expected:t,operator:r},assert.fail)};assert.isOk=function(e,t){new Assertion(e,t,assert.isOk,true).is.ok};assert.isNotOk=function(e,t){new Assertion(e,t,assert.isNotOk,true).is.not.ok};assert.equal=function(e,t,s){var r=new Assertion(e,s,assert.equal,true);r.assert(t==flag(r,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,true)};assert.notEqual=function(e,t,s){var r=new Assertion(e,s,assert.notEqual,true);r.assert(t!=flag(r,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,true)};assert.strictEqual=function(e,t,s){new Assertion(e,s,assert.strictEqual,true).to.equal(t)};assert.notStrictEqual=function(e,t,s){new Assertion(e,s,assert.notStrictEqual,true).to.not.equal(t)};assert.deepEqual=assert.deepStrictEqual=function(e,t,s){new Assertion(e,s,assert.deepEqual,true).to.eql(t)};assert.notDeepEqual=function(e,t,s){new Assertion(e,s,assert.notDeepEqual,true).to.not.eql(t)};assert.isAbove=function(e,t,s){new Assertion(e,s,assert.isAbove,true).to.be.above(t)};assert.isAtLeast=function(e,t,s){new Assertion(e,s,assert.isAtLeast,true).to.be.least(t)};assert.isBelow=function(e,t,s){new Assertion(e,s,assert.isBelow,true).to.be.below(t)};assert.isAtMost=function(e,t,s){new Assertion(e,s,assert.isAtMost,true).to.be.most(t)};assert.isTrue=function(e,t){new Assertion(e,t,assert.isTrue,true).is.true};assert.isNotTrue=function(e,t){new Assertion(e,t,assert.isNotTrue,true).to.not.equal(true)};assert.isFalse=function(e,t){new Assertion(e,t,assert.isFalse,true).is.false};assert.isNotFalse=function(e,t){new Assertion(e,t,assert.isNotFalse,true).to.not.equal(false)};assert.isNull=function(e,t){new Assertion(e,t,assert.isNull,true).to.equal(null)};assert.isNotNull=function(e,t){new Assertion(e,t,assert.isNotNull,true).to.not.equal(null)};assert.isNaN=function(e,t){new Assertion(e,t,assert.isNaN,true).to.be.NaN};assert.isNotNaN=function(e,t){new Assertion(e,t,assert.isNotNaN,true).not.to.be.NaN};assert.exists=function(e,t){new Assertion(e,t,assert.exists,true).to.exist};assert.notExists=function(e,t){new Assertion(e,t,assert.notExists,true).to.not.exist};assert.isUndefined=function(e,t){new Assertion(e,t,assert.isUndefined,true).to.equal(void 0)};assert.isDefined=function(e,t){new Assertion(e,t,assert.isDefined,true).to.not.equal(void 0)};assert.isCallable=function(e,t){new Assertion(e,t,assert.isCallable,true).is.callable};assert.isNotCallable=function(e,t){new Assertion(e,t,assert.isNotCallable,true).is.not.callable};assert.isObject=function(e,t){new Assertion(e,t,assert.isObject,true).to.be.a("object")};assert.isNotObject=function(e,t){new Assertion(e,t,assert.isNotObject,true).to.not.be.a("object")};assert.isArray=function(e,t){new Assertion(e,t,assert.isArray,true).to.be.an("array")};assert.isNotArray=function(e,t){new Assertion(e,t,assert.isNotArray,true).to.not.be.an("array")};assert.isString=function(e,t){new Assertion(e,t,assert.isString,true).to.be.a("string")};assert.isNotString=function(e,t){new Assertion(e,t,assert.isNotString,true).to.not.be.a("string")};assert.isNumber=function(e,t){new Assertion(e,t,assert.isNumber,true).to.be.a("number")};assert.isNotNumber=function(e,t){new Assertion(e,t,assert.isNotNumber,true).to.not.be.a("number")};assert.isFinite=function(e,t){new Assertion(e,t,assert.isFinite,true).to.be.finite};assert.isBoolean=function(e,t){new Assertion(e,t,assert.isBoolean,true).to.be.a("boolean")};assert.isNotBoolean=function(e,t){new Assertion(e,t,assert.isNotBoolean,true).to.not.be.a("boolean")};assert.typeOf=function(e,t,s){new Assertion(e,s,assert.typeOf,true).to.be.a(t)};assert.notTypeOf=function(e,t,s){new Assertion(e,s,assert.notTypeOf,true).to.not.be.a(t)};assert.instanceOf=function(e,t,s){new Assertion(e,s,assert.instanceOf,true).to.be.instanceOf(t)};assert.notInstanceOf=function(e,t,s){new Assertion(e,s,assert.notInstanceOf,true).to.not.be.instanceOf(t)};assert.include=function(e,t,s){new Assertion(e,s,assert.include,true).include(t)};assert.notInclude=function(e,t,s){new Assertion(e,s,assert.notInclude,true).not.include(t)};assert.deepInclude=function(e,t,s){new Assertion(e,s,assert.deepInclude,true).deep.include(t)};assert.notDeepInclude=function(e,t,s){new Assertion(e,s,assert.notDeepInclude,true).not.deep.include(t)};assert.nestedInclude=function(e,t,s){new Assertion(e,s,assert.nestedInclude,true).nested.include(t)};assert.notNestedInclude=function(e,t,s){new Assertion(e,s,assert.notNestedInclude,true).not.nested.include(t)};assert.deepNestedInclude=function(e,t,s){new Assertion(e,s,assert.deepNestedInclude,true).deep.nested.include(t)};assert.notDeepNestedInclude=function(e,t,s){new Assertion(e,s,assert.notDeepNestedInclude,true).not.deep.nested.include(t)};assert.ownInclude=function(e,t,s){new Assertion(e,s,assert.ownInclude,true).own.include(t)};assert.notOwnInclude=function(e,t,s){new Assertion(e,s,assert.notOwnInclude,true).not.own.include(t)};assert.deepOwnInclude=function(e,t,s){new Assertion(e,s,assert.deepOwnInclude,true).deep.own.include(t)};assert.notDeepOwnInclude=function(e,t,s){new Assertion(e,s,assert.notDeepOwnInclude,true).not.deep.own.include(t)};assert.match=function(e,t,s){new Assertion(e,s,assert.match,true).to.match(t)};assert.notMatch=function(e,t,s){new Assertion(e,s,assert.notMatch,true).to.not.match(t)};assert.property=function(e,t,s){new Assertion(e,s,assert.property,true).to.have.property(t)};assert.notProperty=function(e,t,s){new Assertion(e,s,assert.notProperty,true).to.not.have.property(t)};assert.propertyVal=function(e,t,s,r){new Assertion(e,r,assert.propertyVal,true).to.have.property(t,s)};assert.notPropertyVal=function(e,t,s,r){new Assertion(e,r,assert.notPropertyVal,true).to.not.have.property(t,s)};assert.deepPropertyVal=function(e,t,s,r){new Assertion(e,r,assert.deepPropertyVal,true).to.have.deep.property(t,s)};assert.notDeepPropertyVal=function(e,t,s,r){new Assertion(e,r,assert.notDeepPropertyVal,true).to.not.have.deep.property(t,s)};assert.ownProperty=function(e,t,s){new Assertion(e,s,assert.ownProperty,true).to.have.own.property(t)};assert.notOwnProperty=function(e,t,s){new Assertion(e,s,assert.notOwnProperty,true).to.not.have.own.property(t)};assert.ownPropertyVal=function(e,t,s,r){new Assertion(e,r,assert.ownPropertyVal,true).to.have.own.property(t,s)};assert.notOwnPropertyVal=function(e,t,s,r){new Assertion(e,r,assert.notOwnPropertyVal,true).to.not.have.own.property(t,s)};assert.deepOwnPropertyVal=function(e,t,s,r){new Assertion(e,r,assert.deepOwnPropertyVal,true).to.have.deep.own.property(t,s)};assert.notDeepOwnPropertyVal=function(e,t,s,r){new Assertion(e,r,assert.notDeepOwnPropertyVal,true).to.not.have.deep.own.property(t,s)};assert.nestedProperty=function(e,t,s){new Assertion(e,s,assert.nestedProperty,true).to.have.nested.property(t)};assert.notNestedProperty=function(e,t,s){new Assertion(e,s,assert.notNestedProperty,true).to.not.have.nested.property(t)};assert.nestedPropertyVal=function(e,t,s,r){new Assertion(e,r,assert.nestedPropertyVal,true).to.have.nested.property(t,s)};assert.notNestedPropertyVal=function(e,t,s,r){new Assertion(e,r,assert.notNestedPropertyVal,true).to.not.have.nested.property(t,s)};assert.deepNestedPropertyVal=function(e,t,s,r){new Assertion(e,r,assert.deepNestedPropertyVal,true).to.have.deep.nested.property(t,s)};assert.notDeepNestedPropertyVal=function(e,t,s,r){new Assertion(e,r,assert.notDeepNestedPropertyVal,true).to.not.have.deep.nested.property(t,s)};assert.lengthOf=function(e,t,s){new Assertion(e,s,assert.lengthOf,true).to.have.lengthOf(t)};assert.hasAnyKeys=function(e,t,s){new Assertion(e,s,assert.hasAnyKeys,true).to.have.any.keys(t)};assert.hasAllKeys=function(e,t,s){new Assertion(e,s,assert.hasAllKeys,true).to.have.all.keys(t)};assert.containsAllKeys=function(e,t,s){new Assertion(e,s,assert.containsAllKeys,true).to.contain.all.keys(t)};assert.doesNotHaveAnyKeys=function(e,t,s){new Assertion(e,s,assert.doesNotHaveAnyKeys,true).to.not.have.any.keys(t)};assert.doesNotHaveAllKeys=function(e,t,s){new Assertion(e,s,assert.doesNotHaveAllKeys,true).to.not.have.all.keys(t)};assert.hasAnyDeepKeys=function(e,t,s){new Assertion(e,s,assert.hasAnyDeepKeys,true).to.have.any.deep.keys(t)};assert.hasAllDeepKeys=function(e,t,s){new Assertion(e,s,assert.hasAllDeepKeys,true).to.have.all.deep.keys(t)};assert.containsAllDeepKeys=function(e,t,s){new Assertion(e,s,assert.containsAllDeepKeys,true).to.contain.all.deep.keys(t)};assert.doesNotHaveAnyDeepKeys=function(e,t,s){new Assertion(e,s,assert.doesNotHaveAnyDeepKeys,true).to.not.have.any.deep.keys(t)};assert.doesNotHaveAllDeepKeys=function(e,t,s){new Assertion(e,s,assert.doesNotHaveAllDeepKeys,true).to.not.have.all.deep.keys(t)};assert.throws=function(e,t,s,r){if("string"===typeof t||t instanceof RegExp){s=t;t=null}var n=new Assertion(e,r,assert.throws,true).to.throw(t,s);return flag(n,"object")};assert.doesNotThrow=function(e,t,s,r){if("string"===typeof t||t instanceof RegExp){s=t;t=null}new Assertion(e,r,assert.doesNotThrow,true).to.not.throw(t,s)};assert.operator=function(e,t,s,r){var n;switch(t){case"==":n=e==s;break;case"===":n=e===s;break;case">":n=e>s;break;case">=":n=e>=s;break;case"<":n=e<s;break;case"<=":n=e<=s;break;case"!=":n=e!=s;break;case"!==":n=e!==s;break;default:r=r?r+": ":r;throw new a(r+'Invalid operator "'+t+'"',void 0,assert.operator)}var o=new Assertion(n,r,assert.operator,true);o.assert(true===flag(o,"object"),"expected "+inspect2(e)+" to be "+t+" "+inspect2(s),"expected "+inspect2(e)+" to not be "+t+" "+inspect2(s))};assert.closeTo=function(e,t,s,r){new Assertion(e,r,assert.closeTo,true).to.be.closeTo(t,s)};assert.approximately=function(e,t,s,r){new Assertion(e,r,assert.approximately,true).to.be.approximately(t,s)};assert.sameMembers=function(e,t,s){new Assertion(e,s,assert.sameMembers,true).to.have.same.members(t)};assert.notSameMembers=function(e,t,s){new Assertion(e,s,assert.notSameMembers,true).to.not.have.same.members(t)};assert.sameDeepMembers=function(e,t,s){new Assertion(e,s,assert.sameDeepMembers,true).to.have.same.deep.members(t)};assert.notSameDeepMembers=function(e,t,s){new Assertion(e,s,assert.notSameDeepMembers,true).to.not.have.same.deep.members(t)};assert.sameOrderedMembers=function(e,t,s){new Assertion(e,s,assert.sameOrderedMembers,true).to.have.same.ordered.members(t)};assert.notSameOrderedMembers=function(e,t,s){new Assertion(e,s,assert.notSameOrderedMembers,true).to.not.have.same.ordered.members(t)};assert.sameDeepOrderedMembers=function(e,t,s){new Assertion(e,s,assert.sameDeepOrderedMembers,true).to.have.same.deep.ordered.members(t)};assert.notSameDeepOrderedMembers=function(e,t,s){new Assertion(e,s,assert.notSameDeepOrderedMembers,true).to.not.have.same.deep.ordered.members(t)};assert.includeMembers=function(e,t,s){new Assertion(e,s,assert.includeMembers,true).to.include.members(t)};assert.notIncludeMembers=function(e,t,s){new Assertion(e,s,assert.notIncludeMembers,true).to.not.include.members(t)};assert.includeDeepMembers=function(e,t,s){new Assertion(e,s,assert.includeDeepMembers,true).to.include.deep.members(t)};assert.notIncludeDeepMembers=function(e,t,s){new Assertion(e,s,assert.notIncludeDeepMembers,true).to.not.include.deep.members(t)};assert.includeOrderedMembers=function(e,t,s){new Assertion(e,s,assert.includeOrderedMembers,true).to.include.ordered.members(t)};assert.notIncludeOrderedMembers=function(e,t,s){new Assertion(e,s,assert.notIncludeOrderedMembers,true).to.not.include.ordered.members(t)};assert.includeDeepOrderedMembers=function(e,t,s){new Assertion(e,s,assert.includeDeepOrderedMembers,true).to.include.deep.ordered.members(t)};assert.notIncludeDeepOrderedMembers=function(e,t,s){new Assertion(e,s,assert.notIncludeDeepOrderedMembers,true).to.not.include.deep.ordered.members(t)};assert.oneOf=function(e,t,s){new Assertion(e,s,assert.oneOf,true).to.be.oneOf(t)};assert.isIterable=function(e,t){if(e==void 0||!e[Symbol.iterator]){t=t?`${t} expected ${inspect2(e)} to be an iterable`:`expected ${inspect2(e)} to be an iterable`;throw new a(t,void 0,assert.isIterable)}};assert.changes=function(e,t,s,r){if(arguments.length===3&&typeof t==="function"){r=s;s=null}new Assertion(e,r,assert.changes,true).to.change(t,s)};assert.changesBy=function(e,t,s,r,n){if(arguments.length===4&&typeof t==="function"){var o=r;r=s;n=o}else if(arguments.length===3){r=s;s=null}new Assertion(e,n,assert.changesBy,true).to.change(t,s).by(r)};assert.doesNotChange=function(e,t,s,r){if(arguments.length===3&&typeof t==="function"){r=s;s=null}return new Assertion(e,r,assert.doesNotChange,true).to.not.change(t,s)};assert.changesButNotBy=function(e,t,s,r,n){if(arguments.length===4&&typeof t==="function"){var o=r;r=s;n=o}else if(arguments.length===3){r=s;s=null}new Assertion(e,n,assert.changesButNotBy,true).to.change(t,s).but.not.by(r)};assert.increases=function(e,t,s,r){if(arguments.length===3&&typeof t==="function"){r=s;s=null}return new Assertion(e,r,assert.increases,true).to.increase(t,s)};assert.increasesBy=function(e,t,s,r,n){if(arguments.length===4&&typeof t==="function"){var o=r;r=s;n=o}else if(arguments.length===3){r=s;s=null}new Assertion(e,n,assert.increasesBy,true).to.increase(t,s).by(r)};assert.doesNotIncrease=function(e,t,s,r){if(arguments.length===3&&typeof t==="function"){r=s;s=null}return new Assertion(e,r,assert.doesNotIncrease,true).to.not.increase(t,s)};assert.increasesButNotBy=function(e,t,s,r,n){if(arguments.length===4&&typeof t==="function"){var o=r;r=s;n=o}else if(arguments.length===3){r=s;s=null}new Assertion(e,n,assert.increasesButNotBy,true).to.increase(t,s).but.not.by(r)};assert.decreases=function(e,t,s,r){if(arguments.length===3&&typeof t==="function"){r=s;s=null}return new Assertion(e,r,assert.decreases,true).to.decrease(t,s)};assert.decreasesBy=function(e,t,s,r,n){if(arguments.length===4&&typeof t==="function"){var o=r;r=s;n=o}else if(arguments.length===3){r=s;s=null}new Assertion(e,n,assert.decreasesBy,true).to.decrease(t,s).by(r)};assert.doesNotDecrease=function(e,t,s,r){if(arguments.length===3&&typeof t==="function"){r=s;s=null}return new Assertion(e,r,assert.doesNotDecrease,true).to.not.decrease(t,s)};assert.doesNotDecreaseBy=function(e,t,s,r,n){if(arguments.length===4&&typeof t==="function"){var o=r;r=s;n=o}else if(arguments.length===3){r=s;s=null}return new Assertion(e,n,assert.doesNotDecreaseBy,true).to.not.decrease(t,s).by(r)};assert.decreasesButNotBy=function(e,t,s,r,n){if(arguments.length===4&&typeof t==="function"){var o=r;r=s;n=o}else if(arguments.length===3){r=s;s=null}new Assertion(e,n,assert.decreasesButNotBy,true).to.decrease(t,s).but.not.by(r)};assert.ifError=function(e){if(e)throw e};assert.isExtensible=function(e,t){new Assertion(e,t,assert.isExtensible,true).to.be.extensible};assert.isNotExtensible=function(e,t){new Assertion(e,t,assert.isNotExtensible,true).to.not.be.extensible};assert.isSealed=function(e,t){new Assertion(e,t,assert.isSealed,true).to.be.sealed};assert.isNotSealed=function(e,t){new Assertion(e,t,assert.isNotSealed,true).to.not.be.sealed};assert.isFrozen=function(e,t){new Assertion(e,t,assert.isFrozen,true).to.be.frozen};assert.isNotFrozen=function(e,t){new Assertion(e,t,assert.isNotFrozen,true).to.not.be.frozen};assert.isEmpty=function(e,t){new Assertion(e,t,assert.isEmpty,true).to.be.empty};assert.isNotEmpty=function(e,t){new Assertion(e,t,assert.isNotEmpty,true).to.not.be.empty};__name((function alias(e,t){assert[t]=assert[e];return alias}),"alias")("isOk","ok")("isNotOk","notOk")("throws","throw")("throws","Throw")("isExtensible","extensible")("isNotExtensible","notExtensible")("isSealed","sealed")("isNotSealed","notSealed")("isFrozen","frozen")("isNotFrozen","notFrozen")("isEmpty","empty")("isNotEmpty","notEmpty")("isCallable","isFunction")("isNotCallable","isNotFunction");var K=[];function use(e){const t={AssertionError:a,util:r,config:j,expect:expect,assert:assert,Assertion:Assertion,..._};if(!~K.indexOf(e)){e(t,r);K.push(e)}return t}__name(use,"use");
|
2
|
+
* Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
|
3
|
+
* Original file: /npm/chai@5.1.1/chai.js
|
4
|
+
*
|
5
|
+
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
6
|
+
*/
|
7
|
+
var e="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t=[],n=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o=!1;function i(){o=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0;r<64;++r)t[r]=e[r],n[e.charCodeAt(r)]=r;n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63}function s(e,n,r){for(var o,i,s=[],a=n;a<r;a+=3)o=(e[a]<<16)+(e[a+1]<<8)+e[a+2],s.push(t[(i=o)>>18&63]+t[i>>12&63]+t[i>>6&63]+t[63&i]);return s.join("")}function a(e){var n;o||i();for(var r=e.length,a=r%3,c="",u=[],h=16383,f=0,l=r-a;f<l;f+=h)u.push(s(e,f,f+h>l?l:f+h));return 1===a?(n=e[r-1],c+=t[n>>2],c+=t[n<<4&63],c+="=="):2===a&&(n=(e[r-2]<<8)+e[r-1],c+=t[n>>10],c+=t[n>>4&63],c+=t[n<<2&63],c+="="),u.push(c),u.join("")}function c(e,t,n,r,o){var i,s,a=8*o-r-1,c=(1<<a)-1,u=c>>1,h=-7,f=n?o-1:0,l=n?-1:1,p=e[t+f];for(f+=l,i=p&(1<<-h)-1,p>>=-h,h+=a;h>0;i=256*i+e[t+f],f+=l,h-=8);for(s=i&(1<<-h)-1,i>>=-h,h+=r;h>0;s=256*s+e[t+f],f+=l,h-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=u}return(p?-1:1)*s*Math.pow(2,i-r)}function u(e,t,n,r,o,i){var s,a,c,u=8*i-o-1,h=(1<<u)-1,f=h>>1,l=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,d=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=h):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?l/c:l*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=h?(a=0,s=h):s+f>=1?(a=(t*c-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[n+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[n+p]=255&s,p+=d,s/=256,u-=8);e[n+p-d]|=128*g}var h={}.toString,f=Array.isArray||function(e){return"[object Array]"==h.call(e)};function l(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function p(e,t){if(l()<t)throw new RangeError("Invalid typed array length");return d.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=d.prototype:(null===e&&(e=new d(t)),e.length=t),e}function d(e,t,n){if(!(d.TYPED_ARRAY_SUPPORT||this instanceof d))return new d(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return b(this,e)}return g(this,e,t,n)}function g(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);d.TYPED_ARRAY_SUPPORT?(e=t).__proto__=d.prototype:e=m(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!d.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|x(t,n);e=p(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(v(t)){var n=0|w(t.length);return 0===(e=p(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?p(e,0):m(e,t);if("Buffer"===t.type&&f(t.data))return m(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function y(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function b(e,t){if(y(t),e=p(e,t<0?0:0|w(t)),!d.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function m(e,t){var n=t.length<0?0:0|w(t.length);e=p(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function w(e){if(e>=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|e}function v(e){return!(null==e||!e._isBuffer)}function x(e,t){if(v(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(r)return G(e).length;t=(""+t).toLowerCase(),r=!0}}function O(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return B(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function E(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function P(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=d.from(t,r)),v(t))return 0===t.length?-1:S(e,t,n,r,o);if("number"==typeof t)return t&=255,d.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,o){var i,s=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var h=-1;for(i=n;i<a;i++)if(u(e,i)===u(t,-1===h?0:i-h)){if(-1===h&&(h=i),i-h+1===c)return h*s}else-1!==h&&(i-=i-h),h=-1}else for(n+c>a&&(n=a-c),i=n;i>=0;i--){for(var f=!0,l=0;l<c;l++)if(u(e,i+l)!==u(t,l)){f=!1;break}if(f)return i}return-1}function A(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function M(e,t,n,r){return Z(G(t,e.length-n),e,n,r)}function j(e,t,n,r){return Z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function N(e,t,n,r){return j(e,t,n,r)}function T(e,t,n,r){return Z(W(t),e,n,r)}function k(e,t,n,r){return Z(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function D(e,t,n){return 0===t&&n===e.length?a(e):a(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,c,u=e[o],h=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(h=u);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&u)<<6|63&i)>127&&(h=c);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(c=(15&u)<<12|(63&i)<<6|63&s)>2047&&(c<55296||c>57343)&&(h=c);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(h=c)}null===h?(h=65533,f=1):h>65535&&(h-=65536,r.push(h>>>10&1023|55296),h=56320|1023&h),r.push(h),o+=f}return function(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=I));return n}(r)}d.TYPED_ARRAY_SUPPORT=void 0===e.TYPED_ARRAY_SUPPORT||e.TYPED_ARRAY_SUPPORT,l(),d.poolSize=8192,d._augment=function(e){return e.__proto__=d.prototype,e},d.from=function(e,t,n){return g(null,e,t,n)},d.TYPED_ARRAY_SUPPORT&&(d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&d[Symbol.species]),d.alloc=function(e,t,n){return function(e,t,n,r){return y(t),t<=0?p(e,t):void 0!==n?"string"==typeof r?p(e,t).fill(n,r):p(e,t).fill(n):p(e,t)}(null,e,t,n)},d.allocUnsafe=function(e){return b(null,e)},d.allocUnsafeSlow=function(e){return b(null,e)},d.isBuffer=function(e){return null!=e&&(!!e._isBuffer||J(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&J(e.slice(0,0))}(e))},d.compare=function(e,t){if(!v(e)||!v(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},d.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}},d.concat=function(e,t){if(!f(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return d.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=d.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!v(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},d.byteLength=x,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)E(this,t,t+1);return this},d.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)E(this,t,t+3),E(this,t+1,t+2);return this},d.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var 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},d.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?_(this,0,e):O.apply(this,arguments)},d.prototype.equals=function(e){if(!v(e))throw new TypeError("Argument must be a Buffer");return this===e||0===d.compare(this,e)},d.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},d.prototype.compare=function(e,t,n,r,o){if(!v(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(r,o),u=e.slice(t,n),h=0;h<a;++h)if(c[h]!==u[h]){i=c[h],s=u[h];break}return i<s?-1:s<i?1:0},d.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},d.prototype.indexOf=function(e,t,n){return P(this,e,t,n,!0)},d.prototype.lastIndexOf=function(e,t,n){return P(this,e,t,n,!1)},d.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return A(this,e,t,n);case"utf8":case"utf-8":return M(this,e,t,n);case"ascii":return j(this,e,t,n);case"latin1":case"binary":return N(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function C(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function B(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function R(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=H(e[i]);return o}function z(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function $(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function q(e,t,n,r,o,i){if(!v(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function U(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function F(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Y(e,t,n,r,o){return o||F(e,0,n,4),u(e,t,n,r,23,4),n+4}function V(e,t,n,r,o){return o||F(e,0,n,8),u(e,t,n,r,52,8),n+8}d.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),d.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=d.prototype;else{var o=t-e;n=new d(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},d.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||$(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},d.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||$(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},d.prototype.readUInt8=function(e,t){return t||$(e,1,this.length),this[e]},d.prototype.readUInt16LE=function(e,t){return t||$(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUInt16BE=function(e,t){return t||$(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUInt32LE=function(e,t){return t||$(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUInt32BE=function(e,t){return t||$(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||$(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},d.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||$(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},d.prototype.readInt8=function(e,t){return t||$(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){t||$(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt16BE=function(e,t){t||$(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt32LE=function(e,t){return t||$(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return t||$(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,t){return t||$(e,4,this.length),c(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return t||$(e,4,this.length),c(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return t||$(e,8,this.length),c(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return t||$(e,8,this.length),c(this,e,!1,52,8)},d.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||q(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},d.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||q(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},d.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,1,255,0),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},d.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},d.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},d.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):U(this,e,t,!0),t+4},d.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},d.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);q(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},d.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);q(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},d.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,1,127,-128),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},d.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},d.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):U(this,e,t,!0),t+4},d.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},d.prototype.writeFloatLE=function(e,t,n){return Y(this,e,t,!0,n)},d.prototype.writeFloatBE=function(e,t,n){return Y(this,e,t,!1,n)},d.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},d.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},d.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!d.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},d.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!d.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=v(e)?e:G(new d(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var K=/[^+\/0-9A-Za-z-_]/g;function H(e){return e<16?"0"+e.toString(16):e.toString(16)}function G(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function W(e){return function(e){var t,s,a,c,u,h;o||i();var f=e.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");u="="===e[f-2]?2:"="===e[f-1]?1:0,h=new r(3*f/4-u),a=u>0?f-4:f;var l=0;for(t=0,s=0;t<a;t+=4,s+=3)c=n[e.charCodeAt(t)]<<18|n[e.charCodeAt(t+1)]<<12|n[e.charCodeAt(t+2)]<<6|n[e.charCodeAt(t+3)],h[l++]=c>>16&255,h[l++]=c>>8&255,h[l++]=255&c;return 2===u?(c=n[e.charCodeAt(t)]<<2|n[e.charCodeAt(t+1)]>>4,h[l++]=255&c):1===u&&(c=n[e.charCodeAt(t)]<<10|n[e.charCodeAt(t+1)]<<4|n[e.charCodeAt(t+2)]>>2,h[l++]=c>>8&255,h[l++]=255&c),h}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Z(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function J(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Q(){throw new Error("setTimeout has not been defined")}function X(){throw new Error("clearTimeout has not been defined")}var ee=Q,te=X;function ne(e){if(ee===setTimeout)return setTimeout(e,0);if((ee===Q||!ee)&&setTimeout)return ee=setTimeout,setTimeout(e,0);try{return ee(e,0)}catch(t){try{return ee.call(null,e,0)}catch(t){return ee.call(this,e,0)}}}"function"==typeof e.setTimeout&&(ee=setTimeout),"function"==typeof e.clearTimeout&&(te=clearTimeout);var re,oe=[],ie=!1,se=-1;function ae(){ie&&re&&(ie=!1,re.length?oe=re.concat(oe):se=-1,oe.length&&ce())}function ce(){if(!ie){var e=ne(ae);ie=!0;for(var t=oe.length;t;){for(re=oe,oe=[];++se<t;)re&&re[se].run();se=-1,t=oe.length}re=null,ie=!1,function(e){if(te===clearTimeout)return clearTimeout(e);if((te===X||!te)&&clearTimeout)return te=clearTimeout,clearTimeout(e);try{return te(e)}catch(t){try{return te.call(null,e)}catch(t){return te.call(this,e)}}}(e)}}function ue(e,t){this.fun=e,this.array=t}ue.prototype.run=function(){this.fun.apply(null,this.array)};function he(){}var fe=he,le=he,pe=he,de=he,ge=he,ye=he,be=he;var me=e.performance||{},we=me.now||me.mozNow||me.msNow||me.oNow||me.webkitNow||function(){return(new Date).getTime()};var ve=new Date;var xe,Oe,Ee={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];oe.push(new ue(e,t)),1!==oe.length||ie||ne(ce)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:fe,addListener:le,once:pe,off:de,removeListener:ge,removeAllListeners:ye,emit:be,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*we.call(me),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-ve)/1e3}},Pe=Object.defineProperty,Se=Object.getOwnPropertyNames,Ae=(e,t)=>Pe(e,"name",{value:t,configurable:!0}),Me=(e,t)=>{for(var n in t)Pe(e,n,{get:t[n],enumerable:!0})},je=(xe={"(disabled):util"(){}},function(){return Oe||(0,xe[Se(xe)[0]])((Oe={exports:{}}).exports,Oe),Oe.exports}),Ne={};Me(Ne,{addChainableMethod:()=>Bn,addLengthGuard:()=>En,addMethod:()=>jn,addProperty:()=>xn,checkError:()=>Te,compareByInspect:()=>zn,eql:()=>Zt,expectTypes:()=>Fe,flag:()=>ze,getActual:()=>Ye,getMessage:()=>Ft,getName:()=>Vn,getOperator:()=>Yn,getOwnEnumerableProperties:()=>qn,getOwnEnumerablePropertySymbols:()=>$n,getPathInfo:()=>mn,hasProperty:()=>gn,inspect:()=>Lt,isNaN:()=>Un,isProxyEnabled:()=>vn,isRegExp:()=>Kn,objDisplay:()=>Ut,overwriteChainableMethod:()=>Rn,overwriteMethod:()=>Tn,overwriteProperty:()=>Nn,proxify:()=>An,test:()=>$e,transferFlags:()=>Yt,type:()=>qe});var Te={};function ke(e){return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}function De(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function _e(e,t){return ke(t)&&e===t}function Ie(e,t){return ke(t)?e.constructor===t.constructor||e instanceof t.constructor:!("object"!=typeof t&&"function"!=typeof t||!t.prototype)&&(e.constructor===t||e instanceof t)}function Ce(e,t){const n="string"==typeof e?e:e.message;return De(t)?t.test(n):"string"==typeof t&&-1!==n.indexOf(t)}function Be(e){let t=e;if(ke(e))t=e.constructor.name;else if("function"==typeof e&&(t=e.name,""===t)){t=(new e).name||t}return t}function Re(e){let t="";return e&&e.message?t=e.message:"string"==typeof e&&(t=e),t}function ze(e,t,n){var r=e.__flags||(e.__flags=Object.create(null));if(3!==arguments.length)return r[t];r[t]=n}function $e(e,t){var n=ze(e,"negate"),r=t[0];return n?!r:r}function qe(e){if(void 0===e)return"undefined";if(null===e)return"null";const t=e[Symbol.toStringTag];if("string"==typeof t)return t;return Object.prototype.toString.call(e).slice(8,-1)}Me(Te,{compatibleConstructor:()=>Ie,compatibleInstance:()=>_e,compatibleMessage:()=>Ce,getConstructorName:()=>Be,getMessage:()=>Re}),Ae(ke,"isErrorInstance"),Ae(De,"isRegExp"),Ae(_e,"compatibleInstance"),Ae(Ie,"compatibleConstructor"),Ae(Ce,"compatibleMessage"),Ae(Be,"getConstructorName"),Ae(Re,"getMessage"),Ae(ze,"flag"),Ae($e,"test"),Ae(qe,"type");var Le="captureStackTrace"in Error,Ue=class e extends Error{static{Ae(this,"AssertionError")}message;get name(){return"AssertionError"}get ok(){return!1}constructor(t="Unspecified AssertionError",n,r){super(t),this.message=t,Le&&Error.captureStackTrace(this,r||e);for(const e in n)e in this||(this[e]=n[e])}toJSON(e){return{...this,name:this.name,message:this.message,ok:!1,stack:!1!==e?this.stack:void 0}}};function Fe(e,t){var n=ze(e,"message"),r=ze(e,"ssfi");n=n?n+": ":"",e=ze(e,"object"),(t=t.map((function(e){return e.toLowerCase()}))).sort();var o=t.map((function(e,n){var r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an":"a";return(t.length>1&&n===t.length-1?"or ":"")+r+" "+e})).join(", "),i=qe(e).toLowerCase();if(!t.some((function(e){return i===e})))throw new Ue(n+"object tested must be "+o+", but "+i+" given",void 0,r)}function Ye(e,t){return t.length>4?t[4]:e._obj}Ae(Fe,"expectTypes"),Ae(Ye,"getActual");var Ve={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},Ke={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},He="…";function Ge(e,t){const n=Ve[Ke[t]]||Ve[t]||"";return n?`[${n[0]}m${String(e)}[${n[1]}m`:String(e)}function We({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:s=1/0,seen:a=[],truncate:c=1/0,stylize:u=String}={},h){const f={showHidden:Boolean(e),depth:Number(t),colors:Boolean(n),customInspect:Boolean(r),showProxy:Boolean(o),maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(c),seen:a,inspect:h,stylize:u};return f.colors&&(f.stylize=Ge),f}function Ze(e,t,n=He){e=String(e);const r=n.length,o=e.length;return r>t&&o>r?n:o>t&&o>r?`${e.slice(0,t-r)}${n}`:e}function Je(e,t,n,r=", "){n=n||t.inspect;const o=e.length;if(0===o)return"";const i=t.truncate;let s="",a="",c="";for(let u=0;u<o;u+=1){const o=u+1===e.length,h=u+2===e.length;c=`${He}(${e.length-u})`;const f=e[u];t.truncate=i-s.length-(o?0:r.length);const l=a||n(f,t)+(o?"":r),p=s.length+l.length,d=p+c.length;if(o&&p>i&&s.length+c.length<=i)break;if(!o&&!h&&d>i)break;if(a=o?"":n(e[u+1],t)+(h?"":r),!o&&h&&d>i&&p+a.length>i)break;if(s+=l,!o&&!h&&p+a.length>=i){c=`${He}(${e.length-u-1})`;break}c=""}return`${s}${c}`}function Qe(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Xe([e,t],n){return n.truncate-=2,"string"==typeof e?e=Qe(e):"number"!=typeof e&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,`${e}: ${t=n.inspect(t,n)}`}function et(e,t){const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;const r=Je(e,t);t.truncate-=r.length;let o="";return n.length&&(o=Je(n.map((t=>[t,e[t]])),t,Xe)),`[ ${r}${o?`, ${o}`:""} ]`}Ae(Ge,"colorise"),Ae(We,"normaliseOptions"),Ae(Ze,"truncate"),Ae(Je,"inspectList"),Ae(Qe,"quoteComplexKey"),Ae(Xe,"inspectProperty"),Ae(et,"inspectArray");var tt=Ae((e=>e instanceof d?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name),"getArrayName");function nt(e,t){const n=tt(e);t.truncate-=n.length+4;const r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let o="";for(let n=0;n<e.length;n++){const r=`${t.stylize(Ze(e[n],t.truncate),"number")}${n===e.length-1?"":", "}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){o+=`${He}(${e.length-e[n]+1})`;break}o+=r}let i="";return r.length&&(i=Je(r.map((t=>[t,e[t]])),t,Xe)),`${n}[ ${o}${i?`, ${i}`:""} ]`}function rt(e,t){const n=e.toJSON();if(null===n)return"Invalid Date";const r=n.split("T"),o=r[0];return t.stylize(`${o}T${Ze(r[1],t.truncate-o.length-1)}`,"date")}function ot(e,t){const n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${Ze(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}function it([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,`${e} => ${t=n.inspect(t,n)}`}function st(e){const t=[];return e.forEach(((e,n)=>{t.push([n,e])})),t}function at(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${Je(st(e),t,it)} }`)}Ae(nt,"inspectTypedArray"),Ae(rt,"inspectDate"),Ae(ot,"inspectFunction"),Ae(it,"inspectMapEntry"),Ae(st,"mapToEntries"),Ae(at,"inspectMap");var ct=Number.isNaN||(e=>e!=e);function ut(e,t){return ct(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):0===e?t.stylize(1/e==1/0?"+0":"-0","number"):t.stylize(Ze(String(e),t.truncate),"number")}function ht(e,t){let n=Ze(e.toString(),t.truncate-1);return n!==He&&(n+="n"),t.stylize(n,"bigint")}function ft(e,t){const n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${Ze(o,r)}/${n}`,"regexp")}function lt(e){const t=[];return e.forEach((e=>{t.push(e)})),t}function pt(e,t){return 0===e.size?"Set{}":(t.truncate-=7,`Set{ ${Je(lt(e),t)} }`)}Ae(ut,"inspectNumber"),Ae(ht,"inspectBigInt"),Ae(ft,"inspectRegExp"),Ae(lt,"arrayFromSet"),Ae(pt,"inspectSet");var dt=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),gt={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},yt=16,bt=4;function mt(e){return gt[e]||`\\u${`0000${e.charCodeAt(0).toString(yt)}`.slice(-bt)}`}function wt(e,t){return dt.test(e)&&(e=e.replace(dt,mt)),t.stylize(`'${Ze(e,t.truncate-2)}'`,"string")}function vt(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}Ae(mt,"escape"),Ae(wt,"inspectString"),Ae(vt,"inspectSymbol");var xt=Ae((()=>"Promise{…}"),"getPromiseValue");try{const{getPromiseDetails:e,kPending:t,kRejected:n}=Ee.binding("util");Array.isArray(e(Promise.resolve()))&&(xt=Ae(((r,o)=>{const[i,s]=e(r);return i===t?"Promise{<pending>}":`Promise${i===n?"!":""}{${o.inspect(s,o)}}`}),"getPromiseValue"))}catch(e){}var Ot=xt;function Et(e,t){const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(0===n.length&&0===r.length)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.indexOf(e)>=0)return"[Circular]";t.seen.push(e);const o=Je(n.map((t=>[t,e[t]])),t,Xe),i=Je(r.map((t=>[t,e[t]])),t,Xe);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}Ae(Et,"inspectObject");var Pt=!("undefined"==typeof Symbol||!Symbol.toStringTag)&&Symbol.toStringTag;function St(e,t){let n="";return Pt&&Pt in e&&(n=e[Pt]),n=n||e.constructor.name,n&&"_class"!==n||(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${Et(e,t)}`}function At(e,t){return 0===e.length?"Arguments[]":(t.truncate-=13,`Arguments[ ${Je(e,t)} ]`)}Ae(St,"inspectClass"),Ae(At,"inspectArguments");var Mt=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function jt(e,t){const n=Object.getOwnPropertyNames(e).filter((e=>-1===Mt.indexOf(e))),r=e.name;t.truncate-=r.length;let o="";"string"==typeof e.message?o=Ze(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5;const i=Je(n.map((t=>[t,e[t]])),t,Xe);return`${r}${o}${i?` { ${i} }`:""}`}function Nt([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}function Tt(e,t){return Je(e,t,kt,"\n")}function kt(e,t){const n=e.getAttributeNames(),r=e.tagName.toLowerCase(),o=t.stylize(`<${r}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${r}>`,"special");t.truncate-=2*r.length+5;let a="";n.length>0&&(a+=" ",a+=Je(n.map((t=>[t,e.getAttribute(t)])),t,Nt," ")),t.truncate-=a.length;const c=t.truncate;let u=Tt(e.children,t);return u&&u.length>c&&(u=`${He}(${e.children.length})`),`${o}${a}${i}${u}${s}`}Ae(jt,"inspectObject"),Ae(Nt,"inspectAttribute"),Ae(Tt,"inspectHTMLCollection"),Ae(kt,"inspectHTML");var Dt="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",_t=!1;try{const e=je();_t=!!e.inspect&&e.inspect.custom}catch(e){_t=!1}var It=new WeakMap,Ct={},Bt={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:ut,Number:ut,bigint:ht,BigInt:ht,string:wt,String:wt,function:ot,Function:ot,symbol:vt,Symbol:vt,Array:et,Date:rt,Map:at,Set:pt,RegExp:ft,Promise:Ot,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:At,Int8Array:nt,Uint8Array:nt,Uint8ClampedArray:nt,Int16Array:nt,Uint16Array:nt,Int32Array:nt,Uint32Array:nt,Float32Array:nt,Float64Array:nt,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:jt,HTMLCollection:Tt,NodeList:Tt},Rt=Ae(((e,t,n)=>Dt in e&&"function"==typeof e[Dt]?e[Dt](t):_t&&_t in e&&"function"==typeof e[_t]?e[_t](t.depth,t):"inspect"in e&&"function"==typeof e.inspect?e.inspect(t.depth,t):"constructor"in e&&It.has(e.constructor)?It.get(e.constructor)(e,t):Ct[n]?Ct[n](e,t):""),"inspectCustom"),zt=Object.prototype.toString;function $t(e,t={}){const n=We(t,$t),{customInspect:r}=n;let o=null===e?"null":typeof e;if("object"===o&&(o=zt.call(e).slice(8,-1)),o in Bt)return Bt[o](e,n);if(r&&e){const t=Rt(e,n,o);if(t)return"string"==typeof t?t:$t(t,n)}const i=!!e&&Object.getPrototypeOf(e);return i===Object.prototype||null===i?Et(e,n):e&&"function"==typeof HTMLElement&&e instanceof HTMLElement?kt(e,n):"constructor"in e?e.constructor!==Object?St(e,n):Et(e,n):e===Object(e)?Et(e,n):n.stylize(String(e),o)}Ae($t,"inspect");var qt={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Lt(e,t,n,r){return $t(e,{colors:r,depth:void 0===n?2:n,showHidden:t,truncate:qt.truncateThreshold?qt.truncateThreshold:1/0})}function Ut(e){var t=Lt(e),n=Object.prototype.toString.call(e);if(qt.truncateThreshold&&t.length>=qt.truncateThreshold){if("[object Function]"===n)return e.name&&""!==e.name?"[Function: "+e.name+"]":"[Function]";if("[object Array]"===n)return"[ Array("+e.length+") ]";if("[object Object]"===n){var r=Object.keys(e);return"{ Object ("+(r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", "))+") }"}return t}return t}function Ft(e,t){var n=ze(e,"negate"),r=ze(e,"object"),o=t[3],i=Ye(e,t),s=n?t[2]:t[1],a=ze(e,"message");return"function"==typeof s&&(s=s()),s=(s=s||"").replace(/#\{this\}/g,(function(){return Ut(r)})).replace(/#\{act\}/g,(function(){return Ut(i)})).replace(/#\{exp\}/g,(function(){return Ut(o)})),a?a+": "+s:s}function Yt(e,t,n){var r=e.__flags||(e.__flags=Object.create(null));for(var o in t.__flags||(t.__flags=Object.create(null)),n=3!==arguments.length||n,r)(n||"object"!==o&&"ssfi"!==o&&"lockSsfi"!==o&&"message"!=o)&&(t.__flags[o]=r[o])}function Vt(e){if(void 0===e)return"undefined";if(null===e)return"null";const t=e[Symbol.toStringTag];if("string"==typeof t)return t;return Object.prototype.toString.call(e).slice(8,-1)}function Kt(){this._key="chai/deep-eql__"+Math.random()+Date.now()}Ae(Lt,"inspect"),Ae(Ut,"objDisplay"),Ae(Ft,"getMessage"),Ae(Yt,"transferFlags"),Ae(Vt,"type"),Ae(Kt,"FakeMap"),Kt.prototype={get:Ae((function(e){return e[this._key]}),"get"),set:Ae((function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})}),"set")};var Ht="function"==typeof WeakMap?WeakMap:Kt;function Gt(e,t,n){if(!n||pn(e)||pn(t))return null;var r=n.get(e);if(r){var o=r.get(t);if("boolean"==typeof o)return o}return null}function Wt(e,t,n,r){if(n&&!pn(e)&&!pn(t)){var o=n.get(e);o?o.set(t,r):((o=new Ht).set(t,r),n.set(e,o))}}Ae(Gt,"memoizeCompare"),Ae(Wt,"memoizeSet");var Zt=Jt;function Jt(e,t,n){if(n&&n.comparator)return Xt(e,t,n);var r=Qt(e,t);return null!==r?r:Xt(e,t,n)}function Qt(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t||!pn(e)&&!pn(t)&&null}function Xt(e,t,n){(n=n||{}).memoize=!1!==n.memoize&&(n.memoize||new Ht);var r=n&&n.comparator,o=Gt(e,t,n.memoize);if(null!==o)return o;var i=Gt(t,e,n.memoize);if(null!==i)return i;if(r){var s=r(e,t);if(!1===s||!0===s)return Wt(e,t,n.memoize,s),s;var a=Qt(e,t);if(null!==a)return a}var c=Vt(e);if(c!==Vt(t))return Wt(e,t,n.memoize,!1),!1;Wt(e,t,n.memoize,!0);var u=en(e,t,c,n);return Wt(e,t,n.memoize,u),u}function en(e,t,n,r){switch(n){case"String":case"Number":case"Boolean":case"Date":return Jt(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return fn(e,t,["name","message","code"],r);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return rn(e,t,r);case"RegExp":return tn(e,t);case"Generator":return on(e,t,r);case"DataView":return rn(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case"ArrayBuffer":return rn(new Uint8Array(e),new Uint8Array(t),r);case"Set":case"Map":return nn(e,t,r);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default:return ln(e,t,r)}}function tn(e,t){return e.toString()===t.toString()}function nn(e,t,n){if(e.size!==t.size)return!1;if(0===e.size)return!0;var r=[],o=[];return e.forEach(Ae((function(e,t){r.push([e,t])}),"gatherEntries")),t.forEach(Ae((function(e,t){o.push([e,t])}),"gatherEntries")),rn(r.sort(),o.sort(),n)}function rn(e,t,n){var r=e.length;if(r!==t.length)return!1;if(0===r)return!0;for(var o=-1;++o<r;)if(!1===Jt(e[o],t[o],n))return!1;return!0}function on(e,t,n){return rn(cn(e),cn(t),n)}function sn(e){return"undefined"!=typeof Symbol&&"object"==typeof e&&void 0!==Symbol.iterator&&"function"==typeof e[Symbol.iterator]}function an(e){if(sn(e))try{return cn(e[Symbol.iterator]())}catch(e){return[]}return[]}function cn(e){for(var t=e.next(),n=[t.value];!1===t.done;)t=e.next(),n.push(t.value);return n}function un(e){var t=[];for(var n in e)t.push(n);return t}function hn(e){for(var t=[],n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r+=1){var o=n[r];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o)}return t}function fn(e,t,n,r){var o=n.length;if(0===o)return!0;for(var i=0;i<o;i+=1)if(!1===Jt(e[n[i]],t[n[i]],r))return!1;return!0}function ln(e,t,n){var r=un(e),o=un(t),i=hn(e),s=hn(t);if(r=r.concat(i),o=o.concat(s),r.length&&r.length===o.length)return!1!==rn(dn(r).sort(),dn(o).sort())&&fn(e,t,r,n);var a=an(e),c=an(t);return a.length&&a.length===c.length?(a.sort(),c.sort(),rn(a,c,n)):0===r.length&&0===a.length&&0===o.length&&0===c.length}function pn(e){return null===e||"object"!=typeof e}function dn(e){return e.map(Ae((function(e){return"symbol"==typeof e?e.toString():e}),"mapSymbol"))}function gn(e,t){return null!=e&&t in Object(e)}function yn(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((e=>{if("constructor"===e||"__proto__"===e||"prototype"===e)return{};const t=/^\[(\d+)\]$/.exec(e);let n=null;return n=t?{i:parseFloat(t[1])}:{p:e.replace(/\\([.[\]])/g,"$1")},n}))}function bn(e,t,n){let r=e,o=null;n=void 0===n?t.length:n;for(let e=0;e<n;e++){const i=t[e];r&&(r=void 0===i.p?r[i.i]:r[i.p],e===n-1&&(o=r))}return o}function mn(e,t){const n=yn(t),r=n[n.length-1],o={parent:n.length>1?bn(e,n,n.length-1):e,name:r.p||r.i,value:bn(e,n)};return o.exists=gn(o.parent,o.name),o}function wn(e,t,n,r){return ze(this,"ssfi",n||wn),ze(this,"lockSsfi",r),ze(this,"object",e),ze(this,"message",t),ze(this,"eql",qt.deepEqual||Zt),An(this)}function vn(){return qt.useProxy&&"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect}function xn(e,t,n){n=void 0===n?function(){}:n,Object.defineProperty(e,t,{get:Ae((function e(){vn()||ze(this,"lockSsfi")||ze(this,"ssfi",e);var t=n.call(this);if(void 0!==t)return t;var r=new wn;return Yt(this,r),r}),"propertyGetter"),configurable:!0})}Ae(Jt,"deepEqual"),Ae(Qt,"simpleEqual"),Ae(Xt,"extensiveDeepEqual"),Ae(en,"extensiveDeepEqualByType"),Ae(tn,"regexpEqual"),Ae(nn,"entriesEqual"),Ae(rn,"iterableEqual"),Ae(on,"generatorEqual"),Ae(sn,"hasIteratorFunction"),Ae(an,"getIteratorEntries"),Ae(cn,"getGeneratorEntries"),Ae(un,"getEnumerableKeys"),Ae(hn,"getEnumerableSymbols"),Ae(fn,"keysEqual"),Ae(ln,"objectEqual"),Ae(pn,"isPrimitive"),Ae(dn,"mapSymbols"),Ae(gn,"hasProperty"),Ae(yn,"parsePath"),Ae(bn,"internalGetPathValue"),Ae(mn,"getPathInfo"),Ae(wn,"Assertion"),Object.defineProperty(wn,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),qt.includeStack},set:function(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),qt.includeStack=e}}),Object.defineProperty(wn,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),qt.showDiff},set:function(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),qt.showDiff=e}}),wn.addProperty=function(e,t){xn(this.prototype,e,t)},wn.addMethod=function(e,t){jn(this.prototype,e,t)},wn.addChainableMethod=function(e,t,n){Bn(this.prototype,e,t,n)},wn.overwriteProperty=function(e,t){Nn(this.prototype,e,t)},wn.overwriteMethod=function(e,t){Tn(this.prototype,e,t)},wn.overwriteChainableMethod=function(e,t,n){Rn(this.prototype,e,t,n)},wn.prototype.assert=function(e,t,n,r,o,i){var s=$e(this,arguments);if(!1!==i&&(i=!0),void 0===r&&void 0===o&&(i=!1),!0!==qt.showDiff&&(i=!1),!s){t=Ft(this,arguments);var a={actual:Ye(this,arguments),expected:r,showDiff:i},c=Yn(this,arguments);throw c&&(a.operator=c),new Ue(t,a,qt.includeStack?this.assert:ze(this,"ssfi"))}},Object.defineProperty(wn.prototype,"_obj",{get:function(){return ze(this,"object")},set:function(e){ze(this,"object",e)}}),Ae(vn,"isProxyEnabled"),Ae(xn,"addProperty");var On=Object.getOwnPropertyDescriptor((function(){}),"length");function En(e,t,n){return On.configurable?(Object.defineProperty(e,"length",{get:function(){if(n)throw Error("Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.');throw Error("Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')}}),e):e}function Pn(e){var t=Object.getOwnPropertyNames(e);function n(e){-1===t.indexOf(e)&&t.push(e)}Ae(n,"addProperty");for(var r=Object.getPrototypeOf(e);null!==r;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}Ae(En,"addLengthGuard"),Ae(Pn,"getProperties");var Sn=["__flags","__methods","_obj","assert"];function An(e,t){return vn()?new Proxy(e,{get:Ae((function e(n,r){if("string"==typeof r&&-1===qt.proxyExcludedKeys.indexOf(r)&&!Reflect.has(n,r)){if(t)throw Error("Invalid Chai property: "+t+"."+r+'. See docs for proper usage of "'+t+'".');var o=null,i=4;throw Pn(n).forEach((function(e){if(!Object.prototype.hasOwnProperty(e)&&-1===Sn.indexOf(e)){var t=Mn(r,e,i);t<i&&(o=e,i=t)}})),null!==o?Error("Invalid Chai property: "+r+'. Did you mean "'+o+'"?'):Error("Invalid Chai property: "+r)}return-1!==Sn.indexOf(r)||ze(n,"lockSsfi")||ze(n,"ssfi",e),Reflect.get(n,r)}),"proxyGetter")}):e}function Mn(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;for(var r=[],o=0;o<=e.length;o++)r[o]=Array(t.length+1).fill(0),r[o][0]=o;for(var i=0;i<t.length;i++)r[0][i]=i;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1);for(i=1;i<=t.length;i++)Math.abs(o-i)>=n?r[o][i]=n:r[o][i]=Math.min(r[o-1][i]+1,r[o][i-1]+1,r[o-1][i-1]+(s===t.charCodeAt(i-1)?0:1))}return r[e.length][t.length]}function jn(e,t,n){var r=Ae((function(){ze(this,"lockSsfi")||ze(this,"ssfi",r);var e=n.apply(this,arguments);if(void 0!==e)return e;var t=new wn;return Yt(this,t),t}),"methodWrapper");En(r,t,!1),e[t]=An(r,t)}function Nn(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t),o=Ae((function(){}),"_super");r&&"function"==typeof r.get&&(o=r.get),Object.defineProperty(e,t,{get:Ae((function e(){vn()||ze(this,"lockSsfi")||ze(this,"ssfi",e);var t=ze(this,"lockSsfi");ze(this,"lockSsfi",!0);var r=n(o).call(this);if(ze(this,"lockSsfi",t),void 0!==r)return r;var i=new wn;return Yt(this,i),i}),"overwritingPropertyGetter"),configurable:!0})}function Tn(e,t,n){var r=e[t],o=Ae((function(){throw new Error(t+" is not a function")}),"_super");r&&"function"==typeof r&&(o=r);var i=Ae((function(){ze(this,"lockSsfi")||ze(this,"ssfi",i);var e=ze(this,"lockSsfi");ze(this,"lockSsfi",!0);var t=n(o).apply(this,arguments);if(ze(this,"lockSsfi",e),void 0!==t)return t;var r=new wn;return Yt(this,r),r}),"overwritingMethodWrapper");En(i,t,!1),e[t]=An(i,t)}Ae(An,"proxify"),Ae(Mn,"stringDistanceCapped"),Ae(jn,"addMethod"),Ae(Nn,"overwriteProperty"),Ae(Tn,"overwriteMethod");var kn="function"==typeof Object.setPrototypeOf,Dn=Ae((function(){}),"testFn"),_n=Object.getOwnPropertyNames(Dn).filter((function(e){var t=Object.getOwnPropertyDescriptor(Dn,e);return"object"!=typeof t||!t.configurable})),In=Function.prototype.call,Cn=Function.prototype.apply;function Bn(e,t,n,r){"function"!=typeof r&&(r=Ae((function(){}),"chainingBehavior"));var o={method:n,chainingBehavior:r};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:Ae((function(){o.chainingBehavior.call(this);var n=Ae((function(){ze(this,"lockSsfi")||ze(this,"ssfi",n);var e=o.method.apply(this,arguments);if(void 0!==e)return e;var t=new wn;return Yt(this,t),t}),"chainableMethodWrapper");if(En(n,t,!0),kn){var r=Object.create(this);r.call=In,r.apply=Cn,Object.setPrototypeOf(n,r)}else{Object.getOwnPropertyNames(e).forEach((function(t){if(-1===_n.indexOf(t)){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r)}}))}return Yt(this,n),An(n)}),"chainableMethodGetter"),configurable:!0})}function Rn(e,t,n,r){var o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=Ae((function(){var e=r(i).call(this);if(void 0!==e)return e;var t=new wn;return Yt(this,t),t}),"overwritingChainableMethodGetter");var s=o.method;o.method=Ae((function(){var e=n(s).apply(this,arguments);if(void 0!==e)return e;var t=new wn;return Yt(this,t),t}),"overwritingChainableMethodWrapper")}function zn(e,t){return Lt(e)<Lt(t)?-1:1}function $n(e){return"function"!=typeof Object.getOwnPropertySymbols?[]:Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}function qn(e){return Object.keys(e).concat($n(e))}function Ln(e){return e!=e}Ae(Bn,"addChainableMethod"),Ae(Rn,"overwriteChainableMethod"),Ae(zn,"compareByInspect"),Ae($n,"getOwnEnumerablePropertySymbols"),Ae(qn,"getOwnEnumerableProperties"),Ae(Ln,"_isNaN");var Un=Number.isNaN||Ln;function Fn(e){var t=qe(e);return-1!==["Array","Object","Function"].indexOf(t)}function Yn(e,t){var n=ze(e,"operator"),r=ze(e,"negate"),o=t[3],i=r?t[2]:t[1];if(n)return n;if("function"==typeof i&&(i=i()),(i=i||"")&&!/\shave\s/.test(i)){var s=Fn(o);return/\snot\s/.test(i)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}}function Vn(e){return e.name}function Kn(e){return"[object RegExp]"===Object.prototype.toString.call(e)}Ae(Fn,"isObjectType"),Ae(Yn,"getOperator"),Ae(Vn,"getName"),Ae(Kn,"isRegExp");var{flag:Hn}=Ne;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach((function(e){wn.addProperty(e)})),wn.addProperty("not",(function(){Hn(this,"negate",!0)})),wn.addProperty("deep",(function(){Hn(this,"deep",!0)})),wn.addProperty("nested",(function(){Hn(this,"nested",!0)})),wn.addProperty("own",(function(){Hn(this,"own",!0)})),wn.addProperty("ordered",(function(){Hn(this,"ordered",!0)})),wn.addProperty("any",(function(){Hn(this,"any",!0),Hn(this,"all",!1)})),wn.addProperty("all",(function(){Hn(this,"all",!0),Hn(this,"any",!1)}));var Gn={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Wn(e,t){t&&Hn(this,"message",t),e=e.toLowerCase();var n=Hn(this,"object"),r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";const o=qe(n).toLowerCase();Gn.function.includes(e)?this.assert(Gn[e].includes(o),"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e):this.assert(e===o,"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e)}function Zn(e,t){return Un(e)&&Un(t)||e===t}function Jn(){Hn(this,"contains",!0)}function Qn(e,t){t&&Hn(this,"message",t);var n=Hn(this,"object"),r=qe(n).toLowerCase(),o=Hn(this,"message"),i=Hn(this,"negate"),s=Hn(this,"ssfi"),a=Hn(this,"deep"),c=a?"deep ":"",u=a?Hn(this,"eql"):Zn;o=o?o+": ":"";var h=!1;switch(r){case"string":h=-1!==n.indexOf(e);break;case"weakset":if(a)throw new Ue(o+"unable to use .deep.include with WeakSet",void 0,s);h=n.has(e);break;case"map":n.forEach((function(t){h=h||u(t,e)}));break;case"set":a?n.forEach((function(t){h=h||u(t,e)})):h=n.has(e);break;case"array":h=a?n.some((function(t){return u(t,e)})):-1!==n.indexOf(e);break;default:if(e!==Object(e))throw new Ue(o+"the given combination of arguments ("+r+" and "+qe(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+qe(e).toLowerCase(),void 0,s);var f=Object.keys(e),l=null,p=0;if(f.forEach((function(t){var r=new wn(n);if(Yt(this,r,!0),Hn(r,"lockSsfi",!0),i&&1!==f.length)try{r.property(t,e[t])}catch(e){if(!Te.compatibleConstructor(e,Ue))throw e;null===l&&(l=e),p++}else r.property(t,e[t])}),this),i&&f.length>1&&p===f.length)throw l;return}this.assert(h,"expected #{this} to "+c+"include "+Lt(e),"expected #{this} to not "+c+"include "+Lt(e))}function Xn(){var e=Hn(this,"object");this.assert(null!=e,"expected #{this} to exist","expected #{this} to not exist")}function er(){var e=qe(Hn(this,"object"));this.assert("Arguments"===e,"expected #{this} to be arguments but got "+e,"expected #{this} to not be arguments")}function tr(e,t){t&&Hn(this,"message",t);var n=Hn(this,"object");if(Hn(this,"deep")){var r=Hn(this,"lockSsfi");Hn(this,"lockSsfi",!0),this.eql(e),Hn(this,"lockSsfi",r)}else this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}function nr(e,t){t&&Hn(this,"message",t);var n=Hn(this,"eql");this.assert(n(e,Hn(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}function rr(e,t){t&&Hn(this,"message",t);var n,r=Hn(this,"object"),o=Hn(this,"doLength"),i=Hn(this,"message"),s=i?i+": ":"",a=Hn(this,"ssfi"),c=qe(r).toLowerCase(),u=qe(e).toLowerCase(),h=!0;if(o&&"map"!==c&&"set"!==c&&new wn(r,i,a,!0).to.have.property("length"),o||"date"!==c||"date"===u)if("number"===u||!o&&"number"!==c)if(o||"date"===c||"number"===c)h=!1;else{n=s+"expected "+("string"===c?"'"+r+"'":r)+" to be a number or a date"}else n=s+"the argument to above must be a number";else n=s+"the argument to above must be a date";if(h)throw new Ue(n,void 0,a);if(o){var f,l="length";"map"===c||"set"===c?(l="size",f=r.size):f=r.length,this.assert(f>e,"expected #{this} to have a "+l+" above #{exp} but got #{act}","expected #{this} to not have a "+l+" above #{exp}",e,f)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}function or(e,t){t&&Hn(this,"message",t);var n,r=Hn(this,"object"),o=Hn(this,"doLength"),i=Hn(this,"message"),s=i?i+": ":"",a=Hn(this,"ssfi"),c=qe(r).toLowerCase(),u=qe(e).toLowerCase(),h=!0;if(o&&"map"!==c&&"set"!==c&&new wn(r,i,a,!0).to.have.property("length"),o||"date"!==c||"date"===u)if("number"===u||!o&&"number"!==c)if(o||"date"===c||"number"===c)h=!1;else{n=s+"expected "+("string"===c?"'"+r+"'":r)+" to be a number or a date"}else n=s+"the argument to least must be a number";else n=s+"the argument to least must be a date";if(h)throw new Ue(n,void 0,a);if(o){var f,l="length";"map"===c||"set"===c?(l="size",f=r.size):f=r.length,this.assert(f>=e,"expected #{this} to have a "+l+" at least #{exp} but got #{act}","expected #{this} to have a "+l+" below #{exp}",e,f)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}function ir(e,t){t&&Hn(this,"message",t);var n,r=Hn(this,"object"),o=Hn(this,"doLength"),i=Hn(this,"message"),s=i?i+": ":"",a=Hn(this,"ssfi"),c=qe(r).toLowerCase(),u=qe(e).toLowerCase(),h=!0;if(o&&"map"!==c&&"set"!==c&&new wn(r,i,a,!0).to.have.property("length"),o||"date"!==c||"date"===u)if("number"===u||!o&&"number"!==c)if(o||"date"===c||"number"===c)h=!1;else{n=s+"expected "+("string"===c?"'"+r+"'":r)+" to be a number or a date"}else n=s+"the argument to below must be a number";else n=s+"the argument to below must be a date";if(h)throw new Ue(n,void 0,a);if(o){var f,l="length";"map"===c||"set"===c?(l="size",f=r.size):f=r.length,this.assert(f<e,"expected #{this} to have a "+l+" below #{exp} but got #{act}","expected #{this} to not have a "+l+" below #{exp}",e,f)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}function sr(e,t){t&&Hn(this,"message",t);var n,r=Hn(this,"object"),o=Hn(this,"doLength"),i=Hn(this,"message"),s=i?i+": ":"",a=Hn(this,"ssfi"),c=qe(r).toLowerCase(),u=qe(e).toLowerCase(),h=!0;if(o&&"map"!==c&&"set"!==c&&new wn(r,i,a,!0).to.have.property("length"),o||"date"!==c||"date"===u)if("number"===u||!o&&"number"!==c)if(o||"date"===c||"number"===c)h=!1;else{n=s+"expected "+("string"===c?"'"+r+"'":r)+" to be a number or a date"}else n=s+"the argument to most must be a number";else n=s+"the argument to most must be a date";if(h)throw new Ue(n,void 0,a);if(o){var f,l="length";"map"===c||"set"===c?(l="size",f=r.size):f=r.length,this.assert(f<=e,"expected #{this} to have a "+l+" at most #{exp} but got #{act}","expected #{this} to have a "+l+" above #{exp}",e,f)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}function ar(e,t){t&&Hn(this,"message",t);var n=Hn(this,"object"),r=Hn(this,"ssfi"),o=Hn(this,"message");try{var i=n instanceof e}catch(t){if(t instanceof TypeError)throw new Ue((o=o?o+": ":"")+"The instanceof assertion needs a constructor but "+qe(e)+" was given.",void 0,r);throw t}var s=Vn(e);null==s&&(s="an unnamed constructor"),this.assert(i,"expected #{this} to be an instance of "+s,"expected #{this} to not be an instance of "+s)}function cr(e,t,n){n&&Hn(this,"message",n);var r=Hn(this,"nested"),o=Hn(this,"own"),i=Hn(this,"message"),s=Hn(this,"object"),a=Hn(this,"ssfi"),c=typeof e;if(i=i?i+": ":"",r){if("string"!==c)throw new Ue(i+"the argument to property must be a string when using nested syntax",void 0,a)}else if("string"!==c&&"number"!==c&&"symbol"!==c)throw new Ue(i+"the argument to property must be a string, number, or symbol",void 0,a);if(r&&o)throw new Ue(i+'The "nested" and "own" flags cannot be combined.',void 0,a);if(null==s)throw new Ue(i+"Target cannot be null or undefined.",void 0,a);var u,h=Hn(this,"deep"),f=Hn(this,"negate"),l=r?mn(s,e):null,p=r?l.value:s[e],d=h?Hn(this,"eql"):(e,t)=>e===t,g="";h&&(g+="deep "),o&&(g+="own "),r&&(g+="nested "),g+="property ",u=o?Object.prototype.hasOwnProperty.call(s,e):r?l.exists:gn(s,e),f&&1!==arguments.length||this.assert(u,"expected #{this} to have "+g+Lt(e),"expected #{this} to not have "+g+Lt(e)),arguments.length>1&&this.assert(u&&d(t,p),"expected #{this} to have "+g+Lt(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+g+Lt(e)+" of #{act}",t,p),Hn(this,"object",p)}function ur(e,t,n){Hn(this,"own",!0),cr.apply(this,arguments)}function hr(e,t,n){"string"==typeof t&&(n=t,t=null),n&&Hn(this,"message",n);var r=Hn(this,"object"),o=Object.getOwnPropertyDescriptor(Object(r),e),i=Hn(this,"eql");o&&t?this.assert(i(t,o),"expected the own property descriptor for "+Lt(e)+" on #{this} to match "+Lt(t)+", got "+Lt(o),"expected the own property descriptor for "+Lt(e)+" on #{this} to not match "+Lt(t),t,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+Lt(e),"expected #{this} to not have an own property descriptor for "+Lt(e)),Hn(this,"object",o)}function fr(){Hn(this,"doLength",!0)}function lr(e,t){t&&Hn(this,"message",t);var n,r=Hn(this,"object"),o=qe(r).toLowerCase(),i=Hn(this,"message"),s=Hn(this,"ssfi"),a="length";switch(o){case"map":case"set":a="size",n=r.size;break;default:new wn(r,i,s,!0).to.have.property("length"),n=r.length}this.assert(n==e,"expected #{this} to have a "+a+" of #{exp} but got #{act}","expected #{this} to not have a "+a+" of #{act}",e,n)}function pr(e,t){t&&Hn(this,"message",t);var n=Hn(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e)}function dr(e){var t,n,r=Hn(this,"object"),o=qe(r),i=qe(e),s=Hn(this,"ssfi"),a=Hn(this,"deep"),c="",u=!0,h=Hn(this,"message"),f=(h=h?h+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===o||"Set"===o)c=a?"deeply ":"",n=[],r.forEach((function(e,t){n.push(t)})),"Array"!==i&&(e=Array.prototype.slice.call(arguments));else{switch(n=qn(r),i){case"Array":if(arguments.length>1)throw new Ue(f,void 0,s);break;case"Object":if(arguments.length>1)throw new Ue(f,void 0,s);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map((function(e){return"symbol"==typeof e?e:String(e)}))}if(!e.length)throw new Ue(h+"keys required",void 0,s);var l=e.length,p=Hn(this,"any"),d=Hn(this,"all"),g=e,y=a?Hn(this,"eql"):(e,t)=>e===t;if(p||d||(d=!0),p&&(u=g.some((function(e){return n.some((function(t){return y(e,t)}))}))),d&&(u=g.every((function(e){return n.some((function(t){return y(e,t)}))})),Hn(this,"contains")||(u=u&&e.length==n.length)),l>1){var b=(e=e.map((function(e){return Lt(e)}))).pop();d&&(t=e.join(", ")+", and "+b),p&&(t=e.join(", ")+", or "+b)}else t=Lt(e[0]);t=(l>1?"keys ":"key ")+t,t=(Hn(this,"contains")?"contain ":"have ")+t,this.assert(u,"expected #{this} to "+c+t,"expected #{this} to not "+c+t,g.slice(0).sort(zn),n.sort(zn),!0)}function gr(e,t,n){n&&Hn(this,"message",n);var r=Hn(this,"object"),o=Hn(this,"ssfi"),i=Hn(this,"message"),s=Hn(this,"negate")||!1;let a;new wn(r,i,o,!0).is.a("function"),(Kn(e)||"string"==typeof e)&&(t=e,e=null);let c=!1;try{r()}catch(e){c=!0,a=e}var u=void 0===e&&void 0===t,h=Boolean(e&&t),f=!1,l=!1;if(u||!u&&!s){var p="an error";e instanceof Error?p="#{exp}":e&&(p=Te.getConstructorName(e));let t=a;if(a instanceof Error)t=a.toString();else if("string"==typeof a)t=a;else if(a&&("object"==typeof a||"function"==typeof a))try{t=Te.getConstructorName(a)}catch(e){}this.assert(c,"expected #{this} to throw "+p,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),t)}if(e&&a){if(e instanceof Error)Te.compatibleInstance(a,e)===s&&(h&&s?f=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a&&!s?" but #{act} was thrown":""),e.toString(),a.toString()));Te.compatibleConstructor(a,e)===s&&(h&&s?f=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Te.getConstructorName(e),a instanceof Error?a.toString():a&&Te.getConstructorName(a)))}if(a&&null!=t){var d="including";Kn(t)&&(d="matching"),Te.compatibleMessage(a,t)===s&&(h&&s?l=!0:this.assert(s,"expected #{this} to throw error "+d+" #{exp} but got #{act}","expected #{this} to throw error not "+d+" #{exp}",t,Te.getMessage(a)))}f&&l&&this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Te.getConstructorName(e),a instanceof Error?a.toString():a&&Te.getConstructorName(a)),Hn(this,"object",a)}function yr(e,t){t&&Hn(this,"message",t);var n=Hn(this,"object"),r=Hn(this,"itself"),o="function"!=typeof n||r?n[e]:n.prototype[e];this.assert("function"==typeof o,"expected #{this} to respond to "+Lt(e),"expected #{this} to not respond to "+Lt(e))}function br(e,t){t&&Hn(this,"message",t);var n=e(Hn(this,"object"));this.assert(n,"expected #{this} to satisfy "+Ut(e),"expected #{this} to not satisfy"+Ut(e),!Hn(this,"negate"),n)}function mr(e,t,n){n&&Hn(this,"message",n);var r=Hn(this,"object"),o=Hn(this,"message"),i=Hn(this,"ssfi");if(new wn(r,o,i,!0).is.a("number"),"number"!=typeof e||"number"!=typeof t)throw new Ue((o=o?o+": ":"")+"the arguments to closeTo or approximately must be numbers"+(void 0===t?", and a delta is required":""),void 0,i);this.assert(Math.abs(r-e)<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}function wr(e,t,n,r,o){let i=Array.from(t),s=Array.from(e);if(!r){if(s.length!==i.length)return!1;i=i.slice()}return s.every((function(e,t){if(o)return n?n(e,i[t]):e===i[t];if(!n){var s=i.indexOf(e);return-1!==s&&(r||i.splice(s,1),!0)}return i.some((function(t,o){return!!n(e,t)&&(r||i.splice(o,1),!0)}))}))}function vr(e,t){t&&Hn(this,"message",t);var n=Hn(this,"object"),r=Hn(this,"message"),o=Hn(this,"ssfi"),i=Hn(this,"contains"),s=Hn(this,"deep"),a=Hn(this,"eql");new wn(e,r,o,!0).to.be.an("array"),i?this.assert(e.some((function(e){return n.indexOf(e)>-1})),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,n):s?this.assert(e.some((function(e){return a(n,e)})),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,n):this.assert(e.indexOf(n)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,n)}function xr(e,t,n){n&&Hn(this,"message",n);var r,o=Hn(this,"object"),i=Hn(this,"message"),s=Hn(this,"ssfi");new wn(o,i,s,!0).is.a("function"),t?(new wn(e,i,s,!0).to.have.property(t),r=e[t]):(new wn(e,i,s,!0).is.a("function"),r=e()),o();var a=null==t?e():e[t],c=null==t?r:"."+t;Hn(this,"deltaMsgObj",c),Hn(this,"initialDeltaValue",r),Hn(this,"finalDeltaValue",a),Hn(this,"deltaBehavior","change"),Hn(this,"realDelta",a!==r),this.assert(r!==a,"expected "+c+" to change","expected "+c+" to not change")}function Or(e,t,n){n&&Hn(this,"message",n);var r,o=Hn(this,"object"),i=Hn(this,"message"),s=Hn(this,"ssfi");new wn(o,i,s,!0).is.a("function"),t?(new wn(e,i,s,!0).to.have.property(t),r=e[t]):(new wn(e,i,s,!0).is.a("function"),r=e()),new wn(r,i,s,!0).is.a("number"),o();var a=null==t?e():e[t],c=null==t?r:"."+t;Hn(this,"deltaMsgObj",c),Hn(this,"initialDeltaValue",r),Hn(this,"finalDeltaValue",a),Hn(this,"deltaBehavior","increase"),Hn(this,"realDelta",a-r),this.assert(a-r>0,"expected "+c+" to increase","expected "+c+" to not increase")}function Er(e,t,n){n&&Hn(this,"message",n);var r,o=Hn(this,"object"),i=Hn(this,"message"),s=Hn(this,"ssfi");new wn(o,i,s,!0).is.a("function"),t?(new wn(e,i,s,!0).to.have.property(t),r=e[t]):(new wn(e,i,s,!0).is.a("function"),r=e()),new wn(r,i,s,!0).is.a("number"),o();var a=null==t?e():e[t],c=null==t?r:"."+t;Hn(this,"deltaMsgObj",c),Hn(this,"initialDeltaValue",r),Hn(this,"finalDeltaValue",a),Hn(this,"deltaBehavior","decrease"),Hn(this,"realDelta",r-a),this.assert(a-r<0,"expected "+c+" to decrease","expected "+c+" to not decrease")}function Pr(e,t){t&&Hn(this,"message",t);var n,r=Hn(this,"deltaMsgObj"),o=Hn(this,"initialDeltaValue"),i=Hn(this,"finalDeltaValue"),s=Hn(this,"deltaBehavior"),a=Hn(this,"realDelta");n="change"===s?Math.abs(i-o)===Math.abs(e):a===Math.abs(e),this.assert(n,"expected "+r+" to "+s+" by "+e,"expected "+r+" to not "+s+" by "+e)}function Sr(e,t){return new wn(e,t)}Ae(Wn,"an"),wn.addChainableMethod("an",Wn),wn.addChainableMethod("a",Wn),Ae(Zn,"SameValueZero"),Ae(Jn,"includeChainingBehavior"),Ae(Qn,"include"),wn.addChainableMethod("include",Qn,Jn),wn.addChainableMethod("contain",Qn,Jn),wn.addChainableMethod("contains",Qn,Jn),wn.addChainableMethod("includes",Qn,Jn),wn.addProperty("ok",(function(){this.assert(Hn(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")})),wn.addProperty("true",(function(){this.assert(!0===Hn(this,"object"),"expected #{this} to be true","expected #{this} to be false",!Hn(this,"negate"))})),wn.addProperty("callable",(function(){const e=Hn(this,"object"),t=Hn(this,"ssfi"),n=Hn(this,"message"),r=n?`${n}: `:"",o=Hn(this,"negate"),i=o?`${r}expected ${Lt(e)} not to be a callable function`:`${r}expected ${Lt(e)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(qe(e));if(s&&o||!s&&!o)throw new Ue(i,void 0,t)})),wn.addProperty("false",(function(){this.assert(!1===Hn(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!Hn(this,"negate"))})),wn.addProperty("null",(function(){this.assert(null===Hn(this,"object"),"expected #{this} to be null","expected #{this} not to be null")})),wn.addProperty("undefined",(function(){this.assert(void 0===Hn(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")})),wn.addProperty("NaN",(function(){this.assert(Un(Hn(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")})),Ae(Xn,"assertExist"),wn.addProperty("exist",Xn),wn.addProperty("exists",Xn),wn.addProperty("empty",(function(){var e,t=Hn(this,"object"),n=Hn(this,"ssfi"),r=Hn(this,"message");switch(r=r?r+": ":"",qe(t).toLowerCase()){case"array":case"string":e=t.length;break;case"map":case"set":e=t.size;break;case"weakmap":case"weakset":throw new Ue(r+".empty was passed a weak collection",void 0,n);case"function":var o=r+".empty was passed a function "+Vn(t);throw new Ue(o.trim(),void 0,n);default:if(t!==Object(t))throw new Ue(r+".empty was passed non-string primitive "+Lt(t),void 0,n);e=Object.keys(t).length}this.assert(0===e,"expected #{this} to be empty","expected #{this} not to be empty")})),Ae(er,"checkArguments"),wn.addProperty("arguments",er),wn.addProperty("Arguments",er),Ae(tr,"assertEqual"),wn.addMethod("equal",tr),wn.addMethod("equals",tr),wn.addMethod("eq",tr),Ae(nr,"assertEql"),wn.addMethod("eql",nr),wn.addMethod("eqls",nr),Ae(rr,"assertAbove"),wn.addMethod("above",rr),wn.addMethod("gt",rr),wn.addMethod("greaterThan",rr),Ae(or,"assertLeast"),wn.addMethod("least",or),wn.addMethod("gte",or),wn.addMethod("greaterThanOrEqual",or),Ae(ir,"assertBelow"),wn.addMethod("below",ir),wn.addMethod("lt",ir),wn.addMethod("lessThan",ir),Ae(sr,"assertMost"),wn.addMethod("most",sr),wn.addMethod("lte",sr),wn.addMethod("lessThanOrEqual",sr),wn.addMethod("within",(function(e,t,n){n&&Hn(this,"message",n);var r,o=Hn(this,"object"),i=Hn(this,"doLength"),s=Hn(this,"message"),a=s?s+": ":"",c=Hn(this,"ssfi"),u=qe(o).toLowerCase(),h=qe(e).toLowerCase(),f=qe(t).toLowerCase(),l=!0,p="date"===h&&"date"===f?e.toISOString()+".."+t.toISOString():e+".."+t;if(i&&"map"!==u&&"set"!==u&&new wn(o,s,c,!0).to.have.property("length"),i||"date"!==u||"date"===h&&"date"===f)if("number"===h&&"number"===f||!i&&"number"!==u)if(i||"date"===u||"number"===u)l=!1;else{r=a+"expected "+("string"===u?"'"+o+"'":o)+" to be a number or a date"}else r=a+"the arguments to within must be numbers";else r=a+"the arguments to within must be dates";if(l)throw new Ue(r,void 0,c);if(i){var d,g="length";"map"===u||"set"===u?(g="size",d=o.size):d=o.length,this.assert(d>=e&&d<=t,"expected #{this} to have a "+g+" within "+p,"expected #{this} to not have a "+g+" within "+p)}else this.assert(o>=e&&o<=t,"expected #{this} to be within "+p,"expected #{this} to not be within "+p)})),Ae(ar,"assertInstanceOf"),wn.addMethod("instanceof",ar),wn.addMethod("instanceOf",ar),Ae(cr,"assertProperty"),wn.addMethod("property",cr),Ae(ur,"assertOwnProperty"),wn.addMethod("ownProperty",ur),wn.addMethod("haveOwnProperty",ur),Ae(hr,"assertOwnPropertyDescriptor"),wn.addMethod("ownPropertyDescriptor",hr),wn.addMethod("haveOwnPropertyDescriptor",hr),Ae(fr,"assertLengthChain"),Ae(lr,"assertLength"),wn.addChainableMethod("length",lr,fr),wn.addChainableMethod("lengthOf",lr,fr),Ae(pr,"assertMatch"),wn.addMethod("match",pr),wn.addMethod("matches",pr),wn.addMethod("string",(function(e,t){t&&Hn(this,"message",t);var n=Hn(this,"object");new wn(n,Hn(this,"message"),Hn(this,"ssfi"),!0).is.a("string"),this.assert(~n.indexOf(e),"expected #{this} to contain "+Lt(e),"expected #{this} to not contain "+Lt(e))})),Ae(dr,"assertKeys"),wn.addMethod("keys",dr),wn.addMethod("key",dr),Ae(gr,"assertThrows"),wn.addMethod("throw",gr),wn.addMethod("throws",gr),wn.addMethod("Throw",gr),Ae(yr,"respondTo"),wn.addMethod("respondTo",yr),wn.addMethod("respondsTo",yr),wn.addProperty("itself",(function(){Hn(this,"itself",!0)})),Ae(br,"satisfy"),wn.addMethod("satisfy",br),wn.addMethod("satisfies",br),Ae(mr,"closeTo"),wn.addMethod("closeTo",mr),wn.addMethod("approximately",mr),Ae(wr,"isSubsetOf"),wn.addMethod("members",(function(e,t){t&&Hn(this,"message",t);var n=Hn(this,"object"),r=Hn(this,"message"),o=Hn(this,"ssfi");new wn(n,r,o,!0).to.be.iterable,new wn(e,r,o,!0).to.be.iterable;var i,s,a,c=Hn(this,"contains"),u=Hn(this,"ordered");c?(s="expected #{this} to be "+(i=u?"an ordered superset":"a superset")+" of #{exp}",a="expected #{this} to not be "+i+" of #{exp}"):(s="expected #{this} to have the same "+(i=u?"ordered members":"members")+" as #{exp}",a="expected #{this} to not have the same "+i+" as #{exp}");var h=Hn(this,"deep")?Hn(this,"eql"):void 0;this.assert(wr(e,n,h,c,u),s,a,e,n,!0)})),wn.addProperty("iterable",(function(e){e&&Hn(this,"message",e);var t=Hn(this,"object");this.assert(null!=t&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)})),Ae(vr,"oneOf"),wn.addMethod("oneOf",vr),Ae(xr,"assertChanges"),wn.addMethod("change",xr),wn.addMethod("changes",xr),Ae(Or,"assertIncreases"),wn.addMethod("increase",Or),wn.addMethod("increases",Or),Ae(Er,"assertDecreases"),wn.addMethod("decrease",Er),wn.addMethod("decreases",Er),Ae(Pr,"assertDelta"),wn.addMethod("by",Pr),wn.addProperty("extensible",(function(){var e=Hn(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")})),wn.addProperty("sealed",(function(){var e=Hn(this,"object"),t=e!==Object(e)||Object.isSealed(e);this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")})),wn.addProperty("frozen",(function(){var e=Hn(this,"object"),t=e!==Object(e)||Object.isFrozen(e);this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")})),wn.addProperty("finite",(function(e){var t=Hn(this,"object");this.assert("number"==typeof t&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")})),Ae(Sr,"expect"),Sr.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),new Ue(n=n||"expect.fail()",{actual:e,expected:t,operator:r},Sr.fail)};var Ar={};function Mr(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||"function"==typeof Symbol&&this instanceof Symbol||"function"==typeof BigInt&&this instanceof BigInt?new wn(this.valueOf(),null,e):new wn(this,null,e)}function t(e){Object.defineProperty(this,"should",{value:e,enumerable:!0,configurable:!0,writable:!0})}Ae(e,"shouldGetter"),Ae(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});var n={fail:function(e,t,r,o){throw arguments.length<2&&(r=e,e=void 0),new Ue(r=r||"should.fail()",{actual:e,expected:t,operator:o},n.fail)},equal:function(e,t,n){new wn(e,n).to.equal(t)},Throw:function(e,t,n,r){new wn(e,r).to.Throw(t,n)},exist:function(e,t){new wn(e,t).to.exist},not:{}};return n.not.equal=function(e,t,n){new wn(e,n).to.not.equal(t)},n.not.Throw=function(e,t,n,r){new wn(e,r).to.not.Throw(t,n)},n.not.exist=function(e,t){new wn(e,t).to.not.exist},n.throw=n.Throw,n.not.throw=n.not.Throw,n}Me(Ar,{Should:()=>Nr,should:()=>jr}),Ae(Mr,"loadShould");var jr=Mr,Nr=Mr;function Tr(e,t){new wn(null,null,Tr,!0).assert(e,t,"[ negation message unavailable ]")}Ae(Tr,"assert"),Tr.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),new Ue(n=n||"assert.fail()",{actual:e,expected:t,operator:r},Tr.fail)},Tr.isOk=function(e,t){new wn(e,t,Tr.isOk,!0).is.ok},Tr.isNotOk=function(e,t){new wn(e,t,Tr.isNotOk,!0).is.not.ok},Tr.equal=function(e,t,n){var r=new wn(e,n,Tr.equal,!0);r.assert(t==ze(r,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)},Tr.notEqual=function(e,t,n){var r=new wn(e,n,Tr.notEqual,!0);r.assert(t!=ze(r,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)},Tr.strictEqual=function(e,t,n){new wn(e,n,Tr.strictEqual,!0).to.equal(t)},Tr.notStrictEqual=function(e,t,n){new wn(e,n,Tr.notStrictEqual,!0).to.not.equal(t)},Tr.deepEqual=Tr.deepStrictEqual=function(e,t,n){new wn(e,n,Tr.deepEqual,!0).to.eql(t)},Tr.notDeepEqual=function(e,t,n){new wn(e,n,Tr.notDeepEqual,!0).to.not.eql(t)},Tr.isAbove=function(e,t,n){new wn(e,n,Tr.isAbove,!0).to.be.above(t)},Tr.isAtLeast=function(e,t,n){new wn(e,n,Tr.isAtLeast,!0).to.be.least(t)},Tr.isBelow=function(e,t,n){new wn(e,n,Tr.isBelow,!0).to.be.below(t)},Tr.isAtMost=function(e,t,n){new wn(e,n,Tr.isAtMost,!0).to.be.most(t)},Tr.isTrue=function(e,t){new wn(e,t,Tr.isTrue,!0).is.true},Tr.isNotTrue=function(e,t){new wn(e,t,Tr.isNotTrue,!0).to.not.equal(!0)},Tr.isFalse=function(e,t){new wn(e,t,Tr.isFalse,!0).is.false},Tr.isNotFalse=function(e,t){new wn(e,t,Tr.isNotFalse,!0).to.not.equal(!1)},Tr.isNull=function(e,t){new wn(e,t,Tr.isNull,!0).to.equal(null)},Tr.isNotNull=function(e,t){new wn(e,t,Tr.isNotNull,!0).to.not.equal(null)},Tr.isNaN=function(e,t){new wn(e,t,Tr.isNaN,!0).to.be.NaN},Tr.isNotNaN=function(e,t){new wn(e,t,Tr.isNotNaN,!0).not.to.be.NaN},Tr.exists=function(e,t){new wn(e,t,Tr.exists,!0).to.exist},Tr.notExists=function(e,t){new wn(e,t,Tr.notExists,!0).to.not.exist},Tr.isUndefined=function(e,t){new wn(e,t,Tr.isUndefined,!0).to.equal(void 0)},Tr.isDefined=function(e,t){new wn(e,t,Tr.isDefined,!0).to.not.equal(void 0)},Tr.isCallable=function(e,t){new wn(e,t,Tr.isCallable,!0).is.callable},Tr.isNotCallable=function(e,t){new wn(e,t,Tr.isNotCallable,!0).is.not.callable},Tr.isObject=function(e,t){new wn(e,t,Tr.isObject,!0).to.be.a("object")},Tr.isNotObject=function(e,t){new wn(e,t,Tr.isNotObject,!0).to.not.be.a("object")},Tr.isArray=function(e,t){new wn(e,t,Tr.isArray,!0).to.be.an("array")},Tr.isNotArray=function(e,t){new wn(e,t,Tr.isNotArray,!0).to.not.be.an("array")},Tr.isString=function(e,t){new wn(e,t,Tr.isString,!0).to.be.a("string")},Tr.isNotString=function(e,t){new wn(e,t,Tr.isNotString,!0).to.not.be.a("string")},Tr.isNumber=function(e,t){new wn(e,t,Tr.isNumber,!0).to.be.a("number")},Tr.isNotNumber=function(e,t){new wn(e,t,Tr.isNotNumber,!0).to.not.be.a("number")},Tr.isFinite=function(e,t){new wn(e,t,Tr.isFinite,!0).to.be.finite},Tr.isBoolean=function(e,t){new wn(e,t,Tr.isBoolean,!0).to.be.a("boolean")},Tr.isNotBoolean=function(e,t){new wn(e,t,Tr.isNotBoolean,!0).to.not.be.a("boolean")},Tr.typeOf=function(e,t,n){new wn(e,n,Tr.typeOf,!0).to.be.a(t)},Tr.notTypeOf=function(e,t,n){new wn(e,n,Tr.notTypeOf,!0).to.not.be.a(t)},Tr.instanceOf=function(e,t,n){new wn(e,n,Tr.instanceOf,!0).to.be.instanceOf(t)},Tr.notInstanceOf=function(e,t,n){new wn(e,n,Tr.notInstanceOf,!0).to.not.be.instanceOf(t)},Tr.include=function(e,t,n){new wn(e,n,Tr.include,!0).include(t)},Tr.notInclude=function(e,t,n){new wn(e,n,Tr.notInclude,!0).not.include(t)},Tr.deepInclude=function(e,t,n){new wn(e,n,Tr.deepInclude,!0).deep.include(t)},Tr.notDeepInclude=function(e,t,n){new wn(e,n,Tr.notDeepInclude,!0).not.deep.include(t)},Tr.nestedInclude=function(e,t,n){new wn(e,n,Tr.nestedInclude,!0).nested.include(t)},Tr.notNestedInclude=function(e,t,n){new wn(e,n,Tr.notNestedInclude,!0).not.nested.include(t)},Tr.deepNestedInclude=function(e,t,n){new wn(e,n,Tr.deepNestedInclude,!0).deep.nested.include(t)},Tr.notDeepNestedInclude=function(e,t,n){new wn(e,n,Tr.notDeepNestedInclude,!0).not.deep.nested.include(t)},Tr.ownInclude=function(e,t,n){new wn(e,n,Tr.ownInclude,!0).own.include(t)},Tr.notOwnInclude=function(e,t,n){new wn(e,n,Tr.notOwnInclude,!0).not.own.include(t)},Tr.deepOwnInclude=function(e,t,n){new wn(e,n,Tr.deepOwnInclude,!0).deep.own.include(t)},Tr.notDeepOwnInclude=function(e,t,n){new wn(e,n,Tr.notDeepOwnInclude,!0).not.deep.own.include(t)},Tr.match=function(e,t,n){new wn(e,n,Tr.match,!0).to.match(t)},Tr.notMatch=function(e,t,n){new wn(e,n,Tr.notMatch,!0).to.not.match(t)},Tr.property=function(e,t,n){new wn(e,n,Tr.property,!0).to.have.property(t)},Tr.notProperty=function(e,t,n){new wn(e,n,Tr.notProperty,!0).to.not.have.property(t)},Tr.propertyVal=function(e,t,n,r){new wn(e,r,Tr.propertyVal,!0).to.have.property(t,n)},Tr.notPropertyVal=function(e,t,n,r){new wn(e,r,Tr.notPropertyVal,!0).to.not.have.property(t,n)},Tr.deepPropertyVal=function(e,t,n,r){new wn(e,r,Tr.deepPropertyVal,!0).to.have.deep.property(t,n)},Tr.notDeepPropertyVal=function(e,t,n,r){new wn(e,r,Tr.notDeepPropertyVal,!0).to.not.have.deep.property(t,n)},Tr.ownProperty=function(e,t,n){new wn(e,n,Tr.ownProperty,!0).to.have.own.property(t)},Tr.notOwnProperty=function(e,t,n){new wn(e,n,Tr.notOwnProperty,!0).to.not.have.own.property(t)},Tr.ownPropertyVal=function(e,t,n,r){new wn(e,r,Tr.ownPropertyVal,!0).to.have.own.property(t,n)},Tr.notOwnPropertyVal=function(e,t,n,r){new wn(e,r,Tr.notOwnPropertyVal,!0).to.not.have.own.property(t,n)},Tr.deepOwnPropertyVal=function(e,t,n,r){new wn(e,r,Tr.deepOwnPropertyVal,!0).to.have.deep.own.property(t,n)},Tr.notDeepOwnPropertyVal=function(e,t,n,r){new wn(e,r,Tr.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,n)},Tr.nestedProperty=function(e,t,n){new wn(e,n,Tr.nestedProperty,!0).to.have.nested.property(t)},Tr.notNestedProperty=function(e,t,n){new wn(e,n,Tr.notNestedProperty,!0).to.not.have.nested.property(t)},Tr.nestedPropertyVal=function(e,t,n,r){new wn(e,r,Tr.nestedPropertyVal,!0).to.have.nested.property(t,n)},Tr.notNestedPropertyVal=function(e,t,n,r){new wn(e,r,Tr.notNestedPropertyVal,!0).to.not.have.nested.property(t,n)},Tr.deepNestedPropertyVal=function(e,t,n,r){new wn(e,r,Tr.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,n)},Tr.notDeepNestedPropertyVal=function(e,t,n,r){new wn(e,r,Tr.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,n)},Tr.lengthOf=function(e,t,n){new wn(e,n,Tr.lengthOf,!0).to.have.lengthOf(t)},Tr.hasAnyKeys=function(e,t,n){new wn(e,n,Tr.hasAnyKeys,!0).to.have.any.keys(t)},Tr.hasAllKeys=function(e,t,n){new wn(e,n,Tr.hasAllKeys,!0).to.have.all.keys(t)},Tr.containsAllKeys=function(e,t,n){new wn(e,n,Tr.containsAllKeys,!0).to.contain.all.keys(t)},Tr.doesNotHaveAnyKeys=function(e,t,n){new wn(e,n,Tr.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)},Tr.doesNotHaveAllKeys=function(e,t,n){new wn(e,n,Tr.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)},Tr.hasAnyDeepKeys=function(e,t,n){new wn(e,n,Tr.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)},Tr.hasAllDeepKeys=function(e,t,n){new wn(e,n,Tr.hasAllDeepKeys,!0).to.have.all.deep.keys(t)},Tr.containsAllDeepKeys=function(e,t,n){new wn(e,n,Tr.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)},Tr.doesNotHaveAnyDeepKeys=function(e,t,n){new wn(e,n,Tr.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)},Tr.doesNotHaveAllDeepKeys=function(e,t,n){new wn(e,n,Tr.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)},Tr.throws=function(e,t,n,r){return("string"==typeof t||t instanceof RegExp)&&(n=t,t=null),ze(new wn(e,r,Tr.throws,!0).to.throw(t,n),"object")},Tr.doesNotThrow=function(e,t,n,r){("string"==typeof t||t instanceof RegExp)&&(n=t,t=null),new wn(e,r,Tr.doesNotThrow,!0).to.not.throw(t,n)},Tr.operator=function(e,t,n,r){var o;switch(t){case"==":o=e==n;break;case"===":o=e===n;break;case">":o=e>n;break;case">=":o=e>=n;break;case"<":o=e<n;break;case"<=":o=e<=n;break;case"!=":o=e!=n;break;case"!==":o=e!==n;break;default:throw new Ue((r=r?r+": ":r)+'Invalid operator "'+t+'"',void 0,Tr.operator)}var i=new wn(o,r,Tr.operator,!0);i.assert(!0===ze(i,"object"),"expected "+Lt(e)+" to be "+t+" "+Lt(n),"expected "+Lt(e)+" to not be "+t+" "+Lt(n))},Tr.closeTo=function(e,t,n,r){new wn(e,r,Tr.closeTo,!0).to.be.closeTo(t,n)},Tr.approximately=function(e,t,n,r){new wn(e,r,Tr.approximately,!0).to.be.approximately(t,n)},Tr.sameMembers=function(e,t,n){new wn(e,n,Tr.sameMembers,!0).to.have.same.members(t)},Tr.notSameMembers=function(e,t,n){new wn(e,n,Tr.notSameMembers,!0).to.not.have.same.members(t)},Tr.sameDeepMembers=function(e,t,n){new wn(e,n,Tr.sameDeepMembers,!0).to.have.same.deep.members(t)},Tr.notSameDeepMembers=function(e,t,n){new wn(e,n,Tr.notSameDeepMembers,!0).to.not.have.same.deep.members(t)},Tr.sameOrderedMembers=function(e,t,n){new wn(e,n,Tr.sameOrderedMembers,!0).to.have.same.ordered.members(t)},Tr.notSameOrderedMembers=function(e,t,n){new wn(e,n,Tr.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)},Tr.sameDeepOrderedMembers=function(e,t,n){new wn(e,n,Tr.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)},Tr.notSameDeepOrderedMembers=function(e,t,n){new wn(e,n,Tr.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)},Tr.includeMembers=function(e,t,n){new wn(e,n,Tr.includeMembers,!0).to.include.members(t)},Tr.notIncludeMembers=function(e,t,n){new wn(e,n,Tr.notIncludeMembers,!0).to.not.include.members(t)},Tr.includeDeepMembers=function(e,t,n){new wn(e,n,Tr.includeDeepMembers,!0).to.include.deep.members(t)},Tr.notIncludeDeepMembers=function(e,t,n){new wn(e,n,Tr.notIncludeDeepMembers,!0).to.not.include.deep.members(t)},Tr.includeOrderedMembers=function(e,t,n){new wn(e,n,Tr.includeOrderedMembers,!0).to.include.ordered.members(t)},Tr.notIncludeOrderedMembers=function(e,t,n){new wn(e,n,Tr.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)},Tr.includeDeepOrderedMembers=function(e,t,n){new wn(e,n,Tr.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)},Tr.notIncludeDeepOrderedMembers=function(e,t,n){new wn(e,n,Tr.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)},Tr.oneOf=function(e,t,n){new wn(e,n,Tr.oneOf,!0).to.be.oneOf(t)},Tr.isIterable=function(e,t){if(null==e||!e[Symbol.iterator])throw t=t?`${t} expected ${Lt(e)} to be an iterable`:`expected ${Lt(e)} to be an iterable`,new Ue(t,void 0,Tr.isIterable)},Tr.changes=function(e,t,n,r){3===arguments.length&&"function"==typeof t&&(r=n,n=null),new wn(e,r,Tr.changes,!0).to.change(t,n)},Tr.changesBy=function(e,t,n,r,o){if(4===arguments.length&&"function"==typeof t){var i=r;r=n,o=i}else 3===arguments.length&&(r=n,n=null);new wn(e,o,Tr.changesBy,!0).to.change(t,n).by(r)},Tr.doesNotChange=function(e,t,n,r){return 3===arguments.length&&"function"==typeof t&&(r=n,n=null),new wn(e,r,Tr.doesNotChange,!0).to.not.change(t,n)},Tr.changesButNotBy=function(e,t,n,r,o){if(4===arguments.length&&"function"==typeof t){var i=r;r=n,o=i}else 3===arguments.length&&(r=n,n=null);new wn(e,o,Tr.changesButNotBy,!0).to.change(t,n).but.not.by(r)},Tr.increases=function(e,t,n,r){return 3===arguments.length&&"function"==typeof t&&(r=n,n=null),new wn(e,r,Tr.increases,!0).to.increase(t,n)},Tr.increasesBy=function(e,t,n,r,o){if(4===arguments.length&&"function"==typeof t){var i=r;r=n,o=i}else 3===arguments.length&&(r=n,n=null);new wn(e,o,Tr.increasesBy,!0).to.increase(t,n).by(r)},Tr.doesNotIncrease=function(e,t,n,r){return 3===arguments.length&&"function"==typeof t&&(r=n,n=null),new wn(e,r,Tr.doesNotIncrease,!0).to.not.increase(t,n)},Tr.increasesButNotBy=function(e,t,n,r,o){if(4===arguments.length&&"function"==typeof t){var i=r;r=n,o=i}else 3===arguments.length&&(r=n,n=null);new wn(e,o,Tr.increasesButNotBy,!0).to.increase(t,n).but.not.by(r)},Tr.decreases=function(e,t,n,r){return 3===arguments.length&&"function"==typeof t&&(r=n,n=null),new wn(e,r,Tr.decreases,!0).to.decrease(t,n)},Tr.decreasesBy=function(e,t,n,r,o){if(4===arguments.length&&"function"==typeof t){var i=r;r=n,o=i}else 3===arguments.length&&(r=n,n=null);new wn(e,o,Tr.decreasesBy,!0).to.decrease(t,n).by(r)},Tr.doesNotDecrease=function(e,t,n,r){return 3===arguments.length&&"function"==typeof t&&(r=n,n=null),new wn(e,r,Tr.doesNotDecrease,!0).to.not.decrease(t,n)},Tr.doesNotDecreaseBy=function(e,t,n,r,o){if(4===arguments.length&&"function"==typeof t){var i=r;r=n,o=i}else 3===arguments.length&&(r=n,n=null);return new wn(e,o,Tr.doesNotDecreaseBy,!0).to.not.decrease(t,n).by(r)},Tr.decreasesButNotBy=function(e,t,n,r,o){if(4===arguments.length&&"function"==typeof t){var i=r;r=n,o=i}else 3===arguments.length&&(r=n,n=null);new wn(e,o,Tr.decreasesButNotBy,!0).to.decrease(t,n).but.not.by(r)},Tr.ifError=function(e){if(e)throw e},Tr.isExtensible=function(e,t){new wn(e,t,Tr.isExtensible,!0).to.be.extensible},Tr.isNotExtensible=function(e,t){new wn(e,t,Tr.isNotExtensible,!0).to.not.be.extensible},Tr.isSealed=function(e,t){new wn(e,t,Tr.isSealed,!0).to.be.sealed},Tr.isNotSealed=function(e,t){new wn(e,t,Tr.isNotSealed,!0).to.not.be.sealed},Tr.isFrozen=function(e,t){new wn(e,t,Tr.isFrozen,!0).to.be.frozen},Tr.isNotFrozen=function(e,t){new wn(e,t,Tr.isNotFrozen,!0).to.not.be.frozen},Tr.isEmpty=function(e,t){new wn(e,t,Tr.isEmpty,!0).to.be.empty},Tr.isNotEmpty=function(e,t){new wn(e,t,Tr.isNotEmpty,!0).to.not.be.empty},Ae((function e(t,n){return Tr[n]=Tr[t],e}),"alias")("isOk","ok")("isNotOk","notOk")("throws","throw")("throws","Throw")("isExtensible","extensible")("isNotExtensible","notExtensible")("isSealed","sealed")("isNotSealed","notSealed")("isFrozen","frozen")("isNotFrozen","notFrozen")("isEmpty","empty")("isNotEmpty","notEmpty")("isCallable","isFunction")("isNotCallable","isNotFunction");var kr=[];function Dr(e){const t={AssertionError:Ue,util:Ne,config:qt,expect:Sr,assert:Tr,Assertion:wn,...Ar};return~kr.indexOf(e)||(e(t,Ne),kr.push(e)),t}Ae(Dr,"use");
|
8
|
+
/*!
|
9
|
+
* Chai - flag utility
|
10
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
11
|
+
* MIT Licensed
|
12
|
+
*/
|
13
|
+
/*!
|
14
|
+
* Chai - test utility
|
15
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
16
|
+
* MIT Licensed
|
17
|
+
*/
|
18
|
+
/*!
|
19
|
+
* Chai - expectTypes utility
|
20
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
21
|
+
* MIT Licensed
|
22
|
+
*/
|
23
|
+
/*!
|
24
|
+
* Chai - getActual utility
|
25
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
26
|
+
* MIT Licensed
|
27
|
+
*/
|
28
|
+
/*!
|
29
|
+
* Chai - message composition utility
|
30
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
31
|
+
* MIT Licensed
|
32
|
+
*/
|
33
|
+
/*!
|
34
|
+
* Chai - transferFlags utility
|
35
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
36
|
+
* MIT Licensed
|
37
|
+
*/
|
38
|
+
/*!
|
39
|
+
* chai
|
40
|
+
* http://chaijs.com
|
41
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
42
|
+
* MIT Licensed
|
43
|
+
*/
|
44
|
+
/*!
|
45
|
+
* Chai - isProxyEnabled helper
|
46
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
47
|
+
* MIT Licensed
|
48
|
+
*/
|
49
|
+
/*!
|
50
|
+
* Chai - addProperty utility
|
51
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
52
|
+
* MIT Licensed
|
53
|
+
*/
|
54
|
+
/*!
|
55
|
+
* Chai - addLengthGuard utility
|
56
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
57
|
+
* MIT Licensed
|
58
|
+
*/
|
59
|
+
/*!
|
60
|
+
* Chai - getProperties utility
|
61
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
62
|
+
* MIT Licensed
|
63
|
+
*/
|
64
|
+
/*!
|
65
|
+
* Chai - proxify utility
|
66
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
67
|
+
* MIT Licensed
|
68
|
+
*/
|
69
|
+
/*!
|
70
|
+
* Chai - addMethod utility
|
71
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
72
|
+
* MIT Licensed
|
73
|
+
*/
|
74
|
+
/*!
|
75
|
+
* Chai - overwriteProperty utility
|
76
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
77
|
+
* MIT Licensed
|
78
|
+
*/
|
79
|
+
/*!
|
80
|
+
* Chai - overwriteMethod utility
|
81
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
82
|
+
* MIT Licensed
|
83
|
+
*/
|
84
|
+
/*!
|
85
|
+
* Chai - addChainingMethod utility
|
86
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
87
|
+
* MIT Licensed
|
88
|
+
*/
|
89
|
+
/*!
|
90
|
+
* Chai - overwriteChainableMethod utility
|
91
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
92
|
+
* MIT Licensed
|
93
|
+
*/
|
94
|
+
/*!
|
95
|
+
* Chai - compareByInspect utility
|
96
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
97
|
+
* MIT Licensed
|
98
|
+
*/
|
99
|
+
/*!
|
100
|
+
* Chai - getOwnEnumerablePropertySymbols utility
|
101
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
102
|
+
* MIT Licensed
|
103
|
+
*/
|
104
|
+
/*!
|
105
|
+
* Chai - getOwnEnumerableProperties utility
|
106
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
107
|
+
* MIT Licensed
|
108
|
+
*/
|
109
|
+
/*!
|
110
|
+
* Chai - isNaN utility
|
111
|
+
* Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
|
112
|
+
* MIT Licensed
|
113
|
+
*/
|
114
|
+
/*!
|
115
|
+
* chai
|
116
|
+
* Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
|
117
|
+
* MIT Licensed
|
118
|
+
*/
|
119
|
+
/*!
|
120
|
+
* chai
|
121
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
122
|
+
* MIT Licensed
|
123
|
+
*/
|
107
124
|
/*! Bundled license information:
|
108
125
|
|
109
126
|
deep-eql/index.js:
|
@@ -227,5 +244,5 @@ deep-eql/index.js:
|
|
227
244
|
* @param {Mixed} value
|
228
245
|
* @return {Boolean} result
|
229
246
|
*)
|
230
|
-
*/
|
231
|
-
|
247
|
+
*/
|
248
|
+
export{wn as Assertion,Ue as AssertionError,Nr as Should,Tr as assert,qt as config,Sr as expect,jr as should,Dr as use,Ne as util};export default null;
|