@botpress/runtime 1.12.3 → 1.13.0
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/define-config.d.ts +39 -39
- package/dist/definition.js +338 -152
- package/dist/definition.js.map +4 -4
- package/dist/internal.js +326 -140
- package/dist/internal.js.map +4 -4
- package/dist/library.js +326 -140
- package/dist/library.js.map +4 -4
- package/dist/primitives/data-sources/source-base.d.ts +51 -51
- package/dist/primitives/data-sources/source-directory.d.ts +24 -24
- package/dist/primitives/data-sources/source-directory.d.ts.map +1 -1
- package/dist/primitives/data-sources/source-table.d.ts +25 -25
- package/dist/primitives/data-sources/source-website.d.ts +32 -32
- package/dist/primitives/index.d.ts +24 -24
- package/dist/primitives/workflow-instance.d.ts +4 -4
- package/dist/primitives/workflow.d.ts +3 -3
- package/dist/runtime/actions/computed-columns.d.ts +10 -10
- package/dist/runtime/actions/index.d.ts +10 -10
- package/dist/runtime/chat/components.d.ts +72 -101
- package/dist/runtime/chat/components.d.ts.map +1 -1
- package/dist/runtime/chat/transcript.d.ts +10 -10
- package/dist/runtime/events.d.ts +21 -21
- package/dist/runtime/tracked-state-schema.d.ts +7 -7
- package/dist/runtime/workflows/knowledge-indexing.d.ts +22 -22
- package/dist/runtime.js +326 -140
- package/dist/runtime.js.map +4 -4
- package/package.json +18 -18
package/dist/library.js
CHANGED
|
@@ -48,7 +48,7 @@ var init_define_BUILD = __esm({
|
|
|
48
48
|
var define_PACKAGE_VERSIONS_default;
|
|
49
49
|
var init_define_PACKAGE_VERSIONS = __esm({
|
|
50
50
|
"<define:__PACKAGE_VERSIONS__>"() {
|
|
51
|
-
define_PACKAGE_VERSIONS_default = { runtime: "1.
|
|
51
|
+
define_PACKAGE_VERSIONS_default = { runtime: "1.13.0", adk: "1.13.0", sdk: "5.0.2", llmz: "0.0.35", zai: "2.5.5", cognitive: "0.3.3" };
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -2059,11 +2059,15 @@ var require_attributes = __commonJS({
|
|
|
2059
2059
|
if (typeof attributes !== "object" || attributes == null) {
|
|
2060
2060
|
return out;
|
|
2061
2061
|
}
|
|
2062
|
-
for (const
|
|
2062
|
+
for (const key in attributes) {
|
|
2063
|
+
if (!Object.prototype.hasOwnProperty.call(attributes, key)) {
|
|
2064
|
+
continue;
|
|
2065
|
+
}
|
|
2063
2066
|
if (!isAttributeKey(key)) {
|
|
2064
2067
|
api_1.diag.warn(`Invalid attribute key: ${key}`);
|
|
2065
2068
|
continue;
|
|
2066
2069
|
}
|
|
2070
|
+
const val = attributes[key];
|
|
2067
2071
|
if (!isAttributeValue(val)) {
|
|
2068
2072
|
api_1.diag.warn(`Invalid attribute value set for key: ${key}`);
|
|
2069
2073
|
continue;
|
|
@@ -2078,7 +2082,7 @@ var require_attributes = __commonJS({
|
|
|
2078
2082
|
}
|
|
2079
2083
|
exports2.sanitizeAttributes = sanitizeAttributes;
|
|
2080
2084
|
function isAttributeKey(key) {
|
|
2081
|
-
return typeof key === "string" && key
|
|
2085
|
+
return typeof key === "string" && key !== "";
|
|
2082
2086
|
}
|
|
2083
2087
|
exports2.isAttributeKey = isAttributeKey;
|
|
2084
2088
|
function isAttributeValue(val) {
|
|
@@ -2088,7 +2092,7 @@ var require_attributes = __commonJS({
|
|
|
2088
2092
|
if (Array.isArray(val)) {
|
|
2089
2093
|
return isHomogeneousAttributeValueArray(val);
|
|
2090
2094
|
}
|
|
2091
|
-
return
|
|
2095
|
+
return isValidPrimitiveAttributeValueType(typeof val);
|
|
2092
2096
|
}
|
|
2093
2097
|
exports2.isAttributeValue = isAttributeValue;
|
|
2094
2098
|
function isHomogeneousAttributeValueArray(arr) {
|
|
@@ -2096,22 +2100,23 @@ var require_attributes = __commonJS({
|
|
|
2096
2100
|
for (const element of arr) {
|
|
2097
2101
|
if (element == null)
|
|
2098
2102
|
continue;
|
|
2103
|
+
const elementType = typeof element;
|
|
2104
|
+
if (elementType === type) {
|
|
2105
|
+
continue;
|
|
2106
|
+
}
|
|
2099
2107
|
if (!type) {
|
|
2100
|
-
if (
|
|
2101
|
-
type =
|
|
2108
|
+
if (isValidPrimitiveAttributeValueType(elementType)) {
|
|
2109
|
+
type = elementType;
|
|
2102
2110
|
continue;
|
|
2103
2111
|
}
|
|
2104
2112
|
return false;
|
|
2105
2113
|
}
|
|
2106
|
-
if (typeof element === type) {
|
|
2107
|
-
continue;
|
|
2108
|
-
}
|
|
2109
2114
|
return false;
|
|
2110
2115
|
}
|
|
2111
2116
|
return true;
|
|
2112
2117
|
}
|
|
2113
|
-
function
|
|
2114
|
-
switch (
|
|
2118
|
+
function isValidPrimitiveAttributeValueType(valType) {
|
|
2119
|
+
switch (valType) {
|
|
2115
2120
|
case "number":
|
|
2116
2121
|
case "boolean":
|
|
2117
2122
|
case "string":
|
|
@@ -2273,7 +2278,7 @@ var require_version = __commonJS({
|
|
|
2273
2278
|
init_define_PACKAGE_VERSIONS();
|
|
2274
2279
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2275
2280
|
exports2.VERSION = void 0;
|
|
2276
|
-
exports2.VERSION = "2.
|
|
2281
|
+
exports2.VERSION = "2.2.0";
|
|
2277
2282
|
}
|
|
2278
2283
|
});
|
|
2279
2284
|
|
|
@@ -4411,21 +4416,6 @@ var require_sdk_info = __commonJS({
|
|
|
4411
4416
|
}
|
|
4412
4417
|
});
|
|
4413
4418
|
|
|
4414
|
-
// ../../node_modules/@opentelemetry/core/build/src/platform/node/timer-util.js
|
|
4415
|
-
var require_timer_util = __commonJS({
|
|
4416
|
-
"../../node_modules/@opentelemetry/core/build/src/platform/node/timer-util.js"(exports2) {
|
|
4417
|
-
"use strict";
|
|
4418
|
-
init_define_BUILD();
|
|
4419
|
-
init_define_PACKAGE_VERSIONS();
|
|
4420
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4421
|
-
exports2.unrefTimer = void 0;
|
|
4422
|
-
function unrefTimer(timer) {
|
|
4423
|
-
timer.unref();
|
|
4424
|
-
}
|
|
4425
|
-
exports2.unrefTimer = unrefTimer;
|
|
4426
|
-
}
|
|
4427
|
-
});
|
|
4428
|
-
|
|
4429
4419
|
// ../../node_modules/@opentelemetry/core/build/src/platform/node/index.js
|
|
4430
4420
|
var require_node = __commonJS({
|
|
4431
4421
|
"../../node_modules/@opentelemetry/core/build/src/platform/node/index.js"(exports2) {
|
|
@@ -4433,7 +4423,7 @@ var require_node = __commonJS({
|
|
|
4433
4423
|
init_define_BUILD();
|
|
4434
4424
|
init_define_PACKAGE_VERSIONS();
|
|
4435
4425
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4436
|
-
exports2.
|
|
4426
|
+
exports2.SDK_INFO = exports2.otperformance = exports2._globalThis = exports2.getStringListFromEnv = exports2.getNumberFromEnv = exports2.getBooleanFromEnv = exports2.getStringFromEnv = void 0;
|
|
4437
4427
|
var environment_1 = require_environment();
|
|
4438
4428
|
Object.defineProperty(exports2, "getStringFromEnv", { enumerable: true, get: function() {
|
|
4439
4429
|
return environment_1.getStringFromEnv;
|
|
@@ -4459,10 +4449,6 @@ var require_node = __commonJS({
|
|
|
4459
4449
|
Object.defineProperty(exports2, "SDK_INFO", { enumerable: true, get: function() {
|
|
4460
4450
|
return sdk_info_1.SDK_INFO;
|
|
4461
4451
|
} });
|
|
4462
|
-
var timer_util_1 = require_timer_util();
|
|
4463
|
-
Object.defineProperty(exports2, "unrefTimer", { enumerable: true, get: function() {
|
|
4464
|
-
return timer_util_1.unrefTimer;
|
|
4465
|
-
} });
|
|
4466
4452
|
}
|
|
4467
4453
|
});
|
|
4468
4454
|
|
|
@@ -4473,7 +4459,7 @@ var require_platform = __commonJS({
|
|
|
4473
4459
|
init_define_BUILD();
|
|
4474
4460
|
init_define_PACKAGE_VERSIONS();
|
|
4475
4461
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4476
|
-
exports2.getStringListFromEnv = exports2.getNumberFromEnv = exports2.getStringFromEnv = exports2.getBooleanFromEnv = exports2.
|
|
4462
|
+
exports2.getStringListFromEnv = exports2.getNumberFromEnv = exports2.getStringFromEnv = exports2.getBooleanFromEnv = exports2.otperformance = exports2._globalThis = exports2.SDK_INFO = void 0;
|
|
4477
4463
|
var node_1 = require_node();
|
|
4478
4464
|
Object.defineProperty(exports2, "SDK_INFO", { enumerable: true, get: function() {
|
|
4479
4465
|
return node_1.SDK_INFO;
|
|
@@ -4484,9 +4470,6 @@ var require_platform = __commonJS({
|
|
|
4484
4470
|
Object.defineProperty(exports2, "otperformance", { enumerable: true, get: function() {
|
|
4485
4471
|
return node_1.otperformance;
|
|
4486
4472
|
} });
|
|
4487
|
-
Object.defineProperty(exports2, "unrefTimer", { enumerable: true, get: function() {
|
|
4488
|
-
return node_1.unrefTimer;
|
|
4489
|
-
} });
|
|
4490
4473
|
Object.defineProperty(exports2, "getBooleanFromEnv", { enumerable: true, get: function() {
|
|
4491
4474
|
return node_1.getBooleanFromEnv;
|
|
4492
4475
|
} });
|
|
@@ -4603,6 +4586,23 @@ var require_time = __commonJS({
|
|
|
4603
4586
|
}
|
|
4604
4587
|
});
|
|
4605
4588
|
|
|
4589
|
+
// ../../node_modules/@opentelemetry/core/build/src/common/timer-util.js
|
|
4590
|
+
var require_timer_util = __commonJS({
|
|
4591
|
+
"../../node_modules/@opentelemetry/core/build/src/common/timer-util.js"(exports2) {
|
|
4592
|
+
"use strict";
|
|
4593
|
+
init_define_BUILD();
|
|
4594
|
+
init_define_PACKAGE_VERSIONS();
|
|
4595
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4596
|
+
exports2.unrefTimer = void 0;
|
|
4597
|
+
function unrefTimer(timer) {
|
|
4598
|
+
if (typeof timer !== "number") {
|
|
4599
|
+
timer.unref();
|
|
4600
|
+
}
|
|
4601
|
+
}
|
|
4602
|
+
exports2.unrefTimer = unrefTimer;
|
|
4603
|
+
}
|
|
4604
|
+
});
|
|
4605
|
+
|
|
4606
4606
|
// ../../node_modules/@opentelemetry/core/build/src/ExportResult.js
|
|
4607
4607
|
var require_ExportResult = __commonJS({
|
|
4608
4608
|
"../../node_modules/@opentelemetry/core/build/src/ExportResult.js"(exports2) {
|
|
@@ -5263,7 +5263,7 @@ var require_src = __commonJS({
|
|
|
5263
5263
|
init_define_BUILD();
|
|
5264
5264
|
init_define_PACKAGE_VERSIONS();
|
|
5265
5265
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5266
|
-
exports2.internal = exports2.diagLogLevelFromString = exports2.BindOnceFuture = exports2.urlMatches = exports2.isUrlIgnored = exports2.callWithTimeout = exports2.TimeoutError = exports2.merge = exports2.TraceState = exports2.unsuppressTracing = exports2.suppressTracing = exports2.isTracingSuppressed = exports2.setRPCMetadata = exports2.getRPCMetadata = exports2.deleteRPCMetadata = exports2.RPCType = exports2.parseTraceParent = exports2.W3CTraceContextPropagator = exports2.TRACE_STATE_HEADER = exports2.TRACE_PARENT_HEADER = exports2.CompositePropagator = exports2.
|
|
5266
|
+
exports2.internal = exports2.diagLogLevelFromString = exports2.BindOnceFuture = exports2.urlMatches = exports2.isUrlIgnored = exports2.callWithTimeout = exports2.TimeoutError = exports2.merge = exports2.TraceState = exports2.unsuppressTracing = exports2.suppressTracing = exports2.isTracingSuppressed = exports2.setRPCMetadata = exports2.getRPCMetadata = exports2.deleteRPCMetadata = exports2.RPCType = exports2.parseTraceParent = exports2.W3CTraceContextPropagator = exports2.TRACE_STATE_HEADER = exports2.TRACE_PARENT_HEADER = exports2.CompositePropagator = exports2.otperformance = exports2.getStringListFromEnv = exports2.getNumberFromEnv = exports2.getBooleanFromEnv = exports2.getStringFromEnv = exports2._globalThis = exports2.SDK_INFO = exports2.parseKeyPairsIntoRecord = exports2.ExportResultCode = exports2.unrefTimer = exports2.timeInputToHrTime = exports2.millisToHrTime = exports2.isTimeInputHrTime = exports2.isTimeInput = exports2.hrTimeToTimeStamp = exports2.hrTimeToNanoseconds = exports2.hrTimeToMilliseconds = exports2.hrTimeToMicroseconds = exports2.hrTimeDuration = exports2.hrTime = exports2.getTimeOrigin = exports2.addHrTimes = exports2.loggingErrorHandler = exports2.setGlobalErrorHandler = exports2.globalErrorHandler = exports2.sanitizeAttributes = exports2.isAttributeValue = exports2.AnchoredClock = exports2.W3CBaggagePropagator = void 0;
|
|
5267
5267
|
var W3CBaggagePropagator_1 = require_W3CBaggagePropagator();
|
|
5268
5268
|
Object.defineProperty(exports2, "W3CBaggagePropagator", { enumerable: true, get: function() {
|
|
5269
5269
|
return W3CBaggagePropagator_1.W3CBaggagePropagator;
|
|
@@ -5327,6 +5327,10 @@ var require_src = __commonJS({
|
|
|
5327
5327
|
Object.defineProperty(exports2, "timeInputToHrTime", { enumerable: true, get: function() {
|
|
5328
5328
|
return time_1.timeInputToHrTime;
|
|
5329
5329
|
} });
|
|
5330
|
+
var timer_util_1 = require_timer_util();
|
|
5331
|
+
Object.defineProperty(exports2, "unrefTimer", { enumerable: true, get: function() {
|
|
5332
|
+
return timer_util_1.unrefTimer;
|
|
5333
|
+
} });
|
|
5330
5334
|
var ExportResult_1 = require_ExportResult();
|
|
5331
5335
|
Object.defineProperty(exports2, "ExportResultCode", { enumerable: true, get: function() {
|
|
5332
5336
|
return ExportResult_1.ExportResultCode;
|
|
@@ -5357,9 +5361,6 @@ var require_src = __commonJS({
|
|
|
5357
5361
|
Object.defineProperty(exports2, "otperformance", { enumerable: true, get: function() {
|
|
5358
5362
|
return platform_1.otperformance;
|
|
5359
5363
|
} });
|
|
5360
|
-
Object.defineProperty(exports2, "unrefTimer", { enumerable: true, get: function() {
|
|
5361
|
-
return platform_1.unrefTimer;
|
|
5362
|
-
} });
|
|
5363
5364
|
var composite_1 = require_composite();
|
|
5364
5365
|
Object.defineProperty(exports2, "CompositePropagator", { enumerable: true, get: function() {
|
|
5365
5366
|
return composite_1.CompositePropagator;
|
|
@@ -7053,7 +7054,9 @@ var require_BatchSpanProcessorBase = __commonJS({
|
|
|
7053
7054
|
if (this._timer !== void 0)
|
|
7054
7055
|
return;
|
|
7055
7056
|
this._timer = setTimeout(() => flush(), this._scheduledDelayMillis);
|
|
7056
|
-
(
|
|
7057
|
+
if (typeof this._timer !== "number") {
|
|
7058
|
+
this._timer.unref();
|
|
7059
|
+
}
|
|
7057
7060
|
}
|
|
7058
7061
|
_clearTimer() {
|
|
7059
7062
|
if (this._timer !== void 0) {
|
|
@@ -26871,7 +26874,7 @@ var init_InterceptorManager = __esm({
|
|
|
26871
26874
|
*
|
|
26872
26875
|
* @param {Number} id The ID that was returned by `use`
|
|
26873
26876
|
*
|
|
26874
|
-
* @returns {
|
|
26877
|
+
* @returns {void}
|
|
26875
26878
|
*/
|
|
26876
26879
|
eject(id) {
|
|
26877
26880
|
if (this.handlers[id]) {
|
|
@@ -29016,7 +29019,7 @@ var init_data = __esm({
|
|
|
29016
29019
|
"../../node_modules/axios/lib/env/data.js"() {
|
|
29017
29020
|
init_define_BUILD();
|
|
29018
29021
|
init_define_PACKAGE_VERSIONS();
|
|
29019
|
-
VERSION2 = "1.
|
|
29022
|
+
VERSION2 = "1.13.2";
|
|
29020
29023
|
}
|
|
29021
29024
|
});
|
|
29022
29025
|
|
|
@@ -29554,6 +29557,7 @@ var init_estimateDataURLDecodedBytes = __esm({
|
|
|
29554
29557
|
// ../../node_modules/axios/lib/adapters/http.js
|
|
29555
29558
|
import http2 from "http";
|
|
29556
29559
|
import https2 from "https";
|
|
29560
|
+
import http22 from "http2";
|
|
29557
29561
|
import util2 from "util";
|
|
29558
29562
|
import zlib from "zlib";
|
|
29559
29563
|
import stream3 from "stream";
|
|
@@ -29599,10 +29603,9 @@ function setProxy(options, configProxy, location) {
|
|
|
29599
29603
|
setProxy(redirectOptions, configProxy, redirectOptions.href);
|
|
29600
29604
|
};
|
|
29601
29605
|
}
|
|
29602
|
-
var import_proxy_from_env, import_follow_redirects, zlibOptions, brotliOptions, isBrotliSupported, httpFollow, httpsFollow, isHttps, supportedProtocols, flushOnFinish, isHttpAdapterSupported, wrapAsync, resolveFamily, buildAddressEntry, http_default;
|
|
29606
|
+
var import_proxy_from_env, import_follow_redirects, zlibOptions, brotliOptions, isBrotliSupported, httpFollow, httpsFollow, isHttps, supportedProtocols, flushOnFinish, Http2Sessions, http2Sessions, isHttpAdapterSupported, wrapAsync, resolveFamily, buildAddressEntry, http2Transport, http_default;
|
|
29603
29607
|
var init_http2 = __esm({
|
|
29604
29608
|
"../../node_modules/axios/lib/adapters/http.js"() {
|
|
29605
|
-
"use strict";
|
|
29606
29609
|
init_define_BUILD();
|
|
29607
29610
|
init_define_PACKAGE_VERSIONS();
|
|
29608
29611
|
init_utils5();
|
|
@@ -29643,6 +29646,76 @@ var init_http2 = __esm({
|
|
|
29643
29646
|
stream5.on("end", flush).on("error", flush);
|
|
29644
29647
|
return throttled;
|
|
29645
29648
|
};
|
|
29649
|
+
Http2Sessions = class {
|
|
29650
|
+
constructor() {
|
|
29651
|
+
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
29652
|
+
}
|
|
29653
|
+
getSession(authority, options) {
|
|
29654
|
+
options = Object.assign({
|
|
29655
|
+
sessionTimeout: 1e3
|
|
29656
|
+
}, options);
|
|
29657
|
+
let authoritySessions = this.sessions[authority];
|
|
29658
|
+
if (authoritySessions) {
|
|
29659
|
+
let len = authoritySessions.length;
|
|
29660
|
+
for (let i = 0; i < len; i++) {
|
|
29661
|
+
const [sessionHandle, sessionOptions] = authoritySessions[i];
|
|
29662
|
+
if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
|
|
29663
|
+
return sessionHandle;
|
|
29664
|
+
}
|
|
29665
|
+
}
|
|
29666
|
+
}
|
|
29667
|
+
const session = http22.connect(authority, options);
|
|
29668
|
+
let removed;
|
|
29669
|
+
const removeSession = () => {
|
|
29670
|
+
if (removed) {
|
|
29671
|
+
return;
|
|
29672
|
+
}
|
|
29673
|
+
removed = true;
|
|
29674
|
+
let entries = authoritySessions, len = entries.length, i = len;
|
|
29675
|
+
while (i--) {
|
|
29676
|
+
if (entries[i][0] === session) {
|
|
29677
|
+
if (len === 1) {
|
|
29678
|
+
delete this.sessions[authority];
|
|
29679
|
+
} else {
|
|
29680
|
+
entries.splice(i, 1);
|
|
29681
|
+
}
|
|
29682
|
+
return;
|
|
29683
|
+
}
|
|
29684
|
+
}
|
|
29685
|
+
};
|
|
29686
|
+
const originalRequestFn = session.request;
|
|
29687
|
+
const { sessionTimeout } = options;
|
|
29688
|
+
if (sessionTimeout != null) {
|
|
29689
|
+
let timer;
|
|
29690
|
+
let streamsCount = 0;
|
|
29691
|
+
session.request = function() {
|
|
29692
|
+
const stream5 = originalRequestFn.apply(this, arguments);
|
|
29693
|
+
streamsCount++;
|
|
29694
|
+
if (timer) {
|
|
29695
|
+
clearTimeout(timer);
|
|
29696
|
+
timer = null;
|
|
29697
|
+
}
|
|
29698
|
+
stream5.once("close", () => {
|
|
29699
|
+
if (!--streamsCount) {
|
|
29700
|
+
timer = setTimeout(() => {
|
|
29701
|
+
timer = null;
|
|
29702
|
+
removeSession();
|
|
29703
|
+
}, sessionTimeout);
|
|
29704
|
+
}
|
|
29705
|
+
});
|
|
29706
|
+
return stream5;
|
|
29707
|
+
};
|
|
29708
|
+
}
|
|
29709
|
+
session.once("close", removeSession);
|
|
29710
|
+
let entry = [
|
|
29711
|
+
session,
|
|
29712
|
+
options
|
|
29713
|
+
];
|
|
29714
|
+
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
29715
|
+
return session;
|
|
29716
|
+
}
|
|
29717
|
+
};
|
|
29718
|
+
http2Sessions = new Http2Sessions();
|
|
29646
29719
|
isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
|
|
29647
29720
|
wrapAsync = (asyncExecutor) => {
|
|
29648
29721
|
return new Promise((resolve, reject) => {
|
|
@@ -29674,14 +29747,54 @@ var init_http2 = __esm({
|
|
|
29674
29747
|
};
|
|
29675
29748
|
};
|
|
29676
29749
|
buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
|
|
29750
|
+
http2Transport = {
|
|
29751
|
+
request(options, cb) {
|
|
29752
|
+
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || 80);
|
|
29753
|
+
const { http2Options, headers } = options;
|
|
29754
|
+
const session = http2Sessions.getSession(authority, http2Options);
|
|
29755
|
+
const {
|
|
29756
|
+
HTTP2_HEADER_SCHEME,
|
|
29757
|
+
HTTP2_HEADER_METHOD,
|
|
29758
|
+
HTTP2_HEADER_PATH,
|
|
29759
|
+
HTTP2_HEADER_STATUS
|
|
29760
|
+
} = http22.constants;
|
|
29761
|
+
const http2Headers = {
|
|
29762
|
+
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
29763
|
+
[HTTP2_HEADER_METHOD]: options.method,
|
|
29764
|
+
[HTTP2_HEADER_PATH]: options.path
|
|
29765
|
+
};
|
|
29766
|
+
utils_default.forEach(headers, (header, name) => {
|
|
29767
|
+
name.charAt(0) !== ":" && (http2Headers[name] = header);
|
|
29768
|
+
});
|
|
29769
|
+
const req = session.request(http2Headers);
|
|
29770
|
+
req.once("response", (responseHeaders) => {
|
|
29771
|
+
const response = req;
|
|
29772
|
+
responseHeaders = Object.assign({}, responseHeaders);
|
|
29773
|
+
const status = responseHeaders[HTTP2_HEADER_STATUS];
|
|
29774
|
+
delete responseHeaders[HTTP2_HEADER_STATUS];
|
|
29775
|
+
response.headers = responseHeaders;
|
|
29776
|
+
response.statusCode = +status;
|
|
29777
|
+
cb(response);
|
|
29778
|
+
});
|
|
29779
|
+
return req;
|
|
29780
|
+
}
|
|
29781
|
+
};
|
|
29677
29782
|
http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
29678
29783
|
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
29679
|
-
let { data, lookup, family } = config;
|
|
29784
|
+
let { data, lookup, family, httpVersion = 1, http2Options } = config;
|
|
29680
29785
|
const { responseType, responseEncoding } = config;
|
|
29681
29786
|
const method = config.method.toUpperCase();
|
|
29682
29787
|
let isDone;
|
|
29683
29788
|
let rejected = false;
|
|
29684
29789
|
let req;
|
|
29790
|
+
httpVersion = +httpVersion;
|
|
29791
|
+
if (Number.isNaN(httpVersion)) {
|
|
29792
|
+
throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
|
|
29793
|
+
}
|
|
29794
|
+
if (httpVersion !== 1 && httpVersion !== 2) {
|
|
29795
|
+
throw TypeError(`Unsupported protocol version '${httpVersion}'`);
|
|
29796
|
+
}
|
|
29797
|
+
const isHttp2 = httpVersion === 2;
|
|
29685
29798
|
if (lookup) {
|
|
29686
29799
|
const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
|
|
29687
29800
|
lookup = (hostname, opt, cb) => {
|
|
@@ -29694,7 +29807,15 @@ var init_http2 = __esm({
|
|
|
29694
29807
|
});
|
|
29695
29808
|
};
|
|
29696
29809
|
}
|
|
29697
|
-
const
|
|
29810
|
+
const abortEmitter = new EventEmitter();
|
|
29811
|
+
function abort(reason) {
|
|
29812
|
+
try {
|
|
29813
|
+
abortEmitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config, req) : reason);
|
|
29814
|
+
} catch (err) {
|
|
29815
|
+
console.warn("emit error", err);
|
|
29816
|
+
}
|
|
29817
|
+
}
|
|
29818
|
+
abortEmitter.once("abort", reject);
|
|
29698
29819
|
const onFinished = () => {
|
|
29699
29820
|
if (config.cancelToken) {
|
|
29700
29821
|
config.cancelToken.unsubscribe(abort);
|
|
@@ -29702,25 +29823,31 @@ var init_http2 = __esm({
|
|
|
29702
29823
|
if (config.signal) {
|
|
29703
29824
|
config.signal.removeEventListener("abort", abort);
|
|
29704
29825
|
}
|
|
29705
|
-
|
|
29826
|
+
abortEmitter.removeAllListeners();
|
|
29706
29827
|
};
|
|
29707
|
-
onDone((value, isRejected) => {
|
|
29708
|
-
isDone = true;
|
|
29709
|
-
if (isRejected) {
|
|
29710
|
-
rejected = true;
|
|
29711
|
-
onFinished();
|
|
29712
|
-
}
|
|
29713
|
-
});
|
|
29714
|
-
function abort(reason) {
|
|
29715
|
-
emitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config, req) : reason);
|
|
29716
|
-
}
|
|
29717
|
-
emitter.once("abort", reject);
|
|
29718
29828
|
if (config.cancelToken || config.signal) {
|
|
29719
29829
|
config.cancelToken && config.cancelToken.subscribe(abort);
|
|
29720
29830
|
if (config.signal) {
|
|
29721
29831
|
config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);
|
|
29722
29832
|
}
|
|
29723
29833
|
}
|
|
29834
|
+
onDone((response, isRejected) => {
|
|
29835
|
+
isDone = true;
|
|
29836
|
+
if (isRejected) {
|
|
29837
|
+
rejected = true;
|
|
29838
|
+
onFinished();
|
|
29839
|
+
return;
|
|
29840
|
+
}
|
|
29841
|
+
const { data: data2 } = response;
|
|
29842
|
+
if (data2 instanceof stream3.Readable || data2 instanceof stream3.Duplex) {
|
|
29843
|
+
const offListeners = stream3.finished(data2, () => {
|
|
29844
|
+
offListeners();
|
|
29845
|
+
onFinished();
|
|
29846
|
+
});
|
|
29847
|
+
} else {
|
|
29848
|
+
onFinished();
|
|
29849
|
+
}
|
|
29850
|
+
});
|
|
29724
29851
|
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
29725
29852
|
const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
|
|
29726
29853
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
@@ -29886,7 +30013,8 @@ var init_http2 = __esm({
|
|
|
29886
30013
|
protocol,
|
|
29887
30014
|
family,
|
|
29888
30015
|
beforeRedirect: dispatchBeforeRedirect,
|
|
29889
|
-
beforeRedirects: {}
|
|
30016
|
+
beforeRedirects: {},
|
|
30017
|
+
http2Options
|
|
29890
30018
|
};
|
|
29891
30019
|
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
|
|
29892
30020
|
if (config.socketPath) {
|
|
@@ -29899,18 +30027,22 @@ var init_http2 = __esm({
|
|
|
29899
30027
|
let transport;
|
|
29900
30028
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
29901
30029
|
options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
|
|
29902
|
-
if (
|
|
29903
|
-
transport =
|
|
29904
|
-
} else if (config.maxRedirects === 0) {
|
|
29905
|
-
transport = isHttpsRequest ? https2 : http2;
|
|
30030
|
+
if (isHttp2) {
|
|
30031
|
+
transport = http2Transport;
|
|
29906
30032
|
} else {
|
|
29907
|
-
if (config.
|
|
29908
|
-
|
|
29909
|
-
}
|
|
29910
|
-
|
|
29911
|
-
|
|
30033
|
+
if (config.transport) {
|
|
30034
|
+
transport = config.transport;
|
|
30035
|
+
} else if (config.maxRedirects === 0) {
|
|
30036
|
+
transport = isHttpsRequest ? https2 : http2;
|
|
30037
|
+
} else {
|
|
30038
|
+
if (config.maxRedirects) {
|
|
30039
|
+
options.maxRedirects = config.maxRedirects;
|
|
30040
|
+
}
|
|
30041
|
+
if (config.beforeRedirect) {
|
|
30042
|
+
options.beforeRedirects.config = config.beforeRedirect;
|
|
30043
|
+
}
|
|
30044
|
+
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
29912
30045
|
}
|
|
29913
|
-
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
29914
30046
|
}
|
|
29915
30047
|
if (config.maxBodyLength > -1) {
|
|
29916
30048
|
options.maxBodyLength = config.maxBodyLength;
|
|
@@ -29923,7 +30055,7 @@ var init_http2 = __esm({
|
|
|
29923
30055
|
req = transport.request(options, function handleResponse(res) {
|
|
29924
30056
|
if (req.destroyed) return;
|
|
29925
30057
|
const streams2 = [res];
|
|
29926
|
-
const responseLength =
|
|
30058
|
+
const responseLength = utils_default.toFiniteNumber(res.headers["content-length"]);
|
|
29927
30059
|
if (onDownloadProgress || maxDownloadRate) {
|
|
29928
30060
|
const transformStream = new AxiosTransformStream_default({
|
|
29929
30061
|
maxRate: utils_default.toFiniteNumber(maxDownloadRate)
|
|
@@ -29965,10 +30097,6 @@ var init_http2 = __esm({
|
|
|
29965
30097
|
}
|
|
29966
30098
|
}
|
|
29967
30099
|
responseStream = streams2.length > 1 ? stream3.pipeline(streams2, utils_default.noop) : streams2[0];
|
|
29968
|
-
const offListeners = stream3.finished(responseStream, () => {
|
|
29969
|
-
offListeners();
|
|
29970
|
-
onFinished();
|
|
29971
|
-
});
|
|
29972
30100
|
const response = {
|
|
29973
30101
|
status: res.statusCode,
|
|
29974
30102
|
statusText: res.statusMessage,
|
|
@@ -29988,7 +30116,7 @@ var init_http2 = __esm({
|
|
|
29988
30116
|
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
29989
30117
|
rejected = true;
|
|
29990
30118
|
responseStream.destroy();
|
|
29991
|
-
|
|
30119
|
+
abort(new AxiosError_default(
|
|
29992
30120
|
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
29993
30121
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
29994
30122
|
config,
|
|
@@ -30029,16 +30157,19 @@ var init_http2 = __esm({
|
|
|
30029
30157
|
settle(resolve, reject, response);
|
|
30030
30158
|
});
|
|
30031
30159
|
}
|
|
30032
|
-
|
|
30160
|
+
abortEmitter.once("abort", (err) => {
|
|
30033
30161
|
if (!responseStream.destroyed) {
|
|
30034
30162
|
responseStream.emit("error", err);
|
|
30035
30163
|
responseStream.destroy();
|
|
30036
30164
|
}
|
|
30037
30165
|
});
|
|
30038
30166
|
});
|
|
30039
|
-
|
|
30040
|
-
|
|
30041
|
-
|
|
30167
|
+
abortEmitter.once("abort", (err) => {
|
|
30168
|
+
if (req.close) {
|
|
30169
|
+
req.close();
|
|
30170
|
+
} else {
|
|
30171
|
+
req.destroy(err);
|
|
30172
|
+
}
|
|
30042
30173
|
});
|
|
30043
30174
|
req.on("error", function handleRequestError(err) {
|
|
30044
30175
|
reject(AxiosError_default.from(err, null, config, req));
|
|
@@ -30049,7 +30180,7 @@ var init_http2 = __esm({
|
|
|
30049
30180
|
if (config.timeout) {
|
|
30050
30181
|
const timeout = parseInt(config.timeout, 10);
|
|
30051
30182
|
if (Number.isNaN(timeout)) {
|
|
30052
|
-
|
|
30183
|
+
abort(new AxiosError_default(
|
|
30053
30184
|
"error trying to parse `config.timeout` to int",
|
|
30054
30185
|
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
30055
30186
|
config,
|
|
@@ -30064,14 +30195,15 @@ var init_http2 = __esm({
|
|
|
30064
30195
|
if (config.timeoutErrorMessage) {
|
|
30065
30196
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
30066
30197
|
}
|
|
30067
|
-
|
|
30198
|
+
abort(new AxiosError_default(
|
|
30068
30199
|
timeoutErrorMessage,
|
|
30069
30200
|
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
30070
30201
|
config,
|
|
30071
30202
|
req
|
|
30072
30203
|
));
|
|
30073
|
-
abort();
|
|
30074
30204
|
});
|
|
30205
|
+
} else {
|
|
30206
|
+
req.setTimeout(0);
|
|
30075
30207
|
}
|
|
30076
30208
|
if (utils_default.isStream(data)) {
|
|
30077
30209
|
let ended = false;
|
|
@@ -30090,7 +30222,8 @@ var init_http2 = __esm({
|
|
|
30090
30222
|
});
|
|
30091
30223
|
data.pipe(req);
|
|
30092
30224
|
} else {
|
|
30093
|
-
req.
|
|
30225
|
+
data && req.write(data);
|
|
30226
|
+
req.end();
|
|
30094
30227
|
}
|
|
30095
30228
|
});
|
|
30096
30229
|
};
|
|
@@ -30125,20 +30258,33 @@ var init_cookies = __esm({
|
|
|
30125
30258
|
cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
30126
30259
|
// Standard browser envs support document.cookie
|
|
30127
30260
|
{
|
|
30128
|
-
write(name, value, expires, path4, domain, secure) {
|
|
30129
|
-
|
|
30130
|
-
|
|
30131
|
-
utils_default.
|
|
30132
|
-
|
|
30133
|
-
|
|
30261
|
+
write(name, value, expires, path4, domain, secure, sameSite) {
|
|
30262
|
+
if (typeof document === "undefined") return;
|
|
30263
|
+
const cookie = [`${name}=${encodeURIComponent(value)}`];
|
|
30264
|
+
if (utils_default.isNumber(expires)) {
|
|
30265
|
+
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
30266
|
+
}
|
|
30267
|
+
if (utils_default.isString(path4)) {
|
|
30268
|
+
cookie.push(`path=${path4}`);
|
|
30269
|
+
}
|
|
30270
|
+
if (utils_default.isString(domain)) {
|
|
30271
|
+
cookie.push(`domain=${domain}`);
|
|
30272
|
+
}
|
|
30273
|
+
if (secure === true) {
|
|
30274
|
+
cookie.push("secure");
|
|
30275
|
+
}
|
|
30276
|
+
if (utils_default.isString(sameSite)) {
|
|
30277
|
+
cookie.push(`SameSite=${sameSite}`);
|
|
30278
|
+
}
|
|
30134
30279
|
document.cookie = cookie.join("; ");
|
|
30135
30280
|
},
|
|
30136
30281
|
read(name) {
|
|
30137
|
-
|
|
30138
|
-
|
|
30282
|
+
if (typeof document === "undefined") return null;
|
|
30283
|
+
const match2 = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
|
|
30284
|
+
return match2 ? decodeURIComponent(match2[1]) : null;
|
|
30139
30285
|
},
|
|
30140
30286
|
remove(name) {
|
|
30141
|
-
this.write(name, "", Date.now() - 864e5);
|
|
30287
|
+
this.write(name, "", Date.now() - 864e5, "/");
|
|
30142
30288
|
}
|
|
30143
30289
|
}
|
|
30144
30290
|
) : (
|
|
@@ -30780,7 +30926,7 @@ var init_fetch = __esm({
|
|
|
30780
30926
|
};
|
|
30781
30927
|
seedCache = /* @__PURE__ */ new Map();
|
|
30782
30928
|
getFetch = (config) => {
|
|
30783
|
-
let env2 = config
|
|
30929
|
+
let env2 = config && config.env || {};
|
|
30784
30930
|
const { fetch: fetch2, Request, Response } = env2;
|
|
30785
30931
|
const seeds = [
|
|
30786
30932
|
Request,
|
|
@@ -30801,6 +30947,39 @@ var init_fetch = __esm({
|
|
|
30801
30947
|
});
|
|
30802
30948
|
|
|
30803
30949
|
// ../../node_modules/axios/lib/adapters/adapters.js
|
|
30950
|
+
function getAdapter(adapters, config) {
|
|
30951
|
+
adapters = utils_default.isArray(adapters) ? adapters : [adapters];
|
|
30952
|
+
const { length } = adapters;
|
|
30953
|
+
let nameOrAdapter;
|
|
30954
|
+
let adapter2;
|
|
30955
|
+
const rejectedReasons = {};
|
|
30956
|
+
for (let i = 0; i < length; i++) {
|
|
30957
|
+
nameOrAdapter = adapters[i];
|
|
30958
|
+
let id;
|
|
30959
|
+
adapter2 = nameOrAdapter;
|
|
30960
|
+
if (!isResolvedHandle(nameOrAdapter)) {
|
|
30961
|
+
adapter2 = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
30962
|
+
if (adapter2 === void 0) {
|
|
30963
|
+
throw new AxiosError_default(`Unknown adapter '${id}'`);
|
|
30964
|
+
}
|
|
30965
|
+
}
|
|
30966
|
+
if (adapter2 && (utils_default.isFunction(adapter2) || (adapter2 = adapter2.get(config)))) {
|
|
30967
|
+
break;
|
|
30968
|
+
}
|
|
30969
|
+
rejectedReasons[id || "#" + i] = adapter2;
|
|
30970
|
+
}
|
|
30971
|
+
if (!adapter2) {
|
|
30972
|
+
const reasons = Object.entries(rejectedReasons).map(
|
|
30973
|
+
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
30974
|
+
);
|
|
30975
|
+
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
30976
|
+
throw new AxiosError_default(
|
|
30977
|
+
`There is no suitable adapter to dispatch the request ` + s,
|
|
30978
|
+
"ERR_NOT_SUPPORT"
|
|
30979
|
+
);
|
|
30980
|
+
}
|
|
30981
|
+
return adapter2;
|
|
30982
|
+
}
|
|
30804
30983
|
var knownAdapters, renderReason, isResolvedHandle, adapters_default;
|
|
30805
30984
|
var init_adapters = __esm({
|
|
30806
30985
|
"../../node_modules/axios/lib/adapters/adapters.js"() {
|
|
@@ -30830,39 +31009,15 @@ var init_adapters = __esm({
|
|
|
30830
31009
|
renderReason = (reason) => `- ${reason}`;
|
|
30831
31010
|
isResolvedHandle = (adapter2) => utils_default.isFunction(adapter2) || adapter2 === null || adapter2 === false;
|
|
30832
31011
|
adapters_default = {
|
|
30833
|
-
|
|
30834
|
-
|
|
30835
|
-
|
|
30836
|
-
|
|
30837
|
-
|
|
30838
|
-
|
|
30839
|
-
|
|
30840
|
-
|
|
30841
|
-
|
|
30842
|
-
adapter2 = nameOrAdapter;
|
|
30843
|
-
if (!isResolvedHandle(nameOrAdapter)) {
|
|
30844
|
-
adapter2 = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
30845
|
-
if (adapter2 === void 0) {
|
|
30846
|
-
throw new AxiosError_default(`Unknown adapter '${id}'`);
|
|
30847
|
-
}
|
|
30848
|
-
}
|
|
30849
|
-
if (adapter2 && (utils_default.isFunction(adapter2) || (adapter2 = adapter2.get(config)))) {
|
|
30850
|
-
break;
|
|
30851
|
-
}
|
|
30852
|
-
rejectedReasons[id || "#" + i] = adapter2;
|
|
30853
|
-
}
|
|
30854
|
-
if (!adapter2) {
|
|
30855
|
-
const reasons = Object.entries(rejectedReasons).map(
|
|
30856
|
-
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
30857
|
-
);
|
|
30858
|
-
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
30859
|
-
throw new AxiosError_default(
|
|
30860
|
-
`There is no suitable adapter to dispatch the request ` + s,
|
|
30861
|
-
"ERR_NOT_SUPPORT"
|
|
30862
|
-
);
|
|
30863
|
-
}
|
|
30864
|
-
return adapter2;
|
|
30865
|
-
},
|
|
31012
|
+
/**
|
|
31013
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
31014
|
+
* @type {Function}
|
|
31015
|
+
*/
|
|
31016
|
+
getAdapter,
|
|
31017
|
+
/**
|
|
31018
|
+
* Exposes all known adapters
|
|
31019
|
+
* @type {Object<string, Function|Object>}
|
|
31020
|
+
*/
|
|
30866
31021
|
adapters: knownAdapters
|
|
30867
31022
|
};
|
|
30868
31023
|
}
|
|
@@ -31391,7 +31546,13 @@ var init_HttpStatusCode = __esm({
|
|
|
31391
31546
|
InsufficientStorage: 507,
|
|
31392
31547
|
LoopDetected: 508,
|
|
31393
31548
|
NotExtended: 510,
|
|
31394
|
-
NetworkAuthenticationRequired: 511
|
|
31549
|
+
NetworkAuthenticationRequired: 511,
|
|
31550
|
+
WebServerIsDown: 521,
|
|
31551
|
+
ConnectionTimedOut: 522,
|
|
31552
|
+
OriginIsUnreachable: 523,
|
|
31553
|
+
TimeoutOccurred: 524,
|
|
31554
|
+
SslHandshakeFailed: 525,
|
|
31555
|
+
InvalidSslCertificate: 526
|
|
31395
31556
|
};
|
|
31396
31557
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
31397
31558
|
HttpStatusCode[value] = key;
|
|
@@ -31459,7 +31620,7 @@ var init_axios = __esm({
|
|
|
31459
31620
|
});
|
|
31460
31621
|
|
|
31461
31622
|
// ../../node_modules/axios/index.js
|
|
31462
|
-
var Axios2, AxiosError2, CanceledError2, isCancel2, CancelToken2, VERSION3, all2, Cancel, isAxiosError2, spread2, toFormData2, AxiosHeaders2, HttpStatusCode2, formToJSON,
|
|
31623
|
+
var Axios2, AxiosError2, CanceledError2, isCancel2, CancelToken2, VERSION3, all2, Cancel, isAxiosError2, spread2, toFormData2, AxiosHeaders2, HttpStatusCode2, formToJSON, getAdapter2, mergeConfig2;
|
|
31463
31624
|
var init_axios2 = __esm({
|
|
31464
31625
|
"../../node_modules/axios/index.js"() {
|
|
31465
31626
|
init_define_BUILD();
|
|
@@ -31480,7 +31641,7 @@ var init_axios2 = __esm({
|
|
|
31480
31641
|
AxiosHeaders: AxiosHeaders2,
|
|
31481
31642
|
HttpStatusCode: HttpStatusCode2,
|
|
31482
31643
|
formToJSON,
|
|
31483
|
-
getAdapter,
|
|
31644
|
+
getAdapter: getAdapter2,
|
|
31484
31645
|
mergeConfig: mergeConfig2
|
|
31485
31646
|
} = axios_default);
|
|
31486
31647
|
}
|
|
@@ -37553,6 +37714,17 @@ function createDedent(options) {
|
|
|
37553
37714
|
if (escapeSpecialCharacters) {
|
|
37554
37715
|
result = result.replace(/\\n/g, "\n");
|
|
37555
37716
|
}
|
|
37717
|
+
if (typeof Bun !== "undefined") {
|
|
37718
|
+
result = result.replace(
|
|
37719
|
+
// Matches e.g. \\u{1f60a} or \\u5F1F
|
|
37720
|
+
/\\u(?:\{([\da-fA-F]{1,6})\}|([\da-fA-F]{4}))/g,
|
|
37721
|
+
(_2, braced, unbraced) => {
|
|
37722
|
+
var _ref;
|
|
37723
|
+
const hex = (_ref = braced !== null && braced !== void 0 ? braced : unbraced) !== null && _ref !== void 0 ? _ref : "";
|
|
37724
|
+
return String.fromCodePoint(parseInt(hex, 16));
|
|
37725
|
+
}
|
|
37726
|
+
);
|
|
37727
|
+
}
|
|
37556
37728
|
return result;
|
|
37557
37729
|
}
|
|
37558
37730
|
}
|
|
@@ -41105,8 +41277,11 @@ var init_unescape = __esm({
|
|
|
41105
41277
|
"../../node_modules/minimatch/dist/esm/unescape.js"() {
|
|
41106
41278
|
init_define_BUILD();
|
|
41107
41279
|
init_define_PACKAGE_VERSIONS();
|
|
41108
|
-
unescape2 = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
41109
|
-
|
|
41280
|
+
unescape2 = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
|
|
41281
|
+
if (magicalBraces) {
|
|
41282
|
+
return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
41283
|
+
}
|
|
41284
|
+
return windowsPathsNoEscape ? s.replace(/\[([^\/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
|
|
41110
41285
|
};
|
|
41111
41286
|
}
|
|
41112
41287
|
});
|
|
@@ -41469,7 +41644,7 @@ var init_ast = __esm({
|
|
|
41469
41644
|
if (this.#root === this)
|
|
41470
41645
|
this.#fillNegs();
|
|
41471
41646
|
if (!this.type) {
|
|
41472
|
-
const noEmpty = this.isStart() && this.isEnd();
|
|
41647
|
+
const noEmpty = this.isStart() && this.isEnd() && !this.#parts.some((s) => typeof s !== "string");
|
|
41473
41648
|
const src = this.#parts.map((p) => {
|
|
41474
41649
|
const [re2, _2, hasMagic2, uflag] = typeof p === "string" ? _AST.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
|
|
41475
41650
|
this.#hasMagic = this.#hasMagic || hasMagic2;
|
|
@@ -41579,10 +41754,7 @@ var init_ast = __esm({
|
|
|
41579
41754
|
}
|
|
41580
41755
|
}
|
|
41581
41756
|
if (c === "*") {
|
|
41582
|
-
|
|
41583
|
-
re2 += starNoEmpty;
|
|
41584
|
-
else
|
|
41585
|
-
re2 += star;
|
|
41757
|
+
re2 += noEmpty && glob2 === "*" ? starNoEmpty : star;
|
|
41586
41758
|
hasMagic2 = true;
|
|
41587
41759
|
continue;
|
|
41588
41760
|
}
|
|
@@ -41605,7 +41777,10 @@ var init_escape = __esm({
|
|
|
41605
41777
|
"../../node_modules/minimatch/dist/esm/escape.js"() {
|
|
41606
41778
|
init_define_BUILD();
|
|
41607
41779
|
init_define_PACKAGE_VERSIONS();
|
|
41608
|
-
escape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
41780
|
+
escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
|
|
41781
|
+
if (magicalBraces) {
|
|
41782
|
+
return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
|
|
41783
|
+
}
|
|
41609
41784
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
41610
41785
|
};
|
|
41611
41786
|
}
|
|
@@ -42261,16 +42436,27 @@ var init_esm5 = __esm({
|
|
|
42261
42436
|
pp[i] = twoStar;
|
|
42262
42437
|
}
|
|
42263
42438
|
} else if (next === void 0) {
|
|
42264
|
-
pp[i - 1] = prev + "(
|
|
42439
|
+
pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
|
|
42265
42440
|
} else if (next !== GLOBSTAR) {
|
|
42266
42441
|
pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
|
|
42267
42442
|
pp[i + 1] = GLOBSTAR;
|
|
42268
42443
|
}
|
|
42269
42444
|
});
|
|
42270
|
-
|
|
42445
|
+
const filtered = pp.filter((p) => p !== GLOBSTAR);
|
|
42446
|
+
if (this.partial && filtered.length >= 1) {
|
|
42447
|
+
const prefixes = [];
|
|
42448
|
+
for (let i = 1; i <= filtered.length; i++) {
|
|
42449
|
+
prefixes.push(filtered.slice(0, i).join("/"));
|
|
42450
|
+
}
|
|
42451
|
+
return "(?:" + prefixes.join("|") + ")";
|
|
42452
|
+
}
|
|
42453
|
+
return filtered.join("/");
|
|
42271
42454
|
}).join("|");
|
|
42272
42455
|
const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
42273
42456
|
re2 = "^" + open + re2 + close + "$";
|
|
42457
|
+
if (this.partial) {
|
|
42458
|
+
re2 = "^(?:\\/|" + open + re2.slice(1, -1) + close + ")$";
|
|
42459
|
+
}
|
|
42274
42460
|
if (this.negate)
|
|
42275
42461
|
re2 = "^(?!" + re2 + ").+$";
|
|
42276
42462
|
try {
|