@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.
- package/dist/index.cjs +1628 -430
- package/dist/index.js +1627 -429
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -35,7 +35,7 @@ var require_delayed_stream = __commonJS({
|
|
|
35
35
|
"node_modules/delayed-stream/lib/delayed_stream.js"(exports2, module2) {
|
|
36
36
|
"use strict";
|
|
37
37
|
var Stream = require("stream").Stream;
|
|
38
|
-
var
|
|
38
|
+
var util3 = require("util");
|
|
39
39
|
module2.exports = DelayedStream;
|
|
40
40
|
function DelayedStream() {
|
|
41
41
|
this.source = null;
|
|
@@ -46,7 +46,7 @@ var require_delayed_stream = __commonJS({
|
|
|
46
46
|
this._released = false;
|
|
47
47
|
this._bufferedEvents = [];
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
util3.inherits(DelayedStream, Stream);
|
|
50
50
|
DelayedStream.create = function(source, options) {
|
|
51
51
|
var delayedStream = new this();
|
|
52
52
|
options = options || {};
|
|
@@ -126,7 +126,7 @@ var require_delayed_stream = __commonJS({
|
|
|
126
126
|
var require_combined_stream = __commonJS({
|
|
127
127
|
"node_modules/combined-stream/lib/combined_stream.js"(exports2, module2) {
|
|
128
128
|
"use strict";
|
|
129
|
-
var
|
|
129
|
+
var util3 = require("util");
|
|
130
130
|
var Stream = require("stream").Stream;
|
|
131
131
|
var DelayedStream = require_delayed_stream();
|
|
132
132
|
module2.exports = CombinedStream;
|
|
@@ -142,7 +142,7 @@ var require_combined_stream = __commonJS({
|
|
|
142
142
|
this._insideLoop = false;
|
|
143
143
|
this._pendingNext = false;
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
util3.inherits(CombinedStream, Stream);
|
|
146
146
|
CombinedStream.create = function(options) {
|
|
147
147
|
var combinedStream = new this();
|
|
148
148
|
options = options || {};
|
|
@@ -9134,6 +9134,852 @@ var require_asynckit = __commonJS({
|
|
|
9134
9134
|
}
|
|
9135
9135
|
});
|
|
9136
9136
|
|
|
9137
|
+
// node_modules/es-object-atoms/index.js
|
|
9138
|
+
var require_es_object_atoms = __commonJS({
|
|
9139
|
+
"node_modules/es-object-atoms/index.js"(exports2, module2) {
|
|
9140
|
+
"use strict";
|
|
9141
|
+
module2.exports = Object;
|
|
9142
|
+
}
|
|
9143
|
+
});
|
|
9144
|
+
|
|
9145
|
+
// node_modules/es-errors/index.js
|
|
9146
|
+
var require_es_errors = __commonJS({
|
|
9147
|
+
"node_modules/es-errors/index.js"(exports2, module2) {
|
|
9148
|
+
"use strict";
|
|
9149
|
+
module2.exports = Error;
|
|
9150
|
+
}
|
|
9151
|
+
});
|
|
9152
|
+
|
|
9153
|
+
// node_modules/es-errors/eval.js
|
|
9154
|
+
var require_eval = __commonJS({
|
|
9155
|
+
"node_modules/es-errors/eval.js"(exports2, module2) {
|
|
9156
|
+
"use strict";
|
|
9157
|
+
module2.exports = EvalError;
|
|
9158
|
+
}
|
|
9159
|
+
});
|
|
9160
|
+
|
|
9161
|
+
// node_modules/es-errors/range.js
|
|
9162
|
+
var require_range = __commonJS({
|
|
9163
|
+
"node_modules/es-errors/range.js"(exports2, module2) {
|
|
9164
|
+
"use strict";
|
|
9165
|
+
module2.exports = RangeError;
|
|
9166
|
+
}
|
|
9167
|
+
});
|
|
9168
|
+
|
|
9169
|
+
// node_modules/es-errors/ref.js
|
|
9170
|
+
var require_ref = __commonJS({
|
|
9171
|
+
"node_modules/es-errors/ref.js"(exports2, module2) {
|
|
9172
|
+
"use strict";
|
|
9173
|
+
module2.exports = ReferenceError;
|
|
9174
|
+
}
|
|
9175
|
+
});
|
|
9176
|
+
|
|
9177
|
+
// node_modules/es-errors/syntax.js
|
|
9178
|
+
var require_syntax = __commonJS({
|
|
9179
|
+
"node_modules/es-errors/syntax.js"(exports2, module2) {
|
|
9180
|
+
"use strict";
|
|
9181
|
+
module2.exports = SyntaxError;
|
|
9182
|
+
}
|
|
9183
|
+
});
|
|
9184
|
+
|
|
9185
|
+
// node_modules/es-errors/type.js
|
|
9186
|
+
var require_type = __commonJS({
|
|
9187
|
+
"node_modules/es-errors/type.js"(exports2, module2) {
|
|
9188
|
+
"use strict";
|
|
9189
|
+
module2.exports = TypeError;
|
|
9190
|
+
}
|
|
9191
|
+
});
|
|
9192
|
+
|
|
9193
|
+
// node_modules/es-errors/uri.js
|
|
9194
|
+
var require_uri = __commonJS({
|
|
9195
|
+
"node_modules/es-errors/uri.js"(exports2, module2) {
|
|
9196
|
+
"use strict";
|
|
9197
|
+
module2.exports = URIError;
|
|
9198
|
+
}
|
|
9199
|
+
});
|
|
9200
|
+
|
|
9201
|
+
// node_modules/math-intrinsics/abs.js
|
|
9202
|
+
var require_abs = __commonJS({
|
|
9203
|
+
"node_modules/math-intrinsics/abs.js"(exports2, module2) {
|
|
9204
|
+
"use strict";
|
|
9205
|
+
module2.exports = Math.abs;
|
|
9206
|
+
}
|
|
9207
|
+
});
|
|
9208
|
+
|
|
9209
|
+
// node_modules/math-intrinsics/floor.js
|
|
9210
|
+
var require_floor = __commonJS({
|
|
9211
|
+
"node_modules/math-intrinsics/floor.js"(exports2, module2) {
|
|
9212
|
+
"use strict";
|
|
9213
|
+
module2.exports = Math.floor;
|
|
9214
|
+
}
|
|
9215
|
+
});
|
|
9216
|
+
|
|
9217
|
+
// node_modules/math-intrinsics/max.js
|
|
9218
|
+
var require_max = __commonJS({
|
|
9219
|
+
"node_modules/math-intrinsics/max.js"(exports2, module2) {
|
|
9220
|
+
"use strict";
|
|
9221
|
+
module2.exports = Math.max;
|
|
9222
|
+
}
|
|
9223
|
+
});
|
|
9224
|
+
|
|
9225
|
+
// node_modules/math-intrinsics/min.js
|
|
9226
|
+
var require_min = __commonJS({
|
|
9227
|
+
"node_modules/math-intrinsics/min.js"(exports2, module2) {
|
|
9228
|
+
"use strict";
|
|
9229
|
+
module2.exports = Math.min;
|
|
9230
|
+
}
|
|
9231
|
+
});
|
|
9232
|
+
|
|
9233
|
+
// node_modules/math-intrinsics/pow.js
|
|
9234
|
+
var require_pow = __commonJS({
|
|
9235
|
+
"node_modules/math-intrinsics/pow.js"(exports2, module2) {
|
|
9236
|
+
"use strict";
|
|
9237
|
+
module2.exports = Math.pow;
|
|
9238
|
+
}
|
|
9239
|
+
});
|
|
9240
|
+
|
|
9241
|
+
// node_modules/math-intrinsics/round.js
|
|
9242
|
+
var require_round = __commonJS({
|
|
9243
|
+
"node_modules/math-intrinsics/round.js"(exports2, module2) {
|
|
9244
|
+
"use strict";
|
|
9245
|
+
module2.exports = Math.round;
|
|
9246
|
+
}
|
|
9247
|
+
});
|
|
9248
|
+
|
|
9249
|
+
// node_modules/math-intrinsics/isNaN.js
|
|
9250
|
+
var require_isNaN = __commonJS({
|
|
9251
|
+
"node_modules/math-intrinsics/isNaN.js"(exports2, module2) {
|
|
9252
|
+
"use strict";
|
|
9253
|
+
module2.exports = Number.isNaN || function isNaN2(a) {
|
|
9254
|
+
return a !== a;
|
|
9255
|
+
};
|
|
9256
|
+
}
|
|
9257
|
+
});
|
|
9258
|
+
|
|
9259
|
+
// node_modules/math-intrinsics/sign.js
|
|
9260
|
+
var require_sign = __commonJS({
|
|
9261
|
+
"node_modules/math-intrinsics/sign.js"(exports2, module2) {
|
|
9262
|
+
"use strict";
|
|
9263
|
+
var $isNaN = require_isNaN();
|
|
9264
|
+
module2.exports = function sign(number) {
|
|
9265
|
+
if ($isNaN(number) || number === 0) {
|
|
9266
|
+
return number;
|
|
9267
|
+
}
|
|
9268
|
+
return number < 0 ? -1 : 1;
|
|
9269
|
+
};
|
|
9270
|
+
}
|
|
9271
|
+
});
|
|
9272
|
+
|
|
9273
|
+
// node_modules/gopd/gOPD.js
|
|
9274
|
+
var require_gOPD = __commonJS({
|
|
9275
|
+
"node_modules/gopd/gOPD.js"(exports2, module2) {
|
|
9276
|
+
"use strict";
|
|
9277
|
+
module2.exports = Object.getOwnPropertyDescriptor;
|
|
9278
|
+
}
|
|
9279
|
+
});
|
|
9280
|
+
|
|
9281
|
+
// node_modules/gopd/index.js
|
|
9282
|
+
var require_gopd = __commonJS({
|
|
9283
|
+
"node_modules/gopd/index.js"(exports2, module2) {
|
|
9284
|
+
"use strict";
|
|
9285
|
+
var $gOPD = require_gOPD();
|
|
9286
|
+
if ($gOPD) {
|
|
9287
|
+
try {
|
|
9288
|
+
$gOPD([], "length");
|
|
9289
|
+
} catch (e2) {
|
|
9290
|
+
$gOPD = null;
|
|
9291
|
+
}
|
|
9292
|
+
}
|
|
9293
|
+
module2.exports = $gOPD;
|
|
9294
|
+
}
|
|
9295
|
+
});
|
|
9296
|
+
|
|
9297
|
+
// node_modules/es-define-property/index.js
|
|
9298
|
+
var require_es_define_property = __commonJS({
|
|
9299
|
+
"node_modules/es-define-property/index.js"(exports2, module2) {
|
|
9300
|
+
"use strict";
|
|
9301
|
+
var $defineProperty = Object.defineProperty || false;
|
|
9302
|
+
if ($defineProperty) {
|
|
9303
|
+
try {
|
|
9304
|
+
$defineProperty({}, "a", { value: 1 });
|
|
9305
|
+
} catch (e2) {
|
|
9306
|
+
$defineProperty = false;
|
|
9307
|
+
}
|
|
9308
|
+
}
|
|
9309
|
+
module2.exports = $defineProperty;
|
|
9310
|
+
}
|
|
9311
|
+
});
|
|
9312
|
+
|
|
9313
|
+
// node_modules/has-symbols/shams.js
|
|
9314
|
+
var require_shams = __commonJS({
|
|
9315
|
+
"node_modules/has-symbols/shams.js"(exports2, module2) {
|
|
9316
|
+
"use strict";
|
|
9317
|
+
module2.exports = function hasSymbols() {
|
|
9318
|
+
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
9319
|
+
return false;
|
|
9320
|
+
}
|
|
9321
|
+
if (typeof Symbol.iterator === "symbol") {
|
|
9322
|
+
return true;
|
|
9323
|
+
}
|
|
9324
|
+
var obj = {};
|
|
9325
|
+
var sym = Symbol("test");
|
|
9326
|
+
var symObj = Object(sym);
|
|
9327
|
+
if (typeof sym === "string") {
|
|
9328
|
+
return false;
|
|
9329
|
+
}
|
|
9330
|
+
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
9331
|
+
return false;
|
|
9332
|
+
}
|
|
9333
|
+
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
9334
|
+
return false;
|
|
9335
|
+
}
|
|
9336
|
+
var symVal = 42;
|
|
9337
|
+
obj[sym] = symVal;
|
|
9338
|
+
for (var _ in obj) {
|
|
9339
|
+
return false;
|
|
9340
|
+
}
|
|
9341
|
+
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
9342
|
+
return false;
|
|
9343
|
+
}
|
|
9344
|
+
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
9345
|
+
return false;
|
|
9346
|
+
}
|
|
9347
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
9348
|
+
if (syms.length !== 1 || syms[0] !== sym) {
|
|
9349
|
+
return false;
|
|
9350
|
+
}
|
|
9351
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
9352
|
+
return false;
|
|
9353
|
+
}
|
|
9354
|
+
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
9355
|
+
var descriptor = (
|
|
9356
|
+
/** @type {PropertyDescriptor} */
|
|
9357
|
+
Object.getOwnPropertyDescriptor(obj, sym)
|
|
9358
|
+
);
|
|
9359
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
9360
|
+
return false;
|
|
9361
|
+
}
|
|
9362
|
+
}
|
|
9363
|
+
return true;
|
|
9364
|
+
};
|
|
9365
|
+
}
|
|
9366
|
+
});
|
|
9367
|
+
|
|
9368
|
+
// node_modules/has-symbols/index.js
|
|
9369
|
+
var require_has_symbols = __commonJS({
|
|
9370
|
+
"node_modules/has-symbols/index.js"(exports2, module2) {
|
|
9371
|
+
"use strict";
|
|
9372
|
+
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
9373
|
+
var hasSymbolSham = require_shams();
|
|
9374
|
+
module2.exports = function hasNativeSymbols() {
|
|
9375
|
+
if (typeof origSymbol !== "function") {
|
|
9376
|
+
return false;
|
|
9377
|
+
}
|
|
9378
|
+
if (typeof Symbol !== "function") {
|
|
9379
|
+
return false;
|
|
9380
|
+
}
|
|
9381
|
+
if (typeof origSymbol("foo") !== "symbol") {
|
|
9382
|
+
return false;
|
|
9383
|
+
}
|
|
9384
|
+
if (typeof Symbol("bar") !== "symbol") {
|
|
9385
|
+
return false;
|
|
9386
|
+
}
|
|
9387
|
+
return hasSymbolSham();
|
|
9388
|
+
};
|
|
9389
|
+
}
|
|
9390
|
+
});
|
|
9391
|
+
|
|
9392
|
+
// node_modules/get-proto/Reflect.getPrototypeOf.js
|
|
9393
|
+
var require_Reflect_getPrototypeOf = __commonJS({
|
|
9394
|
+
"node_modules/get-proto/Reflect.getPrototypeOf.js"(exports2, module2) {
|
|
9395
|
+
"use strict";
|
|
9396
|
+
module2.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
9397
|
+
}
|
|
9398
|
+
});
|
|
9399
|
+
|
|
9400
|
+
// node_modules/get-proto/Object.getPrototypeOf.js
|
|
9401
|
+
var require_Object_getPrototypeOf = __commonJS({
|
|
9402
|
+
"node_modules/get-proto/Object.getPrototypeOf.js"(exports2, module2) {
|
|
9403
|
+
"use strict";
|
|
9404
|
+
var $Object = require_es_object_atoms();
|
|
9405
|
+
module2.exports = $Object.getPrototypeOf || null;
|
|
9406
|
+
}
|
|
9407
|
+
});
|
|
9408
|
+
|
|
9409
|
+
// node_modules/function-bind/implementation.js
|
|
9410
|
+
var require_implementation = __commonJS({
|
|
9411
|
+
"node_modules/function-bind/implementation.js"(exports2, module2) {
|
|
9412
|
+
"use strict";
|
|
9413
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
9414
|
+
var toStr = Object.prototype.toString;
|
|
9415
|
+
var max = Math.max;
|
|
9416
|
+
var funcType = "[object Function]";
|
|
9417
|
+
var concatty = function concatty2(a, b) {
|
|
9418
|
+
var arr = [];
|
|
9419
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
9420
|
+
arr[i] = a[i];
|
|
9421
|
+
}
|
|
9422
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
9423
|
+
arr[j + a.length] = b[j];
|
|
9424
|
+
}
|
|
9425
|
+
return arr;
|
|
9426
|
+
};
|
|
9427
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
9428
|
+
var arr = [];
|
|
9429
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
9430
|
+
arr[j] = arrLike[i];
|
|
9431
|
+
}
|
|
9432
|
+
return arr;
|
|
9433
|
+
};
|
|
9434
|
+
var joiny = function(arr, joiner) {
|
|
9435
|
+
var str = "";
|
|
9436
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
9437
|
+
str += arr[i];
|
|
9438
|
+
if (i + 1 < arr.length) {
|
|
9439
|
+
str += joiner;
|
|
9440
|
+
}
|
|
9441
|
+
}
|
|
9442
|
+
return str;
|
|
9443
|
+
};
|
|
9444
|
+
module2.exports = function bind2(that) {
|
|
9445
|
+
var target = this;
|
|
9446
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
9447
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
9448
|
+
}
|
|
9449
|
+
var args = slicy(arguments, 1);
|
|
9450
|
+
var bound;
|
|
9451
|
+
var binder = function() {
|
|
9452
|
+
if (this instanceof bound) {
|
|
9453
|
+
var result = target.apply(
|
|
9454
|
+
this,
|
|
9455
|
+
concatty(args, arguments)
|
|
9456
|
+
);
|
|
9457
|
+
if (Object(result) === result) {
|
|
9458
|
+
return result;
|
|
9459
|
+
}
|
|
9460
|
+
return this;
|
|
9461
|
+
}
|
|
9462
|
+
return target.apply(
|
|
9463
|
+
that,
|
|
9464
|
+
concatty(args, arguments)
|
|
9465
|
+
);
|
|
9466
|
+
};
|
|
9467
|
+
var boundLength = max(0, target.length - args.length);
|
|
9468
|
+
var boundArgs = [];
|
|
9469
|
+
for (var i = 0; i < boundLength; i++) {
|
|
9470
|
+
boundArgs[i] = "$" + i;
|
|
9471
|
+
}
|
|
9472
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
9473
|
+
if (target.prototype) {
|
|
9474
|
+
var Empty = function Empty2() {
|
|
9475
|
+
};
|
|
9476
|
+
Empty.prototype = target.prototype;
|
|
9477
|
+
bound.prototype = new Empty();
|
|
9478
|
+
Empty.prototype = null;
|
|
9479
|
+
}
|
|
9480
|
+
return bound;
|
|
9481
|
+
};
|
|
9482
|
+
}
|
|
9483
|
+
});
|
|
9484
|
+
|
|
9485
|
+
// node_modules/function-bind/index.js
|
|
9486
|
+
var require_function_bind = __commonJS({
|
|
9487
|
+
"node_modules/function-bind/index.js"(exports2, module2) {
|
|
9488
|
+
"use strict";
|
|
9489
|
+
var implementation = require_implementation();
|
|
9490
|
+
module2.exports = Function.prototype.bind || implementation;
|
|
9491
|
+
}
|
|
9492
|
+
});
|
|
9493
|
+
|
|
9494
|
+
// node_modules/call-bind-apply-helpers/functionCall.js
|
|
9495
|
+
var require_functionCall = __commonJS({
|
|
9496
|
+
"node_modules/call-bind-apply-helpers/functionCall.js"(exports2, module2) {
|
|
9497
|
+
"use strict";
|
|
9498
|
+
module2.exports = Function.prototype.call;
|
|
9499
|
+
}
|
|
9500
|
+
});
|
|
9501
|
+
|
|
9502
|
+
// node_modules/call-bind-apply-helpers/functionApply.js
|
|
9503
|
+
var require_functionApply = __commonJS({
|
|
9504
|
+
"node_modules/call-bind-apply-helpers/functionApply.js"(exports2, module2) {
|
|
9505
|
+
"use strict";
|
|
9506
|
+
module2.exports = Function.prototype.apply;
|
|
9507
|
+
}
|
|
9508
|
+
});
|
|
9509
|
+
|
|
9510
|
+
// node_modules/call-bind-apply-helpers/reflectApply.js
|
|
9511
|
+
var require_reflectApply = __commonJS({
|
|
9512
|
+
"node_modules/call-bind-apply-helpers/reflectApply.js"(exports2, module2) {
|
|
9513
|
+
"use strict";
|
|
9514
|
+
module2.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
9515
|
+
}
|
|
9516
|
+
});
|
|
9517
|
+
|
|
9518
|
+
// node_modules/call-bind-apply-helpers/actualApply.js
|
|
9519
|
+
var require_actualApply = __commonJS({
|
|
9520
|
+
"node_modules/call-bind-apply-helpers/actualApply.js"(exports2, module2) {
|
|
9521
|
+
"use strict";
|
|
9522
|
+
var bind2 = require_function_bind();
|
|
9523
|
+
var $apply = require_functionApply();
|
|
9524
|
+
var $call = require_functionCall();
|
|
9525
|
+
var $reflectApply = require_reflectApply();
|
|
9526
|
+
module2.exports = $reflectApply || bind2.call($call, $apply);
|
|
9527
|
+
}
|
|
9528
|
+
});
|
|
9529
|
+
|
|
9530
|
+
// node_modules/call-bind-apply-helpers/index.js
|
|
9531
|
+
var require_call_bind_apply_helpers = __commonJS({
|
|
9532
|
+
"node_modules/call-bind-apply-helpers/index.js"(exports2, module2) {
|
|
9533
|
+
"use strict";
|
|
9534
|
+
var bind2 = require_function_bind();
|
|
9535
|
+
var $TypeError = require_type();
|
|
9536
|
+
var $call = require_functionCall();
|
|
9537
|
+
var $actualApply = require_actualApply();
|
|
9538
|
+
module2.exports = function callBindBasic(args) {
|
|
9539
|
+
if (args.length < 1 || typeof args[0] !== "function") {
|
|
9540
|
+
throw new $TypeError("a function is required");
|
|
9541
|
+
}
|
|
9542
|
+
return $actualApply(bind2, $call, args);
|
|
9543
|
+
};
|
|
9544
|
+
}
|
|
9545
|
+
});
|
|
9546
|
+
|
|
9547
|
+
// node_modules/dunder-proto/get.js
|
|
9548
|
+
var require_get = __commonJS({
|
|
9549
|
+
"node_modules/dunder-proto/get.js"(exports2, module2) {
|
|
9550
|
+
"use strict";
|
|
9551
|
+
var callBind = require_call_bind_apply_helpers();
|
|
9552
|
+
var gOPD = require_gopd();
|
|
9553
|
+
var hasProtoAccessor;
|
|
9554
|
+
try {
|
|
9555
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
9556
|
+
[].__proto__ === Array.prototype;
|
|
9557
|
+
} catch (e2) {
|
|
9558
|
+
if (!e2 || typeof e2 !== "object" || !("code" in e2) || e2.code !== "ERR_PROTO_ACCESS") {
|
|
9559
|
+
throw e2;
|
|
9560
|
+
}
|
|
9561
|
+
}
|
|
9562
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(
|
|
9563
|
+
Object.prototype,
|
|
9564
|
+
/** @type {keyof typeof Object.prototype} */
|
|
9565
|
+
"__proto__"
|
|
9566
|
+
);
|
|
9567
|
+
var $Object = Object;
|
|
9568
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
9569
|
+
module2.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? (
|
|
9570
|
+
/** @type {import('./get')} */
|
|
9571
|
+
function getDunder(value) {
|
|
9572
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
9573
|
+
}
|
|
9574
|
+
) : false;
|
|
9575
|
+
}
|
|
9576
|
+
});
|
|
9577
|
+
|
|
9578
|
+
// node_modules/get-proto/index.js
|
|
9579
|
+
var require_get_proto = __commonJS({
|
|
9580
|
+
"node_modules/get-proto/index.js"(exports2, module2) {
|
|
9581
|
+
"use strict";
|
|
9582
|
+
var reflectGetProto = require_Reflect_getPrototypeOf();
|
|
9583
|
+
var originalGetProto = require_Object_getPrototypeOf();
|
|
9584
|
+
var getDunderProto = require_get();
|
|
9585
|
+
module2.exports = reflectGetProto ? function getProto(O) {
|
|
9586
|
+
return reflectGetProto(O);
|
|
9587
|
+
} : originalGetProto ? function getProto(O) {
|
|
9588
|
+
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
9589
|
+
throw new TypeError("getProto: not an object");
|
|
9590
|
+
}
|
|
9591
|
+
return originalGetProto(O);
|
|
9592
|
+
} : getDunderProto ? function getProto(O) {
|
|
9593
|
+
return getDunderProto(O);
|
|
9594
|
+
} : null;
|
|
9595
|
+
}
|
|
9596
|
+
});
|
|
9597
|
+
|
|
9598
|
+
// node_modules/hasown/index.js
|
|
9599
|
+
var require_hasown = __commonJS({
|
|
9600
|
+
"node_modules/hasown/index.js"(exports2, module2) {
|
|
9601
|
+
"use strict";
|
|
9602
|
+
var call = Function.prototype.call;
|
|
9603
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
9604
|
+
var bind2 = require_function_bind();
|
|
9605
|
+
module2.exports = bind2.call(call, $hasOwn);
|
|
9606
|
+
}
|
|
9607
|
+
});
|
|
9608
|
+
|
|
9609
|
+
// node_modules/get-intrinsic/index.js
|
|
9610
|
+
var require_get_intrinsic = __commonJS({
|
|
9611
|
+
"node_modules/get-intrinsic/index.js"(exports2, module2) {
|
|
9612
|
+
"use strict";
|
|
9613
|
+
var undefined2;
|
|
9614
|
+
var $Object = require_es_object_atoms();
|
|
9615
|
+
var $Error = require_es_errors();
|
|
9616
|
+
var $EvalError = require_eval();
|
|
9617
|
+
var $RangeError = require_range();
|
|
9618
|
+
var $ReferenceError = require_ref();
|
|
9619
|
+
var $SyntaxError = require_syntax();
|
|
9620
|
+
var $TypeError = require_type();
|
|
9621
|
+
var $URIError = require_uri();
|
|
9622
|
+
var abs = require_abs();
|
|
9623
|
+
var floor = require_floor();
|
|
9624
|
+
var max = require_max();
|
|
9625
|
+
var min = require_min();
|
|
9626
|
+
var pow = require_pow();
|
|
9627
|
+
var round = require_round();
|
|
9628
|
+
var sign = require_sign();
|
|
9629
|
+
var $Function = Function;
|
|
9630
|
+
var getEvalledConstructor = function(expressionSyntax) {
|
|
9631
|
+
try {
|
|
9632
|
+
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
9633
|
+
} catch (e2) {
|
|
9634
|
+
}
|
|
9635
|
+
};
|
|
9636
|
+
var $gOPD = require_gopd();
|
|
9637
|
+
var $defineProperty = require_es_define_property();
|
|
9638
|
+
var throwTypeError = function() {
|
|
9639
|
+
throw new $TypeError();
|
|
9640
|
+
};
|
|
9641
|
+
var ThrowTypeError = $gOPD ? function() {
|
|
9642
|
+
try {
|
|
9643
|
+
arguments.callee;
|
|
9644
|
+
return throwTypeError;
|
|
9645
|
+
} catch (calleeThrows) {
|
|
9646
|
+
try {
|
|
9647
|
+
return $gOPD(arguments, "callee").get;
|
|
9648
|
+
} catch (gOPDthrows) {
|
|
9649
|
+
return throwTypeError;
|
|
9650
|
+
}
|
|
9651
|
+
}
|
|
9652
|
+
}() : throwTypeError;
|
|
9653
|
+
var hasSymbols = require_has_symbols()();
|
|
9654
|
+
var getProto = require_get_proto();
|
|
9655
|
+
var $ObjectGPO = require_Object_getPrototypeOf();
|
|
9656
|
+
var $ReflectGPO = require_Reflect_getPrototypeOf();
|
|
9657
|
+
var $apply = require_functionApply();
|
|
9658
|
+
var $call = require_functionCall();
|
|
9659
|
+
var needsEval = {};
|
|
9660
|
+
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
|
|
9661
|
+
var INTRINSICS = {
|
|
9662
|
+
__proto__: null,
|
|
9663
|
+
"%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
|
|
9664
|
+
"%Array%": Array,
|
|
9665
|
+
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
|
|
9666
|
+
"%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
|
|
9667
|
+
"%AsyncFromSyncIteratorPrototype%": undefined2,
|
|
9668
|
+
"%AsyncFunction%": needsEval,
|
|
9669
|
+
"%AsyncGenerator%": needsEval,
|
|
9670
|
+
"%AsyncGeneratorFunction%": needsEval,
|
|
9671
|
+
"%AsyncIteratorPrototype%": needsEval,
|
|
9672
|
+
"%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
|
|
9673
|
+
"%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
|
|
9674
|
+
"%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
|
|
9675
|
+
"%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
|
|
9676
|
+
"%Boolean%": Boolean,
|
|
9677
|
+
"%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
|
|
9678
|
+
"%Date%": Date,
|
|
9679
|
+
"%decodeURI%": decodeURI,
|
|
9680
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
9681
|
+
"%encodeURI%": encodeURI,
|
|
9682
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
9683
|
+
"%Error%": $Error,
|
|
9684
|
+
"%eval%": eval,
|
|
9685
|
+
// eslint-disable-line no-eval
|
|
9686
|
+
"%EvalError%": $EvalError,
|
|
9687
|
+
"%Float16Array%": typeof Float16Array === "undefined" ? undefined2 : Float16Array,
|
|
9688
|
+
"%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
|
|
9689
|
+
"%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
|
|
9690
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
|
|
9691
|
+
"%Function%": $Function,
|
|
9692
|
+
"%GeneratorFunction%": needsEval,
|
|
9693
|
+
"%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
|
|
9694
|
+
"%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
|
|
9695
|
+
"%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
|
|
9696
|
+
"%isFinite%": isFinite,
|
|
9697
|
+
"%isNaN%": isNaN,
|
|
9698
|
+
"%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
9699
|
+
"%JSON%": typeof JSON === "object" ? JSON : undefined2,
|
|
9700
|
+
"%Map%": typeof Map === "undefined" ? undefined2 : Map,
|
|
9701
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
9702
|
+
"%Math%": Math,
|
|
9703
|
+
"%Number%": Number,
|
|
9704
|
+
"%Object%": $Object,
|
|
9705
|
+
"%Object.getOwnPropertyDescriptor%": $gOPD,
|
|
9706
|
+
"%parseFloat%": parseFloat,
|
|
9707
|
+
"%parseInt%": parseInt,
|
|
9708
|
+
"%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
|
|
9709
|
+
"%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
|
|
9710
|
+
"%RangeError%": $RangeError,
|
|
9711
|
+
"%ReferenceError%": $ReferenceError,
|
|
9712
|
+
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
9713
|
+
"%RegExp%": RegExp,
|
|
9714
|
+
"%Set%": typeof Set === "undefined" ? undefined2 : Set,
|
|
9715
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
9716
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
|
|
9717
|
+
"%String%": String,
|
|
9718
|
+
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
9719
|
+
"%Symbol%": hasSymbols ? Symbol : undefined2,
|
|
9720
|
+
"%SyntaxError%": $SyntaxError,
|
|
9721
|
+
"%ThrowTypeError%": ThrowTypeError,
|
|
9722
|
+
"%TypedArray%": TypedArray,
|
|
9723
|
+
"%TypeError%": $TypeError,
|
|
9724
|
+
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
|
|
9725
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
|
|
9726
|
+
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
|
|
9727
|
+
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
|
|
9728
|
+
"%URIError%": $URIError,
|
|
9729
|
+
"%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
|
|
9730
|
+
"%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
|
|
9731
|
+
"%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet,
|
|
9732
|
+
"%Function.prototype.call%": $call,
|
|
9733
|
+
"%Function.prototype.apply%": $apply,
|
|
9734
|
+
"%Object.defineProperty%": $defineProperty,
|
|
9735
|
+
"%Object.getPrototypeOf%": $ObjectGPO,
|
|
9736
|
+
"%Math.abs%": abs,
|
|
9737
|
+
"%Math.floor%": floor,
|
|
9738
|
+
"%Math.max%": max,
|
|
9739
|
+
"%Math.min%": min,
|
|
9740
|
+
"%Math.pow%": pow,
|
|
9741
|
+
"%Math.round%": round,
|
|
9742
|
+
"%Math.sign%": sign,
|
|
9743
|
+
"%Reflect.getPrototypeOf%": $ReflectGPO
|
|
9744
|
+
};
|
|
9745
|
+
if (getProto) {
|
|
9746
|
+
try {
|
|
9747
|
+
null.error;
|
|
9748
|
+
} catch (e2) {
|
|
9749
|
+
errorProto = getProto(getProto(e2));
|
|
9750
|
+
INTRINSICS["%Error.prototype%"] = errorProto;
|
|
9751
|
+
}
|
|
9752
|
+
}
|
|
9753
|
+
var errorProto;
|
|
9754
|
+
var doEval = function doEval2(name) {
|
|
9755
|
+
var value;
|
|
9756
|
+
if (name === "%AsyncFunction%") {
|
|
9757
|
+
value = getEvalledConstructor("async function () {}");
|
|
9758
|
+
} else if (name === "%GeneratorFunction%") {
|
|
9759
|
+
value = getEvalledConstructor("function* () {}");
|
|
9760
|
+
} else if (name === "%AsyncGeneratorFunction%") {
|
|
9761
|
+
value = getEvalledConstructor("async function* () {}");
|
|
9762
|
+
} else if (name === "%AsyncGenerator%") {
|
|
9763
|
+
var fn = doEval2("%AsyncGeneratorFunction%");
|
|
9764
|
+
if (fn) {
|
|
9765
|
+
value = fn.prototype;
|
|
9766
|
+
}
|
|
9767
|
+
} else if (name === "%AsyncIteratorPrototype%") {
|
|
9768
|
+
var gen = doEval2("%AsyncGenerator%");
|
|
9769
|
+
if (gen && getProto) {
|
|
9770
|
+
value = getProto(gen.prototype);
|
|
9771
|
+
}
|
|
9772
|
+
}
|
|
9773
|
+
INTRINSICS[name] = value;
|
|
9774
|
+
return value;
|
|
9775
|
+
};
|
|
9776
|
+
var LEGACY_ALIASES = {
|
|
9777
|
+
__proto__: null,
|
|
9778
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
9779
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
9780
|
+
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
9781
|
+
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
9782
|
+
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
9783
|
+
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
9784
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
9785
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
9786
|
+
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
9787
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
9788
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
9789
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
9790
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
9791
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
9792
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
9793
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
9794
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
9795
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
9796
|
+
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
9797
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
9798
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
9799
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
9800
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
9801
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
9802
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
9803
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
9804
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
9805
|
+
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
9806
|
+
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
9807
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
9808
|
+
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
9809
|
+
"%Promise_all%": ["Promise", "all"],
|
|
9810
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
9811
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
9812
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
9813
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
9814
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
9815
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
9816
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
9817
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
9818
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
9819
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
9820
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
9821
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
9822
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
9823
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
9824
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
9825
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
9826
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
9827
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
9828
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
9829
|
+
};
|
|
9830
|
+
var bind2 = require_function_bind();
|
|
9831
|
+
var hasOwn = require_hasown();
|
|
9832
|
+
var $concat = bind2.call($call, Array.prototype.concat);
|
|
9833
|
+
var $spliceApply = bind2.call($apply, Array.prototype.splice);
|
|
9834
|
+
var $replace = bind2.call($call, String.prototype.replace);
|
|
9835
|
+
var $strSlice = bind2.call($call, String.prototype.slice);
|
|
9836
|
+
var $exec = bind2.call($call, RegExp.prototype.exec);
|
|
9837
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
9838
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
9839
|
+
var stringToPath = function stringToPath2(string) {
|
|
9840
|
+
var first = $strSlice(string, 0, 1);
|
|
9841
|
+
var last = $strSlice(string, -1);
|
|
9842
|
+
if (first === "%" && last !== "%") {
|
|
9843
|
+
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
9844
|
+
} else if (last === "%" && first !== "%") {
|
|
9845
|
+
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
9846
|
+
}
|
|
9847
|
+
var result = [];
|
|
9848
|
+
$replace(string, rePropName, function(match, number, quote, subString) {
|
|
9849
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
|
|
9850
|
+
});
|
|
9851
|
+
return result;
|
|
9852
|
+
};
|
|
9853
|
+
var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
|
|
9854
|
+
var intrinsicName = name;
|
|
9855
|
+
var alias;
|
|
9856
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
9857
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
9858
|
+
intrinsicName = "%" + alias[0] + "%";
|
|
9859
|
+
}
|
|
9860
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
9861
|
+
var value = INTRINSICS[intrinsicName];
|
|
9862
|
+
if (value === needsEval) {
|
|
9863
|
+
value = doEval(intrinsicName);
|
|
9864
|
+
}
|
|
9865
|
+
if (typeof value === "undefined" && !allowMissing) {
|
|
9866
|
+
throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
9867
|
+
}
|
|
9868
|
+
return {
|
|
9869
|
+
alias,
|
|
9870
|
+
name: intrinsicName,
|
|
9871
|
+
value
|
|
9872
|
+
};
|
|
9873
|
+
}
|
|
9874
|
+
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
9875
|
+
};
|
|
9876
|
+
module2.exports = function GetIntrinsic(name, allowMissing) {
|
|
9877
|
+
if (typeof name !== "string" || name.length === 0) {
|
|
9878
|
+
throw new $TypeError("intrinsic name must be a non-empty string");
|
|
9879
|
+
}
|
|
9880
|
+
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
9881
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
9882
|
+
}
|
|
9883
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
9884
|
+
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
9885
|
+
}
|
|
9886
|
+
var parts = stringToPath(name);
|
|
9887
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
9888
|
+
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
9889
|
+
var intrinsicRealName = intrinsic.name;
|
|
9890
|
+
var value = intrinsic.value;
|
|
9891
|
+
var skipFurtherCaching = false;
|
|
9892
|
+
var alias = intrinsic.alias;
|
|
9893
|
+
if (alias) {
|
|
9894
|
+
intrinsicBaseName = alias[0];
|
|
9895
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
9896
|
+
}
|
|
9897
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
9898
|
+
var part = parts[i];
|
|
9899
|
+
var first = $strSlice(part, 0, 1);
|
|
9900
|
+
var last = $strSlice(part, -1);
|
|
9901
|
+
if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
|
|
9902
|
+
throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
9903
|
+
}
|
|
9904
|
+
if (part === "constructor" || !isOwn) {
|
|
9905
|
+
skipFurtherCaching = true;
|
|
9906
|
+
}
|
|
9907
|
+
intrinsicBaseName += "." + part;
|
|
9908
|
+
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
9909
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
9910
|
+
value = INTRINSICS[intrinsicRealName];
|
|
9911
|
+
} else if (value != null) {
|
|
9912
|
+
if (!(part in value)) {
|
|
9913
|
+
if (!allowMissing) {
|
|
9914
|
+
throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
|
|
9915
|
+
}
|
|
9916
|
+
return void undefined2;
|
|
9917
|
+
}
|
|
9918
|
+
if ($gOPD && i + 1 >= parts.length) {
|
|
9919
|
+
var desc = $gOPD(value, part);
|
|
9920
|
+
isOwn = !!desc;
|
|
9921
|
+
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
9922
|
+
value = desc.get;
|
|
9923
|
+
} else {
|
|
9924
|
+
value = value[part];
|
|
9925
|
+
}
|
|
9926
|
+
} else {
|
|
9927
|
+
isOwn = hasOwn(value, part);
|
|
9928
|
+
value = value[part];
|
|
9929
|
+
}
|
|
9930
|
+
if (isOwn && !skipFurtherCaching) {
|
|
9931
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
9932
|
+
}
|
|
9933
|
+
}
|
|
9934
|
+
}
|
|
9935
|
+
return value;
|
|
9936
|
+
};
|
|
9937
|
+
}
|
|
9938
|
+
});
|
|
9939
|
+
|
|
9940
|
+
// node_modules/has-tostringtag/shams.js
|
|
9941
|
+
var require_shams2 = __commonJS({
|
|
9942
|
+
"node_modules/has-tostringtag/shams.js"(exports2, module2) {
|
|
9943
|
+
"use strict";
|
|
9944
|
+
var hasSymbols = require_shams();
|
|
9945
|
+
module2.exports = function hasToStringTagShams() {
|
|
9946
|
+
return hasSymbols() && !!Symbol.toStringTag;
|
|
9947
|
+
};
|
|
9948
|
+
}
|
|
9949
|
+
});
|
|
9950
|
+
|
|
9951
|
+
// node_modules/es-set-tostringtag/index.js
|
|
9952
|
+
var require_es_set_tostringtag = __commonJS({
|
|
9953
|
+
"node_modules/es-set-tostringtag/index.js"(exports2, module2) {
|
|
9954
|
+
"use strict";
|
|
9955
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
9956
|
+
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
|
|
9957
|
+
var hasToStringTag = require_shams2()();
|
|
9958
|
+
var hasOwn = require_hasown();
|
|
9959
|
+
var $TypeError = require_type();
|
|
9960
|
+
var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
|
|
9961
|
+
module2.exports = function setToStringTag(object, value) {
|
|
9962
|
+
var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
|
|
9963
|
+
var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
|
9964
|
+
if (typeof overrideIfSet !== "undefined" && typeof overrideIfSet !== "boolean" || typeof nonConfigurable !== "undefined" && typeof nonConfigurable !== "boolean") {
|
|
9965
|
+
throw new $TypeError("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
|
|
9966
|
+
}
|
|
9967
|
+
if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
|
|
9968
|
+
if ($defineProperty) {
|
|
9969
|
+
$defineProperty(object, toStringTag, {
|
|
9970
|
+
configurable: !nonConfigurable,
|
|
9971
|
+
enumerable: false,
|
|
9972
|
+
value,
|
|
9973
|
+
writable: false
|
|
9974
|
+
});
|
|
9975
|
+
} else {
|
|
9976
|
+
object[toStringTag] = value;
|
|
9977
|
+
}
|
|
9978
|
+
}
|
|
9979
|
+
};
|
|
9980
|
+
}
|
|
9981
|
+
});
|
|
9982
|
+
|
|
9137
9983
|
// node_modules/form-data/lib/populate.js
|
|
9138
9984
|
var require_populate = __commonJS({
|
|
9139
9985
|
"node_modules/form-data/lib/populate.js"(exports2, module2) {
|
|
@@ -9152,7 +9998,7 @@ var require_form_data = __commonJS({
|
|
|
9152
9998
|
"node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
9153
9999
|
"use strict";
|
|
9154
10000
|
var CombinedStream = require_combined_stream();
|
|
9155
|
-
var
|
|
10001
|
+
var util3 = require("util");
|
|
9156
10002
|
var path = require("path");
|
|
9157
10003
|
var http2 = require("http");
|
|
9158
10004
|
var https2 = require("https");
|
|
@@ -9161,9 +10007,10 @@ var require_form_data = __commonJS({
|
|
|
9161
10007
|
var Stream = require("stream").Stream;
|
|
9162
10008
|
var mime = require_mime_types();
|
|
9163
10009
|
var asynckit = require_asynckit();
|
|
10010
|
+
var setToStringTag = require_es_set_tostringtag();
|
|
9164
10011
|
var populate = require_populate();
|
|
9165
10012
|
module2.exports = FormData3;
|
|
9166
|
-
|
|
10013
|
+
util3.inherits(FormData3, CombinedStream);
|
|
9167
10014
|
function FormData3(options) {
|
|
9168
10015
|
if (!(this instanceof FormData3)) {
|
|
9169
10016
|
return new FormData3(options);
|
|
@@ -9188,7 +10035,7 @@ var require_form_data = __commonJS({
|
|
|
9188
10035
|
if (typeof value == "number") {
|
|
9189
10036
|
value = "" + value;
|
|
9190
10037
|
}
|
|
9191
|
-
if (
|
|
10038
|
+
if (Array.isArray(value)) {
|
|
9192
10039
|
this._error(new Error("Arrays are not supported."));
|
|
9193
10040
|
return;
|
|
9194
10041
|
}
|
|
@@ -9210,7 +10057,7 @@ var require_form_data = __commonJS({
|
|
|
9210
10057
|
}
|
|
9211
10058
|
this._valueLength += valueLength;
|
|
9212
10059
|
this._overheadLength += Buffer.byteLength(header) + FormData3.LINE_BREAK.length;
|
|
9213
|
-
if (!value || !value.path && !(value.readable &&
|
|
10060
|
+
if (!value || !value.path && !(value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) && !(value instanceof Stream)) {
|
|
9214
10061
|
return;
|
|
9215
10062
|
}
|
|
9216
10063
|
if (!options.knownLength) {
|
|
@@ -9218,7 +10065,7 @@ var require_form_data = __commonJS({
|
|
|
9218
10065
|
}
|
|
9219
10066
|
};
|
|
9220
10067
|
FormData3.prototype._lengthRetriever = function(value, callback) {
|
|
9221
|
-
if (
|
|
10068
|
+
if (Object.prototype.hasOwnProperty.call(value, "fd")) {
|
|
9222
10069
|
if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
|
|
9223
10070
|
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
9224
10071
|
} else {
|
|
@@ -9232,9 +10079,9 @@ var require_form_data = __commonJS({
|
|
|
9232
10079
|
callback(null, fileSize);
|
|
9233
10080
|
});
|
|
9234
10081
|
}
|
|
9235
|
-
} else if (
|
|
10082
|
+
} else if (Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
|
|
9236
10083
|
callback(null, +value.headers["content-length"]);
|
|
9237
|
-
} else if (
|
|
10084
|
+
} else if (Object.prototype.hasOwnProperty.call(value, "httpModule")) {
|
|
9238
10085
|
value.on("response", function(response) {
|
|
9239
10086
|
value.pause();
|
|
9240
10087
|
callback(null, +response.headers["content-length"]);
|
|
@@ -9262,16 +10109,17 @@ var require_form_data = __commonJS({
|
|
|
9262
10109
|
}
|
|
9263
10110
|
var header;
|
|
9264
10111
|
for (var prop in headers) {
|
|
9265
|
-
if (
|
|
9266
|
-
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
|
|
10112
|
+
if (Object.prototype.hasOwnProperty.call(headers, prop)) {
|
|
10113
|
+
header = headers[prop];
|
|
10114
|
+
if (header == null) {
|
|
10115
|
+
continue;
|
|
10116
|
+
}
|
|
10117
|
+
if (!Array.isArray(header)) {
|
|
10118
|
+
header = [header];
|
|
10119
|
+
}
|
|
10120
|
+
if (header.length) {
|
|
10121
|
+
contents += prop + ": " + header.join("; ") + FormData3.LINE_BREAK;
|
|
10122
|
+
}
|
|
9275
10123
|
}
|
|
9276
10124
|
}
|
|
9277
10125
|
return "--" + this.getBoundary() + FormData3.LINE_BREAK + contents + FormData3.LINE_BREAK;
|
|
@@ -9282,7 +10130,7 @@ var require_form_data = __commonJS({
|
|
|
9282
10130
|
filename = path.normalize(options.filepath).replace(/\\/g, "/");
|
|
9283
10131
|
} else if (options.filename || value.name || value.path) {
|
|
9284
10132
|
filename = path.basename(options.filename || value.name || value.path);
|
|
9285
|
-
} else if (value.readable &&
|
|
10133
|
+
} else if (value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
|
|
9286
10134
|
filename = path.basename(value.client._httpMessage.path || "");
|
|
9287
10135
|
}
|
|
9288
10136
|
if (filename) {
|
|
@@ -9298,7 +10146,7 @@ var require_form_data = __commonJS({
|
|
|
9298
10146
|
if (!contentType && value.path) {
|
|
9299
10147
|
contentType = mime.lookup(value.path);
|
|
9300
10148
|
}
|
|
9301
|
-
if (!contentType && value.readable &&
|
|
10149
|
+
if (!contentType && value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
|
|
9302
10150
|
contentType = value.headers["content-type"];
|
|
9303
10151
|
}
|
|
9304
10152
|
if (!contentType && (options.filepath || options.filename)) {
|
|
@@ -9328,7 +10176,7 @@ var require_form_data = __commonJS({
|
|
|
9328
10176
|
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
9329
10177
|
};
|
|
9330
10178
|
for (header in userHeaders) {
|
|
9331
|
-
if (
|
|
10179
|
+
if (Object.prototype.hasOwnProperty.call(userHeaders, header)) {
|
|
9332
10180
|
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
9333
10181
|
}
|
|
9334
10182
|
}
|
|
@@ -9459,6 +10307,7 @@ var require_form_data = __commonJS({
|
|
|
9459
10307
|
FormData3.prototype.toString = function() {
|
|
9460
10308
|
return "[object FormData]";
|
|
9461
10309
|
};
|
|
10310
|
+
setToStringTag(FormData3, "FormData");
|
|
9462
10311
|
}
|
|
9463
10312
|
});
|
|
9464
10313
|
|
|
@@ -9478,7 +10327,7 @@ var require_proxy_from_env = __commonJS({
|
|
|
9478
10327
|
var stringEndsWith = String.prototype.endsWith || function(s) {
|
|
9479
10328
|
return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
|
|
9480
10329
|
};
|
|
9481
|
-
function
|
|
10330
|
+
function getProxyForUrl(url2) {
|
|
9482
10331
|
var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
|
|
9483
10332
|
var proto = parsedUrl.protocol;
|
|
9484
10333
|
var hostname = parsedUrl.host;
|
|
@@ -9528,7 +10377,7 @@ var require_proxy_from_env = __commonJS({
|
|
|
9528
10377
|
function getEnv(key) {
|
|
9529
10378
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
9530
10379
|
}
|
|
9531
|
-
exports2.getProxyForUrl =
|
|
10380
|
+
exports2.getProxyForUrl = getProxyForUrl;
|
|
9532
10381
|
}
|
|
9533
10382
|
});
|
|
9534
10383
|
|
|
@@ -9753,50 +10602,64 @@ var require_common = __commonJS({
|
|
|
9753
10602
|
createDebug.namespaces = namespaces;
|
|
9754
10603
|
createDebug.names = [];
|
|
9755
10604
|
createDebug.skips = [];
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
10605
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
|
|
10606
|
+
for (const ns of split) {
|
|
10607
|
+
if (ns[0] === "-") {
|
|
10608
|
+
createDebug.skips.push(ns.slice(1));
|
|
10609
|
+
} else {
|
|
10610
|
+
createDebug.names.push(ns);
|
|
9762
10611
|
}
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
10612
|
+
}
|
|
10613
|
+
}
|
|
10614
|
+
function matchesTemplate(search, template) {
|
|
10615
|
+
let searchIndex = 0;
|
|
10616
|
+
let templateIndex = 0;
|
|
10617
|
+
let starIndex = -1;
|
|
10618
|
+
let matchIndex = 0;
|
|
10619
|
+
while (searchIndex < search.length) {
|
|
10620
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
10621
|
+
if (template[templateIndex] === "*") {
|
|
10622
|
+
starIndex = templateIndex;
|
|
10623
|
+
matchIndex = searchIndex;
|
|
10624
|
+
templateIndex++;
|
|
10625
|
+
} else {
|
|
10626
|
+
searchIndex++;
|
|
10627
|
+
templateIndex++;
|
|
10628
|
+
}
|
|
10629
|
+
} else if (starIndex !== -1) {
|
|
10630
|
+
templateIndex = starIndex + 1;
|
|
10631
|
+
matchIndex++;
|
|
10632
|
+
searchIndex = matchIndex;
|
|
9766
10633
|
} else {
|
|
9767
|
-
|
|
10634
|
+
return false;
|
|
9768
10635
|
}
|
|
9769
10636
|
}
|
|
10637
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
10638
|
+
templateIndex++;
|
|
10639
|
+
}
|
|
10640
|
+
return templateIndex === template.length;
|
|
9770
10641
|
}
|
|
9771
10642
|
function disable() {
|
|
9772
10643
|
const namespaces = [
|
|
9773
|
-
...createDebug.names
|
|
9774
|
-
...createDebug.skips.map(
|
|
10644
|
+
...createDebug.names,
|
|
10645
|
+
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
9775
10646
|
].join(",");
|
|
9776
10647
|
createDebug.enable("");
|
|
9777
10648
|
return namespaces;
|
|
9778
10649
|
}
|
|
9779
10650
|
function enabled(name) {
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
}
|
|
9783
|
-
let i;
|
|
9784
|
-
let len;
|
|
9785
|
-
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
|
9786
|
-
if (createDebug.skips[i].test(name)) {
|
|
10651
|
+
for (const skip of createDebug.skips) {
|
|
10652
|
+
if (matchesTemplate(name, skip)) {
|
|
9787
10653
|
return false;
|
|
9788
10654
|
}
|
|
9789
10655
|
}
|
|
9790
|
-
for (
|
|
9791
|
-
if (
|
|
10656
|
+
for (const ns of createDebug.names) {
|
|
10657
|
+
if (matchesTemplate(name, ns)) {
|
|
9792
10658
|
return true;
|
|
9793
10659
|
}
|
|
9794
10660
|
}
|
|
9795
10661
|
return false;
|
|
9796
10662
|
}
|
|
9797
|
-
function toNamespace(regexp) {
|
|
9798
|
-
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
9799
|
-
}
|
|
9800
10663
|
function coerce(val) {
|
|
9801
10664
|
if (val instanceof Error) {
|
|
9802
10665
|
return val.stack || val.message;
|
|
@@ -10104,14 +10967,14 @@ var require_node = __commonJS({
|
|
|
10104
10967
|
"node_modules/debug/src/node.js"(exports2, module2) {
|
|
10105
10968
|
"use strict";
|
|
10106
10969
|
var tty = require("tty");
|
|
10107
|
-
var
|
|
10970
|
+
var util3 = require("util");
|
|
10108
10971
|
exports2.init = init;
|
|
10109
10972
|
exports2.log = log;
|
|
10110
10973
|
exports2.formatArgs = formatArgs;
|
|
10111
10974
|
exports2.save = save;
|
|
10112
10975
|
exports2.load = load;
|
|
10113
10976
|
exports2.useColors = useColors;
|
|
10114
|
-
exports2.destroy =
|
|
10977
|
+
exports2.destroy = util3.deprecate(
|
|
10115
10978
|
() => {
|
|
10116
10979
|
},
|
|
10117
10980
|
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
@@ -10242,7 +11105,7 @@ var require_node = __commonJS({
|
|
|
10242
11105
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
10243
11106
|
}
|
|
10244
11107
|
function log(...args) {
|
|
10245
|
-
return process.stderr.write(
|
|
11108
|
+
return process.stderr.write(util3.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
|
|
10246
11109
|
}
|
|
10247
11110
|
function save(namespaces) {
|
|
10248
11111
|
if (namespaces) {
|
|
@@ -10265,11 +11128,11 @@ var require_node = __commonJS({
|
|
|
10265
11128
|
var { formatters } = module2.exports;
|
|
10266
11129
|
formatters.o = function(v) {
|
|
10267
11130
|
this.inspectOpts.colors = this.useColors;
|
|
10268
|
-
return
|
|
11131
|
+
return util3.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
10269
11132
|
};
|
|
10270
11133
|
formatters.O = function(v) {
|
|
10271
11134
|
this.inspectOpts.colors = this.useColors;
|
|
10272
|
-
return
|
|
11135
|
+
return util3.inspect(v, this.inspectOpts);
|
|
10273
11136
|
};
|
|
10274
11137
|
}
|
|
10275
11138
|
});
|
|
@@ -10318,9 +11181,17 @@ var require_follow_redirects = __commonJS({
|
|
|
10318
11181
|
var Writable = require("stream").Writable;
|
|
10319
11182
|
var assert = require("assert");
|
|
10320
11183
|
var debug = require_debug();
|
|
11184
|
+
(function detectUnsupportedEnvironment() {
|
|
11185
|
+
var looksLikeNode = typeof process !== "undefined";
|
|
11186
|
+
var looksLikeBrowser = typeof window !== "undefined" && typeof document !== "undefined";
|
|
11187
|
+
var looksLikeV8 = isFunction2(Error.captureStackTrace);
|
|
11188
|
+
if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {
|
|
11189
|
+
console.warn("The follow-redirects package should be excluded from browser builds.");
|
|
11190
|
+
}
|
|
11191
|
+
})();
|
|
10321
11192
|
var useNativeURL = false;
|
|
10322
11193
|
try {
|
|
10323
|
-
assert(new URL2());
|
|
11194
|
+
assert(new URL2(""));
|
|
10324
11195
|
} catch (error) {
|
|
10325
11196
|
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
10326
11197
|
}
|
|
@@ -10747,7 +11618,9 @@ var require_follow_redirects = __commonJS({
|
|
|
10747
11618
|
}
|
|
10748
11619
|
function createErrorType(code, message, baseClass) {
|
|
10749
11620
|
function CustomError(properties) {
|
|
10750
|
-
Error.captureStackTrace
|
|
11621
|
+
if (isFunction2(Error.captureStackTrace)) {
|
|
11622
|
+
Error.captureStackTrace(this, this.constructor);
|
|
11623
|
+
}
|
|
10751
11624
|
Object.assign(this, properties || {});
|
|
10752
11625
|
this.code = code;
|
|
10753
11626
|
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
@@ -10795,13 +11668,13 @@ var require_follow_redirects = __commonJS({
|
|
|
10795
11668
|
});
|
|
10796
11669
|
|
|
10797
11670
|
// src/index.ts
|
|
10798
|
-
var
|
|
10799
|
-
__export(
|
|
11671
|
+
var index_exports = {};
|
|
11672
|
+
__export(index_exports, {
|
|
10800
11673
|
CrawlWatcher: () => CrawlWatcher,
|
|
10801
11674
|
FirecrawlError: () => FirecrawlError,
|
|
10802
11675
|
default: () => FirecrawlApp
|
|
10803
11676
|
});
|
|
10804
|
-
module.exports = __toCommonJS(
|
|
11677
|
+
module.exports = __toCommonJS(index_exports);
|
|
10805
11678
|
|
|
10806
11679
|
// node_modules/axios/lib/helpers/bind.js
|
|
10807
11680
|
function bind(fn, thisArg) {
|
|
@@ -10860,6 +11733,7 @@ var isFormData = (thing) => {
|
|
|
10860
11733
|
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
10861
11734
|
};
|
|
10862
11735
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
11736
|
+
var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
10863
11737
|
var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
10864
11738
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
10865
11739
|
if (obj === null || typeof obj === "undefined") {
|
|
@@ -11063,23 +11937,7 @@ var toObjectSet = (arrayOrString, delimiter) => {
|
|
|
11063
11937
|
var noop = () => {
|
|
11064
11938
|
};
|
|
11065
11939
|
var toFiniteNumber = (value, defaultValue) => {
|
|
11066
|
-
value = +value;
|
|
11067
|
-
return Number.isFinite(value) ? value : defaultValue;
|
|
11068
|
-
};
|
|
11069
|
-
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
11070
|
-
var DIGIT = "0123456789";
|
|
11071
|
-
var ALPHABET = {
|
|
11072
|
-
DIGIT,
|
|
11073
|
-
ALPHA,
|
|
11074
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
11075
|
-
};
|
|
11076
|
-
var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
11077
|
-
let str = "";
|
|
11078
|
-
const { length } = alphabet;
|
|
11079
|
-
while (size--) {
|
|
11080
|
-
str += alphabet[Math.random() * length | 0];
|
|
11081
|
-
}
|
|
11082
|
-
return str;
|
|
11940
|
+
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
11083
11941
|
};
|
|
11084
11942
|
function isSpecCompliantForm(thing) {
|
|
11085
11943
|
return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
|
|
@@ -11108,6 +11966,26 @@ var toJSONObject = (obj) => {
|
|
|
11108
11966
|
};
|
|
11109
11967
|
var isAsyncFn = kindOfTest("AsyncFunction");
|
|
11110
11968
|
var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
11969
|
+
var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
11970
|
+
if (setImmediateSupported) {
|
|
11971
|
+
return setImmediate;
|
|
11972
|
+
}
|
|
11973
|
+
return postMessageSupported ? ((token, callbacks) => {
|
|
11974
|
+
_global.addEventListener("message", ({ source, data }) => {
|
|
11975
|
+
if (source === _global && data === token) {
|
|
11976
|
+
callbacks.length && callbacks.shift()();
|
|
11977
|
+
}
|
|
11978
|
+
}, false);
|
|
11979
|
+
return (cb) => {
|
|
11980
|
+
callbacks.push(cb);
|
|
11981
|
+
_global.postMessage(token, "*");
|
|
11982
|
+
};
|
|
11983
|
+
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
11984
|
+
})(
|
|
11985
|
+
typeof setImmediate === "function",
|
|
11986
|
+
isFunction(_global.postMessage)
|
|
11987
|
+
);
|
|
11988
|
+
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
11111
11989
|
var utils_default = {
|
|
11112
11990
|
isArray,
|
|
11113
11991
|
isArrayBuffer,
|
|
@@ -11119,6 +11997,10 @@ var utils_default = {
|
|
|
11119
11997
|
isBoolean,
|
|
11120
11998
|
isObject,
|
|
11121
11999
|
isPlainObject,
|
|
12000
|
+
isReadableStream,
|
|
12001
|
+
isRequest,
|
|
12002
|
+
isResponse,
|
|
12003
|
+
isHeaders,
|
|
11122
12004
|
isUndefined,
|
|
11123
12005
|
isDate,
|
|
11124
12006
|
isFile,
|
|
@@ -11155,12 +12037,12 @@ var utils_default = {
|
|
|
11155
12037
|
findKey,
|
|
11156
12038
|
global: _global,
|
|
11157
12039
|
isContextDefined,
|
|
11158
|
-
ALPHABET,
|
|
11159
|
-
generateString,
|
|
11160
12040
|
isSpecCompliantForm,
|
|
11161
12041
|
toJSONObject,
|
|
11162
12042
|
isAsyncFn,
|
|
11163
|
-
isThenable
|
|
12043
|
+
isThenable,
|
|
12044
|
+
setImmediate: _setImmediate,
|
|
12045
|
+
asap
|
|
11164
12046
|
};
|
|
11165
12047
|
|
|
11166
12048
|
// node_modules/axios/lib/core/AxiosError.js
|
|
@@ -11176,7 +12058,10 @@ function AxiosError(message, code, config, request, response) {
|
|
|
11176
12058
|
code && (this.code = code);
|
|
11177
12059
|
config && (this.config = config);
|
|
11178
12060
|
request && (this.request = request);
|
|
11179
|
-
|
|
12061
|
+
if (response) {
|
|
12062
|
+
this.response = response;
|
|
12063
|
+
this.status = response.status ? response.status : null;
|
|
12064
|
+
}
|
|
11180
12065
|
}
|
|
11181
12066
|
utils_default.inherits(AxiosError, Error, {
|
|
11182
12067
|
toJSON: function toJSON() {
|
|
@@ -11195,7 +12080,7 @@ utils_default.inherits(AxiosError, Error, {
|
|
|
11195
12080
|
// Axios
|
|
11196
12081
|
config: utils_default.toJSONObject(this.config),
|
|
11197
12082
|
code: this.code,
|
|
11198
|
-
status: this.
|
|
12083
|
+
status: this.status
|
|
11199
12084
|
};
|
|
11200
12085
|
}
|
|
11201
12086
|
});
|
|
@@ -11393,6 +12278,11 @@ function buildURL(url2, params, options) {
|
|
|
11393
12278
|
return url2;
|
|
11394
12279
|
}
|
|
11395
12280
|
const _encode = options && options.encode || encode2;
|
|
12281
|
+
if (utils_default.isFunction(options)) {
|
|
12282
|
+
options = {
|
|
12283
|
+
serialize: options
|
|
12284
|
+
};
|
|
12285
|
+
}
|
|
11396
12286
|
const serializeFn = options && options.serialize;
|
|
11397
12287
|
let serializedParams;
|
|
11398
12288
|
if (serializeFn) {
|
|
@@ -11481,11 +12371,31 @@ var transitional_default = {
|
|
|
11481
12371
|
clarifyTimeoutError: false
|
|
11482
12372
|
};
|
|
11483
12373
|
|
|
12374
|
+
// node_modules/axios/lib/platform/node/index.js
|
|
12375
|
+
var import_crypto = __toESM(require("crypto"), 1);
|
|
12376
|
+
|
|
11484
12377
|
// node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
11485
12378
|
var import_url = __toESM(require("url"), 1);
|
|
11486
12379
|
var URLSearchParams_default = import_url.default.URLSearchParams;
|
|
11487
12380
|
|
|
11488
12381
|
// node_modules/axios/lib/platform/node/index.js
|
|
12382
|
+
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
12383
|
+
var DIGIT = "0123456789";
|
|
12384
|
+
var ALPHABET = {
|
|
12385
|
+
DIGIT,
|
|
12386
|
+
ALPHA,
|
|
12387
|
+
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
12388
|
+
};
|
|
12389
|
+
var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
12390
|
+
let str = "";
|
|
12391
|
+
const { length } = alphabet;
|
|
12392
|
+
const randomValues = new Uint32Array(size);
|
|
12393
|
+
import_crypto.default.randomFillSync(randomValues);
|
|
12394
|
+
for (let i = 0; i < size; i++) {
|
|
12395
|
+
str += alphabet[randomValues[i] % length];
|
|
12396
|
+
}
|
|
12397
|
+
return str;
|
|
12398
|
+
};
|
|
11489
12399
|
var node_default = {
|
|
11490
12400
|
isNode: true,
|
|
11491
12401
|
classes: {
|
|
@@ -11493,6 +12403,8 @@ var node_default = {
|
|
|
11493
12403
|
FormData: FormData_default,
|
|
11494
12404
|
Blob: typeof Blob !== "undefined" && Blob || null
|
|
11495
12405
|
},
|
|
12406
|
+
ALPHABET,
|
|
12407
|
+
generateString,
|
|
11496
12408
|
protocols: ["http", "https", "file", "data"]
|
|
11497
12409
|
};
|
|
11498
12410
|
|
|
@@ -11501,16 +12413,18 @@ var utils_exports = {};
|
|
|
11501
12413
|
__export(utils_exports, {
|
|
11502
12414
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
11503
12415
|
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
11504
|
-
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv
|
|
12416
|
+
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
|
|
12417
|
+
navigator: () => _navigator,
|
|
12418
|
+
origin: () => origin
|
|
11505
12419
|
});
|
|
11506
12420
|
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
11507
|
-
var
|
|
11508
|
-
|
|
11509
|
-
})(typeof navigator !== "undefined" && navigator.product);
|
|
12421
|
+
var _navigator = typeof navigator === "object" && navigator || void 0;
|
|
12422
|
+
var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
|
|
11510
12423
|
var hasStandardBrowserWebWorkerEnv = (() => {
|
|
11511
12424
|
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
11512
12425
|
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
11513
12426
|
})();
|
|
12427
|
+
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
11514
12428
|
|
|
11515
12429
|
// node_modules/axios/lib/platform/index.js
|
|
11516
12430
|
var platform_default = {
|
|
@@ -11600,7 +12514,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
11600
12514
|
}
|
|
11601
12515
|
var defaults = {
|
|
11602
12516
|
transitional: transitional_default,
|
|
11603
|
-
adapter: ["xhr", "http"],
|
|
12517
|
+
adapter: ["xhr", "http", "fetch"],
|
|
11604
12518
|
transformRequest: [function transformRequest(data, headers) {
|
|
11605
12519
|
const contentType = headers.getContentType() || "";
|
|
11606
12520
|
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
@@ -11612,7 +12526,7 @@ var defaults = {
|
|
|
11612
12526
|
if (isFormData2) {
|
|
11613
12527
|
return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
|
|
11614
12528
|
}
|
|
11615
|
-
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
|
|
12529
|
+
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)) {
|
|
11616
12530
|
return data;
|
|
11617
12531
|
}
|
|
11618
12532
|
if (utils_default.isArrayBufferView(data)) {
|
|
@@ -11646,6 +12560,9 @@ var defaults = {
|
|
|
11646
12560
|
const transitional2 = this.transitional || defaults.transitional;
|
|
11647
12561
|
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
11648
12562
|
const JSONRequested = this.responseType === "json";
|
|
12563
|
+
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
12564
|
+
return data;
|
|
12565
|
+
}
|
|
11649
12566
|
if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
11650
12567
|
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
11651
12568
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
@@ -11808,6 +12725,10 @@ var AxiosHeaders = class {
|
|
|
11808
12725
|
setHeaders(header, valueOrRewrite);
|
|
11809
12726
|
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
11810
12727
|
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
12728
|
+
} else if (utils_default.isHeaders(header)) {
|
|
12729
|
+
for (const [key, value] of header.entries()) {
|
|
12730
|
+
setHeader(value, key, rewrite);
|
|
12731
|
+
}
|
|
11811
12732
|
} else {
|
|
11812
12733
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
11813
12734
|
}
|
|
@@ -12007,8 +12928,9 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
12007
12928
|
}
|
|
12008
12929
|
|
|
12009
12930
|
// node_modules/axios/lib/core/buildFullPath.js
|
|
12010
|
-
function buildFullPath(baseURL, requestedURL) {
|
|
12011
|
-
|
|
12931
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
12932
|
+
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
12933
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
12012
12934
|
return combineURLs(baseURL, requestedURL);
|
|
12013
12935
|
}
|
|
12014
12936
|
return requestedURL;
|
|
@@ -12023,7 +12945,7 @@ var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
|
12023
12945
|
var import_zlib = __toESM(require("zlib"), 1);
|
|
12024
12946
|
|
|
12025
12947
|
// node_modules/axios/lib/env/data.js
|
|
12026
|
-
var VERSION = "1.
|
|
12948
|
+
var VERSION = "1.8.4";
|
|
12027
12949
|
|
|
12028
12950
|
// node_modules/axios/lib/helpers/parseProtocol.js
|
|
12029
12951
|
function parseProtocol(url2) {
|
|
@@ -12065,70 +12987,6 @@ var import_stream4 = __toESM(require("stream"), 1);
|
|
|
12065
12987
|
|
|
12066
12988
|
// node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
12067
12989
|
var import_stream = __toESM(require("stream"), 1);
|
|
12068
|
-
|
|
12069
|
-
// node_modules/axios/lib/helpers/throttle.js
|
|
12070
|
-
function throttle(fn, freq) {
|
|
12071
|
-
let timestamp = 0;
|
|
12072
|
-
const threshold = 1e3 / freq;
|
|
12073
|
-
let timer = null;
|
|
12074
|
-
return function throttled(force, args) {
|
|
12075
|
-
const now = Date.now();
|
|
12076
|
-
if (force || now - timestamp > threshold) {
|
|
12077
|
-
if (timer) {
|
|
12078
|
-
clearTimeout(timer);
|
|
12079
|
-
timer = null;
|
|
12080
|
-
}
|
|
12081
|
-
timestamp = now;
|
|
12082
|
-
return fn.apply(null, args);
|
|
12083
|
-
}
|
|
12084
|
-
if (!timer) {
|
|
12085
|
-
timer = setTimeout(() => {
|
|
12086
|
-
timer = null;
|
|
12087
|
-
timestamp = Date.now();
|
|
12088
|
-
return fn.apply(null, args);
|
|
12089
|
-
}, threshold - (now - timestamp));
|
|
12090
|
-
}
|
|
12091
|
-
};
|
|
12092
|
-
}
|
|
12093
|
-
var throttle_default = throttle;
|
|
12094
|
-
|
|
12095
|
-
// node_modules/axios/lib/helpers/speedometer.js
|
|
12096
|
-
function speedometer(samplesCount, min) {
|
|
12097
|
-
samplesCount = samplesCount || 10;
|
|
12098
|
-
const bytes = new Array(samplesCount);
|
|
12099
|
-
const timestamps = new Array(samplesCount);
|
|
12100
|
-
let head = 0;
|
|
12101
|
-
let tail = 0;
|
|
12102
|
-
let firstSampleTS;
|
|
12103
|
-
min = min !== void 0 ? min : 1e3;
|
|
12104
|
-
return function push(chunkLength) {
|
|
12105
|
-
const now = Date.now();
|
|
12106
|
-
const startedAt = timestamps[tail];
|
|
12107
|
-
if (!firstSampleTS) {
|
|
12108
|
-
firstSampleTS = now;
|
|
12109
|
-
}
|
|
12110
|
-
bytes[head] = chunkLength;
|
|
12111
|
-
timestamps[head] = now;
|
|
12112
|
-
let i = tail;
|
|
12113
|
-
let bytesCount = 0;
|
|
12114
|
-
while (i !== head) {
|
|
12115
|
-
bytesCount += bytes[i++];
|
|
12116
|
-
i = i % samplesCount;
|
|
12117
|
-
}
|
|
12118
|
-
head = (head + 1) % samplesCount;
|
|
12119
|
-
if (head === tail) {
|
|
12120
|
-
tail = (tail + 1) % samplesCount;
|
|
12121
|
-
}
|
|
12122
|
-
if (now - firstSampleTS < min) {
|
|
12123
|
-
return;
|
|
12124
|
-
}
|
|
12125
|
-
const passed = startedAt && now - startedAt;
|
|
12126
|
-
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
12127
|
-
};
|
|
12128
|
-
}
|
|
12129
|
-
var speedometer_default = speedometer;
|
|
12130
|
-
|
|
12131
|
-
// node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
12132
12990
|
var kInternals = Symbol("internals");
|
|
12133
12991
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
12134
12992
|
constructor(options) {
|
|
@@ -12145,11 +13003,8 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
12145
13003
|
super({
|
|
12146
13004
|
readableHighWaterMark: options.chunkSize
|
|
12147
13005
|
});
|
|
12148
|
-
const self2 = this;
|
|
12149
13006
|
const internals = this[kInternals] = {
|
|
12150
|
-
length: options.length,
|
|
12151
13007
|
timeWindow: options.timeWindow,
|
|
12152
|
-
ticksRate: options.ticksRate,
|
|
12153
13008
|
chunkSize: options.chunkSize,
|
|
12154
13009
|
maxRate: options.maxRate,
|
|
12155
13010
|
minChunkSize: options.minChunkSize,
|
|
@@ -12160,7 +13015,6 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
12160
13015
|
bytes: 0,
|
|
12161
13016
|
onReadCallback: null
|
|
12162
13017
|
};
|
|
12163
|
-
const _speedometer = speedometer_default(internals.ticksRate * options.samplesCount, internals.timeWindow);
|
|
12164
13018
|
this.on("newListener", (event) => {
|
|
12165
13019
|
if (event === "progress") {
|
|
12166
13020
|
if (!internals.isCaptured) {
|
|
@@ -12168,30 +13022,6 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
12168
13022
|
}
|
|
12169
13023
|
}
|
|
12170
13024
|
});
|
|
12171
|
-
let bytesNotified = 0;
|
|
12172
|
-
internals.updateProgress = throttle_default(function throttledHandler() {
|
|
12173
|
-
const totalBytes = internals.length;
|
|
12174
|
-
const bytesTransferred = internals.bytesSeen;
|
|
12175
|
-
const progressBytes = bytesTransferred - bytesNotified;
|
|
12176
|
-
if (!progressBytes || self2.destroyed) return;
|
|
12177
|
-
const rate = _speedometer(progressBytes);
|
|
12178
|
-
bytesNotified = bytesTransferred;
|
|
12179
|
-
process.nextTick(() => {
|
|
12180
|
-
self2.emit("progress", {
|
|
12181
|
-
"loaded": bytesTransferred,
|
|
12182
|
-
"total": totalBytes,
|
|
12183
|
-
"progress": totalBytes ? bytesTransferred / totalBytes : void 0,
|
|
12184
|
-
"bytes": progressBytes,
|
|
12185
|
-
"rate": rate ? rate : void 0,
|
|
12186
|
-
"estimated": rate && totalBytes && bytesTransferred <= totalBytes ? (totalBytes - bytesTransferred) / rate : void 0
|
|
12187
|
-
});
|
|
12188
|
-
});
|
|
12189
|
-
}, internals.ticksRate);
|
|
12190
|
-
const onFinish = () => {
|
|
12191
|
-
internals.updateProgress(true);
|
|
12192
|
-
};
|
|
12193
|
-
this.once("end", onFinish);
|
|
12194
|
-
this.once("error", onFinish);
|
|
12195
13025
|
}
|
|
12196
13026
|
_read(size) {
|
|
12197
13027
|
const internals = this[kInternals];
|
|
@@ -12201,7 +13031,6 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
12201
13031
|
return super._read(size);
|
|
12202
13032
|
}
|
|
12203
13033
|
_transform(chunk, encoding, callback) {
|
|
12204
|
-
const self2 = this;
|
|
12205
13034
|
const internals = this[kInternals];
|
|
12206
13035
|
const maxRate = internals.maxRate;
|
|
12207
13036
|
const readableHighWaterMark = this.readableHighWaterMark;
|
|
@@ -12209,14 +13038,12 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
12209
13038
|
const divider = 1e3 / timeWindow;
|
|
12210
13039
|
const bytesThreshold = maxRate / divider;
|
|
12211
13040
|
const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
|
|
12212
|
-
|
|
13041
|
+
const pushChunk = (_chunk, _callback) => {
|
|
12213
13042
|
const bytes = Buffer.byteLength(_chunk);
|
|
12214
13043
|
internals.bytesSeen += bytes;
|
|
12215
13044
|
internals.bytes += bytes;
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
}
|
|
12219
|
-
if (self2.push(_chunk)) {
|
|
13045
|
+
internals.isCaptured && this.emit("progress", internals.bytesSeen);
|
|
13046
|
+
if (this.push(_chunk)) {
|
|
12220
13047
|
process.nextTick(_callback);
|
|
12221
13048
|
} else {
|
|
12222
13049
|
internals.onReadCallback = () => {
|
|
@@ -12224,7 +13051,7 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
12224
13051
|
process.nextTick(_callback);
|
|
12225
13052
|
};
|
|
12226
13053
|
}
|
|
12227
|
-
}
|
|
13054
|
+
};
|
|
12228
13055
|
const transformChunk = (_chunk, _callback) => {
|
|
12229
13056
|
const chunkSize = Buffer.byteLength(_chunk);
|
|
12230
13057
|
let chunkRemainder = null;
|
|
@@ -12270,10 +13097,6 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
12270
13097
|
}
|
|
12271
13098
|
});
|
|
12272
13099
|
}
|
|
12273
|
-
setLength(length) {
|
|
12274
|
-
this[kInternals].length = +length;
|
|
12275
|
-
return this;
|
|
12276
|
-
}
|
|
12277
13100
|
};
|
|
12278
13101
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
12279
13102
|
|
|
@@ -12281,7 +13104,7 @@ var AxiosTransformStream_default = AxiosTransformStream;
|
|
|
12281
13104
|
var import_events = require("events");
|
|
12282
13105
|
|
|
12283
13106
|
// node_modules/axios/lib/helpers/formDataToStream.js
|
|
12284
|
-
var import_util = require("util");
|
|
13107
|
+
var import_util = __toESM(require("util"), 1);
|
|
12285
13108
|
var import_stream2 = require("stream");
|
|
12286
13109
|
|
|
12287
13110
|
// node_modules/axios/lib/helpers/readBlob.js
|
|
@@ -12300,8 +13123,8 @@ var readBlob = async function* (blob) {
|
|
|
12300
13123
|
var readBlob_default = readBlob;
|
|
12301
13124
|
|
|
12302
13125
|
// node_modules/axios/lib/helpers/formDataToStream.js
|
|
12303
|
-
var BOUNDARY_ALPHABET =
|
|
12304
|
-
var textEncoder = new import_util.TextEncoder();
|
|
13126
|
+
var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
13127
|
+
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new import_util.default.TextEncoder();
|
|
12305
13128
|
var CRLF = "\r\n";
|
|
12306
13129
|
var CRLF_BYTES = textEncoder.encode(CRLF);
|
|
12307
13130
|
var CRLF_BYTES_COUNT = 2;
|
|
@@ -12343,7 +13166,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
12343
13166
|
const {
|
|
12344
13167
|
tag = "form-data-boundary",
|
|
12345
13168
|
size = 25,
|
|
12346
|
-
boundary = tag + "-" +
|
|
13169
|
+
boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
|
|
12347
13170
|
} = options || {};
|
|
12348
13171
|
if (!utils_default.isFormData(form)) {
|
|
12349
13172
|
throw TypeError("FormData instance required");
|
|
@@ -12415,6 +13238,112 @@ var callbackify = (fn, reducer) => {
|
|
|
12415
13238
|
};
|
|
12416
13239
|
var callbackify_default = callbackify;
|
|
12417
13240
|
|
|
13241
|
+
// node_modules/axios/lib/helpers/speedometer.js
|
|
13242
|
+
function speedometer(samplesCount, min) {
|
|
13243
|
+
samplesCount = samplesCount || 10;
|
|
13244
|
+
const bytes = new Array(samplesCount);
|
|
13245
|
+
const timestamps = new Array(samplesCount);
|
|
13246
|
+
let head = 0;
|
|
13247
|
+
let tail = 0;
|
|
13248
|
+
let firstSampleTS;
|
|
13249
|
+
min = min !== void 0 ? min : 1e3;
|
|
13250
|
+
return function push(chunkLength) {
|
|
13251
|
+
const now = Date.now();
|
|
13252
|
+
const startedAt = timestamps[tail];
|
|
13253
|
+
if (!firstSampleTS) {
|
|
13254
|
+
firstSampleTS = now;
|
|
13255
|
+
}
|
|
13256
|
+
bytes[head] = chunkLength;
|
|
13257
|
+
timestamps[head] = now;
|
|
13258
|
+
let i = tail;
|
|
13259
|
+
let bytesCount = 0;
|
|
13260
|
+
while (i !== head) {
|
|
13261
|
+
bytesCount += bytes[i++];
|
|
13262
|
+
i = i % samplesCount;
|
|
13263
|
+
}
|
|
13264
|
+
head = (head + 1) % samplesCount;
|
|
13265
|
+
if (head === tail) {
|
|
13266
|
+
tail = (tail + 1) % samplesCount;
|
|
13267
|
+
}
|
|
13268
|
+
if (now - firstSampleTS < min) {
|
|
13269
|
+
return;
|
|
13270
|
+
}
|
|
13271
|
+
const passed = startedAt && now - startedAt;
|
|
13272
|
+
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
13273
|
+
};
|
|
13274
|
+
}
|
|
13275
|
+
var speedometer_default = speedometer;
|
|
13276
|
+
|
|
13277
|
+
// node_modules/axios/lib/helpers/throttle.js
|
|
13278
|
+
function throttle(fn, freq) {
|
|
13279
|
+
let timestamp = 0;
|
|
13280
|
+
let threshold = 1e3 / freq;
|
|
13281
|
+
let lastArgs;
|
|
13282
|
+
let timer;
|
|
13283
|
+
const invoke = (args, now = Date.now()) => {
|
|
13284
|
+
timestamp = now;
|
|
13285
|
+
lastArgs = null;
|
|
13286
|
+
if (timer) {
|
|
13287
|
+
clearTimeout(timer);
|
|
13288
|
+
timer = null;
|
|
13289
|
+
}
|
|
13290
|
+
fn.apply(null, args);
|
|
13291
|
+
};
|
|
13292
|
+
const throttled = (...args) => {
|
|
13293
|
+
const now = Date.now();
|
|
13294
|
+
const passed = now - timestamp;
|
|
13295
|
+
if (passed >= threshold) {
|
|
13296
|
+
invoke(args, now);
|
|
13297
|
+
} else {
|
|
13298
|
+
lastArgs = args;
|
|
13299
|
+
if (!timer) {
|
|
13300
|
+
timer = setTimeout(() => {
|
|
13301
|
+
timer = null;
|
|
13302
|
+
invoke(lastArgs);
|
|
13303
|
+
}, threshold - passed);
|
|
13304
|
+
}
|
|
13305
|
+
}
|
|
13306
|
+
};
|
|
13307
|
+
const flush = () => lastArgs && invoke(lastArgs);
|
|
13308
|
+
return [throttled, flush];
|
|
13309
|
+
}
|
|
13310
|
+
var throttle_default = throttle;
|
|
13311
|
+
|
|
13312
|
+
// node_modules/axios/lib/helpers/progressEventReducer.js
|
|
13313
|
+
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
13314
|
+
let bytesNotified = 0;
|
|
13315
|
+
const _speedometer = speedometer_default(50, 250);
|
|
13316
|
+
return throttle_default((e2) => {
|
|
13317
|
+
const loaded = e2.loaded;
|
|
13318
|
+
const total = e2.lengthComputable ? e2.total : void 0;
|
|
13319
|
+
const progressBytes = loaded - bytesNotified;
|
|
13320
|
+
const rate = _speedometer(progressBytes);
|
|
13321
|
+
const inRange = loaded <= total;
|
|
13322
|
+
bytesNotified = loaded;
|
|
13323
|
+
const data = {
|
|
13324
|
+
loaded,
|
|
13325
|
+
total,
|
|
13326
|
+
progress: total ? loaded / total : void 0,
|
|
13327
|
+
bytes: progressBytes,
|
|
13328
|
+
rate: rate ? rate : void 0,
|
|
13329
|
+
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
13330
|
+
event: e2,
|
|
13331
|
+
lengthComputable: total != null,
|
|
13332
|
+
[isDownloadStream ? "download" : "upload"]: true
|
|
13333
|
+
};
|
|
13334
|
+
listener(data);
|
|
13335
|
+
}, freq);
|
|
13336
|
+
};
|
|
13337
|
+
var progressEventDecorator = (total, throttled) => {
|
|
13338
|
+
const lengthComputable = total != null;
|
|
13339
|
+
return [(loaded) => throttled[0]({
|
|
13340
|
+
lengthComputable,
|
|
13341
|
+
total,
|
|
13342
|
+
loaded
|
|
13343
|
+
}), throttled[1]];
|
|
13344
|
+
};
|
|
13345
|
+
var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
13346
|
+
|
|
12418
13347
|
// node_modules/axios/lib/adapters/http.js
|
|
12419
13348
|
var zlibOptions = {
|
|
12420
13349
|
flush: import_zlib.default.constants.Z_SYNC_FLUSH,
|
|
@@ -12430,6 +13359,10 @@ var isHttps = /https:?/;
|
|
|
12430
13359
|
var supportedProtocols = platform_default.protocols.map((protocol) => {
|
|
12431
13360
|
return protocol + ":";
|
|
12432
13361
|
});
|
|
13362
|
+
var flushOnFinish = (stream4, [throttled, flush]) => {
|
|
13363
|
+
stream4.on("end", flush).on("error", flush);
|
|
13364
|
+
return throttled;
|
|
13365
|
+
};
|
|
12433
13366
|
function dispatchBeforeRedirect(options, responseDetails) {
|
|
12434
13367
|
if (options.beforeRedirects.proxy) {
|
|
12435
13368
|
options.beforeRedirects.proxy(options);
|
|
@@ -12441,7 +13374,7 @@ function dispatchBeforeRedirect(options, responseDetails) {
|
|
|
12441
13374
|
function setProxy(options, configProxy, location) {
|
|
12442
13375
|
let proxy = configProxy;
|
|
12443
13376
|
if (!proxy && proxy !== false) {
|
|
12444
|
-
const proxyUrl =
|
|
13377
|
+
const proxyUrl = import_proxy_from_env.default.getProxyForUrl(location);
|
|
12445
13378
|
if (proxyUrl) {
|
|
12446
13379
|
proxy = new URL(proxyUrl);
|
|
12447
13380
|
}
|
|
@@ -12549,8 +13482,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
12549
13482
|
config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);
|
|
12550
13483
|
}
|
|
12551
13484
|
}
|
|
12552
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
12553
|
-
const parsed = new URL(fullPath,
|
|
13485
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
13486
|
+
const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
|
|
12554
13487
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
12555
13488
|
if (protocol === "data:") {
|
|
12556
13489
|
let convertedData;
|
|
@@ -12594,8 +13527,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
12594
13527
|
}
|
|
12595
13528
|
const headers = AxiosHeaders_default.from(config.headers).normalize();
|
|
12596
13529
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
12597
|
-
const onDownloadProgress = config
|
|
12598
|
-
const onUploadProgress = config.onUploadProgress;
|
|
13530
|
+
const { onUploadProgress, onDownloadProgress } = config;
|
|
12599
13531
|
const maxRate = config.maxRate;
|
|
12600
13532
|
let maxUploadRate = void 0;
|
|
12601
13533
|
let maxDownloadRate = void 0;
|
|
@@ -12616,7 +13548,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
12616
13548
|
} catch (e2) {
|
|
12617
13549
|
}
|
|
12618
13550
|
}
|
|
12619
|
-
} else if (utils_default.isBlob(data)) {
|
|
13551
|
+
} else if (utils_default.isBlob(data) || utils_default.isFile(data)) {
|
|
12620
13552
|
data.size && headers.setContentType(data.type || "application/octet-stream");
|
|
12621
13553
|
headers.setContentLength(data.size || 0);
|
|
12622
13554
|
data = import_stream4.default.Readable.from(readBlob_default(data));
|
|
@@ -12654,14 +13586,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
12654
13586
|
data = import_stream4.default.Readable.from(data, { objectMode: false });
|
|
12655
13587
|
}
|
|
12656
13588
|
data = import_stream4.default.pipeline([data, new AxiosTransformStream_default({
|
|
12657
|
-
length: contentLength,
|
|
12658
13589
|
maxRate: utils_default.toFiniteNumber(maxUploadRate)
|
|
12659
13590
|
})], utils_default.noop);
|
|
12660
|
-
onUploadProgress && data.on("progress", (
|
|
12661
|
-
|
|
12662
|
-
|
|
12663
|
-
|
|
12664
|
-
|
|
13591
|
+
onUploadProgress && data.on("progress", flushOnFinish(
|
|
13592
|
+
data,
|
|
13593
|
+
progressEventDecorator(
|
|
13594
|
+
contentLength,
|
|
13595
|
+
progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
|
|
13596
|
+
)
|
|
13597
|
+
));
|
|
12665
13598
|
}
|
|
12666
13599
|
let auth = void 0;
|
|
12667
13600
|
if (config.auth) {
|
|
@@ -12709,7 +13642,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
12709
13642
|
if (config.socketPath) {
|
|
12710
13643
|
options.socketPath = config.socketPath;
|
|
12711
13644
|
} else {
|
|
12712
|
-
options.hostname = parsed.hostname;
|
|
13645
|
+
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
12713
13646
|
options.port = parsed.port;
|
|
12714
13647
|
setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
|
|
12715
13648
|
}
|
|
@@ -12741,16 +13674,17 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
12741
13674
|
if (req.destroyed) return;
|
|
12742
13675
|
const streams = [res];
|
|
12743
13676
|
const responseLength = +res.headers["content-length"];
|
|
12744
|
-
if (onDownloadProgress) {
|
|
13677
|
+
if (onDownloadProgress || maxDownloadRate) {
|
|
12745
13678
|
const transformStream = new AxiosTransformStream_default({
|
|
12746
|
-
length: utils_default.toFiniteNumber(responseLength),
|
|
12747
13679
|
maxRate: utils_default.toFiniteNumber(maxDownloadRate)
|
|
12748
13680
|
});
|
|
12749
|
-
onDownloadProgress && transformStream.on("progress", (
|
|
12750
|
-
|
|
12751
|
-
|
|
12752
|
-
|
|
12753
|
-
|
|
13681
|
+
onDownloadProgress && transformStream.on("progress", flushOnFinish(
|
|
13682
|
+
transformStream,
|
|
13683
|
+
progressEventDecorator(
|
|
13684
|
+
responseLength,
|
|
13685
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
|
|
13686
|
+
)
|
|
13687
|
+
));
|
|
12754
13688
|
streams.push(transformStream);
|
|
12755
13689
|
}
|
|
12756
13690
|
let responseStream = res;
|
|
@@ -12817,7 +13751,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
12817
13751
|
return;
|
|
12818
13752
|
}
|
|
12819
13753
|
const err = new AxiosError_default(
|
|
12820
|
-
"
|
|
13754
|
+
"stream has been aborted",
|
|
12821
13755
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
12822
13756
|
config,
|
|
12823
13757
|
lastRequest
|
|
@@ -12911,6 +13845,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
12911
13845
|
});
|
|
12912
13846
|
};
|
|
12913
13847
|
|
|
13848
|
+
// node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
13849
|
+
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
|
|
13850
|
+
url2 = new URL(url2, platform_default.origin);
|
|
13851
|
+
return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
|
|
13852
|
+
})(
|
|
13853
|
+
new URL(platform_default.origin),
|
|
13854
|
+
platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
|
|
13855
|
+
) : () => true;
|
|
13856
|
+
|
|
12914
13857
|
// node_modules/axios/lib/helpers/cookies.js
|
|
12915
13858
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
12916
13859
|
// Standard browser envs support document.cookie
|
|
@@ -12931,117 +13874,152 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
12931
13874
|
this.write(name, "", Date.now() - 864e5);
|
|
12932
13875
|
}
|
|
12933
13876
|
}
|
|
12934
|
-
) : (
|
|
12935
|
-
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
12936
|
-
{
|
|
12937
|
-
write() {
|
|
12938
|
-
},
|
|
12939
|
-
read() {
|
|
12940
|
-
return null;
|
|
12941
|
-
},
|
|
12942
|
-
remove() {
|
|
13877
|
+
) : (
|
|
13878
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
13879
|
+
{
|
|
13880
|
+
write() {
|
|
13881
|
+
},
|
|
13882
|
+
read() {
|
|
13883
|
+
return null;
|
|
13884
|
+
},
|
|
13885
|
+
remove() {
|
|
13886
|
+
}
|
|
13887
|
+
}
|
|
13888
|
+
);
|
|
13889
|
+
|
|
13890
|
+
// node_modules/axios/lib/core/mergeConfig.js
|
|
13891
|
+
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
13892
|
+
function mergeConfig(config1, config2) {
|
|
13893
|
+
config2 = config2 || {};
|
|
13894
|
+
const config = {};
|
|
13895
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
13896
|
+
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
|
|
13897
|
+
return utils_default.merge.call({ caseless }, target, source);
|
|
13898
|
+
} else if (utils_default.isPlainObject(source)) {
|
|
13899
|
+
return utils_default.merge({}, source);
|
|
13900
|
+
} else if (utils_default.isArray(source)) {
|
|
13901
|
+
return source.slice();
|
|
13902
|
+
}
|
|
13903
|
+
return source;
|
|
13904
|
+
}
|
|
13905
|
+
function mergeDeepProperties(a, b, prop, caseless) {
|
|
13906
|
+
if (!utils_default.isUndefined(b)) {
|
|
13907
|
+
return getMergedValue(a, b, prop, caseless);
|
|
13908
|
+
} else if (!utils_default.isUndefined(a)) {
|
|
13909
|
+
return getMergedValue(void 0, a, prop, caseless);
|
|
13910
|
+
}
|
|
13911
|
+
}
|
|
13912
|
+
function valueFromConfig2(a, b) {
|
|
13913
|
+
if (!utils_default.isUndefined(b)) {
|
|
13914
|
+
return getMergedValue(void 0, b);
|
|
13915
|
+
}
|
|
13916
|
+
}
|
|
13917
|
+
function defaultToConfig2(a, b) {
|
|
13918
|
+
if (!utils_default.isUndefined(b)) {
|
|
13919
|
+
return getMergedValue(void 0, b);
|
|
13920
|
+
} else if (!utils_default.isUndefined(a)) {
|
|
13921
|
+
return getMergedValue(void 0, a);
|
|
13922
|
+
}
|
|
13923
|
+
}
|
|
13924
|
+
function mergeDirectKeys(a, b, prop) {
|
|
13925
|
+
if (prop in config2) {
|
|
13926
|
+
return getMergedValue(a, b);
|
|
13927
|
+
} else if (prop in config1) {
|
|
13928
|
+
return getMergedValue(void 0, a);
|
|
12943
13929
|
}
|
|
12944
13930
|
}
|
|
12945
|
-
|
|
13931
|
+
const mergeMap = {
|
|
13932
|
+
url: valueFromConfig2,
|
|
13933
|
+
method: valueFromConfig2,
|
|
13934
|
+
data: valueFromConfig2,
|
|
13935
|
+
baseURL: defaultToConfig2,
|
|
13936
|
+
transformRequest: defaultToConfig2,
|
|
13937
|
+
transformResponse: defaultToConfig2,
|
|
13938
|
+
paramsSerializer: defaultToConfig2,
|
|
13939
|
+
timeout: defaultToConfig2,
|
|
13940
|
+
timeoutMessage: defaultToConfig2,
|
|
13941
|
+
withCredentials: defaultToConfig2,
|
|
13942
|
+
withXSRFToken: defaultToConfig2,
|
|
13943
|
+
adapter: defaultToConfig2,
|
|
13944
|
+
responseType: defaultToConfig2,
|
|
13945
|
+
xsrfCookieName: defaultToConfig2,
|
|
13946
|
+
xsrfHeaderName: defaultToConfig2,
|
|
13947
|
+
onUploadProgress: defaultToConfig2,
|
|
13948
|
+
onDownloadProgress: defaultToConfig2,
|
|
13949
|
+
decompress: defaultToConfig2,
|
|
13950
|
+
maxContentLength: defaultToConfig2,
|
|
13951
|
+
maxBodyLength: defaultToConfig2,
|
|
13952
|
+
beforeRedirect: defaultToConfig2,
|
|
13953
|
+
transport: defaultToConfig2,
|
|
13954
|
+
httpAgent: defaultToConfig2,
|
|
13955
|
+
httpsAgent: defaultToConfig2,
|
|
13956
|
+
cancelToken: defaultToConfig2,
|
|
13957
|
+
socketPath: defaultToConfig2,
|
|
13958
|
+
responseEncoding: defaultToConfig2,
|
|
13959
|
+
validateStatus: mergeDirectKeys,
|
|
13960
|
+
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
13961
|
+
};
|
|
13962
|
+
utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
13963
|
+
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
13964
|
+
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
13965
|
+
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
13966
|
+
});
|
|
13967
|
+
return config;
|
|
13968
|
+
}
|
|
12946
13969
|
|
|
12947
|
-
// node_modules/axios/lib/helpers/
|
|
12948
|
-
var
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
|
|
12952
|
-
|
|
12953
|
-
|
|
12954
|
-
|
|
12955
|
-
|
|
12956
|
-
|
|
12957
|
-
|
|
12958
|
-
|
|
12959
|
-
|
|
12960
|
-
|
|
12961
|
-
|
|
12962
|
-
|
|
12963
|
-
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
|
|
12967
|
-
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
|
|
12968
|
-
hostname: urlParsingNode.hostname,
|
|
12969
|
-
port: urlParsingNode.port,
|
|
12970
|
-
pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
|
|
12971
|
-
};
|
|
13970
|
+
// node_modules/axios/lib/helpers/resolveConfig.js
|
|
13971
|
+
var resolveConfig_default = (config) => {
|
|
13972
|
+
const newConfig = mergeConfig({}, config);
|
|
13973
|
+
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
13974
|
+
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
13975
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
13976
|
+
if (auth) {
|
|
13977
|
+
headers.set(
|
|
13978
|
+
"Authorization",
|
|
13979
|
+
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
|
|
13980
|
+
);
|
|
13981
|
+
}
|
|
13982
|
+
let contentType;
|
|
13983
|
+
if (utils_default.isFormData(data)) {
|
|
13984
|
+
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
13985
|
+
headers.setContentType(void 0);
|
|
13986
|
+
} else if ((contentType = headers.getContentType()) !== false) {
|
|
13987
|
+
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
|
13988
|
+
headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
12972
13989
|
}
|
|
12973
|
-
|
|
12974
|
-
|
|
12975
|
-
|
|
12976
|
-
|
|
12977
|
-
|
|
12978
|
-
|
|
12979
|
-
)
|
|
12980
|
-
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
|
|
12984
|
-
|
|
12985
|
-
}()
|
|
12986
|
-
);
|
|
13990
|
+
}
|
|
13991
|
+
if (platform_default.hasStandardBrowserEnv) {
|
|
13992
|
+
withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
|
|
13993
|
+
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
|
|
13994
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
|
|
13995
|
+
if (xsrfValue) {
|
|
13996
|
+
headers.set(xsrfHeaderName, xsrfValue);
|
|
13997
|
+
}
|
|
13998
|
+
}
|
|
13999
|
+
}
|
|
14000
|
+
return newConfig;
|
|
14001
|
+
};
|
|
12987
14002
|
|
|
12988
14003
|
// node_modules/axios/lib/adapters/xhr.js
|
|
12989
|
-
function progressEventReducer(listener, isDownloadStream) {
|
|
12990
|
-
let bytesNotified = 0;
|
|
12991
|
-
const _speedometer = speedometer_default(50, 250);
|
|
12992
|
-
return (e2) => {
|
|
12993
|
-
const loaded = e2.loaded;
|
|
12994
|
-
const total = e2.lengthComputable ? e2.total : void 0;
|
|
12995
|
-
const progressBytes = loaded - bytesNotified;
|
|
12996
|
-
const rate = _speedometer(progressBytes);
|
|
12997
|
-
const inRange = loaded <= total;
|
|
12998
|
-
bytesNotified = loaded;
|
|
12999
|
-
const data = {
|
|
13000
|
-
loaded,
|
|
13001
|
-
total,
|
|
13002
|
-
progress: total ? loaded / total : void 0,
|
|
13003
|
-
bytes: progressBytes,
|
|
13004
|
-
rate: rate ? rate : void 0,
|
|
13005
|
-
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
13006
|
-
event: e2
|
|
13007
|
-
};
|
|
13008
|
-
data[isDownloadStream ? "download" : "upload"] = true;
|
|
13009
|
-
listener(data);
|
|
13010
|
-
};
|
|
13011
|
-
}
|
|
13012
14004
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
13013
14005
|
var xhr_default = isXHRAdapterSupported && function(config) {
|
|
13014
14006
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
13015
|
-
|
|
13016
|
-
|
|
13017
|
-
|
|
14007
|
+
const _config = resolveConfig_default(config);
|
|
14008
|
+
let requestData = _config.data;
|
|
14009
|
+
const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
|
|
14010
|
+
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
13018
14011
|
let onCanceled;
|
|
14012
|
+
let uploadThrottled, downloadThrottled;
|
|
14013
|
+
let flushUpload, flushDownload;
|
|
13019
14014
|
function done() {
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13023
|
-
|
|
13024
|
-
config.signal.removeEventListener("abort", onCanceled);
|
|
13025
|
-
}
|
|
13026
|
-
}
|
|
13027
|
-
let contentType;
|
|
13028
|
-
if (utils_default.isFormData(requestData)) {
|
|
13029
|
-
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
13030
|
-
requestHeaders.setContentType(false);
|
|
13031
|
-
} else if ((contentType = requestHeaders.getContentType()) !== false) {
|
|
13032
|
-
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
|
13033
|
-
requestHeaders.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
13034
|
-
}
|
|
14015
|
+
flushUpload && flushUpload();
|
|
14016
|
+
flushDownload && flushDownload();
|
|
14017
|
+
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
14018
|
+
_config.signal && _config.signal.removeEventListener("abort", onCanceled);
|
|
13035
14019
|
}
|
|
13036
14020
|
let request = new XMLHttpRequest();
|
|
13037
|
-
|
|
13038
|
-
|
|
13039
|
-
const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
|
|
13040
|
-
requestHeaders.set("Authorization", "Basic " + btoa(username + ":" + password));
|
|
13041
|
-
}
|
|
13042
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
13043
|
-
request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
|
|
13044
|
-
request.timeout = config.timeout;
|
|
14021
|
+
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
14022
|
+
request.timeout = _config.timeout;
|
|
13045
14023
|
function onloadend() {
|
|
13046
14024
|
if (!request) {
|
|
13047
14025
|
return;
|
|
@@ -13092,10 +14070,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
13092
14070
|
request = null;
|
|
13093
14071
|
};
|
|
13094
14072
|
request.ontimeout = function handleTimeout() {
|
|
13095
|
-
let timeoutErrorMessage =
|
|
13096
|
-
const transitional2 =
|
|
13097
|
-
if (
|
|
13098
|
-
timeoutErrorMessage =
|
|
14073
|
+
let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
|
|
14074
|
+
const transitional2 = _config.transitional || transitional_default;
|
|
14075
|
+
if (_config.timeoutErrorMessage) {
|
|
14076
|
+
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
13099
14077
|
}
|
|
13100
14078
|
reject(new AxiosError_default(
|
|
13101
14079
|
timeoutErrorMessage,
|
|
@@ -13105,34 +14083,28 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
13105
14083
|
));
|
|
13106
14084
|
request = null;
|
|
13107
14085
|
};
|
|
13108
|
-
if (platform_default.hasStandardBrowserEnv) {
|
|
13109
|
-
withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
|
|
13110
|
-
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(fullPath)) {
|
|
13111
|
-
const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
|
|
13112
|
-
if (xsrfValue) {
|
|
13113
|
-
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
|
|
13114
|
-
}
|
|
13115
|
-
}
|
|
13116
|
-
}
|
|
13117
14086
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
13118
14087
|
if ("setRequestHeader" in request) {
|
|
13119
14088
|
utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
|
|
13120
14089
|
request.setRequestHeader(key, val);
|
|
13121
14090
|
});
|
|
13122
14091
|
}
|
|
13123
|
-
if (!utils_default.isUndefined(
|
|
13124
|
-
request.withCredentials = !!
|
|
14092
|
+
if (!utils_default.isUndefined(_config.withCredentials)) {
|
|
14093
|
+
request.withCredentials = !!_config.withCredentials;
|
|
13125
14094
|
}
|
|
13126
14095
|
if (responseType && responseType !== "json") {
|
|
13127
|
-
request.responseType =
|
|
14096
|
+
request.responseType = _config.responseType;
|
|
13128
14097
|
}
|
|
13129
|
-
if (
|
|
13130
|
-
|
|
14098
|
+
if (onDownloadProgress) {
|
|
14099
|
+
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
14100
|
+
request.addEventListener("progress", downloadThrottled);
|
|
13131
14101
|
}
|
|
13132
|
-
if (
|
|
13133
|
-
|
|
14102
|
+
if (onUploadProgress && request.upload) {
|
|
14103
|
+
[uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
|
|
14104
|
+
request.upload.addEventListener("progress", uploadThrottled);
|
|
14105
|
+
request.upload.addEventListener("loadend", flushUpload);
|
|
13134
14106
|
}
|
|
13135
|
-
if (
|
|
14107
|
+
if (_config.cancelToken || _config.signal) {
|
|
13136
14108
|
onCanceled = (cancel) => {
|
|
13137
14109
|
if (!request) {
|
|
13138
14110
|
return;
|
|
@@ -13141,12 +14113,12 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
13141
14113
|
request.abort();
|
|
13142
14114
|
request = null;
|
|
13143
14115
|
};
|
|
13144
|
-
|
|
13145
|
-
if (
|
|
13146
|
-
|
|
14116
|
+
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
14117
|
+
if (_config.signal) {
|
|
14118
|
+
_config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
|
|
13147
14119
|
}
|
|
13148
14120
|
}
|
|
13149
|
-
const protocol = parseProtocol(
|
|
14121
|
+
const protocol = parseProtocol(_config.url);
|
|
13150
14122
|
if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
|
|
13151
14123
|
reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
|
|
13152
14124
|
return;
|
|
@@ -13155,10 +14127,288 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
13155
14127
|
});
|
|
13156
14128
|
};
|
|
13157
14129
|
|
|
14130
|
+
// node_modules/axios/lib/helpers/composeSignals.js
|
|
14131
|
+
var composeSignals = (signals, timeout) => {
|
|
14132
|
+
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
14133
|
+
if (timeout || length) {
|
|
14134
|
+
let controller = new AbortController();
|
|
14135
|
+
let aborted;
|
|
14136
|
+
const onabort = function(reason) {
|
|
14137
|
+
if (!aborted) {
|
|
14138
|
+
aborted = true;
|
|
14139
|
+
unsubscribe();
|
|
14140
|
+
const err = reason instanceof Error ? reason : this.reason;
|
|
14141
|
+
controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
|
|
14142
|
+
}
|
|
14143
|
+
};
|
|
14144
|
+
let timer = timeout && setTimeout(() => {
|
|
14145
|
+
timer = null;
|
|
14146
|
+
onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));
|
|
14147
|
+
}, timeout);
|
|
14148
|
+
const unsubscribe = () => {
|
|
14149
|
+
if (signals) {
|
|
14150
|
+
timer && clearTimeout(timer);
|
|
14151
|
+
timer = null;
|
|
14152
|
+
signals.forEach((signal2) => {
|
|
14153
|
+
signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
|
|
14154
|
+
});
|
|
14155
|
+
signals = null;
|
|
14156
|
+
}
|
|
14157
|
+
};
|
|
14158
|
+
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
14159
|
+
const { signal } = controller;
|
|
14160
|
+
signal.unsubscribe = () => utils_default.asap(unsubscribe);
|
|
14161
|
+
return signal;
|
|
14162
|
+
}
|
|
14163
|
+
};
|
|
14164
|
+
var composeSignals_default = composeSignals;
|
|
14165
|
+
|
|
14166
|
+
// node_modules/axios/lib/helpers/trackStream.js
|
|
14167
|
+
var streamChunk = function* (chunk, chunkSize) {
|
|
14168
|
+
let len = chunk.byteLength;
|
|
14169
|
+
if (!chunkSize || len < chunkSize) {
|
|
14170
|
+
yield chunk;
|
|
14171
|
+
return;
|
|
14172
|
+
}
|
|
14173
|
+
let pos = 0;
|
|
14174
|
+
let end;
|
|
14175
|
+
while (pos < len) {
|
|
14176
|
+
end = pos + chunkSize;
|
|
14177
|
+
yield chunk.slice(pos, end);
|
|
14178
|
+
pos = end;
|
|
14179
|
+
}
|
|
14180
|
+
};
|
|
14181
|
+
var readBytes = async function* (iterable, chunkSize) {
|
|
14182
|
+
for await (const chunk of readStream(iterable)) {
|
|
14183
|
+
yield* streamChunk(chunk, chunkSize);
|
|
14184
|
+
}
|
|
14185
|
+
};
|
|
14186
|
+
var readStream = async function* (stream4) {
|
|
14187
|
+
if (stream4[Symbol.asyncIterator]) {
|
|
14188
|
+
yield* stream4;
|
|
14189
|
+
return;
|
|
14190
|
+
}
|
|
14191
|
+
const reader = stream4.getReader();
|
|
14192
|
+
try {
|
|
14193
|
+
for (; ; ) {
|
|
14194
|
+
const { done, value } = await reader.read();
|
|
14195
|
+
if (done) {
|
|
14196
|
+
break;
|
|
14197
|
+
}
|
|
14198
|
+
yield value;
|
|
14199
|
+
}
|
|
14200
|
+
} finally {
|
|
14201
|
+
await reader.cancel();
|
|
14202
|
+
}
|
|
14203
|
+
};
|
|
14204
|
+
var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
14205
|
+
const iterator = readBytes(stream4, chunkSize);
|
|
14206
|
+
let bytes = 0;
|
|
14207
|
+
let done;
|
|
14208
|
+
let _onFinish = (e2) => {
|
|
14209
|
+
if (!done) {
|
|
14210
|
+
done = true;
|
|
14211
|
+
onFinish && onFinish(e2);
|
|
14212
|
+
}
|
|
14213
|
+
};
|
|
14214
|
+
return new ReadableStream({
|
|
14215
|
+
async pull(controller) {
|
|
14216
|
+
try {
|
|
14217
|
+
const { done: done2, value } = await iterator.next();
|
|
14218
|
+
if (done2) {
|
|
14219
|
+
_onFinish();
|
|
14220
|
+
controller.close();
|
|
14221
|
+
return;
|
|
14222
|
+
}
|
|
14223
|
+
let len = value.byteLength;
|
|
14224
|
+
if (onProgress) {
|
|
14225
|
+
let loadedBytes = bytes += len;
|
|
14226
|
+
onProgress(loadedBytes);
|
|
14227
|
+
}
|
|
14228
|
+
controller.enqueue(new Uint8Array(value));
|
|
14229
|
+
} catch (err) {
|
|
14230
|
+
_onFinish(err);
|
|
14231
|
+
throw err;
|
|
14232
|
+
}
|
|
14233
|
+
},
|
|
14234
|
+
cancel(reason) {
|
|
14235
|
+
_onFinish(reason);
|
|
14236
|
+
return iterator.return();
|
|
14237
|
+
}
|
|
14238
|
+
}, {
|
|
14239
|
+
highWaterMark: 2
|
|
14240
|
+
});
|
|
14241
|
+
};
|
|
14242
|
+
|
|
14243
|
+
// node_modules/axios/lib/adapters/fetch.js
|
|
14244
|
+
var isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
|
|
14245
|
+
var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
|
|
14246
|
+
var encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
|
|
14247
|
+
var test = (fn, ...args) => {
|
|
14248
|
+
try {
|
|
14249
|
+
return !!fn(...args);
|
|
14250
|
+
} catch (e2) {
|
|
14251
|
+
return false;
|
|
14252
|
+
}
|
|
14253
|
+
};
|
|
14254
|
+
var supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
14255
|
+
let duplexAccessed = false;
|
|
14256
|
+
const hasContentType = new Request(platform_default.origin, {
|
|
14257
|
+
body: new ReadableStream(),
|
|
14258
|
+
method: "POST",
|
|
14259
|
+
get duplex() {
|
|
14260
|
+
duplexAccessed = true;
|
|
14261
|
+
return "half";
|
|
14262
|
+
}
|
|
14263
|
+
}).headers.has("Content-Type");
|
|
14264
|
+
return duplexAccessed && !hasContentType;
|
|
14265
|
+
});
|
|
14266
|
+
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
14267
|
+
var supportsResponseStream = isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
14268
|
+
var resolvers = {
|
|
14269
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
14270
|
+
};
|
|
14271
|
+
isFetchSupported && ((res) => {
|
|
14272
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
14273
|
+
!resolvers[type] && (resolvers[type] = utils_default.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
|
|
14274
|
+
throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
|
|
14275
|
+
});
|
|
14276
|
+
});
|
|
14277
|
+
})(new Response());
|
|
14278
|
+
var getBodyLength = async (body) => {
|
|
14279
|
+
if (body == null) {
|
|
14280
|
+
return 0;
|
|
14281
|
+
}
|
|
14282
|
+
if (utils_default.isBlob(body)) {
|
|
14283
|
+
return body.size;
|
|
14284
|
+
}
|
|
14285
|
+
if (utils_default.isSpecCompliantForm(body)) {
|
|
14286
|
+
const _request = new Request(platform_default.origin, {
|
|
14287
|
+
method: "POST",
|
|
14288
|
+
body
|
|
14289
|
+
});
|
|
14290
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
14291
|
+
}
|
|
14292
|
+
if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
|
|
14293
|
+
return body.byteLength;
|
|
14294
|
+
}
|
|
14295
|
+
if (utils_default.isURLSearchParams(body)) {
|
|
14296
|
+
body = body + "";
|
|
14297
|
+
}
|
|
14298
|
+
if (utils_default.isString(body)) {
|
|
14299
|
+
return (await encodeText(body)).byteLength;
|
|
14300
|
+
}
|
|
14301
|
+
};
|
|
14302
|
+
var resolveBodyLength = async (headers, body) => {
|
|
14303
|
+
const length = utils_default.toFiniteNumber(headers.getContentLength());
|
|
14304
|
+
return length == null ? getBodyLength(body) : length;
|
|
14305
|
+
};
|
|
14306
|
+
var fetch_default = isFetchSupported && (async (config) => {
|
|
14307
|
+
let {
|
|
14308
|
+
url: url2,
|
|
14309
|
+
method,
|
|
14310
|
+
data,
|
|
14311
|
+
signal,
|
|
14312
|
+
cancelToken,
|
|
14313
|
+
timeout,
|
|
14314
|
+
onDownloadProgress,
|
|
14315
|
+
onUploadProgress,
|
|
14316
|
+
responseType,
|
|
14317
|
+
headers,
|
|
14318
|
+
withCredentials = "same-origin",
|
|
14319
|
+
fetchOptions
|
|
14320
|
+
} = resolveConfig_default(config);
|
|
14321
|
+
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
14322
|
+
let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
14323
|
+
let request;
|
|
14324
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
14325
|
+
composedSignal.unsubscribe();
|
|
14326
|
+
});
|
|
14327
|
+
let requestContentLength;
|
|
14328
|
+
try {
|
|
14329
|
+
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
14330
|
+
let _request = new Request(url2, {
|
|
14331
|
+
method: "POST",
|
|
14332
|
+
body: data,
|
|
14333
|
+
duplex: "half"
|
|
14334
|
+
});
|
|
14335
|
+
let contentTypeHeader;
|
|
14336
|
+
if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
14337
|
+
headers.setContentType(contentTypeHeader);
|
|
14338
|
+
}
|
|
14339
|
+
if (_request.body) {
|
|
14340
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
14341
|
+
requestContentLength,
|
|
14342
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
14343
|
+
);
|
|
14344
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
14345
|
+
}
|
|
14346
|
+
}
|
|
14347
|
+
if (!utils_default.isString(withCredentials)) {
|
|
14348
|
+
withCredentials = withCredentials ? "include" : "omit";
|
|
14349
|
+
}
|
|
14350
|
+
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
14351
|
+
request = new Request(url2, {
|
|
14352
|
+
...fetchOptions,
|
|
14353
|
+
signal: composedSignal,
|
|
14354
|
+
method: method.toUpperCase(),
|
|
14355
|
+
headers: headers.normalize().toJSON(),
|
|
14356
|
+
body: data,
|
|
14357
|
+
duplex: "half",
|
|
14358
|
+
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
14359
|
+
});
|
|
14360
|
+
let response = await fetch(request);
|
|
14361
|
+
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
14362
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
14363
|
+
const options = {};
|
|
14364
|
+
["status", "statusText", "headers"].forEach((prop) => {
|
|
14365
|
+
options[prop] = response[prop];
|
|
14366
|
+
});
|
|
14367
|
+
const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
14368
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
14369
|
+
responseContentLength,
|
|
14370
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
14371
|
+
) || [];
|
|
14372
|
+
response = new Response(
|
|
14373
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
14374
|
+
flush && flush();
|
|
14375
|
+
unsubscribe && unsubscribe();
|
|
14376
|
+
}),
|
|
14377
|
+
options
|
|
14378
|
+
);
|
|
14379
|
+
}
|
|
14380
|
+
responseType = responseType || "text";
|
|
14381
|
+
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
|
|
14382
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
14383
|
+
return await new Promise((resolve, reject) => {
|
|
14384
|
+
settle(resolve, reject, {
|
|
14385
|
+
data: responseData,
|
|
14386
|
+
headers: AxiosHeaders_default.from(response.headers),
|
|
14387
|
+
status: response.status,
|
|
14388
|
+
statusText: response.statusText,
|
|
14389
|
+
config,
|
|
14390
|
+
request
|
|
14391
|
+
});
|
|
14392
|
+
});
|
|
14393
|
+
} catch (err) {
|
|
14394
|
+
unsubscribe && unsubscribe();
|
|
14395
|
+
if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
|
|
14396
|
+
throw Object.assign(
|
|
14397
|
+
new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request),
|
|
14398
|
+
{
|
|
14399
|
+
cause: err.cause || err
|
|
14400
|
+
}
|
|
14401
|
+
);
|
|
14402
|
+
}
|
|
14403
|
+
throw AxiosError_default.from(err, err && err.code, config, request);
|
|
14404
|
+
}
|
|
14405
|
+
});
|
|
14406
|
+
|
|
13158
14407
|
// node_modules/axios/lib/adapters/adapters.js
|
|
13159
14408
|
var knownAdapters = {
|
|
13160
14409
|
http: http_default,
|
|
13161
|
-
xhr: xhr_default
|
|
14410
|
+
xhr: xhr_default,
|
|
14411
|
+
fetch: fetch_default
|
|
13162
14412
|
};
|
|
13163
14413
|
utils_default.forEach(knownAdapters, (fn, value) => {
|
|
13164
14414
|
if (fn) {
|
|
@@ -13253,86 +14503,6 @@ function dispatchRequest(config) {
|
|
|
13253
14503
|
});
|
|
13254
14504
|
}
|
|
13255
14505
|
|
|
13256
|
-
// node_modules/axios/lib/core/mergeConfig.js
|
|
13257
|
-
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
13258
|
-
function mergeConfig(config1, config2) {
|
|
13259
|
-
config2 = config2 || {};
|
|
13260
|
-
const config = {};
|
|
13261
|
-
function getMergedValue(target, source, caseless) {
|
|
13262
|
-
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
|
|
13263
|
-
return utils_default.merge.call({ caseless }, target, source);
|
|
13264
|
-
} else if (utils_default.isPlainObject(source)) {
|
|
13265
|
-
return utils_default.merge({}, source);
|
|
13266
|
-
} else if (utils_default.isArray(source)) {
|
|
13267
|
-
return source.slice();
|
|
13268
|
-
}
|
|
13269
|
-
return source;
|
|
13270
|
-
}
|
|
13271
|
-
function mergeDeepProperties(a, b, caseless) {
|
|
13272
|
-
if (!utils_default.isUndefined(b)) {
|
|
13273
|
-
return getMergedValue(a, b, caseless);
|
|
13274
|
-
} else if (!utils_default.isUndefined(a)) {
|
|
13275
|
-
return getMergedValue(void 0, a, caseless);
|
|
13276
|
-
}
|
|
13277
|
-
}
|
|
13278
|
-
function valueFromConfig2(a, b) {
|
|
13279
|
-
if (!utils_default.isUndefined(b)) {
|
|
13280
|
-
return getMergedValue(void 0, b);
|
|
13281
|
-
}
|
|
13282
|
-
}
|
|
13283
|
-
function defaultToConfig2(a, b) {
|
|
13284
|
-
if (!utils_default.isUndefined(b)) {
|
|
13285
|
-
return getMergedValue(void 0, b);
|
|
13286
|
-
} else if (!utils_default.isUndefined(a)) {
|
|
13287
|
-
return getMergedValue(void 0, a);
|
|
13288
|
-
}
|
|
13289
|
-
}
|
|
13290
|
-
function mergeDirectKeys(a, b, prop) {
|
|
13291
|
-
if (prop in config2) {
|
|
13292
|
-
return getMergedValue(a, b);
|
|
13293
|
-
} else if (prop in config1) {
|
|
13294
|
-
return getMergedValue(void 0, a);
|
|
13295
|
-
}
|
|
13296
|
-
}
|
|
13297
|
-
const mergeMap = {
|
|
13298
|
-
url: valueFromConfig2,
|
|
13299
|
-
method: valueFromConfig2,
|
|
13300
|
-
data: valueFromConfig2,
|
|
13301
|
-
baseURL: defaultToConfig2,
|
|
13302
|
-
transformRequest: defaultToConfig2,
|
|
13303
|
-
transformResponse: defaultToConfig2,
|
|
13304
|
-
paramsSerializer: defaultToConfig2,
|
|
13305
|
-
timeout: defaultToConfig2,
|
|
13306
|
-
timeoutMessage: defaultToConfig2,
|
|
13307
|
-
withCredentials: defaultToConfig2,
|
|
13308
|
-
withXSRFToken: defaultToConfig2,
|
|
13309
|
-
adapter: defaultToConfig2,
|
|
13310
|
-
responseType: defaultToConfig2,
|
|
13311
|
-
xsrfCookieName: defaultToConfig2,
|
|
13312
|
-
xsrfHeaderName: defaultToConfig2,
|
|
13313
|
-
onUploadProgress: defaultToConfig2,
|
|
13314
|
-
onDownloadProgress: defaultToConfig2,
|
|
13315
|
-
decompress: defaultToConfig2,
|
|
13316
|
-
maxContentLength: defaultToConfig2,
|
|
13317
|
-
maxBodyLength: defaultToConfig2,
|
|
13318
|
-
beforeRedirect: defaultToConfig2,
|
|
13319
|
-
transport: defaultToConfig2,
|
|
13320
|
-
httpAgent: defaultToConfig2,
|
|
13321
|
-
httpsAgent: defaultToConfig2,
|
|
13322
|
-
cancelToken: defaultToConfig2,
|
|
13323
|
-
socketPath: defaultToConfig2,
|
|
13324
|
-
responseEncoding: defaultToConfig2,
|
|
13325
|
-
validateStatus: mergeDirectKeys,
|
|
13326
|
-
headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
|
|
13327
|
-
};
|
|
13328
|
-
utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
13329
|
-
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
13330
|
-
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
13331
|
-
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
13332
|
-
});
|
|
13333
|
-
return config;
|
|
13334
|
-
}
|
|
13335
|
-
|
|
13336
14506
|
// node_modules/axios/lib/helpers/validator.js
|
|
13337
14507
|
var validators = {};
|
|
13338
14508
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
@@ -13364,6 +14534,12 @@ validators.transitional = function transitional(validator, version, message) {
|
|
|
13364
14534
|
return validator ? validator(value, opt, opts) : true;
|
|
13365
14535
|
};
|
|
13366
14536
|
};
|
|
14537
|
+
validators.spelling = function spelling(correctSpelling) {
|
|
14538
|
+
return (value, opt) => {
|
|
14539
|
+
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
14540
|
+
return true;
|
|
14541
|
+
};
|
|
14542
|
+
};
|
|
13367
14543
|
function assertOptions(options, schema, allowUnknown) {
|
|
13368
14544
|
if (typeof options !== "object") {
|
|
13369
14545
|
throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
|
|
@@ -13414,13 +14590,16 @@ var Axios = class {
|
|
|
13414
14590
|
return await this._request(configOrUrl, config);
|
|
13415
14591
|
} catch (err) {
|
|
13416
14592
|
if (err instanceof Error) {
|
|
13417
|
-
let dummy;
|
|
13418
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy
|
|
14593
|
+
let dummy = {};
|
|
14594
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
13419
14595
|
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
|
|
13420
|
-
|
|
13421
|
-
err.stack
|
|
13422
|
-
|
|
13423
|
-
err.stack
|
|
14596
|
+
try {
|
|
14597
|
+
if (!err.stack) {
|
|
14598
|
+
err.stack = stack;
|
|
14599
|
+
} else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
|
|
14600
|
+
err.stack += "\n" + stack;
|
|
14601
|
+
}
|
|
14602
|
+
} catch (e2) {
|
|
13424
14603
|
}
|
|
13425
14604
|
}
|
|
13426
14605
|
throw err;
|
|
@@ -13454,6 +14633,16 @@ var Axios = class {
|
|
|
13454
14633
|
}, true);
|
|
13455
14634
|
}
|
|
13456
14635
|
}
|
|
14636
|
+
if (config.allowAbsoluteUrls !== void 0) {
|
|
14637
|
+
} else if (this.defaults.allowAbsoluteUrls !== void 0) {
|
|
14638
|
+
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
14639
|
+
} else {
|
|
14640
|
+
config.allowAbsoluteUrls = true;
|
|
14641
|
+
}
|
|
14642
|
+
validator_default.assertOptions(config, {
|
|
14643
|
+
baseUrl: validators2.spelling("baseURL"),
|
|
14644
|
+
withXsrfToken: validators2.spelling("withXSRFToken")
|
|
14645
|
+
}, true);
|
|
13457
14646
|
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
13458
14647
|
let contextHeaders = headers && utils_default.merge(
|
|
13459
14648
|
headers.common,
|
|
@@ -13520,7 +14709,7 @@ var Axios = class {
|
|
|
13520
14709
|
}
|
|
13521
14710
|
getUri(config) {
|
|
13522
14711
|
config = mergeConfig(this.defaults, config);
|
|
13523
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
14712
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
13524
14713
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
13525
14714
|
}
|
|
13526
14715
|
};
|
|
@@ -13623,6 +14812,15 @@ var CancelToken = class _CancelToken {
|
|
|
13623
14812
|
this._listeners.splice(index, 1);
|
|
13624
14813
|
}
|
|
13625
14814
|
}
|
|
14815
|
+
toAbortSignal() {
|
|
14816
|
+
const controller = new AbortController();
|
|
14817
|
+
const abort = (err) => {
|
|
14818
|
+
controller.abort(err);
|
|
14819
|
+
};
|
|
14820
|
+
this.subscribe(abort);
|
|
14821
|
+
controller.signal.unsubscribe = () => this.unsubscribe(abort);
|
|
14822
|
+
return controller.signal;
|
|
14823
|
+
}
|
|
13626
14824
|
/**
|
|
13627
14825
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
13628
14826
|
* cancels the `CancelToken`.
|