@nodetool-ai/sandbox-runtime 0.0.0-stage → 0.8.9-bootstrap.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +24 -2
  2. package/dist/.nodetool-build-stamp +1 -0
  3. package/dist/host-access-gate.d.ts +24 -0
  4. package/dist/host-access-gate.d.ts.map +1 -0
  5. package/dist/host-access-gate.js +31 -0
  6. package/dist/host-access-gate.js.map +1 -0
  7. package/dist/index.d.ts +32 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +318 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/js-sandbox-worker/engine.d.ts +4 -0
  12. package/dist/js-sandbox-worker/engine.d.ts.map +1 -0
  13. package/dist/js-sandbox-worker/engine.js +82 -0
  14. package/dist/js-sandbox-worker/engine.js.map +1 -0
  15. package/dist/js-sandbox-worker/host.d.ts +136 -0
  16. package/dist/js-sandbox-worker/host.d.ts.map +1 -0
  17. package/dist/js-sandbox-worker/host.js +482 -0
  18. package/dist/js-sandbox-worker/host.js.map +1 -0
  19. package/dist/js-sandbox-worker/interpreter.d.ts +276 -0
  20. package/dist/js-sandbox-worker/interpreter.d.ts.map +1 -0
  21. package/dist/js-sandbox-worker/interpreter.js +1318 -0
  22. package/dist/js-sandbox-worker/interpreter.js.map +1 -0
  23. package/dist/js-sandbox-worker/protocol.d.ts +168 -0
  24. package/dist/js-sandbox-worker/protocol.d.ts.map +1 -0
  25. package/dist/js-sandbox-worker/protocol.js +217 -0
  26. package/dist/js-sandbox-worker/protocol.js.map +1 -0
  27. package/dist/js-sandbox-worker/worker-entry.d.ts +26 -0
  28. package/dist/js-sandbox-worker/worker-entry.d.ts.map +1 -0
  29. package/dist/js-sandbox-worker/worker-entry.js +308 -0
  30. package/dist/js-sandbox-worker/worker-entry.js.map +1 -0
  31. package/dist/limits.d.ts +77 -0
  32. package/dist/limits.d.ts.map +1 -0
  33. package/dist/limits.js +56 -0
  34. package/dist/limits.js.map +1 -0
  35. package/dist/sandbox-bootstrap-modules.d.ts +54 -0
  36. package/dist/sandbox-bootstrap-modules.d.ts.map +1 -0
  37. package/dist/sandbox-bootstrap-modules.js +104 -0
  38. package/dist/sandbox-bootstrap-modules.js.map +1 -0
  39. package/dist/sandbox-bytes.d.ts +43 -0
  40. package/dist/sandbox-bytes.d.ts.map +1 -0
  41. package/dist/sandbox-bytes.js +61 -0
  42. package/dist/sandbox-bytes.js.map +1 -0
  43. package/dist/sandbox-canvas-api.d.ts +30 -0
  44. package/dist/sandbox-canvas-api.d.ts.map +1 -0
  45. package/dist/sandbox-canvas-api.js +81 -0
  46. package/dist/sandbox-canvas-api.js.map +1 -0
  47. package/dist/sandbox-constants.d.ts +5 -0
  48. package/dist/sandbox-constants.d.ts.map +1 -0
  49. package/dist/sandbox-constants.js +13 -0
  50. package/dist/sandbox-constants.js.map +1 -0
  51. package/dist/sandbox-json-transport.d.ts +107 -0
  52. package/dist/sandbox-json-transport.d.ts.map +1 -0
  53. package/dist/sandbox-json-transport.js +324 -0
  54. package/dist/sandbox-json-transport.js.map +1 -0
  55. package/dist/timeline-capture.d.ts +21 -0
  56. package/dist/timeline-capture.d.ts.map +1 -0
  57. package/dist/timeline-capture.js +564 -0
  58. package/dist/timeline-capture.js.map +1 -0
  59. package/dist/utils/type-guards.d.ts +26 -0
  60. package/dist/utils/type-guards.d.ts.map +1 -0
  61. package/dist/utils/type-guards.js +44 -0
  62. package/dist/utils/type-guards.js.map +1 -0
  63. package/package.json +138 -4
  64. package/vendor/README.md +17 -0
  65. package/vendor/quickjs/LICENSE +21 -0
  66. package/vendor/quickjs/PROVENANCE.json +8 -0
  67. package/vendor/quickjs/adapter/fetch.d.ts +56 -0
  68. package/vendor/quickjs/adapter/fetch.js +140 -0
  69. package/vendor/quickjs/createTimeInterval.d.ts +9 -0
  70. package/vendor/quickjs/createTimeInterval.js +22 -0
  71. package/vendor/quickjs/createVirtualFileSystem.d.ts +13 -0
  72. package/vendor/quickjs/createVirtualFileSystem.js +191 -0
  73. package/vendor/quickjs/index.d.ts +77 -0
  74. package/vendor/quickjs/index.js +77 -0
  75. package/vendor/quickjs/loadAsyncQuickJs.d.ts +12 -0
  76. package/vendor/quickjs/loadAsyncQuickJs.js +66 -0
  77. package/vendor/quickjs/loadQuickJs.d.ts +12 -0
  78. package/vendor/quickjs/loadQuickJs.js +73 -0
  79. package/vendor/quickjs/modules/assert.d.ts +2 -0
  80. package/vendor/quickjs/modules/assert.js +47 -0
  81. package/vendor/quickjs/modules/buffer.d.ts +2 -0
  82. package/vendor/quickjs/modules/buffer.js +106 -0
  83. package/vendor/quickjs/modules/build/test-lib.js +2 -0
  84. package/vendor/quickjs/modules/events.d.ts +2 -0
  85. package/vendor/quickjs/modules/events.js +4 -0
  86. package/vendor/quickjs/modules/fs.d.ts +2 -0
  87. package/vendor/quickjs/modules/fs.js +76 -0
  88. package/vendor/quickjs/modules/fs_promises.d.ts +2 -0
  89. package/vendor/quickjs/modules/fs_promises.js +328 -0
  90. package/vendor/quickjs/modules/module.d.ts +2 -0
  91. package/vendor/quickjs/modules/module.js +33 -0
  92. package/vendor/quickjs/modules/nodeCompatibility/headers.d.ts +2 -0
  93. package/vendor/quickjs/modules/nodeCompatibility/headers.js +58 -0
  94. package/vendor/quickjs/modules/nodeCompatibility/request.d.ts +2 -0
  95. package/vendor/quickjs/modules/nodeCompatibility/request.js +5 -0
  96. package/vendor/quickjs/modules/nodeCompatibility/response.d.ts +2 -0
  97. package/vendor/quickjs/modules/nodeCompatibility/response.js +5 -0
  98. package/vendor/quickjs/modules/path.d.ts +2 -0
  99. package/vendor/quickjs/modules/path.js +504 -0
  100. package/vendor/quickjs/modules/process.d.ts +2 -0
  101. package/vendor/quickjs/modules/process.js +309 -0
  102. package/vendor/quickjs/modules/punycode.d.ts +2 -0
  103. package/vendor/quickjs/modules/punycode.js +443 -0
  104. package/vendor/quickjs/modules/querystring.d.ts +2 -0
  105. package/vendor/quickjs/modules/querystring.js +15 -0
  106. package/vendor/quickjs/modules/string_decoder.d.ts +2 -0
  107. package/vendor/quickjs/modules/string_decoder.js +223 -0
  108. package/vendor/quickjs/modules/timers.d.ts +2 -0
  109. package/vendor/quickjs/modules/timers.js +10 -0
  110. package/vendor/quickjs/modules/timers_promises.d.ts +2 -0
  111. package/vendor/quickjs/modules/timers_promises.js +40 -0
  112. package/vendor/quickjs/modules/url.d.ts +2 -0
  113. package/vendor/quickjs/modules/url.js +104 -0
  114. package/vendor/quickjs/modules/util.d.ts +2 -0
  115. package/vendor/quickjs/modules/util.js +233 -0
  116. package/vendor/quickjs/package.json +3 -0
  117. package/vendor/quickjs/sandbox/asyncVersion/createAsyncEvalCodeFunction.d.ts +4 -0
  118. package/vendor/quickjs/sandbox/asyncVersion/createAsyncEvalCodeFunction.js +76 -0
  119. package/vendor/quickjs/sandbox/asyncVersion/createAsyncValidateCodeFunction.d.ts +3 -0
  120. package/vendor/quickjs/sandbox/asyncVersion/createAsyncValidateCodeFunction.js +22 -0
  121. package/vendor/quickjs/sandbox/asyncVersion/executeAsyncSandboxFunction.d.ts +12 -0
  122. package/vendor/quickjs/sandbox/asyncVersion/executeAsyncSandboxFunction.js +9 -0
  123. package/vendor/quickjs/sandbox/asyncVersion/getAsyncModuleLoader.d.ts +4 -0
  124. package/vendor/quickjs/sandbox/asyncVersion/getAsyncModuleLoader.js +30 -0
  125. package/vendor/quickjs/sandbox/asyncVersion/modulePathNormalizerAsync.d.ts +2 -0
  126. package/vendor/quickjs/sandbox/asyncVersion/modulePathNormalizerAsync.js +12 -0
  127. package/vendor/quickjs/sandbox/asyncVersion/prepareAsyncNodeCompatibility.d.ts +3 -0
  128. package/vendor/quickjs/sandbox/asyncVersion/prepareAsyncNodeCompatibility.js +11 -0
  129. package/vendor/quickjs/sandbox/asyncVersion/prepareAsyncSandbox.d.ts +4 -0
  130. package/vendor/quickjs/sandbox/asyncVersion/prepareAsyncSandbox.js +10 -0
  131. package/vendor/quickjs/sandbox/expose/expose.d.ts +3 -0
  132. package/vendor/quickjs/sandbox/expose/expose.js +155 -0
  133. package/vendor/quickjs/sandbox/expose/isES2015Class.d.ts +1 -0
  134. package/vendor/quickjs/sandbox/expose/isES2015Class.js +4 -0
  135. package/vendor/quickjs/sandbox/expose/isObject.d.ts +1 -0
  136. package/vendor/quickjs/sandbox/expose/isObject.js +4 -0
  137. package/vendor/quickjs/sandbox/expose/pendingHostPromises.d.ts +6 -0
  138. package/vendor/quickjs/sandbox/expose/pendingHostPromises.js +40 -0
  139. package/vendor/quickjs/sandbox/getMaxIntervalAmount.d.ts +8 -0
  140. package/vendor/quickjs/sandbox/getMaxIntervalAmount.js +12 -0
  141. package/vendor/quickjs/sandbox/getMaxTimeoutAmount.d.ts +8 -0
  142. package/vendor/quickjs/sandbox/getMaxTimeoutAmount.js +12 -0
  143. package/vendor/quickjs/sandbox/handleEvalError.d.ts +2 -0
  144. package/vendor/quickjs/sandbox/handleEvalError.js +21 -0
  145. package/vendor/quickjs/sandbox/handleToNative/handleToNative.d.ts +9 -0
  146. package/vendor/quickjs/sandbox/handleToNative/handleToNative.js +153 -0
  147. package/vendor/quickjs/sandbox/handleToNative/serializer/index.d.ts +10 -0
  148. package/vendor/quickjs/sandbox/handleToNative/serializer/index.js +36 -0
  149. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeArrayBuffer.d.ts +2 -0
  150. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeArrayBuffer.js +4 -0
  151. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeBuffer.d.ts +2 -0
  152. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeBuffer.js +16 -0
  153. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeDate.d.ts +2 -0
  154. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeDate.js +16 -0
  155. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeError.d.ts +2 -0
  156. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeError.js +18 -0
  157. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeHeaders.d.ts +2 -0
  158. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeHeaders.js +17 -0
  159. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeMap.d.ts +2 -0
  160. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeMap.js +18 -0
  161. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeSet.d.ts +2 -0
  162. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeSet.js +16 -0
  163. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeURLSearchParams.d.ts +2 -0
  164. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeURLSearchParams.js +17 -0
  165. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeUrl.d.ts +2 -0
  166. package/vendor/quickjs/sandbox/handleToNative/serializer/serializeUrl.js +17 -0
  167. package/vendor/quickjs/sandbox/helper.d.ts +2 -0
  168. package/vendor/quickjs/sandbox/helper.js +14 -0
  169. package/vendor/quickjs/sandbox/provide/provideConsole.d.ts +6 -0
  170. package/vendor/quickjs/sandbox/provide/provideConsole.js +53 -0
  171. package/vendor/quickjs/sandbox/provide/provideEnv.d.ts +3 -0
  172. package/vendor/quickjs/sandbox/provide/provideEnv.js +10 -0
  173. package/vendor/quickjs/sandbox/provide/provideFs.d.ts +4 -0
  174. package/vendor/quickjs/sandbox/provide/provideFs.js +159 -0
  175. package/vendor/quickjs/sandbox/provide/provideHttp.d.ts +9 -0
  176. package/vendor/quickjs/sandbox/provide/provideHttp.js +42 -0
  177. package/vendor/quickjs/sandbox/provide/provideTimingFunctions.d.ts +7 -0
  178. package/vendor/quickjs/sandbox/provide/provideTimingFunctions.js +119 -0
  179. package/vendor/quickjs/sandbox/setupFileSystem.d.ts +3 -0
  180. package/vendor/quickjs/sandbox/setupFileSystem.js +13 -0
  181. package/vendor/quickjs/sandbox/syncVersion/createEvalCodeFunction.d.ts +4 -0
  182. package/vendor/quickjs/sandbox/syncVersion/createEvalCodeFunction.js +76 -0
  183. package/vendor/quickjs/sandbox/syncVersion/createValidateCodeFunction.d.ts +3 -0
  184. package/vendor/quickjs/sandbox/syncVersion/createValidateCodeFunction.js +22 -0
  185. package/vendor/quickjs/sandbox/syncVersion/executeSandboxFunction.d.ts +12 -0
  186. package/vendor/quickjs/sandbox/syncVersion/executeSandboxFunction.js +9 -0
  187. package/vendor/quickjs/sandbox/syncVersion/getModuleLoader.d.ts +4 -0
  188. package/vendor/quickjs/sandbox/syncVersion/getModuleLoader.js +30 -0
  189. package/vendor/quickjs/sandbox/syncVersion/modulePathNormalizer.d.ts +2 -0
  190. package/vendor/quickjs/sandbox/syncVersion/modulePathNormalizer.js +12 -0
  191. package/vendor/quickjs/sandbox/syncVersion/prepareNodeCompatibility.d.ts +3 -0
  192. package/vendor/quickjs/sandbox/syncVersion/prepareNodeCompatibility.js +11 -0
  193. package/vendor/quickjs/sandbox/syncVersion/prepareSandbox.d.ts +4 -0
  194. package/vendor/quickjs/sandbox/syncVersion/prepareSandbox.js +10 -0
  195. package/vendor/quickjs/types/CodeFunctionInput.d.ts +12 -0
  196. package/vendor/quickjs/types/CodeFunctionInput.js +1 -0
  197. package/vendor/quickjs/types/ErrorResponse.d.ts +9 -0
  198. package/vendor/quickjs/types/ErrorResponse.js +1 -0
  199. package/vendor/quickjs/types/LoadQuickJsOptions.d.ts +3 -0
  200. package/vendor/quickjs/types/LoadQuickJsOptions.js +1 -0
  201. package/vendor/quickjs/types/OkResponse.d.ts +4 -0
  202. package/vendor/quickjs/types/OkResponse.js +1 -0
  203. package/vendor/quickjs/types/OkResponseCheck.d.ts +3 -0
  204. package/vendor/quickjs/types/OkResponseCheck.js +1 -0
  205. package/vendor/quickjs/types/Prettify.d.ts +3 -0
  206. package/vendor/quickjs/types/Prettify.js +1 -0
  207. package/vendor/quickjs/types/RuntimeOptions.d.ts +87 -0
  208. package/vendor/quickjs/types/RuntimeOptions.js +1 -0
  209. package/vendor/quickjs/types/SandboxEvalCode.d.ts +5 -0
  210. package/vendor/quickjs/types/SandboxEvalCode.js +1 -0
  211. package/vendor/quickjs/types/SandboxFunction.d.ts +16 -0
  212. package/vendor/quickjs/types/SandboxFunction.js +1 -0
  213. package/vendor/quickjs/types/SandboxOptions.d.ts +152 -0
  214. package/vendor/quickjs/types/SandboxOptions.js +1 -0
  215. package/vendor/quickjs/types/SandboxValidateCode.d.ts +9 -0
  216. package/vendor/quickjs/types/SandboxValidateCode.js +1 -0
  217. package/vendor/quickjs/types/Serializer.d.ts +2 -0
  218. package/vendor/quickjs/types/Serializer.js +1 -0
@@ -0,0 +1,106 @@
1
+ export default `
2
+ import { TextEncoder, TextDecoder } from 'node:util'
3
+
4
+ class Buffer extends Uint8Array {
5
+ constructor(arg, encoding) {
6
+ if (typeof arg === 'number') {
7
+ super(arg);
8
+ } else if (typeof arg === 'string') {
9
+ super(Buffer._stringToBytes(arg, encoding));
10
+ } else if (arg instanceof ArrayBuffer) {
11
+ super(new Uint8Array(arg));
12
+ } else if (Array.isArray(arg) || arg instanceof Uint8Array) {
13
+ super(arg);
14
+ } else {
15
+ throw new TypeError('Invalid argument type');
16
+ }
17
+ }
18
+
19
+ static from(arg, encoding) {
20
+ if (typeof arg === 'string') {
21
+ return new Buffer(Buffer._stringToBytes(arg, encoding));
22
+ } else if (Array.isArray(arg) || arg instanceof Uint8Array) {
23
+ return new Buffer(arg);
24
+ } else if (arg instanceof ArrayBuffer) {
25
+ return new Buffer(new Uint8Array(arg));
26
+ } else {
27
+ throw new TypeError('Invalid argument type');
28
+ }
29
+ }
30
+
31
+ static alloc(size) {
32
+ return new Buffer(size);
33
+ }
34
+
35
+ static allocUnsafe(size) {
36
+ return new Buffer(size);
37
+ }
38
+
39
+ static concat(buffers, totalLength) {
40
+ if (!Array.isArray(buffers)) {
41
+ throw new TypeError('Argument must be an array of Buffers');
42
+ }
43
+ if (buffers.length === 0) {
44
+ return Buffer.alloc(0);
45
+ }
46
+ if (totalLength === undefined) {
47
+ totalLength = buffers.reduce((acc, buf) => acc + buf.length, 0);
48
+ }
49
+ const result = Buffer.allocUnsafe(totalLength);
50
+ let offset = 0;
51
+ for (const buf of buffers) {
52
+ result.set(buf, offset);
53
+ offset += buf.length;
54
+ }
55
+ return result;
56
+ }
57
+
58
+ toString(encoding) {
59
+ if (encoding === 'base64') {
60
+ return Buffer._bytesToBase64(this);
61
+ } else {
62
+ return Buffer._bytesToString(this, encoding);
63
+ }
64
+ }
65
+
66
+ static _stringToBytes(string, encoding) {
67
+ if (encoding === 'base64') {
68
+ return Buffer._base64ToBytes(string);
69
+ } else {
70
+ return new TextEncoder().encode(string);
71
+ }
72
+ }
73
+
74
+ static _bytesToString(bytes, encoding) {
75
+ if (encoding === 'utf-8' || encoding === undefined) {
76
+ return new TextDecoder(encoding).decode(bytes);
77
+ } else {
78
+ throw new TypeError('Unsupported encoding');
79
+ }
80
+ }
81
+
82
+ static _base64ToBytes(base64) {
83
+ const binaryString = atob(base64);
84
+ const length = binaryString.length;
85
+ const bytes = new Uint8Array(length);
86
+ for (let i = 0; i < length; i++) {
87
+ bytes[i] = binaryString.charCodeAt(i);
88
+ }
89
+ return bytes;
90
+ }
91
+
92
+ static _bytesToBase64(bytes) {
93
+ let binary = '';
94
+ for (let i = 0; i < bytes.length; i++) {
95
+ binary += String.fromCharCode(bytes[i]);
96
+ }
97
+ return btoa(binary);
98
+ }
99
+ }
100
+
101
+ globalThis.Buffer = Buffer
102
+
103
+ export { Buffer }
104
+
105
+ export default Buffer;
106
+ `;
@@ -0,0 +1,2 @@
1
+ var _J=Object.defineProperty,wX=(J,Q,X)=>(Q in J)?_J(J,Q,{enumerable:!0,configurable:!0,writable:!0,value:X}):J[Q]=X,K=(J,Q)=>_J(J,"name",{value:Q,configurable:!0}),vJ=(J,Q)=>{for(var X in Q)_J(J,X,{get:Q[X],enumerable:!0})},LQ=(J,Q,X)=>wX(J,typeof Q!=="symbol"?Q+"":Q,X),t={};vJ(t,{addChainableMethod:()=>iJ,addLengthGuard:()=>n,addMethod:()=>gJ,addProperty:()=>mJ,checkError:()=>M,compareByInspect:()=>JJ,eql:()=>eQ,events:()=>GJ,expectTypes:()=>vQ,flag:()=>I,getActual:()=>ZJ,getMessage:()=>hJ,getName:()=>WJ,getOperator:()=>rJ,getOwnEnumerableProperties:()=>aJ,getOwnEnumerablePropertySymbols:()=>oJ,getPathInfo:()=>cJ,hasProperty:()=>UJ,inspect:()=>N,isNaN:()=>QJ,isNumeric:()=>E,isProxyEnabled:()=>i,isRegExp:()=>XJ,objDisplay:()=>h,overwriteChainableMethod:()=>nJ,overwriteMethod:()=>pJ,overwriteProperty:()=>lJ,proxify:()=>d,test:()=>jJ,transferFlags:()=>x,type:()=>C});var M={};vJ(M,{compatibleConstructor:()=>OQ,compatibleInstance:()=>MQ,compatibleMessage:()=>xQ,getConstructorName:()=>kQ,getMessage:()=>AQ});function $J(J){return J instanceof Error||Object.prototype.toString.call(J)==="[object Error]"}K($J,"isErrorInstance");function HQ(J){return Object.prototype.toString.call(J)==="[object RegExp]"}K(HQ,"isRegExp");function MQ(J,Q){return $J(Q)&&J===Q}K(MQ,"compatibleInstance");function OQ(J,Q){if($J(Q))return J.constructor===Q.constructor||J instanceof Q.constructor;else if((typeof Q==="object"||typeof Q==="function")&&Q.prototype)return J.constructor===Q||J instanceof Q;return!1}K(OQ,"compatibleConstructor");function xQ(J,Q){let X=typeof J==="string"?J:J.message;if(HQ(Q))return Q.test(X);else if(typeof Q==="string")return X.indexOf(Q)!==-1;return!1}K(xQ,"compatibleMessage");function kQ(J){let Q=J;if($J(J))Q=J.constructor.name;else if(typeof J==="function"){if(Q=J.name,Q==="")Q=new J().name||Q}return Q}K(kQ,"getConstructorName");function AQ(J){let Q="";if(J&&J.message)Q=J.message;else if(typeof J==="string")Q=J;return Q}K(AQ,"getMessage");function I(J,Q,X){let Y=J.__flags||(J.__flags=Object.create(null));if(arguments.length===3)Y[Q]=X;else return Y[Q]}K(I,"flag");function jJ(J,Q){let X=I(J,"negate"),Y=Q[0];return X?!Y:Y}K(jJ,"test");function C(J){if(typeof J>"u")return"undefined";if(J===null)return"null";let Q=J[Symbol.toStringTag];if(typeof Q==="string")return Q;return Object.prototype.toString.call(J).slice(8,-1)}K(C,"type");var CX="captureStackTrace"in Error,_Q=class J extends Error{constructor(Q="Unspecified AssertionError",X,Y){super(Q);if(LQ(this,"message"),this.message=Q,CX)Error.captureStackTrace(this,Y||J);for(let $ in X)if(!($ in this))this[$]=X[$]}get name(){return"AssertionError"}get ok(){return!1}toJSON(Q){return{...this,name:this.name,message:this.message,ok:!1,stack:Q!==!1?this.stack:void 0}}};K(_Q,"AssertionError");var w=_Q;function vQ(J,Q){let X=I(J,"message"),Y=I(J,"ssfi");X=X?X+": ":"",J=I(J,"object"),Q=Q.map(function(W){return W.toLowerCase()}),Q.sort();let $=Q.map(function(W,V){let F=~["a","e","i","o","u"].indexOf(W.charAt(0))?"an":"a";return(Q.length>1&&V===Q.length-1?"or ":"")+F+" "+W}).join(", "),G=C(J).toLowerCase();if(!Q.some(function(W){return G===W}))throw new w(X+"object tested must be "+$+", but "+G+" given",void 0,Y)}K(vQ,"expectTypes");function ZJ(J,Q){return Q.length>4?Q[4]:J._obj}K(ZJ,"getActual");var IQ={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"]},PX={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},f="…";function jQ(J,Q){let X=IQ[PX[Q]]||IQ[Q]||"";if(!X)return String(J);return`\x1B[${X[0]}m${String(J)}\x1B[${X[1]}m`}K(jQ,"colorise");function yQ({showHidden:J=!1,depth:Q=2,colors:X=!1,customInspect:Y=!0,showProxy:$=!1,maxArrayLength:G=1/0,breakLength:W=1/0,seen:V=[],truncate:F=1/0,stylize:q=String}={},B){let R={showHidden:Boolean(J),depth:Number(Q),colors:Boolean(X),customInspect:Boolean(Y),showProxy:Boolean($),maxArrayLength:Number(G),breakLength:Number(W),truncate:Number(F),seen:V,inspect:B,stylize:q};if(R.colors)R.stylize=jQ;return R}K(yQ,"normaliseOptions");function hQ(J){return J>="\uD800"&&J<="\uDBFF"}K(hQ,"isHighSurrogate");function _(J,Q,X=f){J=String(J);let Y=X.length,$=J.length;if(Y>Q&&$>Y)return X;if($>Q&&$>Y){let G=Q-Y;if(G>0&&hQ(J[G-1]))G=G-1;return`${J.slice(0,G)}${X}`}return J}K(_,"truncate");function O(J,Q,X,Y=", "){X=X||Q.inspect;let $=J.length;if($===0)return"";let G=Q.truncate,W="",V="",F="";for(let q=0;q<$;q+=1){let B=q+1===J.length,R=q+2===J.length;F=`${f}(${J.length-q})`;let S=J[q];Q.truncate=G-W.length-(B?0:Y.length);let P=V||X(S,Q)+(B?"":Y),D=W.length+P.length,T=D+F.length;if(B&&D>G&&W.length+F.length<=G)break;if(!B&&!R&&T>G)break;if(V=B?"":X(J[q+1],Q)+(R?"":Y),!B&&R&&T>G&&D+V.length>G)break;if(W+=P,!B&&!R&&D+V.length>=G){F=`${f}(${J.length-q-1})`;break}F=""}return`${W}${F}`}K(O,"inspectList");function bQ(J){if(J.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/))return J;return JSON.stringify(J).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}K(bQ,"quoteComplexKey");function u([J,Q],X){if(X.truncate-=2,typeof J==="string")J=bQ(J);else if(typeof J!=="number")J=`[${X.inspect(J,X)}]`;return X.truncate-=J.length,Q=X.inspect(Q,X),`${J}: ${Q}`}K(u,"inspectProperty");function fQ(J,Q){let X=Object.keys(J).slice(J.length);if(!J.length&&!X.length)return"[]";Q.truncate-=4;let Y=O(J,Q);Q.truncate-=Y.length;let $="";if(X.length)$=O(X.map((G)=>[G,J[G]]),Q,u);return`[ ${Y}${$?`, ${$}`:""} ]`}K(fQ,"inspectArray");var TX=K((J)=>{if(typeof Buffer==="function"&&J instanceof Buffer)return"Buffer";if(J[Symbol.toStringTag])return J[Symbol.toStringTag];return J.constructor.name},"getArrayName");function k(J,Q){let X=TX(J);Q.truncate-=X.length+4;let Y=Object.keys(J).slice(J.length);if(!J.length&&!Y.length)return`${X}[]`;let $="";for(let W=0;W<J.length;W++){let V=`${Q.stylize(_(J[W],Q.truncate),"number")}${W===J.length-1?"":", "}`;if(Q.truncate-=V.length,J[W]!==J.length&&Q.truncate<=3){$+=`${f}(${J.length-J[W]+1})`;break}$+=V}let G="";if(Y.length)G=O(Y.map((W)=>[W,J[W]]),Q,u);return`${X}[ ${$}${G?`, ${G}`:""} ]`}K(k,"inspectTypedArray");function uQ(J,Q){let X=J.toJSON();if(X===null)return"Invalid Date";let Y=X.split("T"),$=Y[0];return Q.stylize(`${$}T${_(Y[1],Q.truncate-$.length-1)}`,"date")}K(uQ,"inspectDate");function SJ(J,Q){let X=J[Symbol.toStringTag]||"Function",Y=J.name;if(!Y)return Q.stylize(`[${X}]`,"special");return Q.stylize(`[${X} ${_(Y,Q.truncate-11)}]`,"special")}K(SJ,"inspectFunction");function cQ([J,Q],X){return X.truncate-=4,J=X.inspect(J,X),X.truncate-=J.length,Q=X.inspect(Q,X),`${J} => ${Q}`}K(cQ,"inspectMapEntry");function dQ(J){let Q=[];return J.forEach((X,Y)=>{Q.push([Y,X])}),Q}K(dQ,"mapToEntries");function mQ(J,Q){if(J.size===0)return"Map{}";return Q.truncate-=7,`Map{ ${O(dQ(J),Q,cQ)} }`}K(mQ,"inspectMap");var EX=Number.isNaN||((J)=>J!==J);function NJ(J,Q){if(EX(J))return Q.stylize("NaN","number");if(J===1/0)return Q.stylize("Infinity","number");if(J===-1/0)return Q.stylize("-Infinity","number");if(J===0)return Q.stylize(1/J===1/0?"+0":"-0","number");return Q.stylize(_(String(J),Q.truncate),"number")}K(NJ,"inspectNumber");function wJ(J,Q){let X=_(J.toString(),Q.truncate-1);if(X!==f)X+="n";return Q.stylize(X,"bigint")}K(wJ,"inspectBigInt");function gQ(J,Q){let X=J.toString().split("/")[2],Y=Q.truncate-(2+X.length),$=J.source;return Q.stylize(`/${_($,Y)}/${X}`,"regexp")}K(gQ,"inspectRegExp");function lQ(J){let Q=[];return J.forEach((X)=>{Q.push(X)}),Q}K(lQ,"arrayFromSet");function pQ(J,Q){if(J.size===0)return"Set{}";return Q.truncate-=7,`Set{ ${O(lQ(J),Q)} }`}K(pQ,"inspectSet");var DQ=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),LX={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},HX=16,MX=4;function iQ(J){return LX[J]||`\\u${`0000${J.charCodeAt(0).toString(HX)}`.slice(-MX)}`}K(iQ,"escape");function CJ(J,Q){if(DQ.test(J))J=J.replace(DQ,iQ);return Q.stylize(`'${_(J,Q.truncate-2)}'`,"string")}K(CJ,"inspectString");function PJ(J){if("description"in Symbol.prototype)return J.description?`Symbol(${J.description})`:"Symbol()";return J.toString()}K(PJ,"inspectSymbol");var OX=K(()=>"Promise{…}","getPromiseValue"),xX=OX;function g(J,Q){let X=Object.getOwnPropertyNames(J),Y=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(J):[];if(X.length===0&&Y.length===0)return"{}";if(Q.truncate-=4,Q.seen=Q.seen||[],Q.seen.includes(J))return"[Circular]";Q.seen.push(J);let $=O(X.map((V)=>[V,J[V]]),Q,u),G=O(Y.map((V)=>[V,J[V]]),Q,u);Q.seen.pop();let W="";if($&&G)W=", ";return`{ ${$}${W}${G} }`}K(g,"inspectObject");var RJ=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function nQ(J,Q){let X="";if(RJ&&RJ in J)X=J[RJ];if(X=X||J.constructor.name,!X||X==="_class")X="<Anonymous Class>";return Q.truncate-=X.length,`${X}${g(J,Q)}`}K(nQ,"inspectClass");function oQ(J,Q){if(J.length===0)return"Arguments[]";return Q.truncate-=13,`Arguments[ ${O(J,Q)} ]`}K(oQ,"inspectArguments");var kX=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function aQ(J,Q){let X=Object.getOwnPropertyNames(J).filter((W)=>kX.indexOf(W)===-1),Y=J.name;Q.truncate-=Y.length;let $="";if(typeof J.message==="string")$=_(J.message,Q.truncate);else X.unshift("message");if($=$?`: ${$}`:"",Q.truncate-=$.length+5,Q.seen=Q.seen||[],Q.seen.includes(J))return"[Circular]";Q.seen.push(J);let G=O(X.map((W)=>[W,J[W]]),Q,u);return`${Y}${$}${G?` { ${G} }`:""}`}K(aQ,"inspectObject");function rQ([J,Q],X){if(X.truncate-=3,!Q)return`${X.stylize(String(J),"yellow")}`;return`${X.stylize(String(J),"yellow")}=${X.stylize(`"${Q}"`,"string")}`}K(rQ,"inspectAttribute");function s(J,Q){return O(J,Q,tQ,`
2
+ `)}K(s,"inspectNodeCollection");function tQ(J,Q){switch(J.nodeType){case 1:return yJ(J,Q);case 3:return Q.inspect(J.data,Q);default:return Q.inspect(J,Q)}}K(tQ,"inspectNode");function yJ(J,Q){let X=J.getAttributeNames(),Y=J.tagName.toLowerCase(),$=Q.stylize(`<${Y}`,"special"),G=Q.stylize(">","special"),W=Q.stylize(`</${Y}>`,"special");Q.truncate-=Y.length*2+5;let V="";if(X.length>0)V+=" ",V+=O(X.map((B)=>[B,J.getAttribute(B)]),Q,rQ," ");Q.truncate-=V.length;let F=Q.truncate,q=s(J.children,Q);if(q&&q.length>F)q=`${f}(${J.children.length})`;return`${$}${V}${G}${q}${W}`}K(yJ,"inspectHTML");var AX=typeof Symbol==="function"&&typeof Symbol.for==="function",IJ=AX?Symbol.for("chai/inspect"):"@@chai/inspect",DJ=Symbol.for("nodejs.util.inspect.custom"),SQ=new WeakMap,NQ={},wQ={undefined:K((J,Q)=>Q.stylize("undefined","undefined"),"undefined"),null:K((J,Q)=>Q.stylize("null","null"),"null"),boolean:K((J,Q)=>Q.stylize(String(J),"boolean"),"boolean"),Boolean:K((J,Q)=>Q.stylize(String(J),"boolean"),"Boolean"),number:NJ,Number:NJ,bigint:wJ,BigInt:wJ,string:CJ,String:CJ,function:SJ,Function:SJ,symbol:PJ,Symbol:PJ,Array:fQ,Date:uQ,Map:mQ,Set:pQ,RegExp:gQ,Promise:xX,WeakSet:K((J,Q)=>Q.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:K((J,Q)=>Q.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:oQ,Int8Array:k,Uint8Array:k,Uint8ClampedArray:k,Int16Array:k,Uint16Array:k,Int32Array:k,Uint32Array:k,Float32Array:k,Float64Array:k,Generator:K(()=>"","Generator"),DataView:K(()=>"","DataView"),ArrayBuffer:K(()=>"","ArrayBuffer"),Error:aQ,HTMLCollection:s,NodeList:s},_X=K((J,Q,X,Y)=>{if(IJ in J&&typeof J[IJ]==="function")return J[IJ](Q);if(DJ in J&&typeof J[DJ]==="function")return J[DJ](Q.depth,Q,Y);if("inspect"in J&&typeof J.inspect==="function")return J.inspect(Q.depth,Q);if("constructor"in J&&SQ.has(J.constructor))return SQ.get(J.constructor)(J,Q);if(NQ[X])return NQ[X](J,Q);return""},"inspectCustom"),vX=Object.prototype.toString;function l(J,Q={}){let X=yQ(Q,l),{customInspect:Y}=X,$=J===null?"null":typeof J;if($==="object")$=vX.call(J).slice(8,-1);if($ in wQ)return wQ[$](J,X);if(Y&&J){let W=_X(J,X,$,l);if(W){if(typeof W==="string")return W;return l(W,X)}}let G=J?Object.getPrototypeOf(J):!1;if(G===Object.prototype||G===null)return g(J,X);if(J&&typeof HTMLElement==="function"&&J instanceof HTMLElement)return yJ(J,X);if("constructor"in J){if(J.constructor!==Object)return nQ(J,X);return g(J,X)}if(J===Object(J))return g(J,X);return X.stylize(String(J),$)}K(l,"inspect");var H={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function N(J,Q,X,Y){let $={colors:Y,depth:typeof X>"u"?2:X,showHidden:Q,truncate:H.truncateThreshold?H.truncateThreshold:1/0};return l(J,$)}K(N,"inspect");function h(J){let Q=N(J),X=Object.prototype.toString.call(J);if(H.truncateThreshold&&Q.length>=H.truncateThreshold)if(X==="[object Function]")return!J.name||J.name===""?"[Function]":"[Function: "+J.name+"]";else if(X==="[object Array]")return"[ Array("+J.length+") ]";else if(X==="[object Object]"){let Y=Object.keys(J);return"{ Object ("+(Y.length>2?Y.splice(0,2).join(", ")+", ...":Y.join(", "))+") }"}else return Q;else return Q}K(h,"objDisplay");function hJ(J,Q){let X=I(J,"negate"),Y=I(J,"object"),$=Q[3],G=ZJ(J,Q),W=X?Q[2]:Q[1],V=I(J,"message");if(typeof W==="function")W=W();return W=W||"",W=W.replace(/#\{this\}/g,function(){return h(Y)}).replace(/#\{act\}/g,function(){return h(G)}).replace(/#\{exp\}/g,function(){return h($)}),V?V+": "+W:W}K(hJ,"getMessage");function x(J,Q,X){let Y=J.__flags||(J.__flags=Object.create(null));if(!Q.__flags)Q.__flags=Object.create(null);X=arguments.length===3?X:!0;for(let $ in Y)if(X||$!=="object"&&$!=="ssfi"&&$!=="lockSsfi"&&$!="message")Q.__flags[$]=Y[$]}K(x,"transferFlags");function TJ(J){if(typeof J>"u")return"undefined";if(J===null)return"null";let Q=J[Symbol.toStringTag];if(typeof Q==="string")return Q;let X=8,Y=-1;return Object.prototype.toString.call(J).slice(X,Y)}K(TJ,"type");function bJ(){this._key="chai/deep-eql__"+Math.random()+Date.now()}K(bJ,"FakeMap");bJ.prototype={get:K(function(Q){return Q[this._key]},"get"),set:K(function(Q,X){if(Object.isExtensible(Q))Object.defineProperty(Q,this._key,{value:X,configurable:!0})},"set")};var sQ=typeof WeakMap==="function"?WeakMap:bJ;function EJ(J,Q,X){if(!X||b(J)||b(Q))return null;var Y=X.get(J);if(Y){var $=Y.get(Q);if(typeof $==="boolean")return $}return null}K(EJ,"memoizeCompare");function m(J,Q,X,Y){if(!X||b(J)||b(Q))return;var $=X.get(J);if($)$.set(Q,Y);else $=new sQ,$.set(Q,Y),X.set(J,$)}K(m,"memoizeSet");var eQ=p;function p(J,Q,X){if(X&&X.comparator)return LJ(J,Q,X);var Y=fJ(J,Q);if(Y!==null)return Y;return LJ(J,Q,X)}K(p,"deepEqual");function fJ(J,Q){if(J===Q)return J!==0||1/J===1/Q;if(J!==J&&Q!==Q)return!0;if(b(J)||b(Q))return!1;return null}K(fJ,"simpleEqual");function LJ(J,Q,X){X=X||{},X.memoize=X.memoize===!1?!1:X.memoize||new sQ;var Y=X&&X.comparator,$=EJ(J,Q,X.memoize);if($!==null)return $;var G=EJ(Q,J,X.memoize);if(G!==null)return G;if(Y){var W=Y(J,Q);if(W===!1||W===!0)return m(J,Q,X.memoize,W),W;var V=fJ(J,Q);if(V!==null)return V}var F=TJ(J);if(F!==TJ(Q))return m(J,Q,X.memoize,!1),!1;m(J,Q,X.memoize,!0);var q=JX(J,Q,F,X);return m(J,Q,X.memoize,q),q}K(LJ,"extensiveDeepEqual");function JX(J,Q,X,Y){switch(X){case"String":case"Number":case"Boolean":case"Date":return p(J.valueOf(),Q.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return J===Q;case"Error":return uJ(J,Q,["name","message","code"],Y);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return y(J,Q,Y);case"RegExp":return QX(J,Q);case"Generator":return XX(J,Q,Y);case"DataView":return y(new Uint8Array(J.buffer),new Uint8Array(Q.buffer),Y);case"ArrayBuffer":return y(new Uint8Array(J),new Uint8Array(Q),Y);case"Set":return HJ(J,Q,Y);case"Map":return HJ(J,Q,Y);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return J.equals(Q);case"Temporal.Duration":return J.total("nanoseconds")===Q.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return J.toString()===Q.toString();default:return $X(J,Q,Y)}}K(JX,"extensiveDeepEqualByType");function QX(J,Q){return J.toString()===Q.toString()}K(QX,"regexpEqual");function HJ(J,Q,X){try{if(J.size!==Q.size)return!1;if(J.size===0)return!0}catch(G){return!1}var Y=[],$=[];return J.forEach(K(function(W,V){Y.push([W,V])},"gatherEntries")),Q.forEach(K(function(W,V){$.push([W,V])},"gatherEntries")),y(Y.sort(),$.sort(),X)}K(HJ,"entriesEqual");function y(J,Q,X){var Y=J.length;if(Y!==Q.length)return!1;if(Y===0)return!0;var $=-1;while(++$<Y)if(p(J[$],Q[$],X)===!1)return!1;return!0}K(y,"iterableEqual");function XX(J,Q,X){return y(e(J),e(Q),X)}K(XX,"generatorEqual");function YX(J){return typeof Symbol<"u"&&typeof J==="object"&&typeof Symbol.iterator<"u"&&typeof J[Symbol.iterator]==="function"}K(YX,"hasIteratorFunction");function MJ(J){if(YX(J))try{return e(J[Symbol.iterator]())}catch(Q){return[]}return[]}K(MJ,"getIteratorEntries");function e(J){var Q=J.next(),X=[Q.value];while(Q.done===!1)Q=J.next(),X.push(Q.value);return X}K(e,"getGeneratorEntries");function OJ(J){var Q=[];for(var X in J)Q.push(X);return Q}K(OJ,"getEnumerableKeys");function xJ(J){var Q=[],X=Object.getOwnPropertySymbols(J);for(var Y=0;Y<X.length;Y+=1){var $=X[Y];if(Object.getOwnPropertyDescriptor(J,$).enumerable)Q.push($)}return Q}K(xJ,"getEnumerableSymbols");function uJ(J,Q,X,Y){var $=X.length;if($===0)return!0;for(var G=0;G<$;G+=1)if(p(J[X[G]],Q[X[G]],Y)===!1)return!1;return!0}K(uJ,"keysEqual");function $X(J,Q,X){var Y=OJ(J),$=OJ(Q),G=xJ(J),W=xJ(Q);if(Y=Y.concat(G),$=$.concat(W),Y.length&&Y.length===$.length){if(y(kJ(Y).sort(),kJ($).sort())===!1)return!1;return uJ(J,Q,Y,X)}var V=MJ(J),F=MJ(Q);if(V.length&&V.length===F.length)return V.sort(),F.sort(),y(V,F,X);if(Y.length===0&&V.length===0&&$.length===0&&F.length===0)return!0;return!1}K($X,"objectEqual");function b(J){return J===null||typeof J!=="object"}K(b,"isPrimitive");function kJ(J){return J.map(K(function(X){if(typeof X==="symbol")return X.toString();return X},"mapSymbol"))}K(kJ,"mapSymbols");function UJ(J,Q){if(typeof J>"u"||J===null)return!1;return Q in Object(J)}K(UJ,"hasProperty");function ZX(J){return J.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((Y)=>{if(Y==="constructor"||Y==="__proto__"||Y==="prototype")return{};let G=/^\[(\d+)\]$/.exec(Y),W=null;if(G)W={i:parseFloat(G[1])};else W={p:Y.replace(/\\([.[\]])/g,"$1")};return W})}K(ZX,"parsePath");function AJ(J,Q,X){let Y=J,$=null;X=typeof X>"u"?Q.length:X;for(let G=0;G<X;G++){let W=Q[G];if(Y){if(typeof W.p>"u")Y=Y[W.i];else Y=Y[W.p];if(G===X-1)$=Y}}return $}K(AJ,"internalGetPathValue");function cJ(J,Q){let X=ZX(Q),Y=X[X.length-1],$={parent:X.length>1?AJ(J,X,X.length-1):J,name:Y.p||Y.i,value:AJ(J,X)};return $.exists=UJ($.parent,$.name),$}K(cJ,"getPathInfo");var UX=class J{constructor(Q,X,Y,$){return LQ(this,"__flags",{}),I(this,"ssfi",Y||J),I(this,"lockSsfi",$),I(this,"object",Q),I(this,"message",X),I(this,"eql",H.deepEqual||eQ),d(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),H.includeStack}static set includeStack(Q){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),H.includeStack=Q}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),H.showDiff}static set showDiff(Q){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),H.showDiff=Q}static addProperty(Q,X){mJ(this.prototype,Q,X)}static addMethod(Q,X){gJ(this.prototype,Q,X)}static addChainableMethod(Q,X,Y){iJ(this.prototype,Q,X,Y)}static overwriteProperty(Q,X){lJ(this.prototype,Q,X)}static overwriteMethod(Q,X){pJ(this.prototype,Q,X)}static overwriteChainableMethod(Q,X,Y){nJ(this.prototype,Q,X,Y)}assert(Q,X,Y,$,G,W){let V=jJ(this,arguments);if(W!==!1)W=!0;if($===void 0&&G===void 0)W=!1;if(H.showDiff!==!0)W=!1;if(!V){X=hJ(this,arguments);let q={actual:ZJ(this,arguments),expected:$,showDiff:W},B=rJ(this,arguments);if(B)q.operator=B;throw new w(X,q,H.includeStack?this.assert:I(this,"ssfi"))}}get _obj(){return I(this,"object")}set _obj(Q){I(this,"object",Q)}};K(UX,"Assertion");var U=UX,GJ=new EventTarget,GX=class extends Event{constructor(Q,X,Y){super(Q);this.name=String(X),this.fn=Y}};K(GX,"PluginEvent");var dJ=GX;function i(){return H.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}K(i,"isProxyEnabled");function mJ(J,Q,X){X=X===void 0?function(){}:X,Object.defineProperty(J,Q,{get:K(function Y(){if(!i()&&!I(this,"lockSsfi"))I(this,"ssfi",Y);let $=X.call(this);if($!==void 0)return $;let G=new U;return x(this,G),G},"propertyGetter"),configurable:!0}),GJ.dispatchEvent(new dJ("addProperty",Q,X))}K(mJ,"addProperty");var jX=Object.getOwnPropertyDescriptor(function(){},"length");function n(J,Q,X){if(!jX.configurable)return J;return Object.defineProperty(J,"length",{get:K(function(){if(X)throw Error("Invalid Chai property: "+Q+'.length. Due to a compatibility issue, "length" cannot directly follow "'+Q+'". Use "'+Q+'.lengthOf" instead.');throw Error("Invalid Chai property: "+Q+'.length. See docs for proper usage of "'+Q+'".')},"get")}),J}K(n,"addLengthGuard");function WX(J){let Q=Object.getOwnPropertyNames(J);function X($){if(Q.indexOf($)===-1)Q.push($)}K(X,"addProperty");let Y=Object.getPrototypeOf(J);while(Y!==null)Object.getOwnPropertyNames(Y).forEach(X),Y=Object.getPrototypeOf(Y);return Q}K(WX,"getProperties");var CQ=["__flags","__methods","_obj","assert"];function d(J,Q){if(!i())return J;return new Proxy(J,{get:K(function X(Y,$){if(typeof $==="string"&&H.proxyExcludedKeys.indexOf($)===-1&&!Reflect.has(Y,$)){if(Q)throw Error("Invalid Chai property: "+Q+"."+$+'. See docs for proper usage of "'+Q+'".');let G=null,W=4;if(WX(Y).forEach(function(V){if(!Object.prototype.hasOwnProperty(V)&&CQ.indexOf(V)===-1){let F=VX($,V,W);if(F<W)G=V,W=F}}),G!==null)throw Error("Invalid Chai property: "+$+'. Did you mean "'+G+'"?');else throw Error("Invalid Chai property: "+$)}if(CQ.indexOf($)===-1&&!I(Y,"lockSsfi"))I(Y,"ssfi",X);return Reflect.get(Y,$)},"proxyGetter")})}K(d,"proxify");function VX(J,Q,X){if(Math.abs(J.length-Q.length)>=X)return X;let Y=[];for(let $=0;$<=J.length;$++)Y[$]=Array(Q.length+1).fill(0),Y[$][0]=$;for(let $=0;$<Q.length;$++)Y[0][$]=$;for(let $=1;$<=J.length;$++){let G=J.charCodeAt($-1);for(let W=1;W<=Q.length;W++){if(Math.abs($-W)>=X){Y[$][W]=X;continue}Y[$][W]=Math.min(Y[$-1][W]+1,Y[$][W-1]+1,Y[$-1][W-1]+(G===Q.charCodeAt(W-1)?0:1))}}return Y[J.length][Q.length]}K(VX,"stringDistanceCapped");function gJ(J,Q,X){let Y=K(function(){if(!I(this,"lockSsfi"))I(this,"ssfi",Y);let $=X.apply(this,arguments);if($!==void 0)return $;let G=new U;return x(this,G),G},"methodWrapper");n(Y,Q,!1),J[Q]=d(Y,Q),GJ.dispatchEvent(new dJ("addMethod",Q,X))}K(gJ,"addMethod");function lJ(J,Q,X){let Y=Object.getOwnPropertyDescriptor(J,Q),$=K(function(){},"_super");if(Y&&typeof Y.get==="function")$=Y.get;Object.defineProperty(J,Q,{get:K(function G(){if(!i()&&!I(this,"lockSsfi"))I(this,"ssfi",G);let W=I(this,"lockSsfi");I(this,"lockSsfi",!0);let V=X($).call(this);if(I(this,"lockSsfi",W),V!==void 0)return V;let F=new U;return x(this,F),F},"overwritingPropertyGetter"),configurable:!0})}K(lJ,"overwriteProperty");function pJ(J,Q,X){let Y=J[Q],$=K(function(){throw Error(Q+" is not a function")},"_super");if(Y&&typeof Y==="function")$=Y;let G=K(function(){if(!I(this,"lockSsfi"))I(this,"ssfi",G);let W=I(this,"lockSsfi");I(this,"lockSsfi",!0);let V=X($).apply(this,arguments);if(I(this,"lockSsfi",W),V!==void 0)return V;let F=new U;return x(this,F),F},"overwritingMethodWrapper");n(G,Q,!1),J[Q]=d(G,Q)}K(pJ,"overwriteMethod");var yX=typeof Object.setPrototypeOf==="function",PQ=K(function(){},"testFn"),hX=Object.getOwnPropertyNames(PQ).filter(function(J){let Q=Object.getOwnPropertyDescriptor(PQ,J);if(typeof Q!=="object")return!0;return!Q.configurable}),bX=Function.prototype.call,fX=Function.prototype.apply,zX=class extends dJ{constructor(Q,X,Y,$){super(Q,X,Y);this.chainingBehavior=$}};K(zX,"PluginAddChainableMethodEvent");var uX=zX;function iJ(J,Q,X,Y){if(typeof Y!=="function")Y=K(function(){},"chainingBehavior");let $={method:X,chainingBehavior:Y};if(!J.__methods)J.__methods={};J.__methods[Q]=$,Object.defineProperty(J,Q,{get:K(function(){$.chainingBehavior.call(this);let W=K(function(){if(!I(this,"lockSsfi"))I(this,"ssfi",W);let V=$.method.apply(this,arguments);if(V!==void 0)return V;let F=new U;return x(this,F),F},"chainableMethodWrapper");if(n(W,Q,!0),yX){let V=Object.create(this);V.call=bX,V.apply=fX,Object.setPrototypeOf(W,V)}else Object.getOwnPropertyNames(J).forEach(function(F){if(hX.indexOf(F)!==-1)return;let q=Object.getOwnPropertyDescriptor(J,F);Object.defineProperty(W,F,q)});return x(this,W),d(W)},"chainableMethodGetter"),configurable:!0}),GJ.dispatchEvent(new uX("addChainableMethod",Q,X,Y))}K(iJ,"addChainableMethod");function nJ(J,Q,X,Y){let $=J.__methods[Q],G=$.chainingBehavior;$.chainingBehavior=K(function(){let F=Y(G).call(this);if(F!==void 0)return F;let q=new U;return x(this,q),q},"overwritingChainableMethodGetter");let W=$.method;$.method=K(function(){let F=X(W).apply(this,arguments);if(F!==void 0)return F;let q=new U;return x(this,q),q},"overwritingChainableMethodWrapper")}K(nJ,"overwriteChainableMethod");function JJ(J,Q){return N(J)<N(Q)?-1:1}K(JJ,"compareByInspect");function oJ(J){if(typeof Object.getOwnPropertySymbols!=="function")return[];return Object.getOwnPropertySymbols(J).filter(function(Q){return Object.getOwnPropertyDescriptor(J,Q).enumerable})}K(oJ,"getOwnEnumerablePropertySymbols");function aJ(J){return Object.keys(J).concat(oJ(J))}K(aJ,"getOwnEnumerableProperties");var QJ=Number.isNaN;function KX(J){let Q=C(J);return["Array","Object","Function"].indexOf(Q)!==-1}K(KX,"isObjectType");function rJ(J,Q){let X=I(J,"operator"),Y=I(J,"negate"),$=Q[3],G=Y?Q[2]:Q[1];if(X)return X;if(typeof G==="function")G=G();if(G=G||"",!G)return;if(/\shave\s/.test(G))return;let W=KX($);if(/\snot\s/.test(G))return W?"notDeepStrictEqual":"notStrictEqual";return W?"deepStrictEqual":"strictEqual"}K(rJ,"getOperator");function WJ(J){return J.name}K(WJ,"getName");function XJ(J){return Object.prototype.toString.call(J)==="[object RegExp]"}K(XJ,"isRegExp");function E(J){return["Number","BigInt"].includes(C(J))}K(E,"isNumeric");var{flag:z}=t;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(J){U.addProperty(J)});U.addProperty("not",function(){z(this,"negate",!0)});U.addProperty("deep",function(){z(this,"deep",!0)});U.addProperty("nested",function(){z(this,"nested",!0)});U.addProperty("own",function(){z(this,"own",!0)});U.addProperty("ordered",function(){z(this,"ordered",!0)});U.addProperty("any",function(){z(this,"any",!0),z(this,"all",!1)});U.addProperty("all",function(){z(this,"all",!0),z(this,"any",!1)});var TQ={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function tJ(J,Q){if(Q)z(this,"message",Q);J=J.toLowerCase();let X=z(this,"object"),Y=~["a","e","i","o","u"].indexOf(J.charAt(0))?"an ":"a ",$=C(X).toLowerCase();if(TQ.function.includes(J))this.assert(TQ[J].includes($),"expected #{this} to be "+Y+J,"expected #{this} not to be "+Y+J);else this.assert(J===$,"expected #{this} to be "+Y+J,"expected #{this} not to be "+Y+J)}K(tJ,"an");U.addChainableMethod("an",tJ);U.addChainableMethod("a",tJ);function FX(J,Q){return QJ(J)&&QJ(Q)||J===Q}K(FX,"SameValueZero");function o(){z(this,"contains",!0)}K(o,"includeChainingBehavior");function a(J,Q){if(Q)z(this,"message",Q);let X=z(this,"object"),Y=C(X).toLowerCase(),$=z(this,"message"),G=z(this,"negate"),W=z(this,"ssfi"),V=z(this,"deep"),F=V?"deep ":"",q=V?z(this,"eql"):FX;$=$?$+": ":"";let B=!1;switch(Y){case"string":B=X.indexOf(J)!==-1;break;case"weakset":if(V)throw new w($+"unable to use .deep.include with WeakSet",void 0,W);B=X.has(J);break;case"map":X.forEach(function(R){B=B||q(R,J)});break;case"set":if(V)X.forEach(function(R){B=B||q(R,J)});else B=X.has(J);break;case"array":if(V)B=X.some(function(R){return q(R,J)});else B=X.indexOf(J)!==-1;break;default:{if(J!==Object(J))throw new w($+"the given combination of arguments ("+Y+" and "+C(J).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 "+C(J).toLowerCase(),void 0,W);let R=Object.keys(J),S=null,P=0;if(R.forEach(function(D){let T=new U(X);if(x(this,T,!0),z(T,"lockSsfi",!0),!G||R.length===1){T.property(D,J[D]);return}try{T.property(D,J[D])}catch(j){if(!M.compatibleConstructor(j,w))throw j;if(S===null)S=j;P++}},this),G&&R.length>1&&P===R.length)throw S;return}}this.assert(B,"expected #{this} to "+F+"include "+N(J),"expected #{this} to not "+F+"include "+N(J))}K(a,"include");U.addChainableMethod("include",a,o);U.addChainableMethod("contain",a,o);U.addChainableMethod("contains",a,o);U.addChainableMethod("includes",a,o);U.addProperty("ok",function(){this.assert(z(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});U.addProperty("true",function(){this.assert(z(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",z(this,"negate")?!1:!0)});U.addProperty("numeric",function(){let J=z(this,"object");this.assert(["Number","BigInt"].includes(C(J)),"expected #{this} to be numeric","expected #{this} to not be numeric",z(this,"negate")?!1:!0)});U.addProperty("callable",function(){let J=z(this,"object"),Q=z(this,"ssfi"),X=z(this,"message"),Y=X?`${X}: `:"",$=z(this,"negate"),G=$?`${Y}expected ${N(J)} not to be a callable function`:`${Y}expected ${N(J)} to be a callable function`,W=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(C(J));if(W&&$||!W&&!$)throw new w(G,void 0,Q)});U.addProperty("false",function(){this.assert(z(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",z(this,"negate")?!0:!1)});U.addProperty("null",function(){this.assert(z(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});U.addProperty("undefined",function(){this.assert(z(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});U.addProperty("NaN",function(){this.assert(QJ(z(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function sJ(){let J=z(this,"object");this.assert(J!==null&&J!==void 0,"expected #{this} to exist","expected #{this} to not exist")}K(sJ,"assertExist");U.addProperty("exist",sJ);U.addProperty("exists",sJ);U.addProperty("empty",function(){let J=z(this,"object"),Q=z(this,"ssfi"),X=z(this,"message"),Y;switch(X=X?X+": ":"",C(J).toLowerCase()){case"array":case"string":Y=J.length;break;case"map":case"set":Y=J.size;break;case"weakmap":case"weakset":throw new w(X+".empty was passed a weak collection",void 0,Q);case"function":{let $=X+".empty was passed a function "+WJ(J);throw new w($.trim(),void 0,Q)}default:if(J!==Object(J))throw new w(X+".empty was passed non-string primitive "+N(J),void 0,Q);Y=Object.keys(J).length}this.assert(Y===0,"expected #{this} to be empty","expected #{this} not to be empty")});function eJ(){let J=z(this,"object"),Q=C(J);this.assert(Q==="Arguments","expected #{this} to be arguments but got "+Q,"expected #{this} to not be arguments")}K(eJ,"checkArguments");U.addProperty("arguments",eJ);U.addProperty("Arguments",eJ);function VJ(J,Q){if(Q)z(this,"message",Q);let X=z(this,"object");if(z(this,"deep")){let Y=z(this,"lockSsfi");z(this,"lockSsfi",!0),this.eql(J),z(this,"lockSsfi",Y)}else this.assert(J===X,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",J,this._obj,!0)}K(VJ,"assertEqual");U.addMethod("equal",VJ);U.addMethod("equals",VJ);U.addMethod("eq",VJ);function JQ(J,Q){if(Q)z(this,"message",Q);let X=z(this,"eql");this.assert(X(J,z(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",J,this._obj,!0)}K(JQ,"assertEql");U.addMethod("eql",JQ);U.addMethod("eqls",JQ);function zJ(J,Q){if(Q)z(this,"message",Q);let X=z(this,"object"),Y=z(this,"doLength"),$=z(this,"message"),G=$?$+": ":"",W=z(this,"ssfi"),V=C(X).toLowerCase(),F=C(J).toLowerCase();if(Y&&V!=="map"&&V!=="set")new U(X,$,W,!0).to.have.property("length");if(!Y&&V==="date"&&F!=="date")throw new w(G+"the argument to above must be a date",void 0,W);else if(!E(J)&&(Y||E(X)))throw new w(G+"the argument to above must be a number",void 0,W);else if(!Y&&V!=="date"&&!E(X)){let q=V==="string"?"'"+X+"'":X;throw new w(G+"expected "+q+" to be a number or a date",void 0,W)}if(Y){let q="length",B;if(V==="map"||V==="set")q="size",B=X.size;else B=X.length;this.assert(B>J,"expected #{this} to have a "+q+" above #{exp} but got #{act}","expected #{this} to not have a "+q+" above #{exp}",J,B)}else this.assert(X>J,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",J)}K(zJ,"assertAbove");U.addMethod("above",zJ);U.addMethod("gt",zJ);U.addMethod("greaterThan",zJ);function KJ(J,Q){if(Q)z(this,"message",Q);let X=z(this,"object"),Y=z(this,"doLength"),$=z(this,"message"),G=$?$+": ":"",W=z(this,"ssfi"),V=C(X).toLowerCase(),F=C(J).toLowerCase(),q,B=!0;if(Y&&V!=="map"&&V!=="set")new U(X,$,W,!0).to.have.property("length");if(!Y&&V==="date"&&F!=="date")q=G+"the argument to least must be a date";else if(!E(J)&&(Y||E(X)))q=G+"the argument to least must be a number";else if(!Y&&V!=="date"&&!E(X)){let R=V==="string"?"'"+X+"'":X;q=G+"expected "+R+" to be a number or a date"}else B=!1;if(B)throw new w(q,void 0,W);if(Y){let R="length",S;if(V==="map"||V==="set")R="size",S=X.size;else S=X.length;this.assert(S>=J,"expected #{this} to have a "+R+" at least #{exp} but got #{act}","expected #{this} to have a "+R+" below #{exp}",J,S)}else this.assert(X>=J,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",J)}K(KJ,"assertLeast");U.addMethod("least",KJ);U.addMethod("gte",KJ);U.addMethod("greaterThanOrEqual",KJ);function FJ(J,Q){if(Q)z(this,"message",Q);let X=z(this,"object"),Y=z(this,"doLength"),$=z(this,"message"),G=$?$+": ":"",W=z(this,"ssfi"),V=C(X).toLowerCase(),F=C(J).toLowerCase(),q,B=!0;if(Y&&V!=="map"&&V!=="set")new U(X,$,W,!0).to.have.property("length");if(!Y&&V==="date"&&F!=="date")q=G+"the argument to below must be a date";else if(!E(J)&&(Y||E(X)))q=G+"the argument to below must be a number";else if(!Y&&V!=="date"&&!E(X)){let R=V==="string"?"'"+X+"'":X;q=G+"expected "+R+" to be a number or a date"}else B=!1;if(B)throw new w(q,void 0,W);if(Y){let R="length",S;if(V==="map"||V==="set")R="size",S=X.size;else S=X.length;this.assert(S<J,"expected #{this} to have a "+R+" below #{exp} but got #{act}","expected #{this} to not have a "+R+" below #{exp}",J,S)}else this.assert(X<J,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",J)}K(FJ,"assertBelow");U.addMethod("below",FJ);U.addMethod("lt",FJ);U.addMethod("lessThan",FJ);function qJ(J,Q){if(Q)z(this,"message",Q);let X=z(this,"object"),Y=z(this,"doLength"),$=z(this,"message"),G=$?$+": ":"",W=z(this,"ssfi"),V=C(X).toLowerCase(),F=C(J).toLowerCase(),q,B=!0;if(Y&&V!=="map"&&V!=="set")new U(X,$,W,!0).to.have.property("length");if(!Y&&V==="date"&&F!=="date")q=G+"the argument to most must be a date";else if(!E(J)&&(Y||E(X)))q=G+"the argument to most must be a number";else if(!Y&&V!=="date"&&!E(X)){let R=V==="string"?"'"+X+"'":X;q=G+"expected "+R+" to be a number or a date"}else B=!1;if(B)throw new w(q,void 0,W);if(Y){let R="length",S;if(V==="map"||V==="set")R="size",S=X.size;else S=X.length;this.assert(S<=J,"expected #{this} to have a "+R+" at most #{exp} but got #{act}","expected #{this} to have a "+R+" above #{exp}",J,S)}else this.assert(X<=J,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",J)}K(qJ,"assertMost");U.addMethod("most",qJ);U.addMethod("lte",qJ);U.addMethod("lessThanOrEqual",qJ);U.addMethod("within",function(J,Q,X){if(X)z(this,"message",X);let Y=z(this,"object"),$=z(this,"doLength"),G=z(this,"message"),W=G?G+": ":"",V=z(this,"ssfi"),F=C(Y).toLowerCase(),q=C(J).toLowerCase(),B=C(Q).toLowerCase(),R,S=!0,P=q==="date"&&B==="date"?J.toISOString()+".."+Q.toISOString():J+".."+Q;if($&&F!=="map"&&F!=="set")new U(Y,G,V,!0).to.have.property("length");if(!$&&F==="date"&&(q!=="date"||B!=="date"))R=W+"the arguments to within must be dates";else if((!E(J)||!E(Q))&&($||E(Y)))R=W+"the arguments to within must be numbers";else if(!$&&F!=="date"&&!E(Y)){let D=F==="string"?"'"+Y+"'":Y;R=W+"expected "+D+" to be a number or a date"}else S=!1;if(S)throw new w(R,void 0,V);if($){let D="length",T;if(F==="map"||F==="set")D="size",T=Y.size;else T=Y.length;this.assert(T>=J&&T<=Q,"expected #{this} to have a "+D+" within "+P,"expected #{this} to not have a "+D+" within "+P)}else this.assert(Y>=J&&Y<=Q,"expected #{this} to be within "+P,"expected #{this} to not be within "+P)});function QQ(J,Q){if(Q)z(this,"message",Q);let X=z(this,"object"),Y=z(this,"ssfi"),$=z(this,"message"),G;try{G=X instanceof J}catch(V){if(V instanceof TypeError)throw $=$?$+": ":"",new w($+"The instanceof assertion needs a constructor but "+C(J)+" was given.",void 0,Y);throw V}let W=WJ(J);if(W==null)W="an unnamed constructor";this.assert(G,"expected #{this} to be an instance of "+W,"expected #{this} to not be an instance of "+W)}K(QQ,"assertInstanceOf");U.addMethod("instanceof",QQ);U.addMethod("instanceOf",QQ);function XQ(J,Q,X){if(X)z(this,"message",X);let Y=z(this,"nested"),$=z(this,"own"),G=z(this,"message"),W=z(this,"object"),V=z(this,"ssfi"),F=typeof J;if(G=G?G+": ":"",Y){if(F!=="string")throw new w(G+"the argument to property must be a string when using nested syntax",void 0,V)}else if(F!=="string"&&F!=="number"&&F!=="symbol")throw new w(G+"the argument to property must be a string, number, or symbol",void 0,V);if(Y&&$)throw new w(G+'The "nested" and "own" flags cannot be combined.',void 0,V);if(W===null||W===void 0)throw new w(G+"Target cannot be null or undefined.",void 0,V);let q=z(this,"deep"),B=z(this,"negate"),R=Y?cJ(W,J):null,S=Y?R.value:W[J],P=q?z(this,"eql"):(j,L)=>j===L,D="";if(q)D+="deep ";if($)D+="own ";if(Y)D+="nested ";D+="property ";let T;if($)T=Object.prototype.hasOwnProperty.call(W,J);else if(Y)T=R.exists;else T=UJ(W,J);if(!B||arguments.length===1)this.assert(T,"expected #{this} to have "+D+N(J),"expected #{this} to not have "+D+N(J));if(arguments.length>1)this.assert(T&&P(Q,S),"expected #{this} to have "+D+N(J)+" of #{exp}, but got #{act}","expected #{this} to not have "+D+N(J)+" of #{act}",Q,S);z(this,"object",S)}K(XQ,"assertProperty");U.addMethod("property",XQ);function YQ(J,Q,X){z(this,"own",!0),XQ.apply(this,arguments)}K(YQ,"assertOwnProperty");U.addMethod("ownProperty",YQ);U.addMethod("haveOwnProperty",YQ);function $Q(J,Q,X){if(typeof Q==="string")X=Q,Q=null;if(X)z(this,"message",X);let Y=z(this,"object"),$=Object.getOwnPropertyDescriptor(Object(Y),J),G=z(this,"eql");if($&&Q)this.assert(G(Q,$),"expected the own property descriptor for "+N(J)+" on #{this} to match "+N(Q)+", got "+N($),"expected the own property descriptor for "+N(J)+" on #{this} to not match "+N(Q),Q,$,!0);else this.assert($,"expected #{this} to have an own property descriptor for "+N(J),"expected #{this} to not have an own property descriptor for "+N(J));z(this,"object",$)}K($Q,"assertOwnPropertyDescriptor");U.addMethod("ownPropertyDescriptor",$Q);U.addMethod("haveOwnPropertyDescriptor",$Q);function ZQ(){z(this,"doLength",!0)}K(ZQ,"assertLengthChain");function UQ(J,Q){if(Q)z(this,"message",Q);let X=z(this,"object"),Y=C(X).toLowerCase(),$=z(this,"message"),G=z(this,"ssfi"),W="length",V;switch(Y){case"map":case"set":W="size",V=X.size;break;default:new U(X,$,G,!0).to.have.property("length"),V=X.length}this.assert(V==J,"expected #{this} to have a "+W+" of #{exp} but got #{act}","expected #{this} to not have a "+W+" of #{act}",J,V)}K(UQ,"assertLength");U.addChainableMethod("length",UQ,ZQ);U.addChainableMethod("lengthOf",UQ,ZQ);function GQ(J,Q){if(Q)z(this,"message",Q);let X=z(this,"object");this.assert(J.exec(X),"expected #{this} to match "+J,"expected #{this} not to match "+J)}K(GQ,"assertMatch");U.addMethod("match",GQ);U.addMethod("matches",GQ);U.addMethod("string",function(J,Q){if(Q)z(this,"message",Q);let X=z(this,"object"),Y=z(this,"message"),$=z(this,"ssfi");new U(X,Y,$,!0).is.a("string"),this.assert(~X.indexOf(J),"expected #{this} to contain "+N(J),"expected #{this} to not contain "+N(J))});function WQ(J){let Q=z(this,"object"),X=C(Q),Y=C(J),$=z(this,"ssfi"),G=z(this,"deep"),W,V="",F,q=!0,B=z(this,"message");B=B?B+": ":"";let R=B+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(X==="Map"||X==="Set"){if(V=G?"deeply ":"",F=[],Q.forEach(function(L,A){F.push(A)}),Y!=="Array")J=Array.prototype.slice.call(arguments)}else{switch(F=aJ(Q),Y){case"Array":if(arguments.length>1)throw new w(R,void 0,$);break;case"Object":if(arguments.length>1)throw new w(R,void 0,$);J=Object.keys(J);break;default:J=Array.prototype.slice.call(arguments)}J=J.map(function(L){return typeof L==="symbol"?L:String(L)})}if(!J.length)throw new w(B+"keys required",void 0,$);let S=J.length,P=z(this,"any"),D=z(this,"all"),T=J,j=G?z(this,"eql"):(L,A)=>L===A;if(!P&&!D)D=!0;if(P)q=T.some(function(L){return F.some(function(A){return j(L,A)})});if(D){if(q=T.every(function(L){return F.some(function(A){return j(L,A)})}),!z(this,"contains"))q=q&&J.length==F.length}if(S>1){J=J.map(function(A){return N(A)});let L=J.pop();if(D)W=J.join(", ")+", and "+L;if(P)W=J.join(", ")+", or "+L}else W=N(J[0]);W=(S>1?"keys ":"key ")+W,W=(z(this,"contains")?"contain ":"have ")+W,this.assert(q,"expected #{this} to "+V+W,"expected #{this} to not "+V+W,T.slice(0).sort(JJ),F.sort(JJ),!0)}K(WQ,"assertKeys");U.addMethod("keys",WQ);U.addMethod("key",WQ);function BJ(J,Q,X){if(X)z(this,"message",X);let Y=z(this,"object"),$=z(this,"ssfi"),G=z(this,"message"),W=z(this,"negate")||!1;if(new U(Y,G,$,!0).is.a("function"),XJ(J)||typeof J==="string")Q=J,J=null;let V,F=!1;try{Y()}catch(P){F=!0,V=P}let q=J===void 0&&Q===void 0,B=Boolean(J&&Q),R=!1,S=!1;if(q||!q&&!W){let P="an error";if(J instanceof Error)P="#{exp}";else if(J)P=M.getConstructorName(J);let D=V;if(V instanceof Error)D=V.toString();else if(typeof V==="string")D=V;else if(V&&(typeof V==="object"||typeof V==="function"))try{D=M.getConstructorName(V)}catch(T){}this.assert(F,"expected #{this} to throw "+P,"expected #{this} to not throw an error but #{act} was thrown",J&&J.toString(),D)}if(J&&V){if(J instanceof Error){if(M.compatibleInstance(V,J)===W)if(B&&W)R=!0;else this.assert(W,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(V&&!W?" but #{act} was thrown":""),J.toString(),V.toString())}if(M.compatibleConstructor(V,J)===W)if(B&&W)R=!0;else this.assert(W,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(V?" but #{act} was thrown":""),J instanceof Error?J.toString():J&&M.getConstructorName(J),V instanceof Error?V.toString():V&&M.getConstructorName(V))}if(V&&Q!==void 0&&Q!==null){let P="including";if(XJ(Q))P="matching";if(M.compatibleMessage(V,Q)===W)if(B&&W)S=!0;else this.assert(W,"expected #{this} to throw error "+P+" #{exp} but got #{act}","expected #{this} to throw error not "+P+" #{exp}",Q,M.getMessage(V))}if(R&&S)this.assert(W,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(V?" but #{act} was thrown":""),J instanceof Error?J.toString():J&&M.getConstructorName(J),V instanceof Error?V.toString():V&&M.getConstructorName(V));z(this,"object",V)}K(BJ,"assertThrows");U.addMethod("throw",BJ);U.addMethod("throws",BJ);U.addMethod("Throw",BJ);function VQ(J,Q){if(Q)z(this,"message",Q);let X=z(this,"object"),Y=z(this,"itself"),$=typeof X==="function"&&!Y?X.prototype[J]:X[J];this.assert(typeof $==="function","expected #{this} to respond to "+N(J),"expected #{this} to not respond to "+N(J))}K(VQ,"respondTo");U.addMethod("respondTo",VQ);U.addMethod("respondsTo",VQ);U.addProperty("itself",function(){z(this,"itself",!0)});function zQ(J,Q){if(Q)z(this,"message",Q);let X=z(this,"object"),Y=J(X);this.assert(Y,"expected #{this} to satisfy "+h(J),"expected #{this} to not satisfy"+h(J),z(this,"negate")?!1:!0,Y)}K(zQ,"satisfy");U.addMethod("satisfy",zQ);U.addMethod("satisfies",zQ);function KQ(J,Q,X){if(X)z(this,"message",X);let Y=z(this,"object"),$=z(this,"message"),G=z(this,"ssfi");new U(Y,$,G,!0).is.numeric;let W="A `delta` value is required for `closeTo`";if(Q==null)throw new w($?`${$}: ${W}`:W,void 0,G);if(new U(Q,$,G,!0).is.numeric,W="A `expected` value is required for `closeTo`",J==null)throw new w($?`${$}: ${W}`:W,void 0,G);new U(J,$,G,!0).is.numeric;let V=K((q)=>q<0?-q:q,"abs"),F=K((q)=>parseFloat(parseFloat(q).toPrecision(12)),"strip");this.assert(F(V(Y-J))<=Q,"expected #{this} to be close to "+J+" +/- "+Q,"expected #{this} not to be close to "+J+" +/- "+Q)}K(KQ,"closeTo");U.addMethod("closeTo",KQ);U.addMethod("approximately",KQ);function qX(J,Q,X,Y,$){let G=Array.from(Q),W=Array.from(J);if(!Y){if(W.length!==G.length)return!1;G=G.slice()}return W.every(function(V,F){if($)return X?X(V,G[F]):V===G[F];if(!X){let q=G.indexOf(V);if(q===-1)return!1;if(!Y)G.splice(q,1);return!0}return G.some(function(q,B){if(!X(V,q))return!1;if(!Y)G.splice(B,1);return!0})})}K(qX,"isSubsetOf");U.addMethod("members",function(J,Q){if(Q)z(this,"message",Q);let X=z(this,"object"),Y=z(this,"message"),$=z(this,"ssfi");new U(X,Y,$,!0).to.be.iterable,new U(J,Y,$,!0).to.be.iterable;let G=z(this,"contains"),W=z(this,"ordered"),V,F,q;if(G)V=W?"an ordered superset":"a superset",F="expected #{this} to be "+V+" of #{exp}",q="expected #{this} to not be "+V+" of #{exp}";else V=W?"ordered members":"members",F="expected #{this} to have the same "+V+" as #{exp}",q="expected #{this} to not have the same "+V+" as #{exp}";let B=z(this,"deep")?z(this,"eql"):void 0;this.assert(qX(J,X,B,G,W),F,q,J,X,!0)});U.addProperty("iterable",function(J){if(J)z(this,"message",J);let Q=z(this,"object");this.assert(Q!=null&&Q[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",Q)});function BX(J,Q){if(Q)z(this,"message",Q);let X=z(this,"object"),Y=z(this,"message"),$=z(this,"ssfi"),G=z(this,"contains"),W=z(this,"deep"),V=z(this,"eql");if(new U(J,Y,$,!0).to.be.an("array"),G)this.assert(J.some(function(F){return X.indexOf(F)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",J,X);else if(W)this.assert(J.some(function(F){return V(X,F)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",J,X);else this.assert(J.indexOf(X)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",J,X)}K(BX,"oneOf");U.addMethod("oneOf",BX);function FQ(J,Q,X){if(X)z(this,"message",X);let Y=z(this,"object"),$=z(this,"message"),G=z(this,"ssfi");new U(Y,$,G,!0).is.a("function");let W;if(!Q)new U(J,$,G,!0).is.a("function"),W=J();else new U(J,$,G,!0).to.have.property(Q),W=J[Q];Y();let V=Q===void 0||Q===null?J():J[Q],F=Q===void 0||Q===null?W:"."+Q;z(this,"deltaMsgObj",F),z(this,"initialDeltaValue",W),z(this,"finalDeltaValue",V),z(this,"deltaBehavior","change"),z(this,"realDelta",V!==W),this.assert(W!==V,"expected "+F+" to change","expected "+F+" to not change")}K(FQ,"assertChanges");U.addMethod("change",FQ);U.addMethod("changes",FQ);function qQ(J,Q,X){if(X)z(this,"message",X);let Y=z(this,"object"),$=z(this,"message"),G=z(this,"ssfi");new U(Y,$,G,!0).is.a("function");let W;if(!Q)new U(J,$,G,!0).is.a("function"),W=J();else new U(J,$,G,!0).to.have.property(Q),W=J[Q];new U(W,$,G,!0).is.a("number"),Y();let V=Q===void 0||Q===null?J():J[Q],F=Q===void 0||Q===null?W:"."+Q;z(this,"deltaMsgObj",F),z(this,"initialDeltaValue",W),z(this,"finalDeltaValue",V),z(this,"deltaBehavior","increase"),z(this,"realDelta",V-W),this.assert(V-W>0,"expected "+F+" to increase","expected "+F+" to not increase")}K(qQ,"assertIncreases");U.addMethod("increase",qQ);U.addMethod("increases",qQ);function BQ(J,Q,X){if(X)z(this,"message",X);let Y=z(this,"object"),$=z(this,"message"),G=z(this,"ssfi");new U(Y,$,G,!0).is.a("function");let W;if(!Q)new U(J,$,G,!0).is.a("function"),W=J();else new U(J,$,G,!0).to.have.property(Q),W=J[Q];new U(W,$,G,!0).is.a("number"),Y();let V=Q===void 0||Q===null?J():J[Q],F=Q===void 0||Q===null?W:"."+Q;z(this,"deltaMsgObj",F),z(this,"initialDeltaValue",W),z(this,"finalDeltaValue",V),z(this,"deltaBehavior","decrease"),z(this,"realDelta",W-V),this.assert(V-W<0,"expected "+F+" to decrease","expected "+F+" to not decrease")}K(BQ,"assertDecreases");U.addMethod("decrease",BQ);U.addMethod("decreases",BQ);function RX(J,Q){if(Q)z(this,"message",Q);let X=z(this,"deltaMsgObj"),Y=z(this,"initialDeltaValue"),$=z(this,"finalDeltaValue"),G=z(this,"deltaBehavior"),W=z(this,"realDelta"),V;if(G==="change")V=Math.abs($-Y)===Math.abs(J);else V=W===Math.abs(J);this.assert(V,"expected "+X+" to "+G+" by "+J,"expected "+X+" to not "+G+" by "+J)}K(RX,"assertDelta");U.addMethod("by",RX);U.addProperty("extensible",function(){let J=z(this,"object"),Q=J===Object(J)&&Object.isExtensible(J);this.assert(Q,"expected #{this} to be extensible","expected #{this} to not be extensible")});U.addProperty("sealed",function(){let J=z(this,"object"),Q=J===Object(J)?Object.isSealed(J):!0;this.assert(Q,"expected #{this} to be sealed","expected #{this} to not be sealed")});U.addProperty("frozen",function(){let J=z(this,"object"),Q=J===Object(J)?Object.isFrozen(J):!0;this.assert(Q,"expected #{this} to be frozen","expected #{this} to not be frozen")});U.addProperty("finite",function(J){let Q=z(this,"object");this.assert(typeof Q==="number"&&isFinite(Q),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function YJ(J,Q){if(J===Q)return!0;if(typeof Q!==typeof J)return!1;if(typeof J!=="object"||J===null)return J===Q;if(!Q)return!1;if(Array.isArray(J)){if(!Array.isArray(Q))return!1;return J.every(function(X){return Q.some(function(Y){return YJ(X,Y)})})}if(J instanceof Date)if(Q instanceof Date)return J.getTime()===Q.getTime();else return!1;return Object.keys(J).every(function(X){let Y=J[X],$=Q[X];if(typeof Y==="object"&&Y!==null&&$!==null)return YJ(Y,$);if(typeof Y==="function")return Y($);return $===Y})}K(YJ,"compareSubset");U.addMethod("containSubset",function(J){let Q=I(this,"object"),X=H.showDiff;this.assert(YJ(J,Q),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",J,Q,X)});function c(J,Q){return new U(J,Q)}K(c,"expect");c.fail=function(J,Q,X,Y){if(arguments.length<2)X=J,J=void 0;throw X=X||"expect.fail()",new w(X,{actual:J,expected:Q,operator:Y},c.fail)};var IX={};vJ(IX,{Should:()=>dX,should:()=>cX});function RQ(){function J(){if(this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol==="function"&&this instanceof Symbol||typeof BigInt==="function"&&this instanceof BigInt)return new U(this.valueOf(),null,J);return new U(this,null,J)}K(J,"shouldGetter");function Q(Y){Object.defineProperty(this,"should",{value:Y,enumerable:!0,configurable:!0,writable:!0})}K(Q,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:Q,get:J,configurable:!0});let X={};return X.fail=function(Y,$,G,W){if(arguments.length<2)G=Y,Y=void 0;throw G=G||"should.fail()",new w(G,{actual:Y,expected:$,operator:W},X.fail)},X.equal=function(Y,$,G){new U(Y,G).to.equal($)},X.Throw=function(Y,$,G,W){new U(Y,W).to.Throw($,G)},X.exist=function(Y,$){new U(Y,$).to.exist},X.not={},X.not.equal=function(Y,$,G){new U(Y,G).to.not.equal($)},X.not.Throw=function(Y,$,G,W){new U(Y,W).to.not.Throw($,G)},X.not.exist=function(Y,$){new U(Y,$).to.not.exist},X.throw=X.Throw,X.not.throw=X.not.Throw,X}K(RQ,"loadShould");var cX=RQ,dX=RQ;function Z(J,Q){new U(null,null,Z,!0).assert(J,Q,"[ negation message unavailable ]")}K(Z,"assert");Z.fail=function(J,Q,X,Y){if(arguments.length<2)X=J,J=void 0;throw X=X||"assert.fail()",new w(X,{actual:J,expected:Q,operator:Y},Z.fail)};Z.isOk=function(J,Q){new U(J,Q,Z.isOk,!0).is.ok};Z.isNotOk=function(J,Q){new U(J,Q,Z.isNotOk,!0).is.not.ok};Z.equal=function(J,Q,X){let Y=new U(J,X,Z.equal,!0);Y.assert(Q==I(Y,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",Q,J,!0)};Z.notEqual=function(J,Q,X){let Y=new U(J,X,Z.notEqual,!0);Y.assert(Q!=I(Y,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",Q,J,!0)};Z.strictEqual=function(J,Q,X){new U(J,X,Z.strictEqual,!0).to.equal(Q)};Z.notStrictEqual=function(J,Q,X){new U(J,X,Z.notStrictEqual,!0).to.not.equal(Q)};Z.deepEqual=Z.deepStrictEqual=function(J,Q,X){new U(J,X,Z.deepEqual,!0).to.eql(Q)};Z.notDeepEqual=function(J,Q,X){new U(J,X,Z.notDeepEqual,!0).to.not.eql(Q)};Z.isAbove=function(J,Q,X){new U(J,X,Z.isAbove,!0).to.be.above(Q)};Z.isAtLeast=function(J,Q,X){new U(J,X,Z.isAtLeast,!0).to.be.least(Q)};Z.isBelow=function(J,Q,X){new U(J,X,Z.isBelow,!0).to.be.below(Q)};Z.isAtMost=function(J,Q,X){new U(J,X,Z.isAtMost,!0).to.be.most(Q)};Z.isTrue=function(J,Q){new U(J,Q,Z.isTrue,!0).is.true};Z.isNotTrue=function(J,Q){new U(J,Q,Z.isNotTrue,!0).to.not.equal(!0)};Z.isFalse=function(J,Q){new U(J,Q,Z.isFalse,!0).is.false};Z.isNotFalse=function(J,Q){new U(J,Q,Z.isNotFalse,!0).to.not.equal(!1)};Z.isNull=function(J,Q){new U(J,Q,Z.isNull,!0).to.equal(null)};Z.isNotNull=function(J,Q){new U(J,Q,Z.isNotNull,!0).to.not.equal(null)};Z.isNaN=function(J,Q){new U(J,Q,Z.isNaN,!0).to.be.NaN};Z.isNotNaN=function(J,Q){new U(J,Q,Z.isNotNaN,!0).not.to.be.NaN};Z.exists=function(J,Q){new U(J,Q,Z.exists,!0).to.exist};Z.notExists=function(J,Q){new U(J,Q,Z.notExists,!0).to.not.exist};Z.isUndefined=function(J,Q){new U(J,Q,Z.isUndefined,!0).to.equal(void 0)};Z.isDefined=function(J,Q){new U(J,Q,Z.isDefined,!0).to.not.equal(void 0)};Z.isCallable=function(J,Q){new U(J,Q,Z.isCallable,!0).is.callable};Z.isNotCallable=function(J,Q){new U(J,Q,Z.isNotCallable,!0).is.not.callable};Z.isObject=function(J,Q){new U(J,Q,Z.isObject,!0).to.be.a("object")};Z.isNotObject=function(J,Q){new U(J,Q,Z.isNotObject,!0).to.not.be.a("object")};Z.isArray=function(J,Q){new U(J,Q,Z.isArray,!0).to.be.an("array")};Z.isNotArray=function(J,Q){new U(J,Q,Z.isNotArray,!0).to.not.be.an("array")};Z.isString=function(J,Q){new U(J,Q,Z.isString,!0).to.be.a("string")};Z.isNotString=function(J,Q){new U(J,Q,Z.isNotString,!0).to.not.be.a("string")};Z.isNumber=function(J,Q){new U(J,Q,Z.isNumber,!0).to.be.a("number")};Z.isNotNumber=function(J,Q){new U(J,Q,Z.isNotNumber,!0).to.not.be.a("number")};Z.isNumeric=function(J,Q){new U(J,Q,Z.isNumeric,!0).is.numeric};Z.isNotNumeric=function(J,Q){new U(J,Q,Z.isNotNumeric,!0).is.not.numeric};Z.isFinite=function(J,Q){new U(J,Q,Z.isFinite,!0).to.be.finite};Z.isBoolean=function(J,Q){new U(J,Q,Z.isBoolean,!0).to.be.a("boolean")};Z.isNotBoolean=function(J,Q){new U(J,Q,Z.isNotBoolean,!0).to.not.be.a("boolean")};Z.typeOf=function(J,Q,X){new U(J,X,Z.typeOf,!0).to.be.a(Q)};Z.notTypeOf=function(J,Q,X){new U(J,X,Z.notTypeOf,!0).to.not.be.a(Q)};Z.instanceOf=function(J,Q,X){new U(J,X,Z.instanceOf,!0).to.be.instanceOf(Q)};Z.notInstanceOf=function(J,Q,X){new U(J,X,Z.notInstanceOf,!0).to.not.be.instanceOf(Q)};Z.include=function(J,Q,X){new U(J,X,Z.include,!0).include(Q)};Z.notInclude=function(J,Q,X){new U(J,X,Z.notInclude,!0).not.include(Q)};Z.deepInclude=function(J,Q,X){new U(J,X,Z.deepInclude,!0).deep.include(Q)};Z.notDeepInclude=function(J,Q,X){new U(J,X,Z.notDeepInclude,!0).not.deep.include(Q)};Z.nestedInclude=function(J,Q,X){new U(J,X,Z.nestedInclude,!0).nested.include(Q)};Z.notNestedInclude=function(J,Q,X){new U(J,X,Z.notNestedInclude,!0).not.nested.include(Q)};Z.deepNestedInclude=function(J,Q,X){new U(J,X,Z.deepNestedInclude,!0).deep.nested.include(Q)};Z.notDeepNestedInclude=function(J,Q,X){new U(J,X,Z.notDeepNestedInclude,!0).not.deep.nested.include(Q)};Z.ownInclude=function(J,Q,X){new U(J,X,Z.ownInclude,!0).own.include(Q)};Z.notOwnInclude=function(J,Q,X){new U(J,X,Z.notOwnInclude,!0).not.own.include(Q)};Z.deepOwnInclude=function(J,Q,X){new U(J,X,Z.deepOwnInclude,!0).deep.own.include(Q)};Z.notDeepOwnInclude=function(J,Q,X){new U(J,X,Z.notDeepOwnInclude,!0).not.deep.own.include(Q)};Z.match=function(J,Q,X){new U(J,X,Z.match,!0).to.match(Q)};Z.notMatch=function(J,Q,X){new U(J,X,Z.notMatch,!0).to.not.match(Q)};Z.property=function(J,Q,X){new U(J,X,Z.property,!0).to.have.property(Q)};Z.notProperty=function(J,Q,X){new U(J,X,Z.notProperty,!0).to.not.have.property(Q)};Z.propertyVal=function(J,Q,X,Y){new U(J,Y,Z.propertyVal,!0).to.have.property(Q,X)};Z.notPropertyVal=function(J,Q,X,Y){new U(J,Y,Z.notPropertyVal,!0).to.not.have.property(Q,X)};Z.deepPropertyVal=function(J,Q,X,Y){new U(J,Y,Z.deepPropertyVal,!0).to.have.deep.property(Q,X)};Z.notDeepPropertyVal=function(J,Q,X,Y){new U(J,Y,Z.notDeepPropertyVal,!0).to.not.have.deep.property(Q,X)};Z.ownProperty=function(J,Q,X){new U(J,X,Z.ownProperty,!0).to.have.own.property(Q)};Z.notOwnProperty=function(J,Q,X){new U(J,X,Z.notOwnProperty,!0).to.not.have.own.property(Q)};Z.ownPropertyVal=function(J,Q,X,Y){new U(J,Y,Z.ownPropertyVal,!0).to.have.own.property(Q,X)};Z.notOwnPropertyVal=function(J,Q,X,Y){new U(J,Y,Z.notOwnPropertyVal,!0).to.not.have.own.property(Q,X)};Z.deepOwnPropertyVal=function(J,Q,X,Y){new U(J,Y,Z.deepOwnPropertyVal,!0).to.have.deep.own.property(Q,X)};Z.notDeepOwnPropertyVal=function(J,Q,X,Y){new U(J,Y,Z.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(Q,X)};Z.nestedProperty=function(J,Q,X){new U(J,X,Z.nestedProperty,!0).to.have.nested.property(Q)};Z.notNestedProperty=function(J,Q,X){new U(J,X,Z.notNestedProperty,!0).to.not.have.nested.property(Q)};Z.nestedPropertyVal=function(J,Q,X,Y){new U(J,Y,Z.nestedPropertyVal,!0).to.have.nested.property(Q,X)};Z.notNestedPropertyVal=function(J,Q,X,Y){new U(J,Y,Z.notNestedPropertyVal,!0).to.not.have.nested.property(Q,X)};Z.deepNestedPropertyVal=function(J,Q,X,Y){new U(J,Y,Z.deepNestedPropertyVal,!0).to.have.deep.nested.property(Q,X)};Z.notDeepNestedPropertyVal=function(J,Q,X,Y){new U(J,Y,Z.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(Q,X)};Z.lengthOf=function(J,Q,X){new U(J,X,Z.lengthOf,!0).to.have.lengthOf(Q)};Z.hasAnyKeys=function(J,Q,X){new U(J,X,Z.hasAnyKeys,!0).to.have.any.keys(Q)};Z.hasAllKeys=function(J,Q,X){new U(J,X,Z.hasAllKeys,!0).to.have.all.keys(Q)};Z.containsAllKeys=function(J,Q,X){new U(J,X,Z.containsAllKeys,!0).to.contain.all.keys(Q)};Z.doesNotHaveAnyKeys=function(J,Q,X){new U(J,X,Z.doesNotHaveAnyKeys,!0).to.not.have.any.keys(Q)};Z.doesNotHaveAllKeys=function(J,Q,X){new U(J,X,Z.doesNotHaveAllKeys,!0).to.not.have.all.keys(Q)};Z.hasAnyDeepKeys=function(J,Q,X){new U(J,X,Z.hasAnyDeepKeys,!0).to.have.any.deep.keys(Q)};Z.hasAllDeepKeys=function(J,Q,X){new U(J,X,Z.hasAllDeepKeys,!0).to.have.all.deep.keys(Q)};Z.containsAllDeepKeys=function(J,Q,X){new U(J,X,Z.containsAllDeepKeys,!0).to.contain.all.deep.keys(Q)};Z.doesNotHaveAnyDeepKeys=function(J,Q,X){new U(J,X,Z.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(Q)};Z.doesNotHaveAllDeepKeys=function(J,Q,X){new U(J,X,Z.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(Q)};Z.throws=function(J,Q,X,Y){if(typeof Q==="string"||Q instanceof RegExp)X=Q,Q=null;let $=new U(J,Y,Z.throws,!0).to.throw(Q,X);return I($,"object")};Z.doesNotThrow=function(J,Q,X,Y){if(typeof Q==="string"||Q instanceof RegExp)X=Q,Q=null;new U(J,Y,Z.doesNotThrow,!0).to.not.throw(Q,X)};Z.operator=function(J,Q,X,Y){let $;switch(Q){case"==":$=J==X;break;case"===":$=J===X;break;case">":$=J>X;break;case">=":$=J>=X;break;case"<":$=J<X;break;case"<=":$=J<=X;break;case"!=":$=J!=X;break;case"!==":$=J!==X;break;default:throw Y=Y?Y+": ":Y,new w(Y+'Invalid operator "'+Q+'"',void 0,Z.operator)}let G=new U($,Y,Z.operator,!0);G.assert(I(G,"object")===!0,"expected "+N(J)+" to be "+Q+" "+N(X),"expected "+N(J)+" to not be "+Q+" "+N(X))};Z.closeTo=function(J,Q,X,Y){new U(J,Y,Z.closeTo,!0).to.be.closeTo(Q,X)};Z.approximately=function(J,Q,X,Y){new U(J,Y,Z.approximately,!0).to.be.approximately(Q,X)};Z.sameMembers=function(J,Q,X){new U(J,X,Z.sameMembers,!0).to.have.same.members(Q)};Z.notSameMembers=function(J,Q,X){new U(J,X,Z.notSameMembers,!0).to.not.have.same.members(Q)};Z.sameDeepMembers=function(J,Q,X){new U(J,X,Z.sameDeepMembers,!0).to.have.same.deep.members(Q)};Z.notSameDeepMembers=function(J,Q,X){new U(J,X,Z.notSameDeepMembers,!0).to.not.have.same.deep.members(Q)};Z.sameOrderedMembers=function(J,Q,X){new U(J,X,Z.sameOrderedMembers,!0).to.have.same.ordered.members(Q)};Z.notSameOrderedMembers=function(J,Q,X){new U(J,X,Z.notSameOrderedMembers,!0).to.not.have.same.ordered.members(Q)};Z.sameDeepOrderedMembers=function(J,Q,X){new U(J,X,Z.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(Q)};Z.notSameDeepOrderedMembers=function(J,Q,X){new U(J,X,Z.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(Q)};Z.includeMembers=function(J,Q,X){new U(J,X,Z.includeMembers,!0).to.include.members(Q)};Z.notIncludeMembers=function(J,Q,X){new U(J,X,Z.notIncludeMembers,!0).to.not.include.members(Q)};Z.includeDeepMembers=function(J,Q,X){new U(J,X,Z.includeDeepMembers,!0).to.include.deep.members(Q)};Z.notIncludeDeepMembers=function(J,Q,X){new U(J,X,Z.notIncludeDeepMembers,!0).to.not.include.deep.members(Q)};Z.includeOrderedMembers=function(J,Q,X){new U(J,X,Z.includeOrderedMembers,!0).to.include.ordered.members(Q)};Z.notIncludeOrderedMembers=function(J,Q,X){new U(J,X,Z.notIncludeOrderedMembers,!0).to.not.include.ordered.members(Q)};Z.includeDeepOrderedMembers=function(J,Q,X){new U(J,X,Z.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(Q)};Z.notIncludeDeepOrderedMembers=function(J,Q,X){new U(J,X,Z.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(Q)};Z.oneOf=function(J,Q,X){new U(J,X,Z.oneOf,!0).to.be.oneOf(Q)};Z.isIterable=function(J,Q){if(J==null||!J[Symbol.iterator])throw Q=Q?`${Q} expected ${N(J)} to be an iterable`:`expected ${N(J)} to be an iterable`,new w(Q,void 0,Z.isIterable)};Z.changes=function(J,Q,X,Y){if(arguments.length===3&&typeof Q==="function")Y=X,X=null;new U(J,Y,Z.changes,!0).to.change(Q,X)};Z.changesBy=function(J,Q,X,Y,$){if(arguments.length===4&&typeof Q==="function"){let G=Y;Y=X,$=G}else if(arguments.length===3)Y=X,X=null;new U(J,$,Z.changesBy,!0).to.change(Q,X).by(Y)};Z.doesNotChange=function(J,Q,X,Y){if(arguments.length===3&&typeof Q==="function")Y=X,X=null;return new U(J,Y,Z.doesNotChange,!0).to.not.change(Q,X)};Z.changesButNotBy=function(J,Q,X,Y,$){if(arguments.length===4&&typeof Q==="function"){let G=Y;Y=X,$=G}else if(arguments.length===3)Y=X,X=null;new U(J,$,Z.changesButNotBy,!0).to.change(Q,X).but.not.by(Y)};Z.increases=function(J,Q,X,Y){if(arguments.length===3&&typeof Q==="function")Y=X,X=null;return new U(J,Y,Z.increases,!0).to.increase(Q,X)};Z.increasesBy=function(J,Q,X,Y,$){if(arguments.length===4&&typeof Q==="function"){let G=Y;Y=X,$=G}else if(arguments.length===3)Y=X,X=null;new U(J,$,Z.increasesBy,!0).to.increase(Q,X).by(Y)};Z.doesNotIncrease=function(J,Q,X,Y){if(arguments.length===3&&typeof Q==="function")Y=X,X=null;return new U(J,Y,Z.doesNotIncrease,!0).to.not.increase(Q,X)};Z.increasesButNotBy=function(J,Q,X,Y,$){if(arguments.length===4&&typeof Q==="function"){let G=Y;Y=X,$=G}else if(arguments.length===3)Y=X,X=null;new U(J,$,Z.increasesButNotBy,!0).to.increase(Q,X).but.not.by(Y)};Z.decreases=function(J,Q,X,Y){if(arguments.length===3&&typeof Q==="function")Y=X,X=null;return new U(J,Y,Z.decreases,!0).to.decrease(Q,X)};Z.decreasesBy=function(J,Q,X,Y,$){if(arguments.length===4&&typeof Q==="function"){let G=Y;Y=X,$=G}else if(arguments.length===3)Y=X,X=null;new U(J,$,Z.decreasesBy,!0).to.decrease(Q,X).by(Y)};Z.doesNotDecrease=function(J,Q,X,Y){if(arguments.length===3&&typeof Q==="function")Y=X,X=null;return new U(J,Y,Z.doesNotDecrease,!0).to.not.decrease(Q,X)};Z.doesNotDecreaseBy=function(J,Q,X,Y,$){if(arguments.length===4&&typeof Q==="function"){let G=Y;Y=X,$=G}else if(arguments.length===3)Y=X,X=null;return new U(J,$,Z.doesNotDecreaseBy,!0).to.not.decrease(Q,X).by(Y)};Z.decreasesButNotBy=function(J,Q,X,Y,$){if(arguments.length===4&&typeof Q==="function"){let G=Y;Y=X,$=G}else if(arguments.length===3)Y=X,X=null;new U(J,$,Z.decreasesButNotBy,!0).to.decrease(Q,X).but.not.by(Y)};Z.ifError=function(J){if(J)throw J};Z.isExtensible=function(J,Q){new U(J,Q,Z.isExtensible,!0).to.be.extensible};Z.isNotExtensible=function(J,Q){new U(J,Q,Z.isNotExtensible,!0).to.not.be.extensible};Z.isSealed=function(J,Q){new U(J,Q,Z.isSealed,!0).to.be.sealed};Z.isNotSealed=function(J,Q){new U(J,Q,Z.isNotSealed,!0).to.not.be.sealed};Z.isFrozen=function(J,Q){new U(J,Q,Z.isFrozen,!0).to.be.frozen};Z.isNotFrozen=function(J,Q){new U(J,Q,Z.isNotFrozen,!0).to.not.be.frozen};Z.isEmpty=function(J,Q){new U(J,Q,Z.isEmpty,!0).to.be.empty};Z.isNotEmpty=function(J,Q){new U(J,Q,Z.isNotEmpty,!0).to.not.be.empty};Z.containsSubset=function(J,Q,X){new U(J,X).to.containSubset(Q)};Z.doesNotContainSubset=function(J,Q,X){new U(J,X).to.not.containSubset(Q)};var mX=[["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"],["containsSubset","containSubset"]];for(let[J,Q]of mX)Z[Q]=Z[J];var EQ=[];function DX(J){let Q={use:DX,AssertionError:w,util:t,config:H,expect:c,assert:Z,Assertion:U,...IX};if(!~EQ.indexOf(J))J(Q,t),EQ.push(J);return Q}K(DX,"use");var SX={title:"",tests:[],beforeAll:[],afterAll:[],beforeEach:[],afterEach:[],suites:[]},v=SX,gX=5000;function lX(J,Q){let X={title:J,tests:[],beforeAll:[],afterAll:[],beforeEach:[],afterEach:[],suites:[]};v.suites.push(X);let Y=v;v=X,Q(),v=Y}function pX(J,Q){v.tests.push({title:J,fn:Q})}function iX(J){v.beforeAll.push({fn:J})}function nX(J){v.afterAll.push({fn:J})}function oX(J){v.beforeEach.push({fn:J})}function aX(J){v.afterEach.push({fn:J})}async function r(J,Q){let X,Y=await Promise.race([J(),new Promise(($,G)=>{X=setTimeout(()=>G(Error(`Timeout of ${Q}ms exceeded`)),Q)})]);if(X)clearTimeout(X),X=void 0;return Y}async function NX(J,Q){let X={title:J.title,beforeAll:[],beforeEach:[],tests:[],afterEach:[],afterAll:[],suites:[],passed:!0,passedSuites:0,failedSuites:0,passedTests:0,failedTests:0,totalTests:0,totalSuites:0};for(let{fn:Y}of J.beforeAll)try{await r(Y,Q),X.beforeAll.push({title:"beforeAll hook",passed:!0})}catch($){X.beforeAll.push({title:"beforeAll hook",passed:!1,error:{name:$.name,message:$.message,stack:$.stack}})}for(let Y of J.tests){for(let{fn:$}of J.beforeEach)try{await r($,Q),X.beforeEach.push({title:"beforeEach hook",passed:!0})}catch(G){X.beforeEach.push({title:"beforeEach hook",passed:!1,error:{name:G.name,message:G.message,stack:G.stack}})}try{await r(Y.fn,Q),X.tests.push({title:Y.title,passed:!0})}catch($){X.tests.push({title:Y.title,passed:!1,error:{name:$.name,message:$.message,stack:$.stack}})}for(let{fn:$}of J.afterEach)try{await r($,Q),X.afterEach.push({title:"afterEach hook",passed:!0})}catch(G){X.afterEach.push({title:"afterEach hook",passed:!1,error:{name:G.name,message:G.message,stack:G.stack}})}}for(let Y of J.suites){let $=await NX(Y,Q);X.suites.push($)}for(let{fn:Y}of J.afterAll)try{await r(Y,Q),X.afterAll.push({title:"afterAll hook",passed:!0})}catch($){X.afterAll.push({title:"afterAll hook",passed:!1,error:{name:$.name,message:$.message,stack:$.stack}})}for(let Y of X.suites){let{failed:$,passed:G}=Y.tests.reduce((W,V)=>{let{failed:F,passed:q}=W;if(V.passed)q++;else F++;return{failed:F,passed:q}},{failed:0,passed:0});if(X.totalSuites++,X.totalTests=X.totalTests+G+$,X.passedTests=X.passedTests+G,X.failedTests=X.failedTests+$,!Y.passed)X.passed=!1,X.passedSuites++;else X.failedSuites++}return X}async function rX(J=gX){return await NX(SX,J)}globalThis.describe=lX;globalThis.it=pX;globalThis.beforeAll=iX;globalThis.afterAll=nX;globalThis.beforeEach=oX;globalThis.afterEach=aX;globalThis.runTests=rX;globalThis.expect=c;export{rX as runTests,pX as it,c as expect,lX as describe,oX as beforeEach,iX as beforeAll,aX as afterEach,nX as afterAll};
@@ -0,0 +1,2 @@
1
+ declare const _default: "\n/* esm.sh - eventemitter3@5.0.1 */\nvar E=Object.create;var d=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty;var k=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var P=(n,e,t,s)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let i of O(e))!A.call(n,i)&&i!==t&&d(n,i,{get:()=>e[i],enumerable:!(s=L(e,i))||s.enumerable});return n};var N=(n,e,t)=>(t=n!=null?E(C(n)):{},P(e||!n||!n.__esModule?d(t,\"default\",{value:n,enumerable:!0}):t,n));var m=k((q,x)=>{\"use strict\";var S=Object.prototype.hasOwnProperty,l=\"~\";function _(){}Object.create&&(_.prototype=Object.create(null),new _().__proto__||(l=!1));function T(n,e,t){this.fn=n,this.context=e,this.once=t||!1}function w(n,e,t,s,i){if(typeof t!=\"function\")throw new TypeError(\"The listener must be a function\");var u=new T(t,s||n,i),o=l?l+e:e;return n._events[o]?n._events[o].fn?n._events[o]=[n._events[o],u]:n._events[o].push(u):(n._events[o]=u,n._eventsCount++),n}function y(n,e){--n._eventsCount===0?n._events=new _:delete n._events[e]}function c(){this._events=new _,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,s;if(this._eventsCount===0)return e;for(s in t=this._events)S.call(t,s)&&e.push(l?s.slice(1):s);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};c.prototype.listeners=function(e){var t=l?l+e:e,s=this._events[t];if(!s)return[];if(s.fn)return[s.fn];for(var i=0,u=s.length,o=new Array(u);i<u;i++)o[i]=s[i].fn;return o};c.prototype.listenerCount=function(e){var t=l?l+e:e,s=this._events[t];return s?s.fn?1:s.length:0};c.prototype.emit=function(e,t,s,i,u,o){var a=l?l+e:e;if(!this._events[a])return!1;var r=this._events[a],p=arguments.length,h,f;if(r.fn){switch(r.once&&this.removeListener(e,r.fn,void 0,!0),p){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,t),!0;case 3:return r.fn.call(r.context,t,s),!0;case 4:return r.fn.call(r.context,t,s,i),!0;case 5:return r.fn.call(r.context,t,s,i,u),!0;case 6:return r.fn.call(r.context,t,s,i,u,o),!0}for(f=1,h=new Array(p-1);f<p;f++)h[f-1]=arguments[f];r.fn.apply(r.context,h)}else{var b=r.length,v;for(f=0;f<b;f++)switch(r[f].once&&this.removeListener(e,r[f].fn,void 0,!0),p){case 1:r[f].fn.call(r[f].context);break;case 2:r[f].fn.call(r[f].context,t);break;case 3:r[f].fn.call(r[f].context,t,s);break;case 4:r[f].fn.call(r[f].context,t,s,i);break;default:if(!h)for(v=1,h=new Array(p-1);v<p;v++)h[v-1]=arguments[v];r[f].fn.apply(r[f].context,h)}}return!0};c.prototype.on=function(e,t,s){return w(this,e,t,s,!1)};c.prototype.once=function(e,t,s){return w(this,e,t,s,!0)};c.prototype.removeListener=function(e,t,s,i){var u=l?l+e:e;if(!this._events[u])return this;if(!t)return y(this,u),this;var o=this._events[u];if(o.fn)o.fn===t&&(!i||o.once)&&(!s||o.context===s)&&y(this,u);else{for(var a=0,r=[],p=o.length;a<p;a++)(o[a].fn!==t||i&&!o[a].once||s&&o[a].context!==s)&&r.push(o[a]);r.length?this._events[u]=r.length===1?r[0]:r:y(this,u)}return this};c.prototype.removeAllListeners=function(e){var t;return e?(t=l?l+e:e,this._events[t]&&y(this,t)):(this._events=new _,this._eventsCount=0),this};c.prototype.off=c.prototype.removeListener;c.prototype.addListener=c.prototype.on;c.prefixed=l;c.EventEmitter=c;typeof x<\"u\"&&(x.exports=c)});var g=N(m(),1);var z=g.default;var export_EventEmitter=g.default;export{export_EventEmitter as EventEmitter,z as default};\n";
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export default `
2
+ /* esm.sh - eventemitter3@5.0.1 */
3
+ var E=Object.create;var d=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty;var k=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var P=(n,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of O(e))!A.call(n,i)&&i!==t&&d(n,i,{get:()=>e[i],enumerable:!(s=L(e,i))||s.enumerable});return n};var N=(n,e,t)=>(t=n!=null?E(C(n)):{},P(e||!n||!n.__esModule?d(t,"default",{value:n,enumerable:!0}):t,n));var m=k((q,x)=>{"use strict";var S=Object.prototype.hasOwnProperty,l="~";function _(){}Object.create&&(_.prototype=Object.create(null),new _().__proto__||(l=!1));function T(n,e,t){this.fn=n,this.context=e,this.once=t||!1}function w(n,e,t,s,i){if(typeof t!="function")throw new TypeError("The listener must be a function");var u=new T(t,s||n,i),o=l?l+e:e;return n._events[o]?n._events[o].fn?n._events[o]=[n._events[o],u]:n._events[o].push(u):(n._events[o]=u,n._eventsCount++),n}function y(n,e){--n._eventsCount===0?n._events=new _:delete n._events[e]}function c(){this._events=new _,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,s;if(this._eventsCount===0)return e;for(s in t=this._events)S.call(t,s)&&e.push(l?s.slice(1):s);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};c.prototype.listeners=function(e){var t=l?l+e:e,s=this._events[t];if(!s)return[];if(s.fn)return[s.fn];for(var i=0,u=s.length,o=new Array(u);i<u;i++)o[i]=s[i].fn;return o};c.prototype.listenerCount=function(e){var t=l?l+e:e,s=this._events[t];return s?s.fn?1:s.length:0};c.prototype.emit=function(e,t,s,i,u,o){var a=l?l+e:e;if(!this._events[a])return!1;var r=this._events[a],p=arguments.length,h,f;if(r.fn){switch(r.once&&this.removeListener(e,r.fn,void 0,!0),p){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,t),!0;case 3:return r.fn.call(r.context,t,s),!0;case 4:return r.fn.call(r.context,t,s,i),!0;case 5:return r.fn.call(r.context,t,s,i,u),!0;case 6:return r.fn.call(r.context,t,s,i,u,o),!0}for(f=1,h=new Array(p-1);f<p;f++)h[f-1]=arguments[f];r.fn.apply(r.context,h)}else{var b=r.length,v;for(f=0;f<b;f++)switch(r[f].once&&this.removeListener(e,r[f].fn,void 0,!0),p){case 1:r[f].fn.call(r[f].context);break;case 2:r[f].fn.call(r[f].context,t);break;case 3:r[f].fn.call(r[f].context,t,s);break;case 4:r[f].fn.call(r[f].context,t,s,i);break;default:if(!h)for(v=1,h=new Array(p-1);v<p;v++)h[v-1]=arguments[v];r[f].fn.apply(r[f].context,h)}}return!0};c.prototype.on=function(e,t,s){return w(this,e,t,s,!1)};c.prototype.once=function(e,t,s){return w(this,e,t,s,!0)};c.prototype.removeListener=function(e,t,s,i){var u=l?l+e:e;if(!this._events[u])return this;if(!t)return y(this,u),this;var o=this._events[u];if(o.fn)o.fn===t&&(!i||o.once)&&(!s||o.context===s)&&y(this,u);else{for(var a=0,r=[],p=o.length;a<p;a++)(o[a].fn!==t||i&&!o[a].once||s&&o[a].context!==s)&&r.push(o[a]);r.length?this._events[u]=r.length===1?r[0]:r:y(this,u)}return this};c.prototype.removeAllListeners=function(e){var t;return e?(t=l?l+e:e,this._events[t]&&y(this,t)):(this._events=new _,this._eventsCount=0),this};c.prototype.off=c.prototype.removeListener;c.prototype.addListener=c.prototype.on;c.prefixed=l;c.EventEmitter=c;typeof x<"u"&&(x.exports=c)});var g=N(m(),1);var z=g.default;var export_EventEmitter=g.default;export{export_EventEmitter as EventEmitter,z as default};
4
+ `;
@@ -0,0 +1,2 @@
1
+ declare const _default: "\nimport { resolve } from 'node:path'\n\nexport const access = (path, ...params) => __fs.access(resolve(path), ...params)\nexport const accessSync = (path, ...params) => __fs.accessSync(resolve(path), ...params)\nexport const appendFile = (path, data, ...params) => __fs.appendFile(resolve(path), data, ...params)\nexport const appendFileSync = (path, data, ...params) => __fs.appendFileSync(resolve(path), data, ...params)\nexport const chmod = (path, mode) => {__fs.chmod(resolve(path), mode)}\nexport const chmodSync = (path, mode) => __fs.chmodSync(resolve(path), mode)\nexport const chown = (path, uid, gid) => __fs.chown(resolve(path), uid, gid)\nexport const chownSync = (path, uid, gid) => __fs.chownSync(resolve(path), uid, gid)\nexport const close = (...params) => __fs.close(...params)\nexport const closeSync = (...params) => __fs.closeSync(...params)\nexport const copyFile = (src, dest, ...params) => __fs.copyFile(resolve(src), resolve(dest), ...params)\nexport const copyFileSync = (src, dest, ...params) => __fs.copyFileSync(resolve(src), resolve(dest), ...params)\nexport const createReadStream = (path, ...params) => __fs.createReadStream(resolve(path), ...params)\nexport const createWriteStream = (path, ...params) => __fs.createWriteStream(resolve(path), ...params)\nexport const exists = (path, ...params) => __fs.exists(resolve(path), ...params)\nexport const existsSync = (path, ...params) => __fs.existsSync(resolve(path), ...params)\nexport const fchmod = (...params) => __fs.fchmod(...params)\nexport const fchmodSync = (...params) => __fs.fchmodSync(...params)\nexport const fchown = (...params) => __fs.fchown(...params)\nexport const fchownSync = (...params) => __fs.fchownSync(...params)\nexport const fdatasync = (...params) => __fs.fdatasync(...params)\nexport const fdatasyncSync = (...params) => __fs.fdatasyncSync(...params)\nexport const fstat = (...params) => __fs.fstat(...params)\nexport const fstatSync = (...params) => __fs.fstatSync(...params)\nexport const fsync = (...params) => __fs.fsync(...params)\nexport const fsyncSync = (...params) => __fs.fsyncSync(...params)\nexport const ftruncate = (...params) => __fs.ftruncate(...params)\nexport const ftruncateSync = (...params) => __fs.ftruncateSync(...params)\nexport const futimes = (...params) => __fs.futimes(...params)\nexport const futimesSync = (...params) => __fs.futimesSync(...params)\nexport const lchmod = (path, mode) => __fs.lchmod(resolve(path), mode)\nexport const lchmodSync = (path, mode) => __fs.lchmodSync(resolve(path), mode)\nexport const lchown = (path, uid, gid) => __fs.lchown(resolve(path), uid, gid)\nexport const lchownSync = (path, uid, gid) => __fs.lchownSync(resolve(path), uid, gid)\nexport const link = (existingPath, newPath, ...params) => __fs.link(resolve(existingPath), resolve(newPath), ...params)\nexport const linkSync = (existingPath, newPath, ...params) => __fs.linkSync(resolve(existingPath), resolve(newPath), ...params)\nexport const lstat = (path, ...params) => __fs.lstat(resolve(path), ...params)\nexport const lstatSync = (path, ...params) => __fs.lstatSync(resolve(path), ...params)\nexport const mkdir = (path, ...params) => __fs.mkdir(resolve(path), ...params)\nexport const mkdirSync = (path, ...params) => __fs.mkdirSync(resolve(path), ...params)\nexport const mkdtemp = (prefix, ...params) => __fs.mkdtemp(resolve(prefix), ...params)\nexport const mkdtempSync = (prefix, ...params) => __fs.mkdtempSync(resolve(prefix), ...params)\nexport const open = (path, ...params) => __fs.open(resolve(path), ...params)\nexport const openSync = (path, ...params) => __fs.openSync(resolve(path), ...params)\nexport const readdir = (path, ...params) => __fs.readdir(resolve(path), ...params)\nexport const readdirSync = (path, ...params) => __fs.readdirSync(resolve(path), ...params)\nexport const read = (...params) => __fs.read(...params)\nexport const readSync = (...params) => __fs.readSync(...params)\nexport const readFile = (file, ...params) => __fs.readFile(resolve(file), ...params)\nexport const readFileSync = (file, ...params) => __fs.readFileSync(resolve(file), ...params)\nexport const readlink = (path, ...params) => __fs.readlink(resolve(path), ...params)\nexport const readlinkSync = (path, ...params) => __fs.readlinkSync(resolve(path), ...params)\nexport const realpath = (path, ...params) => __fs.realpath(resolve(path), ...params)\nexport const realpathSync = (path, ...params) => __fs.realpathSync(resolve(path), ...params)\nexport const rename = (oldPath, newPath, ...params) => __fs.rename(resolve(oldPath), resolve(newPath), ...params)\nexport const renameSync = (oldPath, newPath, ...params) => __fs.renameSync(resolve(oldPath), resolve(newPath), ...params)\nexport const rmdir = (path, ...params) => __fs.rmdir(resolve(path), ...params)\nexport const rmdirSync = (path, ...params) => __fs.rmdirSync(resolve(path), ...params)\nexport const stat = (path, ...params) => __fs.stat(resolve(path), ...params)\nexport const statSync = (path, ...params) => __fs.statSync(resolve(path), ...params)\nexport const symlink = (target, path, ...params) => __fs.symlink(resolve(target), resolve(path), ...params)\nexport const symlinkSync = (target, path, ...params) => __fs.symlinkSync(resolve(target), resolve(path), ...params)\nexport const truncate = (path, ...params) => __fs.truncate(resolve(path), ...params)\nexport const truncateSync = (path, ...params) => __fs.truncateSync(resolve(path), ...params)\nexport const unlink = (path, ...params) => __fs.unlink(resolve(path), ...params)\nexport const unlinkSync = (path, ...params) => __fs.unlinkSync(resolve(path), ...params)\nexport const utimes = (path, ...params) => __fs.utimes(resolve(path), ...params)\nexport const utimesSync = (path, ...params) => __fs.utimesSync(resolve(path), ...params)\nexport const write = (...params) => __fs.write(...params)\nexport const writeSync = (...params) => __fs.writeSync(...params)\nexport const writeFile = (file, data, ...params) => __fs.writeFile(resolve(file), data, ...params)\nexport const writeFileSync = (file, ...params) => __fs.writeFileSync(resolve(file), ...params)\n";
2
+ export default _default;
@@ -0,0 +1,76 @@
1
+ export default `
2
+ import { resolve } from 'node:path'
3
+
4
+ export const access = (path, ...params) => __fs.access(resolve(path), ...params)
5
+ export const accessSync = (path, ...params) => __fs.accessSync(resolve(path), ...params)
6
+ export const appendFile = (path, data, ...params) => __fs.appendFile(resolve(path), data, ...params)
7
+ export const appendFileSync = (path, data, ...params) => __fs.appendFileSync(resolve(path), data, ...params)
8
+ export const chmod = (path, mode) => {__fs.chmod(resolve(path), mode)}
9
+ export const chmodSync = (path, mode) => __fs.chmodSync(resolve(path), mode)
10
+ export const chown = (path, uid, gid) => __fs.chown(resolve(path), uid, gid)
11
+ export const chownSync = (path, uid, gid) => __fs.chownSync(resolve(path), uid, gid)
12
+ export const close = (...params) => __fs.close(...params)
13
+ export const closeSync = (...params) => __fs.closeSync(...params)
14
+ export const copyFile = (src, dest, ...params) => __fs.copyFile(resolve(src), resolve(dest), ...params)
15
+ export const copyFileSync = (src, dest, ...params) => __fs.copyFileSync(resolve(src), resolve(dest), ...params)
16
+ export const createReadStream = (path, ...params) => __fs.createReadStream(resolve(path), ...params)
17
+ export const createWriteStream = (path, ...params) => __fs.createWriteStream(resolve(path), ...params)
18
+ export const exists = (path, ...params) => __fs.exists(resolve(path), ...params)
19
+ export const existsSync = (path, ...params) => __fs.existsSync(resolve(path), ...params)
20
+ export const fchmod = (...params) => __fs.fchmod(...params)
21
+ export const fchmodSync = (...params) => __fs.fchmodSync(...params)
22
+ export const fchown = (...params) => __fs.fchown(...params)
23
+ export const fchownSync = (...params) => __fs.fchownSync(...params)
24
+ export const fdatasync = (...params) => __fs.fdatasync(...params)
25
+ export const fdatasyncSync = (...params) => __fs.fdatasyncSync(...params)
26
+ export const fstat = (...params) => __fs.fstat(...params)
27
+ export const fstatSync = (...params) => __fs.fstatSync(...params)
28
+ export const fsync = (...params) => __fs.fsync(...params)
29
+ export const fsyncSync = (...params) => __fs.fsyncSync(...params)
30
+ export const ftruncate = (...params) => __fs.ftruncate(...params)
31
+ export const ftruncateSync = (...params) => __fs.ftruncateSync(...params)
32
+ export const futimes = (...params) => __fs.futimes(...params)
33
+ export const futimesSync = (...params) => __fs.futimesSync(...params)
34
+ export const lchmod = (path, mode) => __fs.lchmod(resolve(path), mode)
35
+ export const lchmodSync = (path, mode) => __fs.lchmodSync(resolve(path), mode)
36
+ export const lchown = (path, uid, gid) => __fs.lchown(resolve(path), uid, gid)
37
+ export const lchownSync = (path, uid, gid) => __fs.lchownSync(resolve(path), uid, gid)
38
+ export const link = (existingPath, newPath, ...params) => __fs.link(resolve(existingPath), resolve(newPath), ...params)
39
+ export const linkSync = (existingPath, newPath, ...params) => __fs.linkSync(resolve(existingPath), resolve(newPath), ...params)
40
+ export const lstat = (path, ...params) => __fs.lstat(resolve(path), ...params)
41
+ export const lstatSync = (path, ...params) => __fs.lstatSync(resolve(path), ...params)
42
+ export const mkdir = (path, ...params) => __fs.mkdir(resolve(path), ...params)
43
+ export const mkdirSync = (path, ...params) => __fs.mkdirSync(resolve(path), ...params)
44
+ export const mkdtemp = (prefix, ...params) => __fs.mkdtemp(resolve(prefix), ...params)
45
+ export const mkdtempSync = (prefix, ...params) => __fs.mkdtempSync(resolve(prefix), ...params)
46
+ export const open = (path, ...params) => __fs.open(resolve(path), ...params)
47
+ export const openSync = (path, ...params) => __fs.openSync(resolve(path), ...params)
48
+ export const readdir = (path, ...params) => __fs.readdir(resolve(path), ...params)
49
+ export const readdirSync = (path, ...params) => __fs.readdirSync(resolve(path), ...params)
50
+ export const read = (...params) => __fs.read(...params)
51
+ export const readSync = (...params) => __fs.readSync(...params)
52
+ export const readFile = (file, ...params) => __fs.readFile(resolve(file), ...params)
53
+ export const readFileSync = (file, ...params) => __fs.readFileSync(resolve(file), ...params)
54
+ export const readlink = (path, ...params) => __fs.readlink(resolve(path), ...params)
55
+ export const readlinkSync = (path, ...params) => __fs.readlinkSync(resolve(path), ...params)
56
+ export const realpath = (path, ...params) => __fs.realpath(resolve(path), ...params)
57
+ export const realpathSync = (path, ...params) => __fs.realpathSync(resolve(path), ...params)
58
+ export const rename = (oldPath, newPath, ...params) => __fs.rename(resolve(oldPath), resolve(newPath), ...params)
59
+ export const renameSync = (oldPath, newPath, ...params) => __fs.renameSync(resolve(oldPath), resolve(newPath), ...params)
60
+ export const rmdir = (path, ...params) => __fs.rmdir(resolve(path), ...params)
61
+ export const rmdirSync = (path, ...params) => __fs.rmdirSync(resolve(path), ...params)
62
+ export const stat = (path, ...params) => __fs.stat(resolve(path), ...params)
63
+ export const statSync = (path, ...params) => __fs.statSync(resolve(path), ...params)
64
+ export const symlink = (target, path, ...params) => __fs.symlink(resolve(target), resolve(path), ...params)
65
+ export const symlinkSync = (target, path, ...params) => __fs.symlinkSync(resolve(target), resolve(path), ...params)
66
+ export const truncate = (path, ...params) => __fs.truncate(resolve(path), ...params)
67
+ export const truncateSync = (path, ...params) => __fs.truncateSync(resolve(path), ...params)
68
+ export const unlink = (path, ...params) => __fs.unlink(resolve(path), ...params)
69
+ export const unlinkSync = (path, ...params) => __fs.unlinkSync(resolve(path), ...params)
70
+ export const utimes = (path, ...params) => __fs.utimes(resolve(path), ...params)
71
+ export const utimesSync = (path, ...params) => __fs.utimesSync(resolve(path), ...params)
72
+ export const write = (...params) => __fs.write(...params)
73
+ export const writeSync = (...params) => __fs.writeSync(...params)
74
+ export const writeFile = (file, data, ...params) => __fs.writeFile(resolve(file), data, ...params)
75
+ export const writeFileSync = (file, ...params) => __fs.writeFileSync(resolve(file), ...params)
76
+ `;
@@ -0,0 +1,2 @@
1
+ declare const _default: "\nimport { resolve as pathResolve } from 'node:path'\n\nexport const access = (path, mode) => new Promise((resolve, reject) => {\n try {\n __fs.accessSync(pathResolve(path), mode)\n resolve()\n } catch (err) {\n reject(err)\n }\n})\n\nexport const appendFile = (path, data, options) => new Promise((resolve, reject) => {\n __fs.appendFile(pathResolve(path), data, options, (err) => {\n if (err) {\n reject(err)\n } else {\n resolve()\n }\n })\n})\n\nexport const chmod = (path, mode) => new Promise((resolve, reject) => {\n try {\n __fs.chmodSync(pathResolve(path), mode)\n resolve()\n } catch (err) {\n reject(err)\n }\n})\n\nexport const chown = (path, uid, gid) => new Promise((resolve, reject) => {\n try {\n __fs.chownSync(pathResolve(path), uid, gid)\n resolve()\n } catch (err) {\n reject(err)\n }\n})\n\nexport const close = (fd) => new Promise((resolve, reject) => {\n __fs.close(fd, (err) => {\n if (err) {\n reject(err)\n } else {\n resolve()\n }\n })\n})\n\nexport const copyFile = (src, dest, mode) => new Promise((resolve, reject) => {\n __fs.copyFile(pathResolve(src), pathResolve(dest), mode, (err) => {\n if (err) {\n reject(err)\n } else {\n resolve()\n }\n })\n})\n\nexport const createReadStream = (...params) => __fs.createReadStream(...params)\nexport const createWriteStream = (...params) => __fs.createWriteStream(...params)\n\nexport const exists = (path) => new Promise((resolve) => {\n __fs.exists(pathResolve(path), (exists) => {\n resolve(exists)\n })\n})\n\nexport const fchmod = (path, mode) => new Promise((resolve, reject) => {\n try {\n __fs.fchmodSync(pathResolve(path), mode)\n resolve()\n } catch (err) {\n reject(err)\n }\n})\n\nexport const fchown = (path, uid, gid) => new Promise((resolve, reject) => {\n try {\n __fs.fchownSync(pathResolve(path), uid, gid)\n resolve()\n } catch (err) {\n reject(err)\n }\n})\n\nexport const fdatasync = (fd) => new Promise((resolve, reject) => {\n __fs.fdatasync(fd, (err) => {\n if (err) {\n reject(err)\n } else {\n resolve()\n }\n })\n})\n\nexport const fstat = (path) => new Promise((resolve, reject) => {\n try {\n const stats = __fs.fstatSync(pathResolve(path))\n resolve(stats)\n } catch (err) {\n reject(err)\n }\n})\n\nexport const fsync = (fd) => new Promise((resolve, reject) => {\n __fs.fsync(fd, (err) => {\n if (err) {\n reject(err)\n } else {\n resolve()\n }\n })\n})\n\nexport const ftruncate = (fd, len) => new Promise((resolve, reject) => {\n try {\n __fs.ftruncateSync(fd, len)\n resolve()\n } catch (err) {\n reject(err)\n }\n})\n\nexport const futimes = (fd, atime, mtime) => new Promise((resolve, reject) => {\n try {\n __fs.futimesSync(fd, atime, mtime)\n resolve()\n } catch (err) {\n reject(err)\n }\n})\n\nexport const lchmod = (path, mode) => new Promise((resolve, reject) => {\n try {\n __fs.lchmodSync(pathResolve(path), mode)\n resolve()\n } catch (err) {\n reject(err)\n }\n})\n\nexport const lchown = (path, uid, gid) => new Promise((resolve, reject) => {\n try {\n __fs.lchownSync(pathResolve(path), uid, gid)\n resolve()\n } catch (err) {\n reject(err)\n }\n})\n\nexport const link = (existingPath, newPath) => new Promise((resolve, reject) => {\n try {\n __fs.linkSync(pathResolve(existingPath), pathResolve(newPath))\n resolve()\n } catch (err) {\n reject(err)\n }\n})\n\nexport const lstat = (path) => new Promise((resolve, reject) => {\n try {\n const stats = __fs.lstatSync(pathResolve(path))\n resolve(stats)\n } catch (err) {\n reject(err)\n }\n})\n\nexport const mkdir = (path, options) => new Promise((resolve, reject) => {\n try {\n const res = __fs.mkdirSync(pathResolve(path), options)\n resolve(res)\n } catch(err) {\n reject(err)\n }\n})\n\nexport const mkdtemp = (prefix, options) => new Promise((resolve, reject) => {\n try {\n const res = __fs.mkdtempSync(prefix, options)\n resolve(res)\n } catch(err) {\n reject(err)\n }\n})\n\nexport const open = (path, flags, mode) => new Promise((resolve, reject) => {\n __fs.open(pathResolve(path), flags, mode, (err, fd) => {\n if (err) {\n reject(err)\n } else {\n resolve(fd)\n }\n })\n})\n\nexport const readdir = (path, options) => new Promise((resolve, reject) => {\n try {\n const res = __fs.readdirSync(pathResolve(path), options)\n resolve(res)\n } catch(err) {\n reject(err)\n }\n})\n\nexport const read = (fd, buffer, offset, length, position) => new Promise((resolve, reject) => {\n __fs.read(fd, buffer, offset, length, position, (err, bytesRead, buffer) => {\n if (err) {\n reject(err)\n } else {\n resolve({ bytesRead, buffer })\n }\n })\n})\n\nexport const readFile = (path, options) => new Promise((resolve, reject) => {\n try {\n const res = __fs.readFileSync(pathResolve(path), options)\n resolve(res)\n } catch (err) {\n reject(err)\n }\n})\n\nexport const readlink = (path, options) => new Promise((resolve, reject) => {\n try {\n const linkString = __fs.readlinkSync(pathResolve(path), options)\n resolve(linkString)\n } catch (err) {\n reject(err)\n }\n})\n\nexport const realpath = (path, options) => new Promise((resolve, reject) => {\n try {\n const resolvedPath = __fs.realpathSync(pathResolve(path), options)\n resolve(resolvedPath)\n } catch (err) {\n reject(err)\n }\n})\n\nexport const rename = (oldPath, newPath) => new Promise((resolve, reject) => {\n __fs.rename(pathResolve(oldPath), pathResolve(newPath), (err) => {\n if (err) {\n reject(err)\n } else {\n resolve()\n }\n })\n})\n\nexport const rmdir = (path) => new Promise((resolve, reject) => {\n try {\n const res = __fs.rmdirSync(pathResolve(path))\n resolve(res)\n } catch(err) {\n reject(err)\n }\n})\n\nexport const stat = (path) => new Promise((resolve, reject) => {\n try {\n const stats = __fs.statSync(pathResolve(path))\n resolve(stats)\n } catch (err) {\n reject(err)\n }\n})\n\nexport const symlink = (target, path, type) => new Promise((resolve, reject) => {\n try {\n __fs.symlinkSync(target, pathResolve(path), type)\n resolve()\n } catch (err) {\n reject(err)\n }\n})\n\nexport const truncate = (path, len) => new Promise((resolve, reject) => {\n try {\n __fs.truncateSync(pathResolve(path), len)\n resolve()\n } catch (err) {\n reject(err)\n }\n})\n\nexport const unlink = (path) => new Promise((resolve, reject) => {\n try {\n __fs.unlinkSync(pathResolve(path))\n resolve()\n } catch (err) {\n reject(err)\n }\n})\n\nexport const utimes = (path, atime, mtime) => new Promise((resolve, reject) => {\n try {\n __fs.utimesSync(pathResolve(path), atime, mtime)\n resolve()\n } catch (err) {\n reject(err)\n }\n})\n\nexport const write = (fd, buffer, offset, length, position) => new Promise((resolve, reject) => {\n __fs.write(fd, buffer, offset, length, position, (err, written, buffer) => {\n if (err) {\n reject(err)\n } else {\n resolve({ written, buffer })\n }\n })\n})\n\nexport const writeFile = (file, data, options) => new Promise((resolve, reject) => {\n try{\n const res = __fs.writeFileSync(pathResolve(file), data, options)\n return resolve(res)\n }catch(err) {\n return reject(err)\n }\n \n})\n";
2
+ export default _default;