@vgai/cli 0.5.35 → 0.5.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +23 -2366
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -78187,121 +78187,6 @@ var require_browser = __commonJS({
78187
78187
  }
78188
78188
  });
78189
78189
 
78190
- // ../../../../node_modules/has-flag/index.js
78191
- var require_has_flag = __commonJS({
78192
- "../../../../node_modules/has-flag/index.js"(exports, module) {
78193
- "use strict";
78194
- module.exports = (flag, argv = process.argv) => {
78195
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
78196
- const position = argv.indexOf(prefix + flag);
78197
- const terminatorPosition = argv.indexOf("--");
78198
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
78199
- };
78200
- }
78201
- });
78202
-
78203
- // ../../../../node_modules/supports-color/index.js
78204
- var require_supports_color = __commonJS({
78205
- "../../../../node_modules/supports-color/index.js"(exports, module) {
78206
- "use strict";
78207
- var os3 = __require("os");
78208
- var tty3 = __require("tty");
78209
- var hasFlag2 = require_has_flag();
78210
- var { env: env3 } = process;
78211
- var forceColor;
78212
- if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
78213
- forceColor = 0;
78214
- } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
78215
- forceColor = 1;
78216
- }
78217
- if ("FORCE_COLOR" in env3) {
78218
- if (env3.FORCE_COLOR === "true") {
78219
- forceColor = 1;
78220
- } else if (env3.FORCE_COLOR === "false") {
78221
- forceColor = 0;
78222
- } else {
78223
- forceColor = env3.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env3.FORCE_COLOR, 10), 3);
78224
- }
78225
- }
78226
- function translateLevel2(level) {
78227
- if (level === 0) {
78228
- return false;
78229
- }
78230
- return {
78231
- level,
78232
- hasBasic: true,
78233
- has256: level >= 2,
78234
- has16m: level >= 3
78235
- };
78236
- }
78237
- function supportsColor2(haveStream, streamIsTTY) {
78238
- if (forceColor === 0) {
78239
- return 0;
78240
- }
78241
- if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
78242
- return 3;
78243
- }
78244
- if (hasFlag2("color=256")) {
78245
- return 2;
78246
- }
78247
- if (haveStream && !streamIsTTY && forceColor === void 0) {
78248
- return 0;
78249
- }
78250
- const min = forceColor || 0;
78251
- if (env3.TERM === "dumb") {
78252
- return min;
78253
- }
78254
- if (process.platform === "win32") {
78255
- const osRelease = os3.release().split(".");
78256
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
78257
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
78258
- }
78259
- return 1;
78260
- }
78261
- if ("CI" in env3) {
78262
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env3) || env3.CI_NAME === "codeship") {
78263
- return 1;
78264
- }
78265
- return min;
78266
- }
78267
- if ("TEAMCITY_VERSION" in env3) {
78268
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
78269
- }
78270
- if (env3.COLORTERM === "truecolor") {
78271
- return 3;
78272
- }
78273
- if ("TERM_PROGRAM" in env3) {
78274
- const version2 = parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
78275
- switch (env3.TERM_PROGRAM) {
78276
- case "iTerm.app":
78277
- return version2 >= 3 ? 3 : 2;
78278
- case "Apple_Terminal":
78279
- return 2;
78280
- }
78281
- }
78282
- if (/-256(color)?$/i.test(env3.TERM)) {
78283
- return 2;
78284
- }
78285
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
78286
- return 1;
78287
- }
78288
- if ("COLORTERM" in env3) {
78289
- return 1;
78290
- }
78291
- return min;
78292
- }
78293
- function getSupportLevel(stream) {
78294
- const level = supportsColor2(stream, stream && stream.isTTY);
78295
- return translateLevel2(level);
78296
- }
78297
- module.exports = {
78298
- supportsColor: getSupportLevel,
78299
- stdout: translateLevel2(supportsColor2(true, tty3.isatty(1))),
78300
- stderr: translateLevel2(supportsColor2(true, tty3.isatty(2)))
78301
- };
78302
- }
78303
- });
78304
-
78305
78190
  // ../../node_modules/debug/src/node.js
78306
78191
  var require_node = __commonJS({
78307
78192
  "../../node_modules/debug/src/node.js"(exports, module) {
@@ -78320,7 +78205,7 @@ var require_node = __commonJS({
78320
78205
  );
78321
78206
  exports.colors = [6, 2, 3, 4, 5, 1];
78322
78207
  try {
78323
- const supportsColor2 = require_supports_color();
78208
+ const supportsColor2 = __require("supports-color");
78324
78209
  if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
78325
78210
  exports.colors = [
78326
78211
  20,
@@ -80220,7 +80105,7 @@ var require_theme = __commonJS({
80220
80105
  });
80221
80106
 
80222
80107
  // ../../node_modules/has-flag/index.js
80223
- var require_has_flag2 = __commonJS({
80108
+ var require_has_flag = __commonJS({
80224
80109
  "../../node_modules/has-flag/index.js"(exports, module) {
80225
80110
  "use strict";
80226
80111
  module.exports = (flag, argv = process.argv) => {
@@ -80233,12 +80118,12 @@ var require_has_flag2 = __commonJS({
80233
80118
  });
80234
80119
 
80235
80120
  // ../../node_modules/@oclif/core/node_modules/supports-color/index.js
80236
- var require_supports_color2 = __commonJS({
80121
+ var require_supports_color = __commonJS({
80237
80122
  "../../node_modules/@oclif/core/node_modules/supports-color/index.js"(exports, module) {
80238
80123
  "use strict";
80239
80124
  var os3 = __require("os");
80240
80125
  var tty3 = __require("tty");
80241
- var hasFlag2 = require_has_flag2();
80126
+ var hasFlag2 = require_has_flag();
80242
80127
  var { env: env3 } = process;
80243
80128
  var flagForceColor2;
80244
80129
  if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
@@ -80347,12 +80232,12 @@ var require_supports_color2 = __commonJS({
80347
80232
  });
80348
80233
 
80349
80234
  // ../../node_modules/@oclif/core/lib/ux/supports-color.js
80350
- var require_supports_color3 = __commonJS({
80235
+ var require_supports_color2 = __commonJS({
80351
80236
  "../../node_modules/@oclif/core/lib/ux/supports-color.js"(exports) {
80352
80237
  "use strict";
80353
80238
  Object.defineProperty(exports, "__esModule", { value: true });
80354
80239
  exports.supportsColor = supportsColor2;
80355
- var supports_color_1 = require_supports_color2();
80240
+ var supports_color_1 = require_supports_color();
80356
80241
  function supportsColor2() {
80357
80242
  return Boolean(supports_color_1.stdout) && Boolean(supports_color_1.stderr);
80358
80243
  }
@@ -80371,7 +80256,7 @@ var require_theme2 = __commonJS({
80371
80256
  exports.parseTheme = parseTheme;
80372
80257
  var ansis_1 = __importDefault(require_ansis());
80373
80258
  var theme_1 = require_theme();
80374
- var supports_color_1 = require_supports_color3();
80259
+ var supports_color_1 = require_supports_color2();
80375
80260
  function isStandardAnsi(color) {
80376
80261
  return theme_1.STANDARD_ANSI.includes(color);
80377
80262
  }
@@ -80710,2234 +80595,6 @@ var require_warn = __commonJS({
80710
80595
  }
80711
80596
  });
80712
80597
 
80713
- // ../../../../node_modules/source-map/lib/base64.js
80714
- var require_base64 = __commonJS({
80715
- "../../../../node_modules/source-map/lib/base64.js"(exports) {
80716
- var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
80717
- exports.encode = function(number4) {
80718
- if (0 <= number4 && number4 < intToCharMap.length) {
80719
- return intToCharMap[number4];
80720
- }
80721
- throw new TypeError("Must be between 0 and 63: " + number4);
80722
- };
80723
- exports.decode = function(charCode) {
80724
- var bigA = 65;
80725
- var bigZ = 90;
80726
- var littleA = 97;
80727
- var littleZ = 122;
80728
- var zero = 48;
80729
- var nine = 57;
80730
- var plus = 43;
80731
- var slash = 47;
80732
- var littleOffset = 26;
80733
- var numberOffset = 52;
80734
- if (bigA <= charCode && charCode <= bigZ) {
80735
- return charCode - bigA;
80736
- }
80737
- if (littleA <= charCode && charCode <= littleZ) {
80738
- return charCode - littleA + littleOffset;
80739
- }
80740
- if (zero <= charCode && charCode <= nine) {
80741
- return charCode - zero + numberOffset;
80742
- }
80743
- if (charCode == plus) {
80744
- return 62;
80745
- }
80746
- if (charCode == slash) {
80747
- return 63;
80748
- }
80749
- return -1;
80750
- };
80751
- }
80752
- });
80753
-
80754
- // ../../../../node_modules/source-map/lib/base64-vlq.js
80755
- var require_base64_vlq = __commonJS({
80756
- "../../../../node_modules/source-map/lib/base64-vlq.js"(exports) {
80757
- var base643 = require_base64();
80758
- var VLQ_BASE_SHIFT = 5;
80759
- var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
80760
- var VLQ_BASE_MASK = VLQ_BASE - 1;
80761
- var VLQ_CONTINUATION_BIT = VLQ_BASE;
80762
- function toVLQSigned(aValue) {
80763
- return aValue < 0 ? (-aValue << 1) + 1 : (aValue << 1) + 0;
80764
- }
80765
- function fromVLQSigned(aValue) {
80766
- var isNegative = (aValue & 1) === 1;
80767
- var shifted = aValue >> 1;
80768
- return isNegative ? -shifted : shifted;
80769
- }
80770
- exports.encode = function base64VLQ_encode(aValue) {
80771
- var encoded = "";
80772
- var digit;
80773
- var vlq = toVLQSigned(aValue);
80774
- do {
80775
- digit = vlq & VLQ_BASE_MASK;
80776
- vlq >>>= VLQ_BASE_SHIFT;
80777
- if (vlq > 0) {
80778
- digit |= VLQ_CONTINUATION_BIT;
80779
- }
80780
- encoded += base643.encode(digit);
80781
- } while (vlq > 0);
80782
- return encoded;
80783
- };
80784
- exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
80785
- var strLen = aStr.length;
80786
- var result = 0;
80787
- var shift = 0;
80788
- var continuation, digit;
80789
- do {
80790
- if (aIndex >= strLen) {
80791
- throw new Error("Expected more digits in base 64 VLQ value.");
80792
- }
80793
- digit = base643.decode(aStr.charCodeAt(aIndex++));
80794
- if (digit === -1) {
80795
- throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1));
80796
- }
80797
- continuation = !!(digit & VLQ_CONTINUATION_BIT);
80798
- digit &= VLQ_BASE_MASK;
80799
- result = result + (digit << shift);
80800
- shift += VLQ_BASE_SHIFT;
80801
- } while (continuation);
80802
- aOutParam.value = fromVLQSigned(result);
80803
- aOutParam.rest = aIndex;
80804
- };
80805
- }
80806
- });
80807
-
80808
- // ../../../../node_modules/source-map/lib/util.js
80809
- var require_util4 = __commonJS({
80810
- "../../../../node_modules/source-map/lib/util.js"(exports) {
80811
- function getArg(aArgs, aName, aDefaultValue) {
80812
- if (aName in aArgs) {
80813
- return aArgs[aName];
80814
- } else if (arguments.length === 3) {
80815
- return aDefaultValue;
80816
- } else {
80817
- throw new Error('"' + aName + '" is a required argument.');
80818
- }
80819
- }
80820
- exports.getArg = getArg;
80821
- var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
80822
- var dataUrlRegexp = /^data:.+\,.+$/;
80823
- function urlParse(aUrl) {
80824
- var match = aUrl.match(urlRegexp);
80825
- if (!match) {
80826
- return null;
80827
- }
80828
- return {
80829
- scheme: match[1],
80830
- auth: match[2],
80831
- host: match[3],
80832
- port: match[4],
80833
- path: match[5]
80834
- };
80835
- }
80836
- exports.urlParse = urlParse;
80837
- function urlGenerate(aParsedUrl) {
80838
- var url3 = "";
80839
- if (aParsedUrl.scheme) {
80840
- url3 += aParsedUrl.scheme + ":";
80841
- }
80842
- url3 += "//";
80843
- if (aParsedUrl.auth) {
80844
- url3 += aParsedUrl.auth + "@";
80845
- }
80846
- if (aParsedUrl.host) {
80847
- url3 += aParsedUrl.host;
80848
- }
80849
- if (aParsedUrl.port) {
80850
- url3 += ":" + aParsedUrl.port;
80851
- }
80852
- if (aParsedUrl.path) {
80853
- url3 += aParsedUrl.path;
80854
- }
80855
- return url3;
80856
- }
80857
- exports.urlGenerate = urlGenerate;
80858
- function normalize2(aPath) {
80859
- var path = aPath;
80860
- var url3 = urlParse(aPath);
80861
- if (url3) {
80862
- if (!url3.path) {
80863
- return aPath;
80864
- }
80865
- path = url3.path;
80866
- }
80867
- var isAbsolute12 = exports.isAbsolute(path);
80868
- var parts = path.split(/\/+/);
80869
- for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
80870
- part = parts[i];
80871
- if (part === ".") {
80872
- parts.splice(i, 1);
80873
- } else if (part === "..") {
80874
- up++;
80875
- } else if (up > 0) {
80876
- if (part === "") {
80877
- parts.splice(i + 1, up);
80878
- up = 0;
80879
- } else {
80880
- parts.splice(i, 2);
80881
- up--;
80882
- }
80883
- }
80884
- }
80885
- path = parts.join("/");
80886
- if (path === "") {
80887
- path = isAbsolute12 ? "/" : ".";
80888
- }
80889
- if (url3) {
80890
- url3.path = path;
80891
- return urlGenerate(url3);
80892
- }
80893
- return path;
80894
- }
80895
- exports.normalize = normalize2;
80896
- function join38(aRoot, aPath) {
80897
- if (aRoot === "") {
80898
- aRoot = ".";
80899
- }
80900
- if (aPath === "") {
80901
- aPath = ".";
80902
- }
80903
- var aPathUrl = urlParse(aPath);
80904
- var aRootUrl = urlParse(aRoot);
80905
- if (aRootUrl) {
80906
- aRoot = aRootUrl.path || "/";
80907
- }
80908
- if (aPathUrl && !aPathUrl.scheme) {
80909
- if (aRootUrl) {
80910
- aPathUrl.scheme = aRootUrl.scheme;
80911
- }
80912
- return urlGenerate(aPathUrl);
80913
- }
80914
- if (aPathUrl || aPath.match(dataUrlRegexp)) {
80915
- return aPath;
80916
- }
80917
- if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {
80918
- aRootUrl.host = aPath;
80919
- return urlGenerate(aRootUrl);
80920
- }
80921
- var joined = aPath.charAt(0) === "/" ? aPath : normalize2(aRoot.replace(/\/+$/, "") + "/" + aPath);
80922
- if (aRootUrl) {
80923
- aRootUrl.path = joined;
80924
- return urlGenerate(aRootUrl);
80925
- }
80926
- return joined;
80927
- }
80928
- exports.join = join38;
80929
- exports.isAbsolute = function(aPath) {
80930
- return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
80931
- };
80932
- function relative12(aRoot, aPath) {
80933
- if (aRoot === "") {
80934
- aRoot = ".";
80935
- }
80936
- aRoot = aRoot.replace(/\/$/, "");
80937
- var level = 0;
80938
- while (aPath.indexOf(aRoot + "/") !== 0) {
80939
- var index = aRoot.lastIndexOf("/");
80940
- if (index < 0) {
80941
- return aPath;
80942
- }
80943
- aRoot = aRoot.slice(0, index);
80944
- if (aRoot.match(/^([^\/]+:\/)?\/*$/)) {
80945
- return aPath;
80946
- }
80947
- ++level;
80948
- }
80949
- return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
80950
- }
80951
- exports.relative = relative12;
80952
- var supportsNullProto = (function() {
80953
- var obj = /* @__PURE__ */ Object.create(null);
80954
- return !("__proto__" in obj);
80955
- })();
80956
- function identity(s) {
80957
- return s;
80958
- }
80959
- function toSetString(aStr) {
80960
- if (isProtoString(aStr)) {
80961
- return "$" + aStr;
80962
- }
80963
- return aStr;
80964
- }
80965
- exports.toSetString = supportsNullProto ? identity : toSetString;
80966
- function fromSetString(aStr) {
80967
- if (isProtoString(aStr)) {
80968
- return aStr.slice(1);
80969
- }
80970
- return aStr;
80971
- }
80972
- exports.fromSetString = supportsNullProto ? identity : fromSetString;
80973
- function isProtoString(s) {
80974
- if (!s) {
80975
- return false;
80976
- }
80977
- var length = s.length;
80978
- if (length < 9) {
80979
- return false;
80980
- }
80981
- if (s.charCodeAt(length - 1) !== 95 || s.charCodeAt(length - 2) !== 95 || s.charCodeAt(length - 3) !== 111 || s.charCodeAt(length - 4) !== 116 || s.charCodeAt(length - 5) !== 111 || s.charCodeAt(length - 6) !== 114 || s.charCodeAt(length - 7) !== 112 || s.charCodeAt(length - 8) !== 95 || s.charCodeAt(length - 9) !== 95) {
80982
- return false;
80983
- }
80984
- for (var i = length - 10; i >= 0; i--) {
80985
- if (s.charCodeAt(i) !== 36) {
80986
- return false;
80987
- }
80988
- }
80989
- return true;
80990
- }
80991
- function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {
80992
- var cmp = strcmp(mappingA.source, mappingB.source);
80993
- if (cmp !== 0) {
80994
- return cmp;
80995
- }
80996
- cmp = mappingA.originalLine - mappingB.originalLine;
80997
- if (cmp !== 0) {
80998
- return cmp;
80999
- }
81000
- cmp = mappingA.originalColumn - mappingB.originalColumn;
81001
- if (cmp !== 0 || onlyCompareOriginal) {
81002
- return cmp;
81003
- }
81004
- cmp = mappingA.generatedColumn - mappingB.generatedColumn;
81005
- if (cmp !== 0) {
81006
- return cmp;
81007
- }
81008
- cmp = mappingA.generatedLine - mappingB.generatedLine;
81009
- if (cmp !== 0) {
81010
- return cmp;
81011
- }
81012
- return strcmp(mappingA.name, mappingB.name);
81013
- }
81014
- exports.compareByOriginalPositions = compareByOriginalPositions;
81015
- function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
81016
- var cmp = mappingA.generatedLine - mappingB.generatedLine;
81017
- if (cmp !== 0) {
81018
- return cmp;
81019
- }
81020
- cmp = mappingA.generatedColumn - mappingB.generatedColumn;
81021
- if (cmp !== 0 || onlyCompareGenerated) {
81022
- return cmp;
81023
- }
81024
- cmp = strcmp(mappingA.source, mappingB.source);
81025
- if (cmp !== 0) {
81026
- return cmp;
81027
- }
81028
- cmp = mappingA.originalLine - mappingB.originalLine;
81029
- if (cmp !== 0) {
81030
- return cmp;
81031
- }
81032
- cmp = mappingA.originalColumn - mappingB.originalColumn;
81033
- if (cmp !== 0) {
81034
- return cmp;
81035
- }
81036
- return strcmp(mappingA.name, mappingB.name);
81037
- }
81038
- exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
81039
- function strcmp(aStr1, aStr2) {
81040
- if (aStr1 === aStr2) {
81041
- return 0;
81042
- }
81043
- if (aStr1 === null) {
81044
- return 1;
81045
- }
81046
- if (aStr2 === null) {
81047
- return -1;
81048
- }
81049
- if (aStr1 > aStr2) {
81050
- return 1;
81051
- }
81052
- return -1;
81053
- }
81054
- function compareByGeneratedPositionsInflated(mappingA, mappingB) {
81055
- var cmp = mappingA.generatedLine - mappingB.generatedLine;
81056
- if (cmp !== 0) {
81057
- return cmp;
81058
- }
81059
- cmp = mappingA.generatedColumn - mappingB.generatedColumn;
81060
- if (cmp !== 0) {
81061
- return cmp;
81062
- }
81063
- cmp = strcmp(mappingA.source, mappingB.source);
81064
- if (cmp !== 0) {
81065
- return cmp;
81066
- }
81067
- cmp = mappingA.originalLine - mappingB.originalLine;
81068
- if (cmp !== 0) {
81069
- return cmp;
81070
- }
81071
- cmp = mappingA.originalColumn - mappingB.originalColumn;
81072
- if (cmp !== 0) {
81073
- return cmp;
81074
- }
81075
- return strcmp(mappingA.name, mappingB.name);
81076
- }
81077
- exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
81078
- function parseSourceMapInput(str) {
81079
- return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ""));
81080
- }
81081
- exports.parseSourceMapInput = parseSourceMapInput;
81082
- function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {
81083
- sourceURL = sourceURL || "";
81084
- if (sourceRoot) {
81085
- if (sourceRoot[sourceRoot.length - 1] !== "/" && sourceURL[0] !== "/") {
81086
- sourceRoot += "/";
81087
- }
81088
- sourceURL = sourceRoot + sourceURL;
81089
- }
81090
- if (sourceMapURL) {
81091
- var parsed = urlParse(sourceMapURL);
81092
- if (!parsed) {
81093
- throw new Error("sourceMapURL could not be parsed");
81094
- }
81095
- if (parsed.path) {
81096
- var index = parsed.path.lastIndexOf("/");
81097
- if (index >= 0) {
81098
- parsed.path = parsed.path.substring(0, index + 1);
81099
- }
81100
- }
81101
- sourceURL = join38(urlGenerate(parsed), sourceURL);
81102
- }
81103
- return normalize2(sourceURL);
81104
- }
81105
- exports.computeSourceURL = computeSourceURL;
81106
- }
81107
- });
81108
-
81109
- // ../../../../node_modules/source-map/lib/array-set.js
81110
- var require_array_set = __commonJS({
81111
- "../../../../node_modules/source-map/lib/array-set.js"(exports) {
81112
- var util2 = require_util4();
81113
- var has = Object.prototype.hasOwnProperty;
81114
- var hasNativeMap = typeof Map !== "undefined";
81115
- function ArraySet() {
81116
- this._array = [];
81117
- this._set = hasNativeMap ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
81118
- }
81119
- ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
81120
- var set2 = new ArraySet();
81121
- for (var i = 0, len = aArray.length; i < len; i++) {
81122
- set2.add(aArray[i], aAllowDuplicates);
81123
- }
81124
- return set2;
81125
- };
81126
- ArraySet.prototype.size = function ArraySet_size() {
81127
- return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;
81128
- };
81129
- ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {
81130
- var sStr = hasNativeMap ? aStr : util2.toSetString(aStr);
81131
- var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);
81132
- var idx = this._array.length;
81133
- if (!isDuplicate || aAllowDuplicates) {
81134
- this._array.push(aStr);
81135
- }
81136
- if (!isDuplicate) {
81137
- if (hasNativeMap) {
81138
- this._set.set(aStr, idx);
81139
- } else {
81140
- this._set[sStr] = idx;
81141
- }
81142
- }
81143
- };
81144
- ArraySet.prototype.has = function ArraySet_has(aStr) {
81145
- if (hasNativeMap) {
81146
- return this._set.has(aStr);
81147
- } else {
81148
- var sStr = util2.toSetString(aStr);
81149
- return has.call(this._set, sStr);
81150
- }
81151
- };
81152
- ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {
81153
- if (hasNativeMap) {
81154
- var idx = this._set.get(aStr);
81155
- if (idx >= 0) {
81156
- return idx;
81157
- }
81158
- } else {
81159
- var sStr = util2.toSetString(aStr);
81160
- if (has.call(this._set, sStr)) {
81161
- return this._set[sStr];
81162
- }
81163
- }
81164
- throw new Error('"' + aStr + '" is not in the set.');
81165
- };
81166
- ArraySet.prototype.at = function ArraySet_at(aIdx) {
81167
- if (aIdx >= 0 && aIdx < this._array.length) {
81168
- return this._array[aIdx];
81169
- }
81170
- throw new Error("No element indexed by " + aIdx);
81171
- };
81172
- ArraySet.prototype.toArray = function ArraySet_toArray() {
81173
- return this._array.slice();
81174
- };
81175
- exports.ArraySet = ArraySet;
81176
- }
81177
- });
81178
-
81179
- // ../../../../node_modules/source-map/lib/mapping-list.js
81180
- var require_mapping_list = __commonJS({
81181
- "../../../../node_modules/source-map/lib/mapping-list.js"(exports) {
81182
- var util2 = require_util4();
81183
- function generatedPositionAfter(mappingA, mappingB) {
81184
- var lineA = mappingA.generatedLine;
81185
- var lineB = mappingB.generatedLine;
81186
- var columnA = mappingA.generatedColumn;
81187
- var columnB = mappingB.generatedColumn;
81188
- return lineB > lineA || lineB == lineA && columnB >= columnA || util2.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
81189
- }
81190
- function MappingList() {
81191
- this._array = [];
81192
- this._sorted = true;
81193
- this._last = { generatedLine: -1, generatedColumn: 0 };
81194
- }
81195
- MappingList.prototype.unsortedForEach = function MappingList_forEach(aCallback, aThisArg) {
81196
- this._array.forEach(aCallback, aThisArg);
81197
- };
81198
- MappingList.prototype.add = function MappingList_add(aMapping) {
81199
- if (generatedPositionAfter(this._last, aMapping)) {
81200
- this._last = aMapping;
81201
- this._array.push(aMapping);
81202
- } else {
81203
- this._sorted = false;
81204
- this._array.push(aMapping);
81205
- }
81206
- };
81207
- MappingList.prototype.toArray = function MappingList_toArray() {
81208
- if (!this._sorted) {
81209
- this._array.sort(util2.compareByGeneratedPositionsInflated);
81210
- this._sorted = true;
81211
- }
81212
- return this._array;
81213
- };
81214
- exports.MappingList = MappingList;
81215
- }
81216
- });
81217
-
81218
- // ../../../../node_modules/source-map/lib/source-map-generator.js
81219
- var require_source_map_generator = __commonJS({
81220
- "../../../../node_modules/source-map/lib/source-map-generator.js"(exports) {
81221
- var base64VLQ = require_base64_vlq();
81222
- var util2 = require_util4();
81223
- var ArraySet = require_array_set().ArraySet;
81224
- var MappingList = require_mapping_list().MappingList;
81225
- function SourceMapGenerator(aArgs) {
81226
- if (!aArgs) {
81227
- aArgs = {};
81228
- }
81229
- this._file = util2.getArg(aArgs, "file", null);
81230
- this._sourceRoot = util2.getArg(aArgs, "sourceRoot", null);
81231
- this._skipValidation = util2.getArg(aArgs, "skipValidation", false);
81232
- this._sources = new ArraySet();
81233
- this._names = new ArraySet();
81234
- this._mappings = new MappingList();
81235
- this._sourcesContents = null;
81236
- }
81237
- SourceMapGenerator.prototype._version = 3;
81238
- SourceMapGenerator.fromSourceMap = function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) {
81239
- var sourceRoot = aSourceMapConsumer.sourceRoot;
81240
- var generator = new SourceMapGenerator({
81241
- file: aSourceMapConsumer.file,
81242
- sourceRoot
81243
- });
81244
- aSourceMapConsumer.eachMapping(function(mapping) {
81245
- var newMapping = {
81246
- generated: {
81247
- line: mapping.generatedLine,
81248
- column: mapping.generatedColumn
81249
- }
81250
- };
81251
- if (mapping.source != null) {
81252
- newMapping.source = mapping.source;
81253
- if (sourceRoot != null) {
81254
- newMapping.source = util2.relative(sourceRoot, newMapping.source);
81255
- }
81256
- newMapping.original = {
81257
- line: mapping.originalLine,
81258
- column: mapping.originalColumn
81259
- };
81260
- if (mapping.name != null) {
81261
- newMapping.name = mapping.name;
81262
- }
81263
- }
81264
- generator.addMapping(newMapping);
81265
- });
81266
- aSourceMapConsumer.sources.forEach(function(sourceFile) {
81267
- var sourceRelative = sourceFile;
81268
- if (sourceRoot !== null) {
81269
- sourceRelative = util2.relative(sourceRoot, sourceFile);
81270
- }
81271
- if (!generator._sources.has(sourceRelative)) {
81272
- generator._sources.add(sourceRelative);
81273
- }
81274
- var content = aSourceMapConsumer.sourceContentFor(sourceFile);
81275
- if (content != null) {
81276
- generator.setSourceContent(sourceFile, content);
81277
- }
81278
- });
81279
- return generator;
81280
- };
81281
- SourceMapGenerator.prototype.addMapping = function SourceMapGenerator_addMapping(aArgs) {
81282
- var generated = util2.getArg(aArgs, "generated");
81283
- var original = util2.getArg(aArgs, "original", null);
81284
- var source = util2.getArg(aArgs, "source", null);
81285
- var name = util2.getArg(aArgs, "name", null);
81286
- if (!this._skipValidation) {
81287
- this._validateMapping(generated, original, source, name);
81288
- }
81289
- if (source != null) {
81290
- source = String(source);
81291
- if (!this._sources.has(source)) {
81292
- this._sources.add(source);
81293
- }
81294
- }
81295
- if (name != null) {
81296
- name = String(name);
81297
- if (!this._names.has(name)) {
81298
- this._names.add(name);
81299
- }
81300
- }
81301
- this._mappings.add({
81302
- generatedLine: generated.line,
81303
- generatedColumn: generated.column,
81304
- originalLine: original != null && original.line,
81305
- originalColumn: original != null && original.column,
81306
- source,
81307
- name
81308
- });
81309
- };
81310
- SourceMapGenerator.prototype.setSourceContent = function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
81311
- var source = aSourceFile;
81312
- if (this._sourceRoot != null) {
81313
- source = util2.relative(this._sourceRoot, source);
81314
- }
81315
- if (aSourceContent != null) {
81316
- if (!this._sourcesContents) {
81317
- this._sourcesContents = /* @__PURE__ */ Object.create(null);
81318
- }
81319
- this._sourcesContents[util2.toSetString(source)] = aSourceContent;
81320
- } else if (this._sourcesContents) {
81321
- delete this._sourcesContents[util2.toSetString(source)];
81322
- if (Object.keys(this._sourcesContents).length === 0) {
81323
- this._sourcesContents = null;
81324
- }
81325
- }
81326
- };
81327
- SourceMapGenerator.prototype.applySourceMap = function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {
81328
- var sourceFile = aSourceFile;
81329
- if (aSourceFile == null) {
81330
- if (aSourceMapConsumer.file == null) {
81331
- throw new Error(
81332
- `SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`
81333
- );
81334
- }
81335
- sourceFile = aSourceMapConsumer.file;
81336
- }
81337
- var sourceRoot = this._sourceRoot;
81338
- if (sourceRoot != null) {
81339
- sourceFile = util2.relative(sourceRoot, sourceFile);
81340
- }
81341
- var newSources = new ArraySet();
81342
- var newNames = new ArraySet();
81343
- this._mappings.unsortedForEach(function(mapping) {
81344
- if (mapping.source === sourceFile && mapping.originalLine != null) {
81345
- var original = aSourceMapConsumer.originalPositionFor({
81346
- line: mapping.originalLine,
81347
- column: mapping.originalColumn
81348
- });
81349
- if (original.source != null) {
81350
- mapping.source = original.source;
81351
- if (aSourceMapPath != null) {
81352
- mapping.source = util2.join(aSourceMapPath, mapping.source);
81353
- }
81354
- if (sourceRoot != null) {
81355
- mapping.source = util2.relative(sourceRoot, mapping.source);
81356
- }
81357
- mapping.originalLine = original.line;
81358
- mapping.originalColumn = original.column;
81359
- if (original.name != null) {
81360
- mapping.name = original.name;
81361
- }
81362
- }
81363
- }
81364
- var source = mapping.source;
81365
- if (source != null && !newSources.has(source)) {
81366
- newSources.add(source);
81367
- }
81368
- var name = mapping.name;
81369
- if (name != null && !newNames.has(name)) {
81370
- newNames.add(name);
81371
- }
81372
- }, this);
81373
- this._sources = newSources;
81374
- this._names = newNames;
81375
- aSourceMapConsumer.sources.forEach(function(sourceFile2) {
81376
- var content = aSourceMapConsumer.sourceContentFor(sourceFile2);
81377
- if (content != null) {
81378
- if (aSourceMapPath != null) {
81379
- sourceFile2 = util2.join(aSourceMapPath, sourceFile2);
81380
- }
81381
- if (sourceRoot != null) {
81382
- sourceFile2 = util2.relative(sourceRoot, sourceFile2);
81383
- }
81384
- this.setSourceContent(sourceFile2, content);
81385
- }
81386
- }, this);
81387
- };
81388
- SourceMapGenerator.prototype._validateMapping = function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, aName) {
81389
- if (aOriginal && typeof aOriginal.line !== "number" && typeof aOriginal.column !== "number") {
81390
- throw new Error(
81391
- "original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values."
81392
- );
81393
- }
81394
- if (aGenerated && "line" in aGenerated && "column" in aGenerated && aGenerated.line > 0 && aGenerated.column >= 0 && !aOriginal && !aSource && !aName) {
81395
- return;
81396
- } else if (aGenerated && "line" in aGenerated && "column" in aGenerated && aOriginal && "line" in aOriginal && "column" in aOriginal && aGenerated.line > 0 && aGenerated.column >= 0 && aOriginal.line > 0 && aOriginal.column >= 0 && aSource) {
81397
- return;
81398
- } else {
81399
- throw new Error("Invalid mapping: " + JSON.stringify({
81400
- generated: aGenerated,
81401
- source: aSource,
81402
- original: aOriginal,
81403
- name: aName
81404
- }));
81405
- }
81406
- };
81407
- SourceMapGenerator.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() {
81408
- var previousGeneratedColumn = 0;
81409
- var previousGeneratedLine = 1;
81410
- var previousOriginalColumn = 0;
81411
- var previousOriginalLine = 0;
81412
- var previousName = 0;
81413
- var previousSource = 0;
81414
- var result = "";
81415
- var next;
81416
- var mapping;
81417
- var nameIdx;
81418
- var sourceIdx;
81419
- var mappings = this._mappings.toArray();
81420
- for (var i = 0, len = mappings.length; i < len; i++) {
81421
- mapping = mappings[i];
81422
- next = "";
81423
- if (mapping.generatedLine !== previousGeneratedLine) {
81424
- previousGeneratedColumn = 0;
81425
- while (mapping.generatedLine !== previousGeneratedLine) {
81426
- next += ";";
81427
- previousGeneratedLine++;
81428
- }
81429
- } else {
81430
- if (i > 0) {
81431
- if (!util2.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) {
81432
- continue;
81433
- }
81434
- next += ",";
81435
- }
81436
- }
81437
- next += base64VLQ.encode(mapping.generatedColumn - previousGeneratedColumn);
81438
- previousGeneratedColumn = mapping.generatedColumn;
81439
- if (mapping.source != null) {
81440
- sourceIdx = this._sources.indexOf(mapping.source);
81441
- next += base64VLQ.encode(sourceIdx - previousSource);
81442
- previousSource = sourceIdx;
81443
- next += base64VLQ.encode(mapping.originalLine - 1 - previousOriginalLine);
81444
- previousOriginalLine = mapping.originalLine - 1;
81445
- next += base64VLQ.encode(mapping.originalColumn - previousOriginalColumn);
81446
- previousOriginalColumn = mapping.originalColumn;
81447
- if (mapping.name != null) {
81448
- nameIdx = this._names.indexOf(mapping.name);
81449
- next += base64VLQ.encode(nameIdx - previousName);
81450
- previousName = nameIdx;
81451
- }
81452
- }
81453
- result += next;
81454
- }
81455
- return result;
81456
- };
81457
- SourceMapGenerator.prototype._generateSourcesContent = function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {
81458
- return aSources.map(function(source) {
81459
- if (!this._sourcesContents) {
81460
- return null;
81461
- }
81462
- if (aSourceRoot != null) {
81463
- source = util2.relative(aSourceRoot, source);
81464
- }
81465
- var key = util2.toSetString(source);
81466
- return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) ? this._sourcesContents[key] : null;
81467
- }, this);
81468
- };
81469
- SourceMapGenerator.prototype.toJSON = function SourceMapGenerator_toJSON() {
81470
- var map2 = {
81471
- version: this._version,
81472
- sources: this._sources.toArray(),
81473
- names: this._names.toArray(),
81474
- mappings: this._serializeMappings()
81475
- };
81476
- if (this._file != null) {
81477
- map2.file = this._file;
81478
- }
81479
- if (this._sourceRoot != null) {
81480
- map2.sourceRoot = this._sourceRoot;
81481
- }
81482
- if (this._sourcesContents) {
81483
- map2.sourcesContent = this._generateSourcesContent(map2.sources, map2.sourceRoot);
81484
- }
81485
- return map2;
81486
- };
81487
- SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
81488
- return JSON.stringify(this.toJSON());
81489
- };
81490
- exports.SourceMapGenerator = SourceMapGenerator;
81491
- }
81492
- });
81493
-
81494
- // ../../../../node_modules/source-map/lib/binary-search.js
81495
- var require_binary_search = __commonJS({
81496
- "../../../../node_modules/source-map/lib/binary-search.js"(exports) {
81497
- exports.GREATEST_LOWER_BOUND = 1;
81498
- exports.LEAST_UPPER_BOUND = 2;
81499
- function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
81500
- var mid = Math.floor((aHigh - aLow) / 2) + aLow;
81501
- var cmp = aCompare(aNeedle, aHaystack[mid], true);
81502
- if (cmp === 0) {
81503
- return mid;
81504
- } else if (cmp > 0) {
81505
- if (aHigh - mid > 1) {
81506
- return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
81507
- }
81508
- if (aBias == exports.LEAST_UPPER_BOUND) {
81509
- return aHigh < aHaystack.length ? aHigh : -1;
81510
- } else {
81511
- return mid;
81512
- }
81513
- } else {
81514
- if (mid - aLow > 1) {
81515
- return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
81516
- }
81517
- if (aBias == exports.LEAST_UPPER_BOUND) {
81518
- return mid;
81519
- } else {
81520
- return aLow < 0 ? -1 : aLow;
81521
- }
81522
- }
81523
- }
81524
- exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
81525
- if (aHaystack.length === 0) {
81526
- return -1;
81527
- }
81528
- var index = recursiveSearch(
81529
- -1,
81530
- aHaystack.length,
81531
- aNeedle,
81532
- aHaystack,
81533
- aCompare,
81534
- aBias || exports.GREATEST_LOWER_BOUND
81535
- );
81536
- if (index < 0) {
81537
- return -1;
81538
- }
81539
- while (index - 1 >= 0) {
81540
- if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {
81541
- break;
81542
- }
81543
- --index;
81544
- }
81545
- return index;
81546
- };
81547
- }
81548
- });
81549
-
81550
- // ../../../../node_modules/source-map/lib/quick-sort.js
81551
- var require_quick_sort = __commonJS({
81552
- "../../../../node_modules/source-map/lib/quick-sort.js"(exports) {
81553
- function swap(ary, x, y) {
81554
- var temp = ary[x];
81555
- ary[x] = ary[y];
81556
- ary[y] = temp;
81557
- }
81558
- function randomIntInRange(low, high) {
81559
- return Math.round(low + Math.random() * (high - low));
81560
- }
81561
- function doQuickSort(ary, comparator, p, r) {
81562
- if (p < r) {
81563
- var pivotIndex = randomIntInRange(p, r);
81564
- var i = p - 1;
81565
- swap(ary, pivotIndex, r);
81566
- var pivot = ary[r];
81567
- for (var j = p; j < r; j++) {
81568
- if (comparator(ary[j], pivot) <= 0) {
81569
- i += 1;
81570
- swap(ary, i, j);
81571
- }
81572
- }
81573
- swap(ary, i + 1, j);
81574
- var q = i + 1;
81575
- doQuickSort(ary, comparator, p, q - 1);
81576
- doQuickSort(ary, comparator, q + 1, r);
81577
- }
81578
- }
81579
- exports.quickSort = function(ary, comparator) {
81580
- doQuickSort(ary, comparator, 0, ary.length - 1);
81581
- };
81582
- }
81583
- });
81584
-
81585
- // ../../../../node_modules/source-map/lib/source-map-consumer.js
81586
- var require_source_map_consumer = __commonJS({
81587
- "../../../../node_modules/source-map/lib/source-map-consumer.js"(exports) {
81588
- var util2 = require_util4();
81589
- var binarySearch = require_binary_search();
81590
- var ArraySet = require_array_set().ArraySet;
81591
- var base64VLQ = require_base64_vlq();
81592
- var quickSort = require_quick_sort().quickSort;
81593
- function SourceMapConsumer(aSourceMap, aSourceMapURL) {
81594
- var sourceMap = aSourceMap;
81595
- if (typeof aSourceMap === "string") {
81596
- sourceMap = util2.parseSourceMapInput(aSourceMap);
81597
- }
81598
- return sourceMap.sections != null ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
81599
- }
81600
- SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {
81601
- return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
81602
- };
81603
- SourceMapConsumer.prototype._version = 3;
81604
- SourceMapConsumer.prototype.__generatedMappings = null;
81605
- Object.defineProperty(SourceMapConsumer.prototype, "_generatedMappings", {
81606
- configurable: true,
81607
- enumerable: true,
81608
- get: function() {
81609
- if (!this.__generatedMappings) {
81610
- this._parseMappings(this._mappings, this.sourceRoot);
81611
- }
81612
- return this.__generatedMappings;
81613
- }
81614
- });
81615
- SourceMapConsumer.prototype.__originalMappings = null;
81616
- Object.defineProperty(SourceMapConsumer.prototype, "_originalMappings", {
81617
- configurable: true,
81618
- enumerable: true,
81619
- get: function() {
81620
- if (!this.__originalMappings) {
81621
- this._parseMappings(this._mappings, this.sourceRoot);
81622
- }
81623
- return this.__originalMappings;
81624
- }
81625
- });
81626
- SourceMapConsumer.prototype._charIsMappingSeparator = function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
81627
- var c = aStr.charAt(index);
81628
- return c === ";" || c === ",";
81629
- };
81630
- SourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
81631
- throw new Error("Subclasses must implement _parseMappings");
81632
- };
81633
- SourceMapConsumer.GENERATED_ORDER = 1;
81634
- SourceMapConsumer.ORIGINAL_ORDER = 2;
81635
- SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
81636
- SourceMapConsumer.LEAST_UPPER_BOUND = 2;
81637
- SourceMapConsumer.prototype.eachMapping = function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
81638
- var context = aContext || null;
81639
- var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
81640
- var mappings;
81641
- switch (order) {
81642
- case SourceMapConsumer.GENERATED_ORDER:
81643
- mappings = this._generatedMappings;
81644
- break;
81645
- case SourceMapConsumer.ORIGINAL_ORDER:
81646
- mappings = this._originalMappings;
81647
- break;
81648
- default:
81649
- throw new Error("Unknown order of iteration.");
81650
- }
81651
- var sourceRoot = this.sourceRoot;
81652
- mappings.map(function(mapping) {
81653
- var source = mapping.source === null ? null : this._sources.at(mapping.source);
81654
- source = util2.computeSourceURL(sourceRoot, source, this._sourceMapURL);
81655
- return {
81656
- source,
81657
- generatedLine: mapping.generatedLine,
81658
- generatedColumn: mapping.generatedColumn,
81659
- originalLine: mapping.originalLine,
81660
- originalColumn: mapping.originalColumn,
81661
- name: mapping.name === null ? null : this._names.at(mapping.name)
81662
- };
81663
- }, this).forEach(aCallback, context);
81664
- };
81665
- SourceMapConsumer.prototype.allGeneratedPositionsFor = function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
81666
- var line = util2.getArg(aArgs, "line");
81667
- var needle = {
81668
- source: util2.getArg(aArgs, "source"),
81669
- originalLine: line,
81670
- originalColumn: util2.getArg(aArgs, "column", 0)
81671
- };
81672
- needle.source = this._findSourceIndex(needle.source);
81673
- if (needle.source < 0) {
81674
- return [];
81675
- }
81676
- var mappings = [];
81677
- var index = this._findMapping(
81678
- needle,
81679
- this._originalMappings,
81680
- "originalLine",
81681
- "originalColumn",
81682
- util2.compareByOriginalPositions,
81683
- binarySearch.LEAST_UPPER_BOUND
81684
- );
81685
- if (index >= 0) {
81686
- var mapping = this._originalMappings[index];
81687
- if (aArgs.column === void 0) {
81688
- var originalLine = mapping.originalLine;
81689
- while (mapping && mapping.originalLine === originalLine) {
81690
- mappings.push({
81691
- line: util2.getArg(mapping, "generatedLine", null),
81692
- column: util2.getArg(mapping, "generatedColumn", null),
81693
- lastColumn: util2.getArg(mapping, "lastGeneratedColumn", null)
81694
- });
81695
- mapping = this._originalMappings[++index];
81696
- }
81697
- } else {
81698
- var originalColumn = mapping.originalColumn;
81699
- while (mapping && mapping.originalLine === line && mapping.originalColumn == originalColumn) {
81700
- mappings.push({
81701
- line: util2.getArg(mapping, "generatedLine", null),
81702
- column: util2.getArg(mapping, "generatedColumn", null),
81703
- lastColumn: util2.getArg(mapping, "lastGeneratedColumn", null)
81704
- });
81705
- mapping = this._originalMappings[++index];
81706
- }
81707
- }
81708
- }
81709
- return mappings;
81710
- };
81711
- exports.SourceMapConsumer = SourceMapConsumer;
81712
- function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
81713
- var sourceMap = aSourceMap;
81714
- if (typeof aSourceMap === "string") {
81715
- sourceMap = util2.parseSourceMapInput(aSourceMap);
81716
- }
81717
- var version2 = util2.getArg(sourceMap, "version");
81718
- var sources = util2.getArg(sourceMap, "sources");
81719
- var names = util2.getArg(sourceMap, "names", []);
81720
- var sourceRoot = util2.getArg(sourceMap, "sourceRoot", null);
81721
- var sourcesContent = util2.getArg(sourceMap, "sourcesContent", null);
81722
- var mappings = util2.getArg(sourceMap, "mappings");
81723
- var file2 = util2.getArg(sourceMap, "file", null);
81724
- if (version2 != this._version) {
81725
- throw new Error("Unsupported version: " + version2);
81726
- }
81727
- if (sourceRoot) {
81728
- sourceRoot = util2.normalize(sourceRoot);
81729
- }
81730
- sources = sources.map(String).map(util2.normalize).map(function(source) {
81731
- return sourceRoot && util2.isAbsolute(sourceRoot) && util2.isAbsolute(source) ? util2.relative(sourceRoot, source) : source;
81732
- });
81733
- this._names = ArraySet.fromArray(names.map(String), true);
81734
- this._sources = ArraySet.fromArray(sources, true);
81735
- this._absoluteSources = this._sources.toArray().map(function(s) {
81736
- return util2.computeSourceURL(sourceRoot, s, aSourceMapURL);
81737
- });
81738
- this.sourceRoot = sourceRoot;
81739
- this.sourcesContent = sourcesContent;
81740
- this._mappings = mappings;
81741
- this._sourceMapURL = aSourceMapURL;
81742
- this.file = file2;
81743
- }
81744
- BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
81745
- BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
81746
- BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {
81747
- var relativeSource = aSource;
81748
- if (this.sourceRoot != null) {
81749
- relativeSource = util2.relative(this.sourceRoot, relativeSource);
81750
- }
81751
- if (this._sources.has(relativeSource)) {
81752
- return this._sources.indexOf(relativeSource);
81753
- }
81754
- var i;
81755
- for (i = 0; i < this._absoluteSources.length; ++i) {
81756
- if (this._absoluteSources[i] == aSource) {
81757
- return i;
81758
- }
81759
- }
81760
- return -1;
81761
- };
81762
- BasicSourceMapConsumer.fromSourceMap = function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) {
81763
- var smc = Object.create(BasicSourceMapConsumer.prototype);
81764
- var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
81765
- var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
81766
- smc.sourceRoot = aSourceMap._sourceRoot;
81767
- smc.sourcesContent = aSourceMap._generateSourcesContent(
81768
- smc._sources.toArray(),
81769
- smc.sourceRoot
81770
- );
81771
- smc.file = aSourceMap._file;
81772
- smc._sourceMapURL = aSourceMapURL;
81773
- smc._absoluteSources = smc._sources.toArray().map(function(s) {
81774
- return util2.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
81775
- });
81776
- var generatedMappings = aSourceMap._mappings.toArray().slice();
81777
- var destGeneratedMappings = smc.__generatedMappings = [];
81778
- var destOriginalMappings = smc.__originalMappings = [];
81779
- for (var i = 0, length = generatedMappings.length; i < length; i++) {
81780
- var srcMapping = generatedMappings[i];
81781
- var destMapping = new Mapping();
81782
- destMapping.generatedLine = srcMapping.generatedLine;
81783
- destMapping.generatedColumn = srcMapping.generatedColumn;
81784
- if (srcMapping.source) {
81785
- destMapping.source = sources.indexOf(srcMapping.source);
81786
- destMapping.originalLine = srcMapping.originalLine;
81787
- destMapping.originalColumn = srcMapping.originalColumn;
81788
- if (srcMapping.name) {
81789
- destMapping.name = names.indexOf(srcMapping.name);
81790
- }
81791
- destOriginalMappings.push(destMapping);
81792
- }
81793
- destGeneratedMappings.push(destMapping);
81794
- }
81795
- quickSort(smc.__originalMappings, util2.compareByOriginalPositions);
81796
- return smc;
81797
- };
81798
- BasicSourceMapConsumer.prototype._version = 3;
81799
- Object.defineProperty(BasicSourceMapConsumer.prototype, "sources", {
81800
- get: function() {
81801
- return this._absoluteSources.slice();
81802
- }
81803
- });
81804
- function Mapping() {
81805
- this.generatedLine = 0;
81806
- this.generatedColumn = 0;
81807
- this.source = null;
81808
- this.originalLine = null;
81809
- this.originalColumn = null;
81810
- this.name = null;
81811
- }
81812
- BasicSourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
81813
- var generatedLine = 1;
81814
- var previousGeneratedColumn = 0;
81815
- var previousOriginalLine = 0;
81816
- var previousOriginalColumn = 0;
81817
- var previousSource = 0;
81818
- var previousName = 0;
81819
- var length = aStr.length;
81820
- var index = 0;
81821
- var cachedSegments = {};
81822
- var temp = {};
81823
- var originalMappings = [];
81824
- var generatedMappings = [];
81825
- var mapping, str, segment, end, value;
81826
- while (index < length) {
81827
- if (aStr.charAt(index) === ";") {
81828
- generatedLine++;
81829
- index++;
81830
- previousGeneratedColumn = 0;
81831
- } else if (aStr.charAt(index) === ",") {
81832
- index++;
81833
- } else {
81834
- mapping = new Mapping();
81835
- mapping.generatedLine = generatedLine;
81836
- for (end = index; end < length; end++) {
81837
- if (this._charIsMappingSeparator(aStr, end)) {
81838
- break;
81839
- }
81840
- }
81841
- str = aStr.slice(index, end);
81842
- segment = cachedSegments[str];
81843
- if (segment) {
81844
- index += str.length;
81845
- } else {
81846
- segment = [];
81847
- while (index < end) {
81848
- base64VLQ.decode(aStr, index, temp);
81849
- value = temp.value;
81850
- index = temp.rest;
81851
- segment.push(value);
81852
- }
81853
- if (segment.length === 2) {
81854
- throw new Error("Found a source, but no line and column");
81855
- }
81856
- if (segment.length === 3) {
81857
- throw new Error("Found a source and line, but no column");
81858
- }
81859
- cachedSegments[str] = segment;
81860
- }
81861
- mapping.generatedColumn = previousGeneratedColumn + segment[0];
81862
- previousGeneratedColumn = mapping.generatedColumn;
81863
- if (segment.length > 1) {
81864
- mapping.source = previousSource + segment[1];
81865
- previousSource += segment[1];
81866
- mapping.originalLine = previousOriginalLine + segment[2];
81867
- previousOriginalLine = mapping.originalLine;
81868
- mapping.originalLine += 1;
81869
- mapping.originalColumn = previousOriginalColumn + segment[3];
81870
- previousOriginalColumn = mapping.originalColumn;
81871
- if (segment.length > 4) {
81872
- mapping.name = previousName + segment[4];
81873
- previousName += segment[4];
81874
- }
81875
- }
81876
- generatedMappings.push(mapping);
81877
- if (typeof mapping.originalLine === "number") {
81878
- originalMappings.push(mapping);
81879
- }
81880
- }
81881
- }
81882
- quickSort(generatedMappings, util2.compareByGeneratedPositionsDeflated);
81883
- this.__generatedMappings = generatedMappings;
81884
- quickSort(originalMappings, util2.compareByOriginalPositions);
81885
- this.__originalMappings = originalMappings;
81886
- };
81887
- BasicSourceMapConsumer.prototype._findMapping = function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, aColumnName, aComparator, aBias) {
81888
- if (aNeedle[aLineName] <= 0) {
81889
- throw new TypeError("Line must be greater than or equal to 1, got " + aNeedle[aLineName]);
81890
- }
81891
- if (aNeedle[aColumnName] < 0) {
81892
- throw new TypeError("Column must be greater than or equal to 0, got " + aNeedle[aColumnName]);
81893
- }
81894
- return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
81895
- };
81896
- BasicSourceMapConsumer.prototype.computeColumnSpans = function SourceMapConsumer_computeColumnSpans() {
81897
- for (var index = 0; index < this._generatedMappings.length; ++index) {
81898
- var mapping = this._generatedMappings[index];
81899
- if (index + 1 < this._generatedMappings.length) {
81900
- var nextMapping = this._generatedMappings[index + 1];
81901
- if (mapping.generatedLine === nextMapping.generatedLine) {
81902
- mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
81903
- continue;
81904
- }
81905
- }
81906
- mapping.lastGeneratedColumn = Infinity;
81907
- }
81908
- };
81909
- BasicSourceMapConsumer.prototype.originalPositionFor = function SourceMapConsumer_originalPositionFor(aArgs) {
81910
- var needle = {
81911
- generatedLine: util2.getArg(aArgs, "line"),
81912
- generatedColumn: util2.getArg(aArgs, "column")
81913
- };
81914
- var index = this._findMapping(
81915
- needle,
81916
- this._generatedMappings,
81917
- "generatedLine",
81918
- "generatedColumn",
81919
- util2.compareByGeneratedPositionsDeflated,
81920
- util2.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)
81921
- );
81922
- if (index >= 0) {
81923
- var mapping = this._generatedMappings[index];
81924
- if (mapping.generatedLine === needle.generatedLine) {
81925
- var source = util2.getArg(mapping, "source", null);
81926
- if (source !== null) {
81927
- source = this._sources.at(source);
81928
- source = util2.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
81929
- }
81930
- var name = util2.getArg(mapping, "name", null);
81931
- if (name !== null) {
81932
- name = this._names.at(name);
81933
- }
81934
- return {
81935
- source,
81936
- line: util2.getArg(mapping, "originalLine", null),
81937
- column: util2.getArg(mapping, "originalColumn", null),
81938
- name
81939
- };
81940
- }
81941
- }
81942
- return {
81943
- source: null,
81944
- line: null,
81945
- column: null,
81946
- name: null
81947
- };
81948
- };
81949
- BasicSourceMapConsumer.prototype.hasContentsOfAllSources = function BasicSourceMapConsumer_hasContentsOfAllSources() {
81950
- if (!this.sourcesContent) {
81951
- return false;
81952
- }
81953
- return this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(sc) {
81954
- return sc == null;
81955
- });
81956
- };
81957
- BasicSourceMapConsumer.prototype.sourceContentFor = function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
81958
- if (!this.sourcesContent) {
81959
- return null;
81960
- }
81961
- var index = this._findSourceIndex(aSource);
81962
- if (index >= 0) {
81963
- return this.sourcesContent[index];
81964
- }
81965
- var relativeSource = aSource;
81966
- if (this.sourceRoot != null) {
81967
- relativeSource = util2.relative(this.sourceRoot, relativeSource);
81968
- }
81969
- var url3;
81970
- if (this.sourceRoot != null && (url3 = util2.urlParse(this.sourceRoot))) {
81971
- var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
81972
- if (url3.scheme == "file" && this._sources.has(fileUriAbsPath)) {
81973
- return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
81974
- }
81975
- if ((!url3.path || url3.path == "/") && this._sources.has("/" + relativeSource)) {
81976
- return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
81977
- }
81978
- }
81979
- if (nullOnMissing) {
81980
- return null;
81981
- } else {
81982
- throw new Error('"' + relativeSource + '" is not in the SourceMap.');
81983
- }
81984
- };
81985
- BasicSourceMapConsumer.prototype.generatedPositionFor = function SourceMapConsumer_generatedPositionFor(aArgs) {
81986
- var source = util2.getArg(aArgs, "source");
81987
- source = this._findSourceIndex(source);
81988
- if (source < 0) {
81989
- return {
81990
- line: null,
81991
- column: null,
81992
- lastColumn: null
81993
- };
81994
- }
81995
- var needle = {
81996
- source,
81997
- originalLine: util2.getArg(aArgs, "line"),
81998
- originalColumn: util2.getArg(aArgs, "column")
81999
- };
82000
- var index = this._findMapping(
82001
- needle,
82002
- this._originalMappings,
82003
- "originalLine",
82004
- "originalColumn",
82005
- util2.compareByOriginalPositions,
82006
- util2.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)
82007
- );
82008
- if (index >= 0) {
82009
- var mapping = this._originalMappings[index];
82010
- if (mapping.source === needle.source) {
82011
- return {
82012
- line: util2.getArg(mapping, "generatedLine", null),
82013
- column: util2.getArg(mapping, "generatedColumn", null),
82014
- lastColumn: util2.getArg(mapping, "lastGeneratedColumn", null)
82015
- };
82016
- }
82017
- }
82018
- return {
82019
- line: null,
82020
- column: null,
82021
- lastColumn: null
82022
- };
82023
- };
82024
- exports.BasicSourceMapConsumer = BasicSourceMapConsumer;
82025
- function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
82026
- var sourceMap = aSourceMap;
82027
- if (typeof aSourceMap === "string") {
82028
- sourceMap = util2.parseSourceMapInput(aSourceMap);
82029
- }
82030
- var version2 = util2.getArg(sourceMap, "version");
82031
- var sections = util2.getArg(sourceMap, "sections");
82032
- if (version2 != this._version) {
82033
- throw new Error("Unsupported version: " + version2);
82034
- }
82035
- this._sources = new ArraySet();
82036
- this._names = new ArraySet();
82037
- var lastOffset = {
82038
- line: -1,
82039
- column: 0
82040
- };
82041
- this._sections = sections.map(function(s) {
82042
- if (s.url) {
82043
- throw new Error("Support for url field in sections not implemented.");
82044
- }
82045
- var offset = util2.getArg(s, "offset");
82046
- var offsetLine = util2.getArg(offset, "line");
82047
- var offsetColumn = util2.getArg(offset, "column");
82048
- if (offsetLine < lastOffset.line || offsetLine === lastOffset.line && offsetColumn < lastOffset.column) {
82049
- throw new Error("Section offsets must be ordered and non-overlapping.");
82050
- }
82051
- lastOffset = offset;
82052
- return {
82053
- generatedOffset: {
82054
- // The offset fields are 0-based, but we use 1-based indices when
82055
- // encoding/decoding from VLQ.
82056
- generatedLine: offsetLine + 1,
82057
- generatedColumn: offsetColumn + 1
82058
- },
82059
- consumer: new SourceMapConsumer(util2.getArg(s, "map"), aSourceMapURL)
82060
- };
82061
- });
82062
- }
82063
- IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
82064
- IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
82065
- IndexedSourceMapConsumer.prototype._version = 3;
82066
- Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", {
82067
- get: function() {
82068
- var sources = [];
82069
- for (var i = 0; i < this._sections.length; i++) {
82070
- for (var j = 0; j < this._sections[i].consumer.sources.length; j++) {
82071
- sources.push(this._sections[i].consumer.sources[j]);
82072
- }
82073
- }
82074
- return sources;
82075
- }
82076
- });
82077
- IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
82078
- var needle = {
82079
- generatedLine: util2.getArg(aArgs, "line"),
82080
- generatedColumn: util2.getArg(aArgs, "column")
82081
- };
82082
- var sectionIndex = binarySearch.search(
82083
- needle,
82084
- this._sections,
82085
- function(needle2, section2) {
82086
- var cmp = needle2.generatedLine - section2.generatedOffset.generatedLine;
82087
- if (cmp) {
82088
- return cmp;
82089
- }
82090
- return needle2.generatedColumn - section2.generatedOffset.generatedColumn;
82091
- }
82092
- );
82093
- var section = this._sections[sectionIndex];
82094
- if (!section) {
82095
- return {
82096
- source: null,
82097
- line: null,
82098
- column: null,
82099
- name: null
82100
- };
82101
- }
82102
- return section.consumer.originalPositionFor({
82103
- line: needle.generatedLine - (section.generatedOffset.generatedLine - 1),
82104
- column: needle.generatedColumn - (section.generatedOffset.generatedLine === needle.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
82105
- bias: aArgs.bias
82106
- });
82107
- };
82108
- IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = function IndexedSourceMapConsumer_hasContentsOfAllSources() {
82109
- return this._sections.every(function(s) {
82110
- return s.consumer.hasContentsOfAllSources();
82111
- });
82112
- };
82113
- IndexedSourceMapConsumer.prototype.sourceContentFor = function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
82114
- for (var i = 0; i < this._sections.length; i++) {
82115
- var section = this._sections[i];
82116
- var content = section.consumer.sourceContentFor(aSource, true);
82117
- if (content) {
82118
- return content;
82119
- }
82120
- }
82121
- if (nullOnMissing) {
82122
- return null;
82123
- } else {
82124
- throw new Error('"' + aSource + '" is not in the SourceMap.');
82125
- }
82126
- };
82127
- IndexedSourceMapConsumer.prototype.generatedPositionFor = function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
82128
- for (var i = 0; i < this._sections.length; i++) {
82129
- var section = this._sections[i];
82130
- if (section.consumer._findSourceIndex(util2.getArg(aArgs, "source")) === -1) {
82131
- continue;
82132
- }
82133
- var generatedPosition = section.consumer.generatedPositionFor(aArgs);
82134
- if (generatedPosition) {
82135
- var ret = {
82136
- line: generatedPosition.line + (section.generatedOffset.generatedLine - 1),
82137
- column: generatedPosition.column + (section.generatedOffset.generatedLine === generatedPosition.line ? section.generatedOffset.generatedColumn - 1 : 0)
82138
- };
82139
- return ret;
82140
- }
82141
- }
82142
- return {
82143
- line: null,
82144
- column: null
82145
- };
82146
- };
82147
- IndexedSourceMapConsumer.prototype._parseMappings = function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
82148
- this.__generatedMappings = [];
82149
- this.__originalMappings = [];
82150
- for (var i = 0; i < this._sections.length; i++) {
82151
- var section = this._sections[i];
82152
- var sectionMappings = section.consumer._generatedMappings;
82153
- for (var j = 0; j < sectionMappings.length; j++) {
82154
- var mapping = sectionMappings[j];
82155
- var source = section.consumer._sources.at(mapping.source);
82156
- source = util2.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
82157
- this._sources.add(source);
82158
- source = this._sources.indexOf(source);
82159
- var name = null;
82160
- if (mapping.name) {
82161
- name = section.consumer._names.at(mapping.name);
82162
- this._names.add(name);
82163
- name = this._names.indexOf(name);
82164
- }
82165
- var adjustedMapping = {
82166
- source,
82167
- generatedLine: mapping.generatedLine + (section.generatedOffset.generatedLine - 1),
82168
- generatedColumn: mapping.generatedColumn + (section.generatedOffset.generatedLine === mapping.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
82169
- originalLine: mapping.originalLine,
82170
- originalColumn: mapping.originalColumn,
82171
- name
82172
- };
82173
- this.__generatedMappings.push(adjustedMapping);
82174
- if (typeof adjustedMapping.originalLine === "number") {
82175
- this.__originalMappings.push(adjustedMapping);
82176
- }
82177
- }
82178
- }
82179
- quickSort(this.__generatedMappings, util2.compareByGeneratedPositionsDeflated);
82180
- quickSort(this.__originalMappings, util2.compareByOriginalPositions);
82181
- };
82182
- exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
82183
- }
82184
- });
82185
-
82186
- // ../../../../node_modules/source-map/lib/source-node.js
82187
- var require_source_node = __commonJS({
82188
- "../../../../node_modules/source-map/lib/source-node.js"(exports) {
82189
- var SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
82190
- var util2 = require_util4();
82191
- var REGEX_NEWLINE = /(\r?\n)/;
82192
- var NEWLINE_CODE = 10;
82193
- var isSourceNode = "$$$isSourceNode$$$";
82194
- function SourceNode(aLine, aColumn, aSource, aChunks, aName) {
82195
- this.children = [];
82196
- this.sourceContents = {};
82197
- this.line = aLine == null ? null : aLine;
82198
- this.column = aColumn == null ? null : aColumn;
82199
- this.source = aSource == null ? null : aSource;
82200
- this.name = aName == null ? null : aName;
82201
- this[isSourceNode] = true;
82202
- if (aChunks != null) this.add(aChunks);
82203
- }
82204
- SourceNode.fromStringWithSourceMap = function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
82205
- var node = new SourceNode();
82206
- var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);
82207
- var remainingLinesIndex = 0;
82208
- var shiftNextLine = function() {
82209
- var lineContents = getNextLine();
82210
- var newLine = getNextLine() || "";
82211
- return lineContents + newLine;
82212
- function getNextLine() {
82213
- return remainingLinesIndex < remainingLines.length ? remainingLines[remainingLinesIndex++] : void 0;
82214
- }
82215
- };
82216
- var lastGeneratedLine = 1, lastGeneratedColumn = 0;
82217
- var lastMapping = null;
82218
- aSourceMapConsumer.eachMapping(function(mapping) {
82219
- if (lastMapping !== null) {
82220
- if (lastGeneratedLine < mapping.generatedLine) {
82221
- addMappingWithCode(lastMapping, shiftNextLine());
82222
- lastGeneratedLine++;
82223
- lastGeneratedColumn = 0;
82224
- } else {
82225
- var nextLine = remainingLines[remainingLinesIndex] || "";
82226
- var code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn);
82227
- remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn);
82228
- lastGeneratedColumn = mapping.generatedColumn;
82229
- addMappingWithCode(lastMapping, code);
82230
- lastMapping = mapping;
82231
- return;
82232
- }
82233
- }
82234
- while (lastGeneratedLine < mapping.generatedLine) {
82235
- node.add(shiftNextLine());
82236
- lastGeneratedLine++;
82237
- }
82238
- if (lastGeneratedColumn < mapping.generatedColumn) {
82239
- var nextLine = remainingLines[remainingLinesIndex] || "";
82240
- node.add(nextLine.substr(0, mapping.generatedColumn));
82241
- remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);
82242
- lastGeneratedColumn = mapping.generatedColumn;
82243
- }
82244
- lastMapping = mapping;
82245
- }, this);
82246
- if (remainingLinesIndex < remainingLines.length) {
82247
- if (lastMapping) {
82248
- addMappingWithCode(lastMapping, shiftNextLine());
82249
- }
82250
- node.add(remainingLines.splice(remainingLinesIndex).join(""));
82251
- }
82252
- aSourceMapConsumer.sources.forEach(function(sourceFile) {
82253
- var content = aSourceMapConsumer.sourceContentFor(sourceFile);
82254
- if (content != null) {
82255
- if (aRelativePath != null) {
82256
- sourceFile = util2.join(aRelativePath, sourceFile);
82257
- }
82258
- node.setSourceContent(sourceFile, content);
82259
- }
82260
- });
82261
- return node;
82262
- function addMappingWithCode(mapping, code) {
82263
- if (mapping === null || mapping.source === void 0) {
82264
- node.add(code);
82265
- } else {
82266
- var source = aRelativePath ? util2.join(aRelativePath, mapping.source) : mapping.source;
82267
- node.add(new SourceNode(
82268
- mapping.originalLine,
82269
- mapping.originalColumn,
82270
- source,
82271
- code,
82272
- mapping.name
82273
- ));
82274
- }
82275
- }
82276
- };
82277
- SourceNode.prototype.add = function SourceNode_add(aChunk) {
82278
- if (Array.isArray(aChunk)) {
82279
- aChunk.forEach(function(chunk) {
82280
- this.add(chunk);
82281
- }, this);
82282
- } else if (aChunk[isSourceNode] || typeof aChunk === "string") {
82283
- if (aChunk) {
82284
- this.children.push(aChunk);
82285
- }
82286
- } else {
82287
- throw new TypeError(
82288
- "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
82289
- );
82290
- }
82291
- return this;
82292
- };
82293
- SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {
82294
- if (Array.isArray(aChunk)) {
82295
- for (var i = aChunk.length - 1; i >= 0; i--) {
82296
- this.prepend(aChunk[i]);
82297
- }
82298
- } else if (aChunk[isSourceNode] || typeof aChunk === "string") {
82299
- this.children.unshift(aChunk);
82300
- } else {
82301
- throw new TypeError(
82302
- "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
82303
- );
82304
- }
82305
- return this;
82306
- };
82307
- SourceNode.prototype.walk = function SourceNode_walk(aFn) {
82308
- var chunk;
82309
- for (var i = 0, len = this.children.length; i < len; i++) {
82310
- chunk = this.children[i];
82311
- if (chunk[isSourceNode]) {
82312
- chunk.walk(aFn);
82313
- } else {
82314
- if (chunk !== "") {
82315
- aFn(chunk, {
82316
- source: this.source,
82317
- line: this.line,
82318
- column: this.column,
82319
- name: this.name
82320
- });
82321
- }
82322
- }
82323
- }
82324
- };
82325
- SourceNode.prototype.join = function SourceNode_join(aSep) {
82326
- var newChildren;
82327
- var i;
82328
- var len = this.children.length;
82329
- if (len > 0) {
82330
- newChildren = [];
82331
- for (i = 0; i < len - 1; i++) {
82332
- newChildren.push(this.children[i]);
82333
- newChildren.push(aSep);
82334
- }
82335
- newChildren.push(this.children[i]);
82336
- this.children = newChildren;
82337
- }
82338
- return this;
82339
- };
82340
- SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {
82341
- var lastChild = this.children[this.children.length - 1];
82342
- if (lastChild[isSourceNode]) {
82343
- lastChild.replaceRight(aPattern, aReplacement);
82344
- } else if (typeof lastChild === "string") {
82345
- this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);
82346
- } else {
82347
- this.children.push("".replace(aPattern, aReplacement));
82348
- }
82349
- return this;
82350
- };
82351
- SourceNode.prototype.setSourceContent = function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
82352
- this.sourceContents[util2.toSetString(aSourceFile)] = aSourceContent;
82353
- };
82354
- SourceNode.prototype.walkSourceContents = function SourceNode_walkSourceContents(aFn) {
82355
- for (var i = 0, len = this.children.length; i < len; i++) {
82356
- if (this.children[i][isSourceNode]) {
82357
- this.children[i].walkSourceContents(aFn);
82358
- }
82359
- }
82360
- var sources = Object.keys(this.sourceContents);
82361
- for (var i = 0, len = sources.length; i < len; i++) {
82362
- aFn(util2.fromSetString(sources[i]), this.sourceContents[sources[i]]);
82363
- }
82364
- };
82365
- SourceNode.prototype.toString = function SourceNode_toString() {
82366
- var str = "";
82367
- this.walk(function(chunk) {
82368
- str += chunk;
82369
- });
82370
- return str;
82371
- };
82372
- SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {
82373
- var generated = {
82374
- code: "",
82375
- line: 1,
82376
- column: 0
82377
- };
82378
- var map2 = new SourceMapGenerator(aArgs);
82379
- var sourceMappingActive = false;
82380
- var lastOriginalSource = null;
82381
- var lastOriginalLine = null;
82382
- var lastOriginalColumn = null;
82383
- var lastOriginalName = null;
82384
- this.walk(function(chunk, original) {
82385
- generated.code += chunk;
82386
- if (original.source !== null && original.line !== null && original.column !== null) {
82387
- if (lastOriginalSource !== original.source || lastOriginalLine !== original.line || lastOriginalColumn !== original.column || lastOriginalName !== original.name) {
82388
- map2.addMapping({
82389
- source: original.source,
82390
- original: {
82391
- line: original.line,
82392
- column: original.column
82393
- },
82394
- generated: {
82395
- line: generated.line,
82396
- column: generated.column
82397
- },
82398
- name: original.name
82399
- });
82400
- }
82401
- lastOriginalSource = original.source;
82402
- lastOriginalLine = original.line;
82403
- lastOriginalColumn = original.column;
82404
- lastOriginalName = original.name;
82405
- sourceMappingActive = true;
82406
- } else if (sourceMappingActive) {
82407
- map2.addMapping({
82408
- generated: {
82409
- line: generated.line,
82410
- column: generated.column
82411
- }
82412
- });
82413
- lastOriginalSource = null;
82414
- sourceMappingActive = false;
82415
- }
82416
- for (var idx = 0, length = chunk.length; idx < length; idx++) {
82417
- if (chunk.charCodeAt(idx) === NEWLINE_CODE) {
82418
- generated.line++;
82419
- generated.column = 0;
82420
- if (idx + 1 === length) {
82421
- lastOriginalSource = null;
82422
- sourceMappingActive = false;
82423
- } else if (sourceMappingActive) {
82424
- map2.addMapping({
82425
- source: original.source,
82426
- original: {
82427
- line: original.line,
82428
- column: original.column
82429
- },
82430
- generated: {
82431
- line: generated.line,
82432
- column: generated.column
82433
- },
82434
- name: original.name
82435
- });
82436
- }
82437
- } else {
82438
- generated.column++;
82439
- }
82440
- }
82441
- });
82442
- this.walkSourceContents(function(sourceFile, sourceContent) {
82443
- map2.setSourceContent(sourceFile, sourceContent);
82444
- });
82445
- return { code: generated.code, map: map2 };
82446
- };
82447
- exports.SourceNode = SourceNode;
82448
- }
82449
- });
82450
-
82451
- // ../../../../node_modules/source-map/source-map.js
82452
- var require_source_map = __commonJS({
82453
- "../../../../node_modules/source-map/source-map.js"(exports) {
82454
- exports.SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
82455
- exports.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer;
82456
- exports.SourceNode = require_source_node().SourceNode;
82457
- }
82458
- });
82459
-
82460
- // ../../../../node_modules/buffer-from/index.js
82461
- var require_buffer_from = __commonJS({
82462
- "../../../../node_modules/buffer-from/index.js"(exports, module) {
82463
- var toString = Object.prototype.toString;
82464
- var isModern = typeof Buffer !== "undefined" && typeof Buffer.alloc === "function" && typeof Buffer.allocUnsafe === "function" && typeof Buffer.from === "function";
82465
- function isArrayBuffer(input) {
82466
- return toString.call(input).slice(8, -1) === "ArrayBuffer";
82467
- }
82468
- function fromArrayBuffer(obj, byteOffset, length) {
82469
- byteOffset >>>= 0;
82470
- var maxLength = obj.byteLength - byteOffset;
82471
- if (maxLength < 0) {
82472
- throw new RangeError("'offset' is out of bounds");
82473
- }
82474
- if (length === void 0) {
82475
- length = maxLength;
82476
- } else {
82477
- length >>>= 0;
82478
- if (length > maxLength) {
82479
- throw new RangeError("'length' is out of bounds");
82480
- }
82481
- }
82482
- return isModern ? Buffer.from(obj.slice(byteOffset, byteOffset + length)) : new Buffer(new Uint8Array(obj.slice(byteOffset, byteOffset + length)));
82483
- }
82484
- function fromString(string4, encoding) {
82485
- if (typeof encoding !== "string" || encoding === "") {
82486
- encoding = "utf8";
82487
- }
82488
- if (!Buffer.isEncoding(encoding)) {
82489
- throw new TypeError('"encoding" must be a valid string encoding');
82490
- }
82491
- return isModern ? Buffer.from(string4, encoding) : new Buffer(string4, encoding);
82492
- }
82493
- function bufferFrom(value, encodingOrOffset, length) {
82494
- if (typeof value === "number") {
82495
- throw new TypeError('"value" argument must not be a number');
82496
- }
82497
- if (isArrayBuffer(value)) {
82498
- return fromArrayBuffer(value, encodingOrOffset, length);
82499
- }
82500
- if (typeof value === "string") {
82501
- return fromString(value, encodingOrOffset);
82502
- }
82503
- return isModern ? Buffer.from(value) : new Buffer(value);
82504
- }
82505
- module.exports = bufferFrom;
82506
- }
82507
- });
82508
-
82509
- // ../../../../node_modules/source-map-support/source-map-support.js
82510
- var require_source_map_support = __commonJS({
82511
- "../../../../node_modules/source-map-support/source-map-support.js"(exports) {
82512
- var SourceMapConsumer = require_source_map().SourceMapConsumer;
82513
- var path = __require("path");
82514
- var fs3;
82515
- try {
82516
- fs3 = __require("fs");
82517
- if (!fs3.existsSync || !fs3.readFileSync) {
82518
- fs3 = null;
82519
- }
82520
- } catch (err2) {
82521
- }
82522
- var bufferFrom = require_buffer_from();
82523
- var errorFormatterInstalled = false;
82524
- var uncaughtShimInstalled = false;
82525
- var emptyCacheBetweenOperations = false;
82526
- var environment = "auto";
82527
- var fileContentsCache = {};
82528
- var sourceMapCache = {};
82529
- var reSourceMap = /^data:application\/json[^,]+base64,/;
82530
- var retrieveFileHandlers = [];
82531
- var retrieveMapHandlers = [];
82532
- function isInBrowser() {
82533
- if (environment === "browser")
82534
- return true;
82535
- if (environment === "node")
82536
- return false;
82537
- return typeof window !== "undefined" && typeof XMLHttpRequest === "function" && !(window.require && window.module && window.process && window.process.type === "renderer");
82538
- }
82539
- function hasGlobalProcessEventEmitter() {
82540
- return typeof process === "object" && process !== null && typeof process.on === "function";
82541
- }
82542
- function handlerExec(list) {
82543
- return function(arg) {
82544
- for (var i = 0; i < list.length; i++) {
82545
- var ret = list[i](arg);
82546
- if (ret) {
82547
- return ret;
82548
- }
82549
- }
82550
- return null;
82551
- };
82552
- }
82553
- var retrieveFile = handlerExec(retrieveFileHandlers);
82554
- retrieveFileHandlers.push(function(path2) {
82555
- path2 = path2.trim();
82556
- if (/^file:/.test(path2)) {
82557
- path2 = path2.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) {
82558
- return drive ? "" : (
82559
- // file:///C:/dir/file -> C:/dir/file
82560
- "/"
82561
- );
82562
- });
82563
- }
82564
- if (path2 in fileContentsCache) {
82565
- return fileContentsCache[path2];
82566
- }
82567
- var contents = "";
82568
- try {
82569
- if (!fs3) {
82570
- var xhr = new XMLHttpRequest();
82571
- xhr.open(
82572
- "GET",
82573
- path2,
82574
- /** async */
82575
- false
82576
- );
82577
- xhr.send(null);
82578
- if (xhr.readyState === 4 && xhr.status === 200) {
82579
- contents = xhr.responseText;
82580
- }
82581
- } else if (fs3.existsSync(path2)) {
82582
- contents = fs3.readFileSync(path2, "utf8");
82583
- }
82584
- } catch (er) {
82585
- }
82586
- return fileContentsCache[path2] = contents;
82587
- });
82588
- function supportRelativeURL(file2, url3) {
82589
- if (!file2) return url3;
82590
- var dir = path.dirname(file2);
82591
- var match = /^\w+:\/\/[^\/]*/.exec(dir);
82592
- var protocol = match ? match[0] : "";
82593
- var startPath = dir.slice(protocol.length);
82594
- if (protocol && /^\/\w\:/.test(startPath)) {
82595
- protocol += "/";
82596
- return protocol + path.resolve(dir.slice(protocol.length), url3).replace(/\\/g, "/");
82597
- }
82598
- return protocol + path.resolve(dir.slice(protocol.length), url3);
82599
- }
82600
- function retrieveSourceMapURL(source) {
82601
- var fileData;
82602
- if (isInBrowser()) {
82603
- try {
82604
- var xhr = new XMLHttpRequest();
82605
- xhr.open("GET", source, false);
82606
- xhr.send(null);
82607
- fileData = xhr.readyState === 4 ? xhr.responseText : null;
82608
- var sourceMapHeader = xhr.getResponseHeader("SourceMap") || xhr.getResponseHeader("X-SourceMap");
82609
- if (sourceMapHeader) {
82610
- return sourceMapHeader;
82611
- }
82612
- } catch (e) {
82613
- }
82614
- }
82615
- fileData = retrieveFile(source);
82616
- var re = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg;
82617
- var lastMatch, match;
82618
- while (match = re.exec(fileData)) lastMatch = match;
82619
- if (!lastMatch) return null;
82620
- return lastMatch[1];
82621
- }
82622
- var retrieveSourceMap = handlerExec(retrieveMapHandlers);
82623
- retrieveMapHandlers.push(function(source) {
82624
- var sourceMappingURL = retrieveSourceMapURL(source);
82625
- if (!sourceMappingURL) return null;
82626
- var sourceMapData;
82627
- if (reSourceMap.test(sourceMappingURL)) {
82628
- var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(",") + 1);
82629
- sourceMapData = bufferFrom(rawData, "base64").toString();
82630
- sourceMappingURL = source;
82631
- } else {
82632
- sourceMappingURL = supportRelativeURL(source, sourceMappingURL);
82633
- sourceMapData = retrieveFile(sourceMappingURL);
82634
- }
82635
- if (!sourceMapData) {
82636
- return null;
82637
- }
82638
- return {
82639
- url: sourceMappingURL,
82640
- map: sourceMapData
82641
- };
82642
- });
82643
- function mapSourcePosition(position) {
82644
- var sourceMap = sourceMapCache[position.source];
82645
- if (!sourceMap) {
82646
- var urlAndMap = retrieveSourceMap(position.source);
82647
- if (urlAndMap) {
82648
- sourceMap = sourceMapCache[position.source] = {
82649
- url: urlAndMap.url,
82650
- map: new SourceMapConsumer(urlAndMap.map)
82651
- };
82652
- if (sourceMap.map.sourcesContent) {
82653
- sourceMap.map.sources.forEach(function(source, i) {
82654
- var contents = sourceMap.map.sourcesContent[i];
82655
- if (contents) {
82656
- var url3 = supportRelativeURL(sourceMap.url, source);
82657
- fileContentsCache[url3] = contents;
82658
- }
82659
- });
82660
- }
82661
- } else {
82662
- sourceMap = sourceMapCache[position.source] = {
82663
- url: null,
82664
- map: null
82665
- };
82666
- }
82667
- }
82668
- if (sourceMap && sourceMap.map && typeof sourceMap.map.originalPositionFor === "function") {
82669
- var originalPosition = sourceMap.map.originalPositionFor(position);
82670
- if (originalPosition.source !== null) {
82671
- originalPosition.source = supportRelativeURL(
82672
- sourceMap.url,
82673
- originalPosition.source
82674
- );
82675
- return originalPosition;
82676
- }
82677
- }
82678
- return position;
82679
- }
82680
- function mapEvalOrigin(origin) {
82681
- var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin);
82682
- if (match) {
82683
- var position = mapSourcePosition({
82684
- source: match[2],
82685
- line: +match[3],
82686
- column: match[4] - 1
82687
- });
82688
- return "eval at " + match[1] + " (" + position.source + ":" + position.line + ":" + (position.column + 1) + ")";
82689
- }
82690
- match = /^eval at ([^(]+) \((.+)\)$/.exec(origin);
82691
- if (match) {
82692
- return "eval at " + match[1] + " (" + mapEvalOrigin(match[2]) + ")";
82693
- }
82694
- return origin;
82695
- }
82696
- function CallSiteToString() {
82697
- var fileName;
82698
- var fileLocation = "";
82699
- if (this.isNative()) {
82700
- fileLocation = "native";
82701
- } else {
82702
- fileName = this.getScriptNameOrSourceURL();
82703
- if (!fileName && this.isEval()) {
82704
- fileLocation = this.getEvalOrigin();
82705
- fileLocation += ", ";
82706
- }
82707
- if (fileName) {
82708
- fileLocation += fileName;
82709
- } else {
82710
- fileLocation += "<anonymous>";
82711
- }
82712
- var lineNumber = this.getLineNumber();
82713
- if (lineNumber != null) {
82714
- fileLocation += ":" + lineNumber;
82715
- var columnNumber = this.getColumnNumber();
82716
- if (columnNumber) {
82717
- fileLocation += ":" + columnNumber;
82718
- }
82719
- }
82720
- }
82721
- var line = "";
82722
- var functionName = this.getFunctionName();
82723
- var addSuffix = true;
82724
- var isConstructor = this.isConstructor();
82725
- var isMethodCall = !(this.isToplevel() || isConstructor);
82726
- if (isMethodCall) {
82727
- var typeName = this.getTypeName();
82728
- if (typeName === "[object Object]") {
82729
- typeName = "null";
82730
- }
82731
- var methodName = this.getMethodName();
82732
- if (functionName) {
82733
- if (typeName && functionName.indexOf(typeName) != 0) {
82734
- line += typeName + ".";
82735
- }
82736
- line += functionName;
82737
- if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) {
82738
- line += " [as " + methodName + "]";
82739
- }
82740
- } else {
82741
- line += typeName + "." + (methodName || "<anonymous>");
82742
- }
82743
- } else if (isConstructor) {
82744
- line += "new " + (functionName || "<anonymous>");
82745
- } else if (functionName) {
82746
- line += functionName;
82747
- } else {
82748
- line += fileLocation;
82749
- addSuffix = false;
82750
- }
82751
- if (addSuffix) {
82752
- line += " (" + fileLocation + ")";
82753
- }
82754
- return line;
82755
- }
82756
- function cloneCallSite(frame) {
82757
- var object3 = {};
82758
- Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) {
82759
- object3[name] = /^(?:is|get)/.test(name) ? function() {
82760
- return frame[name].call(frame);
82761
- } : frame[name];
82762
- });
82763
- object3.toString = CallSiteToString;
82764
- return object3;
82765
- }
82766
- function wrapCallSite(frame) {
82767
- if (frame.isNative()) {
82768
- return frame;
82769
- }
82770
- var source = frame.getFileName() || frame.getScriptNameOrSourceURL();
82771
- if (source) {
82772
- var line = frame.getLineNumber();
82773
- var column = frame.getColumnNumber() - 1;
82774
- var headerLength = 62;
82775
- if (line === 1 && column > headerLength && !isInBrowser() && !frame.isEval()) {
82776
- column -= headerLength;
82777
- }
82778
- var position = mapSourcePosition({
82779
- source,
82780
- line,
82781
- column
82782
- });
82783
- frame = cloneCallSite(frame);
82784
- var originalFunctionName = frame.getFunctionName;
82785
- frame.getFunctionName = function() {
82786
- return position.name || originalFunctionName();
82787
- };
82788
- frame.getFileName = function() {
82789
- return position.source;
82790
- };
82791
- frame.getLineNumber = function() {
82792
- return position.line;
82793
- };
82794
- frame.getColumnNumber = function() {
82795
- return position.column + 1;
82796
- };
82797
- frame.getScriptNameOrSourceURL = function() {
82798
- return position.source;
82799
- };
82800
- return frame;
82801
- }
82802
- var origin = frame.isEval() && frame.getEvalOrigin();
82803
- if (origin) {
82804
- origin = mapEvalOrigin(origin);
82805
- frame = cloneCallSite(frame);
82806
- frame.getEvalOrigin = function() {
82807
- return origin;
82808
- };
82809
- return frame;
82810
- }
82811
- return frame;
82812
- }
82813
- function prepareStackTrace(error48, stack) {
82814
- if (emptyCacheBetweenOperations) {
82815
- fileContentsCache = {};
82816
- sourceMapCache = {};
82817
- }
82818
- var name = error48.name || "Error";
82819
- var message = error48.message || "";
82820
- var errorString = name + ": " + message;
82821
- return errorString + stack.map(function(frame) {
82822
- return "\n at " + wrapCallSite(frame);
82823
- }).join("");
82824
- }
82825
- function getErrorSource(error48) {
82826
- var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error48.stack);
82827
- if (match) {
82828
- var source = match[1];
82829
- var line = +match[2];
82830
- var column = +match[3];
82831
- var contents = fileContentsCache[source];
82832
- if (!contents && fs3 && fs3.existsSync(source)) {
82833
- try {
82834
- contents = fs3.readFileSync(source, "utf8");
82835
- } catch (er) {
82836
- contents = "";
82837
- }
82838
- }
82839
- if (contents) {
82840
- var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1];
82841
- if (code) {
82842
- return source + ":" + line + "\n" + code + "\n" + new Array(column).join(" ") + "^";
82843
- }
82844
- }
82845
- }
82846
- return null;
82847
- }
82848
- function printErrorAndExit(error48) {
82849
- var source = getErrorSource(error48);
82850
- if (process.stderr._handle && process.stderr._handle.setBlocking) {
82851
- process.stderr._handle.setBlocking(true);
82852
- }
82853
- if (source) {
82854
- console.error();
82855
- console.error(source);
82856
- }
82857
- console.error(error48.stack);
82858
- process.exit(1);
82859
- }
82860
- function shimEmitUncaughtException() {
82861
- var origEmit = process.emit;
82862
- process.emit = function(type) {
82863
- if (type === "uncaughtException") {
82864
- var hasStack = arguments[1] && arguments[1].stack;
82865
- var hasListeners = this.listeners(type).length > 0;
82866
- if (hasStack && !hasListeners) {
82867
- return printErrorAndExit(arguments[1]);
82868
- }
82869
- }
82870
- return origEmit.apply(this, arguments);
82871
- };
82872
- }
82873
- var originalRetrieveFileHandlers = retrieveFileHandlers.slice(0);
82874
- var originalRetrieveMapHandlers = retrieveMapHandlers.slice(0);
82875
- exports.wrapCallSite = wrapCallSite;
82876
- exports.getErrorSource = getErrorSource;
82877
- exports.mapSourcePosition = mapSourcePosition;
82878
- exports.retrieveSourceMap = retrieveSourceMap;
82879
- exports.install = function(options) {
82880
- options = options || {};
82881
- if (options.environment) {
82882
- environment = options.environment;
82883
- if (["node", "browser", "auto"].indexOf(environment) === -1) {
82884
- throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}");
82885
- }
82886
- }
82887
- if (options.retrieveFile) {
82888
- if (options.overrideRetrieveFile) {
82889
- retrieveFileHandlers.length = 0;
82890
- }
82891
- retrieveFileHandlers.unshift(options.retrieveFile);
82892
- }
82893
- if (options.retrieveSourceMap) {
82894
- if (options.overrideRetrieveSourceMap) {
82895
- retrieveMapHandlers.length = 0;
82896
- }
82897
- retrieveMapHandlers.unshift(options.retrieveSourceMap);
82898
- }
82899
- if (options.hookRequire && !isInBrowser()) {
82900
- var Module;
82901
- try {
82902
- Module = __require("module");
82903
- } catch (err2) {
82904
- }
82905
- var $compile = Module.prototype._compile;
82906
- if (!$compile.__sourceMapSupport) {
82907
- Module.prototype._compile = function(content, filename) {
82908
- fileContentsCache[filename] = content;
82909
- sourceMapCache[filename] = void 0;
82910
- return $compile.call(this, content, filename);
82911
- };
82912
- Module.prototype._compile.__sourceMapSupport = true;
82913
- }
82914
- }
82915
- if (!emptyCacheBetweenOperations) {
82916
- emptyCacheBetweenOperations = "emptyCacheBetweenOperations" in options ? options.emptyCacheBetweenOperations : false;
82917
- }
82918
- if (!errorFormatterInstalled) {
82919
- errorFormatterInstalled = true;
82920
- Error.prepareStackTrace = prepareStackTrace;
82921
- }
82922
- if (!uncaughtShimInstalled) {
82923
- var installHandler = "handleUncaughtExceptions" in options ? options.handleUncaughtExceptions : true;
82924
- if (installHandler && hasGlobalProcessEventEmitter()) {
82925
- uncaughtShimInstalled = true;
82926
- shimEmitUncaughtException();
82927
- }
82928
- }
82929
- };
82930
- exports.resetRetrieveHandlers = function() {
82931
- retrieveFileHandlers.length = 0;
82932
- retrieveMapHandlers.length = 0;
82933
- retrieveFileHandlers = originalRetrieveFileHandlers.slice(0);
82934
- retrieveMapHandlers = originalRetrieveMapHandlers.slice(0);
82935
- retrieveSourceMap = handlerExec(retrieveMapHandlers);
82936
- retrieveFile = handlerExec(retrieveFileHandlers);
82937
- };
82938
- }
82939
- });
82940
-
82941
80598
  // ../../node_modules/typescript/lib/typescript.js
82942
80599
  var require_typescript = __commonJS({
82943
80600
  "../../node_modules/typescript/lib/typescript.js"(exports, module) {
@@ -91593,7 +89250,7 @@ ${lanes.join("\n")}
91593
89250
  debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(arg)) || !!process.recordreplay,
91594
89251
  tryEnableSourceMapsForHost() {
91595
89252
  try {
91596
- require_source_map_support().install();
89253
+ __require("source-map-support").install();
91597
89254
  } catch {
91598
89255
  }
91599
89256
  },
@@ -293758,7 +291415,7 @@ var require_read_tsconfig = __commonJS({
293758
291415
  });
293759
291416
 
293760
291417
  // ../../node_modules/@oclif/core/lib/config/util.js
293761
- var require_util5 = __commonJS({
291418
+ var require_util4 = __commonJS({
293762
291419
  "../../node_modules/@oclif/core/lib/config/util.js"(exports) {
293763
291420
  "use strict";
293764
291421
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -293816,7 +291473,7 @@ var require_ts_path = __commonJS({
293816
291473
  var fs_1 = require_fs();
293817
291474
  var read_tsconfig_1 = require_read_tsconfig();
293818
291475
  var util_1 = require_util3();
293819
- var util_2 = require_util5();
291476
+ var util_2 = require_util4();
293820
291477
  var debug = (0, util_2.makeDebug)("ts-path");
293821
291478
  exports.TS_CONFIGS = {};
293822
291479
  var REGISTERED = /* @__PURE__ */ new Set();
@@ -296750,7 +294407,7 @@ var require_widest_line = __commonJS({
296750
294407
  });
296751
294408
 
296752
294409
  // ../../node_modules/@oclif/core/lib/help/util.js
296753
- var require_util6 = __commonJS({
294410
+ var require_util5 = __commonJS({
296754
294411
  "../../node_modules/@oclif/core/lib/help/util.js"(exports) {
296755
294412
  "use strict";
296756
294413
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
@@ -296798,7 +294455,7 @@ var require_util6 = __commonJS({
296798
294455
  exports.formatCommandDeprecationWarning = formatCommandDeprecationWarning;
296799
294456
  exports.normalizeArgv = normalizeArgv;
296800
294457
  var ejs = __importStar(require_ejs());
296801
- var util_1 = require_util5();
294458
+ var util_1 = require_util4();
296802
294459
  var ids_1 = require_ids();
296803
294460
  function template(context) {
296804
294461
  function render2(t) {
@@ -296902,7 +294559,7 @@ var require_formatter = __commonJS({
296902
294559
  var wrap_ansi_1 = __importDefault(require_wrap_ansi());
296903
294560
  var screen_1 = require_screen();
296904
294561
  var theme_1 = require_theme2();
296905
- var util_1 = require_util6();
294562
+ var util_1 = require_util5();
296906
294563
  var HelpFormatter = class {
296907
294564
  config;
296908
294565
  indentSpacing = 2;
@@ -297465,7 +295122,7 @@ var require_help = __commonJS({
297465
295122
  var command_1 = require_command();
297466
295123
  var formatter_1 = require_formatter();
297467
295124
  var root_1 = __importDefault(require_root());
297468
- var util_2 = require_util6();
295125
+ var util_2 = require_util5();
297469
295126
  var command_2 = require_command();
297470
295127
  Object.defineProperty(exports, "CommandHelp", { enumerable: true, get: function() {
297471
295128
  return command_2.CommandHelp;
@@ -297474,7 +295131,7 @@ var require_help = __commonJS({
297474
295131
  Object.defineProperty(exports, "HelpFormatter", { enumerable: true, get: function() {
297475
295132
  return formatter_2.HelpFormatter;
297476
295133
  } });
297477
- var util_3 = require_util6();
295134
+ var util_3 = require_util5();
297478
295135
  Object.defineProperty(exports, "getHelpFlagAdditions", { enumerable: true, get: function() {
297479
295136
  return util_3.getHelpFlagAdditions;
297480
295137
  } });
@@ -303615,7 +301272,7 @@ var require_plugin = __commonJS({
303615
301272
  var read_pjson_1 = require_read_pjson();
303616
301273
  var util_1 = require_util3();
303617
301274
  var ts_path_1 = require_ts_path();
303618
- var util_2 = require_util5();
301275
+ var util_2 = require_util4();
303619
301276
  var _pjson = cache_1.default.getInstance().get("@oclif/core");
303620
301277
  function topicsToArray(input, base) {
303621
301278
  if (!input)
@@ -303958,7 +301615,7 @@ var require_plugin_loader = __commonJS({
303958
301615
  var fs_1 = require_fs();
303959
301616
  var util_1 = require_util3();
303960
301617
  var plugin_1 = require_plugin();
303961
- var util_2 = require_util5();
301618
+ var util_2 = require_util4();
303962
301619
  var debug = (0, util_2.makeDebug)();
303963
301620
  function findMatchingDependencies(dependencies, patterns) {
303964
301621
  return Object.keys(dependencies).filter((p) => patterns.some((w) => (0, minimatch_1.minimatch)(p, w)));
@@ -304181,7 +301838,7 @@ var require_config = __commonJS({
304181
301838
  var node_url_1 = __require("node:url");
304182
301839
  var cache_1 = __importDefault(require_cache());
304183
301840
  var errors_1 = require_errors3();
304184
- var util_1 = require_util6();
301841
+ var util_1 = require_util5();
304185
301842
  var logger_1 = require_logger();
304186
301843
  var module_loader_1 = require_module_loader();
304187
301844
  var performance_1 = require_performance();
@@ -304195,7 +301852,7 @@ var require_config = __commonJS({
304195
301852
  var theme_1 = require_theme2();
304196
301853
  var plugin_loader_1 = __importDefault(require_plugin_loader());
304197
301854
  var ts_path_1 = require_ts_path();
304198
- var util_3 = require_util5();
301855
+ var util_3 = require_util4();
304199
301856
  var debug = (0, util_3.makeDebug)();
304200
301857
  var _pjson = cache_1.default.getInstance().get("@oclif/core");
304201
301858
  var BASE = `${_pjson.name}@${_pjson.version}`;
@@ -305971,7 +303628,7 @@ var require_command2 = __commonJS({
305971
303628
  var cache_1 = __importDefault(require_cache());
305972
303629
  var config_1 = require_config2();
305973
303630
  var Errors = __importStar(require_errors3());
305974
- var util_1 = require_util6();
303631
+ var util_1 = require_util5();
305975
303632
  var logger_1 = require_logger();
305976
303633
  var Parser = __importStar(require_parser());
305977
303634
  var aggregate_flags_1 = require_aggregate_flags();
@@ -327350,8 +325007,8 @@ function catalogDistributionDir() {
327350
325007
  );
327351
325008
  }
327352
325009
  function cliVersion() {
327353
- if ("0.5.35") {
327354
- return "0.5.35";
325010
+ if ("0.5.36") {
325011
+ return "0.5.36";
327355
325012
  }
327356
325013
  try {
327357
325014
  const pkg = JSON.parse(readFileSync31(join37(__dirname4, "..", "package.json"), "utf8"));
@@ -327370,7 +325027,7 @@ function bakedTargetVersions() {
327370
325027
  if (false)
327371
325028
  return void 0;
327372
325029
  try {
327373
- return JSON.parse('{"@vgai/engine":"0.5.35","@vgai/editor":"0.5.35","@vgai/p2p-colyseus":"0.5.35","@vgai/live":"0.5.35","@vgai/sdk":"0.5.35","@vgai/editor-sdk":"0.5.35","@vgai/cli":"0.5.35"}');
325030
+ return JSON.parse('{"@vgai/engine":"0.5.36","@vgai/editor":"0.5.36","@vgai/p2p-colyseus":"0.5.36","@vgai/live":"0.5.36","@vgai/sdk":"0.5.36","@vgai/editor-sdk":"0.5.36","@vgai/cli":"0.5.36"}');
327374
325031
  } catch {
327375
325032
  return void 0;
327376
325033
  }