standard-log 12.1.1 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/cjs/console.d.ts.map +1 -1
- package/cjs/console.js +8 -11
- package/cjs/console.js.map +1 -1
- package/cjs/errors.d.ts +1 -1
- package/cjs/errors.d.ts.map +1 -1
- package/cjs/errors.js.map +1 -1
- package/cjs/formatter.d.ts.map +1 -1
- package/cjs/formatter.js +5 -7
- package/cjs/formatter.js.map +1 -1
- package/cjs/index.d.ts +2 -2
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/log_levels.js +5 -5
- package/cjs/log_levels.js.map +1 -1
- package/cjs/log_store.js +2 -3
- package/cjs/log_store.js.map +1 -1
- package/cjs/logger.d.ts +1 -1
- package/cjs/logger.d.ts.map +1 -1
- package/cjs/logger.js +1 -2
- package/cjs/logger.js.map +1 -1
- package/cjs/memory.d.ts.map +1 -1
- package/cjs/memory.js +6 -9
- package/cjs/memory.js.map +1 -1
- package/cjs/platform.browser.d.ts.map +1 -1
- package/cjs/platform.d.ts.map +1 -1
- package/cjs/platform.js +2 -2
- package/cjs/platform.js.map +1 -1
- package/cjs/standard_log.d.ts +1 -1
- package/cjs/standard_log.d.ts.map +1 -1
- package/cjs/standard_log.js +5 -6
- package/cjs/standard_log.js.map +1 -1
- package/cjs/standard_log.testing.d.ts +1 -1
- package/cjs/standard_log.testing.js +1 -2
- package/cjs/standard_log.testing.js.map +1 -1
- package/cjs/testing/index.d.ts +2 -2
- package/cjs/testing/index.d.ts.map +1 -1
- package/cjs/testing/index.js.map +1 -1
- package/cjs/types.d.ts +1 -1
- package/cjs/types.d.ts.map +1 -1
- package/cjs/types.js.map +1 -1
- package/dist/standard-log.es5.js +1539 -1116
- package/dist/standard-log.es5.js.gz +0 -0
- package/dist/standard-log.es5.js.map +1 -1
- package/dist/standard-log.es5.js.map.gz +0 -0
- package/dist/standard-log.esm.js +202 -249
- package/dist/standard-log.esm.js.gz +0 -0
- package/dist/standard-log.esm.js.map +1 -1
- package/dist/standard-log.esm.js.map.gz +0 -0
- package/esm/console.d.ts.map +1 -1
- package/esm/console.js +7 -9
- package/esm/console.js.map +1 -1
- package/esm/errors.d.ts +1 -1
- package/esm/errors.d.ts.map +1 -1
- package/esm/errors.js.map +1 -1
- package/esm/formatter.d.ts.map +1 -1
- package/esm/formatter.js +1 -2
- package/esm/formatter.js.map +1 -1
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js.map +1 -1
- package/esm/log_levels.js +2 -2
- package/esm/log_levels.js.map +1 -1
- package/esm/logger.d.ts +1 -1
- package/esm/logger.d.ts.map +1 -1
- package/esm/logger.js.map +1 -1
- package/esm/memory.d.ts.map +1 -1
- package/esm/memory.js +3 -5
- package/esm/memory.js.map +1 -1
- package/esm/platform.browser.d.ts.map +1 -1
- package/esm/platform.d.ts.map +1 -1
- package/esm/platform.js +1 -1
- package/esm/platform.js.map +1 -1
- package/esm/standard_log.d.ts +1 -1
- package/esm/standard_log.d.ts.map +1 -1
- package/esm/standard_log.js.map +1 -1
- package/esm/standard_log.testing.d.ts +1 -1
- package/esm/standard_log.testing.js.map +1 -1
- package/esm/testing/index.d.ts +2 -2
- package/esm/testing/index.d.ts.map +1 -1
- package/esm/testing/index.js.map +1 -1
- package/esm/types.d.ts +1 -1
- package/esm/types.d.ts.map +1 -1
- package/esm/types.js.map +1 -1
- package/package.json +24 -36
- package/ts/console.ts +7 -8
- package/ts/errors.ts +5 -2
- package/ts/formatter.ts +1 -2
- package/ts/index.ts +3 -3
- package/ts/log_levels.ts +2 -2
- package/ts/logger.ts +14 -7
- package/ts/memory.ts +3 -5
- package/ts/platform.ts +1 -1
- package/ts/standard_log.testing.ts +1 -1
- package/ts/standard_log.ts +2 -2
- package/ts/testing/index.ts +3 -3
- package/ts/types.ts +1 -1
package/dist/standard-log.es5.js
CHANGED
|
@@ -2,11 +2,11 @@ var StandardLog;
|
|
|
2
2
|
/******/ (function() { // webpackBootstrap
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
-
/***/ "../../node_modules/.pnpm/acorn@8.
|
|
6
|
-
|
|
7
|
-
!*** ../../node_modules/.pnpm/acorn@8.
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
/***/ "../../node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/dist/acorn.js"
|
|
6
|
+
/*!******************************************************************************!*\
|
|
7
|
+
!*** ../../node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/dist/acorn.js ***!
|
|
8
|
+
\******************************************************************************/
|
|
9
|
+
(__unused_webpack_module, exports) {
|
|
10
10
|
|
|
11
11
|
(function (global, factory) {
|
|
12
12
|
true ? factory(exports) :
|
|
@@ -14,18 +14,21 @@ var StandardLog;
|
|
|
14
14
|
})(this, (function (exports) { 'use strict';
|
|
15
15
|
|
|
16
16
|
// This file was generated. Do not modify manually!
|
|
17
|
-
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9,
|
|
17
|
+
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
18
18
|
|
|
19
19
|
// This file was generated. Do not modify manually!
|
|
20
|
-
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1,
|
|
20
|
+
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
|
|
21
21
|
|
|
22
22
|
// This file was generated. Do not modify manually!
|
|
23
|
-
var nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\
|
|
23
|
+
var nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0897-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f\uff65";
|
|
24
24
|
|
|
25
25
|
// This file was generated. Do not modify manually!
|
|
26
|
-
var nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\
|
|
26
|
+
var nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c8a\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7cd\ua7d0\ua7d1\ua7d3\ua7d5-\ua7dc\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc";
|
|
27
27
|
|
|
28
28
|
// These are a run-length and offset encoded representation of the
|
|
29
|
+
// >0xffff code points that are a valid part of identifiers. The
|
|
30
|
+
// offset starts at 0x10000, and each pair of numbers represents an
|
|
31
|
+
// offset to the next range, and then a size of the range.
|
|
29
32
|
|
|
30
33
|
// Reserved word lists for various dialects of the language
|
|
31
34
|
|
|
@@ -285,8 +288,10 @@ var StandardLog;
|
|
|
285
288
|
toString.call(obj) === "[object Array]"
|
|
286
289
|
); });
|
|
287
290
|
|
|
291
|
+
var regexpCache = Object.create(null);
|
|
292
|
+
|
|
288
293
|
function wordsRegexp(words) {
|
|
289
|
-
return new RegExp("^(?:" + words.replace(/ /g, "|") + ")$")
|
|
294
|
+
return regexpCache[words] || (regexpCache[words] = new RegExp("^(?:" + words.replace(/ /g, "|") + ")$"))
|
|
290
295
|
}
|
|
291
296
|
|
|
292
297
|
function codePointToString(code) {
|
|
@@ -346,11 +351,11 @@ var StandardLog;
|
|
|
346
351
|
// Can be either `"script"` or `"module"`. This influences global
|
|
347
352
|
// strict mode and parsing of `import` and `export` declarations.
|
|
348
353
|
sourceType: "script",
|
|
349
|
-
// `onInsertedSemicolon` can be a callback that will be called
|
|
350
|
-
//
|
|
351
|
-
//
|
|
352
|
-
// enabled, it is given the location as a `{line,
|
|
353
|
-
// as second argument.
|
|
354
|
+
// `onInsertedSemicolon` can be a callback that will be called when
|
|
355
|
+
// a semicolon is automatically inserted. It will be passed the
|
|
356
|
+
// position of the inserted semicolon as an offset, and if
|
|
357
|
+
// `locations` is enabled, it is given the location as a `{line,
|
|
358
|
+
// column}` object as second argument.
|
|
354
359
|
onInsertedSemicolon: null,
|
|
355
360
|
// `onTrailingComma` is similar to `onInsertedSemicolon`, but for
|
|
356
361
|
// trailing commas.
|
|
@@ -378,6 +383,10 @@ var StandardLog;
|
|
|
378
383
|
// allowed and treated as a line comment. Enabled by default when
|
|
379
384
|
// `ecmaVersion` >= 2023.
|
|
380
385
|
allowHashBang: false,
|
|
386
|
+
// By default, the parser will verify that private properties are
|
|
387
|
+
// only used in places where they are valid and have been declared.
|
|
388
|
+
// Set this to false to turn such checks off.
|
|
389
|
+
checkPrivateFields: true,
|
|
381
390
|
// When `locations` is on, `loc` properties holding objects with
|
|
382
391
|
// `start` and `end` properties in `{line, column}` form (with
|
|
383
392
|
// line being 1-based and column 0-based) will be attached to the
|
|
@@ -399,6 +408,8 @@ var StandardLog;
|
|
|
399
408
|
// passed, the full `{line, column}` locations of the start and
|
|
400
409
|
// end of the comments. Note that you are not allowed to call the
|
|
401
410
|
// parser from the callback—that will corrupt its internal state.
|
|
411
|
+
// When this option has an array as value, objects representing the
|
|
412
|
+
// comments are pushed to it.
|
|
402
413
|
onComment: null,
|
|
403
414
|
// Nodes have their start and end characters offsets recorded in
|
|
404
415
|
// `start` and `end` properties (directly on the node, rather than
|
|
@@ -491,6 +502,7 @@ var StandardLog;
|
|
|
491
502
|
SCOPE_SUPER = 64,
|
|
492
503
|
SCOPE_DIRECT_SUPER = 128,
|
|
493
504
|
SCOPE_CLASS_STATIC_BLOCK = 256,
|
|
505
|
+
SCOPE_CLASS_FIELD_INIT = 512,
|
|
494
506
|
SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
|
|
495
507
|
|
|
496
508
|
function functionFlags(async, generator) {
|
|
@@ -601,15 +613,16 @@ var StandardLog;
|
|
|
601
613
|
|
|
602
614
|
prototypeAccessors.inFunction.get = function () { return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0 };
|
|
603
615
|
|
|
604
|
-
prototypeAccessors.inGenerator.get = function () { return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0
|
|
616
|
+
prototypeAccessors.inGenerator.get = function () { return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0 };
|
|
605
617
|
|
|
606
|
-
prototypeAccessors.inAsync.get = function () { return (this.currentVarScope().flags & SCOPE_ASYNC) > 0
|
|
618
|
+
prototypeAccessors.inAsync.get = function () { return (this.currentVarScope().flags & SCOPE_ASYNC) > 0 };
|
|
607
619
|
|
|
608
620
|
prototypeAccessors.canAwait.get = function () {
|
|
609
621
|
for (var i = this.scopeStack.length - 1; i >= 0; i--) {
|
|
610
|
-
var
|
|
611
|
-
|
|
612
|
-
if (
|
|
622
|
+
var ref = this.scopeStack[i];
|
|
623
|
+
var flags = ref.flags;
|
|
624
|
+
if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT)) { return false }
|
|
625
|
+
if (flags & SCOPE_FUNCTION) { return (flags & SCOPE_ASYNC) > 0 }
|
|
613
626
|
}
|
|
614
627
|
return (this.inModule && this.options.ecmaVersion >= 13) || this.options.allowAwaitOutsideFunction
|
|
615
628
|
};
|
|
@@ -617,8 +630,7 @@ var StandardLog;
|
|
|
617
630
|
prototypeAccessors.allowSuper.get = function () {
|
|
618
631
|
var ref = this.currentThisScope();
|
|
619
632
|
var flags = ref.flags;
|
|
620
|
-
|
|
621
|
-
return (flags & SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod
|
|
633
|
+
return (flags & SCOPE_SUPER) > 0 || this.options.allowSuperOutsideMethod
|
|
622
634
|
};
|
|
623
635
|
|
|
624
636
|
prototypeAccessors.allowDirectSuper.get = function () { return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0 };
|
|
@@ -626,10 +638,13 @@ var StandardLog;
|
|
|
626
638
|
prototypeAccessors.treatFunctionsAsVar.get = function () { return this.treatFunctionsAsVarInScope(this.currentScope()) };
|
|
627
639
|
|
|
628
640
|
prototypeAccessors.allowNewDotTarget.get = function () {
|
|
629
|
-
var
|
|
630
|
-
var
|
|
631
|
-
|
|
632
|
-
|
|
641
|
+
for (var i = this.scopeStack.length - 1; i >= 0; i--) {
|
|
642
|
+
var ref = this.scopeStack[i];
|
|
643
|
+
var flags = ref.flags;
|
|
644
|
+
if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT) ||
|
|
645
|
+
((flags & SCOPE_FUNCTION) && !(flags & SCOPE_ARROW))) { return true }
|
|
646
|
+
}
|
|
647
|
+
return false
|
|
633
648
|
};
|
|
634
649
|
|
|
635
650
|
prototypeAccessors.inClassStaticBlock.get = function () {
|
|
@@ -665,7 +680,7 @@ var StandardLog;
|
|
|
665
680
|
|
|
666
681
|
// ## Parser utilities
|
|
667
682
|
|
|
668
|
-
var literal = /^(?:'((
|
|
683
|
+
var literal = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
669
684
|
pp$9.strictDirective = function(start) {
|
|
670
685
|
if (this.options.ecmaVersion < 5) { return false }
|
|
671
686
|
for (;;) {
|
|
@@ -851,7 +866,7 @@ var StandardLog;
|
|
|
851
866
|
// Statement) is allowed here. If context is not empty then only a Statement
|
|
852
867
|
// is allowed. However, `let [` is an explicit negative lookahead for
|
|
853
868
|
// ExpressionStatement, so special-case it first.
|
|
854
|
-
if (nextCh === 91 || nextCh === 92) { return true } // '[', '
|
|
869
|
+
if (nextCh === 91 || nextCh === 92) { return true } // '[', '\'
|
|
855
870
|
if (context) { return false }
|
|
856
871
|
|
|
857
872
|
if (nextCh === 123 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true } // '{', astral
|
|
@@ -881,6 +896,49 @@ var StandardLog;
|
|
|
881
896
|
!(isIdentifierChar(after = this.input.charCodeAt(next + 8)) || after > 0xd7ff && after < 0xdc00))
|
|
882
897
|
};
|
|
883
898
|
|
|
899
|
+
pp$8.isUsingKeyword = function(isAwaitUsing, isFor) {
|
|
900
|
+
if (this.options.ecmaVersion < 17 || !this.isContextual(isAwaitUsing ? "await" : "using"))
|
|
901
|
+
{ return false }
|
|
902
|
+
|
|
903
|
+
skipWhiteSpace.lastIndex = this.pos;
|
|
904
|
+
var skip = skipWhiteSpace.exec(this.input);
|
|
905
|
+
var next = this.pos + skip[0].length;
|
|
906
|
+
|
|
907
|
+
if (lineBreak.test(this.input.slice(this.pos, next))) { return false }
|
|
908
|
+
|
|
909
|
+
if (isAwaitUsing) {
|
|
910
|
+
var awaitEndPos = next + 5 /* await */, after;
|
|
911
|
+
if (this.input.slice(next, awaitEndPos) !== "using" ||
|
|
912
|
+
awaitEndPos === this.input.length ||
|
|
913
|
+
isIdentifierChar(after = this.input.charCodeAt(awaitEndPos)) ||
|
|
914
|
+
(after > 0xd7ff && after < 0xdc00)
|
|
915
|
+
) { return false }
|
|
916
|
+
|
|
917
|
+
skipWhiteSpace.lastIndex = awaitEndPos;
|
|
918
|
+
var skipAfterUsing = skipWhiteSpace.exec(this.input);
|
|
919
|
+
if (skipAfterUsing && lineBreak.test(this.input.slice(awaitEndPos, awaitEndPos + skipAfterUsing[0].length))) { return false }
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
if (isFor) {
|
|
923
|
+
var ofEndPos = next + 2 /* of */, after$1;
|
|
924
|
+
if (this.input.slice(next, ofEndPos) === "of") {
|
|
925
|
+
if (ofEndPos === this.input.length ||
|
|
926
|
+
(!isIdentifierChar(after$1 = this.input.charCodeAt(ofEndPos)) && !(after$1 > 0xd7ff && after$1 < 0xdc00))) { return false }
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
var ch = this.input.charCodeAt(next);
|
|
931
|
+
return isIdentifierStart(ch, true) || ch === 92 // '\'
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
pp$8.isAwaitUsing = function(isFor) {
|
|
935
|
+
return this.isUsingKeyword(true, isFor)
|
|
936
|
+
};
|
|
937
|
+
|
|
938
|
+
pp$8.isUsing = function(isFor) {
|
|
939
|
+
return this.isUsingKeyword(false, isFor)
|
|
940
|
+
};
|
|
941
|
+
|
|
884
942
|
// Parse a single statement.
|
|
885
943
|
//
|
|
886
944
|
// If expecting a statement and finding a slash operator, parse a
|
|
@@ -957,6 +1015,23 @@ var StandardLog;
|
|
|
957
1015
|
return this.parseFunctionStatement(node, true, !context)
|
|
958
1016
|
}
|
|
959
1017
|
|
|
1018
|
+
var usingKind = this.isAwaitUsing(false) ? "await using" : this.isUsing(false) ? "using" : null;
|
|
1019
|
+
if (usingKind) {
|
|
1020
|
+
if (topLevel && this.options.sourceType === "script") {
|
|
1021
|
+
this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`");
|
|
1022
|
+
}
|
|
1023
|
+
if (usingKind === "await using") {
|
|
1024
|
+
if (!this.canAwait) {
|
|
1025
|
+
this.raise(this.start, "Await using cannot appear outside of async function");
|
|
1026
|
+
}
|
|
1027
|
+
this.next();
|
|
1028
|
+
}
|
|
1029
|
+
this.next();
|
|
1030
|
+
this.parseVar(node, false, usingKind);
|
|
1031
|
+
this.semicolon();
|
|
1032
|
+
return this.finishNode(node, "VariableDeclaration")
|
|
1033
|
+
}
|
|
1034
|
+
|
|
960
1035
|
var maybeName = this.value, expr = this.parseExpression();
|
|
961
1036
|
if (starttype === types$1.name && expr.type === "Identifier" && this.eat(types$1.colon))
|
|
962
1037
|
{ return this.parseLabeledStatement(node, maybeName, expr, context) }
|
|
@@ -1032,25 +1107,32 @@ var StandardLog;
|
|
|
1032
1107
|
this.next();
|
|
1033
1108
|
this.parseVar(init$1, true, kind);
|
|
1034
1109
|
this.finishNode(init$1, "VariableDeclaration");
|
|
1035
|
-
|
|
1036
|
-
if (this.options.ecmaVersion >= 9) {
|
|
1037
|
-
if (this.type === types$1._in) {
|
|
1038
|
-
if (awaitAt > -1) { this.unexpected(awaitAt); }
|
|
1039
|
-
} else { node.await = awaitAt > -1; }
|
|
1040
|
-
}
|
|
1041
|
-
return this.parseForIn(node, init$1)
|
|
1042
|
-
}
|
|
1043
|
-
if (awaitAt > -1) { this.unexpected(awaitAt); }
|
|
1044
|
-
return this.parseFor(node, init$1)
|
|
1110
|
+
return this.parseForAfterInit(node, init$1, awaitAt)
|
|
1045
1111
|
}
|
|
1046
1112
|
var startsWithLet = this.isContextual("let"), isForOf = false;
|
|
1113
|
+
|
|
1114
|
+
var usingKind = this.isUsing(true) ? "using" : this.isAwaitUsing(true) ? "await using" : null;
|
|
1115
|
+
if (usingKind) {
|
|
1116
|
+
var init$2 = this.startNode();
|
|
1117
|
+
this.next();
|
|
1118
|
+
if (usingKind === "await using") { this.next(); }
|
|
1119
|
+
this.parseVar(init$2, true, usingKind);
|
|
1120
|
+
this.finishNode(init$2, "VariableDeclaration");
|
|
1121
|
+
return this.parseForAfterInit(node, init$2, awaitAt)
|
|
1122
|
+
}
|
|
1123
|
+
var containsEsc = this.containsEsc;
|
|
1047
1124
|
var refDestructuringErrors = new DestructuringErrors;
|
|
1048
|
-
var
|
|
1125
|
+
var initPos = this.start;
|
|
1126
|
+
var init = awaitAt > -1
|
|
1127
|
+
? this.parseExprSubscripts(refDestructuringErrors, "await")
|
|
1128
|
+
: this.parseExpression(true, refDestructuringErrors);
|
|
1049
1129
|
if (this.type === types$1._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
|
|
1050
|
-
if (
|
|
1051
|
-
if (this.type === types$1._in) {
|
|
1052
|
-
|
|
1053
|
-
|
|
1130
|
+
if (awaitAt > -1) { // implies `ecmaVersion >= 9` (see declaration of awaitAt)
|
|
1131
|
+
if (this.type === types$1._in) { this.unexpected(awaitAt); }
|
|
1132
|
+
node.await = true;
|
|
1133
|
+
} else if (isForOf && this.options.ecmaVersion >= 8) {
|
|
1134
|
+
if (init.start === initPos && !containsEsc && init.type === "Identifier" && init.name === "async") { this.unexpected(); }
|
|
1135
|
+
else if (this.options.ecmaVersion >= 9) { node.await = false; }
|
|
1054
1136
|
}
|
|
1055
1137
|
if (startsWithLet && isForOf) { this.raise(init.start, "The left-hand side of a for-of loop may not start with 'let'."); }
|
|
1056
1138
|
this.toAssignable(init, false, refDestructuringErrors);
|
|
@@ -1063,6 +1145,20 @@ var StandardLog;
|
|
|
1063
1145
|
return this.parseFor(node, init)
|
|
1064
1146
|
};
|
|
1065
1147
|
|
|
1148
|
+
// Helper method to parse for loop after variable initialization
|
|
1149
|
+
pp$8.parseForAfterInit = function(node, init, awaitAt) {
|
|
1150
|
+
if ((this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual("of"))) && init.declarations.length === 1) {
|
|
1151
|
+
if (this.options.ecmaVersion >= 9) {
|
|
1152
|
+
if (this.type === types$1._in) {
|
|
1153
|
+
if (awaitAt > -1) { this.unexpected(awaitAt); }
|
|
1154
|
+
} else { node.await = awaitAt > -1; }
|
|
1155
|
+
}
|
|
1156
|
+
return this.parseForIn(node, init)
|
|
1157
|
+
}
|
|
1158
|
+
if (awaitAt > -1) { this.unexpected(awaitAt); }
|
|
1159
|
+
return this.parseFor(node, init)
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1066
1162
|
pp$8.parseFunctionStatement = function(node, isAsync, declarationPosition) {
|
|
1067
1163
|
this.next();
|
|
1068
1164
|
return this.parseFunction(node, FUNC_STATEMENT | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT), false, isAsync)
|
|
@@ -1144,6 +1240,16 @@ var StandardLog;
|
|
|
1144
1240
|
|
|
1145
1241
|
var empty$1 = [];
|
|
1146
1242
|
|
|
1243
|
+
pp$8.parseCatchClauseParam = function() {
|
|
1244
|
+
var param = this.parseBindingAtom();
|
|
1245
|
+
var simple = param.type === "Identifier";
|
|
1246
|
+
this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0);
|
|
1247
|
+
this.checkLValPattern(param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL);
|
|
1248
|
+
this.expect(types$1.parenR);
|
|
1249
|
+
|
|
1250
|
+
return param
|
|
1251
|
+
};
|
|
1252
|
+
|
|
1147
1253
|
pp$8.parseTryStatement = function(node) {
|
|
1148
1254
|
this.next();
|
|
1149
1255
|
node.block = this.parseBlock();
|
|
@@ -1152,11 +1258,7 @@ var StandardLog;
|
|
|
1152
1258
|
var clause = this.startNode();
|
|
1153
1259
|
this.next();
|
|
1154
1260
|
if (this.eat(types$1.parenL)) {
|
|
1155
|
-
clause.param = this.
|
|
1156
|
-
var simple = clause.param.type === "Identifier";
|
|
1157
|
-
this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0);
|
|
1158
|
-
this.checkLValPattern(clause.param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL);
|
|
1159
|
-
this.expect(types$1.parenR);
|
|
1261
|
+
clause.param = this.parseCatchClauseParam();
|
|
1160
1262
|
} else {
|
|
1161
1263
|
if (this.options.ecmaVersion < 10) { this.unexpected(); }
|
|
1162
1264
|
clause.param = null;
|
|
@@ -1172,9 +1274,9 @@ var StandardLog;
|
|
|
1172
1274
|
return this.finishNode(node, "TryStatement")
|
|
1173
1275
|
};
|
|
1174
1276
|
|
|
1175
|
-
pp$8.parseVarStatement = function(node, kind) {
|
|
1277
|
+
pp$8.parseVarStatement = function(node, kind, allowMissingInitializer) {
|
|
1176
1278
|
this.next();
|
|
1177
|
-
this.parseVar(node, false, kind);
|
|
1279
|
+
this.parseVar(node, false, kind, allowMissingInitializer);
|
|
1178
1280
|
this.semicolon();
|
|
1179
1281
|
return this.finishNode(node, "VariableDeclaration")
|
|
1180
1282
|
};
|
|
@@ -1303,7 +1405,7 @@ var StandardLog;
|
|
|
1303
1405
|
|
|
1304
1406
|
// Parse a list of variable declarations.
|
|
1305
1407
|
|
|
1306
|
-
pp$8.parseVar = function(node, isFor, kind) {
|
|
1408
|
+
pp$8.parseVar = function(node, isFor, kind, allowMissingInitializer) {
|
|
1307
1409
|
node.declarations = [];
|
|
1308
1410
|
node.kind = kind;
|
|
1309
1411
|
for (;;) {
|
|
@@ -1311,9 +1413,11 @@ var StandardLog;
|
|
|
1311
1413
|
this.parseVarId(decl, kind);
|
|
1312
1414
|
if (this.eat(types$1.eq)) {
|
|
1313
1415
|
decl.init = this.parseMaybeAssign(isFor);
|
|
1314
|
-
} else if (kind === "const" && !(this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual("of")))) {
|
|
1416
|
+
} else if (!allowMissingInitializer && kind === "const" && !(this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual("of")))) {
|
|
1315
1417
|
this.unexpected();
|
|
1316
|
-
} else if (
|
|
1418
|
+
} else if (!allowMissingInitializer && (kind === "using" || kind === "await using") && this.options.ecmaVersion >= 17 && this.type !== types$1._in && !this.isContextual("of")) {
|
|
1419
|
+
this.raise(this.lastTokEnd, ("Missing initializer in " + kind + " declaration"));
|
|
1420
|
+
} else if (!allowMissingInitializer && decl.id.type !== "Identifier" && !(isFor && (this.type === types$1._in || this.isContextual("of")))) {
|
|
1317
1421
|
this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value");
|
|
1318
1422
|
} else {
|
|
1319
1423
|
decl.init = null;
|
|
@@ -1325,7 +1429,10 @@ var StandardLog;
|
|
|
1325
1429
|
};
|
|
1326
1430
|
|
|
1327
1431
|
pp$8.parseVarId = function(decl, kind) {
|
|
1328
|
-
decl.id =
|
|
1432
|
+
decl.id = kind === "using" || kind === "await using"
|
|
1433
|
+
? this.parseIdent()
|
|
1434
|
+
: this.parseBindingAtom();
|
|
1435
|
+
|
|
1329
1436
|
this.checkLValPattern(decl.id, kind === "var" ? BIND_VAR : BIND_LEXICAL, false);
|
|
1330
1437
|
};
|
|
1331
1438
|
|
|
@@ -1402,7 +1509,7 @@ var StandardLog;
|
|
|
1402
1509
|
if (element) {
|
|
1403
1510
|
classBody.body.push(element);
|
|
1404
1511
|
if (element.type === "MethodDefinition" && element.kind === "constructor") {
|
|
1405
|
-
if (hadConstructor) { this.
|
|
1512
|
+
if (hadConstructor) { this.raiseRecoverable(element.start, "Duplicate constructor in the same class"); }
|
|
1406
1513
|
hadConstructor = true;
|
|
1407
1514
|
} else if (element.key && element.key.type === "PrivateIdentifier" && isPrivateNameConflicted(privateNameMap, element)) {
|
|
1408
1515
|
this.raiseRecoverable(element.key.start, ("Identifier '#" + (element.key.name) + "' has already been declared"));
|
|
@@ -1544,11 +1651,9 @@ var StandardLog;
|
|
|
1544
1651
|
|
|
1545
1652
|
if (this.eat(types$1.eq)) {
|
|
1546
1653
|
// To raise SyntaxError if 'arguments' exists in the initializer.
|
|
1547
|
-
|
|
1548
|
-
var inClassFieldInit = scope.inClassFieldInit;
|
|
1549
|
-
scope.inClassFieldInit = true;
|
|
1654
|
+
this.enterScope(SCOPE_CLASS_FIELD_INIT | SCOPE_SUPER);
|
|
1550
1655
|
field.value = this.parseMaybeAssign();
|
|
1551
|
-
|
|
1656
|
+
this.exitScope();
|
|
1552
1657
|
} else {
|
|
1553
1658
|
field.value = null;
|
|
1554
1659
|
}
|
|
@@ -1600,6 +1705,7 @@ var StandardLog;
|
|
|
1600
1705
|
var ref = this.privateNameStack.pop();
|
|
1601
1706
|
var declared = ref.declared;
|
|
1602
1707
|
var used = ref.used;
|
|
1708
|
+
if (!this.options.checkPrivateFields) { return }
|
|
1603
1709
|
var len = this.privateNameStack.length;
|
|
1604
1710
|
var parent = len === 0 ? null : this.privateNameStack[len - 1];
|
|
1605
1711
|
for (var i = 0; i < used.length; ++i) {
|
|
@@ -1651,56 +1757,54 @@ var StandardLog;
|
|
|
1651
1757
|
|
|
1652
1758
|
// Parses module export declaration.
|
|
1653
1759
|
|
|
1760
|
+
pp$8.parseExportAllDeclaration = function(node, exports) {
|
|
1761
|
+
if (this.options.ecmaVersion >= 11) {
|
|
1762
|
+
if (this.eatContextual("as")) {
|
|
1763
|
+
node.exported = this.parseModuleExportName();
|
|
1764
|
+
this.checkExport(exports, node.exported, this.lastTokStart);
|
|
1765
|
+
} else {
|
|
1766
|
+
node.exported = null;
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
this.expectContextual("from");
|
|
1770
|
+
if (this.type !== types$1.string) { this.unexpected(); }
|
|
1771
|
+
node.source = this.parseExprAtom();
|
|
1772
|
+
if (this.options.ecmaVersion >= 16)
|
|
1773
|
+
{ node.attributes = this.parseWithClause(); }
|
|
1774
|
+
this.semicolon();
|
|
1775
|
+
return this.finishNode(node, "ExportAllDeclaration")
|
|
1776
|
+
};
|
|
1777
|
+
|
|
1654
1778
|
pp$8.parseExport = function(node, exports) {
|
|
1655
1779
|
this.next();
|
|
1656
1780
|
// export * from '...'
|
|
1657
1781
|
if (this.eat(types$1.star)) {
|
|
1658
|
-
|
|
1659
|
-
if (this.eatContextual("as")) {
|
|
1660
|
-
node.exported = this.parseModuleExportName();
|
|
1661
|
-
this.checkExport(exports, node.exported, this.lastTokStart);
|
|
1662
|
-
} else {
|
|
1663
|
-
node.exported = null;
|
|
1664
|
-
}
|
|
1665
|
-
}
|
|
1666
|
-
this.expectContextual("from");
|
|
1667
|
-
if (this.type !== types$1.string) { this.unexpected(); }
|
|
1668
|
-
node.source = this.parseExprAtom();
|
|
1669
|
-
this.semicolon();
|
|
1670
|
-
return this.finishNode(node, "ExportAllDeclaration")
|
|
1782
|
+
return this.parseExportAllDeclaration(node, exports)
|
|
1671
1783
|
}
|
|
1672
1784
|
if (this.eat(types$1._default)) { // export default ...
|
|
1673
1785
|
this.checkExport(exports, "default", this.lastTokStart);
|
|
1674
|
-
|
|
1675
|
-
if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) {
|
|
1676
|
-
var fNode = this.startNode();
|
|
1677
|
-
this.next();
|
|
1678
|
-
if (isAsync) { this.next(); }
|
|
1679
|
-
node.declaration = this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync);
|
|
1680
|
-
} else if (this.type === types$1._class) {
|
|
1681
|
-
var cNode = this.startNode();
|
|
1682
|
-
node.declaration = this.parseClass(cNode, "nullableID");
|
|
1683
|
-
} else {
|
|
1684
|
-
node.declaration = this.parseMaybeAssign();
|
|
1685
|
-
this.semicolon();
|
|
1686
|
-
}
|
|
1786
|
+
node.declaration = this.parseExportDefaultDeclaration();
|
|
1687
1787
|
return this.finishNode(node, "ExportDefaultDeclaration")
|
|
1688
1788
|
}
|
|
1689
1789
|
// export var|const|let|function|class ...
|
|
1690
1790
|
if (this.shouldParseExportStatement()) {
|
|
1691
|
-
node.declaration = this.
|
|
1791
|
+
node.declaration = this.parseExportDeclaration(node);
|
|
1692
1792
|
if (node.declaration.type === "VariableDeclaration")
|
|
1693
1793
|
{ this.checkVariableExport(exports, node.declaration.declarations); }
|
|
1694
1794
|
else
|
|
1695
1795
|
{ this.checkExport(exports, node.declaration.id, node.declaration.id.start); }
|
|
1696
1796
|
node.specifiers = [];
|
|
1697
1797
|
node.source = null;
|
|
1798
|
+
if (this.options.ecmaVersion >= 16)
|
|
1799
|
+
{ node.attributes = []; }
|
|
1698
1800
|
} else { // export { x, y as z } [from '...']
|
|
1699
1801
|
node.declaration = null;
|
|
1700
1802
|
node.specifiers = this.parseExportSpecifiers(exports);
|
|
1701
1803
|
if (this.eatContextual("from")) {
|
|
1702
1804
|
if (this.type !== types$1.string) { this.unexpected(); }
|
|
1703
1805
|
node.source = this.parseExprAtom();
|
|
1806
|
+
if (this.options.ecmaVersion >= 16)
|
|
1807
|
+
{ node.attributes = this.parseWithClause(); }
|
|
1704
1808
|
} else {
|
|
1705
1809
|
for (var i = 0, list = node.specifiers; i < list.length; i += 1) {
|
|
1706
1810
|
// check for keywords used as local names
|
|
@@ -1716,12 +1820,35 @@ var StandardLog;
|
|
|
1716
1820
|
}
|
|
1717
1821
|
|
|
1718
1822
|
node.source = null;
|
|
1823
|
+
if (this.options.ecmaVersion >= 16)
|
|
1824
|
+
{ node.attributes = []; }
|
|
1719
1825
|
}
|
|
1720
1826
|
this.semicolon();
|
|
1721
1827
|
}
|
|
1722
1828
|
return this.finishNode(node, "ExportNamedDeclaration")
|
|
1723
1829
|
};
|
|
1724
1830
|
|
|
1831
|
+
pp$8.parseExportDeclaration = function(node) {
|
|
1832
|
+
return this.parseStatement(null)
|
|
1833
|
+
};
|
|
1834
|
+
|
|
1835
|
+
pp$8.parseExportDefaultDeclaration = function() {
|
|
1836
|
+
var isAsync;
|
|
1837
|
+
if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) {
|
|
1838
|
+
var fNode = this.startNode();
|
|
1839
|
+
this.next();
|
|
1840
|
+
if (isAsync) { this.next(); }
|
|
1841
|
+
return this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync)
|
|
1842
|
+
} else if (this.type === types$1._class) {
|
|
1843
|
+
var cNode = this.startNode();
|
|
1844
|
+
return this.parseClass(cNode, "nullableID")
|
|
1845
|
+
} else {
|
|
1846
|
+
var declaration = this.parseMaybeAssign();
|
|
1847
|
+
this.semicolon();
|
|
1848
|
+
return declaration
|
|
1849
|
+
}
|
|
1850
|
+
};
|
|
1851
|
+
|
|
1725
1852
|
pp$8.checkExport = function(exports, name, pos) {
|
|
1726
1853
|
if (!exports) { return }
|
|
1727
1854
|
if (typeof name !== "string")
|
|
@@ -1754,8 +1881,6 @@ var StandardLog;
|
|
|
1754
1881
|
{ this.checkPatternExport(exports, pat.left); }
|
|
1755
1882
|
else if (type === "RestElement")
|
|
1756
1883
|
{ this.checkPatternExport(exports, pat.argument); }
|
|
1757
|
-
else if (type === "ParenthesizedExpression")
|
|
1758
|
-
{ this.checkPatternExport(exports, pat.expression); }
|
|
1759
1884
|
};
|
|
1760
1885
|
|
|
1761
1886
|
pp$8.checkVariableExport = function(exports, decls) {
|
|
@@ -1779,6 +1904,20 @@ var StandardLog;
|
|
|
1779
1904
|
|
|
1780
1905
|
// Parses a comma-separated list of module exports.
|
|
1781
1906
|
|
|
1907
|
+
pp$8.parseExportSpecifier = function(exports) {
|
|
1908
|
+
var node = this.startNode();
|
|
1909
|
+
node.local = this.parseModuleExportName();
|
|
1910
|
+
|
|
1911
|
+
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
1912
|
+
this.checkExport(
|
|
1913
|
+
exports,
|
|
1914
|
+
node.exported,
|
|
1915
|
+
node.exported.start
|
|
1916
|
+
);
|
|
1917
|
+
|
|
1918
|
+
return this.finishNode(node, "ExportSpecifier")
|
|
1919
|
+
};
|
|
1920
|
+
|
|
1782
1921
|
pp$8.parseExportSpecifiers = function(exports) {
|
|
1783
1922
|
var nodes = [], first = true;
|
|
1784
1923
|
// export { x, y as z } [from '...']
|
|
@@ -1789,15 +1928,7 @@ var StandardLog;
|
|
|
1789
1928
|
if (this.afterTrailingComma(types$1.braceR)) { break }
|
|
1790
1929
|
} else { first = false; }
|
|
1791
1930
|
|
|
1792
|
-
|
|
1793
|
-
node.local = this.parseModuleExportName();
|
|
1794
|
-
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
1795
|
-
this.checkExport(
|
|
1796
|
-
exports,
|
|
1797
|
-
node.exported,
|
|
1798
|
-
node.exported.start
|
|
1799
|
-
);
|
|
1800
|
-
nodes.push(this.finishNode(node, "ExportSpecifier"));
|
|
1931
|
+
nodes.push(this.parseExportSpecifier(exports));
|
|
1801
1932
|
}
|
|
1802
1933
|
return nodes
|
|
1803
1934
|
};
|
|
@@ -1806,6 +1937,7 @@ var StandardLog;
|
|
|
1806
1937
|
|
|
1807
1938
|
pp$8.parseImport = function(node) {
|
|
1808
1939
|
this.next();
|
|
1940
|
+
|
|
1809
1941
|
// import '...'
|
|
1810
1942
|
if (this.type === types$1.string) {
|
|
1811
1943
|
node.specifiers = empty$1;
|
|
@@ -1815,29 +1947,54 @@ var StandardLog;
|
|
|
1815
1947
|
this.expectContextual("from");
|
|
1816
1948
|
node.source = this.type === types$1.string ? this.parseExprAtom() : this.unexpected();
|
|
1817
1949
|
}
|
|
1950
|
+
if (this.options.ecmaVersion >= 16)
|
|
1951
|
+
{ node.attributes = this.parseWithClause(); }
|
|
1818
1952
|
this.semicolon();
|
|
1819
1953
|
return this.finishNode(node, "ImportDeclaration")
|
|
1820
1954
|
};
|
|
1821
1955
|
|
|
1822
1956
|
// Parses a comma-separated list of module imports.
|
|
1823
1957
|
|
|
1958
|
+
pp$8.parseImportSpecifier = function() {
|
|
1959
|
+
var node = this.startNode();
|
|
1960
|
+
node.imported = this.parseModuleExportName();
|
|
1961
|
+
|
|
1962
|
+
if (this.eatContextual("as")) {
|
|
1963
|
+
node.local = this.parseIdent();
|
|
1964
|
+
} else {
|
|
1965
|
+
this.checkUnreserved(node.imported);
|
|
1966
|
+
node.local = node.imported;
|
|
1967
|
+
}
|
|
1968
|
+
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
1969
|
+
|
|
1970
|
+
return this.finishNode(node, "ImportSpecifier")
|
|
1971
|
+
};
|
|
1972
|
+
|
|
1973
|
+
pp$8.parseImportDefaultSpecifier = function() {
|
|
1974
|
+
// import defaultObj, { x, y as z } from '...'
|
|
1975
|
+
var node = this.startNode();
|
|
1976
|
+
node.local = this.parseIdent();
|
|
1977
|
+
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
1978
|
+
return this.finishNode(node, "ImportDefaultSpecifier")
|
|
1979
|
+
};
|
|
1980
|
+
|
|
1981
|
+
pp$8.parseImportNamespaceSpecifier = function() {
|
|
1982
|
+
var node = this.startNode();
|
|
1983
|
+
this.next();
|
|
1984
|
+
this.expectContextual("as");
|
|
1985
|
+
node.local = this.parseIdent();
|
|
1986
|
+
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
1987
|
+
return this.finishNode(node, "ImportNamespaceSpecifier")
|
|
1988
|
+
};
|
|
1989
|
+
|
|
1824
1990
|
pp$8.parseImportSpecifiers = function() {
|
|
1825
1991
|
var nodes = [], first = true;
|
|
1826
1992
|
if (this.type === types$1.name) {
|
|
1827
|
-
|
|
1828
|
-
var node = this.startNode();
|
|
1829
|
-
node.local = this.parseIdent();
|
|
1830
|
-
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
1831
|
-
nodes.push(this.finishNode(node, "ImportDefaultSpecifier"));
|
|
1993
|
+
nodes.push(this.parseImportDefaultSpecifier());
|
|
1832
1994
|
if (!this.eat(types$1.comma)) { return nodes }
|
|
1833
1995
|
}
|
|
1834
1996
|
if (this.type === types$1.star) {
|
|
1835
|
-
|
|
1836
|
-
this.next();
|
|
1837
|
-
this.expectContextual("as");
|
|
1838
|
-
node$1.local = this.parseIdent();
|
|
1839
|
-
this.checkLValSimple(node$1.local, BIND_LEXICAL);
|
|
1840
|
-
nodes.push(this.finishNode(node$1, "ImportNamespaceSpecifier"));
|
|
1997
|
+
nodes.push(this.parseImportNamespaceSpecifier());
|
|
1841
1998
|
return nodes
|
|
1842
1999
|
}
|
|
1843
2000
|
this.expect(types$1.braceL);
|
|
@@ -1847,20 +2004,46 @@ var StandardLog;
|
|
|
1847
2004
|
if (this.afterTrailingComma(types$1.braceR)) { break }
|
|
1848
2005
|
} else { first = false; }
|
|
1849
2006
|
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
2007
|
+
nodes.push(this.parseImportSpecifier());
|
|
2008
|
+
}
|
|
2009
|
+
return nodes
|
|
2010
|
+
};
|
|
2011
|
+
|
|
2012
|
+
pp$8.parseWithClause = function() {
|
|
2013
|
+
var nodes = [];
|
|
2014
|
+
if (!this.eat(types$1._with)) {
|
|
2015
|
+
return nodes
|
|
2016
|
+
}
|
|
2017
|
+
this.expect(types$1.braceL);
|
|
2018
|
+
var attributeKeys = {};
|
|
2019
|
+
var first = true;
|
|
2020
|
+
while (!this.eat(types$1.braceR)) {
|
|
2021
|
+
if (!first) {
|
|
2022
|
+
this.expect(types$1.comma);
|
|
2023
|
+
if (this.afterTrailingComma(types$1.braceR)) { break }
|
|
2024
|
+
} else { first = false; }
|
|
2025
|
+
|
|
2026
|
+
var attr = this.parseImportAttribute();
|
|
2027
|
+
var keyName = attr.key.type === "Identifier" ? attr.key.name : attr.key.value;
|
|
2028
|
+
if (hasOwn(attributeKeys, keyName))
|
|
2029
|
+
{ this.raiseRecoverable(attr.key.start, "Duplicate attribute key '" + keyName + "'"); }
|
|
2030
|
+
attributeKeys[keyName] = true;
|
|
2031
|
+
nodes.push(attr);
|
|
1860
2032
|
}
|
|
1861
2033
|
return nodes
|
|
1862
2034
|
};
|
|
1863
2035
|
|
|
2036
|
+
pp$8.parseImportAttribute = function() {
|
|
2037
|
+
var node = this.startNode();
|
|
2038
|
+
node.key = this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
|
|
2039
|
+
this.expect(types$1.colon);
|
|
2040
|
+
if (this.type !== types$1.string) {
|
|
2041
|
+
this.unexpected();
|
|
2042
|
+
}
|
|
2043
|
+
node.value = this.parseExprAtom();
|
|
2044
|
+
return this.finishNode(node, "ImportAttribute")
|
|
2045
|
+
};
|
|
2046
|
+
|
|
1864
2047
|
pp$8.parseModuleExportName = function() {
|
|
1865
2048
|
if (this.options.ecmaVersion >= 13 && this.type === types$1.string) {
|
|
1866
2049
|
var stringLiteral = this.parseLiteral(this.value);
|
|
@@ -2029,7 +2212,7 @@ var StandardLog;
|
|
|
2029
2212
|
return this.parseIdent()
|
|
2030
2213
|
};
|
|
2031
2214
|
|
|
2032
|
-
pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma) {
|
|
2215
|
+
pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {
|
|
2033
2216
|
var elts = [], first = true;
|
|
2034
2217
|
while (!this.eat(close)) {
|
|
2035
2218
|
if (first) { first = false; }
|
|
@@ -2042,18 +2225,22 @@ var StandardLog;
|
|
|
2042
2225
|
var rest = this.parseRestBinding();
|
|
2043
2226
|
this.parseBindingListItem(rest);
|
|
2044
2227
|
elts.push(rest);
|
|
2045
|
-
if (this.type === types$1.comma) { this.
|
|
2228
|
+
if (this.type === types$1.comma) { this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"); }
|
|
2046
2229
|
this.expect(close);
|
|
2047
2230
|
break
|
|
2048
2231
|
} else {
|
|
2049
|
-
|
|
2050
|
-
this.parseBindingListItem(elem);
|
|
2051
|
-
elts.push(elem);
|
|
2232
|
+
elts.push(this.parseAssignableListItem(allowModifiers));
|
|
2052
2233
|
}
|
|
2053
2234
|
}
|
|
2054
2235
|
return elts
|
|
2055
2236
|
};
|
|
2056
2237
|
|
|
2238
|
+
pp$7.parseAssignableListItem = function(allowModifiers) {
|
|
2239
|
+
var elem = this.parseMaybeDefault(this.start, this.startLoc);
|
|
2240
|
+
this.parseBindingListItem(elem);
|
|
2241
|
+
return elem
|
|
2242
|
+
};
|
|
2243
|
+
|
|
2057
2244
|
pp$7.parseBindingListItem = function(param) {
|
|
2058
2245
|
return param
|
|
2059
2246
|
};
|
|
@@ -2219,6 +2406,9 @@ var StandardLog;
|
|
|
2219
2406
|
};
|
|
2220
2407
|
|
|
2221
2408
|
// The algorithm used to determine whether a regexp can appear at a
|
|
2409
|
+
// given point in the program is loosely based on sweet.js' approach.
|
|
2410
|
+
// See https://github.com/mozilla/sweet.js/wiki/design
|
|
2411
|
+
|
|
2222
2412
|
|
|
2223
2413
|
var TokContext = function TokContext(token, isExpr, preserveSpace, override, generator) {
|
|
2224
2414
|
this.token = token;
|
|
@@ -2291,7 +2481,7 @@ var StandardLog;
|
|
|
2291
2481
|
{ this.exprAllowed = type.beforeExpr; }
|
|
2292
2482
|
};
|
|
2293
2483
|
|
|
2294
|
-
// Used to handle
|
|
2484
|
+
// Used to handle edge cases when token context could not be inferred correctly during tokenization phase
|
|
2295
2485
|
|
|
2296
2486
|
pp$6.overrideContext = function(tokenCtx) {
|
|
2297
2487
|
if (this.curContext() !== tokenCtx) {
|
|
@@ -2344,6 +2534,11 @@ var StandardLog;
|
|
|
2344
2534
|
this.exprAllowed = false;
|
|
2345
2535
|
};
|
|
2346
2536
|
|
|
2537
|
+
types$1.colon.updateContext = function() {
|
|
2538
|
+
if (this.curContext().token === "function") { this.context.pop(); }
|
|
2539
|
+
this.exprAllowed = true;
|
|
2540
|
+
};
|
|
2541
|
+
|
|
2347
2542
|
types$1.backQuote.updateContext = function() {
|
|
2348
2543
|
if (this.curContext() === types.q_tmpl)
|
|
2349
2544
|
{ this.context.pop(); }
|
|
@@ -2374,6 +2569,23 @@ var StandardLog;
|
|
|
2374
2569
|
};
|
|
2375
2570
|
|
|
2376
2571
|
// A recursive descent parser operates by defining functions for all
|
|
2572
|
+
// syntactic elements, and recursively calling those, each function
|
|
2573
|
+
// advancing the input stream and returning an AST node. Precedence
|
|
2574
|
+
// of constructs (for example, the fact that `!x[1]` means `!(x[1])`
|
|
2575
|
+
// instead of `(!x)[1]` is handled by the fact that the parser
|
|
2576
|
+
// function that parses unary prefix operators is called first, and
|
|
2577
|
+
// in turn calls the function that parses `[]` subscripts — that
|
|
2578
|
+
// way, it'll receive the node for `x[1]` already parsed, and wraps
|
|
2579
|
+
// *that* in the unary operator node.
|
|
2580
|
+
//
|
|
2581
|
+
// Acorn uses an [operator precedence parser][opp] to handle binary
|
|
2582
|
+
// operator precedence, because it is much more compact than using
|
|
2583
|
+
// the technique outlined above, which uses different, nesting
|
|
2584
|
+
// functions to specify precedence, for all of the ten binary
|
|
2585
|
+
// precedence levels that JavaScript defines.
|
|
2586
|
+
//
|
|
2587
|
+
// [opp]: http://en.wikipedia.org/wiki/Operator-precedence_parser
|
|
2588
|
+
|
|
2377
2589
|
|
|
2378
2590
|
var pp$5 = Parser.prototype;
|
|
2379
2591
|
|
|
@@ -2595,15 +2807,14 @@ var StandardLog;
|
|
|
2595
2807
|
node.argument = this.parseMaybeUnary(null, true, update, forInit);
|
|
2596
2808
|
this.checkExpressionErrors(refDestructuringErrors, true);
|
|
2597
2809
|
if (update) { this.checkLValSimple(node.argument); }
|
|
2598
|
-
else if (this.strict && node.operator === "delete" &&
|
|
2599
|
-
node.argument.type === "Identifier")
|
|
2810
|
+
else if (this.strict && node.operator === "delete" && isLocalVariableAccess(node.argument))
|
|
2600
2811
|
{ this.raiseRecoverable(node.start, "Deleting local variable in strict mode"); }
|
|
2601
2812
|
else if (node.operator === "delete" && isPrivateFieldAccess(node.argument))
|
|
2602
2813
|
{ this.raiseRecoverable(node.start, "Private fields can not be deleted"); }
|
|
2603
2814
|
else { sawUnary = true; }
|
|
2604
2815
|
expr = this.finishNode(node, update ? "UpdateExpression" : "UnaryExpression");
|
|
2605
2816
|
} else if (!sawUnary && this.type === types$1.privateId) {
|
|
2606
|
-
if (forInit || this.privateNameStack.length === 0) { this.unexpected(); }
|
|
2817
|
+
if ((forInit || this.privateNameStack.length === 0) && this.options.checkPrivateFields) { this.unexpected(); }
|
|
2607
2818
|
expr = this.parsePrivateIdent();
|
|
2608
2819
|
// only could be private fields in 'in', such as #x in obj
|
|
2609
2820
|
if (this.type !== types$1._in) { this.unexpected(); }
|
|
@@ -2631,10 +2842,18 @@ var StandardLog;
|
|
|
2631
2842
|
}
|
|
2632
2843
|
};
|
|
2633
2844
|
|
|
2845
|
+
function isLocalVariableAccess(node) {
|
|
2846
|
+
return (
|
|
2847
|
+
node.type === "Identifier" ||
|
|
2848
|
+
node.type === "ParenthesizedExpression" && isLocalVariableAccess(node.expression)
|
|
2849
|
+
)
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2634
2852
|
function isPrivateFieldAccess(node) {
|
|
2635
2853
|
return (
|
|
2636
2854
|
node.type === "MemberExpression" && node.property.type === "PrivateIdentifier" ||
|
|
2637
|
-
node.type === "ChainExpression" && isPrivateFieldAccess(node.expression)
|
|
2855
|
+
node.type === "ChainExpression" && isPrivateFieldAccess(node.expression) ||
|
|
2856
|
+
node.type === "ParenthesizedExpression" && isPrivateFieldAccess(node.expression)
|
|
2638
2857
|
)
|
|
2639
2858
|
}
|
|
2640
2859
|
|
|
@@ -2677,6 +2896,14 @@ var StandardLog;
|
|
|
2677
2896
|
}
|
|
2678
2897
|
};
|
|
2679
2898
|
|
|
2899
|
+
pp$5.shouldParseAsyncArrow = function() {
|
|
2900
|
+
return !this.canInsertSemicolon() && this.eat(types$1.arrow)
|
|
2901
|
+
};
|
|
2902
|
+
|
|
2903
|
+
pp$5.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {
|
|
2904
|
+
return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit)
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2680
2907
|
pp$5.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {
|
|
2681
2908
|
var optionalSupported = this.options.ecmaVersion >= 11;
|
|
2682
2909
|
var optional = optionalSupported && this.eat(types$1.questionDot);
|
|
@@ -2705,7 +2932,7 @@ var StandardLog;
|
|
|
2705
2932
|
this.awaitPos = 0;
|
|
2706
2933
|
this.awaitIdentPos = 0;
|
|
2707
2934
|
var exprList = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors);
|
|
2708
|
-
if (maybeAsyncArrow && !optional &&
|
|
2935
|
+
if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) {
|
|
2709
2936
|
this.checkPatternErrors(refDestructuringErrors, false);
|
|
2710
2937
|
this.checkYieldAwaitInDefaultParams();
|
|
2711
2938
|
if (this.awaitIdentPos > 0)
|
|
@@ -2713,7 +2940,7 @@ var StandardLog;
|
|
|
2713
2940
|
this.yieldPos = oldYieldPos;
|
|
2714
2941
|
this.awaitPos = oldAwaitPos;
|
|
2715
2942
|
this.awaitIdentPos = oldAwaitIdentPos;
|
|
2716
|
-
return this.
|
|
2943
|
+
return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit)
|
|
2717
2944
|
}
|
|
2718
2945
|
this.checkExpressionErrors(refDestructuringErrors, true);
|
|
2719
2946
|
this.yieldPos = oldYieldPos || this.yieldPos;
|
|
@@ -2743,7 +2970,7 @@ var StandardLog;
|
|
|
2743
2970
|
// `new`, or an expression wrapped in punctuation like `()`, `[]`,
|
|
2744
2971
|
// or `{}`.
|
|
2745
2972
|
|
|
2746
|
-
pp$5.parseExprAtom = function(refDestructuringErrors, forInit) {
|
|
2973
|
+
pp$5.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {
|
|
2747
2974
|
// If a division operator appears in an expression position, the
|
|
2748
2975
|
// tokenizer got confused, and we force it to read a regexp instead.
|
|
2749
2976
|
if (this.type === types$1.slash) { this.readRegexp(); }
|
|
@@ -2844,31 +3071,36 @@ var StandardLog;
|
|
|
2844
3071
|
|
|
2845
3072
|
case types$1._import:
|
|
2846
3073
|
if (this.options.ecmaVersion >= 11) {
|
|
2847
|
-
return this.parseExprImport()
|
|
3074
|
+
return this.parseExprImport(forNew)
|
|
2848
3075
|
} else {
|
|
2849
3076
|
return this.unexpected()
|
|
2850
3077
|
}
|
|
2851
3078
|
|
|
2852
3079
|
default:
|
|
2853
|
-
this.
|
|
3080
|
+
return this.parseExprAtomDefault()
|
|
2854
3081
|
}
|
|
2855
3082
|
};
|
|
2856
3083
|
|
|
2857
|
-
pp$5.
|
|
3084
|
+
pp$5.parseExprAtomDefault = function() {
|
|
3085
|
+
this.unexpected();
|
|
3086
|
+
};
|
|
3087
|
+
|
|
3088
|
+
pp$5.parseExprImport = function(forNew) {
|
|
2858
3089
|
var node = this.startNode();
|
|
2859
3090
|
|
|
2860
3091
|
// Consume `import` as an identifier for `import.meta`.
|
|
2861
3092
|
// Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`.
|
|
2862
3093
|
if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword import"); }
|
|
2863
|
-
|
|
3094
|
+
this.next();
|
|
2864
3095
|
|
|
2865
|
-
|
|
2866
|
-
case types$1.parenL:
|
|
3096
|
+
if (this.type === types$1.parenL && !forNew) {
|
|
2867
3097
|
return this.parseDynamicImport(node)
|
|
2868
|
-
|
|
2869
|
-
|
|
3098
|
+
} else if (this.type === types$1.dot) {
|
|
3099
|
+
var meta = this.startNodeAt(node.start, node.loc && node.loc.start);
|
|
3100
|
+
meta.name = "import";
|
|
3101
|
+
node.meta = this.finishNode(meta, "Identifier");
|
|
2870
3102
|
return this.parseImportMeta(node)
|
|
2871
|
-
|
|
3103
|
+
} else {
|
|
2872
3104
|
this.unexpected();
|
|
2873
3105
|
}
|
|
2874
3106
|
};
|
|
@@ -2879,13 +3111,32 @@ var StandardLog;
|
|
|
2879
3111
|
// Parse node.source.
|
|
2880
3112
|
node.source = this.parseMaybeAssign();
|
|
2881
3113
|
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
3114
|
+
if (this.options.ecmaVersion >= 16) {
|
|
3115
|
+
if (!this.eat(types$1.parenR)) {
|
|
3116
|
+
this.expect(types$1.comma);
|
|
3117
|
+
if (!this.afterTrailingComma(types$1.parenR)) {
|
|
3118
|
+
node.options = this.parseMaybeAssign();
|
|
3119
|
+
if (!this.eat(types$1.parenR)) {
|
|
3120
|
+
this.expect(types$1.comma);
|
|
3121
|
+
if (!this.afterTrailingComma(types$1.parenR)) {
|
|
3122
|
+
this.unexpected();
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3125
|
+
} else {
|
|
3126
|
+
node.options = null;
|
|
3127
|
+
}
|
|
2887
3128
|
} else {
|
|
2888
|
-
|
|
3129
|
+
node.options = null;
|
|
3130
|
+
}
|
|
3131
|
+
} else {
|
|
3132
|
+
// Verify ending.
|
|
3133
|
+
if (!this.eat(types$1.parenR)) {
|
|
3134
|
+
var errorPos = this.start;
|
|
3135
|
+
if (this.eat(types$1.comma) && this.eat(types$1.parenR)) {
|
|
3136
|
+
this.raiseRecoverable(errorPos, "Trailing comma is not allowed in import()");
|
|
3137
|
+
} else {
|
|
3138
|
+
this.unexpected(errorPos);
|
|
3139
|
+
}
|
|
2889
3140
|
}
|
|
2890
3141
|
}
|
|
2891
3142
|
|
|
@@ -2912,7 +3163,8 @@ var StandardLog;
|
|
|
2912
3163
|
var node = this.startNode();
|
|
2913
3164
|
node.value = value;
|
|
2914
3165
|
node.raw = this.input.slice(this.start, this.end);
|
|
2915
|
-
if (node.raw.charCodeAt(node.raw.length - 1) === 110)
|
|
3166
|
+
if (node.raw.charCodeAt(node.raw.length - 1) === 110)
|
|
3167
|
+
{ node.bigint = node.value != null ? node.value.toString() : node.raw.slice(0, -1).replace(/_/g, ""); }
|
|
2916
3168
|
this.next();
|
|
2917
3169
|
return this.finishNode(node, "Literal")
|
|
2918
3170
|
};
|
|
@@ -2924,6 +3176,10 @@ var StandardLog;
|
|
|
2924
3176
|
return val
|
|
2925
3177
|
};
|
|
2926
3178
|
|
|
3179
|
+
pp$5.shouldParseArrow = function(exprList) {
|
|
3180
|
+
return !this.canInsertSemicolon()
|
|
3181
|
+
};
|
|
3182
|
+
|
|
2927
3183
|
pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
|
|
2928
3184
|
var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;
|
|
2929
3185
|
if (this.options.ecmaVersion >= 6) {
|
|
@@ -2943,7 +3199,12 @@ var StandardLog;
|
|
|
2943
3199
|
} else if (this.type === types$1.ellipsis) {
|
|
2944
3200
|
spreadStart = this.start;
|
|
2945
3201
|
exprList.push(this.parseParenItem(this.parseRestBinding()));
|
|
2946
|
-
if (this.type === types$1.comma) {
|
|
3202
|
+
if (this.type === types$1.comma) {
|
|
3203
|
+
this.raiseRecoverable(
|
|
3204
|
+
this.start,
|
|
3205
|
+
"Comma is not permitted after the rest element"
|
|
3206
|
+
);
|
|
3207
|
+
}
|
|
2947
3208
|
break
|
|
2948
3209
|
} else {
|
|
2949
3210
|
exprList.push(this.parseMaybeAssign(false, refDestructuringErrors, this.parseParenItem));
|
|
@@ -2952,7 +3213,7 @@ var StandardLog;
|
|
|
2952
3213
|
var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc;
|
|
2953
3214
|
this.expect(types$1.parenR);
|
|
2954
3215
|
|
|
2955
|
-
if (canBeArrow &&
|
|
3216
|
+
if (canBeArrow && this.shouldParseArrow(exprList) && this.eat(types$1.arrow)) {
|
|
2956
3217
|
this.checkPatternErrors(refDestructuringErrors, false);
|
|
2957
3218
|
this.checkYieldAwaitInDefaultParams();
|
|
2958
3219
|
this.yieldPos = oldYieldPos;
|
|
@@ -3005,9 +3266,12 @@ var StandardLog;
|
|
|
3005
3266
|
pp$5.parseNew = function() {
|
|
3006
3267
|
if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword new"); }
|
|
3007
3268
|
var node = this.startNode();
|
|
3008
|
-
|
|
3009
|
-
if (this.options.ecmaVersion >= 6 && this.
|
|
3010
|
-
|
|
3269
|
+
this.next();
|
|
3270
|
+
if (this.options.ecmaVersion >= 6 && this.type === types$1.dot) {
|
|
3271
|
+
var meta = this.startNodeAt(node.start, node.loc && node.loc.start);
|
|
3272
|
+
meta.name = "new";
|
|
3273
|
+
node.meta = this.finishNode(meta, "Identifier");
|
|
3274
|
+
this.next();
|
|
3011
3275
|
var containsEsc = this.containsEsc;
|
|
3012
3276
|
node.property = this.parseIdent(true);
|
|
3013
3277
|
if (node.property.name !== "target")
|
|
@@ -3018,11 +3282,8 @@ var StandardLog;
|
|
|
3018
3282
|
{ this.raiseRecoverable(node.start, "'new.target' can only be used in functions and class static block"); }
|
|
3019
3283
|
return this.finishNode(node, "MetaProperty")
|
|
3020
3284
|
}
|
|
3021
|
-
var startPos = this.start, startLoc = this.startLoc
|
|
3022
|
-
node.callee = this.parseSubscripts(this.parseExprAtom(), startPos, startLoc, true, false);
|
|
3023
|
-
if (isImport && node.callee.type === "ImportExpression") {
|
|
3024
|
-
this.raise(startPos, "Cannot use new with import()");
|
|
3025
|
-
}
|
|
3285
|
+
var startPos = this.start, startLoc = this.startLoc;
|
|
3286
|
+
node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false);
|
|
3026
3287
|
if (this.eat(types$1.parenL)) { node.arguments = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false); }
|
|
3027
3288
|
else { node.arguments = empty; }
|
|
3028
3289
|
return this.finishNode(node, "NewExpression")
|
|
@@ -3039,7 +3300,7 @@ var StandardLog;
|
|
|
3039
3300
|
this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal");
|
|
3040
3301
|
}
|
|
3041
3302
|
elem.value = {
|
|
3042
|
-
raw: this.value,
|
|
3303
|
+
raw: this.value.replace(/\r\n?/g, "\n"),
|
|
3043
3304
|
cooked: null
|
|
3044
3305
|
};
|
|
3045
3306
|
} else {
|
|
@@ -3104,7 +3365,7 @@ var StandardLog;
|
|
|
3104
3365
|
if (isPattern) {
|
|
3105
3366
|
prop.argument = this.parseIdent(false);
|
|
3106
3367
|
if (this.type === types$1.comma) {
|
|
3107
|
-
this.
|
|
3368
|
+
this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
|
|
3108
3369
|
}
|
|
3109
3370
|
return this.finishNode(prop, "RestElement")
|
|
3110
3371
|
}
|
|
@@ -3140,6 +3401,24 @@ var StandardLog;
|
|
|
3140
3401
|
return this.finishNode(prop, "Property")
|
|
3141
3402
|
};
|
|
3142
3403
|
|
|
3404
|
+
pp$5.parseGetterSetter = function(prop) {
|
|
3405
|
+
var kind = prop.key.name;
|
|
3406
|
+
this.parsePropertyName(prop);
|
|
3407
|
+
prop.value = this.parseMethod(false);
|
|
3408
|
+
prop.kind = kind;
|
|
3409
|
+
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
3410
|
+
if (prop.value.params.length !== paramCount) {
|
|
3411
|
+
var start = prop.value.start;
|
|
3412
|
+
if (prop.kind === "get")
|
|
3413
|
+
{ this.raiseRecoverable(start, "getter should have no params"); }
|
|
3414
|
+
else
|
|
3415
|
+
{ this.raiseRecoverable(start, "setter should have exactly one param"); }
|
|
3416
|
+
} else {
|
|
3417
|
+
if (prop.kind === "set" && prop.value.params[0].type === "RestElement")
|
|
3418
|
+
{ this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params"); }
|
|
3419
|
+
}
|
|
3420
|
+
};
|
|
3421
|
+
|
|
3143
3422
|
pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {
|
|
3144
3423
|
if ((isGenerator || isAsync) && this.type === types$1.colon)
|
|
3145
3424
|
{ this.unexpected(); }
|
|
@@ -3149,34 +3428,20 @@ var StandardLog;
|
|
|
3149
3428
|
prop.kind = "init";
|
|
3150
3429
|
} else if (this.options.ecmaVersion >= 6 && this.type === types$1.parenL) {
|
|
3151
3430
|
if (isPattern) { this.unexpected(); }
|
|
3152
|
-
prop.kind = "init";
|
|
3153
3431
|
prop.method = true;
|
|
3154
3432
|
prop.value = this.parseMethod(isGenerator, isAsync);
|
|
3433
|
+
prop.kind = "init";
|
|
3155
3434
|
} else if (!isPattern && !containsEsc &&
|
|
3156
3435
|
this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === "Identifier" &&
|
|
3157
3436
|
(prop.key.name === "get" || prop.key.name === "set") &&
|
|
3158
3437
|
(this.type !== types$1.comma && this.type !== types$1.braceR && this.type !== types$1.eq)) {
|
|
3159
3438
|
if (isGenerator || isAsync) { this.unexpected(); }
|
|
3160
|
-
|
|
3161
|
-
this.parsePropertyName(prop);
|
|
3162
|
-
prop.value = this.parseMethod(false);
|
|
3163
|
-
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
3164
|
-
if (prop.value.params.length !== paramCount) {
|
|
3165
|
-
var start = prop.value.start;
|
|
3166
|
-
if (prop.kind === "get")
|
|
3167
|
-
{ this.raiseRecoverable(start, "getter should have no params"); }
|
|
3168
|
-
else
|
|
3169
|
-
{ this.raiseRecoverable(start, "setter should have exactly one param"); }
|
|
3170
|
-
} else {
|
|
3171
|
-
if (prop.kind === "set" && prop.value.params[0].type === "RestElement")
|
|
3172
|
-
{ this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params"); }
|
|
3173
|
-
}
|
|
3439
|
+
this.parseGetterSetter(prop);
|
|
3174
3440
|
} else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === "Identifier") {
|
|
3175
3441
|
if (isGenerator || isAsync) { this.unexpected(); }
|
|
3176
3442
|
this.checkUnreserved(prop.key);
|
|
3177
3443
|
if (prop.key.name === "await" && !this.awaitIdentPos)
|
|
3178
3444
|
{ this.awaitIdentPos = startPos; }
|
|
3179
|
-
prop.kind = "init";
|
|
3180
3445
|
if (isPattern) {
|
|
3181
3446
|
prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));
|
|
3182
3447
|
} else if (this.type === types$1.eq && refDestructuringErrors) {
|
|
@@ -3186,6 +3451,7 @@ var StandardLog;
|
|
|
3186
3451
|
} else {
|
|
3187
3452
|
prop.value = this.copyNode(prop.key);
|
|
3188
3453
|
}
|
|
3454
|
+
prop.kind = "init";
|
|
3189
3455
|
prop.shorthand = true;
|
|
3190
3456
|
} else { this.unexpected(); }
|
|
3191
3457
|
};
|
|
@@ -3361,7 +3627,7 @@ var StandardLog;
|
|
|
3361
3627
|
{ this.raiseRecoverable(start, "Cannot use 'yield' as identifier inside a generator"); }
|
|
3362
3628
|
if (this.inAsync && name === "await")
|
|
3363
3629
|
{ this.raiseRecoverable(start, "Cannot use 'await' as identifier inside an async function"); }
|
|
3364
|
-
if (this.currentThisScope().
|
|
3630
|
+
if (!(this.currentThisScope().flags & SCOPE_VAR) && name === "arguments")
|
|
3365
3631
|
{ this.raiseRecoverable(start, "Cannot use 'arguments' in class field initializer"); }
|
|
3366
3632
|
if (this.inClassStaticBlock && (name === "arguments" || name === "await"))
|
|
3367
3633
|
{ this.raise(start, ("Cannot use " + name + " in class static initialization block")); }
|
|
@@ -3382,6 +3648,18 @@ var StandardLog;
|
|
|
3382
3648
|
// identifiers.
|
|
3383
3649
|
|
|
3384
3650
|
pp$5.parseIdent = function(liberal) {
|
|
3651
|
+
var node = this.parseIdentNode();
|
|
3652
|
+
this.next(!!liberal);
|
|
3653
|
+
this.finishNode(node, "Identifier");
|
|
3654
|
+
if (!liberal) {
|
|
3655
|
+
this.checkUnreserved(node);
|
|
3656
|
+
if (node.name === "await" && !this.awaitIdentPos)
|
|
3657
|
+
{ this.awaitIdentPos = node.start; }
|
|
3658
|
+
}
|
|
3659
|
+
return node
|
|
3660
|
+
};
|
|
3661
|
+
|
|
3662
|
+
pp$5.parseIdentNode = function() {
|
|
3385
3663
|
var node = this.startNode();
|
|
3386
3664
|
if (this.type === types$1.name) {
|
|
3387
3665
|
node.name = this.value;
|
|
@@ -3393,19 +3671,13 @@ var StandardLog;
|
|
|
3393
3671
|
// But there is no chance to pop the context if the keyword is consumed as an identifier such as a property name.
|
|
3394
3672
|
// If the previous token is a dot, this does not apply because the context-managing code already ignored the keyword
|
|
3395
3673
|
if ((node.name === "class" || node.name === "function") &&
|
|
3396
|
-
|
|
3674
|
+
(this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46)) {
|
|
3397
3675
|
this.context.pop();
|
|
3398
3676
|
}
|
|
3677
|
+
this.type = types$1.name;
|
|
3399
3678
|
} else {
|
|
3400
3679
|
this.unexpected();
|
|
3401
3680
|
}
|
|
3402
|
-
this.next(!!liberal);
|
|
3403
|
-
this.finishNode(node, "Identifier");
|
|
3404
|
-
if (!liberal) {
|
|
3405
|
-
this.checkUnreserved(node);
|
|
3406
|
-
if (node.name === "await" && !this.awaitIdentPos)
|
|
3407
|
-
{ this.awaitIdentPos = node.start; }
|
|
3408
|
-
}
|
|
3409
3681
|
return node
|
|
3410
3682
|
};
|
|
3411
3683
|
|
|
@@ -3420,10 +3692,12 @@ var StandardLog;
|
|
|
3420
3692
|
this.finishNode(node, "PrivateIdentifier");
|
|
3421
3693
|
|
|
3422
3694
|
// For validating existence
|
|
3423
|
-
if (this.
|
|
3424
|
-
this.
|
|
3425
|
-
|
|
3426
|
-
|
|
3695
|
+
if (this.options.checkPrivateFields) {
|
|
3696
|
+
if (this.privateNameStack.length === 0) {
|
|
3697
|
+
this.raise(node.start, ("Private field '#" + (node.name) + "' must be declared in an enclosing class"));
|
|
3698
|
+
} else {
|
|
3699
|
+
this.privateNameStack[this.privateNameStack.length - 1].used.push(node);
|
|
3700
|
+
}
|
|
3427
3701
|
}
|
|
3428
3702
|
|
|
3429
3703
|
return node
|
|
@@ -3466,6 +3740,9 @@ var StandardLog;
|
|
|
3466
3740
|
pp$4.raise = function(pos, message) {
|
|
3467
3741
|
var loc = getLineInfo(this.input, pos);
|
|
3468
3742
|
message += " (" + loc.line + ":" + loc.column + ")";
|
|
3743
|
+
if (this.sourceFile) {
|
|
3744
|
+
message += " in " + this.sourceFile;
|
|
3745
|
+
}
|
|
3469
3746
|
var err = new SyntaxError(message);
|
|
3470
3747
|
err.pos = pos; err.loc = loc; err.raisedAt = this.pos;
|
|
3471
3748
|
throw err
|
|
@@ -3489,8 +3766,6 @@ var StandardLog;
|
|
|
3489
3766
|
this.lexical = [];
|
|
3490
3767
|
// A list of lexically-declared FunctionDeclaration names in the current lexical scope
|
|
3491
3768
|
this.functions = [];
|
|
3492
|
-
// A switch to disallow the identifier reference 'arguments'
|
|
3493
|
-
this.inClassFieldInit = false;
|
|
3494
3769
|
};
|
|
3495
3770
|
|
|
3496
3771
|
// The functions in this module keep track of declared variables in the current scope in order to detect duplicate variable names.
|
|
@@ -3560,7 +3835,7 @@ var StandardLog;
|
|
|
3560
3835
|
pp$3.currentVarScope = function() {
|
|
3561
3836
|
for (var i = this.scopeStack.length - 1;; i--) {
|
|
3562
3837
|
var scope = this.scopeStack[i];
|
|
3563
|
-
if (scope.flags & SCOPE_VAR) { return scope }
|
|
3838
|
+
if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK)) { return scope }
|
|
3564
3839
|
}
|
|
3565
3840
|
};
|
|
3566
3841
|
|
|
@@ -3568,7 +3843,8 @@ var StandardLog;
|
|
|
3568
3843
|
pp$3.currentThisScope = function() {
|
|
3569
3844
|
for (var i = this.scopeStack.length - 1;; i--) {
|
|
3570
3845
|
var scope = this.scopeStack[i];
|
|
3571
|
-
if (scope.flags & SCOPE_VAR
|
|
3846
|
+
if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK) &&
|
|
3847
|
+
!(scope.flags & SCOPE_ARROW)) { return scope }
|
|
3572
3848
|
}
|
|
3573
3849
|
};
|
|
3574
3850
|
|
|
@@ -3624,6 +3900,9 @@ var StandardLog;
|
|
|
3624
3900
|
return newNode
|
|
3625
3901
|
};
|
|
3626
3902
|
|
|
3903
|
+
// This file was generated by "bin/generate-unicode-script-values.js". Do not modify manually!
|
|
3904
|
+
var scriptValuesAddedInUnicode = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz";
|
|
3905
|
+
|
|
3627
3906
|
// This file contains Unicode properties extracted from the ECMAScript specification.
|
|
3628
3907
|
// The lists are extracted like so:
|
|
3629
3908
|
// $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)
|
|
@@ -3645,6 +3924,18 @@ var StandardLog;
|
|
|
3645
3924
|
14: ecma14BinaryProperties
|
|
3646
3925
|
};
|
|
3647
3926
|
|
|
3927
|
+
// #table-binary-unicode-properties-of-strings
|
|
3928
|
+
var ecma14BinaryPropertiesOfStrings = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
|
|
3929
|
+
|
|
3930
|
+
var unicodeBinaryPropertiesOfStrings = {
|
|
3931
|
+
9: "",
|
|
3932
|
+
10: "",
|
|
3933
|
+
11: "",
|
|
3934
|
+
12: "",
|
|
3935
|
+
13: "",
|
|
3936
|
+
14: ecma14BinaryPropertiesOfStrings
|
|
3937
|
+
};
|
|
3938
|
+
|
|
3648
3939
|
// #table-unicode-general-category-values
|
|
3649
3940
|
var unicodeGeneralCategoryValues = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";
|
|
3650
3941
|
|
|
@@ -3654,7 +3945,7 @@ var StandardLog;
|
|
|
3654
3945
|
var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
|
|
3655
3946
|
var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
|
|
3656
3947
|
var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
|
|
3657
|
-
var ecma14ScriptValues = ecma13ScriptValues + "
|
|
3948
|
+
var ecma14ScriptValues = ecma13ScriptValues + " " + scriptValuesAddedInUnicode;
|
|
3658
3949
|
|
|
3659
3950
|
var unicodeScriptValues = {
|
|
3660
3951
|
9: ecma9ScriptValues,
|
|
@@ -3669,6 +3960,7 @@ var StandardLog;
|
|
|
3669
3960
|
function buildUnicodeData(ecmaVersion) {
|
|
3670
3961
|
var d = data[ecmaVersion] = {
|
|
3671
3962
|
binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion] + " " + unicodeGeneralCategoryValues),
|
|
3963
|
+
binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion]),
|
|
3672
3964
|
nonBinary: {
|
|
3673
3965
|
General_Category: wordsRegexp(unicodeGeneralCategoryValues),
|
|
3674
3966
|
Script: wordsRegexp(unicodeScriptValues[ecmaVersion])
|
|
@@ -3689,14 +3981,39 @@ var StandardLog;
|
|
|
3689
3981
|
|
|
3690
3982
|
var pp$1 = Parser.prototype;
|
|
3691
3983
|
|
|
3984
|
+
// Track disjunction structure to determine whether a duplicate
|
|
3985
|
+
// capture group name is allowed because it is in a separate branch.
|
|
3986
|
+
var BranchID = function BranchID(parent, base) {
|
|
3987
|
+
// Parent disjunction branch
|
|
3988
|
+
this.parent = parent;
|
|
3989
|
+
// Identifies this set of sibling branches
|
|
3990
|
+
this.base = base || this;
|
|
3991
|
+
};
|
|
3992
|
+
|
|
3993
|
+
BranchID.prototype.separatedFrom = function separatedFrom (alt) {
|
|
3994
|
+
// A branch is separate from another branch if they or any of
|
|
3995
|
+
// their parents are siblings in a given disjunction
|
|
3996
|
+
for (var self = this; self; self = self.parent) {
|
|
3997
|
+
for (var other = alt; other; other = other.parent) {
|
|
3998
|
+
if (self.base === other.base && self !== other) { return true }
|
|
3999
|
+
}
|
|
4000
|
+
}
|
|
4001
|
+
return false
|
|
4002
|
+
};
|
|
4003
|
+
|
|
4004
|
+
BranchID.prototype.sibling = function sibling () {
|
|
4005
|
+
return new BranchID(this.parent, this.base)
|
|
4006
|
+
};
|
|
4007
|
+
|
|
3692
4008
|
var RegExpValidationState = function RegExpValidationState(parser) {
|
|
3693
4009
|
this.parser = parser;
|
|
3694
|
-
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "");
|
|
4010
|
+
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
|
|
3695
4011
|
this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
|
|
3696
4012
|
this.source = "";
|
|
3697
4013
|
this.flags = "";
|
|
3698
4014
|
this.start = 0;
|
|
3699
4015
|
this.switchU = false;
|
|
4016
|
+
this.switchV = false;
|
|
3700
4017
|
this.switchN = false;
|
|
3701
4018
|
this.pos = 0;
|
|
3702
4019
|
this.lastIntValue = 0;
|
|
@@ -3704,17 +4021,26 @@ var StandardLog;
|
|
|
3704
4021
|
this.lastAssertionIsQuantifiable = false;
|
|
3705
4022
|
this.numCapturingParens = 0;
|
|
3706
4023
|
this.maxBackReference = 0;
|
|
3707
|
-
this.groupNames =
|
|
4024
|
+
this.groupNames = Object.create(null);
|
|
3708
4025
|
this.backReferenceNames = [];
|
|
4026
|
+
this.branchID = null;
|
|
3709
4027
|
};
|
|
3710
4028
|
|
|
3711
4029
|
RegExpValidationState.prototype.reset = function reset (start, pattern, flags) {
|
|
4030
|
+
var unicodeSets = flags.indexOf("v") !== -1;
|
|
3712
4031
|
var unicode = flags.indexOf("u") !== -1;
|
|
3713
4032
|
this.start = start | 0;
|
|
3714
4033
|
this.source = pattern + "";
|
|
3715
4034
|
this.flags = flags;
|
|
3716
|
-
|
|
3717
|
-
|
|
4035
|
+
if (unicodeSets && this.parser.options.ecmaVersion >= 15) {
|
|
4036
|
+
this.switchU = true;
|
|
4037
|
+
this.switchV = true;
|
|
4038
|
+
this.switchN = true;
|
|
4039
|
+
} else {
|
|
4040
|
+
this.switchU = unicode && this.parser.options.ecmaVersion >= 6;
|
|
4041
|
+
this.switchV = false;
|
|
4042
|
+
this.switchN = unicode && this.parser.options.ecmaVersion >= 9;
|
|
4043
|
+
}
|
|
3718
4044
|
};
|
|
3719
4045
|
|
|
3720
4046
|
RegExpValidationState.prototype.raise = function raise (message) {
|
|
@@ -3783,6 +4109,23 @@ var StandardLog;
|
|
|
3783
4109
|
return false
|
|
3784
4110
|
};
|
|
3785
4111
|
|
|
4112
|
+
RegExpValidationState.prototype.eatChars = function eatChars (chs, forceU) {
|
|
4113
|
+
if ( forceU === void 0 ) forceU = false;
|
|
4114
|
+
|
|
4115
|
+
var pos = this.pos;
|
|
4116
|
+
for (var i = 0, list = chs; i < list.length; i += 1) {
|
|
4117
|
+
var ch = list[i];
|
|
4118
|
+
|
|
4119
|
+
var current = this.at(pos, forceU);
|
|
4120
|
+
if (current === -1 || current !== ch) {
|
|
4121
|
+
return false
|
|
4122
|
+
}
|
|
4123
|
+
pos = this.nextIndex(pos, forceU);
|
|
4124
|
+
}
|
|
4125
|
+
this.pos = pos;
|
|
4126
|
+
return true
|
|
4127
|
+
};
|
|
4128
|
+
|
|
3786
4129
|
/**
|
|
3787
4130
|
* Validate the flags part of a given RegExpLiteral.
|
|
3788
4131
|
*
|
|
@@ -3793,6 +4136,9 @@ var StandardLog;
|
|
|
3793
4136
|
var validFlags = state.validFlags;
|
|
3794
4137
|
var flags = state.flags;
|
|
3795
4138
|
|
|
4139
|
+
var u = false;
|
|
4140
|
+
var v = false;
|
|
4141
|
+
|
|
3796
4142
|
for (var i = 0; i < flags.length; i++) {
|
|
3797
4143
|
var flag = flags.charAt(i);
|
|
3798
4144
|
if (validFlags.indexOf(flag) === -1) {
|
|
@@ -3801,9 +4147,19 @@ var StandardLog;
|
|
|
3801
4147
|
if (flags.indexOf(flag, i + 1) > -1) {
|
|
3802
4148
|
this.raise(state.start, "Duplicate regular expression flag");
|
|
3803
4149
|
}
|
|
4150
|
+
if (flag === "u") { u = true; }
|
|
4151
|
+
if (flag === "v") { v = true; }
|
|
4152
|
+
}
|
|
4153
|
+
if (this.options.ecmaVersion >= 15 && u && v) {
|
|
4154
|
+
this.raise(state.start, "Invalid regular expression flag");
|
|
3804
4155
|
}
|
|
3805
4156
|
};
|
|
3806
4157
|
|
|
4158
|
+
function hasProp(obj) {
|
|
4159
|
+
for (var _ in obj) { return true }
|
|
4160
|
+
return false
|
|
4161
|
+
}
|
|
4162
|
+
|
|
3807
4163
|
/**
|
|
3808
4164
|
* Validate the pattern part of a given RegExpLiteral.
|
|
3809
4165
|
*
|
|
@@ -3818,7 +4174,7 @@ var StandardLog;
|
|
|
3818
4174
|
// |Pattern[~U, +N]| and use this result instead. Throw a *SyntaxError*
|
|
3819
4175
|
// exception if _P_ did not conform to the grammar, if any elements of _P_
|
|
3820
4176
|
// were not matched by the parse, or if any Early Error conditions exist.
|
|
3821
|
-
if (!state.switchN && this.options.ecmaVersion >= 9 && state.groupNames
|
|
4177
|
+
if (!state.switchN && this.options.ecmaVersion >= 9 && hasProp(state.groupNames)) {
|
|
3822
4178
|
state.switchN = true;
|
|
3823
4179
|
this.regexp_pattern(state);
|
|
3824
4180
|
}
|
|
@@ -3832,8 +4188,9 @@ var StandardLog;
|
|
|
3832
4188
|
state.lastAssertionIsQuantifiable = false;
|
|
3833
4189
|
state.numCapturingParens = 0;
|
|
3834
4190
|
state.maxBackReference = 0;
|
|
3835
|
-
state.groupNames
|
|
4191
|
+
state.groupNames = Object.create(null);
|
|
3836
4192
|
state.backReferenceNames.length = 0;
|
|
4193
|
+
state.branchID = null;
|
|
3837
4194
|
|
|
3838
4195
|
this.regexp_disjunction(state);
|
|
3839
4196
|
|
|
@@ -3852,7 +4209,7 @@ var StandardLog;
|
|
|
3852
4209
|
for (var i = 0, list = state.backReferenceNames; i < list.length; i += 1) {
|
|
3853
4210
|
var name = list[i];
|
|
3854
4211
|
|
|
3855
|
-
if (state.groupNames
|
|
4212
|
+
if (!state.groupNames[name]) {
|
|
3856
4213
|
state.raise("Invalid named capture referenced");
|
|
3857
4214
|
}
|
|
3858
4215
|
}
|
|
@@ -3860,10 +4217,14 @@ var StandardLog;
|
|
|
3860
4217
|
|
|
3861
4218
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction
|
|
3862
4219
|
pp$1.regexp_disjunction = function(state) {
|
|
4220
|
+
var trackDisjunction = this.options.ecmaVersion >= 16;
|
|
4221
|
+
if (trackDisjunction) { state.branchID = new BranchID(state.branchID, null); }
|
|
3863
4222
|
this.regexp_alternative(state);
|
|
3864
4223
|
while (state.eat(0x7C /* | */)) {
|
|
4224
|
+
if (trackDisjunction) { state.branchID = state.branchID.sibling(); }
|
|
3865
4225
|
this.regexp_alternative(state);
|
|
3866
4226
|
}
|
|
4227
|
+
if (trackDisjunction) { state.branchID = state.branchID.parent; }
|
|
3867
4228
|
|
|
3868
4229
|
// Make the same message as V8.
|
|
3869
4230
|
if (this.regexp_eatQuantifier(state, true)) {
|
|
@@ -3876,8 +4237,7 @@ var StandardLog;
|
|
|
3876
4237
|
|
|
3877
4238
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-Alternative
|
|
3878
4239
|
pp$1.regexp_alternative = function(state) {
|
|
3879
|
-
while (state.pos < state.source.length && this.regexp_eatTerm(state))
|
|
3880
|
-
{ }
|
|
4240
|
+
while (state.pos < state.source.length && this.regexp_eatTerm(state)) {}
|
|
3881
4241
|
};
|
|
3882
4242
|
|
|
3883
4243
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Term
|
|
@@ -4010,12 +4370,41 @@ var StandardLog;
|
|
|
4010
4370
|
pp$1.regexp_eatUncapturingGroup = function(state) {
|
|
4011
4371
|
var start = state.pos;
|
|
4012
4372
|
if (state.eat(0x28 /* ( */)) {
|
|
4013
|
-
if (state.eat(0x3F /* ? */)
|
|
4014
|
-
this.
|
|
4015
|
-
|
|
4016
|
-
|
|
4373
|
+
if (state.eat(0x3F /* ? */)) {
|
|
4374
|
+
if (this.options.ecmaVersion >= 16) {
|
|
4375
|
+
var addModifiers = this.regexp_eatModifiers(state);
|
|
4376
|
+
var hasHyphen = state.eat(0x2D /* - */);
|
|
4377
|
+
if (addModifiers || hasHyphen) {
|
|
4378
|
+
for (var i = 0; i < addModifiers.length; i++) {
|
|
4379
|
+
var modifier = addModifiers.charAt(i);
|
|
4380
|
+
if (addModifiers.indexOf(modifier, i + 1) > -1) {
|
|
4381
|
+
state.raise("Duplicate regular expression modifiers");
|
|
4382
|
+
}
|
|
4383
|
+
}
|
|
4384
|
+
if (hasHyphen) {
|
|
4385
|
+
var removeModifiers = this.regexp_eatModifiers(state);
|
|
4386
|
+
if (!addModifiers && !removeModifiers && state.current() === 0x3A /* : */) {
|
|
4387
|
+
state.raise("Invalid regular expression modifiers");
|
|
4388
|
+
}
|
|
4389
|
+
for (var i$1 = 0; i$1 < removeModifiers.length; i$1++) {
|
|
4390
|
+
var modifier$1 = removeModifiers.charAt(i$1);
|
|
4391
|
+
if (
|
|
4392
|
+
removeModifiers.indexOf(modifier$1, i$1 + 1) > -1 ||
|
|
4393
|
+
addModifiers.indexOf(modifier$1) > -1
|
|
4394
|
+
) {
|
|
4395
|
+
state.raise("Duplicate regular expression modifiers");
|
|
4396
|
+
}
|
|
4397
|
+
}
|
|
4398
|
+
}
|
|
4399
|
+
}
|
|
4400
|
+
}
|
|
4401
|
+
if (state.eat(0x3A /* : */)) {
|
|
4402
|
+
this.regexp_disjunction(state);
|
|
4403
|
+
if (state.eat(0x29 /* ) */)) {
|
|
4404
|
+
return true
|
|
4405
|
+
}
|
|
4406
|
+
state.raise("Unterminated group");
|
|
4017
4407
|
}
|
|
4018
|
-
state.raise("Unterminated group");
|
|
4019
4408
|
}
|
|
4020
4409
|
state.pos = start;
|
|
4021
4410
|
}
|
|
@@ -4037,6 +4426,23 @@ var StandardLog;
|
|
|
4037
4426
|
}
|
|
4038
4427
|
return false
|
|
4039
4428
|
};
|
|
4429
|
+
// RegularExpressionModifiers ::
|
|
4430
|
+
// [empty]
|
|
4431
|
+
// RegularExpressionModifiers RegularExpressionModifier
|
|
4432
|
+
pp$1.regexp_eatModifiers = function(state) {
|
|
4433
|
+
var modifiers = "";
|
|
4434
|
+
var ch = 0;
|
|
4435
|
+
while ((ch = state.current()) !== -1 && isRegularExpressionModifier(ch)) {
|
|
4436
|
+
modifiers += codePointToString(ch);
|
|
4437
|
+
state.advance();
|
|
4438
|
+
}
|
|
4439
|
+
return modifiers
|
|
4440
|
+
};
|
|
4441
|
+
// RegularExpressionModifier :: one of
|
|
4442
|
+
// `i` `m` `s`
|
|
4443
|
+
function isRegularExpressionModifier(ch) {
|
|
4444
|
+
return ch === 0x69 /* i */ || ch === 0x6d /* m */ || ch === 0x73 /* s */
|
|
4445
|
+
}
|
|
4040
4446
|
|
|
4041
4447
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom
|
|
4042
4448
|
pp$1.regexp_eatExtendedAtom = function(state) {
|
|
@@ -4115,14 +4521,26 @@ var StandardLog;
|
|
|
4115
4521
|
// `?` GroupName
|
|
4116
4522
|
pp$1.regexp_groupSpecifier = function(state) {
|
|
4117
4523
|
if (state.eat(0x3F /* ? */)) {
|
|
4118
|
-
if (this.regexp_eatGroupName(state)) {
|
|
4119
|
-
|
|
4524
|
+
if (!this.regexp_eatGroupName(state)) { state.raise("Invalid group"); }
|
|
4525
|
+
var trackDisjunction = this.options.ecmaVersion >= 16;
|
|
4526
|
+
var known = state.groupNames[state.lastStringValue];
|
|
4527
|
+
if (known) {
|
|
4528
|
+
if (trackDisjunction) {
|
|
4529
|
+
for (var i = 0, list = known; i < list.length; i += 1) {
|
|
4530
|
+
var altID = list[i];
|
|
4531
|
+
|
|
4532
|
+
if (!altID.separatedFrom(state.branchID))
|
|
4533
|
+
{ state.raise("Duplicate capture group name"); }
|
|
4534
|
+
}
|
|
4535
|
+
} else {
|
|
4120
4536
|
state.raise("Duplicate capture group name");
|
|
4121
4537
|
}
|
|
4122
|
-
state.groupNames.push(state.lastStringValue);
|
|
4123
|
-
return
|
|
4124
4538
|
}
|
|
4125
|
-
|
|
4539
|
+
if (trackDisjunction) {
|
|
4540
|
+
(known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID);
|
|
4541
|
+
} else {
|
|
4542
|
+
state.groupNames[state.lastStringValue] = true;
|
|
4543
|
+
}
|
|
4126
4544
|
}
|
|
4127
4545
|
};
|
|
4128
4546
|
|
|
@@ -4419,6 +4837,12 @@ var StandardLog;
|
|
|
4419
4837
|
return false
|
|
4420
4838
|
};
|
|
4421
4839
|
|
|
4840
|
+
// Return values used by character set parsing methods, needed to
|
|
4841
|
+
// forbid negation of sets that can match strings.
|
|
4842
|
+
var CharSetNone = 0; // Nothing parsed
|
|
4843
|
+
var CharSetOk = 1; // Construct parsed, cannot contain strings
|
|
4844
|
+
var CharSetString = 2; // Construct parsed, can contain strings
|
|
4845
|
+
|
|
4422
4846
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClassEscape
|
|
4423
4847
|
pp$1.regexp_eatCharacterClassEscape = function(state) {
|
|
4424
4848
|
var ch = state.current();
|
|
@@ -4426,28 +4850,32 @@ var StandardLog;
|
|
|
4426
4850
|
if (isCharacterClassEscape(ch)) {
|
|
4427
4851
|
state.lastIntValue = -1;
|
|
4428
4852
|
state.advance();
|
|
4429
|
-
return
|
|
4853
|
+
return CharSetOk
|
|
4430
4854
|
}
|
|
4431
4855
|
|
|
4856
|
+
var negate = false;
|
|
4432
4857
|
if (
|
|
4433
4858
|
state.switchU &&
|
|
4434
4859
|
this.options.ecmaVersion >= 9 &&
|
|
4435
|
-
(ch === 0x50 /* P */ || ch === 0x70 /* p */)
|
|
4860
|
+
((negate = ch === 0x50 /* P */) || ch === 0x70 /* p */)
|
|
4436
4861
|
) {
|
|
4437
4862
|
state.lastIntValue = -1;
|
|
4438
4863
|
state.advance();
|
|
4864
|
+
var result;
|
|
4439
4865
|
if (
|
|
4440
4866
|
state.eat(0x7B /* { */) &&
|
|
4441
|
-
this.regexp_eatUnicodePropertyValueExpression(state) &&
|
|
4867
|
+
(result = this.regexp_eatUnicodePropertyValueExpression(state)) &&
|
|
4442
4868
|
state.eat(0x7D /* } */)
|
|
4443
4869
|
) {
|
|
4444
|
-
|
|
4870
|
+
if (negate && result === CharSetString) { state.raise("Invalid property name"); }
|
|
4871
|
+
return result
|
|
4445
4872
|
}
|
|
4446
4873
|
state.raise("Invalid property name");
|
|
4447
4874
|
}
|
|
4448
4875
|
|
|
4449
|
-
return
|
|
4876
|
+
return CharSetNone
|
|
4450
4877
|
};
|
|
4878
|
+
|
|
4451
4879
|
function isCharacterClassEscape(ch) {
|
|
4452
4880
|
return (
|
|
4453
4881
|
ch === 0x64 /* d */ ||
|
|
@@ -4471,7 +4899,7 @@ var StandardLog;
|
|
|
4471
4899
|
if (this.regexp_eatUnicodePropertyValue(state)) {
|
|
4472
4900
|
var value = state.lastStringValue;
|
|
4473
4901
|
this.regexp_validateUnicodePropertyNameAndValue(state, name, value);
|
|
4474
|
-
return
|
|
4902
|
+
return CharSetOk
|
|
4475
4903
|
}
|
|
4476
4904
|
}
|
|
4477
4905
|
state.pos = start;
|
|
@@ -4479,20 +4907,22 @@ var StandardLog;
|
|
|
4479
4907
|
// LoneUnicodePropertyNameOrValue
|
|
4480
4908
|
if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {
|
|
4481
4909
|
var nameOrValue = state.lastStringValue;
|
|
4482
|
-
this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue)
|
|
4483
|
-
return true
|
|
4910
|
+
return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue)
|
|
4484
4911
|
}
|
|
4485
|
-
return
|
|
4912
|
+
return CharSetNone
|
|
4486
4913
|
};
|
|
4914
|
+
|
|
4487
4915
|
pp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name, value) {
|
|
4488
4916
|
if (!hasOwn(state.unicodeProperties.nonBinary, name))
|
|
4489
4917
|
{ state.raise("Invalid property name"); }
|
|
4490
4918
|
if (!state.unicodeProperties.nonBinary[name].test(value))
|
|
4491
4919
|
{ state.raise("Invalid property value"); }
|
|
4492
4920
|
};
|
|
4921
|
+
|
|
4493
4922
|
pp$1.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {
|
|
4494
|
-
if (
|
|
4495
|
-
|
|
4923
|
+
if (state.unicodeProperties.binary.test(nameOrValue)) { return CharSetOk }
|
|
4924
|
+
if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) { return CharSetString }
|
|
4925
|
+
state.raise("Invalid property name");
|
|
4496
4926
|
};
|
|
4497
4927
|
|
|
4498
4928
|
// UnicodePropertyName ::
|
|
@@ -4506,6 +4936,7 @@ var StandardLog;
|
|
|
4506
4936
|
}
|
|
4507
4937
|
return state.lastStringValue !== ""
|
|
4508
4938
|
};
|
|
4939
|
+
|
|
4509
4940
|
function isUnicodePropertyNameCharacter(ch) {
|
|
4510
4941
|
return isControlLetter(ch) || ch === 0x5F /* _ */
|
|
4511
4942
|
}
|
|
@@ -4534,21 +4965,29 @@ var StandardLog;
|
|
|
4534
4965
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClass
|
|
4535
4966
|
pp$1.regexp_eatCharacterClass = function(state) {
|
|
4536
4967
|
if (state.eat(0x5B /* [ */)) {
|
|
4537
|
-
state.eat(0x5E /* ^ */);
|
|
4538
|
-
this.
|
|
4539
|
-
if (state.eat(0x5D /* ] */))
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4968
|
+
var negate = state.eat(0x5E /* ^ */);
|
|
4969
|
+
var result = this.regexp_classContents(state);
|
|
4970
|
+
if (!state.eat(0x5D /* ] */))
|
|
4971
|
+
{ state.raise("Unterminated character class"); }
|
|
4972
|
+
if (negate && result === CharSetString)
|
|
4973
|
+
{ state.raise("Negated character class may contain strings"); }
|
|
4974
|
+
return true
|
|
4544
4975
|
}
|
|
4545
4976
|
return false
|
|
4546
4977
|
};
|
|
4547
4978
|
|
|
4979
|
+
// https://tc39.es/ecma262/#prod-ClassContents
|
|
4548
4980
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassRanges
|
|
4981
|
+
pp$1.regexp_classContents = function(state) {
|
|
4982
|
+
if (state.current() === 0x5D /* ] */) { return CharSetOk }
|
|
4983
|
+
if (state.switchV) { return this.regexp_classSetExpression(state) }
|
|
4984
|
+
this.regexp_nonEmptyClassRanges(state);
|
|
4985
|
+
return CharSetOk
|
|
4986
|
+
};
|
|
4987
|
+
|
|
4549
4988
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRanges
|
|
4550
4989
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRangesNoDash
|
|
4551
|
-
pp$1.
|
|
4990
|
+
pp$1.regexp_nonEmptyClassRanges = function(state) {
|
|
4552
4991
|
while (this.regexp_eatClassAtom(state)) {
|
|
4553
4992
|
var left = state.lastIntValue;
|
|
4554
4993
|
if (state.eat(0x2D /* - */) && this.regexp_eatClassAtom(state)) {
|
|
@@ -4620,6 +5059,205 @@ var StandardLog;
|
|
|
4620
5059
|
)
|
|
4621
5060
|
};
|
|
4622
5061
|
|
|
5062
|
+
// https://tc39.es/ecma262/#prod-ClassSetExpression
|
|
5063
|
+
// https://tc39.es/ecma262/#prod-ClassUnion
|
|
5064
|
+
// https://tc39.es/ecma262/#prod-ClassIntersection
|
|
5065
|
+
// https://tc39.es/ecma262/#prod-ClassSubtraction
|
|
5066
|
+
pp$1.regexp_classSetExpression = function(state) {
|
|
5067
|
+
var result = CharSetOk, subResult;
|
|
5068
|
+
if (this.regexp_eatClassSetRange(state)) ; else if (subResult = this.regexp_eatClassSetOperand(state)) {
|
|
5069
|
+
if (subResult === CharSetString) { result = CharSetString; }
|
|
5070
|
+
// https://tc39.es/ecma262/#prod-ClassIntersection
|
|
5071
|
+
var start = state.pos;
|
|
5072
|
+
while (state.eatChars([0x26, 0x26] /* && */)) {
|
|
5073
|
+
if (
|
|
5074
|
+
state.current() !== 0x26 /* & */ &&
|
|
5075
|
+
(subResult = this.regexp_eatClassSetOperand(state))
|
|
5076
|
+
) {
|
|
5077
|
+
if (subResult !== CharSetString) { result = CharSetOk; }
|
|
5078
|
+
continue
|
|
5079
|
+
}
|
|
5080
|
+
state.raise("Invalid character in character class");
|
|
5081
|
+
}
|
|
5082
|
+
if (start !== state.pos) { return result }
|
|
5083
|
+
// https://tc39.es/ecma262/#prod-ClassSubtraction
|
|
5084
|
+
while (state.eatChars([0x2D, 0x2D] /* -- */)) {
|
|
5085
|
+
if (this.regexp_eatClassSetOperand(state)) { continue }
|
|
5086
|
+
state.raise("Invalid character in character class");
|
|
5087
|
+
}
|
|
5088
|
+
if (start !== state.pos) { return result }
|
|
5089
|
+
} else {
|
|
5090
|
+
state.raise("Invalid character in character class");
|
|
5091
|
+
}
|
|
5092
|
+
// https://tc39.es/ecma262/#prod-ClassUnion
|
|
5093
|
+
for (;;) {
|
|
5094
|
+
if (this.regexp_eatClassSetRange(state)) { continue }
|
|
5095
|
+
subResult = this.regexp_eatClassSetOperand(state);
|
|
5096
|
+
if (!subResult) { return result }
|
|
5097
|
+
if (subResult === CharSetString) { result = CharSetString; }
|
|
5098
|
+
}
|
|
5099
|
+
};
|
|
5100
|
+
|
|
5101
|
+
// https://tc39.es/ecma262/#prod-ClassSetRange
|
|
5102
|
+
pp$1.regexp_eatClassSetRange = function(state) {
|
|
5103
|
+
var start = state.pos;
|
|
5104
|
+
if (this.regexp_eatClassSetCharacter(state)) {
|
|
5105
|
+
var left = state.lastIntValue;
|
|
5106
|
+
if (state.eat(0x2D /* - */) && this.regexp_eatClassSetCharacter(state)) {
|
|
5107
|
+
var right = state.lastIntValue;
|
|
5108
|
+
if (left !== -1 && right !== -1 && left > right) {
|
|
5109
|
+
state.raise("Range out of order in character class");
|
|
5110
|
+
}
|
|
5111
|
+
return true
|
|
5112
|
+
}
|
|
5113
|
+
state.pos = start;
|
|
5114
|
+
}
|
|
5115
|
+
return false
|
|
5116
|
+
};
|
|
5117
|
+
|
|
5118
|
+
// https://tc39.es/ecma262/#prod-ClassSetOperand
|
|
5119
|
+
pp$1.regexp_eatClassSetOperand = function(state) {
|
|
5120
|
+
if (this.regexp_eatClassSetCharacter(state)) { return CharSetOk }
|
|
5121
|
+
return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state)
|
|
5122
|
+
};
|
|
5123
|
+
|
|
5124
|
+
// https://tc39.es/ecma262/#prod-NestedClass
|
|
5125
|
+
pp$1.regexp_eatNestedClass = function(state) {
|
|
5126
|
+
var start = state.pos;
|
|
5127
|
+
if (state.eat(0x5B /* [ */)) {
|
|
5128
|
+
var negate = state.eat(0x5E /* ^ */);
|
|
5129
|
+
var result = this.regexp_classContents(state);
|
|
5130
|
+
if (state.eat(0x5D /* ] */)) {
|
|
5131
|
+
if (negate && result === CharSetString) {
|
|
5132
|
+
state.raise("Negated character class may contain strings");
|
|
5133
|
+
}
|
|
5134
|
+
return result
|
|
5135
|
+
}
|
|
5136
|
+
state.pos = start;
|
|
5137
|
+
}
|
|
5138
|
+
if (state.eat(0x5C /* \ */)) {
|
|
5139
|
+
var result$1 = this.regexp_eatCharacterClassEscape(state);
|
|
5140
|
+
if (result$1) {
|
|
5141
|
+
return result$1
|
|
5142
|
+
}
|
|
5143
|
+
state.pos = start;
|
|
5144
|
+
}
|
|
5145
|
+
return null
|
|
5146
|
+
};
|
|
5147
|
+
|
|
5148
|
+
// https://tc39.es/ecma262/#prod-ClassStringDisjunction
|
|
5149
|
+
pp$1.regexp_eatClassStringDisjunction = function(state) {
|
|
5150
|
+
var start = state.pos;
|
|
5151
|
+
if (state.eatChars([0x5C, 0x71] /* \q */)) {
|
|
5152
|
+
if (state.eat(0x7B /* { */)) {
|
|
5153
|
+
var result = this.regexp_classStringDisjunctionContents(state);
|
|
5154
|
+
if (state.eat(0x7D /* } */)) {
|
|
5155
|
+
return result
|
|
5156
|
+
}
|
|
5157
|
+
} else {
|
|
5158
|
+
// Make the same message as V8.
|
|
5159
|
+
state.raise("Invalid escape");
|
|
5160
|
+
}
|
|
5161
|
+
state.pos = start;
|
|
5162
|
+
}
|
|
5163
|
+
return null
|
|
5164
|
+
};
|
|
5165
|
+
|
|
5166
|
+
// https://tc39.es/ecma262/#prod-ClassStringDisjunctionContents
|
|
5167
|
+
pp$1.regexp_classStringDisjunctionContents = function(state) {
|
|
5168
|
+
var result = this.regexp_classString(state);
|
|
5169
|
+
while (state.eat(0x7C /* | */)) {
|
|
5170
|
+
if (this.regexp_classString(state) === CharSetString) { result = CharSetString; }
|
|
5171
|
+
}
|
|
5172
|
+
return result
|
|
5173
|
+
};
|
|
5174
|
+
|
|
5175
|
+
// https://tc39.es/ecma262/#prod-ClassString
|
|
5176
|
+
// https://tc39.es/ecma262/#prod-NonEmptyClassString
|
|
5177
|
+
pp$1.regexp_classString = function(state) {
|
|
5178
|
+
var count = 0;
|
|
5179
|
+
while (this.regexp_eatClassSetCharacter(state)) { count++; }
|
|
5180
|
+
return count === 1 ? CharSetOk : CharSetString
|
|
5181
|
+
};
|
|
5182
|
+
|
|
5183
|
+
// https://tc39.es/ecma262/#prod-ClassSetCharacter
|
|
5184
|
+
pp$1.regexp_eatClassSetCharacter = function(state) {
|
|
5185
|
+
var start = state.pos;
|
|
5186
|
+
if (state.eat(0x5C /* \ */)) {
|
|
5187
|
+
if (
|
|
5188
|
+
this.regexp_eatCharacterEscape(state) ||
|
|
5189
|
+
this.regexp_eatClassSetReservedPunctuator(state)
|
|
5190
|
+
) {
|
|
5191
|
+
return true
|
|
5192
|
+
}
|
|
5193
|
+
if (state.eat(0x62 /* b */)) {
|
|
5194
|
+
state.lastIntValue = 0x08; /* <BS> */
|
|
5195
|
+
return true
|
|
5196
|
+
}
|
|
5197
|
+
state.pos = start;
|
|
5198
|
+
return false
|
|
5199
|
+
}
|
|
5200
|
+
var ch = state.current();
|
|
5201
|
+
if (ch < 0 || ch === state.lookahead() && isClassSetReservedDoublePunctuatorCharacter(ch)) { return false }
|
|
5202
|
+
if (isClassSetSyntaxCharacter(ch)) { return false }
|
|
5203
|
+
state.advance();
|
|
5204
|
+
state.lastIntValue = ch;
|
|
5205
|
+
return true
|
|
5206
|
+
};
|
|
5207
|
+
|
|
5208
|
+
// https://tc39.es/ecma262/#prod-ClassSetReservedDoublePunctuator
|
|
5209
|
+
function isClassSetReservedDoublePunctuatorCharacter(ch) {
|
|
5210
|
+
return (
|
|
5211
|
+
ch === 0x21 /* ! */ ||
|
|
5212
|
+
ch >= 0x23 /* # */ && ch <= 0x26 /* & */ ||
|
|
5213
|
+
ch >= 0x2A /* * */ && ch <= 0x2C /* , */ ||
|
|
5214
|
+
ch === 0x2E /* . */ ||
|
|
5215
|
+
ch >= 0x3A /* : */ && ch <= 0x40 /* @ */ ||
|
|
5216
|
+
ch === 0x5E /* ^ */ ||
|
|
5217
|
+
ch === 0x60 /* ` */ ||
|
|
5218
|
+
ch === 0x7E /* ~ */
|
|
5219
|
+
)
|
|
5220
|
+
}
|
|
5221
|
+
|
|
5222
|
+
// https://tc39.es/ecma262/#prod-ClassSetSyntaxCharacter
|
|
5223
|
+
function isClassSetSyntaxCharacter(ch) {
|
|
5224
|
+
return (
|
|
5225
|
+
ch === 0x28 /* ( */ ||
|
|
5226
|
+
ch === 0x29 /* ) */ ||
|
|
5227
|
+
ch === 0x2D /* - */ ||
|
|
5228
|
+
ch === 0x2F /* / */ ||
|
|
5229
|
+
ch >= 0x5B /* [ */ && ch <= 0x5D /* ] */ ||
|
|
5230
|
+
ch >= 0x7B /* { */ && ch <= 0x7D /* } */
|
|
5231
|
+
)
|
|
5232
|
+
}
|
|
5233
|
+
|
|
5234
|
+
// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator
|
|
5235
|
+
pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
5236
|
+
var ch = state.current();
|
|
5237
|
+
if (isClassSetReservedPunctuator(ch)) {
|
|
5238
|
+
state.lastIntValue = ch;
|
|
5239
|
+
state.advance();
|
|
5240
|
+
return true
|
|
5241
|
+
}
|
|
5242
|
+
return false
|
|
5243
|
+
};
|
|
5244
|
+
|
|
5245
|
+
// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator
|
|
5246
|
+
function isClassSetReservedPunctuator(ch) {
|
|
5247
|
+
return (
|
|
5248
|
+
ch === 0x21 /* ! */ ||
|
|
5249
|
+
ch === 0x23 /* # */ ||
|
|
5250
|
+
ch === 0x25 /* % */ ||
|
|
5251
|
+
ch === 0x26 /* & */ ||
|
|
5252
|
+
ch === 0x2C /* , */ ||
|
|
5253
|
+
ch === 0x2D /* - */ ||
|
|
5254
|
+
ch >= 0x3A /* : */ && ch <= 0x3E /* > */ ||
|
|
5255
|
+
ch === 0x40 /* @ */ ||
|
|
5256
|
+
ch === 0x60 /* ` */ ||
|
|
5257
|
+
ch === 0x7E /* ~ */
|
|
5258
|
+
)
|
|
5259
|
+
}
|
|
5260
|
+
|
|
4623
5261
|
// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassControlLetter
|
|
4624
5262
|
pp$1.regexp_eatClassControlLetter = function(state) {
|
|
4625
5263
|
var ch = state.current();
|
|
@@ -5407,15 +6045,18 @@ var StandardLog;
|
|
|
5407
6045
|
break
|
|
5408
6046
|
|
|
5409
6047
|
case "$":
|
|
5410
|
-
if (this.input[this.pos + 1] !== "{") {
|
|
5411
|
-
|
|
5412
|
-
}
|
|
5413
|
-
|
|
5414
|
-
// falls through
|
|
6048
|
+
if (this.input[this.pos + 1] !== "{") { break }
|
|
6049
|
+
// fall through
|
|
5415
6050
|
case "`":
|
|
5416
6051
|
return this.finishToken(types$1.invalidTemplate, this.input.slice(this.start, this.pos))
|
|
5417
6052
|
|
|
5418
|
-
|
|
6053
|
+
case "\r":
|
|
6054
|
+
if (this.input[this.pos + 1] === "\n") { ++this.pos; }
|
|
6055
|
+
// fall through
|
|
6056
|
+
case "\n": case "\u2028": case "\u2029":
|
|
6057
|
+
++this.curLine;
|
|
6058
|
+
this.lineStart = this.pos + 1;
|
|
6059
|
+
break
|
|
5419
6060
|
}
|
|
5420
6061
|
}
|
|
5421
6062
|
this.raise(this.start, "Unterminated template");
|
|
@@ -5478,6 +6119,7 @@ var StandardLog;
|
|
|
5478
6119
|
if (isNewLine(ch)) {
|
|
5479
6120
|
// Unicode new line characters after \ get removed from output in both
|
|
5480
6121
|
// template literals and strings
|
|
6122
|
+
if (this.options.locations) { this.lineStart = this.pos; ++this.curLine; }
|
|
5481
6123
|
return ""
|
|
5482
6124
|
}
|
|
5483
6125
|
return String.fromCharCode(ch)
|
|
@@ -5540,8 +6182,21 @@ var StandardLog;
|
|
|
5540
6182
|
};
|
|
5541
6183
|
|
|
5542
6184
|
// Acorn is a tiny, fast JavaScript parser written in JavaScript.
|
|
6185
|
+
//
|
|
6186
|
+
// Acorn was written by Marijn Haverbeke, Ingvar Stepanyan, and
|
|
6187
|
+
// various contributors and released under an MIT license.
|
|
6188
|
+
//
|
|
6189
|
+
// Git repositories for Acorn are available at
|
|
6190
|
+
//
|
|
6191
|
+
// http://marijnhaverbeke.nl/git/acorn
|
|
6192
|
+
// https://github.com/acornjs/acorn.git
|
|
6193
|
+
//
|
|
6194
|
+
// Please use the [github bug tracker][ghbt] to report issues.
|
|
6195
|
+
//
|
|
6196
|
+
// [ghbt]: https://github.com/acornjs/acorn/issues
|
|
6197
|
+
|
|
5543
6198
|
|
|
5544
|
-
var version = "8.
|
|
6199
|
+
var version = "8.15.0";
|
|
5545
6200
|
|
|
5546
6201
|
Parser.acorn = {
|
|
5547
6202
|
Parser: Parser,
|
|
@@ -5566,11 +6221,10 @@ var StandardLog;
|
|
|
5566
6221
|
};
|
|
5567
6222
|
|
|
5568
6223
|
// The main exported interface (under `self.acorn` when in the
|
|
5569
|
-
// browser) is a `parse` function that takes a code string and
|
|
5570
|
-
//
|
|
5571
|
-
// API][api].
|
|
6224
|
+
// browser) is a `parse` function that takes a code string and returns
|
|
6225
|
+
// an abstract syntax tree as specified by the [ESTree spec][estree].
|
|
5572
6226
|
//
|
|
5573
|
-
// [
|
|
6227
|
+
// [estree]: https://github.com/estree/estree
|
|
5574
6228
|
|
|
5575
6229
|
function parse(input, options) {
|
|
5576
6230
|
return Parser.parse(input, options)
|
|
@@ -5617,13 +6271,13 @@ var StandardLog;
|
|
|
5617
6271
|
}));
|
|
5618
6272
|
|
|
5619
6273
|
|
|
5620
|
-
/***/ }
|
|
6274
|
+
/***/ },
|
|
5621
6275
|
|
|
5622
|
-
/***/ "../../node_modules/.pnpm/is-buffer@2.0.5/node_modules/is-buffer/index.js"
|
|
6276
|
+
/***/ "../../node_modules/.pnpm/is-buffer@2.0.5/node_modules/is-buffer/index.js"
|
|
5623
6277
|
/*!********************************************************************************!*\
|
|
5624
6278
|
!*** ../../node_modules/.pnpm/is-buffer@2.0.5/node_modules/is-buffer/index.js ***!
|
|
5625
6279
|
\********************************************************************************/
|
|
5626
|
-
|
|
6280
|
+
(module) {
|
|
5627
6281
|
|
|
5628
6282
|
/*!
|
|
5629
6283
|
* Determine if an object is a Buffer
|
|
@@ -5638,13 +6292,13 @@ module.exports = function isBuffer (obj) {
|
|
|
5638
6292
|
}
|
|
5639
6293
|
|
|
5640
6294
|
|
|
5641
|
-
/***/ }
|
|
6295
|
+
/***/ },
|
|
5642
6296
|
|
|
5643
|
-
/***/ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"
|
|
6297
|
+
/***/ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"
|
|
5644
6298
|
/*!******************************************************************!*\
|
|
5645
6299
|
!*** ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js ***!
|
|
5646
6300
|
\******************************************************************/
|
|
5647
|
-
|
|
6301
|
+
(module) {
|
|
5648
6302
|
|
|
5649
6303
|
/**
|
|
5650
6304
|
* Helpers.
|
|
@@ -5810,19 +6464,20 @@ function plural(ms, msAbs, n, name) {
|
|
|
5810
6464
|
}
|
|
5811
6465
|
|
|
5812
6466
|
|
|
5813
|
-
/***/ }
|
|
6467
|
+
/***/ },
|
|
5814
6468
|
|
|
5815
|
-
/***/ "./ts/console.ts"
|
|
6469
|
+
/***/ "./ts/console.ts"
|
|
5816
6470
|
/*!***********************!*\
|
|
5817
6471
|
!*** ./ts/console.ts ***!
|
|
5818
6472
|
\***********************/
|
|
5819
|
-
|
|
6473
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
5820
6474
|
|
|
5821
6475
|
"use strict";
|
|
5822
6476
|
|
|
5823
6477
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5824
|
-
exports.
|
|
5825
|
-
|
|
6478
|
+
exports.toConsoleMethod = toConsoleMethod;
|
|
6479
|
+
exports.createConsoleLogReporter = createConsoleLogReporter;
|
|
6480
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/index.js");
|
|
5826
6481
|
var formatter_js_1 = __webpack_require__(/*! ./formatter.js */ "./ts/formatter.ts");
|
|
5827
6482
|
var log_levels_js_1 = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
5828
6483
|
var platform_js_1 = __webpack_require__(/*! ./platform.js */ "./ts/platform.browser.ts");
|
|
@@ -5841,7 +6496,6 @@ function toConsoleMethod(level) {
|
|
|
5841
6496
|
return 'debug';
|
|
5842
6497
|
}
|
|
5843
6498
|
}
|
|
5844
|
-
exports.toConsoleMethod = toConsoleMethod;
|
|
5845
6499
|
// istanbul ignore next
|
|
5846
6500
|
/* eslint-disable no-console */
|
|
5847
6501
|
function buildPolyfillConsole() {
|
|
@@ -5857,14 +6511,12 @@ function buildPolyfillConsole() {
|
|
|
5857
6511
|
error: (typeof console.error === 'function' ? console.error : console.log).bind(console)
|
|
5858
6512
|
};
|
|
5859
6513
|
}
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
};
|
|
5867
|
-
}
|
|
6514
|
+
return {
|
|
6515
|
+
debug: buildFn(typeof console.debug === 'function' ? 'debug' : 'log'),
|
|
6516
|
+
info: buildFn(typeof console.info === 'function' ? 'info' : 'log'),
|
|
6517
|
+
warn: buildFn(typeof console.warn === 'function' ? 'warn' : 'log'),
|
|
6518
|
+
error: buildFn(typeof console.error === 'function' ? 'error' : 'log')
|
|
6519
|
+
};
|
|
5868
6520
|
}
|
|
5869
6521
|
// istanbul ignore next
|
|
5870
6522
|
function buildFn(name) {
|
|
@@ -5900,16 +6552,15 @@ function createConsoleLogReporter(options) {
|
|
|
5900
6552
|
}
|
|
5901
6553
|
});
|
|
5902
6554
|
}
|
|
5903
|
-
exports.createConsoleLogReporter = createConsoleLogReporter;
|
|
5904
6555
|
|
|
5905
6556
|
|
|
5906
|
-
/***/ }
|
|
6557
|
+
/***/ },
|
|
5907
6558
|
|
|
5908
|
-
/***/ "./ts/errors.ts"
|
|
6559
|
+
/***/ "./ts/errors.ts"
|
|
5909
6560
|
/*!**********************!*\
|
|
5910
6561
|
!*** ./ts/errors.ts ***!
|
|
5911
6562
|
\**********************/
|
|
5912
|
-
|
|
6563
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
5913
6564
|
|
|
5914
6565
|
"use strict";
|
|
5915
6566
|
|
|
@@ -5930,7 +6581,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
5930
6581
|
})();
|
|
5931
6582
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5932
6583
|
exports.InvalidId = exports.StandardLogError = void 0;
|
|
5933
|
-
var iso_error_1 = __webpack_require__(/*! iso-error */ "../../node_modules/.pnpm/iso-error@6.0.
|
|
6584
|
+
var iso_error_1 = __webpack_require__(/*! iso-error */ "../../node_modules/.pnpm/iso-error@6.0.3/node_modules/iso-error/cjs/index.js");
|
|
5934
6585
|
/**
|
|
5935
6586
|
* @deprecated No longer used since 11.2.0
|
|
5936
6587
|
*/
|
|
@@ -5962,13 +6613,13 @@ var InvalidId = /** @class */ (function (_super) {
|
|
|
5962
6613
|
exports.InvalidId = InvalidId;
|
|
5963
6614
|
|
|
5964
6615
|
|
|
5965
|
-
/***/ }
|
|
6616
|
+
/***/ },
|
|
5966
6617
|
|
|
5967
|
-
/***/ "./ts/formatter.ts"
|
|
6618
|
+
/***/ "./ts/formatter.ts"
|
|
5968
6619
|
/*!*************************!*\
|
|
5969
6620
|
!*** ./ts/formatter.ts ***!
|
|
5970
6621
|
\*************************/
|
|
5971
|
-
|
|
6622
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
5972
6623
|
|
|
5973
6624
|
"use strict";
|
|
5974
6625
|
|
|
@@ -5985,9 +6636,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5985
6636
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5986
6637
|
};
|
|
5987
6638
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5988
|
-
exports.
|
|
6639
|
+
exports.createTimestampFormatter = createTimestampFormatter;
|
|
6640
|
+
exports.formatLogLevel = formatLogLevel;
|
|
6641
|
+
exports.plainLogFormatter = plainLogFormatter;
|
|
6642
|
+
exports.consoleFormatter = consoleFormatter;
|
|
5989
6643
|
var ms_1 = __importDefault(__webpack_require__(/*! ms */ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"));
|
|
5990
|
-
var upper_case_1 = __webpack_require__(/*! upper-case */ "../../node_modules/.pnpm/upper-case@2.0.2/node_modules/upper-case/dist/index.js");
|
|
5991
6644
|
var log_levels_js_1 = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
5992
6645
|
function createTimestampFormatter(format) {
|
|
5993
6646
|
switch (format) {
|
|
@@ -6006,11 +6659,9 @@ function createTimestampFormatter(format) {
|
|
|
6006
6659
|
}
|
|
6007
6660
|
}
|
|
6008
6661
|
}
|
|
6009
|
-
exports.createTimestampFormatter = createTimestampFormatter;
|
|
6010
6662
|
function formatLogLevel(level) {
|
|
6011
|
-
return "(".concat((0,
|
|
6663
|
+
return "(".concat((0, log_levels_js_1.toLogLevelName)(level).toUpperCase(), ")");
|
|
6012
6664
|
}
|
|
6013
|
-
exports.formatLogLevel = formatLogLevel;
|
|
6014
6665
|
/**
|
|
6015
6666
|
* Formats log entry as plain text with the following format:
|
|
6016
6667
|
* `timestamp id level ...args`
|
|
@@ -6021,7 +6672,6 @@ function plainLogFormatter(_a) {
|
|
|
6021
6672
|
var id = _a.id, level = _a.level, args = _a.args, timestamp = _a.timestamp;
|
|
6022
6673
|
return __spreadArray([timestamp.toISOString(), id, formatLogLevel(level)], args, true);
|
|
6023
6674
|
}
|
|
6024
|
-
exports.plainLogFormatter = plainLogFormatter;
|
|
6025
6675
|
/**
|
|
6026
6676
|
* Formats log entry like default console log.
|
|
6027
6677
|
*/
|
|
@@ -6029,16 +6679,15 @@ function consoleFormatter(_a) {
|
|
|
6029
6679
|
var args = _a.args;
|
|
6030
6680
|
return args;
|
|
6031
6681
|
}
|
|
6032
|
-
exports.consoleFormatter = consoleFormatter;
|
|
6033
6682
|
|
|
6034
6683
|
|
|
6035
|
-
/***/ }
|
|
6684
|
+
/***/ },
|
|
6036
6685
|
|
|
6037
|
-
/***/ "./ts/index.ts"
|
|
6686
|
+
/***/ "./ts/index.ts"
|
|
6038
6687
|
/*!*********************!*\
|
|
6039
6688
|
!*** ./ts/index.ts ***!
|
|
6040
6689
|
\*********************/
|
|
6041
|
-
|
|
6690
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6042
6691
|
|
|
6043
6692
|
"use strict";
|
|
6044
6693
|
|
|
@@ -6070,18 +6719,20 @@ Object.defineProperty(exports, "getLogger", ({ enumerable: true, get: function (
|
|
|
6070
6719
|
Object.defineProperty(exports, "suppressLogs", ({ enumerable: true, get: function () { return standard_log_js_1.suppressLogs; } }));
|
|
6071
6720
|
|
|
6072
6721
|
|
|
6073
|
-
/***/ }
|
|
6722
|
+
/***/ },
|
|
6074
6723
|
|
|
6075
|
-
/***/ "./ts/log_levels.ts"
|
|
6724
|
+
/***/ "./ts/log_levels.ts"
|
|
6076
6725
|
/*!**************************!*\
|
|
6077
6726
|
!*** ./ts/log_levels.ts ***!
|
|
6078
6727
|
\**************************/
|
|
6079
|
-
|
|
6728
|
+
(__unused_webpack_module, exports) {
|
|
6080
6729
|
|
|
6081
6730
|
"use strict";
|
|
6082
6731
|
|
|
6083
6732
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6084
|
-
exports.DEFAULT_LOG_METHOD_NAMES = exports.
|
|
6733
|
+
exports.DEFAULT_LOG_METHOD_NAMES = exports.logLevels = void 0;
|
|
6734
|
+
exports.toLogLevelName = toLogLevelName;
|
|
6735
|
+
exports.toLogLevel = toLogLevel;
|
|
6085
6736
|
exports.logLevels = {
|
|
6086
6737
|
/**
|
|
6087
6738
|
* none: 0
|
|
@@ -6147,11 +6798,11 @@ exports.logLevels = {
|
|
|
6147
6798
|
*
|
|
6148
6799
|
* trace -> planck
|
|
6149
6800
|
*/
|
|
6150
|
-
planck:
|
|
6801
|
+
planck: Number.POSITIVE_INFINITY,
|
|
6151
6802
|
/**
|
|
6152
6803
|
* all: Infinity
|
|
6153
6804
|
*/
|
|
6154
|
-
all:
|
|
6805
|
+
all: Number.POSITIVE_INFINITY
|
|
6155
6806
|
};
|
|
6156
6807
|
/**
|
|
6157
6808
|
* Convert default log level value to log level name.
|
|
@@ -6177,14 +6828,12 @@ function toLogLevelName(level) {
|
|
|
6177
6828
|
return 'trace';
|
|
6178
6829
|
return 'planck';
|
|
6179
6830
|
}
|
|
6180
|
-
exports.toLogLevelName = toLogLevelName;
|
|
6181
6831
|
/**
|
|
6182
6832
|
* Convert default log level name to log level value.
|
|
6183
6833
|
*/
|
|
6184
6834
|
function toLogLevel(name) {
|
|
6185
6835
|
return exports.logLevels[name.toLocaleLowerCase()];
|
|
6186
6836
|
}
|
|
6187
|
-
exports.toLogLevel = toLogLevel;
|
|
6188
6837
|
exports.DEFAULT_LOG_METHOD_NAMES = [
|
|
6189
6838
|
'emergency',
|
|
6190
6839
|
'alert',
|
|
@@ -6199,19 +6848,20 @@ exports.DEFAULT_LOG_METHOD_NAMES = [
|
|
|
6199
6848
|
];
|
|
6200
6849
|
|
|
6201
6850
|
|
|
6202
|
-
/***/ }
|
|
6851
|
+
/***/ },
|
|
6203
6852
|
|
|
6204
|
-
/***/ "./ts/log_store.ts"
|
|
6853
|
+
/***/ "./ts/log_store.ts"
|
|
6205
6854
|
/*!*************************!*\
|
|
6206
6855
|
!*** ./ts/log_store.ts ***!
|
|
6207
6856
|
\*************************/
|
|
6208
|
-
|
|
6857
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6209
6858
|
|
|
6210
6859
|
"use strict";
|
|
6211
6860
|
|
|
6212
6861
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6213
|
-
exports.
|
|
6214
|
-
|
|
6862
|
+
exports.createLogStore = createLogStore;
|
|
6863
|
+
exports.logLevelStore = logLevelStore;
|
|
6864
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/index.js");
|
|
6215
6865
|
var console_js_1 = __webpack_require__(/*! ./console.js */ "./ts/console.ts");
|
|
6216
6866
|
var log_levels_js_1 = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
6217
6867
|
function createLogStore(options) {
|
|
@@ -6223,7 +6873,6 @@ function createLogStore(options) {
|
|
|
6223
6873
|
logLevelStore: logLevelStore(options)
|
|
6224
6874
|
};
|
|
6225
6875
|
}
|
|
6226
|
-
exports.createLogStore = createLogStore;
|
|
6227
6876
|
function logLevelStore(options) {
|
|
6228
6877
|
var customLevels = options.customLevels || (0, type_plus_1.record)();
|
|
6229
6878
|
var store = {
|
|
@@ -6251,16 +6900,15 @@ function logLevelStore(options) {
|
|
|
6251
6900
|
}
|
|
6252
6901
|
};
|
|
6253
6902
|
}
|
|
6254
|
-
exports.logLevelStore = logLevelStore;
|
|
6255
6903
|
|
|
6256
6904
|
|
|
6257
|
-
/***/ }
|
|
6905
|
+
/***/ },
|
|
6258
6906
|
|
|
6259
|
-
/***/ "./ts/logger.ts"
|
|
6907
|
+
/***/ "./ts/logger.ts"
|
|
6260
6908
|
/*!**********************!*\
|
|
6261
6909
|
!*** ./ts/logger.ts ***!
|
|
6262
6910
|
\**********************/
|
|
6263
|
-
|
|
6911
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6264
6912
|
|
|
6265
6913
|
"use strict";
|
|
6266
6914
|
|
|
@@ -6274,7 +6922,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
6274
6922
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
6275
6923
|
};
|
|
6276
6924
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6277
|
-
exports.createLogger =
|
|
6925
|
+
exports.createLogger = createLogger;
|
|
6278
6926
|
var log_levels_js_1 = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
6279
6927
|
function createLogger(store, id, options) {
|
|
6280
6928
|
var _a;
|
|
@@ -6345,7 +6993,6 @@ function createLogger(store, id, options) {
|
|
|
6345
6993
|
});
|
|
6346
6994
|
return logger;
|
|
6347
6995
|
}
|
|
6348
|
-
exports.createLogger = createLogger;
|
|
6349
6996
|
function sanitizeId(id) {
|
|
6350
6997
|
return id.replace(/[`~!#$%^&*()=+[\]{},|<>?]/g, '-');
|
|
6351
6998
|
}
|
|
@@ -6362,22 +7009,24 @@ function shouldLog(store, targetLevel, loggerLevel) {
|
|
|
6362
7009
|
}
|
|
6363
7010
|
|
|
6364
7011
|
|
|
6365
|
-
/***/ }
|
|
7012
|
+
/***/ },
|
|
6366
7013
|
|
|
6367
|
-
/***/ "./ts/memory.ts"
|
|
7014
|
+
/***/ "./ts/memory.ts"
|
|
6368
7015
|
/*!**********************!*\
|
|
6369
7016
|
!*** ./ts/memory.ts ***!
|
|
6370
7017
|
\**********************/
|
|
6371
|
-
|
|
7018
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6372
7019
|
|
|
6373
7020
|
"use strict";
|
|
6374
7021
|
|
|
6375
7022
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6376
|
-
exports.
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
var
|
|
7023
|
+
exports.toMessageWithLevel = toMessageWithLevel;
|
|
7024
|
+
exports.createMemoryLogReporter = createMemoryLogReporter;
|
|
7025
|
+
exports.createMemoryWithConsoleLogReporter = createMemoryWithConsoleLogReporter;
|
|
7026
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/index.js");
|
|
6380
7027
|
var console_js_1 = __webpack_require__(/*! ./console.js */ "./ts/console.ts");
|
|
7028
|
+
var formatter_js_1 = __webpack_require__(/*! ./formatter.js */ "./ts/formatter.ts");
|
|
7029
|
+
var platform_js_1 = __webpack_require__(/*! ./platform.js */ "./ts/platform.browser.ts");
|
|
6381
7030
|
function toMessageWithLevel(logs) {
|
|
6382
7031
|
return (logs
|
|
6383
7032
|
.map(platform_js_1.toInspectLogEntry)
|
|
@@ -6388,11 +7037,9 @@ function toMessageWithLevel(logs) {
|
|
|
6388
7037
|
// and remove this log to simplify testing.
|
|
6389
7038
|
.replace(/^\(WARN\) already configured for test, ignoring config\(\) call\n/, ''));
|
|
6390
7039
|
}
|
|
6391
|
-
exports.toMessageWithLevel = toMessageWithLevel;
|
|
6392
7040
|
function createMemoryLogReporter(options) {
|
|
6393
7041
|
return Object.freeze(buildMemoryReporter((0, type_plus_1.unpartial)({ id: 'memory' }, options)));
|
|
6394
7042
|
}
|
|
6395
|
-
exports.createMemoryLogReporter = createMemoryLogReporter;
|
|
6396
7043
|
function buildMemoryReporter(options) {
|
|
6397
7044
|
var _a = (0, type_plus_1.required)({ id: 'memory', formatter: function (e) { return e; } }, options), id = _a.id, formatter = _a.formatter, filter = _a.filter;
|
|
6398
7045
|
var logs = [];
|
|
@@ -6417,9 +7064,7 @@ function buildMemoryReporter(options) {
|
|
|
6417
7064
|
return logs.map(platform_js_1.toInspectLogEntry).map(function (log) { return log.args.join(' '); });
|
|
6418
7065
|
},
|
|
6419
7066
|
getLogMessagesWithLevel: function () {
|
|
6420
|
-
return logs
|
|
6421
|
-
.map(platform_js_1.toInspectLogEntry)
|
|
6422
|
-
.map(function (log) { return "".concat((0, formatter_js_1.formatLogLevel)(log.level), " ").concat(log.args.join(' ')); });
|
|
7067
|
+
return logs.map(platform_js_1.toInspectLogEntry).map(function (log) { return "".concat((0, formatter_js_1.formatLogLevel)(log.level), " ").concat(log.args.join(' ')); });
|
|
6423
7068
|
},
|
|
6424
7069
|
getLogMessagesWithIdAndLevel: function () {
|
|
6425
7070
|
return logs
|
|
@@ -6443,50 +7088,49 @@ function createMemoryWithConsoleLogReporter(options) {
|
|
|
6443
7088
|
isConsoleReporter: true
|
|
6444
7089
|
}));
|
|
6445
7090
|
}
|
|
6446
|
-
exports.createMemoryWithConsoleLogReporter = createMemoryWithConsoleLogReporter;
|
|
6447
7091
|
|
|
6448
7092
|
|
|
6449
|
-
/***/ }
|
|
7093
|
+
/***/ },
|
|
6450
7094
|
|
|
6451
|
-
/***/ "./ts/platform.browser.ts"
|
|
7095
|
+
/***/ "./ts/platform.browser.ts"
|
|
6452
7096
|
/*!********************************!*\
|
|
6453
7097
|
!*** ./ts/platform.browser.ts ***!
|
|
6454
7098
|
\********************************/
|
|
6455
|
-
|
|
7099
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6456
7100
|
|
|
6457
7101
|
"use strict";
|
|
6458
7102
|
|
|
6459
7103
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6460
7104
|
exports.polyfill = exports.toInspectLogEntry = void 0;
|
|
6461
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@
|
|
7105
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/index.js");
|
|
6462
7106
|
var toInspectLogEntry = function (e) { return e; };
|
|
6463
7107
|
exports.toInspectLogEntry = toInspectLogEntry;
|
|
6464
7108
|
exports.polyfill = (0, type_plus_1.record)();
|
|
6465
7109
|
|
|
6466
7110
|
|
|
6467
|
-
/***/ }
|
|
7111
|
+
/***/ },
|
|
6468
7112
|
|
|
6469
|
-
/***/ "./ts/standard_log.ctx.ts"
|
|
7113
|
+
/***/ "./ts/standard_log.ctx.ts"
|
|
6470
7114
|
/*!********************************!*\
|
|
6471
7115
|
!*** ./ts/standard_log.ctx.ts ***!
|
|
6472
7116
|
\********************************/
|
|
6473
|
-
|
|
7117
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6474
7118
|
|
|
6475
7119
|
"use strict";
|
|
6476
7120
|
|
|
6477
7121
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6478
7122
|
exports.ctx = void 0;
|
|
6479
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@
|
|
7123
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/index.js");
|
|
6480
7124
|
exports.ctx = (0, type_plus_1.record)();
|
|
6481
7125
|
|
|
6482
7126
|
|
|
6483
|
-
/***/ }
|
|
7127
|
+
/***/ },
|
|
6484
7128
|
|
|
6485
|
-
/***/ "./ts/standard_log.ts"
|
|
7129
|
+
/***/ "./ts/standard_log.ts"
|
|
6486
7130
|
/*!****************************!*\
|
|
6487
7131
|
!*** ./ts/standard_log.ts ***!
|
|
6488
7132
|
\****************************/
|
|
6489
|
-
|
|
7133
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6490
7134
|
|
|
6491
7135
|
"use strict";
|
|
6492
7136
|
|
|
@@ -6502,8 +7146,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
6502
7146
|
return __assign.apply(this, arguments);
|
|
6503
7147
|
};
|
|
6504
7148
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6505
|
-
exports.
|
|
6506
|
-
|
|
7149
|
+
exports.createStandardLog = createStandardLog;
|
|
7150
|
+
exports.createStandardLogClosure = createStandardLogClosure;
|
|
7151
|
+
exports.suppressLogs = suppressLogs;
|
|
7152
|
+
exports.getLogger = getLogger;
|
|
7153
|
+
exports.configGlobal = configGlobal;
|
|
7154
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/index.js");
|
|
6507
7155
|
var log_levels_js_1 = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
6508
7156
|
var log_store_js_1 = __webpack_require__(/*! ./log_store.js */ "./ts/log_store.ts");
|
|
6509
7157
|
var logger_js_1 = __webpack_require__(/*! ./logger.js */ "./ts/logger.ts");
|
|
@@ -6519,7 +7167,6 @@ function createStandardLog(options) {
|
|
|
6519
7167
|
standard_log_ctx_js_1.ctx.gsl = closure;
|
|
6520
7168
|
return closure.standardLog;
|
|
6521
7169
|
}
|
|
6522
|
-
exports.createStandardLog = createStandardLog;
|
|
6523
7170
|
function noop() { }
|
|
6524
7171
|
function createStandardLogClosure(options) {
|
|
6525
7172
|
var _a, _b, _c;
|
|
@@ -6566,7 +7213,6 @@ function createStandardLogClosure(options) {
|
|
|
6566
7213
|
}
|
|
6567
7214
|
};
|
|
6568
7215
|
}
|
|
6569
|
-
exports.createStandardLogClosure = createStandardLogClosure;
|
|
6570
7216
|
function createDummyLogger(logMethods) {
|
|
6571
7217
|
return logMethods.reduce(function (p, m) {
|
|
6572
7218
|
p[m] = noop;
|
|
@@ -6584,11 +7230,9 @@ function suppressLogs(block) {
|
|
|
6584
7230
|
logs.forEach(function (l, i) { return (l.level = origLevels[i]); });
|
|
6585
7231
|
return result;
|
|
6586
7232
|
}
|
|
6587
|
-
exports.suppressLogs = suppressLogs;
|
|
6588
7233
|
function getLogger(id, options) {
|
|
6589
7234
|
return getGlobalSL().getLogger(id, options);
|
|
6590
7235
|
}
|
|
6591
|
-
exports.getLogger = getLogger;
|
|
6592
7236
|
function getGlobalSL() {
|
|
6593
7237
|
if (!standard_log_ctx_js_1.ctx.gsl)
|
|
6594
7238
|
standard_log_ctx_js_1.ctx.gsl = createStandardLogClosure();
|
|
@@ -6614,75 +7258,15 @@ function configGlobal(options) {
|
|
|
6614
7258
|
}
|
|
6615
7259
|
standard_log_ctx_js_1.ctx.configured = true;
|
|
6616
7260
|
}
|
|
6617
|
-
exports.configGlobal = configGlobal;
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
/***/ }),
|
|
6621
|
-
|
|
6622
|
-
/***/ "../../node_modules/.pnpm/upper-case@2.0.2/node_modules/upper-case/dist/index.js":
|
|
6623
|
-
/*!***************************************************************************************!*\
|
|
6624
|
-
!*** ../../node_modules/.pnpm/upper-case@2.0.2/node_modules/upper-case/dist/index.js ***!
|
|
6625
|
-
\***************************************************************************************/
|
|
6626
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
6627
|
-
|
|
6628
|
-
"use strict";
|
|
6629
7261
|
|
|
6630
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6631
|
-
exports.upperCase = exports.localeUpperCase = void 0;
|
|
6632
|
-
/**
|
|
6633
|
-
* Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
|
|
6634
|
-
*/
|
|
6635
|
-
var SUPPORTED_LOCALE = {
|
|
6636
|
-
tr: {
|
|
6637
|
-
regexp: /[\u0069]/g,
|
|
6638
|
-
map: {
|
|
6639
|
-
i: "\u0130",
|
|
6640
|
-
},
|
|
6641
|
-
},
|
|
6642
|
-
az: {
|
|
6643
|
-
regexp: /[\u0069]/g,
|
|
6644
|
-
map: {
|
|
6645
|
-
i: "\u0130",
|
|
6646
|
-
},
|
|
6647
|
-
},
|
|
6648
|
-
lt: {
|
|
6649
|
-
regexp: /[\u0069\u006A\u012F]\u0307|\u0069\u0307[\u0300\u0301\u0303]/g,
|
|
6650
|
-
map: {
|
|
6651
|
-
i̇: "\u0049",
|
|
6652
|
-
j̇: "\u004A",
|
|
6653
|
-
į̇: "\u012E",
|
|
6654
|
-
i̇̀: "\u00CC",
|
|
6655
|
-
i̇́: "\u00CD",
|
|
6656
|
-
i̇̃: "\u0128",
|
|
6657
|
-
},
|
|
6658
|
-
},
|
|
6659
|
-
};
|
|
6660
|
-
/**
|
|
6661
|
-
* Localized upper case.
|
|
6662
|
-
*/
|
|
6663
|
-
function localeUpperCase(str, locale) {
|
|
6664
|
-
var lang = SUPPORTED_LOCALE[locale.toLowerCase()];
|
|
6665
|
-
if (lang)
|
|
6666
|
-
return upperCase(str.replace(lang.regexp, function (m) { return lang.map[m]; }));
|
|
6667
|
-
return upperCase(str);
|
|
6668
|
-
}
|
|
6669
|
-
exports.localeUpperCase = localeUpperCase;
|
|
6670
|
-
/**
|
|
6671
|
-
* Upper case as a function.
|
|
6672
|
-
*/
|
|
6673
|
-
function upperCase(str) {
|
|
6674
|
-
return str.toUpperCase();
|
|
6675
|
-
}
|
|
6676
|
-
exports.upperCase = upperCase;
|
|
6677
|
-
//# sourceMappingURL=index.js.map
|
|
6678
7262
|
|
|
6679
|
-
/***/ }
|
|
7263
|
+
/***/ },
|
|
6680
7264
|
|
|
6681
|
-
/***/ "../../node_modules/.pnpm/iso-error@6.0.
|
|
7265
|
+
/***/ "../../node_modules/.pnpm/iso-error@6.0.3/node_modules/iso-error/cjs/index.js"
|
|
6682
7266
|
/*!************************************************************************************!*\
|
|
6683
|
-
!*** ../../node_modules/.pnpm/iso-error@6.0.
|
|
7267
|
+
!*** ../../node_modules/.pnpm/iso-error@6.0.3/node_modules/iso-error/cjs/index.js ***!
|
|
6684
7268
|
\************************************************************************************/
|
|
6685
|
-
|
|
7269
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6686
7270
|
|
|
6687
7271
|
"use strict";
|
|
6688
7272
|
|
|
@@ -6752,7 +7336,7 @@ class SerializableConverter {
|
|
|
6752
7336
|
return err;
|
|
6753
7337
|
}
|
|
6754
7338
|
fromSerializableImpl(json) {
|
|
6755
|
-
if (json
|
|
7339
|
+
if (json['name'] === 'AggregateError') {
|
|
6756
7340
|
const _b = json, { message, errors } = _b, rest = __rest(_b, ["message", "errors"]);
|
|
6757
7341
|
// @ts-ignore
|
|
6758
7342
|
// istanbul ignore next
|
|
@@ -6765,7 +7349,7 @@ class SerializableConverter {
|
|
|
6765
7349
|
}
|
|
6766
7350
|
const { message, cause } = json, rest = __rest(json, ["message", "cause"]);
|
|
6767
7351
|
const causeError = cause ? this.deserializeError(cause) : undefined;
|
|
6768
|
-
if (json
|
|
7352
|
+
if (json['name'] === 'Error') {
|
|
6769
7353
|
return Object.assign(new Error(message), causeError ? Object.assign(Object.assign({}, rest), { cause: causeError }) : rest);
|
|
6770
7354
|
}
|
|
6771
7355
|
// @ts-ignore
|
|
@@ -6963,13 +7547,13 @@ function isAggregateError(error) {
|
|
|
6963
7547
|
exports.isAggregateError = isAggregateError;
|
|
6964
7548
|
//# sourceMappingURL=index.js.map
|
|
6965
7549
|
|
|
6966
|
-
/***/ }
|
|
7550
|
+
/***/ },
|
|
6967
7551
|
|
|
6968
|
-
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/constants.js"
|
|
7552
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/constants.js"
|
|
6969
7553
|
/*!*************************************************************************************!*\
|
|
6970
7554
|
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/constants.js ***!
|
|
6971
7555
|
\*************************************************************************************/
|
|
6972
|
-
|
|
7556
|
+
(__unused_webpack_module, exports) {
|
|
6973
7557
|
|
|
6974
7558
|
"use strict";
|
|
6975
7559
|
|
|
@@ -6979,13 +7563,13 @@ exports.EOL = '\r\n';
|
|
|
6979
7563
|
exports.defaultOptions = { maxLength: 120, references: [] };
|
|
6980
7564
|
//# sourceMappingURL=constants.js.map
|
|
6981
7565
|
|
|
6982
|
-
/***/ }
|
|
7566
|
+
/***/ },
|
|
6983
7567
|
|
|
6984
|
-
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/hasTersifyFn.js"
|
|
7568
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/hasTersifyFn.js"
|
|
6985
7569
|
/*!****************************************************************************************!*\
|
|
6986
7570
|
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/hasTersifyFn.js ***!
|
|
6987
7571
|
\****************************************************************************************/
|
|
6988
|
-
|
|
7572
|
+
(__unused_webpack_module, exports) {
|
|
6989
7573
|
|
|
6990
7574
|
"use strict";
|
|
6991
7575
|
|
|
@@ -6997,13 +7581,13 @@ function hasTersifyFn(obj) {
|
|
|
6997
7581
|
exports.hasTersifyFn = hasTersifyFn;
|
|
6998
7582
|
//# sourceMappingURL=hasTersifyFn.js.map
|
|
6999
7583
|
|
|
7000
|
-
/***/ }
|
|
7584
|
+
/***/ },
|
|
7001
7585
|
|
|
7002
|
-
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/index.js"
|
|
7586
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/index.js"
|
|
7003
7587
|
/*!*********************************************************************************!*\
|
|
7004
7588
|
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/index.js ***!
|
|
7005
7589
|
\*********************************************************************************/
|
|
7006
|
-
|
|
7590
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7007
7591
|
|
|
7008
7592
|
"use strict";
|
|
7009
7593
|
|
|
@@ -7029,13 +7613,13 @@ Object.defineProperty(exports, "tersify", ({ enumerable: true, get: function ()
|
|
|
7029
7613
|
__exportStar(__webpack_require__(/*! ./types.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/types.js"), exports);
|
|
7030
7614
|
//# sourceMappingURL=index.js.map
|
|
7031
7615
|
|
|
7032
|
-
/***/ }
|
|
7616
|
+
/***/ },
|
|
7033
7617
|
|
|
7034
|
-
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersible.js"
|
|
7618
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersible.js"
|
|
7035
7619
|
/*!************************************************************************************!*\
|
|
7036
7620
|
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersible.js ***!
|
|
7037
7621
|
\************************************************************************************/
|
|
7038
|
-
|
|
7622
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7039
7623
|
|
|
7040
7624
|
"use strict";
|
|
7041
7625
|
|
|
@@ -7114,13 +7698,13 @@ function tersible(subject, tersify) {
|
|
|
7114
7698
|
exports.tersible = tersible;
|
|
7115
7699
|
//# sourceMappingURL=tersible.js.map
|
|
7116
7700
|
|
|
7117
|
-
/***/ }
|
|
7701
|
+
/***/ },
|
|
7118
7702
|
|
|
7119
|
-
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersify.js"
|
|
7703
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersify.js"
|
|
7120
7704
|
/*!***********************************************************************************!*\
|
|
7121
7705
|
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersify.js ***!
|
|
7122
7706
|
\***********************************************************************************/
|
|
7123
|
-
|
|
7707
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7124
7708
|
|
|
7125
7709
|
"use strict";
|
|
7126
7710
|
|
|
@@ -7150,7 +7734,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7150
7734
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7151
7735
|
exports.tersify = exports.defaultTersify = void 0;
|
|
7152
7736
|
var is_buffer_1 = __importDefault(__webpack_require__(/*! is-buffer */ "../../node_modules/.pnpm/is-buffer@2.0.5/node_modules/is-buffer/index.js"));
|
|
7153
|
-
var unpartial_1 = __webpack_require__(/*! unpartial */ "../../node_modules/.pnpm/unpartial@1.0.
|
|
7737
|
+
var unpartial_1 = __webpack_require__(/*! unpartial */ "../../node_modules/.pnpm/unpartial@1.0.5/node_modules/unpartial/cjs/index.js");
|
|
7154
7738
|
var constants_js_1 = __webpack_require__(/*! ./constants.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/constants.js");
|
|
7155
7739
|
var hasTersifyFn_js_1 = __webpack_require__(/*! ./hasTersifyFn.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/hasTersifyFn.js");
|
|
7156
7740
|
var tersifyFunction_js_1 = __webpack_require__(/*! ./tersifyFunction.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunction.js");
|
|
@@ -7387,13 +7971,13 @@ function getPropKey(key) {
|
|
|
7387
7971
|
}
|
|
7388
7972
|
//# sourceMappingURL=tersify.js.map
|
|
7389
7973
|
|
|
7390
|
-
/***/ }
|
|
7974
|
+
/***/ },
|
|
7391
7975
|
|
|
7392
|
-
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/index.js"
|
|
7976
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/index.js"
|
|
7393
7977
|
/*!**********************************************************************************************!*\
|
|
7394
7978
|
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/index.js ***!
|
|
7395
7979
|
\**********************************************************************************************/
|
|
7396
|
-
|
|
7980
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7397
7981
|
|
|
7398
7982
|
"use strict";
|
|
7399
7983
|
|
|
@@ -7415,13 +7999,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
7415
7999
|
__exportStar(__webpack_require__(/*! ./tersifyAcorn.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/tersifyAcorn.js"), exports);
|
|
7416
8000
|
//# sourceMappingURL=index.js.map
|
|
7417
8001
|
|
|
7418
|
-
/***/ }
|
|
8002
|
+
/***/ },
|
|
7419
8003
|
|
|
7420
|
-
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/isHigherBinaryOperatorOrder.js"
|
|
8004
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/isHigherBinaryOperatorOrder.js"
|
|
7421
8005
|
/*!********************************************************************************************************************!*\
|
|
7422
8006
|
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/isHigherBinaryOperatorOrder.js ***!
|
|
7423
8007
|
\********************************************************************************************************************/
|
|
7424
|
-
|
|
8008
|
+
(__unused_webpack_module, exports) {
|
|
7425
8009
|
|
|
7426
8010
|
"use strict";
|
|
7427
8011
|
|
|
@@ -7459,13 +8043,13 @@ function isHigherOperatorOrder(op1, op2) {
|
|
|
7459
8043
|
exports.isHigherOperatorOrder = isHigherOperatorOrder;
|
|
7460
8044
|
//# sourceMappingURL=isHigherBinaryOperatorOrder.js.map
|
|
7461
8045
|
|
|
7462
|
-
/***/ }
|
|
8046
|
+
/***/ },
|
|
7463
8047
|
|
|
7464
|
-
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/tersifyAcorn.js"
|
|
8048
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/tersifyAcorn.js"
|
|
7465
8049
|
/*!*****************************************************************************************************!*\
|
|
7466
8050
|
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/tersifyAcorn.js ***!
|
|
7467
8051
|
\*****************************************************************************************************/
|
|
7468
|
-
|
|
8052
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7469
8053
|
|
|
7470
8054
|
"use strict";
|
|
7471
8055
|
|
|
@@ -7491,7 +8075,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
7491
8075
|
};
|
|
7492
8076
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7493
8077
|
exports.tersifyAcorn = void 0;
|
|
7494
|
-
var acorn_1 = __webpack_require__(/*! acorn */ "../../node_modules/.pnpm/acorn@8.
|
|
8078
|
+
var acorn_1 = __webpack_require__(/*! acorn */ "../../node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/dist/acorn.js");
|
|
7495
8079
|
var trim_js_1 = __webpack_require__(/*! ../trim.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js");
|
|
7496
8080
|
var isHigherBinaryOperatorOrder_js_1 = __webpack_require__(/*! ./isHigherBinaryOperatorOrder.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/isHigherBinaryOperatorOrder.js");
|
|
7497
8081
|
function tersifyAcorn(context, value, length) {
|
|
@@ -8096,13 +8680,13 @@ function tersifySuperNode(context, node, length) {
|
|
|
8096
8680
|
}
|
|
8097
8681
|
//# sourceMappingURL=tersifyAcorn.js.map
|
|
8098
8682
|
|
|
8099
|
-
/***/ }
|
|
8683
|
+
/***/ },
|
|
8100
8684
|
|
|
8101
|
-
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunction.js"
|
|
8685
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunction.js"
|
|
8102
8686
|
/*!*******************************************************************************************!*\
|
|
8103
8687
|
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunction.js ***!
|
|
8104
8688
|
\*******************************************************************************************/
|
|
8105
|
-
|
|
8689
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8106
8690
|
|
|
8107
8691
|
"use strict";
|
|
8108
8692
|
|
|
@@ -8130,13 +8714,13 @@ function tersifyFunction(context, fn, _length) {
|
|
|
8130
8714
|
exports.tersifyFunction = tersifyFunction;
|
|
8131
8715
|
//# sourceMappingURL=tersifyFunction.js.map
|
|
8132
8716
|
|
|
8133
|
-
/***/ }
|
|
8717
|
+
/***/ },
|
|
8134
8718
|
|
|
8135
|
-
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunctionByString.js"
|
|
8719
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunctionByString.js"
|
|
8136
8720
|
/*!***************************************************************************************************!*\
|
|
8137
8721
|
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunctionByString.js ***!
|
|
8138
8722
|
\***************************************************************************************************/
|
|
8139
|
-
|
|
8723
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8140
8724
|
|
|
8141
8725
|
"use strict";
|
|
8142
8726
|
|
|
@@ -8320,13 +8904,13 @@ function applyTemplate(template, struct) {
|
|
|
8320
8904
|
}
|
|
8321
8905
|
//# sourceMappingURL=tersifyFunctionByString.js.map
|
|
8322
8906
|
|
|
8323
|
-
/***/ }
|
|
8907
|
+
/***/ },
|
|
8324
8908
|
|
|
8325
|
-
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js"
|
|
8909
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js"
|
|
8326
8910
|
/*!********************************************************************************!*\
|
|
8327
8911
|
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js ***!
|
|
8328
8912
|
\********************************************************************************/
|
|
8329
|
-
|
|
8913
|
+
(__unused_webpack_module, exports) {
|
|
8330
8914
|
|
|
8331
8915
|
"use strict";
|
|
8332
8916
|
|
|
@@ -8343,336 +8927,100 @@ function trim(_a, value, length) {
|
|
|
8343
8927
|
exports.trim = trim;
|
|
8344
8928
|
//# sourceMappingURL=trim.js.map
|
|
8345
8929
|
|
|
8346
|
-
/***/ }
|
|
8930
|
+
/***/ },
|
|
8347
8931
|
|
|
8348
|
-
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/types.js"
|
|
8932
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/types.js"
|
|
8349
8933
|
/*!*********************************************************************************!*\
|
|
8350
8934
|
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/types.js ***!
|
|
8351
8935
|
\*********************************************************************************/
|
|
8352
|
-
|
|
8936
|
+
(__unused_webpack_module, exports) {
|
|
8353
8937
|
|
|
8354
8938
|
"use strict";
|
|
8355
8939
|
|
|
8356
8940
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8357
8941
|
//# sourceMappingURL=types.js.map
|
|
8358
8942
|
|
|
8359
|
-
/***/ }
|
|
8943
|
+
/***/ },
|
|
8360
8944
|
|
|
8361
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8945
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/array/array_plus.js"
|
|
8362
8946
|
/*!***********************************************************************************************!*\
|
|
8363
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8947
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/array/array_plus.js ***!
|
|
8364
8948
|
\***********************************************************************************************/
|
|
8365
|
-
|
|
8949
|
+
(__unused_webpack_module, exports) {
|
|
8366
8950
|
|
|
8367
8951
|
"use strict";
|
|
8368
8952
|
|
|
8369
8953
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8370
8954
|
//# sourceMappingURL=array_plus.js.map
|
|
8371
8955
|
|
|
8372
|
-
/***/ }
|
|
8956
|
+
/***/ },
|
|
8373
8957
|
|
|
8374
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8375
|
-
|
|
8376
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8377
|
-
|
|
8378
|
-
|
|
8958
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/array/literal_array.js"
|
|
8959
|
+
/*!**************************************************************************************************!*\
|
|
8960
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/array/literal_array.js ***!
|
|
8961
|
+
\**************************************************************************************************/
|
|
8962
|
+
(__unused_webpack_module, exports) {
|
|
8379
8963
|
|
|
8380
8964
|
"use strict";
|
|
8381
8965
|
|
|
8382
8966
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8383
|
-
|
|
8967
|
+
exports.literalArray = void 0;
|
|
8968
|
+
/**
|
|
8969
|
+
* 🦴 *utilities*
|
|
8970
|
+
*
|
|
8971
|
+
* return an array whose items are restricted to the provided literals.
|
|
8972
|
+
*/
|
|
8973
|
+
function literalArray(...entries) {
|
|
8974
|
+
return entries;
|
|
8975
|
+
}
|
|
8976
|
+
exports.literalArray = literalArray;
|
|
8977
|
+
//# sourceMappingURL=literal_array.js.map
|
|
8384
8978
|
|
|
8385
|
-
/***/ }
|
|
8979
|
+
/***/ },
|
|
8386
8980
|
|
|
8387
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8981
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/array/reduce_while.js"
|
|
8388
8982
|
/*!*************************************************************************************************!*\
|
|
8389
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8983
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/array/reduce_while.js ***!
|
|
8390
8984
|
\*************************************************************************************************/
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
"use strict";
|
|
8394
|
-
|
|
8395
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8396
|
-
//# sourceMappingURL=create_tuple.js.map
|
|
8397
|
-
|
|
8398
|
-
/***/ }),
|
|
8399
|
-
|
|
8400
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/drop.js":
|
|
8401
|
-
/*!*****************************************************************************************!*\
|
|
8402
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/drop.js ***!
|
|
8403
|
-
\*****************************************************************************************/
|
|
8404
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
8985
|
+
(__unused_webpack_module, exports) {
|
|
8405
8986
|
|
|
8406
8987
|
"use strict";
|
|
8407
8988
|
|
|
8408
8989
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8409
|
-
exports.
|
|
8990
|
+
exports.reduceWhile = void 0;
|
|
8410
8991
|
/**
|
|
8411
|
-
*
|
|
8992
|
+
* 🦴 *utilities*
|
|
8993
|
+
*
|
|
8994
|
+
* `reduce()` with predicate for early termination.
|
|
8995
|
+
* A simple version of the same function in the `ramda` package.
|
|
8412
8996
|
*/
|
|
8413
|
-
function
|
|
8414
|
-
|
|
8997
|
+
function reduceWhile(predicate, callbackfn, initialValue, array) {
|
|
8998
|
+
let acc = initialValue;
|
|
8999
|
+
for (let i = 0; i < array.length; i++) {
|
|
9000
|
+
const value = array[i];
|
|
9001
|
+
if (!predicate(acc, value))
|
|
9002
|
+
return acc;
|
|
9003
|
+
acc = callbackfn(acc, value, i, array);
|
|
9004
|
+
}
|
|
9005
|
+
return acc;
|
|
8415
9006
|
}
|
|
8416
|
-
exports.
|
|
8417
|
-
//# sourceMappingURL=
|
|
8418
|
-
|
|
8419
|
-
/***/ }),
|
|
8420
|
-
|
|
8421
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/filter.js":
|
|
8422
|
-
/*!*******************************************************************************************!*\
|
|
8423
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/filter.js ***!
|
|
8424
|
-
\*******************************************************************************************/
|
|
8425
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
8426
|
-
|
|
8427
|
-
"use strict";
|
|
8428
|
-
|
|
8429
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8430
|
-
//# sourceMappingURL=filter.js.map
|
|
8431
|
-
|
|
8432
|
-
/***/ }),
|
|
8433
|
-
|
|
8434
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/find_first.js":
|
|
8435
|
-
/*!***********************************************************************************************!*\
|
|
8436
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/find_first.js ***!
|
|
8437
|
-
\***********************************************************************************************/
|
|
8438
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
8439
|
-
|
|
8440
|
-
"use strict";
|
|
8441
|
-
|
|
8442
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8443
|
-
//# sourceMappingURL=find_first.js.map
|
|
9007
|
+
exports.reduceWhile = reduceWhile;
|
|
9008
|
+
//# sourceMappingURL=reduce_while.js.map
|
|
8444
9009
|
|
|
8445
|
-
/***/ }
|
|
9010
|
+
/***/ },
|
|
8446
9011
|
|
|
8447
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8448
|
-
|
|
8449
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
"use strict";
|
|
8454
|
-
|
|
8455
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8456
|
-
//# sourceMappingURL=find_last.js.map
|
|
8457
|
-
|
|
8458
|
-
/***/ }),
|
|
8459
|
-
|
|
8460
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/head.js":
|
|
8461
|
-
/*!*****************************************************************************************!*\
|
|
8462
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/head.js ***!
|
|
8463
|
-
\*****************************************************************************************/
|
|
8464
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
8465
|
-
|
|
8466
|
-
"use strict";
|
|
8467
|
-
|
|
8468
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8469
|
-
//# sourceMappingURL=head.js.map
|
|
8470
|
-
|
|
8471
|
-
/***/ }),
|
|
8472
|
-
|
|
8473
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/index.js":
|
|
8474
|
-
/*!******************************************************************************************!*\
|
|
8475
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/index.js ***!
|
|
8476
|
-
\******************************************************************************************/
|
|
8477
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8478
|
-
|
|
8479
|
-
"use strict";
|
|
8480
|
-
|
|
8481
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8482
|
-
if (k2 === undefined) k2 = k;
|
|
8483
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8484
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8485
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8486
|
-
}
|
|
8487
|
-
Object.defineProperty(o, k2, desc);
|
|
8488
|
-
}) : (function(o, m, k, k2) {
|
|
8489
|
-
if (k2 === undefined) k2 = k;
|
|
8490
|
-
o[k2] = m[k];
|
|
8491
|
-
}));
|
|
8492
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
8493
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8494
|
-
};
|
|
8495
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8496
|
-
__exportStar(__webpack_require__(/*! ./common_prop_keys.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/common_prop_keys.js"), exports);
|
|
8497
|
-
__exportStar(__webpack_require__(/*! ./create_tuple.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/create_tuple.js"), exports);
|
|
8498
|
-
__exportStar(__webpack_require__(/*! ./drop.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/drop.js"), exports);
|
|
8499
|
-
__exportStar(__webpack_require__(/*! ./filter.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/filter.js"), exports);
|
|
8500
|
-
__exportStar(__webpack_require__(/*! ./find_first.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/find_first.js"), exports);
|
|
8501
|
-
__exportStar(__webpack_require__(/*! ./find_last.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/find_last.js"), exports);
|
|
8502
|
-
__exportStar(__webpack_require__(/*! ./head.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/head.js"), exports);
|
|
8503
|
-
__exportStar(__webpack_require__(/*! ./intersect_of_props.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/intersect_of_props.js"), exports);
|
|
8504
|
-
__exportStar(__webpack_require__(/*! ./last.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/last.js"), exports);
|
|
8505
|
-
__exportStar(__webpack_require__(/*! ./literal_array.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/literal_array.js"), exports);
|
|
8506
|
-
__exportStar(__webpack_require__(/*! ./pad_left.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/pad_left.js"), exports);
|
|
8507
|
-
__exportStar(__webpack_require__(/*! ./reduce_while.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/reduce_while.js"), exports);
|
|
8508
|
-
__exportStar(__webpack_require__(/*! ./reverse.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/reverse.js"), exports);
|
|
8509
|
-
__exportStar(__webpack_require__(/*! ./some.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/some.js"), exports);
|
|
8510
|
-
__exportStar(__webpack_require__(/*! ./tail.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/tail.js"), exports);
|
|
8511
|
-
__exportStar(__webpack_require__(/*! ./union_of_props.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/union_of_props.js"), exports);
|
|
8512
|
-
__exportStar(__webpack_require__(/*! ./union_of_values.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/union_of_values.js"), exports);
|
|
8513
|
-
//# sourceMappingURL=index.js.map
|
|
8514
|
-
|
|
8515
|
-
/***/ }),
|
|
8516
|
-
|
|
8517
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/intersect_of_props.js":
|
|
8518
|
-
/*!*******************************************************************************************************!*\
|
|
8519
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/intersect_of_props.js ***!
|
|
8520
|
-
\*******************************************************************************************************/
|
|
8521
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
8522
|
-
|
|
8523
|
-
"use strict";
|
|
8524
|
-
|
|
8525
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8526
|
-
//# sourceMappingURL=intersect_of_props.js.map
|
|
8527
|
-
|
|
8528
|
-
/***/ }),
|
|
8529
|
-
|
|
8530
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/last.js":
|
|
8531
|
-
/*!*****************************************************************************************!*\
|
|
8532
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/last.js ***!
|
|
8533
|
-
\*****************************************************************************************/
|
|
8534
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
8535
|
-
|
|
8536
|
-
"use strict";
|
|
8537
|
-
|
|
8538
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8539
|
-
//# sourceMappingURL=last.js.map
|
|
8540
|
-
|
|
8541
|
-
/***/ }),
|
|
8542
|
-
|
|
8543
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/literal_array.js":
|
|
8544
|
-
/*!**************************************************************************************************!*\
|
|
8545
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/literal_array.js ***!
|
|
8546
|
-
\**************************************************************************************************/
|
|
8547
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
8548
|
-
|
|
8549
|
-
"use strict";
|
|
8550
|
-
|
|
8551
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8552
|
-
exports.literalArray = void 0;
|
|
8553
|
-
function literalArray(...entries) {
|
|
8554
|
-
return entries;
|
|
8555
|
-
}
|
|
8556
|
-
exports.literalArray = literalArray;
|
|
8557
|
-
//# sourceMappingURL=literal_array.js.map
|
|
8558
|
-
|
|
8559
|
-
/***/ }),
|
|
8560
|
-
|
|
8561
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/pad_left.js":
|
|
8562
|
-
/*!*********************************************************************************************!*\
|
|
8563
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/pad_left.js ***!
|
|
8564
|
-
\*********************************************************************************************/
|
|
8565
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
8566
|
-
|
|
8567
|
-
"use strict";
|
|
8568
|
-
|
|
8569
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8570
|
-
//# sourceMappingURL=pad_left.js.map
|
|
8571
|
-
|
|
8572
|
-
/***/ }),
|
|
8573
|
-
|
|
8574
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/reduce_while.js":
|
|
8575
|
-
/*!*************************************************************************************************!*\
|
|
8576
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/reduce_while.js ***!
|
|
8577
|
-
\*************************************************************************************************/
|
|
8578
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
8579
|
-
|
|
8580
|
-
"use strict";
|
|
8581
|
-
|
|
8582
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8583
|
-
exports.reduceWhile = void 0;
|
|
8584
|
-
function reduceWhile(predicate, callbackfn, initialValue, array) {
|
|
8585
|
-
let acc = initialValue;
|
|
8586
|
-
for (let i = 0; i < array.length; i++) {
|
|
8587
|
-
const value = array[i];
|
|
8588
|
-
if (!predicate(acc, value))
|
|
8589
|
-
return acc;
|
|
8590
|
-
acc = callbackfn(acc, value, i, array);
|
|
8591
|
-
}
|
|
8592
|
-
return acc;
|
|
8593
|
-
}
|
|
8594
|
-
exports.reduceWhile = reduceWhile;
|
|
8595
|
-
//# sourceMappingURL=reduce_while.js.map
|
|
8596
|
-
|
|
8597
|
-
/***/ }),
|
|
8598
|
-
|
|
8599
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/reverse.js":
|
|
8600
|
-
/*!********************************************************************************************!*\
|
|
8601
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/reverse.js ***!
|
|
8602
|
-
\********************************************************************************************/
|
|
8603
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
8604
|
-
|
|
8605
|
-
"use strict";
|
|
8606
|
-
|
|
8607
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8608
|
-
//# sourceMappingURL=reverse.js.map
|
|
8609
|
-
|
|
8610
|
-
/***/ }),
|
|
8611
|
-
|
|
8612
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/some.js":
|
|
8613
|
-
/*!*****************************************************************************************!*\
|
|
8614
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/some.js ***!
|
|
8615
|
-
\*****************************************************************************************/
|
|
8616
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
8617
|
-
|
|
8618
|
-
"use strict";
|
|
8619
|
-
|
|
8620
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8621
|
-
//# sourceMappingURL=some.js.map
|
|
8622
|
-
|
|
8623
|
-
/***/ }),
|
|
8624
|
-
|
|
8625
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/tail.js":
|
|
8626
|
-
/*!*****************************************************************************************!*\
|
|
8627
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/tail.js ***!
|
|
8628
|
-
\*****************************************************************************************/
|
|
8629
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
8630
|
-
|
|
8631
|
-
"use strict";
|
|
8632
|
-
|
|
8633
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8634
|
-
//# sourceMappingURL=tail.js.map
|
|
8635
|
-
|
|
8636
|
-
/***/ }),
|
|
8637
|
-
|
|
8638
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/union_of_props.js":
|
|
8639
|
-
/*!***************************************************************************************************!*\
|
|
8640
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/union_of_props.js ***!
|
|
8641
|
-
\***************************************************************************************************/
|
|
8642
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
8643
|
-
|
|
8644
|
-
"use strict";
|
|
8645
|
-
|
|
8646
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8647
|
-
//# sourceMappingURL=union_of_props.js.map
|
|
8648
|
-
|
|
8649
|
-
/***/ }),
|
|
8650
|
-
|
|
8651
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/union_of_values.js":
|
|
8652
|
-
/*!****************************************************************************************************!*\
|
|
8653
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/array/union_of_values.js ***!
|
|
8654
|
-
\****************************************************************************************************/
|
|
8655
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
8656
|
-
|
|
8657
|
-
"use strict";
|
|
8658
|
-
|
|
8659
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8660
|
-
//# sourceMappingURL=union_of_values.js.map
|
|
8661
|
-
|
|
8662
|
-
/***/ }),
|
|
8663
|
-
|
|
8664
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/assertion/assert_type.js":
|
|
8665
|
-
/*!****************************************************************************************************!*\
|
|
8666
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/assertion/assert_type.js ***!
|
|
8667
|
-
\****************************************************************************************************/
|
|
8668
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9012
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/assertion/assert_type.js"
|
|
9013
|
+
/*!****************************************************************************************************!*\
|
|
9014
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/assertion/assert_type.js ***!
|
|
9015
|
+
\****************************************************************************************************/
|
|
9016
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8669
9017
|
|
|
8670
9018
|
"use strict";
|
|
8671
9019
|
|
|
8672
9020
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8673
9021
|
exports.assertType = void 0;
|
|
8674
9022
|
const tersify_1 = __webpack_require__(/*! tersify */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/index.js");
|
|
8675
|
-
const index_js_1 = __webpack_require__(/*! ../class/index.js */ "../../node_modules/.pnpm/type-plus@
|
|
9023
|
+
const index_js_1 = __webpack_require__(/*! ../class/index.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/class/index.js");
|
|
8676
9024
|
function assertType(subject, validator) {
|
|
8677
9025
|
if (validator) {
|
|
8678
9026
|
if (((0, index_js_1.isConstructor)(validator) && !(subject instanceof validator)) || !validator(subject))
|
|
@@ -8747,6 +9095,12 @@ assertType.noFunction = function (subject) {
|
|
|
8747
9095
|
if (typeof subject === 'function')
|
|
8748
9096
|
throw TypeError(`subject is function`);
|
|
8749
9097
|
};
|
|
9098
|
+
/**
|
|
9099
|
+
* 💀 deprecated. It does not work in all cases.
|
|
9100
|
+
*
|
|
9101
|
+
* It passes for function that can be called with `new`.
|
|
9102
|
+
* If the subject is an arrow function, it can still return true after compilation.
|
|
9103
|
+
*/
|
|
8750
9104
|
assertType.isConstructor = function (subject) {
|
|
8751
9105
|
if (!(0, index_js_1.isConstructor)(subject))
|
|
8752
9106
|
throw TypeError(`subject is not a constructor`);
|
|
@@ -8759,7 +9113,7 @@ assertType.noError = function (subject) {
|
|
|
8759
9113
|
if (subject instanceof Error)
|
|
8760
9114
|
throw TypeError(`subject is an Error`);
|
|
8761
9115
|
};
|
|
8762
|
-
assertType.isNever = function (
|
|
9116
|
+
assertType.isNever = function (_subject) { };
|
|
8763
9117
|
/**
|
|
8764
9118
|
* creates a custom assertion function with standard TypeError.
|
|
8765
9119
|
* Currently this requires explicity type annotation,
|
|
@@ -8773,16 +9127,16 @@ assertType.custom = function (validator) {
|
|
|
8773
9127
|
return;
|
|
8774
9128
|
};
|
|
8775
9129
|
};
|
|
8776
|
-
assertType.as = function (
|
|
9130
|
+
assertType.as = function (_subject) { };
|
|
8777
9131
|
//# sourceMappingURL=assert_type.js.map
|
|
8778
9132
|
|
|
8779
|
-
/***/ }
|
|
9133
|
+
/***/ },
|
|
8780
9134
|
|
|
8781
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9135
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/class/index.js"
|
|
8782
9136
|
/*!******************************************************************************************!*\
|
|
8783
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9137
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/class/index.js ***!
|
|
8784
9138
|
\******************************************************************************************/
|
|
8785
|
-
|
|
9139
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8786
9140
|
|
|
8787
9141
|
"use strict";
|
|
8788
9142
|
|
|
@@ -8801,16 +9155,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8801
9155
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8802
9156
|
};
|
|
8803
9157
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8804
|
-
__exportStar(__webpack_require__(/*! ./isConstructor.js */ "../../node_modules/.pnpm/type-plus@
|
|
9158
|
+
__exportStar(__webpack_require__(/*! ./isConstructor.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/class/isConstructor.js"), exports);
|
|
8805
9159
|
//# sourceMappingURL=index.js.map
|
|
8806
9160
|
|
|
8807
|
-
/***/ }
|
|
9161
|
+
/***/ },
|
|
8808
9162
|
|
|
8809
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9163
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/class/isConstructor.js"
|
|
8810
9164
|
/*!**************************************************************************************************!*\
|
|
8811
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9165
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/class/isConstructor.js ***!
|
|
8812
9166
|
\**************************************************************************************************/
|
|
8813
|
-
|
|
9167
|
+
(__unused_webpack_module, exports) {
|
|
8814
9168
|
|
|
8815
9169
|
"use strict";
|
|
8816
9170
|
|
|
@@ -8849,13 +9203,13 @@ function isInstanceof(subject, constructor) {
|
|
|
8849
9203
|
exports.isInstanceof = isInstanceof;
|
|
8850
9204
|
//# sourceMappingURL=isConstructor.js.map
|
|
8851
9205
|
|
|
8852
|
-
/***/ }
|
|
9206
|
+
/***/ },
|
|
8853
9207
|
|
|
8854
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9208
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/function/extract_function.js"
|
|
8855
9209
|
/*!********************************************************************************************************!*\
|
|
8856
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9210
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/function/extract_function.js ***!
|
|
8857
9211
|
\********************************************************************************************************/
|
|
8858
|
-
|
|
9212
|
+
(__unused_webpack_module, exports) {
|
|
8859
9213
|
|
|
8860
9214
|
"use strict";
|
|
8861
9215
|
|
|
@@ -8872,13 +9226,13 @@ function extractFunction(fn) {
|
|
|
8872
9226
|
exports.extractFunction = extractFunction;
|
|
8873
9227
|
//# sourceMappingURL=extract_function.js.map
|
|
8874
9228
|
|
|
8875
|
-
/***/ }
|
|
9229
|
+
/***/ },
|
|
8876
9230
|
|
|
8877
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9231
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/functional/compose.js"
|
|
8878
9232
|
/*!*************************************************************************************************!*\
|
|
8879
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9233
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/functional/compose.js ***!
|
|
8880
9234
|
\*************************************************************************************************/
|
|
8881
|
-
|
|
9235
|
+
(__unused_webpack_module, exports) {
|
|
8882
9236
|
|
|
8883
9237
|
"use strict";
|
|
8884
9238
|
|
|
@@ -8898,13 +9252,13 @@ function compose(...fns) {
|
|
|
8898
9252
|
exports.compose = compose;
|
|
8899
9253
|
//# sourceMappingURL=compose.js.map
|
|
8900
9254
|
|
|
8901
|
-
/***/ }
|
|
9255
|
+
/***/ },
|
|
8902
9256
|
|
|
8903
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9257
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/functional/context.js"
|
|
8904
9258
|
/*!*************************************************************************************************!*\
|
|
8905
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9259
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/functional/context.js ***!
|
|
8906
9260
|
\*************************************************************************************************/
|
|
8907
|
-
|
|
9261
|
+
(__unused_webpack_module, exports) {
|
|
8908
9262
|
|
|
8909
9263
|
"use strict";
|
|
8910
9264
|
|
|
@@ -8940,13 +9294,13 @@ function contextBuilder(init, extenders) {
|
|
|
8940
9294
|
/* eslint-enable */
|
|
8941
9295
|
//# sourceMappingURL=context.js.map
|
|
8942
9296
|
|
|
8943
|
-
/***/ }
|
|
9297
|
+
/***/ },
|
|
8944
9298
|
|
|
8945
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9299
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/functional/index.js"
|
|
8946
9300
|
/*!***********************************************************************************************!*\
|
|
8947
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9301
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/functional/index.js ***!
|
|
8948
9302
|
\***********************************************************************************************/
|
|
8949
|
-
|
|
9303
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8950
9304
|
|
|
8951
9305
|
"use strict";
|
|
8952
9306
|
|
|
@@ -8965,17 +9319,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8965
9319
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8966
9320
|
};
|
|
8967
9321
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8968
|
-
__exportStar(__webpack_require__(/*! ./compose.js */ "../../node_modules/.pnpm/type-plus@
|
|
8969
|
-
__exportStar(__webpack_require__(/*! ./context.js */ "../../node_modules/.pnpm/type-plus@
|
|
9322
|
+
__exportStar(__webpack_require__(/*! ./compose.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/functional/compose.js"), exports);
|
|
9323
|
+
__exportStar(__webpack_require__(/*! ./context.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/functional/context.js"), exports);
|
|
8970
9324
|
//# sourceMappingURL=index.js.map
|
|
8971
9325
|
|
|
8972
|
-
/***/ }
|
|
9326
|
+
/***/ },
|
|
8973
9327
|
|
|
8974
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9328
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/index.js"
|
|
8975
9329
|
/*!************************************************************************************!*\
|
|
8976
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9330
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/index.js ***!
|
|
8977
9331
|
\************************************************************************************/
|
|
8978
|
-
|
|
9332
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8979
9333
|
|
|
8980
9334
|
"use strict";
|
|
8981
9335
|
|
|
@@ -8990,51 +9344,60 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
8990
9344
|
if (k2 === undefined) k2 = k;
|
|
8991
9345
|
o[k2] = m[k];
|
|
8992
9346
|
}));
|
|
8993
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
8994
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
8995
|
-
}) : function(o, v) {
|
|
8996
|
-
o["default"] = v;
|
|
8997
|
-
});
|
|
8998
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
8999
|
-
if (mod && mod.__esModule) return mod;
|
|
9000
|
-
var result = {};
|
|
9001
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
9002
|
-
__setModuleDefault(result, mod);
|
|
9003
|
-
return result;
|
|
9004
|
-
};
|
|
9005
9347
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
9006
9348
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9007
9349
|
};
|
|
9008
9350
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9009
|
-
exports.NumberPlus = exports.
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
Object.defineProperty(exports, "
|
|
9013
|
-
|
|
9014
|
-
exports
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
__exportStar(__webpack_require__(/*! ./class/index.js */ "../../node_modules/.pnpm/type-plus@
|
|
9018
|
-
__exportStar(__webpack_require__(/*! ./function/extract_function.js */ "../../node_modules/.pnpm/type-plus@
|
|
9019
|
-
__exportStar(__webpack_require__(/*! ./functional/index.js */ "../../node_modules/.pnpm/type-plus@
|
|
9020
|
-
|
|
9021
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9026
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9027
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9028
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9351
|
+
exports.TuplePlus = exports.drop = exports.NumericPlus = exports.NumberPlus = exports.MathPlus = exports.assertType = exports.reduceWhile = exports.literalArray = exports.ArrayPlus = void 0;
|
|
9352
|
+
exports.ArrayPlus = __webpack_require__(/*! ./array/array_plus.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/array/array_plus.js");
|
|
9353
|
+
var literal_array_js_1 = __webpack_require__(/*! ./array/literal_array.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/array/literal_array.js");
|
|
9354
|
+
Object.defineProperty(exports, "literalArray", ({ enumerable: true, get: function () { return literal_array_js_1.literalArray; } }));
|
|
9355
|
+
var reduce_while_js_1 = __webpack_require__(/*! ./array/reduce_while.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/array/reduce_while.js");
|
|
9356
|
+
Object.defineProperty(exports, "reduceWhile", ({ enumerable: true, get: function () { return reduce_while_js_1.reduceWhile; } }));
|
|
9357
|
+
var assert_type_js_1 = __webpack_require__(/*! ./assertion/assert_type.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/assertion/assert_type.js");
|
|
9358
|
+
Object.defineProperty(exports, "assertType", ({ enumerable: true, get: function () { return assert_type_js_1.assertType; } }));
|
|
9359
|
+
__exportStar(__webpack_require__(/*! ./class/index.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/class/index.js"), exports);
|
|
9360
|
+
__exportStar(__webpack_require__(/*! ./function/extract_function.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/function/extract_function.js"), exports);
|
|
9361
|
+
__exportStar(__webpack_require__(/*! ./functional/index.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/functional/index.js"), exports);
|
|
9362
|
+
exports.MathPlus = __webpack_require__(/*! ./math/math_plus.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/math/math_plus.js");
|
|
9363
|
+
__exportStar(__webpack_require__(/*! ./nodejs/index.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nodejs/index.js"), exports);
|
|
9364
|
+
__exportStar(__webpack_require__(/*! ./nominal/index.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/index.js"), exports);
|
|
9365
|
+
exports.NumberPlus = __webpack_require__(/*! ./number/number_plus.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/number/number_plus.js");
|
|
9366
|
+
exports.NumericPlus = __webpack_require__(/*! ./numeric/numeric_plus.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/numeric/numeric_plus.js");
|
|
9367
|
+
__exportStar(__webpack_require__(/*! ./object/index.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/index.js"), exports);
|
|
9368
|
+
__exportStar(__webpack_require__(/*! ./predicates/index.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/predicates/index.js"), exports);
|
|
9369
|
+
__exportStar(__webpack_require__(/*! ./promise/index.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/promise/index.js"), exports);
|
|
9370
|
+
__exportStar(__webpack_require__(/*! ./testing/stub.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/testing/stub.js"), exports);
|
|
9371
|
+
__exportStar(__webpack_require__(/*! ./testing/test_type.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/testing/test_type.js"), exports);
|
|
9372
|
+
__exportStar(__webpack_require__(/*! ./tuple/create_tuple.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/tuple/create_tuple.js"), exports);
|
|
9373
|
+
var drop_js_1 = __webpack_require__(/*! ./tuple/drop.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/tuple/drop.js");
|
|
9374
|
+
Object.defineProperty(exports, "drop", ({ enumerable: true, get: function () { return drop_js_1.drop; } }));
|
|
9375
|
+
exports.TuplePlus = __webpack_require__(/*! ./tuple/tuple_plus.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/tuple/tuple_plus.js");
|
|
9376
|
+
__exportStar(__webpack_require__(/*! ./type-guard/is_type.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/type-guard/is_type.js"), exports);
|
|
9377
|
+
__exportStar(__webpack_require__(/*! ./unpartial.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/unpartial.js"), exports);
|
|
9378
|
+
__exportStar(__webpack_require__(/*! ./utils/index.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/utils/index.js"), exports);
|
|
9029
9379
|
//# sourceMappingURL=index.js.map
|
|
9030
9380
|
|
|
9031
|
-
/***/ }
|
|
9381
|
+
/***/ },
|
|
9382
|
+
|
|
9383
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/math/math_plus.js"
|
|
9384
|
+
/*!*********************************************************************************************!*\
|
|
9385
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/math/math_plus.js ***!
|
|
9386
|
+
\*********************************************************************************************/
|
|
9387
|
+
(__unused_webpack_module, exports) {
|
|
9388
|
+
|
|
9389
|
+
"use strict";
|
|
9390
|
+
|
|
9391
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9392
|
+
//# sourceMappingURL=math_plus.js.map
|
|
9393
|
+
|
|
9394
|
+
/***/ },
|
|
9032
9395
|
|
|
9033
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9396
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nodejs/index.js"
|
|
9034
9397
|
/*!*******************************************************************************************!*\
|
|
9035
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9398
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nodejs/index.js ***!
|
|
9036
9399
|
\*******************************************************************************************/
|
|
9037
|
-
|
|
9400
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
9038
9401
|
|
|
9039
9402
|
"use strict";
|
|
9040
9403
|
|
|
@@ -9053,16 +9416,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9053
9416
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9054
9417
|
};
|
|
9055
9418
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9056
|
-
__exportStar(__webpack_require__(/*! ./isNodeError.js */ "../../node_modules/.pnpm/type-plus@
|
|
9419
|
+
__exportStar(__webpack_require__(/*! ./isNodeError.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nodejs/isNodeError.js"), exports);
|
|
9057
9420
|
//# sourceMappingURL=index.js.map
|
|
9058
9421
|
|
|
9059
|
-
/***/ }
|
|
9422
|
+
/***/ },
|
|
9060
9423
|
|
|
9061
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9424
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nodejs/isNodeError.js"
|
|
9062
9425
|
/*!*************************************************************************************************!*\
|
|
9063
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9426
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nodejs/isNodeError.js ***!
|
|
9064
9427
|
\*************************************************************************************************/
|
|
9065
|
-
|
|
9428
|
+
(__unused_webpack_module, exports) {
|
|
9066
9429
|
|
|
9067
9430
|
"use strict";
|
|
9068
9431
|
|
|
@@ -9079,13 +9442,13 @@ function isSystemError(code, err) {
|
|
|
9079
9442
|
exports.isSystemError = isSystemError;
|
|
9080
9443
|
//# sourceMappingURL=isNodeError.js.map
|
|
9081
9444
|
|
|
9082
|
-
/***/ }
|
|
9445
|
+
/***/ },
|
|
9083
9446
|
|
|
9084
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9447
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/brand.js"
|
|
9085
9448
|
/*!********************************************************************************************!*\
|
|
9086
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9449
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/brand.js ***!
|
|
9087
9450
|
\********************************************************************************************/
|
|
9088
|
-
|
|
9451
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
9089
9452
|
|
|
9090
9453
|
"use strict";
|
|
9091
9454
|
|
|
@@ -9093,14 +9456,14 @@ exports.isSystemError = isSystemError;
|
|
|
9093
9456
|
// <https://gist.github.com/dcolthorp/aa21cf87d847ae9942106435bf47565d>
|
|
9094
9457
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9095
9458
|
exports.brand = void 0;
|
|
9096
|
-
const
|
|
9097
|
-
const constants_js_1 = __webpack_require__(/*! ./constants.js */ "../../node_modules/.pnpm/type-plus@
|
|
9459
|
+
const is_type_js_1 = __webpack_require__(/*! ../type-guard/is_type.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/type-guard/is_type.js");
|
|
9460
|
+
const constants_js_1 = __webpack_require__(/*! ./constants.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/constants.js");
|
|
9098
9461
|
function brand(typeInput, subject) {
|
|
9099
9462
|
if (subject === undefined)
|
|
9100
9463
|
return function (subject) {
|
|
9101
9464
|
return brand(typeInput, subject);
|
|
9102
9465
|
};
|
|
9103
|
-
if ((0,
|
|
9466
|
+
if ((0, is_type_js_1.isType)(subject, s => typeof s === 'object' && s !== null)) {
|
|
9104
9467
|
// if subject is not an object, the branding will exist only in type-level.
|
|
9105
9468
|
subject[constants_js_1.typeSym] = typeInput;
|
|
9106
9469
|
}
|
|
@@ -9109,13 +9472,13 @@ function brand(typeInput, subject) {
|
|
|
9109
9472
|
exports.brand = brand;
|
|
9110
9473
|
//# sourceMappingURL=brand.js.map
|
|
9111
9474
|
|
|
9112
|
-
/***/ }
|
|
9475
|
+
/***/ },
|
|
9113
9476
|
|
|
9114
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9477
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/constants.js"
|
|
9115
9478
|
/*!************************************************************************************************!*\
|
|
9116
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9479
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/constants.js ***!
|
|
9117
9480
|
\************************************************************************************************/
|
|
9118
|
-
|
|
9481
|
+
(__unused_webpack_module, exports) {
|
|
9119
9482
|
|
|
9120
9483
|
"use strict";
|
|
9121
9484
|
|
|
@@ -9125,13 +9488,13 @@ exports.typeSym = Symbol('type');
|
|
|
9125
9488
|
exports.valueSym = Symbol('value');
|
|
9126
9489
|
//# sourceMappingURL=constants.js.map
|
|
9127
9490
|
|
|
9128
|
-
/***/ }
|
|
9491
|
+
/***/ },
|
|
9129
9492
|
|
|
9130
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9493
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/flavor.js"
|
|
9131
9494
|
/*!*********************************************************************************************!*\
|
|
9132
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9495
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/flavor.js ***!
|
|
9133
9496
|
\*********************************************************************************************/
|
|
9134
|
-
|
|
9497
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
9135
9498
|
|
|
9136
9499
|
"use strict";
|
|
9137
9500
|
|
|
@@ -9139,14 +9502,14 @@ exports.valueSym = Symbol('value');
|
|
|
9139
9502
|
// <https://gist.github.com/dcolthorp/aa21cf87d847ae9942106435bf47565d>
|
|
9140
9503
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9141
9504
|
exports.flavor = void 0;
|
|
9142
|
-
const
|
|
9143
|
-
const constants_js_1 = __webpack_require__(/*! ./constants.js */ "../../node_modules/.pnpm/type-plus@
|
|
9505
|
+
const is_type_js_1 = __webpack_require__(/*! ../type-guard/is_type.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/type-guard/is_type.js");
|
|
9506
|
+
const constants_js_1 = __webpack_require__(/*! ./constants.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/constants.js");
|
|
9144
9507
|
function flavor(type, subject) {
|
|
9145
9508
|
if (subject === undefined)
|
|
9146
9509
|
return function (subject) {
|
|
9147
9510
|
return flavor(type, subject);
|
|
9148
9511
|
};
|
|
9149
|
-
if ((0,
|
|
9512
|
+
if ((0, is_type_js_1.isType)(subject, s => typeof s === 'object' && s !== null)) {
|
|
9150
9513
|
// if subject is not an object, the branding will exist only in type-level.
|
|
9151
9514
|
subject[constants_js_1.typeSym] = type;
|
|
9152
9515
|
}
|
|
@@ -9155,13 +9518,13 @@ function flavor(type, subject) {
|
|
|
9155
9518
|
exports.flavor = flavor;
|
|
9156
9519
|
//# sourceMappingURL=flavor.js.map
|
|
9157
9520
|
|
|
9158
|
-
/***/ }
|
|
9521
|
+
/***/ },
|
|
9159
9522
|
|
|
9160
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9523
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/index.js"
|
|
9161
9524
|
/*!********************************************************************************************!*\
|
|
9162
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9525
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/index.js ***!
|
|
9163
9526
|
\********************************************************************************************/
|
|
9164
|
-
|
|
9527
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
9165
9528
|
|
|
9166
9529
|
"use strict";
|
|
9167
9530
|
|
|
@@ -9180,24 +9543,24 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9180
9543
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9181
9544
|
};
|
|
9182
9545
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9183
|
-
__exportStar(__webpack_require__(/*! ./brand.js */ "../../node_modules/.pnpm/type-plus@
|
|
9184
|
-
__exportStar(__webpack_require__(/*! ./flavor.js */ "../../node_modules/.pnpm/type-plus@
|
|
9185
|
-
__exportStar(__webpack_require__(/*! ./nominal_match.js */ "../../node_modules/.pnpm/type-plus@
|
|
9546
|
+
__exportStar(__webpack_require__(/*! ./brand.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/brand.js"), exports);
|
|
9547
|
+
__exportStar(__webpack_require__(/*! ./flavor.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/flavor.js"), exports);
|
|
9548
|
+
__exportStar(__webpack_require__(/*! ./nominal_match.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/nominal_match.js"), exports);
|
|
9186
9549
|
//# sourceMappingURL=index.js.map
|
|
9187
9550
|
|
|
9188
|
-
/***/ }
|
|
9551
|
+
/***/ },
|
|
9189
9552
|
|
|
9190
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9553
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/nominal_match.js"
|
|
9191
9554
|
/*!****************************************************************************************************!*\
|
|
9192
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9555
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/nominal_match.js ***!
|
|
9193
9556
|
\****************************************************************************************************/
|
|
9194
|
-
|
|
9557
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
9195
9558
|
|
|
9196
9559
|
"use strict";
|
|
9197
9560
|
|
|
9198
9561
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9199
9562
|
exports.nominalMatch = void 0;
|
|
9200
|
-
const constants_js_1 = __webpack_require__(/*! ./constants.js */ "../../node_modules/.pnpm/type-plus@
|
|
9563
|
+
const constants_js_1 = __webpack_require__(/*! ./constants.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/nominal/constants.js");
|
|
9201
9564
|
function nominalMatch(a, b) {
|
|
9202
9565
|
if (typeof a === 'object' && a !== null && typeof b === 'object' && b !== null)
|
|
9203
9566
|
return a[constants_js_1.typeSym] === b[constants_js_1.typeSym];
|
|
@@ -9208,26 +9571,39 @@ function nominalMatch(a, b) {
|
|
|
9208
9571
|
exports.nominalMatch = nominalMatch;
|
|
9209
9572
|
//# sourceMappingURL=nominal_match.js.map
|
|
9210
9573
|
|
|
9211
|
-
/***/ }
|
|
9574
|
+
/***/ },
|
|
9212
9575
|
|
|
9213
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9576
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/number/number_plus.js"
|
|
9214
9577
|
/*!*************************************************************************************************!*\
|
|
9215
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9578
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/number/number_plus.js ***!
|
|
9216
9579
|
\*************************************************************************************************/
|
|
9217
|
-
|
|
9580
|
+
(__unused_webpack_module, exports) {
|
|
9218
9581
|
|
|
9219
9582
|
"use strict";
|
|
9220
9583
|
|
|
9221
9584
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9222
9585
|
//# sourceMappingURL=number_plus.js.map
|
|
9223
9586
|
|
|
9224
|
-
/***/ }
|
|
9587
|
+
/***/ },
|
|
9588
|
+
|
|
9589
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/numeric/numeric_plus.js"
|
|
9590
|
+
/*!***************************************************************************************************!*\
|
|
9591
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/numeric/numeric_plus.js ***!
|
|
9592
|
+
\***************************************************************************************************/
|
|
9593
|
+
(__unused_webpack_module, exports) {
|
|
9594
|
+
|
|
9595
|
+
"use strict";
|
|
9596
|
+
|
|
9597
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9598
|
+
//# sourceMappingURL=numeric_plus.js.map
|
|
9225
9599
|
|
|
9226
|
-
/***/
|
|
9600
|
+
/***/ },
|
|
9601
|
+
|
|
9602
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/everyKey.js"
|
|
9227
9603
|
/*!**********************************************************************************************!*\
|
|
9228
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9604
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/everyKey.js ***!
|
|
9229
9605
|
\**********************************************************************************************/
|
|
9230
|
-
|
|
9606
|
+
(__unused_webpack_module, exports) {
|
|
9231
9607
|
|
|
9232
9608
|
"use strict";
|
|
9233
9609
|
|
|
@@ -9239,13 +9615,13 @@ function everyKey(subject, predicate, thisArg) {
|
|
|
9239
9615
|
exports.everyKey = everyKey;
|
|
9240
9616
|
//# sourceMappingURL=everyKey.js.map
|
|
9241
9617
|
|
|
9242
|
-
/***/ }
|
|
9618
|
+
/***/ },
|
|
9243
9619
|
|
|
9244
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9620
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/facade.js"
|
|
9245
9621
|
/*!********************************************************************************************!*\
|
|
9246
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9622
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/facade.js ***!
|
|
9247
9623
|
\********************************************************************************************/
|
|
9248
|
-
|
|
9624
|
+
(__unused_webpack_module, exports) {
|
|
9249
9625
|
|
|
9250
9626
|
"use strict";
|
|
9251
9627
|
|
|
@@ -9276,13 +9652,13 @@ function facade(subject, ...props) {
|
|
|
9276
9652
|
exports.facade = facade;
|
|
9277
9653
|
//# sourceMappingURL=facade.js.map
|
|
9278
9654
|
|
|
9279
|
-
/***/ }
|
|
9655
|
+
/***/ },
|
|
9280
9656
|
|
|
9281
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9657
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/filterKey.js"
|
|
9282
9658
|
/*!***********************************************************************************************!*\
|
|
9283
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9659
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/filterKey.js ***!
|
|
9284
9660
|
\***********************************************************************************************/
|
|
9285
|
-
|
|
9661
|
+
(__unused_webpack_module, exports) {
|
|
9286
9662
|
|
|
9287
9663
|
"use strict";
|
|
9288
9664
|
|
|
@@ -9296,13 +9672,13 @@ function filterKey(subject, predicate, thisArg) {
|
|
|
9296
9672
|
exports.filterKey = filterKey;
|
|
9297
9673
|
//# sourceMappingURL=filterKey.js.map
|
|
9298
9674
|
|
|
9299
|
-
/***/ }
|
|
9675
|
+
/***/ },
|
|
9300
9676
|
|
|
9301
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9677
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/findKey.js"
|
|
9302
9678
|
/*!*********************************************************************************************!*\
|
|
9303
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9679
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/findKey.js ***!
|
|
9304
9680
|
\*********************************************************************************************/
|
|
9305
|
-
|
|
9681
|
+
(__unused_webpack_module, exports) {
|
|
9306
9682
|
|
|
9307
9683
|
"use strict";
|
|
9308
9684
|
|
|
@@ -9316,13 +9692,13 @@ function findKey(subject, predicate, thisArg) {
|
|
|
9316
9692
|
exports.findKey = findKey;
|
|
9317
9693
|
//# sourceMappingURL=findKey.js.map
|
|
9318
9694
|
|
|
9319
|
-
/***/ }
|
|
9695
|
+
/***/ },
|
|
9320
9696
|
|
|
9321
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9697
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/forEachKey.js"
|
|
9322
9698
|
/*!************************************************************************************************!*\
|
|
9323
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9699
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/forEachKey.js ***!
|
|
9324
9700
|
\************************************************************************************************/
|
|
9325
|
-
|
|
9701
|
+
(__unused_webpack_module, exports) {
|
|
9326
9702
|
|
|
9327
9703
|
"use strict";
|
|
9328
9704
|
|
|
@@ -9334,13 +9710,13 @@ function forEachKey(subject, predicate, thisArg) {
|
|
|
9334
9710
|
exports.forEachKey = forEachKey;
|
|
9335
9711
|
//# sourceMappingURL=forEachKey.js.map
|
|
9336
9712
|
|
|
9337
|
-
/***/ }
|
|
9713
|
+
/***/ },
|
|
9338
9714
|
|
|
9339
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9715
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/getField.js"
|
|
9340
9716
|
/*!**********************************************************************************************!*\
|
|
9341
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9717
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/getField.js ***!
|
|
9342
9718
|
\**********************************************************************************************/
|
|
9343
|
-
|
|
9719
|
+
(__unused_webpack_module, exports) {
|
|
9344
9720
|
|
|
9345
9721
|
"use strict";
|
|
9346
9722
|
|
|
@@ -9352,13 +9728,13 @@ function getField(subject, key, defaultValue) {
|
|
|
9352
9728
|
exports.getField = getField;
|
|
9353
9729
|
//# sourceMappingURL=getField.js.map
|
|
9354
9730
|
|
|
9355
|
-
/***/ }
|
|
9731
|
+
/***/ },
|
|
9356
9732
|
|
|
9357
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9733
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/hasKey.js"
|
|
9358
9734
|
/*!********************************************************************************************!*\
|
|
9359
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9735
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/hasKey.js ***!
|
|
9360
9736
|
\********************************************************************************************/
|
|
9361
|
-
|
|
9737
|
+
(__unused_webpack_module, exports) {
|
|
9362
9738
|
|
|
9363
9739
|
"use strict";
|
|
9364
9740
|
|
|
@@ -9370,13 +9746,13 @@ function hasKey(subject, ...keys) {
|
|
|
9370
9746
|
exports.hasKey = hasKey;
|
|
9371
9747
|
//# sourceMappingURL=hasKey.js.map
|
|
9372
9748
|
|
|
9373
|
-
/***/ }
|
|
9749
|
+
/***/ },
|
|
9374
9750
|
|
|
9375
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9751
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/hasProperty.js"
|
|
9376
9752
|
/*!*************************************************************************************************!*\
|
|
9377
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9753
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/hasProperty.js ***!
|
|
9378
9754
|
\*************************************************************************************************/
|
|
9379
|
-
|
|
9755
|
+
(__unused_webpack_module, exports) {
|
|
9380
9756
|
|
|
9381
9757
|
"use strict";
|
|
9382
9758
|
|
|
@@ -9388,13 +9764,13 @@ function hasProperty(value, prop) {
|
|
|
9388
9764
|
exports.hasProperty = hasProperty;
|
|
9389
9765
|
//# sourceMappingURL=hasProperty.js.map
|
|
9390
9766
|
|
|
9391
|
-
/***/ }
|
|
9767
|
+
/***/ },
|
|
9392
9768
|
|
|
9393
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9769
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/index.js"
|
|
9394
9770
|
/*!*******************************************************************************************!*\
|
|
9395
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9771
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/index.js ***!
|
|
9396
9772
|
\*******************************************************************************************/
|
|
9397
|
-
|
|
9773
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
9398
9774
|
|
|
9399
9775
|
"use strict";
|
|
9400
9776
|
|
|
@@ -9413,33 +9789,47 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9413
9789
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9414
9790
|
};
|
|
9415
9791
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9416
|
-
__exportStar(__webpack_require__(/*! ./everyKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9417
|
-
__exportStar(__webpack_require__(/*! ./facade.js */ "../../node_modules/.pnpm/type-plus@
|
|
9418
|
-
__exportStar(__webpack_require__(/*! ./filterKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9419
|
-
__exportStar(__webpack_require__(/*! ./findKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9420
|
-
__exportStar(__webpack_require__(/*! ./forEachKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9421
|
-
__exportStar(__webpack_require__(/*! ./getField.js */ "../../node_modules/.pnpm/type-plus@
|
|
9422
|
-
__exportStar(__webpack_require__(/*! ./hasKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9423
|
-
__exportStar(__webpack_require__(/*! ./hasProperty.js */ "../../node_modules/.pnpm/type-plus@
|
|
9424
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9425
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9426
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9427
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9428
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9429
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9430
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9431
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9432
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9433
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9792
|
+
__exportStar(__webpack_require__(/*! ./everyKey.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/everyKey.js"), exports);
|
|
9793
|
+
__exportStar(__webpack_require__(/*! ./facade.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/facade.js"), exports);
|
|
9794
|
+
__exportStar(__webpack_require__(/*! ./filterKey.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/filterKey.js"), exports);
|
|
9795
|
+
__exportStar(__webpack_require__(/*! ./findKey.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/findKey.js"), exports);
|
|
9796
|
+
__exportStar(__webpack_require__(/*! ./forEachKey.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/forEachKey.js"), exports);
|
|
9797
|
+
__exportStar(__webpack_require__(/*! ./getField.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/getField.js"), exports);
|
|
9798
|
+
__exportStar(__webpack_require__(/*! ./hasKey.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/hasKey.js"), exports);
|
|
9799
|
+
__exportStar(__webpack_require__(/*! ./hasProperty.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/hasProperty.js"), exports);
|
|
9800
|
+
__exportStar(__webpack_require__(/*! ./left_join.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/left_join.js"), exports);
|
|
9801
|
+
__exportStar(__webpack_require__(/*! ./mapKey.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/mapKey.js"), exports);
|
|
9802
|
+
__exportStar(__webpack_require__(/*! ./mapProperties.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/mapProperties.js"), exports);
|
|
9803
|
+
__exportStar(__webpack_require__(/*! ./omit.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/omit.js"), exports);
|
|
9804
|
+
__exportStar(__webpack_require__(/*! ./pick.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/pick.js"), exports);
|
|
9805
|
+
__exportStar(__webpack_require__(/*! ./record.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/record.js"), exports);
|
|
9806
|
+
__exportStar(__webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/reduceKey.js"), exports);
|
|
9807
|
+
__exportStar(__webpack_require__(/*! ./replaceProperty.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/replaceProperty.js"), exports);
|
|
9808
|
+
__exportStar(__webpack_require__(/*! ./someKey.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/someKey.js"), exports);
|
|
9809
|
+
__exportStar(__webpack_require__(/*! ./split.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/split.js"), exports);
|
|
9810
|
+
__exportStar(__webpack_require__(/*! ./typeOverrideIncompatible.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/typeOverrideIncompatible.js"), exports);
|
|
9434
9811
|
//# sourceMappingURL=index.js.map
|
|
9435
9812
|
|
|
9436
|
-
/***/ }
|
|
9813
|
+
/***/ },
|
|
9814
|
+
|
|
9815
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/left_join.js"
|
|
9816
|
+
/*!***********************************************************************************************!*\
|
|
9817
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/left_join.js ***!
|
|
9818
|
+
\***********************************************************************************************/
|
|
9819
|
+
(__unused_webpack_module, exports) {
|
|
9437
9820
|
|
|
9438
|
-
|
|
9821
|
+
"use strict";
|
|
9822
|
+
|
|
9823
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9824
|
+
//# sourceMappingURL=left_join.js.map
|
|
9825
|
+
|
|
9826
|
+
/***/ },
|
|
9827
|
+
|
|
9828
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/mapKey.js"
|
|
9439
9829
|
/*!********************************************************************************************!*\
|
|
9440
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9830
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/mapKey.js ***!
|
|
9441
9831
|
\********************************************************************************************/
|
|
9442
|
-
|
|
9832
|
+
(__unused_webpack_module, exports) {
|
|
9443
9833
|
|
|
9444
9834
|
"use strict";
|
|
9445
9835
|
|
|
@@ -9453,19 +9843,19 @@ function mapKey(subject, predicate, thisArg) {
|
|
|
9453
9843
|
exports.mapKey = mapKey;
|
|
9454
9844
|
//# sourceMappingURL=mapKey.js.map
|
|
9455
9845
|
|
|
9456
|
-
/***/ }
|
|
9846
|
+
/***/ },
|
|
9457
9847
|
|
|
9458
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9848
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/mapProperties.js"
|
|
9459
9849
|
/*!***************************************************************************************************!*\
|
|
9460
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9850
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/mapProperties.js ***!
|
|
9461
9851
|
\***************************************************************************************************/
|
|
9462
|
-
|
|
9852
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
9463
9853
|
|
|
9464
9854
|
"use strict";
|
|
9465
9855
|
|
|
9466
9856
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9467
9857
|
exports.mapProperties = void 0;
|
|
9468
|
-
const reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9858
|
+
const reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/reduceKey.js");
|
|
9469
9859
|
/**
|
|
9470
9860
|
* An Object-specific version of `map`.
|
|
9471
9861
|
* Original source:
|
|
@@ -9480,20 +9870,20 @@ function mapProperties(subject, callbackfn) {
|
|
|
9480
9870
|
exports.mapProperties = mapProperties;
|
|
9481
9871
|
//# sourceMappingURL=mapProperties.js.map
|
|
9482
9872
|
|
|
9483
|
-
/***/ }
|
|
9873
|
+
/***/ },
|
|
9484
9874
|
|
|
9485
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9875
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/omit.js"
|
|
9486
9876
|
/*!******************************************************************************************!*\
|
|
9487
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9877
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/omit.js ***!
|
|
9488
9878
|
\******************************************************************************************/
|
|
9489
|
-
|
|
9879
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
9490
9880
|
|
|
9491
9881
|
"use strict";
|
|
9492
9882
|
|
|
9493
9883
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9494
9884
|
exports.omit = void 0;
|
|
9495
|
-
const record_js_1 = __webpack_require__(/*! ./record.js */ "../../node_modules/.pnpm/type-plus@
|
|
9496
|
-
const reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9885
|
+
const record_js_1 = __webpack_require__(/*! ./record.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/record.js");
|
|
9886
|
+
const reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/reduceKey.js");
|
|
9497
9887
|
function omit(subject, ...props) {
|
|
9498
9888
|
return (0, reduceKey_js_1.reduceByKey)(subject, (p, k) => {
|
|
9499
9889
|
if (props.indexOf(k) === -1)
|
|
@@ -9504,20 +9894,20 @@ function omit(subject, ...props) {
|
|
|
9504
9894
|
exports.omit = omit;
|
|
9505
9895
|
//# sourceMappingURL=omit.js.map
|
|
9506
9896
|
|
|
9507
|
-
/***/ }
|
|
9897
|
+
/***/ },
|
|
9508
9898
|
|
|
9509
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9899
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/pick.js"
|
|
9510
9900
|
/*!******************************************************************************************!*\
|
|
9511
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9901
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/pick.js ***!
|
|
9512
9902
|
\******************************************************************************************/
|
|
9513
|
-
|
|
9903
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
9514
9904
|
|
|
9515
9905
|
"use strict";
|
|
9516
9906
|
|
|
9517
9907
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9518
9908
|
exports.pick = void 0;
|
|
9519
|
-
const record_js_1 = __webpack_require__(/*! ./record.js */ "../../node_modules/.pnpm/type-plus@
|
|
9520
|
-
const reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9909
|
+
const record_js_1 = __webpack_require__(/*! ./record.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/record.js");
|
|
9910
|
+
const reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/reduceKey.js");
|
|
9521
9911
|
function pick(subject, ...props) {
|
|
9522
9912
|
return (0, reduceKey_js_1.reduceByKey)(subject, (p, k) => {
|
|
9523
9913
|
if (props.indexOf(k) >= 0)
|
|
@@ -9528,13 +9918,13 @@ function pick(subject, ...props) {
|
|
|
9528
9918
|
exports.pick = pick;
|
|
9529
9919
|
//# sourceMappingURL=pick.js.map
|
|
9530
9920
|
|
|
9531
|
-
/***/ }
|
|
9921
|
+
/***/ },
|
|
9532
9922
|
|
|
9533
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9923
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/record.js"
|
|
9534
9924
|
/*!********************************************************************************************!*\
|
|
9535
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9925
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/record.js ***!
|
|
9536
9926
|
\********************************************************************************************/
|
|
9537
|
-
|
|
9927
|
+
(__unused_webpack_module, exports) {
|
|
9538
9928
|
|
|
9539
9929
|
"use strict";
|
|
9540
9930
|
|
|
@@ -9547,13 +9937,13 @@ function record(value) {
|
|
|
9547
9937
|
exports.record = record;
|
|
9548
9938
|
//# sourceMappingURL=record.js.map
|
|
9549
9939
|
|
|
9550
|
-
/***/ }
|
|
9940
|
+
/***/ },
|
|
9551
9941
|
|
|
9552
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9942
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/reduceKey.js"
|
|
9553
9943
|
/*!***********************************************************************************************!*\
|
|
9554
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9944
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/reduceKey.js ***!
|
|
9555
9945
|
\***********************************************************************************************/
|
|
9556
|
-
|
|
9946
|
+
(__unused_webpack_module, exports) {
|
|
9557
9947
|
|
|
9558
9948
|
"use strict";
|
|
9559
9949
|
|
|
@@ -9569,13 +9959,13 @@ exports.reduceByKey = reduceByKey;
|
|
|
9569
9959
|
exports.reduceKey = reduceByKey;
|
|
9570
9960
|
//# sourceMappingURL=reduceKey.js.map
|
|
9571
9961
|
|
|
9572
|
-
/***/ }
|
|
9962
|
+
/***/ },
|
|
9573
9963
|
|
|
9574
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9964
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/replaceProperty.js"
|
|
9575
9965
|
/*!*****************************************************************************************************!*\
|
|
9576
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9966
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/replaceProperty.js ***!
|
|
9577
9967
|
\*****************************************************************************************************/
|
|
9578
|
-
|
|
9968
|
+
(__unused_webpack_module, exports) {
|
|
9579
9969
|
|
|
9580
9970
|
"use strict";
|
|
9581
9971
|
|
|
@@ -9587,13 +9977,13 @@ function replaceProperty(subject, key, value) {
|
|
|
9587
9977
|
exports.replaceProperty = replaceProperty;
|
|
9588
9978
|
//# sourceMappingURL=replaceProperty.js.map
|
|
9589
9979
|
|
|
9590
|
-
/***/ }
|
|
9980
|
+
/***/ },
|
|
9591
9981
|
|
|
9592
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9982
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/someKey.js"
|
|
9593
9983
|
/*!*********************************************************************************************!*\
|
|
9594
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9984
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/someKey.js ***!
|
|
9595
9985
|
\*********************************************************************************************/
|
|
9596
|
-
|
|
9986
|
+
(__unused_webpack_module, exports) {
|
|
9597
9987
|
|
|
9598
9988
|
"use strict";
|
|
9599
9989
|
|
|
@@ -9607,19 +9997,19 @@ function someKey(subject, predicate, thisArg) {
|
|
|
9607
9997
|
exports.someKey = someKey;
|
|
9608
9998
|
//# sourceMappingURL=someKey.js.map
|
|
9609
9999
|
|
|
9610
|
-
/***/ }
|
|
10000
|
+
/***/ },
|
|
9611
10001
|
|
|
9612
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
10002
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/split.js"
|
|
9613
10003
|
/*!*******************************************************************************************!*\
|
|
9614
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
10004
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/split.js ***!
|
|
9615
10005
|
\*******************************************************************************************/
|
|
9616
|
-
|
|
10006
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
9617
10007
|
|
|
9618
10008
|
"use strict";
|
|
9619
10009
|
|
|
9620
10010
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9621
10011
|
exports.split = void 0;
|
|
9622
|
-
const reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
10012
|
+
const reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/reduceKey.js");
|
|
9623
10013
|
function split(target, ...splitters) {
|
|
9624
10014
|
const keyMap = {};
|
|
9625
10015
|
const s = splitters.map(s => (0, reduceKey_js_1.reduceByKey)(s, (p, k) => ((keyMap[k] = true), (p[k] = target[k] ?? s[k]), p), {}));
|
|
@@ -9629,13 +10019,13 @@ function split(target, ...splitters) {
|
|
|
9629
10019
|
exports.split = split;
|
|
9630
10020
|
//# sourceMappingURL=split.js.map
|
|
9631
10021
|
|
|
9632
|
-
/***/ }
|
|
10022
|
+
/***/ },
|
|
9633
10023
|
|
|
9634
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
10024
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/typeOverrideIncompatible.js"
|
|
9635
10025
|
/*!**************************************************************************************************************!*\
|
|
9636
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
10026
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/object/typeOverrideIncompatible.js ***!
|
|
9637
10027
|
\**************************************************************************************************************/
|
|
9638
|
-
|
|
10028
|
+
(__unused_webpack_module, exports) {
|
|
9639
10029
|
|
|
9640
10030
|
"use strict";
|
|
9641
10031
|
|
|
@@ -9652,13 +10042,13 @@ function typeOverrideIncompatible() {
|
|
|
9652
10042
|
exports.typeOverrideIncompatible = typeOverrideIncompatible;
|
|
9653
10043
|
//# sourceMappingURL=typeOverrideIncompatible.js.map
|
|
9654
10044
|
|
|
9655
|
-
/***/ }
|
|
10045
|
+
/***/ },
|
|
9656
10046
|
|
|
9657
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
10047
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/predicates/CanAssign.js"
|
|
9658
10048
|
/*!***************************************************************************************************!*\
|
|
9659
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
10049
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/predicates/CanAssign.js ***!
|
|
9660
10050
|
\***************************************************************************************************/
|
|
9661
|
-
|
|
10051
|
+
(__unused_webpack_module, exports) {
|
|
9662
10052
|
|
|
9663
10053
|
"use strict";
|
|
9664
10054
|
|
|
@@ -9670,13 +10060,13 @@ function canAssign() {
|
|
|
9670
10060
|
exports.canAssign = canAssign;
|
|
9671
10061
|
//# sourceMappingURL=CanAssign.js.map
|
|
9672
10062
|
|
|
9673
|
-
/***/ }
|
|
10063
|
+
/***/ },
|
|
9674
10064
|
|
|
9675
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
10065
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/predicates/index.js"
|
|
9676
10066
|
/*!***********************************************************************************************!*\
|
|
9677
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
10067
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/predicates/index.js ***!
|
|
9678
10068
|
\***********************************************************************************************/
|
|
9679
|
-
|
|
10069
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
9680
10070
|
|
|
9681
10071
|
"use strict";
|
|
9682
10072
|
|
|
@@ -9695,59 +10085,22 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9695
10085
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9696
10086
|
};
|
|
9697
10087
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9698
|
-
__exportStar(__webpack_require__(/*! ./CanAssign.js */ "../../node_modules/.pnpm/type-plus@
|
|
9699
|
-
__exportStar(__webpack_require__(/*! ./isType.js */ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/predicates/isType.js"), exports);
|
|
10088
|
+
__exportStar(__webpack_require__(/*! ./CanAssign.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/predicates/CanAssign.js"), exports);
|
|
9700
10089
|
//# sourceMappingURL=index.js.map
|
|
9701
10090
|
|
|
9702
|
-
/***/ }
|
|
9703
|
-
|
|
9704
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/predicates/isType.js":
|
|
9705
|
-
/*!************************************************************************************************!*\
|
|
9706
|
-
!*** ../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/predicates/isType.js ***!
|
|
9707
|
-
\************************************************************************************************/
|
|
9708
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
10091
|
+
/***/ },
|
|
9709
10092
|
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9713
|
-
exports.isType = void 0;
|
|
9714
|
-
function isType(subject, validator) {
|
|
9715
|
-
return validator ? !!validator(subject) : true;
|
|
9716
|
-
}
|
|
9717
|
-
exports.isType = isType;
|
|
9718
|
-
isType.t = function (subject) {
|
|
9719
|
-
return subject === undefined || subject === true;
|
|
9720
|
-
};
|
|
9721
|
-
isType.f = function (subject) {
|
|
9722
|
-
return subject === undefined || subject === false;
|
|
9723
|
-
};
|
|
9724
|
-
function isNever(subject) {
|
|
9725
|
-
return true;
|
|
9726
|
-
}
|
|
9727
|
-
isType.never = isNever;
|
|
9728
|
-
/**
|
|
9729
|
-
* Are types A and B equals/not equals.
|
|
9730
|
-
* Easier to use than `isType.t<>()` and `isType.f<>()`,
|
|
9731
|
-
* when doing type level only equality comparison as you don't have to import `Equal<>`.
|
|
9732
|
-
*
|
|
9733
|
-
* @deprecated use `type.equal()` instead
|
|
9734
|
-
*/
|
|
9735
|
-
isType.equal = function () { };
|
|
9736
|
-
//# sourceMappingURL=isType.js.map
|
|
9737
|
-
|
|
9738
|
-
/***/ }),
|
|
9739
|
-
|
|
9740
|
-
/***/ "../../node_modules/.pnpm/type-plus@6.6.0/node_modules/type-plus/cjs/promise/MaybePromise.js":
|
|
10093
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/promise/MaybePromise.js"
|
|
9741
10094
|
/*!***************************************************************************************************!*\
|
|
9742
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
10095
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/promise/MaybePromise.js ***!
|
|
9743
10096
|
\***************************************************************************************************/
|
|
9744
|
-
|
|
10097
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
9745
10098
|
|
|
9746
10099
|
"use strict";
|
|
9747
10100
|
|
|
9748
10101
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9749
10102
|
exports.MaybePromise = exports.transformMaybePromise = void 0;
|
|
9750
|
-
const isPromise_js_1 = __webpack_require__(/*! ./isPromise.js */ "../../node_modules/.pnpm/type-plus@
|
|
10103
|
+
const isPromise_js_1 = __webpack_require__(/*! ./isPromise.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/promise/isPromise.js");
|
|
9751
10104
|
function transformMaybePromise(value, transformer) {
|
|
9752
10105
|
return (0, isPromise_js_1.isPromise)(value) ? value.then(transformer) : transformer(value);
|
|
9753
10106
|
}
|
|
@@ -9757,13 +10110,13 @@ exports.MaybePromise = {
|
|
|
9757
10110
|
};
|
|
9758
10111
|
//# sourceMappingURL=MaybePromise.js.map
|
|
9759
10112
|
|
|
9760
|
-
/***/ }
|
|
10113
|
+
/***/ },
|
|
9761
10114
|
|
|
9762
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
10115
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/promise/index.js"
|
|
9763
10116
|
/*!********************************************************************************************!*\
|
|
9764
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
10117
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/promise/index.js ***!
|
|
9765
10118
|
\********************************************************************************************/
|
|
9766
|
-
|
|
10119
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
9767
10120
|
|
|
9768
10121
|
"use strict";
|
|
9769
10122
|
|
|
@@ -9782,18 +10135,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9782
10135
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9783
10136
|
};
|
|
9784
10137
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9785
|
-
__exportStar(__webpack_require__(/*! ./isPromise.js */ "../../node_modules/.pnpm/type-plus@
|
|
9786
|
-
__exportStar(__webpack_require__(/*! ./mapSeries.js */ "../../node_modules/.pnpm/type-plus@
|
|
9787
|
-
__exportStar(__webpack_require__(/*! ./MaybePromise.js */ "../../node_modules/.pnpm/type-plus@
|
|
10138
|
+
__exportStar(__webpack_require__(/*! ./isPromise.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/promise/isPromise.js"), exports);
|
|
10139
|
+
__exportStar(__webpack_require__(/*! ./mapSeries.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/promise/mapSeries.js"), exports);
|
|
10140
|
+
__exportStar(__webpack_require__(/*! ./MaybePromise.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/promise/MaybePromise.js"), exports);
|
|
9788
10141
|
//# sourceMappingURL=index.js.map
|
|
9789
10142
|
|
|
9790
|
-
/***/ }
|
|
10143
|
+
/***/ },
|
|
9791
10144
|
|
|
9792
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
10145
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/promise/isPromise.js"
|
|
9793
10146
|
/*!************************************************************************************************!*\
|
|
9794
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
10147
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/promise/isPromise.js ***!
|
|
9795
10148
|
\************************************************************************************************/
|
|
9796
|
-
|
|
10149
|
+
(__unused_webpack_module, exports) {
|
|
9797
10150
|
|
|
9798
10151
|
"use strict";
|
|
9799
10152
|
|
|
@@ -9806,13 +10159,13 @@ function isPromise(subject) {
|
|
|
9806
10159
|
exports.isPromise = isPromise;
|
|
9807
10160
|
//# sourceMappingURL=isPromise.js.map
|
|
9808
10161
|
|
|
9809
|
-
/***/ }
|
|
10162
|
+
/***/ },
|
|
9810
10163
|
|
|
9811
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
10164
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/promise/mapSeries.js"
|
|
9812
10165
|
/*!************************************************************************************************!*\
|
|
9813
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
10166
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/promise/mapSeries.js ***!
|
|
9814
10167
|
\************************************************************************************************/
|
|
9815
|
-
|
|
10168
|
+
(__unused_webpack_module, exports) {
|
|
9816
10169
|
|
|
9817
10170
|
"use strict";
|
|
9818
10171
|
|
|
@@ -9824,47 +10177,88 @@ function mapSeries(values, fn) {
|
|
|
9824
10177
|
exports.mapSeries = mapSeries;
|
|
9825
10178
|
//# sourceMappingURL=mapSeries.js.map
|
|
9826
10179
|
|
|
9827
|
-
/***/ }
|
|
10180
|
+
/***/ },
|
|
9828
10181
|
|
|
9829
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
10182
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/testing/stub.js"
|
|
9830
10183
|
/*!*******************************************************************************************!*\
|
|
9831
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
10184
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/testing/stub.js ***!
|
|
9832
10185
|
\*******************************************************************************************/
|
|
9833
|
-
|
|
10186
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
9834
10187
|
|
|
9835
10188
|
"use strict";
|
|
9836
10189
|
|
|
9837
10190
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9838
10191
|
exports.stub = void 0;
|
|
9839
|
-
const unpartial_1 = __webpack_require__(/*! unpartial */ "../../node_modules/.pnpm/unpartial@1.0.
|
|
10192
|
+
const unpartial_1 = __webpack_require__(/*! unpartial */ "../../node_modules/.pnpm/unpartial@1.0.5/node_modules/unpartial/cjs/index.js");
|
|
9840
10193
|
function stub(stub) {
|
|
9841
10194
|
return stub;
|
|
9842
10195
|
}
|
|
9843
10196
|
exports.stub = stub;
|
|
9844
10197
|
function build(init) {
|
|
9845
|
-
return
|
|
9846
|
-
|
|
9847
|
-
|
|
10198
|
+
return builder(init).create();
|
|
10199
|
+
}
|
|
10200
|
+
/**
|
|
10201
|
+
* Create a builder for a stub function of type T.
|
|
10202
|
+
*
|
|
10203
|
+
* The builder contains two methods:
|
|
10204
|
+
*
|
|
10205
|
+
* `.with()`: adds additional handler or partial stub.
|
|
10206
|
+
* `.create()`: creates the final stub function.
|
|
10207
|
+
*
|
|
10208
|
+
* @example
|
|
10209
|
+
* ```ts
|
|
10210
|
+
* const b = stub.builder<{ a: number; b: string }>({ a: 1 }).with({ b: 'b' }).create()
|
|
10211
|
+
* b({ a: 2 }) // { a: 2, b: 'b' }
|
|
10212
|
+
* ```
|
|
10213
|
+
*/
|
|
10214
|
+
function builder(init) {
|
|
10215
|
+
return builderInternal([init]);
|
|
10216
|
+
}
|
|
10217
|
+
function builderInternal(initializers) {
|
|
10218
|
+
const builder = {
|
|
10219
|
+
/**
|
|
10220
|
+
* Adds an init object or handler to the builder.
|
|
10221
|
+
*
|
|
10222
|
+
* If `init` is an object, it will be merged with the stub object.
|
|
10223
|
+
* If `init` is a function, it will be called with the stub object.
|
|
10224
|
+
*
|
|
10225
|
+
* @return {Builder<T>} The builder instance.
|
|
10226
|
+
*/
|
|
10227
|
+
with(init) {
|
|
10228
|
+
return builderInternal([...initializers, init]);
|
|
10229
|
+
},
|
|
10230
|
+
/**
|
|
10231
|
+
* Creates the resulting stub function.
|
|
10232
|
+
*/
|
|
10233
|
+
create() {
|
|
10234
|
+
return (stub) => {
|
|
10235
|
+
return initializers.reduce((acc, init) => {
|
|
10236
|
+
if (typeof init === 'function') {
|
|
10237
|
+
return init(acc);
|
|
10238
|
+
}
|
|
10239
|
+
return (0, unpartial_1.requiredDeep)(init, acc);
|
|
10240
|
+
}, stub);
|
|
10241
|
+
};
|
|
10242
|
+
}
|
|
9848
10243
|
};
|
|
10244
|
+
return builder;
|
|
9849
10245
|
}
|
|
9850
10246
|
stub.build = build;
|
|
10247
|
+
stub.builder = builder;
|
|
9851
10248
|
//# sourceMappingURL=stub.js.map
|
|
9852
10249
|
|
|
9853
|
-
/***/ }
|
|
10250
|
+
/***/ },
|
|
9854
10251
|
|
|
9855
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
10252
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/testing/test_type.js"
|
|
9856
10253
|
/*!************************************************************************************************!*\
|
|
9857
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
10254
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/testing/test_type.js ***!
|
|
9858
10255
|
\************************************************************************************************/
|
|
9859
|
-
|
|
10256
|
+
(__unused_webpack_module, exports) {
|
|
9860
10257
|
|
|
9861
10258
|
"use strict";
|
|
9862
10259
|
|
|
9863
10260
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9864
10261
|
exports.testType = void 0;
|
|
9865
|
-
function equal(expected) {
|
|
9866
|
-
return expected;
|
|
9867
|
-
}
|
|
9868
10262
|
/**
|
|
9869
10263
|
* Test utilities for types.
|
|
9870
10264
|
*
|
|
@@ -9872,106 +10266,129 @@ function equal(expected) {
|
|
|
9872
10266
|
* The return value is the input `expected` parameter asserted as the first type parameter,
|
|
9873
10267
|
* so that the type can be further inspected.
|
|
9874
10268
|
*/
|
|
9875
|
-
exports.testType = {
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
-
*
|
|
9879
|
-
* @return `expected` as `T` for type inspection.
|
|
9880
|
-
*/
|
|
9881
|
-
any(expected) {
|
|
9882
|
-
return expected;
|
|
9883
|
-
},
|
|
9884
|
-
/**
|
|
9885
|
-
* Check if type `T` is exactly `unknown`.
|
|
9886
|
-
*
|
|
9887
|
-
* @return `expected` as `T` for type inspection.
|
|
9888
|
-
*/
|
|
9889
|
-
unknown(expected) {
|
|
9890
|
-
return expected;
|
|
9891
|
-
},
|
|
9892
|
-
/**
|
|
9893
|
-
* Check if type `T` is exactly `never`.
|
|
9894
|
-
*
|
|
9895
|
-
* @return `expected` as `T` for type inspection.
|
|
9896
|
-
*/
|
|
9897
|
-
never(expected) {
|
|
9898
|
-
return expected;
|
|
9899
|
-
},
|
|
9900
|
-
/**
|
|
9901
|
-
* Check if type `T` is exactly `void`.
|
|
9902
|
-
*
|
|
9903
|
-
* @return `expected` as `T` for type inspection.
|
|
9904
|
-
*/
|
|
9905
|
-
void(expected) {
|
|
9906
|
-
return expected;
|
|
9907
|
-
},
|
|
9908
|
-
equal,
|
|
9909
|
-
/**
|
|
9910
|
-
* Check if `A` can assign to `B`.
|
|
9911
|
-
*
|
|
9912
|
-
* @return `expected` as `A` for type inspection.
|
|
9913
|
-
*/
|
|
9914
|
-
canAssign(expected) {
|
|
9915
|
-
return expected;
|
|
9916
|
-
},
|
|
9917
|
-
/**
|
|
9918
|
-
* Check if type `T` is exactly `boolean`.
|
|
9919
|
-
*
|
|
9920
|
-
* @return `expected` as `T` for type inspection.
|
|
9921
|
-
*/
|
|
9922
|
-
strictBoolean(expected) {
|
|
9923
|
-
return expected;
|
|
9924
|
-
},
|
|
9925
|
-
/**
|
|
9926
|
-
* Check if type `T` is `boolean` and boolean literals.
|
|
9927
|
-
*
|
|
9928
|
-
* @return `expected` as `T` for type inspection.
|
|
9929
|
-
*/
|
|
9930
|
-
boolean(expected) {
|
|
9931
|
-
return expected;
|
|
9932
|
-
},
|
|
9933
|
-
/**
|
|
9934
|
-
* Check if type `T` is exactly `true`.
|
|
9935
|
-
*
|
|
9936
|
-
* @return `expected` as `T` for type inspection.
|
|
9937
|
-
*/
|
|
9938
|
-
true(expected) {
|
|
9939
|
-
return expected;
|
|
9940
|
-
},
|
|
9941
|
-
/**
|
|
9942
|
-
* Check if type `T` is exactly `false`.
|
|
9943
|
-
*
|
|
9944
|
-
* @return `expected` as `T` for type inspection.
|
|
9945
|
-
*/
|
|
9946
|
-
false(expected) {
|
|
9947
|
-
return expected;
|
|
9948
|
-
},
|
|
9949
|
-
/**
|
|
9950
|
-
* Check if type `T` is exactly `number`.
|
|
9951
|
-
*
|
|
9952
|
-
* @return `expected` as `T` for type inspection.
|
|
9953
|
-
*/
|
|
9954
|
-
strictNumber(expected) {
|
|
9955
|
-
return expected;
|
|
9956
|
-
},
|
|
9957
|
-
/**
|
|
9958
|
-
* Check if type `T` is `number` or number literals.
|
|
9959
|
-
*
|
|
9960
|
-
* @return `expected` as `T` for type inspection.
|
|
9961
|
-
*/
|
|
9962
|
-
number(expected) {
|
|
9963
|
-
return expected;
|
|
10269
|
+
exports.testType = new Proxy({}, {
|
|
10270
|
+
get(_target, _prop, _receiver) {
|
|
10271
|
+
return (expected) => expected;
|
|
9964
10272
|
}
|
|
9965
|
-
};
|
|
10273
|
+
});
|
|
9966
10274
|
//# sourceMappingURL=test_type.js.map
|
|
9967
10275
|
|
|
9968
|
-
/***/ }
|
|
10276
|
+
/***/ },
|
|
10277
|
+
|
|
10278
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/tuple/create_tuple.js"
|
|
10279
|
+
/*!*************************************************************************************************!*\
|
|
10280
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/tuple/create_tuple.js ***!
|
|
10281
|
+
\*************************************************************************************************/
|
|
10282
|
+
(__unused_webpack_module, exports) {
|
|
10283
|
+
|
|
10284
|
+
"use strict";
|
|
10285
|
+
|
|
10286
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10287
|
+
//# sourceMappingURL=create_tuple.js.map
|
|
10288
|
+
|
|
10289
|
+
/***/ },
|
|
10290
|
+
|
|
10291
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/tuple/drop.js"
|
|
10292
|
+
/*!*****************************************************************************************!*\
|
|
10293
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/tuple/drop.js ***!
|
|
10294
|
+
\*****************************************************************************************/
|
|
10295
|
+
(__unused_webpack_module, exports) {
|
|
10296
|
+
|
|
10297
|
+
"use strict";
|
|
10298
|
+
|
|
10299
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10300
|
+
exports.drop = void 0;
|
|
10301
|
+
/**
|
|
10302
|
+
* drop a particular value from an array.
|
|
10303
|
+
*
|
|
10304
|
+
* 💀 *deprecated* the type does not sufficiently cover the use cases.
|
|
10305
|
+
*/
|
|
10306
|
+
function drop(array, value) {
|
|
10307
|
+
return array.filter(v => v !== value);
|
|
10308
|
+
}
|
|
10309
|
+
exports.drop = drop;
|
|
10310
|
+
//# sourceMappingURL=drop.js.map
|
|
10311
|
+
|
|
10312
|
+
/***/ },
|
|
10313
|
+
|
|
10314
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/tuple/tuple_plus.js"
|
|
10315
|
+
/*!***********************************************************************************************!*\
|
|
10316
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/tuple/tuple_plus.js ***!
|
|
10317
|
+
\***********************************************************************************************/
|
|
10318
|
+
(__unused_webpack_module, exports) {
|
|
10319
|
+
|
|
10320
|
+
"use strict";
|
|
10321
|
+
|
|
10322
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10323
|
+
//# sourceMappingURL=tuple_plus.js.map
|
|
10324
|
+
|
|
10325
|
+
/***/ },
|
|
10326
|
+
|
|
10327
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/type-guard/is_type.js"
|
|
10328
|
+
/*!*************************************************************************************************!*\
|
|
10329
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/type-guard/is_type.js ***!
|
|
10330
|
+
\*************************************************************************************************/
|
|
10331
|
+
(__unused_webpack_module, exports) {
|
|
10332
|
+
|
|
10333
|
+
"use strict";
|
|
10334
|
+
|
|
10335
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10336
|
+
exports.isType = void 0;
|
|
10337
|
+
function isType(subject, validator) {
|
|
10338
|
+
return validator ? !!validator(subject) : true;
|
|
10339
|
+
}
|
|
10340
|
+
exports.isType = isType;
|
|
10341
|
+
/**
|
|
10342
|
+
* @deprecated use `isType<T>()` or `testType.true<T>()` instead
|
|
10343
|
+
*/
|
|
10344
|
+
isType.t = function (subject) {
|
|
10345
|
+
return subject === undefined || subject === true;
|
|
10346
|
+
};
|
|
10347
|
+
/**
|
|
10348
|
+
* @deprecated use `isType<T>()` or `testType.false<T>()` instead
|
|
10349
|
+
*/
|
|
10350
|
+
isType.f = function (subject) {
|
|
10351
|
+
return subject === undefined || subject === false;
|
|
10352
|
+
};
|
|
10353
|
+
function isNever(_subject) {
|
|
10354
|
+
return true;
|
|
10355
|
+
}
|
|
10356
|
+
isType.never = isNever;
|
|
10357
|
+
/**
|
|
10358
|
+
* Are types A and B equals/not equals.
|
|
10359
|
+
* Easier to use than `isType.t<>()` and `isType.f<>()`,
|
|
10360
|
+
* when doing type level only equality comparison as you don't have to import `Equal<>`.
|
|
10361
|
+
*
|
|
10362
|
+
* @deprecated use `testType.equal()` instead
|
|
10363
|
+
*/
|
|
10364
|
+
isType.equal = function () { };
|
|
10365
|
+
//# sourceMappingURL=is_type.js.map
|
|
10366
|
+
|
|
10367
|
+
/***/ },
|
|
10368
|
+
|
|
10369
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/unpartial.js"
|
|
10370
|
+
/*!****************************************************************************************!*\
|
|
10371
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/unpartial.js ***!
|
|
10372
|
+
\****************************************************************************************/
|
|
10373
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
10374
|
+
|
|
10375
|
+
"use strict";
|
|
10376
|
+
|
|
10377
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10378
|
+
exports.unpartial = exports.requiredDeep = exports.required = void 0;
|
|
10379
|
+
var unpartial_1 = __webpack_require__(/*! unpartial */ "../../node_modules/.pnpm/unpartial@1.0.5/node_modules/unpartial/cjs/index.js");
|
|
10380
|
+
Object.defineProperty(exports, "required", ({ enumerable: true, get: function () { return unpartial_1.required; } }));
|
|
10381
|
+
Object.defineProperty(exports, "requiredDeep", ({ enumerable: true, get: function () { return unpartial_1.requiredDeep; } }));
|
|
10382
|
+
Object.defineProperty(exports, "unpartial", ({ enumerable: true, get: function () { return unpartial_1.unpartial; } }));
|
|
10383
|
+
//# sourceMappingURL=unpartial.js.map
|
|
10384
|
+
|
|
10385
|
+
/***/ },
|
|
9969
10386
|
|
|
9970
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
10387
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/utils/as.js"
|
|
9971
10388
|
/*!***************************************************************************************!*\
|
|
9972
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
10389
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/utils/as.js ***!
|
|
9973
10390
|
\***************************************************************************************/
|
|
9974
|
-
|
|
10391
|
+
(__unused_webpack_module, exports) {
|
|
9975
10392
|
|
|
9976
10393
|
"use strict";
|
|
9977
10394
|
|
|
@@ -10001,13 +10418,13 @@ function amend(subject) {
|
|
|
10001
10418
|
exports.amend = amend;
|
|
10002
10419
|
//# sourceMappingURL=as.js.map
|
|
10003
10420
|
|
|
10004
|
-
/***/ }
|
|
10421
|
+
/***/ },
|
|
10005
10422
|
|
|
10006
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
10423
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/utils/index.js"
|
|
10007
10424
|
/*!******************************************************************************************!*\
|
|
10008
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
10425
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/utils/index.js ***!
|
|
10009
10426
|
\******************************************************************************************/
|
|
10010
|
-
|
|
10427
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
10011
10428
|
|
|
10012
10429
|
"use strict";
|
|
10013
10430
|
|
|
@@ -10026,17 +10443,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10026
10443
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
10027
10444
|
};
|
|
10028
10445
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10029
|
-
__exportStar(__webpack_require__(/*! ./as.js */ "../../node_modules/.pnpm/type-plus@
|
|
10030
|
-
__exportStar(__webpack_require__(/*! ./inspect.js */ "../../node_modules/.pnpm/type-plus@
|
|
10446
|
+
__exportStar(__webpack_require__(/*! ./as.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/utils/as.js"), exports);
|
|
10447
|
+
__exportStar(__webpack_require__(/*! ./inspect.js */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/utils/inspect.js"), exports);
|
|
10031
10448
|
//# sourceMappingURL=index.js.map
|
|
10032
10449
|
|
|
10033
|
-
/***/ }
|
|
10450
|
+
/***/ },
|
|
10034
10451
|
|
|
10035
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
10452
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/utils/inspect.js"
|
|
10036
10453
|
/*!********************************************************************************************!*\
|
|
10037
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
10454
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/cjs/utils/inspect.js ***!
|
|
10038
10455
|
\********************************************************************************************/
|
|
10039
|
-
|
|
10456
|
+
(__unused_webpack_module, exports) {
|
|
10040
10457
|
|
|
10041
10458
|
"use strict";
|
|
10042
10459
|
|
|
@@ -10053,13 +10470,13 @@ function inspect(value, inspector = console.dir) {
|
|
|
10053
10470
|
exports.inspect = inspect;
|
|
10054
10471
|
//# sourceMappingURL=inspect.js.map
|
|
10055
10472
|
|
|
10056
|
-
/***/ }
|
|
10473
|
+
/***/ },
|
|
10057
10474
|
|
|
10058
|
-
/***/ "../../node_modules/.pnpm/unpartial@1.0.
|
|
10475
|
+
/***/ "../../node_modules/.pnpm/unpartial@1.0.5/node_modules/unpartial/cjs/index.js"
|
|
10059
10476
|
/*!************************************************************************************!*\
|
|
10060
|
-
!*** ../../node_modules/.pnpm/unpartial@1.0.
|
|
10477
|
+
!*** ../../node_modules/.pnpm/unpartial@1.0.5/node_modules/unpartial/cjs/index.js ***!
|
|
10061
10478
|
\************************************************************************************/
|
|
10062
|
-
|
|
10479
|
+
(__unused_webpack_module, exports) {
|
|
10063
10480
|
|
|
10064
10481
|
"use strict";
|
|
10065
10482
|
|
|
@@ -10151,7 +10568,7 @@ function unpartialRecursively(arg1, arg2, arg3) {
|
|
|
10151
10568
|
exports.unpartialRecursively = unpartialRecursively;
|
|
10152
10569
|
//# sourceMappingURL=index.js.map
|
|
10153
10570
|
|
|
10154
|
-
/***/ }
|
|
10571
|
+
/***/ }
|
|
10155
10572
|
|
|
10156
10573
|
/******/ });
|
|
10157
10574
|
/************************************************************************/
|
|
@@ -10173,6 +10590,12 @@ exports.unpartialRecursively = unpartialRecursively;
|
|
|
10173
10590
|
/******/ };
|
|
10174
10591
|
/******/
|
|
10175
10592
|
/******/ // Execute the module function
|
|
10593
|
+
/******/ if (!(moduleId in __webpack_modules__)) {
|
|
10594
|
+
/******/ delete __webpack_module_cache__[moduleId];
|
|
10595
|
+
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
10596
|
+
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
10597
|
+
/******/ throw e;
|
|
10598
|
+
/******/ }
|
|
10176
10599
|
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
10177
10600
|
/******/
|
|
10178
10601
|
/******/ // Return the exports of the module
|