@mendable/firecrawl-js 1.23.3 → 1.23.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.cjs +1628 -430
  2. package/dist/index.js +1627 -429
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ var require_delayed_stream = __commonJS({
39
39
  "node_modules/delayed-stream/lib/delayed_stream.js"(exports, module) {
40
40
  "use strict";
41
41
  var Stream = __require("stream").Stream;
42
- var util2 = __require("util");
42
+ var util3 = __require("util");
43
43
  module.exports = DelayedStream;
44
44
  function DelayedStream() {
45
45
  this.source = null;
@@ -50,7 +50,7 @@ var require_delayed_stream = __commonJS({
50
50
  this._released = false;
51
51
  this._bufferedEvents = [];
52
52
  }
53
- util2.inherits(DelayedStream, Stream);
53
+ util3.inherits(DelayedStream, Stream);
54
54
  DelayedStream.create = function(source, options) {
55
55
  var delayedStream = new this();
56
56
  options = options || {};
@@ -130,7 +130,7 @@ var require_delayed_stream = __commonJS({
130
130
  var require_combined_stream = __commonJS({
131
131
  "node_modules/combined-stream/lib/combined_stream.js"(exports, module) {
132
132
  "use strict";
133
- var util2 = __require("util");
133
+ var util3 = __require("util");
134
134
  var Stream = __require("stream").Stream;
135
135
  var DelayedStream = require_delayed_stream();
136
136
  module.exports = CombinedStream;
@@ -146,7 +146,7 @@ var require_combined_stream = __commonJS({
146
146
  this._insideLoop = false;
147
147
  this._pendingNext = false;
148
148
  }
149
- util2.inherits(CombinedStream, Stream);
149
+ util3.inherits(CombinedStream, Stream);
150
150
  CombinedStream.create = function(options) {
151
151
  var combinedStream = new this();
152
152
  options = options || {};
@@ -9138,6 +9138,852 @@ var require_asynckit = __commonJS({
9138
9138
  }
9139
9139
  });
9140
9140
 
9141
+ // node_modules/es-object-atoms/index.js
9142
+ var require_es_object_atoms = __commonJS({
9143
+ "node_modules/es-object-atoms/index.js"(exports, module) {
9144
+ "use strict";
9145
+ module.exports = Object;
9146
+ }
9147
+ });
9148
+
9149
+ // node_modules/es-errors/index.js
9150
+ var require_es_errors = __commonJS({
9151
+ "node_modules/es-errors/index.js"(exports, module) {
9152
+ "use strict";
9153
+ module.exports = Error;
9154
+ }
9155
+ });
9156
+
9157
+ // node_modules/es-errors/eval.js
9158
+ var require_eval = __commonJS({
9159
+ "node_modules/es-errors/eval.js"(exports, module) {
9160
+ "use strict";
9161
+ module.exports = EvalError;
9162
+ }
9163
+ });
9164
+
9165
+ // node_modules/es-errors/range.js
9166
+ var require_range = __commonJS({
9167
+ "node_modules/es-errors/range.js"(exports, module) {
9168
+ "use strict";
9169
+ module.exports = RangeError;
9170
+ }
9171
+ });
9172
+
9173
+ // node_modules/es-errors/ref.js
9174
+ var require_ref = __commonJS({
9175
+ "node_modules/es-errors/ref.js"(exports, module) {
9176
+ "use strict";
9177
+ module.exports = ReferenceError;
9178
+ }
9179
+ });
9180
+
9181
+ // node_modules/es-errors/syntax.js
9182
+ var require_syntax = __commonJS({
9183
+ "node_modules/es-errors/syntax.js"(exports, module) {
9184
+ "use strict";
9185
+ module.exports = SyntaxError;
9186
+ }
9187
+ });
9188
+
9189
+ // node_modules/es-errors/type.js
9190
+ var require_type = __commonJS({
9191
+ "node_modules/es-errors/type.js"(exports, module) {
9192
+ "use strict";
9193
+ module.exports = TypeError;
9194
+ }
9195
+ });
9196
+
9197
+ // node_modules/es-errors/uri.js
9198
+ var require_uri = __commonJS({
9199
+ "node_modules/es-errors/uri.js"(exports, module) {
9200
+ "use strict";
9201
+ module.exports = URIError;
9202
+ }
9203
+ });
9204
+
9205
+ // node_modules/math-intrinsics/abs.js
9206
+ var require_abs = __commonJS({
9207
+ "node_modules/math-intrinsics/abs.js"(exports, module) {
9208
+ "use strict";
9209
+ module.exports = Math.abs;
9210
+ }
9211
+ });
9212
+
9213
+ // node_modules/math-intrinsics/floor.js
9214
+ var require_floor = __commonJS({
9215
+ "node_modules/math-intrinsics/floor.js"(exports, module) {
9216
+ "use strict";
9217
+ module.exports = Math.floor;
9218
+ }
9219
+ });
9220
+
9221
+ // node_modules/math-intrinsics/max.js
9222
+ var require_max = __commonJS({
9223
+ "node_modules/math-intrinsics/max.js"(exports, module) {
9224
+ "use strict";
9225
+ module.exports = Math.max;
9226
+ }
9227
+ });
9228
+
9229
+ // node_modules/math-intrinsics/min.js
9230
+ var require_min = __commonJS({
9231
+ "node_modules/math-intrinsics/min.js"(exports, module) {
9232
+ "use strict";
9233
+ module.exports = Math.min;
9234
+ }
9235
+ });
9236
+
9237
+ // node_modules/math-intrinsics/pow.js
9238
+ var require_pow = __commonJS({
9239
+ "node_modules/math-intrinsics/pow.js"(exports, module) {
9240
+ "use strict";
9241
+ module.exports = Math.pow;
9242
+ }
9243
+ });
9244
+
9245
+ // node_modules/math-intrinsics/round.js
9246
+ var require_round = __commonJS({
9247
+ "node_modules/math-intrinsics/round.js"(exports, module) {
9248
+ "use strict";
9249
+ module.exports = Math.round;
9250
+ }
9251
+ });
9252
+
9253
+ // node_modules/math-intrinsics/isNaN.js
9254
+ var require_isNaN = __commonJS({
9255
+ "node_modules/math-intrinsics/isNaN.js"(exports, module) {
9256
+ "use strict";
9257
+ module.exports = Number.isNaN || function isNaN2(a) {
9258
+ return a !== a;
9259
+ };
9260
+ }
9261
+ });
9262
+
9263
+ // node_modules/math-intrinsics/sign.js
9264
+ var require_sign = __commonJS({
9265
+ "node_modules/math-intrinsics/sign.js"(exports, module) {
9266
+ "use strict";
9267
+ var $isNaN = require_isNaN();
9268
+ module.exports = function sign(number) {
9269
+ if ($isNaN(number) || number === 0) {
9270
+ return number;
9271
+ }
9272
+ return number < 0 ? -1 : 1;
9273
+ };
9274
+ }
9275
+ });
9276
+
9277
+ // node_modules/gopd/gOPD.js
9278
+ var require_gOPD = __commonJS({
9279
+ "node_modules/gopd/gOPD.js"(exports, module) {
9280
+ "use strict";
9281
+ module.exports = Object.getOwnPropertyDescriptor;
9282
+ }
9283
+ });
9284
+
9285
+ // node_modules/gopd/index.js
9286
+ var require_gopd = __commonJS({
9287
+ "node_modules/gopd/index.js"(exports, module) {
9288
+ "use strict";
9289
+ var $gOPD = require_gOPD();
9290
+ if ($gOPD) {
9291
+ try {
9292
+ $gOPD([], "length");
9293
+ } catch (e2) {
9294
+ $gOPD = null;
9295
+ }
9296
+ }
9297
+ module.exports = $gOPD;
9298
+ }
9299
+ });
9300
+
9301
+ // node_modules/es-define-property/index.js
9302
+ var require_es_define_property = __commonJS({
9303
+ "node_modules/es-define-property/index.js"(exports, module) {
9304
+ "use strict";
9305
+ var $defineProperty = Object.defineProperty || false;
9306
+ if ($defineProperty) {
9307
+ try {
9308
+ $defineProperty({}, "a", { value: 1 });
9309
+ } catch (e2) {
9310
+ $defineProperty = false;
9311
+ }
9312
+ }
9313
+ module.exports = $defineProperty;
9314
+ }
9315
+ });
9316
+
9317
+ // node_modules/has-symbols/shams.js
9318
+ var require_shams = __commonJS({
9319
+ "node_modules/has-symbols/shams.js"(exports, module) {
9320
+ "use strict";
9321
+ module.exports = function hasSymbols() {
9322
+ if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
9323
+ return false;
9324
+ }
9325
+ if (typeof Symbol.iterator === "symbol") {
9326
+ return true;
9327
+ }
9328
+ var obj = {};
9329
+ var sym = Symbol("test");
9330
+ var symObj = Object(sym);
9331
+ if (typeof sym === "string") {
9332
+ return false;
9333
+ }
9334
+ if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
9335
+ return false;
9336
+ }
9337
+ if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
9338
+ return false;
9339
+ }
9340
+ var symVal = 42;
9341
+ obj[sym] = symVal;
9342
+ for (var _ in obj) {
9343
+ return false;
9344
+ }
9345
+ if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
9346
+ return false;
9347
+ }
9348
+ if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
9349
+ return false;
9350
+ }
9351
+ var syms = Object.getOwnPropertySymbols(obj);
9352
+ if (syms.length !== 1 || syms[0] !== sym) {
9353
+ return false;
9354
+ }
9355
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
9356
+ return false;
9357
+ }
9358
+ if (typeof Object.getOwnPropertyDescriptor === "function") {
9359
+ var descriptor = (
9360
+ /** @type {PropertyDescriptor} */
9361
+ Object.getOwnPropertyDescriptor(obj, sym)
9362
+ );
9363
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) {
9364
+ return false;
9365
+ }
9366
+ }
9367
+ return true;
9368
+ };
9369
+ }
9370
+ });
9371
+
9372
+ // node_modules/has-symbols/index.js
9373
+ var require_has_symbols = __commonJS({
9374
+ "node_modules/has-symbols/index.js"(exports, module) {
9375
+ "use strict";
9376
+ var origSymbol = typeof Symbol !== "undefined" && Symbol;
9377
+ var hasSymbolSham = require_shams();
9378
+ module.exports = function hasNativeSymbols() {
9379
+ if (typeof origSymbol !== "function") {
9380
+ return false;
9381
+ }
9382
+ if (typeof Symbol !== "function") {
9383
+ return false;
9384
+ }
9385
+ if (typeof origSymbol("foo") !== "symbol") {
9386
+ return false;
9387
+ }
9388
+ if (typeof Symbol("bar") !== "symbol") {
9389
+ return false;
9390
+ }
9391
+ return hasSymbolSham();
9392
+ };
9393
+ }
9394
+ });
9395
+
9396
+ // node_modules/get-proto/Reflect.getPrototypeOf.js
9397
+ var require_Reflect_getPrototypeOf = __commonJS({
9398
+ "node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module) {
9399
+ "use strict";
9400
+ module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
9401
+ }
9402
+ });
9403
+
9404
+ // node_modules/get-proto/Object.getPrototypeOf.js
9405
+ var require_Object_getPrototypeOf = __commonJS({
9406
+ "node_modules/get-proto/Object.getPrototypeOf.js"(exports, module) {
9407
+ "use strict";
9408
+ var $Object = require_es_object_atoms();
9409
+ module.exports = $Object.getPrototypeOf || null;
9410
+ }
9411
+ });
9412
+
9413
+ // node_modules/function-bind/implementation.js
9414
+ var require_implementation = __commonJS({
9415
+ "node_modules/function-bind/implementation.js"(exports, module) {
9416
+ "use strict";
9417
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
9418
+ var toStr = Object.prototype.toString;
9419
+ var max = Math.max;
9420
+ var funcType = "[object Function]";
9421
+ var concatty = function concatty2(a, b) {
9422
+ var arr = [];
9423
+ for (var i = 0; i < a.length; i += 1) {
9424
+ arr[i] = a[i];
9425
+ }
9426
+ for (var j = 0; j < b.length; j += 1) {
9427
+ arr[j + a.length] = b[j];
9428
+ }
9429
+ return arr;
9430
+ };
9431
+ var slicy = function slicy2(arrLike, offset) {
9432
+ var arr = [];
9433
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
9434
+ arr[j] = arrLike[i];
9435
+ }
9436
+ return arr;
9437
+ };
9438
+ var joiny = function(arr, joiner) {
9439
+ var str = "";
9440
+ for (var i = 0; i < arr.length; i += 1) {
9441
+ str += arr[i];
9442
+ if (i + 1 < arr.length) {
9443
+ str += joiner;
9444
+ }
9445
+ }
9446
+ return str;
9447
+ };
9448
+ module.exports = function bind2(that) {
9449
+ var target = this;
9450
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
9451
+ throw new TypeError(ERROR_MESSAGE + target);
9452
+ }
9453
+ var args = slicy(arguments, 1);
9454
+ var bound;
9455
+ var binder = function() {
9456
+ if (this instanceof bound) {
9457
+ var result = target.apply(
9458
+ this,
9459
+ concatty(args, arguments)
9460
+ );
9461
+ if (Object(result) === result) {
9462
+ return result;
9463
+ }
9464
+ return this;
9465
+ }
9466
+ return target.apply(
9467
+ that,
9468
+ concatty(args, arguments)
9469
+ );
9470
+ };
9471
+ var boundLength = max(0, target.length - args.length);
9472
+ var boundArgs = [];
9473
+ for (var i = 0; i < boundLength; i++) {
9474
+ boundArgs[i] = "$" + i;
9475
+ }
9476
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
9477
+ if (target.prototype) {
9478
+ var Empty = function Empty2() {
9479
+ };
9480
+ Empty.prototype = target.prototype;
9481
+ bound.prototype = new Empty();
9482
+ Empty.prototype = null;
9483
+ }
9484
+ return bound;
9485
+ };
9486
+ }
9487
+ });
9488
+
9489
+ // node_modules/function-bind/index.js
9490
+ var require_function_bind = __commonJS({
9491
+ "node_modules/function-bind/index.js"(exports, module) {
9492
+ "use strict";
9493
+ var implementation = require_implementation();
9494
+ module.exports = Function.prototype.bind || implementation;
9495
+ }
9496
+ });
9497
+
9498
+ // node_modules/call-bind-apply-helpers/functionCall.js
9499
+ var require_functionCall = __commonJS({
9500
+ "node_modules/call-bind-apply-helpers/functionCall.js"(exports, module) {
9501
+ "use strict";
9502
+ module.exports = Function.prototype.call;
9503
+ }
9504
+ });
9505
+
9506
+ // node_modules/call-bind-apply-helpers/functionApply.js
9507
+ var require_functionApply = __commonJS({
9508
+ "node_modules/call-bind-apply-helpers/functionApply.js"(exports, module) {
9509
+ "use strict";
9510
+ module.exports = Function.prototype.apply;
9511
+ }
9512
+ });
9513
+
9514
+ // node_modules/call-bind-apply-helpers/reflectApply.js
9515
+ var require_reflectApply = __commonJS({
9516
+ "node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module) {
9517
+ "use strict";
9518
+ module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
9519
+ }
9520
+ });
9521
+
9522
+ // node_modules/call-bind-apply-helpers/actualApply.js
9523
+ var require_actualApply = __commonJS({
9524
+ "node_modules/call-bind-apply-helpers/actualApply.js"(exports, module) {
9525
+ "use strict";
9526
+ var bind2 = require_function_bind();
9527
+ var $apply = require_functionApply();
9528
+ var $call = require_functionCall();
9529
+ var $reflectApply = require_reflectApply();
9530
+ module.exports = $reflectApply || bind2.call($call, $apply);
9531
+ }
9532
+ });
9533
+
9534
+ // node_modules/call-bind-apply-helpers/index.js
9535
+ var require_call_bind_apply_helpers = __commonJS({
9536
+ "node_modules/call-bind-apply-helpers/index.js"(exports, module) {
9537
+ "use strict";
9538
+ var bind2 = require_function_bind();
9539
+ var $TypeError = require_type();
9540
+ var $call = require_functionCall();
9541
+ var $actualApply = require_actualApply();
9542
+ module.exports = function callBindBasic(args) {
9543
+ if (args.length < 1 || typeof args[0] !== "function") {
9544
+ throw new $TypeError("a function is required");
9545
+ }
9546
+ return $actualApply(bind2, $call, args);
9547
+ };
9548
+ }
9549
+ });
9550
+
9551
+ // node_modules/dunder-proto/get.js
9552
+ var require_get = __commonJS({
9553
+ "node_modules/dunder-proto/get.js"(exports, module) {
9554
+ "use strict";
9555
+ var callBind = require_call_bind_apply_helpers();
9556
+ var gOPD = require_gopd();
9557
+ var hasProtoAccessor;
9558
+ try {
9559
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
9560
+ [].__proto__ === Array.prototype;
9561
+ } catch (e2) {
9562
+ if (!e2 || typeof e2 !== "object" || !("code" in e2) || e2.code !== "ERR_PROTO_ACCESS") {
9563
+ throw e2;
9564
+ }
9565
+ }
9566
+ var desc = !!hasProtoAccessor && gOPD && gOPD(
9567
+ Object.prototype,
9568
+ /** @type {keyof typeof Object.prototype} */
9569
+ "__proto__"
9570
+ );
9571
+ var $Object = Object;
9572
+ var $getPrototypeOf = $Object.getPrototypeOf;
9573
+ module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? (
9574
+ /** @type {import('./get')} */
9575
+ function getDunder(value) {
9576
+ return $getPrototypeOf(value == null ? value : $Object(value));
9577
+ }
9578
+ ) : false;
9579
+ }
9580
+ });
9581
+
9582
+ // node_modules/get-proto/index.js
9583
+ var require_get_proto = __commonJS({
9584
+ "node_modules/get-proto/index.js"(exports, module) {
9585
+ "use strict";
9586
+ var reflectGetProto = require_Reflect_getPrototypeOf();
9587
+ var originalGetProto = require_Object_getPrototypeOf();
9588
+ var getDunderProto = require_get();
9589
+ module.exports = reflectGetProto ? function getProto(O) {
9590
+ return reflectGetProto(O);
9591
+ } : originalGetProto ? function getProto(O) {
9592
+ if (!O || typeof O !== "object" && typeof O !== "function") {
9593
+ throw new TypeError("getProto: not an object");
9594
+ }
9595
+ return originalGetProto(O);
9596
+ } : getDunderProto ? function getProto(O) {
9597
+ return getDunderProto(O);
9598
+ } : null;
9599
+ }
9600
+ });
9601
+
9602
+ // node_modules/hasown/index.js
9603
+ var require_hasown = __commonJS({
9604
+ "node_modules/hasown/index.js"(exports, module) {
9605
+ "use strict";
9606
+ var call = Function.prototype.call;
9607
+ var $hasOwn = Object.prototype.hasOwnProperty;
9608
+ var bind2 = require_function_bind();
9609
+ module.exports = bind2.call(call, $hasOwn);
9610
+ }
9611
+ });
9612
+
9613
+ // node_modules/get-intrinsic/index.js
9614
+ var require_get_intrinsic = __commonJS({
9615
+ "node_modules/get-intrinsic/index.js"(exports, module) {
9616
+ "use strict";
9617
+ var undefined2;
9618
+ var $Object = require_es_object_atoms();
9619
+ var $Error = require_es_errors();
9620
+ var $EvalError = require_eval();
9621
+ var $RangeError = require_range();
9622
+ var $ReferenceError = require_ref();
9623
+ var $SyntaxError = require_syntax();
9624
+ var $TypeError = require_type();
9625
+ var $URIError = require_uri();
9626
+ var abs = require_abs();
9627
+ var floor = require_floor();
9628
+ var max = require_max();
9629
+ var min = require_min();
9630
+ var pow = require_pow();
9631
+ var round = require_round();
9632
+ var sign = require_sign();
9633
+ var $Function = Function;
9634
+ var getEvalledConstructor = function(expressionSyntax) {
9635
+ try {
9636
+ return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
9637
+ } catch (e2) {
9638
+ }
9639
+ };
9640
+ var $gOPD = require_gopd();
9641
+ var $defineProperty = require_es_define_property();
9642
+ var throwTypeError = function() {
9643
+ throw new $TypeError();
9644
+ };
9645
+ var ThrowTypeError = $gOPD ? function() {
9646
+ try {
9647
+ arguments.callee;
9648
+ return throwTypeError;
9649
+ } catch (calleeThrows) {
9650
+ try {
9651
+ return $gOPD(arguments, "callee").get;
9652
+ } catch (gOPDthrows) {
9653
+ return throwTypeError;
9654
+ }
9655
+ }
9656
+ }() : throwTypeError;
9657
+ var hasSymbols = require_has_symbols()();
9658
+ var getProto = require_get_proto();
9659
+ var $ObjectGPO = require_Object_getPrototypeOf();
9660
+ var $ReflectGPO = require_Reflect_getPrototypeOf();
9661
+ var $apply = require_functionApply();
9662
+ var $call = require_functionCall();
9663
+ var needsEval = {};
9664
+ var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
9665
+ var INTRINSICS = {
9666
+ __proto__: null,
9667
+ "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
9668
+ "%Array%": Array,
9669
+ "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
9670
+ "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
9671
+ "%AsyncFromSyncIteratorPrototype%": undefined2,
9672
+ "%AsyncFunction%": needsEval,
9673
+ "%AsyncGenerator%": needsEval,
9674
+ "%AsyncGeneratorFunction%": needsEval,
9675
+ "%AsyncIteratorPrototype%": needsEval,
9676
+ "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
9677
+ "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
9678
+ "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
9679
+ "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
9680
+ "%Boolean%": Boolean,
9681
+ "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
9682
+ "%Date%": Date,
9683
+ "%decodeURI%": decodeURI,
9684
+ "%decodeURIComponent%": decodeURIComponent,
9685
+ "%encodeURI%": encodeURI,
9686
+ "%encodeURIComponent%": encodeURIComponent,
9687
+ "%Error%": $Error,
9688
+ "%eval%": eval,
9689
+ // eslint-disable-line no-eval
9690
+ "%EvalError%": $EvalError,
9691
+ "%Float16Array%": typeof Float16Array === "undefined" ? undefined2 : Float16Array,
9692
+ "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
9693
+ "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
9694
+ "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
9695
+ "%Function%": $Function,
9696
+ "%GeneratorFunction%": needsEval,
9697
+ "%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
9698
+ "%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
9699
+ "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
9700
+ "%isFinite%": isFinite,
9701
+ "%isNaN%": isNaN,
9702
+ "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
9703
+ "%JSON%": typeof JSON === "object" ? JSON : undefined2,
9704
+ "%Map%": typeof Map === "undefined" ? undefined2 : Map,
9705
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
9706
+ "%Math%": Math,
9707
+ "%Number%": Number,
9708
+ "%Object%": $Object,
9709
+ "%Object.getOwnPropertyDescriptor%": $gOPD,
9710
+ "%parseFloat%": parseFloat,
9711
+ "%parseInt%": parseInt,
9712
+ "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
9713
+ "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
9714
+ "%RangeError%": $RangeError,
9715
+ "%ReferenceError%": $ReferenceError,
9716
+ "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
9717
+ "%RegExp%": RegExp,
9718
+ "%Set%": typeof Set === "undefined" ? undefined2 : Set,
9719
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
9720
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
9721
+ "%String%": String,
9722
+ "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
9723
+ "%Symbol%": hasSymbols ? Symbol : undefined2,
9724
+ "%SyntaxError%": $SyntaxError,
9725
+ "%ThrowTypeError%": ThrowTypeError,
9726
+ "%TypedArray%": TypedArray,
9727
+ "%TypeError%": $TypeError,
9728
+ "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
9729
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
9730
+ "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
9731
+ "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
9732
+ "%URIError%": $URIError,
9733
+ "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
9734
+ "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
9735
+ "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet,
9736
+ "%Function.prototype.call%": $call,
9737
+ "%Function.prototype.apply%": $apply,
9738
+ "%Object.defineProperty%": $defineProperty,
9739
+ "%Object.getPrototypeOf%": $ObjectGPO,
9740
+ "%Math.abs%": abs,
9741
+ "%Math.floor%": floor,
9742
+ "%Math.max%": max,
9743
+ "%Math.min%": min,
9744
+ "%Math.pow%": pow,
9745
+ "%Math.round%": round,
9746
+ "%Math.sign%": sign,
9747
+ "%Reflect.getPrototypeOf%": $ReflectGPO
9748
+ };
9749
+ if (getProto) {
9750
+ try {
9751
+ null.error;
9752
+ } catch (e2) {
9753
+ errorProto = getProto(getProto(e2));
9754
+ INTRINSICS["%Error.prototype%"] = errorProto;
9755
+ }
9756
+ }
9757
+ var errorProto;
9758
+ var doEval = function doEval2(name) {
9759
+ var value;
9760
+ if (name === "%AsyncFunction%") {
9761
+ value = getEvalledConstructor("async function () {}");
9762
+ } else if (name === "%GeneratorFunction%") {
9763
+ value = getEvalledConstructor("function* () {}");
9764
+ } else if (name === "%AsyncGeneratorFunction%") {
9765
+ value = getEvalledConstructor("async function* () {}");
9766
+ } else if (name === "%AsyncGenerator%") {
9767
+ var fn = doEval2("%AsyncGeneratorFunction%");
9768
+ if (fn) {
9769
+ value = fn.prototype;
9770
+ }
9771
+ } else if (name === "%AsyncIteratorPrototype%") {
9772
+ var gen = doEval2("%AsyncGenerator%");
9773
+ if (gen && getProto) {
9774
+ value = getProto(gen.prototype);
9775
+ }
9776
+ }
9777
+ INTRINSICS[name] = value;
9778
+ return value;
9779
+ };
9780
+ var LEGACY_ALIASES = {
9781
+ __proto__: null,
9782
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
9783
+ "%ArrayPrototype%": ["Array", "prototype"],
9784
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
9785
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
9786
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
9787
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
9788
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
9789
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
9790
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
9791
+ "%BooleanPrototype%": ["Boolean", "prototype"],
9792
+ "%DataViewPrototype%": ["DataView", "prototype"],
9793
+ "%DatePrototype%": ["Date", "prototype"],
9794
+ "%ErrorPrototype%": ["Error", "prototype"],
9795
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
9796
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
9797
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
9798
+ "%FunctionPrototype%": ["Function", "prototype"],
9799
+ "%Generator%": ["GeneratorFunction", "prototype"],
9800
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
9801
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
9802
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
9803
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
9804
+ "%JSONParse%": ["JSON", "parse"],
9805
+ "%JSONStringify%": ["JSON", "stringify"],
9806
+ "%MapPrototype%": ["Map", "prototype"],
9807
+ "%NumberPrototype%": ["Number", "prototype"],
9808
+ "%ObjectPrototype%": ["Object", "prototype"],
9809
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
9810
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
9811
+ "%PromisePrototype%": ["Promise", "prototype"],
9812
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
9813
+ "%Promise_all%": ["Promise", "all"],
9814
+ "%Promise_reject%": ["Promise", "reject"],
9815
+ "%Promise_resolve%": ["Promise", "resolve"],
9816
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
9817
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
9818
+ "%RegExpPrototype%": ["RegExp", "prototype"],
9819
+ "%SetPrototype%": ["Set", "prototype"],
9820
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
9821
+ "%StringPrototype%": ["String", "prototype"],
9822
+ "%SymbolPrototype%": ["Symbol", "prototype"],
9823
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
9824
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
9825
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
9826
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
9827
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
9828
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
9829
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
9830
+ "%URIErrorPrototype%": ["URIError", "prototype"],
9831
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
9832
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
9833
+ };
9834
+ var bind2 = require_function_bind();
9835
+ var hasOwn = require_hasown();
9836
+ var $concat = bind2.call($call, Array.prototype.concat);
9837
+ var $spliceApply = bind2.call($apply, Array.prototype.splice);
9838
+ var $replace = bind2.call($call, String.prototype.replace);
9839
+ var $strSlice = bind2.call($call, String.prototype.slice);
9840
+ var $exec = bind2.call($call, RegExp.prototype.exec);
9841
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
9842
+ var reEscapeChar = /\\(\\)?/g;
9843
+ var stringToPath = function stringToPath2(string) {
9844
+ var first = $strSlice(string, 0, 1);
9845
+ var last = $strSlice(string, -1);
9846
+ if (first === "%" && last !== "%") {
9847
+ throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
9848
+ } else if (last === "%" && first !== "%") {
9849
+ throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
9850
+ }
9851
+ var result = [];
9852
+ $replace(string, rePropName, function(match, number, quote, subString) {
9853
+ result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
9854
+ });
9855
+ return result;
9856
+ };
9857
+ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
9858
+ var intrinsicName = name;
9859
+ var alias;
9860
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
9861
+ alias = LEGACY_ALIASES[intrinsicName];
9862
+ intrinsicName = "%" + alias[0] + "%";
9863
+ }
9864
+ if (hasOwn(INTRINSICS, intrinsicName)) {
9865
+ var value = INTRINSICS[intrinsicName];
9866
+ if (value === needsEval) {
9867
+ value = doEval(intrinsicName);
9868
+ }
9869
+ if (typeof value === "undefined" && !allowMissing) {
9870
+ throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
9871
+ }
9872
+ return {
9873
+ alias,
9874
+ name: intrinsicName,
9875
+ value
9876
+ };
9877
+ }
9878
+ throw new $SyntaxError("intrinsic " + name + " does not exist!");
9879
+ };
9880
+ module.exports = function GetIntrinsic(name, allowMissing) {
9881
+ if (typeof name !== "string" || name.length === 0) {
9882
+ throw new $TypeError("intrinsic name must be a non-empty string");
9883
+ }
9884
+ if (arguments.length > 1 && typeof allowMissing !== "boolean") {
9885
+ throw new $TypeError('"allowMissing" argument must be a boolean');
9886
+ }
9887
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
9888
+ throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
9889
+ }
9890
+ var parts = stringToPath(name);
9891
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
9892
+ var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
9893
+ var intrinsicRealName = intrinsic.name;
9894
+ var value = intrinsic.value;
9895
+ var skipFurtherCaching = false;
9896
+ var alias = intrinsic.alias;
9897
+ if (alias) {
9898
+ intrinsicBaseName = alias[0];
9899
+ $spliceApply(parts, $concat([0, 1], alias));
9900
+ }
9901
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
9902
+ var part = parts[i];
9903
+ var first = $strSlice(part, 0, 1);
9904
+ var last = $strSlice(part, -1);
9905
+ if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
9906
+ throw new $SyntaxError("property names with quotes must have matching quotes");
9907
+ }
9908
+ if (part === "constructor" || !isOwn) {
9909
+ skipFurtherCaching = true;
9910
+ }
9911
+ intrinsicBaseName += "." + part;
9912
+ intrinsicRealName = "%" + intrinsicBaseName + "%";
9913
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
9914
+ value = INTRINSICS[intrinsicRealName];
9915
+ } else if (value != null) {
9916
+ if (!(part in value)) {
9917
+ if (!allowMissing) {
9918
+ throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
9919
+ }
9920
+ return void undefined2;
9921
+ }
9922
+ if ($gOPD && i + 1 >= parts.length) {
9923
+ var desc = $gOPD(value, part);
9924
+ isOwn = !!desc;
9925
+ if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
9926
+ value = desc.get;
9927
+ } else {
9928
+ value = value[part];
9929
+ }
9930
+ } else {
9931
+ isOwn = hasOwn(value, part);
9932
+ value = value[part];
9933
+ }
9934
+ if (isOwn && !skipFurtherCaching) {
9935
+ INTRINSICS[intrinsicRealName] = value;
9936
+ }
9937
+ }
9938
+ }
9939
+ return value;
9940
+ };
9941
+ }
9942
+ });
9943
+
9944
+ // node_modules/has-tostringtag/shams.js
9945
+ var require_shams2 = __commonJS({
9946
+ "node_modules/has-tostringtag/shams.js"(exports, module) {
9947
+ "use strict";
9948
+ var hasSymbols = require_shams();
9949
+ module.exports = function hasToStringTagShams() {
9950
+ return hasSymbols() && !!Symbol.toStringTag;
9951
+ };
9952
+ }
9953
+ });
9954
+
9955
+ // node_modules/es-set-tostringtag/index.js
9956
+ var require_es_set_tostringtag = __commonJS({
9957
+ "node_modules/es-set-tostringtag/index.js"(exports, module) {
9958
+ "use strict";
9959
+ var GetIntrinsic = require_get_intrinsic();
9960
+ var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
9961
+ var hasToStringTag = require_shams2()();
9962
+ var hasOwn = require_hasown();
9963
+ var $TypeError = require_type();
9964
+ var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
9965
+ module.exports = function setToStringTag(object, value) {
9966
+ var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
9967
+ var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
9968
+ if (typeof overrideIfSet !== "undefined" && typeof overrideIfSet !== "boolean" || typeof nonConfigurable !== "undefined" && typeof nonConfigurable !== "boolean") {
9969
+ throw new $TypeError("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
9970
+ }
9971
+ if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
9972
+ if ($defineProperty) {
9973
+ $defineProperty(object, toStringTag, {
9974
+ configurable: !nonConfigurable,
9975
+ enumerable: false,
9976
+ value,
9977
+ writable: false
9978
+ });
9979
+ } else {
9980
+ object[toStringTag] = value;
9981
+ }
9982
+ }
9983
+ };
9984
+ }
9985
+ });
9986
+
9141
9987
  // node_modules/form-data/lib/populate.js
9142
9988
  var require_populate = __commonJS({
9143
9989
  "node_modules/form-data/lib/populate.js"(exports, module) {
@@ -9156,7 +10002,7 @@ var require_form_data = __commonJS({
9156
10002
  "node_modules/form-data/lib/form_data.js"(exports, module) {
9157
10003
  "use strict";
9158
10004
  var CombinedStream = require_combined_stream();
9159
- var util2 = __require("util");
10005
+ var util3 = __require("util");
9160
10006
  var path = __require("path");
9161
10007
  var http2 = __require("http");
9162
10008
  var https2 = __require("https");
@@ -9165,9 +10011,10 @@ var require_form_data = __commonJS({
9165
10011
  var Stream = __require("stream").Stream;
9166
10012
  var mime = require_mime_types();
9167
10013
  var asynckit = require_asynckit();
10014
+ var setToStringTag = require_es_set_tostringtag();
9168
10015
  var populate = require_populate();
9169
10016
  module.exports = FormData3;
9170
- util2.inherits(FormData3, CombinedStream);
10017
+ util3.inherits(FormData3, CombinedStream);
9171
10018
  function FormData3(options) {
9172
10019
  if (!(this instanceof FormData3)) {
9173
10020
  return new FormData3(options);
@@ -9192,7 +10039,7 @@ var require_form_data = __commonJS({
9192
10039
  if (typeof value == "number") {
9193
10040
  value = "" + value;
9194
10041
  }
9195
- if (util2.isArray(value)) {
10042
+ if (Array.isArray(value)) {
9196
10043
  this._error(new Error("Arrays are not supported."));
9197
10044
  return;
9198
10045
  }
@@ -9214,7 +10061,7 @@ var require_form_data = __commonJS({
9214
10061
  }
9215
10062
  this._valueLength += valueLength;
9216
10063
  this._overheadLength += Buffer.byteLength(header) + FormData3.LINE_BREAK.length;
9217
- if (!value || !value.path && !(value.readable && value.hasOwnProperty("httpVersion")) && !(value instanceof Stream)) {
10064
+ if (!value || !value.path && !(value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) && !(value instanceof Stream)) {
9218
10065
  return;
9219
10066
  }
9220
10067
  if (!options.knownLength) {
@@ -9222,7 +10069,7 @@ var require_form_data = __commonJS({
9222
10069
  }
9223
10070
  };
9224
10071
  FormData3.prototype._lengthRetriever = function(value, callback) {
9225
- if (value.hasOwnProperty("fd")) {
10072
+ if (Object.prototype.hasOwnProperty.call(value, "fd")) {
9226
10073
  if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
9227
10074
  callback(null, value.end + 1 - (value.start ? value.start : 0));
9228
10075
  } else {
@@ -9236,9 +10083,9 @@ var require_form_data = __commonJS({
9236
10083
  callback(null, fileSize);
9237
10084
  });
9238
10085
  }
9239
- } else if (value.hasOwnProperty("httpVersion")) {
10086
+ } else if (Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
9240
10087
  callback(null, +value.headers["content-length"]);
9241
- } else if (value.hasOwnProperty("httpModule")) {
10088
+ } else if (Object.prototype.hasOwnProperty.call(value, "httpModule")) {
9242
10089
  value.on("response", function(response) {
9243
10090
  value.pause();
9244
10091
  callback(null, +response.headers["content-length"]);
@@ -9266,16 +10113,17 @@ var require_form_data = __commonJS({
9266
10113
  }
9267
10114
  var header;
9268
10115
  for (var prop in headers) {
9269
- if (!headers.hasOwnProperty(prop)) continue;
9270
- header = headers[prop];
9271
- if (header == null) {
9272
- continue;
9273
- }
9274
- if (!Array.isArray(header)) {
9275
- header = [header];
9276
- }
9277
- if (header.length) {
9278
- contents += prop + ": " + header.join("; ") + FormData3.LINE_BREAK;
10116
+ if (Object.prototype.hasOwnProperty.call(headers, prop)) {
10117
+ header = headers[prop];
10118
+ if (header == null) {
10119
+ continue;
10120
+ }
10121
+ if (!Array.isArray(header)) {
10122
+ header = [header];
10123
+ }
10124
+ if (header.length) {
10125
+ contents += prop + ": " + header.join("; ") + FormData3.LINE_BREAK;
10126
+ }
9279
10127
  }
9280
10128
  }
9281
10129
  return "--" + this.getBoundary() + FormData3.LINE_BREAK + contents + FormData3.LINE_BREAK;
@@ -9286,7 +10134,7 @@ var require_form_data = __commonJS({
9286
10134
  filename = path.normalize(options.filepath).replace(/\\/g, "/");
9287
10135
  } else if (options.filename || value.name || value.path) {
9288
10136
  filename = path.basename(options.filename || value.name || value.path);
9289
- } else if (value.readable && value.hasOwnProperty("httpVersion")) {
10137
+ } else if (value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
9290
10138
  filename = path.basename(value.client._httpMessage.path || "");
9291
10139
  }
9292
10140
  if (filename) {
@@ -9302,7 +10150,7 @@ var require_form_data = __commonJS({
9302
10150
  if (!contentType && value.path) {
9303
10151
  contentType = mime.lookup(value.path);
9304
10152
  }
9305
- if (!contentType && value.readable && value.hasOwnProperty("httpVersion")) {
10153
+ if (!contentType && value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
9306
10154
  contentType = value.headers["content-type"];
9307
10155
  }
9308
10156
  if (!contentType && (options.filepath || options.filename)) {
@@ -9332,7 +10180,7 @@ var require_form_data = __commonJS({
9332
10180
  "content-type": "multipart/form-data; boundary=" + this.getBoundary()
9333
10181
  };
9334
10182
  for (header in userHeaders) {
9335
- if (userHeaders.hasOwnProperty(header)) {
10183
+ if (Object.prototype.hasOwnProperty.call(userHeaders, header)) {
9336
10184
  formHeaders[header.toLowerCase()] = userHeaders[header];
9337
10185
  }
9338
10186
  }
@@ -9463,6 +10311,7 @@ var require_form_data = __commonJS({
9463
10311
  FormData3.prototype.toString = function() {
9464
10312
  return "[object FormData]";
9465
10313
  };
10314
+ setToStringTag(FormData3, "FormData");
9466
10315
  }
9467
10316
  });
9468
10317
 
@@ -9482,7 +10331,7 @@ var require_proxy_from_env = __commonJS({
9482
10331
  var stringEndsWith = String.prototype.endsWith || function(s) {
9483
10332
  return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
9484
10333
  };
9485
- function getProxyForUrl2(url2) {
10334
+ function getProxyForUrl(url2) {
9486
10335
  var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
9487
10336
  var proto = parsedUrl.protocol;
9488
10337
  var hostname = parsedUrl.host;
@@ -9532,7 +10381,7 @@ var require_proxy_from_env = __commonJS({
9532
10381
  function getEnv(key) {
9533
10382
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
9534
10383
  }
9535
- exports.getProxyForUrl = getProxyForUrl2;
10384
+ exports.getProxyForUrl = getProxyForUrl;
9536
10385
  }
9537
10386
  });
9538
10387
 
@@ -9757,50 +10606,64 @@ var require_common = __commonJS({
9757
10606
  createDebug.namespaces = namespaces;
9758
10607
  createDebug.names = [];
9759
10608
  createDebug.skips = [];
9760
- let i;
9761
- const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
9762
- const len = split.length;
9763
- for (i = 0; i < len; i++) {
9764
- if (!split[i]) {
9765
- continue;
10609
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
10610
+ for (const ns of split) {
10611
+ if (ns[0] === "-") {
10612
+ createDebug.skips.push(ns.slice(1));
10613
+ } else {
10614
+ createDebug.names.push(ns);
9766
10615
  }
9767
- namespaces = split[i].replace(/\*/g, ".*?");
9768
- if (namespaces[0] === "-") {
9769
- createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
10616
+ }
10617
+ }
10618
+ function matchesTemplate(search, template) {
10619
+ let searchIndex = 0;
10620
+ let templateIndex = 0;
10621
+ let starIndex = -1;
10622
+ let matchIndex = 0;
10623
+ while (searchIndex < search.length) {
10624
+ if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
10625
+ if (template[templateIndex] === "*") {
10626
+ starIndex = templateIndex;
10627
+ matchIndex = searchIndex;
10628
+ templateIndex++;
10629
+ } else {
10630
+ searchIndex++;
10631
+ templateIndex++;
10632
+ }
10633
+ } else if (starIndex !== -1) {
10634
+ templateIndex = starIndex + 1;
10635
+ matchIndex++;
10636
+ searchIndex = matchIndex;
9770
10637
  } else {
9771
- createDebug.names.push(new RegExp("^" + namespaces + "$"));
10638
+ return false;
9772
10639
  }
9773
10640
  }
10641
+ while (templateIndex < template.length && template[templateIndex] === "*") {
10642
+ templateIndex++;
10643
+ }
10644
+ return templateIndex === template.length;
9774
10645
  }
9775
10646
  function disable() {
9776
10647
  const namespaces = [
9777
- ...createDebug.names.map(toNamespace),
9778
- ...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
10648
+ ...createDebug.names,
10649
+ ...createDebug.skips.map((namespace) => "-" + namespace)
9779
10650
  ].join(",");
9780
10651
  createDebug.enable("");
9781
10652
  return namespaces;
9782
10653
  }
9783
10654
  function enabled(name) {
9784
- if (name[name.length - 1] === "*") {
9785
- return true;
9786
- }
9787
- let i;
9788
- let len;
9789
- for (i = 0, len = createDebug.skips.length; i < len; i++) {
9790
- if (createDebug.skips[i].test(name)) {
10655
+ for (const skip of createDebug.skips) {
10656
+ if (matchesTemplate(name, skip)) {
9791
10657
  return false;
9792
10658
  }
9793
10659
  }
9794
- for (i = 0, len = createDebug.names.length; i < len; i++) {
9795
- if (createDebug.names[i].test(name)) {
10660
+ for (const ns of createDebug.names) {
10661
+ if (matchesTemplate(name, ns)) {
9796
10662
  return true;
9797
10663
  }
9798
10664
  }
9799
10665
  return false;
9800
10666
  }
9801
- function toNamespace(regexp) {
9802
- return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
9803
- }
9804
10667
  function coerce(val) {
9805
10668
  if (val instanceof Error) {
9806
10669
  return val.stack || val.message;
@@ -10108,14 +10971,14 @@ var require_node = __commonJS({
10108
10971
  "node_modules/debug/src/node.js"(exports, module) {
10109
10972
  "use strict";
10110
10973
  var tty = __require("tty");
10111
- var util2 = __require("util");
10974
+ var util3 = __require("util");
10112
10975
  exports.init = init;
10113
10976
  exports.log = log;
10114
10977
  exports.formatArgs = formatArgs;
10115
10978
  exports.save = save;
10116
10979
  exports.load = load;
10117
10980
  exports.useColors = useColors;
10118
- exports.destroy = util2.deprecate(
10981
+ exports.destroy = util3.deprecate(
10119
10982
  () => {
10120
10983
  },
10121
10984
  "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
@@ -10246,7 +11109,7 @@ var require_node = __commonJS({
10246
11109
  return (/* @__PURE__ */ new Date()).toISOString() + " ";
10247
11110
  }
10248
11111
  function log(...args) {
10249
- return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + "\n");
11112
+ return process.stderr.write(util3.formatWithOptions(exports.inspectOpts, ...args) + "\n");
10250
11113
  }
10251
11114
  function save(namespaces) {
10252
11115
  if (namespaces) {
@@ -10269,11 +11132,11 @@ var require_node = __commonJS({
10269
11132
  var { formatters } = module.exports;
10270
11133
  formatters.o = function(v) {
10271
11134
  this.inspectOpts.colors = this.useColors;
10272
- return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
11135
+ return util3.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
10273
11136
  };
10274
11137
  formatters.O = function(v) {
10275
11138
  this.inspectOpts.colors = this.useColors;
10276
- return util2.inspect(v, this.inspectOpts);
11139
+ return util3.inspect(v, this.inspectOpts);
10277
11140
  };
10278
11141
  }
10279
11142
  });
@@ -10322,9 +11185,17 @@ var require_follow_redirects = __commonJS({
10322
11185
  var Writable = __require("stream").Writable;
10323
11186
  var assert = __require("assert");
10324
11187
  var debug = require_debug();
11188
+ (function detectUnsupportedEnvironment() {
11189
+ var looksLikeNode = typeof process !== "undefined";
11190
+ var looksLikeBrowser = typeof window !== "undefined" && typeof document !== "undefined";
11191
+ var looksLikeV8 = isFunction2(Error.captureStackTrace);
11192
+ if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {
11193
+ console.warn("The follow-redirects package should be excluded from browser builds.");
11194
+ }
11195
+ })();
10325
11196
  var useNativeURL = false;
10326
11197
  try {
10327
- assert(new URL2());
11198
+ assert(new URL2(""));
10328
11199
  } catch (error) {
10329
11200
  useNativeURL = error.code === "ERR_INVALID_URL";
10330
11201
  }
@@ -10751,7 +11622,9 @@ var require_follow_redirects = __commonJS({
10751
11622
  }
10752
11623
  function createErrorType(code, message, baseClass) {
10753
11624
  function CustomError(properties) {
10754
- Error.captureStackTrace(this, this.constructor);
11625
+ if (isFunction2(Error.captureStackTrace)) {
11626
+ Error.captureStackTrace(this, this.constructor);
11627
+ }
10755
11628
  Object.assign(this, properties || {});
10756
11629
  this.code = code;
10757
11630
  this.message = this.cause ? message + ": " + this.cause.message : message;
@@ -10855,6 +11728,7 @@ var isFormData = (thing) => {
10855
11728
  kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
10856
11729
  };
10857
11730
  var isURLSearchParams = kindOfTest("URLSearchParams");
11731
+ var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
10858
11732
  var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
10859
11733
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
10860
11734
  if (obj === null || typeof obj === "undefined") {
@@ -11058,23 +11932,7 @@ var toObjectSet = (arrayOrString, delimiter) => {
11058
11932
  var noop = () => {
11059
11933
  };
11060
11934
  var toFiniteNumber = (value, defaultValue) => {
11061
- value = +value;
11062
- return Number.isFinite(value) ? value : defaultValue;
11063
- };
11064
- var ALPHA = "abcdefghijklmnopqrstuvwxyz";
11065
- var DIGIT = "0123456789";
11066
- var ALPHABET = {
11067
- DIGIT,
11068
- ALPHA,
11069
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
11070
- };
11071
- var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
11072
- let str = "";
11073
- const { length } = alphabet;
11074
- while (size--) {
11075
- str += alphabet[Math.random() * length | 0];
11076
- }
11077
- return str;
11935
+ return value != null && Number.isFinite(value = +value) ? value : defaultValue;
11078
11936
  };
11079
11937
  function isSpecCompliantForm(thing) {
11080
11938
  return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
@@ -11103,6 +11961,26 @@ var toJSONObject = (obj) => {
11103
11961
  };
11104
11962
  var isAsyncFn = kindOfTest("AsyncFunction");
11105
11963
  var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
11964
+ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
11965
+ if (setImmediateSupported) {
11966
+ return setImmediate;
11967
+ }
11968
+ return postMessageSupported ? ((token, callbacks) => {
11969
+ _global.addEventListener("message", ({ source, data }) => {
11970
+ if (source === _global && data === token) {
11971
+ callbacks.length && callbacks.shift()();
11972
+ }
11973
+ }, false);
11974
+ return (cb) => {
11975
+ callbacks.push(cb);
11976
+ _global.postMessage(token, "*");
11977
+ };
11978
+ })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
11979
+ })(
11980
+ typeof setImmediate === "function",
11981
+ isFunction(_global.postMessage)
11982
+ );
11983
+ var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
11106
11984
  var utils_default = {
11107
11985
  isArray,
11108
11986
  isArrayBuffer,
@@ -11114,6 +11992,10 @@ var utils_default = {
11114
11992
  isBoolean,
11115
11993
  isObject,
11116
11994
  isPlainObject,
11995
+ isReadableStream,
11996
+ isRequest,
11997
+ isResponse,
11998
+ isHeaders,
11117
11999
  isUndefined,
11118
12000
  isDate,
11119
12001
  isFile,
@@ -11150,12 +12032,12 @@ var utils_default = {
11150
12032
  findKey,
11151
12033
  global: _global,
11152
12034
  isContextDefined,
11153
- ALPHABET,
11154
- generateString,
11155
12035
  isSpecCompliantForm,
11156
12036
  toJSONObject,
11157
12037
  isAsyncFn,
11158
- isThenable
12038
+ isThenable,
12039
+ setImmediate: _setImmediate,
12040
+ asap
11159
12041
  };
11160
12042
 
11161
12043
  // node_modules/axios/lib/core/AxiosError.js
@@ -11171,7 +12053,10 @@ function AxiosError(message, code, config, request, response) {
11171
12053
  code && (this.code = code);
11172
12054
  config && (this.config = config);
11173
12055
  request && (this.request = request);
11174
- response && (this.response = response);
12056
+ if (response) {
12057
+ this.response = response;
12058
+ this.status = response.status ? response.status : null;
12059
+ }
11175
12060
  }
11176
12061
  utils_default.inherits(AxiosError, Error, {
11177
12062
  toJSON: function toJSON() {
@@ -11190,7 +12075,7 @@ utils_default.inherits(AxiosError, Error, {
11190
12075
  // Axios
11191
12076
  config: utils_default.toJSONObject(this.config),
11192
12077
  code: this.code,
11193
- status: this.response && this.response.status ? this.response.status : null
12078
+ status: this.status
11194
12079
  };
11195
12080
  }
11196
12081
  });
@@ -11388,6 +12273,11 @@ function buildURL(url2, params, options) {
11388
12273
  return url2;
11389
12274
  }
11390
12275
  const _encode = options && options.encode || encode2;
12276
+ if (utils_default.isFunction(options)) {
12277
+ options = {
12278
+ serialize: options
12279
+ };
12280
+ }
11391
12281
  const serializeFn = options && options.serialize;
11392
12282
  let serializedParams;
11393
12283
  if (serializeFn) {
@@ -11476,11 +12366,31 @@ var transitional_default = {
11476
12366
  clarifyTimeoutError: false
11477
12367
  };
11478
12368
 
12369
+ // node_modules/axios/lib/platform/node/index.js
12370
+ import crypto from "crypto";
12371
+
11479
12372
  // node_modules/axios/lib/platform/node/classes/URLSearchParams.js
11480
12373
  import url from "url";
11481
12374
  var URLSearchParams_default = url.URLSearchParams;
11482
12375
 
11483
12376
  // node_modules/axios/lib/platform/node/index.js
12377
+ var ALPHA = "abcdefghijklmnopqrstuvwxyz";
12378
+ var DIGIT = "0123456789";
12379
+ var ALPHABET = {
12380
+ DIGIT,
12381
+ ALPHA,
12382
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
12383
+ };
12384
+ var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
12385
+ let str = "";
12386
+ const { length } = alphabet;
12387
+ const randomValues = new Uint32Array(size);
12388
+ crypto.randomFillSync(randomValues);
12389
+ for (let i = 0; i < size; i++) {
12390
+ str += alphabet[randomValues[i] % length];
12391
+ }
12392
+ return str;
12393
+ };
11484
12394
  var node_default = {
11485
12395
  isNode: true,
11486
12396
  classes: {
@@ -11488,6 +12398,8 @@ var node_default = {
11488
12398
  FormData: FormData_default,
11489
12399
  Blob: typeof Blob !== "undefined" && Blob || null
11490
12400
  },
12401
+ ALPHABET,
12402
+ generateString,
11491
12403
  protocols: ["http", "https", "file", "data"]
11492
12404
  };
11493
12405
 
@@ -11496,16 +12408,18 @@ var utils_exports = {};
11496
12408
  __export(utils_exports, {
11497
12409
  hasBrowserEnv: () => hasBrowserEnv,
11498
12410
  hasStandardBrowserEnv: () => hasStandardBrowserEnv,
11499
- hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv
12411
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
12412
+ navigator: () => _navigator,
12413
+ origin: () => origin
11500
12414
  });
11501
12415
  var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
11502
- var hasStandardBrowserEnv = ((product) => {
11503
- return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
11504
- })(typeof navigator !== "undefined" && navigator.product);
12416
+ var _navigator = typeof navigator === "object" && navigator || void 0;
12417
+ var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
11505
12418
  var hasStandardBrowserWebWorkerEnv = (() => {
11506
12419
  return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
11507
12420
  self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
11508
12421
  })();
12422
+ var origin = hasBrowserEnv && window.location.href || "http://localhost";
11509
12423
 
11510
12424
  // node_modules/axios/lib/platform/index.js
11511
12425
  var platform_default = {
@@ -11595,7 +12509,7 @@ function stringifySafely(rawValue, parser, encoder) {
11595
12509
  }
11596
12510
  var defaults = {
11597
12511
  transitional: transitional_default,
11598
- adapter: ["xhr", "http"],
12512
+ adapter: ["xhr", "http", "fetch"],
11599
12513
  transformRequest: [function transformRequest(data, headers) {
11600
12514
  const contentType = headers.getContentType() || "";
11601
12515
  const hasJSONContentType = contentType.indexOf("application/json") > -1;
@@ -11607,7 +12521,7 @@ var defaults = {
11607
12521
  if (isFormData2) {
11608
12522
  return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
11609
12523
  }
11610
- if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
12524
+ if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
11611
12525
  return data;
11612
12526
  }
11613
12527
  if (utils_default.isArrayBufferView(data)) {
@@ -11641,6 +12555,9 @@ var defaults = {
11641
12555
  const transitional2 = this.transitional || defaults.transitional;
11642
12556
  const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
11643
12557
  const JSONRequested = this.responseType === "json";
12558
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
12559
+ return data;
12560
+ }
11644
12561
  if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
11645
12562
  const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
11646
12563
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
@@ -11803,6 +12720,10 @@ var AxiosHeaders = class {
11803
12720
  setHeaders(header, valueOrRewrite);
11804
12721
  } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
11805
12722
  setHeaders(parseHeaders_default(header), valueOrRewrite);
12723
+ } else if (utils_default.isHeaders(header)) {
12724
+ for (const [key, value] of header.entries()) {
12725
+ setHeader(value, key, rewrite);
12726
+ }
11806
12727
  } else {
11807
12728
  header != null && setHeader(valueOrRewrite, header, rewrite);
11808
12729
  }
@@ -12002,8 +12923,9 @@ function combineURLs(baseURL, relativeURL) {
12002
12923
  }
12003
12924
 
12004
12925
  // node_modules/axios/lib/core/buildFullPath.js
12005
- function buildFullPath(baseURL, requestedURL) {
12006
- if (baseURL && !isAbsoluteURL(requestedURL)) {
12926
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
12927
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
12928
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
12007
12929
  return combineURLs(baseURL, requestedURL);
12008
12930
  }
12009
12931
  return requestedURL;
@@ -12014,11 +12936,11 @@ var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
12014
12936
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
12015
12937
  import http from "http";
12016
12938
  import https from "https";
12017
- import util from "util";
12939
+ import util2 from "util";
12018
12940
  import zlib from "zlib";
12019
12941
 
12020
12942
  // node_modules/axios/lib/env/data.js
12021
- var VERSION = "1.6.8";
12943
+ var VERSION = "1.8.4";
12022
12944
 
12023
12945
  // node_modules/axios/lib/helpers/parseProtocol.js
12024
12946
  function parseProtocol(url2) {
@@ -12060,70 +12982,6 @@ import stream3 from "stream";
12060
12982
 
12061
12983
  // node_modules/axios/lib/helpers/AxiosTransformStream.js
12062
12984
  import stream from "stream";
12063
-
12064
- // node_modules/axios/lib/helpers/throttle.js
12065
- function throttle(fn, freq) {
12066
- let timestamp = 0;
12067
- const threshold = 1e3 / freq;
12068
- let timer = null;
12069
- return function throttled(force, args) {
12070
- const now = Date.now();
12071
- if (force || now - timestamp > threshold) {
12072
- if (timer) {
12073
- clearTimeout(timer);
12074
- timer = null;
12075
- }
12076
- timestamp = now;
12077
- return fn.apply(null, args);
12078
- }
12079
- if (!timer) {
12080
- timer = setTimeout(() => {
12081
- timer = null;
12082
- timestamp = Date.now();
12083
- return fn.apply(null, args);
12084
- }, threshold - (now - timestamp));
12085
- }
12086
- };
12087
- }
12088
- var throttle_default = throttle;
12089
-
12090
- // node_modules/axios/lib/helpers/speedometer.js
12091
- function speedometer(samplesCount, min) {
12092
- samplesCount = samplesCount || 10;
12093
- const bytes = new Array(samplesCount);
12094
- const timestamps = new Array(samplesCount);
12095
- let head = 0;
12096
- let tail = 0;
12097
- let firstSampleTS;
12098
- min = min !== void 0 ? min : 1e3;
12099
- return function push(chunkLength) {
12100
- const now = Date.now();
12101
- const startedAt = timestamps[tail];
12102
- if (!firstSampleTS) {
12103
- firstSampleTS = now;
12104
- }
12105
- bytes[head] = chunkLength;
12106
- timestamps[head] = now;
12107
- let i = tail;
12108
- let bytesCount = 0;
12109
- while (i !== head) {
12110
- bytesCount += bytes[i++];
12111
- i = i % samplesCount;
12112
- }
12113
- head = (head + 1) % samplesCount;
12114
- if (head === tail) {
12115
- tail = (tail + 1) % samplesCount;
12116
- }
12117
- if (now - firstSampleTS < min) {
12118
- return;
12119
- }
12120
- const passed = startedAt && now - startedAt;
12121
- return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
12122
- };
12123
- }
12124
- var speedometer_default = speedometer;
12125
-
12126
- // node_modules/axios/lib/helpers/AxiosTransformStream.js
12127
12985
  var kInternals = Symbol("internals");
12128
12986
  var AxiosTransformStream = class extends stream.Transform {
12129
12987
  constructor(options) {
@@ -12140,11 +12998,8 @@ var AxiosTransformStream = class extends stream.Transform {
12140
12998
  super({
12141
12999
  readableHighWaterMark: options.chunkSize
12142
13000
  });
12143
- const self2 = this;
12144
13001
  const internals = this[kInternals] = {
12145
- length: options.length,
12146
13002
  timeWindow: options.timeWindow,
12147
- ticksRate: options.ticksRate,
12148
13003
  chunkSize: options.chunkSize,
12149
13004
  maxRate: options.maxRate,
12150
13005
  minChunkSize: options.minChunkSize,
@@ -12155,7 +13010,6 @@ var AxiosTransformStream = class extends stream.Transform {
12155
13010
  bytes: 0,
12156
13011
  onReadCallback: null
12157
13012
  };
12158
- const _speedometer = speedometer_default(internals.ticksRate * options.samplesCount, internals.timeWindow);
12159
13013
  this.on("newListener", (event) => {
12160
13014
  if (event === "progress") {
12161
13015
  if (!internals.isCaptured) {
@@ -12163,30 +13017,6 @@ var AxiosTransformStream = class extends stream.Transform {
12163
13017
  }
12164
13018
  }
12165
13019
  });
12166
- let bytesNotified = 0;
12167
- internals.updateProgress = throttle_default(function throttledHandler() {
12168
- const totalBytes = internals.length;
12169
- const bytesTransferred = internals.bytesSeen;
12170
- const progressBytes = bytesTransferred - bytesNotified;
12171
- if (!progressBytes || self2.destroyed) return;
12172
- const rate = _speedometer(progressBytes);
12173
- bytesNotified = bytesTransferred;
12174
- process.nextTick(() => {
12175
- self2.emit("progress", {
12176
- "loaded": bytesTransferred,
12177
- "total": totalBytes,
12178
- "progress": totalBytes ? bytesTransferred / totalBytes : void 0,
12179
- "bytes": progressBytes,
12180
- "rate": rate ? rate : void 0,
12181
- "estimated": rate && totalBytes && bytesTransferred <= totalBytes ? (totalBytes - bytesTransferred) / rate : void 0
12182
- });
12183
- });
12184
- }, internals.ticksRate);
12185
- const onFinish = () => {
12186
- internals.updateProgress(true);
12187
- };
12188
- this.once("end", onFinish);
12189
- this.once("error", onFinish);
12190
13020
  }
12191
13021
  _read(size) {
12192
13022
  const internals = this[kInternals];
@@ -12196,7 +13026,6 @@ var AxiosTransformStream = class extends stream.Transform {
12196
13026
  return super._read(size);
12197
13027
  }
12198
13028
  _transform(chunk, encoding, callback) {
12199
- const self2 = this;
12200
13029
  const internals = this[kInternals];
12201
13030
  const maxRate = internals.maxRate;
12202
13031
  const readableHighWaterMark = this.readableHighWaterMark;
@@ -12204,14 +13033,12 @@ var AxiosTransformStream = class extends stream.Transform {
12204
13033
  const divider = 1e3 / timeWindow;
12205
13034
  const bytesThreshold = maxRate / divider;
12206
13035
  const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
12207
- function pushChunk(_chunk, _callback) {
13036
+ const pushChunk = (_chunk, _callback) => {
12208
13037
  const bytes = Buffer.byteLength(_chunk);
12209
13038
  internals.bytesSeen += bytes;
12210
13039
  internals.bytes += bytes;
12211
- if (internals.isCaptured) {
12212
- internals.updateProgress();
12213
- }
12214
- if (self2.push(_chunk)) {
13040
+ internals.isCaptured && this.emit("progress", internals.bytesSeen);
13041
+ if (this.push(_chunk)) {
12215
13042
  process.nextTick(_callback);
12216
13043
  } else {
12217
13044
  internals.onReadCallback = () => {
@@ -12219,7 +13046,7 @@ var AxiosTransformStream = class extends stream.Transform {
12219
13046
  process.nextTick(_callback);
12220
13047
  };
12221
13048
  }
12222
- }
13049
+ };
12223
13050
  const transformChunk = (_chunk, _callback) => {
12224
13051
  const chunkSize = Buffer.byteLength(_chunk);
12225
13052
  let chunkRemainder = null;
@@ -12265,10 +13092,6 @@ var AxiosTransformStream = class extends stream.Transform {
12265
13092
  }
12266
13093
  });
12267
13094
  }
12268
- setLength(length) {
12269
- this[kInternals].length = +length;
12270
- return this;
12271
- }
12272
13095
  };
12273
13096
  var AxiosTransformStream_default = AxiosTransformStream;
12274
13097
 
@@ -12276,7 +13099,7 @@ var AxiosTransformStream_default = AxiosTransformStream;
12276
13099
  import { EventEmitter } from "events";
12277
13100
 
12278
13101
  // node_modules/axios/lib/helpers/formDataToStream.js
12279
- import { TextEncoder } from "util";
13102
+ import util from "util";
12280
13103
  import { Readable } from "stream";
12281
13104
 
12282
13105
  // node_modules/axios/lib/helpers/readBlob.js
@@ -12295,8 +13118,8 @@ var readBlob = async function* (blob) {
12295
13118
  var readBlob_default = readBlob;
12296
13119
 
12297
13120
  // node_modules/axios/lib/helpers/formDataToStream.js
12298
- var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
12299
- var textEncoder = new TextEncoder();
13121
+ var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13122
+ var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
12300
13123
  var CRLF = "\r\n";
12301
13124
  var CRLF_BYTES = textEncoder.encode(CRLF);
12302
13125
  var CRLF_BYTES_COUNT = 2;
@@ -12338,7 +13161,7 @@ var formDataToStream = (form, headersHandler, options) => {
12338
13161
  const {
12339
13162
  tag = "form-data-boundary",
12340
13163
  size = 25,
12341
- boundary = tag + "-" + utils_default.generateString(size, BOUNDARY_ALPHABET)
13164
+ boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
12342
13165
  } = options || {};
12343
13166
  if (!utils_default.isFormData(form)) {
12344
13167
  throw TypeError("FormData instance required");
@@ -12410,6 +13233,112 @@ var callbackify = (fn, reducer) => {
12410
13233
  };
12411
13234
  var callbackify_default = callbackify;
12412
13235
 
13236
+ // node_modules/axios/lib/helpers/speedometer.js
13237
+ function speedometer(samplesCount, min) {
13238
+ samplesCount = samplesCount || 10;
13239
+ const bytes = new Array(samplesCount);
13240
+ const timestamps = new Array(samplesCount);
13241
+ let head = 0;
13242
+ let tail = 0;
13243
+ let firstSampleTS;
13244
+ min = min !== void 0 ? min : 1e3;
13245
+ return function push(chunkLength) {
13246
+ const now = Date.now();
13247
+ const startedAt = timestamps[tail];
13248
+ if (!firstSampleTS) {
13249
+ firstSampleTS = now;
13250
+ }
13251
+ bytes[head] = chunkLength;
13252
+ timestamps[head] = now;
13253
+ let i = tail;
13254
+ let bytesCount = 0;
13255
+ while (i !== head) {
13256
+ bytesCount += bytes[i++];
13257
+ i = i % samplesCount;
13258
+ }
13259
+ head = (head + 1) % samplesCount;
13260
+ if (head === tail) {
13261
+ tail = (tail + 1) % samplesCount;
13262
+ }
13263
+ if (now - firstSampleTS < min) {
13264
+ return;
13265
+ }
13266
+ const passed = startedAt && now - startedAt;
13267
+ return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
13268
+ };
13269
+ }
13270
+ var speedometer_default = speedometer;
13271
+
13272
+ // node_modules/axios/lib/helpers/throttle.js
13273
+ function throttle(fn, freq) {
13274
+ let timestamp = 0;
13275
+ let threshold = 1e3 / freq;
13276
+ let lastArgs;
13277
+ let timer;
13278
+ const invoke = (args, now = Date.now()) => {
13279
+ timestamp = now;
13280
+ lastArgs = null;
13281
+ if (timer) {
13282
+ clearTimeout(timer);
13283
+ timer = null;
13284
+ }
13285
+ fn.apply(null, args);
13286
+ };
13287
+ const throttled = (...args) => {
13288
+ const now = Date.now();
13289
+ const passed = now - timestamp;
13290
+ if (passed >= threshold) {
13291
+ invoke(args, now);
13292
+ } else {
13293
+ lastArgs = args;
13294
+ if (!timer) {
13295
+ timer = setTimeout(() => {
13296
+ timer = null;
13297
+ invoke(lastArgs);
13298
+ }, threshold - passed);
13299
+ }
13300
+ }
13301
+ };
13302
+ const flush = () => lastArgs && invoke(lastArgs);
13303
+ return [throttled, flush];
13304
+ }
13305
+ var throttle_default = throttle;
13306
+
13307
+ // node_modules/axios/lib/helpers/progressEventReducer.js
13308
+ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
13309
+ let bytesNotified = 0;
13310
+ const _speedometer = speedometer_default(50, 250);
13311
+ return throttle_default((e2) => {
13312
+ const loaded = e2.loaded;
13313
+ const total = e2.lengthComputable ? e2.total : void 0;
13314
+ const progressBytes = loaded - bytesNotified;
13315
+ const rate = _speedometer(progressBytes);
13316
+ const inRange = loaded <= total;
13317
+ bytesNotified = loaded;
13318
+ const data = {
13319
+ loaded,
13320
+ total,
13321
+ progress: total ? loaded / total : void 0,
13322
+ bytes: progressBytes,
13323
+ rate: rate ? rate : void 0,
13324
+ estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
13325
+ event: e2,
13326
+ lengthComputable: total != null,
13327
+ [isDownloadStream ? "download" : "upload"]: true
13328
+ };
13329
+ listener(data);
13330
+ }, freq);
13331
+ };
13332
+ var progressEventDecorator = (total, throttled) => {
13333
+ const lengthComputable = total != null;
13334
+ return [(loaded) => throttled[0]({
13335
+ lengthComputable,
13336
+ total,
13337
+ loaded
13338
+ }), throttled[1]];
13339
+ };
13340
+ var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
13341
+
12413
13342
  // node_modules/axios/lib/adapters/http.js
12414
13343
  var zlibOptions = {
12415
13344
  flush: zlib.constants.Z_SYNC_FLUSH,
@@ -12425,6 +13354,10 @@ var isHttps = /https:?/;
12425
13354
  var supportedProtocols = platform_default.protocols.map((protocol) => {
12426
13355
  return protocol + ":";
12427
13356
  });
13357
+ var flushOnFinish = (stream4, [throttled, flush]) => {
13358
+ stream4.on("end", flush).on("error", flush);
13359
+ return throttled;
13360
+ };
12428
13361
  function dispatchBeforeRedirect(options, responseDetails) {
12429
13362
  if (options.beforeRedirects.proxy) {
12430
13363
  options.beforeRedirects.proxy(options);
@@ -12436,7 +13369,7 @@ function dispatchBeforeRedirect(options, responseDetails) {
12436
13369
  function setProxy(options, configProxy, location) {
12437
13370
  let proxy = configProxy;
12438
13371
  if (!proxy && proxy !== false) {
12439
- const proxyUrl = (0, import_proxy_from_env.getProxyForUrl)(location);
13372
+ const proxyUrl = import_proxy_from_env.default.getProxyForUrl(location);
12440
13373
  if (proxyUrl) {
12441
13374
  proxy = new URL(proxyUrl);
12442
13375
  }
@@ -12544,8 +13477,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
12544
13477
  config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);
12545
13478
  }
12546
13479
  }
12547
- const fullPath = buildFullPath(config.baseURL, config.url);
12548
- const parsed = new URL(fullPath, "http://localhost");
13480
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
13481
+ const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
12549
13482
  const protocol = parsed.protocol || supportedProtocols[0];
12550
13483
  if (protocol === "data:") {
12551
13484
  let convertedData;
@@ -12589,8 +13522,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
12589
13522
  }
12590
13523
  const headers = AxiosHeaders_default.from(config.headers).normalize();
12591
13524
  headers.set("User-Agent", "axios/" + VERSION, false);
12592
- const onDownloadProgress = config.onDownloadProgress;
12593
- const onUploadProgress = config.onUploadProgress;
13525
+ const { onUploadProgress, onDownloadProgress } = config;
12594
13526
  const maxRate = config.maxRate;
12595
13527
  let maxUploadRate = void 0;
12596
13528
  let maxDownloadRate = void 0;
@@ -12606,12 +13538,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
12606
13538
  headers.set(data.getHeaders());
12607
13539
  if (!headers.hasContentLength()) {
12608
13540
  try {
12609
- const knownLength = await util.promisify(data.getLength).call(data);
13541
+ const knownLength = await util2.promisify(data.getLength).call(data);
12610
13542
  Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
12611
13543
  } catch (e2) {
12612
13544
  }
12613
13545
  }
12614
- } else if (utils_default.isBlob(data)) {
13546
+ } else if (utils_default.isBlob(data) || utils_default.isFile(data)) {
12615
13547
  data.size && headers.setContentType(data.type || "application/octet-stream");
12616
13548
  headers.setContentLength(data.size || 0);
12617
13549
  data = stream3.Readable.from(readBlob_default(data));
@@ -12649,14 +13581,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
12649
13581
  data = stream3.Readable.from(data, { objectMode: false });
12650
13582
  }
12651
13583
  data = stream3.pipeline([data, new AxiosTransformStream_default({
12652
- length: contentLength,
12653
13584
  maxRate: utils_default.toFiniteNumber(maxUploadRate)
12654
13585
  })], utils_default.noop);
12655
- onUploadProgress && data.on("progress", (progress) => {
12656
- onUploadProgress(Object.assign(progress, {
12657
- upload: true
12658
- }));
12659
- });
13586
+ onUploadProgress && data.on("progress", flushOnFinish(
13587
+ data,
13588
+ progressEventDecorator(
13589
+ contentLength,
13590
+ progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
13591
+ )
13592
+ ));
12660
13593
  }
12661
13594
  let auth = void 0;
12662
13595
  if (config.auth) {
@@ -12704,7 +13637,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
12704
13637
  if (config.socketPath) {
12705
13638
  options.socketPath = config.socketPath;
12706
13639
  } else {
12707
- options.hostname = parsed.hostname;
13640
+ options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
12708
13641
  options.port = parsed.port;
12709
13642
  setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
12710
13643
  }
@@ -12736,16 +13669,17 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
12736
13669
  if (req.destroyed) return;
12737
13670
  const streams = [res];
12738
13671
  const responseLength = +res.headers["content-length"];
12739
- if (onDownloadProgress) {
13672
+ if (onDownloadProgress || maxDownloadRate) {
12740
13673
  const transformStream = new AxiosTransformStream_default({
12741
- length: utils_default.toFiniteNumber(responseLength),
12742
13674
  maxRate: utils_default.toFiniteNumber(maxDownloadRate)
12743
13675
  });
12744
- onDownloadProgress && transformStream.on("progress", (progress) => {
12745
- onDownloadProgress(Object.assign(progress, {
12746
- download: true
12747
- }));
12748
- });
13676
+ onDownloadProgress && transformStream.on("progress", flushOnFinish(
13677
+ transformStream,
13678
+ progressEventDecorator(
13679
+ responseLength,
13680
+ progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
13681
+ )
13682
+ ));
12749
13683
  streams.push(transformStream);
12750
13684
  }
12751
13685
  let responseStream = res;
@@ -12812,7 +13746,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
12812
13746
  return;
12813
13747
  }
12814
13748
  const err = new AxiosError_default(
12815
- "maxContentLength size of " + config.maxContentLength + " exceeded",
13749
+ "stream has been aborted",
12816
13750
  AxiosError_default.ERR_BAD_RESPONSE,
12817
13751
  config,
12818
13752
  lastRequest
@@ -12906,6 +13840,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
12906
13840
  });
12907
13841
  };
12908
13842
 
13843
+ // node_modules/axios/lib/helpers/isURLSameOrigin.js
13844
+ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
13845
+ url2 = new URL(url2, platform_default.origin);
13846
+ return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
13847
+ })(
13848
+ new URL(platform_default.origin),
13849
+ platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
13850
+ ) : () => true;
13851
+
12909
13852
  // node_modules/axios/lib/helpers/cookies.js
12910
13853
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
12911
13854
  // Standard browser envs support document.cookie
@@ -12926,117 +13869,152 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
12926
13869
  this.write(name, "", Date.now() - 864e5);
12927
13870
  }
12928
13871
  }
12929
- ) : (
12930
- // Non-standard browser env (web workers, react-native) lack needed support.
12931
- {
12932
- write() {
12933
- },
12934
- read() {
12935
- return null;
12936
- },
12937
- remove() {
13872
+ ) : (
13873
+ // Non-standard browser env (web workers, react-native) lack needed support.
13874
+ {
13875
+ write() {
13876
+ },
13877
+ read() {
13878
+ return null;
13879
+ },
13880
+ remove() {
13881
+ }
13882
+ }
13883
+ );
13884
+
13885
+ // node_modules/axios/lib/core/mergeConfig.js
13886
+ var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
13887
+ function mergeConfig(config1, config2) {
13888
+ config2 = config2 || {};
13889
+ const config = {};
13890
+ function getMergedValue(target, source, prop, caseless) {
13891
+ if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
13892
+ return utils_default.merge.call({ caseless }, target, source);
13893
+ } else if (utils_default.isPlainObject(source)) {
13894
+ return utils_default.merge({}, source);
13895
+ } else if (utils_default.isArray(source)) {
13896
+ return source.slice();
13897
+ }
13898
+ return source;
13899
+ }
13900
+ function mergeDeepProperties(a, b, prop, caseless) {
13901
+ if (!utils_default.isUndefined(b)) {
13902
+ return getMergedValue(a, b, prop, caseless);
13903
+ } else if (!utils_default.isUndefined(a)) {
13904
+ return getMergedValue(void 0, a, prop, caseless);
13905
+ }
13906
+ }
13907
+ function valueFromConfig2(a, b) {
13908
+ if (!utils_default.isUndefined(b)) {
13909
+ return getMergedValue(void 0, b);
13910
+ }
13911
+ }
13912
+ function defaultToConfig2(a, b) {
13913
+ if (!utils_default.isUndefined(b)) {
13914
+ return getMergedValue(void 0, b);
13915
+ } else if (!utils_default.isUndefined(a)) {
13916
+ return getMergedValue(void 0, a);
13917
+ }
13918
+ }
13919
+ function mergeDirectKeys(a, b, prop) {
13920
+ if (prop in config2) {
13921
+ return getMergedValue(a, b);
13922
+ } else if (prop in config1) {
13923
+ return getMergedValue(void 0, a);
12938
13924
  }
12939
13925
  }
12940
- );
13926
+ const mergeMap = {
13927
+ url: valueFromConfig2,
13928
+ method: valueFromConfig2,
13929
+ data: valueFromConfig2,
13930
+ baseURL: defaultToConfig2,
13931
+ transformRequest: defaultToConfig2,
13932
+ transformResponse: defaultToConfig2,
13933
+ paramsSerializer: defaultToConfig2,
13934
+ timeout: defaultToConfig2,
13935
+ timeoutMessage: defaultToConfig2,
13936
+ withCredentials: defaultToConfig2,
13937
+ withXSRFToken: defaultToConfig2,
13938
+ adapter: defaultToConfig2,
13939
+ responseType: defaultToConfig2,
13940
+ xsrfCookieName: defaultToConfig2,
13941
+ xsrfHeaderName: defaultToConfig2,
13942
+ onUploadProgress: defaultToConfig2,
13943
+ onDownloadProgress: defaultToConfig2,
13944
+ decompress: defaultToConfig2,
13945
+ maxContentLength: defaultToConfig2,
13946
+ maxBodyLength: defaultToConfig2,
13947
+ beforeRedirect: defaultToConfig2,
13948
+ transport: defaultToConfig2,
13949
+ httpAgent: defaultToConfig2,
13950
+ httpsAgent: defaultToConfig2,
13951
+ cancelToken: defaultToConfig2,
13952
+ socketPath: defaultToConfig2,
13953
+ responseEncoding: defaultToConfig2,
13954
+ validateStatus: mergeDirectKeys,
13955
+ headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
13956
+ };
13957
+ utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
13958
+ const merge2 = mergeMap[prop] || mergeDeepProperties;
13959
+ const configValue = merge2(config1[prop], config2[prop], prop);
13960
+ utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
13961
+ });
13962
+ return config;
13963
+ }
12941
13964
 
12942
- // node_modules/axios/lib/helpers/isURLSameOrigin.js
12943
- var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
12944
- // Standard browser envs have full support of the APIs needed to test
12945
- // whether the request URL is of the same origin as current location.
12946
- function standardBrowserEnv() {
12947
- const msie = /(msie|trident)/i.test(navigator.userAgent);
12948
- const urlParsingNode = document.createElement("a");
12949
- let originURL;
12950
- function resolveURL(url2) {
12951
- let href = url2;
12952
- if (msie) {
12953
- urlParsingNode.setAttribute("href", href);
12954
- href = urlParsingNode.href;
12955
- }
12956
- urlParsingNode.setAttribute("href", href);
12957
- return {
12958
- href: urlParsingNode.href,
12959
- protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
12960
- host: urlParsingNode.host,
12961
- search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
12962
- hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
12963
- hostname: urlParsingNode.hostname,
12964
- port: urlParsingNode.port,
12965
- pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
12966
- };
13965
+ // node_modules/axios/lib/helpers/resolveConfig.js
13966
+ var resolveConfig_default = (config) => {
13967
+ const newConfig = mergeConfig({}, config);
13968
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
13969
+ newConfig.headers = headers = AxiosHeaders_default.from(headers);
13970
+ newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
13971
+ if (auth) {
13972
+ headers.set(
13973
+ "Authorization",
13974
+ "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
13975
+ );
13976
+ }
13977
+ let contentType;
13978
+ if (utils_default.isFormData(data)) {
13979
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
13980
+ headers.setContentType(void 0);
13981
+ } else if ((contentType = headers.getContentType()) !== false) {
13982
+ const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
13983
+ headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
12967
13984
  }
12968
- originURL = resolveURL(window.location.href);
12969
- return function isURLSameOrigin(requestURL) {
12970
- const parsed = utils_default.isString(requestURL) ? resolveURL(requestURL) : requestURL;
12971
- return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
12972
- };
12973
- }()
12974
- ) : (
12975
- // Non standard browser envs (web workers, react-native) lack needed support.
12976
- /* @__PURE__ */ function nonStandardBrowserEnv() {
12977
- return function isURLSameOrigin() {
12978
- return true;
12979
- };
12980
- }()
12981
- );
13985
+ }
13986
+ if (platform_default.hasStandardBrowserEnv) {
13987
+ withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
13988
+ if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
13989
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
13990
+ if (xsrfValue) {
13991
+ headers.set(xsrfHeaderName, xsrfValue);
13992
+ }
13993
+ }
13994
+ }
13995
+ return newConfig;
13996
+ };
12982
13997
 
12983
13998
  // node_modules/axios/lib/adapters/xhr.js
12984
- function progressEventReducer(listener, isDownloadStream) {
12985
- let bytesNotified = 0;
12986
- const _speedometer = speedometer_default(50, 250);
12987
- return (e2) => {
12988
- const loaded = e2.loaded;
12989
- const total = e2.lengthComputable ? e2.total : void 0;
12990
- const progressBytes = loaded - bytesNotified;
12991
- const rate = _speedometer(progressBytes);
12992
- const inRange = loaded <= total;
12993
- bytesNotified = loaded;
12994
- const data = {
12995
- loaded,
12996
- total,
12997
- progress: total ? loaded / total : void 0,
12998
- bytes: progressBytes,
12999
- rate: rate ? rate : void 0,
13000
- estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
13001
- event: e2
13002
- };
13003
- data[isDownloadStream ? "download" : "upload"] = true;
13004
- listener(data);
13005
- };
13006
- }
13007
13999
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
13008
14000
  var xhr_default = isXHRAdapterSupported && function(config) {
13009
14001
  return new Promise(function dispatchXhrRequest(resolve, reject) {
13010
- let requestData = config.data;
13011
- const requestHeaders = AxiosHeaders_default.from(config.headers).normalize();
13012
- let { responseType, withXSRFToken } = config;
14002
+ const _config = resolveConfig_default(config);
14003
+ let requestData = _config.data;
14004
+ const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
14005
+ let { responseType, onUploadProgress, onDownloadProgress } = _config;
13013
14006
  let onCanceled;
14007
+ let uploadThrottled, downloadThrottled;
14008
+ let flushUpload, flushDownload;
13014
14009
  function done() {
13015
- if (config.cancelToken) {
13016
- config.cancelToken.unsubscribe(onCanceled);
13017
- }
13018
- if (config.signal) {
13019
- config.signal.removeEventListener("abort", onCanceled);
13020
- }
13021
- }
13022
- let contentType;
13023
- if (utils_default.isFormData(requestData)) {
13024
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
13025
- requestHeaders.setContentType(false);
13026
- } else if ((contentType = requestHeaders.getContentType()) !== false) {
13027
- const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
13028
- requestHeaders.setContentType([type || "multipart/form-data", ...tokens].join("; "));
13029
- }
14010
+ flushUpload && flushUpload();
14011
+ flushDownload && flushDownload();
14012
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
14013
+ _config.signal && _config.signal.removeEventListener("abort", onCanceled);
13030
14014
  }
13031
14015
  let request = new XMLHttpRequest();
13032
- if (config.auth) {
13033
- const username = config.auth.username || "";
13034
- const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
13035
- requestHeaders.set("Authorization", "Basic " + btoa(username + ":" + password));
13036
- }
13037
- const fullPath = buildFullPath(config.baseURL, config.url);
13038
- request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
13039
- request.timeout = config.timeout;
14016
+ request.open(_config.method.toUpperCase(), _config.url, true);
14017
+ request.timeout = _config.timeout;
13040
14018
  function onloadend() {
13041
14019
  if (!request) {
13042
14020
  return;
@@ -13087,10 +14065,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
13087
14065
  request = null;
13088
14066
  };
13089
14067
  request.ontimeout = function handleTimeout() {
13090
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
13091
- const transitional2 = config.transitional || transitional_default;
13092
- if (config.timeoutErrorMessage) {
13093
- timeoutErrorMessage = config.timeoutErrorMessage;
14068
+ let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
14069
+ const transitional2 = _config.transitional || transitional_default;
14070
+ if (_config.timeoutErrorMessage) {
14071
+ timeoutErrorMessage = _config.timeoutErrorMessage;
13094
14072
  }
13095
14073
  reject(new AxiosError_default(
13096
14074
  timeoutErrorMessage,
@@ -13100,34 +14078,28 @@ var xhr_default = isXHRAdapterSupported && function(config) {
13100
14078
  ));
13101
14079
  request = null;
13102
14080
  };
13103
- if (platform_default.hasStandardBrowserEnv) {
13104
- withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
13105
- if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(fullPath)) {
13106
- const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
13107
- if (xsrfValue) {
13108
- requestHeaders.set(config.xsrfHeaderName, xsrfValue);
13109
- }
13110
- }
13111
- }
13112
14081
  requestData === void 0 && requestHeaders.setContentType(null);
13113
14082
  if ("setRequestHeader" in request) {
13114
14083
  utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
13115
14084
  request.setRequestHeader(key, val);
13116
14085
  });
13117
14086
  }
13118
- if (!utils_default.isUndefined(config.withCredentials)) {
13119
- request.withCredentials = !!config.withCredentials;
14087
+ if (!utils_default.isUndefined(_config.withCredentials)) {
14088
+ request.withCredentials = !!_config.withCredentials;
13120
14089
  }
13121
14090
  if (responseType && responseType !== "json") {
13122
- request.responseType = config.responseType;
14091
+ request.responseType = _config.responseType;
13123
14092
  }
13124
- if (typeof config.onDownloadProgress === "function") {
13125
- request.addEventListener("progress", progressEventReducer(config.onDownloadProgress, true));
14093
+ if (onDownloadProgress) {
14094
+ [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
14095
+ request.addEventListener("progress", downloadThrottled);
13126
14096
  }
13127
- if (typeof config.onUploadProgress === "function" && request.upload) {
13128
- request.upload.addEventListener("progress", progressEventReducer(config.onUploadProgress));
14097
+ if (onUploadProgress && request.upload) {
14098
+ [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
14099
+ request.upload.addEventListener("progress", uploadThrottled);
14100
+ request.upload.addEventListener("loadend", flushUpload);
13129
14101
  }
13130
- if (config.cancelToken || config.signal) {
14102
+ if (_config.cancelToken || _config.signal) {
13131
14103
  onCanceled = (cancel) => {
13132
14104
  if (!request) {
13133
14105
  return;
@@ -13136,12 +14108,12 @@ var xhr_default = isXHRAdapterSupported && function(config) {
13136
14108
  request.abort();
13137
14109
  request = null;
13138
14110
  };
13139
- config.cancelToken && config.cancelToken.subscribe(onCanceled);
13140
- if (config.signal) {
13141
- config.signal.aborted ? onCanceled() : config.signal.addEventListener("abort", onCanceled);
14111
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
14112
+ if (_config.signal) {
14113
+ _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
13142
14114
  }
13143
14115
  }
13144
- const protocol = parseProtocol(fullPath);
14116
+ const protocol = parseProtocol(_config.url);
13145
14117
  if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
13146
14118
  reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
13147
14119
  return;
@@ -13150,10 +14122,288 @@ var xhr_default = isXHRAdapterSupported && function(config) {
13150
14122
  });
13151
14123
  };
13152
14124
 
14125
+ // node_modules/axios/lib/helpers/composeSignals.js
14126
+ var composeSignals = (signals, timeout) => {
14127
+ const { length } = signals = signals ? signals.filter(Boolean) : [];
14128
+ if (timeout || length) {
14129
+ let controller = new AbortController();
14130
+ let aborted;
14131
+ const onabort = function(reason) {
14132
+ if (!aborted) {
14133
+ aborted = true;
14134
+ unsubscribe();
14135
+ const err = reason instanceof Error ? reason : this.reason;
14136
+ controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
14137
+ }
14138
+ };
14139
+ let timer = timeout && setTimeout(() => {
14140
+ timer = null;
14141
+ onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));
14142
+ }, timeout);
14143
+ const unsubscribe = () => {
14144
+ if (signals) {
14145
+ timer && clearTimeout(timer);
14146
+ timer = null;
14147
+ signals.forEach((signal2) => {
14148
+ signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
14149
+ });
14150
+ signals = null;
14151
+ }
14152
+ };
14153
+ signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
14154
+ const { signal } = controller;
14155
+ signal.unsubscribe = () => utils_default.asap(unsubscribe);
14156
+ return signal;
14157
+ }
14158
+ };
14159
+ var composeSignals_default = composeSignals;
14160
+
14161
+ // node_modules/axios/lib/helpers/trackStream.js
14162
+ var streamChunk = function* (chunk, chunkSize) {
14163
+ let len = chunk.byteLength;
14164
+ if (!chunkSize || len < chunkSize) {
14165
+ yield chunk;
14166
+ return;
14167
+ }
14168
+ let pos = 0;
14169
+ let end;
14170
+ while (pos < len) {
14171
+ end = pos + chunkSize;
14172
+ yield chunk.slice(pos, end);
14173
+ pos = end;
14174
+ }
14175
+ };
14176
+ var readBytes = async function* (iterable, chunkSize) {
14177
+ for await (const chunk of readStream(iterable)) {
14178
+ yield* streamChunk(chunk, chunkSize);
14179
+ }
14180
+ };
14181
+ var readStream = async function* (stream4) {
14182
+ if (stream4[Symbol.asyncIterator]) {
14183
+ yield* stream4;
14184
+ return;
14185
+ }
14186
+ const reader = stream4.getReader();
14187
+ try {
14188
+ for (; ; ) {
14189
+ const { done, value } = await reader.read();
14190
+ if (done) {
14191
+ break;
14192
+ }
14193
+ yield value;
14194
+ }
14195
+ } finally {
14196
+ await reader.cancel();
14197
+ }
14198
+ };
14199
+ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
14200
+ const iterator = readBytes(stream4, chunkSize);
14201
+ let bytes = 0;
14202
+ let done;
14203
+ let _onFinish = (e2) => {
14204
+ if (!done) {
14205
+ done = true;
14206
+ onFinish && onFinish(e2);
14207
+ }
14208
+ };
14209
+ return new ReadableStream({
14210
+ async pull(controller) {
14211
+ try {
14212
+ const { done: done2, value } = await iterator.next();
14213
+ if (done2) {
14214
+ _onFinish();
14215
+ controller.close();
14216
+ return;
14217
+ }
14218
+ let len = value.byteLength;
14219
+ if (onProgress) {
14220
+ let loadedBytes = bytes += len;
14221
+ onProgress(loadedBytes);
14222
+ }
14223
+ controller.enqueue(new Uint8Array(value));
14224
+ } catch (err) {
14225
+ _onFinish(err);
14226
+ throw err;
14227
+ }
14228
+ },
14229
+ cancel(reason) {
14230
+ _onFinish(reason);
14231
+ return iterator.return();
14232
+ }
14233
+ }, {
14234
+ highWaterMark: 2
14235
+ });
14236
+ };
14237
+
14238
+ // node_modules/axios/lib/adapters/fetch.js
14239
+ var isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
14240
+ var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
14241
+ var encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
14242
+ var test = (fn, ...args) => {
14243
+ try {
14244
+ return !!fn(...args);
14245
+ } catch (e2) {
14246
+ return false;
14247
+ }
14248
+ };
14249
+ var supportsRequestStream = isReadableStreamSupported && test(() => {
14250
+ let duplexAccessed = false;
14251
+ const hasContentType = new Request(platform_default.origin, {
14252
+ body: new ReadableStream(),
14253
+ method: "POST",
14254
+ get duplex() {
14255
+ duplexAccessed = true;
14256
+ return "half";
14257
+ }
14258
+ }).headers.has("Content-Type");
14259
+ return duplexAccessed && !hasContentType;
14260
+ });
14261
+ var DEFAULT_CHUNK_SIZE = 64 * 1024;
14262
+ var supportsResponseStream = isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
14263
+ var resolvers = {
14264
+ stream: supportsResponseStream && ((res) => res.body)
14265
+ };
14266
+ isFetchSupported && ((res) => {
14267
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
14268
+ !resolvers[type] && (resolvers[type] = utils_default.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
14269
+ throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
14270
+ });
14271
+ });
14272
+ })(new Response());
14273
+ var getBodyLength = async (body) => {
14274
+ if (body == null) {
14275
+ return 0;
14276
+ }
14277
+ if (utils_default.isBlob(body)) {
14278
+ return body.size;
14279
+ }
14280
+ if (utils_default.isSpecCompliantForm(body)) {
14281
+ const _request = new Request(platform_default.origin, {
14282
+ method: "POST",
14283
+ body
14284
+ });
14285
+ return (await _request.arrayBuffer()).byteLength;
14286
+ }
14287
+ if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
14288
+ return body.byteLength;
14289
+ }
14290
+ if (utils_default.isURLSearchParams(body)) {
14291
+ body = body + "";
14292
+ }
14293
+ if (utils_default.isString(body)) {
14294
+ return (await encodeText(body)).byteLength;
14295
+ }
14296
+ };
14297
+ var resolveBodyLength = async (headers, body) => {
14298
+ const length = utils_default.toFiniteNumber(headers.getContentLength());
14299
+ return length == null ? getBodyLength(body) : length;
14300
+ };
14301
+ var fetch_default = isFetchSupported && (async (config) => {
14302
+ let {
14303
+ url: url2,
14304
+ method,
14305
+ data,
14306
+ signal,
14307
+ cancelToken,
14308
+ timeout,
14309
+ onDownloadProgress,
14310
+ onUploadProgress,
14311
+ responseType,
14312
+ headers,
14313
+ withCredentials = "same-origin",
14314
+ fetchOptions
14315
+ } = resolveConfig_default(config);
14316
+ responseType = responseType ? (responseType + "").toLowerCase() : "text";
14317
+ let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
14318
+ let request;
14319
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
14320
+ composedSignal.unsubscribe();
14321
+ });
14322
+ let requestContentLength;
14323
+ try {
14324
+ if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
14325
+ let _request = new Request(url2, {
14326
+ method: "POST",
14327
+ body: data,
14328
+ duplex: "half"
14329
+ });
14330
+ let contentTypeHeader;
14331
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
14332
+ headers.setContentType(contentTypeHeader);
14333
+ }
14334
+ if (_request.body) {
14335
+ const [onProgress, flush] = progressEventDecorator(
14336
+ requestContentLength,
14337
+ progressEventReducer(asyncDecorator(onUploadProgress))
14338
+ );
14339
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
14340
+ }
14341
+ }
14342
+ if (!utils_default.isString(withCredentials)) {
14343
+ withCredentials = withCredentials ? "include" : "omit";
14344
+ }
14345
+ const isCredentialsSupported = "credentials" in Request.prototype;
14346
+ request = new Request(url2, {
14347
+ ...fetchOptions,
14348
+ signal: composedSignal,
14349
+ method: method.toUpperCase(),
14350
+ headers: headers.normalize().toJSON(),
14351
+ body: data,
14352
+ duplex: "half",
14353
+ credentials: isCredentialsSupported ? withCredentials : void 0
14354
+ });
14355
+ let response = await fetch(request);
14356
+ const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
14357
+ if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
14358
+ const options = {};
14359
+ ["status", "statusText", "headers"].forEach((prop) => {
14360
+ options[prop] = response[prop];
14361
+ });
14362
+ const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
14363
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
14364
+ responseContentLength,
14365
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
14366
+ ) || [];
14367
+ response = new Response(
14368
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
14369
+ flush && flush();
14370
+ unsubscribe && unsubscribe();
14371
+ }),
14372
+ options
14373
+ );
14374
+ }
14375
+ responseType = responseType || "text";
14376
+ let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
14377
+ !isStreamResponse && unsubscribe && unsubscribe();
14378
+ return await new Promise((resolve, reject) => {
14379
+ settle(resolve, reject, {
14380
+ data: responseData,
14381
+ headers: AxiosHeaders_default.from(response.headers),
14382
+ status: response.status,
14383
+ statusText: response.statusText,
14384
+ config,
14385
+ request
14386
+ });
14387
+ });
14388
+ } catch (err) {
14389
+ unsubscribe && unsubscribe();
14390
+ if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
14391
+ throw Object.assign(
14392
+ new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request),
14393
+ {
14394
+ cause: err.cause || err
14395
+ }
14396
+ );
14397
+ }
14398
+ throw AxiosError_default.from(err, err && err.code, config, request);
14399
+ }
14400
+ });
14401
+
13153
14402
  // node_modules/axios/lib/adapters/adapters.js
13154
14403
  var knownAdapters = {
13155
14404
  http: http_default,
13156
- xhr: xhr_default
14405
+ xhr: xhr_default,
14406
+ fetch: fetch_default
13157
14407
  };
13158
14408
  utils_default.forEach(knownAdapters, (fn, value) => {
13159
14409
  if (fn) {
@@ -13248,86 +14498,6 @@ function dispatchRequest(config) {
13248
14498
  });
13249
14499
  }
13250
14500
 
13251
- // node_modules/axios/lib/core/mergeConfig.js
13252
- var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
13253
- function mergeConfig(config1, config2) {
13254
- config2 = config2 || {};
13255
- const config = {};
13256
- function getMergedValue(target, source, caseless) {
13257
- if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
13258
- return utils_default.merge.call({ caseless }, target, source);
13259
- } else if (utils_default.isPlainObject(source)) {
13260
- return utils_default.merge({}, source);
13261
- } else if (utils_default.isArray(source)) {
13262
- return source.slice();
13263
- }
13264
- return source;
13265
- }
13266
- function mergeDeepProperties(a, b, caseless) {
13267
- if (!utils_default.isUndefined(b)) {
13268
- return getMergedValue(a, b, caseless);
13269
- } else if (!utils_default.isUndefined(a)) {
13270
- return getMergedValue(void 0, a, caseless);
13271
- }
13272
- }
13273
- function valueFromConfig2(a, b) {
13274
- if (!utils_default.isUndefined(b)) {
13275
- return getMergedValue(void 0, b);
13276
- }
13277
- }
13278
- function defaultToConfig2(a, b) {
13279
- if (!utils_default.isUndefined(b)) {
13280
- return getMergedValue(void 0, b);
13281
- } else if (!utils_default.isUndefined(a)) {
13282
- return getMergedValue(void 0, a);
13283
- }
13284
- }
13285
- function mergeDirectKeys(a, b, prop) {
13286
- if (prop in config2) {
13287
- return getMergedValue(a, b);
13288
- } else if (prop in config1) {
13289
- return getMergedValue(void 0, a);
13290
- }
13291
- }
13292
- const mergeMap = {
13293
- url: valueFromConfig2,
13294
- method: valueFromConfig2,
13295
- data: valueFromConfig2,
13296
- baseURL: defaultToConfig2,
13297
- transformRequest: defaultToConfig2,
13298
- transformResponse: defaultToConfig2,
13299
- paramsSerializer: defaultToConfig2,
13300
- timeout: defaultToConfig2,
13301
- timeoutMessage: defaultToConfig2,
13302
- withCredentials: defaultToConfig2,
13303
- withXSRFToken: defaultToConfig2,
13304
- adapter: defaultToConfig2,
13305
- responseType: defaultToConfig2,
13306
- xsrfCookieName: defaultToConfig2,
13307
- xsrfHeaderName: defaultToConfig2,
13308
- onUploadProgress: defaultToConfig2,
13309
- onDownloadProgress: defaultToConfig2,
13310
- decompress: defaultToConfig2,
13311
- maxContentLength: defaultToConfig2,
13312
- maxBodyLength: defaultToConfig2,
13313
- beforeRedirect: defaultToConfig2,
13314
- transport: defaultToConfig2,
13315
- httpAgent: defaultToConfig2,
13316
- httpsAgent: defaultToConfig2,
13317
- cancelToken: defaultToConfig2,
13318
- socketPath: defaultToConfig2,
13319
- responseEncoding: defaultToConfig2,
13320
- validateStatus: mergeDirectKeys,
13321
- headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
13322
- };
13323
- utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
13324
- const merge2 = mergeMap[prop] || mergeDeepProperties;
13325
- const configValue = merge2(config1[prop], config2[prop], prop);
13326
- utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
13327
- });
13328
- return config;
13329
- }
13330
-
13331
14501
  // node_modules/axios/lib/helpers/validator.js
13332
14502
  var validators = {};
13333
14503
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
@@ -13359,6 +14529,12 @@ validators.transitional = function transitional(validator, version, message) {
13359
14529
  return validator ? validator(value, opt, opts) : true;
13360
14530
  };
13361
14531
  };
14532
+ validators.spelling = function spelling(correctSpelling) {
14533
+ return (value, opt) => {
14534
+ console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
14535
+ return true;
14536
+ };
14537
+ };
13362
14538
  function assertOptions(options, schema, allowUnknown) {
13363
14539
  if (typeof options !== "object") {
13364
14540
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
@@ -13409,13 +14585,16 @@ var Axios = class {
13409
14585
  return await this._request(configOrUrl, config);
13410
14586
  } catch (err) {
13411
14587
  if (err instanceof Error) {
13412
- let dummy;
13413
- Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error();
14588
+ let dummy = {};
14589
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
13414
14590
  const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
13415
- if (!err.stack) {
13416
- err.stack = stack;
13417
- } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
13418
- err.stack += "\n" + stack;
14591
+ try {
14592
+ if (!err.stack) {
14593
+ err.stack = stack;
14594
+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
14595
+ err.stack += "\n" + stack;
14596
+ }
14597
+ } catch (e2) {
13419
14598
  }
13420
14599
  }
13421
14600
  throw err;
@@ -13449,6 +14628,16 @@ var Axios = class {
13449
14628
  }, true);
13450
14629
  }
13451
14630
  }
14631
+ if (config.allowAbsoluteUrls !== void 0) {
14632
+ } else if (this.defaults.allowAbsoluteUrls !== void 0) {
14633
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
14634
+ } else {
14635
+ config.allowAbsoluteUrls = true;
14636
+ }
14637
+ validator_default.assertOptions(config, {
14638
+ baseUrl: validators2.spelling("baseURL"),
14639
+ withXsrfToken: validators2.spelling("withXSRFToken")
14640
+ }, true);
13452
14641
  config.method = (config.method || this.defaults.method || "get").toLowerCase();
13453
14642
  let contextHeaders = headers && utils_default.merge(
13454
14643
  headers.common,
@@ -13515,7 +14704,7 @@ var Axios = class {
13515
14704
  }
13516
14705
  getUri(config) {
13517
14706
  config = mergeConfig(this.defaults, config);
13518
- const fullPath = buildFullPath(config.baseURL, config.url);
14707
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
13519
14708
  return buildURL(fullPath, config.params, config.paramsSerializer);
13520
14709
  }
13521
14710
  };
@@ -13618,6 +14807,15 @@ var CancelToken = class _CancelToken {
13618
14807
  this._listeners.splice(index, 1);
13619
14808
  }
13620
14809
  }
14810
+ toAbortSignal() {
14811
+ const controller = new AbortController();
14812
+ const abort = (err) => {
14813
+ controller.abort(err);
14814
+ };
14815
+ this.subscribe(abort);
14816
+ controller.signal.unsubscribe = () => this.unsubscribe(abort);
14817
+ return controller.signal;
14818
+ }
13621
14819
  /**
13622
14820
  * Returns an object that contains a new `CancelToken` and a function that, when called,
13623
14821
  * cancels the `CancelToken`.