@serviceme/devtools-cli 0.1.6 → 0.1.7
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/dist/bridgeServer.js +492 -333
- package/dist/cli.js +826 -507
- package/package.json +3 -3
package/dist/bridgeServer.js
CHANGED
|
@@ -1,53 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var readline = require('readline');
|
|
5
|
-
var fs12 = require('fs/promises');
|
|
6
|
-
var os2 = require('os');
|
|
7
|
-
var path10 = require('path');
|
|
8
|
-
var child_process = require('child_process');
|
|
9
|
-
var fs7 = require('fs');
|
|
10
|
-
require('crypto');
|
|
11
|
-
|
|
12
|
-
function _interopNamespace(e) {
|
|
13
|
-
if (e && e.__esModule) return e;
|
|
14
|
-
var n = Object.create(null);
|
|
15
|
-
if (e) {
|
|
16
|
-
Object.keys(e).forEach(function (k) {
|
|
17
|
-
if (k !== 'default') {
|
|
18
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return e[k]; }
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
n.default = e;
|
|
27
|
-
return Object.freeze(n);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
var readline__namespace = /*#__PURE__*/_interopNamespace(readline);
|
|
31
|
-
var fs12__namespace = /*#__PURE__*/_interopNamespace(fs12);
|
|
32
|
-
var os2__namespace = /*#__PURE__*/_interopNamespace(os2);
|
|
33
|
-
var path10__namespace = /*#__PURE__*/_interopNamespace(path10);
|
|
34
|
-
var fs7__namespace = /*#__PURE__*/_interopNamespace(fs7);
|
|
35
|
-
|
|
2
|
+
"use strict";
|
|
36
3
|
var __create = Object.create;
|
|
37
4
|
var __defProp = Object.defineProperty;
|
|
38
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
39
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
40
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
41
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
42
|
-
var
|
|
43
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
44
|
-
}) : x)(function(x) {
|
|
45
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
46
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
47
|
-
});
|
|
48
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
9
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
49
10
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
50
11
|
};
|
|
12
|
+
var __export = (target, all) => {
|
|
13
|
+
for (var name in all)
|
|
14
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
|
+
};
|
|
51
16
|
var __copyProps = (to, from, except, desc) => {
|
|
52
17
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
53
18
|
for (let key of __getOwnPropNames(from))
|
|
@@ -61,23 +26,25 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
61
26
|
// file that has been converted to a CommonJS file using a Babel-
|
|
62
27
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
63
28
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
64
|
-
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
65
30
|
mod
|
|
66
31
|
));
|
|
32
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
67
33
|
|
|
68
34
|
// ../../node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.js
|
|
69
35
|
var require_esprima = __commonJS({
|
|
70
|
-
"../../node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.js"(
|
|
36
|
+
"../../node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.js"(exports2, module2) {
|
|
37
|
+
"use strict";
|
|
71
38
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
72
|
-
if (typeof
|
|
73
|
-
|
|
39
|
+
if (typeof exports2 === "object" && typeof module2 === "object")
|
|
40
|
+
module2.exports = factory();
|
|
74
41
|
else if (typeof define === "function" && define.amd)
|
|
75
42
|
define([], factory);
|
|
76
|
-
else if (typeof
|
|
77
|
-
|
|
43
|
+
else if (typeof exports2 === "object")
|
|
44
|
+
exports2["esprima"] = factory();
|
|
78
45
|
else
|
|
79
46
|
root["esprima"] = factory();
|
|
80
|
-
})(
|
|
47
|
+
})(exports2, function() {
|
|
81
48
|
return (
|
|
82
49
|
/******/
|
|
83
50
|
(function(modules) {
|
|
@@ -85,7 +52,7 @@ var require_esprima = __commonJS({
|
|
|
85
52
|
function __webpack_require__(moduleId) {
|
|
86
53
|
if (installedModules[moduleId])
|
|
87
54
|
return installedModules[moduleId].exports;
|
|
88
|
-
var
|
|
55
|
+
var module3 = installedModules[moduleId] = {
|
|
89
56
|
/******/
|
|
90
57
|
exports: {},
|
|
91
58
|
/******/
|
|
@@ -94,9 +61,9 @@ var require_esprima = __commonJS({
|
|
|
94
61
|
loaded: false
|
|
95
62
|
/******/
|
|
96
63
|
};
|
|
97
|
-
modules[moduleId].call(
|
|
98
|
-
|
|
99
|
-
return
|
|
64
|
+
modules[moduleId].call(module3.exports, module3, module3.exports, __webpack_require__);
|
|
65
|
+
module3.loaded = true;
|
|
66
|
+
return module3.exports;
|
|
100
67
|
}
|
|
101
68
|
__webpack_require__.m = modules;
|
|
102
69
|
__webpack_require__.c = installedModules;
|
|
@@ -105,8 +72,9 @@ var require_esprima = __commonJS({
|
|
|
105
72
|
})([
|
|
106
73
|
/* 0 */
|
|
107
74
|
/***/
|
|
108
|
-
function(
|
|
109
|
-
|
|
75
|
+
function(module3, exports3, __webpack_require__) {
|
|
76
|
+
"use strict";
|
|
77
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
110
78
|
var comment_handler_1 = __webpack_require__(1);
|
|
111
79
|
var jsx_parser_1 = __webpack_require__(3);
|
|
112
80
|
var parser_1 = __webpack_require__(8);
|
|
@@ -156,19 +124,19 @@ var require_esprima = __commonJS({
|
|
|
156
124
|
}
|
|
157
125
|
return ast;
|
|
158
126
|
}
|
|
159
|
-
|
|
127
|
+
exports3.parse = parse;
|
|
160
128
|
function parseModule(code, options2, delegate) {
|
|
161
129
|
var parsingOptions = options2 || {};
|
|
162
130
|
parsingOptions.sourceType = "module";
|
|
163
131
|
return parse(code, parsingOptions, delegate);
|
|
164
132
|
}
|
|
165
|
-
|
|
133
|
+
exports3.parseModule = parseModule;
|
|
166
134
|
function parseScript(code, options2, delegate) {
|
|
167
135
|
var parsingOptions = options2 || {};
|
|
168
136
|
parsingOptions.sourceType = "script";
|
|
169
137
|
return parse(code, parsingOptions, delegate);
|
|
170
138
|
}
|
|
171
|
-
|
|
139
|
+
exports3.parseScript = parseScript;
|
|
172
140
|
function tokenize(code, options2, delegate) {
|
|
173
141
|
var tokenizer = new tokenizer_1.Tokenizer(code, options2);
|
|
174
142
|
var tokens;
|
|
@@ -192,15 +160,16 @@ var require_esprima = __commonJS({
|
|
|
192
160
|
}
|
|
193
161
|
return tokens;
|
|
194
162
|
}
|
|
195
|
-
|
|
163
|
+
exports3.tokenize = tokenize;
|
|
196
164
|
var syntax_1 = __webpack_require__(2);
|
|
197
|
-
|
|
198
|
-
|
|
165
|
+
exports3.Syntax = syntax_1.Syntax;
|
|
166
|
+
exports3.version = "4.0.1";
|
|
199
167
|
},
|
|
200
168
|
/* 1 */
|
|
201
169
|
/***/
|
|
202
|
-
function(
|
|
203
|
-
|
|
170
|
+
function(module3, exports3, __webpack_require__) {
|
|
171
|
+
"use strict";
|
|
172
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
204
173
|
var syntax_1 = __webpack_require__(2);
|
|
205
174
|
var CommentHandler = (function() {
|
|
206
175
|
function CommentHandler2() {
|
|
@@ -342,13 +311,14 @@ var require_esprima = __commonJS({
|
|
|
342
311
|
};
|
|
343
312
|
return CommentHandler2;
|
|
344
313
|
})();
|
|
345
|
-
|
|
314
|
+
exports3.CommentHandler = CommentHandler;
|
|
346
315
|
},
|
|
347
316
|
/* 2 */
|
|
348
317
|
/***/
|
|
349
|
-
function(
|
|
350
|
-
|
|
351
|
-
|
|
318
|
+
function(module3, exports3) {
|
|
319
|
+
"use strict";
|
|
320
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
321
|
+
exports3.Syntax = {
|
|
352
322
|
AssignmentExpression: "AssignmentExpression",
|
|
353
323
|
AssignmentPattern: "AssignmentPattern",
|
|
354
324
|
ArrayExpression: "ArrayExpression",
|
|
@@ -419,7 +389,8 @@ var require_esprima = __commonJS({
|
|
|
419
389
|
},
|
|
420
390
|
/* 3 */
|
|
421
391
|
/***/
|
|
422
|
-
function(
|
|
392
|
+
function(module3, exports3, __webpack_require__) {
|
|
393
|
+
"use strict";
|
|
423
394
|
var __extends = this && this.__extends || (function() {
|
|
424
395
|
var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
425
396
|
d.__proto__ = b;
|
|
@@ -434,7 +405,7 @@ var require_esprima = __commonJS({
|
|
|
434
405
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
435
406
|
};
|
|
436
407
|
})();
|
|
437
|
-
Object.defineProperty(
|
|
408
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
438
409
|
var character_1 = __webpack_require__(4);
|
|
439
410
|
var JSXNode = __webpack_require__(5);
|
|
440
411
|
var jsx_syntax_1 = __webpack_require__(6);
|
|
@@ -465,6 +436,9 @@ var require_esprima = __commonJS({
|
|
|
465
436
|
var expr = elementName;
|
|
466
437
|
qualifiedName = getQualifiedElementName(expr.object) + "." + getQualifiedElementName(expr.property);
|
|
467
438
|
break;
|
|
439
|
+
/* istanbul ignore next */
|
|
440
|
+
default:
|
|
441
|
+
break;
|
|
468
442
|
}
|
|
469
443
|
return qualifiedName;
|
|
470
444
|
}
|
|
@@ -927,19 +901,20 @@ var require_esprima = __commonJS({
|
|
|
927
901
|
};
|
|
928
902
|
return JSXParser2;
|
|
929
903
|
})(parser_1.Parser);
|
|
930
|
-
|
|
904
|
+
exports3.JSXParser = JSXParser;
|
|
931
905
|
},
|
|
932
906
|
/* 4 */
|
|
933
907
|
/***/
|
|
934
|
-
function(
|
|
935
|
-
|
|
908
|
+
function(module3, exports3) {
|
|
909
|
+
"use strict";
|
|
910
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
936
911
|
var Regex = {
|
|
937
912
|
// Unicode v8.0.0 NonAsciiIdentifierStart:
|
|
938
913
|
NonAsciiIdentifierStart: /[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\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\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\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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-\u2C2E\u2C30-\u2C5E\u2C60-\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,
|
|
939
914
|
// Unicode v8.0.0 NonAsciiIdentifierPart:
|
|
940
915
|
NonAsciiIdentifierPart: /[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/
|
|
941
916
|
};
|
|
942
|
-
|
|
917
|
+
exports3.Character = {
|
|
943
918
|
/* tslint:disable:no-bitwise */
|
|
944
919
|
fromCodePoint: function(cp3) {
|
|
945
920
|
return cp3 < 65536 ? String.fromCharCode(cp3) : String.fromCharCode(55296 + (cp3 - 65536 >> 10)) + String.fromCharCode(56320 + (cp3 - 65536 & 1023));
|
|
@@ -954,10 +929,10 @@ var require_esprima = __commonJS({
|
|
|
954
929
|
},
|
|
955
930
|
// https://tc39.github.io/ecma262/#sec-names-and-keywords
|
|
956
931
|
isIdentifierStart: function(cp3) {
|
|
957
|
-
return cp3 === 36 || cp3 === 95 || cp3 >= 65 && cp3 <= 90 || cp3 >= 97 && cp3 <= 122 || cp3 === 92 || cp3 >= 128 && Regex.NonAsciiIdentifierStart.test(
|
|
932
|
+
return cp3 === 36 || cp3 === 95 || cp3 >= 65 && cp3 <= 90 || cp3 >= 97 && cp3 <= 122 || cp3 === 92 || cp3 >= 128 && Regex.NonAsciiIdentifierStart.test(exports3.Character.fromCodePoint(cp3));
|
|
958
933
|
},
|
|
959
934
|
isIdentifierPart: function(cp3) {
|
|
960
|
-
return cp3 === 36 || cp3 === 95 || cp3 >= 65 && cp3 <= 90 || cp3 >= 97 && cp3 <= 122 || cp3 >= 48 && cp3 <= 57 || cp3 === 92 || cp3 >= 128 && Regex.NonAsciiIdentifierPart.test(
|
|
935
|
+
return cp3 === 36 || cp3 === 95 || cp3 >= 65 && cp3 <= 90 || cp3 >= 97 && cp3 <= 122 || cp3 >= 48 && cp3 <= 57 || cp3 === 92 || cp3 >= 128 && Regex.NonAsciiIdentifierPart.test(exports3.Character.fromCodePoint(cp3));
|
|
961
936
|
},
|
|
962
937
|
// https://tc39.github.io/ecma262/#sec-literals-numeric-literals
|
|
963
938
|
isDecimalDigit: function(cp3) {
|
|
@@ -973,8 +948,9 @@ var require_esprima = __commonJS({
|
|
|
973
948
|
},
|
|
974
949
|
/* 5 */
|
|
975
950
|
/***/
|
|
976
|
-
function(
|
|
977
|
-
|
|
951
|
+
function(module3, exports3, __webpack_require__) {
|
|
952
|
+
"use strict";
|
|
953
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
978
954
|
var jsx_syntax_1 = __webpack_require__(6);
|
|
979
955
|
var JSXClosingElement = /* @__PURE__ */ (function() {
|
|
980
956
|
function JSXClosingElement2(name) {
|
|
@@ -983,7 +959,7 @@ var require_esprima = __commonJS({
|
|
|
983
959
|
}
|
|
984
960
|
return JSXClosingElement2;
|
|
985
961
|
})();
|
|
986
|
-
|
|
962
|
+
exports3.JSXClosingElement = JSXClosingElement;
|
|
987
963
|
var JSXElement = /* @__PURE__ */ (function() {
|
|
988
964
|
function JSXElement2(openingElement, children, closingElement) {
|
|
989
965
|
this.type = jsx_syntax_1.JSXSyntax.JSXElement;
|
|
@@ -993,14 +969,14 @@ var require_esprima = __commonJS({
|
|
|
993
969
|
}
|
|
994
970
|
return JSXElement2;
|
|
995
971
|
})();
|
|
996
|
-
|
|
972
|
+
exports3.JSXElement = JSXElement;
|
|
997
973
|
var JSXEmptyExpression = /* @__PURE__ */ (function() {
|
|
998
974
|
function JSXEmptyExpression2() {
|
|
999
975
|
this.type = jsx_syntax_1.JSXSyntax.JSXEmptyExpression;
|
|
1000
976
|
}
|
|
1001
977
|
return JSXEmptyExpression2;
|
|
1002
978
|
})();
|
|
1003
|
-
|
|
979
|
+
exports3.JSXEmptyExpression = JSXEmptyExpression;
|
|
1004
980
|
var JSXExpressionContainer = /* @__PURE__ */ (function() {
|
|
1005
981
|
function JSXExpressionContainer2(expression) {
|
|
1006
982
|
this.type = jsx_syntax_1.JSXSyntax.JSXExpressionContainer;
|
|
@@ -1008,7 +984,7 @@ var require_esprima = __commonJS({
|
|
|
1008
984
|
}
|
|
1009
985
|
return JSXExpressionContainer2;
|
|
1010
986
|
})();
|
|
1011
|
-
|
|
987
|
+
exports3.JSXExpressionContainer = JSXExpressionContainer;
|
|
1012
988
|
var JSXIdentifier = /* @__PURE__ */ (function() {
|
|
1013
989
|
function JSXIdentifier2(name) {
|
|
1014
990
|
this.type = jsx_syntax_1.JSXSyntax.JSXIdentifier;
|
|
@@ -1016,7 +992,7 @@ var require_esprima = __commonJS({
|
|
|
1016
992
|
}
|
|
1017
993
|
return JSXIdentifier2;
|
|
1018
994
|
})();
|
|
1019
|
-
|
|
995
|
+
exports3.JSXIdentifier = JSXIdentifier;
|
|
1020
996
|
var JSXMemberExpression = /* @__PURE__ */ (function() {
|
|
1021
997
|
function JSXMemberExpression2(object, property) {
|
|
1022
998
|
this.type = jsx_syntax_1.JSXSyntax.JSXMemberExpression;
|
|
@@ -1025,7 +1001,7 @@ var require_esprima = __commonJS({
|
|
|
1025
1001
|
}
|
|
1026
1002
|
return JSXMemberExpression2;
|
|
1027
1003
|
})();
|
|
1028
|
-
|
|
1004
|
+
exports3.JSXMemberExpression = JSXMemberExpression;
|
|
1029
1005
|
var JSXAttribute = /* @__PURE__ */ (function() {
|
|
1030
1006
|
function JSXAttribute2(name, value) {
|
|
1031
1007
|
this.type = jsx_syntax_1.JSXSyntax.JSXAttribute;
|
|
@@ -1034,7 +1010,7 @@ var require_esprima = __commonJS({
|
|
|
1034
1010
|
}
|
|
1035
1011
|
return JSXAttribute2;
|
|
1036
1012
|
})();
|
|
1037
|
-
|
|
1013
|
+
exports3.JSXAttribute = JSXAttribute;
|
|
1038
1014
|
var JSXNamespacedName = /* @__PURE__ */ (function() {
|
|
1039
1015
|
function JSXNamespacedName2(namespace, name) {
|
|
1040
1016
|
this.type = jsx_syntax_1.JSXSyntax.JSXNamespacedName;
|
|
@@ -1043,7 +1019,7 @@ var require_esprima = __commonJS({
|
|
|
1043
1019
|
}
|
|
1044
1020
|
return JSXNamespacedName2;
|
|
1045
1021
|
})();
|
|
1046
|
-
|
|
1022
|
+
exports3.JSXNamespacedName = JSXNamespacedName;
|
|
1047
1023
|
var JSXOpeningElement = /* @__PURE__ */ (function() {
|
|
1048
1024
|
function JSXOpeningElement2(name, selfClosing, attributes) {
|
|
1049
1025
|
this.type = jsx_syntax_1.JSXSyntax.JSXOpeningElement;
|
|
@@ -1053,7 +1029,7 @@ var require_esprima = __commonJS({
|
|
|
1053
1029
|
}
|
|
1054
1030
|
return JSXOpeningElement2;
|
|
1055
1031
|
})();
|
|
1056
|
-
|
|
1032
|
+
exports3.JSXOpeningElement = JSXOpeningElement;
|
|
1057
1033
|
var JSXSpreadAttribute = /* @__PURE__ */ (function() {
|
|
1058
1034
|
function JSXSpreadAttribute2(argument) {
|
|
1059
1035
|
this.type = jsx_syntax_1.JSXSyntax.JSXSpreadAttribute;
|
|
@@ -1061,7 +1037,7 @@ var require_esprima = __commonJS({
|
|
|
1061
1037
|
}
|
|
1062
1038
|
return JSXSpreadAttribute2;
|
|
1063
1039
|
})();
|
|
1064
|
-
|
|
1040
|
+
exports3.JSXSpreadAttribute = JSXSpreadAttribute;
|
|
1065
1041
|
var JSXText = /* @__PURE__ */ (function() {
|
|
1066
1042
|
function JSXText2(value, raw) {
|
|
1067
1043
|
this.type = jsx_syntax_1.JSXSyntax.JSXText;
|
|
@@ -1070,13 +1046,14 @@ var require_esprima = __commonJS({
|
|
|
1070
1046
|
}
|
|
1071
1047
|
return JSXText2;
|
|
1072
1048
|
})();
|
|
1073
|
-
|
|
1049
|
+
exports3.JSXText = JSXText;
|
|
1074
1050
|
},
|
|
1075
1051
|
/* 6 */
|
|
1076
1052
|
/***/
|
|
1077
|
-
function(
|
|
1078
|
-
|
|
1079
|
-
|
|
1053
|
+
function(module3, exports3) {
|
|
1054
|
+
"use strict";
|
|
1055
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
1056
|
+
exports3.JSXSyntax = {
|
|
1080
1057
|
JSXAttribute: "JSXAttribute",
|
|
1081
1058
|
JSXClosingElement: "JSXClosingElement",
|
|
1082
1059
|
JSXElement: "JSXElement",
|
|
@@ -1092,8 +1069,9 @@ var require_esprima = __commonJS({
|
|
|
1092
1069
|
},
|
|
1093
1070
|
/* 7 */
|
|
1094
1071
|
/***/
|
|
1095
|
-
function(
|
|
1096
|
-
|
|
1072
|
+
function(module3, exports3, __webpack_require__) {
|
|
1073
|
+
"use strict";
|
|
1074
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
1097
1075
|
var syntax_1 = __webpack_require__(2);
|
|
1098
1076
|
var ArrayExpression = /* @__PURE__ */ (function() {
|
|
1099
1077
|
function ArrayExpression2(elements) {
|
|
@@ -1102,7 +1080,7 @@ var require_esprima = __commonJS({
|
|
|
1102
1080
|
}
|
|
1103
1081
|
return ArrayExpression2;
|
|
1104
1082
|
})();
|
|
1105
|
-
|
|
1083
|
+
exports3.ArrayExpression = ArrayExpression;
|
|
1106
1084
|
var ArrayPattern = /* @__PURE__ */ (function() {
|
|
1107
1085
|
function ArrayPattern2(elements) {
|
|
1108
1086
|
this.type = syntax_1.Syntax.ArrayPattern;
|
|
@@ -1110,7 +1088,7 @@ var require_esprima = __commonJS({
|
|
|
1110
1088
|
}
|
|
1111
1089
|
return ArrayPattern2;
|
|
1112
1090
|
})();
|
|
1113
|
-
|
|
1091
|
+
exports3.ArrayPattern = ArrayPattern;
|
|
1114
1092
|
var ArrowFunctionExpression = /* @__PURE__ */ (function() {
|
|
1115
1093
|
function ArrowFunctionExpression2(params, body, expression) {
|
|
1116
1094
|
this.type = syntax_1.Syntax.ArrowFunctionExpression;
|
|
@@ -1123,7 +1101,7 @@ var require_esprima = __commonJS({
|
|
|
1123
1101
|
}
|
|
1124
1102
|
return ArrowFunctionExpression2;
|
|
1125
1103
|
})();
|
|
1126
|
-
|
|
1104
|
+
exports3.ArrowFunctionExpression = ArrowFunctionExpression;
|
|
1127
1105
|
var AssignmentExpression = /* @__PURE__ */ (function() {
|
|
1128
1106
|
function AssignmentExpression2(operator, left, right) {
|
|
1129
1107
|
this.type = syntax_1.Syntax.AssignmentExpression;
|
|
@@ -1133,7 +1111,7 @@ var require_esprima = __commonJS({
|
|
|
1133
1111
|
}
|
|
1134
1112
|
return AssignmentExpression2;
|
|
1135
1113
|
})();
|
|
1136
|
-
|
|
1114
|
+
exports3.AssignmentExpression = AssignmentExpression;
|
|
1137
1115
|
var AssignmentPattern = /* @__PURE__ */ (function() {
|
|
1138
1116
|
function AssignmentPattern2(left, right) {
|
|
1139
1117
|
this.type = syntax_1.Syntax.AssignmentPattern;
|
|
@@ -1142,7 +1120,7 @@ var require_esprima = __commonJS({
|
|
|
1142
1120
|
}
|
|
1143
1121
|
return AssignmentPattern2;
|
|
1144
1122
|
})();
|
|
1145
|
-
|
|
1123
|
+
exports3.AssignmentPattern = AssignmentPattern;
|
|
1146
1124
|
var AsyncArrowFunctionExpression = /* @__PURE__ */ (function() {
|
|
1147
1125
|
function AsyncArrowFunctionExpression2(params, body, expression) {
|
|
1148
1126
|
this.type = syntax_1.Syntax.ArrowFunctionExpression;
|
|
@@ -1155,7 +1133,7 @@ var require_esprima = __commonJS({
|
|
|
1155
1133
|
}
|
|
1156
1134
|
return AsyncArrowFunctionExpression2;
|
|
1157
1135
|
})();
|
|
1158
|
-
|
|
1136
|
+
exports3.AsyncArrowFunctionExpression = AsyncArrowFunctionExpression;
|
|
1159
1137
|
var AsyncFunctionDeclaration = /* @__PURE__ */ (function() {
|
|
1160
1138
|
function AsyncFunctionDeclaration2(id, params, body) {
|
|
1161
1139
|
this.type = syntax_1.Syntax.FunctionDeclaration;
|
|
@@ -1168,7 +1146,7 @@ var require_esprima = __commonJS({
|
|
|
1168
1146
|
}
|
|
1169
1147
|
return AsyncFunctionDeclaration2;
|
|
1170
1148
|
})();
|
|
1171
|
-
|
|
1149
|
+
exports3.AsyncFunctionDeclaration = AsyncFunctionDeclaration;
|
|
1172
1150
|
var AsyncFunctionExpression = /* @__PURE__ */ (function() {
|
|
1173
1151
|
function AsyncFunctionExpression2(id, params, body) {
|
|
1174
1152
|
this.type = syntax_1.Syntax.FunctionExpression;
|
|
@@ -1181,7 +1159,7 @@ var require_esprima = __commonJS({
|
|
|
1181
1159
|
}
|
|
1182
1160
|
return AsyncFunctionExpression2;
|
|
1183
1161
|
})();
|
|
1184
|
-
|
|
1162
|
+
exports3.AsyncFunctionExpression = AsyncFunctionExpression;
|
|
1185
1163
|
var AwaitExpression = /* @__PURE__ */ (function() {
|
|
1186
1164
|
function AwaitExpression2(argument) {
|
|
1187
1165
|
this.type = syntax_1.Syntax.AwaitExpression;
|
|
@@ -1189,7 +1167,7 @@ var require_esprima = __commonJS({
|
|
|
1189
1167
|
}
|
|
1190
1168
|
return AwaitExpression2;
|
|
1191
1169
|
})();
|
|
1192
|
-
|
|
1170
|
+
exports3.AwaitExpression = AwaitExpression;
|
|
1193
1171
|
var BinaryExpression = /* @__PURE__ */ (function() {
|
|
1194
1172
|
function BinaryExpression2(operator, left, right) {
|
|
1195
1173
|
var logical = operator === "||" || operator === "&&";
|
|
@@ -1200,7 +1178,7 @@ var require_esprima = __commonJS({
|
|
|
1200
1178
|
}
|
|
1201
1179
|
return BinaryExpression2;
|
|
1202
1180
|
})();
|
|
1203
|
-
|
|
1181
|
+
exports3.BinaryExpression = BinaryExpression;
|
|
1204
1182
|
var BlockStatement = /* @__PURE__ */ (function() {
|
|
1205
1183
|
function BlockStatement2(body) {
|
|
1206
1184
|
this.type = syntax_1.Syntax.BlockStatement;
|
|
@@ -1208,7 +1186,7 @@ var require_esprima = __commonJS({
|
|
|
1208
1186
|
}
|
|
1209
1187
|
return BlockStatement2;
|
|
1210
1188
|
})();
|
|
1211
|
-
|
|
1189
|
+
exports3.BlockStatement = BlockStatement;
|
|
1212
1190
|
var BreakStatement = /* @__PURE__ */ (function() {
|
|
1213
1191
|
function BreakStatement2(label) {
|
|
1214
1192
|
this.type = syntax_1.Syntax.BreakStatement;
|
|
@@ -1216,7 +1194,7 @@ var require_esprima = __commonJS({
|
|
|
1216
1194
|
}
|
|
1217
1195
|
return BreakStatement2;
|
|
1218
1196
|
})();
|
|
1219
|
-
|
|
1197
|
+
exports3.BreakStatement = BreakStatement;
|
|
1220
1198
|
var CallExpression = /* @__PURE__ */ (function() {
|
|
1221
1199
|
function CallExpression2(callee, args) {
|
|
1222
1200
|
this.type = syntax_1.Syntax.CallExpression;
|
|
@@ -1225,7 +1203,7 @@ var require_esprima = __commonJS({
|
|
|
1225
1203
|
}
|
|
1226
1204
|
return CallExpression2;
|
|
1227
1205
|
})();
|
|
1228
|
-
|
|
1206
|
+
exports3.CallExpression = CallExpression;
|
|
1229
1207
|
var CatchClause = /* @__PURE__ */ (function() {
|
|
1230
1208
|
function CatchClause2(param, body) {
|
|
1231
1209
|
this.type = syntax_1.Syntax.CatchClause;
|
|
@@ -1234,7 +1212,7 @@ var require_esprima = __commonJS({
|
|
|
1234
1212
|
}
|
|
1235
1213
|
return CatchClause2;
|
|
1236
1214
|
})();
|
|
1237
|
-
|
|
1215
|
+
exports3.CatchClause = CatchClause;
|
|
1238
1216
|
var ClassBody = /* @__PURE__ */ (function() {
|
|
1239
1217
|
function ClassBody2(body) {
|
|
1240
1218
|
this.type = syntax_1.Syntax.ClassBody;
|
|
@@ -1242,7 +1220,7 @@ var require_esprima = __commonJS({
|
|
|
1242
1220
|
}
|
|
1243
1221
|
return ClassBody2;
|
|
1244
1222
|
})();
|
|
1245
|
-
|
|
1223
|
+
exports3.ClassBody = ClassBody;
|
|
1246
1224
|
var ClassDeclaration = /* @__PURE__ */ (function() {
|
|
1247
1225
|
function ClassDeclaration2(id, superClass, body) {
|
|
1248
1226
|
this.type = syntax_1.Syntax.ClassDeclaration;
|
|
@@ -1252,7 +1230,7 @@ var require_esprima = __commonJS({
|
|
|
1252
1230
|
}
|
|
1253
1231
|
return ClassDeclaration2;
|
|
1254
1232
|
})();
|
|
1255
|
-
|
|
1233
|
+
exports3.ClassDeclaration = ClassDeclaration;
|
|
1256
1234
|
var ClassExpression = /* @__PURE__ */ (function() {
|
|
1257
1235
|
function ClassExpression2(id, superClass, body) {
|
|
1258
1236
|
this.type = syntax_1.Syntax.ClassExpression;
|
|
@@ -1262,7 +1240,7 @@ var require_esprima = __commonJS({
|
|
|
1262
1240
|
}
|
|
1263
1241
|
return ClassExpression2;
|
|
1264
1242
|
})();
|
|
1265
|
-
|
|
1243
|
+
exports3.ClassExpression = ClassExpression;
|
|
1266
1244
|
var ComputedMemberExpression = /* @__PURE__ */ (function() {
|
|
1267
1245
|
function ComputedMemberExpression2(object, property) {
|
|
1268
1246
|
this.type = syntax_1.Syntax.MemberExpression;
|
|
@@ -1272,7 +1250,7 @@ var require_esprima = __commonJS({
|
|
|
1272
1250
|
}
|
|
1273
1251
|
return ComputedMemberExpression2;
|
|
1274
1252
|
})();
|
|
1275
|
-
|
|
1253
|
+
exports3.ComputedMemberExpression = ComputedMemberExpression;
|
|
1276
1254
|
var ConditionalExpression = /* @__PURE__ */ (function() {
|
|
1277
1255
|
function ConditionalExpression2(test, consequent, alternate) {
|
|
1278
1256
|
this.type = syntax_1.Syntax.ConditionalExpression;
|
|
@@ -1282,7 +1260,7 @@ var require_esprima = __commonJS({
|
|
|
1282
1260
|
}
|
|
1283
1261
|
return ConditionalExpression2;
|
|
1284
1262
|
})();
|
|
1285
|
-
|
|
1263
|
+
exports3.ConditionalExpression = ConditionalExpression;
|
|
1286
1264
|
var ContinueStatement = /* @__PURE__ */ (function() {
|
|
1287
1265
|
function ContinueStatement2(label) {
|
|
1288
1266
|
this.type = syntax_1.Syntax.ContinueStatement;
|
|
@@ -1290,14 +1268,14 @@ var require_esprima = __commonJS({
|
|
|
1290
1268
|
}
|
|
1291
1269
|
return ContinueStatement2;
|
|
1292
1270
|
})();
|
|
1293
|
-
|
|
1271
|
+
exports3.ContinueStatement = ContinueStatement;
|
|
1294
1272
|
var DebuggerStatement = /* @__PURE__ */ (function() {
|
|
1295
1273
|
function DebuggerStatement2() {
|
|
1296
1274
|
this.type = syntax_1.Syntax.DebuggerStatement;
|
|
1297
1275
|
}
|
|
1298
1276
|
return DebuggerStatement2;
|
|
1299
1277
|
})();
|
|
1300
|
-
|
|
1278
|
+
exports3.DebuggerStatement = DebuggerStatement;
|
|
1301
1279
|
var Directive = /* @__PURE__ */ (function() {
|
|
1302
1280
|
function Directive2(expression, directive) {
|
|
1303
1281
|
this.type = syntax_1.Syntax.ExpressionStatement;
|
|
@@ -1306,7 +1284,7 @@ var require_esprima = __commonJS({
|
|
|
1306
1284
|
}
|
|
1307
1285
|
return Directive2;
|
|
1308
1286
|
})();
|
|
1309
|
-
|
|
1287
|
+
exports3.Directive = Directive;
|
|
1310
1288
|
var DoWhileStatement = /* @__PURE__ */ (function() {
|
|
1311
1289
|
function DoWhileStatement2(body, test) {
|
|
1312
1290
|
this.type = syntax_1.Syntax.DoWhileStatement;
|
|
@@ -1315,14 +1293,14 @@ var require_esprima = __commonJS({
|
|
|
1315
1293
|
}
|
|
1316
1294
|
return DoWhileStatement2;
|
|
1317
1295
|
})();
|
|
1318
|
-
|
|
1296
|
+
exports3.DoWhileStatement = DoWhileStatement;
|
|
1319
1297
|
var EmptyStatement = /* @__PURE__ */ (function() {
|
|
1320
1298
|
function EmptyStatement2() {
|
|
1321
1299
|
this.type = syntax_1.Syntax.EmptyStatement;
|
|
1322
1300
|
}
|
|
1323
1301
|
return EmptyStatement2;
|
|
1324
1302
|
})();
|
|
1325
|
-
|
|
1303
|
+
exports3.EmptyStatement = EmptyStatement;
|
|
1326
1304
|
var ExportAllDeclaration = /* @__PURE__ */ (function() {
|
|
1327
1305
|
function ExportAllDeclaration2(source) {
|
|
1328
1306
|
this.type = syntax_1.Syntax.ExportAllDeclaration;
|
|
@@ -1330,7 +1308,7 @@ var require_esprima = __commonJS({
|
|
|
1330
1308
|
}
|
|
1331
1309
|
return ExportAllDeclaration2;
|
|
1332
1310
|
})();
|
|
1333
|
-
|
|
1311
|
+
exports3.ExportAllDeclaration = ExportAllDeclaration;
|
|
1334
1312
|
var ExportDefaultDeclaration = /* @__PURE__ */ (function() {
|
|
1335
1313
|
function ExportDefaultDeclaration2(declaration) {
|
|
1336
1314
|
this.type = syntax_1.Syntax.ExportDefaultDeclaration;
|
|
@@ -1338,7 +1316,7 @@ var require_esprima = __commonJS({
|
|
|
1338
1316
|
}
|
|
1339
1317
|
return ExportDefaultDeclaration2;
|
|
1340
1318
|
})();
|
|
1341
|
-
|
|
1319
|
+
exports3.ExportDefaultDeclaration = ExportDefaultDeclaration;
|
|
1342
1320
|
var ExportNamedDeclaration = /* @__PURE__ */ (function() {
|
|
1343
1321
|
function ExportNamedDeclaration2(declaration, specifiers, source) {
|
|
1344
1322
|
this.type = syntax_1.Syntax.ExportNamedDeclaration;
|
|
@@ -1348,7 +1326,7 @@ var require_esprima = __commonJS({
|
|
|
1348
1326
|
}
|
|
1349
1327
|
return ExportNamedDeclaration2;
|
|
1350
1328
|
})();
|
|
1351
|
-
|
|
1329
|
+
exports3.ExportNamedDeclaration = ExportNamedDeclaration;
|
|
1352
1330
|
var ExportSpecifier = /* @__PURE__ */ (function() {
|
|
1353
1331
|
function ExportSpecifier2(local, exported) {
|
|
1354
1332
|
this.type = syntax_1.Syntax.ExportSpecifier;
|
|
@@ -1357,7 +1335,7 @@ var require_esprima = __commonJS({
|
|
|
1357
1335
|
}
|
|
1358
1336
|
return ExportSpecifier2;
|
|
1359
1337
|
})();
|
|
1360
|
-
|
|
1338
|
+
exports3.ExportSpecifier = ExportSpecifier;
|
|
1361
1339
|
var ExpressionStatement = /* @__PURE__ */ (function() {
|
|
1362
1340
|
function ExpressionStatement2(expression) {
|
|
1363
1341
|
this.type = syntax_1.Syntax.ExpressionStatement;
|
|
@@ -1365,7 +1343,7 @@ var require_esprima = __commonJS({
|
|
|
1365
1343
|
}
|
|
1366
1344
|
return ExpressionStatement2;
|
|
1367
1345
|
})();
|
|
1368
|
-
|
|
1346
|
+
exports3.ExpressionStatement = ExpressionStatement;
|
|
1369
1347
|
var ForInStatement = /* @__PURE__ */ (function() {
|
|
1370
1348
|
function ForInStatement2(left, right, body) {
|
|
1371
1349
|
this.type = syntax_1.Syntax.ForInStatement;
|
|
@@ -1376,7 +1354,7 @@ var require_esprima = __commonJS({
|
|
|
1376
1354
|
}
|
|
1377
1355
|
return ForInStatement2;
|
|
1378
1356
|
})();
|
|
1379
|
-
|
|
1357
|
+
exports3.ForInStatement = ForInStatement;
|
|
1380
1358
|
var ForOfStatement = /* @__PURE__ */ (function() {
|
|
1381
1359
|
function ForOfStatement2(left, right, body) {
|
|
1382
1360
|
this.type = syntax_1.Syntax.ForOfStatement;
|
|
@@ -1386,7 +1364,7 @@ var require_esprima = __commonJS({
|
|
|
1386
1364
|
}
|
|
1387
1365
|
return ForOfStatement2;
|
|
1388
1366
|
})();
|
|
1389
|
-
|
|
1367
|
+
exports3.ForOfStatement = ForOfStatement;
|
|
1390
1368
|
var ForStatement = /* @__PURE__ */ (function() {
|
|
1391
1369
|
function ForStatement2(init, test, update, body) {
|
|
1392
1370
|
this.type = syntax_1.Syntax.ForStatement;
|
|
@@ -1397,7 +1375,7 @@ var require_esprima = __commonJS({
|
|
|
1397
1375
|
}
|
|
1398
1376
|
return ForStatement2;
|
|
1399
1377
|
})();
|
|
1400
|
-
|
|
1378
|
+
exports3.ForStatement = ForStatement;
|
|
1401
1379
|
var FunctionDeclaration = /* @__PURE__ */ (function() {
|
|
1402
1380
|
function FunctionDeclaration2(id, params, body, generator) {
|
|
1403
1381
|
this.type = syntax_1.Syntax.FunctionDeclaration;
|
|
@@ -1410,7 +1388,7 @@ var require_esprima = __commonJS({
|
|
|
1410
1388
|
}
|
|
1411
1389
|
return FunctionDeclaration2;
|
|
1412
1390
|
})();
|
|
1413
|
-
|
|
1391
|
+
exports3.FunctionDeclaration = FunctionDeclaration;
|
|
1414
1392
|
var FunctionExpression = /* @__PURE__ */ (function() {
|
|
1415
1393
|
function FunctionExpression2(id, params, body, generator) {
|
|
1416
1394
|
this.type = syntax_1.Syntax.FunctionExpression;
|
|
@@ -1423,7 +1401,7 @@ var require_esprima = __commonJS({
|
|
|
1423
1401
|
}
|
|
1424
1402
|
return FunctionExpression2;
|
|
1425
1403
|
})();
|
|
1426
|
-
|
|
1404
|
+
exports3.FunctionExpression = FunctionExpression;
|
|
1427
1405
|
var Identifier = /* @__PURE__ */ (function() {
|
|
1428
1406
|
function Identifier2(name) {
|
|
1429
1407
|
this.type = syntax_1.Syntax.Identifier;
|
|
@@ -1431,7 +1409,7 @@ var require_esprima = __commonJS({
|
|
|
1431
1409
|
}
|
|
1432
1410
|
return Identifier2;
|
|
1433
1411
|
})();
|
|
1434
|
-
|
|
1412
|
+
exports3.Identifier = Identifier;
|
|
1435
1413
|
var IfStatement = /* @__PURE__ */ (function() {
|
|
1436
1414
|
function IfStatement2(test, consequent, alternate) {
|
|
1437
1415
|
this.type = syntax_1.Syntax.IfStatement;
|
|
@@ -1441,7 +1419,7 @@ var require_esprima = __commonJS({
|
|
|
1441
1419
|
}
|
|
1442
1420
|
return IfStatement2;
|
|
1443
1421
|
})();
|
|
1444
|
-
|
|
1422
|
+
exports3.IfStatement = IfStatement;
|
|
1445
1423
|
var ImportDeclaration = /* @__PURE__ */ (function() {
|
|
1446
1424
|
function ImportDeclaration2(specifiers, source) {
|
|
1447
1425
|
this.type = syntax_1.Syntax.ImportDeclaration;
|
|
@@ -1450,7 +1428,7 @@ var require_esprima = __commonJS({
|
|
|
1450
1428
|
}
|
|
1451
1429
|
return ImportDeclaration2;
|
|
1452
1430
|
})();
|
|
1453
|
-
|
|
1431
|
+
exports3.ImportDeclaration = ImportDeclaration;
|
|
1454
1432
|
var ImportDefaultSpecifier = /* @__PURE__ */ (function() {
|
|
1455
1433
|
function ImportDefaultSpecifier2(local) {
|
|
1456
1434
|
this.type = syntax_1.Syntax.ImportDefaultSpecifier;
|
|
@@ -1458,7 +1436,7 @@ var require_esprima = __commonJS({
|
|
|
1458
1436
|
}
|
|
1459
1437
|
return ImportDefaultSpecifier2;
|
|
1460
1438
|
})();
|
|
1461
|
-
|
|
1439
|
+
exports3.ImportDefaultSpecifier = ImportDefaultSpecifier;
|
|
1462
1440
|
var ImportNamespaceSpecifier = /* @__PURE__ */ (function() {
|
|
1463
1441
|
function ImportNamespaceSpecifier2(local) {
|
|
1464
1442
|
this.type = syntax_1.Syntax.ImportNamespaceSpecifier;
|
|
@@ -1466,7 +1444,7 @@ var require_esprima = __commonJS({
|
|
|
1466
1444
|
}
|
|
1467
1445
|
return ImportNamespaceSpecifier2;
|
|
1468
1446
|
})();
|
|
1469
|
-
|
|
1447
|
+
exports3.ImportNamespaceSpecifier = ImportNamespaceSpecifier;
|
|
1470
1448
|
var ImportSpecifier = /* @__PURE__ */ (function() {
|
|
1471
1449
|
function ImportSpecifier2(local, imported) {
|
|
1472
1450
|
this.type = syntax_1.Syntax.ImportSpecifier;
|
|
@@ -1475,7 +1453,7 @@ var require_esprima = __commonJS({
|
|
|
1475
1453
|
}
|
|
1476
1454
|
return ImportSpecifier2;
|
|
1477
1455
|
})();
|
|
1478
|
-
|
|
1456
|
+
exports3.ImportSpecifier = ImportSpecifier;
|
|
1479
1457
|
var LabeledStatement = /* @__PURE__ */ (function() {
|
|
1480
1458
|
function LabeledStatement2(label, body) {
|
|
1481
1459
|
this.type = syntax_1.Syntax.LabeledStatement;
|
|
@@ -1484,7 +1462,7 @@ var require_esprima = __commonJS({
|
|
|
1484
1462
|
}
|
|
1485
1463
|
return LabeledStatement2;
|
|
1486
1464
|
})();
|
|
1487
|
-
|
|
1465
|
+
exports3.LabeledStatement = LabeledStatement;
|
|
1488
1466
|
var Literal = /* @__PURE__ */ (function() {
|
|
1489
1467
|
function Literal2(value, raw) {
|
|
1490
1468
|
this.type = syntax_1.Syntax.Literal;
|
|
@@ -1493,7 +1471,7 @@ var require_esprima = __commonJS({
|
|
|
1493
1471
|
}
|
|
1494
1472
|
return Literal2;
|
|
1495
1473
|
})();
|
|
1496
|
-
|
|
1474
|
+
exports3.Literal = Literal;
|
|
1497
1475
|
var MetaProperty = /* @__PURE__ */ (function() {
|
|
1498
1476
|
function MetaProperty2(meta, property) {
|
|
1499
1477
|
this.type = syntax_1.Syntax.MetaProperty;
|
|
@@ -1502,7 +1480,7 @@ var require_esprima = __commonJS({
|
|
|
1502
1480
|
}
|
|
1503
1481
|
return MetaProperty2;
|
|
1504
1482
|
})();
|
|
1505
|
-
|
|
1483
|
+
exports3.MetaProperty = MetaProperty;
|
|
1506
1484
|
var MethodDefinition = /* @__PURE__ */ (function() {
|
|
1507
1485
|
function MethodDefinition2(key, computed, value, kind, isStatic) {
|
|
1508
1486
|
this.type = syntax_1.Syntax.MethodDefinition;
|
|
@@ -1514,7 +1492,7 @@ var require_esprima = __commonJS({
|
|
|
1514
1492
|
}
|
|
1515
1493
|
return MethodDefinition2;
|
|
1516
1494
|
})();
|
|
1517
|
-
|
|
1495
|
+
exports3.MethodDefinition = MethodDefinition;
|
|
1518
1496
|
var Module = /* @__PURE__ */ (function() {
|
|
1519
1497
|
function Module2(body) {
|
|
1520
1498
|
this.type = syntax_1.Syntax.Program;
|
|
@@ -1523,7 +1501,7 @@ var require_esprima = __commonJS({
|
|
|
1523
1501
|
}
|
|
1524
1502
|
return Module2;
|
|
1525
1503
|
})();
|
|
1526
|
-
|
|
1504
|
+
exports3.Module = Module;
|
|
1527
1505
|
var NewExpression = /* @__PURE__ */ (function() {
|
|
1528
1506
|
function NewExpression2(callee, args) {
|
|
1529
1507
|
this.type = syntax_1.Syntax.NewExpression;
|
|
@@ -1532,7 +1510,7 @@ var require_esprima = __commonJS({
|
|
|
1532
1510
|
}
|
|
1533
1511
|
return NewExpression2;
|
|
1534
1512
|
})();
|
|
1535
|
-
|
|
1513
|
+
exports3.NewExpression = NewExpression;
|
|
1536
1514
|
var ObjectExpression = /* @__PURE__ */ (function() {
|
|
1537
1515
|
function ObjectExpression2(properties) {
|
|
1538
1516
|
this.type = syntax_1.Syntax.ObjectExpression;
|
|
@@ -1540,7 +1518,7 @@ var require_esprima = __commonJS({
|
|
|
1540
1518
|
}
|
|
1541
1519
|
return ObjectExpression2;
|
|
1542
1520
|
})();
|
|
1543
|
-
|
|
1521
|
+
exports3.ObjectExpression = ObjectExpression;
|
|
1544
1522
|
var ObjectPattern = /* @__PURE__ */ (function() {
|
|
1545
1523
|
function ObjectPattern2(properties) {
|
|
1546
1524
|
this.type = syntax_1.Syntax.ObjectPattern;
|
|
@@ -1548,7 +1526,7 @@ var require_esprima = __commonJS({
|
|
|
1548
1526
|
}
|
|
1549
1527
|
return ObjectPattern2;
|
|
1550
1528
|
})();
|
|
1551
|
-
|
|
1529
|
+
exports3.ObjectPattern = ObjectPattern;
|
|
1552
1530
|
var Property = /* @__PURE__ */ (function() {
|
|
1553
1531
|
function Property2(kind, key, computed, value, method, shorthand) {
|
|
1554
1532
|
this.type = syntax_1.Syntax.Property;
|
|
@@ -1561,7 +1539,7 @@ var require_esprima = __commonJS({
|
|
|
1561
1539
|
}
|
|
1562
1540
|
return Property2;
|
|
1563
1541
|
})();
|
|
1564
|
-
|
|
1542
|
+
exports3.Property = Property;
|
|
1565
1543
|
var RegexLiteral = /* @__PURE__ */ (function() {
|
|
1566
1544
|
function RegexLiteral2(value, raw, pattern, flags) {
|
|
1567
1545
|
this.type = syntax_1.Syntax.Literal;
|
|
@@ -1571,7 +1549,7 @@ var require_esprima = __commonJS({
|
|
|
1571
1549
|
}
|
|
1572
1550
|
return RegexLiteral2;
|
|
1573
1551
|
})();
|
|
1574
|
-
|
|
1552
|
+
exports3.RegexLiteral = RegexLiteral;
|
|
1575
1553
|
var RestElement = /* @__PURE__ */ (function() {
|
|
1576
1554
|
function RestElement2(argument) {
|
|
1577
1555
|
this.type = syntax_1.Syntax.RestElement;
|
|
@@ -1579,7 +1557,7 @@ var require_esprima = __commonJS({
|
|
|
1579
1557
|
}
|
|
1580
1558
|
return RestElement2;
|
|
1581
1559
|
})();
|
|
1582
|
-
|
|
1560
|
+
exports3.RestElement = RestElement;
|
|
1583
1561
|
var ReturnStatement = /* @__PURE__ */ (function() {
|
|
1584
1562
|
function ReturnStatement2(argument) {
|
|
1585
1563
|
this.type = syntax_1.Syntax.ReturnStatement;
|
|
@@ -1587,7 +1565,7 @@ var require_esprima = __commonJS({
|
|
|
1587
1565
|
}
|
|
1588
1566
|
return ReturnStatement2;
|
|
1589
1567
|
})();
|
|
1590
|
-
|
|
1568
|
+
exports3.ReturnStatement = ReturnStatement;
|
|
1591
1569
|
var Script = /* @__PURE__ */ (function() {
|
|
1592
1570
|
function Script2(body) {
|
|
1593
1571
|
this.type = syntax_1.Syntax.Program;
|
|
@@ -1596,7 +1574,7 @@ var require_esprima = __commonJS({
|
|
|
1596
1574
|
}
|
|
1597
1575
|
return Script2;
|
|
1598
1576
|
})();
|
|
1599
|
-
|
|
1577
|
+
exports3.Script = Script;
|
|
1600
1578
|
var SequenceExpression = /* @__PURE__ */ (function() {
|
|
1601
1579
|
function SequenceExpression2(expressions) {
|
|
1602
1580
|
this.type = syntax_1.Syntax.SequenceExpression;
|
|
@@ -1604,7 +1582,7 @@ var require_esprima = __commonJS({
|
|
|
1604
1582
|
}
|
|
1605
1583
|
return SequenceExpression2;
|
|
1606
1584
|
})();
|
|
1607
|
-
|
|
1585
|
+
exports3.SequenceExpression = SequenceExpression;
|
|
1608
1586
|
var SpreadElement = /* @__PURE__ */ (function() {
|
|
1609
1587
|
function SpreadElement2(argument) {
|
|
1610
1588
|
this.type = syntax_1.Syntax.SpreadElement;
|
|
@@ -1612,7 +1590,7 @@ var require_esprima = __commonJS({
|
|
|
1612
1590
|
}
|
|
1613
1591
|
return SpreadElement2;
|
|
1614
1592
|
})();
|
|
1615
|
-
|
|
1593
|
+
exports3.SpreadElement = SpreadElement;
|
|
1616
1594
|
var StaticMemberExpression = /* @__PURE__ */ (function() {
|
|
1617
1595
|
function StaticMemberExpression2(object, property) {
|
|
1618
1596
|
this.type = syntax_1.Syntax.MemberExpression;
|
|
@@ -1622,14 +1600,14 @@ var require_esprima = __commonJS({
|
|
|
1622
1600
|
}
|
|
1623
1601
|
return StaticMemberExpression2;
|
|
1624
1602
|
})();
|
|
1625
|
-
|
|
1603
|
+
exports3.StaticMemberExpression = StaticMemberExpression;
|
|
1626
1604
|
var Super = /* @__PURE__ */ (function() {
|
|
1627
1605
|
function Super2() {
|
|
1628
1606
|
this.type = syntax_1.Syntax.Super;
|
|
1629
1607
|
}
|
|
1630
1608
|
return Super2;
|
|
1631
1609
|
})();
|
|
1632
|
-
|
|
1610
|
+
exports3.Super = Super;
|
|
1633
1611
|
var SwitchCase = /* @__PURE__ */ (function() {
|
|
1634
1612
|
function SwitchCase2(test, consequent) {
|
|
1635
1613
|
this.type = syntax_1.Syntax.SwitchCase;
|
|
@@ -1638,7 +1616,7 @@ var require_esprima = __commonJS({
|
|
|
1638
1616
|
}
|
|
1639
1617
|
return SwitchCase2;
|
|
1640
1618
|
})();
|
|
1641
|
-
|
|
1619
|
+
exports3.SwitchCase = SwitchCase;
|
|
1642
1620
|
var SwitchStatement = /* @__PURE__ */ (function() {
|
|
1643
1621
|
function SwitchStatement2(discriminant, cases) {
|
|
1644
1622
|
this.type = syntax_1.Syntax.SwitchStatement;
|
|
@@ -1647,7 +1625,7 @@ var require_esprima = __commonJS({
|
|
|
1647
1625
|
}
|
|
1648
1626
|
return SwitchStatement2;
|
|
1649
1627
|
})();
|
|
1650
|
-
|
|
1628
|
+
exports3.SwitchStatement = SwitchStatement;
|
|
1651
1629
|
var TaggedTemplateExpression = /* @__PURE__ */ (function() {
|
|
1652
1630
|
function TaggedTemplateExpression2(tag, quasi) {
|
|
1653
1631
|
this.type = syntax_1.Syntax.TaggedTemplateExpression;
|
|
@@ -1656,7 +1634,7 @@ var require_esprima = __commonJS({
|
|
|
1656
1634
|
}
|
|
1657
1635
|
return TaggedTemplateExpression2;
|
|
1658
1636
|
})();
|
|
1659
|
-
|
|
1637
|
+
exports3.TaggedTemplateExpression = TaggedTemplateExpression;
|
|
1660
1638
|
var TemplateElement = /* @__PURE__ */ (function() {
|
|
1661
1639
|
function TemplateElement2(value, tail) {
|
|
1662
1640
|
this.type = syntax_1.Syntax.TemplateElement;
|
|
@@ -1665,7 +1643,7 @@ var require_esprima = __commonJS({
|
|
|
1665
1643
|
}
|
|
1666
1644
|
return TemplateElement2;
|
|
1667
1645
|
})();
|
|
1668
|
-
|
|
1646
|
+
exports3.TemplateElement = TemplateElement;
|
|
1669
1647
|
var TemplateLiteral = /* @__PURE__ */ (function() {
|
|
1670
1648
|
function TemplateLiteral2(quasis, expressions) {
|
|
1671
1649
|
this.type = syntax_1.Syntax.TemplateLiteral;
|
|
@@ -1674,14 +1652,14 @@ var require_esprima = __commonJS({
|
|
|
1674
1652
|
}
|
|
1675
1653
|
return TemplateLiteral2;
|
|
1676
1654
|
})();
|
|
1677
|
-
|
|
1655
|
+
exports3.TemplateLiteral = TemplateLiteral;
|
|
1678
1656
|
var ThisExpression = /* @__PURE__ */ (function() {
|
|
1679
1657
|
function ThisExpression2() {
|
|
1680
1658
|
this.type = syntax_1.Syntax.ThisExpression;
|
|
1681
1659
|
}
|
|
1682
1660
|
return ThisExpression2;
|
|
1683
1661
|
})();
|
|
1684
|
-
|
|
1662
|
+
exports3.ThisExpression = ThisExpression;
|
|
1685
1663
|
var ThrowStatement = /* @__PURE__ */ (function() {
|
|
1686
1664
|
function ThrowStatement2(argument) {
|
|
1687
1665
|
this.type = syntax_1.Syntax.ThrowStatement;
|
|
@@ -1689,7 +1667,7 @@ var require_esprima = __commonJS({
|
|
|
1689
1667
|
}
|
|
1690
1668
|
return ThrowStatement2;
|
|
1691
1669
|
})();
|
|
1692
|
-
|
|
1670
|
+
exports3.ThrowStatement = ThrowStatement;
|
|
1693
1671
|
var TryStatement = /* @__PURE__ */ (function() {
|
|
1694
1672
|
function TryStatement2(block, handler, finalizer) {
|
|
1695
1673
|
this.type = syntax_1.Syntax.TryStatement;
|
|
@@ -1699,7 +1677,7 @@ var require_esprima = __commonJS({
|
|
|
1699
1677
|
}
|
|
1700
1678
|
return TryStatement2;
|
|
1701
1679
|
})();
|
|
1702
|
-
|
|
1680
|
+
exports3.TryStatement = TryStatement;
|
|
1703
1681
|
var UnaryExpression = /* @__PURE__ */ (function() {
|
|
1704
1682
|
function UnaryExpression2(operator, argument) {
|
|
1705
1683
|
this.type = syntax_1.Syntax.UnaryExpression;
|
|
@@ -1709,7 +1687,7 @@ var require_esprima = __commonJS({
|
|
|
1709
1687
|
}
|
|
1710
1688
|
return UnaryExpression2;
|
|
1711
1689
|
})();
|
|
1712
|
-
|
|
1690
|
+
exports3.UnaryExpression = UnaryExpression;
|
|
1713
1691
|
var UpdateExpression = /* @__PURE__ */ (function() {
|
|
1714
1692
|
function UpdateExpression2(operator, argument, prefix) {
|
|
1715
1693
|
this.type = syntax_1.Syntax.UpdateExpression;
|
|
@@ -1719,7 +1697,7 @@ var require_esprima = __commonJS({
|
|
|
1719
1697
|
}
|
|
1720
1698
|
return UpdateExpression2;
|
|
1721
1699
|
})();
|
|
1722
|
-
|
|
1700
|
+
exports3.UpdateExpression = UpdateExpression;
|
|
1723
1701
|
var VariableDeclaration = /* @__PURE__ */ (function() {
|
|
1724
1702
|
function VariableDeclaration2(declarations, kind) {
|
|
1725
1703
|
this.type = syntax_1.Syntax.VariableDeclaration;
|
|
@@ -1728,7 +1706,7 @@ var require_esprima = __commonJS({
|
|
|
1728
1706
|
}
|
|
1729
1707
|
return VariableDeclaration2;
|
|
1730
1708
|
})();
|
|
1731
|
-
|
|
1709
|
+
exports3.VariableDeclaration = VariableDeclaration;
|
|
1732
1710
|
var VariableDeclarator = /* @__PURE__ */ (function() {
|
|
1733
1711
|
function VariableDeclarator2(id, init) {
|
|
1734
1712
|
this.type = syntax_1.Syntax.VariableDeclarator;
|
|
@@ -1737,7 +1715,7 @@ var require_esprima = __commonJS({
|
|
|
1737
1715
|
}
|
|
1738
1716
|
return VariableDeclarator2;
|
|
1739
1717
|
})();
|
|
1740
|
-
|
|
1718
|
+
exports3.VariableDeclarator = VariableDeclarator;
|
|
1741
1719
|
var WhileStatement = /* @__PURE__ */ (function() {
|
|
1742
1720
|
function WhileStatement2(test, body) {
|
|
1743
1721
|
this.type = syntax_1.Syntax.WhileStatement;
|
|
@@ -1746,7 +1724,7 @@ var require_esprima = __commonJS({
|
|
|
1746
1724
|
}
|
|
1747
1725
|
return WhileStatement2;
|
|
1748
1726
|
})();
|
|
1749
|
-
|
|
1727
|
+
exports3.WhileStatement = WhileStatement;
|
|
1750
1728
|
var WithStatement = /* @__PURE__ */ (function() {
|
|
1751
1729
|
function WithStatement2(object, body) {
|
|
1752
1730
|
this.type = syntax_1.Syntax.WithStatement;
|
|
@@ -1755,7 +1733,7 @@ var require_esprima = __commonJS({
|
|
|
1755
1733
|
}
|
|
1756
1734
|
return WithStatement2;
|
|
1757
1735
|
})();
|
|
1758
|
-
|
|
1736
|
+
exports3.WithStatement = WithStatement;
|
|
1759
1737
|
var YieldExpression = /* @__PURE__ */ (function() {
|
|
1760
1738
|
function YieldExpression2(argument, delegate) {
|
|
1761
1739
|
this.type = syntax_1.Syntax.YieldExpression;
|
|
@@ -1764,12 +1742,13 @@ var require_esprima = __commonJS({
|
|
|
1764
1742
|
}
|
|
1765
1743
|
return YieldExpression2;
|
|
1766
1744
|
})();
|
|
1767
|
-
|
|
1745
|
+
exports3.YieldExpression = YieldExpression;
|
|
1768
1746
|
},
|
|
1769
1747
|
/* 8 */
|
|
1770
1748
|
/***/
|
|
1771
|
-
function(
|
|
1772
|
-
|
|
1749
|
+
function(module3, exports3, __webpack_require__) {
|
|
1750
|
+
"use strict";
|
|
1751
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
1773
1752
|
var assert_1 = __webpack_require__(9);
|
|
1774
1753
|
var error_handler_1 = __webpack_require__(10);
|
|
1775
1754
|
var messages_1 = __webpack_require__(11);
|
|
@@ -1870,6 +1849,10 @@ var require_esprima = __commonJS({
|
|
|
1870
1849
|
};
|
|
1871
1850
|
}
|
|
1872
1851
|
Parser2.prototype.throwError = function(messageFormat) {
|
|
1852
|
+
var values = [];
|
|
1853
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1854
|
+
values[_i - 1] = arguments[_i];
|
|
1855
|
+
}
|
|
1873
1856
|
var args = Array.prototype.slice.call(arguments, 1);
|
|
1874
1857
|
var msg = messageFormat.replace(/%(\d)/g, function(whole, idx) {
|
|
1875
1858
|
assert_1.assert(idx < args.length, "Message reference must be in range");
|
|
@@ -1881,6 +1864,10 @@ var require_esprima = __commonJS({
|
|
|
1881
1864
|
throw this.errorHandler.createError(index, line, column, msg);
|
|
1882
1865
|
};
|
|
1883
1866
|
Parser2.prototype.tolerateError = function(messageFormat) {
|
|
1867
|
+
var values = [];
|
|
1868
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1869
|
+
values[_i - 1] = arguments[_i];
|
|
1870
|
+
}
|
|
1884
1871
|
var args = Array.prototype.slice.call(arguments, 1);
|
|
1885
1872
|
var msg = messageFormat.replace(/%(\d)/g, function(whole, idx) {
|
|
1886
1873
|
assert_1.assert(idx < args.length, "Message reference must be in range");
|
|
@@ -2518,6 +2505,8 @@ var require_esprima = __commonJS({
|
|
|
2518
2505
|
delete expr.operator;
|
|
2519
2506
|
this.reinterpretExpressionAsPattern(expr.left);
|
|
2520
2507
|
break;
|
|
2508
|
+
default:
|
|
2509
|
+
break;
|
|
2521
2510
|
}
|
|
2522
2511
|
};
|
|
2523
2512
|
Parser2.prototype.parseGroupExpression = function() {
|
|
@@ -2979,6 +2968,8 @@ var require_esprima = __commonJS({
|
|
|
2979
2968
|
this.checkPatternParam(options2, param.properties[i].value);
|
|
2980
2969
|
}
|
|
2981
2970
|
break;
|
|
2971
|
+
default:
|
|
2972
|
+
break;
|
|
2982
2973
|
}
|
|
2983
2974
|
options2.simple = options2.simple && param instanceof Node.Identifier;
|
|
2984
2975
|
};
|
|
@@ -4179,6 +4170,8 @@ var require_esprima = __commonJS({
|
|
|
4179
4170
|
return true;
|
|
4180
4171
|
case 7:
|
|
4181
4172
|
return token.value === "[";
|
|
4173
|
+
default:
|
|
4174
|
+
break;
|
|
4182
4175
|
}
|
|
4183
4176
|
return false;
|
|
4184
4177
|
};
|
|
@@ -4231,6 +4224,8 @@ var require_esprima = __commonJS({
|
|
|
4231
4224
|
case 4:
|
|
4232
4225
|
start = value === "class" || value === "delete" || value === "function" || value === "let" || value === "new" || value === "super" || value === "this" || value === "typeof" || value === "void" || value === "yield";
|
|
4233
4226
|
break;
|
|
4227
|
+
default:
|
|
4228
|
+
break;
|
|
4234
4229
|
}
|
|
4235
4230
|
return start;
|
|
4236
4231
|
};
|
|
@@ -4602,23 +4597,25 @@ var require_esprima = __commonJS({
|
|
|
4602
4597
|
};
|
|
4603
4598
|
return Parser2;
|
|
4604
4599
|
})();
|
|
4605
|
-
|
|
4600
|
+
exports3.Parser = Parser;
|
|
4606
4601
|
},
|
|
4607
4602
|
/* 9 */
|
|
4608
4603
|
/***/
|
|
4609
|
-
function(
|
|
4610
|
-
|
|
4604
|
+
function(module3, exports3) {
|
|
4605
|
+
"use strict";
|
|
4606
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
4611
4607
|
function assert(condition, message) {
|
|
4612
4608
|
if (!condition) {
|
|
4613
4609
|
throw new Error("ASSERT: " + message);
|
|
4614
4610
|
}
|
|
4615
4611
|
}
|
|
4616
|
-
|
|
4612
|
+
exports3.assert = assert;
|
|
4617
4613
|
},
|
|
4618
4614
|
/* 10 */
|
|
4619
4615
|
/***/
|
|
4620
|
-
function(
|
|
4621
|
-
|
|
4616
|
+
function(module3, exports3) {
|
|
4617
|
+
"use strict";
|
|
4618
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
4622
4619
|
var ErrorHandler = (function() {
|
|
4623
4620
|
function ErrorHandler2() {
|
|
4624
4621
|
this.errors = [];
|
|
@@ -4667,13 +4664,14 @@ var require_esprima = __commonJS({
|
|
|
4667
4664
|
};
|
|
4668
4665
|
return ErrorHandler2;
|
|
4669
4666
|
})();
|
|
4670
|
-
|
|
4667
|
+
exports3.ErrorHandler = ErrorHandler;
|
|
4671
4668
|
},
|
|
4672
4669
|
/* 11 */
|
|
4673
4670
|
/***/
|
|
4674
|
-
function(
|
|
4675
|
-
|
|
4676
|
-
|
|
4671
|
+
function(module3, exports3) {
|
|
4672
|
+
"use strict";
|
|
4673
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
4674
|
+
exports3.Messages = {
|
|
4677
4675
|
BadGetterArity: "Getter must not have any formal parameters",
|
|
4678
4676
|
BadSetterArity: "Setter must have exactly one formal parameter",
|
|
4679
4677
|
BadSetterRestParameter: "Setter function argument must not be a rest parameter",
|
|
@@ -4736,8 +4734,9 @@ var require_esprima = __commonJS({
|
|
|
4736
4734
|
},
|
|
4737
4735
|
/* 12 */
|
|
4738
4736
|
/***/
|
|
4739
|
-
function(
|
|
4740
|
-
|
|
4737
|
+
function(module3, exports3, __webpack_require__) {
|
|
4738
|
+
"use strict";
|
|
4739
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
4741
4740
|
var assert_1 = __webpack_require__(9);
|
|
4742
4741
|
var character_1 = __webpack_require__(4);
|
|
4743
4742
|
var messages_1 = __webpack_require__(11);
|
|
@@ -5762,59 +5761,61 @@ var require_esprima = __commonJS({
|
|
|
5762
5761
|
};
|
|
5763
5762
|
return Scanner2;
|
|
5764
5763
|
})();
|
|
5765
|
-
|
|
5764
|
+
exports3.Scanner = Scanner;
|
|
5766
5765
|
},
|
|
5767
5766
|
/* 13 */
|
|
5768
5767
|
/***/
|
|
5769
|
-
function(
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5768
|
+
function(module3, exports3) {
|
|
5769
|
+
"use strict";
|
|
5770
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
5771
|
+
exports3.TokenName = {};
|
|
5772
|
+
exports3.TokenName[
|
|
5773
5773
|
1
|
|
5774
5774
|
/* BooleanLiteral */
|
|
5775
5775
|
] = "Boolean";
|
|
5776
|
-
|
|
5776
|
+
exports3.TokenName[
|
|
5777
5777
|
2
|
|
5778
5778
|
/* EOF */
|
|
5779
5779
|
] = "<end>";
|
|
5780
|
-
|
|
5780
|
+
exports3.TokenName[
|
|
5781
5781
|
3
|
|
5782
5782
|
/* Identifier */
|
|
5783
5783
|
] = "Identifier";
|
|
5784
|
-
|
|
5784
|
+
exports3.TokenName[
|
|
5785
5785
|
4
|
|
5786
5786
|
/* Keyword */
|
|
5787
5787
|
] = "Keyword";
|
|
5788
|
-
|
|
5788
|
+
exports3.TokenName[
|
|
5789
5789
|
5
|
|
5790
5790
|
/* NullLiteral */
|
|
5791
5791
|
] = "Null";
|
|
5792
|
-
|
|
5792
|
+
exports3.TokenName[
|
|
5793
5793
|
6
|
|
5794
5794
|
/* NumericLiteral */
|
|
5795
5795
|
] = "Numeric";
|
|
5796
|
-
|
|
5796
|
+
exports3.TokenName[
|
|
5797
5797
|
7
|
|
5798
5798
|
/* Punctuator */
|
|
5799
5799
|
] = "Punctuator";
|
|
5800
|
-
|
|
5800
|
+
exports3.TokenName[
|
|
5801
5801
|
8
|
|
5802
5802
|
/* StringLiteral */
|
|
5803
5803
|
] = "String";
|
|
5804
|
-
|
|
5804
|
+
exports3.TokenName[
|
|
5805
5805
|
9
|
|
5806
5806
|
/* RegularExpression */
|
|
5807
5807
|
] = "RegularExpression";
|
|
5808
|
-
|
|
5808
|
+
exports3.TokenName[
|
|
5809
5809
|
10
|
|
5810
5810
|
/* Template */
|
|
5811
5811
|
] = "Template";
|
|
5812
5812
|
},
|
|
5813
5813
|
/* 14 */
|
|
5814
5814
|
/***/
|
|
5815
|
-
function(
|
|
5816
|
-
|
|
5817
|
-
|
|
5815
|
+
function(module3, exports3) {
|
|
5816
|
+
"use strict";
|
|
5817
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
5818
|
+
exports3.XHTMLEntities = {
|
|
5818
5819
|
quot: '"',
|
|
5819
5820
|
amp: "&",
|
|
5820
5821
|
apos: "'",
|
|
@@ -6071,8 +6072,9 @@ var require_esprima = __commonJS({
|
|
|
6071
6072
|
},
|
|
6072
6073
|
/* 15 */
|
|
6073
6074
|
/***/
|
|
6074
|
-
function(
|
|
6075
|
-
|
|
6075
|
+
function(module3, exports3, __webpack_require__) {
|
|
6076
|
+
"use strict";
|
|
6077
|
+
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
6076
6078
|
var error_handler_1 = __webpack_require__(10);
|
|
6077
6079
|
var scanner_1 = __webpack_require__(12);
|
|
6078
6080
|
var token_1 = __webpack_require__(13);
|
|
@@ -6163,6 +6165,8 @@ var require_esprima = __commonJS({
|
|
|
6163
6165
|
regex = check ? !this.beforeFunctionExpression(check) : true;
|
|
6164
6166
|
}
|
|
6165
6167
|
break;
|
|
6168
|
+
default:
|
|
6169
|
+
break;
|
|
6166
6170
|
}
|
|
6167
6171
|
return regex;
|
|
6168
6172
|
};
|
|
@@ -6254,7 +6258,7 @@ var require_esprima = __commonJS({
|
|
|
6254
6258
|
};
|
|
6255
6259
|
return Tokenizer2;
|
|
6256
6260
|
})();
|
|
6257
|
-
|
|
6261
|
+
exports3.Tokenizer = Tokenizer;
|
|
6258
6262
|
}
|
|
6259
6263
|
/******/
|
|
6260
6264
|
])
|
|
@@ -6265,68 +6269,69 @@ var require_esprima = __commonJS({
|
|
|
6265
6269
|
|
|
6266
6270
|
// ../../node_modules/.pnpm/core-util-is@1.0.3/node_modules/core-util-is/lib/util.js
|
|
6267
6271
|
var require_util = __commonJS({
|
|
6268
|
-
"../../node_modules/.pnpm/core-util-is@1.0.3/node_modules/core-util-is/lib/util.js"(
|
|
6272
|
+
"../../node_modules/.pnpm/core-util-is@1.0.3/node_modules/core-util-is/lib/util.js"(exports2) {
|
|
6273
|
+
"use strict";
|
|
6269
6274
|
function isArray(arg) {
|
|
6270
6275
|
if (Array.isArray) {
|
|
6271
6276
|
return Array.isArray(arg);
|
|
6272
6277
|
}
|
|
6273
6278
|
return objectToString(arg) === "[object Array]";
|
|
6274
6279
|
}
|
|
6275
|
-
|
|
6280
|
+
exports2.isArray = isArray;
|
|
6276
6281
|
function isBoolean(arg) {
|
|
6277
6282
|
return typeof arg === "boolean";
|
|
6278
6283
|
}
|
|
6279
|
-
|
|
6284
|
+
exports2.isBoolean = isBoolean;
|
|
6280
6285
|
function isNull(arg) {
|
|
6281
6286
|
return arg === null;
|
|
6282
6287
|
}
|
|
6283
|
-
|
|
6288
|
+
exports2.isNull = isNull;
|
|
6284
6289
|
function isNullOrUndefined(arg) {
|
|
6285
6290
|
return arg == null;
|
|
6286
6291
|
}
|
|
6287
|
-
|
|
6292
|
+
exports2.isNullOrUndefined = isNullOrUndefined;
|
|
6288
6293
|
function isNumber(arg) {
|
|
6289
6294
|
return typeof arg === "number";
|
|
6290
6295
|
}
|
|
6291
|
-
|
|
6296
|
+
exports2.isNumber = isNumber;
|
|
6292
6297
|
function isString(arg) {
|
|
6293
6298
|
return typeof arg === "string";
|
|
6294
6299
|
}
|
|
6295
|
-
|
|
6300
|
+
exports2.isString = isString;
|
|
6296
6301
|
function isSymbol(arg) {
|
|
6297
6302
|
return typeof arg === "symbol";
|
|
6298
6303
|
}
|
|
6299
|
-
|
|
6304
|
+
exports2.isSymbol = isSymbol;
|
|
6300
6305
|
function isUndefined(arg) {
|
|
6301
6306
|
return arg === void 0;
|
|
6302
6307
|
}
|
|
6303
|
-
|
|
6308
|
+
exports2.isUndefined = isUndefined;
|
|
6304
6309
|
function isRegExp(re) {
|
|
6305
6310
|
return objectToString(re) === "[object RegExp]";
|
|
6306
6311
|
}
|
|
6307
|
-
|
|
6312
|
+
exports2.isRegExp = isRegExp;
|
|
6308
6313
|
function isObject(arg) {
|
|
6309
6314
|
return typeof arg === "object" && arg !== null;
|
|
6310
6315
|
}
|
|
6311
|
-
|
|
6316
|
+
exports2.isObject = isObject;
|
|
6312
6317
|
function isDate(d) {
|
|
6313
6318
|
return objectToString(d) === "[object Date]";
|
|
6314
6319
|
}
|
|
6315
|
-
|
|
6320
|
+
exports2.isDate = isDate;
|
|
6316
6321
|
function isError(e) {
|
|
6317
6322
|
return objectToString(e) === "[object Error]" || e instanceof Error;
|
|
6318
6323
|
}
|
|
6319
|
-
|
|
6324
|
+
exports2.isError = isError;
|
|
6320
6325
|
function isFunction(arg) {
|
|
6321
6326
|
return typeof arg === "function";
|
|
6322
6327
|
}
|
|
6323
|
-
|
|
6328
|
+
exports2.isFunction = isFunction;
|
|
6324
6329
|
function isPrimitive(arg) {
|
|
6325
6330
|
return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol
|
|
6326
6331
|
typeof arg === "undefined";
|
|
6327
6332
|
}
|
|
6328
|
-
|
|
6329
|
-
|
|
6333
|
+
exports2.isPrimitive = isPrimitive;
|
|
6334
|
+
exports2.isBuffer = require("buffer").Buffer.isBuffer;
|
|
6330
6335
|
function objectToString(o) {
|
|
6331
6336
|
return Object.prototype.toString.call(o);
|
|
6332
6337
|
}
|
|
@@ -6335,7 +6340,8 @@ var require_util = __commonJS({
|
|
|
6335
6340
|
|
|
6336
6341
|
// ../../node_modules/.pnpm/array-timsort@1.0.3/node_modules/array-timsort/src/index.js
|
|
6337
6342
|
var require_src = __commonJS({
|
|
6338
|
-
"../../node_modules/.pnpm/array-timsort@1.0.3/node_modules/array-timsort/src/index.js"(
|
|
6343
|
+
"../../node_modules/.pnpm/array-timsort@1.0.3/node_modules/array-timsort/src/index.js"(exports2, module2) {
|
|
6344
|
+
"use strict";
|
|
6339
6345
|
var DEFAULT_MIN_MERGE = 32;
|
|
6340
6346
|
var DEFAULT_MIN_GALLOPING = 7;
|
|
6341
6347
|
var DEFAULT_TMP_STORAGE_LENGTH = 256;
|
|
@@ -7042,7 +7048,7 @@ var require_src = __commonJS({
|
|
|
7042
7048
|
ts.forceMergeRuns();
|
|
7043
7049
|
return results;
|
|
7044
7050
|
}
|
|
7045
|
-
|
|
7051
|
+
module2.exports = {
|
|
7046
7052
|
sort
|
|
7047
7053
|
};
|
|
7048
7054
|
}
|
|
@@ -7050,7 +7056,8 @@ var require_src = __commonJS({
|
|
|
7050
7056
|
|
|
7051
7057
|
// ../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/common.js
|
|
7052
7058
|
var require_common = __commonJS({
|
|
7053
|
-
"../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/common.js"(
|
|
7059
|
+
"../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/common.js"(exports2, module2) {
|
|
7060
|
+
"use strict";
|
|
7054
7061
|
var {
|
|
7055
7062
|
isObject,
|
|
7056
7063
|
isArray,
|
|
@@ -7169,7 +7176,7 @@ var require_common = __commonJS({
|
|
|
7169
7176
|
return target;
|
|
7170
7177
|
};
|
|
7171
7178
|
var is_raw_json = isFunction(JSON.isRawJSON) ? JSON.isRawJSON : () => false;
|
|
7172
|
-
|
|
7179
|
+
module2.exports = {
|
|
7173
7180
|
PROP_SYMBOL_PREFIXES,
|
|
7174
7181
|
PREFIX_BEFORE,
|
|
7175
7182
|
PREFIX_AFTER_PROP,
|
|
@@ -7350,7 +7357,8 @@ var require_common = __commonJS({
|
|
|
7350
7357
|
|
|
7351
7358
|
// ../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/array.js
|
|
7352
7359
|
var require_array = __commonJS({
|
|
7353
|
-
"../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/array.js"(
|
|
7360
|
+
"../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/array.js"(exports2, module2) {
|
|
7361
|
+
"use strict";
|
|
7354
7362
|
var { isArray } = require_util();
|
|
7355
7363
|
var { sort } = require_src();
|
|
7356
7364
|
var {
|
|
@@ -7526,7 +7534,7 @@ var require_array = __commonJS({
|
|
|
7526
7534
|
return this;
|
|
7527
7535
|
}
|
|
7528
7536
|
};
|
|
7529
|
-
|
|
7537
|
+
module2.exports = {
|
|
7530
7538
|
CommentArray
|
|
7531
7539
|
};
|
|
7532
7540
|
}
|
|
@@ -7534,7 +7542,8 @@ var require_array = __commonJS({
|
|
|
7534
7542
|
|
|
7535
7543
|
// ../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/parse.js
|
|
7536
7544
|
var require_parse = __commonJS({
|
|
7537
|
-
"../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/parse.js"(
|
|
7545
|
+
"../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/parse.js"(exports2, module2) {
|
|
7546
|
+
"use strict";
|
|
7538
7547
|
var esprima = require_esprima();
|
|
7539
7548
|
var {
|
|
7540
7549
|
CommentArray
|
|
@@ -7843,7 +7852,7 @@ var require_parse = __commonJS({
|
|
|
7843
7852
|
free();
|
|
7844
7853
|
return result;
|
|
7845
7854
|
};
|
|
7846
|
-
|
|
7855
|
+
module2.exports = {
|
|
7847
7856
|
parse,
|
|
7848
7857
|
tokenize
|
|
7849
7858
|
};
|
|
@@ -7852,7 +7861,8 @@ var require_parse = __commonJS({
|
|
|
7852
7861
|
|
|
7853
7862
|
// ../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/stringify.js
|
|
7854
7863
|
var require_stringify = __commonJS({
|
|
7855
|
-
"../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/stringify.js"(
|
|
7864
|
+
"../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/stringify.js"(exports2, module2) {
|
|
7865
|
+
"use strict";
|
|
7856
7866
|
var {
|
|
7857
7867
|
isArray,
|
|
7858
7868
|
isObject,
|
|
@@ -8020,6 +8030,8 @@ var require_stringify = __commonJS({
|
|
|
8020
8030
|
return value.rawJSON;
|
|
8021
8031
|
}
|
|
8022
8032
|
return isArray(value) ? array_stringify(value, gap) : object_stringify(value, gap);
|
|
8033
|
+
// undefined
|
|
8034
|
+
default:
|
|
8023
8035
|
}
|
|
8024
8036
|
}
|
|
8025
8037
|
var get_indent = (space) => isString(space) ? space : isNumber(space) ? SPACE.repeat(space) : EMPTY;
|
|
@@ -8036,7 +8048,7 @@ var require_stringify = __commonJS({
|
|
|
8036
8048
|
const str = toString.call(subject);
|
|
8037
8049
|
return PRIMITIVE_OBJECT_TYPES.includes(str);
|
|
8038
8050
|
};
|
|
8039
|
-
|
|
8051
|
+
module2.exports = (value, replacer_, space) => {
|
|
8040
8052
|
const indent_ = get_indent(space);
|
|
8041
8053
|
if (!indent_) {
|
|
8042
8054
|
return JSON.stringify(value, replacer_);
|
|
@@ -8055,7 +8067,8 @@ var require_stringify = __commonJS({
|
|
|
8055
8067
|
|
|
8056
8068
|
// ../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/index.js
|
|
8057
8069
|
var require_src2 = __commonJS({
|
|
8058
|
-
"../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/index.js"(
|
|
8070
|
+
"../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/index.js"(exports2, module2) {
|
|
8071
|
+
"use strict";
|
|
8059
8072
|
var { parse, tokenize } = require_parse();
|
|
8060
8073
|
var stringify = require_stringify();
|
|
8061
8074
|
var { CommentArray } = require_array();
|
|
@@ -8071,7 +8084,7 @@ var require_src2 = __commonJS({
|
|
|
8071
8084
|
moveComments,
|
|
8072
8085
|
removeComments
|
|
8073
8086
|
} = require_common();
|
|
8074
|
-
|
|
8087
|
+
module2.exports = {
|
|
8075
8088
|
PREFIX_BEFORE,
|
|
8076
8089
|
PREFIX_AFTER_PROP,
|
|
8077
8090
|
PREFIX_AFTER_COLON,
|
|
@@ -8092,8 +8105,9 @@ var require_src2 = __commonJS({
|
|
|
8092
8105
|
|
|
8093
8106
|
// ../../node_modules/.pnpm/pend@1.2.0/node_modules/pend/index.js
|
|
8094
8107
|
var require_pend = __commonJS({
|
|
8095
|
-
"../../node_modules/.pnpm/pend@1.2.0/node_modules/pend/index.js"(
|
|
8096
|
-
|
|
8108
|
+
"../../node_modules/.pnpm/pend@1.2.0/node_modules/pend/index.js"(exports2, module2) {
|
|
8109
|
+
"use strict";
|
|
8110
|
+
module2.exports = Pend;
|
|
8097
8111
|
function Pend() {
|
|
8098
8112
|
this.pending = 0;
|
|
8099
8113
|
this.max = Infinity;
|
|
@@ -8147,19 +8161,20 @@ var require_pend = __commonJS({
|
|
|
8147
8161
|
|
|
8148
8162
|
// ../../node_modules/.pnpm/yauzl@3.2.0/node_modules/yauzl/fd-slicer.js
|
|
8149
8163
|
var require_fd_slicer = __commonJS({
|
|
8150
|
-
"../../node_modules/.pnpm/yauzl@3.2.0/node_modules/yauzl/fd-slicer.js"(
|
|
8151
|
-
|
|
8152
|
-
var
|
|
8153
|
-
var
|
|
8164
|
+
"../../node_modules/.pnpm/yauzl@3.2.0/node_modules/yauzl/fd-slicer.js"(exports2) {
|
|
8165
|
+
"use strict";
|
|
8166
|
+
var fs14 = require("fs");
|
|
8167
|
+
var util = require("util");
|
|
8168
|
+
var stream = require("stream");
|
|
8154
8169
|
var Readable = stream.Readable;
|
|
8155
8170
|
var Writable = stream.Writable;
|
|
8156
8171
|
var PassThrough = stream.PassThrough;
|
|
8157
8172
|
var Pend = require_pend();
|
|
8158
|
-
var EventEmitter =
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8173
|
+
var EventEmitter = require("events").EventEmitter;
|
|
8174
|
+
exports2.createFromBuffer = createFromBuffer;
|
|
8175
|
+
exports2.createFromFd = createFromFd;
|
|
8176
|
+
exports2.BufferSlicer = BufferSlicer;
|
|
8177
|
+
exports2.FdSlicer = FdSlicer;
|
|
8163
8178
|
util.inherits(FdSlicer, EventEmitter);
|
|
8164
8179
|
function FdSlicer(fd, options2) {
|
|
8165
8180
|
options2 = options2 || {};
|
|
@@ -8417,8 +8432,9 @@ var require_fd_slicer = __commonJS({
|
|
|
8417
8432
|
|
|
8418
8433
|
// ../../node_modules/.pnpm/buffer-crc32@0.2.13/node_modules/buffer-crc32/index.js
|
|
8419
8434
|
var require_buffer_crc32 = __commonJS({
|
|
8420
|
-
"../../node_modules/.pnpm/buffer-crc32@0.2.13/node_modules/buffer-crc32/index.js"(
|
|
8421
|
-
|
|
8435
|
+
"../../node_modules/.pnpm/buffer-crc32@0.2.13/node_modules/buffer-crc32/index.js"(exports2, module2) {
|
|
8436
|
+
"use strict";
|
|
8437
|
+
var Buffer2 = require("buffer").Buffer;
|
|
8422
8438
|
var CRC_TABLE = [
|
|
8423
8439
|
0,
|
|
8424
8440
|
1996959894,
|
|
@@ -8718,34 +8734,35 @@ var require_buffer_crc32 = __commonJS({
|
|
|
8718
8734
|
crc32.unsigned = function() {
|
|
8719
8735
|
return _crc32.apply(null, arguments) >>> 0;
|
|
8720
8736
|
};
|
|
8721
|
-
|
|
8737
|
+
module2.exports = crc32;
|
|
8722
8738
|
}
|
|
8723
8739
|
});
|
|
8724
8740
|
|
|
8725
8741
|
// ../../node_modules/.pnpm/yauzl@3.2.0/node_modules/yauzl/index.js
|
|
8726
8742
|
var require_yauzl = __commonJS({
|
|
8727
|
-
"../../node_modules/.pnpm/yauzl@3.2.0/node_modules/yauzl/index.js"(
|
|
8728
|
-
|
|
8729
|
-
var
|
|
8743
|
+
"../../node_modules/.pnpm/yauzl@3.2.0/node_modules/yauzl/index.js"(exports2) {
|
|
8744
|
+
"use strict";
|
|
8745
|
+
var fs14 = require("fs");
|
|
8746
|
+
var zlib = require("zlib");
|
|
8730
8747
|
var fd_slicer = require_fd_slicer();
|
|
8731
8748
|
var crc32 = require_buffer_crc32();
|
|
8732
|
-
var util =
|
|
8733
|
-
var EventEmitter =
|
|
8734
|
-
var Transform =
|
|
8735
|
-
var PassThrough =
|
|
8736
|
-
var Writable =
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
+
var util = require("util");
|
|
8750
|
+
var EventEmitter = require("events").EventEmitter;
|
|
8751
|
+
var Transform = require("stream").Transform;
|
|
8752
|
+
var PassThrough = require("stream").PassThrough;
|
|
8753
|
+
var Writable = require("stream").Writable;
|
|
8754
|
+
exports2.open = open2;
|
|
8755
|
+
exports2.fromFd = fromFd;
|
|
8756
|
+
exports2.fromBuffer = fromBuffer;
|
|
8757
|
+
exports2.fromRandomAccessReader = fromRandomAccessReader;
|
|
8758
|
+
exports2.dosDateTimeToDate = dosDateTimeToDate;
|
|
8759
|
+
exports2.getFileNameLowLevel = getFileNameLowLevel;
|
|
8760
|
+
exports2.validateFileName = validateFileName;
|
|
8761
|
+
exports2.parseExtraFields = parseExtraFields;
|
|
8762
|
+
exports2.ZipFile = ZipFile;
|
|
8763
|
+
exports2.Entry = Entry;
|
|
8764
|
+
exports2.LocalFileHeader = LocalFileHeader;
|
|
8765
|
+
exports2.RandomAccessReader = RandomAccessReader;
|
|
8749
8766
|
function open2(path12, options2, callback) {
|
|
8750
8767
|
if (typeof options2 === "function") {
|
|
8751
8768
|
callback = options2;
|
|
@@ -9084,6 +9101,7 @@ var require_yauzl = __commonJS({
|
|
|
9084
9101
|
};
|
|
9085
9102
|
ZipFile.prototype.openReadStreamLowLevel = function(fileDataStart, compressedSize, relativeStart, relativeEnd, decompress, uncompressedSize, callback) {
|
|
9086
9103
|
var self = this;
|
|
9104
|
+
var fileDataEnd = fileDataStart + compressedSize;
|
|
9087
9105
|
var readStream = self.reader.createReadStream({
|
|
9088
9106
|
start: fileDataStart + relativeStart,
|
|
9089
9107
|
end: fileDataStart + relativeEnd
|
|
@@ -9462,6 +9480,16 @@ var require_yauzl = __commonJS({
|
|
|
9462
9480
|
}
|
|
9463
9481
|
});
|
|
9464
9482
|
|
|
9483
|
+
// src/bridgeServer.ts
|
|
9484
|
+
var bridgeServer_exports = {};
|
|
9485
|
+
__export(bridgeServer_exports, {
|
|
9486
|
+
BridgeServer: () => BridgeServer
|
|
9487
|
+
});
|
|
9488
|
+
module.exports = __toCommonJS(bridgeServer_exports);
|
|
9489
|
+
|
|
9490
|
+
// src/bridge/BridgeServer.ts
|
|
9491
|
+
var readline = __toESM(require("readline"));
|
|
9492
|
+
|
|
9465
9493
|
// ../../packages/serviceme-protocol/src/bridge.ts
|
|
9466
9494
|
var SERVICEME_PROTOCOL_VERSION = 2;
|
|
9467
9495
|
function isRecord(value) {
|
|
@@ -9524,6 +9552,7 @@ var SERVICEME_ERROR_CODES = [
|
|
|
9524
9552
|
"executor_timeout",
|
|
9525
9553
|
"executor_error",
|
|
9526
9554
|
"task_already_running",
|
|
9555
|
+
"not_found",
|
|
9527
9556
|
"internal_error"
|
|
9528
9557
|
];
|
|
9529
9558
|
var RETRYABLE_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
@@ -9609,7 +9638,12 @@ function normalizeServicemeError(error, fallbackCode = "internal_error") {
|
|
|
9609
9638
|
}
|
|
9610
9639
|
|
|
9611
9640
|
// src/version.ts
|
|
9612
|
-
var SERVICEME_CLI_VERSION = "0.1.
|
|
9641
|
+
var SERVICEME_CLI_VERSION = "0.1.7";
|
|
9642
|
+
|
|
9643
|
+
// src/bridge/AgentBridgeHandler.ts
|
|
9644
|
+
var fs12 = __toESM(require("fs/promises"));
|
|
9645
|
+
var os2 = __toESM(require("os"));
|
|
9646
|
+
var path10 = __toESM(require("path"));
|
|
9613
9647
|
|
|
9614
9648
|
// ../../packages/serviceme-core/src/agents/AgentCatalogClient.ts
|
|
9615
9649
|
var AgentCatalogClient = class {
|
|
@@ -9636,6 +9670,30 @@ var AgentCatalogClient = class {
|
|
|
9636
9670
|
fetchedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
9637
9671
|
};
|
|
9638
9672
|
}
|
|
9673
|
+
async downloadAgent(remoteId) {
|
|
9674
|
+
if (!this.baseUrl) {
|
|
9675
|
+
throw createServicemeError(
|
|
9676
|
+
"workspace_not_found",
|
|
9677
|
+
"Agent catalog baseUrl is not configured."
|
|
9678
|
+
);
|
|
9679
|
+
}
|
|
9680
|
+
const response = await this.fetchImpl(
|
|
9681
|
+
`${this.baseUrl}/api/v1/marketplace/agents/download/${remoteId}`
|
|
9682
|
+
);
|
|
9683
|
+
if (!response.ok) {
|
|
9684
|
+
if (response.status === 404) {
|
|
9685
|
+
throw createServicemeError(
|
|
9686
|
+
"not_found",
|
|
9687
|
+
`Agent '${remoteId}' not found`
|
|
9688
|
+
);
|
|
9689
|
+
}
|
|
9690
|
+
throw new Error(
|
|
9691
|
+
`Failed to download agent ${remoteId}: ${response.status}`
|
|
9692
|
+
);
|
|
9693
|
+
}
|
|
9694
|
+
const payload = await response.json();
|
|
9695
|
+
return payload.data?.files ?? [];
|
|
9696
|
+
}
|
|
9639
9697
|
};
|
|
9640
9698
|
|
|
9641
9699
|
// ../../packages/serviceme-core/src/permissions/agent-permissions.ts
|
|
@@ -9754,6 +9812,10 @@ var AgentReconciler = class {
|
|
|
9754
9812
|
return tools.some((tool) => TOOL_RISK_MAP[tool] === "high");
|
|
9755
9813
|
}
|
|
9756
9814
|
};
|
|
9815
|
+
|
|
9816
|
+
// ../../packages/serviceme-core/src/agents/AgentStore.ts
|
|
9817
|
+
var fs = __toESM(require("fs/promises"));
|
|
9818
|
+
var path = __toESM(require("path"));
|
|
9757
9819
|
var WORKSPACE_AGENTS_ROOT_RELATIVE = ".github/agents";
|
|
9758
9820
|
var WORKSPACE_AGENTS_STATE_RELATIVE = ".github/.ms-devtools-agents.yml";
|
|
9759
9821
|
var SAFE_LOCAL_ID_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;
|
|
@@ -9767,7 +9829,7 @@ var AgentStore = class {
|
|
|
9767
9829
|
constructor(options2) {
|
|
9768
9830
|
this.workspacePath = options2.workspacePath;
|
|
9769
9831
|
this.userAgentsRoot = options2.userAgentsRoot;
|
|
9770
|
-
this.fileSystem = options2.fileSystem ??
|
|
9832
|
+
this.fileSystem = options2.fileSystem ?? fs;
|
|
9771
9833
|
this.schemaVersion = options2.schemaVersion ?? 1;
|
|
9772
9834
|
}
|
|
9773
9835
|
normalizeRemoteAgentId(remoteId) {
|
|
@@ -9791,7 +9853,7 @@ var AgentStore = class {
|
|
|
9791
9853
|
}
|
|
9792
9854
|
async listWorkspaceAgentIds() {
|
|
9793
9855
|
return this.listAgentIds(
|
|
9794
|
-
|
|
9856
|
+
path.join(this.workspacePath, WORKSPACE_AGENTS_ROOT_RELATIVE)
|
|
9795
9857
|
);
|
|
9796
9858
|
}
|
|
9797
9859
|
async listUserAgentIds() {
|
|
@@ -9800,7 +9862,7 @@ var AgentStore = class {
|
|
|
9800
9862
|
async readState() {
|
|
9801
9863
|
try {
|
|
9802
9864
|
const raw = await this.fileSystem.readFile(
|
|
9803
|
-
|
|
9865
|
+
path.join(this.workspacePath, WORKSPACE_AGENTS_STATE_RELATIVE),
|
|
9804
9866
|
"utf-8"
|
|
9805
9867
|
);
|
|
9806
9868
|
const parsed = JSON.parse(raw);
|
|
@@ -9813,11 +9875,11 @@ var AgentStore = class {
|
|
|
9813
9875
|
}
|
|
9814
9876
|
}
|
|
9815
9877
|
async writeState(state) {
|
|
9816
|
-
const statePath =
|
|
9878
|
+
const statePath = path.join(
|
|
9817
9879
|
this.workspacePath,
|
|
9818
9880
|
WORKSPACE_AGENTS_STATE_RELATIVE
|
|
9819
9881
|
);
|
|
9820
|
-
await this.fileSystem.mkdir(
|
|
9882
|
+
await this.fileSystem.mkdir(path.dirname(statePath), { recursive: true });
|
|
9821
9883
|
await this.fileSystem.writeFile(
|
|
9822
9884
|
statePath,
|
|
9823
9885
|
JSON.stringify(state, null, 2),
|
|
@@ -9846,14 +9908,14 @@ var AgentStore = class {
|
|
|
9846
9908
|
await this.writeState(state);
|
|
9847
9909
|
}
|
|
9848
9910
|
async writeAgentFiles(agentId, scope, files) {
|
|
9849
|
-
const root = scope === "workspace" ?
|
|
9911
|
+
const root = scope === "workspace" ? path.join(this.workspacePath, WORKSPACE_AGENTS_ROOT_RELATIVE) : this.userAgentsRoot;
|
|
9850
9912
|
const firstFile = files[0];
|
|
9851
9913
|
const isSingleFlatFile = files.length === 1 && firstFile !== void 0 && firstFile.path === `${agentId}.agent.md` && !firstFile.path.includes("/");
|
|
9852
|
-
const targetDir = isSingleFlatFile ? root :
|
|
9914
|
+
const targetDir = isSingleFlatFile ? root : path.join(root, agentId);
|
|
9853
9915
|
await this.fileSystem.mkdir(targetDir, { recursive: true });
|
|
9854
9916
|
for (const file of files) {
|
|
9855
|
-
const filePath =
|
|
9856
|
-
await this.fileSystem.mkdir(
|
|
9917
|
+
const filePath = path.join(targetDir, file.path);
|
|
9918
|
+
await this.fileSystem.mkdir(path.dirname(filePath), { recursive: true });
|
|
9857
9919
|
await this.fileSystem.writeFile(filePath, file.content, "utf-8");
|
|
9858
9920
|
if (file.executable) {
|
|
9859
9921
|
try {
|
|
@@ -9887,12 +9949,15 @@ var AgentStore = class {
|
|
|
9887
9949
|
}
|
|
9888
9950
|
}
|
|
9889
9951
|
};
|
|
9952
|
+
|
|
9953
|
+
// ../../packages/serviceme-core/src/process/runCommand.ts
|
|
9954
|
+
var import_node_child_process = require("child_process");
|
|
9890
9955
|
function terminateCommandProcess(child) {
|
|
9891
9956
|
if (child.killed) {
|
|
9892
9957
|
return;
|
|
9893
9958
|
}
|
|
9894
9959
|
if (process.platform === "win32" && child.pid) {
|
|
9895
|
-
const killProcess =
|
|
9960
|
+
const killProcess = (0, import_node_child_process.spawn)(
|
|
9896
9961
|
"taskkill",
|
|
9897
9962
|
["/pid", String(child.pid), "/T", "/F"],
|
|
9898
9963
|
{
|
|
@@ -9909,7 +9974,7 @@ function terminateCommandProcess(child) {
|
|
|
9909
9974
|
}
|
|
9910
9975
|
async function runCommand(command, options2 = {}) {
|
|
9911
9976
|
return new Promise((resolve, reject) => {
|
|
9912
|
-
const child =
|
|
9977
|
+
const child = (0, import_node_child_process.spawn)(command, options2.args ?? [], {
|
|
9913
9978
|
cwd: options2.cwd,
|
|
9914
9979
|
env: options2.env,
|
|
9915
9980
|
shell: options2.shell,
|
|
@@ -9996,11 +10061,39 @@ async function isCopilotAuthenticated() {
|
|
|
9996
10061
|
}
|
|
9997
10062
|
}
|
|
9998
10063
|
|
|
10064
|
+
// ../../packages/serviceme-core/src/image/imageTools.ts
|
|
10065
|
+
var fs2 = __toESM(require("fs/promises"));
|
|
10066
|
+
var path2 = __toESM(require("path"));
|
|
10067
|
+
|
|
9999
10068
|
// ../../packages/serviceme-core/src/json/jsonTools.ts
|
|
10000
|
-
__toESM(require_src2());
|
|
10069
|
+
var import_comment_json = __toESM(require_src2());
|
|
10070
|
+
|
|
10071
|
+
// ../../packages/serviceme-core/src/project/projectTools.ts
|
|
10072
|
+
var fs3 = __toESM(require("fs/promises"));
|
|
10073
|
+
var path3 = __toESM(require("path"));
|
|
10001
10074
|
|
|
10002
10075
|
// ../../packages/serviceme-core/src/utils/fileUtils.ts
|
|
10003
|
-
|
|
10076
|
+
var import_node_fs = require("fs");
|
|
10077
|
+
var import_promises = require("fs/promises");
|
|
10078
|
+
var import_node_path = require("path");
|
|
10079
|
+
var import_yauzl = __toESM(require_yauzl());
|
|
10080
|
+
|
|
10081
|
+
// ../../packages/serviceme-core/src/scheduled-tasks/daemon/DaemonLogger.ts
|
|
10082
|
+
var fs4 = __toESM(require("fs"));
|
|
10083
|
+
var path4 = __toESM(require("path"));
|
|
10084
|
+
var MAX_LOG_SIZE = 1024 * 1024;
|
|
10085
|
+
|
|
10086
|
+
// ../../packages/serviceme-core/src/scheduled-tasks/daemon/PidManager.ts
|
|
10087
|
+
var fs5 = __toESM(require("fs"));
|
|
10088
|
+
var path5 = __toESM(require("path"));
|
|
10089
|
+
|
|
10090
|
+
// ../../packages/serviceme-core/src/scheduled-tasks/daemon/SchedulerDaemon.ts
|
|
10091
|
+
var fs10 = __toESM(require("fs"));
|
|
10092
|
+
var os = __toESM(require("os"));
|
|
10093
|
+
|
|
10094
|
+
// ../../packages/serviceme-core/src/scheduled-tasks/executors/GithubCopilotCliExecutor.ts
|
|
10095
|
+
var import_node_child_process2 = require("child_process");
|
|
10096
|
+
var fs6 = __toESM(require("fs"));
|
|
10004
10097
|
|
|
10005
10098
|
// ../../packages/serviceme-core/src/scheduled-tasks/executors/timeout.ts
|
|
10006
10099
|
function resolveConfiguredTimeoutMs(timeoutSeconds, defaultTimeoutMs) {
|
|
@@ -10035,7 +10128,7 @@ function redactArgs(args) {
|
|
|
10035
10128
|
function writeDiagnostic(message) {
|
|
10036
10129
|
const logPath = process.env.SERVICEME_SCHEDULER_LOG_PATH;
|
|
10037
10130
|
if (logPath) {
|
|
10038
|
-
|
|
10131
|
+
fs6.appendFileSync(logPath, message);
|
|
10039
10132
|
return;
|
|
10040
10133
|
}
|
|
10041
10134
|
process.stderr.write(message);
|
|
@@ -10112,7 +10205,7 @@ var GithubCopilotCliExecutor = class {
|
|
|
10112
10205
|
`[GithubCopilotCliExecutor] spawn: command=${execution.command}, args=${JSON.stringify(execution.diagnosticArgs)}, promptLen=${execution.promptLen}, cwd=${execution.cwd ?? "(default)"}, platform=${process.platform}, windowsHide=true, pid=${process.pid}
|
|
10113
10206
|
`
|
|
10114
10207
|
);
|
|
10115
|
-
const child =
|
|
10208
|
+
const child = (0, import_node_child_process2.spawn)(execution.command, execution.args, {
|
|
10116
10209
|
cwd: execution.cwd,
|
|
10117
10210
|
stdio: ["ignore", "pipe", "pipe"],
|
|
10118
10211
|
windowsHide: true
|
|
@@ -10242,13 +10335,18 @@ ${body}`.trim()
|
|
|
10242
10335
|
}
|
|
10243
10336
|
}
|
|
10244
10337
|
};
|
|
10338
|
+
|
|
10339
|
+
// ../../packages/serviceme-core/src/scheduled-tasks/executors/ShellExecutor.ts
|
|
10340
|
+
var import_node_child_process3 = require("child_process");
|
|
10341
|
+
var fs7 = __toESM(require("fs"));
|
|
10342
|
+
var path6 = __toESM(require("path"));
|
|
10245
10343
|
var MAX_OUTPUT_BYTES2 = 1024 * 1024;
|
|
10246
10344
|
var DEFAULT_TIMEOUT_MS3 = 6e4;
|
|
10247
10345
|
var POSIX_SHELL_CANDIDATES = ["bash.exe", "sh.exe"];
|
|
10248
10346
|
function resolveShellExecution(script, options2 = {}) {
|
|
10249
10347
|
const platform = options2.platform ?? process.platform;
|
|
10250
10348
|
const env = options2.env ?? process.env;
|
|
10251
|
-
const fileExists = options2.fileExists ??
|
|
10349
|
+
const fileExists = options2.fileExists ?? fs7.existsSync;
|
|
10252
10350
|
if (platform === "win32") {
|
|
10253
10351
|
const posixShell = usesPosixShellSyntax(script) ? findWindowsPosixShell(env, fileExists) : null;
|
|
10254
10352
|
if (posixShell) {
|
|
@@ -10293,10 +10391,10 @@ function findWindowsPosixShell(env, fileExists) {
|
|
|
10293
10391
|
if (fileExists(candidate)) return candidate;
|
|
10294
10392
|
}
|
|
10295
10393
|
const pathValue = env.Path ?? env.PATH ?? "";
|
|
10296
|
-
for (const dir of pathValue.split(
|
|
10394
|
+
for (const dir of pathValue.split(path6.win32.delimiter)) {
|
|
10297
10395
|
if (!dir) continue;
|
|
10298
10396
|
for (const executable of POSIX_SHELL_CANDIDATES) {
|
|
10299
|
-
const candidate =
|
|
10397
|
+
const candidate = path6.win32.join(dir, executable);
|
|
10300
10398
|
if (fileExists(candidate) && !isWindowsWslLauncher(candidate)) {
|
|
10301
10399
|
return candidate;
|
|
10302
10400
|
}
|
|
@@ -10305,13 +10403,13 @@ function findWindowsPosixShell(env, fileExists) {
|
|
|
10305
10403
|
return null;
|
|
10306
10404
|
}
|
|
10307
10405
|
function isWindowsWslLauncher(candidate) {
|
|
10308
|
-
const normalized =
|
|
10406
|
+
const normalized = path6.win32.normalize(candidate).toLowerCase();
|
|
10309
10407
|
return normalized.endsWith("\\windows\\system32\\bash.exe") || normalized.endsWith("\\windows\\syswow64\\bash.exe");
|
|
10310
10408
|
}
|
|
10311
10409
|
function writeDiagnostic2(message) {
|
|
10312
10410
|
const logPath = process.env.SERVICEME_SCHEDULER_LOG_PATH;
|
|
10313
10411
|
if (logPath) {
|
|
10314
|
-
|
|
10412
|
+
fs7.appendFileSync(logPath, message);
|
|
10315
10413
|
return;
|
|
10316
10414
|
}
|
|
10317
10415
|
process.stderr.write(message);
|
|
@@ -10373,7 +10471,7 @@ var ShellExecutor = class {
|
|
|
10373
10471
|
daemonPid=${process.pid}
|
|
10374
10472
|
`
|
|
10375
10473
|
);
|
|
10376
|
-
const child =
|
|
10474
|
+
const child = (0, import_node_child_process3.spawn)(shellExecution.command, shellExecution.args, spawnOpts);
|
|
10377
10475
|
if (shellExecution.stdinScript && child.stdin) {
|
|
10378
10476
|
child.stdin.end(shellExecution.stdinScript);
|
|
10379
10477
|
}
|
|
@@ -10455,6 +10553,11 @@ function getExecutor(taskType) {
|
|
|
10455
10553
|
}
|
|
10456
10554
|
return executor;
|
|
10457
10555
|
}
|
|
10556
|
+
|
|
10557
|
+
// ../../packages/serviceme-core/src/scheduled-tasks/TaskConfigManager.ts
|
|
10558
|
+
var import_node_crypto = require("crypto");
|
|
10559
|
+
var fs8 = __toESM(require("fs"));
|
|
10560
|
+
var path7 = __toESM(require("path"));
|
|
10458
10561
|
function isRecord3(value) {
|
|
10459
10562
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
10460
10563
|
}
|
|
@@ -10671,6 +10774,11 @@ var TaskExecutionEngine = class {
|
|
|
10671
10774
|
}
|
|
10672
10775
|
};
|
|
10673
10776
|
|
|
10777
|
+
// ../../packages/serviceme-core/src/scheduled-tasks/TaskLogManager.ts
|
|
10778
|
+
var import_node_crypto2 = require("crypto");
|
|
10779
|
+
var fs9 = __toESM(require("fs"));
|
|
10780
|
+
var path8 = __toESM(require("path"));
|
|
10781
|
+
|
|
10674
10782
|
// ../../packages/serviceme-core/src/skills/SkillCatalogClient.ts
|
|
10675
10783
|
var SkillCatalogClient = class {
|
|
10676
10784
|
constructor(options2 = {}) {
|
|
@@ -10696,6 +10804,30 @@ var SkillCatalogClient = class {
|
|
|
10696
10804
|
fetchedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
10697
10805
|
};
|
|
10698
10806
|
}
|
|
10807
|
+
async downloadSkill(remoteId) {
|
|
10808
|
+
if (!this.baseUrl) {
|
|
10809
|
+
throw createServicemeError(
|
|
10810
|
+
"workspace_not_found",
|
|
10811
|
+
"Skill catalog baseUrl is not configured."
|
|
10812
|
+
);
|
|
10813
|
+
}
|
|
10814
|
+
const response = await this.fetchImpl(
|
|
10815
|
+
`${this.baseUrl}/api/v1/marketplace/skills/download/${remoteId}`
|
|
10816
|
+
);
|
|
10817
|
+
if (!response.ok) {
|
|
10818
|
+
if (response.status === 404) {
|
|
10819
|
+
throw createServicemeError(
|
|
10820
|
+
"not_found",
|
|
10821
|
+
`Skill '${remoteId}' not found`
|
|
10822
|
+
);
|
|
10823
|
+
}
|
|
10824
|
+
throw new Error(
|
|
10825
|
+
`Failed to download skill ${remoteId}: ${response.status}`
|
|
10826
|
+
);
|
|
10827
|
+
}
|
|
10828
|
+
const payload = await response.json();
|
|
10829
|
+
return payload.data?.files ?? [];
|
|
10830
|
+
}
|
|
10699
10831
|
};
|
|
10700
10832
|
|
|
10701
10833
|
// ../../packages/serviceme-core/src/skills/SkillReconciler.ts
|
|
@@ -10748,6 +10880,10 @@ var SkillReconciler = class {
|
|
|
10748
10880
|
};
|
|
10749
10881
|
}
|
|
10750
10882
|
};
|
|
10883
|
+
|
|
10884
|
+
// ../../packages/serviceme-core/src/skills/SkillStore.ts
|
|
10885
|
+
var fs11 = __toESM(require("fs/promises"));
|
|
10886
|
+
var path9 = __toESM(require("path"));
|
|
10751
10887
|
var USER_SKILL_MARKER_FILE = ".ms-devtools-skill.json";
|
|
10752
10888
|
var WORKSPACE_SKILLS_ROOT_RELATIVE = ".github/skills";
|
|
10753
10889
|
var WORKSPACE_SKILLS_MARKER_RELATIVE = ".github/.ms-devtools-skills.yml";
|
|
@@ -10762,7 +10898,7 @@ var SkillStore = class {
|
|
|
10762
10898
|
constructor(options2) {
|
|
10763
10899
|
this.workspacePath = options2.workspacePath;
|
|
10764
10900
|
this.userSkillsRoot = options2.userSkillsRoot;
|
|
10765
|
-
this.fileSystem = options2.fileSystem ??
|
|
10901
|
+
this.fileSystem = options2.fileSystem ?? fs11;
|
|
10766
10902
|
}
|
|
10767
10903
|
normalizeRemoteSkillId(remoteId) {
|
|
10768
10904
|
if (remoteId.startsWith("official/")) {
|
|
@@ -10781,10 +10917,10 @@ var SkillStore = class {
|
|
|
10781
10917
|
return WORKSPACE_SKILLS_MARKER_RELATIVE;
|
|
10782
10918
|
}
|
|
10783
10919
|
getUserSkillPath(skillId) {
|
|
10784
|
-
return
|
|
10920
|
+
return path9.join(this.userSkillsRoot, skillId);
|
|
10785
10921
|
}
|
|
10786
10922
|
async listWorkspaceSkillIds() {
|
|
10787
|
-
const skillsRootPath =
|
|
10923
|
+
const skillsRootPath = path9.join(
|
|
10788
10924
|
this.workspacePath,
|
|
10789
10925
|
WORKSPACE_SKILLS_ROOT_RELATIVE
|
|
10790
10926
|
);
|
|
@@ -10811,7 +10947,7 @@ var SkillStore = class {
|
|
|
10811
10947
|
const targetDir = this.getUserSkillPath(skillId);
|
|
10812
10948
|
await this.fileSystem.mkdir(targetDir, { recursive: true });
|
|
10813
10949
|
await this.fileSystem.writeFile(
|
|
10814
|
-
|
|
10950
|
+
path9.join(targetDir, USER_SKILL_MARKER_FILE),
|
|
10815
10951
|
JSON.stringify({ skillId, installedBy: "ms-devtools" }, null, 2),
|
|
10816
10952
|
"utf-8"
|
|
10817
10953
|
);
|
|
@@ -10819,7 +10955,7 @@ var SkillStore = class {
|
|
|
10819
10955
|
async isManagedUserSkill(skillId) {
|
|
10820
10956
|
try {
|
|
10821
10957
|
const marker = await this.fileSystem.readFile(
|
|
10822
|
-
|
|
10958
|
+
path9.join(this.getUserSkillPath(skillId), USER_SKILL_MARKER_FILE),
|
|
10823
10959
|
"utf-8"
|
|
10824
10960
|
);
|
|
10825
10961
|
const parsed = JSON.parse(marker);
|
|
@@ -10828,6 +10964,22 @@ var SkillStore = class {
|
|
|
10828
10964
|
return false;
|
|
10829
10965
|
}
|
|
10830
10966
|
}
|
|
10967
|
+
async writeSkillFiles(skillId, scope, files) {
|
|
10968
|
+
const root = scope === "workspace" ? path9.join(this.workspacePath, WORKSPACE_SKILLS_ROOT_RELATIVE) : this.userSkillsRoot;
|
|
10969
|
+
const targetDir = path9.join(root, skillId);
|
|
10970
|
+
await this.fileSystem.mkdir(targetDir, { recursive: true });
|
|
10971
|
+
for (const file of files) {
|
|
10972
|
+
const filePath = path9.join(targetDir, file.path);
|
|
10973
|
+
await this.fileSystem.mkdir(path9.dirname(filePath), { recursive: true });
|
|
10974
|
+
await this.fileSystem.writeFile(filePath, file.content, "utf-8");
|
|
10975
|
+
if (file.executable) {
|
|
10976
|
+
try {
|
|
10977
|
+
await this.fileSystem.chmod(filePath, 493);
|
|
10978
|
+
} catch {
|
|
10979
|
+
}
|
|
10980
|
+
}
|
|
10981
|
+
}
|
|
10982
|
+
}
|
|
10831
10983
|
};
|
|
10832
10984
|
|
|
10833
10985
|
// src/bridge/AgentBridgeHandler.ts
|
|
@@ -10869,11 +11021,11 @@ var AgentBridgeHandler = class {
|
|
|
10869
11021
|
hasConflict: agent.hasConflict,
|
|
10870
11022
|
tools: agent.tools,
|
|
10871
11023
|
source: agent.source,
|
|
10872
|
-
localAgentPath: workspaceInstalled || userInstalled ? workspaceInstalled ?
|
|
11024
|
+
localAgentPath: workspaceInstalled || userInstalled ? workspaceInstalled ? path10.join(
|
|
10873
11025
|
context.workspacePath,
|
|
10874
11026
|
context.store.getWorkspaceAgentsRootPath(),
|
|
10875
11027
|
`${agentId}.agent.md`
|
|
10876
|
-
) :
|
|
11028
|
+
) : path10.join(
|
|
10877
11029
|
context.store.getUserAgentsRootPath(),
|
|
10878
11030
|
`${agentId}.agent.md`
|
|
10879
11031
|
) : void 0,
|
|
@@ -10881,7 +11033,7 @@ var AgentBridgeHandler = class {
|
|
|
10881
11033
|
workspaceState: this.makeScopeState(
|
|
10882
11034
|
"workspace",
|
|
10883
11035
|
workspaceInstalled,
|
|
10884
|
-
|
|
11036
|
+
path10.join(
|
|
10885
11037
|
context.workspacePath,
|
|
10886
11038
|
context.store.getWorkspaceAgentsRootPath(),
|
|
10887
11039
|
`${agentId}.agent.md`
|
|
@@ -10890,7 +11042,7 @@ var AgentBridgeHandler = class {
|
|
|
10890
11042
|
userState: this.makeScopeState(
|
|
10891
11043
|
"user",
|
|
10892
11044
|
userInstalled,
|
|
10893
|
-
|
|
11045
|
+
path10.join(
|
|
10894
11046
|
context.store.getUserAgentsRootPath(),
|
|
10895
11047
|
`${agentId}.agent.md`
|
|
10896
11048
|
)
|
|
@@ -10913,7 +11065,7 @@ var AgentBridgeHandler = class {
|
|
|
10913
11065
|
hasConflict: false,
|
|
10914
11066
|
tools: [],
|
|
10915
11067
|
source: "local",
|
|
10916
|
-
localAgentPath:
|
|
11068
|
+
localAgentPath: path10.join(
|
|
10917
11069
|
context.workspacePath,
|
|
10918
11070
|
context.store.getWorkspaceAgentsRootPath(),
|
|
10919
11071
|
`${agentId}.agent.md`
|
|
@@ -10921,7 +11073,7 @@ var AgentBridgeHandler = class {
|
|
|
10921
11073
|
workspaceState: this.makeScopeState(
|
|
10922
11074
|
"workspace",
|
|
10923
11075
|
true,
|
|
10924
|
-
|
|
11076
|
+
path10.join(
|
|
10925
11077
|
context.workspacePath,
|
|
10926
11078
|
context.store.getWorkspaceAgentsRootPath(),
|
|
10927
11079
|
`${agentId}.agent.md`
|
|
@@ -10930,7 +11082,7 @@ var AgentBridgeHandler = class {
|
|
|
10930
11082
|
userState: this.makeScopeState(
|
|
10931
11083
|
"user",
|
|
10932
11084
|
userSet.has(agentId),
|
|
10933
|
-
|
|
11085
|
+
path10.join(
|
|
10934
11086
|
context.store.getUserAgentsRootPath(),
|
|
10935
11087
|
`${agentId}.agent.md`
|
|
10936
11088
|
)
|
|
@@ -10953,14 +11105,14 @@ var AgentBridgeHandler = class {
|
|
|
10953
11105
|
hasConflict: false,
|
|
10954
11106
|
tools: [],
|
|
10955
11107
|
source: "local",
|
|
10956
|
-
localAgentPath:
|
|
11108
|
+
localAgentPath: path10.join(
|
|
10957
11109
|
context.store.getUserAgentsRootPath(),
|
|
10958
11110
|
`${agentId}.agent.md`
|
|
10959
11111
|
),
|
|
10960
11112
|
workspaceState: this.makeScopeState(
|
|
10961
11113
|
"workspace",
|
|
10962
11114
|
workspaceSet.has(agentId),
|
|
10963
|
-
|
|
11115
|
+
path10.join(
|
|
10964
11116
|
context.workspacePath,
|
|
10965
11117
|
context.store.getWorkspaceAgentsRootPath(),
|
|
10966
11118
|
`${agentId}.agent.md`
|
|
@@ -10969,7 +11121,7 @@ var AgentBridgeHandler = class {
|
|
|
10969
11121
|
userState: this.makeScopeState(
|
|
10970
11122
|
"user",
|
|
10971
11123
|
true,
|
|
10972
|
-
|
|
11124
|
+
path10.join(
|
|
10973
11125
|
context.store.getUserAgentsRootPath(),
|
|
10974
11126
|
`${agentId}.agent.md`
|
|
10975
11127
|
)
|
|
@@ -10977,7 +11129,7 @@ var AgentBridgeHandler = class {
|
|
|
10977
11129
|
});
|
|
10978
11130
|
}
|
|
10979
11131
|
return {
|
|
10980
|
-
configPath:
|
|
11132
|
+
configPath: path10.join(
|
|
10981
11133
|
context.workspacePath,
|
|
10982
11134
|
context.store.getWorkspaceStateFilePath()
|
|
10983
11135
|
),
|
|
@@ -11022,7 +11174,7 @@ var AgentBridgeHandler = class {
|
|
|
11022
11174
|
}
|
|
11023
11175
|
createContext(workspacePath) {
|
|
11024
11176
|
const resolvedWorkspacePath = workspacePath ?? process.cwd();
|
|
11025
|
-
const userAgentsRoot =
|
|
11177
|
+
const userAgentsRoot = path10.join(os2.homedir(), ".copilot", "agents");
|
|
11026
11178
|
const store = new AgentStore({
|
|
11027
11179
|
workspacePath: resolvedWorkspacePath,
|
|
11028
11180
|
userAgentsRoot
|
|
@@ -11064,12 +11216,12 @@ var AgentBridgeHandler = class {
|
|
|
11064
11216
|
};
|
|
11065
11217
|
}
|
|
11066
11218
|
async applyMutationSideEffect(context, request) {
|
|
11067
|
-
const workspaceFlatPath =
|
|
11219
|
+
const workspaceFlatPath = path10.join(
|
|
11068
11220
|
context.workspacePath,
|
|
11069
11221
|
context.store.getWorkspaceAgentsRootPath(),
|
|
11070
11222
|
`${request.agentId}.agent.md`
|
|
11071
11223
|
);
|
|
11072
|
-
const userFlatPath =
|
|
11224
|
+
const userFlatPath = path10.join(
|
|
11073
11225
|
context.store.getUserAgentsRootPath(),
|
|
11074
11226
|
`${request.agentId}.agent.md`
|
|
11075
11227
|
);
|
|
@@ -11083,9 +11235,9 @@ var AgentBridgeHandler = class {
|
|
|
11083
11235
|
return;
|
|
11084
11236
|
case "uninstall":
|
|
11085
11237
|
if (request.targetScope === "workspace") {
|
|
11086
|
-
await
|
|
11238
|
+
await fs12.rm(workspaceFlatPath, { recursive: true, force: true });
|
|
11087
11239
|
} else {
|
|
11088
|
-
await
|
|
11240
|
+
await fs12.rm(userFlatPath, { recursive: true, force: true });
|
|
11089
11241
|
}
|
|
11090
11242
|
return;
|
|
11091
11243
|
case "move":
|
|
@@ -11100,17 +11252,17 @@ var AgentBridgeHandler = class {
|
|
|
11100
11252
|
}
|
|
11101
11253
|
}
|
|
11102
11254
|
async moveEntry(fromPath, toPath) {
|
|
11103
|
-
await
|
|
11255
|
+
await fs12.mkdir(path10.dirname(toPath), { recursive: true });
|
|
11104
11256
|
try {
|
|
11105
|
-
await
|
|
11257
|
+
await fs12.rename(fromPath, toPath);
|
|
11106
11258
|
} catch {
|
|
11107
|
-
await
|
|
11108
|
-
await
|
|
11259
|
+
await fs12.cp(fromPath, toPath, { recursive: true });
|
|
11260
|
+
await fs12.rm(fromPath, { recursive: true, force: true });
|
|
11109
11261
|
}
|
|
11110
11262
|
}
|
|
11111
11263
|
async writeDefaultAgentFile(targetPath, agentId) {
|
|
11112
|
-
await
|
|
11113
|
-
await
|
|
11264
|
+
await fs12.mkdir(path10.dirname(targetPath), { recursive: true });
|
|
11265
|
+
await fs12.writeFile(
|
|
11114
11266
|
targetPath,
|
|
11115
11267
|
`---
|
|
11116
11268
|
name: ${agentId}
|
|
@@ -11125,17 +11277,17 @@ tools:
|
|
|
11125
11277
|
);
|
|
11126
11278
|
}
|
|
11127
11279
|
async readAgentContent(context, agentId, scope) {
|
|
11128
|
-
const root = scope === "workspace" ?
|
|
11280
|
+
const root = scope === "workspace" ? path10.join(
|
|
11129
11281
|
context.workspacePath,
|
|
11130
11282
|
context.store.getWorkspaceAgentsRootPath()
|
|
11131
11283
|
) : context.store.getUserAgentsRootPath();
|
|
11132
11284
|
const candidates = [
|
|
11133
|
-
|
|
11134
|
-
|
|
11285
|
+
path10.join(root, `${agentId}.agent.md`),
|
|
11286
|
+
path10.join(root, agentId, `${agentId}.agent.md`)
|
|
11135
11287
|
];
|
|
11136
11288
|
for (const candidate of candidates) {
|
|
11137
11289
|
try {
|
|
11138
|
-
return await
|
|
11290
|
+
return await fs12.readFile(candidate, "utf8");
|
|
11139
11291
|
} catch {
|
|
11140
11292
|
}
|
|
11141
11293
|
}
|
|
@@ -11151,6 +11303,11 @@ function writeBridgeMessage(message) {
|
|
|
11151
11303
|
process.stdout.write(`${JSON.stringify(message)}
|
|
11152
11304
|
`);
|
|
11153
11305
|
}
|
|
11306
|
+
|
|
11307
|
+
// src/bridge/SkillBridgeHandler.ts
|
|
11308
|
+
var fs13 = __toESM(require("fs/promises"));
|
|
11309
|
+
var os3 = __toESM(require("os"));
|
|
11310
|
+
var path11 = __toESM(require("path"));
|
|
11154
11311
|
function normalizeSkillIdOrThrow(store, remoteId) {
|
|
11155
11312
|
try {
|
|
11156
11313
|
return store.normalizeRemoteSkillId(remoteId);
|
|
@@ -11194,7 +11351,7 @@ var SkillBridgeHandler = class {
|
|
|
11194
11351
|
hasScripts: skill.hasScripts,
|
|
11195
11352
|
hasHooks: skill.hasHooks,
|
|
11196
11353
|
source: skill.source,
|
|
11197
|
-
localSkillPath: workspaceInstalled || userInstalled ? workspaceInstalled ?
|
|
11354
|
+
localSkillPath: workspaceInstalled || userInstalled ? workspaceInstalled ? path11.join(
|
|
11198
11355
|
context.workspacePath,
|
|
11199
11356
|
context.store.getWorkspaceSkillPath(skillId)
|
|
11200
11357
|
) : context.store.getUserSkillPath(skillId) : void 0,
|
|
@@ -11202,7 +11359,7 @@ var SkillBridgeHandler = class {
|
|
|
11202
11359
|
workspaceState: this.makeScopeState(
|
|
11203
11360
|
"workspace",
|
|
11204
11361
|
workspaceInstalled,
|
|
11205
|
-
|
|
11362
|
+
path11.join(
|
|
11206
11363
|
context.workspacePath,
|
|
11207
11364
|
context.store.getWorkspaceSkillPath(skillId)
|
|
11208
11365
|
)
|
|
@@ -11229,14 +11386,14 @@ var SkillBridgeHandler = class {
|
|
|
11229
11386
|
installCount: 0,
|
|
11230
11387
|
hasConflict: false,
|
|
11231
11388
|
source: "local",
|
|
11232
|
-
localSkillPath:
|
|
11389
|
+
localSkillPath: path11.join(
|
|
11233
11390
|
context.workspacePath,
|
|
11234
11391
|
context.store.getWorkspaceSkillPath(skillId)
|
|
11235
11392
|
),
|
|
11236
11393
|
workspaceState: this.makeScopeState(
|
|
11237
11394
|
"workspace",
|
|
11238
11395
|
true,
|
|
11239
|
-
|
|
11396
|
+
path11.join(
|
|
11240
11397
|
context.workspacePath,
|
|
11241
11398
|
context.store.getWorkspaceSkillPath(skillId)
|
|
11242
11399
|
)
|
|
@@ -11267,7 +11424,7 @@ var SkillBridgeHandler = class {
|
|
|
11267
11424
|
workspaceState: this.makeScopeState(
|
|
11268
11425
|
"workspace",
|
|
11269
11426
|
workspaceSet.has(skillId),
|
|
11270
|
-
|
|
11427
|
+
path11.join(
|
|
11271
11428
|
context.workspacePath,
|
|
11272
11429
|
context.store.getWorkspaceSkillPath(skillId)
|
|
11273
11430
|
)
|
|
@@ -11280,7 +11437,7 @@ var SkillBridgeHandler = class {
|
|
|
11280
11437
|
});
|
|
11281
11438
|
}
|
|
11282
11439
|
return {
|
|
11283
|
-
configPath:
|
|
11440
|
+
configPath: path11.join(
|
|
11284
11441
|
context.workspacePath,
|
|
11285
11442
|
context.store.getWorkspaceMarkerPath()
|
|
11286
11443
|
),
|
|
@@ -11337,7 +11494,7 @@ var SkillBridgeHandler = class {
|
|
|
11337
11494
|
skills: workspaceSkillIds.map((skillId) => ({
|
|
11338
11495
|
id: skillId,
|
|
11339
11496
|
displayName: skillId,
|
|
11340
|
-
path:
|
|
11497
|
+
path: path11.join(
|
|
11341
11498
|
context.workspacePath,
|
|
11342
11499
|
context.store.getWorkspaceSkillPath(skillId)
|
|
11343
11500
|
)
|
|
@@ -11346,7 +11503,7 @@ var SkillBridgeHandler = class {
|
|
|
11346
11503
|
}
|
|
11347
11504
|
createContext(workspacePath) {
|
|
11348
11505
|
const resolvedWorkspacePath = workspacePath ?? process.cwd();
|
|
11349
|
-
const userSkillsRoot =
|
|
11506
|
+
const userSkillsRoot = path11.join(os3.homedir(), ".agents", "skills");
|
|
11350
11507
|
const store = new SkillStore({
|
|
11351
11508
|
workspacePath: resolvedWorkspacePath,
|
|
11352
11509
|
userSkillsRoot
|
|
@@ -11388,7 +11545,7 @@ var SkillBridgeHandler = class {
|
|
|
11388
11545
|
};
|
|
11389
11546
|
}
|
|
11390
11547
|
async applyMutationSideEffect(context, request) {
|
|
11391
|
-
const workspaceSkillPath =
|
|
11548
|
+
const workspaceSkillPath = path11.join(
|
|
11392
11549
|
context.workspacePath,
|
|
11393
11550
|
context.store.getWorkspaceSkillPath(request.skillId)
|
|
11394
11551
|
);
|
|
@@ -11396,17 +11553,17 @@ var SkillBridgeHandler = class {
|
|
|
11396
11553
|
switch (request.action) {
|
|
11397
11554
|
case "install":
|
|
11398
11555
|
if (request.targetScope === "workspace") {
|
|
11399
|
-
await
|
|
11556
|
+
await fs13.mkdir(workspaceSkillPath, { recursive: true });
|
|
11400
11557
|
} else {
|
|
11401
|
-
await
|
|
11558
|
+
await fs13.mkdir(userSkillPath, { recursive: true });
|
|
11402
11559
|
await context.store.writeManagedUserSkillMarker(request.skillId);
|
|
11403
11560
|
}
|
|
11404
11561
|
return;
|
|
11405
11562
|
case "uninstall":
|
|
11406
11563
|
if (request.targetScope === "workspace") {
|
|
11407
|
-
await
|
|
11564
|
+
await fs13.rm(workspaceSkillPath, { recursive: true, force: true });
|
|
11408
11565
|
} else {
|
|
11409
|
-
await
|
|
11566
|
+
await fs13.rm(userSkillPath, { recursive: true, force: true });
|
|
11410
11567
|
}
|
|
11411
11568
|
return;
|
|
11412
11569
|
case "move":
|
|
@@ -11422,12 +11579,12 @@ var SkillBridgeHandler = class {
|
|
|
11422
11579
|
}
|
|
11423
11580
|
}
|
|
11424
11581
|
async moveDirectory(fromPath, toPath) {
|
|
11425
|
-
await
|
|
11582
|
+
await fs13.mkdir(path11.dirname(toPath), { recursive: true });
|
|
11426
11583
|
try {
|
|
11427
|
-
await
|
|
11584
|
+
await fs13.rename(fromPath, toPath);
|
|
11428
11585
|
} catch {
|
|
11429
|
-
await
|
|
11430
|
-
await
|
|
11586
|
+
await fs13.cp(fromPath, toPath, { recursive: true });
|
|
11587
|
+
await fs13.rm(fromPath, { recursive: true, force: true });
|
|
11431
11588
|
}
|
|
11432
11589
|
}
|
|
11433
11590
|
};
|
|
@@ -11494,7 +11651,7 @@ var BridgeServer = class {
|
|
|
11494
11651
|
this.agentHandler = new AgentBridgeHandler();
|
|
11495
11652
|
}
|
|
11496
11653
|
async run() {
|
|
11497
|
-
const reader =
|
|
11654
|
+
const reader = readline.createInterface({
|
|
11498
11655
|
input: process.stdin,
|
|
11499
11656
|
crlfDelay: Number.POSITIVE_INFINITY
|
|
11500
11657
|
});
|
|
@@ -11687,5 +11844,7 @@ var BridgeServer = class {
|
|
|
11687
11844
|
});
|
|
11688
11845
|
}
|
|
11689
11846
|
};
|
|
11690
|
-
|
|
11691
|
-
exports
|
|
11847
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
11848
|
+
0 && (module.exports = {
|
|
11849
|
+
BridgeServer
|
|
11850
|
+
});
|