@powerlines/deepkit 0.5.1 → 0.5.3

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 (62) hide show
  1. package/dist/capnp.cjs +49 -48
  2. package/dist/capnp.js +4 -3
  3. package/dist/{chunk-U5O6DHJ2.js → chunk-35PNVYKI.js} +4 -4
  4. package/dist/chunk-3GQAWCBQ.js +10 -0
  5. package/dist/{chunk-PKLLVKY2.cjs → chunk-3GRTJOID.cjs} +9 -9
  6. package/dist/{chunk-ESVH44QW.cjs → chunk-3PKIT7K2.cjs} +4 -4
  7. package/dist/{chunk-MEMIQ5AA.js → chunk-47WBQTA6.js} +1 -1
  8. package/dist/chunk-4UQ4UDET.cjs +19685 -0
  9. package/dist/{chunk-VMRRVNO2.cjs → chunk-B47NLUDW.cjs} +2 -2
  10. package/dist/chunk-BGYQAVKQ.cjs +13 -0
  11. package/dist/chunk-F5QUFY7D.cjs +135 -0
  12. package/dist/{chunk-4V4LIAN2.js → chunk-GVS5O43Z.js} +2 -2
  13. package/dist/{chunk-YQQIT5YX.js → chunk-JSH5MVQG.js} +2 -2
  14. package/dist/{chunk-VWKKT7CM.cjs → chunk-KDKCOXXC.cjs} +5 -5
  15. package/dist/chunk-KWUXT6EF.js +127 -0
  16. package/dist/{chunk-J2FVIV7W.cjs → chunk-MSO7PT57.cjs} +126 -126
  17. package/dist/chunk-O2LKJ62Q.cjs +2863 -0
  18. package/dist/chunk-U7WEV6HK.js +19678 -0
  19. package/dist/chunk-W423FBJ2.js +2854 -0
  20. package/dist/{chunk-I5CVIT7W.js → chunk-XI47ZADG.js} +42 -42
  21. package/dist/chunk-XU55W26B.js +109 -0
  22. package/dist/esbuild-plugin.cjs +6 -5
  23. package/dist/esbuild-plugin.js +5 -4
  24. package/dist/index.cjs +68 -67
  25. package/dist/index.js +10 -9
  26. package/dist/reflect-type.cjs +8 -7
  27. package/dist/reflect-type.js +7 -6
  28. package/dist/resolve-reflections.cjs +3 -3
  29. package/dist/resolve-reflections.js +2 -2
  30. package/dist/transformer.cjs +5 -4
  31. package/dist/transformer.js +3 -2
  32. package/dist/transpile.cjs +5 -4
  33. package/dist/transpile.js +4 -3
  34. package/dist/utilities.cjs +11 -10
  35. package/dist/utilities.js +4 -3
  36. package/dist/vendor/chunk-5BKT4CS5.js +28 -0
  37. package/dist/vendor/{chunk-ZDFKNN7Y.cjs → chunk-BDXVTHBY.cjs} +322 -153
  38. package/dist/vendor/{chunk-7LAB3COT.js → chunk-BLN7QVCP.js} +154 -7
  39. package/dist/vendor/chunk-EQXMWOHO.cjs +115 -0
  40. package/dist/vendor/chunk-MO4O4UYI.cjs +42 -0
  41. package/dist/vendor/core.cjs +131 -130
  42. package/dist/vendor/core.js +2 -2
  43. package/dist/vendor/index.cjs +28 -0
  44. package/dist/vendor/index.d.cts +2 -0
  45. package/dist/vendor/index.d.ts +2 -0
  46. package/dist/vendor/index.js +1 -0
  47. package/dist/vendor/type-spec.cjs +6 -5
  48. package/dist/vendor/type-spec.js +1 -1
  49. package/dist/vendor/type.cjs +2346 -641
  50. package/dist/vendor/type.js +1661 -23
  51. package/package.json +5 -5
  52. package/dist/chunk-7J3ZDT6O.cjs +0 -30
  53. package/dist/chunk-B6GTAZEL.js +0 -37
  54. package/dist/chunk-FFBZWTR7.cjs +0 -63
  55. package/dist/chunk-GRNJVY7I.cjs +0 -19
  56. package/dist/chunk-IRPJW6HH.js +0 -16
  57. package/dist/chunk-J4SVRFV4.js +0 -127
  58. package/dist/chunk-QLKLDV3V.cjs +0 -135
  59. package/dist/chunk-XGQQM64U.js +0 -8
  60. package/dist/vendor/chunk-SHUYVCID.js +0 -4
  61. package/dist/vendor/chunk-USNT2KNT.cjs +0 -6
  62. /package/dist/{vendor/chunk-5NPGWGPO.cjs → chunk-5NPGWGPO.cjs} +0 -0
@@ -1,9 +1,1570 @@
1
- import { empty, __ΩAbstractClassType as ___AbstractClassType, __ΩClassType as ___ClassType, isFunction, stringifyValueWithType, isClass, isArray, getClassName, isPrototypeOfBase, arrayRemoveItem, indent, getParentClass, CustomError, CompilerContext, __ΩExtractClassType as ___ExtractClassType, isGlobalClass, getInheritanceChain, isObject, toFastProperties, isNumeric, hasProperty, isObjectLiteral, isIterable, iterableSize, getClassTypeFromInstance, __ΩTypeAnnotation as ___TypeAnnotation, getObjectKeysSize, isInteger } from './chunk-7LAB3COT.js';
1
+ import { empty, __ΩAbstractClassType as ___AbstractClassType, __ΩClassType as ___ClassType, isFunction, stringifyValueWithType, isClass, isArray, getClassName, isPrototypeOfBase, arrayRemoveItem, indent, getParentClass, CustomError, CompilerContext, __ΩExtractClassType as ___ExtractClassType, isGlobalClass, getInheritanceChain, isObject, toFastProperties, isNumeric, hasProperty, isObjectLiteral, isIterable, iterableSize, getClassTypeFromInstance, __ΩTypeAnnotation as ___TypeAnnotation, getObjectKeysSize, isInteger } from './chunk-BLN7QVCP.js';
2
2
  import { ReflectionOp, TypeNumberBrand } from './chunk-BR2FK5K7.js';
3
3
  export { TypeNumberBrand } from './chunk-BR2FK5K7.js';
4
- import { __name } from './chunk-SHUYVCID.js';
5
- import { Buffer } from 'buffer';
6
- import { v4, stringify } from 'uuid';
4
+ import { __commonJS, __name, __toESM } from './chunk-5BKT4CS5.js';
5
+
6
+ // ../../node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js
7
+ var require_base64_js = __commonJS({
8
+ "../../node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js"(exports$1) {
9
+ exports$1.byteLength = byteLength;
10
+ exports$1.toByteArray = toByteArray;
11
+ exports$1.fromByteArray = fromByteArray;
12
+ var lookup = [];
13
+ var revLookup = [];
14
+ var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
15
+ var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
16
+ for (i = 0, len = code.length; i < len; ++i) {
17
+ lookup[i] = code[i];
18
+ revLookup[code.charCodeAt(i)] = i;
19
+ }
20
+ var i;
21
+ var len;
22
+ revLookup["-".charCodeAt(0)] = 62;
23
+ revLookup["_".charCodeAt(0)] = 63;
24
+ function getLens(b64) {
25
+ var len2 = b64.length;
26
+ if (len2 % 4 > 0) {
27
+ throw new Error("Invalid string. Length must be a multiple of 4");
28
+ }
29
+ var validLen = b64.indexOf("=");
30
+ if (validLen === -1) validLen = len2;
31
+ var placeHoldersLen = validLen === len2 ? 0 : 4 - validLen % 4;
32
+ return [
33
+ validLen,
34
+ placeHoldersLen
35
+ ];
36
+ }
37
+ __name(getLens, "getLens");
38
+ function byteLength(b64) {
39
+ var lens = getLens(b64);
40
+ var validLen = lens[0];
41
+ var placeHoldersLen = lens[1];
42
+ return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
43
+ }
44
+ __name(byteLength, "byteLength");
45
+ function _byteLength(b64, validLen, placeHoldersLen) {
46
+ return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
47
+ }
48
+ __name(_byteLength, "_byteLength");
49
+ function toByteArray(b64) {
50
+ var tmp;
51
+ var lens = getLens(b64);
52
+ var validLen = lens[0];
53
+ var placeHoldersLen = lens[1];
54
+ var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
55
+ var curByte = 0;
56
+ var len2 = placeHoldersLen > 0 ? validLen - 4 : validLen;
57
+ var i2;
58
+ for (i2 = 0; i2 < len2; i2 += 4) {
59
+ tmp = revLookup[b64.charCodeAt(i2)] << 18 | revLookup[b64.charCodeAt(i2 + 1)] << 12 | revLookup[b64.charCodeAt(i2 + 2)] << 6 | revLookup[b64.charCodeAt(i2 + 3)];
60
+ arr[curByte++] = tmp >> 16 & 255;
61
+ arr[curByte++] = tmp >> 8 & 255;
62
+ arr[curByte++] = tmp & 255;
63
+ }
64
+ if (placeHoldersLen === 2) {
65
+ tmp = revLookup[b64.charCodeAt(i2)] << 2 | revLookup[b64.charCodeAt(i2 + 1)] >> 4;
66
+ arr[curByte++] = tmp & 255;
67
+ }
68
+ if (placeHoldersLen === 1) {
69
+ tmp = revLookup[b64.charCodeAt(i2)] << 10 | revLookup[b64.charCodeAt(i2 + 1)] << 4 | revLookup[b64.charCodeAt(i2 + 2)] >> 2;
70
+ arr[curByte++] = tmp >> 8 & 255;
71
+ arr[curByte++] = tmp & 255;
72
+ }
73
+ return arr;
74
+ }
75
+ __name(toByteArray, "toByteArray");
76
+ function tripletToBase64(num) {
77
+ return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];
78
+ }
79
+ __name(tripletToBase64, "tripletToBase64");
80
+ function encodeChunk(uint8, start, end) {
81
+ var tmp;
82
+ var output = [];
83
+ for (var i2 = start; i2 < end; i2 += 3) {
84
+ tmp = (uint8[i2] << 16 & 16711680) + (uint8[i2 + 1] << 8 & 65280) + (uint8[i2 + 2] & 255);
85
+ output.push(tripletToBase64(tmp));
86
+ }
87
+ return output.join("");
88
+ }
89
+ __name(encodeChunk, "encodeChunk");
90
+ function fromByteArray(uint8) {
91
+ var tmp;
92
+ var len2 = uint8.length;
93
+ var extraBytes = len2 % 3;
94
+ var parts = [];
95
+ var maxChunkLength = 16383;
96
+ for (var i2 = 0, len22 = len2 - extraBytes; i2 < len22; i2 += maxChunkLength) {
97
+ parts.push(encodeChunk(uint8, i2, i2 + maxChunkLength > len22 ? len22 : i2 + maxChunkLength));
98
+ }
99
+ if (extraBytes === 1) {
100
+ tmp = uint8[len2 - 1];
101
+ parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "==");
102
+ } else if (extraBytes === 2) {
103
+ tmp = (uint8[len2 - 2] << 8) + uint8[len2 - 1];
104
+ parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "=");
105
+ }
106
+ return parts.join("");
107
+ }
108
+ __name(fromByteArray, "fromByteArray");
109
+ }
110
+ });
111
+
112
+ // ../../node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js
113
+ var require_ieee754 = __commonJS({
114
+ "../../node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js"(exports$1) {
115
+ exports$1.read = function(buffer, offset, isLE, mLen, nBytes) {
116
+ var e, m;
117
+ var eLen = nBytes * 8 - mLen - 1;
118
+ var eMax = (1 << eLen) - 1;
119
+ var eBias = eMax >> 1;
120
+ var nBits = -7;
121
+ var i = isLE ? nBytes - 1 : 0;
122
+ var d = isLE ? -1 : 1;
123
+ var s = buffer[offset + i];
124
+ i += d;
125
+ e = s & (1 << -nBits) - 1;
126
+ s >>= -nBits;
127
+ nBits += eLen;
128
+ for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {
129
+ }
130
+ m = e & (1 << -nBits) - 1;
131
+ e >>= -nBits;
132
+ nBits += mLen;
133
+ for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {
134
+ }
135
+ if (e === 0) {
136
+ e = 1 - eBias;
137
+ } else if (e === eMax) {
138
+ return m ? NaN : (s ? -1 : 1) * Infinity;
139
+ } else {
140
+ m = m + Math.pow(2, mLen);
141
+ e = e - eBias;
142
+ }
143
+ return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
144
+ };
145
+ exports$1.write = function(buffer, value, offset, isLE, mLen, nBytes) {
146
+ var e, m, c;
147
+ var eLen = nBytes * 8 - mLen - 1;
148
+ var eMax = (1 << eLen) - 1;
149
+ var eBias = eMax >> 1;
150
+ var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
151
+ var i = isLE ? 0 : nBytes - 1;
152
+ var d = isLE ? 1 : -1;
153
+ var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
154
+ value = Math.abs(value);
155
+ if (isNaN(value) || value === Infinity) {
156
+ m = isNaN(value) ? 1 : 0;
157
+ e = eMax;
158
+ } else {
159
+ e = Math.floor(Math.log(value) / Math.LN2);
160
+ if (value * (c = Math.pow(2, -e)) < 1) {
161
+ e--;
162
+ c *= 2;
163
+ }
164
+ if (e + eBias >= 1) {
165
+ value += rt / c;
166
+ } else {
167
+ value += rt * Math.pow(2, 1 - eBias);
168
+ }
169
+ if (value * c >= 2) {
170
+ e++;
171
+ c /= 2;
172
+ }
173
+ if (e + eBias >= eMax) {
174
+ m = 0;
175
+ e = eMax;
176
+ } else if (e + eBias >= 1) {
177
+ m = (value * c - 1) * Math.pow(2, mLen);
178
+ e = e + eBias;
179
+ } else {
180
+ m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
181
+ e = 0;
182
+ }
183
+ }
184
+ for (; mLen >= 8; buffer[offset + i] = m & 255, i += d, m /= 256, mLen -= 8) {
185
+ }
186
+ e = e << mLen | m;
187
+ eLen += mLen;
188
+ for (; eLen > 0; buffer[offset + i] = e & 255, i += d, e /= 256, eLen -= 8) {
189
+ }
190
+ buffer[offset + i - d] |= s * 128;
191
+ };
192
+ }
193
+ });
194
+
195
+ // ../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js
196
+ var require_buffer = __commonJS({
197
+ "../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js"(exports$1) {
198
+ var base64 = require_base64_js();
199
+ var ieee754 = require_ieee754();
200
+ var customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
201
+ exports$1.Buffer = Buffer2;
202
+ exports$1.SlowBuffer = SlowBuffer;
203
+ exports$1.INSPECT_MAX_BYTES = 50;
204
+ var K_MAX_LENGTH = 2147483647;
205
+ exports$1.kMaxLength = K_MAX_LENGTH;
206
+ Buffer2.TYPED_ARRAY_SUPPORT = typedArraySupport();
207
+ if (!Buffer2.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
208
+ 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.");
209
+ }
210
+ function typedArraySupport() {
211
+ try {
212
+ var arr = new Uint8Array(1);
213
+ var proto = {
214
+ foo: /* @__PURE__ */ __name(function() {
215
+ return 42;
216
+ }, "foo")
217
+ };
218
+ Object.setPrototypeOf(proto, Uint8Array.prototype);
219
+ Object.setPrototypeOf(arr, proto);
220
+ return arr.foo() === 42;
221
+ } catch (e) {
222
+ return false;
223
+ }
224
+ }
225
+ __name(typedArraySupport, "typedArraySupport");
226
+ Object.defineProperty(Buffer2.prototype, "parent", {
227
+ enumerable: true,
228
+ get: /* @__PURE__ */ __name(function() {
229
+ if (!Buffer2.isBuffer(this)) return void 0;
230
+ return this.buffer;
231
+ }, "get")
232
+ });
233
+ Object.defineProperty(Buffer2.prototype, "offset", {
234
+ enumerable: true,
235
+ get: /* @__PURE__ */ __name(function() {
236
+ if (!Buffer2.isBuffer(this)) return void 0;
237
+ return this.byteOffset;
238
+ }, "get")
239
+ });
240
+ function createBuffer(length) {
241
+ if (length > K_MAX_LENGTH) {
242
+ throw new RangeError('The value "' + length + '" is invalid for option "size"');
243
+ }
244
+ var buf = new Uint8Array(length);
245
+ Object.setPrototypeOf(buf, Buffer2.prototype);
246
+ return buf;
247
+ }
248
+ __name(createBuffer, "createBuffer");
249
+ function Buffer2(arg, encodingOrOffset, length) {
250
+ if (typeof arg === "number") {
251
+ if (typeof encodingOrOffset === "string") {
252
+ throw new TypeError('The "string" argument must be of type string. Received type number');
253
+ }
254
+ return allocUnsafe(arg);
255
+ }
256
+ return from(arg, encodingOrOffset, length);
257
+ }
258
+ __name(Buffer2, "Buffer");
259
+ Buffer2.poolSize = 8192;
260
+ function from(value, encodingOrOffset, length) {
261
+ if (typeof value === "string") {
262
+ return fromString(value, encodingOrOffset);
263
+ }
264
+ if (ArrayBuffer.isView(value)) {
265
+ return fromArrayView(value);
266
+ }
267
+ if (value == null) {
268
+ throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
269
+ }
270
+ if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) {
271
+ return fromArrayBuffer(value, encodingOrOffset, length);
272
+ }
273
+ if (typeof SharedArrayBuffer !== "undefined" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) {
274
+ return fromArrayBuffer(value, encodingOrOffset, length);
275
+ }
276
+ if (typeof value === "number") {
277
+ throw new TypeError('The "value" argument must not be of type number. Received type number');
278
+ }
279
+ var valueOf = value.valueOf && value.valueOf();
280
+ if (valueOf != null && valueOf !== value) {
281
+ return Buffer2.from(valueOf, encodingOrOffset, length);
282
+ }
283
+ var b = fromObject(value);
284
+ if (b) return b;
285
+ if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
286
+ return Buffer2.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
287
+ }
288
+ throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
289
+ }
290
+ __name(from, "from");
291
+ Buffer2.from = function(value, encodingOrOffset, length) {
292
+ return from(value, encodingOrOffset, length);
293
+ };
294
+ Object.setPrototypeOf(Buffer2.prototype, Uint8Array.prototype);
295
+ Object.setPrototypeOf(Buffer2, Uint8Array);
296
+ function assertSize(size) {
297
+ if (typeof size !== "number") {
298
+ throw new TypeError('"size" argument must be of type number');
299
+ } else if (size < 0) {
300
+ throw new RangeError('The value "' + size + '" is invalid for option "size"');
301
+ }
302
+ }
303
+ __name(assertSize, "assertSize");
304
+ function alloc(size, fill, encoding) {
305
+ assertSize(size);
306
+ if (size <= 0) {
307
+ return createBuffer(size);
308
+ }
309
+ if (fill !== void 0) {
310
+ return typeof encoding === "string" ? createBuffer(size).fill(fill, encoding) : createBuffer(size).fill(fill);
311
+ }
312
+ return createBuffer(size);
313
+ }
314
+ __name(alloc, "alloc");
315
+ Buffer2.alloc = function(size, fill, encoding) {
316
+ return alloc(size, fill, encoding);
317
+ };
318
+ function allocUnsafe(size) {
319
+ assertSize(size);
320
+ return createBuffer(size < 0 ? 0 : checked(size) | 0);
321
+ }
322
+ __name(allocUnsafe, "allocUnsafe");
323
+ Buffer2.allocUnsafe = function(size) {
324
+ return allocUnsafe(size);
325
+ };
326
+ Buffer2.allocUnsafeSlow = function(size) {
327
+ return allocUnsafe(size);
328
+ };
329
+ function fromString(string, encoding) {
330
+ if (typeof encoding !== "string" || encoding === "") {
331
+ encoding = "utf8";
332
+ }
333
+ if (!Buffer2.isEncoding(encoding)) {
334
+ throw new TypeError("Unknown encoding: " + encoding);
335
+ }
336
+ var length = byteLength(string, encoding) | 0;
337
+ var buf = createBuffer(length);
338
+ var actual = buf.write(string, encoding);
339
+ if (actual !== length) {
340
+ buf = buf.slice(0, actual);
341
+ }
342
+ return buf;
343
+ }
344
+ __name(fromString, "fromString");
345
+ function fromArrayLike(array) {
346
+ var length = array.length < 0 ? 0 : checked(array.length) | 0;
347
+ var buf = createBuffer(length);
348
+ for (var i = 0; i < length; i += 1) {
349
+ buf[i] = array[i] & 255;
350
+ }
351
+ return buf;
352
+ }
353
+ __name(fromArrayLike, "fromArrayLike");
354
+ function fromArrayView(arrayView) {
355
+ if (isInstance(arrayView, Uint8Array)) {
356
+ var copy = new Uint8Array(arrayView);
357
+ return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
358
+ }
359
+ return fromArrayLike(arrayView);
360
+ }
361
+ __name(fromArrayView, "fromArrayView");
362
+ function fromArrayBuffer(array, byteOffset, length) {
363
+ if (byteOffset < 0 || array.byteLength < byteOffset) {
364
+ throw new RangeError('"offset" is outside of buffer bounds');
365
+ }
366
+ if (array.byteLength < byteOffset + (length || 0)) {
367
+ throw new RangeError('"length" is outside of buffer bounds');
368
+ }
369
+ var buf;
370
+ if (byteOffset === void 0 && length === void 0) {
371
+ buf = new Uint8Array(array);
372
+ } else if (length === void 0) {
373
+ buf = new Uint8Array(array, byteOffset);
374
+ } else {
375
+ buf = new Uint8Array(array, byteOffset, length);
376
+ }
377
+ Object.setPrototypeOf(buf, Buffer2.prototype);
378
+ return buf;
379
+ }
380
+ __name(fromArrayBuffer, "fromArrayBuffer");
381
+ function fromObject(obj) {
382
+ if (Buffer2.isBuffer(obj)) {
383
+ var len = checked(obj.length) | 0;
384
+ var buf = createBuffer(len);
385
+ if (buf.length === 0) {
386
+ return buf;
387
+ }
388
+ obj.copy(buf, 0, 0, len);
389
+ return buf;
390
+ }
391
+ if (obj.length !== void 0) {
392
+ if (typeof obj.length !== "number" || numberIsNaN(obj.length)) {
393
+ return createBuffer(0);
394
+ }
395
+ return fromArrayLike(obj);
396
+ }
397
+ if (obj.type === "Buffer" && Array.isArray(obj.data)) {
398
+ return fromArrayLike(obj.data);
399
+ }
400
+ }
401
+ __name(fromObject, "fromObject");
402
+ function checked(length) {
403
+ if (length >= K_MAX_LENGTH) {
404
+ throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + K_MAX_LENGTH.toString(16) + " bytes");
405
+ }
406
+ return length | 0;
407
+ }
408
+ __name(checked, "checked");
409
+ function SlowBuffer(length) {
410
+ if (+length != length) {
411
+ length = 0;
412
+ }
413
+ return Buffer2.alloc(+length);
414
+ }
415
+ __name(SlowBuffer, "SlowBuffer");
416
+ Buffer2.isBuffer = /* @__PURE__ */ __name(function isBuffer(b) {
417
+ return b != null && b._isBuffer === true && b !== Buffer2.prototype;
418
+ }, "isBuffer");
419
+ Buffer2.compare = /* @__PURE__ */ __name(function compare(a, b) {
420
+ if (isInstance(a, Uint8Array)) a = Buffer2.from(a, a.offset, a.byteLength);
421
+ if (isInstance(b, Uint8Array)) b = Buffer2.from(b, b.offset, b.byteLength);
422
+ if (!Buffer2.isBuffer(a) || !Buffer2.isBuffer(b)) {
423
+ throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
424
+ }
425
+ if (a === b) return 0;
426
+ var x = a.length;
427
+ var y = b.length;
428
+ for (var i = 0, len = Math.min(x, y); i < len; ++i) {
429
+ if (a[i] !== b[i]) {
430
+ x = a[i];
431
+ y = b[i];
432
+ break;
433
+ }
434
+ }
435
+ if (x < y) return -1;
436
+ if (y < x) return 1;
437
+ return 0;
438
+ }, "compare");
439
+ Buffer2.isEncoding = /* @__PURE__ */ __name(function isEncoding(encoding) {
440
+ switch (String(encoding).toLowerCase()) {
441
+ case "hex":
442
+ case "utf8":
443
+ case "utf-8":
444
+ case "ascii":
445
+ case "latin1":
446
+ case "binary":
447
+ case "base64":
448
+ case "ucs2":
449
+ case "ucs-2":
450
+ case "utf16le":
451
+ case "utf-16le":
452
+ return true;
453
+ default:
454
+ return false;
455
+ }
456
+ }, "isEncoding");
457
+ Buffer2.concat = /* @__PURE__ */ __name(function concat(list, length) {
458
+ if (!Array.isArray(list)) {
459
+ throw new TypeError('"list" argument must be an Array of Buffers');
460
+ }
461
+ if (list.length === 0) {
462
+ return Buffer2.alloc(0);
463
+ }
464
+ var i;
465
+ if (length === void 0) {
466
+ length = 0;
467
+ for (i = 0; i < list.length; ++i) {
468
+ length += list[i].length;
469
+ }
470
+ }
471
+ var buffer = Buffer2.allocUnsafe(length);
472
+ var pos = 0;
473
+ for (i = 0; i < list.length; ++i) {
474
+ var buf = list[i];
475
+ if (isInstance(buf, Uint8Array)) {
476
+ if (pos + buf.length > buffer.length) {
477
+ Buffer2.from(buf).copy(buffer, pos);
478
+ } else {
479
+ Uint8Array.prototype.set.call(buffer, buf, pos);
480
+ }
481
+ } else if (!Buffer2.isBuffer(buf)) {
482
+ throw new TypeError('"list" argument must be an Array of Buffers');
483
+ } else {
484
+ buf.copy(buffer, pos);
485
+ }
486
+ pos += buf.length;
487
+ }
488
+ return buffer;
489
+ }, "concat");
490
+ function byteLength(string, encoding) {
491
+ if (Buffer2.isBuffer(string)) {
492
+ return string.length;
493
+ }
494
+ if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
495
+ return string.byteLength;
496
+ }
497
+ if (typeof string !== "string") {
498
+ throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string);
499
+ }
500
+ var len = string.length;
501
+ var mustMatch = arguments.length > 2 && arguments[2] === true;
502
+ if (!mustMatch && len === 0) return 0;
503
+ var loweredCase = false;
504
+ for (; ; ) {
505
+ switch (encoding) {
506
+ case "ascii":
507
+ case "latin1":
508
+ case "binary":
509
+ return len;
510
+ case "utf8":
511
+ case "utf-8":
512
+ return utf8ToBytes(string).length;
513
+ case "ucs2":
514
+ case "ucs-2":
515
+ case "utf16le":
516
+ case "utf-16le":
517
+ return len * 2;
518
+ case "hex":
519
+ return len >>> 1;
520
+ case "base64":
521
+ return base64ToBytes(string).length;
522
+ default:
523
+ if (loweredCase) {
524
+ return mustMatch ? -1 : utf8ToBytes(string).length;
525
+ }
526
+ encoding = ("" + encoding).toLowerCase();
527
+ loweredCase = true;
528
+ }
529
+ }
530
+ }
531
+ __name(byteLength, "byteLength");
532
+ Buffer2.byteLength = byteLength;
533
+ function slowToString(encoding, start, end) {
534
+ var loweredCase = false;
535
+ if (start === void 0 || start < 0) {
536
+ start = 0;
537
+ }
538
+ if (start > this.length) {
539
+ return "";
540
+ }
541
+ if (end === void 0 || end > this.length) {
542
+ end = this.length;
543
+ }
544
+ if (end <= 0) {
545
+ return "";
546
+ }
547
+ end >>>= 0;
548
+ start >>>= 0;
549
+ if (end <= start) {
550
+ return "";
551
+ }
552
+ if (!encoding) encoding = "utf8";
553
+ while (true) {
554
+ switch (encoding) {
555
+ case "hex":
556
+ return hexSlice(this, start, end);
557
+ case "utf8":
558
+ case "utf-8":
559
+ return utf8Slice(this, start, end);
560
+ case "ascii":
561
+ return asciiSlice(this, start, end);
562
+ case "latin1":
563
+ case "binary":
564
+ return latin1Slice(this, start, end);
565
+ case "base64":
566
+ return base64Slice(this, start, end);
567
+ case "ucs2":
568
+ case "ucs-2":
569
+ case "utf16le":
570
+ case "utf-16le":
571
+ return utf16leSlice(this, start, end);
572
+ default:
573
+ if (loweredCase) throw new TypeError("Unknown encoding: " + encoding);
574
+ encoding = (encoding + "").toLowerCase();
575
+ loweredCase = true;
576
+ }
577
+ }
578
+ }
579
+ __name(slowToString, "slowToString");
580
+ Buffer2.prototype._isBuffer = true;
581
+ function swap(b, n, m) {
582
+ var i = b[n];
583
+ b[n] = b[m];
584
+ b[m] = i;
585
+ }
586
+ __name(swap, "swap");
587
+ Buffer2.prototype.swap16 = /* @__PURE__ */ __name(function swap16() {
588
+ var len = this.length;
589
+ if (len % 2 !== 0) {
590
+ throw new RangeError("Buffer size must be a multiple of 16-bits");
591
+ }
592
+ for (var i = 0; i < len; i += 2) {
593
+ swap(this, i, i + 1);
594
+ }
595
+ return this;
596
+ }, "swap16");
597
+ Buffer2.prototype.swap32 = /* @__PURE__ */ __name(function swap32() {
598
+ var len = this.length;
599
+ if (len % 4 !== 0) {
600
+ throw new RangeError("Buffer size must be a multiple of 32-bits");
601
+ }
602
+ for (var i = 0; i < len; i += 4) {
603
+ swap(this, i, i + 3);
604
+ swap(this, i + 1, i + 2);
605
+ }
606
+ return this;
607
+ }, "swap32");
608
+ Buffer2.prototype.swap64 = /* @__PURE__ */ __name(function swap64() {
609
+ var len = this.length;
610
+ if (len % 8 !== 0) {
611
+ throw new RangeError("Buffer size must be a multiple of 64-bits");
612
+ }
613
+ for (var i = 0; i < len; i += 8) {
614
+ swap(this, i, i + 7);
615
+ swap(this, i + 1, i + 6);
616
+ swap(this, i + 2, i + 5);
617
+ swap(this, i + 3, i + 4);
618
+ }
619
+ return this;
620
+ }, "swap64");
621
+ Buffer2.prototype.toString = /* @__PURE__ */ __name(function toString() {
622
+ var length = this.length;
623
+ if (length === 0) return "";
624
+ if (arguments.length === 0) return utf8Slice(this, 0, length);
625
+ return slowToString.apply(this, arguments);
626
+ }, "toString");
627
+ Buffer2.prototype.toLocaleString = Buffer2.prototype.toString;
628
+ Buffer2.prototype.equals = /* @__PURE__ */ __name(function equals(b) {
629
+ if (!Buffer2.isBuffer(b)) throw new TypeError("Argument must be a Buffer");
630
+ if (this === b) return true;
631
+ return Buffer2.compare(this, b) === 0;
632
+ }, "equals");
633
+ Buffer2.prototype.inspect = /* @__PURE__ */ __name(function inspect() {
634
+ var str = "";
635
+ var max = exports$1.INSPECT_MAX_BYTES;
636
+ str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
637
+ if (this.length > max) str += " ... ";
638
+ return "<Buffer " + str + ">";
639
+ }, "inspect");
640
+ if (customInspectSymbol) {
641
+ Buffer2.prototype[customInspectSymbol] = Buffer2.prototype.inspect;
642
+ }
643
+ Buffer2.prototype.compare = /* @__PURE__ */ __name(function compare(target, start, end, thisStart, thisEnd) {
644
+ if (isInstance(target, Uint8Array)) {
645
+ target = Buffer2.from(target, target.offset, target.byteLength);
646
+ }
647
+ if (!Buffer2.isBuffer(target)) {
648
+ throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target);
649
+ }
650
+ if (start === void 0) {
651
+ start = 0;
652
+ }
653
+ if (end === void 0) {
654
+ end = target ? target.length : 0;
655
+ }
656
+ if (thisStart === void 0) {
657
+ thisStart = 0;
658
+ }
659
+ if (thisEnd === void 0) {
660
+ thisEnd = this.length;
661
+ }
662
+ if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
663
+ throw new RangeError("out of range index");
664
+ }
665
+ if (thisStart >= thisEnd && start >= end) {
666
+ return 0;
667
+ }
668
+ if (thisStart >= thisEnd) {
669
+ return -1;
670
+ }
671
+ if (start >= end) {
672
+ return 1;
673
+ }
674
+ start >>>= 0;
675
+ end >>>= 0;
676
+ thisStart >>>= 0;
677
+ thisEnd >>>= 0;
678
+ if (this === target) return 0;
679
+ var x = thisEnd - thisStart;
680
+ var y = end - start;
681
+ var len = Math.min(x, y);
682
+ var thisCopy = this.slice(thisStart, thisEnd);
683
+ var targetCopy = target.slice(start, end);
684
+ for (var i = 0; i < len; ++i) {
685
+ if (thisCopy[i] !== targetCopy[i]) {
686
+ x = thisCopy[i];
687
+ y = targetCopy[i];
688
+ break;
689
+ }
690
+ }
691
+ if (x < y) return -1;
692
+ if (y < x) return 1;
693
+ return 0;
694
+ }, "compare");
695
+ function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
696
+ if (buffer.length === 0) return -1;
697
+ if (typeof byteOffset === "string") {
698
+ encoding = byteOffset;
699
+ byteOffset = 0;
700
+ } else if (byteOffset > 2147483647) {
701
+ byteOffset = 2147483647;
702
+ } else if (byteOffset < -2147483648) {
703
+ byteOffset = -2147483648;
704
+ }
705
+ byteOffset = +byteOffset;
706
+ if (numberIsNaN(byteOffset)) {
707
+ byteOffset = dir ? 0 : buffer.length - 1;
708
+ }
709
+ if (byteOffset < 0) byteOffset = buffer.length + byteOffset;
710
+ if (byteOffset >= buffer.length) {
711
+ if (dir) return -1;
712
+ else byteOffset = buffer.length - 1;
713
+ } else if (byteOffset < 0) {
714
+ if (dir) byteOffset = 0;
715
+ else return -1;
716
+ }
717
+ if (typeof val === "string") {
718
+ val = Buffer2.from(val, encoding);
719
+ }
720
+ if (Buffer2.isBuffer(val)) {
721
+ if (val.length === 0) {
722
+ return -1;
723
+ }
724
+ return arrayIndexOf(buffer, val, byteOffset, encoding, dir);
725
+ } else if (typeof val === "number") {
726
+ val = val & 255;
727
+ if (typeof Uint8Array.prototype.indexOf === "function") {
728
+ if (dir) {
729
+ return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset);
730
+ } else {
731
+ return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset);
732
+ }
733
+ }
734
+ return arrayIndexOf(buffer, [
735
+ val
736
+ ], byteOffset, encoding, dir);
737
+ }
738
+ throw new TypeError("val must be string, number or Buffer");
739
+ }
740
+ __name(bidirectionalIndexOf, "bidirectionalIndexOf");
741
+ function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
742
+ var indexSize = 1;
743
+ var arrLength = arr.length;
744
+ var valLength = val.length;
745
+ if (encoding !== void 0) {
746
+ encoding = String(encoding).toLowerCase();
747
+ if (encoding === "ucs2" || encoding === "ucs-2" || encoding === "utf16le" || encoding === "utf-16le") {
748
+ if (arr.length < 2 || val.length < 2) {
749
+ return -1;
750
+ }
751
+ indexSize = 2;
752
+ arrLength /= 2;
753
+ valLength /= 2;
754
+ byteOffset /= 2;
755
+ }
756
+ }
757
+ function read(buf, i2) {
758
+ if (indexSize === 1) {
759
+ return buf[i2];
760
+ } else {
761
+ return buf.readUInt16BE(i2 * indexSize);
762
+ }
763
+ }
764
+ __name(read, "read");
765
+ var i;
766
+ if (dir) {
767
+ var foundIndex = -1;
768
+ for (i = byteOffset; i < arrLength; i++) {
769
+ if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
770
+ if (foundIndex === -1) foundIndex = i;
771
+ if (i - foundIndex + 1 === valLength) return foundIndex * indexSize;
772
+ } else {
773
+ if (foundIndex !== -1) i -= i - foundIndex;
774
+ foundIndex = -1;
775
+ }
776
+ }
777
+ } else {
778
+ if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;
779
+ for (i = byteOffset; i >= 0; i--) {
780
+ var found = true;
781
+ for (var j = 0; j < valLength; j++) {
782
+ if (read(arr, i + j) !== read(val, j)) {
783
+ found = false;
784
+ break;
785
+ }
786
+ }
787
+ if (found) return i;
788
+ }
789
+ }
790
+ return -1;
791
+ }
792
+ __name(arrayIndexOf, "arrayIndexOf");
793
+ Buffer2.prototype.includes = /* @__PURE__ */ __name(function includes(val, byteOffset, encoding) {
794
+ return this.indexOf(val, byteOffset, encoding) !== -1;
795
+ }, "includes");
796
+ Buffer2.prototype.indexOf = /* @__PURE__ */ __name(function indexOf(val, byteOffset, encoding) {
797
+ return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
798
+ }, "indexOf");
799
+ Buffer2.prototype.lastIndexOf = /* @__PURE__ */ __name(function lastIndexOf(val, byteOffset, encoding) {
800
+ return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
801
+ }, "lastIndexOf");
802
+ function hexWrite(buf, string, offset, length) {
803
+ offset = Number(offset) || 0;
804
+ var remaining = buf.length - offset;
805
+ if (!length) {
806
+ length = remaining;
807
+ } else {
808
+ length = Number(length);
809
+ if (length > remaining) {
810
+ length = remaining;
811
+ }
812
+ }
813
+ var strLen = string.length;
814
+ if (length > strLen / 2) {
815
+ length = strLen / 2;
816
+ }
817
+ for (var i = 0; i < length; ++i) {
818
+ var parsed = parseInt(string.substr(i * 2, 2), 16);
819
+ if (numberIsNaN(parsed)) return i;
820
+ buf[offset + i] = parsed;
821
+ }
822
+ return i;
823
+ }
824
+ __name(hexWrite, "hexWrite");
825
+ function utf8Write(buf, string, offset, length) {
826
+ return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);
827
+ }
828
+ __name(utf8Write, "utf8Write");
829
+ function asciiWrite(buf, string, offset, length) {
830
+ return blitBuffer(asciiToBytes(string), buf, offset, length);
831
+ }
832
+ __name(asciiWrite, "asciiWrite");
833
+ function base64Write(buf, string, offset, length) {
834
+ return blitBuffer(base64ToBytes(string), buf, offset, length);
835
+ }
836
+ __name(base64Write, "base64Write");
837
+ function ucs2Write(buf, string, offset, length) {
838
+ return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
839
+ }
840
+ __name(ucs2Write, "ucs2Write");
841
+ Buffer2.prototype.write = /* @__PURE__ */ __name(function write(string, offset, length, encoding) {
842
+ if (offset === void 0) {
843
+ encoding = "utf8";
844
+ length = this.length;
845
+ offset = 0;
846
+ } else if (length === void 0 && typeof offset === "string") {
847
+ encoding = offset;
848
+ length = this.length;
849
+ offset = 0;
850
+ } else if (isFinite(offset)) {
851
+ offset = offset >>> 0;
852
+ if (isFinite(length)) {
853
+ length = length >>> 0;
854
+ if (encoding === void 0) encoding = "utf8";
855
+ } else {
856
+ encoding = length;
857
+ length = void 0;
858
+ }
859
+ } else {
860
+ throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
861
+ }
862
+ var remaining = this.length - offset;
863
+ if (length === void 0 || length > remaining) length = remaining;
864
+ if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {
865
+ throw new RangeError("Attempt to write outside buffer bounds");
866
+ }
867
+ if (!encoding) encoding = "utf8";
868
+ var loweredCase = false;
869
+ for (; ; ) {
870
+ switch (encoding) {
871
+ case "hex":
872
+ return hexWrite(this, string, offset, length);
873
+ case "utf8":
874
+ case "utf-8":
875
+ return utf8Write(this, string, offset, length);
876
+ case "ascii":
877
+ case "latin1":
878
+ case "binary":
879
+ return asciiWrite(this, string, offset, length);
880
+ case "base64":
881
+ return base64Write(this, string, offset, length);
882
+ case "ucs2":
883
+ case "ucs-2":
884
+ case "utf16le":
885
+ case "utf-16le":
886
+ return ucs2Write(this, string, offset, length);
887
+ default:
888
+ if (loweredCase) throw new TypeError("Unknown encoding: " + encoding);
889
+ encoding = ("" + encoding).toLowerCase();
890
+ loweredCase = true;
891
+ }
892
+ }
893
+ }, "write");
894
+ Buffer2.prototype.toJSON = /* @__PURE__ */ __name(function toJSON() {
895
+ return {
896
+ type: "Buffer",
897
+ data: Array.prototype.slice.call(this._arr || this, 0)
898
+ };
899
+ }, "toJSON");
900
+ function base64Slice(buf, start, end) {
901
+ if (start === 0 && end === buf.length) {
902
+ return base64.fromByteArray(buf);
903
+ } else {
904
+ return base64.fromByteArray(buf.slice(start, end));
905
+ }
906
+ }
907
+ __name(base64Slice, "base64Slice");
908
+ function utf8Slice(buf, start, end) {
909
+ end = Math.min(buf.length, end);
910
+ var res = [];
911
+ var i = start;
912
+ while (i < end) {
913
+ var firstByte = buf[i];
914
+ var codePoint = null;
915
+ var bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;
916
+ if (i + bytesPerSequence <= end) {
917
+ var secondByte, thirdByte, fourthByte, tempCodePoint;
918
+ switch (bytesPerSequence) {
919
+ case 1:
920
+ if (firstByte < 128) {
921
+ codePoint = firstByte;
922
+ }
923
+ break;
924
+ case 2:
925
+ secondByte = buf[i + 1];
926
+ if ((secondByte & 192) === 128) {
927
+ tempCodePoint = (firstByte & 31) << 6 | secondByte & 63;
928
+ if (tempCodePoint > 127) {
929
+ codePoint = tempCodePoint;
930
+ }
931
+ }
932
+ break;
933
+ case 3:
934
+ secondByte = buf[i + 1];
935
+ thirdByte = buf[i + 2];
936
+ if ((secondByte & 192) === 128 && (thirdByte & 192) === 128) {
937
+ tempCodePoint = (firstByte & 15) << 12 | (secondByte & 63) << 6 | thirdByte & 63;
938
+ if (tempCodePoint > 2047 && (tempCodePoint < 55296 || tempCodePoint > 57343)) {
939
+ codePoint = tempCodePoint;
940
+ }
941
+ }
942
+ break;
943
+ case 4:
944
+ secondByte = buf[i + 1];
945
+ thirdByte = buf[i + 2];
946
+ fourthByte = buf[i + 3];
947
+ if ((secondByte & 192) === 128 && (thirdByte & 192) === 128 && (fourthByte & 192) === 128) {
948
+ tempCodePoint = (firstByte & 15) << 18 | (secondByte & 63) << 12 | (thirdByte & 63) << 6 | fourthByte & 63;
949
+ if (tempCodePoint > 65535 && tempCodePoint < 1114112) {
950
+ codePoint = tempCodePoint;
951
+ }
952
+ }
953
+ }
954
+ }
955
+ if (codePoint === null) {
956
+ codePoint = 65533;
957
+ bytesPerSequence = 1;
958
+ } else if (codePoint > 65535) {
959
+ codePoint -= 65536;
960
+ res.push(codePoint >>> 10 & 1023 | 55296);
961
+ codePoint = 56320 | codePoint & 1023;
962
+ }
963
+ res.push(codePoint);
964
+ i += bytesPerSequence;
965
+ }
966
+ return decodeCodePointsArray(res);
967
+ }
968
+ __name(utf8Slice, "utf8Slice");
969
+ var MAX_ARGUMENTS_LENGTH = 4096;
970
+ function decodeCodePointsArray(codePoints) {
971
+ var len = codePoints.length;
972
+ if (len <= MAX_ARGUMENTS_LENGTH) {
973
+ return String.fromCharCode.apply(String, codePoints);
974
+ }
975
+ var res = "";
976
+ var i = 0;
977
+ while (i < len) {
978
+ res += String.fromCharCode.apply(String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH));
979
+ }
980
+ return res;
981
+ }
982
+ __name(decodeCodePointsArray, "decodeCodePointsArray");
983
+ function asciiSlice(buf, start, end) {
984
+ var ret = "";
985
+ end = Math.min(buf.length, end);
986
+ for (var i = start; i < end; ++i) {
987
+ ret += String.fromCharCode(buf[i] & 127);
988
+ }
989
+ return ret;
990
+ }
991
+ __name(asciiSlice, "asciiSlice");
992
+ function latin1Slice(buf, start, end) {
993
+ var ret = "";
994
+ end = Math.min(buf.length, end);
995
+ for (var i = start; i < end; ++i) {
996
+ ret += String.fromCharCode(buf[i]);
997
+ }
998
+ return ret;
999
+ }
1000
+ __name(latin1Slice, "latin1Slice");
1001
+ function hexSlice(buf, start, end) {
1002
+ var len = buf.length;
1003
+ if (!start || start < 0) start = 0;
1004
+ if (!end || end < 0 || end > len) end = len;
1005
+ var out = "";
1006
+ for (var i = start; i < end; ++i) {
1007
+ out += hexSliceLookupTable[buf[i]];
1008
+ }
1009
+ return out;
1010
+ }
1011
+ __name(hexSlice, "hexSlice");
1012
+ function utf16leSlice(buf, start, end) {
1013
+ var bytes = buf.slice(start, end);
1014
+ var res = "";
1015
+ for (var i = 0; i < bytes.length - 1; i += 2) {
1016
+ res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);
1017
+ }
1018
+ return res;
1019
+ }
1020
+ __name(utf16leSlice, "utf16leSlice");
1021
+ Buffer2.prototype.slice = /* @__PURE__ */ __name(function slice(start, end) {
1022
+ var len = this.length;
1023
+ start = ~~start;
1024
+ end = end === void 0 ? len : ~~end;
1025
+ if (start < 0) {
1026
+ start += len;
1027
+ if (start < 0) start = 0;
1028
+ } else if (start > len) {
1029
+ start = len;
1030
+ }
1031
+ if (end < 0) {
1032
+ end += len;
1033
+ if (end < 0) end = 0;
1034
+ } else if (end > len) {
1035
+ end = len;
1036
+ }
1037
+ if (end < start) end = start;
1038
+ var newBuf = this.subarray(start, end);
1039
+ Object.setPrototypeOf(newBuf, Buffer2.prototype);
1040
+ return newBuf;
1041
+ }, "slice");
1042
+ function checkOffset(offset, ext, length) {
1043
+ if (offset % 1 !== 0 || offset < 0) throw new RangeError("offset is not uint");
1044
+ if (offset + ext > length) throw new RangeError("Trying to access beyond buffer length");
1045
+ }
1046
+ __name(checkOffset, "checkOffset");
1047
+ Buffer2.prototype.readUintLE = Buffer2.prototype.readUIntLE = /* @__PURE__ */ __name(function readUIntLE(offset, byteLength2, noAssert) {
1048
+ offset = offset >>> 0;
1049
+ byteLength2 = byteLength2 >>> 0;
1050
+ if (!noAssert) checkOffset(offset, byteLength2, this.length);
1051
+ var val = this[offset];
1052
+ var mul = 1;
1053
+ var i = 0;
1054
+ while (++i < byteLength2 && (mul *= 256)) {
1055
+ val += this[offset + i] * mul;
1056
+ }
1057
+ return val;
1058
+ }, "readUIntLE");
1059
+ Buffer2.prototype.readUintBE = Buffer2.prototype.readUIntBE = /* @__PURE__ */ __name(function readUIntBE(offset, byteLength2, noAssert) {
1060
+ offset = offset >>> 0;
1061
+ byteLength2 = byteLength2 >>> 0;
1062
+ if (!noAssert) {
1063
+ checkOffset(offset, byteLength2, this.length);
1064
+ }
1065
+ var val = this[offset + --byteLength2];
1066
+ var mul = 1;
1067
+ while (byteLength2 > 0 && (mul *= 256)) {
1068
+ val += this[offset + --byteLength2] * mul;
1069
+ }
1070
+ return val;
1071
+ }, "readUIntBE");
1072
+ Buffer2.prototype.readUint8 = Buffer2.prototype.readUInt8 = /* @__PURE__ */ __name(function readUInt8(offset, noAssert) {
1073
+ offset = offset >>> 0;
1074
+ if (!noAssert) checkOffset(offset, 1, this.length);
1075
+ return this[offset];
1076
+ }, "readUInt8");
1077
+ Buffer2.prototype.readUint16LE = Buffer2.prototype.readUInt16LE = /* @__PURE__ */ __name(function readUInt16LE(offset, noAssert) {
1078
+ offset = offset >>> 0;
1079
+ if (!noAssert) checkOffset(offset, 2, this.length);
1080
+ return this[offset] | this[offset + 1] << 8;
1081
+ }, "readUInt16LE");
1082
+ Buffer2.prototype.readUint16BE = Buffer2.prototype.readUInt16BE = /* @__PURE__ */ __name(function readUInt16BE(offset, noAssert) {
1083
+ offset = offset >>> 0;
1084
+ if (!noAssert) checkOffset(offset, 2, this.length);
1085
+ return this[offset] << 8 | this[offset + 1];
1086
+ }, "readUInt16BE");
1087
+ Buffer2.prototype.readUint32LE = Buffer2.prototype.readUInt32LE = /* @__PURE__ */ __name(function readUInt32LE(offset, noAssert) {
1088
+ offset = offset >>> 0;
1089
+ if (!noAssert) checkOffset(offset, 4, this.length);
1090
+ return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;
1091
+ }, "readUInt32LE");
1092
+ Buffer2.prototype.readUint32BE = Buffer2.prototype.readUInt32BE = /* @__PURE__ */ __name(function readUInt32BE(offset, noAssert) {
1093
+ offset = offset >>> 0;
1094
+ if (!noAssert) checkOffset(offset, 4, this.length);
1095
+ return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
1096
+ }, "readUInt32BE");
1097
+ Buffer2.prototype.readIntLE = /* @__PURE__ */ __name(function readIntLE(offset, byteLength2, noAssert) {
1098
+ offset = offset >>> 0;
1099
+ byteLength2 = byteLength2 >>> 0;
1100
+ if (!noAssert) checkOffset(offset, byteLength2, this.length);
1101
+ var val = this[offset];
1102
+ var mul = 1;
1103
+ var i = 0;
1104
+ while (++i < byteLength2 && (mul *= 256)) {
1105
+ val += this[offset + i] * mul;
1106
+ }
1107
+ mul *= 128;
1108
+ if (val >= mul) val -= Math.pow(2, 8 * byteLength2);
1109
+ return val;
1110
+ }, "readIntLE");
1111
+ Buffer2.prototype.readIntBE = /* @__PURE__ */ __name(function readIntBE(offset, byteLength2, noAssert) {
1112
+ offset = offset >>> 0;
1113
+ byteLength2 = byteLength2 >>> 0;
1114
+ if (!noAssert) checkOffset(offset, byteLength2, this.length);
1115
+ var i = byteLength2;
1116
+ var mul = 1;
1117
+ var val = this[offset + --i];
1118
+ while (i > 0 && (mul *= 256)) {
1119
+ val += this[offset + --i] * mul;
1120
+ }
1121
+ mul *= 128;
1122
+ if (val >= mul) val -= Math.pow(2, 8 * byteLength2);
1123
+ return val;
1124
+ }, "readIntBE");
1125
+ Buffer2.prototype.readInt8 = /* @__PURE__ */ __name(function readInt8(offset, noAssert) {
1126
+ offset = offset >>> 0;
1127
+ if (!noAssert) checkOffset(offset, 1, this.length);
1128
+ if (!(this[offset] & 128)) return this[offset];
1129
+ return (255 - this[offset] + 1) * -1;
1130
+ }, "readInt8");
1131
+ Buffer2.prototype.readInt16LE = /* @__PURE__ */ __name(function readInt16LE(offset, noAssert) {
1132
+ offset = offset >>> 0;
1133
+ if (!noAssert) checkOffset(offset, 2, this.length);
1134
+ var val = this[offset] | this[offset + 1] << 8;
1135
+ return val & 32768 ? val | 4294901760 : val;
1136
+ }, "readInt16LE");
1137
+ Buffer2.prototype.readInt16BE = /* @__PURE__ */ __name(function readInt16BE(offset, noAssert) {
1138
+ offset = offset >>> 0;
1139
+ if (!noAssert) checkOffset(offset, 2, this.length);
1140
+ var val = this[offset + 1] | this[offset] << 8;
1141
+ return val & 32768 ? val | 4294901760 : val;
1142
+ }, "readInt16BE");
1143
+ Buffer2.prototype.readInt32LE = /* @__PURE__ */ __name(function readInt32LE(offset, noAssert) {
1144
+ offset = offset >>> 0;
1145
+ if (!noAssert) checkOffset(offset, 4, this.length);
1146
+ return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
1147
+ }, "readInt32LE");
1148
+ Buffer2.prototype.readInt32BE = /* @__PURE__ */ __name(function readInt32BE(offset, noAssert) {
1149
+ offset = offset >>> 0;
1150
+ if (!noAssert) checkOffset(offset, 4, this.length);
1151
+ return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
1152
+ }, "readInt32BE");
1153
+ Buffer2.prototype.readFloatLE = /* @__PURE__ */ __name(function readFloatLE(offset, noAssert) {
1154
+ offset = offset >>> 0;
1155
+ if (!noAssert) checkOffset(offset, 4, this.length);
1156
+ return ieee754.read(this, offset, true, 23, 4);
1157
+ }, "readFloatLE");
1158
+ Buffer2.prototype.readFloatBE = /* @__PURE__ */ __name(function readFloatBE(offset, noAssert) {
1159
+ offset = offset >>> 0;
1160
+ if (!noAssert) checkOffset(offset, 4, this.length);
1161
+ return ieee754.read(this, offset, false, 23, 4);
1162
+ }, "readFloatBE");
1163
+ Buffer2.prototype.readDoubleLE = /* @__PURE__ */ __name(function readDoubleLE(offset, noAssert) {
1164
+ offset = offset >>> 0;
1165
+ if (!noAssert) checkOffset(offset, 8, this.length);
1166
+ return ieee754.read(this, offset, true, 52, 8);
1167
+ }, "readDoubleLE");
1168
+ Buffer2.prototype.readDoubleBE = /* @__PURE__ */ __name(function readDoubleBE(offset, noAssert) {
1169
+ offset = offset >>> 0;
1170
+ if (!noAssert) checkOffset(offset, 8, this.length);
1171
+ return ieee754.read(this, offset, false, 52, 8);
1172
+ }, "readDoubleBE");
1173
+ function checkInt(buf, value, offset, ext, max, min) {
1174
+ if (!Buffer2.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance');
1175
+ if (value > max || value < min) throw new RangeError('"value" argument is out of bounds');
1176
+ if (offset + ext > buf.length) throw new RangeError("Index out of range");
1177
+ }
1178
+ __name(checkInt, "checkInt");
1179
+ Buffer2.prototype.writeUintLE = Buffer2.prototype.writeUIntLE = /* @__PURE__ */ __name(function writeUIntLE(value, offset, byteLength2, noAssert) {
1180
+ value = +value;
1181
+ offset = offset >>> 0;
1182
+ byteLength2 = byteLength2 >>> 0;
1183
+ if (!noAssert) {
1184
+ var maxBytes = Math.pow(2, 8 * byteLength2) - 1;
1185
+ checkInt(this, value, offset, byteLength2, maxBytes, 0);
1186
+ }
1187
+ var mul = 1;
1188
+ var i = 0;
1189
+ this[offset] = value & 255;
1190
+ while (++i < byteLength2 && (mul *= 256)) {
1191
+ this[offset + i] = value / mul & 255;
1192
+ }
1193
+ return offset + byteLength2;
1194
+ }, "writeUIntLE");
1195
+ Buffer2.prototype.writeUintBE = Buffer2.prototype.writeUIntBE = /* @__PURE__ */ __name(function writeUIntBE(value, offset, byteLength2, noAssert) {
1196
+ value = +value;
1197
+ offset = offset >>> 0;
1198
+ byteLength2 = byteLength2 >>> 0;
1199
+ if (!noAssert) {
1200
+ var maxBytes = Math.pow(2, 8 * byteLength2) - 1;
1201
+ checkInt(this, value, offset, byteLength2, maxBytes, 0);
1202
+ }
1203
+ var i = byteLength2 - 1;
1204
+ var mul = 1;
1205
+ this[offset + i] = value & 255;
1206
+ while (--i >= 0 && (mul *= 256)) {
1207
+ this[offset + i] = value / mul & 255;
1208
+ }
1209
+ return offset + byteLength2;
1210
+ }, "writeUIntBE");
1211
+ Buffer2.prototype.writeUint8 = Buffer2.prototype.writeUInt8 = /* @__PURE__ */ __name(function writeUInt8(value, offset, noAssert) {
1212
+ value = +value;
1213
+ offset = offset >>> 0;
1214
+ if (!noAssert) checkInt(this, value, offset, 1, 255, 0);
1215
+ this[offset] = value & 255;
1216
+ return offset + 1;
1217
+ }, "writeUInt8");
1218
+ Buffer2.prototype.writeUint16LE = Buffer2.prototype.writeUInt16LE = /* @__PURE__ */ __name(function writeUInt16LE(value, offset, noAssert) {
1219
+ value = +value;
1220
+ offset = offset >>> 0;
1221
+ if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
1222
+ this[offset] = value & 255;
1223
+ this[offset + 1] = value >>> 8;
1224
+ return offset + 2;
1225
+ }, "writeUInt16LE");
1226
+ Buffer2.prototype.writeUint16BE = Buffer2.prototype.writeUInt16BE = /* @__PURE__ */ __name(function writeUInt16BE(value, offset, noAssert) {
1227
+ value = +value;
1228
+ offset = offset >>> 0;
1229
+ if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
1230
+ this[offset] = value >>> 8;
1231
+ this[offset + 1] = value & 255;
1232
+ return offset + 2;
1233
+ }, "writeUInt16BE");
1234
+ Buffer2.prototype.writeUint32LE = Buffer2.prototype.writeUInt32LE = /* @__PURE__ */ __name(function writeUInt32LE(value, offset, noAssert) {
1235
+ value = +value;
1236
+ offset = offset >>> 0;
1237
+ if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
1238
+ this[offset + 3] = value >>> 24;
1239
+ this[offset + 2] = value >>> 16;
1240
+ this[offset + 1] = value >>> 8;
1241
+ this[offset] = value & 255;
1242
+ return offset + 4;
1243
+ }, "writeUInt32LE");
1244
+ Buffer2.prototype.writeUint32BE = Buffer2.prototype.writeUInt32BE = /* @__PURE__ */ __name(function writeUInt32BE(value, offset, noAssert) {
1245
+ value = +value;
1246
+ offset = offset >>> 0;
1247
+ if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
1248
+ this[offset] = value >>> 24;
1249
+ this[offset + 1] = value >>> 16;
1250
+ this[offset + 2] = value >>> 8;
1251
+ this[offset + 3] = value & 255;
1252
+ return offset + 4;
1253
+ }, "writeUInt32BE");
1254
+ Buffer2.prototype.writeIntLE = /* @__PURE__ */ __name(function writeIntLE(value, offset, byteLength2, noAssert) {
1255
+ value = +value;
1256
+ offset = offset >>> 0;
1257
+ if (!noAssert) {
1258
+ var limit = Math.pow(2, 8 * byteLength2 - 1);
1259
+ checkInt(this, value, offset, byteLength2, limit - 1, -limit);
1260
+ }
1261
+ var i = 0;
1262
+ var mul = 1;
1263
+ var sub = 0;
1264
+ this[offset] = value & 255;
1265
+ while (++i < byteLength2 && (mul *= 256)) {
1266
+ if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
1267
+ sub = 1;
1268
+ }
1269
+ this[offset + i] = (value / mul >> 0) - sub & 255;
1270
+ }
1271
+ return offset + byteLength2;
1272
+ }, "writeIntLE");
1273
+ Buffer2.prototype.writeIntBE = /* @__PURE__ */ __name(function writeIntBE(value, offset, byteLength2, noAssert) {
1274
+ value = +value;
1275
+ offset = offset >>> 0;
1276
+ if (!noAssert) {
1277
+ var limit = Math.pow(2, 8 * byteLength2 - 1);
1278
+ checkInt(this, value, offset, byteLength2, limit - 1, -limit);
1279
+ }
1280
+ var i = byteLength2 - 1;
1281
+ var mul = 1;
1282
+ var sub = 0;
1283
+ this[offset + i] = value & 255;
1284
+ while (--i >= 0 && (mul *= 256)) {
1285
+ if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
1286
+ sub = 1;
1287
+ }
1288
+ this[offset + i] = (value / mul >> 0) - sub & 255;
1289
+ }
1290
+ return offset + byteLength2;
1291
+ }, "writeIntBE");
1292
+ Buffer2.prototype.writeInt8 = /* @__PURE__ */ __name(function writeInt8(value, offset, noAssert) {
1293
+ value = +value;
1294
+ offset = offset >>> 0;
1295
+ if (!noAssert) checkInt(this, value, offset, 1, 127, -128);
1296
+ if (value < 0) value = 255 + value + 1;
1297
+ this[offset] = value & 255;
1298
+ return offset + 1;
1299
+ }, "writeInt8");
1300
+ Buffer2.prototype.writeInt16LE = /* @__PURE__ */ __name(function writeInt16LE(value, offset, noAssert) {
1301
+ value = +value;
1302
+ offset = offset >>> 0;
1303
+ if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);
1304
+ this[offset] = value & 255;
1305
+ this[offset + 1] = value >>> 8;
1306
+ return offset + 2;
1307
+ }, "writeInt16LE");
1308
+ Buffer2.prototype.writeInt16BE = /* @__PURE__ */ __name(function writeInt16BE(value, offset, noAssert) {
1309
+ value = +value;
1310
+ offset = offset >>> 0;
1311
+ if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);
1312
+ this[offset] = value >>> 8;
1313
+ this[offset + 1] = value & 255;
1314
+ return offset + 2;
1315
+ }, "writeInt16BE");
1316
+ Buffer2.prototype.writeInt32LE = /* @__PURE__ */ __name(function writeInt32LE(value, offset, noAssert) {
1317
+ value = +value;
1318
+ offset = offset >>> 0;
1319
+ if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);
1320
+ this[offset] = value & 255;
1321
+ this[offset + 1] = value >>> 8;
1322
+ this[offset + 2] = value >>> 16;
1323
+ this[offset + 3] = value >>> 24;
1324
+ return offset + 4;
1325
+ }, "writeInt32LE");
1326
+ Buffer2.prototype.writeInt32BE = /* @__PURE__ */ __name(function writeInt32BE(value, offset, noAssert) {
1327
+ value = +value;
1328
+ offset = offset >>> 0;
1329
+ if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);
1330
+ if (value < 0) value = 4294967295 + value + 1;
1331
+ this[offset] = value >>> 24;
1332
+ this[offset + 1] = value >>> 16;
1333
+ this[offset + 2] = value >>> 8;
1334
+ this[offset + 3] = value & 255;
1335
+ return offset + 4;
1336
+ }, "writeInt32BE");
1337
+ function checkIEEE754(buf, value, offset, ext, max, min) {
1338
+ if (offset + ext > buf.length) throw new RangeError("Index out of range");
1339
+ if (offset < 0) throw new RangeError("Index out of range");
1340
+ }
1341
+ __name(checkIEEE754, "checkIEEE754");
1342
+ function writeFloat(buf, value, offset, littleEndian, noAssert) {
1343
+ value = +value;
1344
+ offset = offset >>> 0;
1345
+ if (!noAssert) {
1346
+ checkIEEE754(buf, value, offset, 4);
1347
+ }
1348
+ ieee754.write(buf, value, offset, littleEndian, 23, 4);
1349
+ return offset + 4;
1350
+ }
1351
+ __name(writeFloat, "writeFloat");
1352
+ Buffer2.prototype.writeFloatLE = /* @__PURE__ */ __name(function writeFloatLE(value, offset, noAssert) {
1353
+ return writeFloat(this, value, offset, true, noAssert);
1354
+ }, "writeFloatLE");
1355
+ Buffer2.prototype.writeFloatBE = /* @__PURE__ */ __name(function writeFloatBE(value, offset, noAssert) {
1356
+ return writeFloat(this, value, offset, false, noAssert);
1357
+ }, "writeFloatBE");
1358
+ function writeDouble(buf, value, offset, littleEndian, noAssert) {
1359
+ value = +value;
1360
+ offset = offset >>> 0;
1361
+ if (!noAssert) {
1362
+ checkIEEE754(buf, value, offset, 8);
1363
+ }
1364
+ ieee754.write(buf, value, offset, littleEndian, 52, 8);
1365
+ return offset + 8;
1366
+ }
1367
+ __name(writeDouble, "writeDouble");
1368
+ Buffer2.prototype.writeDoubleLE = /* @__PURE__ */ __name(function writeDoubleLE(value, offset, noAssert) {
1369
+ return writeDouble(this, value, offset, true, noAssert);
1370
+ }, "writeDoubleLE");
1371
+ Buffer2.prototype.writeDoubleBE = /* @__PURE__ */ __name(function writeDoubleBE(value, offset, noAssert) {
1372
+ return writeDouble(this, value, offset, false, noAssert);
1373
+ }, "writeDoubleBE");
1374
+ Buffer2.prototype.copy = /* @__PURE__ */ __name(function copy(target, targetStart, start, end) {
1375
+ if (!Buffer2.isBuffer(target)) throw new TypeError("argument should be a Buffer");
1376
+ if (!start) start = 0;
1377
+ if (!end && end !== 0) end = this.length;
1378
+ if (targetStart >= target.length) targetStart = target.length;
1379
+ if (!targetStart) targetStart = 0;
1380
+ if (end > 0 && end < start) end = start;
1381
+ if (end === start) return 0;
1382
+ if (target.length === 0 || this.length === 0) return 0;
1383
+ if (targetStart < 0) {
1384
+ throw new RangeError("targetStart out of bounds");
1385
+ }
1386
+ if (start < 0 || start >= this.length) throw new RangeError("Index out of range");
1387
+ if (end < 0) throw new RangeError("sourceEnd out of bounds");
1388
+ if (end > this.length) end = this.length;
1389
+ if (target.length - targetStart < end - start) {
1390
+ end = target.length - targetStart + start;
1391
+ }
1392
+ var len = end - start;
1393
+ if (this === target && typeof Uint8Array.prototype.copyWithin === "function") {
1394
+ this.copyWithin(targetStart, start, end);
1395
+ } else {
1396
+ Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart);
1397
+ }
1398
+ return len;
1399
+ }, "copy");
1400
+ Buffer2.prototype.fill = /* @__PURE__ */ __name(function fill(val, start, end, encoding) {
1401
+ if (typeof val === "string") {
1402
+ if (typeof start === "string") {
1403
+ encoding = start;
1404
+ start = 0;
1405
+ end = this.length;
1406
+ } else if (typeof end === "string") {
1407
+ encoding = end;
1408
+ end = this.length;
1409
+ }
1410
+ if (encoding !== void 0 && typeof encoding !== "string") {
1411
+ throw new TypeError("encoding must be a string");
1412
+ }
1413
+ if (typeof encoding === "string" && !Buffer2.isEncoding(encoding)) {
1414
+ throw new TypeError("Unknown encoding: " + encoding);
1415
+ }
1416
+ if (val.length === 1) {
1417
+ var code = val.charCodeAt(0);
1418
+ if (encoding === "utf8" && code < 128 || encoding === "latin1") {
1419
+ val = code;
1420
+ }
1421
+ }
1422
+ } else if (typeof val === "number") {
1423
+ val = val & 255;
1424
+ } else if (typeof val === "boolean") {
1425
+ val = Number(val);
1426
+ }
1427
+ if (start < 0 || this.length < start || this.length < end) {
1428
+ throw new RangeError("Out of range index");
1429
+ }
1430
+ if (end <= start) {
1431
+ return this;
1432
+ }
1433
+ start = start >>> 0;
1434
+ end = end === void 0 ? this.length : end >>> 0;
1435
+ if (!val) val = 0;
1436
+ var i;
1437
+ if (typeof val === "number") {
1438
+ for (i = start; i < end; ++i) {
1439
+ this[i] = val;
1440
+ }
1441
+ } else {
1442
+ var bytes = Buffer2.isBuffer(val) ? val : Buffer2.from(val, encoding);
1443
+ var len = bytes.length;
1444
+ if (len === 0) {
1445
+ throw new TypeError('The value "' + val + '" is invalid for argument "value"');
1446
+ }
1447
+ for (i = 0; i < end - start; ++i) {
1448
+ this[i + start] = bytes[i % len];
1449
+ }
1450
+ }
1451
+ return this;
1452
+ }, "fill");
1453
+ var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
1454
+ function base64clean(str) {
1455
+ str = str.split("=")[0];
1456
+ str = str.trim().replace(INVALID_BASE64_RE, "");
1457
+ if (str.length < 2) return "";
1458
+ while (str.length % 4 !== 0) {
1459
+ str = str + "=";
1460
+ }
1461
+ return str;
1462
+ }
1463
+ __name(base64clean, "base64clean");
1464
+ function utf8ToBytes(string, units) {
1465
+ units = units || Infinity;
1466
+ var codePoint;
1467
+ var length = string.length;
1468
+ var leadSurrogate = null;
1469
+ var bytes = [];
1470
+ for (var i = 0; i < length; ++i) {
1471
+ codePoint = string.charCodeAt(i);
1472
+ if (codePoint > 55295 && codePoint < 57344) {
1473
+ if (!leadSurrogate) {
1474
+ if (codePoint > 56319) {
1475
+ if ((units -= 3) > -1) bytes.push(239, 191, 189);
1476
+ continue;
1477
+ } else if (i + 1 === length) {
1478
+ if ((units -= 3) > -1) bytes.push(239, 191, 189);
1479
+ continue;
1480
+ }
1481
+ leadSurrogate = codePoint;
1482
+ continue;
1483
+ }
1484
+ if (codePoint < 56320) {
1485
+ if ((units -= 3) > -1) bytes.push(239, 191, 189);
1486
+ leadSurrogate = codePoint;
1487
+ continue;
1488
+ }
1489
+ codePoint = (leadSurrogate - 55296 << 10 | codePoint - 56320) + 65536;
1490
+ } else if (leadSurrogate) {
1491
+ if ((units -= 3) > -1) bytes.push(239, 191, 189);
1492
+ }
1493
+ leadSurrogate = null;
1494
+ if (codePoint < 128) {
1495
+ if ((units -= 1) < 0) break;
1496
+ bytes.push(codePoint);
1497
+ } else if (codePoint < 2048) {
1498
+ if ((units -= 2) < 0) break;
1499
+ bytes.push(codePoint >> 6 | 192, codePoint & 63 | 128);
1500
+ } else if (codePoint < 65536) {
1501
+ if ((units -= 3) < 0) break;
1502
+ bytes.push(codePoint >> 12 | 224, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);
1503
+ } else if (codePoint < 1114112) {
1504
+ if ((units -= 4) < 0) break;
1505
+ bytes.push(codePoint >> 18 | 240, codePoint >> 12 & 63 | 128, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);
1506
+ } else {
1507
+ throw new Error("Invalid code point");
1508
+ }
1509
+ }
1510
+ return bytes;
1511
+ }
1512
+ __name(utf8ToBytes, "utf8ToBytes");
1513
+ function asciiToBytes(str) {
1514
+ var byteArray = [];
1515
+ for (var i = 0; i < str.length; ++i) {
1516
+ byteArray.push(str.charCodeAt(i) & 255);
1517
+ }
1518
+ return byteArray;
1519
+ }
1520
+ __name(asciiToBytes, "asciiToBytes");
1521
+ function utf16leToBytes(str, units) {
1522
+ var c, hi, lo;
1523
+ var byteArray = [];
1524
+ for (var i = 0; i < str.length; ++i) {
1525
+ if ((units -= 2) < 0) break;
1526
+ c = str.charCodeAt(i);
1527
+ hi = c >> 8;
1528
+ lo = c % 256;
1529
+ byteArray.push(lo);
1530
+ byteArray.push(hi);
1531
+ }
1532
+ return byteArray;
1533
+ }
1534
+ __name(utf16leToBytes, "utf16leToBytes");
1535
+ function base64ToBytes(str) {
1536
+ return base64.toByteArray(base64clean(str));
1537
+ }
1538
+ __name(base64ToBytes, "base64ToBytes");
1539
+ function blitBuffer(src, dst, offset, length) {
1540
+ for (var i = 0; i < length; ++i) {
1541
+ if (i + offset >= dst.length || i >= src.length) break;
1542
+ dst[i + offset] = src[i];
1543
+ }
1544
+ return i;
1545
+ }
1546
+ __name(blitBuffer, "blitBuffer");
1547
+ function isInstance(obj, type) {
1548
+ return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;
1549
+ }
1550
+ __name(isInstance, "isInstance");
1551
+ function numberIsNaN(obj) {
1552
+ return obj !== obj;
1553
+ }
1554
+ __name(numberIsNaN, "numberIsNaN");
1555
+ var hexSliceLookupTable = (function() {
1556
+ var alphabet = "0123456789abcdef";
1557
+ var table = new Array(256);
1558
+ for (var i = 0; i < 16; ++i) {
1559
+ var i16 = i * 16;
1560
+ for (var j = 0; j < 16; ++j) {
1561
+ table[i16 + j] = alphabet[i] + alphabet[j];
1562
+ }
1563
+ }
1564
+ return table;
1565
+ })();
1566
+ }
1567
+ });
7
1568
 
8
1569
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/changes.js
9
1570
  var __\u03A9Pick = [
@@ -923,6 +2484,9 @@ isDecoratorContext.__type = [
923
2484
  "isDecoratorContext",
924
2485
  'P"o!"2"Pu#2$!/%'
925
2486
  ];
2487
+
2488
+ // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/core.js
2489
+ var import_buffer = __toESM(require_buffer(), 1);
926
2490
  var __\u03A9ArrayBufferLike = [
927
2491
  () => __\u03A9ArrayBufferTypes,
928
2492
  () => __\u03A9ArrayBufferTypes,
@@ -983,7 +2547,7 @@ function nodeBufferToTypedArray(buf, type) {
983
2547
  }
984
2548
  __name(nodeBufferToTypedArray, "nodeBufferToTypedArray");
985
2549
  nodeBufferToTypedArray.__type = [
986
- () => Buffer,
2550
+ () => import_buffer.Buffer,
987
2551
  "buf",
988
2552
  () => __\u03A9TypedArrayClassType,
989
2553
  "type",
@@ -1009,7 +2573,7 @@ function base64ToTypedArray(base64, type) {
1009
2573
  if ("function" === typeof atob) {
1010
2574
  return new type(base64ToUint8ArrayAtoB(base64).buffer);
1011
2575
  }
1012
- return nodeBufferToTypedArray(Buffer.from(base64, "base64"), type);
2576
+ return nodeBufferToTypedArray(import_buffer.Buffer.from(base64, "base64"), type);
1013
2577
  }
1014
2578
  __name(base64ToTypedArray, "base64ToTypedArray");
1015
2579
  base64ToTypedArray.__type = [
@@ -1023,7 +2587,7 @@ function base64ToArrayBuffer(base64) {
1023
2587
  if ("function" === typeof atob) {
1024
2588
  return base64ToUint8ArrayAtoB(base64).buffer;
1025
2589
  }
1026
- return nodeBufferToArrayBuffer(Buffer.from(base64, "base64"));
2590
+ return nodeBufferToArrayBuffer(import_buffer.Buffer.from(base64, "base64"));
1027
2591
  }
1028
2592
  __name(base64ToArrayBuffer, "base64ToArrayBuffer");
1029
2593
  base64ToArrayBuffer.__type = [
@@ -1042,19 +2606,19 @@ nodeBufferToArrayBuffer.__type = [
1042
2606
  'PPW_J2!_/"'
1043
2607
  ];
1044
2608
  function typedArrayToBuffer(typedArray) {
1045
- if (typedArray instanceof Buffer) return typedArray;
1046
- return Buffer.from(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);
2609
+ if (typedArray instanceof import_buffer.Buffer) return typedArray;
2610
+ return import_buffer.Buffer.from(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);
1047
2611
  }
1048
2612
  __name(typedArrayToBuffer, "typedArrayToBuffer");
1049
2613
  typedArrayToBuffer.__type = [
1050
2614
  () => __\u03A9TypedArray,
1051
2615
  "typedArray",
1052
- () => Buffer,
2616
+ () => import_buffer.Buffer,
1053
2617
  "typedArrayToBuffer",
1054
2618
  'Pn!2"P7#/$'
1055
2619
  ];
1056
2620
  function arrayBufferToBase64(arrayBuffer) {
1057
- return Buffer.from(arrayBuffer).toString("base64");
2621
+ return import_buffer.Buffer.from(arrayBuffer).toString("base64");
1058
2622
  }
1059
2623
  __name(arrayBufferToBase64, "arrayBufferToBase64");
1060
2624
  arrayBufferToBase64.__type = [
@@ -1073,7 +2637,7 @@ typedArrayToBase64.__type = [
1073
2637
  'Pn!2"&/#'
1074
2638
  ];
1075
2639
  function arrayBufferFrom(data, encoding) {
1076
- return nodeBufferToArrayBuffer(Buffer.from(data, encoding));
2640
+ return nodeBufferToArrayBuffer(import_buffer.Buffer.from(data, encoding));
1077
2641
  }
1078
2642
  __name(arrayBufferFrom, "arrayBufferFrom");
1079
2643
  arrayBufferFrom.__type = [
@@ -1083,7 +2647,7 @@ arrayBufferFrom.__type = [
1083
2647
  'P&2!&2"8_/#'
1084
2648
  ];
1085
2649
  function arrayBufferTo(arrayBuffer, encoding) {
1086
- return Buffer.from(arrayBuffer).toString(encoding);
2650
+ return import_buffer.Buffer.from(arrayBuffer).toString(encoding);
1087
2651
  }
1088
2652
  __name(arrayBufferTo, "arrayBufferTo");
1089
2653
  arrayBufferTo.__type = [
@@ -4458,6 +6022,67 @@ findCommonLiteral.__type = [
4458
6022
  "findCommonLiteral",
4459
6023
  'PP"7!F2"P&-J/#'
4460
6024
  ];
6025
+
6026
+ // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-browser/rng.js
6027
+ var getRandomValues;
6028
+ var rnds8 = new Uint8Array(16);
6029
+ function rng() {
6030
+ if (!getRandomValues) {
6031
+ getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== "undefined" && typeof msCrypto.getRandomValues === "function" && msCrypto.getRandomValues.bind(msCrypto);
6032
+ if (!getRandomValues) {
6033
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
6034
+ }
6035
+ }
6036
+ return getRandomValues(rnds8);
6037
+ }
6038
+ __name(rng, "rng");
6039
+
6040
+ // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-browser/regex.js
6041
+ var regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
6042
+
6043
+ // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-browser/validate.js
6044
+ function validate(uuid2) {
6045
+ return typeof uuid2 === "string" && regex_default.test(uuid2);
6046
+ }
6047
+ __name(validate, "validate");
6048
+ var validate_default = validate;
6049
+
6050
+ // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-browser/stringify.js
6051
+ var byteToHex = [];
6052
+ for (i = 0; i < 256; ++i) {
6053
+ byteToHex.push((i + 256).toString(16).substr(1));
6054
+ }
6055
+ var i;
6056
+ function stringify(arr) {
6057
+ var offset = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
6058
+ var uuid2 = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
6059
+ if (!validate_default(uuid2)) {
6060
+ throw TypeError("Stringified UUID is invalid");
6061
+ }
6062
+ return uuid2;
6063
+ }
6064
+ __name(stringify, "stringify");
6065
+ var stringify_default = stringify;
6066
+
6067
+ // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-browser/v4.js
6068
+ function v4(options, buf, offset) {
6069
+ options = options || {};
6070
+ var rnds = options.random || (options.rng || rng)();
6071
+ rnds[6] = rnds[6] & 15 | 64;
6072
+ rnds[8] = rnds[8] & 63 | 128;
6073
+ if (buf) {
6074
+ offset = offset || 0;
6075
+ for (var i = 0; i < 16; ++i) {
6076
+ buf[offset + i] = rnds[i];
6077
+ }
6078
+ return buf;
6079
+ }
6080
+ return stringify_default(rnds);
6081
+ }
6082
+ __name(v4, "v4");
6083
+ var v4_default = v4;
6084
+
6085
+ // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/utils.js
4461
6086
  var NoTypeReceived = class extends Error {
4462
6087
  static {
4463
6088
  __name(this, "NoTypeReceived");
@@ -4475,7 +6100,7 @@ NoTypeReceived.__type = [
4475
6100
  'P7!P&2">#"0$5w%'
4476
6101
  ];
4477
6102
  function uuid() {
4478
- return v4();
6103
+ return v4_default();
4479
6104
  }
4480
6105
  __name(uuid, "uuid");
4481
6106
  uuid.__type = [
@@ -4483,7 +6108,7 @@ uuid.__type = [
4483
6108
  "P&/!"
4484
6109
  ];
4485
6110
  function writeUuid(buffer, offset = 0) {
4486
- v4(void 0, buffer, offset);
6111
+ v4_default(void 0, buffer, offset);
4487
6112
  return buffer;
4488
6113
  }
4489
6114
  __name(writeUuid, "writeUuid");
@@ -4495,7 +6120,7 @@ writeUuid.__type = [
4495
6120
  `PW2!'2">#W/$`
4496
6121
  ];
4497
6122
  function stringifyUuid(buffer, offset = 0) {
4498
- return stringify(buffer, offset);
6123
+ return stringify_default(buffer, offset);
4499
6124
  }
4500
6125
  __name(stringifyUuid, "stringifyUuid");
4501
6126
  stringifyUuid.__type = [
@@ -11640,14 +13265,14 @@ ValidationError = ValidationError_1 = __decorate([
11640
13265
  Object
11641
13266
  ])
11642
13267
  ], ValidationError);
11643
- function validate(data, type = validate.\u03A9?.[0]) {
11644
- validate.\u03A9 = void 0;
13268
+ function validate2(data, type = validate2.\u03A9?.[0]) {
13269
+ validate2.\u03A9 = void 0;
11645
13270
  const errors = [];
11646
13271
  is(data, void 0, errors, type);
11647
13272
  return errors;
11648
13273
  }
11649
- __name(validate, "validate");
11650
- validate.__type = [
13274
+ __name(validate2, "validate");
13275
+ validate2.__type = [
11651
13276
  "data",
11652
13277
  () => __\u03A9ReceiveType,
11653
13278
  "type",
@@ -11686,7 +13311,7 @@ validateFunction.__type = [
11686
13311
  ];
11687
13312
  function validates(data, type = validates.\u03A9?.[0]) {
11688
13313
  validates.\u03A9 = void 0;
11689
- const errors = validate(data, type);
13314
+ const errors = validate2(data, type);
11690
13315
  return errors.length === 0;
11691
13316
  }
11692
13317
  __name(validates, "validates");
@@ -15160,7 +16785,7 @@ var Serializer = class {
15160
16785
  if (optionParameter) {
15161
16786
  const option = typeToObject(args[1]);
15162
16787
  if (option === void 0 && optionParameter.optional) ; else {
15163
- const errors = validate(option, optionParameter.type);
16788
+ const errors = validate2(option, optionParameter.type);
15164
16789
  if (errors.length) {
15165
16790
  throw new Error(`Invalid option value given to validator function ${String(args[0].name)}, expected ${stringifyType(optionParameter)}`);
15166
16791
  }
@@ -16717,5 +18342,18 @@ var __\u03A9AutoId = [
16717
18342
  "AutoId",
16718
18343
  `P'n!n"n#Kw$y`
16719
18344
  ];
18345
+ /*! Bundled license information:
18346
+
18347
+ ieee754/index.js:
18348
+ (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
18349
+
18350
+ buffer/index.js:
18351
+ (*!
18352
+ * The buffer module from node.js, for the browser.
18353
+ *
18354
+ * @author Feross Aboukhadijeh <https://feross.org>
18355
+ * @license MIT
18356
+ *)
18357
+ */
16720
18358
 
16721
- export { AnnotationDefinition, AtomicChangeInstance, CartesianProduct, Changes, ContainerAccessor, EMAIL_REGEX, EmptySerializer, EntityData, ItemChanges, JitStack, NamingStrategy, NoTypeReceived, PackStruct, Processor, ReflectionClass, ReflectionFunction, ReflectionKind, ReflectionMethod, ReflectionParameter, ReflectionProperty, ReflectionVisibility, RuntimeCode, SerializationError, Serializer, TData, TemplateRegistry, TemplateState, TypeGuardRegistry, TypeRegistry, UUIDAnnotation, UnpopulatedCheck, ValidationError, ValidationErrorItem, ValidatorError, __ΩAPIClass, __ΩAPIProperty, __ΩAfterDate, __ΩAfterNow, __ΩAlpha, __ΩAlphanumeric, __ΩAnnotationType, __ΩAnnotations, __ΩAscii, __ΩAutoId, __ΩAutoIncrement, __ΩBackReference, __ΩBackReferenceOptions, __ΩBackReferenceOptionsResolved, __ΩBeforeDate, __ΩBeforeNow, __ΩBinary, __ΩBinaryBigInt, __ΩBinaryBigIntType, __ΩChangesInterface, __ΩClassApiTypeInterface, __ΩClassDecoratorFn, __ΩClassDecoratorResult, __ΩData, __ΩDatabaseField, __ΩDatabaseFieldOptions, __ΩDecimal, __ΩDecoratorAndFetchSignature, __ΩDeepPartial, __ΩDualDecorator, __ΩEmail, __ΩEmbedded, __ΩEmbeddedMeta, __ΩEmbeddedOptions, __ΩEntity, __ΩEntityOptions, __ΩExcluded, __ΩExcludes, __ΩExclusiveMaximum, __ΩExclusiveMinimum, __ΩExpression, __ΩExtractApiDataType, __ΩExtractClass, __ΩFindType, __ΩFluidDecorator, __ΩFreeDecoratorFn, __ΩFreeDecoratorResult, __ΩFreeFluidDecorator, __ΩGroup, __ΩGuard, __ΩIncludes, __ΩIndex, __ΩIndexOptions, __ΩInlineRuntimeType, __ΩJSONEntity, __ΩJSONPartial, __ΩJSONPartialObject, __ΩJSONSingle, __ΩJitContainer, __ΩMapName, __ΩMaxLength, __ΩMaximum, __ΩMerge, __ΩMinLength, __ΩMinimum, __ΩMongoId, __ΩMultipleOf, __ΩMySQL, __ΩMySQLOptions, __ΩNegative, __ΩNegativeNoZero, __ΩNumberFields, __ΩPacked, __ΩParentLessType, __ΩPartial, __ΩPattern, __ΩPositive, __ΩPositiveNoZero, __ΩPostgres, __ΩPostgresOptions, __ΩPrimaryKey, __ΩPrimaryKeyFields, __ΩPrimaryKeyType, __ΩPropertyApiTypeInterface, __ΩPropertyDecoratorFn, __ΩPropertyDecoratorResult, __ΩReceiveType, __ΩReference, __ΩReferenceActions, __ΩReferenceFields, __ΩReferenceInfo, __ΩReferenceItemInfo, __ΩReferenceOptions, __ΩReflectOptions, __ΩReflectionKind, __ΩReflectionVisibility, __ΩResetAnnotation, __ΩResolver, __ΩRuntimeStackEntry, __ΩSQLite, __ΩSerializationOptions, __ΩSerializeFunction, __ΩSerializedType, __ΩSerializedTypeAnnotations, __ΩSerializedTypeArray, __ΩSerializedTypeBaseMember, __ΩSerializedTypeClassType, __ΩSerializedTypeEnum, __ΩSerializedTypeFunction, __ΩSerializedTypeIndexSignature, __ΩSerializedTypeInfer, __ΩSerializedTypeIntersection, __ΩSerializedTypeLiteral, __ΩSerializedTypeMethod, __ΩSerializedTypeMethodSignature, __ΩSerializedTypeObjectLiteral, __ΩSerializedTypeParameter, __ΩSerializedTypePromise, __ΩSerializedTypeProperty, __ΩSerializedTypePropertySignature, __ΩSerializedTypeReference, __ΩSerializedTypeRest, __ΩSerializedTypeTemplateLiteral, __ΩSerializedTypeTuple, __ΩSerializedTypeTupleMember, __ΩSerializedTypeTypeParameter, __ΩSerializedTypeUnion, __ΩSerializedTypes, __ΩSerializerFn, __ΩSerializerState, __ΩSignedBinaryBigInt, __ΩSimpleSerializedType, __ΩSqliteOptions, __ΩTagsReflection, __ΩTemplate, __ΩTemplateHook, __ΩTypeAny, __ΩTypeArray, __ΩTypeBaseMember, __ΩTypeBigInt, __ΩTypeBoolean, __ΩTypeCallSignature, __ΩTypeClass, __ΩTypeDecorator, __ΩTypeEnum, __ΩTypeEnumMember, __ΩTypeFunction, __ΩTypeIndexSignature, __ΩTypeInfer, __ΩTypeIntersection, __ΩTypeLiteral, __ΩTypeMethod, __ΩTypeMethodSignature, __ΩTypeNever, __ΩTypeNull, __ΩTypeNumber, __ΩTypeObject, __ΩTypeObjectLiteral, __ΩTypeParameter, __ΩTypePromise, __ΩTypeProperty, __ΩTypePropertySignature, __ΩTypeRegexp, __ΩTypeRest, __ΩTypeSettings, __ΩTypeString, __ΩTypeSymbol, __ΩTypeTemplateLiteral, __ΩTypeTuple, __ΩTypeTupleMember, __ΩTypeTypeParameter, __ΩTypeUndefined, __ΩTypeUnion, __ΩTypeUnknown, __ΩTypeVoid, __ΩTypedArray, __ΩTypedArrayClassType, __ΩUUID, __ΩUnionToIntersection, __ΩUnique, __ΩUnpopulatedCheck, __ΩValidate, __ΩValidateFunction, __ΩValidatorMeta, __ΩWiden, __ΩWithAnnotations, __Ωfloat, __Ωfloat32, __Ωfloat64, __Ωint16, __Ωint32, __Ωint8, __Ωinteger, __Ωuint16, __Ωuint32, __Ωuint8, _isExtendable, addType, annotateClass, applyScheduledAnnotations, arrayBufferFrom, arrayBufferTo, arrayBufferToBase64, assert, assertType, atomicChange, autoIncrementAnnotation, backReferenceAnnotation, base64ToArrayBuffer, base64ToTypedArray, binaryBigIntAnnotation, binaryTypes, buildChanges, buildFunction, callExtractedFunctionIfAvailable, cast, castFunction, changeSetSymbol, clearTypeJitContainer, cloneClass, collapsePath, copyAndSetParent, createClassDecoratorContext, createConverterJSForMember, createFluidDecorator, createFreeDecoratorContext, createPromiseObjectLiteral, createPropertyDecoratorContext, createReference, createReferenceClass, createSerializeFunction, createSnapshot, createTypeGuardFunction, dataAnnotation, databaseAnnotation, defaultAnnotation, defaultValue, deserialize2 as deserialize, deserializeEmbedded, deserializeFunction, deserializeType, embeddedAnnotation, emptyObject, encodeOps, entity, entityAnnotation, excludedAnnotation, executeTemplates, executeTypeArgumentAsArray, extendTemplateLiteral, extractStateToFunctionAndCallIt, findMember, flatten, flattenUnionTypes, forwardMapToArray, forwardSetToArray, genericEqual, getAlias, getAnnotationMeta, getAnnotations, getBackReferenceType, getChangeDetector, getClassType, getConstructorProperties, getConverterForSnapshot, getDeepConstructorProperties, getDomain, getEmbeddedProperty, getEnumType, getEnumValueIndexMatcher, getIndexCheck, getKeyType, getMapTypeToArray, getMember, getNTypeToArray, getNameExpression, getNominalId, getOrCreateReferenceItemInfo, getPartialSerializeFunction, getPartialType, getPatchSerializeFunction, getPermission, getPrimaryKeyExtractor, getPrimaryKeyHashGenerator, getProperty, getPropertyNameString, getReferenceInfo, getReferenceItemInfo, getReferenceType, getSerializeFunction, getSetTypeToArray, getSimplePrimaryKeyHashGenerator, getStaticDefaultCodeForProperty, getTags, getTitle, getTypeJitContainer, getTypeObjectLiteralFromTypeClass, getValidatorFunction, getValueType, groupAnnotation, guard, handleUnion, hasCircularReference, hasDefaultValue, hasEmbedded, hasMember, hasTypeInformation, inAccessor, indexAccess, indexAnnotation, is, isAutoIncrementType, isBackReferenceType, isBinary, isBinaryBigIntType, isCustomTypeClass, isDateType, isDecoratorContext, isExtendable, isGlobalTypeClass, isHidden, isIgnore, isIntegerType, isInternal, isMapType, isMember, isMongoIdType, isNullable, isOptional, isPrimaryKeyType, isPrimitive, isPropertyMemberType, isPropertyType, isReadonly, isReferenceHydrated, isReferenceInstance, isReferenceType, isSameType, isSetType, isType, isTypeClassOf, isTypeIncluded, isUUIDType, isWithAnnotations, isWithDeferredDecorators, mapNameAnnotation, markAsHydrated, memberNameToString, merge, mergeDecorator, typeAnnotation as metaAnnotation, mixin, mongoIdAnnotation, narrowOriginalLiteral, nodeBufferToArrayBuffer, nodeBufferToTypedArray, noopTemplate, pack, parametersToTuple, patch, pathResolver, primaryKeyAnnotation, propertiesOf, referenceAnnotation, referenceItemSymbol, referenceSymbol, reflect, reflectOrUndefined, reflectionClassSymbol, regExpFromString, registerTypeDecorator, removeNominal, removeTypeName, resolveClassType, resolveForeignReflectionClass, resolvePacked, resolvePath, resolveProperty, resolveReceiveType, resolveRuntimeType, resolveTypeMembers, serializableKinds, serialize2 as serialize, serializeArray, serializeFunction, serializeObjectLiteral, serializePropertyOrParameter, serializeType, serializer, snapshotSerializer, sortSignatures, stringifyResolvedType, stringifyShortResolvedType, stringifyType, stringifyUuid, t, toSignature, typeAnnotation, typeDecorators, typeGuardArray, typeGuardEmbedded, typeGuardObjectLiteral, typeInfer, typeOf, typeSettings, typeToObject, typedArrayToBase64, typedArrayToBuffer, unboxUnion, underscoreNamingStrategy, unpack, unpopulatedSymbol, uuid, uuidAnnotation, validate, validateFunction, validatePropertyOrParameter, validatedDeserialize, validates, validationAnnotation, validators, valuesOf, visit, widenLiteral, writeUuid };
18359
+ export { AnnotationDefinition, AtomicChangeInstance, CartesianProduct, Changes, ContainerAccessor, EMAIL_REGEX, EmptySerializer, EntityData, ItemChanges, JitStack, NamingStrategy, NoTypeReceived, PackStruct, Processor, ReflectionClass, ReflectionFunction, ReflectionKind, ReflectionMethod, ReflectionParameter, ReflectionProperty, ReflectionVisibility, RuntimeCode, SerializationError, Serializer, TData, TemplateRegistry, TemplateState, TypeGuardRegistry, TypeRegistry, UUIDAnnotation, UnpopulatedCheck, ValidationError, ValidationErrorItem, ValidatorError, __ΩAPIClass, __ΩAPIProperty, __ΩAfterDate, __ΩAfterNow, __ΩAlpha, __ΩAlphanumeric, __ΩAnnotationType, __ΩAnnotations, __ΩAscii, __ΩAutoId, __ΩAutoIncrement, __ΩBackReference, __ΩBackReferenceOptions, __ΩBackReferenceOptionsResolved, __ΩBeforeDate, __ΩBeforeNow, __ΩBinary, __ΩBinaryBigInt, __ΩBinaryBigIntType, __ΩChangesInterface, __ΩClassApiTypeInterface, __ΩClassDecoratorFn, __ΩClassDecoratorResult, __ΩData, __ΩDatabaseField, __ΩDatabaseFieldOptions, __ΩDecimal, __ΩDecoratorAndFetchSignature, __ΩDeepPartial, __ΩDualDecorator, __ΩEmail, __ΩEmbedded, __ΩEmbeddedMeta, __ΩEmbeddedOptions, __ΩEntity, __ΩEntityOptions, __ΩExcluded, __ΩExcludes, __ΩExclusiveMaximum, __ΩExclusiveMinimum, __ΩExpression, __ΩExtractApiDataType, __ΩExtractClass, __ΩFindType, __ΩFluidDecorator, __ΩFreeDecoratorFn, __ΩFreeDecoratorResult, __ΩFreeFluidDecorator, __ΩGroup, __ΩGuard, __ΩIncludes, __ΩIndex, __ΩIndexOptions, __ΩInlineRuntimeType, __ΩJSONEntity, __ΩJSONPartial, __ΩJSONPartialObject, __ΩJSONSingle, __ΩJitContainer, __ΩMapName, __ΩMaxLength, __ΩMaximum, __ΩMerge, __ΩMinLength, __ΩMinimum, __ΩMongoId, __ΩMultipleOf, __ΩMySQL, __ΩMySQLOptions, __ΩNegative, __ΩNegativeNoZero, __ΩNumberFields, __ΩPacked, __ΩParentLessType, __ΩPartial, __ΩPattern, __ΩPositive, __ΩPositiveNoZero, __ΩPostgres, __ΩPostgresOptions, __ΩPrimaryKey, __ΩPrimaryKeyFields, __ΩPrimaryKeyType, __ΩPropertyApiTypeInterface, __ΩPropertyDecoratorFn, __ΩPropertyDecoratorResult, __ΩReceiveType, __ΩReference, __ΩReferenceActions, __ΩReferenceFields, __ΩReferenceInfo, __ΩReferenceItemInfo, __ΩReferenceOptions, __ΩReflectOptions, __ΩReflectionKind, __ΩReflectionVisibility, __ΩResetAnnotation, __ΩResolver, __ΩRuntimeStackEntry, __ΩSQLite, __ΩSerializationOptions, __ΩSerializeFunction, __ΩSerializedType, __ΩSerializedTypeAnnotations, __ΩSerializedTypeArray, __ΩSerializedTypeBaseMember, __ΩSerializedTypeClassType, __ΩSerializedTypeEnum, __ΩSerializedTypeFunction, __ΩSerializedTypeIndexSignature, __ΩSerializedTypeInfer, __ΩSerializedTypeIntersection, __ΩSerializedTypeLiteral, __ΩSerializedTypeMethod, __ΩSerializedTypeMethodSignature, __ΩSerializedTypeObjectLiteral, __ΩSerializedTypeParameter, __ΩSerializedTypePromise, __ΩSerializedTypeProperty, __ΩSerializedTypePropertySignature, __ΩSerializedTypeReference, __ΩSerializedTypeRest, __ΩSerializedTypeTemplateLiteral, __ΩSerializedTypeTuple, __ΩSerializedTypeTupleMember, __ΩSerializedTypeTypeParameter, __ΩSerializedTypeUnion, __ΩSerializedTypes, __ΩSerializerFn, __ΩSerializerState, __ΩSignedBinaryBigInt, __ΩSimpleSerializedType, __ΩSqliteOptions, __ΩTagsReflection, __ΩTemplate, __ΩTemplateHook, __ΩTypeAny, __ΩTypeArray, __ΩTypeBaseMember, __ΩTypeBigInt, __ΩTypeBoolean, __ΩTypeCallSignature, __ΩTypeClass, __ΩTypeDecorator, __ΩTypeEnum, __ΩTypeEnumMember, __ΩTypeFunction, __ΩTypeIndexSignature, __ΩTypeInfer, __ΩTypeIntersection, __ΩTypeLiteral, __ΩTypeMethod, __ΩTypeMethodSignature, __ΩTypeNever, __ΩTypeNull, __ΩTypeNumber, __ΩTypeObject, __ΩTypeObjectLiteral, __ΩTypeParameter, __ΩTypePromise, __ΩTypeProperty, __ΩTypePropertySignature, __ΩTypeRegexp, __ΩTypeRest, __ΩTypeSettings, __ΩTypeString, __ΩTypeSymbol, __ΩTypeTemplateLiteral, __ΩTypeTuple, __ΩTypeTupleMember, __ΩTypeTypeParameter, __ΩTypeUndefined, __ΩTypeUnion, __ΩTypeUnknown, __ΩTypeVoid, __ΩTypedArray, __ΩTypedArrayClassType, __ΩUUID, __ΩUnionToIntersection, __ΩUnique, __ΩUnpopulatedCheck, __ΩValidate, __ΩValidateFunction, __ΩValidatorMeta, __ΩWiden, __ΩWithAnnotations, __Ωfloat, __Ωfloat32, __Ωfloat64, __Ωint16, __Ωint32, __Ωint8, __Ωinteger, __Ωuint16, __Ωuint32, __Ωuint8, _isExtendable, addType, annotateClass, applyScheduledAnnotations, arrayBufferFrom, arrayBufferTo, arrayBufferToBase64, assert, assertType, atomicChange, autoIncrementAnnotation, backReferenceAnnotation, base64ToArrayBuffer, base64ToTypedArray, binaryBigIntAnnotation, binaryTypes, buildChanges, buildFunction, callExtractedFunctionIfAvailable, cast, castFunction, changeSetSymbol, clearTypeJitContainer, cloneClass, collapsePath, copyAndSetParent, createClassDecoratorContext, createConverterJSForMember, createFluidDecorator, createFreeDecoratorContext, createPromiseObjectLiteral, createPropertyDecoratorContext, createReference, createReferenceClass, createSerializeFunction, createSnapshot, createTypeGuardFunction, dataAnnotation, databaseAnnotation, defaultAnnotation, defaultValue, deserialize2 as deserialize, deserializeEmbedded, deserializeFunction, deserializeType, embeddedAnnotation, emptyObject, encodeOps, entity, entityAnnotation, excludedAnnotation, executeTemplates, executeTypeArgumentAsArray, extendTemplateLiteral, extractStateToFunctionAndCallIt, findMember, flatten, flattenUnionTypes, forwardMapToArray, forwardSetToArray, genericEqual, getAlias, getAnnotationMeta, getAnnotations, getBackReferenceType, getChangeDetector, getClassType, getConstructorProperties, getConverterForSnapshot, getDeepConstructorProperties, getDomain, getEmbeddedProperty, getEnumType, getEnumValueIndexMatcher, getIndexCheck, getKeyType, getMapTypeToArray, getMember, getNTypeToArray, getNameExpression, getNominalId, getOrCreateReferenceItemInfo, getPartialSerializeFunction, getPartialType, getPatchSerializeFunction, getPermission, getPrimaryKeyExtractor, getPrimaryKeyHashGenerator, getProperty, getPropertyNameString, getReferenceInfo, getReferenceItemInfo, getReferenceType, getSerializeFunction, getSetTypeToArray, getSimplePrimaryKeyHashGenerator, getStaticDefaultCodeForProperty, getTags, getTitle, getTypeJitContainer, getTypeObjectLiteralFromTypeClass, getValidatorFunction, getValueType, groupAnnotation, guard, handleUnion, hasCircularReference, hasDefaultValue, hasEmbedded, hasMember, hasTypeInformation, inAccessor, indexAccess, indexAnnotation, is, isAutoIncrementType, isBackReferenceType, isBinary, isBinaryBigIntType, isCustomTypeClass, isDateType, isDecoratorContext, isExtendable, isGlobalTypeClass, isHidden, isIgnore, isIntegerType, isInternal, isMapType, isMember, isMongoIdType, isNullable, isOptional, isPrimaryKeyType, isPrimitive, isPropertyMemberType, isPropertyType, isReadonly, isReferenceHydrated, isReferenceInstance, isReferenceType, isSameType, isSetType, isType, isTypeClassOf, isTypeIncluded, isUUIDType, isWithAnnotations, isWithDeferredDecorators, mapNameAnnotation, markAsHydrated, memberNameToString, merge, mergeDecorator, typeAnnotation as metaAnnotation, mixin, mongoIdAnnotation, narrowOriginalLiteral, nodeBufferToArrayBuffer, nodeBufferToTypedArray, noopTemplate, pack, parametersToTuple, patch, pathResolver, primaryKeyAnnotation, propertiesOf, referenceAnnotation, referenceItemSymbol, referenceSymbol, reflect, reflectOrUndefined, reflectionClassSymbol, regExpFromString, registerTypeDecorator, removeNominal, removeTypeName, resolveClassType, resolveForeignReflectionClass, resolvePacked, resolvePath, resolveProperty, resolveReceiveType, resolveRuntimeType, resolveTypeMembers, serializableKinds, serialize2 as serialize, serializeArray, serializeFunction, serializeObjectLiteral, serializePropertyOrParameter, serializeType, serializer, snapshotSerializer, sortSignatures, stringifyResolvedType, stringifyShortResolvedType, stringifyType, stringifyUuid, t, toSignature, typeAnnotation, typeDecorators, typeGuardArray, typeGuardEmbedded, typeGuardObjectLiteral, typeInfer, typeOf, typeSettings, typeToObject, typedArrayToBase64, typedArrayToBuffer, unboxUnion, underscoreNamingStrategy, unpack, unpopulatedSymbol, uuid, uuidAnnotation, validate2 as validate, validateFunction, validatePropertyOrParameter, validatedDeserialize, validates, validationAnnotation, validators, valuesOf, visit, widenLiteral, writeUuid };