@swarm.ing/pieui 2.1.4 → 2.1.6

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 (72) hide show
  1. package/README.md +595 -124
  2. package/dist/cli.js +2208 -14
  3. package/dist/code/commands/listEvents.d.ts.map +1 -1
  4. package/dist/code/commands/registry.d.ts.map +1 -1
  5. package/dist/components/PieCard/index.d.ts +1 -1
  6. package/dist/components/PieCard/index.d.ts.map +1 -1
  7. package/dist/components/PieCard/types/index.d.ts +11 -0
  8. package/dist/components/PieCard/types/index.d.ts.map +1 -1
  9. package/dist/components/index.esm.js +1 -1
  10. package/dist/components/index.js +1 -1
  11. package/dist/index.esm.js +2 -2
  12. package/dist/index.js +2 -2
  13. package/dist/max/index.esm.js +1 -1
  14. package/dist/max/index.js +1 -1
  15. package/dist/native/PieNativeRoot.d.ts +15 -0
  16. package/dist/native/PieNativeRoot.d.ts.map +1 -0
  17. package/dist/native/components/AutoRedirectCard.d.ts +10 -0
  18. package/dist/native/components/AutoRedirectCard.d.ts.map +1 -0
  19. package/dist/native/components/BoxCard.d.ts +13 -0
  20. package/dist/native/components/BoxCard.d.ts.map +1 -0
  21. package/dist/native/components/DeviceStorageCard.d.ts +12 -0
  22. package/dist/native/components/DeviceStorageCard.d.ts.map +1 -0
  23. package/dist/native/components/HTMLEmbedCard.d.ts +11 -0
  24. package/dist/native/components/HTMLEmbedCard.d.ts.map +1 -0
  25. package/dist/native/components/HiddenCard.d.ts +11 -0
  26. package/dist/native/components/HiddenCard.d.ts.map +1 -0
  27. package/dist/native/components/IOEventsCard.d.ts +11 -0
  28. package/dist/native/components/IOEventsCard.d.ts.map +1 -0
  29. package/dist/native/components/OneOfCard.d.ts +12 -0
  30. package/dist/native/components/OneOfCard.d.ts.map +1 -0
  31. package/dist/native/components/SequenceCard.d.ts +12 -0
  32. package/dist/native/components/SequenceCard.d.ts.map +1 -0
  33. package/dist/native/components/SessionStorageCard.d.ts +9 -0
  34. package/dist/native/components/SessionStorageCard.d.ts.map +1 -0
  35. package/dist/native/components/index.d.ts +13 -0
  36. package/dist/native/components/index.d.ts.map +1 -0
  37. package/dist/native/index.d.ts +41 -0
  38. package/dist/native/index.d.ts.map +1 -0
  39. package/dist/native/index.esm.js +3 -0
  40. package/dist/native/index.js +3 -0
  41. package/dist/platform/clientSources.d.ts +4 -0
  42. package/dist/platform/clientSources.d.ts.map +1 -0
  43. package/dist/platform/clientSources.native.d.ts +4 -0
  44. package/dist/platform/clientSources.native.d.ts.map +1 -0
  45. package/dist/platform/clientSources.web.d.ts +10 -0
  46. package/dist/platform/clientSources.web.d.ts.map +1 -0
  47. package/dist/platform/nativeConfig.d.ts +63 -0
  48. package/dist/platform/nativeConfig.d.ts.map +1 -0
  49. package/dist/platform/nativeFormStore.d.ts +12 -0
  50. package/dist/platform/nativeFormStore.d.ts.map +1 -0
  51. package/dist/platform/types.d.ts +39 -0
  52. package/dist/platform/types.d.ts.map +1 -0
  53. package/dist/providers/SocketIOInitProvider.d.ts.map +1 -1
  54. package/dist/telegram/index.esm.js +1 -1
  55. package/dist/telegram/index.js +1 -1
  56. package/dist/tests/centrifugeRecovery.test.d.ts +2 -0
  57. package/dist/tests/centrifugeRecovery.test.d.ts.map +1 -0
  58. package/dist/tests/clientSources.test.d.ts +2 -0
  59. package/dist/tests/clientSources.test.d.ts.map +1 -0
  60. package/dist/tests/clientSourcesNative.test.d.ts +12 -0
  61. package/dist/tests/clientSourcesNative.test.d.ts.map +1 -0
  62. package/dist/tests/piecardRecovery.test.d.ts +2 -0
  63. package/dist/tests/piecardRecovery.test.d.ts.map +1 -0
  64. package/dist/util/ajaxCommonUtils.d.ts.map +1 -1
  65. package/dist/util/centrifuge.d.ts +5 -0
  66. package/dist/util/centrifuge.d.ts.map +1 -1
  67. package/dist/util/centrifugeRecovery.d.ts +26 -0
  68. package/dist/util/centrifugeRecovery.d.ts.map +1 -0
  69. package/dist/util/globalForm.d.ts +4 -5
  70. package/dist/util/globalForm.d.ts.map +1 -1
  71. package/dist/util/waitForSidAvailable.d.ts.map +1 -1
  72. package/package.json +17 -4
package/dist/cli.js CHANGED
@@ -3910,6 +3910,2188 @@ ${originalIndentation}`;
3910
3910
  }
3911
3911
  });
3912
3912
 
3913
+ // node_modules/source-map-support/node_modules/source-map/lib/base64.js
3914
+ var require_base64 = __commonJS((exports2) => {
3915
+ var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
3916
+ exports2.encode = function(number) {
3917
+ if (0 <= number && number < intToCharMap.length) {
3918
+ return intToCharMap[number];
3919
+ }
3920
+ throw new TypeError("Must be between 0 and 63: " + number);
3921
+ };
3922
+ exports2.decode = function(charCode) {
3923
+ var bigA = 65;
3924
+ var bigZ = 90;
3925
+ var littleA = 97;
3926
+ var littleZ = 122;
3927
+ var zero = 48;
3928
+ var nine = 57;
3929
+ var plus = 43;
3930
+ var slash = 47;
3931
+ var littleOffset = 26;
3932
+ var numberOffset = 52;
3933
+ if (bigA <= charCode && charCode <= bigZ) {
3934
+ return charCode - bigA;
3935
+ }
3936
+ if (littleA <= charCode && charCode <= littleZ) {
3937
+ return charCode - littleA + littleOffset;
3938
+ }
3939
+ if (zero <= charCode && charCode <= nine) {
3940
+ return charCode - zero + numberOffset;
3941
+ }
3942
+ if (charCode == plus) {
3943
+ return 62;
3944
+ }
3945
+ if (charCode == slash) {
3946
+ return 63;
3947
+ }
3948
+ return -1;
3949
+ };
3950
+ });
3951
+
3952
+ // node_modules/source-map-support/node_modules/source-map/lib/base64-vlq.js
3953
+ var require_base64_vlq = __commonJS((exports2) => {
3954
+ var base64 = require_base64();
3955
+ var VLQ_BASE_SHIFT = 5;
3956
+ var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
3957
+ var VLQ_BASE_MASK = VLQ_BASE - 1;
3958
+ var VLQ_CONTINUATION_BIT = VLQ_BASE;
3959
+ function toVLQSigned(aValue) {
3960
+ return aValue < 0 ? (-aValue << 1) + 1 : (aValue << 1) + 0;
3961
+ }
3962
+ function fromVLQSigned(aValue) {
3963
+ var isNegative = (aValue & 1) === 1;
3964
+ var shifted = aValue >> 1;
3965
+ return isNegative ? -shifted : shifted;
3966
+ }
3967
+ exports2.encode = function base64VLQ_encode(aValue) {
3968
+ var encoded = "";
3969
+ var digit;
3970
+ var vlq = toVLQSigned(aValue);
3971
+ do {
3972
+ digit = vlq & VLQ_BASE_MASK;
3973
+ vlq >>>= VLQ_BASE_SHIFT;
3974
+ if (vlq > 0) {
3975
+ digit |= VLQ_CONTINUATION_BIT;
3976
+ }
3977
+ encoded += base64.encode(digit);
3978
+ } while (vlq > 0);
3979
+ return encoded;
3980
+ };
3981
+ exports2.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
3982
+ var strLen = aStr.length;
3983
+ var result = 0;
3984
+ var shift = 0;
3985
+ var continuation, digit;
3986
+ do {
3987
+ if (aIndex >= strLen) {
3988
+ throw new Error("Expected more digits in base 64 VLQ value.");
3989
+ }
3990
+ digit = base64.decode(aStr.charCodeAt(aIndex++));
3991
+ if (digit === -1) {
3992
+ throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1));
3993
+ }
3994
+ continuation = !!(digit & VLQ_CONTINUATION_BIT);
3995
+ digit &= VLQ_BASE_MASK;
3996
+ result = result + (digit << shift);
3997
+ shift += VLQ_BASE_SHIFT;
3998
+ } while (continuation);
3999
+ aOutParam.value = fromVLQSigned(result);
4000
+ aOutParam.rest = aIndex;
4001
+ };
4002
+ });
4003
+
4004
+ // node_modules/source-map-support/node_modules/source-map/lib/util.js
4005
+ var require_util = __commonJS((exports2) => {
4006
+ function getArg(aArgs, aName, aDefaultValue) {
4007
+ if (aName in aArgs) {
4008
+ return aArgs[aName];
4009
+ } else if (arguments.length === 3) {
4010
+ return aDefaultValue;
4011
+ } else {
4012
+ throw new Error('"' + aName + '" is a required argument.');
4013
+ }
4014
+ }
4015
+ exports2.getArg = getArg;
4016
+ var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
4017
+ var dataUrlRegexp = /^data:.+\,.+$/;
4018
+ function urlParse(aUrl) {
4019
+ var match = aUrl.match(urlRegexp);
4020
+ if (!match) {
4021
+ return null;
4022
+ }
4023
+ return {
4024
+ scheme: match[1],
4025
+ auth: match[2],
4026
+ host: match[3],
4027
+ port: match[4],
4028
+ path: match[5]
4029
+ };
4030
+ }
4031
+ exports2.urlParse = urlParse;
4032
+ function urlGenerate(aParsedUrl) {
4033
+ var url = "";
4034
+ if (aParsedUrl.scheme) {
4035
+ url += aParsedUrl.scheme + ":";
4036
+ }
4037
+ url += "//";
4038
+ if (aParsedUrl.auth) {
4039
+ url += aParsedUrl.auth + "@";
4040
+ }
4041
+ if (aParsedUrl.host) {
4042
+ url += aParsedUrl.host;
4043
+ }
4044
+ if (aParsedUrl.port) {
4045
+ url += ":" + aParsedUrl.port;
4046
+ }
4047
+ if (aParsedUrl.path) {
4048
+ url += aParsedUrl.path;
4049
+ }
4050
+ return url;
4051
+ }
4052
+ exports2.urlGenerate = urlGenerate;
4053
+ function normalize(aPath) {
4054
+ var path2 = aPath;
4055
+ var url = urlParse(aPath);
4056
+ if (url) {
4057
+ if (!url.path) {
4058
+ return aPath;
4059
+ }
4060
+ path2 = url.path;
4061
+ }
4062
+ var isAbsolute = exports2.isAbsolute(path2);
4063
+ var parts = path2.split(/\/+/);
4064
+ for (var part, up = 0, i = parts.length - 1;i >= 0; i--) {
4065
+ part = parts[i];
4066
+ if (part === ".") {
4067
+ parts.splice(i, 1);
4068
+ } else if (part === "..") {
4069
+ up++;
4070
+ } else if (up > 0) {
4071
+ if (part === "") {
4072
+ parts.splice(i + 1, up);
4073
+ up = 0;
4074
+ } else {
4075
+ parts.splice(i, 2);
4076
+ up--;
4077
+ }
4078
+ }
4079
+ }
4080
+ path2 = parts.join("/");
4081
+ if (path2 === "") {
4082
+ path2 = isAbsolute ? "/" : ".";
4083
+ }
4084
+ if (url) {
4085
+ url.path = path2;
4086
+ return urlGenerate(url);
4087
+ }
4088
+ return path2;
4089
+ }
4090
+ exports2.normalize = normalize;
4091
+ function join(aRoot, aPath) {
4092
+ if (aRoot === "") {
4093
+ aRoot = ".";
4094
+ }
4095
+ if (aPath === "") {
4096
+ aPath = ".";
4097
+ }
4098
+ var aPathUrl = urlParse(aPath);
4099
+ var aRootUrl = urlParse(aRoot);
4100
+ if (aRootUrl) {
4101
+ aRoot = aRootUrl.path || "/";
4102
+ }
4103
+ if (aPathUrl && !aPathUrl.scheme) {
4104
+ if (aRootUrl) {
4105
+ aPathUrl.scheme = aRootUrl.scheme;
4106
+ }
4107
+ return urlGenerate(aPathUrl);
4108
+ }
4109
+ if (aPathUrl || aPath.match(dataUrlRegexp)) {
4110
+ return aPath;
4111
+ }
4112
+ if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {
4113
+ aRootUrl.host = aPath;
4114
+ return urlGenerate(aRootUrl);
4115
+ }
4116
+ var joined = aPath.charAt(0) === "/" ? aPath : normalize(aRoot.replace(/\/+$/, "") + "/" + aPath);
4117
+ if (aRootUrl) {
4118
+ aRootUrl.path = joined;
4119
+ return urlGenerate(aRootUrl);
4120
+ }
4121
+ return joined;
4122
+ }
4123
+ exports2.join = join;
4124
+ exports2.isAbsolute = function(aPath) {
4125
+ return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
4126
+ };
4127
+ function relative(aRoot, aPath) {
4128
+ if (aRoot === "") {
4129
+ aRoot = ".";
4130
+ }
4131
+ aRoot = aRoot.replace(/\/$/, "");
4132
+ var level = 0;
4133
+ while (aPath.indexOf(aRoot + "/") !== 0) {
4134
+ var index = aRoot.lastIndexOf("/");
4135
+ if (index < 0) {
4136
+ return aPath;
4137
+ }
4138
+ aRoot = aRoot.slice(0, index);
4139
+ if (aRoot.match(/^([^\/]+:\/)?\/*$/)) {
4140
+ return aPath;
4141
+ }
4142
+ ++level;
4143
+ }
4144
+ return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
4145
+ }
4146
+ exports2.relative = relative;
4147
+ var supportsNullProto = function() {
4148
+ var obj = Object.create(null);
4149
+ return !("__proto__" in obj);
4150
+ }();
4151
+ function identity(s) {
4152
+ return s;
4153
+ }
4154
+ function toSetString(aStr) {
4155
+ if (isProtoString(aStr)) {
4156
+ return "$" + aStr;
4157
+ }
4158
+ return aStr;
4159
+ }
4160
+ exports2.toSetString = supportsNullProto ? identity : toSetString;
4161
+ function fromSetString(aStr) {
4162
+ if (isProtoString(aStr)) {
4163
+ return aStr.slice(1);
4164
+ }
4165
+ return aStr;
4166
+ }
4167
+ exports2.fromSetString = supportsNullProto ? identity : fromSetString;
4168
+ function isProtoString(s) {
4169
+ if (!s) {
4170
+ return false;
4171
+ }
4172
+ var length = s.length;
4173
+ if (length < 9) {
4174
+ return false;
4175
+ }
4176
+ 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) {
4177
+ return false;
4178
+ }
4179
+ for (var i = length - 10;i >= 0; i--) {
4180
+ if (s.charCodeAt(i) !== 36) {
4181
+ return false;
4182
+ }
4183
+ }
4184
+ return true;
4185
+ }
4186
+ function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {
4187
+ var cmp = strcmp(mappingA.source, mappingB.source);
4188
+ if (cmp !== 0) {
4189
+ return cmp;
4190
+ }
4191
+ cmp = mappingA.originalLine - mappingB.originalLine;
4192
+ if (cmp !== 0) {
4193
+ return cmp;
4194
+ }
4195
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
4196
+ if (cmp !== 0 || onlyCompareOriginal) {
4197
+ return cmp;
4198
+ }
4199
+ cmp = mappingA.generatedColumn - mappingB.generatedColumn;
4200
+ if (cmp !== 0) {
4201
+ return cmp;
4202
+ }
4203
+ cmp = mappingA.generatedLine - mappingB.generatedLine;
4204
+ if (cmp !== 0) {
4205
+ return cmp;
4206
+ }
4207
+ return strcmp(mappingA.name, mappingB.name);
4208
+ }
4209
+ exports2.compareByOriginalPositions = compareByOriginalPositions;
4210
+ function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
4211
+ var cmp = mappingA.generatedLine - mappingB.generatedLine;
4212
+ if (cmp !== 0) {
4213
+ return cmp;
4214
+ }
4215
+ cmp = mappingA.generatedColumn - mappingB.generatedColumn;
4216
+ if (cmp !== 0 || onlyCompareGenerated) {
4217
+ return cmp;
4218
+ }
4219
+ cmp = strcmp(mappingA.source, mappingB.source);
4220
+ if (cmp !== 0) {
4221
+ return cmp;
4222
+ }
4223
+ cmp = mappingA.originalLine - mappingB.originalLine;
4224
+ if (cmp !== 0) {
4225
+ return cmp;
4226
+ }
4227
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
4228
+ if (cmp !== 0) {
4229
+ return cmp;
4230
+ }
4231
+ return strcmp(mappingA.name, mappingB.name);
4232
+ }
4233
+ exports2.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
4234
+ function strcmp(aStr1, aStr2) {
4235
+ if (aStr1 === aStr2) {
4236
+ return 0;
4237
+ }
4238
+ if (aStr1 === null) {
4239
+ return 1;
4240
+ }
4241
+ if (aStr2 === null) {
4242
+ return -1;
4243
+ }
4244
+ if (aStr1 > aStr2) {
4245
+ return 1;
4246
+ }
4247
+ return -1;
4248
+ }
4249
+ function compareByGeneratedPositionsInflated(mappingA, mappingB) {
4250
+ var cmp = mappingA.generatedLine - mappingB.generatedLine;
4251
+ if (cmp !== 0) {
4252
+ return cmp;
4253
+ }
4254
+ cmp = mappingA.generatedColumn - mappingB.generatedColumn;
4255
+ if (cmp !== 0) {
4256
+ return cmp;
4257
+ }
4258
+ cmp = strcmp(mappingA.source, mappingB.source);
4259
+ if (cmp !== 0) {
4260
+ return cmp;
4261
+ }
4262
+ cmp = mappingA.originalLine - mappingB.originalLine;
4263
+ if (cmp !== 0) {
4264
+ return cmp;
4265
+ }
4266
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
4267
+ if (cmp !== 0) {
4268
+ return cmp;
4269
+ }
4270
+ return strcmp(mappingA.name, mappingB.name);
4271
+ }
4272
+ exports2.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
4273
+ function parseSourceMapInput(str) {
4274
+ return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ""));
4275
+ }
4276
+ exports2.parseSourceMapInput = parseSourceMapInput;
4277
+ function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {
4278
+ sourceURL = sourceURL || "";
4279
+ if (sourceRoot) {
4280
+ if (sourceRoot[sourceRoot.length - 1] !== "/" && sourceURL[0] !== "/") {
4281
+ sourceRoot += "/";
4282
+ }
4283
+ sourceURL = sourceRoot + sourceURL;
4284
+ }
4285
+ if (sourceMapURL) {
4286
+ var parsed = urlParse(sourceMapURL);
4287
+ if (!parsed) {
4288
+ throw new Error("sourceMapURL could not be parsed");
4289
+ }
4290
+ if (parsed.path) {
4291
+ var index = parsed.path.lastIndexOf("/");
4292
+ if (index >= 0) {
4293
+ parsed.path = parsed.path.substring(0, index + 1);
4294
+ }
4295
+ }
4296
+ sourceURL = join(urlGenerate(parsed), sourceURL);
4297
+ }
4298
+ return normalize(sourceURL);
4299
+ }
4300
+ exports2.computeSourceURL = computeSourceURL;
4301
+ });
4302
+
4303
+ // node_modules/source-map-support/node_modules/source-map/lib/array-set.js
4304
+ var require_array_set = __commonJS((exports2) => {
4305
+ var util = require_util();
4306
+ var has = Object.prototype.hasOwnProperty;
4307
+ var hasNativeMap = typeof Map !== "undefined";
4308
+ function ArraySet() {
4309
+ this._array = [];
4310
+ this._set = hasNativeMap ? new Map : Object.create(null);
4311
+ }
4312
+ ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
4313
+ var set = new ArraySet;
4314
+ for (var i = 0, len = aArray.length;i < len; i++) {
4315
+ set.add(aArray[i], aAllowDuplicates);
4316
+ }
4317
+ return set;
4318
+ };
4319
+ ArraySet.prototype.size = function ArraySet_size() {
4320
+ return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;
4321
+ };
4322
+ ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {
4323
+ var sStr = hasNativeMap ? aStr : util.toSetString(aStr);
4324
+ var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);
4325
+ var idx = this._array.length;
4326
+ if (!isDuplicate || aAllowDuplicates) {
4327
+ this._array.push(aStr);
4328
+ }
4329
+ if (!isDuplicate) {
4330
+ if (hasNativeMap) {
4331
+ this._set.set(aStr, idx);
4332
+ } else {
4333
+ this._set[sStr] = idx;
4334
+ }
4335
+ }
4336
+ };
4337
+ ArraySet.prototype.has = function ArraySet_has(aStr) {
4338
+ if (hasNativeMap) {
4339
+ return this._set.has(aStr);
4340
+ } else {
4341
+ var sStr = util.toSetString(aStr);
4342
+ return has.call(this._set, sStr);
4343
+ }
4344
+ };
4345
+ ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {
4346
+ if (hasNativeMap) {
4347
+ var idx = this._set.get(aStr);
4348
+ if (idx >= 0) {
4349
+ return idx;
4350
+ }
4351
+ } else {
4352
+ var sStr = util.toSetString(aStr);
4353
+ if (has.call(this._set, sStr)) {
4354
+ return this._set[sStr];
4355
+ }
4356
+ }
4357
+ throw new Error('"' + aStr + '" is not in the set.');
4358
+ };
4359
+ ArraySet.prototype.at = function ArraySet_at(aIdx) {
4360
+ if (aIdx >= 0 && aIdx < this._array.length) {
4361
+ return this._array[aIdx];
4362
+ }
4363
+ throw new Error("No element indexed by " + aIdx);
4364
+ };
4365
+ ArraySet.prototype.toArray = function ArraySet_toArray() {
4366
+ return this._array.slice();
4367
+ };
4368
+ exports2.ArraySet = ArraySet;
4369
+ });
4370
+
4371
+ // node_modules/source-map-support/node_modules/source-map/lib/mapping-list.js
4372
+ var require_mapping_list = __commonJS((exports2) => {
4373
+ var util = require_util();
4374
+ function generatedPositionAfter(mappingA, mappingB) {
4375
+ var lineA = mappingA.generatedLine;
4376
+ var lineB = mappingB.generatedLine;
4377
+ var columnA = mappingA.generatedColumn;
4378
+ var columnB = mappingB.generatedColumn;
4379
+ return lineB > lineA || lineB == lineA && columnB >= columnA || util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
4380
+ }
4381
+ function MappingList() {
4382
+ this._array = [];
4383
+ this._sorted = true;
4384
+ this._last = { generatedLine: -1, generatedColumn: 0 };
4385
+ }
4386
+ MappingList.prototype.unsortedForEach = function MappingList_forEach(aCallback, aThisArg) {
4387
+ this._array.forEach(aCallback, aThisArg);
4388
+ };
4389
+ MappingList.prototype.add = function MappingList_add(aMapping) {
4390
+ if (generatedPositionAfter(this._last, aMapping)) {
4391
+ this._last = aMapping;
4392
+ this._array.push(aMapping);
4393
+ } else {
4394
+ this._sorted = false;
4395
+ this._array.push(aMapping);
4396
+ }
4397
+ };
4398
+ MappingList.prototype.toArray = function MappingList_toArray() {
4399
+ if (!this._sorted) {
4400
+ this._array.sort(util.compareByGeneratedPositionsInflated);
4401
+ this._sorted = true;
4402
+ }
4403
+ return this._array;
4404
+ };
4405
+ exports2.MappingList = MappingList;
4406
+ });
4407
+
4408
+ // node_modules/source-map-support/node_modules/source-map/lib/source-map-generator.js
4409
+ var require_source_map_generator = __commonJS((exports2) => {
4410
+ var base64VLQ = require_base64_vlq();
4411
+ var util = require_util();
4412
+ var ArraySet = require_array_set().ArraySet;
4413
+ var MappingList = require_mapping_list().MappingList;
4414
+ function SourceMapGenerator(aArgs) {
4415
+ if (!aArgs) {
4416
+ aArgs = {};
4417
+ }
4418
+ this._file = util.getArg(aArgs, "file", null);
4419
+ this._sourceRoot = util.getArg(aArgs, "sourceRoot", null);
4420
+ this._skipValidation = util.getArg(aArgs, "skipValidation", false);
4421
+ this._sources = new ArraySet;
4422
+ this._names = new ArraySet;
4423
+ this._mappings = new MappingList;
4424
+ this._sourcesContents = null;
4425
+ }
4426
+ SourceMapGenerator.prototype._version = 3;
4427
+ SourceMapGenerator.fromSourceMap = function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) {
4428
+ var sourceRoot = aSourceMapConsumer.sourceRoot;
4429
+ var generator = new SourceMapGenerator({
4430
+ file: aSourceMapConsumer.file,
4431
+ sourceRoot
4432
+ });
4433
+ aSourceMapConsumer.eachMapping(function(mapping) {
4434
+ var newMapping = {
4435
+ generated: {
4436
+ line: mapping.generatedLine,
4437
+ column: mapping.generatedColumn
4438
+ }
4439
+ };
4440
+ if (mapping.source != null) {
4441
+ newMapping.source = mapping.source;
4442
+ if (sourceRoot != null) {
4443
+ newMapping.source = util.relative(sourceRoot, newMapping.source);
4444
+ }
4445
+ newMapping.original = {
4446
+ line: mapping.originalLine,
4447
+ column: mapping.originalColumn
4448
+ };
4449
+ if (mapping.name != null) {
4450
+ newMapping.name = mapping.name;
4451
+ }
4452
+ }
4453
+ generator.addMapping(newMapping);
4454
+ });
4455
+ aSourceMapConsumer.sources.forEach(function(sourceFile) {
4456
+ var sourceRelative = sourceFile;
4457
+ if (sourceRoot !== null) {
4458
+ sourceRelative = util.relative(sourceRoot, sourceFile);
4459
+ }
4460
+ if (!generator._sources.has(sourceRelative)) {
4461
+ generator._sources.add(sourceRelative);
4462
+ }
4463
+ var content = aSourceMapConsumer.sourceContentFor(sourceFile);
4464
+ if (content != null) {
4465
+ generator.setSourceContent(sourceFile, content);
4466
+ }
4467
+ });
4468
+ return generator;
4469
+ };
4470
+ SourceMapGenerator.prototype.addMapping = function SourceMapGenerator_addMapping(aArgs) {
4471
+ var generated = util.getArg(aArgs, "generated");
4472
+ var original = util.getArg(aArgs, "original", null);
4473
+ var source = util.getArg(aArgs, "source", null);
4474
+ var name = util.getArg(aArgs, "name", null);
4475
+ if (!this._skipValidation) {
4476
+ this._validateMapping(generated, original, source, name);
4477
+ }
4478
+ if (source != null) {
4479
+ source = String(source);
4480
+ if (!this._sources.has(source)) {
4481
+ this._sources.add(source);
4482
+ }
4483
+ }
4484
+ if (name != null) {
4485
+ name = String(name);
4486
+ if (!this._names.has(name)) {
4487
+ this._names.add(name);
4488
+ }
4489
+ }
4490
+ this._mappings.add({
4491
+ generatedLine: generated.line,
4492
+ generatedColumn: generated.column,
4493
+ originalLine: original != null && original.line,
4494
+ originalColumn: original != null && original.column,
4495
+ source,
4496
+ name
4497
+ });
4498
+ };
4499
+ SourceMapGenerator.prototype.setSourceContent = function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
4500
+ var source = aSourceFile;
4501
+ if (this._sourceRoot != null) {
4502
+ source = util.relative(this._sourceRoot, source);
4503
+ }
4504
+ if (aSourceContent != null) {
4505
+ if (!this._sourcesContents) {
4506
+ this._sourcesContents = Object.create(null);
4507
+ }
4508
+ this._sourcesContents[util.toSetString(source)] = aSourceContent;
4509
+ } else if (this._sourcesContents) {
4510
+ delete this._sourcesContents[util.toSetString(source)];
4511
+ if (Object.keys(this._sourcesContents).length === 0) {
4512
+ this._sourcesContents = null;
4513
+ }
4514
+ }
4515
+ };
4516
+ SourceMapGenerator.prototype.applySourceMap = function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {
4517
+ var sourceFile = aSourceFile;
4518
+ if (aSourceFile == null) {
4519
+ if (aSourceMapConsumer.file == null) {
4520
+ throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, " + `or the source map's "file" property. Both were omitted.`);
4521
+ }
4522
+ sourceFile = aSourceMapConsumer.file;
4523
+ }
4524
+ var sourceRoot = this._sourceRoot;
4525
+ if (sourceRoot != null) {
4526
+ sourceFile = util.relative(sourceRoot, sourceFile);
4527
+ }
4528
+ var newSources = new ArraySet;
4529
+ var newNames = new ArraySet;
4530
+ this._mappings.unsortedForEach(function(mapping) {
4531
+ if (mapping.source === sourceFile && mapping.originalLine != null) {
4532
+ var original = aSourceMapConsumer.originalPositionFor({
4533
+ line: mapping.originalLine,
4534
+ column: mapping.originalColumn
4535
+ });
4536
+ if (original.source != null) {
4537
+ mapping.source = original.source;
4538
+ if (aSourceMapPath != null) {
4539
+ mapping.source = util.join(aSourceMapPath, mapping.source);
4540
+ }
4541
+ if (sourceRoot != null) {
4542
+ mapping.source = util.relative(sourceRoot, mapping.source);
4543
+ }
4544
+ mapping.originalLine = original.line;
4545
+ mapping.originalColumn = original.column;
4546
+ if (original.name != null) {
4547
+ mapping.name = original.name;
4548
+ }
4549
+ }
4550
+ }
4551
+ var source = mapping.source;
4552
+ if (source != null && !newSources.has(source)) {
4553
+ newSources.add(source);
4554
+ }
4555
+ var name = mapping.name;
4556
+ if (name != null && !newNames.has(name)) {
4557
+ newNames.add(name);
4558
+ }
4559
+ }, this);
4560
+ this._sources = newSources;
4561
+ this._names = newNames;
4562
+ aSourceMapConsumer.sources.forEach(function(sourceFile2) {
4563
+ var content = aSourceMapConsumer.sourceContentFor(sourceFile2);
4564
+ if (content != null) {
4565
+ if (aSourceMapPath != null) {
4566
+ sourceFile2 = util.join(aSourceMapPath, sourceFile2);
4567
+ }
4568
+ if (sourceRoot != null) {
4569
+ sourceFile2 = util.relative(sourceRoot, sourceFile2);
4570
+ }
4571
+ this.setSourceContent(sourceFile2, content);
4572
+ }
4573
+ }, this);
4574
+ };
4575
+ SourceMapGenerator.prototype._validateMapping = function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, aName) {
4576
+ if (aOriginal && typeof aOriginal.line !== "number" && typeof aOriginal.column !== "number") {
4577
+ throw new Error("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.");
4578
+ }
4579
+ if (aGenerated && "line" in aGenerated && "column" in aGenerated && aGenerated.line > 0 && aGenerated.column >= 0 && !aOriginal && !aSource && !aName) {
4580
+ return;
4581
+ } 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) {
4582
+ return;
4583
+ } else {
4584
+ throw new Error("Invalid mapping: " + JSON.stringify({
4585
+ generated: aGenerated,
4586
+ source: aSource,
4587
+ original: aOriginal,
4588
+ name: aName
4589
+ }));
4590
+ }
4591
+ };
4592
+ SourceMapGenerator.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() {
4593
+ var previousGeneratedColumn = 0;
4594
+ var previousGeneratedLine = 1;
4595
+ var previousOriginalColumn = 0;
4596
+ var previousOriginalLine = 0;
4597
+ var previousName = 0;
4598
+ var previousSource = 0;
4599
+ var result = "";
4600
+ var next;
4601
+ var mapping;
4602
+ var nameIdx;
4603
+ var sourceIdx;
4604
+ var mappings = this._mappings.toArray();
4605
+ for (var i = 0, len = mappings.length;i < len; i++) {
4606
+ mapping = mappings[i];
4607
+ next = "";
4608
+ if (mapping.generatedLine !== previousGeneratedLine) {
4609
+ previousGeneratedColumn = 0;
4610
+ while (mapping.generatedLine !== previousGeneratedLine) {
4611
+ next += ";";
4612
+ previousGeneratedLine++;
4613
+ }
4614
+ } else {
4615
+ if (i > 0) {
4616
+ if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) {
4617
+ continue;
4618
+ }
4619
+ next += ",";
4620
+ }
4621
+ }
4622
+ next += base64VLQ.encode(mapping.generatedColumn - previousGeneratedColumn);
4623
+ previousGeneratedColumn = mapping.generatedColumn;
4624
+ if (mapping.source != null) {
4625
+ sourceIdx = this._sources.indexOf(mapping.source);
4626
+ next += base64VLQ.encode(sourceIdx - previousSource);
4627
+ previousSource = sourceIdx;
4628
+ next += base64VLQ.encode(mapping.originalLine - 1 - previousOriginalLine);
4629
+ previousOriginalLine = mapping.originalLine - 1;
4630
+ next += base64VLQ.encode(mapping.originalColumn - previousOriginalColumn);
4631
+ previousOriginalColumn = mapping.originalColumn;
4632
+ if (mapping.name != null) {
4633
+ nameIdx = this._names.indexOf(mapping.name);
4634
+ next += base64VLQ.encode(nameIdx - previousName);
4635
+ previousName = nameIdx;
4636
+ }
4637
+ }
4638
+ result += next;
4639
+ }
4640
+ return result;
4641
+ };
4642
+ SourceMapGenerator.prototype._generateSourcesContent = function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {
4643
+ return aSources.map(function(source) {
4644
+ if (!this._sourcesContents) {
4645
+ return null;
4646
+ }
4647
+ if (aSourceRoot != null) {
4648
+ source = util.relative(aSourceRoot, source);
4649
+ }
4650
+ var key = util.toSetString(source);
4651
+ return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) ? this._sourcesContents[key] : null;
4652
+ }, this);
4653
+ };
4654
+ SourceMapGenerator.prototype.toJSON = function SourceMapGenerator_toJSON() {
4655
+ var map = {
4656
+ version: this._version,
4657
+ sources: this._sources.toArray(),
4658
+ names: this._names.toArray(),
4659
+ mappings: this._serializeMappings()
4660
+ };
4661
+ if (this._file != null) {
4662
+ map.file = this._file;
4663
+ }
4664
+ if (this._sourceRoot != null) {
4665
+ map.sourceRoot = this._sourceRoot;
4666
+ }
4667
+ if (this._sourcesContents) {
4668
+ map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot);
4669
+ }
4670
+ return map;
4671
+ };
4672
+ SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
4673
+ return JSON.stringify(this.toJSON());
4674
+ };
4675
+ exports2.SourceMapGenerator = SourceMapGenerator;
4676
+ });
4677
+
4678
+ // node_modules/source-map-support/node_modules/source-map/lib/binary-search.js
4679
+ var require_binary_search = __commonJS((exports2) => {
4680
+ exports2.GREATEST_LOWER_BOUND = 1;
4681
+ exports2.LEAST_UPPER_BOUND = 2;
4682
+ function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
4683
+ var mid = Math.floor((aHigh - aLow) / 2) + aLow;
4684
+ var cmp = aCompare(aNeedle, aHaystack[mid], true);
4685
+ if (cmp === 0) {
4686
+ return mid;
4687
+ } else if (cmp > 0) {
4688
+ if (aHigh - mid > 1) {
4689
+ return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
4690
+ }
4691
+ if (aBias == exports2.LEAST_UPPER_BOUND) {
4692
+ return aHigh < aHaystack.length ? aHigh : -1;
4693
+ } else {
4694
+ return mid;
4695
+ }
4696
+ } else {
4697
+ if (mid - aLow > 1) {
4698
+ return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
4699
+ }
4700
+ if (aBias == exports2.LEAST_UPPER_BOUND) {
4701
+ return mid;
4702
+ } else {
4703
+ return aLow < 0 ? -1 : aLow;
4704
+ }
4705
+ }
4706
+ }
4707
+ exports2.search = function search(aNeedle, aHaystack, aCompare, aBias) {
4708
+ if (aHaystack.length === 0) {
4709
+ return -1;
4710
+ }
4711
+ var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, aCompare, aBias || exports2.GREATEST_LOWER_BOUND);
4712
+ if (index < 0) {
4713
+ return -1;
4714
+ }
4715
+ while (index - 1 >= 0) {
4716
+ if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {
4717
+ break;
4718
+ }
4719
+ --index;
4720
+ }
4721
+ return index;
4722
+ };
4723
+ });
4724
+
4725
+ // node_modules/source-map-support/node_modules/source-map/lib/quick-sort.js
4726
+ var require_quick_sort = __commonJS((exports2) => {
4727
+ function swap(ary, x, y) {
4728
+ var temp = ary[x];
4729
+ ary[x] = ary[y];
4730
+ ary[y] = temp;
4731
+ }
4732
+ function randomIntInRange(low, high) {
4733
+ return Math.round(low + Math.random() * (high - low));
4734
+ }
4735
+ function doQuickSort(ary, comparator, p, r) {
4736
+ if (p < r) {
4737
+ var pivotIndex = randomIntInRange(p, r);
4738
+ var i = p - 1;
4739
+ swap(ary, pivotIndex, r);
4740
+ var pivot = ary[r];
4741
+ for (var j = p;j < r; j++) {
4742
+ if (comparator(ary[j], pivot) <= 0) {
4743
+ i += 1;
4744
+ swap(ary, i, j);
4745
+ }
4746
+ }
4747
+ swap(ary, i + 1, j);
4748
+ var q = i + 1;
4749
+ doQuickSort(ary, comparator, p, q - 1);
4750
+ doQuickSort(ary, comparator, q + 1, r);
4751
+ }
4752
+ }
4753
+ exports2.quickSort = function(ary, comparator) {
4754
+ doQuickSort(ary, comparator, 0, ary.length - 1);
4755
+ };
4756
+ });
4757
+
4758
+ // node_modules/source-map-support/node_modules/source-map/lib/source-map-consumer.js
4759
+ var require_source_map_consumer = __commonJS((exports2) => {
4760
+ var util = require_util();
4761
+ var binarySearch = require_binary_search();
4762
+ var ArraySet = require_array_set().ArraySet;
4763
+ var base64VLQ = require_base64_vlq();
4764
+ var quickSort = require_quick_sort().quickSort;
4765
+ function SourceMapConsumer(aSourceMap, aSourceMapURL) {
4766
+ var sourceMap = aSourceMap;
4767
+ if (typeof aSourceMap === "string") {
4768
+ sourceMap = util.parseSourceMapInput(aSourceMap);
4769
+ }
4770
+ return sourceMap.sections != null ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
4771
+ }
4772
+ SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {
4773
+ return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
4774
+ };
4775
+ SourceMapConsumer.prototype._version = 3;
4776
+ SourceMapConsumer.prototype.__generatedMappings = null;
4777
+ Object.defineProperty(SourceMapConsumer.prototype, "_generatedMappings", {
4778
+ configurable: true,
4779
+ enumerable: true,
4780
+ get: function() {
4781
+ if (!this.__generatedMappings) {
4782
+ this._parseMappings(this._mappings, this.sourceRoot);
4783
+ }
4784
+ return this.__generatedMappings;
4785
+ }
4786
+ });
4787
+ SourceMapConsumer.prototype.__originalMappings = null;
4788
+ Object.defineProperty(SourceMapConsumer.prototype, "_originalMappings", {
4789
+ configurable: true,
4790
+ enumerable: true,
4791
+ get: function() {
4792
+ if (!this.__originalMappings) {
4793
+ this._parseMappings(this._mappings, this.sourceRoot);
4794
+ }
4795
+ return this.__originalMappings;
4796
+ }
4797
+ });
4798
+ SourceMapConsumer.prototype._charIsMappingSeparator = function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
4799
+ var c = aStr.charAt(index);
4800
+ return c === ";" || c === ",";
4801
+ };
4802
+ SourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
4803
+ throw new Error("Subclasses must implement _parseMappings");
4804
+ };
4805
+ SourceMapConsumer.GENERATED_ORDER = 1;
4806
+ SourceMapConsumer.ORIGINAL_ORDER = 2;
4807
+ SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
4808
+ SourceMapConsumer.LEAST_UPPER_BOUND = 2;
4809
+ SourceMapConsumer.prototype.eachMapping = function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
4810
+ var context = aContext || null;
4811
+ var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
4812
+ var mappings;
4813
+ switch (order) {
4814
+ case SourceMapConsumer.GENERATED_ORDER:
4815
+ mappings = this._generatedMappings;
4816
+ break;
4817
+ case SourceMapConsumer.ORIGINAL_ORDER:
4818
+ mappings = this._originalMappings;
4819
+ break;
4820
+ default:
4821
+ throw new Error("Unknown order of iteration.");
4822
+ }
4823
+ var sourceRoot = this.sourceRoot;
4824
+ mappings.map(function(mapping) {
4825
+ var source = mapping.source === null ? null : this._sources.at(mapping.source);
4826
+ source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL);
4827
+ return {
4828
+ source,
4829
+ generatedLine: mapping.generatedLine,
4830
+ generatedColumn: mapping.generatedColumn,
4831
+ originalLine: mapping.originalLine,
4832
+ originalColumn: mapping.originalColumn,
4833
+ name: mapping.name === null ? null : this._names.at(mapping.name)
4834
+ };
4835
+ }, this).forEach(aCallback, context);
4836
+ };
4837
+ SourceMapConsumer.prototype.allGeneratedPositionsFor = function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
4838
+ var line = util.getArg(aArgs, "line");
4839
+ var needle = {
4840
+ source: util.getArg(aArgs, "source"),
4841
+ originalLine: line,
4842
+ originalColumn: util.getArg(aArgs, "column", 0)
4843
+ };
4844
+ needle.source = this._findSourceIndex(needle.source);
4845
+ if (needle.source < 0) {
4846
+ return [];
4847
+ }
4848
+ var mappings = [];
4849
+ var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, binarySearch.LEAST_UPPER_BOUND);
4850
+ if (index >= 0) {
4851
+ var mapping = this._originalMappings[index];
4852
+ if (aArgs.column === undefined) {
4853
+ var originalLine = mapping.originalLine;
4854
+ while (mapping && mapping.originalLine === originalLine) {
4855
+ mappings.push({
4856
+ line: util.getArg(mapping, "generatedLine", null),
4857
+ column: util.getArg(mapping, "generatedColumn", null),
4858
+ lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
4859
+ });
4860
+ mapping = this._originalMappings[++index];
4861
+ }
4862
+ } else {
4863
+ var originalColumn = mapping.originalColumn;
4864
+ while (mapping && mapping.originalLine === line && mapping.originalColumn == originalColumn) {
4865
+ mappings.push({
4866
+ line: util.getArg(mapping, "generatedLine", null),
4867
+ column: util.getArg(mapping, "generatedColumn", null),
4868
+ lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
4869
+ });
4870
+ mapping = this._originalMappings[++index];
4871
+ }
4872
+ }
4873
+ }
4874
+ return mappings;
4875
+ };
4876
+ exports2.SourceMapConsumer = SourceMapConsumer;
4877
+ function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
4878
+ var sourceMap = aSourceMap;
4879
+ if (typeof aSourceMap === "string") {
4880
+ sourceMap = util.parseSourceMapInput(aSourceMap);
4881
+ }
4882
+ var version = util.getArg(sourceMap, "version");
4883
+ var sources = util.getArg(sourceMap, "sources");
4884
+ var names = util.getArg(sourceMap, "names", []);
4885
+ var sourceRoot = util.getArg(sourceMap, "sourceRoot", null);
4886
+ var sourcesContent = util.getArg(sourceMap, "sourcesContent", null);
4887
+ var mappings = util.getArg(sourceMap, "mappings");
4888
+ var file = util.getArg(sourceMap, "file", null);
4889
+ if (version != this._version) {
4890
+ throw new Error("Unsupported version: " + version);
4891
+ }
4892
+ if (sourceRoot) {
4893
+ sourceRoot = util.normalize(sourceRoot);
4894
+ }
4895
+ sources = sources.map(String).map(util.normalize).map(function(source) {
4896
+ return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) ? util.relative(sourceRoot, source) : source;
4897
+ });
4898
+ this._names = ArraySet.fromArray(names.map(String), true);
4899
+ this._sources = ArraySet.fromArray(sources, true);
4900
+ this._absoluteSources = this._sources.toArray().map(function(s) {
4901
+ return util.computeSourceURL(sourceRoot, s, aSourceMapURL);
4902
+ });
4903
+ this.sourceRoot = sourceRoot;
4904
+ this.sourcesContent = sourcesContent;
4905
+ this._mappings = mappings;
4906
+ this._sourceMapURL = aSourceMapURL;
4907
+ this.file = file;
4908
+ }
4909
+ BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
4910
+ BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
4911
+ BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {
4912
+ var relativeSource = aSource;
4913
+ if (this.sourceRoot != null) {
4914
+ relativeSource = util.relative(this.sourceRoot, relativeSource);
4915
+ }
4916
+ if (this._sources.has(relativeSource)) {
4917
+ return this._sources.indexOf(relativeSource);
4918
+ }
4919
+ var i;
4920
+ for (i = 0;i < this._absoluteSources.length; ++i) {
4921
+ if (this._absoluteSources[i] == aSource) {
4922
+ return i;
4923
+ }
4924
+ }
4925
+ return -1;
4926
+ };
4927
+ BasicSourceMapConsumer.fromSourceMap = function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) {
4928
+ var smc = Object.create(BasicSourceMapConsumer.prototype);
4929
+ var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
4930
+ var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
4931
+ smc.sourceRoot = aSourceMap._sourceRoot;
4932
+ smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), smc.sourceRoot);
4933
+ smc.file = aSourceMap._file;
4934
+ smc._sourceMapURL = aSourceMapURL;
4935
+ smc._absoluteSources = smc._sources.toArray().map(function(s) {
4936
+ return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
4937
+ });
4938
+ var generatedMappings = aSourceMap._mappings.toArray().slice();
4939
+ var destGeneratedMappings = smc.__generatedMappings = [];
4940
+ var destOriginalMappings = smc.__originalMappings = [];
4941
+ for (var i = 0, length = generatedMappings.length;i < length; i++) {
4942
+ var srcMapping = generatedMappings[i];
4943
+ var destMapping = new Mapping;
4944
+ destMapping.generatedLine = srcMapping.generatedLine;
4945
+ destMapping.generatedColumn = srcMapping.generatedColumn;
4946
+ if (srcMapping.source) {
4947
+ destMapping.source = sources.indexOf(srcMapping.source);
4948
+ destMapping.originalLine = srcMapping.originalLine;
4949
+ destMapping.originalColumn = srcMapping.originalColumn;
4950
+ if (srcMapping.name) {
4951
+ destMapping.name = names.indexOf(srcMapping.name);
4952
+ }
4953
+ destOriginalMappings.push(destMapping);
4954
+ }
4955
+ destGeneratedMappings.push(destMapping);
4956
+ }
4957
+ quickSort(smc.__originalMappings, util.compareByOriginalPositions);
4958
+ return smc;
4959
+ };
4960
+ BasicSourceMapConsumer.prototype._version = 3;
4961
+ Object.defineProperty(BasicSourceMapConsumer.prototype, "sources", {
4962
+ get: function() {
4963
+ return this._absoluteSources.slice();
4964
+ }
4965
+ });
4966
+ function Mapping() {
4967
+ this.generatedLine = 0;
4968
+ this.generatedColumn = 0;
4969
+ this.source = null;
4970
+ this.originalLine = null;
4971
+ this.originalColumn = null;
4972
+ this.name = null;
4973
+ }
4974
+ BasicSourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
4975
+ var generatedLine = 1;
4976
+ var previousGeneratedColumn = 0;
4977
+ var previousOriginalLine = 0;
4978
+ var previousOriginalColumn = 0;
4979
+ var previousSource = 0;
4980
+ var previousName = 0;
4981
+ var length = aStr.length;
4982
+ var index = 0;
4983
+ var cachedSegments = {};
4984
+ var temp = {};
4985
+ var originalMappings = [];
4986
+ var generatedMappings = [];
4987
+ var mapping, str, segment, end, value2;
4988
+ while (index < length) {
4989
+ if (aStr.charAt(index) === ";") {
4990
+ generatedLine++;
4991
+ index++;
4992
+ previousGeneratedColumn = 0;
4993
+ } else if (aStr.charAt(index) === ",") {
4994
+ index++;
4995
+ } else {
4996
+ mapping = new Mapping;
4997
+ mapping.generatedLine = generatedLine;
4998
+ for (end = index;end < length; end++) {
4999
+ if (this._charIsMappingSeparator(aStr, end)) {
5000
+ break;
5001
+ }
5002
+ }
5003
+ str = aStr.slice(index, end);
5004
+ segment = cachedSegments[str];
5005
+ if (segment) {
5006
+ index += str.length;
5007
+ } else {
5008
+ segment = [];
5009
+ while (index < end) {
5010
+ base64VLQ.decode(aStr, index, temp);
5011
+ value2 = temp.value;
5012
+ index = temp.rest;
5013
+ segment.push(value2);
5014
+ }
5015
+ if (segment.length === 2) {
5016
+ throw new Error("Found a source, but no line and column");
5017
+ }
5018
+ if (segment.length === 3) {
5019
+ throw new Error("Found a source and line, but no column");
5020
+ }
5021
+ cachedSegments[str] = segment;
5022
+ }
5023
+ mapping.generatedColumn = previousGeneratedColumn + segment[0];
5024
+ previousGeneratedColumn = mapping.generatedColumn;
5025
+ if (segment.length > 1) {
5026
+ mapping.source = previousSource + segment[1];
5027
+ previousSource += segment[1];
5028
+ mapping.originalLine = previousOriginalLine + segment[2];
5029
+ previousOriginalLine = mapping.originalLine;
5030
+ mapping.originalLine += 1;
5031
+ mapping.originalColumn = previousOriginalColumn + segment[3];
5032
+ previousOriginalColumn = mapping.originalColumn;
5033
+ if (segment.length > 4) {
5034
+ mapping.name = previousName + segment[4];
5035
+ previousName += segment[4];
5036
+ }
5037
+ }
5038
+ generatedMappings.push(mapping);
5039
+ if (typeof mapping.originalLine === "number") {
5040
+ originalMappings.push(mapping);
5041
+ }
5042
+ }
5043
+ }
5044
+ quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated);
5045
+ this.__generatedMappings = generatedMappings;
5046
+ quickSort(originalMappings, util.compareByOriginalPositions);
5047
+ this.__originalMappings = originalMappings;
5048
+ };
5049
+ BasicSourceMapConsumer.prototype._findMapping = function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, aColumnName, aComparator, aBias) {
5050
+ if (aNeedle[aLineName] <= 0) {
5051
+ throw new TypeError("Line must be greater than or equal to 1, got " + aNeedle[aLineName]);
5052
+ }
5053
+ if (aNeedle[aColumnName] < 0) {
5054
+ throw new TypeError("Column must be greater than or equal to 0, got " + aNeedle[aColumnName]);
5055
+ }
5056
+ return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
5057
+ };
5058
+ BasicSourceMapConsumer.prototype.computeColumnSpans = function SourceMapConsumer_computeColumnSpans() {
5059
+ for (var index = 0;index < this._generatedMappings.length; ++index) {
5060
+ var mapping = this._generatedMappings[index];
5061
+ if (index + 1 < this._generatedMappings.length) {
5062
+ var nextMapping = this._generatedMappings[index + 1];
5063
+ if (mapping.generatedLine === nextMapping.generatedLine) {
5064
+ mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
5065
+ continue;
5066
+ }
5067
+ }
5068
+ mapping.lastGeneratedColumn = Infinity;
5069
+ }
5070
+ };
5071
+ BasicSourceMapConsumer.prototype.originalPositionFor = function SourceMapConsumer_originalPositionFor(aArgs) {
5072
+ var needle = {
5073
+ generatedLine: util.getArg(aArgs, "line"),
5074
+ generatedColumn: util.getArg(aArgs, "column")
5075
+ };
5076
+ var index = this._findMapping(needle, this._generatedMappings, "generatedLine", "generatedColumn", util.compareByGeneratedPositionsDeflated, util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND));
5077
+ if (index >= 0) {
5078
+ var mapping = this._generatedMappings[index];
5079
+ if (mapping.generatedLine === needle.generatedLine) {
5080
+ var source = util.getArg(mapping, "source", null);
5081
+ if (source !== null) {
5082
+ source = this._sources.at(source);
5083
+ source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
5084
+ }
5085
+ var name = util.getArg(mapping, "name", null);
5086
+ if (name !== null) {
5087
+ name = this._names.at(name);
5088
+ }
5089
+ return {
5090
+ source,
5091
+ line: util.getArg(mapping, "originalLine", null),
5092
+ column: util.getArg(mapping, "originalColumn", null),
5093
+ name
5094
+ };
5095
+ }
5096
+ }
5097
+ return {
5098
+ source: null,
5099
+ line: null,
5100
+ column: null,
5101
+ name: null
5102
+ };
5103
+ };
5104
+ BasicSourceMapConsumer.prototype.hasContentsOfAllSources = function BasicSourceMapConsumer_hasContentsOfAllSources() {
5105
+ if (!this.sourcesContent) {
5106
+ return false;
5107
+ }
5108
+ return this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(sc) {
5109
+ return sc == null;
5110
+ });
5111
+ };
5112
+ BasicSourceMapConsumer.prototype.sourceContentFor = function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
5113
+ if (!this.sourcesContent) {
5114
+ return null;
5115
+ }
5116
+ var index = this._findSourceIndex(aSource);
5117
+ if (index >= 0) {
5118
+ return this.sourcesContent[index];
5119
+ }
5120
+ var relativeSource = aSource;
5121
+ if (this.sourceRoot != null) {
5122
+ relativeSource = util.relative(this.sourceRoot, relativeSource);
5123
+ }
5124
+ var url;
5125
+ if (this.sourceRoot != null && (url = util.urlParse(this.sourceRoot))) {
5126
+ var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
5127
+ if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) {
5128
+ return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
5129
+ }
5130
+ if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) {
5131
+ return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
5132
+ }
5133
+ }
5134
+ if (nullOnMissing) {
5135
+ return null;
5136
+ } else {
5137
+ throw new Error('"' + relativeSource + '" is not in the SourceMap.');
5138
+ }
5139
+ };
5140
+ BasicSourceMapConsumer.prototype.generatedPositionFor = function SourceMapConsumer_generatedPositionFor(aArgs) {
5141
+ var source = util.getArg(aArgs, "source");
5142
+ source = this._findSourceIndex(source);
5143
+ if (source < 0) {
5144
+ return {
5145
+ line: null,
5146
+ column: null,
5147
+ lastColumn: null
5148
+ };
5149
+ }
5150
+ var needle = {
5151
+ source,
5152
+ originalLine: util.getArg(aArgs, "line"),
5153
+ originalColumn: util.getArg(aArgs, "column")
5154
+ };
5155
+ var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND));
5156
+ if (index >= 0) {
5157
+ var mapping = this._originalMappings[index];
5158
+ if (mapping.source === needle.source) {
5159
+ return {
5160
+ line: util.getArg(mapping, "generatedLine", null),
5161
+ column: util.getArg(mapping, "generatedColumn", null),
5162
+ lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
5163
+ };
5164
+ }
5165
+ }
5166
+ return {
5167
+ line: null,
5168
+ column: null,
5169
+ lastColumn: null
5170
+ };
5171
+ };
5172
+ exports2.BasicSourceMapConsumer = BasicSourceMapConsumer;
5173
+ function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
5174
+ var sourceMap = aSourceMap;
5175
+ if (typeof aSourceMap === "string") {
5176
+ sourceMap = util.parseSourceMapInput(aSourceMap);
5177
+ }
5178
+ var version = util.getArg(sourceMap, "version");
5179
+ var sections = util.getArg(sourceMap, "sections");
5180
+ if (version != this._version) {
5181
+ throw new Error("Unsupported version: " + version);
5182
+ }
5183
+ this._sources = new ArraySet;
5184
+ this._names = new ArraySet;
5185
+ var lastOffset = {
5186
+ line: -1,
5187
+ column: 0
5188
+ };
5189
+ this._sections = sections.map(function(s) {
5190
+ if (s.url) {
5191
+ throw new Error("Support for url field in sections not implemented.");
5192
+ }
5193
+ var offset = util.getArg(s, "offset");
5194
+ var offsetLine = util.getArg(offset, "line");
5195
+ var offsetColumn = util.getArg(offset, "column");
5196
+ if (offsetLine < lastOffset.line || offsetLine === lastOffset.line && offsetColumn < lastOffset.column) {
5197
+ throw new Error("Section offsets must be ordered and non-overlapping.");
5198
+ }
5199
+ lastOffset = offset;
5200
+ return {
5201
+ generatedOffset: {
5202
+ generatedLine: offsetLine + 1,
5203
+ generatedColumn: offsetColumn + 1
5204
+ },
5205
+ consumer: new SourceMapConsumer(util.getArg(s, "map"), aSourceMapURL)
5206
+ };
5207
+ });
5208
+ }
5209
+ IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
5210
+ IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
5211
+ IndexedSourceMapConsumer.prototype._version = 3;
5212
+ Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", {
5213
+ get: function() {
5214
+ var sources = [];
5215
+ for (var i = 0;i < this._sections.length; i++) {
5216
+ for (var j = 0;j < this._sections[i].consumer.sources.length; j++) {
5217
+ sources.push(this._sections[i].consumer.sources[j]);
5218
+ }
5219
+ }
5220
+ return sources;
5221
+ }
5222
+ });
5223
+ IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
5224
+ var needle = {
5225
+ generatedLine: util.getArg(aArgs, "line"),
5226
+ generatedColumn: util.getArg(aArgs, "column")
5227
+ };
5228
+ var sectionIndex = binarySearch.search(needle, this._sections, function(needle2, section2) {
5229
+ var cmp = needle2.generatedLine - section2.generatedOffset.generatedLine;
5230
+ if (cmp) {
5231
+ return cmp;
5232
+ }
5233
+ return needle2.generatedColumn - section2.generatedOffset.generatedColumn;
5234
+ });
5235
+ var section = this._sections[sectionIndex];
5236
+ if (!section) {
5237
+ return {
5238
+ source: null,
5239
+ line: null,
5240
+ column: null,
5241
+ name: null
5242
+ };
5243
+ }
5244
+ return section.consumer.originalPositionFor({
5245
+ line: needle.generatedLine - (section.generatedOffset.generatedLine - 1),
5246
+ column: needle.generatedColumn - (section.generatedOffset.generatedLine === needle.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
5247
+ bias: aArgs.bias
5248
+ });
5249
+ };
5250
+ IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = function IndexedSourceMapConsumer_hasContentsOfAllSources() {
5251
+ return this._sections.every(function(s) {
5252
+ return s.consumer.hasContentsOfAllSources();
5253
+ });
5254
+ };
5255
+ IndexedSourceMapConsumer.prototype.sourceContentFor = function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
5256
+ for (var i = 0;i < this._sections.length; i++) {
5257
+ var section = this._sections[i];
5258
+ var content = section.consumer.sourceContentFor(aSource, true);
5259
+ if (content) {
5260
+ return content;
5261
+ }
5262
+ }
5263
+ if (nullOnMissing) {
5264
+ return null;
5265
+ } else {
5266
+ throw new Error('"' + aSource + '" is not in the SourceMap.');
5267
+ }
5268
+ };
5269
+ IndexedSourceMapConsumer.prototype.generatedPositionFor = function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
5270
+ for (var i = 0;i < this._sections.length; i++) {
5271
+ var section = this._sections[i];
5272
+ if (section.consumer._findSourceIndex(util.getArg(aArgs, "source")) === -1) {
5273
+ continue;
5274
+ }
5275
+ var generatedPosition = section.consumer.generatedPositionFor(aArgs);
5276
+ if (generatedPosition) {
5277
+ var ret = {
5278
+ line: generatedPosition.line + (section.generatedOffset.generatedLine - 1),
5279
+ column: generatedPosition.column + (section.generatedOffset.generatedLine === generatedPosition.line ? section.generatedOffset.generatedColumn - 1 : 0)
5280
+ };
5281
+ return ret;
5282
+ }
5283
+ }
5284
+ return {
5285
+ line: null,
5286
+ column: null
5287
+ };
5288
+ };
5289
+ IndexedSourceMapConsumer.prototype._parseMappings = function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
5290
+ this.__generatedMappings = [];
5291
+ this.__originalMappings = [];
5292
+ for (var i = 0;i < this._sections.length; i++) {
5293
+ var section = this._sections[i];
5294
+ var sectionMappings = section.consumer._generatedMappings;
5295
+ for (var j = 0;j < sectionMappings.length; j++) {
5296
+ var mapping = sectionMappings[j];
5297
+ var source = section.consumer._sources.at(mapping.source);
5298
+ source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
5299
+ this._sources.add(source);
5300
+ source = this._sources.indexOf(source);
5301
+ var name = null;
5302
+ if (mapping.name) {
5303
+ name = section.consumer._names.at(mapping.name);
5304
+ this._names.add(name);
5305
+ name = this._names.indexOf(name);
5306
+ }
5307
+ var adjustedMapping = {
5308
+ source,
5309
+ generatedLine: mapping.generatedLine + (section.generatedOffset.generatedLine - 1),
5310
+ generatedColumn: mapping.generatedColumn + (section.generatedOffset.generatedLine === mapping.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
5311
+ originalLine: mapping.originalLine,
5312
+ originalColumn: mapping.originalColumn,
5313
+ name
5314
+ };
5315
+ this.__generatedMappings.push(adjustedMapping);
5316
+ if (typeof adjustedMapping.originalLine === "number") {
5317
+ this.__originalMappings.push(adjustedMapping);
5318
+ }
5319
+ }
5320
+ }
5321
+ quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);
5322
+ quickSort(this.__originalMappings, util.compareByOriginalPositions);
5323
+ };
5324
+ exports2.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
5325
+ });
5326
+
5327
+ // node_modules/source-map-support/node_modules/source-map/lib/source-node.js
5328
+ var require_source_node = __commonJS((exports2) => {
5329
+ var SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
5330
+ var util = require_util();
5331
+ var REGEX_NEWLINE = /(\r?\n)/;
5332
+ var NEWLINE_CODE = 10;
5333
+ var isSourceNode = "$$$isSourceNode$$$";
5334
+ function SourceNode(aLine, aColumn, aSource, aChunks, aName) {
5335
+ this.children = [];
5336
+ this.sourceContents = {};
5337
+ this.line = aLine == null ? null : aLine;
5338
+ this.column = aColumn == null ? null : aColumn;
5339
+ this.source = aSource == null ? null : aSource;
5340
+ this.name = aName == null ? null : aName;
5341
+ this[isSourceNode] = true;
5342
+ if (aChunks != null)
5343
+ this.add(aChunks);
5344
+ }
5345
+ SourceNode.fromStringWithSourceMap = function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
5346
+ var node = new SourceNode;
5347
+ var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);
5348
+ var remainingLinesIndex = 0;
5349
+ var shiftNextLine = function() {
5350
+ var lineContents = getNextLine();
5351
+ var newLine = getNextLine() || "";
5352
+ return lineContents + newLine;
5353
+ function getNextLine() {
5354
+ return remainingLinesIndex < remainingLines.length ? remainingLines[remainingLinesIndex++] : undefined;
5355
+ }
5356
+ };
5357
+ var lastGeneratedLine = 1, lastGeneratedColumn = 0;
5358
+ var lastMapping = null;
5359
+ aSourceMapConsumer.eachMapping(function(mapping) {
5360
+ if (lastMapping !== null) {
5361
+ if (lastGeneratedLine < mapping.generatedLine) {
5362
+ addMappingWithCode(lastMapping, shiftNextLine());
5363
+ lastGeneratedLine++;
5364
+ lastGeneratedColumn = 0;
5365
+ } else {
5366
+ var nextLine = remainingLines[remainingLinesIndex] || "";
5367
+ var code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn);
5368
+ remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn);
5369
+ lastGeneratedColumn = mapping.generatedColumn;
5370
+ addMappingWithCode(lastMapping, code);
5371
+ lastMapping = mapping;
5372
+ return;
5373
+ }
5374
+ }
5375
+ while (lastGeneratedLine < mapping.generatedLine) {
5376
+ node.add(shiftNextLine());
5377
+ lastGeneratedLine++;
5378
+ }
5379
+ if (lastGeneratedColumn < mapping.generatedColumn) {
5380
+ var nextLine = remainingLines[remainingLinesIndex] || "";
5381
+ node.add(nextLine.substr(0, mapping.generatedColumn));
5382
+ remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);
5383
+ lastGeneratedColumn = mapping.generatedColumn;
5384
+ }
5385
+ lastMapping = mapping;
5386
+ }, this);
5387
+ if (remainingLinesIndex < remainingLines.length) {
5388
+ if (lastMapping) {
5389
+ addMappingWithCode(lastMapping, shiftNextLine());
5390
+ }
5391
+ node.add(remainingLines.splice(remainingLinesIndex).join(""));
5392
+ }
5393
+ aSourceMapConsumer.sources.forEach(function(sourceFile) {
5394
+ var content = aSourceMapConsumer.sourceContentFor(sourceFile);
5395
+ if (content != null) {
5396
+ if (aRelativePath != null) {
5397
+ sourceFile = util.join(aRelativePath, sourceFile);
5398
+ }
5399
+ node.setSourceContent(sourceFile, content);
5400
+ }
5401
+ });
5402
+ return node;
5403
+ function addMappingWithCode(mapping, code) {
5404
+ if (mapping === null || mapping.source === undefined) {
5405
+ node.add(code);
5406
+ } else {
5407
+ var source = aRelativePath ? util.join(aRelativePath, mapping.source) : mapping.source;
5408
+ node.add(new SourceNode(mapping.originalLine, mapping.originalColumn, source, code, mapping.name));
5409
+ }
5410
+ }
5411
+ };
5412
+ SourceNode.prototype.add = function SourceNode_add(aChunk) {
5413
+ if (Array.isArray(aChunk)) {
5414
+ aChunk.forEach(function(chunk) {
5415
+ this.add(chunk);
5416
+ }, this);
5417
+ } else if (aChunk[isSourceNode] || typeof aChunk === "string") {
5418
+ if (aChunk) {
5419
+ this.children.push(aChunk);
5420
+ }
5421
+ } else {
5422
+ throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk);
5423
+ }
5424
+ return this;
5425
+ };
5426
+ SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {
5427
+ if (Array.isArray(aChunk)) {
5428
+ for (var i = aChunk.length - 1;i >= 0; i--) {
5429
+ this.prepend(aChunk[i]);
5430
+ }
5431
+ } else if (aChunk[isSourceNode] || typeof aChunk === "string") {
5432
+ this.children.unshift(aChunk);
5433
+ } else {
5434
+ throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk);
5435
+ }
5436
+ return this;
5437
+ };
5438
+ SourceNode.prototype.walk = function SourceNode_walk(aFn) {
5439
+ var chunk;
5440
+ for (var i = 0, len = this.children.length;i < len; i++) {
5441
+ chunk = this.children[i];
5442
+ if (chunk[isSourceNode]) {
5443
+ chunk.walk(aFn);
5444
+ } else {
5445
+ if (chunk !== "") {
5446
+ aFn(chunk, {
5447
+ source: this.source,
5448
+ line: this.line,
5449
+ column: this.column,
5450
+ name: this.name
5451
+ });
5452
+ }
5453
+ }
5454
+ }
5455
+ };
5456
+ SourceNode.prototype.join = function SourceNode_join(aSep) {
5457
+ var newChildren;
5458
+ var i;
5459
+ var len = this.children.length;
5460
+ if (len > 0) {
5461
+ newChildren = [];
5462
+ for (i = 0;i < len - 1; i++) {
5463
+ newChildren.push(this.children[i]);
5464
+ newChildren.push(aSep);
5465
+ }
5466
+ newChildren.push(this.children[i]);
5467
+ this.children = newChildren;
5468
+ }
5469
+ return this;
5470
+ };
5471
+ SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {
5472
+ var lastChild = this.children[this.children.length - 1];
5473
+ if (lastChild[isSourceNode]) {
5474
+ lastChild.replaceRight(aPattern, aReplacement);
5475
+ } else if (typeof lastChild === "string") {
5476
+ this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);
5477
+ } else {
5478
+ this.children.push("".replace(aPattern, aReplacement));
5479
+ }
5480
+ return this;
5481
+ };
5482
+ SourceNode.prototype.setSourceContent = function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
5483
+ this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
5484
+ };
5485
+ SourceNode.prototype.walkSourceContents = function SourceNode_walkSourceContents(aFn) {
5486
+ for (var i = 0, len = this.children.length;i < len; i++) {
5487
+ if (this.children[i][isSourceNode]) {
5488
+ this.children[i].walkSourceContents(aFn);
5489
+ }
5490
+ }
5491
+ var sources = Object.keys(this.sourceContents);
5492
+ for (var i = 0, len = sources.length;i < len; i++) {
5493
+ aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);
5494
+ }
5495
+ };
5496
+ SourceNode.prototype.toString = function SourceNode_toString() {
5497
+ var str = "";
5498
+ this.walk(function(chunk) {
5499
+ str += chunk;
5500
+ });
5501
+ return str;
5502
+ };
5503
+ SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {
5504
+ var generated = {
5505
+ code: "",
5506
+ line: 1,
5507
+ column: 0
5508
+ };
5509
+ var map = new SourceMapGenerator(aArgs);
5510
+ var sourceMappingActive = false;
5511
+ var lastOriginalSource = null;
5512
+ var lastOriginalLine = null;
5513
+ var lastOriginalColumn = null;
5514
+ var lastOriginalName = null;
5515
+ this.walk(function(chunk, original) {
5516
+ generated.code += chunk;
5517
+ if (original.source !== null && original.line !== null && original.column !== null) {
5518
+ if (lastOriginalSource !== original.source || lastOriginalLine !== original.line || lastOriginalColumn !== original.column || lastOriginalName !== original.name) {
5519
+ map.addMapping({
5520
+ source: original.source,
5521
+ original: {
5522
+ line: original.line,
5523
+ column: original.column
5524
+ },
5525
+ generated: {
5526
+ line: generated.line,
5527
+ column: generated.column
5528
+ },
5529
+ name: original.name
5530
+ });
5531
+ }
5532
+ lastOriginalSource = original.source;
5533
+ lastOriginalLine = original.line;
5534
+ lastOriginalColumn = original.column;
5535
+ lastOriginalName = original.name;
5536
+ sourceMappingActive = true;
5537
+ } else if (sourceMappingActive) {
5538
+ map.addMapping({
5539
+ generated: {
5540
+ line: generated.line,
5541
+ column: generated.column
5542
+ }
5543
+ });
5544
+ lastOriginalSource = null;
5545
+ sourceMappingActive = false;
5546
+ }
5547
+ for (var idx = 0, length = chunk.length;idx < length; idx++) {
5548
+ if (chunk.charCodeAt(idx) === NEWLINE_CODE) {
5549
+ generated.line++;
5550
+ generated.column = 0;
5551
+ if (idx + 1 === length) {
5552
+ lastOriginalSource = null;
5553
+ sourceMappingActive = false;
5554
+ } else if (sourceMappingActive) {
5555
+ map.addMapping({
5556
+ source: original.source,
5557
+ original: {
5558
+ line: original.line,
5559
+ column: original.column
5560
+ },
5561
+ generated: {
5562
+ line: generated.line,
5563
+ column: generated.column
5564
+ },
5565
+ name: original.name
5566
+ });
5567
+ }
5568
+ } else {
5569
+ generated.column++;
5570
+ }
5571
+ }
5572
+ });
5573
+ this.walkSourceContents(function(sourceFile, sourceContent) {
5574
+ map.setSourceContent(sourceFile, sourceContent);
5575
+ });
5576
+ return { code: generated.code, map };
5577
+ };
5578
+ exports2.SourceNode = SourceNode;
5579
+ });
5580
+
5581
+ // node_modules/source-map-support/node_modules/source-map/source-map.js
5582
+ var require_source_map = __commonJS((exports2) => {
5583
+ exports2.SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
5584
+ exports2.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer;
5585
+ exports2.SourceNode = require_source_node().SourceNode;
5586
+ });
5587
+
5588
+ // node_modules/buffer-from/index.js
5589
+ var require_buffer_from = __commonJS((exports2, module2) => {
5590
+ var toString = Object.prototype.toString;
5591
+ var isModern = typeof Buffer !== "undefined" && typeof Buffer.alloc === "function" && typeof Buffer.allocUnsafe === "function" && typeof Buffer.from === "function";
5592
+ function isArrayBuffer(input) {
5593
+ return toString.call(input).slice(8, -1) === "ArrayBuffer";
5594
+ }
5595
+ function fromArrayBuffer(obj, byteOffset, length) {
5596
+ byteOffset >>>= 0;
5597
+ var maxLength = obj.byteLength - byteOffset;
5598
+ if (maxLength < 0) {
5599
+ throw new RangeError("'offset' is out of bounds");
5600
+ }
5601
+ if (length === undefined) {
5602
+ length = maxLength;
5603
+ } else {
5604
+ length >>>= 0;
5605
+ if (length > maxLength) {
5606
+ throw new RangeError("'length' is out of bounds");
5607
+ }
5608
+ }
5609
+ return isModern ? Buffer.from(obj.slice(byteOffset, byteOffset + length)) : new Buffer(new Uint8Array(obj.slice(byteOffset, byteOffset + length)));
5610
+ }
5611
+ function fromString(string, encoding) {
5612
+ if (typeof encoding !== "string" || encoding === "") {
5613
+ encoding = "utf8";
5614
+ }
5615
+ if (!Buffer.isEncoding(encoding)) {
5616
+ throw new TypeError('"encoding" must be a valid string encoding');
5617
+ }
5618
+ return isModern ? Buffer.from(string, encoding) : new Buffer(string, encoding);
5619
+ }
5620
+ function bufferFrom(value2, encodingOrOffset, length) {
5621
+ if (typeof value2 === "number") {
5622
+ throw new TypeError('"value" argument must not be a number');
5623
+ }
5624
+ if (isArrayBuffer(value2)) {
5625
+ return fromArrayBuffer(value2, encodingOrOffset, length);
5626
+ }
5627
+ if (typeof value2 === "string") {
5628
+ return fromString(value2, encodingOrOffset);
5629
+ }
5630
+ return isModern ? Buffer.from(value2) : new Buffer(value2);
5631
+ }
5632
+ module2.exports = bufferFrom;
5633
+ });
5634
+
5635
+ // node_modules/source-map-support/source-map-support.js
5636
+ var require_source_map_support = __commonJS((exports2, module2) => {
5637
+ var SourceMapConsumer = require_source_map().SourceMapConsumer;
5638
+ var path2 = require("path");
5639
+ var fs2;
5640
+ try {
5641
+ fs2 = require("fs");
5642
+ if (!fs2.existsSync || !fs2.readFileSync) {
5643
+ fs2 = null;
5644
+ }
5645
+ } catch (err) {}
5646
+ var bufferFrom = require_buffer_from();
5647
+ function dynamicRequire(mod, request) {
5648
+ return mod.require(request);
5649
+ }
5650
+ var errorFormatterInstalled = false;
5651
+ var uncaughtShimInstalled = false;
5652
+ var emptyCacheBetweenOperations = false;
5653
+ var environment = "auto";
5654
+ var fileContentsCache = {};
5655
+ var sourceMapCache = {};
5656
+ var reSourceMap = /^data:application\/json[^,]+base64,/;
5657
+ var retrieveFileHandlers = [];
5658
+ var retrieveMapHandlers = [];
5659
+ function isInBrowser() {
5660
+ if (environment === "browser")
5661
+ return true;
5662
+ if (environment === "node")
5663
+ return false;
5664
+ return typeof window !== "undefined" && typeof XMLHttpRequest === "function" && !(window.require && window.module && window.process && window.process.type === "renderer");
5665
+ }
5666
+ function hasGlobalProcessEventEmitter() {
5667
+ return typeof process === "object" && process !== null && typeof process.on === "function";
5668
+ }
5669
+ function globalProcessVersion() {
5670
+ if (typeof process === "object" && process !== null) {
5671
+ return process.version;
5672
+ } else {
5673
+ return "";
5674
+ }
5675
+ }
5676
+ function globalProcessStderr() {
5677
+ if (typeof process === "object" && process !== null) {
5678
+ return process.stderr;
5679
+ }
5680
+ }
5681
+ function globalProcessExit(code) {
5682
+ if (typeof process === "object" && process !== null && typeof process.exit === "function") {
5683
+ return process.exit(code);
5684
+ }
5685
+ }
5686
+ function handlerExec(list) {
5687
+ return function(arg) {
5688
+ for (var i = 0;i < list.length; i++) {
5689
+ var ret = list[i](arg);
5690
+ if (ret) {
5691
+ return ret;
5692
+ }
5693
+ }
5694
+ return null;
5695
+ };
5696
+ }
5697
+ var retrieveFile = handlerExec(retrieveFileHandlers);
5698
+ retrieveFileHandlers.push(function(path3) {
5699
+ path3 = path3.trim();
5700
+ if (/^file:/.test(path3)) {
5701
+ path3 = path3.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) {
5702
+ return drive ? "" : "/";
5703
+ });
5704
+ }
5705
+ if (path3 in fileContentsCache) {
5706
+ return fileContentsCache[path3];
5707
+ }
5708
+ var contents = "";
5709
+ try {
5710
+ if (!fs2) {
5711
+ var xhr = new XMLHttpRequest;
5712
+ xhr.open("GET", path3, false);
5713
+ xhr.send(null);
5714
+ if (xhr.readyState === 4 && xhr.status === 200) {
5715
+ contents = xhr.responseText;
5716
+ }
5717
+ } else if (fs2.existsSync(path3)) {
5718
+ contents = fs2.readFileSync(path3, "utf8");
5719
+ }
5720
+ } catch (er) {}
5721
+ return fileContentsCache[path3] = contents;
5722
+ });
5723
+ function supportRelativeURL(file, url) {
5724
+ if (!file)
5725
+ return url;
5726
+ var dir = path2.dirname(file);
5727
+ var match = /^\w+:\/\/[^\/]*/.exec(dir);
5728
+ var protocol = match ? match[0] : "";
5729
+ var startPath = dir.slice(protocol.length);
5730
+ if (protocol && /^\/\w\:/.test(startPath)) {
5731
+ protocol += "/";
5732
+ return protocol + path2.resolve(dir.slice(protocol.length), url).replace(/\\/g, "/");
5733
+ }
5734
+ return protocol + path2.resolve(dir.slice(protocol.length), url);
5735
+ }
5736
+ function retrieveSourceMapURL(source) {
5737
+ var fileData;
5738
+ if (isInBrowser()) {
5739
+ try {
5740
+ var xhr = new XMLHttpRequest;
5741
+ xhr.open("GET", source, false);
5742
+ xhr.send(null);
5743
+ fileData = xhr.readyState === 4 ? xhr.responseText : null;
5744
+ var sourceMapHeader = xhr.getResponseHeader("SourceMap") || xhr.getResponseHeader("X-SourceMap");
5745
+ if (sourceMapHeader) {
5746
+ return sourceMapHeader;
5747
+ }
5748
+ } catch (e) {}
5749
+ }
5750
+ fileData = retrieveFile(source);
5751
+ var re = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg;
5752
+ var lastMatch, match;
5753
+ while (match = re.exec(fileData))
5754
+ lastMatch = match;
5755
+ if (!lastMatch)
5756
+ return null;
5757
+ return lastMatch[1];
5758
+ }
5759
+ var retrieveSourceMap = handlerExec(retrieveMapHandlers);
5760
+ retrieveMapHandlers.push(function(source) {
5761
+ var sourceMappingURL = retrieveSourceMapURL(source);
5762
+ if (!sourceMappingURL)
5763
+ return null;
5764
+ var sourceMapData;
5765
+ if (reSourceMap.test(sourceMappingURL)) {
5766
+ var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(",") + 1);
5767
+ sourceMapData = bufferFrom(rawData, "base64").toString();
5768
+ sourceMappingURL = source;
5769
+ } else {
5770
+ sourceMappingURL = supportRelativeURL(source, sourceMappingURL);
5771
+ sourceMapData = retrieveFile(sourceMappingURL);
5772
+ }
5773
+ if (!sourceMapData) {
5774
+ return null;
5775
+ }
5776
+ return {
5777
+ url: sourceMappingURL,
5778
+ map: sourceMapData
5779
+ };
5780
+ });
5781
+ function mapSourcePosition(position) {
5782
+ var sourceMap = sourceMapCache[position.source];
5783
+ if (!sourceMap) {
5784
+ var urlAndMap = retrieveSourceMap(position.source);
5785
+ if (urlAndMap) {
5786
+ sourceMap = sourceMapCache[position.source] = {
5787
+ url: urlAndMap.url,
5788
+ map: new SourceMapConsumer(urlAndMap.map)
5789
+ };
5790
+ if (sourceMap.map.sourcesContent) {
5791
+ sourceMap.map.sources.forEach(function(source, i) {
5792
+ var contents = sourceMap.map.sourcesContent[i];
5793
+ if (contents) {
5794
+ var url = supportRelativeURL(sourceMap.url, source);
5795
+ fileContentsCache[url] = contents;
5796
+ }
5797
+ });
5798
+ }
5799
+ } else {
5800
+ sourceMap = sourceMapCache[position.source] = {
5801
+ url: null,
5802
+ map: null
5803
+ };
5804
+ }
5805
+ }
5806
+ if (sourceMap && sourceMap.map && typeof sourceMap.map.originalPositionFor === "function") {
5807
+ var originalPosition = sourceMap.map.originalPositionFor(position);
5808
+ if (originalPosition.source !== null) {
5809
+ originalPosition.source = supportRelativeURL(sourceMap.url, originalPosition.source);
5810
+ return originalPosition;
5811
+ }
5812
+ }
5813
+ return position;
5814
+ }
5815
+ function mapEvalOrigin(origin) {
5816
+ var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin);
5817
+ if (match) {
5818
+ var position = mapSourcePosition({
5819
+ source: match[2],
5820
+ line: +match[3],
5821
+ column: match[4] - 1
5822
+ });
5823
+ return "eval at " + match[1] + " (" + position.source + ":" + position.line + ":" + (position.column + 1) + ")";
5824
+ }
5825
+ match = /^eval at ([^(]+) \((.+)\)$/.exec(origin);
5826
+ if (match) {
5827
+ return "eval at " + match[1] + " (" + mapEvalOrigin(match[2]) + ")";
5828
+ }
5829
+ return origin;
5830
+ }
5831
+ function CallSiteToString() {
5832
+ var fileName;
5833
+ var fileLocation = "";
5834
+ if (this.isNative()) {
5835
+ fileLocation = "native";
5836
+ } else {
5837
+ fileName = this.getScriptNameOrSourceURL();
5838
+ if (!fileName && this.isEval()) {
5839
+ fileLocation = this.getEvalOrigin();
5840
+ fileLocation += ", ";
5841
+ }
5842
+ if (fileName) {
5843
+ fileLocation += fileName;
5844
+ } else {
5845
+ fileLocation += "<anonymous>";
5846
+ }
5847
+ var lineNumber = this.getLineNumber();
5848
+ if (lineNumber != null) {
5849
+ fileLocation += ":" + lineNumber;
5850
+ var columnNumber = this.getColumnNumber();
5851
+ if (columnNumber) {
5852
+ fileLocation += ":" + columnNumber;
5853
+ }
5854
+ }
5855
+ }
5856
+ var line = "";
5857
+ var functionName = this.getFunctionName();
5858
+ var addSuffix = true;
5859
+ var isConstructor = this.isConstructor();
5860
+ var isMethodCall = !(this.isToplevel() || isConstructor);
5861
+ if (isMethodCall) {
5862
+ var typeName = this.getTypeName();
5863
+ if (typeName === "[object Object]") {
5864
+ typeName = "null";
5865
+ }
5866
+ var methodName = this.getMethodName();
5867
+ if (functionName) {
5868
+ if (typeName && functionName.indexOf(typeName) != 0) {
5869
+ line += typeName + ".";
5870
+ }
5871
+ line += functionName;
5872
+ if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) {
5873
+ line += " [as " + methodName + "]";
5874
+ }
5875
+ } else {
5876
+ line += typeName + "." + (methodName || "<anonymous>");
5877
+ }
5878
+ } else if (isConstructor) {
5879
+ line += "new " + (functionName || "<anonymous>");
5880
+ } else if (functionName) {
5881
+ line += functionName;
5882
+ } else {
5883
+ line += fileLocation;
5884
+ addSuffix = false;
5885
+ }
5886
+ if (addSuffix) {
5887
+ line += " (" + fileLocation + ")";
5888
+ }
5889
+ return line;
5890
+ }
5891
+ function cloneCallSite(frame) {
5892
+ var object = {};
5893
+ Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) {
5894
+ object[name] = /^(?:is|get)/.test(name) ? function() {
5895
+ return frame[name].call(frame);
5896
+ } : frame[name];
5897
+ });
5898
+ object.toString = CallSiteToString;
5899
+ return object;
5900
+ }
5901
+ function wrapCallSite(frame, state) {
5902
+ if (state === undefined) {
5903
+ state = { nextPosition: null, curPosition: null };
5904
+ }
5905
+ if (frame.isNative()) {
5906
+ state.curPosition = null;
5907
+ return frame;
5908
+ }
5909
+ var source = frame.getFileName() || frame.getScriptNameOrSourceURL();
5910
+ if (source) {
5911
+ var line = frame.getLineNumber();
5912
+ var column = frame.getColumnNumber() - 1;
5913
+ var noHeader = /^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/;
5914
+ var headerLength = noHeader.test(globalProcessVersion()) ? 0 : 62;
5915
+ if (line === 1 && column > headerLength && !isInBrowser() && !frame.isEval()) {
5916
+ column -= headerLength;
5917
+ }
5918
+ var position = mapSourcePosition({
5919
+ source,
5920
+ line,
5921
+ column
5922
+ });
5923
+ state.curPosition = position;
5924
+ frame = cloneCallSite(frame);
5925
+ var originalFunctionName = frame.getFunctionName;
5926
+ frame.getFunctionName = function() {
5927
+ if (state.nextPosition == null) {
5928
+ return originalFunctionName();
5929
+ }
5930
+ return state.nextPosition.name || originalFunctionName();
5931
+ };
5932
+ frame.getFileName = function() {
5933
+ return position.source;
5934
+ };
5935
+ frame.getLineNumber = function() {
5936
+ return position.line;
5937
+ };
5938
+ frame.getColumnNumber = function() {
5939
+ return position.column + 1;
5940
+ };
5941
+ frame.getScriptNameOrSourceURL = function() {
5942
+ return position.source;
5943
+ };
5944
+ return frame;
5945
+ }
5946
+ var origin = frame.isEval() && frame.getEvalOrigin();
5947
+ if (origin) {
5948
+ origin = mapEvalOrigin(origin);
5949
+ frame = cloneCallSite(frame);
5950
+ frame.getEvalOrigin = function() {
5951
+ return origin;
5952
+ };
5953
+ return frame;
5954
+ }
5955
+ return frame;
5956
+ }
5957
+ function prepareStackTrace(error, stack) {
5958
+ if (emptyCacheBetweenOperations) {
5959
+ fileContentsCache = {};
5960
+ sourceMapCache = {};
5961
+ }
5962
+ var name = error.name || "Error";
5963
+ var message = error.message || "";
5964
+ var errorString = name + ": " + message;
5965
+ var state = { nextPosition: null, curPosition: null };
5966
+ var processedStack = [];
5967
+ for (var i = stack.length - 1;i >= 0; i--) {
5968
+ processedStack.push(`
5969
+ at ` + wrapCallSite(stack[i], state));
5970
+ state.nextPosition = state.curPosition;
5971
+ }
5972
+ state.curPosition = state.nextPosition = null;
5973
+ return errorString + processedStack.reverse().join("");
5974
+ }
5975
+ function getErrorSource(error) {
5976
+ var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack);
5977
+ if (match) {
5978
+ var source = match[1];
5979
+ var line = +match[2];
5980
+ var column = +match[3];
5981
+ var contents = fileContentsCache[source];
5982
+ if (!contents && fs2 && fs2.existsSync(source)) {
5983
+ try {
5984
+ contents = fs2.readFileSync(source, "utf8");
5985
+ } catch (er) {
5986
+ contents = "";
5987
+ }
5988
+ }
5989
+ if (contents) {
5990
+ var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1];
5991
+ if (code) {
5992
+ return source + ":" + line + `
5993
+ ` + code + `
5994
+ ` + new Array(column).join(" ") + "^";
5995
+ }
5996
+ }
5997
+ }
5998
+ return null;
5999
+ }
6000
+ function printErrorAndExit(error) {
6001
+ var source = getErrorSource(error);
6002
+ var stderr = globalProcessStderr();
6003
+ if (stderr && stderr._handle && stderr._handle.setBlocking) {
6004
+ stderr._handle.setBlocking(true);
6005
+ }
6006
+ if (source) {
6007
+ console.error();
6008
+ console.error(source);
6009
+ }
6010
+ console.error(error.stack);
6011
+ globalProcessExit(1);
6012
+ }
6013
+ function shimEmitUncaughtException() {
6014
+ var origEmit = process.emit;
6015
+ process.emit = function(type) {
6016
+ if (type === "uncaughtException") {
6017
+ var hasStack = arguments[1] && arguments[1].stack;
6018
+ var hasListeners = this.listeners(type).length > 0;
6019
+ if (hasStack && !hasListeners) {
6020
+ return printErrorAndExit(arguments[1]);
6021
+ }
6022
+ }
6023
+ return origEmit.apply(this, arguments);
6024
+ };
6025
+ }
6026
+ var originalRetrieveFileHandlers = retrieveFileHandlers.slice(0);
6027
+ var originalRetrieveMapHandlers = retrieveMapHandlers.slice(0);
6028
+ exports2.wrapCallSite = wrapCallSite;
6029
+ exports2.getErrorSource = getErrorSource;
6030
+ exports2.mapSourcePosition = mapSourcePosition;
6031
+ exports2.retrieveSourceMap = retrieveSourceMap;
6032
+ exports2.install = function(options) {
6033
+ options = options || {};
6034
+ if (options.environment) {
6035
+ environment = options.environment;
6036
+ if (["node", "browser", "auto"].indexOf(environment) === -1) {
6037
+ throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}");
6038
+ }
6039
+ }
6040
+ if (options.retrieveFile) {
6041
+ if (options.overrideRetrieveFile) {
6042
+ retrieveFileHandlers.length = 0;
6043
+ }
6044
+ retrieveFileHandlers.unshift(options.retrieveFile);
6045
+ }
6046
+ if (options.retrieveSourceMap) {
6047
+ if (options.overrideRetrieveSourceMap) {
6048
+ retrieveMapHandlers.length = 0;
6049
+ }
6050
+ retrieveMapHandlers.unshift(options.retrieveSourceMap);
6051
+ }
6052
+ if (options.hookRequire && !isInBrowser()) {
6053
+ var Module = dynamicRequire(module2, "module");
6054
+ var $compile = Module.prototype._compile;
6055
+ if (!$compile.__sourceMapSupport) {
6056
+ Module.prototype._compile = function(content, filename) {
6057
+ fileContentsCache[filename] = content;
6058
+ sourceMapCache[filename] = undefined;
6059
+ return $compile.call(this, content, filename);
6060
+ };
6061
+ Module.prototype._compile.__sourceMapSupport = true;
6062
+ }
6063
+ }
6064
+ if (!emptyCacheBetweenOperations) {
6065
+ emptyCacheBetweenOperations = "emptyCacheBetweenOperations" in options ? options.emptyCacheBetweenOperations : false;
6066
+ }
6067
+ if (!errorFormatterInstalled) {
6068
+ errorFormatterInstalled = true;
6069
+ Error.prepareStackTrace = prepareStackTrace;
6070
+ }
6071
+ if (!uncaughtShimInstalled) {
6072
+ var installHandler = "handleUncaughtExceptions" in options ? options.handleUncaughtExceptions : true;
6073
+ try {
6074
+ var worker_threads = dynamicRequire(module2, "worker_threads");
6075
+ if (worker_threads.isMainThread === false) {
6076
+ installHandler = false;
6077
+ }
6078
+ } catch (e) {}
6079
+ if (installHandler && hasGlobalProcessEventEmitter()) {
6080
+ uncaughtShimInstalled = true;
6081
+ shimEmitUncaughtException();
6082
+ }
6083
+ }
6084
+ };
6085
+ exports2.resetRetrieveHandlers = function() {
6086
+ retrieveFileHandlers.length = 0;
6087
+ retrieveMapHandlers.length = 0;
6088
+ retrieveFileHandlers = originalRetrieveFileHandlers.slice(0);
6089
+ retrieveMapHandlers = originalRetrieveMapHandlers.slice(0);
6090
+ retrieveSourceMap = handlerExec(retrieveMapHandlers);
6091
+ retrieveFile = handlerExec(retrieveFileHandlers);
6092
+ };
6093
+ });
6094
+
3913
6095
  // node_modules/typescript-json-schema/node_modules/typescript/lib/typescript.js
3914
6096
  var require_typescript = __commonJS((exports2, module2) => {
3915
6097
  var __dirname = "/home/runner/work/pieui/pieui/node_modules/typescript-json-schema/node_modules/typescript/lib", __filename = "/home/runner/work/pieui/pieui/node_modules/typescript-json-schema/node_modules/typescript/lib/typescript.js";
@@ -12038,7 +14220,7 @@ ${lanes.join(`
12038
14220
  debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(arg)) || !!process.recordreplay,
12039
14221
  tryEnableSourceMapsForHost() {
12040
14222
  try {
12041
- (()=>{throw new Error("Cannot require module "+"source-map-support");})().install();
14223
+ require_source_map_support().install();
12042
14224
  } catch {}
12043
14225
  },
12044
14226
  setTimeout,
@@ -173225,7 +175407,7 @@ var require_v8_compile_cache = __commonJS((exports2, module2) => {
173225
175407
  });
173226
175408
 
173227
175409
  // node_modules/ts-node/dist/util.js
173228
- var require_util = __commonJS((exports2) => {
175410
+ var require_util2 = __commonJS((exports2) => {
173229
175411
  var __dirname = "/home/runner/work/pieui/pieui/node_modules/ts-node/dist";
173230
175412
  var _a;
173231
175413
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -173343,7 +175525,7 @@ var require_ts_internals = __commonJS((exports2) => {
173343
175525
  Object.defineProperty(exports2, "__esModule", { value: true });
173344
175526
  exports2.getEmitScriptTarget = exports2.getUseDefineForClassFields = exports2.getPatternFromSpec = exports2.createTsInternals = undefined;
173345
175527
  var path_1 = require("path");
173346
- var util_1 = require_util();
175528
+ var util_1 = require_util2();
173347
175529
  exports2.createTsInternals = (0, util_1.cachedLookup)(createTsInternalsUncached);
173348
175530
  function createTsInternalsUncached(_ts) {
173349
175531
  const ts = _ts;
@@ -173687,7 +175869,7 @@ var require_configuration = __commonJS((exports2) => {
173687
175869
  var index_1 = require_dist();
173688
175870
  var ts_internals_1 = require_ts_internals();
173689
175871
  var tsconfigs_1 = require_tsconfigs();
173690
- var util_1 = require_util();
175872
+ var util_1 = require_util2();
173691
175873
  var TS_NODE_COMPILER_OPTIONS = {
173692
175874
  sourceMap: true,
173693
175875
  inlineSourceMap: false,
@@ -173919,7 +176101,7 @@ var require_module_type_classifier = __commonJS((exports2) => {
173919
176101
  Object.defineProperty(exports2, "__esModule", { value: true });
173920
176102
  exports2.createModuleTypeClassifier = undefined;
173921
176103
  var ts_internals_1 = require_ts_internals();
173922
- var util_1 = require_util();
176104
+ var util_1 = require_util2();
173923
176105
  function createModuleTypeClassifier(options) {
173924
176106
  const { patterns, basePath: _basePath } = options;
173925
176107
  const basePath = _basePath !== undefined ? (0, util_1.normalizeSlashes)(_basePath).replace(/\/$/, "") : undefined;
@@ -174154,7 +176336,7 @@ var require_node_nativemodule = __commonJS((exports2) => {
174154
176336
  // node_modules/ts-node/dist-raw/node-internalBinding-fs.js
174155
176337
  var require_node_internalBinding_fs = __commonJS((exports2, module2) => {
174156
176338
  var fs2 = require("fs");
174157
- var { versionGteLt } = require_util();
176339
+ var { versionGteLt } = require_util2();
174158
176340
  function internalModuleReadJSON(path2) {
174159
176341
  let string;
174160
176342
  try {
@@ -174573,7 +176755,7 @@ var require_node_internal_modules_cjs_loader = __commonJS((exports2, module2) =>
174573
176755
  var { getOptionValue } = require_node_options();
174574
176756
  var preserveSymlinks = getOptionValue("--preserve-symlinks");
174575
176757
  var preserveSymlinksMain = getOptionValue("--preserve-symlinks-main");
174576
- var { normalizeSlashes } = require_util();
176758
+ var { normalizeSlashes } = require_util2();
174577
176759
  var { createErrRequireEsm } = require_node_internal_errors();
174578
176760
  var {
174579
176761
  codes: {
@@ -174999,7 +177181,7 @@ var require_node_module_type_classifier = __commonJS((exports2) => {
174999
177181
  var require_file_extensions = __commonJS((exports2) => {
175000
177182
  Object.defineProperty(exports2, "__esModule", { value: true });
175001
177183
  exports2.getExtensions = undefined;
175002
- var util_1 = require_util();
177184
+ var util_1 = require_util2();
175003
177185
  var nodeEquivalents = new Map([
175004
177186
  [".ts", ".js"],
175005
177187
  [".tsx", ".js"],
@@ -184501,7 +186683,7 @@ var require_trace_mapping_umd = __commonJS((exports2, module2) => {
184501
186683
  });
184502
186684
 
184503
186685
  // node_modules/@cspotcode/source-map-support/source-map-support.js
184504
- var require_source_map_support = __commonJS((exports2, module2) => {
186686
+ var require_source_map_support2 = __commonJS((exports2, module2) => {
184505
186687
  var { TraceMap, originalPositionFor, AnyMap } = require_trace_mapping_umd();
184506
186688
  var path2 = require("path");
184507
186689
  var { fileURLToPath, pathToFileURL } = require("url");
@@ -185184,7 +187366,7 @@ var require_source_map_support = __commonJS((exports2, module2) => {
185184
187366
 
185185
187367
  // node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js
185186
187368
  var require_node_internal_modules_esm_resolve = __commonJS((exports2, module2) => {
185187
- var { versionGteLt } = require_util();
187369
+ var { versionGteLt } = require_util2();
185188
187370
  var builtinModuleProtocol = versionGteLt(process.versions.node, "14.13.1") || versionGteLt(process.versions.node, "12.20.0", "13.0.0") ? "node:" : "nodejs:";
185189
187371
  var {
185190
187372
  ArrayIsArray,
@@ -185967,7 +188149,7 @@ var require_esm = __commonJS((exports2) => {
185967
188149
  var url_1 = require("url");
185968
188150
  var path_1 = require("path");
185969
188151
  var assert = require("assert");
185970
- var util_1 = require_util();
188152
+ var util_1 = require_util2();
185971
188153
  var module_1 = require("module");
185972
188154
  var newHooksAPI = (0, util_1.versionGteLt)(process.versions.node, "16.12.0");
185973
188155
  function filterHooksByAPIVersion(hooks) {
@@ -186158,7 +188340,7 @@ var require_dist = __commonJS((exports2) => {
186158
188340
  var util = require("util");
186159
188341
  var url_1 = require("url");
186160
188342
  var make_error_1 = require_make_error();
186161
- var util_1 = require_util();
188343
+ var util_1 = require_util2();
186162
188344
  var configuration_1 = require_configuration();
186163
188345
  var module_type_classifier_1 = require_module_type_classifier();
186164
188346
  var resolver_functions_1 = require_resolver_functions();
@@ -186351,7 +188533,7 @@ ${diagnosticText}`);
186351
188533
  }
186352
188534
  installSourceMapSupport();
186353
188535
  function installSourceMapSupport() {
186354
- const sourceMapSupport = require_source_map_support();
188536
+ const sourceMapSupport = require_source_map_support2();
186355
188537
  sourceMapSupport.install({
186356
188538
  environment: "node",
186357
188539
  retrieveFile(pathOrUrl) {
@@ -193555,7 +195737,8 @@ var listEventsCommand = (srcDir, componentName) => {
193555
195737
  "**/*.test.*",
193556
195738
  "**/*.spec.*",
193557
195739
  "**/tests/**",
193558
- "**/__tests__/**"
195740
+ "**/__tests__/**",
195741
+ "**/native/**"
193559
195742
  ]
193560
195743
  });
193561
195744
  const compilerOptions = {
@@ -197410,6 +199593,17 @@ export default {
197410
199593
  images: { unoptimized: true },
197411
199594
  typescript: { ignoreBuildErrors: true },
197412
199595
  transpilePackages: ['@swarm.ing/pieui'],
199596
+ experimental: {
199597
+ // Next 16 defaults Turbopack's persistent dev disk cache ON. Its
199598
+ // shared-string-table (.sst) serializer splits long escaped Tailwind
199599
+ // arbitrary-value selectors (e.g. \`py-[max(1.25rem,env(safe-area-inset-top))]\`)
199600
+ // mid-token across a string-table boundary, then reassembles them corrupted
199601
+ // on read-back -> \`env(safe-area-%<ctrl>top)\` -> "Parsing CSS source code
199602
+ // failed". A fresh \`.next\` compiles clean once; the next restart reads the
199603
+ // poisoned cache and breaks. Disable the persistent cache so the harness
199604
+ // recompiles from source every time (in-memory caching still applies).
199605
+ turbopackFileSystemCacheForDev: false,
199606
+ },
197413
199607
  // The workspace root must be the frontend project: that's where node_modules
197414
199608
  // (incl. \`next\`) lives and where the card registry + cards are imported from
197415
199609
  // (outside this harness dir). The app dir stays this harness (cwd).