@decocms/bindings 0.2.0 → 0.2.2

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 (51) hide show
  1. package/dist/browser/agents.js +29 -0
  2. package/dist/browser/agents.js.map +1 -0
  3. package/dist/browser/chunk-6QEXJ7XW.js +48564 -0
  4. package/dist/browser/chunk-6QEXJ7XW.js.map +1 -0
  5. package/dist/browser/chunk-WKNVAFKE.js +2176 -0
  6. package/dist/browser/chunk-WKNVAFKE.js.map +1 -0
  7. package/dist/browser/chunk-XWLBKKHZ.js +127 -0
  8. package/dist/browser/chunk-XWLBKKHZ.js.map +1 -0
  9. package/dist/browser/chunk-ZX4ZDU2T.js +58 -0
  10. package/dist/browser/chunk-ZX4ZDU2T.js.map +1 -0
  11. package/dist/browser/client.js +9 -0
  12. package/dist/browser/client.js.map +1 -0
  13. package/dist/browser/collections.js +4 -0
  14. package/dist/browser/collections.js.map +1 -0
  15. package/dist/browser/connection.js +8 -0
  16. package/dist/browser/connection.js.map +1 -0
  17. package/dist/browser/index.js +10 -0
  18. package/dist/browser/index.js.map +1 -0
  19. package/dist/browser/language-model.js +205 -0
  20. package/dist/browser/language-model.js.map +1 -0
  21. package/dist/node/agents.d.ts +903 -0
  22. package/dist/node/agents.js +27 -0
  23. package/dist/node/agents.js.map +1 -0
  24. package/dist/node/chunk-BLCFITZG.js +56 -0
  25. package/dist/node/chunk-BLCFITZG.js.map +1 -0
  26. package/dist/node/chunk-QMQMPK7Q.js +50 -0
  27. package/dist/node/chunk-QMQMPK7Q.js.map +1 -0
  28. package/dist/node/chunk-QP7AQCEP.js +23478 -0
  29. package/dist/node/chunk-QP7AQCEP.js.map +1 -0
  30. package/dist/node/chunk-T2DG7334.js +125 -0
  31. package/dist/node/chunk-T2DG7334.js.map +1 -0
  32. package/dist/node/client.d.ts +12 -0
  33. package/dist/node/client.js +7 -0
  34. package/dist/node/client.js.map +1 -0
  35. package/dist/node/collections.d.ts +537 -0
  36. package/dist/node/collections.js +4 -0
  37. package/dist/node/collections.js.map +1 -0
  38. package/dist/node/connection.d.ts +30 -0
  39. package/dist/node/connection.js +6 -0
  40. package/dist/node/connection.js.map +1 -0
  41. package/dist/node/index.d.ts +94 -0
  42. package/dist/node/index.js +8 -0
  43. package/dist/node/index.js.map +1 -0
  44. package/dist/node/language-model.d.ts +2840 -0
  45. package/dist/node/language-model.js +203 -0
  46. package/dist/node/language-model.js.map +1 -0
  47. package/package.json +45 -16
  48. package/src/core/binder.ts +0 -226
  49. package/src/index.ts +0 -15
  50. package/src/well-known/collections.ts +0 -363
  51. package/src/well-known/models.ts +0 -87
@@ -0,0 +1,2176 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
+ }) : x)(function(x) {
10
+ if (typeof require !== "undefined") return require.apply(this, arguments);
11
+ throw Error('Dynamic require of "' + x + '" is not supported');
12
+ });
13
+ var __esm = (fn, res) => function __init() {
14
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
15
+ };
16
+ var __commonJS = (cb, mod) => function __require2() {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ };
19
+ var __export = (target, all) => {
20
+ for (var name in all)
21
+ __defProp(target, name, { get: all[name], enumerable: true });
22
+ };
23
+ var __copyProps = (to, from, except, desc) => {
24
+ if (from && typeof from === "object" || typeof from === "function") {
25
+ for (let key of __getOwnPropNames(from))
26
+ if (!__hasOwnProp.call(to, key) && key !== except)
27
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
28
+ }
29
+ return to;
30
+ };
31
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
32
+ // If the importer is in node compatibility mode or this is not an ESM
33
+ // file that has been converted to a CommonJS file using a Babel-
34
+ // compatible transform (i.e. "__esModule" has not been set), then set
35
+ // "default" to the CommonJS "module.exports" for node compatibility.
36
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
37
+ mod
38
+ ));
39
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
40
+
41
+ // ../../node_modules/esbuild-plugin-polyfill-node/polyfills/__dirname.js
42
+ var init_dirname = __esm({
43
+ "../../node_modules/esbuild-plugin-polyfill-node/polyfills/__dirname.js"() {
44
+ }
45
+ });
46
+
47
+ // ../../node_modules/@jspm/core/nodelibs/browser/chunk-DtuTasat.js
48
+ function dew$2() {
49
+ if (_dewExec$2) return exports$2;
50
+ _dewExec$2 = true;
51
+ exports$2.byteLength = byteLength;
52
+ exports$2.toByteArray = toByteArray;
53
+ exports$2.fromByteArray = fromByteArray;
54
+ var lookup = [];
55
+ var revLookup = [];
56
+ var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
57
+ var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
58
+ for (var i = 0, len = code.length; i < len; ++i) {
59
+ lookup[i] = code[i];
60
+ revLookup[code.charCodeAt(i)] = i;
61
+ }
62
+ revLookup["-".charCodeAt(0)] = 62;
63
+ revLookup["_".charCodeAt(0)] = 63;
64
+ function getLens(b64) {
65
+ var len2 = b64.length;
66
+ if (len2 % 4 > 0) {
67
+ throw new Error("Invalid string. Length must be a multiple of 4");
68
+ }
69
+ var validLen = b64.indexOf("=");
70
+ if (validLen === -1) validLen = len2;
71
+ var placeHoldersLen = validLen === len2 ? 0 : 4 - validLen % 4;
72
+ return [validLen, placeHoldersLen];
73
+ }
74
+ function byteLength(b64) {
75
+ var lens = getLens(b64);
76
+ var validLen = lens[0];
77
+ var placeHoldersLen = lens[1];
78
+ return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
79
+ }
80
+ function _byteLength(b64, validLen, placeHoldersLen) {
81
+ return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
82
+ }
83
+ function toByteArray(b64) {
84
+ var tmp;
85
+ var lens = getLens(b64);
86
+ var validLen = lens[0];
87
+ var placeHoldersLen = lens[1];
88
+ var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
89
+ var curByte = 0;
90
+ var len2 = placeHoldersLen > 0 ? validLen - 4 : validLen;
91
+ var i2;
92
+ for (i2 = 0; i2 < len2; i2 += 4) {
93
+ tmp = revLookup[b64.charCodeAt(i2)] << 18 | revLookup[b64.charCodeAt(i2 + 1)] << 12 | revLookup[b64.charCodeAt(i2 + 2)] << 6 | revLookup[b64.charCodeAt(i2 + 3)];
94
+ arr[curByte++] = tmp >> 16 & 255;
95
+ arr[curByte++] = tmp >> 8 & 255;
96
+ arr[curByte++] = tmp & 255;
97
+ }
98
+ if (placeHoldersLen === 2) {
99
+ tmp = revLookup[b64.charCodeAt(i2)] << 2 | revLookup[b64.charCodeAt(i2 + 1)] >> 4;
100
+ arr[curByte++] = tmp & 255;
101
+ }
102
+ if (placeHoldersLen === 1) {
103
+ tmp = revLookup[b64.charCodeAt(i2)] << 10 | revLookup[b64.charCodeAt(i2 + 1)] << 4 | revLookup[b64.charCodeAt(i2 + 2)] >> 2;
104
+ arr[curByte++] = tmp >> 8 & 255;
105
+ arr[curByte++] = tmp & 255;
106
+ }
107
+ return arr;
108
+ }
109
+ function tripletToBase64(num) {
110
+ return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];
111
+ }
112
+ function encodeChunk(uint8, start, end) {
113
+ var tmp;
114
+ var output = [];
115
+ for (var i2 = start; i2 < end; i2 += 3) {
116
+ tmp = (uint8[i2] << 16 & 16711680) + (uint8[i2 + 1] << 8 & 65280) + (uint8[i2 + 2] & 255);
117
+ output.push(tripletToBase64(tmp));
118
+ }
119
+ return output.join("");
120
+ }
121
+ function fromByteArray(uint8) {
122
+ var tmp;
123
+ var len2 = uint8.length;
124
+ var extraBytes = len2 % 3;
125
+ var parts = [];
126
+ var maxChunkLength = 16383;
127
+ for (var i2 = 0, len22 = len2 - extraBytes; i2 < len22; i2 += maxChunkLength) {
128
+ parts.push(encodeChunk(uint8, i2, i2 + maxChunkLength > len22 ? len22 : i2 + maxChunkLength));
129
+ }
130
+ if (extraBytes === 1) {
131
+ tmp = uint8[len2 - 1];
132
+ parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "==");
133
+ } else if (extraBytes === 2) {
134
+ tmp = (uint8[len2 - 2] << 8) + uint8[len2 - 1];
135
+ parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "=");
136
+ }
137
+ return parts.join("");
138
+ }
139
+ return exports$2;
140
+ }
141
+ function dew$1() {
142
+ if (_dewExec$1) return exports$1;
143
+ _dewExec$1 = true;
144
+ exports$1.read = function(buffer, offset, isLE, mLen, nBytes) {
145
+ var e, m;
146
+ var eLen = nBytes * 8 - mLen - 1;
147
+ var eMax = (1 << eLen) - 1;
148
+ var eBias = eMax >> 1;
149
+ var nBits = -7;
150
+ var i = isLE ? nBytes - 1 : 0;
151
+ var d = isLE ? -1 : 1;
152
+ var s = buffer[offset + i];
153
+ i += d;
154
+ e = s & (1 << -nBits) - 1;
155
+ s >>= -nBits;
156
+ nBits += eLen;
157
+ for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {
158
+ }
159
+ m = e & (1 << -nBits) - 1;
160
+ e >>= -nBits;
161
+ nBits += mLen;
162
+ for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {
163
+ }
164
+ if (e === 0) {
165
+ e = 1 - eBias;
166
+ } else if (e === eMax) {
167
+ return m ? NaN : (s ? -1 : 1) * Infinity;
168
+ } else {
169
+ m = m + Math.pow(2, mLen);
170
+ e = e - eBias;
171
+ }
172
+ return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
173
+ };
174
+ exports$1.write = function(buffer, value, offset, isLE, mLen, nBytes) {
175
+ var e, m, c;
176
+ var eLen = nBytes * 8 - mLen - 1;
177
+ var eMax = (1 << eLen) - 1;
178
+ var eBias = eMax >> 1;
179
+ var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
180
+ var i = isLE ? 0 : nBytes - 1;
181
+ var d = isLE ? 1 : -1;
182
+ var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
183
+ value = Math.abs(value);
184
+ if (isNaN(value) || value === Infinity) {
185
+ m = isNaN(value) ? 1 : 0;
186
+ e = eMax;
187
+ } else {
188
+ e = Math.floor(Math.log(value) / Math.LN2);
189
+ if (value * (c = Math.pow(2, -e)) < 1) {
190
+ e--;
191
+ c *= 2;
192
+ }
193
+ if (e + eBias >= 1) {
194
+ value += rt / c;
195
+ } else {
196
+ value += rt * Math.pow(2, 1 - eBias);
197
+ }
198
+ if (value * c >= 2) {
199
+ e++;
200
+ c /= 2;
201
+ }
202
+ if (e + eBias >= eMax) {
203
+ m = 0;
204
+ e = eMax;
205
+ } else if (e + eBias >= 1) {
206
+ m = (value * c - 1) * Math.pow(2, mLen);
207
+ e = e + eBias;
208
+ } else {
209
+ m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
210
+ e = 0;
211
+ }
212
+ }
213
+ for (; mLen >= 8; buffer[offset + i] = m & 255, i += d, m /= 256, mLen -= 8) {
214
+ }
215
+ e = e << mLen | m;
216
+ eLen += mLen;
217
+ for (; eLen > 0; buffer[offset + i] = e & 255, i += d, e /= 256, eLen -= 8) {
218
+ }
219
+ buffer[offset + i - d] |= s * 128;
220
+ };
221
+ return exports$1;
222
+ }
223
+ function dew() {
224
+ if (_dewExec) return exports;
225
+ _dewExec = true;
226
+ const base64 = dew$2();
227
+ const ieee754 = dew$1();
228
+ const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
229
+ exports.Buffer = Buffer3;
230
+ exports.SlowBuffer = SlowBuffer;
231
+ exports.INSPECT_MAX_BYTES = 50;
232
+ const K_MAX_LENGTH = 2147483647;
233
+ exports.kMaxLength = K_MAX_LENGTH;
234
+ Buffer3.TYPED_ARRAY_SUPPORT = typedArraySupport();
235
+ if (!Buffer3.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
236
+ console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
237
+ }
238
+ function typedArraySupport() {
239
+ try {
240
+ const arr = new Uint8Array(1);
241
+ const proto = {
242
+ foo: function() {
243
+ return 42;
244
+ }
245
+ };
246
+ Object.setPrototypeOf(proto, Uint8Array.prototype);
247
+ Object.setPrototypeOf(arr, proto);
248
+ return arr.foo() === 42;
249
+ } catch (e) {
250
+ return false;
251
+ }
252
+ }
253
+ Object.defineProperty(Buffer3.prototype, "parent", {
254
+ enumerable: true,
255
+ get: function() {
256
+ if (!Buffer3.isBuffer(this)) return void 0;
257
+ return this.buffer;
258
+ }
259
+ });
260
+ Object.defineProperty(Buffer3.prototype, "offset", {
261
+ enumerable: true,
262
+ get: function() {
263
+ if (!Buffer3.isBuffer(this)) return void 0;
264
+ return this.byteOffset;
265
+ }
266
+ });
267
+ function createBuffer(length) {
268
+ if (length > K_MAX_LENGTH) {
269
+ throw new RangeError('The value "' + length + '" is invalid for option "size"');
270
+ }
271
+ const buf = new Uint8Array(length);
272
+ Object.setPrototypeOf(buf, Buffer3.prototype);
273
+ return buf;
274
+ }
275
+ function Buffer3(arg, encodingOrOffset, length) {
276
+ if (typeof arg === "number") {
277
+ if (typeof encodingOrOffset === "string") {
278
+ throw new TypeError('The "string" argument must be of type string. Received type number');
279
+ }
280
+ return allocUnsafe(arg);
281
+ }
282
+ return from(arg, encodingOrOffset, length);
283
+ }
284
+ Buffer3.poolSize = 8192;
285
+ function from(value, encodingOrOffset, length) {
286
+ if (typeof value === "string") {
287
+ return fromString(value, encodingOrOffset);
288
+ }
289
+ if (ArrayBuffer.isView(value)) {
290
+ return fromArrayView(value);
291
+ }
292
+ if (value == null) {
293
+ throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
294
+ }
295
+ if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) {
296
+ return fromArrayBuffer(value, encodingOrOffset, length);
297
+ }
298
+ if (typeof SharedArrayBuffer !== "undefined" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) {
299
+ return fromArrayBuffer(value, encodingOrOffset, length);
300
+ }
301
+ if (typeof value === "number") {
302
+ throw new TypeError('The "value" argument must not be of type number. Received type number');
303
+ }
304
+ const valueOf = value.valueOf && value.valueOf();
305
+ if (valueOf != null && valueOf !== value) {
306
+ return Buffer3.from(valueOf, encodingOrOffset, length);
307
+ }
308
+ const b = fromObject(value);
309
+ if (b) return b;
310
+ if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
311
+ return Buffer3.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
312
+ }
313
+ throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
314
+ }
315
+ Buffer3.from = function(value, encodingOrOffset, length) {
316
+ return from(value, encodingOrOffset, length);
317
+ };
318
+ Object.setPrototypeOf(Buffer3.prototype, Uint8Array.prototype);
319
+ Object.setPrototypeOf(Buffer3, Uint8Array);
320
+ function assertSize(size) {
321
+ if (typeof size !== "number") {
322
+ throw new TypeError('"size" argument must be of type number');
323
+ } else if (size < 0) {
324
+ throw new RangeError('The value "' + size + '" is invalid for option "size"');
325
+ }
326
+ }
327
+ function alloc(size, fill, encoding) {
328
+ assertSize(size);
329
+ if (size <= 0) {
330
+ return createBuffer(size);
331
+ }
332
+ if (fill !== void 0) {
333
+ return typeof encoding === "string" ? createBuffer(size).fill(fill, encoding) : createBuffer(size).fill(fill);
334
+ }
335
+ return createBuffer(size);
336
+ }
337
+ Buffer3.alloc = function(size, fill, encoding) {
338
+ return alloc(size, fill, encoding);
339
+ };
340
+ function allocUnsafe(size) {
341
+ assertSize(size);
342
+ return createBuffer(size < 0 ? 0 : checked(size) | 0);
343
+ }
344
+ Buffer3.allocUnsafe = function(size) {
345
+ return allocUnsafe(size);
346
+ };
347
+ Buffer3.allocUnsafeSlow = function(size) {
348
+ return allocUnsafe(size);
349
+ };
350
+ function fromString(string, encoding) {
351
+ if (typeof encoding !== "string" || encoding === "") {
352
+ encoding = "utf8";
353
+ }
354
+ if (!Buffer3.isEncoding(encoding)) {
355
+ throw new TypeError("Unknown encoding: " + encoding);
356
+ }
357
+ const length = byteLength(string, encoding) | 0;
358
+ let buf = createBuffer(length);
359
+ const actual = buf.write(string, encoding);
360
+ if (actual !== length) {
361
+ buf = buf.slice(0, actual);
362
+ }
363
+ return buf;
364
+ }
365
+ function fromArrayLike(array) {
366
+ const length = array.length < 0 ? 0 : checked(array.length) | 0;
367
+ const buf = createBuffer(length);
368
+ for (let i = 0; i < length; i += 1) {
369
+ buf[i] = array[i] & 255;
370
+ }
371
+ return buf;
372
+ }
373
+ function fromArrayView(arrayView) {
374
+ if (isInstance(arrayView, Uint8Array)) {
375
+ const copy = new Uint8Array(arrayView);
376
+ return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
377
+ }
378
+ return fromArrayLike(arrayView);
379
+ }
380
+ function fromArrayBuffer(array, byteOffset, length) {
381
+ if (byteOffset < 0 || array.byteLength < byteOffset) {
382
+ throw new RangeError('"offset" is outside of buffer bounds');
383
+ }
384
+ if (array.byteLength < byteOffset + (length || 0)) {
385
+ throw new RangeError('"length" is outside of buffer bounds');
386
+ }
387
+ let buf;
388
+ if (byteOffset === void 0 && length === void 0) {
389
+ buf = new Uint8Array(array);
390
+ } else if (length === void 0) {
391
+ buf = new Uint8Array(array, byteOffset);
392
+ } else {
393
+ buf = new Uint8Array(array, byteOffset, length);
394
+ }
395
+ Object.setPrototypeOf(buf, Buffer3.prototype);
396
+ return buf;
397
+ }
398
+ function fromObject(obj) {
399
+ if (Buffer3.isBuffer(obj)) {
400
+ const len = checked(obj.length) | 0;
401
+ const buf = createBuffer(len);
402
+ if (buf.length === 0) {
403
+ return buf;
404
+ }
405
+ obj.copy(buf, 0, 0, len);
406
+ return buf;
407
+ }
408
+ if (obj.length !== void 0) {
409
+ if (typeof obj.length !== "number" || numberIsNaN(obj.length)) {
410
+ return createBuffer(0);
411
+ }
412
+ return fromArrayLike(obj);
413
+ }
414
+ if (obj.type === "Buffer" && Array.isArray(obj.data)) {
415
+ return fromArrayLike(obj.data);
416
+ }
417
+ }
418
+ function checked(length) {
419
+ if (length >= K_MAX_LENGTH) {
420
+ throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + K_MAX_LENGTH.toString(16) + " bytes");
421
+ }
422
+ return length | 0;
423
+ }
424
+ function SlowBuffer(length) {
425
+ if (+length != length) {
426
+ length = 0;
427
+ }
428
+ return Buffer3.alloc(+length);
429
+ }
430
+ Buffer3.isBuffer = function isBuffer(b) {
431
+ return b != null && b._isBuffer === true && b !== Buffer3.prototype;
432
+ };
433
+ Buffer3.compare = function compare(a, b) {
434
+ if (isInstance(a, Uint8Array)) a = Buffer3.from(a, a.offset, a.byteLength);
435
+ if (isInstance(b, Uint8Array)) b = Buffer3.from(b, b.offset, b.byteLength);
436
+ if (!Buffer3.isBuffer(a) || !Buffer3.isBuffer(b)) {
437
+ throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
438
+ }
439
+ if (a === b) return 0;
440
+ let x = a.length;
441
+ let y = b.length;
442
+ for (let i = 0, len = Math.min(x, y); i < len; ++i) {
443
+ if (a[i] !== b[i]) {
444
+ x = a[i];
445
+ y = b[i];
446
+ break;
447
+ }
448
+ }
449
+ if (x < y) return -1;
450
+ if (y < x) return 1;
451
+ return 0;
452
+ };
453
+ Buffer3.isEncoding = function isEncoding(encoding) {
454
+ switch (String(encoding).toLowerCase()) {
455
+ case "hex":
456
+ case "utf8":
457
+ case "utf-8":
458
+ case "ascii":
459
+ case "latin1":
460
+ case "binary":
461
+ case "base64":
462
+ case "ucs2":
463
+ case "ucs-2":
464
+ case "utf16le":
465
+ case "utf-16le":
466
+ return true;
467
+ default:
468
+ return false;
469
+ }
470
+ };
471
+ Buffer3.concat = function concat(list, length) {
472
+ if (!Array.isArray(list)) {
473
+ throw new TypeError('"list" argument must be an Array of Buffers');
474
+ }
475
+ if (list.length === 0) {
476
+ return Buffer3.alloc(0);
477
+ }
478
+ let i;
479
+ if (length === void 0) {
480
+ length = 0;
481
+ for (i = 0; i < list.length; ++i) {
482
+ length += list[i].length;
483
+ }
484
+ }
485
+ const buffer = Buffer3.allocUnsafe(length);
486
+ let pos = 0;
487
+ for (i = 0; i < list.length; ++i) {
488
+ let buf = list[i];
489
+ if (isInstance(buf, Uint8Array)) {
490
+ if (pos + buf.length > buffer.length) {
491
+ if (!Buffer3.isBuffer(buf)) buf = Buffer3.from(buf);
492
+ buf.copy(buffer, pos);
493
+ } else {
494
+ Uint8Array.prototype.set.call(buffer, buf, pos);
495
+ }
496
+ } else if (!Buffer3.isBuffer(buf)) {
497
+ throw new TypeError('"list" argument must be an Array of Buffers');
498
+ } else {
499
+ buf.copy(buffer, pos);
500
+ }
501
+ pos += buf.length;
502
+ }
503
+ return buffer;
504
+ };
505
+ function byteLength(string, encoding) {
506
+ if (Buffer3.isBuffer(string)) {
507
+ return string.length;
508
+ }
509
+ if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
510
+ return string.byteLength;
511
+ }
512
+ if (typeof string !== "string") {
513
+ throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string);
514
+ }
515
+ const len = string.length;
516
+ const mustMatch = arguments.length > 2 && arguments[2] === true;
517
+ if (!mustMatch && len === 0) return 0;
518
+ let loweredCase = false;
519
+ for (; ; ) {
520
+ switch (encoding) {
521
+ case "ascii":
522
+ case "latin1":
523
+ case "binary":
524
+ return len;
525
+ case "utf8":
526
+ case "utf-8":
527
+ return utf8ToBytes(string).length;
528
+ case "ucs2":
529
+ case "ucs-2":
530
+ case "utf16le":
531
+ case "utf-16le":
532
+ return len * 2;
533
+ case "hex":
534
+ return len >>> 1;
535
+ case "base64":
536
+ return base64ToBytes(string).length;
537
+ default:
538
+ if (loweredCase) {
539
+ return mustMatch ? -1 : utf8ToBytes(string).length;
540
+ }
541
+ encoding = ("" + encoding).toLowerCase();
542
+ loweredCase = true;
543
+ }
544
+ }
545
+ }
546
+ Buffer3.byteLength = byteLength;
547
+ function slowToString(encoding, start, end) {
548
+ let loweredCase = false;
549
+ if (start === void 0 || start < 0) {
550
+ start = 0;
551
+ }
552
+ if (start > this.length) {
553
+ return "";
554
+ }
555
+ if (end === void 0 || end > this.length) {
556
+ end = this.length;
557
+ }
558
+ if (end <= 0) {
559
+ return "";
560
+ }
561
+ end >>>= 0;
562
+ start >>>= 0;
563
+ if (end <= start) {
564
+ return "";
565
+ }
566
+ if (!encoding) encoding = "utf8";
567
+ while (true) {
568
+ switch (encoding) {
569
+ case "hex":
570
+ return hexSlice(this, start, end);
571
+ case "utf8":
572
+ case "utf-8":
573
+ return utf8Slice(this, start, end);
574
+ case "ascii":
575
+ return asciiSlice(this, start, end);
576
+ case "latin1":
577
+ case "binary":
578
+ return latin1Slice(this, start, end);
579
+ case "base64":
580
+ return base64Slice(this, start, end);
581
+ case "ucs2":
582
+ case "ucs-2":
583
+ case "utf16le":
584
+ case "utf-16le":
585
+ return utf16leSlice(this, start, end);
586
+ default:
587
+ if (loweredCase) throw new TypeError("Unknown encoding: " + encoding);
588
+ encoding = (encoding + "").toLowerCase();
589
+ loweredCase = true;
590
+ }
591
+ }
592
+ }
593
+ Buffer3.prototype._isBuffer = true;
594
+ function swap(b, n, m) {
595
+ const i = b[n];
596
+ b[n] = b[m];
597
+ b[m] = i;
598
+ }
599
+ Buffer3.prototype.swap16 = function swap16() {
600
+ const len = this.length;
601
+ if (len % 2 !== 0) {
602
+ throw new RangeError("Buffer size must be a multiple of 16-bits");
603
+ }
604
+ for (let i = 0; i < len; i += 2) {
605
+ swap(this, i, i + 1);
606
+ }
607
+ return this;
608
+ };
609
+ Buffer3.prototype.swap32 = function swap32() {
610
+ const len = this.length;
611
+ if (len % 4 !== 0) {
612
+ throw new RangeError("Buffer size must be a multiple of 32-bits");
613
+ }
614
+ for (let i = 0; i < len; i += 4) {
615
+ swap(this, i, i + 3);
616
+ swap(this, i + 1, i + 2);
617
+ }
618
+ return this;
619
+ };
620
+ Buffer3.prototype.swap64 = function swap64() {
621
+ const len = this.length;
622
+ if (len % 8 !== 0) {
623
+ throw new RangeError("Buffer size must be a multiple of 64-bits");
624
+ }
625
+ for (let i = 0; i < len; i += 8) {
626
+ swap(this, i, i + 7);
627
+ swap(this, i + 1, i + 6);
628
+ swap(this, i + 2, i + 5);
629
+ swap(this, i + 3, i + 4);
630
+ }
631
+ return this;
632
+ };
633
+ Buffer3.prototype.toString = function toString() {
634
+ const length = this.length;
635
+ if (length === 0) return "";
636
+ if (arguments.length === 0) return utf8Slice(this, 0, length);
637
+ return slowToString.apply(this, arguments);
638
+ };
639
+ Buffer3.prototype.toLocaleString = Buffer3.prototype.toString;
640
+ Buffer3.prototype.equals = function equals(b) {
641
+ if (!Buffer3.isBuffer(b)) throw new TypeError("Argument must be a Buffer");
642
+ if (this === b) return true;
643
+ return Buffer3.compare(this, b) === 0;
644
+ };
645
+ Buffer3.prototype.inspect = function inspect() {
646
+ let str = "";
647
+ const max = exports.INSPECT_MAX_BYTES;
648
+ str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
649
+ if (this.length > max) str += " ... ";
650
+ return "<Buffer " + str + ">";
651
+ };
652
+ if (customInspectSymbol) {
653
+ Buffer3.prototype[customInspectSymbol] = Buffer3.prototype.inspect;
654
+ }
655
+ Buffer3.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
656
+ if (isInstance(target, Uint8Array)) {
657
+ target = Buffer3.from(target, target.offset, target.byteLength);
658
+ }
659
+ if (!Buffer3.isBuffer(target)) {
660
+ throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target);
661
+ }
662
+ if (start === void 0) {
663
+ start = 0;
664
+ }
665
+ if (end === void 0) {
666
+ end = target ? target.length : 0;
667
+ }
668
+ if (thisStart === void 0) {
669
+ thisStart = 0;
670
+ }
671
+ if (thisEnd === void 0) {
672
+ thisEnd = this.length;
673
+ }
674
+ if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
675
+ throw new RangeError("out of range index");
676
+ }
677
+ if (thisStart >= thisEnd && start >= end) {
678
+ return 0;
679
+ }
680
+ if (thisStart >= thisEnd) {
681
+ return -1;
682
+ }
683
+ if (start >= end) {
684
+ return 1;
685
+ }
686
+ start >>>= 0;
687
+ end >>>= 0;
688
+ thisStart >>>= 0;
689
+ thisEnd >>>= 0;
690
+ if (this === target) return 0;
691
+ let x = thisEnd - thisStart;
692
+ let y = end - start;
693
+ const len = Math.min(x, y);
694
+ const thisCopy = this.slice(thisStart, thisEnd);
695
+ const targetCopy = target.slice(start, end);
696
+ for (let i = 0; i < len; ++i) {
697
+ if (thisCopy[i] !== targetCopy[i]) {
698
+ x = thisCopy[i];
699
+ y = targetCopy[i];
700
+ break;
701
+ }
702
+ }
703
+ if (x < y) return -1;
704
+ if (y < x) return 1;
705
+ return 0;
706
+ };
707
+ function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
708
+ if (buffer.length === 0) return -1;
709
+ if (typeof byteOffset === "string") {
710
+ encoding = byteOffset;
711
+ byteOffset = 0;
712
+ } else if (byteOffset > 2147483647) {
713
+ byteOffset = 2147483647;
714
+ } else if (byteOffset < -2147483648) {
715
+ byteOffset = -2147483648;
716
+ }
717
+ byteOffset = +byteOffset;
718
+ if (numberIsNaN(byteOffset)) {
719
+ byteOffset = dir ? 0 : buffer.length - 1;
720
+ }
721
+ if (byteOffset < 0) byteOffset = buffer.length + byteOffset;
722
+ if (byteOffset >= buffer.length) {
723
+ if (dir) return -1;
724
+ else byteOffset = buffer.length - 1;
725
+ } else if (byteOffset < 0) {
726
+ if (dir) byteOffset = 0;
727
+ else return -1;
728
+ }
729
+ if (typeof val === "string") {
730
+ val = Buffer3.from(val, encoding);
731
+ }
732
+ if (Buffer3.isBuffer(val)) {
733
+ if (val.length === 0) {
734
+ return -1;
735
+ }
736
+ return arrayIndexOf(buffer, val, byteOffset, encoding, dir);
737
+ } else if (typeof val === "number") {
738
+ val = val & 255;
739
+ if (typeof Uint8Array.prototype.indexOf === "function") {
740
+ if (dir) {
741
+ return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset);
742
+ } else {
743
+ return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset);
744
+ }
745
+ }
746
+ return arrayIndexOf(buffer, [val], byteOffset, encoding, dir);
747
+ }
748
+ throw new TypeError("val must be string, number or Buffer");
749
+ }
750
+ function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
751
+ let indexSize = 1;
752
+ let arrLength = arr.length;
753
+ let valLength = val.length;
754
+ if (encoding !== void 0) {
755
+ encoding = String(encoding).toLowerCase();
756
+ if (encoding === "ucs2" || encoding === "ucs-2" || encoding === "utf16le" || encoding === "utf-16le") {
757
+ if (arr.length < 2 || val.length < 2) {
758
+ return -1;
759
+ }
760
+ indexSize = 2;
761
+ arrLength /= 2;
762
+ valLength /= 2;
763
+ byteOffset /= 2;
764
+ }
765
+ }
766
+ function read(buf, i2) {
767
+ if (indexSize === 1) {
768
+ return buf[i2];
769
+ } else {
770
+ return buf.readUInt16BE(i2 * indexSize);
771
+ }
772
+ }
773
+ let i;
774
+ if (dir) {
775
+ let foundIndex = -1;
776
+ for (i = byteOffset; i < arrLength; i++) {
777
+ if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
778
+ if (foundIndex === -1) foundIndex = i;
779
+ if (i - foundIndex + 1 === valLength) return foundIndex * indexSize;
780
+ } else {
781
+ if (foundIndex !== -1) i -= i - foundIndex;
782
+ foundIndex = -1;
783
+ }
784
+ }
785
+ } else {
786
+ if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;
787
+ for (i = byteOffset; i >= 0; i--) {
788
+ let found = true;
789
+ for (let j = 0; j < valLength; j++) {
790
+ if (read(arr, i + j) !== read(val, j)) {
791
+ found = false;
792
+ break;
793
+ }
794
+ }
795
+ if (found) return i;
796
+ }
797
+ }
798
+ return -1;
799
+ }
800
+ Buffer3.prototype.includes = function includes(val, byteOffset, encoding) {
801
+ return this.indexOf(val, byteOffset, encoding) !== -1;
802
+ };
803
+ Buffer3.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
804
+ return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
805
+ };
806
+ Buffer3.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
807
+ return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
808
+ };
809
+ function hexWrite(buf, string, offset, length) {
810
+ offset = Number(offset) || 0;
811
+ const remaining = buf.length - offset;
812
+ if (!length) {
813
+ length = remaining;
814
+ } else {
815
+ length = Number(length);
816
+ if (length > remaining) {
817
+ length = remaining;
818
+ }
819
+ }
820
+ const strLen = string.length;
821
+ if (length > strLen / 2) {
822
+ length = strLen / 2;
823
+ }
824
+ let i;
825
+ for (i = 0; i < length; ++i) {
826
+ const parsed = parseInt(string.substr(i * 2, 2), 16);
827
+ if (numberIsNaN(parsed)) return i;
828
+ buf[offset + i] = parsed;
829
+ }
830
+ return i;
831
+ }
832
+ function utf8Write(buf, string, offset, length) {
833
+ return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);
834
+ }
835
+ function asciiWrite(buf, string, offset, length) {
836
+ return blitBuffer(asciiToBytes(string), buf, offset, length);
837
+ }
838
+ function base64Write(buf, string, offset, length) {
839
+ return blitBuffer(base64ToBytes(string), buf, offset, length);
840
+ }
841
+ function ucs2Write(buf, string, offset, length) {
842
+ return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
843
+ }
844
+ Buffer3.prototype.write = function write(string, offset, length, encoding) {
845
+ if (offset === void 0) {
846
+ encoding = "utf8";
847
+ length = this.length;
848
+ offset = 0;
849
+ } else if (length === void 0 && typeof offset === "string") {
850
+ encoding = offset;
851
+ length = this.length;
852
+ offset = 0;
853
+ } else if (isFinite(offset)) {
854
+ offset = offset >>> 0;
855
+ if (isFinite(length)) {
856
+ length = length >>> 0;
857
+ if (encoding === void 0) encoding = "utf8";
858
+ } else {
859
+ encoding = length;
860
+ length = void 0;
861
+ }
862
+ } else {
863
+ throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
864
+ }
865
+ const remaining = this.length - offset;
866
+ if (length === void 0 || length > remaining) length = remaining;
867
+ if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {
868
+ throw new RangeError("Attempt to write outside buffer bounds");
869
+ }
870
+ if (!encoding) encoding = "utf8";
871
+ let loweredCase = false;
872
+ for (; ; ) {
873
+ switch (encoding) {
874
+ case "hex":
875
+ return hexWrite(this, string, offset, length);
876
+ case "utf8":
877
+ case "utf-8":
878
+ return utf8Write(this, string, offset, length);
879
+ case "ascii":
880
+ case "latin1":
881
+ case "binary":
882
+ return asciiWrite(this, string, offset, length);
883
+ case "base64":
884
+ return base64Write(this, string, offset, length);
885
+ case "ucs2":
886
+ case "ucs-2":
887
+ case "utf16le":
888
+ case "utf-16le":
889
+ return ucs2Write(this, string, offset, length);
890
+ default:
891
+ if (loweredCase) throw new TypeError("Unknown encoding: " + encoding);
892
+ encoding = ("" + encoding).toLowerCase();
893
+ loweredCase = true;
894
+ }
895
+ }
896
+ };
897
+ Buffer3.prototype.toJSON = function toJSON() {
898
+ return {
899
+ type: "Buffer",
900
+ data: Array.prototype.slice.call(this._arr || this, 0)
901
+ };
902
+ };
903
+ function base64Slice(buf, start, end) {
904
+ if (start === 0 && end === buf.length) {
905
+ return base64.fromByteArray(buf);
906
+ } else {
907
+ return base64.fromByteArray(buf.slice(start, end));
908
+ }
909
+ }
910
+ function utf8Slice(buf, start, end) {
911
+ end = Math.min(buf.length, end);
912
+ const res = [];
913
+ let i = start;
914
+ while (i < end) {
915
+ const firstByte = buf[i];
916
+ let codePoint = null;
917
+ let bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;
918
+ if (i + bytesPerSequence <= end) {
919
+ let secondByte, thirdByte, fourthByte, tempCodePoint;
920
+ switch (bytesPerSequence) {
921
+ case 1:
922
+ if (firstByte < 128) {
923
+ codePoint = firstByte;
924
+ }
925
+ break;
926
+ case 2:
927
+ secondByte = buf[i + 1];
928
+ if ((secondByte & 192) === 128) {
929
+ tempCodePoint = (firstByte & 31) << 6 | secondByte & 63;
930
+ if (tempCodePoint > 127) {
931
+ codePoint = tempCodePoint;
932
+ }
933
+ }
934
+ break;
935
+ case 3:
936
+ secondByte = buf[i + 1];
937
+ thirdByte = buf[i + 2];
938
+ if ((secondByte & 192) === 128 && (thirdByte & 192) === 128) {
939
+ tempCodePoint = (firstByte & 15) << 12 | (secondByte & 63) << 6 | thirdByte & 63;
940
+ if (tempCodePoint > 2047 && (tempCodePoint < 55296 || tempCodePoint > 57343)) {
941
+ codePoint = tempCodePoint;
942
+ }
943
+ }
944
+ break;
945
+ case 4:
946
+ secondByte = buf[i + 1];
947
+ thirdByte = buf[i + 2];
948
+ fourthByte = buf[i + 3];
949
+ if ((secondByte & 192) === 128 && (thirdByte & 192) === 128 && (fourthByte & 192) === 128) {
950
+ tempCodePoint = (firstByte & 15) << 18 | (secondByte & 63) << 12 | (thirdByte & 63) << 6 | fourthByte & 63;
951
+ if (tempCodePoint > 65535 && tempCodePoint < 1114112) {
952
+ codePoint = tempCodePoint;
953
+ }
954
+ }
955
+ }
956
+ }
957
+ if (codePoint === null) {
958
+ codePoint = 65533;
959
+ bytesPerSequence = 1;
960
+ } else if (codePoint > 65535) {
961
+ codePoint -= 65536;
962
+ res.push(codePoint >>> 10 & 1023 | 55296);
963
+ codePoint = 56320 | codePoint & 1023;
964
+ }
965
+ res.push(codePoint);
966
+ i += bytesPerSequence;
967
+ }
968
+ return decodeCodePointsArray(res);
969
+ }
970
+ const MAX_ARGUMENTS_LENGTH = 4096;
971
+ function decodeCodePointsArray(codePoints) {
972
+ const len = codePoints.length;
973
+ if (len <= MAX_ARGUMENTS_LENGTH) {
974
+ return String.fromCharCode.apply(String, codePoints);
975
+ }
976
+ let res = "";
977
+ let i = 0;
978
+ while (i < len) {
979
+ res += String.fromCharCode.apply(String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH));
980
+ }
981
+ return res;
982
+ }
983
+ function asciiSlice(buf, start, end) {
984
+ let ret = "";
985
+ end = Math.min(buf.length, end);
986
+ for (let i = start; i < end; ++i) {
987
+ ret += String.fromCharCode(buf[i] & 127);
988
+ }
989
+ return ret;
990
+ }
991
+ function latin1Slice(buf, start, end) {
992
+ let ret = "";
993
+ end = Math.min(buf.length, end);
994
+ for (let i = start; i < end; ++i) {
995
+ ret += String.fromCharCode(buf[i]);
996
+ }
997
+ return ret;
998
+ }
999
+ function hexSlice(buf, start, end) {
1000
+ const len = buf.length;
1001
+ if (!start || start < 0) start = 0;
1002
+ if (!end || end < 0 || end > len) end = len;
1003
+ let out = "";
1004
+ for (let i = start; i < end; ++i) {
1005
+ out += hexSliceLookupTable[buf[i]];
1006
+ }
1007
+ return out;
1008
+ }
1009
+ function utf16leSlice(buf, start, end) {
1010
+ const bytes = buf.slice(start, end);
1011
+ let res = "";
1012
+ for (let i = 0; i < bytes.length - 1; i += 2) {
1013
+ res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);
1014
+ }
1015
+ return res;
1016
+ }
1017
+ Buffer3.prototype.slice = function slice(start, end) {
1018
+ const len = this.length;
1019
+ start = ~~start;
1020
+ end = end === void 0 ? len : ~~end;
1021
+ if (start < 0) {
1022
+ start += len;
1023
+ if (start < 0) start = 0;
1024
+ } else if (start > len) {
1025
+ start = len;
1026
+ }
1027
+ if (end < 0) {
1028
+ end += len;
1029
+ if (end < 0) end = 0;
1030
+ } else if (end > len) {
1031
+ end = len;
1032
+ }
1033
+ if (end < start) end = start;
1034
+ const newBuf = this.subarray(start, end);
1035
+ Object.setPrototypeOf(newBuf, Buffer3.prototype);
1036
+ return newBuf;
1037
+ };
1038
+ function checkOffset(offset, ext, length) {
1039
+ if (offset % 1 !== 0 || offset < 0) throw new RangeError("offset is not uint");
1040
+ if (offset + ext > length) throw new RangeError("Trying to access beyond buffer length");
1041
+ }
1042
+ Buffer3.prototype.readUintLE = Buffer3.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
1043
+ offset = offset >>> 0;
1044
+ byteLength2 = byteLength2 >>> 0;
1045
+ if (!noAssert) checkOffset(offset, byteLength2, this.length);
1046
+ let val = this[offset];
1047
+ let mul = 1;
1048
+ let i = 0;
1049
+ while (++i < byteLength2 && (mul *= 256)) {
1050
+ val += this[offset + i] * mul;
1051
+ }
1052
+ return val;
1053
+ };
1054
+ Buffer3.prototype.readUintBE = Buffer3.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) {
1055
+ offset = offset >>> 0;
1056
+ byteLength2 = byteLength2 >>> 0;
1057
+ if (!noAssert) {
1058
+ checkOffset(offset, byteLength2, this.length);
1059
+ }
1060
+ let val = this[offset + --byteLength2];
1061
+ let mul = 1;
1062
+ while (byteLength2 > 0 && (mul *= 256)) {
1063
+ val += this[offset + --byteLength2] * mul;
1064
+ }
1065
+ return val;
1066
+ };
1067
+ Buffer3.prototype.readUint8 = Buffer3.prototype.readUInt8 = function readUInt8(offset, noAssert) {
1068
+ offset = offset >>> 0;
1069
+ if (!noAssert) checkOffset(offset, 1, this.length);
1070
+ return this[offset];
1071
+ };
1072
+ Buffer3.prototype.readUint16LE = Buffer3.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
1073
+ offset = offset >>> 0;
1074
+ if (!noAssert) checkOffset(offset, 2, this.length);
1075
+ return this[offset] | this[offset + 1] << 8;
1076
+ };
1077
+ Buffer3.prototype.readUint16BE = Buffer3.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
1078
+ offset = offset >>> 0;
1079
+ if (!noAssert) checkOffset(offset, 2, this.length);
1080
+ return this[offset] << 8 | this[offset + 1];
1081
+ };
1082
+ Buffer3.prototype.readUint32LE = Buffer3.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
1083
+ offset = offset >>> 0;
1084
+ if (!noAssert) checkOffset(offset, 4, this.length);
1085
+ return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;
1086
+ };
1087
+ Buffer3.prototype.readUint32BE = Buffer3.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
1088
+ offset = offset >>> 0;
1089
+ if (!noAssert) checkOffset(offset, 4, this.length);
1090
+ return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
1091
+ };
1092
+ Buffer3.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
1093
+ offset = offset >>> 0;
1094
+ validateNumber(offset, "offset");
1095
+ const first = this[offset];
1096
+ const last = this[offset + 7];
1097
+ if (first === void 0 || last === void 0) {
1098
+ boundsError(offset, this.length - 8);
1099
+ }
1100
+ const lo = first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24;
1101
+ const hi = this[++offset] + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + last * 2 ** 24;
1102
+ return BigInt(lo) + (BigInt(hi) << BigInt(32));
1103
+ });
1104
+ Buffer3.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
1105
+ offset = offset >>> 0;
1106
+ validateNumber(offset, "offset");
1107
+ const first = this[offset];
1108
+ const last = this[offset + 7];
1109
+ if (first === void 0 || last === void 0) {
1110
+ boundsError(offset, this.length - 8);
1111
+ }
1112
+ const hi = first * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
1113
+ const lo = this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last;
1114
+ return (BigInt(hi) << BigInt(32)) + BigInt(lo);
1115
+ });
1116
+ Buffer3.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) {
1117
+ offset = offset >>> 0;
1118
+ byteLength2 = byteLength2 >>> 0;
1119
+ if (!noAssert) checkOffset(offset, byteLength2, this.length);
1120
+ let val = this[offset];
1121
+ let mul = 1;
1122
+ let i = 0;
1123
+ while (++i < byteLength2 && (mul *= 256)) {
1124
+ val += this[offset + i] * mul;
1125
+ }
1126
+ mul *= 128;
1127
+ if (val >= mul) val -= Math.pow(2, 8 * byteLength2);
1128
+ return val;
1129
+ };
1130
+ Buffer3.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) {
1131
+ offset = offset >>> 0;
1132
+ byteLength2 = byteLength2 >>> 0;
1133
+ if (!noAssert) checkOffset(offset, byteLength2, this.length);
1134
+ let i = byteLength2;
1135
+ let mul = 1;
1136
+ let val = this[offset + --i];
1137
+ while (i > 0 && (mul *= 256)) {
1138
+ val += this[offset + --i] * mul;
1139
+ }
1140
+ mul *= 128;
1141
+ if (val >= mul) val -= Math.pow(2, 8 * byteLength2);
1142
+ return val;
1143
+ };
1144
+ Buffer3.prototype.readInt8 = function readInt8(offset, noAssert) {
1145
+ offset = offset >>> 0;
1146
+ if (!noAssert) checkOffset(offset, 1, this.length);
1147
+ if (!(this[offset] & 128)) return this[offset];
1148
+ return (255 - this[offset] + 1) * -1;
1149
+ };
1150
+ Buffer3.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
1151
+ offset = offset >>> 0;
1152
+ if (!noAssert) checkOffset(offset, 2, this.length);
1153
+ const val = this[offset] | this[offset + 1] << 8;
1154
+ return val & 32768 ? val | 4294901760 : val;
1155
+ };
1156
+ Buffer3.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
1157
+ offset = offset >>> 0;
1158
+ if (!noAssert) checkOffset(offset, 2, this.length);
1159
+ const val = this[offset + 1] | this[offset] << 8;
1160
+ return val & 32768 ? val | 4294901760 : val;
1161
+ };
1162
+ Buffer3.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
1163
+ offset = offset >>> 0;
1164
+ if (!noAssert) checkOffset(offset, 4, this.length);
1165
+ return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
1166
+ };
1167
+ Buffer3.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
1168
+ offset = offset >>> 0;
1169
+ if (!noAssert) checkOffset(offset, 4, this.length);
1170
+ return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
1171
+ };
1172
+ Buffer3.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
1173
+ offset = offset >>> 0;
1174
+ validateNumber(offset, "offset");
1175
+ const first = this[offset];
1176
+ const last = this[offset + 7];
1177
+ if (first === void 0 || last === void 0) {
1178
+ boundsError(offset, this.length - 8);
1179
+ }
1180
+ const val = this[offset + 4] + this[offset + 5] * 2 ** 8 + this[offset + 6] * 2 ** 16 + (last << 24);
1181
+ return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24);
1182
+ });
1183
+ Buffer3.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
1184
+ offset = offset >>> 0;
1185
+ validateNumber(offset, "offset");
1186
+ const first = this[offset];
1187
+ const last = this[offset + 7];
1188
+ if (first === void 0 || last === void 0) {
1189
+ boundsError(offset, this.length - 8);
1190
+ }
1191
+ const val = (first << 24) + // Overflow
1192
+ this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
1193
+ return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last);
1194
+ });
1195
+ Buffer3.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
1196
+ offset = offset >>> 0;
1197
+ if (!noAssert) checkOffset(offset, 4, this.length);
1198
+ return ieee754.read(this, offset, true, 23, 4);
1199
+ };
1200
+ Buffer3.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
1201
+ offset = offset >>> 0;
1202
+ if (!noAssert) checkOffset(offset, 4, this.length);
1203
+ return ieee754.read(this, offset, false, 23, 4);
1204
+ };
1205
+ Buffer3.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
1206
+ offset = offset >>> 0;
1207
+ if (!noAssert) checkOffset(offset, 8, this.length);
1208
+ return ieee754.read(this, offset, true, 52, 8);
1209
+ };
1210
+ Buffer3.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
1211
+ offset = offset >>> 0;
1212
+ if (!noAssert) checkOffset(offset, 8, this.length);
1213
+ return ieee754.read(this, offset, false, 52, 8);
1214
+ };
1215
+ function checkInt(buf, value, offset, ext, max, min) {
1216
+ if (!Buffer3.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance');
1217
+ if (value > max || value < min) throw new RangeError('"value" argument is out of bounds');
1218
+ if (offset + ext > buf.length) throw new RangeError("Index out of range");
1219
+ }
1220
+ Buffer3.prototype.writeUintLE = Buffer3.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
1221
+ value = +value;
1222
+ offset = offset >>> 0;
1223
+ byteLength2 = byteLength2 >>> 0;
1224
+ if (!noAssert) {
1225
+ const maxBytes = Math.pow(2, 8 * byteLength2) - 1;
1226
+ checkInt(this, value, offset, byteLength2, maxBytes, 0);
1227
+ }
1228
+ let mul = 1;
1229
+ let i = 0;
1230
+ this[offset] = value & 255;
1231
+ while (++i < byteLength2 && (mul *= 256)) {
1232
+ this[offset + i] = value / mul & 255;
1233
+ }
1234
+ return offset + byteLength2;
1235
+ };
1236
+ Buffer3.prototype.writeUintBE = Buffer3.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) {
1237
+ value = +value;
1238
+ offset = offset >>> 0;
1239
+ byteLength2 = byteLength2 >>> 0;
1240
+ if (!noAssert) {
1241
+ const maxBytes = Math.pow(2, 8 * byteLength2) - 1;
1242
+ checkInt(this, value, offset, byteLength2, maxBytes, 0);
1243
+ }
1244
+ let i = byteLength2 - 1;
1245
+ let mul = 1;
1246
+ this[offset + i] = value & 255;
1247
+ while (--i >= 0 && (mul *= 256)) {
1248
+ this[offset + i] = value / mul & 255;
1249
+ }
1250
+ return offset + byteLength2;
1251
+ };
1252
+ Buffer3.prototype.writeUint8 = Buffer3.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
1253
+ value = +value;
1254
+ offset = offset >>> 0;
1255
+ if (!noAssert) checkInt(this, value, offset, 1, 255, 0);
1256
+ this[offset] = value & 255;
1257
+ return offset + 1;
1258
+ };
1259
+ Buffer3.prototype.writeUint16LE = Buffer3.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
1260
+ value = +value;
1261
+ offset = offset >>> 0;
1262
+ if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
1263
+ this[offset] = value & 255;
1264
+ this[offset + 1] = value >>> 8;
1265
+ return offset + 2;
1266
+ };
1267
+ Buffer3.prototype.writeUint16BE = Buffer3.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
1268
+ value = +value;
1269
+ offset = offset >>> 0;
1270
+ if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
1271
+ this[offset] = value >>> 8;
1272
+ this[offset + 1] = value & 255;
1273
+ return offset + 2;
1274
+ };
1275
+ Buffer3.prototype.writeUint32LE = Buffer3.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
1276
+ value = +value;
1277
+ offset = offset >>> 0;
1278
+ if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
1279
+ this[offset + 3] = value >>> 24;
1280
+ this[offset + 2] = value >>> 16;
1281
+ this[offset + 1] = value >>> 8;
1282
+ this[offset] = value & 255;
1283
+ return offset + 4;
1284
+ };
1285
+ Buffer3.prototype.writeUint32BE = Buffer3.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
1286
+ value = +value;
1287
+ offset = offset >>> 0;
1288
+ if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
1289
+ this[offset] = value >>> 24;
1290
+ this[offset + 1] = value >>> 16;
1291
+ this[offset + 2] = value >>> 8;
1292
+ this[offset + 3] = value & 255;
1293
+ return offset + 4;
1294
+ };
1295
+ function wrtBigUInt64LE(buf, value, offset, min, max) {
1296
+ checkIntBI(value, min, max, buf, offset, 7);
1297
+ let lo = Number(value & BigInt(4294967295));
1298
+ buf[offset++] = lo;
1299
+ lo = lo >> 8;
1300
+ buf[offset++] = lo;
1301
+ lo = lo >> 8;
1302
+ buf[offset++] = lo;
1303
+ lo = lo >> 8;
1304
+ buf[offset++] = lo;
1305
+ let hi = Number(value >> BigInt(32) & BigInt(4294967295));
1306
+ buf[offset++] = hi;
1307
+ hi = hi >> 8;
1308
+ buf[offset++] = hi;
1309
+ hi = hi >> 8;
1310
+ buf[offset++] = hi;
1311
+ hi = hi >> 8;
1312
+ buf[offset++] = hi;
1313
+ return offset;
1314
+ }
1315
+ function wrtBigUInt64BE(buf, value, offset, min, max) {
1316
+ checkIntBI(value, min, max, buf, offset, 7);
1317
+ let lo = Number(value & BigInt(4294967295));
1318
+ buf[offset + 7] = lo;
1319
+ lo = lo >> 8;
1320
+ buf[offset + 6] = lo;
1321
+ lo = lo >> 8;
1322
+ buf[offset + 5] = lo;
1323
+ lo = lo >> 8;
1324
+ buf[offset + 4] = lo;
1325
+ let hi = Number(value >> BigInt(32) & BigInt(4294967295));
1326
+ buf[offset + 3] = hi;
1327
+ hi = hi >> 8;
1328
+ buf[offset + 2] = hi;
1329
+ hi = hi >> 8;
1330
+ buf[offset + 1] = hi;
1331
+ hi = hi >> 8;
1332
+ buf[offset] = hi;
1333
+ return offset + 8;
1334
+ }
1335
+ Buffer3.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
1336
+ return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1337
+ });
1338
+ Buffer3.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
1339
+ return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1340
+ });
1341
+ Buffer3.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) {
1342
+ value = +value;
1343
+ offset = offset >>> 0;
1344
+ if (!noAssert) {
1345
+ const limit = Math.pow(2, 8 * byteLength2 - 1);
1346
+ checkInt(this, value, offset, byteLength2, limit - 1, -limit);
1347
+ }
1348
+ let i = 0;
1349
+ let mul = 1;
1350
+ let sub = 0;
1351
+ this[offset] = value & 255;
1352
+ while (++i < byteLength2 && (mul *= 256)) {
1353
+ if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
1354
+ sub = 1;
1355
+ }
1356
+ this[offset + i] = (value / mul >> 0) - sub & 255;
1357
+ }
1358
+ return offset + byteLength2;
1359
+ };
1360
+ Buffer3.prototype.writeIntBE = function writeIntBE(value, offset, byteLength2, noAssert) {
1361
+ value = +value;
1362
+ offset = offset >>> 0;
1363
+ if (!noAssert) {
1364
+ const limit = Math.pow(2, 8 * byteLength2 - 1);
1365
+ checkInt(this, value, offset, byteLength2, limit - 1, -limit);
1366
+ }
1367
+ let i = byteLength2 - 1;
1368
+ let mul = 1;
1369
+ let sub = 0;
1370
+ this[offset + i] = value & 255;
1371
+ while (--i >= 0 && (mul *= 256)) {
1372
+ if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
1373
+ sub = 1;
1374
+ }
1375
+ this[offset + i] = (value / mul >> 0) - sub & 255;
1376
+ }
1377
+ return offset + byteLength2;
1378
+ };
1379
+ Buffer3.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
1380
+ value = +value;
1381
+ offset = offset >>> 0;
1382
+ if (!noAssert) checkInt(this, value, offset, 1, 127, -128);
1383
+ if (value < 0) value = 255 + value + 1;
1384
+ this[offset] = value & 255;
1385
+ return offset + 1;
1386
+ };
1387
+ Buffer3.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
1388
+ value = +value;
1389
+ offset = offset >>> 0;
1390
+ if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);
1391
+ this[offset] = value & 255;
1392
+ this[offset + 1] = value >>> 8;
1393
+ return offset + 2;
1394
+ };
1395
+ Buffer3.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
1396
+ value = +value;
1397
+ offset = offset >>> 0;
1398
+ if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);
1399
+ this[offset] = value >>> 8;
1400
+ this[offset + 1] = value & 255;
1401
+ return offset + 2;
1402
+ };
1403
+ Buffer3.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
1404
+ value = +value;
1405
+ offset = offset >>> 0;
1406
+ if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);
1407
+ this[offset] = value & 255;
1408
+ this[offset + 1] = value >>> 8;
1409
+ this[offset + 2] = value >>> 16;
1410
+ this[offset + 3] = value >>> 24;
1411
+ return offset + 4;
1412
+ };
1413
+ Buffer3.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
1414
+ value = +value;
1415
+ offset = offset >>> 0;
1416
+ if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);
1417
+ if (value < 0) value = 4294967295 + value + 1;
1418
+ this[offset] = value >>> 24;
1419
+ this[offset + 1] = value >>> 16;
1420
+ this[offset + 2] = value >>> 8;
1421
+ this[offset + 3] = value & 255;
1422
+ return offset + 4;
1423
+ };
1424
+ Buffer3.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
1425
+ return wrtBigUInt64LE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1426
+ });
1427
+ Buffer3.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
1428
+ return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1429
+ });
1430
+ function checkIEEE754(buf, value, offset, ext, max, min) {
1431
+ if (offset + ext > buf.length) throw new RangeError("Index out of range");
1432
+ if (offset < 0) throw new RangeError("Index out of range");
1433
+ }
1434
+ function writeFloat(buf, value, offset, littleEndian, noAssert) {
1435
+ value = +value;
1436
+ offset = offset >>> 0;
1437
+ if (!noAssert) {
1438
+ checkIEEE754(buf, value, offset, 4);
1439
+ }
1440
+ ieee754.write(buf, value, offset, littleEndian, 23, 4);
1441
+ return offset + 4;
1442
+ }
1443
+ Buffer3.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
1444
+ return writeFloat(this, value, offset, true, noAssert);
1445
+ };
1446
+ Buffer3.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
1447
+ return writeFloat(this, value, offset, false, noAssert);
1448
+ };
1449
+ function writeDouble(buf, value, offset, littleEndian, noAssert) {
1450
+ value = +value;
1451
+ offset = offset >>> 0;
1452
+ if (!noAssert) {
1453
+ checkIEEE754(buf, value, offset, 8);
1454
+ }
1455
+ ieee754.write(buf, value, offset, littleEndian, 52, 8);
1456
+ return offset + 8;
1457
+ }
1458
+ Buffer3.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
1459
+ return writeDouble(this, value, offset, true, noAssert);
1460
+ };
1461
+ Buffer3.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
1462
+ return writeDouble(this, value, offset, false, noAssert);
1463
+ };
1464
+ Buffer3.prototype.copy = function copy(target, targetStart, start, end) {
1465
+ if (!Buffer3.isBuffer(target)) throw new TypeError("argument should be a Buffer");
1466
+ if (!start) start = 0;
1467
+ if (!end && end !== 0) end = this.length;
1468
+ if (targetStart >= target.length) targetStart = target.length;
1469
+ if (!targetStart) targetStart = 0;
1470
+ if (end > 0 && end < start) end = start;
1471
+ if (end === start) return 0;
1472
+ if (target.length === 0 || this.length === 0) return 0;
1473
+ if (targetStart < 0) {
1474
+ throw new RangeError("targetStart out of bounds");
1475
+ }
1476
+ if (start < 0 || start >= this.length) throw new RangeError("Index out of range");
1477
+ if (end < 0) throw new RangeError("sourceEnd out of bounds");
1478
+ if (end > this.length) end = this.length;
1479
+ if (target.length - targetStart < end - start) {
1480
+ end = target.length - targetStart + start;
1481
+ }
1482
+ const len = end - start;
1483
+ if (this === target && typeof Uint8Array.prototype.copyWithin === "function") {
1484
+ this.copyWithin(targetStart, start, end);
1485
+ } else {
1486
+ Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart);
1487
+ }
1488
+ return len;
1489
+ };
1490
+ Buffer3.prototype.fill = function fill(val, start, end, encoding) {
1491
+ if (typeof val === "string") {
1492
+ if (typeof start === "string") {
1493
+ encoding = start;
1494
+ start = 0;
1495
+ end = this.length;
1496
+ } else if (typeof end === "string") {
1497
+ encoding = end;
1498
+ end = this.length;
1499
+ }
1500
+ if (encoding !== void 0 && typeof encoding !== "string") {
1501
+ throw new TypeError("encoding must be a string");
1502
+ }
1503
+ if (typeof encoding === "string" && !Buffer3.isEncoding(encoding)) {
1504
+ throw new TypeError("Unknown encoding: " + encoding);
1505
+ }
1506
+ if (val.length === 1) {
1507
+ const code = val.charCodeAt(0);
1508
+ if (encoding === "utf8" && code < 128 || encoding === "latin1") {
1509
+ val = code;
1510
+ }
1511
+ }
1512
+ } else if (typeof val === "number") {
1513
+ val = val & 255;
1514
+ } else if (typeof val === "boolean") {
1515
+ val = Number(val);
1516
+ }
1517
+ if (start < 0 || this.length < start || this.length < end) {
1518
+ throw new RangeError("Out of range index");
1519
+ }
1520
+ if (end <= start) {
1521
+ return this;
1522
+ }
1523
+ start = start >>> 0;
1524
+ end = end === void 0 ? this.length : end >>> 0;
1525
+ if (!val) val = 0;
1526
+ let i;
1527
+ if (typeof val === "number") {
1528
+ for (i = start; i < end; ++i) {
1529
+ this[i] = val;
1530
+ }
1531
+ } else {
1532
+ const bytes = Buffer3.isBuffer(val) ? val : Buffer3.from(val, encoding);
1533
+ const len = bytes.length;
1534
+ if (len === 0) {
1535
+ throw new TypeError('The value "' + val + '" is invalid for argument "value"');
1536
+ }
1537
+ for (i = 0; i < end - start; ++i) {
1538
+ this[i + start] = bytes[i % len];
1539
+ }
1540
+ }
1541
+ return this;
1542
+ };
1543
+ const errors = {};
1544
+ function E(sym, getMessage, Base) {
1545
+ errors[sym] = class NodeError extends Base {
1546
+ constructor() {
1547
+ super();
1548
+ Object.defineProperty(this, "message", {
1549
+ value: getMessage.apply(this, arguments),
1550
+ writable: true,
1551
+ configurable: true
1552
+ });
1553
+ this.name = `${this.name} [${sym}]`;
1554
+ this.stack;
1555
+ delete this.name;
1556
+ }
1557
+ get code() {
1558
+ return sym;
1559
+ }
1560
+ set code(value) {
1561
+ Object.defineProperty(this, "code", {
1562
+ configurable: true,
1563
+ enumerable: true,
1564
+ value,
1565
+ writable: true
1566
+ });
1567
+ }
1568
+ toString() {
1569
+ return `${this.name} [${sym}]: ${this.message}`;
1570
+ }
1571
+ };
1572
+ }
1573
+ E("ERR_BUFFER_OUT_OF_BOUNDS", function(name) {
1574
+ if (name) {
1575
+ return `${name} is outside of buffer bounds`;
1576
+ }
1577
+ return "Attempt to access memory outside buffer bounds";
1578
+ }, RangeError);
1579
+ E("ERR_INVALID_ARG_TYPE", function(name, actual) {
1580
+ return `The "${name}" argument must be of type number. Received type ${typeof actual}`;
1581
+ }, TypeError);
1582
+ E("ERR_OUT_OF_RANGE", function(str, range, input) {
1583
+ let msg = `The value of "${str}" is out of range.`;
1584
+ let received = input;
1585
+ if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
1586
+ received = addNumericalSeparator(String(input));
1587
+ } else if (typeof input === "bigint") {
1588
+ received = String(input);
1589
+ if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {
1590
+ received = addNumericalSeparator(received);
1591
+ }
1592
+ received += "n";
1593
+ }
1594
+ msg += ` It must be ${range}. Received ${received}`;
1595
+ return msg;
1596
+ }, RangeError);
1597
+ function addNumericalSeparator(val) {
1598
+ let res = "";
1599
+ let i = val.length;
1600
+ const start = val[0] === "-" ? 1 : 0;
1601
+ for (; i >= start + 4; i -= 3) {
1602
+ res = `_${val.slice(i - 3, i)}${res}`;
1603
+ }
1604
+ return `${val.slice(0, i)}${res}`;
1605
+ }
1606
+ function checkBounds(buf, offset, byteLength2) {
1607
+ validateNumber(offset, "offset");
1608
+ if (buf[offset] === void 0 || buf[offset + byteLength2] === void 0) {
1609
+ boundsError(offset, buf.length - (byteLength2 + 1));
1610
+ }
1611
+ }
1612
+ function checkIntBI(value, min, max, buf, offset, byteLength2) {
1613
+ if (value > max || value < min) {
1614
+ const n = typeof min === "bigint" ? "n" : "";
1615
+ let range;
1616
+ {
1617
+ if (min === 0 || min === BigInt(0)) {
1618
+ range = `>= 0${n} and < 2${n} ** ${(byteLength2 + 1) * 8}${n}`;
1619
+ } else {
1620
+ range = `>= -(2${n} ** ${(byteLength2 + 1) * 8 - 1}${n}) and < 2 ** ${(byteLength2 + 1) * 8 - 1}${n}`;
1621
+ }
1622
+ }
1623
+ throw new errors.ERR_OUT_OF_RANGE("value", range, value);
1624
+ }
1625
+ checkBounds(buf, offset, byteLength2);
1626
+ }
1627
+ function validateNumber(value, name) {
1628
+ if (typeof value !== "number") {
1629
+ throw new errors.ERR_INVALID_ARG_TYPE(name, "number", value);
1630
+ }
1631
+ }
1632
+ function boundsError(value, length, type) {
1633
+ if (Math.floor(value) !== value) {
1634
+ validateNumber(value, type);
1635
+ throw new errors.ERR_OUT_OF_RANGE("offset", "an integer", value);
1636
+ }
1637
+ if (length < 0) {
1638
+ throw new errors.ERR_BUFFER_OUT_OF_BOUNDS();
1639
+ }
1640
+ throw new errors.ERR_OUT_OF_RANGE("offset", `>= ${0} and <= ${length}`, value);
1641
+ }
1642
+ const INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
1643
+ function base64clean(str) {
1644
+ str = str.split("=")[0];
1645
+ str = str.trim().replace(INVALID_BASE64_RE, "");
1646
+ if (str.length < 2) return "";
1647
+ while (str.length % 4 !== 0) {
1648
+ str = str + "=";
1649
+ }
1650
+ return str;
1651
+ }
1652
+ function utf8ToBytes(string, units) {
1653
+ units = units || Infinity;
1654
+ let codePoint;
1655
+ const length = string.length;
1656
+ let leadSurrogate = null;
1657
+ const bytes = [];
1658
+ for (let i = 0; i < length; ++i) {
1659
+ codePoint = string.charCodeAt(i);
1660
+ if (codePoint > 55295 && codePoint < 57344) {
1661
+ if (!leadSurrogate) {
1662
+ if (codePoint > 56319) {
1663
+ if ((units -= 3) > -1) bytes.push(239, 191, 189);
1664
+ continue;
1665
+ } else if (i + 1 === length) {
1666
+ if ((units -= 3) > -1) bytes.push(239, 191, 189);
1667
+ continue;
1668
+ }
1669
+ leadSurrogate = codePoint;
1670
+ continue;
1671
+ }
1672
+ if (codePoint < 56320) {
1673
+ if ((units -= 3) > -1) bytes.push(239, 191, 189);
1674
+ leadSurrogate = codePoint;
1675
+ continue;
1676
+ }
1677
+ codePoint = (leadSurrogate - 55296 << 10 | codePoint - 56320) + 65536;
1678
+ } else if (leadSurrogate) {
1679
+ if ((units -= 3) > -1) bytes.push(239, 191, 189);
1680
+ }
1681
+ leadSurrogate = null;
1682
+ if (codePoint < 128) {
1683
+ if ((units -= 1) < 0) break;
1684
+ bytes.push(codePoint);
1685
+ } else if (codePoint < 2048) {
1686
+ if ((units -= 2) < 0) break;
1687
+ bytes.push(codePoint >> 6 | 192, codePoint & 63 | 128);
1688
+ } else if (codePoint < 65536) {
1689
+ if ((units -= 3) < 0) break;
1690
+ bytes.push(codePoint >> 12 | 224, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);
1691
+ } else if (codePoint < 1114112) {
1692
+ if ((units -= 4) < 0) break;
1693
+ bytes.push(codePoint >> 18 | 240, codePoint >> 12 & 63 | 128, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);
1694
+ } else {
1695
+ throw new Error("Invalid code point");
1696
+ }
1697
+ }
1698
+ return bytes;
1699
+ }
1700
+ function asciiToBytes(str) {
1701
+ const byteArray = [];
1702
+ for (let i = 0; i < str.length; ++i) {
1703
+ byteArray.push(str.charCodeAt(i) & 255);
1704
+ }
1705
+ return byteArray;
1706
+ }
1707
+ function utf16leToBytes(str, units) {
1708
+ let c, hi, lo;
1709
+ const byteArray = [];
1710
+ for (let i = 0; i < str.length; ++i) {
1711
+ if ((units -= 2) < 0) break;
1712
+ c = str.charCodeAt(i);
1713
+ hi = c >> 8;
1714
+ lo = c % 256;
1715
+ byteArray.push(lo);
1716
+ byteArray.push(hi);
1717
+ }
1718
+ return byteArray;
1719
+ }
1720
+ function base64ToBytes(str) {
1721
+ return base64.toByteArray(base64clean(str));
1722
+ }
1723
+ function blitBuffer(src, dst, offset, length) {
1724
+ let i;
1725
+ for (i = 0; i < length; ++i) {
1726
+ if (i + offset >= dst.length || i >= src.length) break;
1727
+ dst[i + offset] = src[i];
1728
+ }
1729
+ return i;
1730
+ }
1731
+ function isInstance(obj, type) {
1732
+ return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;
1733
+ }
1734
+ function numberIsNaN(obj) {
1735
+ return obj !== obj;
1736
+ }
1737
+ const hexSliceLookupTable = (function() {
1738
+ const alphabet = "0123456789abcdef";
1739
+ const table = new Array(256);
1740
+ for (let i = 0; i < 16; ++i) {
1741
+ const i16 = i * 16;
1742
+ for (let j = 0; j < 16; ++j) {
1743
+ table[i16 + j] = alphabet[i] + alphabet[j];
1744
+ }
1745
+ }
1746
+ return table;
1747
+ })();
1748
+ function defineBigIntMethod(fn) {
1749
+ return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
1750
+ }
1751
+ function BufferBigIntNotDefined() {
1752
+ throw new Error("BigInt not supported");
1753
+ }
1754
+ return exports;
1755
+ }
1756
+ var exports$2, _dewExec$2, exports$1, _dewExec$1, exports, _dewExec;
1757
+ var init_chunk_DtuTasat = __esm({
1758
+ "../../node_modules/@jspm/core/nodelibs/browser/chunk-DtuTasat.js"() {
1759
+ init_dirname();
1760
+ init_buffer2();
1761
+ init_process2();
1762
+ exports$2 = {};
1763
+ _dewExec$2 = false;
1764
+ exports$1 = {};
1765
+ _dewExec$1 = false;
1766
+ exports = {};
1767
+ _dewExec = false;
1768
+ }
1769
+ });
1770
+
1771
+ // ../../node_modules/@jspm/core/nodelibs/browser/buffer.js
1772
+ var exports2, Buffer2;
1773
+ var init_buffer = __esm({
1774
+ "../../node_modules/@jspm/core/nodelibs/browser/buffer.js"() {
1775
+ init_dirname();
1776
+ init_buffer2();
1777
+ init_process2();
1778
+ init_chunk_DtuTasat();
1779
+ exports2 = dew();
1780
+ exports2["Buffer"];
1781
+ exports2["SlowBuffer"];
1782
+ exports2["INSPECT_MAX_BYTES"];
1783
+ exports2["kMaxLength"];
1784
+ Buffer2 = exports2.Buffer;
1785
+ exports2.INSPECT_MAX_BYTES;
1786
+ exports2.kMaxLength;
1787
+ }
1788
+ });
1789
+
1790
+ // ../../node_modules/esbuild-plugin-polyfill-node/polyfills/buffer.js
1791
+ var init_buffer2 = __esm({
1792
+ "../../node_modules/esbuild-plugin-polyfill-node/polyfills/buffer.js"() {
1793
+ init_buffer();
1794
+ }
1795
+ });
1796
+
1797
+ // ../../node_modules/@jspm/core/nodelibs/browser/process.js
1798
+ var process_exports = {};
1799
+ __export(process_exports, {
1800
+ _debugEnd: () => _debugEnd,
1801
+ _debugProcess: () => _debugProcess,
1802
+ _events: () => _events,
1803
+ _eventsCount: () => _eventsCount,
1804
+ _exiting: () => _exiting,
1805
+ _fatalExceptions: () => _fatalExceptions,
1806
+ _getActiveHandles: () => _getActiveHandles,
1807
+ _getActiveRequests: () => _getActiveRequests,
1808
+ _kill: () => _kill,
1809
+ _linkedBinding: () => _linkedBinding,
1810
+ _maxListeners: () => _maxListeners,
1811
+ _preload_modules: () => _preload_modules,
1812
+ _rawDebug: () => _rawDebug,
1813
+ _startProfilerIdleNotifier: () => _startProfilerIdleNotifier,
1814
+ _stopProfilerIdleNotifier: () => _stopProfilerIdleNotifier,
1815
+ _tickCallback: () => _tickCallback,
1816
+ abort: () => abort,
1817
+ addListener: () => addListener,
1818
+ allowedNodeEnvironmentFlags: () => allowedNodeEnvironmentFlags,
1819
+ arch: () => arch,
1820
+ argv: () => argv,
1821
+ argv0: () => argv0,
1822
+ assert: () => assert,
1823
+ binding: () => binding,
1824
+ browser: () => browser,
1825
+ chdir: () => chdir,
1826
+ config: () => config,
1827
+ cpuUsage: () => cpuUsage,
1828
+ cwd: () => cwd,
1829
+ debugPort: () => debugPort,
1830
+ default: () => process,
1831
+ dlopen: () => dlopen,
1832
+ domain: () => domain,
1833
+ emit: () => emit,
1834
+ emitWarning: () => emitWarning,
1835
+ env: () => env,
1836
+ execArgv: () => execArgv,
1837
+ execPath: () => execPath,
1838
+ exit: () => exit,
1839
+ features: () => features,
1840
+ hasUncaughtExceptionCaptureCallback: () => hasUncaughtExceptionCaptureCallback,
1841
+ hrtime: () => hrtime,
1842
+ kill: () => kill,
1843
+ listeners: () => listeners,
1844
+ memoryUsage: () => memoryUsage,
1845
+ moduleLoadList: () => moduleLoadList,
1846
+ nextTick: () => nextTick,
1847
+ off: () => off,
1848
+ on: () => on,
1849
+ once: () => once,
1850
+ openStdin: () => openStdin,
1851
+ pid: () => pid,
1852
+ platform: () => platform,
1853
+ ppid: () => ppid,
1854
+ prependListener: () => prependListener,
1855
+ prependOnceListener: () => prependOnceListener,
1856
+ reallyExit: () => reallyExit,
1857
+ release: () => release,
1858
+ removeAllListeners: () => removeAllListeners,
1859
+ removeListener: () => removeListener,
1860
+ resourceUsage: () => resourceUsage,
1861
+ setSourceMapsEnabled: () => setSourceMapsEnabled,
1862
+ setUncaughtExceptionCaptureCallback: () => setUncaughtExceptionCaptureCallback,
1863
+ stderr: () => stderr,
1864
+ stdin: () => stdin,
1865
+ stdout: () => stdout,
1866
+ title: () => title,
1867
+ umask: () => umask,
1868
+ uptime: () => uptime,
1869
+ version: () => version,
1870
+ versions: () => versions
1871
+ });
1872
+ function unimplemented(name) {
1873
+ throw new Error("Node.js process " + name + " is not supported by JSPM core outside of Node.js");
1874
+ }
1875
+ function cleanUpNextTick() {
1876
+ if (!draining || !currentQueue)
1877
+ return;
1878
+ draining = false;
1879
+ if (currentQueue.length) {
1880
+ queue = currentQueue.concat(queue);
1881
+ } else {
1882
+ queueIndex = -1;
1883
+ }
1884
+ if (queue.length)
1885
+ drainQueue();
1886
+ }
1887
+ function drainQueue() {
1888
+ if (draining)
1889
+ return;
1890
+ var timeout = setTimeout(cleanUpNextTick, 0);
1891
+ draining = true;
1892
+ var len = queue.length;
1893
+ while (len) {
1894
+ currentQueue = queue;
1895
+ queue = [];
1896
+ while (++queueIndex < len) {
1897
+ if (currentQueue)
1898
+ currentQueue[queueIndex].run();
1899
+ }
1900
+ queueIndex = -1;
1901
+ len = queue.length;
1902
+ }
1903
+ currentQueue = null;
1904
+ draining = false;
1905
+ clearTimeout(timeout);
1906
+ }
1907
+ function nextTick(fun) {
1908
+ var args = new Array(arguments.length - 1);
1909
+ if (arguments.length > 1) {
1910
+ for (var i = 1; i < arguments.length; i++)
1911
+ args[i - 1] = arguments[i];
1912
+ }
1913
+ queue.push(new Item(fun, args));
1914
+ if (queue.length === 1 && !draining)
1915
+ setTimeout(drainQueue, 0);
1916
+ }
1917
+ function Item(fun, array) {
1918
+ this.fun = fun;
1919
+ this.array = array;
1920
+ }
1921
+ function noop() {
1922
+ }
1923
+ function _linkedBinding(name) {
1924
+ unimplemented("_linkedBinding");
1925
+ }
1926
+ function dlopen(name) {
1927
+ unimplemented("dlopen");
1928
+ }
1929
+ function _getActiveRequests() {
1930
+ return [];
1931
+ }
1932
+ function _getActiveHandles() {
1933
+ return [];
1934
+ }
1935
+ function assert(condition, message) {
1936
+ if (!condition) throw new Error(message || "assertion error");
1937
+ }
1938
+ function hasUncaughtExceptionCaptureCallback() {
1939
+ return false;
1940
+ }
1941
+ function uptime() {
1942
+ return _performance.now() / 1e3;
1943
+ }
1944
+ function hrtime(previousTimestamp) {
1945
+ var baseNow = Math.floor((Date.now() - _performance.now()) * 1e-3);
1946
+ var clocktime = _performance.now() * 1e-3;
1947
+ var seconds = Math.floor(clocktime) + baseNow;
1948
+ var nanoseconds = Math.floor(clocktime % 1 * 1e9);
1949
+ if (previousTimestamp) {
1950
+ seconds = seconds - previousTimestamp[0];
1951
+ nanoseconds = nanoseconds - previousTimestamp[1];
1952
+ if (nanoseconds < 0) {
1953
+ seconds--;
1954
+ nanoseconds += nanoPerSec;
1955
+ }
1956
+ }
1957
+ return [seconds, nanoseconds];
1958
+ }
1959
+ function on() {
1960
+ return process;
1961
+ }
1962
+ function listeners(name) {
1963
+ return [];
1964
+ }
1965
+ var queue, draining, currentQueue, queueIndex, title, arch, platform, env, argv, execArgv, version, versions, emitWarning, binding, umask, cwd, chdir, release, browser, _rawDebug, moduleLoadList, domain, _exiting, config, reallyExit, _kill, cpuUsage, resourceUsage, memoryUsage, kill, exit, openStdin, allowedNodeEnvironmentFlags, features, _fatalExceptions, setUncaughtExceptionCaptureCallback, _tickCallback, _debugProcess, _debugEnd, _startProfilerIdleNotifier, _stopProfilerIdleNotifier, stdout, stderr, stdin, abort, pid, ppid, execPath, debugPort, argv0, _preload_modules, setSourceMapsEnabled, _performance, nowOffset, nanoPerSec, _maxListeners, _events, _eventsCount, addListener, once, off, removeListener, removeAllListeners, emit, prependListener, prependOnceListener, process;
1966
+ var init_process = __esm({
1967
+ "../../node_modules/@jspm/core/nodelibs/browser/process.js"() {
1968
+ init_dirname();
1969
+ init_buffer2();
1970
+ init_process2();
1971
+ queue = [];
1972
+ draining = false;
1973
+ queueIndex = -1;
1974
+ Item.prototype.run = function() {
1975
+ this.fun.apply(null, this.array);
1976
+ };
1977
+ title = "browser";
1978
+ arch = "x64";
1979
+ platform = "browser";
1980
+ env = {
1981
+ PATH: "/usr/bin",
1982
+ LANG: typeof navigator !== "undefined" ? navigator.language + ".UTF-8" : void 0,
1983
+ PWD: "/",
1984
+ HOME: "/home",
1985
+ TMP: "/tmp"
1986
+ };
1987
+ argv = ["/usr/bin/node"];
1988
+ execArgv = [];
1989
+ version = "v16.8.0";
1990
+ versions = {};
1991
+ emitWarning = function(message, type) {
1992
+ console.warn((type ? type + ": " : "") + message);
1993
+ };
1994
+ binding = function(name) {
1995
+ unimplemented("binding");
1996
+ };
1997
+ umask = function(mask) {
1998
+ return 0;
1999
+ };
2000
+ cwd = function() {
2001
+ return "/";
2002
+ };
2003
+ chdir = function(dir) {
2004
+ };
2005
+ release = {
2006
+ name: "node",
2007
+ sourceUrl: "",
2008
+ headersUrl: "",
2009
+ libUrl: ""
2010
+ };
2011
+ browser = true;
2012
+ _rawDebug = noop;
2013
+ moduleLoadList = [];
2014
+ domain = {};
2015
+ _exiting = false;
2016
+ config = {};
2017
+ reallyExit = noop;
2018
+ _kill = noop;
2019
+ cpuUsage = function() {
2020
+ return {};
2021
+ };
2022
+ resourceUsage = cpuUsage;
2023
+ memoryUsage = cpuUsage;
2024
+ kill = noop;
2025
+ exit = noop;
2026
+ openStdin = noop;
2027
+ allowedNodeEnvironmentFlags = {};
2028
+ features = {
2029
+ inspector: false,
2030
+ debug: false,
2031
+ uv: false,
2032
+ ipv6: false,
2033
+ tls_alpn: false,
2034
+ tls_sni: false,
2035
+ tls_ocsp: false,
2036
+ tls: false,
2037
+ cached_builtins: true
2038
+ };
2039
+ _fatalExceptions = noop;
2040
+ setUncaughtExceptionCaptureCallback = noop;
2041
+ _tickCallback = noop;
2042
+ _debugProcess = noop;
2043
+ _debugEnd = noop;
2044
+ _startProfilerIdleNotifier = noop;
2045
+ _stopProfilerIdleNotifier = noop;
2046
+ stdout = void 0;
2047
+ stderr = void 0;
2048
+ stdin = void 0;
2049
+ abort = noop;
2050
+ pid = 2;
2051
+ ppid = 1;
2052
+ execPath = "/bin/usr/node";
2053
+ debugPort = 9229;
2054
+ argv0 = "node";
2055
+ _preload_modules = [];
2056
+ setSourceMapsEnabled = noop;
2057
+ _performance = {
2058
+ now: typeof performance !== "undefined" ? performance.now.bind(performance) : void 0,
2059
+ timing: typeof performance !== "undefined" ? performance.timing : void 0
2060
+ };
2061
+ if (_performance.now === void 0) {
2062
+ nowOffset = Date.now();
2063
+ if (_performance.timing && _performance.timing.navigationStart) {
2064
+ nowOffset = _performance.timing.navigationStart;
2065
+ }
2066
+ _performance.now = () => Date.now() - nowOffset;
2067
+ }
2068
+ nanoPerSec = 1e9;
2069
+ hrtime.bigint = function(time) {
2070
+ var diff = hrtime(time);
2071
+ if (typeof BigInt === "undefined") {
2072
+ return diff[0] * nanoPerSec + diff[1];
2073
+ }
2074
+ return BigInt(diff[0] * nanoPerSec) + BigInt(diff[1]);
2075
+ };
2076
+ _maxListeners = 10;
2077
+ _events = {};
2078
+ _eventsCount = 0;
2079
+ addListener = on;
2080
+ once = on;
2081
+ off = on;
2082
+ removeListener = on;
2083
+ removeAllListeners = on;
2084
+ emit = noop;
2085
+ prependListener = on;
2086
+ prependOnceListener = on;
2087
+ process = {
2088
+ version,
2089
+ versions,
2090
+ arch,
2091
+ platform,
2092
+ browser,
2093
+ release,
2094
+ _rawDebug,
2095
+ moduleLoadList,
2096
+ binding,
2097
+ _linkedBinding,
2098
+ _events,
2099
+ _eventsCount,
2100
+ _maxListeners,
2101
+ on,
2102
+ addListener,
2103
+ once,
2104
+ off,
2105
+ removeListener,
2106
+ removeAllListeners,
2107
+ emit,
2108
+ prependListener,
2109
+ prependOnceListener,
2110
+ listeners,
2111
+ domain,
2112
+ _exiting,
2113
+ config,
2114
+ dlopen,
2115
+ uptime,
2116
+ _getActiveRequests,
2117
+ _getActiveHandles,
2118
+ reallyExit,
2119
+ _kill,
2120
+ cpuUsage,
2121
+ resourceUsage,
2122
+ memoryUsage,
2123
+ kill,
2124
+ exit,
2125
+ openStdin,
2126
+ allowedNodeEnvironmentFlags,
2127
+ assert,
2128
+ features,
2129
+ _fatalExceptions,
2130
+ setUncaughtExceptionCaptureCallback,
2131
+ hasUncaughtExceptionCaptureCallback,
2132
+ emitWarning,
2133
+ nextTick,
2134
+ _tickCallback,
2135
+ _debugProcess,
2136
+ _debugEnd,
2137
+ _startProfilerIdleNotifier,
2138
+ _stopProfilerIdleNotifier,
2139
+ stdout,
2140
+ stdin,
2141
+ stderr,
2142
+ abort,
2143
+ umask,
2144
+ chdir,
2145
+ cwd,
2146
+ env,
2147
+ title,
2148
+ argv,
2149
+ execArgv,
2150
+ pid,
2151
+ ppid,
2152
+ execPath,
2153
+ debugPort,
2154
+ hrtime,
2155
+ argv0,
2156
+ _preload_modules,
2157
+ setSourceMapsEnabled
2158
+ };
2159
+ }
2160
+ });
2161
+
2162
+ // ../../node_modules/esbuild-plugin-polyfill-node/polyfills/process.js
2163
+ var init_process2 = __esm({
2164
+ "../../node_modules/esbuild-plugin-polyfill-node/polyfills/process.js"() {
2165
+ init_process();
2166
+ }
2167
+ });
2168
+ /*! Bundled license information:
2169
+
2170
+ @jspm/core/nodelibs/browser/chunk-DtuTasat.js:
2171
+ (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
2172
+ */
2173
+
2174
+ export { Buffer2 as Buffer, __commonJS, __esm, __export, __require, __toCommonJS, __toESM, dew, init_buffer2 as init_buffer, init_chunk_DtuTasat, init_dirname, init_process2 as init_process, process_exports };
2175
+ //# sourceMappingURL=chunk-WKNVAFKE.js.map
2176
+ //# sourceMappingURL=chunk-WKNVAFKE.js.map