@scalar/api-reference 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/components/ApiReference.vue.d.ts +8 -5
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/Content/MarkdownRenderer.vue.d.ts.map +1 -1
- package/dist/components/Content/ReferenceEndpoint/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/{index-4b7dc641.js → index-ad012ba6.js} +2230 -191
- package/dist/index.js +33 -34
- package/dist/style.css +290 -256
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/variables.css +132 -0
- package/package.json +6 -6
- package/src/assets/css/variables.css +77 -9
- package/src/components/ApiClientModal.vue +4 -4
- package/src/components/ApiReference.vue +25 -61
- package/src/components/Card/Card.vue +2 -2
- package/src/components/Card/CardContent.vue +1 -1
- package/src/components/Card/CardFooter.vue +1 -1
- package/src/components/Content/Content.vue +2 -2
- package/src/components/Content/Introduction/BaseUrl.vue +1 -1
- package/src/components/Content/Introduction/Introduction.vue +4 -3
- package/src/components/Content/Introduction/LanguageSelector.vue +1 -1
- package/src/components/Content/MarkdownRenderer.vue +15 -7
- package/src/components/Content/ReferenceEndpoint/ExampleRequest.vue +11 -9
- package/src/components/Content/ReferenceEndpoint/ExampleResponses.vue +1 -1
- package/src/components/Content/ReferenceEndpoint/RequestBody.vue +4 -4
- package/src/components/FindAnythingButton.vue +2 -4
- package/src/components/FlowButton.vue +2 -2
- package/src/components/Sidebar.vue +1 -1
- package/src/types.ts +2 -2
- package/vite.config.ts +11 -1
|
@@ -107,11 +107,11 @@ var hasProto$1 = function hasProto() {
|
|
|
107
107
|
};
|
|
108
108
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
109
109
|
var slice = Array.prototype.slice;
|
|
110
|
-
var toStr$
|
|
110
|
+
var toStr$4 = Object.prototype.toString;
|
|
111
111
|
var funcType = "[object Function]";
|
|
112
112
|
var implementation$1 = function bind(that) {
|
|
113
113
|
var target = this;
|
|
114
|
-
if (typeof target !== "function" || toStr$
|
|
114
|
+
if (typeof target !== "function" || toStr$4.call(target) !== funcType) {
|
|
115
115
|
throw new TypeError(ERROR_MESSAGE + target);
|
|
116
116
|
}
|
|
117
117
|
var args = slice.call(arguments, 1);
|
|
@@ -155,7 +155,7 @@ var src = bind$1.call(Function.call, Object.prototype.hasOwnProperty);
|
|
|
155
155
|
var undefined$1;
|
|
156
156
|
var $SyntaxError = SyntaxError;
|
|
157
157
|
var $Function = Function;
|
|
158
|
-
var $TypeError = TypeError;
|
|
158
|
+
var $TypeError$1 = TypeError;
|
|
159
159
|
var getEvalledConstructor = function(expressionSyntax) {
|
|
160
160
|
try {
|
|
161
161
|
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
@@ -171,7 +171,7 @@ if ($gOPD$1) {
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
var throwTypeError = function() {
|
|
174
|
-
throw new $TypeError();
|
|
174
|
+
throw new $TypeError$1();
|
|
175
175
|
};
|
|
176
176
|
var ThrowTypeError = $gOPD$1 ? function() {
|
|
177
177
|
try {
|
|
@@ -251,7 +251,7 @@ var INTRINSICS = {
|
|
|
251
251
|
"%SyntaxError%": $SyntaxError,
|
|
252
252
|
"%ThrowTypeError%": ThrowTypeError,
|
|
253
253
|
"%TypedArray%": TypedArray,
|
|
254
|
-
"%TypeError%": $TypeError,
|
|
254
|
+
"%TypeError%": $TypeError$1,
|
|
255
255
|
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$1 : Uint8Array,
|
|
256
256
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$1 : Uint8ClampedArray,
|
|
257
257
|
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$1 : Uint16Array,
|
|
@@ -345,10 +345,10 @@ var LEGACY_ALIASES = {
|
|
|
345
345
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
346
346
|
};
|
|
347
347
|
var bind2 = functionBind;
|
|
348
|
-
var hasOwn$
|
|
349
|
-
var $concat = bind2.call(Function.call, Array.prototype.concat);
|
|
348
|
+
var hasOwn$2 = src;
|
|
349
|
+
var $concat$1 = bind2.call(Function.call, Array.prototype.concat);
|
|
350
350
|
var $spliceApply = bind2.call(Function.apply, Array.prototype.splice);
|
|
351
|
-
var $replace = bind2.call(Function.call, String.prototype.replace);
|
|
351
|
+
var $replace$1 = bind2.call(Function.call, String.prototype.replace);
|
|
352
352
|
var $strSlice = bind2.call(Function.call, String.prototype.slice);
|
|
353
353
|
var $exec = bind2.call(Function.call, RegExp.prototype.exec);
|
|
354
354
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -362,25 +362,25 @@ var stringToPath = function stringToPath2(string2) {
|
|
|
362
362
|
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
363
363
|
}
|
|
364
364
|
var result = [];
|
|
365
|
-
$replace(string2, rePropName, function(match, number2,
|
|
366
|
-
result[result.length] =
|
|
365
|
+
$replace$1(string2, rePropName, function(match, number2, quote2, subString) {
|
|
366
|
+
result[result.length] = quote2 ? $replace$1(subString, reEscapeChar, "$1") : number2 || match;
|
|
367
367
|
});
|
|
368
368
|
return result;
|
|
369
369
|
};
|
|
370
370
|
var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
|
|
371
371
|
var intrinsicName = name2;
|
|
372
372
|
var alias;
|
|
373
|
-
if (hasOwn$
|
|
373
|
+
if (hasOwn$2(LEGACY_ALIASES, intrinsicName)) {
|
|
374
374
|
alias = LEGACY_ALIASES[intrinsicName];
|
|
375
375
|
intrinsicName = "%" + alias[0] + "%";
|
|
376
376
|
}
|
|
377
|
-
if (hasOwn$
|
|
377
|
+
if (hasOwn$2(INTRINSICS, intrinsicName)) {
|
|
378
378
|
var value = INTRINSICS[intrinsicName];
|
|
379
379
|
if (value === needsEval) {
|
|
380
380
|
value = doEval(intrinsicName);
|
|
381
381
|
}
|
|
382
382
|
if (typeof value === "undefined" && !allowMissing) {
|
|
383
|
-
throw new $TypeError("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
|
|
383
|
+
throw new $TypeError$1("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
|
|
384
384
|
}
|
|
385
385
|
return {
|
|
386
386
|
alias,
|
|
@@ -392,10 +392,10 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
|
|
|
392
392
|
};
|
|
393
393
|
var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
|
|
394
394
|
if (typeof name2 !== "string" || name2.length === 0) {
|
|
395
|
-
throw new $TypeError("intrinsic name must be a non-empty string");
|
|
395
|
+
throw new $TypeError$1("intrinsic name must be a non-empty string");
|
|
396
396
|
}
|
|
397
397
|
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
398
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
398
|
+
throw new $TypeError$1('"allowMissing" argument must be a boolean');
|
|
399
399
|
}
|
|
400
400
|
if ($exec(/^%?[^%]*%?$/, name2) === null) {
|
|
401
401
|
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
@@ -409,7 +409,7 @@ var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
|
|
|
409
409
|
var alias = intrinsic.alias;
|
|
410
410
|
if (alias) {
|
|
411
411
|
intrinsicBaseName = alias[0];
|
|
412
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
412
|
+
$spliceApply(parts, $concat$1([0, 1], alias));
|
|
413
413
|
}
|
|
414
414
|
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
415
415
|
var part = parts[i];
|
|
@@ -423,12 +423,12 @@ var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
|
|
|
423
423
|
}
|
|
424
424
|
intrinsicBaseName += "." + part;
|
|
425
425
|
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
426
|
-
if (hasOwn$
|
|
426
|
+
if (hasOwn$2(INTRINSICS, intrinsicRealName)) {
|
|
427
427
|
value = INTRINSICS[intrinsicRealName];
|
|
428
428
|
} else if (value != null) {
|
|
429
429
|
if (!(part in value)) {
|
|
430
430
|
if (!allowMissing) {
|
|
431
|
-
throw new $TypeError("base intrinsic for " + name2 + " exists, but the property is not available.");
|
|
431
|
+
throw new $TypeError$1("base intrinsic for " + name2 + " exists, but the property is not available.");
|
|
432
432
|
}
|
|
433
433
|
return void 0;
|
|
434
434
|
}
|
|
@@ -441,7 +441,7 @@ var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
|
|
|
441
441
|
value = value[part];
|
|
442
442
|
}
|
|
443
443
|
} else {
|
|
444
|
-
isOwn = hasOwn$
|
|
444
|
+
isOwn = hasOwn$2(value, part);
|
|
445
445
|
value = value[part];
|
|
446
446
|
}
|
|
447
447
|
if (isOwn && !skipFurtherCaching) {
|
|
@@ -492,19 +492,19 @@ var callBind$2 = { exports: {} };
|
|
|
492
492
|
}
|
|
493
493
|
})(callBind$2);
|
|
494
494
|
var callBindExports = callBind$2.exports;
|
|
495
|
-
var GetIntrinsic$
|
|
495
|
+
var GetIntrinsic$2 = getIntrinsic;
|
|
496
496
|
var callBind$1 = callBindExports;
|
|
497
|
-
var $indexOf$1 = callBind$1(GetIntrinsic$
|
|
498
|
-
var callBound$
|
|
499
|
-
var intrinsic = GetIntrinsic$
|
|
497
|
+
var $indexOf$1 = callBind$1(GetIntrinsic$2("String.prototype.indexOf"));
|
|
498
|
+
var callBound$3 = function callBoundIntrinsic(name2, allowMissing) {
|
|
499
|
+
var intrinsic = GetIntrinsic$2(name2, !!allowMissing);
|
|
500
500
|
if (typeof intrinsic === "function" && $indexOf$1(name2, ".prototype.") > -1) {
|
|
501
501
|
return callBind$1(intrinsic);
|
|
502
502
|
}
|
|
503
503
|
return intrinsic;
|
|
504
504
|
};
|
|
505
505
|
var hasToStringTag$3 = shams();
|
|
506
|
-
var callBound$
|
|
507
|
-
var $toString$1 = callBound$
|
|
506
|
+
var callBound$2 = callBound$3;
|
|
507
|
+
var $toString$1 = callBound$2("Object.prototype.toString");
|
|
508
508
|
var isStandardArguments = function isArguments(value) {
|
|
509
509
|
if (hasToStringTag$3 && value && typeof value === "object" && Symbol.toStringTag in value) {
|
|
510
510
|
return false;
|
|
@@ -522,7 +522,7 @@ var supportsStandardArguments = function() {
|
|
|
522
522
|
}();
|
|
523
523
|
isStandardArguments.isLegacyArguments = isLegacyArguments;
|
|
524
524
|
var isArguments3 = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
525
|
-
var toStr$
|
|
525
|
+
var toStr$3 = Object.prototype.toString;
|
|
526
526
|
var fnToStr$1 = Function.prototype.toString;
|
|
527
527
|
var isFnRegex = /^\s*(?:function)?\*/;
|
|
528
528
|
var hasToStringTag$2 = shams();
|
|
@@ -545,7 +545,7 @@ var isGeneratorFunction = function isGeneratorFunction2(fn) {
|
|
|
545
545
|
return true;
|
|
546
546
|
}
|
|
547
547
|
if (!hasToStringTag$2) {
|
|
548
|
-
var str2 = toStr$
|
|
548
|
+
var str2 = toStr$3.call(fn);
|
|
549
549
|
return str2 === "[object GeneratorFunction]";
|
|
550
550
|
}
|
|
551
551
|
if (!getProto) {
|
|
@@ -600,7 +600,7 @@ var tryFunctionObject = function tryFunctionToStr(value) {
|
|
|
600
600
|
return false;
|
|
601
601
|
}
|
|
602
602
|
};
|
|
603
|
-
var toStr$
|
|
603
|
+
var toStr$2 = Object.prototype.toString;
|
|
604
604
|
var objectClass = "[object Object]";
|
|
605
605
|
var fnClass = "[object Function]";
|
|
606
606
|
var genClass = "[object GeneratorFunction]";
|
|
@@ -614,11 +614,11 @@ var isDDA = function isDocumentDotAll() {
|
|
|
614
614
|
};
|
|
615
615
|
if (typeof document === "object") {
|
|
616
616
|
var all = document.all;
|
|
617
|
-
if (toStr$
|
|
617
|
+
if (toStr$2.call(all) === toStr$2.call(document.all)) {
|
|
618
618
|
isDDA = function isDocumentDotAll2(value) {
|
|
619
619
|
if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) {
|
|
620
620
|
try {
|
|
621
|
-
var str2 = toStr$
|
|
621
|
+
var str2 = toStr$2.call(value);
|
|
622
622
|
return (str2 === ddaClass || str2 === ddaClass2 || str2 === ddaClass3 || str2 === objectClass) && value("") == null;
|
|
623
623
|
} catch (e2) {
|
|
624
624
|
}
|
|
@@ -661,14 +661,14 @@ var isCallable$1 = reflectApply ? function isCallable(value) {
|
|
|
661
661
|
if (isES6ClassFn(value)) {
|
|
662
662
|
return false;
|
|
663
663
|
}
|
|
664
|
-
var strClass = toStr$
|
|
664
|
+
var strClass = toStr$2.call(value);
|
|
665
665
|
if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) {
|
|
666
666
|
return false;
|
|
667
667
|
}
|
|
668
668
|
return tryFunctionObject(value);
|
|
669
669
|
};
|
|
670
670
|
var isCallable3 = isCallable$1;
|
|
671
|
-
var toStr = Object.prototype.toString;
|
|
671
|
+
var toStr$1 = Object.prototype.toString;
|
|
672
672
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
673
673
|
var forEachArray = function forEachArray2(array, iterator, receiver) {
|
|
674
674
|
for (var i = 0, len = array.length; i < len; i++) {
|
|
@@ -709,7 +709,7 @@ var forEach$3 = function forEach(list, iterator, thisArg) {
|
|
|
709
709
|
if (arguments.length >= 3) {
|
|
710
710
|
receiver = thisArg;
|
|
711
711
|
}
|
|
712
|
-
if (toStr.call(list) === "[object Array]") {
|
|
712
|
+
if (toStr$1.call(list) === "[object Array]") {
|
|
713
713
|
forEachArray(list, iterator, receiver);
|
|
714
714
|
} else if (typeof list === "string") {
|
|
715
715
|
forEachString(list, iterator, receiver);
|
|
@@ -741,8 +741,8 @@ var availableTypedArrays$1 = function availableTypedArrays() {
|
|
|
741
741
|
}
|
|
742
742
|
return out;
|
|
743
743
|
};
|
|
744
|
-
var
|
|
745
|
-
var $gOPD =
|
|
744
|
+
var GetIntrinsic$1 = getIntrinsic;
|
|
745
|
+
var $gOPD = GetIntrinsic$1("%Object.getOwnPropertyDescriptor%", true);
|
|
746
746
|
if ($gOPD) {
|
|
747
747
|
try {
|
|
748
748
|
$gOPD([], "length");
|
|
@@ -754,15 +754,15 @@ var gopd = $gOPD;
|
|
|
754
754
|
var forEach$2 = forEach_1;
|
|
755
755
|
var availableTypedArrays2 = availableTypedArrays$1;
|
|
756
756
|
var callBind = callBindExports;
|
|
757
|
-
var callBound = callBound$
|
|
757
|
+
var callBound$1 = callBound$3;
|
|
758
758
|
var gOPD = gopd;
|
|
759
|
-
var $toString = callBound("Object.prototype.toString");
|
|
759
|
+
var $toString = callBound$1("Object.prototype.toString");
|
|
760
760
|
var hasToStringTag = shams();
|
|
761
761
|
var g = typeof globalThis === "undefined" ? commonjsGlobal : globalThis;
|
|
762
762
|
var typedArrays = availableTypedArrays2();
|
|
763
|
-
var $slice = callBound("String.prototype.slice");
|
|
763
|
+
var $slice$1 = callBound$1("String.prototype.slice");
|
|
764
764
|
var getPrototypeOf = Object.getPrototypeOf;
|
|
765
|
-
var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) {
|
|
765
|
+
var $indexOf = callBound$1("Array.prototype.indexOf", true) || function indexOf(array, value) {
|
|
766
766
|
for (var i = 0; i < array.length; i += 1) {
|
|
767
767
|
if (array[i] === value) {
|
|
768
768
|
return i;
|
|
@@ -796,7 +796,7 @@ var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
|
796
796
|
if (!found) {
|
|
797
797
|
try {
|
|
798
798
|
if ("$" + getter(value) === typedArray) {
|
|
799
|
-
found = $slice(typedArray, 1);
|
|
799
|
+
found = $slice$1(typedArray, 1);
|
|
800
800
|
}
|
|
801
801
|
} catch (e2) {
|
|
802
802
|
}
|
|
@@ -810,7 +810,7 @@ var trySlices = function tryAllSlices(value) {
|
|
|
810
810
|
if (!found) {
|
|
811
811
|
try {
|
|
812
812
|
getter(value);
|
|
813
|
-
found = $slice(name2, 1);
|
|
813
|
+
found = $slice$1(name2, 1);
|
|
814
814
|
} catch (e2) {
|
|
815
815
|
}
|
|
816
816
|
}
|
|
@@ -822,7 +822,7 @@ var whichTypedArray$1 = function whichTypedArray(value) {
|
|
|
822
822
|
return false;
|
|
823
823
|
}
|
|
824
824
|
if (!hasToStringTag) {
|
|
825
|
-
var tag = $slice($toString(value), 8, -1);
|
|
825
|
+
var tag = $slice$1($toString(value), 8, -1);
|
|
826
826
|
if ($indexOf(typedArrays, tag) > -1) {
|
|
827
827
|
return tag;
|
|
828
828
|
}
|
|
@@ -933,43 +933,43 @@ var isTypedArray = function isTypedArray2(value) {
|
|
|
933
933
|
return ObjectToString(value) === "[object Map]";
|
|
934
934
|
}
|
|
935
935
|
isMapToString.working = typeof Map !== "undefined" && isMapToString(/* @__PURE__ */ new Map());
|
|
936
|
-
function
|
|
936
|
+
function isMap2(value) {
|
|
937
937
|
if (typeof Map === "undefined") {
|
|
938
938
|
return false;
|
|
939
939
|
}
|
|
940
940
|
return isMapToString.working ? isMapToString(value) : value instanceof Map;
|
|
941
941
|
}
|
|
942
|
-
exports.isMap =
|
|
942
|
+
exports.isMap = isMap2;
|
|
943
943
|
function isSetToString(value) {
|
|
944
944
|
return ObjectToString(value) === "[object Set]";
|
|
945
945
|
}
|
|
946
946
|
isSetToString.working = typeof Set !== "undefined" && isSetToString(/* @__PURE__ */ new Set());
|
|
947
|
-
function
|
|
947
|
+
function isSet2(value) {
|
|
948
948
|
if (typeof Set === "undefined") {
|
|
949
949
|
return false;
|
|
950
950
|
}
|
|
951
951
|
return isSetToString.working ? isSetToString(value) : value instanceof Set;
|
|
952
952
|
}
|
|
953
|
-
exports.isSet =
|
|
953
|
+
exports.isSet = isSet2;
|
|
954
954
|
function isWeakMapToString(value) {
|
|
955
955
|
return ObjectToString(value) === "[object WeakMap]";
|
|
956
956
|
}
|
|
957
957
|
isWeakMapToString.working = typeof WeakMap !== "undefined" && isWeakMapToString(/* @__PURE__ */ new WeakMap());
|
|
958
|
-
function
|
|
958
|
+
function isWeakMap2(value) {
|
|
959
959
|
if (typeof WeakMap === "undefined") {
|
|
960
960
|
return false;
|
|
961
961
|
}
|
|
962
962
|
return isWeakMapToString.working ? isWeakMapToString(value) : value instanceof WeakMap;
|
|
963
963
|
}
|
|
964
|
-
exports.isWeakMap =
|
|
964
|
+
exports.isWeakMap = isWeakMap2;
|
|
965
965
|
function isWeakSetToString(value) {
|
|
966
966
|
return ObjectToString(value) === "[object WeakSet]";
|
|
967
967
|
}
|
|
968
968
|
isWeakSetToString.working = typeof WeakSet !== "undefined" && isWeakSetToString(/* @__PURE__ */ new WeakSet());
|
|
969
|
-
function
|
|
969
|
+
function isWeakSet2(value) {
|
|
970
970
|
return isWeakSetToString(value);
|
|
971
971
|
}
|
|
972
|
-
exports.isWeakSet =
|
|
972
|
+
exports.isWeakSet = isWeakSet2;
|
|
973
973
|
function isArrayBufferToString(value) {
|
|
974
974
|
return ObjectToString(value) === "[object ArrayBuffer]";
|
|
975
975
|
}
|
|
@@ -1105,10 +1105,10 @@ var inherits_browserExports = inherits_browser.exports;
|
|
|
1105
1105
|
};
|
|
1106
1106
|
var formatRegExp = /%[sdj%]/g;
|
|
1107
1107
|
exports.format = function(f2) {
|
|
1108
|
-
if (!
|
|
1108
|
+
if (!isString2(f2)) {
|
|
1109
1109
|
var objects = [];
|
|
1110
1110
|
for (var i = 0; i < arguments.length; i++) {
|
|
1111
|
-
objects.push(
|
|
1111
|
+
objects.push(inspect2(arguments[i]));
|
|
1112
1112
|
}
|
|
1113
1113
|
return objects.join(" ");
|
|
1114
1114
|
}
|
|
@@ -1139,7 +1139,7 @@ var inherits_browserExports = inherits_browser.exports;
|
|
|
1139
1139
|
if (isNull2(x2) || !isObject2(x2)) {
|
|
1140
1140
|
str2 += " " + x2;
|
|
1141
1141
|
} else {
|
|
1142
|
-
str2 += " " +
|
|
1142
|
+
str2 += " " + inspect2(x2);
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
1145
|
return str2;
|
|
@@ -1192,7 +1192,7 @@ var inherits_browserExports = inherits_browser.exports;
|
|
|
1192
1192
|
}
|
|
1193
1193
|
return debugs[set2];
|
|
1194
1194
|
};
|
|
1195
|
-
function
|
|
1195
|
+
function inspect2(obj, opts) {
|
|
1196
1196
|
var ctx = {
|
|
1197
1197
|
seen: [],
|
|
1198
1198
|
stylize: stylizeNoColor
|
|
@@ -1218,8 +1218,8 @@ var inherits_browserExports = inherits_browser.exports;
|
|
|
1218
1218
|
ctx.stylize = stylizeWithColor;
|
|
1219
1219
|
return formatValue(ctx, obj, ctx.depth);
|
|
1220
1220
|
}
|
|
1221
|
-
exports.inspect =
|
|
1222
|
-
|
|
1221
|
+
exports.inspect = inspect2;
|
|
1222
|
+
inspect2.colors = {
|
|
1223
1223
|
"bold": [1, 22],
|
|
1224
1224
|
"italic": [3, 23],
|
|
1225
1225
|
"underline": [4, 24],
|
|
@@ -1234,7 +1234,7 @@ var inherits_browserExports = inherits_browser.exports;
|
|
|
1234
1234
|
"red": [31, 39],
|
|
1235
1235
|
"yellow": [33, 39]
|
|
1236
1236
|
};
|
|
1237
|
-
|
|
1237
|
+
inspect2.styles = {
|
|
1238
1238
|
"special": "cyan",
|
|
1239
1239
|
"number": "yellow",
|
|
1240
1240
|
"boolean": "yellow",
|
|
@@ -1246,9 +1246,9 @@ var inherits_browserExports = inherits_browser.exports;
|
|
|
1246
1246
|
"regexp": "red"
|
|
1247
1247
|
};
|
|
1248
1248
|
function stylizeWithColor(str2, styleType) {
|
|
1249
|
-
var style =
|
|
1249
|
+
var style = inspect2.styles[styleType];
|
|
1250
1250
|
if (style) {
|
|
1251
|
-
return "\x1B[" +
|
|
1251
|
+
return "\x1B[" + inspect2.colors[style][0] + "m" + str2 + "\x1B[" + inspect2.colors[style][1] + "m";
|
|
1252
1252
|
} else {
|
|
1253
1253
|
return str2;
|
|
1254
1254
|
}
|
|
@@ -1268,7 +1268,7 @@ var inherits_browserExports = inherits_browser.exports;
|
|
|
1268
1268
|
value.inspect !== exports.inspect && // Also filter out any prototype objects using the circular check.
|
|
1269
1269
|
!(value.constructor && value.constructor.prototype === value)) {
|
|
1270
1270
|
var ret = value.inspect(recurseTimes, ctx);
|
|
1271
|
-
if (!
|
|
1271
|
+
if (!isString2(ret)) {
|
|
1272
1272
|
ret = formatValue(ctx, ret, recurseTimes);
|
|
1273
1273
|
}
|
|
1274
1274
|
return ret;
|
|
@@ -1282,7 +1282,7 @@ var inherits_browserExports = inherits_browser.exports;
|
|
|
1282
1282
|
if (ctx.showHidden) {
|
|
1283
1283
|
keys2 = Object.getOwnPropertyNames(value);
|
|
1284
1284
|
}
|
|
1285
|
-
if (
|
|
1285
|
+
if (isError2(value) && (keys2.indexOf("message") >= 0 || keys2.indexOf("description") >= 0)) {
|
|
1286
1286
|
return formatError2(value);
|
|
1287
1287
|
}
|
|
1288
1288
|
if (keys2.length === 0) {
|
|
@@ -1290,13 +1290,13 @@ var inherits_browserExports = inherits_browser.exports;
|
|
|
1290
1290
|
var name2 = value.name ? ": " + value.name : "";
|
|
1291
1291
|
return ctx.stylize("[Function" + name2 + "]", "special");
|
|
1292
1292
|
}
|
|
1293
|
-
if (
|
|
1293
|
+
if (isRegExp3(value)) {
|
|
1294
1294
|
return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
|
|
1295
1295
|
}
|
|
1296
|
-
if (
|
|
1296
|
+
if (isDate2(value)) {
|
|
1297
1297
|
return ctx.stylize(Date.prototype.toString.call(value), "date");
|
|
1298
1298
|
}
|
|
1299
|
-
if (
|
|
1299
|
+
if (isError2(value)) {
|
|
1300
1300
|
return formatError2(value);
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
@@ -1309,20 +1309,20 @@ var inherits_browserExports = inherits_browser.exports;
|
|
|
1309
1309
|
var n2 = value.name ? ": " + value.name : "";
|
|
1310
1310
|
base2 = " [Function" + n2 + "]";
|
|
1311
1311
|
}
|
|
1312
|
-
if (
|
|
1312
|
+
if (isRegExp3(value)) {
|
|
1313
1313
|
base2 = " " + RegExp.prototype.toString.call(value);
|
|
1314
1314
|
}
|
|
1315
|
-
if (
|
|
1315
|
+
if (isDate2(value)) {
|
|
1316
1316
|
base2 = " " + Date.prototype.toUTCString.call(value);
|
|
1317
1317
|
}
|
|
1318
|
-
if (
|
|
1318
|
+
if (isError2(value)) {
|
|
1319
1319
|
base2 = " " + formatError2(value);
|
|
1320
1320
|
}
|
|
1321
1321
|
if (keys2.length === 0 && (!array || value.length == 0)) {
|
|
1322
1322
|
return braces[0] + base2 + braces[1];
|
|
1323
1323
|
}
|
|
1324
1324
|
if (recurseTimes < 0) {
|
|
1325
|
-
if (
|
|
1325
|
+
if (isRegExp3(value)) {
|
|
1326
1326
|
return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
|
|
1327
1327
|
} else {
|
|
1328
1328
|
return ctx.stylize("[Object]", "special");
|
|
@@ -1343,11 +1343,11 @@ var inherits_browserExports = inherits_browser.exports;
|
|
|
1343
1343
|
function formatPrimitive(ctx, value) {
|
|
1344
1344
|
if (isUndefined2(value))
|
|
1345
1345
|
return ctx.stylize("undefined", "undefined");
|
|
1346
|
-
if (
|
|
1346
|
+
if (isString2(value)) {
|
|
1347
1347
|
var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
1348
1348
|
return ctx.stylize(simple, "string");
|
|
1349
1349
|
}
|
|
1350
|
-
if (
|
|
1350
|
+
if (isNumber2(value))
|
|
1351
1351
|
return ctx.stylize("" + value, "number");
|
|
1352
1352
|
if (isBoolean2(value))
|
|
1353
1353
|
return ctx.stylize("" + value, "boolean");
|
|
@@ -1469,41 +1469,41 @@ var inherits_browserExports = inherits_browser.exports;
|
|
|
1469
1469
|
return arg == null;
|
|
1470
1470
|
}
|
|
1471
1471
|
exports.isNullOrUndefined = isNullOrUndefined;
|
|
1472
|
-
function
|
|
1472
|
+
function isNumber2(arg) {
|
|
1473
1473
|
return typeof arg === "number";
|
|
1474
1474
|
}
|
|
1475
|
-
exports.isNumber =
|
|
1476
|
-
function
|
|
1475
|
+
exports.isNumber = isNumber2;
|
|
1476
|
+
function isString2(arg) {
|
|
1477
1477
|
return typeof arg === "string";
|
|
1478
1478
|
}
|
|
1479
|
-
exports.isString =
|
|
1480
|
-
function
|
|
1479
|
+
exports.isString = isString2;
|
|
1480
|
+
function isSymbol2(arg) {
|
|
1481
1481
|
return typeof arg === "symbol";
|
|
1482
1482
|
}
|
|
1483
|
-
exports.isSymbol =
|
|
1483
|
+
exports.isSymbol = isSymbol2;
|
|
1484
1484
|
function isUndefined2(arg) {
|
|
1485
1485
|
return arg === void 0;
|
|
1486
1486
|
}
|
|
1487
1487
|
exports.isUndefined = isUndefined2;
|
|
1488
|
-
function
|
|
1489
|
-
return isObject2(re) &&
|
|
1488
|
+
function isRegExp3(re) {
|
|
1489
|
+
return isObject2(re) && objectToString2(re) === "[object RegExp]";
|
|
1490
1490
|
}
|
|
1491
|
-
exports.isRegExp =
|
|
1492
|
-
exports.types.isRegExp =
|
|
1491
|
+
exports.isRegExp = isRegExp3;
|
|
1492
|
+
exports.types.isRegExp = isRegExp3;
|
|
1493
1493
|
function isObject2(arg) {
|
|
1494
1494
|
return typeof arg === "object" && arg !== null;
|
|
1495
1495
|
}
|
|
1496
1496
|
exports.isObject = isObject2;
|
|
1497
|
-
function
|
|
1498
|
-
return isObject2(d2) &&
|
|
1497
|
+
function isDate2(d2) {
|
|
1498
|
+
return isObject2(d2) && objectToString2(d2) === "[object Date]";
|
|
1499
1499
|
}
|
|
1500
|
-
exports.isDate =
|
|
1501
|
-
exports.types.isDate =
|
|
1502
|
-
function
|
|
1503
|
-
return isObject2(e2) && (
|
|
1500
|
+
exports.isDate = isDate2;
|
|
1501
|
+
exports.types.isDate = isDate2;
|
|
1502
|
+
function isError2(e2) {
|
|
1503
|
+
return isObject2(e2) && (objectToString2(e2) === "[object Error]" || e2 instanceof Error);
|
|
1504
1504
|
}
|
|
1505
|
-
exports.isError =
|
|
1506
|
-
exports.types.isNativeError =
|
|
1505
|
+
exports.isError = isError2;
|
|
1506
|
+
exports.types.isNativeError = isError2;
|
|
1507
1507
|
function isFunction2(arg) {
|
|
1508
1508
|
return typeof arg === "function";
|
|
1509
1509
|
}
|
|
@@ -1514,7 +1514,7 @@ var inherits_browserExports = inherits_browser.exports;
|
|
|
1514
1514
|
}
|
|
1515
1515
|
exports.isPrimitive = isPrimitive;
|
|
1516
1516
|
exports.isBuffer = isBufferBrowser;
|
|
1517
|
-
function
|
|
1517
|
+
function objectToString2(o2) {
|
|
1518
1518
|
return Object.prototype.toString.call(o2);
|
|
1519
1519
|
}
|
|
1520
1520
|
function pad(n2) {
|
|
@@ -1658,15 +1658,2054 @@ var inherits_browserExports = inherits_browser.exports;
|
|
|
1658
1658
|
}
|
|
1659
1659
|
exports.callbackify = callbackify;
|
|
1660
1660
|
})(util$6);
|
|
1661
|
-
var url$
|
|
1661
|
+
var url$a = { exports: {} };
|
|
1662
|
+
var url$9 = {};
|
|
1663
|
+
var punycode$1 = { exports: {} };
|
|
1664
|
+
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
1665
|
+
punycode$1.exports;
|
|
1666
|
+
(function(module2, exports) {
|
|
1667
|
+
(function(root) {
|
|
1668
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
1669
|
+
var freeModule = module2 && !module2.nodeType && module2;
|
|
1670
|
+
var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal;
|
|
1671
|
+
if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) {
|
|
1672
|
+
root = freeGlobal;
|
|
1673
|
+
}
|
|
1674
|
+
var punycode2, maxInt = 2147483647, base2 = 36, tMin = 1, tMax = 26, skew = 38, damp = 700, initialBias = 72, initialN = 128, delimiter = "-", regexPunycode = /^xn--/, regexNonASCII = /[^\x20-\x7E]/, regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, errors2 = {
|
|
1675
|
+
"overflow": "Overflow: input needs wider integers to process",
|
|
1676
|
+
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
1677
|
+
"invalid-input": "Invalid input"
|
|
1678
|
+
}, baseMinusTMin = base2 - tMin, floor2 = Math.floor, stringFromCharCode = String.fromCharCode, key;
|
|
1679
|
+
function error2(type2) {
|
|
1680
|
+
throw new RangeError(errors2[type2]);
|
|
1681
|
+
}
|
|
1682
|
+
function map2(array, fn) {
|
|
1683
|
+
var length2 = array.length;
|
|
1684
|
+
var result = [];
|
|
1685
|
+
while (length2--) {
|
|
1686
|
+
result[length2] = fn(array[length2]);
|
|
1687
|
+
}
|
|
1688
|
+
return result;
|
|
1689
|
+
}
|
|
1690
|
+
function mapDomain(string2, fn) {
|
|
1691
|
+
var parts = string2.split("@");
|
|
1692
|
+
var result = "";
|
|
1693
|
+
if (parts.length > 1) {
|
|
1694
|
+
result = parts[0] + "@";
|
|
1695
|
+
string2 = parts[1];
|
|
1696
|
+
}
|
|
1697
|
+
string2 = string2.replace(regexSeparators, ".");
|
|
1698
|
+
var labels = string2.split(".");
|
|
1699
|
+
var encoded = map2(labels, fn).join(".");
|
|
1700
|
+
return result + encoded;
|
|
1701
|
+
}
|
|
1702
|
+
function ucs2decode(string2) {
|
|
1703
|
+
var output = [], counter = 0, length2 = string2.length, value, extra;
|
|
1704
|
+
while (counter < length2) {
|
|
1705
|
+
value = string2.charCodeAt(counter++);
|
|
1706
|
+
if (value >= 55296 && value <= 56319 && counter < length2) {
|
|
1707
|
+
extra = string2.charCodeAt(counter++);
|
|
1708
|
+
if ((extra & 64512) == 56320) {
|
|
1709
|
+
output.push(((value & 1023) << 10) + (extra & 1023) + 65536);
|
|
1710
|
+
} else {
|
|
1711
|
+
output.push(value);
|
|
1712
|
+
counter--;
|
|
1713
|
+
}
|
|
1714
|
+
} else {
|
|
1715
|
+
output.push(value);
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
return output;
|
|
1719
|
+
}
|
|
1720
|
+
function ucs2encode(array) {
|
|
1721
|
+
return map2(array, function(value) {
|
|
1722
|
+
var output = "";
|
|
1723
|
+
if (value > 65535) {
|
|
1724
|
+
value -= 65536;
|
|
1725
|
+
output += stringFromCharCode(value >>> 10 & 1023 | 55296);
|
|
1726
|
+
value = 56320 | value & 1023;
|
|
1727
|
+
}
|
|
1728
|
+
output += stringFromCharCode(value);
|
|
1729
|
+
return output;
|
|
1730
|
+
}).join("");
|
|
1731
|
+
}
|
|
1732
|
+
function basicToDigit(codePoint) {
|
|
1733
|
+
if (codePoint - 48 < 10) {
|
|
1734
|
+
return codePoint - 22;
|
|
1735
|
+
}
|
|
1736
|
+
if (codePoint - 65 < 26) {
|
|
1737
|
+
return codePoint - 65;
|
|
1738
|
+
}
|
|
1739
|
+
if (codePoint - 97 < 26) {
|
|
1740
|
+
return codePoint - 97;
|
|
1741
|
+
}
|
|
1742
|
+
return base2;
|
|
1743
|
+
}
|
|
1744
|
+
function digitToBasic(digit, flag) {
|
|
1745
|
+
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
|
1746
|
+
}
|
|
1747
|
+
function adapt(delta, numPoints, firstTime) {
|
|
1748
|
+
var k = 0;
|
|
1749
|
+
delta = firstTime ? floor2(delta / damp) : delta >> 1;
|
|
1750
|
+
delta += floor2(delta / numPoints);
|
|
1751
|
+
for (; delta > baseMinusTMin * tMax >> 1; k += base2) {
|
|
1752
|
+
delta = floor2(delta / baseMinusTMin);
|
|
1753
|
+
}
|
|
1754
|
+
return floor2(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
1755
|
+
}
|
|
1756
|
+
function decode2(input) {
|
|
1757
|
+
var output = [], inputLength = input.length, out, i = 0, n2 = initialN, bias = initialBias, basic, j2, index, oldi, w2, k, digit, t2, baseMinusT;
|
|
1758
|
+
basic = input.lastIndexOf(delimiter);
|
|
1759
|
+
if (basic < 0) {
|
|
1760
|
+
basic = 0;
|
|
1761
|
+
}
|
|
1762
|
+
for (j2 = 0; j2 < basic; ++j2) {
|
|
1763
|
+
if (input.charCodeAt(j2) >= 128) {
|
|
1764
|
+
error2("not-basic");
|
|
1765
|
+
}
|
|
1766
|
+
output.push(input.charCodeAt(j2));
|
|
1767
|
+
}
|
|
1768
|
+
for (index = basic > 0 ? basic + 1 : 0; index < inputLength; ) {
|
|
1769
|
+
for (oldi = i, w2 = 1, k = base2; ; k += base2) {
|
|
1770
|
+
if (index >= inputLength) {
|
|
1771
|
+
error2("invalid-input");
|
|
1772
|
+
}
|
|
1773
|
+
digit = basicToDigit(input.charCodeAt(index++));
|
|
1774
|
+
if (digit >= base2 || digit > floor2((maxInt - i) / w2)) {
|
|
1775
|
+
error2("overflow");
|
|
1776
|
+
}
|
|
1777
|
+
i += digit * w2;
|
|
1778
|
+
t2 = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
|
|
1779
|
+
if (digit < t2) {
|
|
1780
|
+
break;
|
|
1781
|
+
}
|
|
1782
|
+
baseMinusT = base2 - t2;
|
|
1783
|
+
if (w2 > floor2(maxInt / baseMinusT)) {
|
|
1784
|
+
error2("overflow");
|
|
1785
|
+
}
|
|
1786
|
+
w2 *= baseMinusT;
|
|
1787
|
+
}
|
|
1788
|
+
out = output.length + 1;
|
|
1789
|
+
bias = adapt(i - oldi, out, oldi == 0);
|
|
1790
|
+
if (floor2(i / out) > maxInt - n2) {
|
|
1791
|
+
error2("overflow");
|
|
1792
|
+
}
|
|
1793
|
+
n2 += floor2(i / out);
|
|
1794
|
+
i %= out;
|
|
1795
|
+
output.splice(i++, 0, n2);
|
|
1796
|
+
}
|
|
1797
|
+
return ucs2encode(output);
|
|
1798
|
+
}
|
|
1799
|
+
function encode3(input) {
|
|
1800
|
+
var n2, delta, handledCPCount, basicLength, bias, j2, m2, q, k, t2, currentValue, output = [], inputLength, handledCPCountPlusOne, baseMinusT, qMinusT;
|
|
1801
|
+
input = ucs2decode(input);
|
|
1802
|
+
inputLength = input.length;
|
|
1803
|
+
n2 = initialN;
|
|
1804
|
+
delta = 0;
|
|
1805
|
+
bias = initialBias;
|
|
1806
|
+
for (j2 = 0; j2 < inputLength; ++j2) {
|
|
1807
|
+
currentValue = input[j2];
|
|
1808
|
+
if (currentValue < 128) {
|
|
1809
|
+
output.push(stringFromCharCode(currentValue));
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
handledCPCount = basicLength = output.length;
|
|
1813
|
+
if (basicLength) {
|
|
1814
|
+
output.push(delimiter);
|
|
1815
|
+
}
|
|
1816
|
+
while (handledCPCount < inputLength) {
|
|
1817
|
+
for (m2 = maxInt, j2 = 0; j2 < inputLength; ++j2) {
|
|
1818
|
+
currentValue = input[j2];
|
|
1819
|
+
if (currentValue >= n2 && currentValue < m2) {
|
|
1820
|
+
m2 = currentValue;
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
handledCPCountPlusOne = handledCPCount + 1;
|
|
1824
|
+
if (m2 - n2 > floor2((maxInt - delta) / handledCPCountPlusOne)) {
|
|
1825
|
+
error2("overflow");
|
|
1826
|
+
}
|
|
1827
|
+
delta += (m2 - n2) * handledCPCountPlusOne;
|
|
1828
|
+
n2 = m2;
|
|
1829
|
+
for (j2 = 0; j2 < inputLength; ++j2) {
|
|
1830
|
+
currentValue = input[j2];
|
|
1831
|
+
if (currentValue < n2 && ++delta > maxInt) {
|
|
1832
|
+
error2("overflow");
|
|
1833
|
+
}
|
|
1834
|
+
if (currentValue == n2) {
|
|
1835
|
+
for (q = delta, k = base2; ; k += base2) {
|
|
1836
|
+
t2 = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
|
|
1837
|
+
if (q < t2) {
|
|
1838
|
+
break;
|
|
1839
|
+
}
|
|
1840
|
+
qMinusT = q - t2;
|
|
1841
|
+
baseMinusT = base2 - t2;
|
|
1842
|
+
output.push(
|
|
1843
|
+
stringFromCharCode(digitToBasic(t2 + qMinusT % baseMinusT, 0))
|
|
1844
|
+
);
|
|
1845
|
+
q = floor2(qMinusT / baseMinusT);
|
|
1846
|
+
}
|
|
1847
|
+
output.push(stringFromCharCode(digitToBasic(q, 0)));
|
|
1848
|
+
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
|
1849
|
+
delta = 0;
|
|
1850
|
+
++handledCPCount;
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
++delta;
|
|
1854
|
+
++n2;
|
|
1855
|
+
}
|
|
1856
|
+
return output.join("");
|
|
1857
|
+
}
|
|
1858
|
+
function toUnicode(input) {
|
|
1859
|
+
return mapDomain(input, function(string2) {
|
|
1860
|
+
return regexPunycode.test(string2) ? decode2(string2.slice(4).toLowerCase()) : string2;
|
|
1861
|
+
});
|
|
1862
|
+
}
|
|
1863
|
+
function toASCII(input) {
|
|
1864
|
+
return mapDomain(input, function(string2) {
|
|
1865
|
+
return regexNonASCII.test(string2) ? "xn--" + encode3(string2) : string2;
|
|
1866
|
+
});
|
|
1867
|
+
}
|
|
1868
|
+
punycode2 = {
|
|
1869
|
+
/**
|
|
1870
|
+
* A string representing the current Punycode.js version number.
|
|
1871
|
+
* @memberOf punycode
|
|
1872
|
+
* @type String
|
|
1873
|
+
*/
|
|
1874
|
+
"version": "1.4.1",
|
|
1875
|
+
/**
|
|
1876
|
+
* An object of methods to convert from JavaScript's internal character
|
|
1877
|
+
* representation (UCS-2) to Unicode code points, and back.
|
|
1878
|
+
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
1879
|
+
* @memberOf punycode
|
|
1880
|
+
* @type Object
|
|
1881
|
+
*/
|
|
1882
|
+
"ucs2": {
|
|
1883
|
+
"decode": ucs2decode,
|
|
1884
|
+
"encode": ucs2encode
|
|
1885
|
+
},
|
|
1886
|
+
"decode": decode2,
|
|
1887
|
+
"encode": encode3,
|
|
1888
|
+
"toASCII": toASCII,
|
|
1889
|
+
"toUnicode": toUnicode
|
|
1890
|
+
};
|
|
1891
|
+
if (freeExports && freeModule) {
|
|
1892
|
+
if (module2.exports == freeExports) {
|
|
1893
|
+
freeModule.exports = punycode2;
|
|
1894
|
+
} else {
|
|
1895
|
+
for (key in punycode2) {
|
|
1896
|
+
punycode2.hasOwnProperty(key) && (freeExports[key] = punycode2[key]);
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
} else {
|
|
1900
|
+
root.punycode = punycode2;
|
|
1901
|
+
}
|
|
1902
|
+
})(commonjsGlobal);
|
|
1903
|
+
})(punycode$1, punycode$1.exports);
|
|
1904
|
+
var punycodeExports = punycode$1.exports;
|
|
1662
1905
|
const __viteBrowserExternal = {};
|
|
1663
1906
|
const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1664
1907
|
__proto__: null,
|
|
1665
1908
|
default: __viteBrowserExternal
|
|
1666
1909
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1667
1910
|
const require$$1$2 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
|
|
1911
|
+
var hasMap = typeof Map === "function" && Map.prototype;
|
|
1912
|
+
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
|
|
1913
|
+
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
|
|
1914
|
+
var mapForEach = hasMap && Map.prototype.forEach;
|
|
1915
|
+
var hasSet = typeof Set === "function" && Set.prototype;
|
|
1916
|
+
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null;
|
|
1917
|
+
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null;
|
|
1918
|
+
var setForEach = hasSet && Set.prototype.forEach;
|
|
1919
|
+
var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype;
|
|
1920
|
+
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
1921
|
+
var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype;
|
|
1922
|
+
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
1923
|
+
var hasWeakRef = typeof WeakRef === "function" && WeakRef.prototype;
|
|
1924
|
+
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
1925
|
+
var booleanValueOf = Boolean.prototype.valueOf;
|
|
1926
|
+
var objectToString = Object.prototype.toString;
|
|
1927
|
+
var functionToString = Function.prototype.toString;
|
|
1928
|
+
var $match = String.prototype.match;
|
|
1929
|
+
var $slice = String.prototype.slice;
|
|
1930
|
+
var $replace = String.prototype.replace;
|
|
1931
|
+
var $toUpperCase = String.prototype.toUpperCase;
|
|
1932
|
+
var $toLowerCase = String.prototype.toLowerCase;
|
|
1933
|
+
var $test = RegExp.prototype.test;
|
|
1934
|
+
var $concat = Array.prototype.concat;
|
|
1935
|
+
var $join = Array.prototype.join;
|
|
1936
|
+
var $arrSlice = Array.prototype.slice;
|
|
1937
|
+
var $floor = Math.floor;
|
|
1938
|
+
var bigIntValueOf = typeof BigInt === "function" ? BigInt.prototype.valueOf : null;
|
|
1939
|
+
var gOPS = Object.getOwnPropertySymbols;
|
|
1940
|
+
var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null;
|
|
1941
|
+
var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object";
|
|
1942
|
+
var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null;
|
|
1943
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1944
|
+
var gPO = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O2) {
|
|
1945
|
+
return O2.__proto__;
|
|
1946
|
+
} : null);
|
|
1947
|
+
function addNumericSeparator(num, str2) {
|
|
1948
|
+
if (num === Infinity || num === -Infinity || num !== num || num && num > -1e3 && num < 1e3 || $test.call(/e/, str2)) {
|
|
1949
|
+
return str2;
|
|
1950
|
+
}
|
|
1951
|
+
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
1952
|
+
if (typeof num === "number") {
|
|
1953
|
+
var int2 = num < 0 ? -$floor(-num) : $floor(num);
|
|
1954
|
+
if (int2 !== num) {
|
|
1955
|
+
var intStr = String(int2);
|
|
1956
|
+
var dec2 = $slice.call(str2, intStr.length + 1);
|
|
1957
|
+
return $replace.call(intStr, sepRegex, "$&_") + "." + $replace.call($replace.call(dec2, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
return $replace.call(str2, sepRegex, "$&_");
|
|
1961
|
+
}
|
|
1962
|
+
var utilInspect = require$$1$2;
|
|
1963
|
+
var inspectCustom = utilInspect.custom;
|
|
1964
|
+
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
1965
|
+
var objectInspect = function inspect_(obj, options2, depth, seen) {
|
|
1966
|
+
var opts = options2 || {};
|
|
1967
|
+
if (has$3(opts, "quoteStyle") && (opts.quoteStyle !== "single" && opts.quoteStyle !== "double")) {
|
|
1968
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1969
|
+
}
|
|
1970
|
+
if (has$3(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
|
|
1971
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
1972
|
+
}
|
|
1973
|
+
var customInspect = has$3(opts, "customInspect") ? opts.customInspect : true;
|
|
1974
|
+
if (typeof customInspect !== "boolean" && customInspect !== "symbol") {
|
|
1975
|
+
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
1976
|
+
}
|
|
1977
|
+
if (has$3(opts, "indent") && opts.indent !== null && opts.indent !== " " && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
|
|
1978
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
1979
|
+
}
|
|
1980
|
+
if (has$3(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") {
|
|
1981
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
1982
|
+
}
|
|
1983
|
+
var numericSeparator = opts.numericSeparator;
|
|
1984
|
+
if (typeof obj === "undefined") {
|
|
1985
|
+
return "undefined";
|
|
1986
|
+
}
|
|
1987
|
+
if (obj === null) {
|
|
1988
|
+
return "null";
|
|
1989
|
+
}
|
|
1990
|
+
if (typeof obj === "boolean") {
|
|
1991
|
+
return obj ? "true" : "false";
|
|
1992
|
+
}
|
|
1993
|
+
if (typeof obj === "string") {
|
|
1994
|
+
return inspectString(obj, opts);
|
|
1995
|
+
}
|
|
1996
|
+
if (typeof obj === "number") {
|
|
1997
|
+
if (obj === 0) {
|
|
1998
|
+
return Infinity / obj > 0 ? "0" : "-0";
|
|
1999
|
+
}
|
|
2000
|
+
var str2 = String(obj);
|
|
2001
|
+
return numericSeparator ? addNumericSeparator(obj, str2) : str2;
|
|
2002
|
+
}
|
|
2003
|
+
if (typeof obj === "bigint") {
|
|
2004
|
+
var bigIntStr = String(obj) + "n";
|
|
2005
|
+
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
|
2006
|
+
}
|
|
2007
|
+
var maxDepth = typeof opts.depth === "undefined" ? 5 : opts.depth;
|
|
2008
|
+
if (typeof depth === "undefined") {
|
|
2009
|
+
depth = 0;
|
|
2010
|
+
}
|
|
2011
|
+
if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
|
|
2012
|
+
return isArray$4(obj) ? "[Array]" : "[Object]";
|
|
2013
|
+
}
|
|
2014
|
+
var indent = getIndent(opts, depth);
|
|
2015
|
+
if (typeof seen === "undefined") {
|
|
2016
|
+
seen = [];
|
|
2017
|
+
} else if (indexOf2(seen, obj) >= 0) {
|
|
2018
|
+
return "[Circular]";
|
|
2019
|
+
}
|
|
2020
|
+
function inspect2(value, from2, noIndent) {
|
|
2021
|
+
if (from2) {
|
|
2022
|
+
seen = $arrSlice.call(seen);
|
|
2023
|
+
seen.push(from2);
|
|
2024
|
+
}
|
|
2025
|
+
if (noIndent) {
|
|
2026
|
+
var newOpts = {
|
|
2027
|
+
depth: opts.depth
|
|
2028
|
+
};
|
|
2029
|
+
if (has$3(opts, "quoteStyle")) {
|
|
2030
|
+
newOpts.quoteStyle = opts.quoteStyle;
|
|
2031
|
+
}
|
|
2032
|
+
return inspect_(value, newOpts, depth + 1, seen);
|
|
2033
|
+
}
|
|
2034
|
+
return inspect_(value, opts, depth + 1, seen);
|
|
2035
|
+
}
|
|
2036
|
+
if (typeof obj === "function" && !isRegExp$2(obj)) {
|
|
2037
|
+
var name2 = nameOf(obj);
|
|
2038
|
+
var keys2 = arrObjKeys(obj, inspect2);
|
|
2039
|
+
return "[Function" + (name2 ? ": " + name2 : " (anonymous)") + "]" + (keys2.length > 0 ? " { " + $join.call(keys2, ", ") + " }" : "");
|
|
2040
|
+
}
|
|
2041
|
+
if (isSymbol(obj)) {
|
|
2042
|
+
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj);
|
|
2043
|
+
return typeof obj === "object" && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
2044
|
+
}
|
|
2045
|
+
if (isElement(obj)) {
|
|
2046
|
+
var s2 = "<" + $toLowerCase.call(String(obj.nodeName));
|
|
2047
|
+
var attrs = obj.attributes || [];
|
|
2048
|
+
for (var i = 0; i < attrs.length; i++) {
|
|
2049
|
+
s2 += " " + attrs[i].name + "=" + wrapQuotes(quote(attrs[i].value), "double", opts);
|
|
2050
|
+
}
|
|
2051
|
+
s2 += ">";
|
|
2052
|
+
if (obj.childNodes && obj.childNodes.length) {
|
|
2053
|
+
s2 += "...";
|
|
2054
|
+
}
|
|
2055
|
+
s2 += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
|
|
2056
|
+
return s2;
|
|
2057
|
+
}
|
|
2058
|
+
if (isArray$4(obj)) {
|
|
2059
|
+
if (obj.length === 0) {
|
|
2060
|
+
return "[]";
|
|
2061
|
+
}
|
|
2062
|
+
var xs = arrObjKeys(obj, inspect2);
|
|
2063
|
+
if (indent && !singleLineValues(xs)) {
|
|
2064
|
+
return "[" + indentedJoin(xs, indent) + "]";
|
|
2065
|
+
}
|
|
2066
|
+
return "[ " + $join.call(xs, ", ") + " ]";
|
|
2067
|
+
}
|
|
2068
|
+
if (isError(obj)) {
|
|
2069
|
+
var parts = arrObjKeys(obj, inspect2);
|
|
2070
|
+
if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) {
|
|
2071
|
+
return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect2(obj.cause), parts), ", ") + " }";
|
|
2072
|
+
}
|
|
2073
|
+
if (parts.length === 0) {
|
|
2074
|
+
return "[" + String(obj) + "]";
|
|
2075
|
+
}
|
|
2076
|
+
return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }";
|
|
2077
|
+
}
|
|
2078
|
+
if (typeof obj === "object" && customInspect) {
|
|
2079
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) {
|
|
2080
|
+
return utilInspect(obj, { depth: maxDepth - depth });
|
|
2081
|
+
} else if (customInspect !== "symbol" && typeof obj.inspect === "function") {
|
|
2082
|
+
return obj.inspect();
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
if (isMap(obj)) {
|
|
2086
|
+
var mapParts = [];
|
|
2087
|
+
if (mapForEach) {
|
|
2088
|
+
mapForEach.call(obj, function(value, key) {
|
|
2089
|
+
mapParts.push(inspect2(key, obj, true) + " => " + inspect2(value, obj));
|
|
2090
|
+
});
|
|
2091
|
+
}
|
|
2092
|
+
return collectionOf("Map", mapSize.call(obj), mapParts, indent);
|
|
2093
|
+
}
|
|
2094
|
+
if (isSet(obj)) {
|
|
2095
|
+
var setParts = [];
|
|
2096
|
+
if (setForEach) {
|
|
2097
|
+
setForEach.call(obj, function(value) {
|
|
2098
|
+
setParts.push(inspect2(value, obj));
|
|
2099
|
+
});
|
|
2100
|
+
}
|
|
2101
|
+
return collectionOf("Set", setSize.call(obj), setParts, indent);
|
|
2102
|
+
}
|
|
2103
|
+
if (isWeakMap(obj)) {
|
|
2104
|
+
return weakCollectionOf("WeakMap");
|
|
2105
|
+
}
|
|
2106
|
+
if (isWeakSet(obj)) {
|
|
2107
|
+
return weakCollectionOf("WeakSet");
|
|
2108
|
+
}
|
|
2109
|
+
if (isWeakRef(obj)) {
|
|
2110
|
+
return weakCollectionOf("WeakRef");
|
|
2111
|
+
}
|
|
2112
|
+
if (isNumber(obj)) {
|
|
2113
|
+
return markBoxed(inspect2(Number(obj)));
|
|
2114
|
+
}
|
|
2115
|
+
if (isBigInt(obj)) {
|
|
2116
|
+
return markBoxed(inspect2(bigIntValueOf.call(obj)));
|
|
2117
|
+
}
|
|
2118
|
+
if (isBoolean$2(obj)) {
|
|
2119
|
+
return markBoxed(booleanValueOf.call(obj));
|
|
2120
|
+
}
|
|
2121
|
+
if (isString(obj)) {
|
|
2122
|
+
return markBoxed(inspect2(String(obj)));
|
|
2123
|
+
}
|
|
2124
|
+
if (!isDate(obj) && !isRegExp$2(obj)) {
|
|
2125
|
+
var ys = arrObjKeys(obj, inspect2);
|
|
2126
|
+
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
2127
|
+
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
2128
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
2129
|
+
var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
2130
|
+
var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
|
|
2131
|
+
if (ys.length === 0) {
|
|
2132
|
+
return tag + "{}";
|
|
2133
|
+
}
|
|
2134
|
+
if (indent) {
|
|
2135
|
+
return tag + "{" + indentedJoin(ys, indent) + "}";
|
|
2136
|
+
}
|
|
2137
|
+
return tag + "{ " + $join.call(ys, ", ") + " }";
|
|
2138
|
+
}
|
|
2139
|
+
return String(obj);
|
|
2140
|
+
};
|
|
2141
|
+
function wrapQuotes(s2, defaultStyle, opts) {
|
|
2142
|
+
var quoteChar = (opts.quoteStyle || defaultStyle) === "double" ? '"' : "'";
|
|
2143
|
+
return quoteChar + s2 + quoteChar;
|
|
2144
|
+
}
|
|
2145
|
+
function quote(s2) {
|
|
2146
|
+
return $replace.call(String(s2), /"/g, """);
|
|
2147
|
+
}
|
|
2148
|
+
function isArray$4(obj) {
|
|
2149
|
+
return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
2150
|
+
}
|
|
2151
|
+
function isDate(obj) {
|
|
2152
|
+
return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
2153
|
+
}
|
|
2154
|
+
function isRegExp$2(obj) {
|
|
2155
|
+
return toStr(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
2156
|
+
}
|
|
2157
|
+
function isError(obj) {
|
|
2158
|
+
return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
2159
|
+
}
|
|
2160
|
+
function isString(obj) {
|
|
2161
|
+
return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
2162
|
+
}
|
|
2163
|
+
function isNumber(obj) {
|
|
2164
|
+
return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
2165
|
+
}
|
|
2166
|
+
function isBoolean$2(obj) {
|
|
2167
|
+
return toStr(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
2168
|
+
}
|
|
2169
|
+
function isSymbol(obj) {
|
|
2170
|
+
if (hasShammedSymbols) {
|
|
2171
|
+
return obj && typeof obj === "object" && obj instanceof Symbol;
|
|
2172
|
+
}
|
|
2173
|
+
if (typeof obj === "symbol") {
|
|
2174
|
+
return true;
|
|
2175
|
+
}
|
|
2176
|
+
if (!obj || typeof obj !== "object" || !symToString) {
|
|
2177
|
+
return false;
|
|
2178
|
+
}
|
|
2179
|
+
try {
|
|
2180
|
+
symToString.call(obj);
|
|
2181
|
+
return true;
|
|
2182
|
+
} catch (e2) {
|
|
2183
|
+
}
|
|
2184
|
+
return false;
|
|
2185
|
+
}
|
|
2186
|
+
function isBigInt(obj) {
|
|
2187
|
+
if (!obj || typeof obj !== "object" || !bigIntValueOf) {
|
|
2188
|
+
return false;
|
|
2189
|
+
}
|
|
2190
|
+
try {
|
|
2191
|
+
bigIntValueOf.call(obj);
|
|
2192
|
+
return true;
|
|
2193
|
+
} catch (e2) {
|
|
2194
|
+
}
|
|
2195
|
+
return false;
|
|
2196
|
+
}
|
|
2197
|
+
var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
|
|
2198
|
+
return key in this;
|
|
2199
|
+
};
|
|
2200
|
+
function has$3(obj, key) {
|
|
2201
|
+
return hasOwn$1.call(obj, key);
|
|
2202
|
+
}
|
|
2203
|
+
function toStr(obj) {
|
|
2204
|
+
return objectToString.call(obj);
|
|
2205
|
+
}
|
|
2206
|
+
function nameOf(f2) {
|
|
2207
|
+
if (f2.name) {
|
|
2208
|
+
return f2.name;
|
|
2209
|
+
}
|
|
2210
|
+
var m2 = $match.call(functionToString.call(f2), /^function\s*([\w$]+)/);
|
|
2211
|
+
if (m2) {
|
|
2212
|
+
return m2[1];
|
|
2213
|
+
}
|
|
2214
|
+
return null;
|
|
2215
|
+
}
|
|
2216
|
+
function indexOf2(xs, x2) {
|
|
2217
|
+
if (xs.indexOf) {
|
|
2218
|
+
return xs.indexOf(x2);
|
|
2219
|
+
}
|
|
2220
|
+
for (var i = 0, l2 = xs.length; i < l2; i++) {
|
|
2221
|
+
if (xs[i] === x2) {
|
|
2222
|
+
return i;
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
return -1;
|
|
2226
|
+
}
|
|
2227
|
+
function isMap(x2) {
|
|
2228
|
+
if (!mapSize || !x2 || typeof x2 !== "object") {
|
|
2229
|
+
return false;
|
|
2230
|
+
}
|
|
2231
|
+
try {
|
|
2232
|
+
mapSize.call(x2);
|
|
2233
|
+
try {
|
|
2234
|
+
setSize.call(x2);
|
|
2235
|
+
} catch (s2) {
|
|
2236
|
+
return true;
|
|
2237
|
+
}
|
|
2238
|
+
return x2 instanceof Map;
|
|
2239
|
+
} catch (e2) {
|
|
2240
|
+
}
|
|
2241
|
+
return false;
|
|
2242
|
+
}
|
|
2243
|
+
function isWeakMap(x2) {
|
|
2244
|
+
if (!weakMapHas || !x2 || typeof x2 !== "object") {
|
|
2245
|
+
return false;
|
|
2246
|
+
}
|
|
2247
|
+
try {
|
|
2248
|
+
weakMapHas.call(x2, weakMapHas);
|
|
2249
|
+
try {
|
|
2250
|
+
weakSetHas.call(x2, weakSetHas);
|
|
2251
|
+
} catch (s2) {
|
|
2252
|
+
return true;
|
|
2253
|
+
}
|
|
2254
|
+
return x2 instanceof WeakMap;
|
|
2255
|
+
} catch (e2) {
|
|
2256
|
+
}
|
|
2257
|
+
return false;
|
|
2258
|
+
}
|
|
2259
|
+
function isWeakRef(x2) {
|
|
2260
|
+
if (!weakRefDeref || !x2 || typeof x2 !== "object") {
|
|
2261
|
+
return false;
|
|
2262
|
+
}
|
|
2263
|
+
try {
|
|
2264
|
+
weakRefDeref.call(x2);
|
|
2265
|
+
return true;
|
|
2266
|
+
} catch (e2) {
|
|
2267
|
+
}
|
|
2268
|
+
return false;
|
|
2269
|
+
}
|
|
2270
|
+
function isSet(x2) {
|
|
2271
|
+
if (!setSize || !x2 || typeof x2 !== "object") {
|
|
2272
|
+
return false;
|
|
2273
|
+
}
|
|
2274
|
+
try {
|
|
2275
|
+
setSize.call(x2);
|
|
2276
|
+
try {
|
|
2277
|
+
mapSize.call(x2);
|
|
2278
|
+
} catch (m2) {
|
|
2279
|
+
return true;
|
|
2280
|
+
}
|
|
2281
|
+
return x2 instanceof Set;
|
|
2282
|
+
} catch (e2) {
|
|
2283
|
+
}
|
|
2284
|
+
return false;
|
|
2285
|
+
}
|
|
2286
|
+
function isWeakSet(x2) {
|
|
2287
|
+
if (!weakSetHas || !x2 || typeof x2 !== "object") {
|
|
2288
|
+
return false;
|
|
2289
|
+
}
|
|
2290
|
+
try {
|
|
2291
|
+
weakSetHas.call(x2, weakSetHas);
|
|
2292
|
+
try {
|
|
2293
|
+
weakMapHas.call(x2, weakMapHas);
|
|
2294
|
+
} catch (s2) {
|
|
2295
|
+
return true;
|
|
2296
|
+
}
|
|
2297
|
+
return x2 instanceof WeakSet;
|
|
2298
|
+
} catch (e2) {
|
|
2299
|
+
}
|
|
2300
|
+
return false;
|
|
2301
|
+
}
|
|
2302
|
+
function isElement(x2) {
|
|
2303
|
+
if (!x2 || typeof x2 !== "object") {
|
|
2304
|
+
return false;
|
|
2305
|
+
}
|
|
2306
|
+
if (typeof HTMLElement !== "undefined" && x2 instanceof HTMLElement) {
|
|
2307
|
+
return true;
|
|
2308
|
+
}
|
|
2309
|
+
return typeof x2.nodeName === "string" && typeof x2.getAttribute === "function";
|
|
2310
|
+
}
|
|
2311
|
+
function inspectString(str2, opts) {
|
|
2312
|
+
if (str2.length > opts.maxStringLength) {
|
|
2313
|
+
var remaining = str2.length - opts.maxStringLength;
|
|
2314
|
+
var trailer = "... " + remaining + " more character" + (remaining > 1 ? "s" : "");
|
|
2315
|
+
return inspectString($slice.call(str2, 0, opts.maxStringLength), opts) + trailer;
|
|
2316
|
+
}
|
|
2317
|
+
var s2 = $replace.call($replace.call(str2, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, lowbyte);
|
|
2318
|
+
return wrapQuotes(s2, "single", opts);
|
|
2319
|
+
}
|
|
2320
|
+
function lowbyte(c2) {
|
|
2321
|
+
var n2 = c2.charCodeAt(0);
|
|
2322
|
+
var x2 = {
|
|
2323
|
+
8: "b",
|
|
2324
|
+
9: "t",
|
|
2325
|
+
10: "n",
|
|
2326
|
+
12: "f",
|
|
2327
|
+
13: "r"
|
|
2328
|
+
}[n2];
|
|
2329
|
+
if (x2) {
|
|
2330
|
+
return "\\" + x2;
|
|
2331
|
+
}
|
|
2332
|
+
return "\\x" + (n2 < 16 ? "0" : "") + $toUpperCase.call(n2.toString(16));
|
|
2333
|
+
}
|
|
2334
|
+
function markBoxed(str2) {
|
|
2335
|
+
return "Object(" + str2 + ")";
|
|
2336
|
+
}
|
|
2337
|
+
function weakCollectionOf(type2) {
|
|
2338
|
+
return type2 + " { ? }";
|
|
2339
|
+
}
|
|
2340
|
+
function collectionOf(type2, size, entries, indent) {
|
|
2341
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
|
|
2342
|
+
return type2 + " (" + size + ") {" + joinedEntries + "}";
|
|
2343
|
+
}
|
|
2344
|
+
function singleLineValues(xs) {
|
|
2345
|
+
for (var i = 0; i < xs.length; i++) {
|
|
2346
|
+
if (indexOf2(xs[i], "\n") >= 0) {
|
|
2347
|
+
return false;
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
return true;
|
|
2351
|
+
}
|
|
2352
|
+
function getIndent(opts, depth) {
|
|
2353
|
+
var baseIndent;
|
|
2354
|
+
if (opts.indent === " ") {
|
|
2355
|
+
baseIndent = " ";
|
|
2356
|
+
} else if (typeof opts.indent === "number" && opts.indent > 0) {
|
|
2357
|
+
baseIndent = $join.call(Array(opts.indent + 1), " ");
|
|
2358
|
+
} else {
|
|
2359
|
+
return null;
|
|
2360
|
+
}
|
|
2361
|
+
return {
|
|
2362
|
+
base: baseIndent,
|
|
2363
|
+
prev: $join.call(Array(depth + 1), baseIndent)
|
|
2364
|
+
};
|
|
2365
|
+
}
|
|
2366
|
+
function indentedJoin(xs, indent) {
|
|
2367
|
+
if (xs.length === 0) {
|
|
2368
|
+
return "";
|
|
2369
|
+
}
|
|
2370
|
+
var lineJoiner = "\n" + indent.prev + indent.base;
|
|
2371
|
+
return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent.prev;
|
|
2372
|
+
}
|
|
2373
|
+
function arrObjKeys(obj, inspect2) {
|
|
2374
|
+
var isArr = isArray$4(obj);
|
|
2375
|
+
var xs = [];
|
|
2376
|
+
if (isArr) {
|
|
2377
|
+
xs.length = obj.length;
|
|
2378
|
+
for (var i = 0; i < obj.length; i++) {
|
|
2379
|
+
xs[i] = has$3(obj, i) ? inspect2(obj[i], obj) : "";
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
var syms = typeof gOPS === "function" ? gOPS(obj) : [];
|
|
2383
|
+
var symMap;
|
|
2384
|
+
if (hasShammedSymbols) {
|
|
2385
|
+
symMap = {};
|
|
2386
|
+
for (var k = 0; k < syms.length; k++) {
|
|
2387
|
+
symMap["$" + syms[k]] = syms[k];
|
|
2388
|
+
}
|
|
2389
|
+
}
|
|
2390
|
+
for (var key in obj) {
|
|
2391
|
+
if (!has$3(obj, key)) {
|
|
2392
|
+
continue;
|
|
2393
|
+
}
|
|
2394
|
+
if (isArr && String(Number(key)) === key && key < obj.length) {
|
|
2395
|
+
continue;
|
|
2396
|
+
}
|
|
2397
|
+
if (hasShammedSymbols && symMap["$" + key] instanceof Symbol) {
|
|
2398
|
+
continue;
|
|
2399
|
+
} else if ($test.call(/[^\w$]/, key)) {
|
|
2400
|
+
xs.push(inspect2(key, obj) + ": " + inspect2(obj[key], obj));
|
|
2401
|
+
} else {
|
|
2402
|
+
xs.push(key + ": " + inspect2(obj[key], obj));
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
if (typeof gOPS === "function") {
|
|
2406
|
+
for (var j2 = 0; j2 < syms.length; j2++) {
|
|
2407
|
+
if (isEnumerable.call(obj, syms[j2])) {
|
|
2408
|
+
xs.push("[" + inspect2(syms[j2]) + "]: " + inspect2(obj[syms[j2]], obj));
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
}
|
|
2412
|
+
return xs;
|
|
2413
|
+
}
|
|
2414
|
+
var GetIntrinsic2 = getIntrinsic;
|
|
2415
|
+
var callBound = callBound$3;
|
|
2416
|
+
var inspect = objectInspect;
|
|
2417
|
+
var $TypeError = GetIntrinsic2("%TypeError%");
|
|
2418
|
+
var $WeakMap = GetIntrinsic2("%WeakMap%", true);
|
|
2419
|
+
var $Map = GetIntrinsic2("%Map%", true);
|
|
2420
|
+
var $weakMapGet = callBound("WeakMap.prototype.get", true);
|
|
2421
|
+
var $weakMapSet = callBound("WeakMap.prototype.set", true);
|
|
2422
|
+
var $weakMapHas = callBound("WeakMap.prototype.has", true);
|
|
2423
|
+
var $mapGet = callBound("Map.prototype.get", true);
|
|
2424
|
+
var $mapSet = callBound("Map.prototype.set", true);
|
|
2425
|
+
var $mapHas = callBound("Map.prototype.has", true);
|
|
2426
|
+
var listGetNode = function(list, key) {
|
|
2427
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
2428
|
+
if (curr.key === key) {
|
|
2429
|
+
prev.next = curr.next;
|
|
2430
|
+
curr.next = list.next;
|
|
2431
|
+
list.next = curr;
|
|
2432
|
+
return curr;
|
|
2433
|
+
}
|
|
2434
|
+
}
|
|
2435
|
+
};
|
|
2436
|
+
var listGet = function(objects, key) {
|
|
2437
|
+
var node = listGetNode(objects, key);
|
|
2438
|
+
return node && node.value;
|
|
2439
|
+
};
|
|
2440
|
+
var listSet = function(objects, key, value) {
|
|
2441
|
+
var node = listGetNode(objects, key);
|
|
2442
|
+
if (node) {
|
|
2443
|
+
node.value = value;
|
|
2444
|
+
} else {
|
|
2445
|
+
objects.next = {
|
|
2446
|
+
// eslint-disable-line no-param-reassign
|
|
2447
|
+
key,
|
|
2448
|
+
next: objects.next,
|
|
2449
|
+
value
|
|
2450
|
+
};
|
|
2451
|
+
}
|
|
2452
|
+
};
|
|
2453
|
+
var listHas = function(objects, key) {
|
|
2454
|
+
return !!listGetNode(objects, key);
|
|
2455
|
+
};
|
|
2456
|
+
var sideChannel = function getSideChannel() {
|
|
2457
|
+
var $wm;
|
|
2458
|
+
var $m;
|
|
2459
|
+
var $o;
|
|
2460
|
+
var channel = {
|
|
2461
|
+
assert: function(key) {
|
|
2462
|
+
if (!channel.has(key)) {
|
|
2463
|
+
throw new $TypeError("Side channel does not contain " + inspect(key));
|
|
2464
|
+
}
|
|
2465
|
+
},
|
|
2466
|
+
get: function(key) {
|
|
2467
|
+
if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
|
|
2468
|
+
if ($wm) {
|
|
2469
|
+
return $weakMapGet($wm, key);
|
|
2470
|
+
}
|
|
2471
|
+
} else if ($Map) {
|
|
2472
|
+
if ($m) {
|
|
2473
|
+
return $mapGet($m, key);
|
|
2474
|
+
}
|
|
2475
|
+
} else {
|
|
2476
|
+
if ($o) {
|
|
2477
|
+
return listGet($o, key);
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2480
|
+
},
|
|
2481
|
+
has: function(key) {
|
|
2482
|
+
if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
|
|
2483
|
+
if ($wm) {
|
|
2484
|
+
return $weakMapHas($wm, key);
|
|
2485
|
+
}
|
|
2486
|
+
} else if ($Map) {
|
|
2487
|
+
if ($m) {
|
|
2488
|
+
return $mapHas($m, key);
|
|
2489
|
+
}
|
|
2490
|
+
} else {
|
|
2491
|
+
if ($o) {
|
|
2492
|
+
return listHas($o, key);
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
return false;
|
|
2496
|
+
},
|
|
2497
|
+
set: function(key, value) {
|
|
2498
|
+
if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
|
|
2499
|
+
if (!$wm) {
|
|
2500
|
+
$wm = new $WeakMap();
|
|
2501
|
+
}
|
|
2502
|
+
$weakMapSet($wm, key, value);
|
|
2503
|
+
} else if ($Map) {
|
|
2504
|
+
if (!$m) {
|
|
2505
|
+
$m = new $Map();
|
|
2506
|
+
}
|
|
2507
|
+
$mapSet($m, key, value);
|
|
2508
|
+
} else {
|
|
2509
|
+
if (!$o) {
|
|
2510
|
+
$o = { key: {}, next: null };
|
|
2511
|
+
}
|
|
2512
|
+
listSet($o, key, value);
|
|
2513
|
+
}
|
|
2514
|
+
}
|
|
2515
|
+
};
|
|
2516
|
+
return channel;
|
|
2517
|
+
};
|
|
2518
|
+
var replace = String.prototype.replace;
|
|
2519
|
+
var percentTwenties = /%20/g;
|
|
2520
|
+
var Format = {
|
|
2521
|
+
RFC1738: "RFC1738",
|
|
2522
|
+
RFC3986: "RFC3986"
|
|
2523
|
+
};
|
|
2524
|
+
var formats$3 = {
|
|
2525
|
+
"default": Format.RFC3986,
|
|
2526
|
+
formatters: {
|
|
2527
|
+
RFC1738: function(value) {
|
|
2528
|
+
return replace.call(value, percentTwenties, "+");
|
|
2529
|
+
},
|
|
2530
|
+
RFC3986: function(value) {
|
|
2531
|
+
return String(value);
|
|
2532
|
+
}
|
|
2533
|
+
},
|
|
2534
|
+
RFC1738: Format.RFC1738,
|
|
2535
|
+
RFC3986: Format.RFC3986
|
|
2536
|
+
};
|
|
2537
|
+
var formats$2 = formats$3;
|
|
2538
|
+
var has$2 = Object.prototype.hasOwnProperty;
|
|
2539
|
+
var isArray$3 = Array.isArray;
|
|
2540
|
+
var hexTable = function() {
|
|
2541
|
+
var array = [];
|
|
2542
|
+
for (var i = 0; i < 256; ++i) {
|
|
2543
|
+
array.push("%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase());
|
|
2544
|
+
}
|
|
2545
|
+
return array;
|
|
2546
|
+
}();
|
|
2547
|
+
var compactQueue = function compactQueue2(queue) {
|
|
2548
|
+
while (queue.length > 1) {
|
|
2549
|
+
var item = queue.pop();
|
|
2550
|
+
var obj = item.obj[item.prop];
|
|
2551
|
+
if (isArray$3(obj)) {
|
|
2552
|
+
var compacted = [];
|
|
2553
|
+
for (var j2 = 0; j2 < obj.length; ++j2) {
|
|
2554
|
+
if (typeof obj[j2] !== "undefined") {
|
|
2555
|
+
compacted.push(obj[j2]);
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
item.obj[item.prop] = compacted;
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
};
|
|
2562
|
+
var arrayToObject = function arrayToObject2(source, options2) {
|
|
2563
|
+
var obj = options2 && options2.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
2564
|
+
for (var i = 0; i < source.length; ++i) {
|
|
2565
|
+
if (typeof source[i] !== "undefined") {
|
|
2566
|
+
obj[i] = source[i];
|
|
2567
|
+
}
|
|
2568
|
+
}
|
|
2569
|
+
return obj;
|
|
2570
|
+
};
|
|
2571
|
+
var merge$3 = function merge(target, source, options2) {
|
|
2572
|
+
if (!source) {
|
|
2573
|
+
return target;
|
|
2574
|
+
}
|
|
2575
|
+
if (typeof source !== "object") {
|
|
2576
|
+
if (isArray$3(target)) {
|
|
2577
|
+
target.push(source);
|
|
2578
|
+
} else if (target && typeof target === "object") {
|
|
2579
|
+
if (options2 && (options2.plainObjects || options2.allowPrototypes) || !has$2.call(Object.prototype, source)) {
|
|
2580
|
+
target[source] = true;
|
|
2581
|
+
}
|
|
2582
|
+
} else {
|
|
2583
|
+
return [target, source];
|
|
2584
|
+
}
|
|
2585
|
+
return target;
|
|
2586
|
+
}
|
|
2587
|
+
if (!target || typeof target !== "object") {
|
|
2588
|
+
return [target].concat(source);
|
|
2589
|
+
}
|
|
2590
|
+
var mergeTarget = target;
|
|
2591
|
+
if (isArray$3(target) && !isArray$3(source)) {
|
|
2592
|
+
mergeTarget = arrayToObject(target, options2);
|
|
2593
|
+
}
|
|
2594
|
+
if (isArray$3(target) && isArray$3(source)) {
|
|
2595
|
+
source.forEach(function(item, i) {
|
|
2596
|
+
if (has$2.call(target, i)) {
|
|
2597
|
+
var targetItem = target[i];
|
|
2598
|
+
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
2599
|
+
target[i] = merge(targetItem, item, options2);
|
|
2600
|
+
} else {
|
|
2601
|
+
target.push(item);
|
|
2602
|
+
}
|
|
2603
|
+
} else {
|
|
2604
|
+
target[i] = item;
|
|
2605
|
+
}
|
|
2606
|
+
});
|
|
2607
|
+
return target;
|
|
2608
|
+
}
|
|
2609
|
+
return Object.keys(source).reduce(function(acc, key) {
|
|
2610
|
+
var value = source[key];
|
|
2611
|
+
if (has$2.call(acc, key)) {
|
|
2612
|
+
acc[key] = merge(acc[key], value, options2);
|
|
2613
|
+
} else {
|
|
2614
|
+
acc[key] = value;
|
|
2615
|
+
}
|
|
2616
|
+
return acc;
|
|
2617
|
+
}, mergeTarget);
|
|
2618
|
+
};
|
|
2619
|
+
var assign$1 = function assignSingleSource(target, source) {
|
|
2620
|
+
return Object.keys(source).reduce(function(acc, key) {
|
|
2621
|
+
acc[key] = source[key];
|
|
2622
|
+
return acc;
|
|
2623
|
+
}, target);
|
|
2624
|
+
};
|
|
2625
|
+
var decode = function(str2, decoder, charset) {
|
|
2626
|
+
var strWithoutPlus = str2.replace(/\+/g, " ");
|
|
2627
|
+
if (charset === "iso-8859-1") {
|
|
2628
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
2629
|
+
}
|
|
2630
|
+
try {
|
|
2631
|
+
return decodeURIComponent(strWithoutPlus);
|
|
2632
|
+
} catch (e2) {
|
|
2633
|
+
return strWithoutPlus;
|
|
2634
|
+
}
|
|
2635
|
+
};
|
|
2636
|
+
var encode = function encode2(str2, defaultEncoder, charset, kind, format2) {
|
|
2637
|
+
if (str2.length === 0) {
|
|
2638
|
+
return str2;
|
|
2639
|
+
}
|
|
2640
|
+
var string2 = str2;
|
|
2641
|
+
if (typeof str2 === "symbol") {
|
|
2642
|
+
string2 = Symbol.prototype.toString.call(str2);
|
|
2643
|
+
} else if (typeof str2 !== "string") {
|
|
2644
|
+
string2 = String(str2);
|
|
2645
|
+
}
|
|
2646
|
+
if (charset === "iso-8859-1") {
|
|
2647
|
+
return escape(string2).replace(/%u[0-9a-f]{4}/gi, function($0) {
|
|
2648
|
+
return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
|
|
2649
|
+
});
|
|
2650
|
+
}
|
|
2651
|
+
var out = "";
|
|
2652
|
+
for (var i = 0; i < string2.length; ++i) {
|
|
2653
|
+
var c2 = string2.charCodeAt(i);
|
|
2654
|
+
if (c2 === 45 || c2 === 46 || c2 === 95 || c2 === 126 || c2 >= 48 && c2 <= 57 || c2 >= 65 && c2 <= 90 || c2 >= 97 && c2 <= 122 || format2 === formats$2.RFC1738 && (c2 === 40 || c2 === 41)) {
|
|
2655
|
+
out += string2.charAt(i);
|
|
2656
|
+
continue;
|
|
2657
|
+
}
|
|
2658
|
+
if (c2 < 128) {
|
|
2659
|
+
out = out + hexTable[c2];
|
|
2660
|
+
continue;
|
|
2661
|
+
}
|
|
2662
|
+
if (c2 < 2048) {
|
|
2663
|
+
out = out + (hexTable[192 | c2 >> 6] + hexTable[128 | c2 & 63]);
|
|
2664
|
+
continue;
|
|
2665
|
+
}
|
|
2666
|
+
if (c2 < 55296 || c2 >= 57344) {
|
|
2667
|
+
out = out + (hexTable[224 | c2 >> 12] + hexTable[128 | c2 >> 6 & 63] + hexTable[128 | c2 & 63]);
|
|
2668
|
+
continue;
|
|
2669
|
+
}
|
|
2670
|
+
i += 1;
|
|
2671
|
+
c2 = 65536 + ((c2 & 1023) << 10 | string2.charCodeAt(i) & 1023);
|
|
2672
|
+
out += hexTable[240 | c2 >> 18] + hexTable[128 | c2 >> 12 & 63] + hexTable[128 | c2 >> 6 & 63] + hexTable[128 | c2 & 63];
|
|
2673
|
+
}
|
|
2674
|
+
return out;
|
|
2675
|
+
};
|
|
2676
|
+
var compact = function compact2(value) {
|
|
2677
|
+
var queue = [{ obj: { o: value }, prop: "o" }];
|
|
2678
|
+
var refs2 = [];
|
|
2679
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
2680
|
+
var item = queue[i];
|
|
2681
|
+
var obj = item.obj[item.prop];
|
|
2682
|
+
var keys2 = Object.keys(obj);
|
|
2683
|
+
for (var j2 = 0; j2 < keys2.length; ++j2) {
|
|
2684
|
+
var key = keys2[j2];
|
|
2685
|
+
var val = obj[key];
|
|
2686
|
+
if (typeof val === "object" && val !== null && refs2.indexOf(val) === -1) {
|
|
2687
|
+
queue.push({ obj, prop: key });
|
|
2688
|
+
refs2.push(val);
|
|
2689
|
+
}
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2692
|
+
compactQueue(queue);
|
|
2693
|
+
return value;
|
|
2694
|
+
};
|
|
2695
|
+
var isRegExp$1 = function isRegExp(obj) {
|
|
2696
|
+
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
2697
|
+
};
|
|
2698
|
+
var isBuffer2 = function isBuffer3(obj) {
|
|
2699
|
+
if (!obj || typeof obj !== "object") {
|
|
2700
|
+
return false;
|
|
2701
|
+
}
|
|
2702
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
2703
|
+
};
|
|
2704
|
+
var combine = function combine2(a2, b2) {
|
|
2705
|
+
return [].concat(a2, b2);
|
|
2706
|
+
};
|
|
2707
|
+
var maybeMap = function maybeMap2(val, fn) {
|
|
2708
|
+
if (isArray$3(val)) {
|
|
2709
|
+
var mapped = [];
|
|
2710
|
+
for (var i = 0; i < val.length; i += 1) {
|
|
2711
|
+
mapped.push(fn(val[i]));
|
|
2712
|
+
}
|
|
2713
|
+
return mapped;
|
|
2714
|
+
}
|
|
2715
|
+
return fn(val);
|
|
2716
|
+
};
|
|
2717
|
+
var utils$2 = {
|
|
2718
|
+
arrayToObject,
|
|
2719
|
+
assign: assign$1,
|
|
2720
|
+
combine,
|
|
2721
|
+
compact,
|
|
2722
|
+
decode,
|
|
2723
|
+
encode,
|
|
2724
|
+
isBuffer: isBuffer2,
|
|
2725
|
+
isRegExp: isRegExp$1,
|
|
2726
|
+
maybeMap,
|
|
2727
|
+
merge: merge$3
|
|
2728
|
+
};
|
|
2729
|
+
var getSideChannel2 = sideChannel;
|
|
2730
|
+
var utils$1 = utils$2;
|
|
2731
|
+
var formats$1 = formats$3;
|
|
2732
|
+
var has$1 = Object.prototype.hasOwnProperty;
|
|
2733
|
+
var arrayPrefixGenerators = {
|
|
2734
|
+
brackets: function brackets(prefix) {
|
|
2735
|
+
return prefix + "[]";
|
|
2736
|
+
},
|
|
2737
|
+
comma: "comma",
|
|
2738
|
+
indices: function indices(prefix, key) {
|
|
2739
|
+
return prefix + "[" + key + "]";
|
|
2740
|
+
},
|
|
2741
|
+
repeat: function repeat(prefix) {
|
|
2742
|
+
return prefix;
|
|
2743
|
+
}
|
|
2744
|
+
};
|
|
2745
|
+
var isArray$2 = Array.isArray;
|
|
2746
|
+
var push = Array.prototype.push;
|
|
2747
|
+
var pushToArray = function(arr, valueOrArray) {
|
|
2748
|
+
push.apply(arr, isArray$2(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
2749
|
+
};
|
|
2750
|
+
var toISO = Date.prototype.toISOString;
|
|
2751
|
+
var defaultFormat = formats$1["default"];
|
|
2752
|
+
var defaults$4 = {
|
|
2753
|
+
addQueryPrefix: false,
|
|
2754
|
+
allowDots: false,
|
|
2755
|
+
charset: "utf-8",
|
|
2756
|
+
charsetSentinel: false,
|
|
2757
|
+
delimiter: "&",
|
|
2758
|
+
encode: true,
|
|
2759
|
+
encoder: utils$1.encode,
|
|
2760
|
+
encodeValuesOnly: false,
|
|
2761
|
+
format: defaultFormat,
|
|
2762
|
+
formatter: formats$1.formatters[defaultFormat],
|
|
2763
|
+
// deprecated
|
|
2764
|
+
indices: false,
|
|
2765
|
+
serializeDate: function serializeDate(date) {
|
|
2766
|
+
return toISO.call(date);
|
|
2767
|
+
},
|
|
2768
|
+
skipNulls: false,
|
|
2769
|
+
strictNullHandling: false
|
|
2770
|
+
};
|
|
2771
|
+
var isNonNullishPrimitive = function isNonNullishPrimitive2(v2) {
|
|
2772
|
+
return typeof v2 === "string" || typeof v2 === "number" || typeof v2 === "boolean" || typeof v2 === "symbol" || typeof v2 === "bigint";
|
|
2773
|
+
};
|
|
2774
|
+
var sentinel = {};
|
|
2775
|
+
var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate2, format2, formatter, encodeValuesOnly, charset, sideChannel2) {
|
|
2776
|
+
var obj = object;
|
|
2777
|
+
var tmpSc = sideChannel2;
|
|
2778
|
+
var step = 0;
|
|
2779
|
+
var findFlag = false;
|
|
2780
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
|
|
2781
|
+
var pos = tmpSc.get(object);
|
|
2782
|
+
step += 1;
|
|
2783
|
+
if (typeof pos !== "undefined") {
|
|
2784
|
+
if (pos === step) {
|
|
2785
|
+
throw new RangeError("Cyclic object value");
|
|
2786
|
+
} else {
|
|
2787
|
+
findFlag = true;
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
if (typeof tmpSc.get(sentinel) === "undefined") {
|
|
2791
|
+
step = 0;
|
|
2792
|
+
}
|
|
2793
|
+
}
|
|
2794
|
+
if (typeof filter === "function") {
|
|
2795
|
+
obj = filter(prefix, obj);
|
|
2796
|
+
} else if (obj instanceof Date) {
|
|
2797
|
+
obj = serializeDate2(obj);
|
|
2798
|
+
} else if (generateArrayPrefix === "comma" && isArray$2(obj)) {
|
|
2799
|
+
obj = utils$1.maybeMap(obj, function(value2) {
|
|
2800
|
+
if (value2 instanceof Date) {
|
|
2801
|
+
return serializeDate2(value2);
|
|
2802
|
+
}
|
|
2803
|
+
return value2;
|
|
2804
|
+
});
|
|
2805
|
+
}
|
|
2806
|
+
if (obj === null) {
|
|
2807
|
+
if (strictNullHandling) {
|
|
2808
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults$4.encoder, charset, "key", format2) : prefix;
|
|
2809
|
+
}
|
|
2810
|
+
obj = "";
|
|
2811
|
+
}
|
|
2812
|
+
if (isNonNullishPrimitive(obj) || utils$1.isBuffer(obj)) {
|
|
2813
|
+
if (encoder) {
|
|
2814
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$4.encoder, charset, "key", format2);
|
|
2815
|
+
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults$4.encoder, charset, "value", format2))];
|
|
2816
|
+
}
|
|
2817
|
+
return [formatter(prefix) + "=" + formatter(String(obj))];
|
|
2818
|
+
}
|
|
2819
|
+
var values = [];
|
|
2820
|
+
if (typeof obj === "undefined") {
|
|
2821
|
+
return values;
|
|
2822
|
+
}
|
|
2823
|
+
var objKeys;
|
|
2824
|
+
if (generateArrayPrefix === "comma" && isArray$2(obj)) {
|
|
2825
|
+
if (encodeValuesOnly && encoder) {
|
|
2826
|
+
obj = utils$1.maybeMap(obj, encoder);
|
|
2827
|
+
}
|
|
2828
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
|
|
2829
|
+
} else if (isArray$2(filter)) {
|
|
2830
|
+
objKeys = filter;
|
|
2831
|
+
} else {
|
|
2832
|
+
var keys2 = Object.keys(obj);
|
|
2833
|
+
objKeys = sort ? keys2.sort(sort) : keys2;
|
|
2834
|
+
}
|
|
2835
|
+
var adjustedPrefix = commaRoundTrip && isArray$2(obj) && obj.length === 1 ? prefix + "[]" : prefix;
|
|
2836
|
+
for (var j2 = 0; j2 < objKeys.length; ++j2) {
|
|
2837
|
+
var key = objKeys[j2];
|
|
2838
|
+
var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
2839
|
+
if (skipNulls && value === null) {
|
|
2840
|
+
continue;
|
|
2841
|
+
}
|
|
2842
|
+
var keyPrefix = isArray$2(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key : "[" + key + "]");
|
|
2843
|
+
sideChannel2.set(object, step);
|
|
2844
|
+
var valueSideChannel = getSideChannel2();
|
|
2845
|
+
valueSideChannel.set(sentinel, sideChannel2);
|
|
2846
|
+
pushToArray(values, stringify(
|
|
2847
|
+
value,
|
|
2848
|
+
keyPrefix,
|
|
2849
|
+
generateArrayPrefix,
|
|
2850
|
+
commaRoundTrip,
|
|
2851
|
+
strictNullHandling,
|
|
2852
|
+
skipNulls,
|
|
2853
|
+
generateArrayPrefix === "comma" && encodeValuesOnly && isArray$2(obj) ? null : encoder,
|
|
2854
|
+
filter,
|
|
2855
|
+
sort,
|
|
2856
|
+
allowDots,
|
|
2857
|
+
serializeDate2,
|
|
2858
|
+
format2,
|
|
2859
|
+
formatter,
|
|
2860
|
+
encodeValuesOnly,
|
|
2861
|
+
charset,
|
|
2862
|
+
valueSideChannel
|
|
2863
|
+
));
|
|
2864
|
+
}
|
|
2865
|
+
return values;
|
|
2866
|
+
};
|
|
2867
|
+
var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
|
|
2868
|
+
if (!opts) {
|
|
2869
|
+
return defaults$4;
|
|
2870
|
+
}
|
|
2871
|
+
if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
|
|
2872
|
+
throw new TypeError("Encoder has to be a function.");
|
|
2873
|
+
}
|
|
2874
|
+
var charset = opts.charset || defaults$4.charset;
|
|
2875
|
+
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
2876
|
+
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
2877
|
+
}
|
|
2878
|
+
var format2 = formats$1["default"];
|
|
2879
|
+
if (typeof opts.format !== "undefined") {
|
|
2880
|
+
if (!has$1.call(formats$1.formatters, opts.format)) {
|
|
2881
|
+
throw new TypeError("Unknown format option provided.");
|
|
2882
|
+
}
|
|
2883
|
+
format2 = opts.format;
|
|
2884
|
+
}
|
|
2885
|
+
var formatter = formats$1.formatters[format2];
|
|
2886
|
+
var filter = defaults$4.filter;
|
|
2887
|
+
if (typeof opts.filter === "function" || isArray$2(opts.filter)) {
|
|
2888
|
+
filter = opts.filter;
|
|
2889
|
+
}
|
|
2890
|
+
return {
|
|
2891
|
+
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults$4.addQueryPrefix,
|
|
2892
|
+
allowDots: typeof opts.allowDots === "undefined" ? defaults$4.allowDots : !!opts.allowDots,
|
|
2893
|
+
charset,
|
|
2894
|
+
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$4.charsetSentinel,
|
|
2895
|
+
delimiter: typeof opts.delimiter === "undefined" ? defaults$4.delimiter : opts.delimiter,
|
|
2896
|
+
encode: typeof opts.encode === "boolean" ? opts.encode : defaults$4.encode,
|
|
2897
|
+
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults$4.encoder,
|
|
2898
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults$4.encodeValuesOnly,
|
|
2899
|
+
filter,
|
|
2900
|
+
format: format2,
|
|
2901
|
+
formatter,
|
|
2902
|
+
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults$4.serializeDate,
|
|
2903
|
+
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults$4.skipNulls,
|
|
2904
|
+
sort: typeof opts.sort === "function" ? opts.sort : null,
|
|
2905
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$4.strictNullHandling
|
|
2906
|
+
};
|
|
2907
|
+
};
|
|
2908
|
+
var stringify_1 = function(object, opts) {
|
|
2909
|
+
var obj = object;
|
|
2910
|
+
var options2 = normalizeStringifyOptions(opts);
|
|
2911
|
+
var objKeys;
|
|
2912
|
+
var filter;
|
|
2913
|
+
if (typeof options2.filter === "function") {
|
|
2914
|
+
filter = options2.filter;
|
|
2915
|
+
obj = filter("", obj);
|
|
2916
|
+
} else if (isArray$2(options2.filter)) {
|
|
2917
|
+
filter = options2.filter;
|
|
2918
|
+
objKeys = filter;
|
|
2919
|
+
}
|
|
2920
|
+
var keys2 = [];
|
|
2921
|
+
if (typeof obj !== "object" || obj === null) {
|
|
2922
|
+
return "";
|
|
2923
|
+
}
|
|
2924
|
+
var arrayFormat;
|
|
2925
|
+
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
|
2926
|
+
arrayFormat = opts.arrayFormat;
|
|
2927
|
+
} else if (opts && "indices" in opts) {
|
|
2928
|
+
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
2929
|
+
} else {
|
|
2930
|
+
arrayFormat = "indices";
|
|
2931
|
+
}
|
|
2932
|
+
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
2933
|
+
if (opts && "commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
2934
|
+
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
2935
|
+
}
|
|
2936
|
+
var commaRoundTrip = generateArrayPrefix === "comma" && opts && opts.commaRoundTrip;
|
|
2937
|
+
if (!objKeys) {
|
|
2938
|
+
objKeys = Object.keys(obj);
|
|
2939
|
+
}
|
|
2940
|
+
if (options2.sort) {
|
|
2941
|
+
objKeys.sort(options2.sort);
|
|
2942
|
+
}
|
|
2943
|
+
var sideChannel2 = getSideChannel2();
|
|
2944
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
|
2945
|
+
var key = objKeys[i];
|
|
2946
|
+
if (options2.skipNulls && obj[key] === null) {
|
|
2947
|
+
continue;
|
|
2948
|
+
}
|
|
2949
|
+
pushToArray(keys2, stringify$1(
|
|
2950
|
+
obj[key],
|
|
2951
|
+
key,
|
|
2952
|
+
generateArrayPrefix,
|
|
2953
|
+
commaRoundTrip,
|
|
2954
|
+
options2.strictNullHandling,
|
|
2955
|
+
options2.skipNulls,
|
|
2956
|
+
options2.encode ? options2.encoder : null,
|
|
2957
|
+
options2.filter,
|
|
2958
|
+
options2.sort,
|
|
2959
|
+
options2.allowDots,
|
|
2960
|
+
options2.serializeDate,
|
|
2961
|
+
options2.format,
|
|
2962
|
+
options2.formatter,
|
|
2963
|
+
options2.encodeValuesOnly,
|
|
2964
|
+
options2.charset,
|
|
2965
|
+
sideChannel2
|
|
2966
|
+
));
|
|
2967
|
+
}
|
|
2968
|
+
var joined = keys2.join(options2.delimiter);
|
|
2969
|
+
var prefix = options2.addQueryPrefix === true ? "?" : "";
|
|
2970
|
+
if (options2.charsetSentinel) {
|
|
2971
|
+
if (options2.charset === "iso-8859-1") {
|
|
2972
|
+
prefix += "utf8=%26%2310003%3B&";
|
|
2973
|
+
} else {
|
|
2974
|
+
prefix += "utf8=%E2%9C%93&";
|
|
2975
|
+
}
|
|
2976
|
+
}
|
|
2977
|
+
return joined.length > 0 ? prefix + joined : "";
|
|
2978
|
+
};
|
|
2979
|
+
var utils = utils$2;
|
|
2980
|
+
var has = Object.prototype.hasOwnProperty;
|
|
2981
|
+
var isArray$1 = Array.isArray;
|
|
2982
|
+
var defaults$3 = {
|
|
2983
|
+
allowDots: false,
|
|
2984
|
+
allowPrototypes: false,
|
|
2985
|
+
allowSparse: false,
|
|
2986
|
+
arrayLimit: 20,
|
|
2987
|
+
charset: "utf-8",
|
|
2988
|
+
charsetSentinel: false,
|
|
2989
|
+
comma: false,
|
|
2990
|
+
decoder: utils.decode,
|
|
2991
|
+
delimiter: "&",
|
|
2992
|
+
depth: 5,
|
|
2993
|
+
ignoreQueryPrefix: false,
|
|
2994
|
+
interpretNumericEntities: false,
|
|
2995
|
+
parameterLimit: 1e3,
|
|
2996
|
+
parseArrays: true,
|
|
2997
|
+
plainObjects: false,
|
|
2998
|
+
strictNullHandling: false
|
|
2999
|
+
};
|
|
3000
|
+
var interpretNumericEntities = function(str2) {
|
|
3001
|
+
return str2.replace(/&#(\d+);/g, function($0, numberStr) {
|
|
3002
|
+
return String.fromCharCode(parseInt(numberStr, 10));
|
|
3003
|
+
});
|
|
3004
|
+
};
|
|
3005
|
+
var parseArrayValue = function(val, options2) {
|
|
3006
|
+
if (val && typeof val === "string" && options2.comma && val.indexOf(",") > -1) {
|
|
3007
|
+
return val.split(",");
|
|
3008
|
+
}
|
|
3009
|
+
return val;
|
|
3010
|
+
};
|
|
3011
|
+
var isoSentinel = "utf8=%26%2310003%3B";
|
|
3012
|
+
var charsetSentinel = "utf8=%E2%9C%93";
|
|
3013
|
+
var parseValues = function parseQueryStringValues(str2, options2) {
|
|
3014
|
+
var obj = { __proto__: null };
|
|
3015
|
+
var cleanStr = options2.ignoreQueryPrefix ? str2.replace(/^\?/, "") : str2;
|
|
3016
|
+
var limit = options2.parameterLimit === Infinity ? void 0 : options2.parameterLimit;
|
|
3017
|
+
var parts = cleanStr.split(options2.delimiter, limit);
|
|
3018
|
+
var skipIndex = -1;
|
|
3019
|
+
var i;
|
|
3020
|
+
var charset = options2.charset;
|
|
3021
|
+
if (options2.charsetSentinel) {
|
|
3022
|
+
for (i = 0; i < parts.length; ++i) {
|
|
3023
|
+
if (parts[i].indexOf("utf8=") === 0) {
|
|
3024
|
+
if (parts[i] === charsetSentinel) {
|
|
3025
|
+
charset = "utf-8";
|
|
3026
|
+
} else if (parts[i] === isoSentinel) {
|
|
3027
|
+
charset = "iso-8859-1";
|
|
3028
|
+
}
|
|
3029
|
+
skipIndex = i;
|
|
3030
|
+
i = parts.length;
|
|
3031
|
+
}
|
|
3032
|
+
}
|
|
3033
|
+
}
|
|
3034
|
+
for (i = 0; i < parts.length; ++i) {
|
|
3035
|
+
if (i === skipIndex) {
|
|
3036
|
+
continue;
|
|
3037
|
+
}
|
|
3038
|
+
var part = parts[i];
|
|
3039
|
+
var bracketEqualsPos = part.indexOf("]=");
|
|
3040
|
+
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
3041
|
+
var key, val;
|
|
3042
|
+
if (pos === -1) {
|
|
3043
|
+
key = options2.decoder(part, defaults$3.decoder, charset, "key");
|
|
3044
|
+
val = options2.strictNullHandling ? null : "";
|
|
3045
|
+
} else {
|
|
3046
|
+
key = options2.decoder(part.slice(0, pos), defaults$3.decoder, charset, "key");
|
|
3047
|
+
val = utils.maybeMap(
|
|
3048
|
+
parseArrayValue(part.slice(pos + 1), options2),
|
|
3049
|
+
function(encodedVal) {
|
|
3050
|
+
return options2.decoder(encodedVal, defaults$3.decoder, charset, "value");
|
|
3051
|
+
}
|
|
3052
|
+
);
|
|
3053
|
+
}
|
|
3054
|
+
if (val && options2.interpretNumericEntities && charset === "iso-8859-1") {
|
|
3055
|
+
val = interpretNumericEntities(val);
|
|
3056
|
+
}
|
|
3057
|
+
if (part.indexOf("[]=") > -1) {
|
|
3058
|
+
val = isArray$1(val) ? [val] : val;
|
|
3059
|
+
}
|
|
3060
|
+
if (has.call(obj, key)) {
|
|
3061
|
+
obj[key] = utils.combine(obj[key], val);
|
|
3062
|
+
} else {
|
|
3063
|
+
obj[key] = val;
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3066
|
+
return obj;
|
|
3067
|
+
};
|
|
3068
|
+
var parseObject = function(chain, val, options2, valuesParsed) {
|
|
3069
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options2);
|
|
3070
|
+
for (var i = chain.length - 1; i >= 0; --i) {
|
|
3071
|
+
var obj;
|
|
3072
|
+
var root = chain[i];
|
|
3073
|
+
if (root === "[]" && options2.parseArrays) {
|
|
3074
|
+
obj = [].concat(leaf);
|
|
3075
|
+
} else {
|
|
3076
|
+
obj = options2.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
3077
|
+
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
3078
|
+
var index = parseInt(cleanRoot, 10);
|
|
3079
|
+
if (!options2.parseArrays && cleanRoot === "") {
|
|
3080
|
+
obj = { 0: leaf };
|
|
3081
|
+
} else if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && (options2.parseArrays && index <= options2.arrayLimit)) {
|
|
3082
|
+
obj = [];
|
|
3083
|
+
obj[index] = leaf;
|
|
3084
|
+
} else if (cleanRoot !== "__proto__") {
|
|
3085
|
+
obj[cleanRoot] = leaf;
|
|
3086
|
+
}
|
|
3087
|
+
}
|
|
3088
|
+
leaf = obj;
|
|
3089
|
+
}
|
|
3090
|
+
return leaf;
|
|
3091
|
+
};
|
|
3092
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options2, valuesParsed) {
|
|
3093
|
+
if (!givenKey) {
|
|
3094
|
+
return;
|
|
3095
|
+
}
|
|
3096
|
+
var key = options2.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
|
|
3097
|
+
var brackets2 = /(\[[^[\]]*])/;
|
|
3098
|
+
var child = /(\[[^[\]]*])/g;
|
|
3099
|
+
var segment = options2.depth > 0 && brackets2.exec(key);
|
|
3100
|
+
var parent = segment ? key.slice(0, segment.index) : key;
|
|
3101
|
+
var keys2 = [];
|
|
3102
|
+
if (parent) {
|
|
3103
|
+
if (!options2.plainObjects && has.call(Object.prototype, parent)) {
|
|
3104
|
+
if (!options2.allowPrototypes) {
|
|
3105
|
+
return;
|
|
3106
|
+
}
|
|
3107
|
+
}
|
|
3108
|
+
keys2.push(parent);
|
|
3109
|
+
}
|
|
3110
|
+
var i = 0;
|
|
3111
|
+
while (options2.depth > 0 && (segment = child.exec(key)) !== null && i < options2.depth) {
|
|
3112
|
+
i += 1;
|
|
3113
|
+
if (!options2.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
3114
|
+
if (!options2.allowPrototypes) {
|
|
3115
|
+
return;
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3118
|
+
keys2.push(segment[1]);
|
|
3119
|
+
}
|
|
3120
|
+
if (segment) {
|
|
3121
|
+
keys2.push("[" + key.slice(segment.index) + "]");
|
|
3122
|
+
}
|
|
3123
|
+
return parseObject(keys2, val, options2, valuesParsed);
|
|
3124
|
+
};
|
|
3125
|
+
var normalizeParseOptions = function normalizeParseOptions2(opts) {
|
|
3126
|
+
if (!opts) {
|
|
3127
|
+
return defaults$3;
|
|
3128
|
+
}
|
|
3129
|
+
if (opts.decoder !== null && opts.decoder !== void 0 && typeof opts.decoder !== "function") {
|
|
3130
|
+
throw new TypeError("Decoder has to be a function.");
|
|
3131
|
+
}
|
|
3132
|
+
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
3133
|
+
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
3134
|
+
}
|
|
3135
|
+
var charset = typeof opts.charset === "undefined" ? defaults$3.charset : opts.charset;
|
|
3136
|
+
return {
|
|
3137
|
+
allowDots: typeof opts.allowDots === "undefined" ? defaults$3.allowDots : !!opts.allowDots,
|
|
3138
|
+
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults$3.allowPrototypes,
|
|
3139
|
+
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults$3.allowSparse,
|
|
3140
|
+
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults$3.arrayLimit,
|
|
3141
|
+
charset,
|
|
3142
|
+
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$3.charsetSentinel,
|
|
3143
|
+
comma: typeof opts.comma === "boolean" ? opts.comma : defaults$3.comma,
|
|
3144
|
+
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults$3.decoder,
|
|
3145
|
+
delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults$3.delimiter,
|
|
3146
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
3147
|
+
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults$3.depth,
|
|
3148
|
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
3149
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults$3.interpretNumericEntities,
|
|
3150
|
+
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults$3.parameterLimit,
|
|
3151
|
+
parseArrays: opts.parseArrays !== false,
|
|
3152
|
+
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults$3.plainObjects,
|
|
3153
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$3.strictNullHandling
|
|
3154
|
+
};
|
|
3155
|
+
};
|
|
3156
|
+
var parse$3 = function(str2, opts) {
|
|
3157
|
+
var options2 = normalizeParseOptions(opts);
|
|
3158
|
+
if (str2 === "" || str2 === null || typeof str2 === "undefined") {
|
|
3159
|
+
return options2.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
3160
|
+
}
|
|
3161
|
+
var tempObj = typeof str2 === "string" ? parseValues(str2, options2) : str2;
|
|
3162
|
+
var obj = options2.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
3163
|
+
var keys2 = Object.keys(tempObj);
|
|
3164
|
+
for (var i = 0; i < keys2.length; ++i) {
|
|
3165
|
+
var key = keys2[i];
|
|
3166
|
+
var newObj = parseKeys(key, tempObj[key], options2, typeof str2 === "string");
|
|
3167
|
+
obj = utils.merge(obj, newObj, options2);
|
|
3168
|
+
}
|
|
3169
|
+
if (options2.allowSparse === true) {
|
|
3170
|
+
return obj;
|
|
3171
|
+
}
|
|
3172
|
+
return utils.compact(obj);
|
|
3173
|
+
};
|
|
3174
|
+
var stringify2 = stringify_1;
|
|
3175
|
+
var parse$2 = parse$3;
|
|
3176
|
+
var formats = formats$3;
|
|
3177
|
+
var lib$4 = {
|
|
3178
|
+
formats,
|
|
3179
|
+
parse: parse$2,
|
|
3180
|
+
stringify: stringify2
|
|
3181
|
+
};
|
|
3182
|
+
var punycode = punycodeExports;
|
|
3183
|
+
function Url() {
|
|
3184
|
+
this.protocol = null;
|
|
3185
|
+
this.slashes = null;
|
|
3186
|
+
this.auth = null;
|
|
3187
|
+
this.host = null;
|
|
3188
|
+
this.port = null;
|
|
3189
|
+
this.hostname = null;
|
|
3190
|
+
this.hash = null;
|
|
3191
|
+
this.search = null;
|
|
3192
|
+
this.query = null;
|
|
3193
|
+
this.pathname = null;
|
|
3194
|
+
this.path = null;
|
|
3195
|
+
this.href = null;
|
|
3196
|
+
}
|
|
3197
|
+
var protocolPattern = /^([a-z0-9.+-]+:)/i, portPattern = /:[0-9]*$/, simplePathPattern = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, delims = [
|
|
3198
|
+
"<",
|
|
3199
|
+
">",
|
|
3200
|
+
'"',
|
|
3201
|
+
"`",
|
|
3202
|
+
" ",
|
|
3203
|
+
"\r",
|
|
3204
|
+
"\n",
|
|
3205
|
+
" "
|
|
3206
|
+
], unwise = [
|
|
3207
|
+
"{",
|
|
3208
|
+
"}",
|
|
3209
|
+
"|",
|
|
3210
|
+
"\\",
|
|
3211
|
+
"^",
|
|
3212
|
+
"`"
|
|
3213
|
+
].concat(delims), autoEscape = ["'"].concat(unwise), nonHostChars = [
|
|
3214
|
+
"%",
|
|
3215
|
+
"/",
|
|
3216
|
+
"?",
|
|
3217
|
+
";",
|
|
3218
|
+
"#"
|
|
3219
|
+
].concat(autoEscape), hostEndingChars = [
|
|
3220
|
+
"/",
|
|
3221
|
+
"?",
|
|
3222
|
+
"#"
|
|
3223
|
+
], hostnameMaxLen = 255, hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/, hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, unsafeProtocol = {
|
|
3224
|
+
javascript: true,
|
|
3225
|
+
"javascript:": true
|
|
3226
|
+
}, hostlessProtocol = {
|
|
3227
|
+
javascript: true,
|
|
3228
|
+
"javascript:": true
|
|
3229
|
+
}, slashedProtocol = {
|
|
3230
|
+
http: true,
|
|
3231
|
+
https: true,
|
|
3232
|
+
ftp: true,
|
|
3233
|
+
gopher: true,
|
|
3234
|
+
file: true,
|
|
3235
|
+
"http:": true,
|
|
3236
|
+
"https:": true,
|
|
3237
|
+
"ftp:": true,
|
|
3238
|
+
"gopher:": true,
|
|
3239
|
+
"file:": true
|
|
3240
|
+
}, querystring = lib$4;
|
|
3241
|
+
function urlParse(url2, parseQueryString, slashesDenoteHost) {
|
|
3242
|
+
if (url2 && typeof url2 === "object" && url2 instanceof Url) {
|
|
3243
|
+
return url2;
|
|
3244
|
+
}
|
|
3245
|
+
var u2 = new Url();
|
|
3246
|
+
u2.parse(url2, parseQueryString, slashesDenoteHost);
|
|
3247
|
+
return u2;
|
|
3248
|
+
}
|
|
3249
|
+
Url.prototype.parse = function(url2, parseQueryString, slashesDenoteHost) {
|
|
3250
|
+
if (typeof url2 !== "string") {
|
|
3251
|
+
throw new TypeError("Parameter 'url' must be a string, not " + typeof url2);
|
|
3252
|
+
}
|
|
3253
|
+
var queryIndex = url2.indexOf("?"), splitter = queryIndex !== -1 && queryIndex < url2.indexOf("#") ? "?" : "#", uSplit = url2.split(splitter), slashRegex = /\\/g;
|
|
3254
|
+
uSplit[0] = uSplit[0].replace(slashRegex, "/");
|
|
3255
|
+
url2 = uSplit.join(splitter);
|
|
3256
|
+
var rest = url2;
|
|
3257
|
+
rest = rest.trim();
|
|
3258
|
+
if (!slashesDenoteHost && url2.split("#").length === 1) {
|
|
3259
|
+
var simplePath = simplePathPattern.exec(rest);
|
|
3260
|
+
if (simplePath) {
|
|
3261
|
+
this.path = rest;
|
|
3262
|
+
this.href = rest;
|
|
3263
|
+
this.pathname = simplePath[1];
|
|
3264
|
+
if (simplePath[2]) {
|
|
3265
|
+
this.search = simplePath[2];
|
|
3266
|
+
if (parseQueryString) {
|
|
3267
|
+
this.query = querystring.parse(this.search.substr(1));
|
|
3268
|
+
} else {
|
|
3269
|
+
this.query = this.search.substr(1);
|
|
3270
|
+
}
|
|
3271
|
+
} else if (parseQueryString) {
|
|
3272
|
+
this.search = "";
|
|
3273
|
+
this.query = {};
|
|
3274
|
+
}
|
|
3275
|
+
return this;
|
|
3276
|
+
}
|
|
3277
|
+
}
|
|
3278
|
+
var proto = protocolPattern.exec(rest);
|
|
3279
|
+
if (proto) {
|
|
3280
|
+
proto = proto[0];
|
|
3281
|
+
var lowerProto = proto.toLowerCase();
|
|
3282
|
+
this.protocol = lowerProto;
|
|
3283
|
+
rest = rest.substr(proto.length);
|
|
3284
|
+
}
|
|
3285
|
+
if (slashesDenoteHost || proto || rest.match(/^\/\/[^@/]+@[^@/]+/)) {
|
|
3286
|
+
var slashes = rest.substr(0, 2) === "//";
|
|
3287
|
+
if (slashes && !(proto && hostlessProtocol[proto])) {
|
|
3288
|
+
rest = rest.substr(2);
|
|
3289
|
+
this.slashes = true;
|
|
3290
|
+
}
|
|
3291
|
+
}
|
|
3292
|
+
if (!hostlessProtocol[proto] && (slashes || proto && !slashedProtocol[proto])) {
|
|
3293
|
+
var hostEnd = -1;
|
|
3294
|
+
for (var i = 0; i < hostEndingChars.length; i++) {
|
|
3295
|
+
var hec = rest.indexOf(hostEndingChars[i]);
|
|
3296
|
+
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) {
|
|
3297
|
+
hostEnd = hec;
|
|
3298
|
+
}
|
|
3299
|
+
}
|
|
3300
|
+
var auth, atSign;
|
|
3301
|
+
if (hostEnd === -1) {
|
|
3302
|
+
atSign = rest.lastIndexOf("@");
|
|
3303
|
+
} else {
|
|
3304
|
+
atSign = rest.lastIndexOf("@", hostEnd);
|
|
3305
|
+
}
|
|
3306
|
+
if (atSign !== -1) {
|
|
3307
|
+
auth = rest.slice(0, atSign);
|
|
3308
|
+
rest = rest.slice(atSign + 1);
|
|
3309
|
+
this.auth = decodeURIComponent(auth);
|
|
3310
|
+
}
|
|
3311
|
+
hostEnd = -1;
|
|
3312
|
+
for (var i = 0; i < nonHostChars.length; i++) {
|
|
3313
|
+
var hec = rest.indexOf(nonHostChars[i]);
|
|
3314
|
+
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) {
|
|
3315
|
+
hostEnd = hec;
|
|
3316
|
+
}
|
|
3317
|
+
}
|
|
3318
|
+
if (hostEnd === -1) {
|
|
3319
|
+
hostEnd = rest.length;
|
|
3320
|
+
}
|
|
3321
|
+
this.host = rest.slice(0, hostEnd);
|
|
3322
|
+
rest = rest.slice(hostEnd);
|
|
3323
|
+
this.parseHost();
|
|
3324
|
+
this.hostname = this.hostname || "";
|
|
3325
|
+
var ipv6Hostname = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
3326
|
+
if (!ipv6Hostname) {
|
|
3327
|
+
var hostparts = this.hostname.split(/\./);
|
|
3328
|
+
for (var i = 0, l2 = hostparts.length; i < l2; i++) {
|
|
3329
|
+
var part = hostparts[i];
|
|
3330
|
+
if (!part) {
|
|
3331
|
+
continue;
|
|
3332
|
+
}
|
|
3333
|
+
if (!part.match(hostnamePartPattern)) {
|
|
3334
|
+
var newpart = "";
|
|
3335
|
+
for (var j2 = 0, k = part.length; j2 < k; j2++) {
|
|
3336
|
+
if (part.charCodeAt(j2) > 127) {
|
|
3337
|
+
newpart += "x";
|
|
3338
|
+
} else {
|
|
3339
|
+
newpart += part[j2];
|
|
3340
|
+
}
|
|
3341
|
+
}
|
|
3342
|
+
if (!newpart.match(hostnamePartPattern)) {
|
|
3343
|
+
var validParts = hostparts.slice(0, i);
|
|
3344
|
+
var notHost = hostparts.slice(i + 1);
|
|
3345
|
+
var bit = part.match(hostnamePartStart);
|
|
3346
|
+
if (bit) {
|
|
3347
|
+
validParts.push(bit[1]);
|
|
3348
|
+
notHost.unshift(bit[2]);
|
|
3349
|
+
}
|
|
3350
|
+
if (notHost.length) {
|
|
3351
|
+
rest = "/" + notHost.join(".") + rest;
|
|
3352
|
+
}
|
|
3353
|
+
this.hostname = validParts.join(".");
|
|
3354
|
+
break;
|
|
3355
|
+
}
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3359
|
+
if (this.hostname.length > hostnameMaxLen) {
|
|
3360
|
+
this.hostname = "";
|
|
3361
|
+
} else {
|
|
3362
|
+
this.hostname = this.hostname.toLowerCase();
|
|
3363
|
+
}
|
|
3364
|
+
if (!ipv6Hostname) {
|
|
3365
|
+
this.hostname = punycode.toASCII(this.hostname);
|
|
3366
|
+
}
|
|
3367
|
+
var p2 = this.port ? ":" + this.port : "";
|
|
3368
|
+
var h2 = this.hostname || "";
|
|
3369
|
+
this.host = h2 + p2;
|
|
3370
|
+
this.href += this.host;
|
|
3371
|
+
if (ipv6Hostname) {
|
|
3372
|
+
this.hostname = this.hostname.substr(1, this.hostname.length - 2);
|
|
3373
|
+
if (rest[0] !== "/") {
|
|
3374
|
+
rest = "/" + rest;
|
|
3375
|
+
}
|
|
3376
|
+
}
|
|
3377
|
+
}
|
|
3378
|
+
if (!unsafeProtocol[lowerProto]) {
|
|
3379
|
+
for (var i = 0, l2 = autoEscape.length; i < l2; i++) {
|
|
3380
|
+
var ae = autoEscape[i];
|
|
3381
|
+
if (rest.indexOf(ae) === -1) {
|
|
3382
|
+
continue;
|
|
3383
|
+
}
|
|
3384
|
+
var esc = encodeURIComponent(ae);
|
|
3385
|
+
if (esc === ae) {
|
|
3386
|
+
esc = escape(ae);
|
|
3387
|
+
}
|
|
3388
|
+
rest = rest.split(ae).join(esc);
|
|
3389
|
+
}
|
|
3390
|
+
}
|
|
3391
|
+
var hash = rest.indexOf("#");
|
|
3392
|
+
if (hash !== -1) {
|
|
3393
|
+
this.hash = rest.substr(hash);
|
|
3394
|
+
rest = rest.slice(0, hash);
|
|
3395
|
+
}
|
|
3396
|
+
var qm = rest.indexOf("?");
|
|
3397
|
+
if (qm !== -1) {
|
|
3398
|
+
this.search = rest.substr(qm);
|
|
3399
|
+
this.query = rest.substr(qm + 1);
|
|
3400
|
+
if (parseQueryString) {
|
|
3401
|
+
this.query = querystring.parse(this.query);
|
|
3402
|
+
}
|
|
3403
|
+
rest = rest.slice(0, qm);
|
|
3404
|
+
} else if (parseQueryString) {
|
|
3405
|
+
this.search = "";
|
|
3406
|
+
this.query = {};
|
|
3407
|
+
}
|
|
3408
|
+
if (rest) {
|
|
3409
|
+
this.pathname = rest;
|
|
3410
|
+
}
|
|
3411
|
+
if (slashedProtocol[lowerProto] && this.hostname && !this.pathname) {
|
|
3412
|
+
this.pathname = "/";
|
|
3413
|
+
}
|
|
3414
|
+
if (this.pathname || this.search) {
|
|
3415
|
+
var p2 = this.pathname || "";
|
|
3416
|
+
var s2 = this.search || "";
|
|
3417
|
+
this.path = p2 + s2;
|
|
3418
|
+
}
|
|
3419
|
+
this.href = this.format();
|
|
3420
|
+
return this;
|
|
3421
|
+
};
|
|
3422
|
+
function urlFormat(obj) {
|
|
3423
|
+
if (typeof obj === "string") {
|
|
3424
|
+
obj = urlParse(obj);
|
|
3425
|
+
}
|
|
3426
|
+
if (!(obj instanceof Url)) {
|
|
3427
|
+
return Url.prototype.format.call(obj);
|
|
3428
|
+
}
|
|
3429
|
+
return obj.format();
|
|
3430
|
+
}
|
|
3431
|
+
Url.prototype.format = function() {
|
|
3432
|
+
var auth = this.auth || "";
|
|
3433
|
+
if (auth) {
|
|
3434
|
+
auth = encodeURIComponent(auth);
|
|
3435
|
+
auth = auth.replace(/%3A/i, ":");
|
|
3436
|
+
auth += "@";
|
|
3437
|
+
}
|
|
3438
|
+
var protocol = this.protocol || "", pathname = this.pathname || "", hash = this.hash || "", host = false, query = "";
|
|
3439
|
+
if (this.host) {
|
|
3440
|
+
host = auth + this.host;
|
|
3441
|
+
} else if (this.hostname) {
|
|
3442
|
+
host = auth + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]");
|
|
3443
|
+
if (this.port) {
|
|
3444
|
+
host += ":" + this.port;
|
|
3445
|
+
}
|
|
3446
|
+
}
|
|
3447
|
+
if (this.query && typeof this.query === "object" && Object.keys(this.query).length) {
|
|
3448
|
+
query = querystring.stringify(this.query);
|
|
3449
|
+
}
|
|
3450
|
+
var search = this.search || query && "?" + query || "";
|
|
3451
|
+
if (protocol && protocol.substr(-1) !== ":") {
|
|
3452
|
+
protocol += ":";
|
|
3453
|
+
}
|
|
3454
|
+
if (this.slashes || (!protocol || slashedProtocol[protocol]) && host !== false) {
|
|
3455
|
+
host = "//" + (host || "");
|
|
3456
|
+
if (pathname && pathname.charAt(0) !== "/") {
|
|
3457
|
+
pathname = "/" + pathname;
|
|
3458
|
+
}
|
|
3459
|
+
} else if (!host) {
|
|
3460
|
+
host = "";
|
|
3461
|
+
}
|
|
3462
|
+
if (hash && hash.charAt(0) !== "#") {
|
|
3463
|
+
hash = "#" + hash;
|
|
3464
|
+
}
|
|
3465
|
+
if (search && search.charAt(0) !== "?") {
|
|
3466
|
+
search = "?" + search;
|
|
3467
|
+
}
|
|
3468
|
+
pathname = pathname.replace(/[?#]/g, function(match) {
|
|
3469
|
+
return encodeURIComponent(match);
|
|
3470
|
+
});
|
|
3471
|
+
search = search.replace("#", "%23");
|
|
3472
|
+
return protocol + host + pathname + search + hash;
|
|
3473
|
+
};
|
|
3474
|
+
function urlResolve(source, relative) {
|
|
3475
|
+
return urlParse(source, false, true).resolve(relative);
|
|
3476
|
+
}
|
|
3477
|
+
Url.prototype.resolve = function(relative) {
|
|
3478
|
+
return this.resolveObject(urlParse(relative, false, true)).format();
|
|
3479
|
+
};
|
|
3480
|
+
function urlResolveObject(source, relative) {
|
|
3481
|
+
if (!source) {
|
|
3482
|
+
return relative;
|
|
3483
|
+
}
|
|
3484
|
+
return urlParse(source, false, true).resolveObject(relative);
|
|
3485
|
+
}
|
|
3486
|
+
Url.prototype.resolveObject = function(relative) {
|
|
3487
|
+
if (typeof relative === "string") {
|
|
3488
|
+
var rel = new Url();
|
|
3489
|
+
rel.parse(relative, false, true);
|
|
3490
|
+
relative = rel;
|
|
3491
|
+
}
|
|
3492
|
+
var result = new Url();
|
|
3493
|
+
var tkeys = Object.keys(this);
|
|
3494
|
+
for (var tk = 0; tk < tkeys.length; tk++) {
|
|
3495
|
+
var tkey = tkeys[tk];
|
|
3496
|
+
result[tkey] = this[tkey];
|
|
3497
|
+
}
|
|
3498
|
+
result.hash = relative.hash;
|
|
3499
|
+
if (relative.href === "") {
|
|
3500
|
+
result.href = result.format();
|
|
3501
|
+
return result;
|
|
3502
|
+
}
|
|
3503
|
+
if (relative.slashes && !relative.protocol) {
|
|
3504
|
+
var rkeys = Object.keys(relative);
|
|
3505
|
+
for (var rk = 0; rk < rkeys.length; rk++) {
|
|
3506
|
+
var rkey = rkeys[rk];
|
|
3507
|
+
if (rkey !== "protocol") {
|
|
3508
|
+
result[rkey] = relative[rkey];
|
|
3509
|
+
}
|
|
3510
|
+
}
|
|
3511
|
+
if (slashedProtocol[result.protocol] && result.hostname && !result.pathname) {
|
|
3512
|
+
result.pathname = "/";
|
|
3513
|
+
result.path = result.pathname;
|
|
3514
|
+
}
|
|
3515
|
+
result.href = result.format();
|
|
3516
|
+
return result;
|
|
3517
|
+
}
|
|
3518
|
+
if (relative.protocol && relative.protocol !== result.protocol) {
|
|
3519
|
+
if (!slashedProtocol[relative.protocol]) {
|
|
3520
|
+
var keys2 = Object.keys(relative);
|
|
3521
|
+
for (var v2 = 0; v2 < keys2.length; v2++) {
|
|
3522
|
+
var k = keys2[v2];
|
|
3523
|
+
result[k] = relative[k];
|
|
3524
|
+
}
|
|
3525
|
+
result.href = result.format();
|
|
3526
|
+
return result;
|
|
3527
|
+
}
|
|
3528
|
+
result.protocol = relative.protocol;
|
|
3529
|
+
if (!relative.host && !hostlessProtocol[relative.protocol]) {
|
|
3530
|
+
var relPath = (relative.pathname || "").split("/");
|
|
3531
|
+
while (relPath.length && !(relative.host = relPath.shift())) {
|
|
3532
|
+
}
|
|
3533
|
+
if (!relative.host) {
|
|
3534
|
+
relative.host = "";
|
|
3535
|
+
}
|
|
3536
|
+
if (!relative.hostname) {
|
|
3537
|
+
relative.hostname = "";
|
|
3538
|
+
}
|
|
3539
|
+
if (relPath[0] !== "") {
|
|
3540
|
+
relPath.unshift("");
|
|
3541
|
+
}
|
|
3542
|
+
if (relPath.length < 2) {
|
|
3543
|
+
relPath.unshift("");
|
|
3544
|
+
}
|
|
3545
|
+
result.pathname = relPath.join("/");
|
|
3546
|
+
} else {
|
|
3547
|
+
result.pathname = relative.pathname;
|
|
3548
|
+
}
|
|
3549
|
+
result.search = relative.search;
|
|
3550
|
+
result.query = relative.query;
|
|
3551
|
+
result.host = relative.host || "";
|
|
3552
|
+
result.auth = relative.auth;
|
|
3553
|
+
result.hostname = relative.hostname || relative.host;
|
|
3554
|
+
result.port = relative.port;
|
|
3555
|
+
if (result.pathname || result.search) {
|
|
3556
|
+
var p2 = result.pathname || "";
|
|
3557
|
+
var s2 = result.search || "";
|
|
3558
|
+
result.path = p2 + s2;
|
|
3559
|
+
}
|
|
3560
|
+
result.slashes = result.slashes || relative.slashes;
|
|
3561
|
+
result.href = result.format();
|
|
3562
|
+
return result;
|
|
3563
|
+
}
|
|
3564
|
+
var isSourceAbs = result.pathname && result.pathname.charAt(0) === "/", isRelAbs = relative.host || relative.pathname && relative.pathname.charAt(0) === "/", mustEndAbs = isRelAbs || isSourceAbs || result.host && relative.pathname, removeAllDots = mustEndAbs, srcPath = result.pathname && result.pathname.split("/") || [], relPath = relative.pathname && relative.pathname.split("/") || [], psychotic = result.protocol && !slashedProtocol[result.protocol];
|
|
3565
|
+
if (psychotic) {
|
|
3566
|
+
result.hostname = "";
|
|
3567
|
+
result.port = null;
|
|
3568
|
+
if (result.host) {
|
|
3569
|
+
if (srcPath[0] === "") {
|
|
3570
|
+
srcPath[0] = result.host;
|
|
3571
|
+
} else {
|
|
3572
|
+
srcPath.unshift(result.host);
|
|
3573
|
+
}
|
|
3574
|
+
}
|
|
3575
|
+
result.host = "";
|
|
3576
|
+
if (relative.protocol) {
|
|
3577
|
+
relative.hostname = null;
|
|
3578
|
+
relative.port = null;
|
|
3579
|
+
if (relative.host) {
|
|
3580
|
+
if (relPath[0] === "") {
|
|
3581
|
+
relPath[0] = relative.host;
|
|
3582
|
+
} else {
|
|
3583
|
+
relPath.unshift(relative.host);
|
|
3584
|
+
}
|
|
3585
|
+
}
|
|
3586
|
+
relative.host = null;
|
|
3587
|
+
}
|
|
3588
|
+
mustEndAbs = mustEndAbs && (relPath[0] === "" || srcPath[0] === "");
|
|
3589
|
+
}
|
|
3590
|
+
if (isRelAbs) {
|
|
3591
|
+
result.host = relative.host || relative.host === "" ? relative.host : result.host;
|
|
3592
|
+
result.hostname = relative.hostname || relative.hostname === "" ? relative.hostname : result.hostname;
|
|
3593
|
+
result.search = relative.search;
|
|
3594
|
+
result.query = relative.query;
|
|
3595
|
+
srcPath = relPath;
|
|
3596
|
+
} else if (relPath.length) {
|
|
3597
|
+
if (!srcPath) {
|
|
3598
|
+
srcPath = [];
|
|
3599
|
+
}
|
|
3600
|
+
srcPath.pop();
|
|
3601
|
+
srcPath = srcPath.concat(relPath);
|
|
3602
|
+
result.search = relative.search;
|
|
3603
|
+
result.query = relative.query;
|
|
3604
|
+
} else if (relative.search != null) {
|
|
3605
|
+
if (psychotic) {
|
|
3606
|
+
result.host = srcPath.shift();
|
|
3607
|
+
result.hostname = result.host;
|
|
3608
|
+
var authInHost = result.host && result.host.indexOf("@") > 0 ? result.host.split("@") : false;
|
|
3609
|
+
if (authInHost) {
|
|
3610
|
+
result.auth = authInHost.shift();
|
|
3611
|
+
result.hostname = authInHost.shift();
|
|
3612
|
+
result.host = result.hostname;
|
|
3613
|
+
}
|
|
3614
|
+
}
|
|
3615
|
+
result.search = relative.search;
|
|
3616
|
+
result.query = relative.query;
|
|
3617
|
+
if (result.pathname !== null || result.search !== null) {
|
|
3618
|
+
result.path = (result.pathname ? result.pathname : "") + (result.search ? result.search : "");
|
|
3619
|
+
}
|
|
3620
|
+
result.href = result.format();
|
|
3621
|
+
return result;
|
|
3622
|
+
}
|
|
3623
|
+
if (!srcPath.length) {
|
|
3624
|
+
result.pathname = null;
|
|
3625
|
+
if (result.search) {
|
|
3626
|
+
result.path = "/" + result.search;
|
|
3627
|
+
} else {
|
|
3628
|
+
result.path = null;
|
|
3629
|
+
}
|
|
3630
|
+
result.href = result.format();
|
|
3631
|
+
return result;
|
|
3632
|
+
}
|
|
3633
|
+
var last2 = srcPath.slice(-1)[0];
|
|
3634
|
+
var hasTrailingSlash = (result.host || relative.host || srcPath.length > 1) && (last2 === "." || last2 === "..") || last2 === "";
|
|
3635
|
+
var up = 0;
|
|
3636
|
+
for (var i = srcPath.length; i >= 0; i--) {
|
|
3637
|
+
last2 = srcPath[i];
|
|
3638
|
+
if (last2 === ".") {
|
|
3639
|
+
srcPath.splice(i, 1);
|
|
3640
|
+
} else if (last2 === "..") {
|
|
3641
|
+
srcPath.splice(i, 1);
|
|
3642
|
+
up++;
|
|
3643
|
+
} else if (up) {
|
|
3644
|
+
srcPath.splice(i, 1);
|
|
3645
|
+
up--;
|
|
3646
|
+
}
|
|
3647
|
+
}
|
|
3648
|
+
if (!mustEndAbs && !removeAllDots) {
|
|
3649
|
+
for (; up--; up) {
|
|
3650
|
+
srcPath.unshift("..");
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3653
|
+
if (mustEndAbs && srcPath[0] !== "" && (!srcPath[0] || srcPath[0].charAt(0) !== "/")) {
|
|
3654
|
+
srcPath.unshift("");
|
|
3655
|
+
}
|
|
3656
|
+
if (hasTrailingSlash && srcPath.join("/").substr(-1) !== "/") {
|
|
3657
|
+
srcPath.push("");
|
|
3658
|
+
}
|
|
3659
|
+
var isAbsolute = srcPath[0] === "" || srcPath[0] && srcPath[0].charAt(0) === "/";
|
|
3660
|
+
if (psychotic) {
|
|
3661
|
+
result.hostname = isAbsolute ? "" : srcPath.length ? srcPath.shift() : "";
|
|
3662
|
+
result.host = result.hostname;
|
|
3663
|
+
var authInHost = result.host && result.host.indexOf("@") > 0 ? result.host.split("@") : false;
|
|
3664
|
+
if (authInHost) {
|
|
3665
|
+
result.auth = authInHost.shift();
|
|
3666
|
+
result.hostname = authInHost.shift();
|
|
3667
|
+
result.host = result.hostname;
|
|
3668
|
+
}
|
|
3669
|
+
}
|
|
3670
|
+
mustEndAbs = mustEndAbs || result.host && srcPath.length;
|
|
3671
|
+
if (mustEndAbs && !isAbsolute) {
|
|
3672
|
+
srcPath.unshift("");
|
|
3673
|
+
}
|
|
3674
|
+
if (srcPath.length > 0) {
|
|
3675
|
+
result.pathname = srcPath.join("/");
|
|
3676
|
+
} else {
|
|
3677
|
+
result.pathname = null;
|
|
3678
|
+
result.path = null;
|
|
3679
|
+
}
|
|
3680
|
+
if (result.pathname !== null || result.search !== null) {
|
|
3681
|
+
result.path = (result.pathname ? result.pathname : "") + (result.search ? result.search : "");
|
|
3682
|
+
}
|
|
3683
|
+
result.auth = relative.auth || result.auth;
|
|
3684
|
+
result.slashes = result.slashes || relative.slashes;
|
|
3685
|
+
result.href = result.format();
|
|
3686
|
+
return result;
|
|
3687
|
+
};
|
|
3688
|
+
Url.prototype.parseHost = function() {
|
|
3689
|
+
var host = this.host;
|
|
3690
|
+
var port = portPattern.exec(host);
|
|
3691
|
+
if (port) {
|
|
3692
|
+
port = port[0];
|
|
3693
|
+
if (port !== ":") {
|
|
3694
|
+
this.port = port.substr(1);
|
|
3695
|
+
}
|
|
3696
|
+
host = host.substr(0, host.length - port.length);
|
|
3697
|
+
}
|
|
3698
|
+
if (host) {
|
|
3699
|
+
this.hostname = host;
|
|
3700
|
+
}
|
|
3701
|
+
};
|
|
3702
|
+
url$9.parse = urlParse;
|
|
3703
|
+
url$9.resolve = urlResolve;
|
|
3704
|
+
url$9.resolveObject = urlResolveObject;
|
|
3705
|
+
url$9.format = urlFormat;
|
|
3706
|
+
url$9.Url = Url;
|
|
1668
3707
|
(function(module2, exports) {
|
|
1669
|
-
let isWindows = /^win/.test(process.platform), forwardSlashPattern = /\//g,
|
|
3708
|
+
let isWindows = /^win/.test(process.platform), forwardSlashPattern = /\//g, protocolPattern2 = /^(\w{2,}):\/\//i, url2 = module2.exports, jsonPointerSlash = /~1/g, jsonPointerTilde = /~0/g;
|
|
1670
3709
|
let urlEncodePatterns = [
|
|
1671
3710
|
/\?/g,
|
|
1672
3711
|
"%3F",
|
|
@@ -1685,8 +3724,8 @@ const require$$1$2 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal
|
|
|
1685
3724
|
/\%40/g,
|
|
1686
3725
|
"@"
|
|
1687
3726
|
];
|
|
1688
|
-
exports.parse =
|
|
1689
|
-
exports.resolve =
|
|
3727
|
+
exports.parse = url$9.parse;
|
|
3728
|
+
exports.resolve = url$9.resolve;
|
|
1690
3729
|
exports.cwd = function cwd() {
|
|
1691
3730
|
if (process.browser) {
|
|
1692
3731
|
return location.href;
|
|
@@ -1700,7 +3739,7 @@ const require$$1$2 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal
|
|
|
1700
3739
|
}
|
|
1701
3740
|
};
|
|
1702
3741
|
exports.getProtocol = function getProtocol(path) {
|
|
1703
|
-
let match =
|
|
3742
|
+
let match = protocolPattern2.exec(path);
|
|
1704
3743
|
if (match) {
|
|
1705
3744
|
return match[1].toLowerCase();
|
|
1706
3745
|
}
|
|
@@ -1787,8 +3826,8 @@ const require$$1$2 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal
|
|
|
1787
3826
|
return decodeURIComponent(value).replace(jsonPointerSlash, "/").replace(jsonPointerTilde, "~");
|
|
1788
3827
|
});
|
|
1789
3828
|
};
|
|
1790
|
-
})(url$
|
|
1791
|
-
var urlExports = url$
|
|
3829
|
+
})(url$a, url$a.exports);
|
|
3830
|
+
var urlExports = url$a.exports;
|
|
1792
3831
|
const util$5 = util$6;
|
|
1793
3832
|
const url$8 = urlExports;
|
|
1794
3833
|
util$7.format = util$5.format;
|
|
@@ -2177,10 +4216,10 @@ var code$2 = {};
|
|
|
2177
4216
|
function interpolate(x2) {
|
|
2178
4217
|
return typeof x2 == "number" || typeof x2 == "boolean" || x2 === null ? x2 : safeStringify(Array.isArray(x2) ? x2.join(",") : x2);
|
|
2179
4218
|
}
|
|
2180
|
-
function
|
|
4219
|
+
function stringify3(x2) {
|
|
2181
4220
|
return new _Code(safeStringify(x2));
|
|
2182
4221
|
}
|
|
2183
|
-
exports.stringify =
|
|
4222
|
+
exports.stringify = stringify3;
|
|
2184
4223
|
function safeStringify(x2) {
|
|
2185
4224
|
return JSON.stringify(x2).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
2186
4225
|
}
|
|
@@ -3204,8 +5243,8 @@ var util$4 = {};
|
|
|
3204
5243
|
})(Type2 = exports.Type || (exports.Type = {}));
|
|
3205
5244
|
function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
|
|
3206
5245
|
if (dataProp instanceof codegen_12.Name) {
|
|
3207
|
-
const
|
|
3208
|
-
return jsPropertySyntax ?
|
|
5246
|
+
const isNumber2 = dataPropType === Type2.Num;
|
|
5247
|
+
return jsPropertySyntax ? isNumber2 ? (0, codegen_12._)`"[" + ${dataProp} + "]"` : (0, codegen_12._)`"['" + ${dataProp} + "']"` : isNumber2 ? (0, codegen_12._)`"/" + ${dataProp}` : (0, codegen_12._)`"/" + ${dataProp}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
|
|
3209
5248
|
}
|
|
3210
5249
|
return jsPropertySyntax ? (0, codegen_12.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp);
|
|
3211
5250
|
}
|
|
@@ -5020,7 +7059,7 @@ var uri_all = { exports: {} };
|
|
|
5020
7059
|
(function(global2, factory) {
|
|
5021
7060
|
factory(exports);
|
|
5022
7061
|
})(commonjsGlobal, function(exports2) {
|
|
5023
|
-
function
|
|
7062
|
+
function merge3() {
|
|
5024
7063
|
for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
|
|
5025
7064
|
sets[_key] = arguments[_key];
|
|
5026
7065
|
}
|
|
@@ -5058,26 +7097,26 @@ var uri_all = { exports: {} };
|
|
|
5058
7097
|
return obj;
|
|
5059
7098
|
}
|
|
5060
7099
|
function buildExps(isIRI) {
|
|
5061
|
-
var ALPHA$$ = "[A-Za-z]", DIGIT$$ = "[0-9]", HEXDIG$$2 =
|
|
5062
|
-
subexp(ALPHA$$ +
|
|
5063
|
-
subexp(subexp(PCT_ENCODED$2 + "|" +
|
|
7100
|
+
var ALPHA$$ = "[A-Za-z]", DIGIT$$ = "[0-9]", HEXDIG$$2 = merge3(DIGIT$$, "[A-Fa-f]"), PCT_ENCODED$2 = subexp(subexp("%[EFef]" + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2) + "|" + subexp("%" + HEXDIG$$2 + HEXDIG$$2)), GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", RESERVED$$ = merge3(GEN_DELIMS$$, SUB_DELIMS$$), UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]", UNRESERVED$$2 = merge3(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$);
|
|
7101
|
+
subexp(ALPHA$$ + merge3(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*");
|
|
7102
|
+
subexp(subexp(PCT_ENCODED$2 + "|" + merge3(UNRESERVED$$2, SUB_DELIMS$$, "[\\:]")) + "*");
|
|
5064
7103
|
var DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), H16$ = subexp(HEXDIG$$2 + "{1,4}"), LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")), ZONEID$ = subexp(subexp(UNRESERVED$$2 + "|" + PCT_ENCODED$2) + "+");
|
|
5065
|
-
subexp("[vV]" + HEXDIG$$2 + "+\\." +
|
|
5066
|
-
subexp(subexp(PCT_ENCODED$2 + "|" +
|
|
5067
|
-
var PCHAR$ = subexp(PCT_ENCODED$2 + "|" +
|
|
5068
|
-
subexp(subexp(PCT_ENCODED$2 + "|" +
|
|
5069
|
-
subexp(subexp(PCHAR$ + "|" +
|
|
7104
|
+
subexp("[vV]" + HEXDIG$$2 + "+\\." + merge3(UNRESERVED$$2, SUB_DELIMS$$, "[\\:]") + "+");
|
|
7105
|
+
subexp(subexp(PCT_ENCODED$2 + "|" + merge3(UNRESERVED$$2, SUB_DELIMS$$)) + "*");
|
|
7106
|
+
var PCHAR$ = subexp(PCT_ENCODED$2 + "|" + merge3(UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@]"));
|
|
7107
|
+
subexp(subexp(PCT_ENCODED$2 + "|" + merge3(UNRESERVED$$2, SUB_DELIMS$$, "[\\@]")) + "+");
|
|
7108
|
+
subexp(subexp(PCHAR$ + "|" + merge3("[\\/\\?]", IPRIVATE$$)) + "*");
|
|
5070
7109
|
return {
|
|
5071
|
-
NOT_SCHEME: new RegExp(
|
|
5072
|
-
NOT_USERINFO: new RegExp(
|
|
5073
|
-
NOT_HOST: new RegExp(
|
|
5074
|
-
NOT_PATH: new RegExp(
|
|
5075
|
-
NOT_PATH_NOSCHEME: new RegExp(
|
|
5076
|
-
NOT_QUERY: new RegExp(
|
|
5077
|
-
NOT_FRAGMENT: new RegExp(
|
|
5078
|
-
ESCAPE: new RegExp(
|
|
7110
|
+
NOT_SCHEME: new RegExp(merge3("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
|
|
7111
|
+
NOT_USERINFO: new RegExp(merge3("[^\\%\\:]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
|
|
7112
|
+
NOT_HOST: new RegExp(merge3("[^\\%\\[\\]\\:]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
|
|
7113
|
+
NOT_PATH: new RegExp(merge3("[^\\%\\/\\:\\@]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
|
|
7114
|
+
NOT_PATH_NOSCHEME: new RegExp(merge3("[^\\%\\/\\@]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
|
|
7115
|
+
NOT_QUERY: new RegExp(merge3("[^\\%]", UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
|
|
7116
|
+
NOT_FRAGMENT: new RegExp(merge3("[^\\%]", UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
|
|
7117
|
+
ESCAPE: new RegExp(merge3("[^]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
|
|
5079
7118
|
UNRESERVED: new RegExp(UNRESERVED$$2, "g"),
|
|
5080
|
-
OTHER_CHARS: new RegExp(
|
|
7119
|
+
OTHER_CHARS: new RegExp(merge3("[^\\%]", UNRESERVED$$2, RESERVED$$), "g"),
|
|
5081
7120
|
PCT_ENCODED: new RegExp(PCT_ENCODED$2, "g"),
|
|
5082
7121
|
IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"),
|
|
5083
7122
|
IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$2 + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$")
|
|
@@ -5226,7 +7265,7 @@ var uri_all = { exports: {} };
|
|
|
5226
7265
|
}
|
|
5227
7266
|
return floor2(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
5228
7267
|
};
|
|
5229
|
-
var
|
|
7268
|
+
var decode2 = function decode3(input) {
|
|
5230
7269
|
var output = [];
|
|
5231
7270
|
var inputLength = input.length;
|
|
5232
7271
|
var i = 0;
|
|
@@ -5279,7 +7318,7 @@ var uri_all = { exports: {} };
|
|
|
5279
7318
|
}
|
|
5280
7319
|
return String.fromCodePoint.apply(String, output);
|
|
5281
7320
|
};
|
|
5282
|
-
var
|
|
7321
|
+
var encode3 = function encode4(input) {
|
|
5283
7322
|
var output = [];
|
|
5284
7323
|
input = ucs2decode(input);
|
|
5285
7324
|
var inputLength = input.length;
|
|
@@ -5400,15 +7439,15 @@ var uri_all = { exports: {} };
|
|
|
5400
7439
|
};
|
|
5401
7440
|
var toUnicode = function toUnicode2(input) {
|
|
5402
7441
|
return mapDomain(input, function(string2) {
|
|
5403
|
-
return regexPunycode.test(string2) ?
|
|
7442
|
+
return regexPunycode.test(string2) ? decode2(string2.slice(4).toLowerCase()) : string2;
|
|
5404
7443
|
});
|
|
5405
7444
|
};
|
|
5406
7445
|
var toASCII = function toASCII2(input) {
|
|
5407
7446
|
return mapDomain(input, function(string2) {
|
|
5408
|
-
return regexNonASCII.test(string2) ? "xn--" +
|
|
7447
|
+
return regexNonASCII.test(string2) ? "xn--" + encode3(string2) : string2;
|
|
5409
7448
|
});
|
|
5410
7449
|
};
|
|
5411
|
-
var
|
|
7450
|
+
var punycode2 = {
|
|
5412
7451
|
/**
|
|
5413
7452
|
* A string representing the current Punycode.js version number.
|
|
5414
7453
|
* @memberOf punycode
|
|
@@ -5426,8 +7465,8 @@ var uri_all = { exports: {} };
|
|
|
5426
7465
|
"decode": ucs2decode,
|
|
5427
7466
|
"encode": ucs2encode
|
|
5428
7467
|
},
|
|
5429
|
-
"decode":
|
|
5430
|
-
"encode":
|
|
7468
|
+
"decode": decode2,
|
|
7469
|
+
"encode": encode3,
|
|
5431
7470
|
"toASCII": toASCII,
|
|
5432
7471
|
"toUnicode": toUnicode
|
|
5433
7472
|
};
|
|
@@ -5608,7 +7647,7 @@ var uri_all = { exports: {} };
|
|
|
5608
7647
|
if (!options2.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
5609
7648
|
if (components2.host && (options2.domainHost || schemeHandler && schemeHandler.domainHost)) {
|
|
5610
7649
|
try {
|
|
5611
|
-
components2.host =
|
|
7650
|
+
components2.host = punycode2.toASCII(components2.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());
|
|
5612
7651
|
} catch (e2) {
|
|
5613
7652
|
components2.error = components2.error || "Host's domain name can not be converted to ASCII via punycode: " + e2;
|
|
5614
7653
|
}
|
|
@@ -5684,7 +7723,7 @@ var uri_all = { exports: {} };
|
|
|
5684
7723
|
;
|
|
5685
7724
|
else if (options2.domainHost || schemeHandler && schemeHandler.domainHost) {
|
|
5686
7725
|
try {
|
|
5687
|
-
components2.host = !options2.iri ?
|
|
7726
|
+
components2.host = !options2.iri ? punycode2.toASCII(components2.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode2.toUnicode(components2.host);
|
|
5688
7727
|
} catch (e2) {
|
|
5689
7728
|
components2.error = components2.error || "Host's domain name can not be converted to " + (!options2.iri ? "ASCII" : "Unicode") + " via punycode: " + e2;
|
|
5690
7729
|
}
|
|
@@ -5881,12 +7920,12 @@ var uri_all = { exports: {} };
|
|
|
5881
7920
|
var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$));
|
|
5882
7921
|
var ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";
|
|
5883
7922
|
var QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";
|
|
5884
|
-
var VCHAR$$ =
|
|
7923
|
+
var VCHAR$$ = merge3(QTEXT$$, '[\\"\\\\]');
|
|
5885
7924
|
var SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";
|
|
5886
7925
|
var UNRESERVED = new RegExp(UNRESERVED$$, "g");
|
|
5887
7926
|
var PCT_ENCODED = new RegExp(PCT_ENCODED$, "g");
|
|
5888
|
-
var NOT_LOCAL_PART = new RegExp(
|
|
5889
|
-
var NOT_HFNAME = new RegExp(
|
|
7927
|
+
var NOT_LOCAL_PART = new RegExp(merge3("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g");
|
|
7928
|
+
var NOT_HFNAME = new RegExp(merge3("[^]", UNRESERVED$$, SOME_DELIMS$$), "g");
|
|
5890
7929
|
var NOT_HFVALUE = NOT_HFNAME;
|
|
5891
7930
|
function decodeUnreserved(str2) {
|
|
5892
7931
|
var decStr = pctDecChars(str2);
|
|
@@ -5932,7 +7971,7 @@ var uri_all = { exports: {} };
|
|
|
5932
7971
|
addr[0] = unescapeComponent(addr[0]);
|
|
5933
7972
|
if (!options2.unicodeSupport) {
|
|
5934
7973
|
try {
|
|
5935
|
-
addr[1] =
|
|
7974
|
+
addr[1] = punycode2.toASCII(unescapeComponent(addr[1], options2).toLowerCase());
|
|
5936
7975
|
} catch (e2) {
|
|
5937
7976
|
mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e2;
|
|
5938
7977
|
}
|
|
@@ -5953,7 +7992,7 @@ var uri_all = { exports: {} };
|
|
|
5953
7992
|
var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);
|
|
5954
7993
|
var domain = toAddr.slice(atIdx + 1);
|
|
5955
7994
|
try {
|
|
5956
|
-
domain = !options2.iri ?
|
|
7995
|
+
domain = !options2.iri ? punycode2.toASCII(unescapeComponent(domain, options2).toLowerCase()) : punycode2.toUnicode(domain);
|
|
5957
7996
|
} catch (e2) {
|
|
5958
7997
|
components2.error = components2.error || "Email address's domain name can not be converted to " + (!options2.iri ? "ASCII" : "Unicode") + " via punycode: " + e2;
|
|
5959
7998
|
}
|
|
@@ -7111,17 +9150,17 @@ const def$u = {
|
|
|
7111
9150
|
function loopN(i, j2) {
|
|
7112
9151
|
const item = gen.name("item");
|
|
7113
9152
|
const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it.opts.strictNumbers, dataType_1.DataType.Wrong);
|
|
7114
|
-
const
|
|
9153
|
+
const indices2 = gen.const("indices", (0, codegen_1$i._)`{}`);
|
|
7115
9154
|
gen.for((0, codegen_1$i._)`;${i}--;`, () => {
|
|
7116
9155
|
gen.let(item, (0, codegen_1$i._)`${data}[${i}]`);
|
|
7117
9156
|
gen.if(wrongType, (0, codegen_1$i._)`continue`);
|
|
7118
9157
|
if (itemTypes.length > 1)
|
|
7119
9158
|
gen.if((0, codegen_1$i._)`typeof ${item} == "string"`, (0, codegen_1$i._)`${item} += "_"`);
|
|
7120
|
-
gen.if((0, codegen_1$i._)`typeof ${
|
|
7121
|
-
gen.assign(j2, (0, codegen_1$i._)`${
|
|
9159
|
+
gen.if((0, codegen_1$i._)`typeof ${indices2}[${item}] == "number"`, () => {
|
|
9160
|
+
gen.assign(j2, (0, codegen_1$i._)`${indices2}[${item}]`);
|
|
7122
9161
|
cxt.error();
|
|
7123
9162
|
gen.assign(valid, false).break();
|
|
7124
|
-
}).code((0, codegen_1$i._)`${
|
|
9163
|
+
}).code((0, codegen_1$i._)`${indices2}[${item}] = ${i}`);
|
|
7125
9164
|
});
|
|
7126
9165
|
}
|
|
7127
9166
|
function loopN2(i, j2) {
|
|
@@ -14710,10 +16749,10 @@ function YAMLException$6(reason, mark2) {
|
|
|
14710
16749
|
}
|
|
14711
16750
|
YAMLException$6.prototype = Object.create(Error.prototype);
|
|
14712
16751
|
YAMLException$6.prototype.constructor = YAMLException$6;
|
|
14713
|
-
YAMLException$6.prototype.toString = function toString(
|
|
16752
|
+
YAMLException$6.prototype.toString = function toString(compact3) {
|
|
14714
16753
|
var result = this.name + ": ";
|
|
14715
16754
|
result += this.reason || "(unknown reason)";
|
|
14716
|
-
if (!
|
|
16755
|
+
if (!compact3 && this.mark) {
|
|
14717
16756
|
result += " " + this.mark.toString();
|
|
14718
16757
|
}
|
|
14719
16758
|
return result;
|
|
@@ -14756,13 +16795,13 @@ Mark$1.prototype.getSnippet = function getSnippet(indent, maxLength) {
|
|
|
14756
16795
|
snippet2 = this.buffer.slice(start, end);
|
|
14757
16796
|
return common$6.repeat(" ", indent) + head + snippet2 + tail + "\n" + common$6.repeat(" ", indent + this.position - start + head.length) + "^";
|
|
14758
16797
|
};
|
|
14759
|
-
Mark$1.prototype.toString = function toString2(
|
|
16798
|
+
Mark$1.prototype.toString = function toString2(compact3) {
|
|
14760
16799
|
var snippet2, where = "";
|
|
14761
16800
|
if (this.name) {
|
|
14762
16801
|
where += 'in "' + this.name + '" ';
|
|
14763
16802
|
}
|
|
14764
16803
|
where += "at line " + (this.line + 1) + ", column " + (this.column + 1);
|
|
14765
|
-
if (!
|
|
16804
|
+
if (!compact3) {
|
|
14766
16805
|
snippet2 = this.getSnippet();
|
|
14767
16806
|
if (snippet2) {
|
|
14768
16807
|
where += ":\n" + snippet2;
|
|
@@ -15575,14 +17614,14 @@ function representJavascriptRegExp(object) {
|
|
|
15575
17614
|
result += "i";
|
|
15576
17615
|
return result;
|
|
15577
17616
|
}
|
|
15578
|
-
function
|
|
17617
|
+
function isRegExp2(object) {
|
|
15579
17618
|
return Object.prototype.toString.call(object) === "[object RegExp]";
|
|
15580
17619
|
}
|
|
15581
17620
|
var regexp = new Type$3("tag:yaml.org,2002:js/regexp", {
|
|
15582
17621
|
kind: "scalar",
|
|
15583
17622
|
resolve: resolveJavascriptRegExp,
|
|
15584
17623
|
construct: constructJavascriptRegExp,
|
|
15585
|
-
predicate:
|
|
17624
|
+
predicate: isRegExp2,
|
|
15586
17625
|
represent: representJavascriptRegExp
|
|
15587
17626
|
});
|
|
15588
17627
|
var esprima;
|
|
@@ -17077,11 +19116,11 @@ function writeFlowSequence$1(state, level, object) {
|
|
|
17077
19116
|
state.tag = _tag;
|
|
17078
19117
|
state.dump = "[" + _result + "]";
|
|
17079
19118
|
}
|
|
17080
|
-
function writeBlockSequence$1(state, level, object,
|
|
19119
|
+
function writeBlockSequence$1(state, level, object, compact3) {
|
|
17081
19120
|
var _result = "", _tag = state.tag, index, length2;
|
|
17082
19121
|
for (index = 0, length2 = object.length; index < length2; index += 1) {
|
|
17083
19122
|
if (writeNode$1(state, level + 1, object[index], true, true)) {
|
|
17084
|
-
if (!
|
|
19123
|
+
if (!compact3 || index !== 0) {
|
|
17085
19124
|
_result += generateNextLine$1(state, level);
|
|
17086
19125
|
}
|
|
17087
19126
|
if (state.dump && CHAR_LINE_FEED$1 === state.dump.charCodeAt(0)) {
|
|
@@ -17120,7 +19159,7 @@ function writeFlowMapping$1(state, level, object) {
|
|
|
17120
19159
|
state.tag = _tag;
|
|
17121
19160
|
state.dump = "{" + _result + "}";
|
|
17122
19161
|
}
|
|
17123
|
-
function writeBlockMapping$1(state, level, object,
|
|
19162
|
+
function writeBlockMapping$1(state, level, object, compact3) {
|
|
17124
19163
|
var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length2, objectKey, objectValue, explicitPair, pairBuffer;
|
|
17125
19164
|
if (state.sortKeys === true) {
|
|
17126
19165
|
objectKeyList.sort();
|
|
@@ -17131,7 +19170,7 @@ function writeBlockMapping$1(state, level, object, compact) {
|
|
|
17131
19170
|
}
|
|
17132
19171
|
for (index = 0, length2 = objectKeyList.length; index < length2; index += 1) {
|
|
17133
19172
|
pairBuffer = "";
|
|
17134
|
-
if (!
|
|
19173
|
+
if (!compact3 || index !== 0) {
|
|
17135
19174
|
pairBuffer += generateNextLine$1(state, level);
|
|
17136
19175
|
}
|
|
17137
19176
|
objectKey = objectKeyList[index];
|
|
@@ -17188,7 +19227,7 @@ function detectType$1(state, object, explicit) {
|
|
|
17188
19227
|
}
|
|
17189
19228
|
return false;
|
|
17190
19229
|
}
|
|
17191
|
-
function writeNode$1(state, level, object, block,
|
|
19230
|
+
function writeNode$1(state, level, object, block, compact3, iskey) {
|
|
17192
19231
|
state.tag = null;
|
|
17193
19232
|
state.dump = object;
|
|
17194
19233
|
if (!detectType$1(state, object, false)) {
|
|
@@ -17204,7 +19243,7 @@ function writeNode$1(state, level, object, block, compact, iskey) {
|
|
|
17204
19243
|
duplicate = duplicateIndex !== -1;
|
|
17205
19244
|
}
|
|
17206
19245
|
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
|
|
17207
|
-
|
|
19246
|
+
compact3 = false;
|
|
17208
19247
|
}
|
|
17209
19248
|
if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
|
17210
19249
|
state.dump = "*ref_" + duplicateIndex;
|
|
@@ -17214,7 +19253,7 @@ function writeNode$1(state, level, object, block, compact, iskey) {
|
|
|
17214
19253
|
}
|
|
17215
19254
|
if (type2 === "[object Object]") {
|
|
17216
19255
|
if (block && Object.keys(state.dump).length !== 0) {
|
|
17217
|
-
writeBlockMapping$1(state, level, state.dump,
|
|
19256
|
+
writeBlockMapping$1(state, level, state.dump, compact3);
|
|
17218
19257
|
if (duplicate) {
|
|
17219
19258
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
17220
19259
|
}
|
|
@@ -17227,7 +19266,7 @@ function writeNode$1(state, level, object, block, compact, iskey) {
|
|
|
17227
19266
|
} else if (type2 === "[object Array]") {
|
|
17228
19267
|
var arrayLevel = state.noArrayIndent && level > 0 ? level - 1 : level;
|
|
17229
19268
|
if (block && state.dump.length !== 0) {
|
|
17230
|
-
writeBlockSequence$1(state, arrayLevel, state.dump,
|
|
19269
|
+
writeBlockSequence$1(state, arrayLevel, state.dump, compact3);
|
|
17231
19270
|
if (duplicate) {
|
|
17232
19271
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
17233
19272
|
}
|
|
@@ -18851,7 +20890,7 @@ function extend$1(target, source) {
|
|
|
18851
20890
|
}
|
|
18852
20891
|
return target;
|
|
18853
20892
|
}
|
|
18854
|
-
function
|
|
20893
|
+
function repeat2(string2, count) {
|
|
18855
20894
|
var result = "", cycle;
|
|
18856
20895
|
for (cycle = 0; cycle < count; cycle += 1) {
|
|
18857
20896
|
result += string2;
|
|
@@ -18864,7 +20903,7 @@ function isNegativeZero$1(number2) {
|
|
|
18864
20903
|
var isNothing_1 = isNothing;
|
|
18865
20904
|
var isObject_1 = isObject;
|
|
18866
20905
|
var toArray_1 = toArray;
|
|
18867
|
-
var repeat_1 =
|
|
20906
|
+
var repeat_1 = repeat2;
|
|
18868
20907
|
var isNegativeZero_1 = isNegativeZero$1;
|
|
18869
20908
|
var extend_1 = extend$1;
|
|
18870
20909
|
var common = {
|
|
@@ -18875,7 +20914,7 @@ var common = {
|
|
|
18875
20914
|
isNegativeZero: isNegativeZero_1,
|
|
18876
20915
|
extend: extend_1
|
|
18877
20916
|
};
|
|
18878
|
-
function formatError(exception2,
|
|
20917
|
+
function formatError(exception2, compact3) {
|
|
18879
20918
|
var where = "", message = exception2.reason || "(unknown reason)";
|
|
18880
20919
|
if (!exception2.mark)
|
|
18881
20920
|
return message;
|
|
@@ -18883,7 +20922,7 @@ function formatError(exception2, compact) {
|
|
|
18883
20922
|
where += 'in "' + exception2.mark.name + '" ';
|
|
18884
20923
|
}
|
|
18885
20924
|
where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
|
|
18886
|
-
if (!
|
|
20925
|
+
if (!compact3 && exception2.mark.snippet) {
|
|
18887
20926
|
where += "\n\n" + exception2.mark.snippet;
|
|
18888
20927
|
}
|
|
18889
20928
|
return message + " " + where;
|
|
@@ -18902,8 +20941,8 @@ function YAMLException$1(reason, mark2) {
|
|
|
18902
20941
|
}
|
|
18903
20942
|
YAMLException$1.prototype = Object.create(Error.prototype);
|
|
18904
20943
|
YAMLException$1.prototype.constructor = YAMLException$1;
|
|
18905
|
-
YAMLException$1.prototype.toString = function toString3(
|
|
18906
|
-
return this.name + ": " + formatError(this,
|
|
20944
|
+
YAMLException$1.prototype.toString = function toString3(compact3) {
|
|
20945
|
+
return this.name + ": " + formatError(this, compact3);
|
|
18907
20946
|
};
|
|
18908
20947
|
var exception = YAMLException$1;
|
|
18909
20948
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
@@ -19492,7 +21531,7 @@ var timestamp = new type("tag:yaml.org,2002:timestamp", {
|
|
|
19492
21531
|
function resolveYamlMerge(data) {
|
|
19493
21532
|
return data === "<<" || data === null;
|
|
19494
21533
|
}
|
|
19495
|
-
var
|
|
21534
|
+
var merge2 = new type("tag:yaml.org,2002:merge", {
|
|
19496
21535
|
kind: "scalar",
|
|
19497
21536
|
resolve: resolveYamlMerge
|
|
19498
21537
|
});
|
|
@@ -19668,7 +21707,7 @@ var set = new type("tag:yaml.org,2002:set", {
|
|
|
19668
21707
|
var _default = core.extend({
|
|
19669
21708
|
implicit: [
|
|
19670
21709
|
timestamp,
|
|
19671
|
-
|
|
21710
|
+
merge2
|
|
19672
21711
|
],
|
|
19673
21712
|
explicit: [
|
|
19674
21713
|
binary,
|
|
@@ -21207,7 +23246,7 @@ function writeFlowSequence(state, level, object) {
|
|
|
21207
23246
|
state.tag = _tag;
|
|
21208
23247
|
state.dump = "[" + _result + "]";
|
|
21209
23248
|
}
|
|
21210
|
-
function writeBlockSequence(state, level, object,
|
|
23249
|
+
function writeBlockSequence(state, level, object, compact3) {
|
|
21211
23250
|
var _result = "", _tag = state.tag, index, length2, value;
|
|
21212
23251
|
for (index = 0, length2 = object.length; index < length2; index += 1) {
|
|
21213
23252
|
value = object[index];
|
|
@@ -21215,7 +23254,7 @@ function writeBlockSequence(state, level, object, compact) {
|
|
|
21215
23254
|
value = state.replacer.call(object, String(index), value);
|
|
21216
23255
|
}
|
|
21217
23256
|
if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
|
|
21218
|
-
if (!
|
|
23257
|
+
if (!compact3 || _result !== "") {
|
|
21219
23258
|
_result += generateNextLine(state, level);
|
|
21220
23259
|
}
|
|
21221
23260
|
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
@@ -21257,7 +23296,7 @@ function writeFlowMapping(state, level, object) {
|
|
|
21257
23296
|
state.tag = _tag;
|
|
21258
23297
|
state.dump = "{" + _result + "}";
|
|
21259
23298
|
}
|
|
21260
|
-
function writeBlockMapping(state, level, object,
|
|
23299
|
+
function writeBlockMapping(state, level, object, compact3) {
|
|
21261
23300
|
var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length2, objectKey, objectValue, explicitPair, pairBuffer;
|
|
21262
23301
|
if (state.sortKeys === true) {
|
|
21263
23302
|
objectKeyList.sort();
|
|
@@ -21268,7 +23307,7 @@ function writeBlockMapping(state, level, object, compact) {
|
|
|
21268
23307
|
}
|
|
21269
23308
|
for (index = 0, length2 = objectKeyList.length; index < length2; index += 1) {
|
|
21270
23309
|
pairBuffer = "";
|
|
21271
|
-
if (!
|
|
23310
|
+
if (!compact3 || _result !== "") {
|
|
21272
23311
|
pairBuffer += generateNextLine(state, level);
|
|
21273
23312
|
}
|
|
21274
23313
|
objectKey = objectKeyList[index];
|
|
@@ -21336,7 +23375,7 @@ function detectType(state, object, explicit) {
|
|
|
21336
23375
|
}
|
|
21337
23376
|
return false;
|
|
21338
23377
|
}
|
|
21339
|
-
function writeNode(state, level, object, block,
|
|
23378
|
+
function writeNode(state, level, object, block, compact3, iskey, isblockseq) {
|
|
21340
23379
|
state.tag = null;
|
|
21341
23380
|
state.dump = object;
|
|
21342
23381
|
if (!detectType(state, object, false)) {
|
|
@@ -21354,7 +23393,7 @@ function writeNode(state, level, object, block, compact, iskey, isblockseq) {
|
|
|
21354
23393
|
duplicate = duplicateIndex !== -1;
|
|
21355
23394
|
}
|
|
21356
23395
|
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
|
|
21357
|
-
|
|
23396
|
+
compact3 = false;
|
|
21358
23397
|
}
|
|
21359
23398
|
if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
|
21360
23399
|
state.dump = "*ref_" + duplicateIndex;
|
|
@@ -21364,7 +23403,7 @@ function writeNode(state, level, object, block, compact, iskey, isblockseq) {
|
|
|
21364
23403
|
}
|
|
21365
23404
|
if (type2 === "[object Object]") {
|
|
21366
23405
|
if (block && Object.keys(state.dump).length !== 0) {
|
|
21367
|
-
writeBlockMapping(state, level, state.dump,
|
|
23406
|
+
writeBlockMapping(state, level, state.dump, compact3);
|
|
21368
23407
|
if (duplicate) {
|
|
21369
23408
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
21370
23409
|
}
|
|
@@ -21377,9 +23416,9 @@ function writeNode(state, level, object, block, compact, iskey, isblockseq) {
|
|
|
21377
23416
|
} else if (type2 === "[object Array]") {
|
|
21378
23417
|
if (block && state.dump.length !== 0) {
|
|
21379
23418
|
if (state.noArrayIndent && !isblockseq && level > 0) {
|
|
21380
|
-
writeBlockSequence(state, level - 1, state.dump,
|
|
23419
|
+
writeBlockSequence(state, level - 1, state.dump, compact3);
|
|
21381
23420
|
} else {
|
|
21382
|
-
writeBlockSequence(state, level, state.dump,
|
|
23421
|
+
writeBlockSequence(state, level, state.dump, compact3);
|
|
21383
23422
|
}
|
|
21384
23423
|
if (duplicate) {
|
|
21385
23424
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
@@ -21490,7 +23529,7 @@ var types$1 = {
|
|
|
21490
23529
|
timestamp,
|
|
21491
23530
|
bool,
|
|
21492
23531
|
int,
|
|
21493
|
-
merge,
|
|
23532
|
+
merge: merge2,
|
|
21494
23533
|
omap,
|
|
21495
23534
|
seq,
|
|
21496
23535
|
str
|
|
@@ -29540,13 +31579,13 @@ function checkSelection(selection, docLength) {
|
|
|
29540
31579
|
}
|
|
29541
31580
|
let nextID = 0;
|
|
29542
31581
|
class Facet {
|
|
29543
|
-
constructor(
|
|
29544
|
-
this.combine =
|
|
31582
|
+
constructor(combine3, compareInput, compare2, isStatic, enables) {
|
|
31583
|
+
this.combine = combine3;
|
|
29545
31584
|
this.compareInput = compareInput;
|
|
29546
31585
|
this.compare = compare2;
|
|
29547
31586
|
this.isStatic = isStatic;
|
|
29548
31587
|
this.id = nextID++;
|
|
29549
|
-
this.default =
|
|
31588
|
+
this.default = combine3([]);
|
|
29550
31589
|
this.extensions = typeof enables == "function" ? enables(this) : enables;
|
|
29551
31590
|
}
|
|
29552
31591
|
/**
|
|
@@ -30652,7 +32691,7 @@ EditorState.changeFilter = changeFilter;
|
|
|
30652
32691
|
EditorState.transactionFilter = transactionFilter;
|
|
30653
32692
|
EditorState.transactionExtender = transactionExtender;
|
|
30654
32693
|
Compartment.reconfigure = /* @__PURE__ */ StateEffect.define();
|
|
30655
|
-
function combineConfig(configs, defaults2,
|
|
32694
|
+
function combineConfig(configs, defaults2, combine3 = {}) {
|
|
30656
32695
|
let result = {};
|
|
30657
32696
|
for (let config2 of configs)
|
|
30658
32697
|
for (let key of Object.keys(config2)) {
|
|
@@ -30661,8 +32700,8 @@ function combineConfig(configs, defaults2, combine = {}) {
|
|
|
30661
32700
|
result[key] = value;
|
|
30662
32701
|
else if (current === value || value === void 0)
|
|
30663
32702
|
;
|
|
30664
|
-
else if (Object.hasOwnProperty.call(
|
|
30665
|
-
result[key] =
|
|
32703
|
+
else if (Object.hasOwnProperty.call(combine3, key))
|
|
32704
|
+
result[key] = combine3[key](current, value);
|
|
30666
32705
|
else
|
|
30667
32706
|
throw new Error("Config merge conflict for field " + key);
|
|
30668
32707
|
}
|
|
@@ -33836,9 +35875,9 @@ function computeOrder(line, direction) {
|
|
|
33836
35875
|
let end = i + 1;
|
|
33837
35876
|
while (end < len && types[end] == 64)
|
|
33838
35877
|
end++;
|
|
33839
|
-
let
|
|
35878
|
+
let replace2 = i && prev == 8 || end < len && types[end] == 8 ? prevStrong == 1 ? 1 : 8 : 256;
|
|
33840
35879
|
for (let j2 = i; j2 < end; j2++)
|
|
33841
|
-
types[j2] =
|
|
35880
|
+
types[j2] = replace2;
|
|
33842
35881
|
i = end - 1;
|
|
33843
35882
|
} else if (type2 == 8 && prevStrong == 1) {
|
|
33844
35883
|
types[i] = 1;
|
|
@@ -33891,9 +35930,9 @@ function computeOrder(line, direction) {
|
|
|
33891
35930
|
end++;
|
|
33892
35931
|
let beforeL = (i ? types[i - 1] : outerType) == 1;
|
|
33893
35932
|
let afterL = (end < len ? types[end] : outerType) == 1;
|
|
33894
|
-
let
|
|
35933
|
+
let replace2 = beforeL == afterL ? beforeL ? 1 : 2 : outerType;
|
|
33895
35934
|
for (let j2 = i; j2 < end; j2++)
|
|
33896
|
-
types[j2] =
|
|
35935
|
+
types[j2] = replace2;
|
|
33897
35936
|
i = end - 1;
|
|
33898
35937
|
}
|
|
33899
35938
|
}
|
|
@@ -41903,14 +43942,14 @@ function bracketMatching(config2 = {}) {
|
|
|
41903
43942
|
return [bracketMatchingConfig.of(config2), bracketMatchingUnique];
|
|
41904
43943
|
}
|
|
41905
43944
|
const bracketMatchingHandle = /* @__PURE__ */ new NodeProp();
|
|
41906
|
-
function matchingNodes(node, dir,
|
|
43945
|
+
function matchingNodes(node, dir, brackets2) {
|
|
41907
43946
|
let byProp = node.prop(dir < 0 ? NodeProp.openedBy : NodeProp.closedBy);
|
|
41908
43947
|
if (byProp)
|
|
41909
43948
|
return byProp;
|
|
41910
43949
|
if (node.name.length == 1) {
|
|
41911
|
-
let index =
|
|
43950
|
+
let index = brackets2.indexOf(node.name);
|
|
41912
43951
|
if (index > -1 && index % 2 == (dir < 0 ? 1 : 0))
|
|
41913
|
-
return [
|
|
43952
|
+
return [brackets2[index + dir]];
|
|
41914
43953
|
}
|
|
41915
43954
|
return null;
|
|
41916
43955
|
}
|
|
@@ -41919,19 +43958,19 @@ function findHandle(node) {
|
|
|
41919
43958
|
return hasHandle ? hasHandle(node.node) : node;
|
|
41920
43959
|
}
|
|
41921
43960
|
function matchBrackets(state, pos, dir, config2 = {}) {
|
|
41922
|
-
let maxScanDistance = config2.maxScanDistance || DefaultScanDist,
|
|
43961
|
+
let maxScanDistance = config2.maxScanDistance || DefaultScanDist, brackets2 = config2.brackets || DefaultBrackets;
|
|
41923
43962
|
let tree = syntaxTree(state), node = tree.resolveInner(pos, dir);
|
|
41924
43963
|
for (let cur2 = node; cur2; cur2 = cur2.parent) {
|
|
41925
|
-
let matches = matchingNodes(cur2.type, dir,
|
|
43964
|
+
let matches = matchingNodes(cur2.type, dir, brackets2);
|
|
41926
43965
|
if (matches && cur2.from < cur2.to) {
|
|
41927
43966
|
let handle = findHandle(cur2);
|
|
41928
43967
|
if (handle && (dir > 0 ? pos >= handle.from && pos < handle.to : pos > handle.from && pos <= handle.to))
|
|
41929
|
-
return matchMarkedBrackets(state, pos, dir, cur2, handle, matches,
|
|
43968
|
+
return matchMarkedBrackets(state, pos, dir, cur2, handle, matches, brackets2);
|
|
41930
43969
|
}
|
|
41931
43970
|
}
|
|
41932
|
-
return matchPlainBrackets(state, pos, dir, tree, node.type, maxScanDistance,
|
|
43971
|
+
return matchPlainBrackets(state, pos, dir, tree, node.type, maxScanDistance, brackets2);
|
|
41933
43972
|
}
|
|
41934
|
-
function matchMarkedBrackets(_state, _pos, dir, token, handle, matching,
|
|
43973
|
+
function matchMarkedBrackets(_state, _pos, dir, token, handle, matching, brackets2) {
|
|
41935
43974
|
let parent = token.parent, firstToken = { from: handle.from, to: handle.to };
|
|
41936
43975
|
let depth = 0, cursor = parent === null || parent === void 0 ? void 0 : parent.cursor();
|
|
41937
43976
|
if (cursor && (dir < 0 ? cursor.childBefore(token.from) : cursor.childAfter(token.to)))
|
|
@@ -41940,9 +43979,9 @@ function matchMarkedBrackets(_state, _pos, dir, token, handle, matching, bracket
|
|
|
41940
43979
|
if (depth == 0 && matching.indexOf(cursor.type.name) > -1 && cursor.from < cursor.to) {
|
|
41941
43980
|
let endHandle = findHandle(cursor);
|
|
41942
43981
|
return { start: firstToken, end: endHandle ? { from: endHandle.from, to: endHandle.to } : void 0, matched: true };
|
|
41943
|
-
} else if (matchingNodes(cursor.type, dir,
|
|
43982
|
+
} else if (matchingNodes(cursor.type, dir, brackets2)) {
|
|
41944
43983
|
depth++;
|
|
41945
|
-
} else if (matchingNodes(cursor.type, -dir,
|
|
43984
|
+
} else if (matchingNodes(cursor.type, -dir, brackets2)) {
|
|
41946
43985
|
if (depth == 0) {
|
|
41947
43986
|
let endHandle = findHandle(cursor);
|
|
41948
43987
|
return {
|
|
@@ -41957,9 +43996,9 @@ function matchMarkedBrackets(_state, _pos, dir, token, handle, matching, bracket
|
|
|
41957
43996
|
} while (dir < 0 ? cursor.prevSibling() : cursor.nextSibling());
|
|
41958
43997
|
return { start: firstToken, matched: false };
|
|
41959
43998
|
}
|
|
41960
|
-
function matchPlainBrackets(state, pos, dir, tree, tokenType, maxScanDistance,
|
|
43999
|
+
function matchPlainBrackets(state, pos, dir, tree, tokenType, maxScanDistance, brackets2) {
|
|
41961
44000
|
let startCh = dir < 0 ? state.sliceDoc(pos - 1, pos) : state.sliceDoc(pos, pos + 1);
|
|
41962
|
-
let bracket2 =
|
|
44001
|
+
let bracket2 = brackets2.indexOf(startCh);
|
|
41963
44002
|
if (bracket2 < 0 || bracket2 % 2 == 0 != dir > 0)
|
|
41964
44003
|
return null;
|
|
41965
44004
|
let startToken = { from: dir < 0 ? pos - 1 : pos, to: dir > 0 ? pos + 1 : pos };
|
|
@@ -41970,7 +44009,7 @@ function matchPlainBrackets(state, pos, dir, tree, tokenType, maxScanDistance, b
|
|
|
41970
44009
|
distance += text2.length;
|
|
41971
44010
|
let basePos = pos + distance * dir;
|
|
41972
44011
|
for (let pos2 = dir > 0 ? 0 : text2.length - 1, end = dir > 0 ? text2.length : -1; pos2 != end; pos2 += dir) {
|
|
41973
|
-
let found =
|
|
44012
|
+
let found = brackets2.indexOf(text2[pos2]);
|
|
41974
44013
|
if (found < 0 || tree.resolveInner(basePos + pos2, 1).type != tokenType)
|
|
41975
44014
|
continue;
|
|
41976
44015
|
if (found % 2 == 0 == dir > 0) {
|