@ibiz-template/model-helper 0.7.41-alpha.21 → 0.7.41-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +67 -2173
- package/dist/index.system.min.js +1 -1
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -394,2140 +394,9 @@ var require_pluralize = __commonJS({
|
|
|
394
394
|
}
|
|
395
395
|
});
|
|
396
396
|
|
|
397
|
-
// ../../node_modules/.pnpm/
|
|
398
|
-
var require_shams = __commonJS({
|
|
399
|
-
"../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js"(exports, module) {
|
|
400
|
-
"use strict";
|
|
401
|
-
module.exports = function hasSymbols() {
|
|
402
|
-
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
403
|
-
return false;
|
|
404
|
-
}
|
|
405
|
-
if (typeof Symbol.iterator === "symbol") {
|
|
406
|
-
return true;
|
|
407
|
-
}
|
|
408
|
-
var obj = {};
|
|
409
|
-
var sym = Symbol("test");
|
|
410
|
-
var symObj = Object(sym);
|
|
411
|
-
if (typeof sym === "string") {
|
|
412
|
-
return false;
|
|
413
|
-
}
|
|
414
|
-
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
415
|
-
return false;
|
|
416
|
-
}
|
|
417
|
-
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
418
|
-
return false;
|
|
419
|
-
}
|
|
420
|
-
var symVal = 42;
|
|
421
|
-
obj[sym] = symVal;
|
|
422
|
-
for (sym in obj) {
|
|
423
|
-
return false;
|
|
424
|
-
}
|
|
425
|
-
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
426
|
-
return false;
|
|
427
|
-
}
|
|
428
|
-
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
429
|
-
return false;
|
|
430
|
-
}
|
|
431
|
-
var syms = Object.getOwnPropertySymbols(obj);
|
|
432
|
-
if (syms.length !== 1 || syms[0] !== sym) {
|
|
433
|
-
return false;
|
|
434
|
-
}
|
|
435
|
-
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
436
|
-
return false;
|
|
437
|
-
}
|
|
438
|
-
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
439
|
-
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
440
|
-
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
441
|
-
return false;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
return true;
|
|
445
|
-
};
|
|
446
|
-
}
|
|
447
|
-
});
|
|
448
|
-
|
|
449
|
-
// ../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js
|
|
450
|
-
var require_has_symbols = __commonJS({
|
|
451
|
-
"../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js"(exports, module) {
|
|
452
|
-
"use strict";
|
|
453
|
-
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
454
|
-
var hasSymbolSham = require_shams();
|
|
455
|
-
module.exports = function hasNativeSymbols() {
|
|
456
|
-
if (typeof origSymbol !== "function") {
|
|
457
|
-
return false;
|
|
458
|
-
}
|
|
459
|
-
if (typeof Symbol !== "function") {
|
|
460
|
-
return false;
|
|
461
|
-
}
|
|
462
|
-
if (typeof origSymbol("foo") !== "symbol") {
|
|
463
|
-
return false;
|
|
464
|
-
}
|
|
465
|
-
if (typeof Symbol("bar") !== "symbol") {
|
|
466
|
-
return false;
|
|
467
|
-
}
|
|
468
|
-
return hasSymbolSham();
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
});
|
|
472
|
-
|
|
473
|
-
// ../../node_modules/.pnpm/function-bind@1.1.1/node_modules/function-bind/implementation.js
|
|
474
|
-
var require_implementation = __commonJS({
|
|
475
|
-
"../../node_modules/.pnpm/function-bind@1.1.1/node_modules/function-bind/implementation.js"(exports, module) {
|
|
476
|
-
"use strict";
|
|
477
|
-
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
478
|
-
var slice = Array.prototype.slice;
|
|
479
|
-
var toStr = Object.prototype.toString;
|
|
480
|
-
var funcType = "[object Function]";
|
|
481
|
-
module.exports = function bind(that) {
|
|
482
|
-
var target = this;
|
|
483
|
-
if (typeof target !== "function" || toStr.call(target) !== funcType) {
|
|
484
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
485
|
-
}
|
|
486
|
-
var args = slice.call(arguments, 1);
|
|
487
|
-
var bound;
|
|
488
|
-
var binder = function() {
|
|
489
|
-
if (this instanceof bound) {
|
|
490
|
-
var result = target.apply(
|
|
491
|
-
this,
|
|
492
|
-
args.concat(slice.call(arguments))
|
|
493
|
-
);
|
|
494
|
-
if (Object(result) === result) {
|
|
495
|
-
return result;
|
|
496
|
-
}
|
|
497
|
-
return this;
|
|
498
|
-
} else {
|
|
499
|
-
return target.apply(
|
|
500
|
-
that,
|
|
501
|
-
args.concat(slice.call(arguments))
|
|
502
|
-
);
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
var boundLength = Math.max(0, target.length - args.length);
|
|
506
|
-
var boundArgs = [];
|
|
507
|
-
for (var i = 0; i < boundLength; i++) {
|
|
508
|
-
boundArgs.push("$" + i);
|
|
509
|
-
}
|
|
510
|
-
bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
511
|
-
if (target.prototype) {
|
|
512
|
-
var Empty = function Empty2() {
|
|
513
|
-
};
|
|
514
|
-
Empty.prototype = target.prototype;
|
|
515
|
-
bound.prototype = new Empty();
|
|
516
|
-
Empty.prototype = null;
|
|
517
|
-
}
|
|
518
|
-
return bound;
|
|
519
|
-
};
|
|
520
|
-
}
|
|
521
|
-
});
|
|
522
|
-
|
|
523
|
-
// ../../node_modules/.pnpm/function-bind@1.1.1/node_modules/function-bind/index.js
|
|
524
|
-
var require_function_bind = __commonJS({
|
|
525
|
-
"../../node_modules/.pnpm/function-bind@1.1.1/node_modules/function-bind/index.js"(exports, module) {
|
|
526
|
-
"use strict";
|
|
527
|
-
var implementation = require_implementation();
|
|
528
|
-
module.exports = Function.prototype.bind || implementation;
|
|
529
|
-
}
|
|
530
|
-
});
|
|
531
|
-
|
|
532
|
-
// ../../node_modules/.pnpm/has@1.0.3/node_modules/has/src/index.js
|
|
533
|
-
var require_src = __commonJS({
|
|
534
|
-
"../../node_modules/.pnpm/has@1.0.3/node_modules/has/src/index.js"(exports, module) {
|
|
535
|
-
"use strict";
|
|
536
|
-
var bind = require_function_bind();
|
|
537
|
-
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
538
|
-
}
|
|
539
|
-
});
|
|
540
|
-
|
|
541
|
-
// ../../node_modules/.pnpm/get-intrinsic@1.2.0/node_modules/get-intrinsic/index.js
|
|
542
|
-
var require_get_intrinsic = __commonJS({
|
|
543
|
-
"../../node_modules/.pnpm/get-intrinsic@1.2.0/node_modules/get-intrinsic/index.js"(exports, module) {
|
|
544
|
-
"use strict";
|
|
545
|
-
var undefined2;
|
|
546
|
-
var $SyntaxError = SyntaxError;
|
|
547
|
-
var $Function = Function;
|
|
548
|
-
var $TypeError = TypeError;
|
|
549
|
-
var getEvalledConstructor = function(expressionSyntax) {
|
|
550
|
-
try {
|
|
551
|
-
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
552
|
-
} catch (e) {
|
|
553
|
-
}
|
|
554
|
-
};
|
|
555
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
556
|
-
if ($gOPD) {
|
|
557
|
-
try {
|
|
558
|
-
$gOPD({}, "");
|
|
559
|
-
} catch (e) {
|
|
560
|
-
$gOPD = null;
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
var throwTypeError = function() {
|
|
564
|
-
throw new $TypeError();
|
|
565
|
-
};
|
|
566
|
-
var ThrowTypeError = $gOPD ? function() {
|
|
567
|
-
try {
|
|
568
|
-
arguments.callee;
|
|
569
|
-
return throwTypeError;
|
|
570
|
-
} catch (calleeThrows) {
|
|
571
|
-
try {
|
|
572
|
-
return $gOPD(arguments, "callee").get;
|
|
573
|
-
} catch (gOPDthrows) {
|
|
574
|
-
return throwTypeError;
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
}() : throwTypeError;
|
|
578
|
-
var hasSymbols = require_has_symbols()();
|
|
579
|
-
var getProto = Object.getPrototypeOf || function(x) {
|
|
580
|
-
return x.__proto__;
|
|
581
|
-
};
|
|
582
|
-
var needsEval = {};
|
|
583
|
-
var TypedArray = typeof Uint8Array === "undefined" ? undefined2 : getProto(Uint8Array);
|
|
584
|
-
var INTRINSICS = {
|
|
585
|
-
"%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
|
|
586
|
-
"%Array%": Array,
|
|
587
|
-
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
|
|
588
|
-
"%ArrayIteratorPrototype%": hasSymbols ? getProto([][Symbol.iterator]()) : undefined2,
|
|
589
|
-
"%AsyncFromSyncIteratorPrototype%": undefined2,
|
|
590
|
-
"%AsyncFunction%": needsEval,
|
|
591
|
-
"%AsyncGenerator%": needsEval,
|
|
592
|
-
"%AsyncGeneratorFunction%": needsEval,
|
|
593
|
-
"%AsyncIteratorPrototype%": needsEval,
|
|
594
|
-
"%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
|
|
595
|
-
"%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
|
|
596
|
-
"%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
|
|
597
|
-
"%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
|
|
598
|
-
"%Boolean%": Boolean,
|
|
599
|
-
"%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
|
|
600
|
-
"%Date%": Date,
|
|
601
|
-
"%decodeURI%": decodeURI,
|
|
602
|
-
"%decodeURIComponent%": decodeURIComponent,
|
|
603
|
-
"%encodeURI%": encodeURI,
|
|
604
|
-
"%encodeURIComponent%": encodeURIComponent,
|
|
605
|
-
"%Error%": Error,
|
|
606
|
-
"%eval%": eval,
|
|
607
|
-
// eslint-disable-line no-eval
|
|
608
|
-
"%EvalError%": EvalError,
|
|
609
|
-
"%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
|
|
610
|
-
"%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
|
|
611
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
|
|
612
|
-
"%Function%": $Function,
|
|
613
|
-
"%GeneratorFunction%": needsEval,
|
|
614
|
-
"%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
|
|
615
|
-
"%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
|
|
616
|
-
"%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
|
|
617
|
-
"%isFinite%": isFinite,
|
|
618
|
-
"%isNaN%": isNaN,
|
|
619
|
-
"%IteratorPrototype%": hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
620
|
-
"%JSON%": typeof JSON === "object" ? JSON : undefined2,
|
|
621
|
-
"%Map%": typeof Map === "undefined" ? undefined2 : Map,
|
|
622
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
623
|
-
"%Math%": Math,
|
|
624
|
-
"%Number%": Number,
|
|
625
|
-
"%Object%": Object,
|
|
626
|
-
"%parseFloat%": parseFloat,
|
|
627
|
-
"%parseInt%": parseInt,
|
|
628
|
-
"%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
|
|
629
|
-
"%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
|
|
630
|
-
"%RangeError%": RangeError,
|
|
631
|
-
"%ReferenceError%": ReferenceError,
|
|
632
|
-
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
633
|
-
"%RegExp%": RegExp,
|
|
634
|
-
"%Set%": typeof Set === "undefined" ? undefined2 : Set,
|
|
635
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
636
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
|
|
637
|
-
"%String%": String,
|
|
638
|
-
"%StringIteratorPrototype%": hasSymbols ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
639
|
-
"%Symbol%": hasSymbols ? Symbol : undefined2,
|
|
640
|
-
"%SyntaxError%": $SyntaxError,
|
|
641
|
-
"%ThrowTypeError%": ThrowTypeError,
|
|
642
|
-
"%TypedArray%": TypedArray,
|
|
643
|
-
"%TypeError%": $TypeError,
|
|
644
|
-
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
|
|
645
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
|
|
646
|
-
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
|
|
647
|
-
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
|
|
648
|
-
"%URIError%": URIError,
|
|
649
|
-
"%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
|
|
650
|
-
"%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
|
|
651
|
-
"%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
|
|
652
|
-
};
|
|
653
|
-
try {
|
|
654
|
-
null.error;
|
|
655
|
-
} catch (e) {
|
|
656
|
-
errorProto = getProto(getProto(e));
|
|
657
|
-
INTRINSICS["%Error.prototype%"] = errorProto;
|
|
658
|
-
}
|
|
659
|
-
var errorProto;
|
|
660
|
-
var doEval = function doEval2(name) {
|
|
661
|
-
var value;
|
|
662
|
-
if (name === "%AsyncFunction%") {
|
|
663
|
-
value = getEvalledConstructor("async function () {}");
|
|
664
|
-
} else if (name === "%GeneratorFunction%") {
|
|
665
|
-
value = getEvalledConstructor("function* () {}");
|
|
666
|
-
} else if (name === "%AsyncGeneratorFunction%") {
|
|
667
|
-
value = getEvalledConstructor("async function* () {}");
|
|
668
|
-
} else if (name === "%AsyncGenerator%") {
|
|
669
|
-
var fn = doEval2("%AsyncGeneratorFunction%");
|
|
670
|
-
if (fn) {
|
|
671
|
-
value = fn.prototype;
|
|
672
|
-
}
|
|
673
|
-
} else if (name === "%AsyncIteratorPrototype%") {
|
|
674
|
-
var gen = doEval2("%AsyncGenerator%");
|
|
675
|
-
if (gen) {
|
|
676
|
-
value = getProto(gen.prototype);
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
INTRINSICS[name] = value;
|
|
680
|
-
return value;
|
|
681
|
-
};
|
|
682
|
-
var LEGACY_ALIASES = {
|
|
683
|
-
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
684
|
-
"%ArrayPrototype%": ["Array", "prototype"],
|
|
685
|
-
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
686
|
-
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
687
|
-
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
688
|
-
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
689
|
-
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
690
|
-
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
691
|
-
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
692
|
-
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
693
|
-
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
694
|
-
"%DatePrototype%": ["Date", "prototype"],
|
|
695
|
-
"%ErrorPrototype%": ["Error", "prototype"],
|
|
696
|
-
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
697
|
-
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
698
|
-
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
699
|
-
"%FunctionPrototype%": ["Function", "prototype"],
|
|
700
|
-
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
701
|
-
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
702
|
-
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
703
|
-
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
704
|
-
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
705
|
-
"%JSONParse%": ["JSON", "parse"],
|
|
706
|
-
"%JSONStringify%": ["JSON", "stringify"],
|
|
707
|
-
"%MapPrototype%": ["Map", "prototype"],
|
|
708
|
-
"%NumberPrototype%": ["Number", "prototype"],
|
|
709
|
-
"%ObjectPrototype%": ["Object", "prototype"],
|
|
710
|
-
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
711
|
-
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
712
|
-
"%PromisePrototype%": ["Promise", "prototype"],
|
|
713
|
-
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
714
|
-
"%Promise_all%": ["Promise", "all"],
|
|
715
|
-
"%Promise_reject%": ["Promise", "reject"],
|
|
716
|
-
"%Promise_resolve%": ["Promise", "resolve"],
|
|
717
|
-
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
718
|
-
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
719
|
-
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
720
|
-
"%SetPrototype%": ["Set", "prototype"],
|
|
721
|
-
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
722
|
-
"%StringPrototype%": ["String", "prototype"],
|
|
723
|
-
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
724
|
-
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
725
|
-
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
726
|
-
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
727
|
-
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
728
|
-
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
729
|
-
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
730
|
-
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
731
|
-
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
732
|
-
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
733
|
-
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
734
|
-
};
|
|
735
|
-
var bind = require_function_bind();
|
|
736
|
-
var hasOwn = require_src();
|
|
737
|
-
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
738
|
-
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
739
|
-
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
740
|
-
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
741
|
-
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
742
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
743
|
-
var reEscapeChar = /\\(\\)?/g;
|
|
744
|
-
var stringToPath = function stringToPath2(string) {
|
|
745
|
-
var first = $strSlice(string, 0, 1);
|
|
746
|
-
var last = $strSlice(string, -1);
|
|
747
|
-
if (first === "%" && last !== "%") {
|
|
748
|
-
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
749
|
-
} else if (last === "%" && first !== "%") {
|
|
750
|
-
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
751
|
-
}
|
|
752
|
-
var result = [];
|
|
753
|
-
$replace(string, rePropName, function(match, number, quote, subString) {
|
|
754
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
|
|
755
|
-
});
|
|
756
|
-
return result;
|
|
757
|
-
};
|
|
758
|
-
var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
|
|
759
|
-
var intrinsicName = name;
|
|
760
|
-
var alias;
|
|
761
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
762
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
763
|
-
intrinsicName = "%" + alias[0] + "%";
|
|
764
|
-
}
|
|
765
|
-
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
766
|
-
var value = INTRINSICS[intrinsicName];
|
|
767
|
-
if (value === needsEval) {
|
|
768
|
-
value = doEval(intrinsicName);
|
|
769
|
-
}
|
|
770
|
-
if (typeof value === "undefined" && !allowMissing) {
|
|
771
|
-
throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
772
|
-
}
|
|
773
|
-
return {
|
|
774
|
-
alias,
|
|
775
|
-
name: intrinsicName,
|
|
776
|
-
value
|
|
777
|
-
};
|
|
778
|
-
}
|
|
779
|
-
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
780
|
-
};
|
|
781
|
-
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
782
|
-
if (typeof name !== "string" || name.length === 0) {
|
|
783
|
-
throw new $TypeError("intrinsic name must be a non-empty string");
|
|
784
|
-
}
|
|
785
|
-
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
786
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
787
|
-
}
|
|
788
|
-
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
789
|
-
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
790
|
-
}
|
|
791
|
-
var parts = stringToPath(name);
|
|
792
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
793
|
-
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
794
|
-
var intrinsicRealName = intrinsic.name;
|
|
795
|
-
var value = intrinsic.value;
|
|
796
|
-
var skipFurtherCaching = false;
|
|
797
|
-
var alias = intrinsic.alias;
|
|
798
|
-
if (alias) {
|
|
799
|
-
intrinsicBaseName = alias[0];
|
|
800
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
801
|
-
}
|
|
802
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
803
|
-
var part = parts[i];
|
|
804
|
-
var first = $strSlice(part, 0, 1);
|
|
805
|
-
var last = $strSlice(part, -1);
|
|
806
|
-
if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
|
|
807
|
-
throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
808
|
-
}
|
|
809
|
-
if (part === "constructor" || !isOwn) {
|
|
810
|
-
skipFurtherCaching = true;
|
|
811
|
-
}
|
|
812
|
-
intrinsicBaseName += "." + part;
|
|
813
|
-
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
814
|
-
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
815
|
-
value = INTRINSICS[intrinsicRealName];
|
|
816
|
-
} else if (value != null) {
|
|
817
|
-
if (!(part in value)) {
|
|
818
|
-
if (!allowMissing) {
|
|
819
|
-
throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
|
|
820
|
-
}
|
|
821
|
-
return void 0;
|
|
822
|
-
}
|
|
823
|
-
if ($gOPD && i + 1 >= parts.length) {
|
|
824
|
-
var desc = $gOPD(value, part);
|
|
825
|
-
isOwn = !!desc;
|
|
826
|
-
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
827
|
-
value = desc.get;
|
|
828
|
-
} else {
|
|
829
|
-
value = value[part];
|
|
830
|
-
}
|
|
831
|
-
} else {
|
|
832
|
-
isOwn = hasOwn(value, part);
|
|
833
|
-
value = value[part];
|
|
834
|
-
}
|
|
835
|
-
if (isOwn && !skipFurtherCaching) {
|
|
836
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
return value;
|
|
841
|
-
};
|
|
842
|
-
}
|
|
843
|
-
});
|
|
844
|
-
|
|
845
|
-
// ../../node_modules/.pnpm/get-intrinsic@1.1.2/node_modules/get-intrinsic/index.js
|
|
846
|
-
var require_get_intrinsic2 = __commonJS({
|
|
847
|
-
"../../node_modules/.pnpm/get-intrinsic@1.1.2/node_modules/get-intrinsic/index.js"(exports, module) {
|
|
848
|
-
"use strict";
|
|
849
|
-
var undefined2;
|
|
850
|
-
var $SyntaxError = SyntaxError;
|
|
851
|
-
var $Function = Function;
|
|
852
|
-
var $TypeError = TypeError;
|
|
853
|
-
var getEvalledConstructor = function(expressionSyntax) {
|
|
854
|
-
try {
|
|
855
|
-
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
856
|
-
} catch (e) {
|
|
857
|
-
}
|
|
858
|
-
};
|
|
859
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
860
|
-
if ($gOPD) {
|
|
861
|
-
try {
|
|
862
|
-
$gOPD({}, "");
|
|
863
|
-
} catch (e) {
|
|
864
|
-
$gOPD = null;
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
var throwTypeError = function() {
|
|
868
|
-
throw new $TypeError();
|
|
869
|
-
};
|
|
870
|
-
var ThrowTypeError = $gOPD ? function() {
|
|
871
|
-
try {
|
|
872
|
-
arguments.callee;
|
|
873
|
-
return throwTypeError;
|
|
874
|
-
} catch (calleeThrows) {
|
|
875
|
-
try {
|
|
876
|
-
return $gOPD(arguments, "callee").get;
|
|
877
|
-
} catch (gOPDthrows) {
|
|
878
|
-
return throwTypeError;
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
}() : throwTypeError;
|
|
882
|
-
var hasSymbols = require_has_symbols()();
|
|
883
|
-
var getProto = Object.getPrototypeOf || function(x) {
|
|
884
|
-
return x.__proto__;
|
|
885
|
-
};
|
|
886
|
-
var needsEval = {};
|
|
887
|
-
var TypedArray = typeof Uint8Array === "undefined" ? undefined2 : getProto(Uint8Array);
|
|
888
|
-
var INTRINSICS = {
|
|
889
|
-
"%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
|
|
890
|
-
"%Array%": Array,
|
|
891
|
-
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
|
|
892
|
-
"%ArrayIteratorPrototype%": hasSymbols ? getProto([][Symbol.iterator]()) : undefined2,
|
|
893
|
-
"%AsyncFromSyncIteratorPrototype%": undefined2,
|
|
894
|
-
"%AsyncFunction%": needsEval,
|
|
895
|
-
"%AsyncGenerator%": needsEval,
|
|
896
|
-
"%AsyncGeneratorFunction%": needsEval,
|
|
897
|
-
"%AsyncIteratorPrototype%": needsEval,
|
|
898
|
-
"%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
|
|
899
|
-
"%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
|
|
900
|
-
"%Boolean%": Boolean,
|
|
901
|
-
"%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
|
|
902
|
-
"%Date%": Date,
|
|
903
|
-
"%decodeURI%": decodeURI,
|
|
904
|
-
"%decodeURIComponent%": decodeURIComponent,
|
|
905
|
-
"%encodeURI%": encodeURI,
|
|
906
|
-
"%encodeURIComponent%": encodeURIComponent,
|
|
907
|
-
"%Error%": Error,
|
|
908
|
-
"%eval%": eval,
|
|
909
|
-
// eslint-disable-line no-eval
|
|
910
|
-
"%EvalError%": EvalError,
|
|
911
|
-
"%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
|
|
912
|
-
"%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
|
|
913
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
|
|
914
|
-
"%Function%": $Function,
|
|
915
|
-
"%GeneratorFunction%": needsEval,
|
|
916
|
-
"%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
|
|
917
|
-
"%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
|
|
918
|
-
"%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
|
|
919
|
-
"%isFinite%": isFinite,
|
|
920
|
-
"%isNaN%": isNaN,
|
|
921
|
-
"%IteratorPrototype%": hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
922
|
-
"%JSON%": typeof JSON === "object" ? JSON : undefined2,
|
|
923
|
-
"%Map%": typeof Map === "undefined" ? undefined2 : Map,
|
|
924
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
925
|
-
"%Math%": Math,
|
|
926
|
-
"%Number%": Number,
|
|
927
|
-
"%Object%": Object,
|
|
928
|
-
"%parseFloat%": parseFloat,
|
|
929
|
-
"%parseInt%": parseInt,
|
|
930
|
-
"%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
|
|
931
|
-
"%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
|
|
932
|
-
"%RangeError%": RangeError,
|
|
933
|
-
"%ReferenceError%": ReferenceError,
|
|
934
|
-
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
935
|
-
"%RegExp%": RegExp,
|
|
936
|
-
"%Set%": typeof Set === "undefined" ? undefined2 : Set,
|
|
937
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
938
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
|
|
939
|
-
"%String%": String,
|
|
940
|
-
"%StringIteratorPrototype%": hasSymbols ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
941
|
-
"%Symbol%": hasSymbols ? Symbol : undefined2,
|
|
942
|
-
"%SyntaxError%": $SyntaxError,
|
|
943
|
-
"%ThrowTypeError%": ThrowTypeError,
|
|
944
|
-
"%TypedArray%": TypedArray,
|
|
945
|
-
"%TypeError%": $TypeError,
|
|
946
|
-
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
|
|
947
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
|
|
948
|
-
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
|
|
949
|
-
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
|
|
950
|
-
"%URIError%": URIError,
|
|
951
|
-
"%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
|
|
952
|
-
"%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
|
|
953
|
-
"%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
|
|
954
|
-
};
|
|
955
|
-
var doEval = function doEval2(name) {
|
|
956
|
-
var value;
|
|
957
|
-
if (name === "%AsyncFunction%") {
|
|
958
|
-
value = getEvalledConstructor("async function () {}");
|
|
959
|
-
} else if (name === "%GeneratorFunction%") {
|
|
960
|
-
value = getEvalledConstructor("function* () {}");
|
|
961
|
-
} else if (name === "%AsyncGeneratorFunction%") {
|
|
962
|
-
value = getEvalledConstructor("async function* () {}");
|
|
963
|
-
} else if (name === "%AsyncGenerator%") {
|
|
964
|
-
var fn = doEval2("%AsyncGeneratorFunction%");
|
|
965
|
-
if (fn) {
|
|
966
|
-
value = fn.prototype;
|
|
967
|
-
}
|
|
968
|
-
} else if (name === "%AsyncIteratorPrototype%") {
|
|
969
|
-
var gen = doEval2("%AsyncGenerator%");
|
|
970
|
-
if (gen) {
|
|
971
|
-
value = getProto(gen.prototype);
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
INTRINSICS[name] = value;
|
|
975
|
-
return value;
|
|
976
|
-
};
|
|
977
|
-
var LEGACY_ALIASES = {
|
|
978
|
-
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
979
|
-
"%ArrayPrototype%": ["Array", "prototype"],
|
|
980
|
-
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
981
|
-
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
982
|
-
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
983
|
-
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
984
|
-
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
985
|
-
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
986
|
-
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
987
|
-
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
988
|
-
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
989
|
-
"%DatePrototype%": ["Date", "prototype"],
|
|
990
|
-
"%ErrorPrototype%": ["Error", "prototype"],
|
|
991
|
-
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
992
|
-
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
993
|
-
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
994
|
-
"%FunctionPrototype%": ["Function", "prototype"],
|
|
995
|
-
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
996
|
-
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
997
|
-
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
998
|
-
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
999
|
-
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
1000
|
-
"%JSONParse%": ["JSON", "parse"],
|
|
1001
|
-
"%JSONStringify%": ["JSON", "stringify"],
|
|
1002
|
-
"%MapPrototype%": ["Map", "prototype"],
|
|
1003
|
-
"%NumberPrototype%": ["Number", "prototype"],
|
|
1004
|
-
"%ObjectPrototype%": ["Object", "prototype"],
|
|
1005
|
-
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
1006
|
-
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
1007
|
-
"%PromisePrototype%": ["Promise", "prototype"],
|
|
1008
|
-
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
1009
|
-
"%Promise_all%": ["Promise", "all"],
|
|
1010
|
-
"%Promise_reject%": ["Promise", "reject"],
|
|
1011
|
-
"%Promise_resolve%": ["Promise", "resolve"],
|
|
1012
|
-
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
1013
|
-
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
1014
|
-
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
1015
|
-
"%SetPrototype%": ["Set", "prototype"],
|
|
1016
|
-
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
1017
|
-
"%StringPrototype%": ["String", "prototype"],
|
|
1018
|
-
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
1019
|
-
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
1020
|
-
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
1021
|
-
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
1022
|
-
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
1023
|
-
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
1024
|
-
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
1025
|
-
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
1026
|
-
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1027
|
-
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1028
|
-
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1029
|
-
};
|
|
1030
|
-
var bind = require_function_bind();
|
|
1031
|
-
var hasOwn = require_src();
|
|
1032
|
-
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
1033
|
-
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
1034
|
-
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
1035
|
-
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
1036
|
-
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
1037
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
1038
|
-
var reEscapeChar = /\\(\\)?/g;
|
|
1039
|
-
var stringToPath = function stringToPath2(string) {
|
|
1040
|
-
var first = $strSlice(string, 0, 1);
|
|
1041
|
-
var last = $strSlice(string, -1);
|
|
1042
|
-
if (first === "%" && last !== "%") {
|
|
1043
|
-
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
1044
|
-
} else if (last === "%" && first !== "%") {
|
|
1045
|
-
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
1046
|
-
}
|
|
1047
|
-
var result = [];
|
|
1048
|
-
$replace(string, rePropName, function(match, number, quote, subString) {
|
|
1049
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
|
|
1050
|
-
});
|
|
1051
|
-
return result;
|
|
1052
|
-
};
|
|
1053
|
-
var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
|
|
1054
|
-
var intrinsicName = name;
|
|
1055
|
-
var alias;
|
|
1056
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
1057
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
1058
|
-
intrinsicName = "%" + alias[0] + "%";
|
|
1059
|
-
}
|
|
1060
|
-
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
1061
|
-
var value = INTRINSICS[intrinsicName];
|
|
1062
|
-
if (value === needsEval) {
|
|
1063
|
-
value = doEval(intrinsicName);
|
|
1064
|
-
}
|
|
1065
|
-
if (typeof value === "undefined" && !allowMissing) {
|
|
1066
|
-
throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
1067
|
-
}
|
|
1068
|
-
return {
|
|
1069
|
-
alias,
|
|
1070
|
-
name: intrinsicName,
|
|
1071
|
-
value
|
|
1072
|
-
};
|
|
1073
|
-
}
|
|
1074
|
-
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
1075
|
-
};
|
|
1076
|
-
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
1077
|
-
if (typeof name !== "string" || name.length === 0) {
|
|
1078
|
-
throw new $TypeError("intrinsic name must be a non-empty string");
|
|
1079
|
-
}
|
|
1080
|
-
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
1081
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
1082
|
-
}
|
|
1083
|
-
if ($exec(/^%?[^%]*%?$/g, name) === null) {
|
|
1084
|
-
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1085
|
-
}
|
|
1086
|
-
var parts = stringToPath(name);
|
|
1087
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
1088
|
-
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
1089
|
-
var intrinsicRealName = intrinsic.name;
|
|
1090
|
-
var value = intrinsic.value;
|
|
1091
|
-
var skipFurtherCaching = false;
|
|
1092
|
-
var alias = intrinsic.alias;
|
|
1093
|
-
if (alias) {
|
|
1094
|
-
intrinsicBaseName = alias[0];
|
|
1095
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
1096
|
-
}
|
|
1097
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
1098
|
-
var part = parts[i];
|
|
1099
|
-
var first = $strSlice(part, 0, 1);
|
|
1100
|
-
var last = $strSlice(part, -1);
|
|
1101
|
-
if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
|
|
1102
|
-
throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
1103
|
-
}
|
|
1104
|
-
if (part === "constructor" || !isOwn) {
|
|
1105
|
-
skipFurtherCaching = true;
|
|
1106
|
-
}
|
|
1107
|
-
intrinsicBaseName += "." + part;
|
|
1108
|
-
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
1109
|
-
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
1110
|
-
value = INTRINSICS[intrinsicRealName];
|
|
1111
|
-
} else if (value != null) {
|
|
1112
|
-
if (!(part in value)) {
|
|
1113
|
-
if (!allowMissing) {
|
|
1114
|
-
throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
|
|
1115
|
-
}
|
|
1116
|
-
return void 0;
|
|
1117
|
-
}
|
|
1118
|
-
if ($gOPD && i + 1 >= parts.length) {
|
|
1119
|
-
var desc = $gOPD(value, part);
|
|
1120
|
-
isOwn = !!desc;
|
|
1121
|
-
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
1122
|
-
value = desc.get;
|
|
1123
|
-
} else {
|
|
1124
|
-
value = value[part];
|
|
1125
|
-
}
|
|
1126
|
-
} else {
|
|
1127
|
-
isOwn = hasOwn(value, part);
|
|
1128
|
-
value = value[part];
|
|
1129
|
-
}
|
|
1130
|
-
if (isOwn && !skipFurtherCaching) {
|
|
1131
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
return value;
|
|
1136
|
-
};
|
|
1137
|
-
}
|
|
1138
|
-
});
|
|
1139
|
-
|
|
1140
|
-
// ../../node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/index.js
|
|
1141
|
-
var require_call_bind = __commonJS({
|
|
1142
|
-
"../../node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/index.js"(exports, module) {
|
|
1143
|
-
"use strict";
|
|
1144
|
-
var bind = require_function_bind();
|
|
1145
|
-
var GetIntrinsic = require_get_intrinsic2();
|
|
1146
|
-
var $apply = GetIntrinsic("%Function.prototype.apply%");
|
|
1147
|
-
var $call = GetIntrinsic("%Function.prototype.call%");
|
|
1148
|
-
var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
|
|
1149
|
-
var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
|
|
1150
|
-
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
|
|
1151
|
-
var $max = GetIntrinsic("%Math.max%");
|
|
1152
|
-
if ($defineProperty) {
|
|
1153
|
-
try {
|
|
1154
|
-
$defineProperty({}, "a", { value: 1 });
|
|
1155
|
-
} catch (e) {
|
|
1156
|
-
$defineProperty = null;
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
module.exports = function callBind(originalFunction) {
|
|
1160
|
-
var func = $reflectApply(bind, $call, arguments);
|
|
1161
|
-
if ($gOPD && $defineProperty) {
|
|
1162
|
-
var desc = $gOPD(func, "length");
|
|
1163
|
-
if (desc.configurable) {
|
|
1164
|
-
$defineProperty(
|
|
1165
|
-
func,
|
|
1166
|
-
"length",
|
|
1167
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
1168
|
-
);
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
return func;
|
|
1172
|
-
};
|
|
1173
|
-
var applyBind = function applyBind2() {
|
|
1174
|
-
return $reflectApply(bind, $apply, arguments);
|
|
1175
|
-
};
|
|
1176
|
-
if ($defineProperty) {
|
|
1177
|
-
$defineProperty(module.exports, "apply", { value: applyBind });
|
|
1178
|
-
} else {
|
|
1179
|
-
module.exports.apply = applyBind;
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
});
|
|
1183
|
-
|
|
1184
|
-
// ../../node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js
|
|
1185
|
-
var require_callBound = __commonJS({
|
|
1186
|
-
"../../node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js"(exports, module) {
|
|
1187
|
-
"use strict";
|
|
1188
|
-
var GetIntrinsic = require_get_intrinsic2();
|
|
1189
|
-
var callBind = require_call_bind();
|
|
1190
|
-
var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
|
|
1191
|
-
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
1192
|
-
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
1193
|
-
if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
|
|
1194
|
-
return callBind(intrinsic);
|
|
1195
|
-
}
|
|
1196
|
-
return intrinsic;
|
|
1197
|
-
};
|
|
1198
|
-
}
|
|
1199
|
-
});
|
|
1200
|
-
|
|
1201
|
-
// (disabled):../../node_modules/.pnpm/object-inspect@1.12.3/node_modules/object-inspect/util.inspect
|
|
1202
|
-
var require_util = __commonJS({
|
|
1203
|
-
"(disabled):../../node_modules/.pnpm/object-inspect@1.12.3/node_modules/object-inspect/util.inspect"() {
|
|
1204
|
-
"use strict";
|
|
1205
|
-
}
|
|
1206
|
-
});
|
|
1207
|
-
|
|
1208
|
-
// ../../node_modules/.pnpm/object-inspect@1.12.3/node_modules/object-inspect/index.js
|
|
1209
|
-
var require_object_inspect = __commonJS({
|
|
1210
|
-
"../../node_modules/.pnpm/object-inspect@1.12.3/node_modules/object-inspect/index.js"(exports, module) {
|
|
1211
|
-
"use strict";
|
|
1212
|
-
var hasMap = typeof Map === "function" && Map.prototype;
|
|
1213
|
-
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
|
|
1214
|
-
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
|
|
1215
|
-
var mapForEach = hasMap && Map.prototype.forEach;
|
|
1216
|
-
var hasSet = typeof Set === "function" && Set.prototype;
|
|
1217
|
-
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null;
|
|
1218
|
-
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null;
|
|
1219
|
-
var setForEach = hasSet && Set.prototype.forEach;
|
|
1220
|
-
var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype;
|
|
1221
|
-
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
1222
|
-
var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype;
|
|
1223
|
-
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
1224
|
-
var hasWeakRef = typeof WeakRef === "function" && WeakRef.prototype;
|
|
1225
|
-
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
1226
|
-
var booleanValueOf = Boolean.prototype.valueOf;
|
|
1227
|
-
var objectToString = Object.prototype.toString;
|
|
1228
|
-
var functionToString = Function.prototype.toString;
|
|
1229
|
-
var $match = String.prototype.match;
|
|
1230
|
-
var $slice = String.prototype.slice;
|
|
1231
|
-
var $replace = String.prototype.replace;
|
|
1232
|
-
var $toUpperCase = String.prototype.toUpperCase;
|
|
1233
|
-
var $toLowerCase = String.prototype.toLowerCase;
|
|
1234
|
-
var $test = RegExp.prototype.test;
|
|
1235
|
-
var $concat = Array.prototype.concat;
|
|
1236
|
-
var $join = Array.prototype.join;
|
|
1237
|
-
var $arrSlice = Array.prototype.slice;
|
|
1238
|
-
var $floor = Math.floor;
|
|
1239
|
-
var bigIntValueOf = typeof BigInt === "function" ? BigInt.prototype.valueOf : null;
|
|
1240
|
-
var gOPS = Object.getOwnPropertySymbols;
|
|
1241
|
-
var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null;
|
|
1242
|
-
var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object";
|
|
1243
|
-
var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null;
|
|
1244
|
-
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1245
|
-
var gPO = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O) {
|
|
1246
|
-
return O.__proto__;
|
|
1247
|
-
} : null);
|
|
1248
|
-
function addNumericSeparator(num, str) {
|
|
1249
|
-
if (num === Infinity || num === -Infinity || num !== num || num && num > -1e3 && num < 1e3 || $test.call(/e/, str)) {
|
|
1250
|
-
return str;
|
|
1251
|
-
}
|
|
1252
|
-
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
1253
|
-
if (typeof num === "number") {
|
|
1254
|
-
var int = num < 0 ? -$floor(-num) : $floor(num);
|
|
1255
|
-
if (int !== num) {
|
|
1256
|
-
var intStr = String(int);
|
|
1257
|
-
var dec = $slice.call(str, intStr.length + 1);
|
|
1258
|
-
return $replace.call(intStr, sepRegex, "$&_") + "." + $replace.call($replace.call(dec, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
return $replace.call(str, sepRegex, "$&_");
|
|
1262
|
-
}
|
|
1263
|
-
var utilInspect = require_util();
|
|
1264
|
-
var inspectCustom = utilInspect.custom;
|
|
1265
|
-
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
1266
|
-
module.exports = function inspect_(obj, options, depth, seen) {
|
|
1267
|
-
var opts = options || {};
|
|
1268
|
-
if (has(opts, "quoteStyle") && (opts.quoteStyle !== "single" && opts.quoteStyle !== "double")) {
|
|
1269
|
-
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1270
|
-
}
|
|
1271
|
-
if (has(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
|
|
1272
|
-
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
1273
|
-
}
|
|
1274
|
-
var customInspect = has(opts, "customInspect") ? opts.customInspect : true;
|
|
1275
|
-
if (typeof customInspect !== "boolean" && customInspect !== "symbol") {
|
|
1276
|
-
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
1277
|
-
}
|
|
1278
|
-
if (has(opts, "indent") && opts.indent !== null && opts.indent !== " " && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
|
|
1279
|
-
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
1280
|
-
}
|
|
1281
|
-
if (has(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") {
|
|
1282
|
-
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
1283
|
-
}
|
|
1284
|
-
var numericSeparator = opts.numericSeparator;
|
|
1285
|
-
if (typeof obj === "undefined") {
|
|
1286
|
-
return "undefined";
|
|
1287
|
-
}
|
|
1288
|
-
if (obj === null) {
|
|
1289
|
-
return "null";
|
|
1290
|
-
}
|
|
1291
|
-
if (typeof obj === "boolean") {
|
|
1292
|
-
return obj ? "true" : "false";
|
|
1293
|
-
}
|
|
1294
|
-
if (typeof obj === "string") {
|
|
1295
|
-
return inspectString(obj, opts);
|
|
1296
|
-
}
|
|
1297
|
-
if (typeof obj === "number") {
|
|
1298
|
-
if (obj === 0) {
|
|
1299
|
-
return Infinity / obj > 0 ? "0" : "-0";
|
|
1300
|
-
}
|
|
1301
|
-
var str = String(obj);
|
|
1302
|
-
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
|
1303
|
-
}
|
|
1304
|
-
if (typeof obj === "bigint") {
|
|
1305
|
-
var bigIntStr = String(obj) + "n";
|
|
1306
|
-
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
|
1307
|
-
}
|
|
1308
|
-
var maxDepth = typeof opts.depth === "undefined" ? 5 : opts.depth;
|
|
1309
|
-
if (typeof depth === "undefined") {
|
|
1310
|
-
depth = 0;
|
|
1311
|
-
}
|
|
1312
|
-
if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
|
|
1313
|
-
return isArray2(obj) ? "[Array]" : "[Object]";
|
|
1314
|
-
}
|
|
1315
|
-
var indent = getIndent(opts, depth);
|
|
1316
|
-
if (typeof seen === "undefined") {
|
|
1317
|
-
seen = [];
|
|
1318
|
-
} else if (indexOf(seen, obj) >= 0) {
|
|
1319
|
-
return "[Circular]";
|
|
1320
|
-
}
|
|
1321
|
-
function inspect(value, from, noIndent) {
|
|
1322
|
-
if (from) {
|
|
1323
|
-
seen = $arrSlice.call(seen);
|
|
1324
|
-
seen.push(from);
|
|
1325
|
-
}
|
|
1326
|
-
if (noIndent) {
|
|
1327
|
-
var newOpts = {
|
|
1328
|
-
depth: opts.depth
|
|
1329
|
-
};
|
|
1330
|
-
if (has(opts, "quoteStyle")) {
|
|
1331
|
-
newOpts.quoteStyle = opts.quoteStyle;
|
|
1332
|
-
}
|
|
1333
|
-
return inspect_(value, newOpts, depth + 1, seen);
|
|
1334
|
-
}
|
|
1335
|
-
return inspect_(value, opts, depth + 1, seen);
|
|
1336
|
-
}
|
|
1337
|
-
if (typeof obj === "function" && !isRegExp(obj)) {
|
|
1338
|
-
var name = nameOf(obj);
|
|
1339
|
-
var keys4 = arrObjKeys(obj, inspect);
|
|
1340
|
-
return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys4.length > 0 ? " { " + $join.call(keys4, ", ") + " }" : "");
|
|
1341
|
-
}
|
|
1342
|
-
if (isSymbol(obj)) {
|
|
1343
|
-
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj);
|
|
1344
|
-
return typeof obj === "object" && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
1345
|
-
}
|
|
1346
|
-
if (isElement(obj)) {
|
|
1347
|
-
var s = "<" + $toLowerCase.call(String(obj.nodeName));
|
|
1348
|
-
var attrs = obj.attributes || [];
|
|
1349
|
-
for (var i = 0; i < attrs.length; i++) {
|
|
1350
|
-
s += " " + attrs[i].name + "=" + wrapQuotes(quote(attrs[i].value), "double", opts);
|
|
1351
|
-
}
|
|
1352
|
-
s += ">";
|
|
1353
|
-
if (obj.childNodes && obj.childNodes.length) {
|
|
1354
|
-
s += "...";
|
|
1355
|
-
}
|
|
1356
|
-
s += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
|
|
1357
|
-
return s;
|
|
1358
|
-
}
|
|
1359
|
-
if (isArray2(obj)) {
|
|
1360
|
-
if (obj.length === 0) {
|
|
1361
|
-
return "[]";
|
|
1362
|
-
}
|
|
1363
|
-
var xs = arrObjKeys(obj, inspect);
|
|
1364
|
-
if (indent && !singleLineValues(xs)) {
|
|
1365
|
-
return "[" + indentedJoin(xs, indent) + "]";
|
|
1366
|
-
}
|
|
1367
|
-
return "[ " + $join.call(xs, ", ") + " ]";
|
|
1368
|
-
}
|
|
1369
|
-
if (isError(obj)) {
|
|
1370
|
-
var parts = arrObjKeys(obj, inspect);
|
|
1371
|
-
if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) {
|
|
1372
|
-
return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect(obj.cause), parts), ", ") + " }";
|
|
1373
|
-
}
|
|
1374
|
-
if (parts.length === 0) {
|
|
1375
|
-
return "[" + String(obj) + "]";
|
|
1376
|
-
}
|
|
1377
|
-
return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }";
|
|
1378
|
-
}
|
|
1379
|
-
if (typeof obj === "object" && customInspect) {
|
|
1380
|
-
if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) {
|
|
1381
|
-
return utilInspect(obj, { depth: maxDepth - depth });
|
|
1382
|
-
} else if (customInspect !== "symbol" && typeof obj.inspect === "function") {
|
|
1383
|
-
return obj.inspect();
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1386
|
-
if (isMap2(obj)) {
|
|
1387
|
-
var mapParts = [];
|
|
1388
|
-
if (mapForEach) {
|
|
1389
|
-
mapForEach.call(obj, function(value, key) {
|
|
1390
|
-
mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
|
|
1391
|
-
});
|
|
1392
|
-
}
|
|
1393
|
-
return collectionOf("Map", mapSize.call(obj), mapParts, indent);
|
|
1394
|
-
}
|
|
1395
|
-
if (isSet2(obj)) {
|
|
1396
|
-
var setParts = [];
|
|
1397
|
-
if (setForEach) {
|
|
1398
|
-
setForEach.call(obj, function(value) {
|
|
1399
|
-
setParts.push(inspect(value, obj));
|
|
1400
|
-
});
|
|
1401
|
-
}
|
|
1402
|
-
return collectionOf("Set", setSize.call(obj), setParts, indent);
|
|
1403
|
-
}
|
|
1404
|
-
if (isWeakMap(obj)) {
|
|
1405
|
-
return weakCollectionOf("WeakMap");
|
|
1406
|
-
}
|
|
1407
|
-
if (isWeakSet(obj)) {
|
|
1408
|
-
return weakCollectionOf("WeakSet");
|
|
1409
|
-
}
|
|
1410
|
-
if (isWeakRef(obj)) {
|
|
1411
|
-
return weakCollectionOf("WeakRef");
|
|
1412
|
-
}
|
|
1413
|
-
if (isNumber(obj)) {
|
|
1414
|
-
return markBoxed(inspect(Number(obj)));
|
|
1415
|
-
}
|
|
1416
|
-
if (isBigInt(obj)) {
|
|
1417
|
-
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
1418
|
-
}
|
|
1419
|
-
if (isBoolean(obj)) {
|
|
1420
|
-
return markBoxed(booleanValueOf.call(obj));
|
|
1421
|
-
}
|
|
1422
|
-
if (isString2(obj)) {
|
|
1423
|
-
return markBoxed(inspect(String(obj)));
|
|
1424
|
-
}
|
|
1425
|
-
if (!isDate(obj) && !isRegExp(obj)) {
|
|
1426
|
-
var ys = arrObjKeys(obj, inspect);
|
|
1427
|
-
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
1428
|
-
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
1429
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
1430
|
-
var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
1431
|
-
var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
|
|
1432
|
-
if (ys.length === 0) {
|
|
1433
|
-
return tag + "{}";
|
|
1434
|
-
}
|
|
1435
|
-
if (indent) {
|
|
1436
|
-
return tag + "{" + indentedJoin(ys, indent) + "}";
|
|
1437
|
-
}
|
|
1438
|
-
return tag + "{ " + $join.call(ys, ", ") + " }";
|
|
1439
|
-
}
|
|
1440
|
-
return String(obj);
|
|
1441
|
-
};
|
|
1442
|
-
function wrapQuotes(s, defaultStyle, opts) {
|
|
1443
|
-
var quoteChar = (opts.quoteStyle || defaultStyle) === "double" ? '"' : "'";
|
|
1444
|
-
return quoteChar + s + quoteChar;
|
|
1445
|
-
}
|
|
1446
|
-
function quote(s) {
|
|
1447
|
-
return $replace.call(String(s), /"/g, """);
|
|
1448
|
-
}
|
|
1449
|
-
function isArray2(obj) {
|
|
1450
|
-
return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1451
|
-
}
|
|
1452
|
-
function isDate(obj) {
|
|
1453
|
-
return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1454
|
-
}
|
|
1455
|
-
function isRegExp(obj) {
|
|
1456
|
-
return toStr(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1457
|
-
}
|
|
1458
|
-
function isError(obj) {
|
|
1459
|
-
return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1460
|
-
}
|
|
1461
|
-
function isString2(obj) {
|
|
1462
|
-
return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1463
|
-
}
|
|
1464
|
-
function isNumber(obj) {
|
|
1465
|
-
return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1466
|
-
}
|
|
1467
|
-
function isBoolean(obj) {
|
|
1468
|
-
return toStr(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1469
|
-
}
|
|
1470
|
-
function isSymbol(obj) {
|
|
1471
|
-
if (hasShammedSymbols) {
|
|
1472
|
-
return obj && typeof obj === "object" && obj instanceof Symbol;
|
|
1473
|
-
}
|
|
1474
|
-
if (typeof obj === "symbol") {
|
|
1475
|
-
return true;
|
|
1476
|
-
}
|
|
1477
|
-
if (!obj || typeof obj !== "object" || !symToString) {
|
|
1478
|
-
return false;
|
|
1479
|
-
}
|
|
1480
|
-
try {
|
|
1481
|
-
symToString.call(obj);
|
|
1482
|
-
return true;
|
|
1483
|
-
} catch (e) {
|
|
1484
|
-
}
|
|
1485
|
-
return false;
|
|
1486
|
-
}
|
|
1487
|
-
function isBigInt(obj) {
|
|
1488
|
-
if (!obj || typeof obj !== "object" || !bigIntValueOf) {
|
|
1489
|
-
return false;
|
|
1490
|
-
}
|
|
1491
|
-
try {
|
|
1492
|
-
bigIntValueOf.call(obj);
|
|
1493
|
-
return true;
|
|
1494
|
-
} catch (e) {
|
|
1495
|
-
}
|
|
1496
|
-
return false;
|
|
1497
|
-
}
|
|
1498
|
-
var hasOwn = Object.prototype.hasOwnProperty || function(key) {
|
|
1499
|
-
return key in this;
|
|
1500
|
-
};
|
|
1501
|
-
function has(obj, key) {
|
|
1502
|
-
return hasOwn.call(obj, key);
|
|
1503
|
-
}
|
|
1504
|
-
function toStr(obj) {
|
|
1505
|
-
return objectToString.call(obj);
|
|
1506
|
-
}
|
|
1507
|
-
function nameOf(f) {
|
|
1508
|
-
if (f.name) {
|
|
1509
|
-
return f.name;
|
|
1510
|
-
}
|
|
1511
|
-
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
1512
|
-
if (m) {
|
|
1513
|
-
return m[1];
|
|
1514
|
-
}
|
|
1515
|
-
return null;
|
|
1516
|
-
}
|
|
1517
|
-
function indexOf(xs, x) {
|
|
1518
|
-
if (xs.indexOf) {
|
|
1519
|
-
return xs.indexOf(x);
|
|
1520
|
-
}
|
|
1521
|
-
for (var i = 0, l = xs.length; i < l; i++) {
|
|
1522
|
-
if (xs[i] === x) {
|
|
1523
|
-
return i;
|
|
1524
|
-
}
|
|
1525
|
-
}
|
|
1526
|
-
return -1;
|
|
1527
|
-
}
|
|
1528
|
-
function isMap2(x) {
|
|
1529
|
-
if (!mapSize || !x || typeof x !== "object") {
|
|
1530
|
-
return false;
|
|
1531
|
-
}
|
|
1532
|
-
try {
|
|
1533
|
-
mapSize.call(x);
|
|
1534
|
-
try {
|
|
1535
|
-
setSize.call(x);
|
|
1536
|
-
} catch (s) {
|
|
1537
|
-
return true;
|
|
1538
|
-
}
|
|
1539
|
-
return x instanceof Map;
|
|
1540
|
-
} catch (e) {
|
|
1541
|
-
}
|
|
1542
|
-
return false;
|
|
1543
|
-
}
|
|
1544
|
-
function isWeakMap(x) {
|
|
1545
|
-
if (!weakMapHas || !x || typeof x !== "object") {
|
|
1546
|
-
return false;
|
|
1547
|
-
}
|
|
1548
|
-
try {
|
|
1549
|
-
weakMapHas.call(x, weakMapHas);
|
|
1550
|
-
try {
|
|
1551
|
-
weakSetHas.call(x, weakSetHas);
|
|
1552
|
-
} catch (s) {
|
|
1553
|
-
return true;
|
|
1554
|
-
}
|
|
1555
|
-
return x instanceof WeakMap;
|
|
1556
|
-
} catch (e) {
|
|
1557
|
-
}
|
|
1558
|
-
return false;
|
|
1559
|
-
}
|
|
1560
|
-
function isWeakRef(x) {
|
|
1561
|
-
if (!weakRefDeref || !x || typeof x !== "object") {
|
|
1562
|
-
return false;
|
|
1563
|
-
}
|
|
1564
|
-
try {
|
|
1565
|
-
weakRefDeref.call(x);
|
|
1566
|
-
return true;
|
|
1567
|
-
} catch (e) {
|
|
1568
|
-
}
|
|
1569
|
-
return false;
|
|
1570
|
-
}
|
|
1571
|
-
function isSet2(x) {
|
|
1572
|
-
if (!setSize || !x || typeof x !== "object") {
|
|
1573
|
-
return false;
|
|
1574
|
-
}
|
|
1575
|
-
try {
|
|
1576
|
-
setSize.call(x);
|
|
1577
|
-
try {
|
|
1578
|
-
mapSize.call(x);
|
|
1579
|
-
} catch (m) {
|
|
1580
|
-
return true;
|
|
1581
|
-
}
|
|
1582
|
-
return x instanceof Set;
|
|
1583
|
-
} catch (e) {
|
|
1584
|
-
}
|
|
1585
|
-
return false;
|
|
1586
|
-
}
|
|
1587
|
-
function isWeakSet(x) {
|
|
1588
|
-
if (!weakSetHas || !x || typeof x !== "object") {
|
|
1589
|
-
return false;
|
|
1590
|
-
}
|
|
1591
|
-
try {
|
|
1592
|
-
weakSetHas.call(x, weakSetHas);
|
|
1593
|
-
try {
|
|
1594
|
-
weakMapHas.call(x, weakMapHas);
|
|
1595
|
-
} catch (s) {
|
|
1596
|
-
return true;
|
|
1597
|
-
}
|
|
1598
|
-
return x instanceof WeakSet;
|
|
1599
|
-
} catch (e) {
|
|
1600
|
-
}
|
|
1601
|
-
return false;
|
|
1602
|
-
}
|
|
1603
|
-
function isElement(x) {
|
|
1604
|
-
if (!x || typeof x !== "object") {
|
|
1605
|
-
return false;
|
|
1606
|
-
}
|
|
1607
|
-
if (typeof HTMLElement !== "undefined" && x instanceof HTMLElement) {
|
|
1608
|
-
return true;
|
|
1609
|
-
}
|
|
1610
|
-
return typeof x.nodeName === "string" && typeof x.getAttribute === "function";
|
|
1611
|
-
}
|
|
1612
|
-
function inspectString(str, opts) {
|
|
1613
|
-
if (str.length > opts.maxStringLength) {
|
|
1614
|
-
var remaining = str.length - opts.maxStringLength;
|
|
1615
|
-
var trailer = "... " + remaining + " more character" + (remaining > 1 ? "s" : "");
|
|
1616
|
-
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
1617
|
-
}
|
|
1618
|
-
var s = $replace.call($replace.call(str, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, lowbyte);
|
|
1619
|
-
return wrapQuotes(s, "single", opts);
|
|
1620
|
-
}
|
|
1621
|
-
function lowbyte(c) {
|
|
1622
|
-
var n = c.charCodeAt(0);
|
|
1623
|
-
var x = {
|
|
1624
|
-
8: "b",
|
|
1625
|
-
9: "t",
|
|
1626
|
-
10: "n",
|
|
1627
|
-
12: "f",
|
|
1628
|
-
13: "r"
|
|
1629
|
-
}[n];
|
|
1630
|
-
if (x) {
|
|
1631
|
-
return "\\" + x;
|
|
1632
|
-
}
|
|
1633
|
-
return "\\x" + (n < 16 ? "0" : "") + $toUpperCase.call(n.toString(16));
|
|
1634
|
-
}
|
|
1635
|
-
function markBoxed(str) {
|
|
1636
|
-
return "Object(" + str + ")";
|
|
1637
|
-
}
|
|
1638
|
-
function weakCollectionOf(type3) {
|
|
1639
|
-
return type3 + " { ? }";
|
|
1640
|
-
}
|
|
1641
|
-
function collectionOf(type3, size, entries, indent) {
|
|
1642
|
-
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
|
|
1643
|
-
return type3 + " (" + size + ") {" + joinedEntries + "}";
|
|
1644
|
-
}
|
|
1645
|
-
function singleLineValues(xs) {
|
|
1646
|
-
for (var i = 0; i < xs.length; i++) {
|
|
1647
|
-
if (indexOf(xs[i], "\n") >= 0) {
|
|
1648
|
-
return false;
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
return true;
|
|
1652
|
-
}
|
|
1653
|
-
function getIndent(opts, depth) {
|
|
1654
|
-
var baseIndent;
|
|
1655
|
-
if (opts.indent === " ") {
|
|
1656
|
-
baseIndent = " ";
|
|
1657
|
-
} else if (typeof opts.indent === "number" && opts.indent > 0) {
|
|
1658
|
-
baseIndent = $join.call(Array(opts.indent + 1), " ");
|
|
1659
|
-
} else {
|
|
1660
|
-
return null;
|
|
1661
|
-
}
|
|
1662
|
-
return {
|
|
1663
|
-
base: baseIndent,
|
|
1664
|
-
prev: $join.call(Array(depth + 1), baseIndent)
|
|
1665
|
-
};
|
|
1666
|
-
}
|
|
1667
|
-
function indentedJoin(xs, indent) {
|
|
1668
|
-
if (xs.length === 0) {
|
|
1669
|
-
return "";
|
|
1670
|
-
}
|
|
1671
|
-
var lineJoiner = "\n" + indent.prev + indent.base;
|
|
1672
|
-
return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent.prev;
|
|
1673
|
-
}
|
|
1674
|
-
function arrObjKeys(obj, inspect) {
|
|
1675
|
-
var isArr = isArray2(obj);
|
|
1676
|
-
var xs = [];
|
|
1677
|
-
if (isArr) {
|
|
1678
|
-
xs.length = obj.length;
|
|
1679
|
-
for (var i = 0; i < obj.length; i++) {
|
|
1680
|
-
xs[i] = has(obj, i) ? inspect(obj[i], obj) : "";
|
|
1681
|
-
}
|
|
1682
|
-
}
|
|
1683
|
-
var syms = typeof gOPS === "function" ? gOPS(obj) : [];
|
|
1684
|
-
var symMap;
|
|
1685
|
-
if (hasShammedSymbols) {
|
|
1686
|
-
symMap = {};
|
|
1687
|
-
for (var k = 0; k < syms.length; k++) {
|
|
1688
|
-
symMap["$" + syms[k]] = syms[k];
|
|
1689
|
-
}
|
|
1690
|
-
}
|
|
1691
|
-
for (var key in obj) {
|
|
1692
|
-
if (!has(obj, key)) {
|
|
1693
|
-
continue;
|
|
1694
|
-
}
|
|
1695
|
-
if (isArr && String(Number(key)) === key && key < obj.length) {
|
|
1696
|
-
continue;
|
|
1697
|
-
}
|
|
1698
|
-
if (hasShammedSymbols && symMap["$" + key] instanceof Symbol) {
|
|
1699
|
-
continue;
|
|
1700
|
-
} else if ($test.call(/[^\w$]/, key)) {
|
|
1701
|
-
xs.push(inspect(key, obj) + ": " + inspect(obj[key], obj));
|
|
1702
|
-
} else {
|
|
1703
|
-
xs.push(key + ": " + inspect(obj[key], obj));
|
|
1704
|
-
}
|
|
1705
|
-
}
|
|
1706
|
-
if (typeof gOPS === "function") {
|
|
1707
|
-
for (var j = 0; j < syms.length; j++) {
|
|
1708
|
-
if (isEnumerable.call(obj, syms[j])) {
|
|
1709
|
-
xs.push("[" + inspect(syms[j]) + "]: " + inspect(obj[syms[j]], obj));
|
|
1710
|
-
}
|
|
1711
|
-
}
|
|
1712
|
-
}
|
|
1713
|
-
return xs;
|
|
1714
|
-
}
|
|
1715
|
-
}
|
|
1716
|
-
});
|
|
1717
|
-
|
|
1718
|
-
// ../../node_modules/.pnpm/side-channel@1.0.4/node_modules/side-channel/index.js
|
|
1719
|
-
var require_side_channel = __commonJS({
|
|
1720
|
-
"../../node_modules/.pnpm/side-channel@1.0.4/node_modules/side-channel/index.js"(exports, module) {
|
|
1721
|
-
"use strict";
|
|
1722
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
1723
|
-
var callBound = require_callBound();
|
|
1724
|
-
var inspect = require_object_inspect();
|
|
1725
|
-
var $TypeError = GetIntrinsic("%TypeError%");
|
|
1726
|
-
var $WeakMap = GetIntrinsic("%WeakMap%", true);
|
|
1727
|
-
var $Map = GetIntrinsic("%Map%", true);
|
|
1728
|
-
var $weakMapGet = callBound("WeakMap.prototype.get", true);
|
|
1729
|
-
var $weakMapSet = callBound("WeakMap.prototype.set", true);
|
|
1730
|
-
var $weakMapHas = callBound("WeakMap.prototype.has", true);
|
|
1731
|
-
var $mapGet = callBound("Map.prototype.get", true);
|
|
1732
|
-
var $mapSet = callBound("Map.prototype.set", true);
|
|
1733
|
-
var $mapHas = callBound("Map.prototype.has", true);
|
|
1734
|
-
var listGetNode = function(list, key) {
|
|
1735
|
-
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
1736
|
-
if (curr.key === key) {
|
|
1737
|
-
prev.next = curr.next;
|
|
1738
|
-
curr.next = list.next;
|
|
1739
|
-
list.next = curr;
|
|
1740
|
-
return curr;
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
1743
|
-
};
|
|
1744
|
-
var listGet = function(objects, key) {
|
|
1745
|
-
var node = listGetNode(objects, key);
|
|
1746
|
-
return node && node.value;
|
|
1747
|
-
};
|
|
1748
|
-
var listSet = function(objects, key, value) {
|
|
1749
|
-
var node = listGetNode(objects, key);
|
|
1750
|
-
if (node) {
|
|
1751
|
-
node.value = value;
|
|
1752
|
-
} else {
|
|
1753
|
-
objects.next = {
|
|
1754
|
-
// eslint-disable-line no-param-reassign
|
|
1755
|
-
key,
|
|
1756
|
-
next: objects.next,
|
|
1757
|
-
value
|
|
1758
|
-
};
|
|
1759
|
-
}
|
|
1760
|
-
};
|
|
1761
|
-
var listHas = function(objects, key) {
|
|
1762
|
-
return !!listGetNode(objects, key);
|
|
1763
|
-
};
|
|
1764
|
-
module.exports = function getSideChannel() {
|
|
1765
|
-
var $wm;
|
|
1766
|
-
var $m;
|
|
1767
|
-
var $o;
|
|
1768
|
-
var channel = {
|
|
1769
|
-
assert: function(key) {
|
|
1770
|
-
if (!channel.has(key)) {
|
|
1771
|
-
throw new $TypeError("Side channel does not contain " + inspect(key));
|
|
1772
|
-
}
|
|
1773
|
-
},
|
|
1774
|
-
get: function(key) {
|
|
1775
|
-
if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
|
|
1776
|
-
if ($wm) {
|
|
1777
|
-
return $weakMapGet($wm, key);
|
|
1778
|
-
}
|
|
1779
|
-
} else if ($Map) {
|
|
1780
|
-
if ($m) {
|
|
1781
|
-
return $mapGet($m, key);
|
|
1782
|
-
}
|
|
1783
|
-
} else {
|
|
1784
|
-
if ($o) {
|
|
1785
|
-
return listGet($o, key);
|
|
1786
|
-
}
|
|
1787
|
-
}
|
|
1788
|
-
},
|
|
1789
|
-
has: function(key) {
|
|
1790
|
-
if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
|
|
1791
|
-
if ($wm) {
|
|
1792
|
-
return $weakMapHas($wm, key);
|
|
1793
|
-
}
|
|
1794
|
-
} else if ($Map) {
|
|
1795
|
-
if ($m) {
|
|
1796
|
-
return $mapHas($m, key);
|
|
1797
|
-
}
|
|
1798
|
-
} else {
|
|
1799
|
-
if ($o) {
|
|
1800
|
-
return listHas($o, key);
|
|
1801
|
-
}
|
|
1802
|
-
}
|
|
1803
|
-
return false;
|
|
1804
|
-
},
|
|
1805
|
-
set: function(key, value) {
|
|
1806
|
-
if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
|
|
1807
|
-
if (!$wm) {
|
|
1808
|
-
$wm = new $WeakMap();
|
|
1809
|
-
}
|
|
1810
|
-
$weakMapSet($wm, key, value);
|
|
1811
|
-
} else if ($Map) {
|
|
1812
|
-
if (!$m) {
|
|
1813
|
-
$m = new $Map();
|
|
1814
|
-
}
|
|
1815
|
-
$mapSet($m, key, value);
|
|
1816
|
-
} else {
|
|
1817
|
-
if (!$o) {
|
|
1818
|
-
$o = { key: {}, next: null };
|
|
1819
|
-
}
|
|
1820
|
-
listSet($o, key, value);
|
|
1821
|
-
}
|
|
1822
|
-
}
|
|
1823
|
-
};
|
|
1824
|
-
return channel;
|
|
1825
|
-
};
|
|
1826
|
-
}
|
|
1827
|
-
});
|
|
1828
|
-
|
|
1829
|
-
// ../../node_modules/.pnpm/qs@6.11.2/node_modules/qs/lib/formats.js
|
|
1830
|
-
var require_formats = __commonJS({
|
|
1831
|
-
"../../node_modules/.pnpm/qs@6.11.2/node_modules/qs/lib/formats.js"(exports, module) {
|
|
1832
|
-
"use strict";
|
|
1833
|
-
var replace = String.prototype.replace;
|
|
1834
|
-
var percentTwenties = /%20/g;
|
|
1835
|
-
var Format = {
|
|
1836
|
-
RFC1738: "RFC1738",
|
|
1837
|
-
RFC3986: "RFC3986"
|
|
1838
|
-
};
|
|
1839
|
-
module.exports = {
|
|
1840
|
-
"default": Format.RFC3986,
|
|
1841
|
-
formatters: {
|
|
1842
|
-
RFC1738: function(value) {
|
|
1843
|
-
return replace.call(value, percentTwenties, "+");
|
|
1844
|
-
},
|
|
1845
|
-
RFC3986: function(value) {
|
|
1846
|
-
return String(value);
|
|
1847
|
-
}
|
|
1848
|
-
},
|
|
1849
|
-
RFC1738: Format.RFC1738,
|
|
1850
|
-
RFC3986: Format.RFC3986
|
|
1851
|
-
};
|
|
1852
|
-
}
|
|
1853
|
-
});
|
|
1854
|
-
|
|
1855
|
-
// ../../node_modules/.pnpm/qs@6.11.2/node_modules/qs/lib/utils.js
|
|
1856
|
-
var require_utils = __commonJS({
|
|
1857
|
-
"../../node_modules/.pnpm/qs@6.11.2/node_modules/qs/lib/utils.js"(exports, module) {
|
|
1858
|
-
"use strict";
|
|
1859
|
-
var formats = require_formats();
|
|
1860
|
-
var has = Object.prototype.hasOwnProperty;
|
|
1861
|
-
var isArray2 = Array.isArray;
|
|
1862
|
-
var hexTable = function() {
|
|
1863
|
-
var array = [];
|
|
1864
|
-
for (var i = 0; i < 256; ++i) {
|
|
1865
|
-
array.push("%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase());
|
|
1866
|
-
}
|
|
1867
|
-
return array;
|
|
1868
|
-
}();
|
|
1869
|
-
var compactQueue = function compactQueue2(queue) {
|
|
1870
|
-
while (queue.length > 1) {
|
|
1871
|
-
var item = queue.pop();
|
|
1872
|
-
var obj = item.obj[item.prop];
|
|
1873
|
-
if (isArray2(obj)) {
|
|
1874
|
-
var compacted = [];
|
|
1875
|
-
for (var j = 0; j < obj.length; ++j) {
|
|
1876
|
-
if (typeof obj[j] !== "undefined") {
|
|
1877
|
-
compacted.push(obj[j]);
|
|
1878
|
-
}
|
|
1879
|
-
}
|
|
1880
|
-
item.obj[item.prop] = compacted;
|
|
1881
|
-
}
|
|
1882
|
-
}
|
|
1883
|
-
};
|
|
1884
|
-
var arrayToObject = function arrayToObject2(source, options) {
|
|
1885
|
-
var obj = options && options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1886
|
-
for (var i = 0; i < source.length; ++i) {
|
|
1887
|
-
if (typeof source[i] !== "undefined") {
|
|
1888
|
-
obj[i] = source[i];
|
|
1889
|
-
}
|
|
1890
|
-
}
|
|
1891
|
-
return obj;
|
|
1892
|
-
};
|
|
1893
|
-
var merge = function merge2(target, source, options) {
|
|
1894
|
-
if (!source) {
|
|
1895
|
-
return target;
|
|
1896
|
-
}
|
|
1897
|
-
if (typeof source !== "object") {
|
|
1898
|
-
if (isArray2(target)) {
|
|
1899
|
-
target.push(source);
|
|
1900
|
-
} else if (target && typeof target === "object") {
|
|
1901
|
-
if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
|
|
1902
|
-
target[source] = true;
|
|
1903
|
-
}
|
|
1904
|
-
} else {
|
|
1905
|
-
return [target, source];
|
|
1906
|
-
}
|
|
1907
|
-
return target;
|
|
1908
|
-
}
|
|
1909
|
-
if (!target || typeof target !== "object") {
|
|
1910
|
-
return [target].concat(source);
|
|
1911
|
-
}
|
|
1912
|
-
var mergeTarget = target;
|
|
1913
|
-
if (isArray2(target) && !isArray2(source)) {
|
|
1914
|
-
mergeTarget = arrayToObject(target, options);
|
|
1915
|
-
}
|
|
1916
|
-
if (isArray2(target) && isArray2(source)) {
|
|
1917
|
-
source.forEach(function(item, i) {
|
|
1918
|
-
if (has.call(target, i)) {
|
|
1919
|
-
var targetItem = target[i];
|
|
1920
|
-
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
1921
|
-
target[i] = merge2(targetItem, item, options);
|
|
1922
|
-
} else {
|
|
1923
|
-
target.push(item);
|
|
1924
|
-
}
|
|
1925
|
-
} else {
|
|
1926
|
-
target[i] = item;
|
|
1927
|
-
}
|
|
1928
|
-
});
|
|
1929
|
-
return target;
|
|
1930
|
-
}
|
|
1931
|
-
return Object.keys(source).reduce(function(acc, key) {
|
|
1932
|
-
var value = source[key];
|
|
1933
|
-
if (has.call(acc, key)) {
|
|
1934
|
-
acc[key] = merge2(acc[key], value, options);
|
|
1935
|
-
} else {
|
|
1936
|
-
acc[key] = value;
|
|
1937
|
-
}
|
|
1938
|
-
return acc;
|
|
1939
|
-
}, mergeTarget);
|
|
1940
|
-
};
|
|
1941
|
-
var assign = function assignSingleSource(target, source) {
|
|
1942
|
-
return Object.keys(source).reduce(function(acc, key) {
|
|
1943
|
-
acc[key] = source[key];
|
|
1944
|
-
return acc;
|
|
1945
|
-
}, target);
|
|
1946
|
-
};
|
|
1947
|
-
var decode = function(str, decoder, charset) {
|
|
1948
|
-
var strWithoutPlus = str.replace(/\+/g, " ");
|
|
1949
|
-
if (charset === "iso-8859-1") {
|
|
1950
|
-
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
1951
|
-
}
|
|
1952
|
-
try {
|
|
1953
|
-
return decodeURIComponent(strWithoutPlus);
|
|
1954
|
-
} catch (e) {
|
|
1955
|
-
return strWithoutPlus;
|
|
1956
|
-
}
|
|
1957
|
-
};
|
|
1958
|
-
var encode = function encode2(str, defaultEncoder, charset, kind, format) {
|
|
1959
|
-
if (str.length === 0) {
|
|
1960
|
-
return str;
|
|
1961
|
-
}
|
|
1962
|
-
var string = str;
|
|
1963
|
-
if (typeof str === "symbol") {
|
|
1964
|
-
string = Symbol.prototype.toString.call(str);
|
|
1965
|
-
} else if (typeof str !== "string") {
|
|
1966
|
-
string = String(str);
|
|
1967
|
-
}
|
|
1968
|
-
if (charset === "iso-8859-1") {
|
|
1969
|
-
return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) {
|
|
1970
|
-
return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
|
|
1971
|
-
});
|
|
1972
|
-
}
|
|
1973
|
-
var out = "";
|
|
1974
|
-
for (var i = 0; i < string.length; ++i) {
|
|
1975
|
-
var c = string.charCodeAt(i);
|
|
1976
|
-
if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
|
|
1977
|
-
out += string.charAt(i);
|
|
1978
|
-
continue;
|
|
1979
|
-
}
|
|
1980
|
-
if (c < 128) {
|
|
1981
|
-
out = out + hexTable[c];
|
|
1982
|
-
continue;
|
|
1983
|
-
}
|
|
1984
|
-
if (c < 2048) {
|
|
1985
|
-
out = out + (hexTable[192 | c >> 6] + hexTable[128 | c & 63]);
|
|
1986
|
-
continue;
|
|
1987
|
-
}
|
|
1988
|
-
if (c < 55296 || c >= 57344) {
|
|
1989
|
-
out = out + (hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63]);
|
|
1990
|
-
continue;
|
|
1991
|
-
}
|
|
1992
|
-
i += 1;
|
|
1993
|
-
c = 65536 + ((c & 1023) << 10 | string.charCodeAt(i) & 1023);
|
|
1994
|
-
out += hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
1995
|
-
}
|
|
1996
|
-
return out;
|
|
1997
|
-
};
|
|
1998
|
-
var compact = function compact2(value) {
|
|
1999
|
-
var queue = [{ obj: { o: value }, prop: "o" }];
|
|
2000
|
-
var refs = [];
|
|
2001
|
-
for (var i = 0; i < queue.length; ++i) {
|
|
2002
|
-
var item = queue[i];
|
|
2003
|
-
var obj = item.obj[item.prop];
|
|
2004
|
-
var keys4 = Object.keys(obj);
|
|
2005
|
-
for (var j = 0; j < keys4.length; ++j) {
|
|
2006
|
-
var key = keys4[j];
|
|
2007
|
-
var val = obj[key];
|
|
2008
|
-
if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
|
|
2009
|
-
queue.push({ obj, prop: key });
|
|
2010
|
-
refs.push(val);
|
|
2011
|
-
}
|
|
2012
|
-
}
|
|
2013
|
-
}
|
|
2014
|
-
compactQueue(queue);
|
|
2015
|
-
return value;
|
|
2016
|
-
};
|
|
2017
|
-
var isRegExp = function isRegExp2(obj) {
|
|
2018
|
-
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
2019
|
-
};
|
|
2020
|
-
var isBuffer = function isBuffer2(obj) {
|
|
2021
|
-
if (!obj || typeof obj !== "object") {
|
|
2022
|
-
return false;
|
|
2023
|
-
}
|
|
2024
|
-
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
2025
|
-
};
|
|
2026
|
-
var combine = function combine2(a, b) {
|
|
2027
|
-
return [].concat(a, b);
|
|
2028
|
-
};
|
|
2029
|
-
var maybeMap = function maybeMap2(val, fn) {
|
|
2030
|
-
if (isArray2(val)) {
|
|
2031
|
-
var mapped = [];
|
|
2032
|
-
for (var i = 0; i < val.length; i += 1) {
|
|
2033
|
-
mapped.push(fn(val[i]));
|
|
2034
|
-
}
|
|
2035
|
-
return mapped;
|
|
2036
|
-
}
|
|
2037
|
-
return fn(val);
|
|
2038
|
-
};
|
|
2039
|
-
module.exports = {
|
|
2040
|
-
arrayToObject,
|
|
2041
|
-
assign,
|
|
2042
|
-
combine,
|
|
2043
|
-
compact,
|
|
2044
|
-
decode,
|
|
2045
|
-
encode,
|
|
2046
|
-
isBuffer,
|
|
2047
|
-
isRegExp,
|
|
2048
|
-
maybeMap,
|
|
2049
|
-
merge
|
|
2050
|
-
};
|
|
2051
|
-
}
|
|
2052
|
-
});
|
|
2053
|
-
|
|
2054
|
-
// ../../node_modules/.pnpm/qs@6.11.2/node_modules/qs/lib/stringify.js
|
|
2055
|
-
var require_stringify = __commonJS({
|
|
2056
|
-
"../../node_modules/.pnpm/qs@6.11.2/node_modules/qs/lib/stringify.js"(exports, module) {
|
|
2057
|
-
"use strict";
|
|
2058
|
-
var getSideChannel = require_side_channel();
|
|
2059
|
-
var utils = require_utils();
|
|
2060
|
-
var formats = require_formats();
|
|
2061
|
-
var has = Object.prototype.hasOwnProperty;
|
|
2062
|
-
var arrayPrefixGenerators = {
|
|
2063
|
-
brackets: function brackets(prefix2) {
|
|
2064
|
-
return prefix2 + "[]";
|
|
2065
|
-
},
|
|
2066
|
-
comma: "comma",
|
|
2067
|
-
indices: function indices(prefix2, key) {
|
|
2068
|
-
return prefix2 + "[" + key + "]";
|
|
2069
|
-
},
|
|
2070
|
-
repeat: function repeat(prefix2) {
|
|
2071
|
-
return prefix2;
|
|
2072
|
-
}
|
|
2073
|
-
};
|
|
2074
|
-
var isArray2 = Array.isArray;
|
|
2075
|
-
var push = Array.prototype.push;
|
|
2076
|
-
var pushToArray = function(arr, valueOrArray) {
|
|
2077
|
-
push.apply(arr, isArray2(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
2078
|
-
};
|
|
2079
|
-
var toISO = Date.prototype.toISOString;
|
|
2080
|
-
var defaultFormat = formats["default"];
|
|
2081
|
-
var defaults = {
|
|
2082
|
-
addQueryPrefix: false,
|
|
2083
|
-
allowDots: false,
|
|
2084
|
-
charset: "utf-8",
|
|
2085
|
-
charsetSentinel: false,
|
|
2086
|
-
delimiter: "&",
|
|
2087
|
-
encode: true,
|
|
2088
|
-
encoder: utils.encode,
|
|
2089
|
-
encodeValuesOnly: false,
|
|
2090
|
-
format: defaultFormat,
|
|
2091
|
-
formatter: formats.formatters[defaultFormat],
|
|
2092
|
-
// deprecated
|
|
2093
|
-
indices: false,
|
|
2094
|
-
serializeDate: function serializeDate(date) {
|
|
2095
|
-
return toISO.call(date);
|
|
2096
|
-
},
|
|
2097
|
-
skipNulls: false,
|
|
2098
|
-
strictNullHandling: false
|
|
2099
|
-
};
|
|
2100
|
-
var isNonNullishPrimitive = function isNonNullishPrimitive2(v) {
|
|
2101
|
-
return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
|
|
2102
|
-
};
|
|
2103
|
-
var sentinel = {};
|
|
2104
|
-
var stringify = function stringify2(object, prefix2, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
2105
|
-
var obj = object;
|
|
2106
|
-
var tmpSc = sideChannel;
|
|
2107
|
-
var step = 0;
|
|
2108
|
-
var findFlag = false;
|
|
2109
|
-
while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
|
|
2110
|
-
var pos = tmpSc.get(object);
|
|
2111
|
-
step += 1;
|
|
2112
|
-
if (typeof pos !== "undefined") {
|
|
2113
|
-
if (pos === step) {
|
|
2114
|
-
throw new RangeError("Cyclic object value");
|
|
2115
|
-
} else {
|
|
2116
|
-
findFlag = true;
|
|
2117
|
-
}
|
|
2118
|
-
}
|
|
2119
|
-
if (typeof tmpSc.get(sentinel) === "undefined") {
|
|
2120
|
-
step = 0;
|
|
2121
|
-
}
|
|
2122
|
-
}
|
|
2123
|
-
if (typeof filter === "function") {
|
|
2124
|
-
obj = filter(prefix2, obj);
|
|
2125
|
-
} else if (obj instanceof Date) {
|
|
2126
|
-
obj = serializeDate(obj);
|
|
2127
|
-
} else if (generateArrayPrefix === "comma" && isArray2(obj)) {
|
|
2128
|
-
obj = utils.maybeMap(obj, function(value2) {
|
|
2129
|
-
if (value2 instanceof Date) {
|
|
2130
|
-
return serializeDate(value2);
|
|
2131
|
-
}
|
|
2132
|
-
return value2;
|
|
2133
|
-
});
|
|
2134
|
-
}
|
|
2135
|
-
if (obj === null) {
|
|
2136
|
-
if (strictNullHandling) {
|
|
2137
|
-
return encoder && !encodeValuesOnly ? encoder(prefix2, defaults.encoder, charset, "key", format) : prefix2;
|
|
2138
|
-
}
|
|
2139
|
-
obj = "";
|
|
2140
|
-
}
|
|
2141
|
-
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
2142
|
-
if (encoder) {
|
|
2143
|
-
var keyValue = encodeValuesOnly ? prefix2 : encoder(prefix2, defaults.encoder, charset, "key", format);
|
|
2144
|
-
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))];
|
|
2145
|
-
}
|
|
2146
|
-
return [formatter(prefix2) + "=" + formatter(String(obj))];
|
|
2147
|
-
}
|
|
2148
|
-
var values = [];
|
|
2149
|
-
if (typeof obj === "undefined") {
|
|
2150
|
-
return values;
|
|
2151
|
-
}
|
|
2152
|
-
var objKeys;
|
|
2153
|
-
if (generateArrayPrefix === "comma" && isArray2(obj)) {
|
|
2154
|
-
if (encodeValuesOnly && encoder) {
|
|
2155
|
-
obj = utils.maybeMap(obj, encoder);
|
|
2156
|
-
}
|
|
2157
|
-
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
|
|
2158
|
-
} else if (isArray2(filter)) {
|
|
2159
|
-
objKeys = filter;
|
|
2160
|
-
} else {
|
|
2161
|
-
var keys4 = Object.keys(obj);
|
|
2162
|
-
objKeys = sort ? keys4.sort(sort) : keys4;
|
|
2163
|
-
}
|
|
2164
|
-
var adjustedPrefix = commaRoundTrip && isArray2(obj) && obj.length === 1 ? prefix2 + "[]" : prefix2;
|
|
2165
|
-
for (var j = 0; j < objKeys.length; ++j) {
|
|
2166
|
-
var key = objKeys[j];
|
|
2167
|
-
var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
2168
|
-
if (skipNulls && value === null) {
|
|
2169
|
-
continue;
|
|
2170
|
-
}
|
|
2171
|
-
var keyPrefix = isArray2(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key : "[" + key + "]");
|
|
2172
|
-
sideChannel.set(object, step);
|
|
2173
|
-
var valueSideChannel = getSideChannel();
|
|
2174
|
-
valueSideChannel.set(sentinel, sideChannel);
|
|
2175
|
-
pushToArray(values, stringify2(
|
|
2176
|
-
value,
|
|
2177
|
-
keyPrefix,
|
|
2178
|
-
generateArrayPrefix,
|
|
2179
|
-
commaRoundTrip,
|
|
2180
|
-
strictNullHandling,
|
|
2181
|
-
skipNulls,
|
|
2182
|
-
generateArrayPrefix === "comma" && encodeValuesOnly && isArray2(obj) ? null : encoder,
|
|
2183
|
-
filter,
|
|
2184
|
-
sort,
|
|
2185
|
-
allowDots,
|
|
2186
|
-
serializeDate,
|
|
2187
|
-
format,
|
|
2188
|
-
formatter,
|
|
2189
|
-
encodeValuesOnly,
|
|
2190
|
-
charset,
|
|
2191
|
-
valueSideChannel
|
|
2192
|
-
));
|
|
2193
|
-
}
|
|
2194
|
-
return values;
|
|
2195
|
-
};
|
|
2196
|
-
var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
|
|
2197
|
-
if (!opts) {
|
|
2198
|
-
return defaults;
|
|
2199
|
-
}
|
|
2200
|
-
if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
|
|
2201
|
-
throw new TypeError("Encoder has to be a function.");
|
|
2202
|
-
}
|
|
2203
|
-
var charset = opts.charset || defaults.charset;
|
|
2204
|
-
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
2205
|
-
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
2206
|
-
}
|
|
2207
|
-
var format = formats["default"];
|
|
2208
|
-
if (typeof opts.format !== "undefined") {
|
|
2209
|
-
if (!has.call(formats.formatters, opts.format)) {
|
|
2210
|
-
throw new TypeError("Unknown format option provided.");
|
|
2211
|
-
}
|
|
2212
|
-
format = opts.format;
|
|
2213
|
-
}
|
|
2214
|
-
var formatter = formats.formatters[format];
|
|
2215
|
-
var filter = defaults.filter;
|
|
2216
|
-
if (typeof opts.filter === "function" || isArray2(opts.filter)) {
|
|
2217
|
-
filter = opts.filter;
|
|
2218
|
-
}
|
|
2219
|
-
return {
|
|
2220
|
-
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
2221
|
-
allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots,
|
|
2222
|
-
charset,
|
|
2223
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
2224
|
-
delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
|
|
2225
|
-
encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
|
|
2226
|
-
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
|
|
2227
|
-
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
2228
|
-
filter,
|
|
2229
|
-
format,
|
|
2230
|
-
formatter,
|
|
2231
|
-
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
|
|
2232
|
-
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls,
|
|
2233
|
-
sort: typeof opts.sort === "function" ? opts.sort : null,
|
|
2234
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
|
|
2235
|
-
};
|
|
2236
|
-
};
|
|
2237
|
-
module.exports = function(object, opts) {
|
|
2238
|
-
var obj = object;
|
|
2239
|
-
var options = normalizeStringifyOptions(opts);
|
|
2240
|
-
var objKeys;
|
|
2241
|
-
var filter;
|
|
2242
|
-
if (typeof options.filter === "function") {
|
|
2243
|
-
filter = options.filter;
|
|
2244
|
-
obj = filter("", obj);
|
|
2245
|
-
} else if (isArray2(options.filter)) {
|
|
2246
|
-
filter = options.filter;
|
|
2247
|
-
objKeys = filter;
|
|
2248
|
-
}
|
|
2249
|
-
var keys4 = [];
|
|
2250
|
-
if (typeof obj !== "object" || obj === null) {
|
|
2251
|
-
return "";
|
|
2252
|
-
}
|
|
2253
|
-
var arrayFormat;
|
|
2254
|
-
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
|
2255
|
-
arrayFormat = opts.arrayFormat;
|
|
2256
|
-
} else if (opts && "indices" in opts) {
|
|
2257
|
-
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
2258
|
-
} else {
|
|
2259
|
-
arrayFormat = "indices";
|
|
2260
|
-
}
|
|
2261
|
-
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
2262
|
-
if (opts && "commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
2263
|
-
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
2264
|
-
}
|
|
2265
|
-
var commaRoundTrip = generateArrayPrefix === "comma" && opts && opts.commaRoundTrip;
|
|
2266
|
-
if (!objKeys) {
|
|
2267
|
-
objKeys = Object.keys(obj);
|
|
2268
|
-
}
|
|
2269
|
-
if (options.sort) {
|
|
2270
|
-
objKeys.sort(options.sort);
|
|
2271
|
-
}
|
|
2272
|
-
var sideChannel = getSideChannel();
|
|
2273
|
-
for (var i = 0; i < objKeys.length; ++i) {
|
|
2274
|
-
var key = objKeys[i];
|
|
2275
|
-
if (options.skipNulls && obj[key] === null) {
|
|
2276
|
-
continue;
|
|
2277
|
-
}
|
|
2278
|
-
pushToArray(keys4, stringify(
|
|
2279
|
-
obj[key],
|
|
2280
|
-
key,
|
|
2281
|
-
generateArrayPrefix,
|
|
2282
|
-
commaRoundTrip,
|
|
2283
|
-
options.strictNullHandling,
|
|
2284
|
-
options.skipNulls,
|
|
2285
|
-
options.encode ? options.encoder : null,
|
|
2286
|
-
options.filter,
|
|
2287
|
-
options.sort,
|
|
2288
|
-
options.allowDots,
|
|
2289
|
-
options.serializeDate,
|
|
2290
|
-
options.format,
|
|
2291
|
-
options.formatter,
|
|
2292
|
-
options.encodeValuesOnly,
|
|
2293
|
-
options.charset,
|
|
2294
|
-
sideChannel
|
|
2295
|
-
));
|
|
2296
|
-
}
|
|
2297
|
-
var joined = keys4.join(options.delimiter);
|
|
2298
|
-
var prefix2 = options.addQueryPrefix === true ? "?" : "";
|
|
2299
|
-
if (options.charsetSentinel) {
|
|
2300
|
-
if (options.charset === "iso-8859-1") {
|
|
2301
|
-
prefix2 += "utf8=%26%2310003%3B&";
|
|
2302
|
-
} else {
|
|
2303
|
-
prefix2 += "utf8=%E2%9C%93&";
|
|
2304
|
-
}
|
|
2305
|
-
}
|
|
2306
|
-
return joined.length > 0 ? prefix2 + joined : "";
|
|
2307
|
-
};
|
|
2308
|
-
}
|
|
2309
|
-
});
|
|
2310
|
-
|
|
2311
|
-
// ../../node_modules/.pnpm/qs@6.11.2/node_modules/qs/lib/parse.js
|
|
2312
|
-
var require_parse = __commonJS({
|
|
2313
|
-
"../../node_modules/.pnpm/qs@6.11.2/node_modules/qs/lib/parse.js"(exports, module) {
|
|
2314
|
-
"use strict";
|
|
2315
|
-
var utils = require_utils();
|
|
2316
|
-
var has = Object.prototype.hasOwnProperty;
|
|
2317
|
-
var isArray2 = Array.isArray;
|
|
2318
|
-
var defaults = {
|
|
2319
|
-
allowDots: false,
|
|
2320
|
-
allowPrototypes: false,
|
|
2321
|
-
allowSparse: false,
|
|
2322
|
-
arrayLimit: 20,
|
|
2323
|
-
charset: "utf-8",
|
|
2324
|
-
charsetSentinel: false,
|
|
2325
|
-
comma: false,
|
|
2326
|
-
decoder: utils.decode,
|
|
2327
|
-
delimiter: "&",
|
|
2328
|
-
depth: 5,
|
|
2329
|
-
ignoreQueryPrefix: false,
|
|
2330
|
-
interpretNumericEntities: false,
|
|
2331
|
-
parameterLimit: 1e3,
|
|
2332
|
-
parseArrays: true,
|
|
2333
|
-
plainObjects: false,
|
|
2334
|
-
strictNullHandling: false
|
|
2335
|
-
};
|
|
2336
|
-
var interpretNumericEntities = function(str) {
|
|
2337
|
-
return str.replace(/&#(\d+);/g, function($0, numberStr) {
|
|
2338
|
-
return String.fromCharCode(parseInt(numberStr, 10));
|
|
2339
|
-
});
|
|
2340
|
-
};
|
|
2341
|
-
var parseArrayValue = function(val, options) {
|
|
2342
|
-
if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
|
|
2343
|
-
return val.split(",");
|
|
2344
|
-
}
|
|
2345
|
-
return val;
|
|
2346
|
-
};
|
|
2347
|
-
var isoSentinel = "utf8=%26%2310003%3B";
|
|
2348
|
-
var charsetSentinel = "utf8=%E2%9C%93";
|
|
2349
|
-
var parseValues = function parseQueryStringValues(str, options) {
|
|
2350
|
-
var obj = { __proto__: null };
|
|
2351
|
-
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
|
|
2352
|
-
var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
|
|
2353
|
-
var parts = cleanStr.split(options.delimiter, limit);
|
|
2354
|
-
var skipIndex = -1;
|
|
2355
|
-
var i;
|
|
2356
|
-
var charset = options.charset;
|
|
2357
|
-
if (options.charsetSentinel) {
|
|
2358
|
-
for (i = 0; i < parts.length; ++i) {
|
|
2359
|
-
if (parts[i].indexOf("utf8=") === 0) {
|
|
2360
|
-
if (parts[i] === charsetSentinel) {
|
|
2361
|
-
charset = "utf-8";
|
|
2362
|
-
} else if (parts[i] === isoSentinel) {
|
|
2363
|
-
charset = "iso-8859-1";
|
|
2364
|
-
}
|
|
2365
|
-
skipIndex = i;
|
|
2366
|
-
i = parts.length;
|
|
2367
|
-
}
|
|
2368
|
-
}
|
|
2369
|
-
}
|
|
2370
|
-
for (i = 0; i < parts.length; ++i) {
|
|
2371
|
-
if (i === skipIndex) {
|
|
2372
|
-
continue;
|
|
2373
|
-
}
|
|
2374
|
-
var part = parts[i];
|
|
2375
|
-
var bracketEqualsPos = part.indexOf("]=");
|
|
2376
|
-
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
2377
|
-
var key, val;
|
|
2378
|
-
if (pos === -1) {
|
|
2379
|
-
key = options.decoder(part, defaults.decoder, charset, "key");
|
|
2380
|
-
val = options.strictNullHandling ? null : "";
|
|
2381
|
-
} else {
|
|
2382
|
-
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
|
|
2383
|
-
val = utils.maybeMap(
|
|
2384
|
-
parseArrayValue(part.slice(pos + 1), options),
|
|
2385
|
-
function(encodedVal) {
|
|
2386
|
-
return options.decoder(encodedVal, defaults.decoder, charset, "value");
|
|
2387
|
-
}
|
|
2388
|
-
);
|
|
2389
|
-
}
|
|
2390
|
-
if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
|
|
2391
|
-
val = interpretNumericEntities(val);
|
|
2392
|
-
}
|
|
2393
|
-
if (part.indexOf("[]=") > -1) {
|
|
2394
|
-
val = isArray2(val) ? [val] : val;
|
|
2395
|
-
}
|
|
2396
|
-
if (has.call(obj, key)) {
|
|
2397
|
-
obj[key] = utils.combine(obj[key], val);
|
|
2398
|
-
} else {
|
|
2399
|
-
obj[key] = val;
|
|
2400
|
-
}
|
|
2401
|
-
}
|
|
2402
|
-
return obj;
|
|
2403
|
-
};
|
|
2404
|
-
var parseObject = function(chain, val, options, valuesParsed) {
|
|
2405
|
-
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
|
2406
|
-
for (var i = chain.length - 1; i >= 0; --i) {
|
|
2407
|
-
var obj;
|
|
2408
|
-
var root = chain[i];
|
|
2409
|
-
if (root === "[]" && options.parseArrays) {
|
|
2410
|
-
obj = [].concat(leaf);
|
|
2411
|
-
} else {
|
|
2412
|
-
obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
2413
|
-
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
2414
|
-
var index = parseInt(cleanRoot, 10);
|
|
2415
|
-
if (!options.parseArrays && cleanRoot === "") {
|
|
2416
|
-
obj = { 0: leaf };
|
|
2417
|
-
} else if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
|
|
2418
|
-
obj = [];
|
|
2419
|
-
obj[index] = leaf;
|
|
2420
|
-
} else if (cleanRoot !== "__proto__") {
|
|
2421
|
-
obj[cleanRoot] = leaf;
|
|
2422
|
-
}
|
|
2423
|
-
}
|
|
2424
|
-
leaf = obj;
|
|
2425
|
-
}
|
|
2426
|
-
return leaf;
|
|
2427
|
-
};
|
|
2428
|
-
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
2429
|
-
if (!givenKey) {
|
|
2430
|
-
return;
|
|
2431
|
-
}
|
|
2432
|
-
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
|
|
2433
|
-
var brackets = /(\[[^[\]]*])/;
|
|
2434
|
-
var child = /(\[[^[\]]*])/g;
|
|
2435
|
-
var segment = options.depth > 0 && brackets.exec(key);
|
|
2436
|
-
var parent = segment ? key.slice(0, segment.index) : key;
|
|
2437
|
-
var keys4 = [];
|
|
2438
|
-
if (parent) {
|
|
2439
|
-
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
2440
|
-
if (!options.allowPrototypes) {
|
|
2441
|
-
return;
|
|
2442
|
-
}
|
|
2443
|
-
}
|
|
2444
|
-
keys4.push(parent);
|
|
2445
|
-
}
|
|
2446
|
-
var i = 0;
|
|
2447
|
-
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
|
2448
|
-
i += 1;
|
|
2449
|
-
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
2450
|
-
if (!options.allowPrototypes) {
|
|
2451
|
-
return;
|
|
2452
|
-
}
|
|
2453
|
-
}
|
|
2454
|
-
keys4.push(segment[1]);
|
|
2455
|
-
}
|
|
2456
|
-
if (segment) {
|
|
2457
|
-
keys4.push("[" + key.slice(segment.index) + "]");
|
|
2458
|
-
}
|
|
2459
|
-
return parseObject(keys4, val, options, valuesParsed);
|
|
2460
|
-
};
|
|
2461
|
-
var normalizeParseOptions = function normalizeParseOptions2(opts) {
|
|
2462
|
-
if (!opts) {
|
|
2463
|
-
return defaults;
|
|
2464
|
-
}
|
|
2465
|
-
if (opts.decoder !== null && opts.decoder !== void 0 && typeof opts.decoder !== "function") {
|
|
2466
|
-
throw new TypeError("Decoder has to be a function.");
|
|
2467
|
-
}
|
|
2468
|
-
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
2469
|
-
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
2470
|
-
}
|
|
2471
|
-
var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
|
|
2472
|
-
return {
|
|
2473
|
-
allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots,
|
|
2474
|
-
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
2475
|
-
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
|
|
2476
|
-
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
|
|
2477
|
-
charset,
|
|
2478
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
2479
|
-
comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
|
|
2480
|
-
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
|
|
2481
|
-
delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
2482
|
-
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
2483
|
-
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
|
|
2484
|
-
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
2485
|
-
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
2486
|
-
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
|
|
2487
|
-
parseArrays: opts.parseArrays !== false,
|
|
2488
|
-
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
|
|
2489
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
|
|
2490
|
-
};
|
|
2491
|
-
};
|
|
2492
|
-
module.exports = function(str, opts) {
|
|
2493
|
-
var options = normalizeParseOptions(opts);
|
|
2494
|
-
if (str === "" || str === null || typeof str === "undefined") {
|
|
2495
|
-
return options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
2496
|
-
}
|
|
2497
|
-
var tempObj = typeof str === "string" ? parseValues(str, options) : str;
|
|
2498
|
-
var obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
2499
|
-
var keys4 = Object.keys(tempObj);
|
|
2500
|
-
for (var i = 0; i < keys4.length; ++i) {
|
|
2501
|
-
var key = keys4[i];
|
|
2502
|
-
var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
|
|
2503
|
-
obj = utils.merge(obj, newObj, options);
|
|
2504
|
-
}
|
|
2505
|
-
if (options.allowSparse === true) {
|
|
2506
|
-
return obj;
|
|
2507
|
-
}
|
|
2508
|
-
return utils.compact(obj);
|
|
2509
|
-
};
|
|
2510
|
-
}
|
|
2511
|
-
});
|
|
2512
|
-
|
|
2513
|
-
// ../../node_modules/.pnpm/qs@6.11.2/node_modules/qs/lib/index.js
|
|
2514
|
-
var require_lib = __commonJS({
|
|
2515
|
-
"../../node_modules/.pnpm/qs@6.11.2/node_modules/qs/lib/index.js"(exports, module) {
|
|
2516
|
-
"use strict";
|
|
2517
|
-
var stringify = require_stringify();
|
|
2518
|
-
var parse = require_parse();
|
|
2519
|
-
var formats = require_formats();
|
|
2520
|
-
module.exports = {
|
|
2521
|
-
formats,
|
|
2522
|
-
parse,
|
|
2523
|
-
stringify
|
|
2524
|
-
};
|
|
2525
|
-
}
|
|
2526
|
-
});
|
|
2527
|
-
|
|
2528
|
-
// ../../node_modules/.pnpm/loglevel@1.8.1/node_modules/loglevel/lib/loglevel.js
|
|
397
|
+
// ../../node_modules/.pnpm/loglevel@1.9.1/node_modules/loglevel/lib/loglevel.js
|
|
2529
398
|
var require_loglevel = __commonJS({
|
|
2530
|
-
"../../node_modules/.pnpm/loglevel@1.
|
|
399
|
+
"../../node_modules/.pnpm/loglevel@1.9.1/node_modules/loglevel/lib/loglevel.js"(exports, module) {
|
|
2531
400
|
"use strict";
|
|
2532
401
|
(function(root, definition) {
|
|
2533
402
|
"use strict";
|
|
@@ -2551,6 +420,8 @@ var require_loglevel = __commonJS({
|
|
|
2551
420
|
"warn",
|
|
2552
421
|
"error"
|
|
2553
422
|
];
|
|
423
|
+
var _loggersByName = {};
|
|
424
|
+
var defaultLogger = null;
|
|
2554
425
|
function bindMethod(obj, methodName) {
|
|
2555
426
|
var method = obj[methodName];
|
|
2556
427
|
if (typeof method.bind === "function") {
|
|
@@ -2592,28 +463,33 @@ var require_loglevel = __commonJS({
|
|
|
2592
463
|
return noop;
|
|
2593
464
|
}
|
|
2594
465
|
}
|
|
2595
|
-
function replaceLoggingMethods(
|
|
466
|
+
function replaceLoggingMethods() {
|
|
467
|
+
var level = this.getLevel();
|
|
2596
468
|
for (var i = 0; i < logMethods.length; i++) {
|
|
2597
469
|
var methodName = logMethods[i];
|
|
2598
|
-
this[methodName] = i < level ? noop : this.methodFactory(methodName, level,
|
|
470
|
+
this[methodName] = i < level ? noop : this.methodFactory(methodName, level, this.name);
|
|
2599
471
|
}
|
|
2600
472
|
this.log = this.debug;
|
|
473
|
+
if (typeof console === undefinedType && level < this.levels.SILENT) {
|
|
474
|
+
return "No console available for logging";
|
|
475
|
+
}
|
|
2601
476
|
}
|
|
2602
|
-
function enableLoggingWhenConsoleArrives(methodName
|
|
477
|
+
function enableLoggingWhenConsoleArrives(methodName) {
|
|
2603
478
|
return function() {
|
|
2604
479
|
if (typeof console !== undefinedType) {
|
|
2605
|
-
replaceLoggingMethods.call(this
|
|
480
|
+
replaceLoggingMethods.call(this);
|
|
2606
481
|
this[methodName].apply(this, arguments);
|
|
2607
482
|
}
|
|
2608
483
|
};
|
|
2609
484
|
}
|
|
2610
|
-
function defaultMethodFactory(methodName,
|
|
485
|
+
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
2611
486
|
return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
2612
487
|
}
|
|
2613
|
-
function Logger2(name,
|
|
488
|
+
function Logger2(name, factory) {
|
|
2614
489
|
var self = this;
|
|
2615
|
-
var
|
|
2616
|
-
|
|
490
|
+
var inheritedLevel;
|
|
491
|
+
var defaultLevel;
|
|
492
|
+
var userLevel;
|
|
2617
493
|
var storageKey = "loglevel";
|
|
2618
494
|
if (typeof name === "string") {
|
|
2619
495
|
storageKey += ":" + name;
|
|
@@ -2645,11 +521,12 @@ var require_loglevel = __commonJS({
|
|
|
2645
521
|
if (typeof storedLevel === undefinedType) {
|
|
2646
522
|
try {
|
|
2647
523
|
var cookie = window.document.cookie;
|
|
2648
|
-
var
|
|
2649
|
-
|
|
2650
|
-
);
|
|
524
|
+
var cookieName = encodeURIComponent(storageKey);
|
|
525
|
+
var location2 = cookie.indexOf(cookieName + "=");
|
|
2651
526
|
if (location2 !== -1) {
|
|
2652
|
-
storedLevel = /^([^;]+)/.exec(
|
|
527
|
+
storedLevel = /^([^;]+)/.exec(
|
|
528
|
+
cookie.slice(location2 + cookieName.length + 1)
|
|
529
|
+
)[1];
|
|
2653
530
|
}
|
|
2654
531
|
} catch (ignore2) {
|
|
2655
532
|
}
|
|
@@ -2664,7 +541,6 @@ var require_loglevel = __commonJS({
|
|
|
2664
541
|
return;
|
|
2665
542
|
try {
|
|
2666
543
|
window.localStorage.removeItem(storageKey);
|
|
2667
|
-
return;
|
|
2668
544
|
} catch (ignore2) {
|
|
2669
545
|
}
|
|
2670
546
|
try {
|
|
@@ -2672,6 +548,17 @@ var require_loglevel = __commonJS({
|
|
|
2672
548
|
} catch (ignore2) {
|
|
2673
549
|
}
|
|
2674
550
|
}
|
|
551
|
+
function normalizeLevel(input) {
|
|
552
|
+
var level = input;
|
|
553
|
+
if (typeof level === "string" && self.levels[level.toUpperCase()] !== void 0) {
|
|
554
|
+
level = self.levels[level.toUpperCase()];
|
|
555
|
+
}
|
|
556
|
+
if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
|
|
557
|
+
return level;
|
|
558
|
+
} else {
|
|
559
|
+
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
2675
562
|
self.name = name;
|
|
2676
563
|
self.levels = {
|
|
2677
564
|
"TRACE": 0,
|
|
@@ -2683,34 +570,31 @@ var require_loglevel = __commonJS({
|
|
|
2683
570
|
};
|
|
2684
571
|
self.methodFactory = factory || defaultMethodFactory;
|
|
2685
572
|
self.getLevel = function() {
|
|
2686
|
-
|
|
573
|
+
if (userLevel != null) {
|
|
574
|
+
return userLevel;
|
|
575
|
+
} else if (defaultLevel != null) {
|
|
576
|
+
return defaultLevel;
|
|
577
|
+
} else {
|
|
578
|
+
return inheritedLevel;
|
|
579
|
+
}
|
|
2687
580
|
};
|
|
2688
581
|
self.setLevel = function(level, persist) {
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
|
|
2693
|
-
currentLevel = level;
|
|
2694
|
-
if (persist !== false) {
|
|
2695
|
-
persistLevelIfPossible(level);
|
|
2696
|
-
}
|
|
2697
|
-
replaceLoggingMethods.call(self, level, name);
|
|
2698
|
-
if (typeof console === undefinedType && level < self.levels.SILENT) {
|
|
2699
|
-
return "No console available for logging";
|
|
2700
|
-
}
|
|
2701
|
-
} else {
|
|
2702
|
-
throw "log.setLevel() called with invalid level: " + level;
|
|
582
|
+
userLevel = normalizeLevel(level);
|
|
583
|
+
if (persist !== false) {
|
|
584
|
+
persistLevelIfPossible(userLevel);
|
|
2703
585
|
}
|
|
586
|
+
return replaceLoggingMethods.call(self);
|
|
2704
587
|
};
|
|
2705
588
|
self.setDefaultLevel = function(level) {
|
|
2706
|
-
defaultLevel = level;
|
|
589
|
+
defaultLevel = normalizeLevel(level);
|
|
2707
590
|
if (!getPersistedLevel()) {
|
|
2708
591
|
self.setLevel(level, false);
|
|
2709
592
|
}
|
|
2710
593
|
};
|
|
2711
594
|
self.resetLevel = function() {
|
|
2712
|
-
|
|
595
|
+
userLevel = null;
|
|
2713
596
|
clearPersistedLevel();
|
|
597
|
+
replaceLoggingMethods.call(self);
|
|
2714
598
|
};
|
|
2715
599
|
self.enableAll = function(persist) {
|
|
2716
600
|
self.setLevel(self.levels.TRACE, persist);
|
|
@@ -2718,14 +602,27 @@ var require_loglevel = __commonJS({
|
|
|
2718
602
|
self.disableAll = function(persist) {
|
|
2719
603
|
self.setLevel(self.levels.SILENT, persist);
|
|
2720
604
|
};
|
|
605
|
+
self.rebuild = function() {
|
|
606
|
+
if (defaultLogger !== self) {
|
|
607
|
+
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
608
|
+
}
|
|
609
|
+
replaceLoggingMethods.call(self);
|
|
610
|
+
if (defaultLogger === self) {
|
|
611
|
+
for (var childName in _loggersByName) {
|
|
612
|
+
_loggersByName[childName].rebuild();
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
};
|
|
616
|
+
inheritedLevel = normalizeLevel(
|
|
617
|
+
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
618
|
+
);
|
|
2721
619
|
var initialLevel = getPersistedLevel();
|
|
2722
|
-
if (initialLevel
|
|
2723
|
-
|
|
620
|
+
if (initialLevel != null) {
|
|
621
|
+
userLevel = normalizeLevel(initialLevel);
|
|
2724
622
|
}
|
|
2725
|
-
|
|
623
|
+
replaceLoggingMethods.call(self);
|
|
2726
624
|
}
|
|
2727
|
-
|
|
2728
|
-
var _loggersByName = {};
|
|
625
|
+
defaultLogger = new Logger2();
|
|
2729
626
|
defaultLogger.getLogger = function getLogger(name) {
|
|
2730
627
|
if (typeof name !== "symbol" && typeof name !== "string" || name === "") {
|
|
2731
628
|
throw new TypeError("You must supply a name when creating a logger.");
|
|
@@ -2734,7 +631,6 @@ var require_loglevel = __commonJS({
|
|
|
2734
631
|
if (!logger2) {
|
|
2735
632
|
logger2 = _loggersByName[name] = new Logger2(
|
|
2736
633
|
name,
|
|
2737
|
-
defaultLogger.getLevel(),
|
|
2738
634
|
defaultLogger.methodFactory
|
|
2739
635
|
);
|
|
2740
636
|
}
|
|
@@ -19983,7 +17879,8 @@ var Environment = {
|
|
|
19983
17879
|
enableAI: true,
|
|
19984
17880
|
aMapSecurityJsCode: "",
|
|
19985
17881
|
aMapKey: "",
|
|
19986
|
-
runContainer: "DYNAENGINE"
|
|
17882
|
+
runContainer: "DYNAENGINE",
|
|
17883
|
+
mobWeChatAppId: ""
|
|
19987
17884
|
};
|
|
19988
17885
|
|
|
19989
17886
|
// ../core/out/error/runtime-error/runtime-error.js
|
|
@@ -20059,9 +17956,6 @@ function notNilEmpty(data) {
|
|
|
20059
17956
|
return false;
|
|
20060
17957
|
}
|
|
20061
17958
|
|
|
20062
|
-
// ../core/out/utils/net/net.js
|
|
20063
|
-
var import_qs = __toESM(require_lib(), 1);
|
|
20064
|
-
|
|
20065
17959
|
// ../core/out/utils/string-util/string-util.js
|
|
20066
17960
|
var StringUtil = class {
|
|
20067
17961
|
/**
|