@kevisual/cli 0.1.30 → 0.1.32

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.
@@ -873,7 +873,7 @@ var require_dist_cjs8 = __commonJS((exports) => {
873
873
  });
874
874
  });
875
875
 
876
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js
876
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js
877
877
  var require_ChecksumStream = __commonJS((exports) => {
878
878
  Object.defineProperty(exports, "__esModule", { value: true });
879
879
  exports.ChecksumStream = undefined;
@@ -937,7 +937,7 @@ var require_ChecksumStream = __commonJS((exports) => {
937
937
  exports.ChecksumStream = ChecksumStream;
938
938
  });
939
939
 
940
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js
940
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js
941
941
  var require_stream_type_check = __commonJS((exports) => {
942
942
  Object.defineProperty(exports, "__esModule", { value: true });
943
943
  exports.isBlob = exports.isReadableStream = undefined;
@@ -949,7 +949,7 @@ var require_stream_type_check = __commonJS((exports) => {
949
949
  exports.isBlob = isBlob;
950
950
  });
951
951
 
952
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.browser.js
952
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.browser.js
953
953
  var require_ChecksumStream_browser = __commonJS((exports) => {
954
954
  Object.defineProperty(exports, "__esModule", { value: true });
955
955
  exports.ChecksumStream = undefined;
@@ -960,7 +960,7 @@ var require_ChecksumStream_browser = __commonJS((exports) => {
960
960
  exports.ChecksumStream = ChecksumStream;
961
961
  });
962
962
 
963
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js
963
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js
964
964
  var require_createChecksumStream_browser = __commonJS((exports) => {
965
965
  Object.defineProperty(exports, "__esModule", { value: true });
966
966
  exports.createChecksumStream = undefined;
@@ -1000,7 +1000,7 @@ var require_createChecksumStream_browser = __commonJS((exports) => {
1000
1000
  exports.createChecksumStream = createChecksumStream;
1001
1001
  });
1002
1002
 
1003
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js
1003
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js
1004
1004
  var require_createChecksumStream = __commonJS((exports) => {
1005
1005
  Object.defineProperty(exports, "__esModule", { value: true });
1006
1006
  exports.createChecksumStream = createChecksumStream;
@@ -1015,7 +1015,7 @@ var require_createChecksumStream = __commonJS((exports) => {
1015
1015
  }
1016
1016
  });
1017
1017
 
1018
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js
1018
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js
1019
1019
  var require_ByteArrayCollector = __commonJS((exports) => {
1020
1020
  Object.defineProperty(exports, "__esModule", { value: true });
1021
1021
  exports.ByteArrayCollector = undefined;
@@ -1055,7 +1055,7 @@ var require_ByteArrayCollector = __commonJS((exports) => {
1055
1055
  exports.ByteArrayCollector = ByteArrayCollector;
1056
1056
  });
1057
1057
 
1058
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js
1058
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js
1059
1059
  var require_createBufferedReadableStream = __commonJS((exports) => {
1060
1060
  Object.defineProperty(exports, "__esModule", { value: true });
1061
1061
  exports.createBufferedReadable = undefined;
@@ -1158,7 +1158,7 @@ var require_createBufferedReadableStream = __commonJS((exports) => {
1158
1158
  }
1159
1159
  });
1160
1160
 
1161
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js
1161
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js
1162
1162
  var require_createBufferedReadable = __commonJS((exports) => {
1163
1163
  Object.defineProperty(exports, "__esModule", { value: true });
1164
1164
  exports.createBufferedReadable = createBufferedReadable;
@@ -1220,7 +1220,7 @@ var require_createBufferedReadable = __commonJS((exports) => {
1220
1220
  }
1221
1221
  });
1222
1222
 
1223
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js
1223
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js
1224
1224
  var require_getAwsChunkedEncodingStream_browser = __commonJS((exports) => {
1225
1225
  Object.defineProperty(exports, "__esModule", { value: true });
1226
1226
  exports.getAwsChunkedEncodingStream = undefined;
@@ -1254,7 +1254,7 @@ ${value}\r
1254
1254
  exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
1255
1255
  });
1256
1256
 
1257
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js
1257
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js
1258
1258
  var require_getAwsChunkedEncodingStream = __commonJS((exports) => {
1259
1259
  Object.defineProperty(exports, "__esModule", { value: true });
1260
1260
  exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
@@ -1300,7 +1300,7 @@ var require_getAwsChunkedEncodingStream = __commonJS((exports) => {
1300
1300
  }
1301
1301
  });
1302
1302
 
1303
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js
1303
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js
1304
1304
  var require_headStream_browser = __commonJS((exports) => {
1305
1305
  Object.defineProperty(exports, "__esModule", { value: true });
1306
1306
  exports.headStream = headStream;
@@ -1336,7 +1336,7 @@ var require_headStream_browser = __commonJS((exports) => {
1336
1336
  }
1337
1337
  });
1338
1338
 
1339
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/headStream.js
1339
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/headStream.js
1340
1340
  var require_headStream = __commonJS((exports) => {
1341
1341
  Object.defineProperty(exports, "__esModule", { value: true });
1342
1342
  exports.headStream = undefined;
@@ -1416,14 +1416,13 @@ var require_dist_cjs10 = __commonJS((exports) => {
1416
1416
  exports.buildQueryString = buildQueryString;
1417
1417
  });
1418
1418
 
1419
- // ../node_modules/.pnpm/@smithy+node-http-handler@4.4.16/node_modules/@smithy/node-http-handler/dist-cjs/index.js
1419
+ // ../node_modules/.pnpm/@smithy+node-http-handler@4.5.0/node_modules/@smithy/node-http-handler/dist-cjs/index.js
1420
1420
  var require_dist_cjs11 = __commonJS((exports) => {
1421
1421
  var protocolHttp = require_dist_cjs2();
1422
1422
  var querystringBuilder = require_dist_cjs10();
1423
- var http4 = __require("http");
1424
- var https3 = __require("https");
1425
- var stream = __require("stream");
1426
- var http22 = __require("http2");
1423
+ var node_https = __require("node:https");
1424
+ var node_stream = __require("node:stream");
1425
+ var http22 = __require("node:http2");
1427
1426
  function buildAbortError(abortSignal) {
1428
1427
  const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal ? abortSignal.reason : undefined;
1429
1428
  if (reason) {
@@ -1579,7 +1578,7 @@ var require_dist_cjs11 = __commonJS((exports) => {
1579
1578
  }
1580
1579
  }
1581
1580
  function writeBody(httpRequest, body) {
1582
- if (body instanceof stream.Readable) {
1581
+ if (body instanceof node_stream.Readable) {
1583
1582
  body.pipe(httpRequest);
1584
1583
  return;
1585
1584
  }
@@ -1605,6 +1604,8 @@ var require_dist_cjs11 = __commonJS((exports) => {
1605
1604
  httpRequest.end();
1606
1605
  }
1607
1606
  var DEFAULT_REQUEST_TIMEOUT = 0;
1607
+ var hAgent = undefined;
1608
+ var hRequest = undefined;
1608
1609
 
1609
1610
  class NodeHttpHandler {
1610
1611
  config;
@@ -1652,33 +1653,6 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
1652
1653
  }
1653
1654
  });
1654
1655
  }
1655
- resolveDefaultConfig(options) {
1656
- const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, logger: logger2 } = options || {};
1657
- const keepAlive = true;
1658
- const maxSockets = 50;
1659
- return {
1660
- connectionTimeout,
1661
- requestTimeout,
1662
- socketTimeout,
1663
- socketAcquisitionWarningTimeout,
1664
- throwOnRequestTimeout,
1665
- httpAgent: (() => {
1666
- if (httpAgent instanceof http4.Agent || typeof httpAgent?.destroy === "function") {
1667
- this.externalAgent = true;
1668
- return httpAgent;
1669
- }
1670
- return new http4.Agent({ keepAlive, maxSockets, ...httpAgent });
1671
- })(),
1672
- httpsAgent: (() => {
1673
- if (httpsAgent instanceof https3.Agent || typeof httpsAgent?.destroy === "function") {
1674
- this.externalAgent = true;
1675
- return httpsAgent;
1676
- }
1677
- return new https3.Agent({ keepAlive, maxSockets, ...httpsAgent });
1678
- })(),
1679
- logger: logger2
1680
- };
1681
- }
1682
1656
  destroy() {
1683
1657
  this.config?.httpAgent?.destroy();
1684
1658
  this.config?.httpsAgent?.destroy();
@@ -1687,8 +1661,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
1687
1661
  if (!this.config) {
1688
1662
  this.config = await this.configProvider;
1689
1663
  }
1664
+ const config2 = this.config;
1665
+ const isSSL = request.protocol === "https:";
1666
+ if (!isSSL && !this.config.httpAgent) {
1667
+ this.config.httpAgent = await this.config.httpAgentProvider();
1668
+ }
1690
1669
  return new Promise((_resolve, _reject) => {
1691
- const config2 = this.config;
1692
1670
  let writeRequestBodyPromise = undefined;
1693
1671
  const timeouts = [];
1694
1672
  const resolve = async (arg) => {
@@ -1706,12 +1684,11 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
1706
1684
  reject(abortError);
1707
1685
  return;
1708
1686
  }
1709
- const isSSL = request.protocol === "https:";
1710
1687
  const headers = request.headers ?? {};
1711
1688
  const expectContinue = (headers.Expect ?? headers.expect) === "100-continue";
1712
1689
  let agent = isSSL ? config2.httpsAgent : config2.httpAgent;
1713
1690
  if (expectContinue && !this.externalAgent) {
1714
- agent = new (isSSL ? https3.Agent : http4.Agent)({
1691
+ agent = new (isSSL ? node_https.Agent : hAgent)({
1715
1692
  keepAlive: false,
1716
1693
  maxSockets: Infinity
1717
1694
  });
@@ -1748,7 +1725,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
1748
1725
  agent,
1749
1726
  auth
1750
1727
  };
1751
- const requestFunc = isSSL ? https3.request : http4.request;
1728
+ const requestFunc = isSSL ? node_https.request : hRequest;
1752
1729
  const req = requestFunc(nodeHttpsOptions, (res) => {
1753
1730
  const httpResponse = new protocolHttp.HttpResponse({
1754
1731
  statusCode: res.statusCode || -1,
@@ -1808,6 +1785,36 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
1808
1785
  httpHandlerConfigs() {
1809
1786
  return this.config ?? {};
1810
1787
  }
1788
+ resolveDefaultConfig(options) {
1789
+ const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, logger: logger2 } = options || {};
1790
+ const keepAlive = true;
1791
+ const maxSockets = 50;
1792
+ return {
1793
+ connectionTimeout,
1794
+ requestTimeout,
1795
+ socketTimeout,
1796
+ socketAcquisitionWarningTimeout,
1797
+ throwOnRequestTimeout,
1798
+ httpAgentProvider: async () => {
1799
+ const { Agent, request } = await import("node:http");
1800
+ hRequest = request;
1801
+ hAgent = Agent;
1802
+ if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") {
1803
+ this.externalAgent = true;
1804
+ return httpAgent;
1805
+ }
1806
+ return new hAgent({ keepAlive, maxSockets, ...httpAgent });
1807
+ },
1808
+ httpsAgent: (() => {
1809
+ if (httpsAgent instanceof node_https.Agent || typeof httpsAgent?.destroy === "function") {
1810
+ this.externalAgent = true;
1811
+ return httpsAgent;
1812
+ }
1813
+ return new node_https.Agent({ keepAlive, maxSockets, ...httpsAgent });
1814
+ })(),
1815
+ logger: logger2
1816
+ };
1817
+ }
1811
1818
  }
1812
1819
 
1813
1820
  class NodeHttp2ConnectionPool {
@@ -2085,21 +2092,21 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
2085
2092
  }
2086
2093
  }
2087
2094
 
2088
- class Collector extends stream.Writable {
2095
+ class Collector extends node_stream.Writable {
2089
2096
  bufferedBytes = [];
2090
2097
  _write(chunk, encoding, callback) {
2091
2098
  this.bufferedBytes.push(chunk);
2092
2099
  callback();
2093
2100
  }
2094
2101
  }
2095
- var streamCollector = (stream2) => {
2096
- if (isReadableStreamInstance(stream2)) {
2097
- return collectReadableStream(stream2);
2102
+ var streamCollector = (stream) => {
2103
+ if (isReadableStreamInstance(stream)) {
2104
+ return collectReadableStream(stream);
2098
2105
  }
2099
2106
  return new Promise((resolve, reject) => {
2100
2107
  const collector = new Collector;
2101
- stream2.pipe(collector);
2102
- stream2.on("error", (err) => {
2108
+ stream.pipe(collector);
2109
+ stream.on("error", (err) => {
2103
2110
  collector.end();
2104
2111
  reject(err);
2105
2112
  });
@@ -2110,10 +2117,10 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
2110
2117
  });
2111
2118
  });
2112
2119
  };
2113
- var isReadableStreamInstance = (stream2) => typeof ReadableStream === "function" && stream2 instanceof ReadableStream;
2114
- async function collectReadableStream(stream2) {
2120
+ var isReadableStreamInstance = (stream) => typeof ReadableStream === "function" && stream instanceof ReadableStream;
2121
+ async function collectReadableStream(stream) {
2115
2122
  const chunks = [];
2116
- const reader = stream2.getReader();
2123
+ const reader = stream.getReader();
2117
2124
  let isDone = false;
2118
2125
  let length = 0;
2119
2126
  while (!isDone) {
@@ -2402,7 +2409,7 @@ var require_dist_cjs13 = __commonJS((exports) => {
2402
2409
  exports.toHex = toHex;
2403
2410
  });
2404
2411
 
2405
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js
2412
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js
2406
2413
  var require_sdk_stream_mixin_browser = __commonJS((exports) => {
2407
2414
  Object.defineProperty(exports, "__esModule", { value: true });
2408
2415
  exports.sdkStreamMixin = undefined;
@@ -2467,7 +2474,7 @@ var require_sdk_stream_mixin_browser = __commonJS((exports) => {
2467
2474
  var isBlobInstance = (stream) => typeof Blob === "function" && stream instanceof Blob;
2468
2475
  });
2469
2476
 
2470
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js
2477
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js
2471
2478
  var require_sdk_stream_mixin = __commonJS((exports) => {
2472
2479
  Object.defineProperty(exports, "__esModule", { value: true });
2473
2480
  exports.sdkStreamMixin = undefined;
@@ -2522,7 +2529,7 @@ var require_sdk_stream_mixin = __commonJS((exports) => {
2522
2529
  exports.sdkStreamMixin = sdkStreamMixin;
2523
2530
  });
2524
2531
 
2525
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js
2532
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js
2526
2533
  var require_splitStream_browser = __commonJS((exports) => {
2527
2534
  Object.defineProperty(exports, "__esModule", { value: true });
2528
2535
  exports.splitStream = splitStream;
@@ -2535,7 +2542,7 @@ var require_splitStream_browser = __commonJS((exports) => {
2535
2542
  }
2536
2543
  });
2537
2544
 
2538
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/splitStream.js
2545
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/splitStream.js
2539
2546
  var require_splitStream = __commonJS((exports) => {
2540
2547
  Object.defineProperty(exports, "__esModule", { value: true });
2541
2548
  exports.splitStream = splitStream;
@@ -2554,7 +2561,7 @@ var require_splitStream = __commonJS((exports) => {
2554
2561
  }
2555
2562
  });
2556
2563
 
2557
- // ../node_modules/.pnpm/@smithy+util-stream@4.5.19/node_modules/@smithy/util-stream/dist-cjs/index.js
2564
+ // ../node_modules/.pnpm/@smithy+util-stream@4.5.20/node_modules/@smithy/util-stream/dist-cjs/index.js
2558
2565
  var require_dist_cjs14 = __commonJS((exports) => {
2559
2566
  var utilBase64 = require_dist_cjs8();
2560
2567
  var utilUtf8 = require_dist_cjs7();
@@ -2698,7 +2705,7 @@ var require_dist_cjs16 = __commonJS((exports) => {
2698
2705
  exports.parseUrl = parseUrl;
2699
2706
  });
2700
2707
 
2701
- // ../node_modules/.pnpm/@smithy+core@3.23.11/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js
2708
+ // ../node_modules/.pnpm/@smithy+core@3.23.12/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js
2702
2709
  var require_endpoints = __commonJS((exports) => {
2703
2710
  var urlParser = require_dist_cjs16();
2704
2711
  var toEndpointV1 = (endpoint) => {
@@ -2720,7 +2727,7 @@ var require_endpoints = __commonJS((exports) => {
2720
2727
  exports.toEndpointV1 = toEndpointV1;
2721
2728
  });
2722
2729
 
2723
- // ../node_modules/.pnpm/@smithy+core@3.23.11/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js
2730
+ // ../node_modules/.pnpm/@smithy+core@3.23.12/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js
2724
2731
  var require_schema = __commonJS((exports) => {
2725
2732
  var protocolHttp = require_dist_cjs2();
2726
2733
  var utilMiddleware = require_dist_cjs4();
@@ -4015,7 +4022,7 @@ var require_dist_cjs17 = __commonJS((exports) => {
4015
4022
  exports.v4 = v4;
4016
4023
  });
4017
4024
 
4018
- // ../node_modules/.pnpm/@smithy+core@3.23.11/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js
4025
+ // ../node_modules/.pnpm/@smithy+core@3.23.12/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js
4019
4026
  var require_serde = __commonJS((exports) => {
4020
4027
  var uuid3 = require_dist_cjs17();
4021
4028
  var copyDocumentWithTransform = (source, schemaRef, transform2 = (_) => _) => source;
@@ -4687,7 +4694,7 @@ var require_serde = __commonJS((exports) => {
4687
4694
  exports.strictParseShort = strictParseShort;
4688
4695
  });
4689
4696
 
4690
- // ../node_modules/.pnpm/@smithy+core@3.23.11/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js
4697
+ // ../node_modules/.pnpm/@smithy+core@3.23.12/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js
4691
4698
  var require_event_streams = __commonJS((exports) => {
4692
4699
  var utilUtf8 = require_dist_cjs7();
4693
4700
 
@@ -4928,7 +4935,7 @@ var require_event_streams = __commonJS((exports) => {
4928
4935
  exports.EventStreamSerde = EventStreamSerde;
4929
4936
  });
4930
4937
 
4931
- // ../node_modules/.pnpm/@smithy+core@3.23.11/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js
4938
+ // ../node_modules/.pnpm/@smithy+core@3.23.12/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js
4932
4939
  var require_protocols = __commonJS((exports) => {
4933
4940
  var utilStream = require_dist_cjs14();
4934
4941
  var schema = require_schema();
@@ -5767,7 +5774,7 @@ var require_protocols = __commonJS((exports) => {
5767
5774
  exports.resolvedPath = resolvedPath;
5768
5775
  });
5769
5776
 
5770
- // ../node_modules/.pnpm/@smithy+core@3.23.11/node_modules/@smithy/core/dist-cjs/index.js
5777
+ // ../node_modules/.pnpm/@smithy+core@3.23.12/node_modules/@smithy/core/dist-cjs/index.js
5771
5778
  var require_dist_cjs18 = __commonJS((exports) => {
5772
5779
  var types = require_dist_cjs();
5773
5780
  var utilMiddleware = require_dist_cjs4();
@@ -6205,7 +6212,7 @@ var require_dist_cjs19 = __commonJS((exports) => {
6205
6212
  exports.memoize = memoize;
6206
6213
  });
6207
6214
 
6208
- // ../node_modules/.pnpm/@aws-sdk+core@3.973.20/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
6215
+ // ../node_modules/.pnpm/@aws-sdk+core@3.973.23/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
6209
6216
  var require_client = __commonJS((exports) => {
6210
6217
  var state = {
6211
6218
  warningEmitted: false
@@ -6806,7 +6813,7 @@ var require_dist_cjs21 = __commonJS((exports) => {
6806
6813
  exports.calculateBodyLength = calculateBodyLength;
6807
6814
  });
6808
6815
 
6809
- // ../node_modules/.pnpm/@smithy+core@3.23.11/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js
6816
+ // ../node_modules/.pnpm/@smithy+core@3.23.12/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js
6810
6817
  var require_cbor = __commonJS((exports) => {
6811
6818
  var serde = require_serde();
6812
6819
  var utilUtf8 = require_dist_cjs7();
@@ -8099,7 +8106,7 @@ var require_dist_cjs22 = __commonJS((exports) => {
8099
8106
  exports.constructStack = constructStack;
8100
8107
  });
8101
8108
 
8102
- // ../node_modules/.pnpm/@smithy+smithy-client@4.12.5/node_modules/@smithy/smithy-client/dist-cjs/index.js
8109
+ // ../node_modules/.pnpm/@smithy+smithy-client@4.12.7/node_modules/@smithy/smithy-client/dist-cjs/index.js
8103
8110
  var require_dist_cjs23 = __commonJS((exports) => {
8104
8111
  var middlewareStack = require_dist_cjs22();
8105
8112
  var protocols = require_protocols();
@@ -8697,37 +8704,37 @@ var require_dist_cjs23 = __commonJS((exports) => {
8697
8704
  });
8698
8705
  });
8699
8706
 
8700
- // ../node_modules/.pnpm/fast-xml-parser@5.4.1/node_modules/fast-xml-parser/lib/fxp.cjs
8707
+ // ../node_modules/.pnpm/fast-xml-parser@5.5.8/node_modules/fast-xml-parser/lib/fxp.cjs
8701
8708
  var require_fxp = __commonJS((exports, module) => {
8702
8709
  (() => {
8703
- var t = { d: (e2, n2) => {
8704
- for (var i2 in n2)
8705
- t.o(n2, i2) && !t.o(e2, i2) && Object.defineProperty(e2, i2, { enumerable: true, get: n2[i2] });
8710
+ var t = { d: (e2, i2) => {
8711
+ for (var n2 in i2)
8712
+ t.o(i2, n2) && !t.o(e2, n2) && Object.defineProperty(e2, n2, { enumerable: true, get: i2[n2] });
8706
8713
  }, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
8707
8714
  typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
8708
8715
  } }, e = {};
8709
- t.r(e), t.d(e, { XMLBuilder: () => gt3, XMLParser: () => it, XMLValidator: () => xt });
8710
- const n = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", i = new RegExp("^[" + n + "][" + n + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
8716
+ t.r(e), t.d(e, { XMLBuilder: () => $t, XMLParser: () => gt3, XMLValidator: () => It });
8717
+ const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
8711
8718
  function s(t2, e2) {
8712
- const n2 = [];
8713
- let i2 = e2.exec(t2);
8714
- for (;i2; ) {
8719
+ const i2 = [];
8720
+ let n2 = e2.exec(t2);
8721
+ for (;n2; ) {
8715
8722
  const s2 = [];
8716
- s2.startIndex = e2.lastIndex - i2[0].length;
8717
- const r2 = i2.length;
8723
+ s2.startIndex = e2.lastIndex - n2[0].length;
8724
+ const r2 = n2.length;
8718
8725
  for (let t3 = 0;t3 < r2; t3++)
8719
- s2.push(i2[t3]);
8720
- n2.push(s2), i2 = e2.exec(t2);
8726
+ s2.push(n2[t3]);
8727
+ i2.push(s2), n2 = e2.exec(t2);
8721
8728
  }
8722
- return n2;
8729
+ return i2;
8723
8730
  }
8724
8731
  const r = function(t2) {
8725
- return !(i.exec(t2) == null);
8726
- }, o = { allowBooleanAttributes: false, unpairedTags: [] };
8727
- function a(t2, e2) {
8728
- e2 = Object.assign({}, o, e2);
8729
- const n2 = [];
8730
- let i2 = false, s2 = false;
8732
+ return !(n.exec(t2) == null);
8733
+ }, o = ["hasOwnProperty", "toString", "valueOf", "__defineGetter__", "__defineSetter__", "__lookupGetter__", "__lookupSetter__"], a = ["__proto__", "constructor", "prototype"], h = { allowBooleanAttributes: false, unpairedTags: [] };
8734
+ function l(t2, e2) {
8735
+ e2 = Object.assign({}, h, e2);
8736
+ const i2 = [];
8737
+ let n2 = false, s2 = false;
8731
8738
  t2[0] === "\uFEFF" && (t2 = t2.substr(1));
8732
8739
  for (let r2 = 0;r2 < t2.length; r2++)
8733
8740
  if (t2[r2] === "<" && t2[r2 + 1] === "?") {
@@ -8735,14 +8742,14 @@ var require_fxp = __commonJS((exports, module) => {
8735
8742
  return r2;
8736
8743
  } else {
8737
8744
  if (t2[r2] !== "<") {
8738
- if (l(t2[r2]))
8745
+ if (p(t2[r2]))
8739
8746
  continue;
8740
- return m("InvalidChar", "char '" + t2[r2] + "' is not expected.", N(t2, r2));
8747
+ return b("InvalidChar", "char '" + t2[r2] + "' is not expected.", w(t2, r2));
8741
8748
  }
8742
8749
  {
8743
8750
  let o2 = r2;
8744
8751
  if (r2++, t2[r2] === "!") {
8745
- r2 = d(t2, r2);
8752
+ r2 = c(t2, r2);
8746
8753
  continue;
8747
8754
  }
8748
8755
  {
@@ -8752,48 +8759,48 @@ var require_fxp = __commonJS((exports, module) => {
8752
8759
  for (;r2 < t2.length && t2[r2] !== ">" && t2[r2] !== " " && t2[r2] !== "\t" && t2[r2] !== `
8753
8760
  ` && t2[r2] !== "\r"; r2++)
8754
8761
  h2 += t2[r2];
8755
- if (h2 = h2.trim(), h2[h2.length - 1] === "/" && (h2 = h2.substring(0, h2.length - 1), r2--), !b(h2)) {
8762
+ if (h2 = h2.trim(), h2[h2.length - 1] === "/" && (h2 = h2.substring(0, h2.length - 1), r2--), !y(h2)) {
8756
8763
  let e3;
8757
- return e3 = h2.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + h2 + "' is an invalid name.", m("InvalidTag", e3, N(t2, r2));
8764
+ return e3 = h2.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + h2 + "' is an invalid name.", b("InvalidTag", e3, w(t2, r2));
8758
8765
  }
8759
- const p2 = c(t2, r2);
8760
- if (p2 === false)
8761
- return m("InvalidAttr", "Attributes for '" + h2 + "' have open quote.", N(t2, r2));
8762
- let f2 = p2.value;
8763
- if (r2 = p2.index, f2[f2.length - 1] === "/") {
8764
- const n3 = r2 - f2.length;
8765
- f2 = f2.substring(0, f2.length - 1);
8766
- const s3 = g(f2, e2);
8766
+ const l2 = g(t2, r2);
8767
+ if (l2 === false)
8768
+ return b("InvalidAttr", "Attributes for '" + h2 + "' have open quote.", w(t2, r2));
8769
+ let d2 = l2.value;
8770
+ if (r2 = l2.index, d2[d2.length - 1] === "/") {
8771
+ const i3 = r2 - d2.length;
8772
+ d2 = d2.substring(0, d2.length - 1);
8773
+ const s3 = x(d2, e2);
8767
8774
  if (s3 !== true)
8768
- return m(s3.err.code, s3.err.msg, N(t2, n3 + s3.err.line));
8769
- i2 = true;
8775
+ return b(s3.err.code, s3.err.msg, w(t2, i3 + s3.err.line));
8776
+ n2 = true;
8770
8777
  } else if (a2) {
8771
- if (!p2.tagClosed)
8772
- return m("InvalidTag", "Closing tag '" + h2 + "' doesn't have proper closing.", N(t2, r2));
8773
- if (f2.trim().length > 0)
8774
- return m("InvalidTag", "Closing tag '" + h2 + "' can't have attributes or invalid starting.", N(t2, o2));
8775
- if (n2.length === 0)
8776
- return m("InvalidTag", "Closing tag '" + h2 + "' has not been opened.", N(t2, o2));
8778
+ if (!l2.tagClosed)
8779
+ return b("InvalidTag", "Closing tag '" + h2 + "' doesn't have proper closing.", w(t2, r2));
8780
+ if (d2.trim().length > 0)
8781
+ return b("InvalidTag", "Closing tag '" + h2 + "' can't have attributes or invalid starting.", w(t2, o2));
8782
+ if (i2.length === 0)
8783
+ return b("InvalidTag", "Closing tag '" + h2 + "' has not been opened.", w(t2, o2));
8777
8784
  {
8778
- const e3 = n2.pop();
8785
+ const e3 = i2.pop();
8779
8786
  if (h2 !== e3.tagName) {
8780
- let n3 = N(t2, e3.tagStartPos);
8781
- return m("InvalidTag", "Expected closing tag '" + e3.tagName + "' (opened in line " + n3.line + ", col " + n3.col + ") instead of closing tag '" + h2 + "'.", N(t2, o2));
8787
+ let i3 = w(t2, e3.tagStartPos);
8788
+ return b("InvalidTag", "Expected closing tag '" + e3.tagName + "' (opened in line " + i3.line + ", col " + i3.col + ") instead of closing tag '" + h2 + "'.", w(t2, o2));
8782
8789
  }
8783
- n2.length == 0 && (s2 = true);
8790
+ i2.length == 0 && (s2 = true);
8784
8791
  }
8785
8792
  } else {
8786
- const a3 = g(f2, e2);
8793
+ const a3 = x(d2, e2);
8787
8794
  if (a3 !== true)
8788
- return m(a3.err.code, a3.err.msg, N(t2, r2 - f2.length + a3.err.line));
8795
+ return b(a3.err.code, a3.err.msg, w(t2, r2 - d2.length + a3.err.line));
8789
8796
  if (s2 === true)
8790
- return m("InvalidXml", "Multiple possible root nodes found.", N(t2, r2));
8791
- e2.unpairedTags.indexOf(h2) !== -1 || n2.push({ tagName: h2, tagStartPos: o2 }), i2 = true;
8797
+ return b("InvalidXml", "Multiple possible root nodes found.", w(t2, r2));
8798
+ e2.unpairedTags.indexOf(h2) !== -1 || i2.push({ tagName: h2, tagStartPos: o2 }), n2 = true;
8792
8799
  }
8793
8800
  for (r2++;r2 < t2.length; r2++)
8794
8801
  if (t2[r2] === "<") {
8795
8802
  if (t2[r2 + 1] === "!") {
8796
- r2++, r2 = d(t2, r2);
8803
+ r2++, r2 = c(t2, r2);
8797
8804
  continue;
8798
8805
  }
8799
8806
  if (t2[r2 + 1] !== "?")
@@ -8801,29 +8808,29 @@ var require_fxp = __commonJS((exports, module) => {
8801
8808
  if (r2 = u(t2, ++r2), r2.err)
8802
8809
  return r2;
8803
8810
  } else if (t2[r2] === "&") {
8804
- const e3 = x(t2, r2);
8811
+ const e3 = N(t2, r2);
8805
8812
  if (e3 == -1)
8806
- return m("InvalidChar", "char '&' is not expected.", N(t2, r2));
8813
+ return b("InvalidChar", "char '&' is not expected.", w(t2, r2));
8807
8814
  r2 = e3;
8808
- } else if (s2 === true && !l(t2[r2]))
8809
- return m("InvalidXml", "Extra text at the end", N(t2, r2));
8815
+ } else if (s2 === true && !p(t2[r2]))
8816
+ return b("InvalidXml", "Extra text at the end", w(t2, r2));
8810
8817
  t2[r2] === "<" && r2--;
8811
8818
  }
8812
8819
  }
8813
8820
  }
8814
- return i2 ? n2.length == 1 ? m("InvalidTag", "Unclosed tag '" + n2[0].tagName + "'.", N(t2, n2[0].tagStartPos)) : !(n2.length > 0) || m("InvalidXml", "Invalid '" + JSON.stringify(n2.map((t3) => t3.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : m("InvalidXml", "Start tag expected.", 1);
8821
+ return n2 ? i2.length == 1 ? b("InvalidTag", "Unclosed tag '" + i2[0].tagName + "'.", w(t2, i2[0].tagStartPos)) : !(i2.length > 0) || b("InvalidXml", "Invalid '" + JSON.stringify(i2.map((t3) => t3.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : b("InvalidXml", "Start tag expected.", 1);
8815
8822
  }
8816
- function l(t2) {
8823
+ function p(t2) {
8817
8824
  return t2 === " " || t2 === "\t" || t2 === `
8818
8825
  ` || t2 === "\r";
8819
8826
  }
8820
8827
  function u(t2, e2) {
8821
- const n2 = e2;
8828
+ const i2 = e2;
8822
8829
  for (;e2 < t2.length; e2++)
8823
8830
  if (t2[e2] == "?" || t2[e2] == " ") {
8824
- const i2 = t2.substr(n2, e2 - n2);
8825
- if (e2 > 5 && i2 === "xml")
8826
- return m("InvalidXml", "XML declaration allowed only at the start of the document.", N(t2, e2));
8831
+ const n2 = t2.substr(i2, e2 - i2);
8832
+ if (e2 > 5 && n2 === "xml")
8833
+ return b("InvalidXml", "XML declaration allowed only at the start of the document.", w(t2, e2));
8827
8834
  if (t2[e2] == "?" && t2[e2 + 1] == ">") {
8828
8835
  e2++;
8829
8836
  break;
@@ -8832,7 +8839,7 @@ var require_fxp = __commonJS((exports, module) => {
8832
8839
  }
8833
8840
  return e2;
8834
8841
  }
8835
- function d(t2, e2) {
8842
+ function c(t2, e2) {
8836
8843
  if (t2.length > e2 + 5 && t2[e2 + 1] === "-" && t2[e2 + 2] === "-") {
8837
8844
  for (e2 += 3;e2 < t2.length; e2++)
8838
8845
  if (t2[e2] === "-" && t2[e2 + 1] === "-" && t2[e2 + 2] === ">") {
@@ -8840,11 +8847,11 @@ var require_fxp = __commonJS((exports, module) => {
8840
8847
  break;
8841
8848
  }
8842
8849
  } else if (t2.length > e2 + 8 && t2[e2 + 1] === "D" && t2[e2 + 2] === "O" && t2[e2 + 3] === "C" && t2[e2 + 4] === "T" && t2[e2 + 5] === "Y" && t2[e2 + 6] === "P" && t2[e2 + 7] === "E") {
8843
- let n2 = 1;
8850
+ let i2 = 1;
8844
8851
  for (e2 += 8;e2 < t2.length; e2++)
8845
8852
  if (t2[e2] === "<")
8846
- n2++;
8847
- else if (t2[e2] === ">" && (n2--, n2 === 0))
8853
+ i2++;
8854
+ else if (t2[e2] === ">" && (i2--, i2 === 0))
8848
8855
  break;
8849
8856
  } else if (t2.length > e2 + 9 && t2[e2 + 1] === "[" && t2[e2 + 2] === "C" && t2[e2 + 3] === "D" && t2[e2 + 4] === "A" && t2[e2 + 5] === "T" && t2[e2 + 6] === "A" && t2[e2 + 7] === "[") {
8850
8857
  for (e2 += 8;e2 < t2.length; e2++)
@@ -8855,96 +8862,107 @@ var require_fxp = __commonJS((exports, module) => {
8855
8862
  }
8856
8863
  return e2;
8857
8864
  }
8858
- const h = '"', p = "'";
8859
- function c(t2, e2) {
8860
- let n2 = "", i2 = "", s2 = false;
8865
+ const d = '"', f = "'";
8866
+ function g(t2, e2) {
8867
+ let i2 = "", n2 = "", s2 = false;
8861
8868
  for (;e2 < t2.length; e2++) {
8862
- if (t2[e2] === h || t2[e2] === p)
8863
- i2 === "" ? i2 = t2[e2] : i2 !== t2[e2] || (i2 = "");
8864
- else if (t2[e2] === ">" && i2 === "") {
8869
+ if (t2[e2] === d || t2[e2] === f)
8870
+ n2 === "" ? n2 = t2[e2] : n2 !== t2[e2] || (n2 = "");
8871
+ else if (t2[e2] === ">" && n2 === "") {
8865
8872
  s2 = true;
8866
8873
  break;
8867
8874
  }
8868
- n2 += t2[e2];
8875
+ i2 += t2[e2];
8869
8876
  }
8870
- return i2 === "" && { value: n2, index: e2, tagClosed: s2 };
8877
+ return n2 === "" && { value: i2, index: e2, tagClosed: s2 };
8871
8878
  }
8872
- const f = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
8873
- function g(t2, e2) {
8874
- const n2 = s(t2, f), i2 = {};
8875
- for (let t3 = 0;t3 < n2.length; t3++) {
8876
- if (n2[t3][1].length === 0)
8877
- return m("InvalidAttr", "Attribute '" + n2[t3][2] + "' has no space in starting.", y(n2[t3]));
8878
- if (n2[t3][3] !== undefined && n2[t3][4] === undefined)
8879
- return m("InvalidAttr", "Attribute '" + n2[t3][2] + "' is without value.", y(n2[t3]));
8880
- if (n2[t3][3] === undefined && !e2.allowBooleanAttributes)
8881
- return m("InvalidAttr", "boolean attribute '" + n2[t3][2] + "' is not allowed.", y(n2[t3]));
8882
- const s2 = n2[t3][2];
8879
+ const m = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
8880
+ function x(t2, e2) {
8881
+ const i2 = s(t2, m), n2 = {};
8882
+ for (let t3 = 0;t3 < i2.length; t3++) {
8883
+ if (i2[t3][1].length === 0)
8884
+ return b("InvalidAttr", "Attribute '" + i2[t3][2] + "' has no space in starting.", v(i2[t3]));
8885
+ if (i2[t3][3] !== undefined && i2[t3][4] === undefined)
8886
+ return b("InvalidAttr", "Attribute '" + i2[t3][2] + "' is without value.", v(i2[t3]));
8887
+ if (i2[t3][3] === undefined && !e2.allowBooleanAttributes)
8888
+ return b("InvalidAttr", "boolean attribute '" + i2[t3][2] + "' is not allowed.", v(i2[t3]));
8889
+ const s2 = i2[t3][2];
8883
8890
  if (!E(s2))
8884
- return m("InvalidAttr", "Attribute '" + s2 + "' is an invalid name.", y(n2[t3]));
8885
- if (Object.prototype.hasOwnProperty.call(i2, s2))
8886
- return m("InvalidAttr", "Attribute '" + s2 + "' is repeated.", y(n2[t3]));
8887
- i2[s2] = 1;
8891
+ return b("InvalidAttr", "Attribute '" + s2 + "' is an invalid name.", v(i2[t3]));
8892
+ if (Object.prototype.hasOwnProperty.call(n2, s2))
8893
+ return b("InvalidAttr", "Attribute '" + s2 + "' is repeated.", v(i2[t3]));
8894
+ n2[s2] = 1;
8888
8895
  }
8889
8896
  return true;
8890
8897
  }
8891
- function x(t2, e2) {
8898
+ function N(t2, e2) {
8892
8899
  if (t2[++e2] === ";")
8893
8900
  return -1;
8894
8901
  if (t2[e2] === "#")
8895
8902
  return function(t3, e3) {
8896
- let n3 = /\d/;
8897
- for (t3[e3] === "x" && (e3++, n3 = /[\da-fA-F]/);e3 < t3.length; e3++) {
8903
+ let i3 = /\d/;
8904
+ for (t3[e3] === "x" && (e3++, i3 = /[\da-fA-F]/);e3 < t3.length; e3++) {
8898
8905
  if (t3[e3] === ";")
8899
8906
  return e3;
8900
- if (!t3[e3].match(n3))
8907
+ if (!t3[e3].match(i3))
8901
8908
  break;
8902
8909
  }
8903
8910
  return -1;
8904
8911
  }(t2, ++e2);
8905
- let n2 = 0;
8906
- for (;e2 < t2.length; e2++, n2++)
8907
- if (!(t2[e2].match(/\w/) && n2 < 20)) {
8912
+ let i2 = 0;
8913
+ for (;e2 < t2.length; e2++, i2++)
8914
+ if (!(t2[e2].match(/\w/) && i2 < 20)) {
8908
8915
  if (t2[e2] === ";")
8909
8916
  break;
8910
8917
  return -1;
8911
8918
  }
8912
8919
  return e2;
8913
8920
  }
8914
- function m(t2, e2, n2) {
8915
- return { err: { code: t2, msg: e2, line: n2.line || n2, col: n2.col } };
8921
+ function b(t2, e2, i2) {
8922
+ return { err: { code: t2, msg: e2, line: i2.line || i2, col: i2.col } };
8916
8923
  }
8917
8924
  function E(t2) {
8918
8925
  return r(t2);
8919
8926
  }
8920
- function b(t2) {
8927
+ function y(t2) {
8921
8928
  return r(t2);
8922
8929
  }
8923
- function N(t2, e2) {
8924
- const n2 = t2.substring(0, e2).split(/\r?\n/);
8925
- return { line: n2.length, col: n2[n2.length - 1].length + 1 };
8930
+ function w(t2, e2) {
8931
+ const i2 = t2.substring(0, e2).split(/\r?\n/);
8932
+ return { line: i2.length, col: i2[i2.length - 1].length + 1 };
8926
8933
  }
8927
- function y(t2) {
8934
+ function v(t2) {
8928
8935
  return t2.startIndex + t2[1].length;
8929
8936
  }
8930
- const T = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: function(t2, e2) {
8937
+ const T = (t2) => o.includes(t2) ? "__" + t2 : t2, P = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: function(t2, e2) {
8931
8938
  return e2;
8932
8939
  }, attributeValueProcessor: function(t2, e2) {
8933
8940
  return e2;
8934
- }, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t2, e2, n2) {
8941
+ }, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t2, e2, i2) {
8935
8942
  return t2;
8936
- }, captureMetaData: false, maxNestedTags: 100, strictReservedNames: true };
8937
- function w(t2) {
8938
- return typeof t2 == "boolean" ? { enabled: t2, maxEntitySize: 1e4, maxExpansionDepth: 10, maxTotalExpansions: 1000, maxExpandedLength: 1e5, allowedTags: null, tagFilter: null } : typeof t2 == "object" && t2 !== null ? { enabled: t2.enabled !== false, maxEntitySize: t2.maxEntitySize ?? 1e4, maxExpansionDepth: t2.maxExpansionDepth ?? 10, maxTotalExpansions: t2.maxTotalExpansions ?? 1000, maxExpandedLength: t2.maxExpandedLength ?? 1e5, allowedTags: t2.allowedTags ?? null, tagFilter: t2.tagFilter ?? null } : w(true);
8943
+ }, captureMetaData: false, maxNestedTags: 100, strictReservedNames: true, jPath: true, onDangerousProperty: T };
8944
+ function S(t2, e2) {
8945
+ if (typeof t2 != "string")
8946
+ return;
8947
+ const i2 = t2.toLowerCase();
8948
+ if (o.some((t3) => i2 === t3.toLowerCase()))
8949
+ throw new Error(`[SECURITY] Invalid ${e2}: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
8950
+ if (a.some((t3) => i2 === t3.toLowerCase()))
8951
+ throw new Error(`[SECURITY] Invalid ${e2}: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
8952
+ }
8953
+ function A(t2) {
8954
+ return typeof t2 == "boolean" ? { enabled: t2, maxEntitySize: 1e4, maxExpansionDepth: 10, maxTotalExpansions: 1000, maxExpandedLength: 1e5, maxEntityCount: 100, allowedTags: null, tagFilter: null } : typeof t2 == "object" && t2 !== null ? { enabled: t2.enabled !== false, maxEntitySize: Math.max(1, t2.maxEntitySize ?? 1e4), maxExpansionDepth: Math.max(1, t2.maxExpansionDepth ?? 10), maxTotalExpansions: Math.max(1, t2.maxTotalExpansions ?? 1000), maxExpandedLength: Math.max(1, t2.maxExpandedLength ?? 1e5), maxEntityCount: Math.max(1, t2.maxEntityCount ?? 100), allowedTags: t2.allowedTags ?? null, tagFilter: t2.tagFilter ?? null } : A(true);
8939
8955
  }
8940
- const v = function(t2) {
8941
- const e2 = Object.assign({}, T, t2);
8942
- return e2.processEntities = w(e2.processEntities), e2;
8956
+ const O = function(t2) {
8957
+ const e2 = Object.assign({}, P, t2), i2 = [{ value: e2.attributeNamePrefix, name: "attributeNamePrefix" }, { value: e2.attributesGroupName, name: "attributesGroupName" }, { value: e2.textNodeName, name: "textNodeName" }, { value: e2.cdataPropName, name: "cdataPropName" }, { value: e2.commentPropName, name: "commentPropName" }];
8958
+ for (const { value: t3, name: e3 } of i2)
8959
+ t3 && S(t3, e3);
8960
+ return e2.onDangerousProperty === null && (e2.onDangerousProperty = T), e2.processEntities = A(e2.processEntities), e2.stopNodes && Array.isArray(e2.stopNodes) && (e2.stopNodes = e2.stopNodes.map((t3) => typeof t3 == "string" && t3.startsWith("*.") ? ".." + t3.substring(2) : t3)), e2;
8943
8961
  };
8944
- let O;
8945
- O = typeof Symbol != "function" ? "@@xmlMetadata" : Symbol("XML Node Metadata");
8962
+ let C;
8963
+ C = typeof Symbol != "function" ? "@@xmlMetadata" : Symbol("XML Node Metadata");
8946
8964
 
8947
- class I {
8965
+ class $ {
8948
8966
  constructor(t2) {
8949
8967
  this.tagname = t2, this.child = [], this[":@"] = Object.create(null);
8950
8968
  }
@@ -8952,243 +8970,503 @@ var require_fxp = __commonJS((exports, module) => {
8952
8970
  t2 === "__proto__" && (t2 = "#__proto__"), this.child.push({ [t2]: e2 });
8953
8971
  }
8954
8972
  addChild(t2, e2) {
8955
- t2.tagname === "__proto__" && (t2.tagname = "#__proto__"), t2[":@"] && Object.keys(t2[":@"]).length > 0 ? this.child.push({ [t2.tagname]: t2.child, ":@": t2[":@"] }) : this.child.push({ [t2.tagname]: t2.child }), e2 !== undefined && (this.child[this.child.length - 1][O] = { startIndex: e2 });
8973
+ t2.tagname === "__proto__" && (t2.tagname = "#__proto__"), t2[":@"] && Object.keys(t2[":@"]).length > 0 ? this.child.push({ [t2.tagname]: t2.child, ":@": t2[":@"] }) : this.child.push({ [t2.tagname]: t2.child }), e2 !== undefined && (this.child[this.child.length - 1][C] = { startIndex: e2 });
8956
8974
  }
8957
8975
  static getMetaDataSymbol() {
8958
- return O;
8976
+ return C;
8959
8977
  }
8960
8978
  }
8961
8979
 
8962
- class P {
8980
+ class I {
8963
8981
  constructor(t2) {
8964
8982
  this.suppressValidationErr = !t2, this.options = t2;
8965
8983
  }
8966
8984
  readDocType(t2, e2) {
8967
- const n2 = Object.create(null);
8985
+ const i2 = Object.create(null);
8986
+ let n2 = 0;
8968
8987
  if (t2[e2 + 3] !== "O" || t2[e2 + 4] !== "C" || t2[e2 + 5] !== "T" || t2[e2 + 6] !== "Y" || t2[e2 + 7] !== "P" || t2[e2 + 8] !== "E")
8969
8988
  throw new Error("Invalid Tag instead of DOCTYPE");
8970
8989
  {
8971
8990
  e2 += 9;
8972
- let i2 = 1, s2 = false, r2 = false, o2 = "";
8991
+ let s2 = 1, r2 = false, o2 = false, a2 = "";
8973
8992
  for (;e2 < t2.length; e2++)
8974
- if (t2[e2] !== "<" || r2)
8993
+ if (t2[e2] !== "<" || o2)
8975
8994
  if (t2[e2] === ">") {
8976
- if (r2 ? t2[e2 - 1] === "-" && t2[e2 - 2] === "-" && (r2 = false, i2--) : i2--, i2 === 0)
8995
+ if (o2 ? t2[e2 - 1] === "-" && t2[e2 - 2] === "-" && (o2 = false, s2--) : s2--, s2 === 0)
8977
8996
  break;
8978
8997
  } else
8979
- t2[e2] === "[" ? s2 = true : o2 += t2[e2];
8998
+ t2[e2] === "[" ? r2 = true : a2 += t2[e2];
8980
8999
  else {
8981
- if (s2 && S(t2, "!ENTITY", e2)) {
8982
- let i3, s3;
8983
- if (e2 += 7, [i3, s3, e2] = this.readEntityExp(t2, e2 + 1, this.suppressValidationErr), s3.indexOf("&") === -1) {
8984
- const t3 = i3.replace(/[.\-+*:]/g, "\\.");
8985
- n2[i3] = { regx: RegExp(`&${t3};`, "g"), val: s3 };
9000
+ if (r2 && M(t2, "!ENTITY", e2)) {
9001
+ let s3, r3;
9002
+ if (e2 += 7, [s3, r3, e2] = this.readEntityExp(t2, e2 + 1, this.suppressValidationErr), r3.indexOf("&") === -1) {
9003
+ if (this.options.enabled !== false && this.options.maxEntityCount != null && n2 >= this.options.maxEntityCount)
9004
+ throw new Error(`Entity count (${n2 + 1}) exceeds maximum allowed (${this.options.maxEntityCount})`);
9005
+ const t3 = s3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
9006
+ i2[s3] = { regx: RegExp(`&${t3};`, "g"), val: r3 }, n2++;
8986
9007
  }
8987
- } else if (s2 && S(t2, "!ELEMENT", e2)) {
9008
+ } else if (r2 && M(t2, "!ELEMENT", e2)) {
8988
9009
  e2 += 8;
8989
- const { index: n3 } = this.readElementExp(t2, e2 + 1);
8990
- e2 = n3;
8991
- } else if (s2 && S(t2, "!ATTLIST", e2))
9010
+ const { index: i3 } = this.readElementExp(t2, e2 + 1);
9011
+ e2 = i3;
9012
+ } else if (r2 && M(t2, "!ATTLIST", e2))
8992
9013
  e2 += 8;
8993
- else if (s2 && S(t2, "!NOTATION", e2)) {
9014
+ else if (r2 && M(t2, "!NOTATION", e2)) {
8994
9015
  e2 += 9;
8995
- const { index: n3 } = this.readNotationExp(t2, e2 + 1, this.suppressValidationErr);
8996
- e2 = n3;
9016
+ const { index: i3 } = this.readNotationExp(t2, e2 + 1, this.suppressValidationErr);
9017
+ e2 = i3;
8997
9018
  } else {
8998
- if (!S(t2, "!--", e2))
9019
+ if (!M(t2, "!--", e2))
8999
9020
  throw new Error("Invalid DOCTYPE");
9000
- r2 = true;
9021
+ o2 = true;
9001
9022
  }
9002
- i2++, o2 = "";
9023
+ s2++, a2 = "";
9003
9024
  }
9004
- if (i2 !== 0)
9025
+ if (s2 !== 0)
9005
9026
  throw new Error("Unclosed DOCTYPE");
9006
9027
  }
9007
- return { entities: n2, i: e2 };
9028
+ return { entities: i2, i: e2 };
9008
9029
  }
9009
9030
  readEntityExp(t2, e2) {
9010
- e2 = A(t2, e2);
9011
- let n2 = "";
9031
+ const i2 = e2 = j(t2, e2);
9012
9032
  for (;e2 < t2.length && !/\s/.test(t2[e2]) && t2[e2] !== '"' && t2[e2] !== "'"; )
9013
- n2 += t2[e2], e2++;
9014
- if (C(n2), e2 = A(t2, e2), !this.suppressValidationErr) {
9033
+ e2++;
9034
+ let n2 = t2.substring(i2, e2);
9035
+ if (_(n2), e2 = j(t2, e2), !this.suppressValidationErr) {
9015
9036
  if (t2.substring(e2, e2 + 6).toUpperCase() === "SYSTEM")
9016
9037
  throw new Error("External entities are not supported");
9017
9038
  if (t2[e2] === "%")
9018
9039
  throw new Error("Parameter entities are not supported");
9019
9040
  }
9020
- let i2 = "";
9021
- if ([e2, i2] = this.readIdentifierVal(t2, e2, "entity"), this.options.enabled !== false && this.options.maxEntitySize && i2.length > this.options.maxEntitySize)
9022
- throw new Error(`Entity "${n2}" size (${i2.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);
9023
- return [n2, i2, --e2];
9041
+ let s2 = "";
9042
+ if ([e2, s2] = this.readIdentifierVal(t2, e2, "entity"), this.options.enabled !== false && this.options.maxEntitySize != null && s2.length > this.options.maxEntitySize)
9043
+ throw new Error(`Entity "${n2}" size (${s2.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);
9044
+ return [n2, s2, --e2];
9024
9045
  }
9025
9046
  readNotationExp(t2, e2) {
9026
- e2 = A(t2, e2);
9027
- let n2 = "";
9047
+ const i2 = e2 = j(t2, e2);
9028
9048
  for (;e2 < t2.length && !/\s/.test(t2[e2]); )
9029
- n2 += t2[e2], e2++;
9030
- !this.suppressValidationErr && C(n2), e2 = A(t2, e2);
9031
- const i2 = t2.substring(e2, e2 + 6).toUpperCase();
9032
- if (!this.suppressValidationErr && i2 !== "SYSTEM" && i2 !== "PUBLIC")
9033
- throw new Error(`Expected SYSTEM or PUBLIC, found "${i2}"`);
9034
- e2 += i2.length, e2 = A(t2, e2);
9035
- let s2 = null, r2 = null;
9036
- if (i2 === "PUBLIC")
9037
- [e2, s2] = this.readIdentifierVal(t2, e2, "publicIdentifier"), t2[e2 = A(t2, e2)] !== '"' && t2[e2] !== "'" || ([e2, r2] = this.readIdentifierVal(t2, e2, "systemIdentifier"));
9038
- else if (i2 === "SYSTEM" && ([e2, r2] = this.readIdentifierVal(t2, e2, "systemIdentifier"), !this.suppressValidationErr && !r2))
9049
+ e2++;
9050
+ let n2 = t2.substring(i2, e2);
9051
+ !this.suppressValidationErr && _(n2), e2 = j(t2, e2);
9052
+ const s2 = t2.substring(e2, e2 + 6).toUpperCase();
9053
+ if (!this.suppressValidationErr && s2 !== "SYSTEM" && s2 !== "PUBLIC")
9054
+ throw new Error(`Expected SYSTEM or PUBLIC, found "${s2}"`);
9055
+ e2 += s2.length, e2 = j(t2, e2);
9056
+ let r2 = null, o2 = null;
9057
+ if (s2 === "PUBLIC")
9058
+ [e2, r2] = this.readIdentifierVal(t2, e2, "publicIdentifier"), t2[e2 = j(t2, e2)] !== '"' && t2[e2] !== "'" || ([e2, o2] = this.readIdentifierVal(t2, e2, "systemIdentifier"));
9059
+ else if (s2 === "SYSTEM" && ([e2, o2] = this.readIdentifierVal(t2, e2, "systemIdentifier"), !this.suppressValidationErr && !o2))
9039
9060
  throw new Error("Missing mandatory system identifier for SYSTEM notation");
9040
- return { notationName: n2, publicIdentifier: s2, systemIdentifier: r2, index: --e2 };
9061
+ return { notationName: n2, publicIdentifier: r2, systemIdentifier: o2, index: --e2 };
9041
9062
  }
9042
- readIdentifierVal(t2, e2, n2) {
9043
- let i2 = "";
9063
+ readIdentifierVal(t2, e2, i2) {
9064
+ let n2 = "";
9044
9065
  const s2 = t2[e2];
9045
9066
  if (s2 !== '"' && s2 !== "'")
9046
9067
  throw new Error(`Expected quoted string, found "${s2}"`);
9047
- for (e2++;e2 < t2.length && t2[e2] !== s2; )
9048
- i2 += t2[e2], e2++;
9049
- if (t2[e2] !== s2)
9050
- throw new Error(`Unterminated ${n2} value`);
9051
- return [++e2, i2];
9068
+ const r2 = ++e2;
9069
+ for (;e2 < t2.length && t2[e2] !== s2; )
9070
+ e2++;
9071
+ if (n2 = t2.substring(r2, e2), t2[e2] !== s2)
9072
+ throw new Error(`Unterminated ${i2} value`);
9073
+ return [++e2, n2];
9052
9074
  }
9053
9075
  readElementExp(t2, e2) {
9054
- e2 = A(t2, e2);
9055
- let n2 = "";
9076
+ const i2 = e2 = j(t2, e2);
9056
9077
  for (;e2 < t2.length && !/\s/.test(t2[e2]); )
9057
- n2 += t2[e2], e2++;
9078
+ e2++;
9079
+ let n2 = t2.substring(i2, e2);
9058
9080
  if (!this.suppressValidationErr && !r(n2))
9059
9081
  throw new Error(`Invalid element name: "${n2}"`);
9060
- let i2 = "";
9061
- if (t2[e2 = A(t2, e2)] === "E" && S(t2, "MPTY", e2))
9082
+ let s2 = "";
9083
+ if (t2[e2 = j(t2, e2)] === "E" && M(t2, "MPTY", e2))
9062
9084
  e2 += 4;
9063
- else if (t2[e2] === "A" && S(t2, "NY", e2))
9085
+ else if (t2[e2] === "A" && M(t2, "NY", e2))
9064
9086
  e2 += 2;
9065
9087
  else if (t2[e2] === "(") {
9066
- for (e2++;e2 < t2.length && t2[e2] !== ")"; )
9067
- i2 += t2[e2], e2++;
9068
- if (t2[e2] !== ")")
9088
+ const i3 = ++e2;
9089
+ for (;e2 < t2.length && t2[e2] !== ")"; )
9090
+ e2++;
9091
+ if (s2 = t2.substring(i3, e2), t2[e2] !== ")")
9069
9092
  throw new Error("Unterminated content model");
9070
9093
  } else if (!this.suppressValidationErr)
9071
9094
  throw new Error(`Invalid Element Expression, found "${t2[e2]}"`);
9072
- return { elementName: n2, contentModel: i2.trim(), index: e2 };
9095
+ return { elementName: n2, contentModel: s2.trim(), index: e2 };
9073
9096
  }
9074
9097
  readAttlistExp(t2, e2) {
9075
- e2 = A(t2, e2);
9076
- let n2 = "";
9077
- for (;e2 < t2.length && !/\s/.test(t2[e2]); )
9078
- n2 += t2[e2], e2++;
9079
- C(n2), e2 = A(t2, e2);
9080
- let i2 = "";
9098
+ let i2 = e2 = j(t2, e2);
9081
9099
  for (;e2 < t2.length && !/\s/.test(t2[e2]); )
9082
- i2 += t2[e2], e2++;
9083
- if (!C(i2))
9084
- throw new Error(`Invalid attribute name: "${i2}"`);
9085
- e2 = A(t2, e2);
9086
- let s2 = "";
9100
+ e2++;
9101
+ let n2 = t2.substring(i2, e2);
9102
+ for (_(n2), i2 = e2 = j(t2, e2);e2 < t2.length && !/\s/.test(t2[e2]); )
9103
+ e2++;
9104
+ let s2 = t2.substring(i2, e2);
9105
+ if (!_(s2))
9106
+ throw new Error(`Invalid attribute name: "${s2}"`);
9107
+ e2 = j(t2, e2);
9108
+ let r2 = "";
9087
9109
  if (t2.substring(e2, e2 + 8).toUpperCase() === "NOTATION") {
9088
- if (s2 = "NOTATION", t2[e2 = A(t2, e2 += 8)] !== "(")
9110
+ if (r2 = "NOTATION", t2[e2 = j(t2, e2 += 8)] !== "(")
9089
9111
  throw new Error(`Expected '(', found "${t2[e2]}"`);
9090
9112
  e2++;
9091
- let n3 = [];
9113
+ let i3 = [];
9092
9114
  for (;e2 < t2.length && t2[e2] !== ")"; ) {
9093
- let i3 = "";
9115
+ const n3 = e2;
9094
9116
  for (;e2 < t2.length && t2[e2] !== "|" && t2[e2] !== ")"; )
9095
- i3 += t2[e2], e2++;
9096
- if (i3 = i3.trim(), !C(i3))
9097
- throw new Error(`Invalid notation name: "${i3}"`);
9098
- n3.push(i3), t2[e2] === "|" && (e2++, e2 = A(t2, e2));
9117
+ e2++;
9118
+ let s3 = t2.substring(n3, e2);
9119
+ if (s3 = s3.trim(), !_(s3))
9120
+ throw new Error(`Invalid notation name: "${s3}"`);
9121
+ i3.push(s3), t2[e2] === "|" && (e2++, e2 = j(t2, e2));
9099
9122
  }
9100
9123
  if (t2[e2] !== ")")
9101
9124
  throw new Error("Unterminated list of notations");
9102
- e2++, s2 += " (" + n3.join("|") + ")";
9125
+ e2++, r2 += " (" + i3.join("|") + ")";
9103
9126
  } else {
9127
+ const i3 = e2;
9104
9128
  for (;e2 < t2.length && !/\s/.test(t2[e2]); )
9105
- s2 += t2[e2], e2++;
9129
+ e2++;
9130
+ r2 += t2.substring(i3, e2);
9106
9131
  const n3 = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
9107
- if (!this.suppressValidationErr && !n3.includes(s2.toUpperCase()))
9108
- throw new Error(`Invalid attribute type: "${s2}"`);
9132
+ if (!this.suppressValidationErr && !n3.includes(r2.toUpperCase()))
9133
+ throw new Error(`Invalid attribute type: "${r2}"`);
9109
9134
  }
9110
- e2 = A(t2, e2);
9111
- let r2 = "";
9112
- return t2.substring(e2, e2 + 8).toUpperCase() === "#REQUIRED" ? (r2 = "#REQUIRED", e2 += 8) : t2.substring(e2, e2 + 7).toUpperCase() === "#IMPLIED" ? (r2 = "#IMPLIED", e2 += 7) : [e2, r2] = this.readIdentifierVal(t2, e2, "ATTLIST"), { elementName: n2, attributeName: i2, attributeType: s2, defaultValue: r2, index: e2 };
9135
+ e2 = j(t2, e2);
9136
+ let o2 = "";
9137
+ return t2.substring(e2, e2 + 8).toUpperCase() === "#REQUIRED" ? (o2 = "#REQUIRED", e2 += 8) : t2.substring(e2, e2 + 7).toUpperCase() === "#IMPLIED" ? (o2 = "#IMPLIED", e2 += 7) : [e2, o2] = this.readIdentifierVal(t2, e2, "ATTLIST"), { elementName: n2, attributeName: s2, attributeType: r2, defaultValue: o2, index: e2 };
9113
9138
  }
9114
9139
  }
9115
- const A = (t2, e2) => {
9140
+ const j = (t2, e2) => {
9116
9141
  for (;e2 < t2.length && /\s/.test(t2[e2]); )
9117
9142
  e2++;
9118
9143
  return e2;
9119
9144
  };
9120
- function S(t2, e2, n2) {
9121
- for (let i2 = 0;i2 < e2.length; i2++)
9122
- if (e2[i2] !== t2[n2 + i2 + 1])
9145
+ function M(t2, e2, i2) {
9146
+ for (let n2 = 0;n2 < e2.length; n2++)
9147
+ if (e2[n2] !== t2[i2 + n2 + 1])
9123
9148
  return false;
9124
9149
  return true;
9125
9150
  }
9126
- function C(t2) {
9151
+ function _(t2) {
9127
9152
  if (r(t2))
9128
9153
  return t2;
9129
9154
  throw new Error(`Invalid entity name ${t2}`);
9130
9155
  }
9131
- const $ = /^[-+]?0x[a-fA-F0-9]+$/, V = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, D = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true };
9132
- const j = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
9156
+ const D = /^[-+]?0x[a-fA-F0-9]+$/, V = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, k = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true, infinity: "original" };
9157
+ const F = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/, L = new Set(["push", "pop", "reset", "updateCurrent", "restore"]);
9158
+
9159
+ class G {
9160
+ constructor(t2 = {}) {
9161
+ this.separator = t2.separator || ".", this.path = [], this.siblingStacks = [];
9162
+ }
9163
+ push(t2, e2 = null, i2 = null) {
9164
+ this.path.length > 0 && (this.path[this.path.length - 1].values = undefined);
9165
+ const n2 = this.path.length;
9166
+ this.siblingStacks[n2] || (this.siblingStacks[n2] = new Map);
9167
+ const s2 = this.siblingStacks[n2], r2 = i2 ? `${i2}:${t2}` : t2, o2 = s2.get(r2) || 0;
9168
+ let a2 = 0;
9169
+ for (const t3 of s2.values())
9170
+ a2 += t3;
9171
+ s2.set(r2, o2 + 1);
9172
+ const h2 = { tag: t2, position: a2, counter: o2 };
9173
+ i2 != null && (h2.namespace = i2), e2 != null && (h2.values = e2), this.path.push(h2);
9174
+ }
9175
+ pop() {
9176
+ if (this.path.length === 0)
9177
+ return;
9178
+ const t2 = this.path.pop();
9179
+ return this.siblingStacks.length > this.path.length + 1 && (this.siblingStacks.length = this.path.length + 1), t2;
9180
+ }
9181
+ updateCurrent(t2) {
9182
+ if (this.path.length > 0) {
9183
+ const e2 = this.path[this.path.length - 1];
9184
+ t2 != null && (e2.values = t2);
9185
+ }
9186
+ }
9187
+ getCurrentTag() {
9188
+ return this.path.length > 0 ? this.path[this.path.length - 1].tag : undefined;
9189
+ }
9190
+ getCurrentNamespace() {
9191
+ return this.path.length > 0 ? this.path[this.path.length - 1].namespace : undefined;
9192
+ }
9193
+ getAttrValue(t2) {
9194
+ if (this.path.length === 0)
9195
+ return;
9196
+ const e2 = this.path[this.path.length - 1];
9197
+ return e2.values?.[t2];
9198
+ }
9199
+ hasAttr(t2) {
9200
+ if (this.path.length === 0)
9201
+ return false;
9202
+ const e2 = this.path[this.path.length - 1];
9203
+ return e2.values !== undefined && t2 in e2.values;
9204
+ }
9205
+ getPosition() {
9206
+ return this.path.length === 0 ? -1 : this.path[this.path.length - 1].position ?? 0;
9207
+ }
9208
+ getCounter() {
9209
+ return this.path.length === 0 ? -1 : this.path[this.path.length - 1].counter ?? 0;
9210
+ }
9211
+ getIndex() {
9212
+ return this.getPosition();
9213
+ }
9214
+ getDepth() {
9215
+ return this.path.length;
9216
+ }
9217
+ toString(t2, e2 = true) {
9218
+ const i2 = t2 || this.separator;
9219
+ return this.path.map((t3) => e2 && t3.namespace ? `${t3.namespace}:${t3.tag}` : t3.tag).join(i2);
9220
+ }
9221
+ toArray() {
9222
+ return this.path.map((t2) => t2.tag);
9223
+ }
9224
+ reset() {
9225
+ this.path = [], this.siblingStacks = [];
9226
+ }
9227
+ matches(t2) {
9228
+ const e2 = t2.segments;
9229
+ return e2.length !== 0 && (t2.hasDeepWildcard() ? this._matchWithDeepWildcard(e2) : this._matchSimple(e2));
9230
+ }
9231
+ _matchSimple(t2) {
9232
+ if (this.path.length !== t2.length)
9233
+ return false;
9234
+ for (let e2 = 0;e2 < t2.length; e2++) {
9235
+ const i2 = t2[e2], n2 = this.path[e2], s2 = e2 === this.path.length - 1;
9236
+ if (!this._matchSegment(i2, n2, s2))
9237
+ return false;
9238
+ }
9239
+ return true;
9240
+ }
9241
+ _matchWithDeepWildcard(t2) {
9242
+ let e2 = this.path.length - 1, i2 = t2.length - 1;
9243
+ for (;i2 >= 0 && e2 >= 0; ) {
9244
+ const n2 = t2[i2];
9245
+ if (n2.type === "deep-wildcard") {
9246
+ if (i2--, i2 < 0)
9247
+ return true;
9248
+ const n3 = t2[i2];
9249
+ let s2 = false;
9250
+ for (let t3 = e2;t3 >= 0; t3--) {
9251
+ const r2 = t3 === this.path.length - 1;
9252
+ if (this._matchSegment(n3, this.path[t3], r2)) {
9253
+ e2 = t3 - 1, i2--, s2 = true;
9254
+ break;
9255
+ }
9256
+ }
9257
+ if (!s2)
9258
+ return false;
9259
+ } else {
9260
+ const t3 = e2 === this.path.length - 1;
9261
+ if (!this._matchSegment(n2, this.path[e2], t3))
9262
+ return false;
9263
+ e2--, i2--;
9264
+ }
9265
+ }
9266
+ return i2 < 0;
9267
+ }
9268
+ _matchSegment(t2, e2, i2) {
9269
+ if (t2.tag !== "*" && t2.tag !== e2.tag)
9270
+ return false;
9271
+ if (t2.namespace !== undefined && t2.namespace !== "*" && t2.namespace !== e2.namespace)
9272
+ return false;
9273
+ if (t2.attrName !== undefined) {
9274
+ if (!i2)
9275
+ return false;
9276
+ if (!e2.values || !(t2.attrName in e2.values))
9277
+ return false;
9278
+ if (t2.attrValue !== undefined) {
9279
+ const i3 = e2.values[t2.attrName];
9280
+ if (String(i3) !== String(t2.attrValue))
9281
+ return false;
9282
+ }
9283
+ }
9284
+ if (t2.position !== undefined) {
9285
+ if (!i2)
9286
+ return false;
9287
+ const n2 = e2.counter ?? 0;
9288
+ if (t2.position === "first" && n2 !== 0)
9289
+ return false;
9290
+ if (t2.position === "odd" && n2 % 2 != 1)
9291
+ return false;
9292
+ if (t2.position === "even" && n2 % 2 != 0)
9293
+ return false;
9294
+ if (t2.position === "nth" && n2 !== t2.positionValue)
9295
+ return false;
9296
+ }
9297
+ return true;
9298
+ }
9299
+ snapshot() {
9300
+ return { path: this.path.map((t2) => ({ ...t2 })), siblingStacks: this.siblingStacks.map((t2) => new Map(t2)) };
9301
+ }
9302
+ restore(t2) {
9303
+ this.path = t2.path.map((t3) => ({ ...t3 })), this.siblingStacks = t2.siblingStacks.map((t3) => new Map(t3));
9304
+ }
9305
+ readOnly() {
9306
+ return new Proxy(this, { get(t2, e2, i2) {
9307
+ if (L.has(e2))
9308
+ return () => {
9309
+ throw new TypeError(`Cannot call '${e2}' on a read-only Matcher. Obtain a writable instance to mutate state.`);
9310
+ };
9311
+ const n2 = Reflect.get(t2, e2, i2);
9312
+ return e2 === "path" || e2 === "siblingStacks" ? Object.freeze(Array.isArray(n2) ? n2.map((t3) => t3 instanceof Map ? Object.freeze(new Map(t3)) : Object.freeze({ ...t3 })) : n2) : typeof n2 == "function" ? n2.bind(t2) : n2;
9313
+ }, set(t2, e2) {
9314
+ throw new TypeError(`Cannot set property '${String(e2)}' on a read-only Matcher.`);
9315
+ }, deleteProperty(t2, e2) {
9316
+ throw new TypeError(`Cannot delete property '${String(e2)}' from a read-only Matcher.`);
9317
+ } });
9318
+ }
9319
+ }
9133
9320
 
9134
- class L {
9321
+ class R {
9322
+ constructor(t2, e2 = {}) {
9323
+ this.pattern = t2, this.separator = e2.separator || ".", this.segments = this._parse(t2), this._hasDeepWildcard = this.segments.some((t3) => t3.type === "deep-wildcard"), this._hasAttributeCondition = this.segments.some((t3) => t3.attrName !== undefined), this._hasPositionSelector = this.segments.some((t3) => t3.position !== undefined);
9324
+ }
9325
+ _parse(t2) {
9326
+ const e2 = [];
9327
+ let i2 = 0, n2 = "";
9328
+ for (;i2 < t2.length; )
9329
+ t2[i2] === this.separator ? i2 + 1 < t2.length && t2[i2 + 1] === this.separator ? (n2.trim() && (e2.push(this._parseSegment(n2.trim())), n2 = ""), e2.push({ type: "deep-wildcard" }), i2 += 2) : (n2.trim() && e2.push(this._parseSegment(n2.trim())), n2 = "", i2++) : (n2 += t2[i2], i2++);
9330
+ return n2.trim() && e2.push(this._parseSegment(n2.trim())), e2;
9331
+ }
9332
+ _parseSegment(t2) {
9333
+ const e2 = { type: "tag" };
9334
+ let i2 = null, n2 = t2;
9335
+ const s2 = t2.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);
9336
+ if (s2 && (n2 = s2[1] + s2[3], s2[2])) {
9337
+ const t3 = s2[2].slice(1, -1);
9338
+ t3 && (i2 = t3);
9339
+ }
9340
+ let r2, o2, a2 = n2;
9341
+ if (n2.includes("::")) {
9342
+ const e3 = n2.indexOf("::");
9343
+ if (r2 = n2.substring(0, e3).trim(), a2 = n2.substring(e3 + 2).trim(), !r2)
9344
+ throw new Error(`Invalid namespace in pattern: ${t2}`);
9345
+ }
9346
+ let h2 = null;
9347
+ if (a2.includes(":")) {
9348
+ const t3 = a2.lastIndexOf(":"), e3 = a2.substring(0, t3).trim(), i3 = a2.substring(t3 + 1).trim();
9349
+ ["first", "last", "odd", "even"].includes(i3) || /^nth\(\d+\)$/.test(i3) ? (o2 = e3, h2 = i3) : o2 = a2;
9350
+ } else
9351
+ o2 = a2;
9352
+ if (!o2)
9353
+ throw new Error(`Invalid segment pattern: ${t2}`);
9354
+ if (e2.tag = o2, r2 && (e2.namespace = r2), i2)
9355
+ if (i2.includes("=")) {
9356
+ const t3 = i2.indexOf("=");
9357
+ e2.attrName = i2.substring(0, t3).trim(), e2.attrValue = i2.substring(t3 + 1).trim();
9358
+ } else
9359
+ e2.attrName = i2.trim();
9360
+ if (h2) {
9361
+ const t3 = h2.match(/^nth\((\d+)\)$/);
9362
+ t3 ? (e2.position = "nth", e2.positionValue = parseInt(t3[1], 10)) : e2.position = h2;
9363
+ }
9364
+ return e2;
9365
+ }
9366
+ get length() {
9367
+ return this.segments.length;
9368
+ }
9369
+ hasDeepWildcard() {
9370
+ return this._hasDeepWildcard;
9371
+ }
9372
+ hasAttributeCondition() {
9373
+ return this._hasAttributeCondition;
9374
+ }
9375
+ hasPositionSelector() {
9376
+ return this._hasPositionSelector;
9377
+ }
9378
+ toString() {
9379
+ return this.pattern;
9380
+ }
9381
+ }
9382
+ function U(t2, e2) {
9383
+ if (!t2)
9384
+ return {};
9385
+ const i2 = e2.attributesGroupName ? t2[e2.attributesGroupName] : t2;
9386
+ if (!i2)
9387
+ return {};
9388
+ const n2 = {};
9389
+ for (const t3 in i2)
9390
+ t3.startsWith(e2.attributeNamePrefix) ? n2[t3.substring(e2.attributeNamePrefix.length)] = i2[t3] : n2[t3] = i2[t3];
9391
+ return n2;
9392
+ }
9393
+ function B(t2) {
9394
+ if (!t2 || typeof t2 != "string")
9395
+ return;
9396
+ const e2 = t2.indexOf(":");
9397
+ if (e2 !== -1 && e2 > 0) {
9398
+ const i2 = t2.substring(0, e2);
9399
+ if (i2 !== "xmlns")
9400
+ return i2;
9401
+ }
9402
+ }
9403
+
9404
+ class W {
9135
9405
  constructor(t2) {
9136
9406
  var e2;
9137
- if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "¢" }, pound: { regex: /&(pound|#163);/g, val: "£" }, yen: { regex: /&(yen|#165);/g, val: "¥" }, euro: { regex: /&(euro|#8364);/g, val: "€" }, copyright: { regex: /&(copy|#169);/g, val: "©" }, reg: { regex: /&(reg|#174);/g, val: "®" }, inr: { regex: /&(inr|#8377);/g, val: "₹" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e3) => K(e3, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e3) => K(e3, 16, "&#x") } }, this.addExternalEntities = F, this.parseXml = R, this.parseTextData = M, this.resolveNameSpace = k, this.buildAttributesMap = U, this.isItStopNode = X, this.replaceEntitiesValue = Y, this.readStopNodeData = q, this.saveTextToParentTag = G, this.addChild = B, this.ignoreAttributesFn = typeof (e2 = this.options.ignoreAttributes) == "function" ? e2 : Array.isArray(e2) ? (t3) => {
9138
- for (const n2 of e2) {
9139
- if (typeof n2 == "string" && t3 === n2)
9407
+ if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "¢" }, pound: { regex: /&(pound|#163);/g, val: "£" }, yen: { regex: /&(yen|#165);/g, val: "¥" }, euro: { regex: /&(euro|#8364);/g, val: "€" }, copyright: { regex: /&(copy|#169);/g, val: "©" }, reg: { regex: /&(reg|#174);/g, val: "®" }, inr: { regex: /&(inr|#8377);/g, val: "₹" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e3) => rt(e3, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e3) => rt(e3, 16, "&#x") } }, this.addExternalEntities = Y, this.parseXml = J, this.parseTextData = z2, this.resolveNameSpace = X, this.buildAttributesMap = Z, this.isItStopNode = tt, this.replaceEntitiesValue = Q, this.readStopNodeData = nt, this.saveTextToParentTag = H, this.addChild = K, this.ignoreAttributesFn = typeof (e2 = this.options.ignoreAttributes) == "function" ? e2 : Array.isArray(e2) ? (t3) => {
9408
+ for (const i2 of e2) {
9409
+ if (typeof i2 == "string" && t3 === i2)
9140
9410
  return true;
9141
- if (n2 instanceof RegExp && n2.test(t3))
9411
+ if (i2 instanceof RegExp && i2.test(t3))
9142
9412
  return true;
9143
9413
  }
9144
- } : () => false, this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.options.stopNodes && this.options.stopNodes.length > 0) {
9145
- this.stopNodesExact = new Set, this.stopNodesWildcard = new Set;
9414
+ } : () => false, this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.matcher = new G, this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = false, this.options.stopNodes && this.options.stopNodes.length > 0) {
9415
+ this.stopNodeExpressions = [];
9146
9416
  for (let t3 = 0;t3 < this.options.stopNodes.length; t3++) {
9147
9417
  const e3 = this.options.stopNodes[t3];
9148
- typeof e3 == "string" && (e3.startsWith("*.") ? this.stopNodesWildcard.add(e3.substring(2)) : this.stopNodesExact.add(e3));
9418
+ typeof e3 == "string" ? this.stopNodeExpressions.push(new R(e3)) : e3 instanceof R && this.stopNodeExpressions.push(e3);
9149
9419
  }
9150
9420
  }
9151
9421
  }
9152
9422
  }
9153
- function F(t2) {
9423
+ function Y(t2) {
9154
9424
  const e2 = Object.keys(t2);
9155
- for (let n2 = 0;n2 < e2.length; n2++) {
9156
- const i2 = e2[n2], s2 = i2.replace(/[.\-+*:]/g, "\\.");
9157
- this.lastEntities[i2] = { regex: new RegExp("&" + s2 + ";", "g"), val: t2[i2] };
9425
+ for (let i2 = 0;i2 < e2.length; i2++) {
9426
+ const n2 = e2[i2], s2 = n2.replace(/[.\-+*:]/g, "\\.");
9427
+ this.lastEntities[n2] = { regex: new RegExp("&" + s2 + ";", "g"), val: t2[n2] };
9158
9428
  }
9159
9429
  }
9160
- function M(t2, e2, n2, i2, s2, r2, o2) {
9161
- if (t2 !== undefined && (this.options.trimValues && !i2 && (t2 = t2.trim()), t2.length > 0)) {
9162
- o2 || (t2 = this.replaceEntitiesValue(t2, e2, n2));
9163
- const i3 = this.options.tagValueProcessor(e2, t2, n2, s2, r2);
9164
- return i3 == null ? t2 : typeof i3 != typeof t2 || i3 !== t2 ? i3 : this.options.trimValues || t2.trim() === t2 ? Z(t2, this.options.parseTagValue, this.options.numberParseOptions) : t2;
9430
+ function z2(t2, e2, i2, n2, s2, r2, o2) {
9431
+ if (t2 !== undefined && (this.options.trimValues && !n2 && (t2 = t2.trim()), t2.length > 0)) {
9432
+ o2 || (t2 = this.replaceEntitiesValue(t2, e2, i2));
9433
+ const n3 = this.options.jPath ? i2.toString() : i2, a2 = this.options.tagValueProcessor(e2, t2, n3, s2, r2);
9434
+ return a2 == null ? t2 : typeof a2 != typeof t2 || a2 !== t2 ? a2 : this.options.trimValues || t2.trim() === t2 ? st(t2, this.options.parseTagValue, this.options.numberParseOptions) : t2;
9165
9435
  }
9166
9436
  }
9167
- function k(t2) {
9437
+ function X(t2) {
9168
9438
  if (this.options.removeNSPrefix) {
9169
- const e2 = t2.split(":"), n2 = t2.charAt(0) === "/" ? "/" : "";
9439
+ const e2 = t2.split(":"), i2 = t2.charAt(0) === "/" ? "/" : "";
9170
9440
  if (e2[0] === "xmlns")
9171
9441
  return "";
9172
- e2.length === 2 && (t2 = n2 + e2[1]);
9442
+ e2.length === 2 && (t2 = i2 + e2[1]);
9173
9443
  }
9174
9444
  return t2;
9175
9445
  }
9176
- const _ = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
9177
- function U(t2, e2, n2) {
9446
+ const q = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
9447
+ function Z(t2, e2, i2) {
9178
9448
  if (this.options.ignoreAttributes !== true && typeof t2 == "string") {
9179
- const i2 = s(t2, _), r2 = i2.length, o2 = {};
9449
+ const n2 = s(t2, q), r2 = n2.length, o2 = {}, a2 = {};
9450
+ for (let t3 = 0;t3 < r2; t3++) {
9451
+ const e3 = this.resolveNameSpace(n2[t3][1]), s2 = n2[t3][4];
9452
+ if (e3.length && s2 !== undefined) {
9453
+ let t4 = s2;
9454
+ this.options.trimValues && (t4 = t4.trim()), t4 = this.replaceEntitiesValue(t4, i2, this.readonlyMatcher), a2[e3] = t4;
9455
+ }
9456
+ }
9457
+ Object.keys(a2).length > 0 && typeof e2 == "object" && e2.updateCurrent && e2.updateCurrent(a2);
9180
9458
  for (let t3 = 0;t3 < r2; t3++) {
9181
- const s2 = this.resolveNameSpace(i2[t3][1]);
9182
- if (this.ignoreAttributesFn(s2, e2))
9459
+ const s2 = this.resolveNameSpace(n2[t3][1]), r3 = this.options.jPath ? e2.toString() : this.readonlyMatcher;
9460
+ if (this.ignoreAttributesFn(s2, r3))
9183
9461
  continue;
9184
- let r3 = i2[t3][4], a2 = this.options.attributeNamePrefix + s2;
9462
+ let a3 = n2[t3][4], h2 = this.options.attributeNamePrefix + s2;
9185
9463
  if (s2.length)
9186
- if (this.options.transformAttributeName && (a2 = this.options.transformAttributeName(a2)), a2 === "__proto__" && (a2 = "#__proto__"), r3 !== undefined) {
9187
- this.options.trimValues && (r3 = r3.trim()), r3 = this.replaceEntitiesValue(r3, n2, e2);
9188
- const t4 = this.options.attributeValueProcessor(s2, r3, e2);
9189
- o2[a2] = t4 == null ? r3 : typeof t4 != typeof r3 || t4 !== r3 ? t4 : Z(r3, this.options.parseAttributeValue, this.options.numberParseOptions);
9464
+ if (this.options.transformAttributeName && (h2 = this.options.transformAttributeName(h2)), h2 = at(h2, this.options), a3 !== undefined) {
9465
+ this.options.trimValues && (a3 = a3.trim()), a3 = this.replaceEntitiesValue(a3, i2, this.readonlyMatcher);
9466
+ const t4 = this.options.jPath ? e2.toString() : this.readonlyMatcher, n3 = this.options.attributeValueProcessor(s2, a3, t4);
9467
+ o2[h2] = n3 == null ? a3 : typeof n3 != typeof a3 || n3 !== a3 ? n3 : st(a3, this.options.parseAttributeValue, this.options.numberParseOptions);
9190
9468
  } else
9191
- this.options.allowBooleanAttributes && (o2[a2] = true);
9469
+ this.options.allowBooleanAttributes && (o2[h2] = true);
9192
9470
  }
9193
9471
  if (!Object.keys(o2).length)
9194
9472
  return;
@@ -9199,227 +9477,239 @@ var require_fxp = __commonJS((exports, module) => {
9199
9477
  return o2;
9200
9478
  }
9201
9479
  }
9202
- const R = function(t2) {
9480
+ const J = function(t2) {
9203
9481
  t2 = t2.replace(/\r\n?/g, `
9204
9482
  `);
9205
- const e2 = new I("!xml");
9206
- let n2 = e2, i2 = "", s2 = "";
9207
- this.entityExpansionCount = 0, this.currentExpandedLength = 0;
9208
- const r2 = new P(this.options.processEntities);
9209
- for (let o2 = 0;o2 < t2.length; o2++)
9210
- if (t2[o2] === "<")
9211
- if (t2[o2 + 1] === "/") {
9212
- const e3 = z2(t2, ">", o2, "Closing Tag is not closed.");
9213
- let r3 = t2.substring(o2 + 2, e3).trim();
9483
+ const e2 = new $("!xml");
9484
+ let i2 = e2, n2 = "";
9485
+ this.matcher.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
9486
+ const s2 = new I(this.options.processEntities);
9487
+ for (let r2 = 0;r2 < t2.length; r2++)
9488
+ if (t2[r2] === "<")
9489
+ if (t2[r2 + 1] === "/") {
9490
+ const e3 = et(t2, ">", r2, "Closing Tag is not closed.");
9491
+ let s3 = t2.substring(r2 + 2, e3).trim();
9214
9492
  if (this.options.removeNSPrefix) {
9215
- const t3 = r3.indexOf(":");
9216
- t3 !== -1 && (r3 = r3.substr(t3 + 1));
9493
+ const t3 = s3.indexOf(":");
9494
+ t3 !== -1 && (s3 = s3.substr(t3 + 1));
9217
9495
  }
9218
- this.options.transformTagName && (r3 = this.options.transformTagName(r3)), n2 && (i2 = this.saveTextToParentTag(i2, n2, s2));
9219
- const a2 = s2.substring(s2.lastIndexOf(".") + 1);
9220
- if (r3 && this.options.unpairedTags.indexOf(r3) !== -1)
9221
- throw new Error(`Unpaired tag can not be used as closing tag: </${r3}>`);
9222
- let l2 = 0;
9223
- a2 && this.options.unpairedTags.indexOf(a2) !== -1 ? (l2 = s2.lastIndexOf(".", s2.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : l2 = s2.lastIndexOf("."), s2 = s2.substring(0, l2), n2 = this.tagsNodeStack.pop(), i2 = "", o2 = e3;
9224
- } else if (t2[o2 + 1] === "?") {
9225
- let e3 = W(t2, o2, false, "?>");
9496
+ s3 = ot(this.options.transformTagName, s3, "", this.options).tagName, i2 && (n2 = this.saveTextToParentTag(n2, i2, this.readonlyMatcher));
9497
+ const o2 = this.matcher.getCurrentTag();
9498
+ if (s3 && this.options.unpairedTags.indexOf(s3) !== -1)
9499
+ throw new Error(`Unpaired tag can not be used as closing tag: </${s3}>`);
9500
+ o2 && this.options.unpairedTags.indexOf(o2) !== -1 && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = false, i2 = this.tagsNodeStack.pop(), n2 = "", r2 = e3;
9501
+ } else if (t2[r2 + 1] === "?") {
9502
+ let e3 = it(t2, r2, false, "?>");
9226
9503
  if (!e3)
9227
9504
  throw new Error("Pi Tag is not closed.");
9228
- if (i2 = this.saveTextToParentTag(i2, n2, s2), this.options.ignoreDeclaration && e3.tagName === "?xml" || this.options.ignorePiTags)
9505
+ if (n2 = this.saveTextToParentTag(n2, i2, this.readonlyMatcher), this.options.ignoreDeclaration && e3.tagName === "?xml" || this.options.ignorePiTags)
9229
9506
  ;
9230
9507
  else {
9231
- const t3 = new I(e3.tagName);
9232
- t3.add(this.options.textNodeName, ""), e3.tagName !== e3.tagExp && e3.attrExpPresent && (t3[":@"] = this.buildAttributesMap(e3.tagExp, s2, e3.tagName)), this.addChild(n2, t3, s2, o2);
9508
+ const t3 = new $(e3.tagName);
9509
+ t3.add(this.options.textNodeName, ""), e3.tagName !== e3.tagExp && e3.attrExpPresent && (t3[":@"] = this.buildAttributesMap(e3.tagExp, this.matcher, e3.tagName)), this.addChild(i2, t3, this.readonlyMatcher, r2);
9233
9510
  }
9234
- o2 = e3.closeIndex + 1;
9235
- } else if (t2.substr(o2 + 1, 3) === "!--") {
9236
- const e3 = z2(t2, "-->", o2 + 4, "Comment is not closed.");
9511
+ r2 = e3.closeIndex + 1;
9512
+ } else if (t2.substr(r2 + 1, 3) === "!--") {
9513
+ const e3 = et(t2, "-->", r2 + 4, "Comment is not closed.");
9237
9514
  if (this.options.commentPropName) {
9238
- const r3 = t2.substring(o2 + 4, e3 - 2);
9239
- i2 = this.saveTextToParentTag(i2, n2, s2), n2.add(this.options.commentPropName, [{ [this.options.textNodeName]: r3 }]);
9515
+ const s3 = t2.substring(r2 + 4, e3 - 2);
9516
+ n2 = this.saveTextToParentTag(n2, i2, this.readonlyMatcher), i2.add(this.options.commentPropName, [{ [this.options.textNodeName]: s3 }]);
9240
9517
  }
9241
- o2 = e3;
9242
- } else if (t2.substr(o2 + 1, 2) === "!D") {
9243
- const e3 = r2.readDocType(t2, o2);
9244
- this.docTypeEntities = e3.entities, o2 = e3.i;
9245
- } else if (t2.substr(o2 + 1, 2) === "![") {
9246
- const e3 = z2(t2, "]]>", o2, "CDATA is not closed.") - 2, r3 = t2.substring(o2 + 9, e3);
9247
- i2 = this.saveTextToParentTag(i2, n2, s2);
9248
- let a2 = this.parseTextData(r3, n2.tagname, s2, true, false, true, true);
9249
- a2 == null && (a2 = ""), this.options.cdataPropName ? n2.add(this.options.cdataPropName, [{ [this.options.textNodeName]: r3 }]) : n2.add(this.options.textNodeName, a2), o2 = e3 + 2;
9518
+ r2 = e3;
9519
+ } else if (t2.substr(r2 + 1, 2) === "!D") {
9520
+ const e3 = s2.readDocType(t2, r2);
9521
+ this.docTypeEntities = e3.entities, r2 = e3.i;
9522
+ } else if (t2.substr(r2 + 1, 2) === "![") {
9523
+ const e3 = et(t2, "]]>", r2, "CDATA is not closed.") - 2, s3 = t2.substring(r2 + 9, e3);
9524
+ n2 = this.saveTextToParentTag(n2, i2, this.readonlyMatcher);
9525
+ let o2 = this.parseTextData(s3, i2.tagname, this.readonlyMatcher, true, false, true, true);
9526
+ o2 == null && (o2 = ""), this.options.cdataPropName ? i2.add(this.options.cdataPropName, [{ [this.options.textNodeName]: s3 }]) : i2.add(this.options.textNodeName, o2), r2 = e3 + 2;
9250
9527
  } else {
9251
- let r3 = W(t2, o2, this.options.removeNSPrefix), a2 = r3.tagName;
9252
- const l2 = r3.rawTagName;
9253
- let { tagExp: u2, attrExpPresent: d2, closeIndex: h2 } = r3;
9254
- if (this.options.transformTagName) {
9255
- const t3 = this.options.transformTagName(a2);
9256
- u2 === a2 && (u2 = t3), a2 = t3;
9528
+ let s3 = it(t2, r2, this.options.removeNSPrefix);
9529
+ if (!s3) {
9530
+ const e3 = t2.substring(Math.max(0, r2 - 50), Math.min(t2.length, r2 + 50));
9531
+ throw new Error(`readTagExp returned undefined at position ${r2}. Context: "${e3}"`);
9257
9532
  }
9258
- if (this.options.strictReservedNames && (a2 === this.options.commentPropName || a2 === this.options.cdataPropName))
9259
- throw new Error(`Invalid tag name: ${a2}`);
9260
- n2 && i2 && n2.tagname !== "!xml" && (i2 = this.saveTextToParentTag(i2, n2, s2, false));
9261
- const p2 = n2;
9262
- p2 && this.options.unpairedTags.indexOf(p2.tagname) !== -1 && (n2 = this.tagsNodeStack.pop(), s2 = s2.substring(0, s2.lastIndexOf("."))), a2 !== e2.tagname && (s2 += s2 ? "." + a2 : a2);
9263
- const c2 = o2;
9264
- if (this.isItStopNode(this.stopNodesExact, this.stopNodesWildcard, s2, a2)) {
9533
+ let o2 = s3.tagName;
9534
+ const a2 = s3.rawTagName;
9535
+ let { tagExp: h2, attrExpPresent: l2, closeIndex: p2 } = s3;
9536
+ if ({ tagName: o2, tagExp: h2 } = ot(this.options.transformTagName, o2, h2, this.options), this.options.strictReservedNames && (o2 === this.options.commentPropName || o2 === this.options.cdataPropName || o2 === this.options.textNodeName || o2 === this.options.attributesGroupName))
9537
+ throw new Error(`Invalid tag name: ${o2}`);
9538
+ i2 && n2 && i2.tagname !== "!xml" && (n2 = this.saveTextToParentTag(n2, i2, this.readonlyMatcher, false));
9539
+ const u2 = i2;
9540
+ u2 && this.options.unpairedTags.indexOf(u2.tagname) !== -1 && (i2 = this.tagsNodeStack.pop(), this.matcher.pop());
9541
+ let c2 = false;
9542
+ h2.length > 0 && h2.lastIndexOf("/") === h2.length - 1 && (c2 = true, o2[o2.length - 1] === "/" ? (o2 = o2.substr(0, o2.length - 1), h2 = o2) : h2 = h2.substr(0, h2.length - 1), l2 = o2 !== h2);
9543
+ let d2, f2 = null, g2 = {};
9544
+ d2 = B(a2), o2 !== e2.tagname && this.matcher.push(o2, {}, d2), o2 !== h2 && l2 && (f2 = this.buildAttributesMap(h2, this.matcher, o2), f2 && (g2 = U(f2, this.options))), o2 !== e2.tagname && (this.isCurrentNodeStopNode = this.isItStopNode(this.stopNodeExpressions, this.matcher));
9545
+ const m2 = r2;
9546
+ if (this.isCurrentNodeStopNode) {
9265
9547
  let e3 = "";
9266
- if (u2.length > 0 && u2.lastIndexOf("/") === u2.length - 1)
9267
- a2[a2.length - 1] === "/" ? (a2 = a2.substr(0, a2.length - 1), s2 = s2.substr(0, s2.length - 1), u2 = a2) : u2 = u2.substr(0, u2.length - 1), o2 = r3.closeIndex;
9268
- else if (this.options.unpairedTags.indexOf(a2) !== -1)
9269
- o2 = r3.closeIndex;
9548
+ if (c2)
9549
+ r2 = s3.closeIndex;
9550
+ else if (this.options.unpairedTags.indexOf(o2) !== -1)
9551
+ r2 = s3.closeIndex;
9270
9552
  else {
9271
- const n3 = this.readStopNodeData(t2, l2, h2 + 1);
9272
- if (!n3)
9273
- throw new Error(`Unexpected end of ${l2}`);
9274
- o2 = n3.i, e3 = n3.tagContent;
9553
+ const i3 = this.readStopNodeData(t2, a2, p2 + 1);
9554
+ if (!i3)
9555
+ throw new Error(`Unexpected end of ${a2}`);
9556
+ r2 = i3.i, e3 = i3.tagContent;
9275
9557
  }
9276
- const i3 = new I(a2);
9277
- a2 !== u2 && d2 && (i3[":@"] = this.buildAttributesMap(u2, s2, a2)), e3 && (e3 = this.parseTextData(e3, a2, s2, true, d2, true, true)), s2 = s2.substr(0, s2.lastIndexOf(".")), i3.add(this.options.textNodeName, e3), this.addChild(n2, i3, s2, c2);
9558
+ const n3 = new $(o2);
9559
+ f2 && (n3[":@"] = f2), n3.add(this.options.textNodeName, e3), this.matcher.pop(), this.isCurrentNodeStopNode = false, this.addChild(i2, n3, this.readonlyMatcher, m2);
9278
9560
  } else {
9279
- if (u2.length > 0 && u2.lastIndexOf("/") === u2.length - 1) {
9280
- if (a2[a2.length - 1] === "/" ? (a2 = a2.substr(0, a2.length - 1), s2 = s2.substr(0, s2.length - 1), u2 = a2) : u2 = u2.substr(0, u2.length - 1), this.options.transformTagName) {
9281
- const t4 = this.options.transformTagName(a2);
9282
- u2 === a2 && (u2 = t4), a2 = t4;
9283
- }
9284
- const t3 = new I(a2);
9285
- a2 !== u2 && d2 && (t3[":@"] = this.buildAttributesMap(u2, s2, a2)), this.addChild(n2, t3, s2, c2), s2 = s2.substr(0, s2.lastIndexOf("."));
9561
+ if (c2) {
9562
+ ({ tagName: o2, tagExp: h2 } = ot(this.options.transformTagName, o2, h2, this.options));
9563
+ const t3 = new $(o2);
9564
+ f2 && (t3[":@"] = f2), this.addChild(i2, t3, this.readonlyMatcher, m2), this.matcher.pop(), this.isCurrentNodeStopNode = false;
9286
9565
  } else {
9287
- if (this.options.unpairedTags.indexOf(a2) !== -1) {
9288
- const t3 = new I(a2);
9289
- a2 !== u2 && d2 && (t3[":@"] = this.buildAttributesMap(u2, s2)), this.addChild(n2, t3, s2, c2), s2 = s2.substr(0, s2.lastIndexOf(".")), o2 = r3.closeIndex;
9566
+ if (this.options.unpairedTags.indexOf(o2) !== -1) {
9567
+ const t3 = new $(o2);
9568
+ f2 && (t3[":@"] = f2), this.addChild(i2, t3, this.readonlyMatcher, m2), this.matcher.pop(), this.isCurrentNodeStopNode = false, r2 = s3.closeIndex;
9290
9569
  continue;
9291
9570
  }
9292
9571
  {
9293
- const t3 = new I(a2);
9572
+ const t3 = new $(o2);
9294
9573
  if (this.tagsNodeStack.length > this.options.maxNestedTags)
9295
9574
  throw new Error("Maximum nested tags exceeded");
9296
- this.tagsNodeStack.push(n2), a2 !== u2 && d2 && (t3[":@"] = this.buildAttributesMap(u2, s2, a2)), this.addChild(n2, t3, s2, c2), n2 = t3;
9575
+ this.tagsNodeStack.push(i2), f2 && (t3[":@"] = f2), this.addChild(i2, t3, this.readonlyMatcher, m2), i2 = t3;
9297
9576
  }
9298
9577
  }
9299
- i2 = "", o2 = h2;
9578
+ n2 = "", r2 = p2;
9300
9579
  }
9301
9580
  }
9302
9581
  else
9303
- i2 += t2[o2];
9582
+ n2 += t2[r2];
9304
9583
  return e2.child;
9305
9584
  };
9306
- function B(t2, e2, n2, i2) {
9307
- this.options.captureMetaData || (i2 = undefined);
9308
- const s2 = this.options.updateTag(e2.tagname, n2, e2[":@"]);
9309
- s2 === false || (typeof s2 == "string" ? (e2.tagname = s2, t2.addChild(e2, i2)) : t2.addChild(e2, i2));
9585
+ function K(t2, e2, i2, n2) {
9586
+ this.options.captureMetaData || (n2 = undefined);
9587
+ const s2 = this.options.jPath ? i2.toString() : i2, r2 = this.options.updateTag(e2.tagname, s2, e2[":@"]);
9588
+ r2 === false || (typeof r2 == "string" ? (e2.tagname = r2, t2.addChild(e2, n2)) : t2.addChild(e2, n2));
9310
9589
  }
9311
- const Y = function(t2, e2, n2) {
9312
- if (t2.indexOf("&") === -1)
9313
- return t2;
9314
- const i2 = this.options.processEntities;
9315
- if (!i2.enabled)
9590
+ function Q(t2, e2, i2) {
9591
+ const n2 = this.options.processEntities;
9592
+ if (!n2 || !n2.enabled)
9316
9593
  return t2;
9317
- if (i2.allowedTags && !i2.allowedTags.includes(e2))
9318
- return t2;
9319
- if (i2.tagFilter && !i2.tagFilter(e2, n2))
9320
- return t2;
9321
- for (let e3 in this.docTypeEntities) {
9322
- const n3 = this.docTypeEntities[e3], s2 = t2.match(n3.regx);
9594
+ if (n2.allowedTags) {
9595
+ const s2 = this.options.jPath ? i2.toString() : i2;
9596
+ if (!(Array.isArray(n2.allowedTags) ? n2.allowedTags.includes(e2) : n2.allowedTags(e2, s2)))
9597
+ return t2;
9598
+ }
9599
+ if (n2.tagFilter) {
9600
+ const s2 = this.options.jPath ? i2.toString() : i2;
9601
+ if (!n2.tagFilter(e2, s2))
9602
+ return t2;
9603
+ }
9604
+ for (const e3 of Object.keys(this.docTypeEntities)) {
9605
+ const i3 = this.docTypeEntities[e3], s2 = t2.match(i3.regx);
9323
9606
  if (s2) {
9324
- if (this.entityExpansionCount += s2.length, i2.maxTotalExpansions && this.entityExpansionCount > i2.maxTotalExpansions)
9325
- throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${i2.maxTotalExpansions}`);
9607
+ if (this.entityExpansionCount += s2.length, n2.maxTotalExpansions && this.entityExpansionCount > n2.maxTotalExpansions)
9608
+ throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n2.maxTotalExpansions}`);
9326
9609
  const e4 = t2.length;
9327
- if (t2 = t2.replace(n3.regx, n3.val), i2.maxExpandedLength && (this.currentExpandedLength += t2.length - e4, this.currentExpandedLength > i2.maxExpandedLength))
9328
- throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${i2.maxExpandedLength}`);
9610
+ if (t2 = t2.replace(i3.regx, i3.val), n2.maxExpandedLength && (this.currentExpandedLength += t2.length - e4, this.currentExpandedLength > n2.maxExpandedLength))
9611
+ throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${n2.maxExpandedLength}`);
9329
9612
  }
9330
9613
  }
9331
- if (t2.indexOf("&") === -1)
9332
- return t2;
9333
- for (let e3 in this.lastEntities) {
9334
- const n3 = this.lastEntities[e3];
9335
- t2 = t2.replace(n3.regex, n3.val);
9614
+ for (const e3 of Object.keys(this.lastEntities)) {
9615
+ const i3 = this.lastEntities[e3], s2 = t2.match(i3.regex);
9616
+ if (s2 && (this.entityExpansionCount += s2.length, n2.maxTotalExpansions && this.entityExpansionCount > n2.maxTotalExpansions))
9617
+ throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n2.maxTotalExpansions}`);
9618
+ t2 = t2.replace(i3.regex, i3.val);
9336
9619
  }
9337
9620
  if (t2.indexOf("&") === -1)
9338
9621
  return t2;
9339
9622
  if (this.options.htmlEntities)
9340
- for (let e3 in this.htmlEntities) {
9341
- const n3 = this.htmlEntities[e3];
9342
- t2 = t2.replace(n3.regex, n3.val);
9623
+ for (const e3 of Object.keys(this.htmlEntities)) {
9624
+ const i3 = this.htmlEntities[e3], s2 = t2.match(i3.regex);
9625
+ if (s2 && (this.entityExpansionCount += s2.length, n2.maxTotalExpansions && this.entityExpansionCount > n2.maxTotalExpansions))
9626
+ throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n2.maxTotalExpansions}`);
9627
+ t2 = t2.replace(i3.regex, i3.val);
9343
9628
  }
9344
9629
  return t2.replace(this.ampEntity.regex, this.ampEntity.val);
9345
- };
9346
- function G(t2, e2, n2, i2) {
9347
- return t2 && (i2 === undefined && (i2 = e2.child.length === 0), (t2 = this.parseTextData(t2, e2.tagname, n2, false, !!e2[":@"] && Object.keys(e2[":@"]).length !== 0, i2)) !== undefined && t2 !== "" && e2.add(this.options.textNodeName, t2), t2 = ""), t2;
9348
9630
  }
9349
- function X(t2, e2, n2, i2) {
9350
- return !(!e2 || !e2.has(i2)) || !(!t2 || !t2.has(n2));
9631
+ function H(t2, e2, i2, n2) {
9632
+ return t2 && (n2 === undefined && (n2 = e2.child.length === 0), (t2 = this.parseTextData(t2, e2.tagname, i2, false, !!e2[":@"] && Object.keys(e2[":@"]).length !== 0, n2)) !== undefined && t2 !== "" && e2.add(this.options.textNodeName, t2), t2 = ""), t2;
9351
9633
  }
9352
- function z2(t2, e2, n2, i2) {
9353
- const s2 = t2.indexOf(e2, n2);
9634
+ function tt(t2, e2) {
9635
+ if (!t2 || t2.length === 0)
9636
+ return false;
9637
+ for (let i2 = 0;i2 < t2.length; i2++)
9638
+ if (e2.matches(t2[i2]))
9639
+ return true;
9640
+ return false;
9641
+ }
9642
+ function et(t2, e2, i2, n2) {
9643
+ const s2 = t2.indexOf(e2, i2);
9354
9644
  if (s2 === -1)
9355
- throw new Error(i2);
9645
+ throw new Error(n2);
9356
9646
  return s2 + e2.length - 1;
9357
9647
  }
9358
- function W(t2, e2, n2, i2 = ">") {
9359
- const s2 = function(t3, e3, n3 = ">") {
9360
- let i3, s3 = "";
9648
+ function it(t2, e2, i2, n2 = ">") {
9649
+ const s2 = function(t3, e3, i3 = ">") {
9650
+ let n3, s3 = "";
9361
9651
  for (let r3 = e3;r3 < t3.length; r3++) {
9362
9652
  let e4 = t3[r3];
9363
- if (i3)
9364
- e4 === i3 && (i3 = "");
9653
+ if (n3)
9654
+ e4 === n3 && (n3 = "");
9365
9655
  else if (e4 === '"' || e4 === "'")
9366
- i3 = e4;
9367
- else if (e4 === n3[0]) {
9368
- if (!n3[1])
9656
+ n3 = e4;
9657
+ else if (e4 === i3[0]) {
9658
+ if (!i3[1])
9369
9659
  return { data: s3, index: r3 };
9370
- if (t3[r3 + 1] === n3[1])
9660
+ if (t3[r3 + 1] === i3[1])
9371
9661
  return { data: s3, index: r3 };
9372
9662
  } else
9373
9663
  e4 === "\t" && (e4 = " ");
9374
9664
  s3 += e4;
9375
9665
  }
9376
- }(t2, e2 + 1, i2);
9666
+ }(t2, e2 + 1, n2);
9377
9667
  if (!s2)
9378
9668
  return;
9379
9669
  let r2 = s2.data;
9380
9670
  const o2 = s2.index, a2 = r2.search(/\s/);
9381
- let l2 = r2, u2 = true;
9382
- a2 !== -1 && (l2 = r2.substring(0, a2), r2 = r2.substring(a2 + 1).trimStart());
9383
- const d2 = l2;
9384
- if (n2) {
9385
- const t3 = l2.indexOf(":");
9386
- t3 !== -1 && (l2 = l2.substr(t3 + 1), u2 = l2 !== s2.data.substr(t3 + 1));
9671
+ let h2 = r2, l2 = true;
9672
+ a2 !== -1 && (h2 = r2.substring(0, a2), r2 = r2.substring(a2 + 1).trimStart());
9673
+ const p2 = h2;
9674
+ if (i2) {
9675
+ const t3 = h2.indexOf(":");
9676
+ t3 !== -1 && (h2 = h2.substr(t3 + 1), l2 = h2 !== s2.data.substr(t3 + 1));
9387
9677
  }
9388
- return { tagName: l2, tagExp: r2, closeIndex: o2, attrExpPresent: u2, rawTagName: d2 };
9678
+ return { tagName: h2, tagExp: r2, closeIndex: o2, attrExpPresent: l2, rawTagName: p2 };
9389
9679
  }
9390
- function q(t2, e2, n2) {
9391
- const i2 = n2;
9680
+ function nt(t2, e2, i2) {
9681
+ const n2 = i2;
9392
9682
  let s2 = 1;
9393
- for (;n2 < t2.length; n2++)
9394
- if (t2[n2] === "<")
9395
- if (t2[n2 + 1] === "/") {
9396
- const r2 = z2(t2, ">", n2, `${e2} is not closed`);
9397
- if (t2.substring(n2 + 2, r2).trim() === e2 && (s2--, s2 === 0))
9398
- return { tagContent: t2.substring(i2, n2), i: r2 };
9399
- n2 = r2;
9400
- } else if (t2[n2 + 1] === "?")
9401
- n2 = z2(t2, "?>", n2 + 1, "StopNode is not closed.");
9402
- else if (t2.substr(n2 + 1, 3) === "!--")
9403
- n2 = z2(t2, "-->", n2 + 3, "StopNode is not closed.");
9404
- else if (t2.substr(n2 + 1, 2) === "![")
9405
- n2 = z2(t2, "]]>", n2, "StopNode is not closed.") - 2;
9683
+ for (;i2 < t2.length; i2++)
9684
+ if (t2[i2] === "<")
9685
+ if (t2[i2 + 1] === "/") {
9686
+ const r2 = et(t2, ">", i2, `${e2} is not closed`);
9687
+ if (t2.substring(i2 + 2, r2).trim() === e2 && (s2--, s2 === 0))
9688
+ return { tagContent: t2.substring(n2, i2), i: r2 };
9689
+ i2 = r2;
9690
+ } else if (t2[i2 + 1] === "?")
9691
+ i2 = et(t2, "?>", i2 + 1, "StopNode is not closed.");
9692
+ else if (t2.substr(i2 + 1, 3) === "!--")
9693
+ i2 = et(t2, "-->", i2 + 3, "StopNode is not closed.");
9694
+ else if (t2.substr(i2 + 1, 2) === "![")
9695
+ i2 = et(t2, "]]>", i2, "StopNode is not closed.") - 2;
9406
9696
  else {
9407
- const i3 = W(t2, n2, ">");
9408
- i3 && ((i3 && i3.tagName) === e2 && i3.tagExp[i3.tagExp.length - 1] !== "/" && s2++, n2 = i3.closeIndex);
9697
+ const n3 = it(t2, i2, ">");
9698
+ n3 && ((n3 && n3.tagName) === e2 && n3.tagExp[n3.tagExp.length - 1] !== "/" && s2++, i2 = n3.closeIndex);
9409
9699
  }
9410
9700
  }
9411
- function Z(t2, e2, n2) {
9701
+ function st(t2, e2, i2) {
9412
9702
  if (e2 && typeof t2 == "string") {
9413
9703
  const e3 = t2.trim();
9414
9704
  return e3 === "true" || e3 !== "false" && function(t3, e4 = {}) {
9415
- if (e4 = Object.assign({}, D, e4), !t3 || typeof t3 != "string")
9705
+ if (e4 = Object.assign({}, k, e4), !t3 || typeof t3 != "string")
9416
9706
  return t3;
9417
- let n3 = t3.trim();
9418
- if (e4.skipLike !== undefined && e4.skipLike.test(n3))
9707
+ let i3 = t3.trim();
9708
+ if (e4.skipLike !== undefined && e4.skipLike.test(i3))
9419
9709
  return t3;
9420
9710
  if (t3 === "0")
9421
9711
  return 0;
9422
- if (e4.hex && $.test(n3))
9712
+ if (e4.hex && D.test(i3))
9423
9713
  return function(t4) {
9424
9714
  if (parseInt)
9425
9715
  return parseInt(t4, 16);
@@ -9428,99 +9718,145 @@ var require_fxp = __commonJS((exports, module) => {
9428
9718
  if (window && window.parseInt)
9429
9719
  return window.parseInt(t4, 16);
9430
9720
  throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
9431
- }(n3);
9432
- if (n3.includes("e") || n3.includes("E"))
9433
- return function(t4, e5, n4) {
9434
- if (!n4.eNotation)
9721
+ }(i3);
9722
+ if (isFinite(i3)) {
9723
+ if (i3.includes("e") || i3.includes("E"))
9724
+ return function(t4, e5, i4) {
9725
+ if (!i4.eNotation)
9726
+ return t4;
9727
+ const n3 = e5.match(F);
9728
+ if (n3) {
9729
+ let s2 = n3[1] || "";
9730
+ const r2 = n3[3].indexOf("e") === -1 ? "E" : "e", o2 = n3[2], a2 = s2 ? t4[o2.length + 1] === r2 : t4[o2.length] === r2;
9731
+ return o2.length > 1 && a2 ? t4 : (o2.length !== 1 || !n3[3].startsWith(`.${r2}`) && n3[3][0] !== r2) && o2.length > 0 ? i4.leadingZeros && !a2 ? (e5 = (n3[1] || "") + n3[3], Number(e5)) : t4 : Number(e5);
9732
+ }
9435
9733
  return t4;
9436
- const i3 = e5.match(j);
9437
- if (i3) {
9438
- let s2 = i3[1] || "";
9439
- const r2 = i3[3].indexOf("e") === -1 ? "E" : "e", o2 = i3[2], a2 = s2 ? t4[o2.length + 1] === r2 : t4[o2.length] === r2;
9440
- return o2.length > 1 && a2 ? t4 : o2.length !== 1 || !i3[3].startsWith(`.${r2}`) && i3[3][0] !== r2 ? n4.leadingZeros && !a2 ? (e5 = (i3[1] || "") + i3[3], Number(e5)) : t4 : Number(e5);
9441
- }
9442
- return t4;
9443
- }(t3, n3, e4);
9444
- {
9445
- const s2 = V.exec(n3);
9446
- if (s2) {
9447
- const r2 = s2[1] || "", o2 = s2[2];
9448
- let a2 = (i2 = s2[3]) && i2.indexOf(".") !== -1 ? ((i2 = i2.replace(/0+$/, "")) === "." ? i2 = "0" : i2[0] === "." ? i2 = "0" + i2 : i2[i2.length - 1] === "." && (i2 = i2.substring(0, i2.length - 1)), i2) : i2;
9449
- const l2 = r2 ? t3[o2.length + 1] === "." : t3[o2.length] === ".";
9450
- if (!e4.leadingZeros && (o2.length > 1 || o2.length === 1 && !l2))
9451
- return t3;
9452
- {
9453
- const i3 = Number(n3), s3 = String(i3);
9454
- if (i3 === 0)
9455
- return i3;
9456
- if (s3.search(/[eE]/) !== -1)
9457
- return e4.eNotation ? i3 : t3;
9458
- if (n3.indexOf(".") !== -1)
9459
- return s3 === "0" || s3 === a2 || s3 === `${r2}${a2}` ? i3 : t3;
9460
- let l3 = o2 ? a2 : n3;
9461
- return o2 ? l3 === s3 || r2 + l3 === s3 ? i3 : t3 : l3 === s3 || l3 === r2 + s3 ? i3 : t3;
9734
+ }(t3, i3, e4);
9735
+ {
9736
+ const s2 = V.exec(i3);
9737
+ if (s2) {
9738
+ const r2 = s2[1] || "", o2 = s2[2];
9739
+ let a2 = (n2 = s2[3]) && n2.indexOf(".") !== -1 ? ((n2 = n2.replace(/0+$/, "")) === "." ? n2 = "0" : n2[0] === "." ? n2 = "0" + n2 : n2[n2.length - 1] === "." && (n2 = n2.substring(0, n2.length - 1)), n2) : n2;
9740
+ const h2 = r2 ? t3[o2.length + 1] === "." : t3[o2.length] === ".";
9741
+ if (!e4.leadingZeros && (o2.length > 1 || o2.length === 1 && !h2))
9742
+ return t3;
9743
+ {
9744
+ const n3 = Number(i3), s3 = String(n3);
9745
+ if (n3 === 0)
9746
+ return n3;
9747
+ if (s3.search(/[eE]/) !== -1)
9748
+ return e4.eNotation ? n3 : t3;
9749
+ if (i3.indexOf(".") !== -1)
9750
+ return s3 === "0" || s3 === a2 || s3 === `${r2}${a2}` ? n3 : t3;
9751
+ let h3 = o2 ? a2 : i3;
9752
+ return o2 ? h3 === s3 || r2 + h3 === s3 ? n3 : t3 : h3 === s3 || h3 === r2 + s3 ? n3 : t3;
9753
+ }
9462
9754
  }
9755
+ return t3;
9463
9756
  }
9464
- return t3;
9465
9757
  }
9466
- var i2;
9467
- }(t2, n2);
9758
+ var n2;
9759
+ return function(t4, e5, i4) {
9760
+ const n3 = e5 === 1 / 0;
9761
+ switch (i4.infinity.toLowerCase()) {
9762
+ case "null":
9763
+ return null;
9764
+ case "infinity":
9765
+ return e5;
9766
+ case "string":
9767
+ return n3 ? "Infinity" : "-Infinity";
9768
+ default:
9769
+ return t4;
9770
+ }
9771
+ }(t3, Number(i3), e4);
9772
+ }(t2, i2);
9468
9773
  }
9469
9774
  return t2 !== undefined ? t2 : "";
9470
9775
  }
9471
- function K(t2, e2, n2) {
9472
- const i2 = Number.parseInt(t2, e2);
9473
- return i2 >= 0 && i2 <= 1114111 ? String.fromCodePoint(i2) : n2 + t2 + ";";
9474
- }
9475
- const Q = I.getMetaDataSymbol();
9476
- function J(t2, e2) {
9477
- return H(t2, e2);
9478
- }
9479
- function H(t2, e2, n2) {
9480
- let i2;
9481
- const s2 = {};
9482
- for (let r2 = 0;r2 < t2.length; r2++) {
9483
- const o2 = t2[r2], a2 = tt(o2);
9484
- let l2 = "";
9485
- if (l2 = n2 === undefined ? a2 : n2 + "." + a2, a2 === e2.textNodeName)
9486
- i2 === undefined ? i2 = o2[a2] : i2 += "" + o2[a2];
9776
+ function rt(t2, e2, i2) {
9777
+ const n2 = Number.parseInt(t2, e2);
9778
+ return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
9779
+ }
9780
+ function ot(t2, e2, i2, n2) {
9781
+ if (t2) {
9782
+ const n3 = t2(e2);
9783
+ i2 === e2 && (i2 = n3), e2 = n3;
9784
+ }
9785
+ return { tagName: e2 = at(e2, n2), tagExp: i2 };
9786
+ }
9787
+ function at(t2, e2) {
9788
+ if (a.includes(t2))
9789
+ throw new Error(`[SECURITY] Invalid name: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
9790
+ return o.includes(t2) ? e2.onDangerousProperty(t2) : t2;
9791
+ }
9792
+ const ht = $.getMetaDataSymbol();
9793
+ function lt(t2, e2) {
9794
+ if (!t2 || typeof t2 != "object")
9795
+ return {};
9796
+ if (!e2)
9797
+ return t2;
9798
+ const i2 = {};
9799
+ for (const n2 in t2)
9800
+ n2.startsWith(e2) ? i2[n2.substring(e2.length)] = t2[n2] : i2[n2] = t2[n2];
9801
+ return i2;
9802
+ }
9803
+ function pt(t2, e2, i2, n2) {
9804
+ return ut(t2, e2, i2, n2);
9805
+ }
9806
+ function ut(t2, e2, i2, n2) {
9807
+ let s2;
9808
+ const r2 = {};
9809
+ for (let o2 = 0;o2 < t2.length; o2++) {
9810
+ const a2 = t2[o2], h2 = ct(a2);
9811
+ if (h2 !== undefined && h2 !== e2.textNodeName) {
9812
+ const t3 = lt(a2[":@"] || {}, e2.attributeNamePrefix);
9813
+ i2.push(h2, t3);
9814
+ }
9815
+ if (h2 === e2.textNodeName)
9816
+ s2 === undefined ? s2 = a2[h2] : s2 += "" + a2[h2];
9487
9817
  else {
9488
- if (a2 === undefined)
9818
+ if (h2 === undefined)
9489
9819
  continue;
9490
- if (o2[a2]) {
9491
- let t3 = H(o2[a2], e2, l2);
9492
- const n3 = nt(t3, e2);
9493
- o2[":@"] ? et(t3, o2[":@"], l2, e2) : Object.keys(t3).length !== 1 || t3[e2.textNodeName] === undefined || e2.alwaysCreateTextNode ? Object.keys(t3).length === 0 && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], o2[Q] !== undefined && typeof t3 == "object" && t3 !== null && (t3[Q] = o2[Q]), s2[a2] !== undefined && Object.prototype.hasOwnProperty.call(s2, a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, n3) ? s2[a2] = [t3] : s2[a2] = t3;
9820
+ if (a2[h2]) {
9821
+ let t3 = ut(a2[h2], e2, i2, n2);
9822
+ const s3 = ft(t3, e2);
9823
+ if (a2[":@"] ? dt(t3, a2[":@"], n2, e2) : Object.keys(t3).length !== 1 || t3[e2.textNodeName] === undefined || e2.alwaysCreateTextNode ? Object.keys(t3).length === 0 && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], a2[ht] !== undefined && typeof t3 == "object" && t3 !== null && (t3[ht] = a2[ht]), r2[h2] !== undefined && Object.prototype.hasOwnProperty.call(r2, h2))
9824
+ Array.isArray(r2[h2]) || (r2[h2] = [r2[h2]]), r2[h2].push(t3);
9825
+ else {
9826
+ const i3 = e2.jPath ? n2.toString() : n2;
9827
+ e2.isArray(h2, i3, s3) ? r2[h2] = [t3] : r2[h2] = t3;
9828
+ }
9829
+ h2 !== undefined && h2 !== e2.textNodeName && i2.pop();
9494
9830
  }
9495
9831
  }
9496
9832
  }
9497
- return typeof i2 == "string" ? i2.length > 0 && (s2[e2.textNodeName] = i2) : i2 !== undefined && (s2[e2.textNodeName] = i2), s2;
9833
+ return typeof s2 == "string" ? s2.length > 0 && (r2[e2.textNodeName] = s2) : s2 !== undefined && (r2[e2.textNodeName] = s2), r2;
9498
9834
  }
9499
- function tt(t2) {
9835
+ function ct(t2) {
9500
9836
  const e2 = Object.keys(t2);
9501
9837
  for (let t3 = 0;t3 < e2.length; t3++) {
9502
- const n2 = e2[t3];
9503
- if (n2 !== ":@")
9504
- return n2;
9838
+ const i2 = e2[t3];
9839
+ if (i2 !== ":@")
9840
+ return i2;
9505
9841
  }
9506
9842
  }
9507
- function et(t2, e2, n2, i2) {
9843
+ function dt(t2, e2, i2, n2) {
9508
9844
  if (e2) {
9509
9845
  const s2 = Object.keys(e2), r2 = s2.length;
9510
9846
  for (let o2 = 0;o2 < r2; o2++) {
9511
- const r3 = s2[o2];
9512
- i2.isArray(r3, n2 + "." + r3, true, true) ? t2[r3] = [e2[r3]] : t2[r3] = e2[r3];
9847
+ const r3 = s2[o2], a2 = r3.startsWith(n2.attributeNamePrefix) ? r3.substring(n2.attributeNamePrefix.length) : r3, h2 = n2.jPath ? i2.toString() + "." + a2 : i2;
9848
+ n2.isArray(r3, h2, true, true) ? t2[r3] = [e2[r3]] : t2[r3] = e2[r3];
9513
9849
  }
9514
9850
  }
9515
9851
  }
9516
- function nt(t2, e2) {
9517
- const { textNodeName: n2 } = e2, i2 = Object.keys(t2).length;
9518
- return i2 === 0 || !(i2 !== 1 || !t2[n2] && typeof t2[n2] != "boolean" && t2[n2] !== 0);
9852
+ function ft(t2, e2) {
9853
+ const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
9854
+ return n2 === 0 || !(n2 !== 1 || !t2[i2] && typeof t2[i2] != "boolean" && t2[i2] !== 0);
9519
9855
  }
9520
9856
 
9521
- class it {
9857
+ class gt3 {
9522
9858
  constructor(t2) {
9523
- this.externalEntities = {}, this.options = v(t2);
9859
+ this.externalEntities = {}, this.options = O(t2);
9524
9860
  }
9525
9861
  parse(t2, e2) {
9526
9862
  if (typeof t2 != "string" && t2.toString)
@@ -9529,14 +9865,14 @@ var require_fxp = __commonJS((exports, module) => {
9529
9865
  throw new Error("XML data is accepted in String or Bytes[] form.");
9530
9866
  if (e2) {
9531
9867
  e2 === true && (e2 = {});
9532
- const n3 = a(t2, e2);
9533
- if (n3 !== true)
9534
- throw Error(`${n3.err.msg}:${n3.err.line}:${n3.err.col}`);
9868
+ const i3 = l(t2, e2);
9869
+ if (i3 !== true)
9870
+ throw Error(`${i3.err.msg}:${i3.err.line}:${i3.err.col}`);
9535
9871
  }
9536
- const n2 = new L(this.options);
9537
- n2.addExternalEntities(this.externalEntities);
9538
- const i2 = n2.parseXml(t2);
9539
- return this.options.preserveOrder || i2 === undefined ? i2 : J(i2, this.options);
9872
+ const i2 = new W(this.options);
9873
+ i2.addExternalEntities(this.externalEntities);
9874
+ const n2 = i2.parseXml(t2);
9875
+ return this.options.preserveOrder || n2 === undefined ? n2 : pt(n2, this.options, i2.matcher, i2.readonlyMatcher);
9540
9876
  }
9541
9877
  addEntity(t2, e2) {
9542
9878
  if (e2.indexOf("&") !== -1)
@@ -9548,215 +9884,388 @@ var require_fxp = __commonJS((exports, module) => {
9548
9884
  this.externalEntities[t2] = e2;
9549
9885
  }
9550
9886
  static getMetaDataSymbol() {
9551
- return I.getMetaDataSymbol();
9887
+ return $.getMetaDataSymbol();
9552
9888
  }
9553
9889
  }
9554
- function st(t2, e2) {
9555
- let n2 = "";
9556
- return e2.format && e2.indentBy.length > 0 && (n2 = `
9557
- `), rt(t2, e2, "", n2);
9890
+ function mt(t2, e2) {
9891
+ let i2 = "";
9892
+ e2.format && e2.indentBy.length > 0 && (i2 = `
9893
+ `);
9894
+ const n2 = [];
9895
+ if (e2.stopNodes && Array.isArray(e2.stopNodes))
9896
+ for (let t3 = 0;t3 < e2.stopNodes.length; t3++) {
9897
+ const i3 = e2.stopNodes[t3];
9898
+ typeof i3 == "string" ? n2.push(new R(i3)) : i3 instanceof R && n2.push(i3);
9899
+ }
9900
+ return xt(t2, e2, i2, new G, n2);
9558
9901
  }
9559
- function rt(t2, e2, n2, i2) {
9560
- let s2 = "", r2 = false;
9902
+ function xt(t2, e2, i2, n2, s2) {
9903
+ let r2 = "", o2 = false;
9904
+ if (e2.maxNestedTags && n2.getDepth() > e2.maxNestedTags)
9905
+ throw new Error("Maximum nested tags exceeded");
9561
9906
  if (!Array.isArray(t2)) {
9562
9907
  if (t2 != null) {
9563
- let n3 = t2.toString();
9564
- return n3 = ut(n3, e2), n3;
9908
+ let i3 = t2.toString();
9909
+ return i3 = Tt(i3, e2), i3;
9565
9910
  }
9566
9911
  return "";
9567
9912
  }
9568
- for (let o2 = 0;o2 < t2.length; o2++) {
9569
- const a2 = t2[o2], l2 = ot(a2);
9913
+ for (let a2 = 0;a2 < t2.length; a2++) {
9914
+ const h2 = t2[a2], l2 = yt(h2);
9570
9915
  if (l2 === undefined)
9571
9916
  continue;
9572
- let u2 = "";
9573
- if (u2 = n2.length === 0 ? l2 : `${n2}.${l2}`, l2 === e2.textNodeName) {
9574
- let t3 = a2[l2];
9575
- lt(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ut(t3, e2)), r2 && (s2 += i2), s2 += t3, r2 = false;
9917
+ const p2 = Nt(h2[":@"], e2);
9918
+ n2.push(l2, p2);
9919
+ const u2 = vt(n2, s2);
9920
+ if (l2 === e2.textNodeName) {
9921
+ let t3 = h2[l2];
9922
+ u2 || (t3 = e2.tagValueProcessor(l2, t3), t3 = Tt(t3, e2)), o2 && (r2 += i2), r2 += t3, o2 = false, n2.pop();
9576
9923
  continue;
9577
9924
  }
9578
9925
  if (l2 === e2.cdataPropName) {
9579
- r2 && (s2 += i2), s2 += `<![CDATA[${a2[l2][0][e2.textNodeName]}]]>`, r2 = false;
9926
+ o2 && (r2 += i2), r2 += `<![CDATA[${h2[l2][0][e2.textNodeName]}]]>`, o2 = false, n2.pop();
9580
9927
  continue;
9581
9928
  }
9582
9929
  if (l2 === e2.commentPropName) {
9583
- s2 += i2 + `<!--${a2[l2][0][e2.textNodeName]}-->`, r2 = true;
9930
+ r2 += i2 + `<!--${h2[l2][0][e2.textNodeName]}-->`, o2 = true, n2.pop();
9584
9931
  continue;
9585
9932
  }
9586
9933
  if (l2[0] === "?") {
9587
- const t3 = at(a2[":@"], e2), n3 = l2 === "?xml" ? "" : i2;
9588
- let o3 = a2[l2][0][e2.textNodeName];
9589
- o3 = o3.length !== 0 ? " " + o3 : "", s2 += n3 + `<${l2}${o3}${t3}?>`, r2 = true;
9934
+ const t3 = wt(h2[":@"], e2, u2), s3 = l2 === "?xml" ? "" : i2;
9935
+ let a3 = h2[l2][0][e2.textNodeName];
9936
+ a3 = a3.length !== 0 ? " " + a3 : "", r2 += s3 + `<${l2}${a3}${t3}?>`, o2 = true, n2.pop();
9590
9937
  continue;
9591
9938
  }
9592
- let d2 = i2;
9593
- d2 !== "" && (d2 += e2.indentBy);
9594
- const h2 = i2 + `<${l2}${at(a2[":@"], e2)}`, p2 = rt(a2[l2], e2, u2, d2);
9595
- e2.unpairedTags.indexOf(l2) !== -1 ? e2.suppressUnpairedNode ? s2 += h2 + ">" : s2 += h2 + "/>" : p2 && p2.length !== 0 || !e2.suppressEmptyNode ? p2 && p2.endsWith(">") ? s2 += h2 + `>${p2}${i2}</${l2}>` : (s2 += h2 + ">", p2 && i2 !== "" && (p2.includes("/>") || p2.includes("</")) ? s2 += i2 + e2.indentBy + p2 + i2 : s2 += p2, s2 += `</${l2}>`) : s2 += h2 + "/>", r2 = true;
9939
+ let c2 = i2;
9940
+ c2 !== "" && (c2 += e2.indentBy);
9941
+ const d2 = i2 + `<${l2}${wt(h2[":@"], e2, u2)}`;
9942
+ let f2;
9943
+ f2 = u2 ? bt(h2[l2], e2) : xt(h2[l2], e2, c2, n2, s2), e2.unpairedTags.indexOf(l2) !== -1 ? e2.suppressUnpairedNode ? r2 += d2 + ">" : r2 += d2 + "/>" : f2 && f2.length !== 0 || !e2.suppressEmptyNode ? f2 && f2.endsWith(">") ? r2 += d2 + `>${f2}${i2}</${l2}>` : (r2 += d2 + ">", f2 && i2 !== "" && (f2.includes("/>") || f2.includes("</")) ? r2 += i2 + e2.indentBy + f2 + i2 : r2 += f2, r2 += `</${l2}>`) : r2 += d2 + "/>", o2 = true, n2.pop();
9596
9944
  }
9597
- return s2;
9945
+ return r2;
9598
9946
  }
9599
- function ot(t2) {
9947
+ function Nt(t2, e2) {
9948
+ if (!t2 || e2.ignoreAttributes)
9949
+ return null;
9950
+ const i2 = {};
9951
+ let n2 = false;
9952
+ for (let s2 in t2)
9953
+ Object.prototype.hasOwnProperty.call(t2, s2) && (i2[s2.startsWith(e2.attributeNamePrefix) ? s2.substr(e2.attributeNamePrefix.length) : s2] = t2[s2], n2 = true);
9954
+ return n2 ? i2 : null;
9955
+ }
9956
+ function bt(t2, e2) {
9957
+ if (!Array.isArray(t2))
9958
+ return t2 != null ? t2.toString() : "";
9959
+ let i2 = "";
9960
+ for (let n2 = 0;n2 < t2.length; n2++) {
9961
+ const s2 = t2[n2], r2 = yt(s2);
9962
+ if (r2 === e2.textNodeName)
9963
+ i2 += s2[r2];
9964
+ else if (r2 === e2.cdataPropName)
9965
+ i2 += s2[r2][0][e2.textNodeName];
9966
+ else if (r2 === e2.commentPropName)
9967
+ i2 += s2[r2][0][e2.textNodeName];
9968
+ else {
9969
+ if (r2 && r2[0] === "?")
9970
+ continue;
9971
+ if (r2) {
9972
+ const t3 = Et(s2[":@"], e2), n3 = bt(s2[r2], e2);
9973
+ n3 && n3.length !== 0 ? i2 += `<${r2}${t3}>${n3}</${r2}>` : i2 += `<${r2}${t3}/>`;
9974
+ }
9975
+ }
9976
+ }
9977
+ return i2;
9978
+ }
9979
+ function Et(t2, e2) {
9980
+ let i2 = "";
9981
+ if (t2 && !e2.ignoreAttributes)
9982
+ for (let n2 in t2) {
9983
+ if (!Object.prototype.hasOwnProperty.call(t2, n2))
9984
+ continue;
9985
+ let s2 = t2[n2];
9986
+ s2 === true && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
9987
+ }
9988
+ return i2;
9989
+ }
9990
+ function yt(t2) {
9600
9991
  const e2 = Object.keys(t2);
9601
- for (let n2 = 0;n2 < e2.length; n2++) {
9602
- const i2 = e2[n2];
9603
- if (Object.prototype.hasOwnProperty.call(t2, i2) && i2 !== ":@")
9604
- return i2;
9992
+ for (let i2 = 0;i2 < e2.length; i2++) {
9993
+ const n2 = e2[i2];
9994
+ if (Object.prototype.hasOwnProperty.call(t2, n2) && n2 !== ":@")
9995
+ return n2;
9605
9996
  }
9606
9997
  }
9607
- function at(t2, e2) {
9998
+ function wt(t2, e2, i2) {
9608
9999
  let n2 = "";
9609
10000
  if (t2 && !e2.ignoreAttributes)
9610
- for (let i2 in t2) {
9611
- if (!Object.prototype.hasOwnProperty.call(t2, i2))
10001
+ for (let s2 in t2) {
10002
+ if (!Object.prototype.hasOwnProperty.call(t2, s2))
9612
10003
  continue;
9613
- let s2 = e2.attributeValueProcessor(i2, t2[i2]);
9614
- s2 = ut(s2, e2), s2 === true && e2.suppressBooleanAttributes ? n2 += ` ${i2.substr(e2.attributeNamePrefix.length)}` : n2 += ` ${i2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
10004
+ let r2;
10005
+ i2 ? r2 = t2[s2] : (r2 = e2.attributeValueProcessor(s2, t2[s2]), r2 = Tt(r2, e2)), r2 === true && e2.suppressBooleanAttributes ? n2 += ` ${s2.substr(e2.attributeNamePrefix.length)}` : n2 += ` ${s2.substr(e2.attributeNamePrefix.length)}="${r2}"`;
9615
10006
  }
9616
10007
  return n2;
9617
10008
  }
9618
- function lt(t2, e2) {
9619
- let n2 = (t2 = t2.substr(0, t2.length - e2.textNodeName.length - 1)).substr(t2.lastIndexOf(".") + 1);
9620
- for (let i2 in e2.stopNodes)
9621
- if (e2.stopNodes[i2] === t2 || e2.stopNodes[i2] === "*." + n2)
10009
+ function vt(t2, e2) {
10010
+ if (!e2 || e2.length === 0)
10011
+ return false;
10012
+ for (let i2 = 0;i2 < e2.length; i2++)
10013
+ if (t2.matches(e2[i2]))
9622
10014
  return true;
9623
10015
  return false;
9624
10016
  }
9625
- function ut(t2, e2) {
10017
+ function Tt(t2, e2) {
9626
10018
  if (t2 && t2.length > 0 && e2.processEntities)
9627
- for (let n2 = 0;n2 < e2.entities.length; n2++) {
9628
- const i2 = e2.entities[n2];
9629
- t2 = t2.replace(i2.regex, i2.val);
10019
+ for (let i2 = 0;i2 < e2.entities.length; i2++) {
10020
+ const n2 = e2.entities[i2];
10021
+ t2 = t2.replace(n2.regex, n2.val);
9630
10022
  }
9631
10023
  return t2;
9632
10024
  }
9633
- const dt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
10025
+ const Pt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
9634
10026
  return e2;
9635
10027
  }, attributeValueProcessor: function(t2, e2) {
9636
10028
  return e2;
9637
- }, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&amp;" }, { regex: new RegExp(">", "g"), val: "&gt;" }, { regex: new RegExp("<", "g"), val: "&lt;" }, { regex: new RegExp("'", "g"), val: "&apos;" }, { regex: new RegExp('"', "g"), val: "&quot;" }], processEntities: true, stopNodes: [], oneListGroup: false };
9638
- function ht(t2) {
10029
+ }, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&amp;" }, { regex: new RegExp(">", "g"), val: "&gt;" }, { regex: new RegExp("<", "g"), val: "&lt;" }, { regex: new RegExp("'", "g"), val: "&apos;" }, { regex: new RegExp('"', "g"), val: "&quot;" }], processEntities: true, stopNodes: [], oneListGroup: false, maxNestedTags: 100, jPath: true };
10030
+ function St(t2) {
10031
+ if (this.options = Object.assign({}, Pt, t2), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((t3) => typeof t3 == "string" && t3.startsWith("*.") ? ".." + t3.substring(2) : t3)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes))
10032
+ for (let t3 = 0;t3 < this.options.stopNodes.length; t3++) {
10033
+ const e3 = this.options.stopNodes[t3];
10034
+ typeof e3 == "string" ? this.stopNodeExpressions.push(new R(e3)) : e3 instanceof R && this.stopNodeExpressions.push(e3);
10035
+ }
9639
10036
  var e2;
9640
- this.options = Object.assign({}, dt, t2), this.options.ignoreAttributes === true || this.options.attributesGroupName ? this.isAttribute = function() {
10037
+ this.options.ignoreAttributes === true || this.options.attributesGroupName ? this.isAttribute = function() {
9641
10038
  return false;
9642
10039
  } : (this.ignoreAttributesFn = typeof (e2 = this.options.ignoreAttributes) == "function" ? e2 : Array.isArray(e2) ? (t3) => {
9643
- for (const n2 of e2) {
9644
- if (typeof n2 == "string" && t3 === n2)
10040
+ for (const i2 of e2) {
10041
+ if (typeof i2 == "string" && t3 === i2)
9645
10042
  return true;
9646
- if (n2 instanceof RegExp && n2.test(t3))
10043
+ if (i2 instanceof RegExp && i2.test(t3))
9647
10044
  return true;
9648
10045
  }
9649
- } : () => false, this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = ft), this.processTextOrObjNode = pt, this.options.format ? (this.indentate = ct, this.tagEndChar = `>
10046
+ } : () => false, this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Ct), this.processTextOrObjNode = At, this.options.format ? (this.indentate = Ot, this.tagEndChar = `>
9650
10047
  `, this.newLine = `
9651
10048
  `) : (this.indentate = function() {
9652
10049
  return "";
9653
10050
  }, this.tagEndChar = ">", this.newLine = "");
9654
10051
  }
9655
- function pt(t2, e2, n2, i2) {
9656
- const s2 = this.j2x(t2, n2 + 1, i2.concat(e2));
9657
- return t2[this.options.textNodeName] !== undefined && Object.keys(t2).length === 1 ? this.buildTextValNode(t2[this.options.textNodeName], e2, s2.attrStr, n2) : this.buildObjectNode(s2.val, e2, s2.attrStr, n2);
10052
+ function At(t2, e2, i2, n2) {
10053
+ const s2 = this.extractAttributes(t2);
10054
+ if (n2.push(e2, s2), this.checkStopNode(n2)) {
10055
+ const s3 = this.buildRawContent(t2), r3 = this.buildAttributesForStopNode(t2);
10056
+ return n2.pop(), this.buildObjectNode(s3, e2, r3, i2);
10057
+ }
10058
+ const r2 = this.j2x(t2, i2 + 1, n2);
10059
+ return n2.pop(), t2[this.options.textNodeName] !== undefined && Object.keys(t2).length === 1 ? this.buildTextValNode(t2[this.options.textNodeName], e2, r2.attrStr, i2, n2) : this.buildObjectNode(r2.val, e2, r2.attrStr, i2);
9658
10060
  }
9659
- function ct(t2) {
10061
+ function Ot(t2) {
9660
10062
  return this.options.indentBy.repeat(t2);
9661
10063
  }
9662
- function ft(t2) {
10064
+ function Ct(t2) {
9663
10065
  return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
9664
10066
  }
9665
- ht.prototype.build = function(t2) {
9666
- return this.options.preserveOrder ? st(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
9667
- }, ht.prototype.j2x = function(t2, e2, n2) {
9668
- let i2 = "", s2 = "";
9669
- const r2 = n2.join(".");
9670
- for (let o2 in t2)
9671
- if (Object.prototype.hasOwnProperty.call(t2, o2))
9672
- if (t2[o2] === undefined)
9673
- this.isAttribute(o2) && (s2 += "");
9674
- else if (t2[o2] === null)
9675
- this.isAttribute(o2) || o2 === this.options.cdataPropName ? s2 += "" : o2[0] === "?" ? s2 += this.indentate(e2) + "<" + o2 + "?" + this.tagEndChar : s2 += this.indentate(e2) + "<" + o2 + "/" + this.tagEndChar;
9676
- else if (t2[o2] instanceof Date)
9677
- s2 += this.buildTextValNode(t2[o2], o2, "", e2);
9678
- else if (typeof t2[o2] != "object") {
9679
- const n3 = this.isAttribute(o2);
9680
- if (n3 && !this.ignoreAttributesFn(n3, r2))
9681
- i2 += this.buildAttrPairStr(n3, "" + t2[o2]);
9682
- else if (!n3)
9683
- if (o2 === this.options.textNodeName) {
9684
- let e3 = this.options.tagValueProcessor(o2, "" + t2[o2]);
10067
+ St.prototype.build = function(t2) {
10068
+ if (this.options.preserveOrder)
10069
+ return mt(t2, this.options);
10070
+ {
10071
+ Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 });
10072
+ const e2 = new G;
10073
+ return this.j2x(t2, 0, e2).val;
10074
+ }
10075
+ }, St.prototype.j2x = function(t2, e2, i2) {
10076
+ let n2 = "", s2 = "";
10077
+ if (this.options.maxNestedTags && i2.getDepth() >= this.options.maxNestedTags)
10078
+ throw new Error("Maximum nested tags exceeded");
10079
+ const r2 = this.options.jPath ? i2.toString() : i2, o2 = this.checkStopNode(i2);
10080
+ for (let a2 in t2)
10081
+ if (Object.prototype.hasOwnProperty.call(t2, a2))
10082
+ if (t2[a2] === undefined)
10083
+ this.isAttribute(a2) && (s2 += "");
10084
+ else if (t2[a2] === null)
10085
+ this.isAttribute(a2) || a2 === this.options.cdataPropName ? s2 += "" : a2[0] === "?" ? s2 += this.indentate(e2) + "<" + a2 + "?" + this.tagEndChar : s2 += this.indentate(e2) + "<" + a2 + "/" + this.tagEndChar;
10086
+ else if (t2[a2] instanceof Date)
10087
+ s2 += this.buildTextValNode(t2[a2], a2, "", e2, i2);
10088
+ else if (typeof t2[a2] != "object") {
10089
+ const h2 = this.isAttribute(a2);
10090
+ if (h2 && !this.ignoreAttributesFn(h2, r2))
10091
+ n2 += this.buildAttrPairStr(h2, "" + t2[a2], o2);
10092
+ else if (!h2)
10093
+ if (a2 === this.options.textNodeName) {
10094
+ let e3 = this.options.tagValueProcessor(a2, "" + t2[a2]);
9685
10095
  s2 += this.replaceEntitiesValue(e3);
9686
- } else
9687
- s2 += this.buildTextValNode(t2[o2], o2, "", e2);
9688
- } else if (Array.isArray(t2[o2])) {
9689
- const i3 = t2[o2].length;
9690
- let r3 = "", a2 = "";
9691
- for (let l2 = 0;l2 < i3; l2++) {
9692
- const i4 = t2[o2][l2];
9693
- if (i4 === undefined)
10096
+ } else {
10097
+ i2.push(a2);
10098
+ const n3 = this.checkStopNode(i2);
10099
+ if (i2.pop(), n3) {
10100
+ const i3 = "" + t2[a2];
10101
+ s2 += i3 === "" ? this.indentate(e2) + "<" + a2 + this.closeTag(a2) + this.tagEndChar : this.indentate(e2) + "<" + a2 + ">" + i3 + "</" + a2 + this.tagEndChar;
10102
+ } else
10103
+ s2 += this.buildTextValNode(t2[a2], a2, "", e2, i2);
10104
+ }
10105
+ } else if (Array.isArray(t2[a2])) {
10106
+ const n3 = t2[a2].length;
10107
+ let r3 = "", o3 = "";
10108
+ for (let h2 = 0;h2 < n3; h2++) {
10109
+ const n4 = t2[a2][h2];
10110
+ if (n4 === undefined)
9694
10111
  ;
9695
- else if (i4 === null)
9696
- o2[0] === "?" ? s2 += this.indentate(e2) + "<" + o2 + "?" + this.tagEndChar : s2 += this.indentate(e2) + "<" + o2 + "/" + this.tagEndChar;
9697
- else if (typeof i4 == "object")
10112
+ else if (n4 === null)
10113
+ a2[0] === "?" ? s2 += this.indentate(e2) + "<" + a2 + "?" + this.tagEndChar : s2 += this.indentate(e2) + "<" + a2 + "/" + this.tagEndChar;
10114
+ else if (typeof n4 == "object")
9698
10115
  if (this.options.oneListGroup) {
9699
- const t3 = this.j2x(i4, e2 + 1, n2.concat(o2));
9700
- r3 += t3.val, this.options.attributesGroupName && i4.hasOwnProperty(this.options.attributesGroupName) && (a2 += t3.attrStr);
10116
+ i2.push(a2);
10117
+ const t3 = this.j2x(n4, e2 + 1, i2);
10118
+ i2.pop(), r3 += t3.val, this.options.attributesGroupName && n4.hasOwnProperty(this.options.attributesGroupName) && (o3 += t3.attrStr);
9701
10119
  } else
9702
- r3 += this.processTextOrObjNode(i4, o2, e2, n2);
10120
+ r3 += this.processTextOrObjNode(n4, a2, e2, i2);
9703
10121
  else if (this.options.oneListGroup) {
9704
- let t3 = this.options.tagValueProcessor(o2, i4);
10122
+ let t3 = this.options.tagValueProcessor(a2, n4);
9705
10123
  t3 = this.replaceEntitiesValue(t3), r3 += t3;
9706
- } else
9707
- r3 += this.buildTextValNode(i4, o2, "", e2);
10124
+ } else {
10125
+ i2.push(a2);
10126
+ const t3 = this.checkStopNode(i2);
10127
+ if (i2.pop(), t3) {
10128
+ const t4 = "" + n4;
10129
+ r3 += t4 === "" ? this.indentate(e2) + "<" + a2 + this.closeTag(a2) + this.tagEndChar : this.indentate(e2) + "<" + a2 + ">" + t4 + "</" + a2 + this.tagEndChar;
10130
+ } else
10131
+ r3 += this.buildTextValNode(n4, a2, "", e2, i2);
10132
+ }
9708
10133
  }
9709
- this.options.oneListGroup && (r3 = this.buildObjectNode(r3, o2, a2, e2)), s2 += r3;
9710
- } else if (this.options.attributesGroupName && o2 === this.options.attributesGroupName) {
9711
- const e3 = Object.keys(t2[o2]), n3 = e3.length;
9712
- for (let s3 = 0;s3 < n3; s3++)
9713
- i2 += this.buildAttrPairStr(e3[s3], "" + t2[o2][e3[s3]]);
10134
+ this.options.oneListGroup && (r3 = this.buildObjectNode(r3, a2, o3, e2)), s2 += r3;
10135
+ } else if (this.options.attributesGroupName && a2 === this.options.attributesGroupName) {
10136
+ const e3 = Object.keys(t2[a2]), i3 = e3.length;
10137
+ for (let s3 = 0;s3 < i3; s3++)
10138
+ n2 += this.buildAttrPairStr(e3[s3], "" + t2[a2][e3[s3]], o2);
9714
10139
  } else
9715
- s2 += this.processTextOrObjNode(t2[o2], o2, e2, n2);
9716
- return { attrStr: i2, val: s2 };
9717
- }, ht.prototype.buildAttrPairStr = function(t2, e2) {
9718
- return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && e2 === "true" ? " " + t2 : " " + t2 + '="' + e2 + '"';
9719
- }, ht.prototype.buildObjectNode = function(t2, e2, n2, i2) {
10140
+ s2 += this.processTextOrObjNode(t2[a2], a2, e2, i2);
10141
+ return { attrStr: n2, val: s2 };
10142
+ }, St.prototype.buildAttrPairStr = function(t2, e2, i2) {
10143
+ return i2 || (e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2)), this.options.suppressBooleanAttributes && e2 === "true" ? " " + t2 : " " + t2 + '="' + e2 + '"';
10144
+ }, St.prototype.extractAttributes = function(t2) {
10145
+ if (!t2 || typeof t2 != "object")
10146
+ return null;
10147
+ const e2 = {};
10148
+ let i2 = false;
10149
+ if (this.options.attributesGroupName && t2[this.options.attributesGroupName]) {
10150
+ const n2 = t2[this.options.attributesGroupName];
10151
+ for (let t3 in n2)
10152
+ Object.prototype.hasOwnProperty.call(n2, t3) && (e2[t3.startsWith(this.options.attributeNamePrefix) ? t3.substring(this.options.attributeNamePrefix.length) : t3] = n2[t3], i2 = true);
10153
+ } else
10154
+ for (let n2 in t2) {
10155
+ if (!Object.prototype.hasOwnProperty.call(t2, n2))
10156
+ continue;
10157
+ const s2 = this.isAttribute(n2);
10158
+ s2 && (e2[s2] = t2[n2], i2 = true);
10159
+ }
10160
+ return i2 ? e2 : null;
10161
+ }, St.prototype.buildRawContent = function(t2) {
10162
+ if (typeof t2 == "string")
10163
+ return t2;
10164
+ if (typeof t2 != "object" || t2 === null)
10165
+ return String(t2);
10166
+ if (t2[this.options.textNodeName] !== undefined)
10167
+ return t2[this.options.textNodeName];
10168
+ let e2 = "";
10169
+ for (let i2 in t2) {
10170
+ if (!Object.prototype.hasOwnProperty.call(t2, i2))
10171
+ continue;
10172
+ if (this.isAttribute(i2))
10173
+ continue;
10174
+ if (this.options.attributesGroupName && i2 === this.options.attributesGroupName)
10175
+ continue;
10176
+ const n2 = t2[i2];
10177
+ if (i2 === this.options.textNodeName)
10178
+ e2 += n2;
10179
+ else if (Array.isArray(n2)) {
10180
+ for (let t3 of n2)
10181
+ if (typeof t3 == "string" || typeof t3 == "number")
10182
+ e2 += `<${i2}>${t3}</${i2}>`;
10183
+ else if (typeof t3 == "object" && t3 !== null) {
10184
+ const n3 = this.buildRawContent(t3), s2 = this.buildAttributesForStopNode(t3);
10185
+ e2 += n3 === "" ? `<${i2}${s2}/>` : `<${i2}${s2}>${n3}</${i2}>`;
10186
+ }
10187
+ } else if (typeof n2 == "object" && n2 !== null) {
10188
+ const t3 = this.buildRawContent(n2), s2 = this.buildAttributesForStopNode(n2);
10189
+ e2 += t3 === "" ? `<${i2}${s2}/>` : `<${i2}${s2}>${t3}</${i2}>`;
10190
+ } else
10191
+ e2 += `<${i2}>${n2}</${i2}>`;
10192
+ }
10193
+ return e2;
10194
+ }, St.prototype.buildAttributesForStopNode = function(t2) {
10195
+ if (!t2 || typeof t2 != "object")
10196
+ return "";
10197
+ let e2 = "";
10198
+ if (this.options.attributesGroupName && t2[this.options.attributesGroupName]) {
10199
+ const i2 = t2[this.options.attributesGroupName];
10200
+ for (let t3 in i2) {
10201
+ if (!Object.prototype.hasOwnProperty.call(i2, t3))
10202
+ continue;
10203
+ const n2 = t3.startsWith(this.options.attributeNamePrefix) ? t3.substring(this.options.attributeNamePrefix.length) : t3, s2 = i2[t3];
10204
+ s2 === true && this.options.suppressBooleanAttributes ? e2 += " " + n2 : e2 += " " + n2 + '="' + s2 + '"';
10205
+ }
10206
+ } else
10207
+ for (let i2 in t2) {
10208
+ if (!Object.prototype.hasOwnProperty.call(t2, i2))
10209
+ continue;
10210
+ const n2 = this.isAttribute(i2);
10211
+ if (n2) {
10212
+ const s2 = t2[i2];
10213
+ s2 === true && this.options.suppressBooleanAttributes ? e2 += " " + n2 : e2 += " " + n2 + '="' + s2 + '"';
10214
+ }
10215
+ }
10216
+ return e2;
10217
+ }, St.prototype.buildObjectNode = function(t2, e2, i2, n2) {
9720
10218
  if (t2 === "")
9721
- return e2[0] === "?" ? this.indentate(i2) + "<" + e2 + n2 + "?" + this.tagEndChar : this.indentate(i2) + "<" + e2 + n2 + this.closeTag(e2) + this.tagEndChar;
10219
+ return e2[0] === "?" ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
9722
10220
  {
9723
10221
  let s2 = "</" + e2 + this.tagEndChar, r2 = "";
9724
- return e2[0] === "?" && (r2 = "?", s2 = ""), !n2 && n2 !== "" || t2.indexOf("<") !== -1 ? this.options.commentPropName !== false && e2 === this.options.commentPropName && r2.length === 0 ? this.indentate(i2) + `<!--${t2}-->` + this.newLine : this.indentate(i2) + "<" + e2 + n2 + r2 + this.tagEndChar + t2 + this.indentate(i2) + s2 : this.indentate(i2) + "<" + e2 + n2 + r2 + ">" + t2 + s2;
10222
+ return e2[0] === "?" && (r2 = "?", s2 = ""), !i2 && i2 !== "" || t2.indexOf("<") !== -1 ? this.options.commentPropName !== false && e2 === this.options.commentPropName && r2.length === 0 ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
9725
10223
  }
9726
- }, ht.prototype.closeTag = function(t2) {
10224
+ }, St.prototype.closeTag = function(t2) {
9727
10225
  let e2 = "";
9728
10226
  return this.options.unpairedTags.indexOf(t2) !== -1 ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
9729
- }, ht.prototype.buildTextValNode = function(t2, e2, n2, i2) {
10227
+ }, St.prototype.checkStopNode = function(t2) {
10228
+ if (!this.stopNodeExpressions || this.stopNodeExpressions.length === 0)
10229
+ return false;
10230
+ for (let e2 = 0;e2 < this.stopNodeExpressions.length; e2++)
10231
+ if (t2.matches(this.stopNodeExpressions[e2]))
10232
+ return true;
10233
+ return false;
10234
+ }, St.prototype.buildTextValNode = function(t2, e2, i2, n2, s2) {
9730
10235
  if (this.options.cdataPropName !== false && e2 === this.options.cdataPropName)
9731
- return this.indentate(i2) + `<![CDATA[${t2}]]>` + this.newLine;
10236
+ return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
9732
10237
  if (this.options.commentPropName !== false && e2 === this.options.commentPropName)
9733
- return this.indentate(i2) + `<!--${t2}-->` + this.newLine;
10238
+ return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
9734
10239
  if (e2[0] === "?")
9735
- return this.indentate(i2) + "<" + e2 + n2 + "?" + this.tagEndChar;
10240
+ return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
9736
10241
  {
9737
- let s2 = this.options.tagValueProcessor(e2, t2);
9738
- return s2 = this.replaceEntitiesValue(s2), s2 === "" ? this.indentate(i2) + "<" + e2 + n2 + this.closeTag(e2) + this.tagEndChar : this.indentate(i2) + "<" + e2 + n2 + ">" + s2 + "</" + e2 + this.tagEndChar;
10242
+ let s3 = this.options.tagValueProcessor(e2, t2);
10243
+ return s3 = this.replaceEntitiesValue(s3), s3 === "" ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s3 + "</" + e2 + this.tagEndChar;
9739
10244
  }
9740
- }, ht.prototype.replaceEntitiesValue = function(t2) {
10245
+ }, St.prototype.replaceEntitiesValue = function(t2) {
9741
10246
  if (t2 && t2.length > 0 && this.options.processEntities)
9742
10247
  for (let e2 = 0;e2 < this.options.entities.length; e2++) {
9743
- const n2 = this.options.entities[e2];
9744
- t2 = t2.replace(n2.regex, n2.val);
10248
+ const i2 = this.options.entities[e2];
10249
+ t2 = t2.replace(i2.regex, i2.val);
9745
10250
  }
9746
10251
  return t2;
9747
10252
  };
9748
- const gt3 = ht, xt = { validate: a };
10253
+ const $t = St, It = { validate: l };
9749
10254
  module.exports = e;
9750
10255
  })();
9751
10256
  });
9752
10257
 
9753
- // ../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.11/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js
10258
+ // ../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.15/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js
9754
10259
  var require_xml_parser = __commonJS((exports) => {
9755
10260
  Object.defineProperty(exports, "__esModule", { value: true });
9756
10261
  exports.parseXML = parseXML;
9757
10262
  var fast_xml_parser_1 = require_fxp();
9758
10263
  var parser = new fast_xml_parser_1.XMLParser({
9759
10264
  attributeNamePrefix: "",
10265
+ processEntities: {
10266
+ enabled: true,
10267
+ maxTotalExpansions: Infinity
10268
+ },
9760
10269
  htmlEntities: true,
9761
10270
  ignoreAttributes: false,
9762
10271
  ignoreDeclaration: true,
@@ -9764,7 +10273,7 @@ var require_xml_parser = __commonJS((exports) => {
9764
10273
  trimValues: false,
9765
10274
  tagValueProcessor: (_, val) => val.trim() === "" && val.includes(`
9766
10275
  `) ? "" : undefined,
9767
- maxNestedTags: 1024
10276
+ maxNestedTags: Infinity
9768
10277
  });
9769
10278
  parser.addEntity("#xD", "\r");
9770
10279
  parser.addEntity("#10", `
@@ -9774,14 +10283,33 @@ var require_xml_parser = __commonJS((exports) => {
9774
10283
  }
9775
10284
  });
9776
10285
 
9777
- // ../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.11/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
10286
+ // ../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.15/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
9778
10287
  var require_dist_cjs24 = __commonJS((exports) => {
9779
10288
  var xmlParser = require_xml_parser();
10289
+ var ATTR_ESCAPE_RE = /[&<>"]/g;
10290
+ var ATTR_ESCAPE_MAP = {
10291
+ "&": "&amp;",
10292
+ "<": "&lt;",
10293
+ ">": "&gt;",
10294
+ '"': "&quot;"
10295
+ };
9780
10296
  function escapeAttribute(value) {
9781
- return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
9782
- }
10297
+ return value.replace(ATTR_ESCAPE_RE, (ch) => ATTR_ESCAPE_MAP[ch]);
10298
+ }
10299
+ var ELEMENT_ESCAPE_RE = /[&"'<>\r\n\u0085\u2028]/g;
10300
+ var ELEMENT_ESCAPE_MAP = {
10301
+ "&": "&amp;",
10302
+ '"': "&quot;",
10303
+ "'": "&apos;",
10304
+ "<": "&lt;",
10305
+ ">": "&gt;",
10306
+ "\r": "&#x0D;",
10307
+ "\n": "&#x0A;",
10308
+ "…": "&#x85;",
10309
+ "\u2028": "&#x2028;"
10310
+ };
9783
10311
  function escapeElement(value) {
9784
- return value.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\r/g, "&#x0D;").replace(/\n/g, "&#x0A;").replace(/\u0085/g, "&#x85;").replace(/\u2028/, "&#x2028;");
10312
+ return value.replace(ELEMENT_ESCAPE_RE, (ch) => ELEMENT_ESCAPE_MAP[ch]);
9785
10313
  }
9786
10314
 
9787
10315
  class XmlText {
@@ -9885,7 +10413,7 @@ var require_dist_cjs24 = __commonJS((exports) => {
9885
10413
  exports.XmlText = XmlText;
9886
10414
  });
9887
10415
 
9888
- // ../node_modules/.pnpm/@aws-sdk+core@3.973.20/node_modules/@aws-sdk/core/dist-cjs/index.js
10416
+ // ../node_modules/.pnpm/@aws-sdk+core@3.973.23/node_modules/@aws-sdk/core/dist-cjs/index.js
9889
10417
  var require_dist_cjs25 = __commonJS((exports) => {
9890
10418
  var protocolHttp = require_dist_cjs2();
9891
10419
  var core = require_dist_cjs18();
@@ -12987,7 +13515,7 @@ var require_main5 = __commonJS((exports) => {
12987
13515
  } });
12988
13516
  });
12989
13517
 
12990
- // ../node_modules/.pnpm/@aws-sdk+middleware-flexible-checksums@3.974.0/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/getCrc32ChecksumAlgorithmFunction.js
13518
+ // ../node_modules/.pnpm/@aws-sdk+middleware-flexible-checksums@3.974.3/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/getCrc32ChecksumAlgorithmFunction.js
12991
13519
  var require_getCrc32ChecksumAlgorithmFunction = __commonJS((exports) => {
12992
13520
  Object.defineProperty(exports, "__esModule", { value: true });
12993
13521
  exports.getCrc32ChecksumAlgorithmFunction = undefined;
@@ -13017,7 +13545,7 @@ var require_getCrc32ChecksumAlgorithmFunction = __commonJS((exports) => {
13017
13545
  exports.getCrc32ChecksumAlgorithmFunction = getCrc32ChecksumAlgorithmFunction;
13018
13546
  });
13019
13547
 
13020
- // ../node_modules/.pnpm/@aws-sdk+middleware-flexible-checksums@3.974.0/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js
13548
+ // ../node_modules/.pnpm/@aws-sdk+middleware-flexible-checksums@3.974.3/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js
13021
13549
  var require_dist_cjs30 = __commonJS((exports) => {
13022
13550
  var core = require_dist_cjs25();
13023
13551
  var protocolHttp = require_dist_cjs2();
@@ -13753,7 +14281,7 @@ var require_dist_cjs35 = __commonJS((exports) => {
13753
14281
  exports.numberSelector = numberSelector;
13754
14282
  });
13755
14283
 
13756
- // ../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.20/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js
14284
+ // ../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.23/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js
13757
14285
  var require_dist_cjs36 = __commonJS((exports) => {
13758
14286
  var protocolHttp = require_dist_cjs2();
13759
14287
  var smithyClient = require_dist_cjs23();
@@ -15463,7 +15991,7 @@ var require_dist_cjs40 = __commonJS((exports) => {
15463
15991
  exports.TIMEOUT_RETRY_COST = TIMEOUT_RETRY_COST;
15464
15992
  });
15465
15993
 
15466
- // ../node_modules/.pnpm/@aws-sdk+middleware-user-agent@3.972.21/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js
15994
+ // ../node_modules/.pnpm/@aws-sdk+middleware-user-agent@3.972.24/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js
15467
15995
  var require_dist_cjs41 = __commonJS((exports) => {
15468
15996
  var core = require_dist_cjs18();
15469
15997
  var utilEndpoints = require_dist_cjs38();
@@ -15641,7 +16169,7 @@ var require_dist_cjs41 = __commonJS((exports) => {
15641
16169
  exports.userAgentMiddleware = userAgentMiddleware;
15642
16170
  });
15643
16171
 
15644
- // ../node_modules/.pnpm/@smithy+config-resolver@4.4.11/node_modules/@smithy/config-resolver/dist-cjs/index.js
16172
+ // ../node_modules/.pnpm/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-cjs/index.js
15645
16173
  var require_dist_cjs42 = __commonJS((exports) => {
15646
16174
  var utilConfigProvider = require_dist_cjs35();
15647
16175
  var utilMiddleware = require_dist_cjs4();
@@ -15654,6 +16182,11 @@ var require_dist_cjs42 = __commonJS((exports) => {
15654
16182
  configFileSelector: (profile) => utilConfigProvider.booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, utilConfigProvider.SelectorType.CONFIG),
15655
16183
  default: false
15656
16184
  };
16185
+ var nodeDualstackConfigSelectors = {
16186
+ environmentVariableSelector: (env) => utilConfigProvider.booleanSelector(env, ENV_USE_DUALSTACK_ENDPOINT, utilConfigProvider.SelectorType.ENV),
16187
+ configFileSelector: (profile) => utilConfigProvider.booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, utilConfigProvider.SelectorType.CONFIG),
16188
+ default: undefined
16189
+ };
15657
16190
  var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
15658
16191
  var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
15659
16192
  var DEFAULT_USE_FIPS_ENDPOINT = false;
@@ -15662,6 +16195,11 @@ var require_dist_cjs42 = __commonJS((exports) => {
15662
16195
  configFileSelector: (profile) => utilConfigProvider.booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, utilConfigProvider.SelectorType.CONFIG),
15663
16196
  default: false
15664
16197
  };
16198
+ var nodeFipsConfigSelectors = {
16199
+ environmentVariableSelector: (env) => utilConfigProvider.booleanSelector(env, ENV_USE_FIPS_ENDPOINT, utilConfigProvider.SelectorType.ENV),
16200
+ configFileSelector: (profile) => utilConfigProvider.booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, utilConfigProvider.SelectorType.CONFIG),
16201
+ default: undefined
16202
+ };
15665
16203
  var resolveCustomEndpointsConfig = (input) => {
15666
16204
  const { tls, endpoint, urlParser, useDualstackEndpoint } = input;
15667
16205
  return Object.assign(input, {
@@ -15795,6 +16333,8 @@ var require_dist_cjs42 = __commonJS((exports) => {
15795
16333
  exports.REGION_ENV_NAME = REGION_ENV_NAME;
15796
16334
  exports.REGION_INI_NAME = REGION_INI_NAME;
15797
16335
  exports.getRegionInfo = getRegionInfo;
16336
+ exports.nodeDualstackConfigSelectors = nodeDualstackConfigSelectors;
16337
+ exports.nodeFipsConfigSelectors = nodeFipsConfigSelectors;
15798
16338
  exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig;
15799
16339
  exports.resolveEndpointsConfig = resolveEndpointsConfig;
15800
16340
  exports.resolveRegionConfig = resolveRegionConfig;
@@ -16148,7 +16688,7 @@ var require_dist_cjs46 = __commonJS((exports) => {
16148
16688
  exports.loadConfig = loadConfig;
16149
16689
  });
16150
16690
 
16151
- // ../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.25/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js
16691
+ // ../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.27/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js
16152
16692
  var require_getEndpointUrlConfig = __commonJS((exports) => {
16153
16693
  Object.defineProperty(exports, "__esModule", { value: true });
16154
16694
  exports.getEndpointUrlConfig = undefined;
@@ -16186,7 +16726,7 @@ var require_getEndpointUrlConfig = __commonJS((exports) => {
16186
16726
  exports.getEndpointUrlConfig = getEndpointUrlConfig;
16187
16727
  });
16188
16728
 
16189
- // ../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.25/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js
16729
+ // ../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.27/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js
16190
16730
  var require_getEndpointFromConfig = __commonJS((exports) => {
16191
16731
  Object.defineProperty(exports, "__esModule", { value: true });
16192
16732
  exports.getEndpointFromConfig = undefined;
@@ -16196,7 +16736,7 @@ var require_getEndpointFromConfig = __commonJS((exports) => {
16196
16736
  exports.getEndpointFromConfig = getEndpointFromConfig;
16197
16737
  });
16198
16738
 
16199
- // ../node_modules/.pnpm/@smithy+middleware-serde@4.2.14/node_modules/@smithy/middleware-serde/dist-cjs/index.js
16739
+ // ../node_modules/.pnpm/@smithy+middleware-serde@4.2.15/node_modules/@smithy/middleware-serde/dist-cjs/index.js
16200
16740
  var require_dist_cjs47 = __commonJS((exports) => {
16201
16741
  var protocolHttp = require_dist_cjs2();
16202
16742
  var endpoints = require_endpoints();
@@ -16292,7 +16832,7 @@ var require_dist_cjs47 = __commonJS((exports) => {
16292
16832
  exports.serializerMiddlewareOption = serializerMiddlewareOption;
16293
16833
  });
16294
16834
 
16295
- // ../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.25/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js
16835
+ // ../node_modules/.pnpm/@smithy+middleware-endpoint@4.4.27/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js
16296
16836
  var require_dist_cjs48 = __commonJS((exports) => {
16297
16837
  var getEndpointFromConfig = require_getEndpointFromConfig();
16298
16838
  var urlParser = require_dist_cjs16();
@@ -16543,7 +17083,7 @@ var require_dist_cjs48 = __commonJS((exports) => {
16543
17083
  exports.toEndpointV1 = toEndpointV1;
16544
17084
  });
16545
17085
 
16546
- // ../node_modules/.pnpm/@smithy+middleware-retry@4.4.42/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js
17086
+ // ../node_modules/.pnpm/@smithy+middleware-retry@4.4.44/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js
16547
17087
  var require_isStreamingPayload = __commonJS((exports) => {
16548
17088
  Object.defineProperty(exports, "__esModule", { value: true });
16549
17089
  exports.isStreamingPayload = undefined;
@@ -16552,7 +17092,7 @@ var require_isStreamingPayload = __commonJS((exports) => {
16552
17092
  exports.isStreamingPayload = isStreamingPayload;
16553
17093
  });
16554
17094
 
16555
- // ../node_modules/.pnpm/@smithy+middleware-retry@4.4.42/node_modules/@smithy/middleware-retry/dist-cjs/index.js
17095
+ // ../node_modules/.pnpm/@smithy+middleware-retry@4.4.44/node_modules/@smithy/middleware-retry/dist-cjs/index.js
16556
17096
  var require_dist_cjs49 = __commonJS((exports) => {
16557
17097
  var utilRetry = require_dist_cjs40();
16558
17098
  var protocolHttp = require_dist_cjs2();
@@ -16890,7 +17430,7 @@ var require_dist_cjs49 = __commonJS((exports) => {
16890
17430
  exports.retryMiddlewareOptions = retryMiddlewareOptions;
16891
17431
  });
16892
17432
 
16893
- // ../node_modules/.pnpm/@aws-sdk+signature-v4-multi-region@3.996.8/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js
17433
+ // ../node_modules/.pnpm/@aws-sdk+signature-v4-multi-region@3.996.11/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js
16894
17434
  var require_dist_cjs50 = __commonJS((exports) => {
16895
17435
  var middlewareSdkS3 = require_dist_cjs36();
16896
17436
  var signatureV4 = require_dist_cjs20();
@@ -16986,7 +17526,7 @@ var require_dist_cjs50 = __commonJS((exports) => {
16986
17526
  exports.signatureV4CrtContainer = signatureV4CrtContainer;
16987
17527
  });
16988
17528
 
16989
- // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1011.0/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/ruleset.js
17529
+ // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1014.0/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/ruleset.js
16990
17530
  var require_ruleset = __commonJS((exports) => {
16991
17531
  Object.defineProperty(exports, "__esModule", { value: true });
16992
17532
  exports.ruleSet = undefined;
@@ -17185,7 +17725,7 @@ var require_ruleset = __commonJS((exports) => {
17185
17725
  exports.ruleSet = _data;
17186
17726
  });
17187
17727
 
17188
- // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1011.0/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js
17728
+ // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1014.0/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js
17189
17729
  var require_endpointResolver = __commonJS((exports) => {
17190
17730
  Object.defineProperty(exports, "__esModule", { value: true });
17191
17731
  exports.defaultEndpointResolver = undefined;
@@ -17221,7 +17761,7 @@ var require_endpointResolver = __commonJS((exports) => {
17221
17761
  util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
17222
17762
  });
17223
17763
 
17224
- // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1011.0/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js
17764
+ // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1014.0/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js
17225
17765
  var require_httpAuthSchemeProvider = __commonJS((exports) => {
17226
17766
  Object.defineProperty(exports, "__esModule", { value: true });
17227
17767
  exports.resolveHttpAuthSchemeConfig = exports.defaultS3HttpAuthSchemeProvider = exports.defaultS3HttpAuthSchemeParametersProvider = undefined;
@@ -17347,7 +17887,7 @@ var require_httpAuthSchemeProvider = __commonJS((exports) => {
17347
17887
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
17348
17888
  });
17349
17889
 
17350
- // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1011.0/node_modules/@aws-sdk/client-s3/dist-cjs/models/S3ServiceException.js
17890
+ // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1014.0/node_modules/@aws-sdk/client-s3/dist-cjs/models/S3ServiceException.js
17351
17891
  var require_S3ServiceException = __commonJS((exports) => {
17352
17892
  Object.defineProperty(exports, "__esModule", { value: true });
17353
17893
  exports.S3ServiceException = exports.__ServiceException = undefined;
@@ -17365,7 +17905,7 @@ var require_S3ServiceException = __commonJS((exports) => {
17365
17905
  exports.S3ServiceException = S3ServiceException;
17366
17906
  });
17367
17907
 
17368
- // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1011.0/node_modules/@aws-sdk/client-s3/dist-cjs/models/errors.js
17908
+ // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1014.0/node_modules/@aws-sdk/client-s3/dist-cjs/models/errors.js
17369
17909
  var require_errors = __commonJS((exports) => {
17370
17910
  Object.defineProperty(exports, "__esModule", { value: true });
17371
17911
  exports.ObjectAlreadyInActiveTierError = exports.IdempotencyParameterMismatch = exports.TooManyParts = exports.InvalidWriteOffset = exports.InvalidRequest = exports.EncryptionTypeMismatch = exports.NotFound = exports.NoSuchKey = exports.InvalidObjectState = exports.NoSuchBucket = exports.BucketAlreadyOwnedByYou = exports.BucketAlreadyExists = exports.ObjectNotInActiveTierError = exports.AccessDenied = exports.NoSuchUpload = undefined;
@@ -17586,7 +18126,7 @@ var require_errors = __commonJS((exports) => {
17586
18126
  exports.ObjectAlreadyInActiveTierError = ObjectAlreadyInActiveTierError;
17587
18127
  });
17588
18128
 
17589
- // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1011.0/node_modules/@aws-sdk/client-s3/dist-cjs/schemas/schemas_0.js
18129
+ // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1014.0/node_modules/@aws-sdk/client-s3/dist-cjs/schemas/schemas_0.js
17590
18130
  var require_schemas_0 = __commonJS((exports) => {
17591
18131
  Object.defineProperty(exports, "__esModule", { value: true });
17592
18132
  exports.CreateBucketMetadataTableConfigurationRequest$ = exports.CreateBucketMetadataConfigurationRequest$ = exports.CreateBucketConfiguration$ = exports.CORSRule$ = exports.CORSConfiguration$ = exports.CopyPartResult$ = exports.CopyObjectResult$ = exports.CopyObjectRequest$ = exports.CopyObjectOutput$ = exports.ContinuationEvent$ = exports.Condition$ = exports.CompleteMultipartUploadRequest$ = exports.CompleteMultipartUploadOutput$ = exports.CompletedPart$ = exports.CompletedMultipartUpload$ = exports.CommonPrefix$ = exports.Checksum$ = exports.BucketLoggingStatus$ = exports.BucketLifecycleConfiguration$ = exports.BucketInfo$ = exports.Bucket$ = exports.BlockedEncryptionTypes$ = exports.AnalyticsS3BucketDestination$ = exports.AnalyticsExportDestination$ = exports.AnalyticsConfiguration$ = exports.AnalyticsAndOperator$ = exports.AccessControlTranslation$ = exports.AccessControlPolicy$ = exports.AccelerateConfiguration$ = exports.AbortMultipartUploadRequest$ = exports.AbortMultipartUploadOutput$ = exports.AbortIncompleteMultipartUpload$ = exports.AbacStatus$ = exports.errorTypeRegistries = exports.TooManyParts$ = exports.ObjectNotInActiveTierError$ = exports.ObjectAlreadyInActiveTierError$ = exports.NotFound$ = exports.NoSuchUpload$ = exports.NoSuchKey$ = exports.NoSuchBucket$ = exports.InvalidWriteOffset$ = exports.InvalidRequest$ = exports.InvalidObjectState$ = exports.IdempotencyParameterMismatch$ = exports.EncryptionTypeMismatch$ = exports.BucketAlreadyOwnedByYou$ = exports.BucketAlreadyExists$ = exports.AccessDenied$ = exports.S3ServiceException$ = undefined;
@@ -22782,12 +23322,12 @@ var require_schemas_0 = __commonJS((exports) => {
22782
23322
  ];
22783
23323
  });
22784
23324
 
22785
- // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1011.0/node_modules/@aws-sdk/client-s3/package.json
23325
+ // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1014.0/node_modules/@aws-sdk/client-s3/package.json
22786
23326
  var require_package3 = __commonJS((exports, module) => {
22787
23327
  module.exports = {
22788
23328
  name: "@aws-sdk/client-s3",
22789
23329
  description: "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
22790
- version: "3.1011.0",
23330
+ version: "3.1014.0",
22791
23331
  scripts: {
22792
23332
  build: "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
22793
23333
  "build:cjs": "node ../../scripts/compilation/inline client-s3",
@@ -22816,26 +23356,26 @@ var require_package3 = __commonJS((exports, module) => {
22816
23356
  "@aws-crypto/sha1-browser": "5.2.0",
22817
23357
  "@aws-crypto/sha256-browser": "5.2.0",
22818
23358
  "@aws-crypto/sha256-js": "5.2.0",
22819
- "@aws-sdk/core": "^3.973.20",
22820
- "@aws-sdk/credential-provider-node": "^3.972.21",
23359
+ "@aws-sdk/core": "^3.973.23",
23360
+ "@aws-sdk/credential-provider-node": "^3.972.24",
22821
23361
  "@aws-sdk/middleware-bucket-endpoint": "^3.972.8",
22822
23362
  "@aws-sdk/middleware-expect-continue": "^3.972.8",
22823
- "@aws-sdk/middleware-flexible-checksums": "^3.974.0",
23363
+ "@aws-sdk/middleware-flexible-checksums": "^3.974.3",
22824
23364
  "@aws-sdk/middleware-host-header": "^3.972.8",
22825
23365
  "@aws-sdk/middleware-location-constraint": "^3.972.8",
22826
23366
  "@aws-sdk/middleware-logger": "^3.972.8",
22827
23367
  "@aws-sdk/middleware-recursion-detection": "^3.972.8",
22828
- "@aws-sdk/middleware-sdk-s3": "^3.972.20",
23368
+ "@aws-sdk/middleware-sdk-s3": "^3.972.23",
22829
23369
  "@aws-sdk/middleware-ssec": "^3.972.8",
22830
- "@aws-sdk/middleware-user-agent": "^3.972.21",
22831
- "@aws-sdk/region-config-resolver": "^3.972.8",
22832
- "@aws-sdk/signature-v4-multi-region": "^3.996.8",
23370
+ "@aws-sdk/middleware-user-agent": "^3.972.24",
23371
+ "@aws-sdk/region-config-resolver": "^3.972.9",
23372
+ "@aws-sdk/signature-v4-multi-region": "^3.996.11",
22833
23373
  "@aws-sdk/types": "^3.973.6",
22834
23374
  "@aws-sdk/util-endpoints": "^3.996.5",
22835
23375
  "@aws-sdk/util-user-agent-browser": "^3.972.8",
22836
- "@aws-sdk/util-user-agent-node": "^3.973.7",
22837
- "@smithy/config-resolver": "^4.4.11",
22838
- "@smithy/core": "^3.23.11",
23376
+ "@aws-sdk/util-user-agent-node": "^3.973.10",
23377
+ "@smithy/config-resolver": "^4.4.13",
23378
+ "@smithy/core": "^3.23.12",
22839
23379
  "@smithy/eventstream-serde-browser": "^4.2.12",
22840
23380
  "@smithy/eventstream-serde-config-resolver": "^4.3.12",
22841
23381
  "@smithy/eventstream-serde-node": "^4.2.12",
@@ -22846,32 +23386,32 @@ var require_package3 = __commonJS((exports, module) => {
22846
23386
  "@smithy/invalid-dependency": "^4.2.12",
22847
23387
  "@smithy/md5-js": "^4.2.12",
22848
23388
  "@smithy/middleware-content-length": "^4.2.12",
22849
- "@smithy/middleware-endpoint": "^4.4.25",
22850
- "@smithy/middleware-retry": "^4.4.42",
22851
- "@smithy/middleware-serde": "^4.2.14",
23389
+ "@smithy/middleware-endpoint": "^4.4.27",
23390
+ "@smithy/middleware-retry": "^4.4.44",
23391
+ "@smithy/middleware-serde": "^4.2.15",
22852
23392
  "@smithy/middleware-stack": "^4.2.12",
22853
23393
  "@smithy/node-config-provider": "^4.3.12",
22854
- "@smithy/node-http-handler": "^4.4.16",
23394
+ "@smithy/node-http-handler": "^4.5.0",
22855
23395
  "@smithy/protocol-http": "^5.3.12",
22856
- "@smithy/smithy-client": "^4.12.5",
23396
+ "@smithy/smithy-client": "^4.12.7",
22857
23397
  "@smithy/types": "^4.13.1",
22858
23398
  "@smithy/url-parser": "^4.2.12",
22859
23399
  "@smithy/util-base64": "^4.3.2",
22860
23400
  "@smithy/util-body-length-browser": "^4.2.2",
22861
23401
  "@smithy/util-body-length-node": "^4.2.3",
22862
- "@smithy/util-defaults-mode-browser": "^4.3.41",
22863
- "@smithy/util-defaults-mode-node": "^4.2.44",
23402
+ "@smithy/util-defaults-mode-browser": "^4.3.43",
23403
+ "@smithy/util-defaults-mode-node": "^4.2.47",
22864
23404
  "@smithy/util-endpoints": "^3.3.3",
22865
23405
  "@smithy/util-middleware": "^4.2.12",
22866
23406
  "@smithy/util-retry": "^4.2.12",
22867
- "@smithy/util-stream": "^4.5.19",
23407
+ "@smithy/util-stream": "^4.5.20",
22868
23408
  "@smithy/util-utf8": "^4.2.2",
22869
23409
  "@smithy/util-waiter": "^4.2.13",
22870
23410
  tslib: "^2.6.2"
22871
23411
  },
22872
23412
  devDependencies: {
22873
- "@aws-sdk/signature-v4-crt": "3.1011.0",
22874
- "@smithy/snapshot-testing": "^2.0.2",
23413
+ "@aws-sdk/signature-v4-crt": "3.1014.0",
23414
+ "@smithy/snapshot-testing": "^2.0.3",
22875
23415
  "@tsconfig/node20": "20.1.8",
22876
23416
  "@types/node": "^20.14.8",
22877
23417
  concurrently: "7.0.0",
@@ -22913,7 +23453,7 @@ var require_package3 = __commonJS((exports, module) => {
22913
23453
  };
22914
23454
  });
22915
23455
 
22916
- // ../node_modules/.pnpm/@aws-sdk+credential-provider-env@3.972.18/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js
23456
+ // ../node_modules/.pnpm/@aws-sdk+credential-provider-env@3.972.21/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js
22917
23457
  var require_dist_cjs51 = __commonJS((exports) => {
22918
23458
  var client = require_client();
22919
23459
  var propertyProvider = require_dist_cjs19();
@@ -23298,7 +23838,7 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
23298
23838
  exports.providerConfigFromInit = providerConfigFromInit;
23299
23839
  });
23300
23840
 
23301
- // ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.20/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js
23841
+ // ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.23/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js
23302
23842
  var require_checkUrl = __commonJS((exports) => {
23303
23843
  Object.defineProperty(exports, "__esModule", { value: true });
23304
23844
  exports.checkUrl = undefined;
@@ -23338,7 +23878,7 @@ var require_checkUrl = __commonJS((exports) => {
23338
23878
  exports.checkUrl = checkUrl;
23339
23879
  });
23340
23880
 
23341
- // ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.20/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js
23881
+ // ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.23/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js
23342
23882
  var require_requestHelpers = __commonJS((exports) => {
23343
23883
  Object.defineProperty(exports, "__esModule", { value: true });
23344
23884
  exports.createGetRequest = createGetRequest;
@@ -23389,7 +23929,7 @@ var require_requestHelpers = __commonJS((exports) => {
23389
23929
  }
23390
23930
  });
23391
23931
 
23392
- // ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.20/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js
23932
+ // ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.23/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js
23393
23933
  var require_retry_wrapper = __commonJS((exports) => {
23394
23934
  Object.defineProperty(exports, "__esModule", { value: true });
23395
23935
  exports.retryWrapper = undefined;
@@ -23408,7 +23948,7 @@ var require_retry_wrapper = __commonJS((exports) => {
23408
23948
  exports.retryWrapper = retryWrapper;
23409
23949
  });
23410
23950
 
23411
- // ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.20/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js
23951
+ // ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.23/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js
23412
23952
  var require_fromHttp = __commonJS((exports) => {
23413
23953
  Object.defineProperty(exports, "__esModule", { value: true });
23414
23954
  exports.fromHttp = undefined;
@@ -23473,7 +24013,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
23473
24013
  exports.fromHttp = fromHttp;
23474
24014
  });
23475
24015
 
23476
- // ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.20/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js
24016
+ // ../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.23/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js
23477
24017
  var require_dist_cjs53 = __commonJS((exports) => {
23478
24018
  Object.defineProperty(exports, "__esModule", { value: true });
23479
24019
  exports.fromHttp = undefined;
@@ -23483,7 +24023,7 @@ var require_dist_cjs53 = __commonJS((exports) => {
23483
24023
  } });
23484
24024
  });
23485
24025
 
23486
- // ../node_modules/.pnpm/@aws-sdk+core@3.973.20/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js
24026
+ // ../node_modules/.pnpm/@aws-sdk+core@3.973.23/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js
23487
24027
  var require_httpAuthSchemes = __commonJS((exports) => {
23488
24028
  var protocolHttp = require_dist_cjs2();
23489
24029
  var core = require_dist_cjs18();
@@ -23773,7 +24313,7 @@ var require_httpAuthSchemes = __commonJS((exports) => {
23773
24313
  exports.validateSigningProperties = validateSigningProperties;
23774
24314
  });
23775
24315
 
23776
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js
24316
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js
23777
24317
  var require_httpAuthSchemeProvider2 = __commonJS((exports) => {
23778
24318
  Object.defineProperty(exports, "__esModule", { value: true });
23779
24319
  exports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = undefined;
@@ -23831,11 +24371,11 @@ var require_httpAuthSchemeProvider2 = __commonJS((exports) => {
23831
24371
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
23832
24372
  });
23833
24373
 
23834
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/package.json
24374
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/package.json
23835
24375
  var require_package4 = __commonJS((exports, module) => {
23836
24376
  module.exports = {
23837
24377
  name: "@aws-sdk/nested-clients",
23838
- version: "3.996.10",
24378
+ version: "3.996.13",
23839
24379
  description: "Nested clients for AWS SDK packages.",
23840
24380
  main: "./dist-cjs/index.js",
23841
24381
  module: "./dist-es/index.js",
@@ -23864,37 +24404,37 @@ var require_package4 = __commonJS((exports, module) => {
23864
24404
  dependencies: {
23865
24405
  "@aws-crypto/sha256-browser": "5.2.0",
23866
24406
  "@aws-crypto/sha256-js": "5.2.0",
23867
- "@aws-sdk/core": "^3.973.20",
24407
+ "@aws-sdk/core": "^3.973.23",
23868
24408
  "@aws-sdk/middleware-host-header": "^3.972.8",
23869
24409
  "@aws-sdk/middleware-logger": "^3.972.8",
23870
24410
  "@aws-sdk/middleware-recursion-detection": "^3.972.8",
23871
- "@aws-sdk/middleware-user-agent": "^3.972.21",
23872
- "@aws-sdk/region-config-resolver": "^3.972.8",
24411
+ "@aws-sdk/middleware-user-agent": "^3.972.24",
24412
+ "@aws-sdk/region-config-resolver": "^3.972.9",
23873
24413
  "@aws-sdk/types": "^3.973.6",
23874
24414
  "@aws-sdk/util-endpoints": "^3.996.5",
23875
24415
  "@aws-sdk/util-user-agent-browser": "^3.972.8",
23876
- "@aws-sdk/util-user-agent-node": "^3.973.7",
23877
- "@smithy/config-resolver": "^4.4.11",
23878
- "@smithy/core": "^3.23.11",
24416
+ "@aws-sdk/util-user-agent-node": "^3.973.10",
24417
+ "@smithy/config-resolver": "^4.4.13",
24418
+ "@smithy/core": "^3.23.12",
23879
24419
  "@smithy/fetch-http-handler": "^5.3.15",
23880
24420
  "@smithy/hash-node": "^4.2.12",
23881
24421
  "@smithy/invalid-dependency": "^4.2.12",
23882
24422
  "@smithy/middleware-content-length": "^4.2.12",
23883
- "@smithy/middleware-endpoint": "^4.4.25",
23884
- "@smithy/middleware-retry": "^4.4.42",
23885
- "@smithy/middleware-serde": "^4.2.14",
24423
+ "@smithy/middleware-endpoint": "^4.4.27",
24424
+ "@smithy/middleware-retry": "^4.4.44",
24425
+ "@smithy/middleware-serde": "^4.2.15",
23886
24426
  "@smithy/middleware-stack": "^4.2.12",
23887
24427
  "@smithy/node-config-provider": "^4.3.12",
23888
- "@smithy/node-http-handler": "^4.4.16",
24428
+ "@smithy/node-http-handler": "^4.5.0",
23889
24429
  "@smithy/protocol-http": "^5.3.12",
23890
- "@smithy/smithy-client": "^4.12.5",
24430
+ "@smithy/smithy-client": "^4.12.7",
23891
24431
  "@smithy/types": "^4.13.1",
23892
24432
  "@smithy/url-parser": "^4.2.12",
23893
24433
  "@smithy/util-base64": "^4.3.2",
23894
24434
  "@smithy/util-body-length-browser": "^4.2.2",
23895
24435
  "@smithy/util-body-length-node": "^4.2.3",
23896
- "@smithy/util-defaults-mode-browser": "^4.3.41",
23897
- "@smithy/util-defaults-mode-node": "^4.2.44",
24436
+ "@smithy/util-defaults-mode-browser": "^4.3.43",
24437
+ "@smithy/util-defaults-mode-node": "^4.2.47",
23898
24438
  "@smithy/util-endpoints": "^3.3.3",
23899
24439
  "@smithy/util-middleware": "^4.2.12",
23900
24440
  "@smithy/util-retry": "^4.2.12",
@@ -23982,9 +24522,9 @@ var require_package4 = __commonJS((exports, module) => {
23982
24522
  };
23983
24523
  });
23984
24524
 
23985
- // ../node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.973.7/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js
24525
+ // ../node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.973.10/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js
23986
24526
  var require_dist_cjs54 = __commonJS((exports) => {
23987
- var __dirname = "/workspace/projects/cli/node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.973.7/node_modules/@aws-sdk/util-user-agent-node/dist-cjs";
24527
+ var __dirname = "/workspace/projects/cli/node_modules/.pnpm/@aws-sdk+util-user-agent-node@3.973.10/node_modules/@aws-sdk/util-user-agent-node/dist-cjs";
23988
24528
  var node_os = __require("node:os");
23989
24529
  var node_process = __require("node:process");
23990
24530
  var utilConfigProvider = require_dist_cjs35();
@@ -24221,7 +24761,7 @@ var require_dist_cjs56 = __commonJS((exports) => {
24221
24761
  exports.calculateBodyLength = calculateBodyLength;
24222
24762
  });
24223
24763
 
24224
- // ../node_modules/.pnpm/@smithy+util-defaults-mode-node@4.2.44/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js
24764
+ // ../node_modules/.pnpm/@smithy+util-defaults-mode-node@4.2.47/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js
24225
24765
  var require_dist_cjs57 = __commonJS((exports) => {
24226
24766
  var configResolver = require_dist_cjs42();
24227
24767
  var nodeConfigProvider = require_dist_cjs46();
@@ -24290,7 +24830,7 @@ var require_dist_cjs57 = __commonJS((exports) => {
24290
24830
  exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig;
24291
24831
  });
24292
24832
 
24293
- // ../node_modules/.pnpm/@aws-sdk+core@3.973.20/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js
24833
+ // ../node_modules/.pnpm/@aws-sdk+core@3.973.23/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js
24294
24834
  var require_protocols2 = __commonJS((exports) => {
24295
24835
  var cbor = require_cbor();
24296
24836
  var schema = require_schema();
@@ -26078,7 +26618,7 @@ var require_protocols2 = __commonJS((exports) => {
26078
26618
  exports.parseXmlErrorBody = parseXmlErrorBody;
26079
26619
  });
26080
26620
 
26081
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js
26621
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js
26082
26622
  var require_ruleset2 = __commonJS((exports) => {
26083
26623
  Object.defineProperty(exports, "__esModule", { value: true });
26084
26624
  exports.ruleSet = undefined;
@@ -26209,7 +26749,7 @@ var require_ruleset2 = __commonJS((exports) => {
26209
26749
  exports.ruleSet = _data;
26210
26750
  });
26211
26751
 
26212
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js
26752
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js
26213
26753
  var require_endpointResolver2 = __commonJS((exports) => {
26214
26754
  Object.defineProperty(exports, "__esModule", { value: true });
26215
26755
  exports.defaultEndpointResolver = undefined;
@@ -26230,7 +26770,7 @@ var require_endpointResolver2 = __commonJS((exports) => {
26230
26770
  util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
26231
26771
  });
26232
26772
 
26233
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js
26773
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js
26234
26774
  var require_SSOOIDCServiceException = __commonJS((exports) => {
26235
26775
  Object.defineProperty(exports, "__esModule", { value: true });
26236
26776
  exports.SSOOIDCServiceException = exports.__ServiceException = undefined;
@@ -26248,7 +26788,7 @@ var require_SSOOIDCServiceException = __commonJS((exports) => {
26248
26788
  exports.SSOOIDCServiceException = SSOOIDCServiceException;
26249
26789
  });
26250
26790
 
26251
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js
26791
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js
26252
26792
  var require_errors2 = __commonJS((exports) => {
26253
26793
  Object.defineProperty(exports, "__esModule", { value: true });
26254
26794
  exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidGrantException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.AuthorizationPendingException = exports.AccessDeniedException = undefined;
@@ -26457,7 +26997,7 @@ var require_errors2 = __commonJS((exports) => {
26457
26997
  exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
26458
26998
  });
26459
26999
 
26460
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js
27000
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js
26461
27001
  var require_schemas_02 = __commonJS((exports) => {
26462
27002
  Object.defineProperty(exports, "__esModule", { value: true });
26463
27003
  exports.CreateToken$ = exports.CreateTokenResponse$ = exports.CreateTokenRequest$ = exports.errorTypeRegistries = exports.UnsupportedGrantTypeException$ = exports.UnauthorizedClientException$ = exports.SlowDownException$ = exports.InvalidScopeException$ = exports.InvalidRequestException$ = exports.InvalidGrantException$ = exports.InvalidClientException$ = exports.InternalServerException$ = exports.ExpiredTokenException$ = exports.AuthorizationPendingException$ = exports.AccessDeniedException$ = exports.SSOOIDCServiceException$ = undefined;
@@ -26600,7 +27140,7 @@ var require_schemas_02 = __commonJS((exports) => {
26600
27140
  ];
26601
27141
  });
26602
27142
 
26603
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js
27143
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js
26604
27144
  var require_runtimeConfig_shared = __commonJS((exports) => {
26605
27145
  Object.defineProperty(exports, "__esModule", { value: true });
26606
27146
  exports.getRuntimeConfig = undefined;
@@ -26652,7 +27192,7 @@ var require_runtimeConfig_shared = __commonJS((exports) => {
26652
27192
  exports.getRuntimeConfig = getRuntimeConfig;
26653
27193
  });
26654
27194
 
26655
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js
27195
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js
26656
27196
  var require_runtimeConfig = __commonJS((exports) => {
26657
27197
  Object.defineProperty(exports, "__esModule", { value: true });
26658
27198
  exports.getRuntimeConfig = undefined;
@@ -26705,7 +27245,7 @@ var require_runtimeConfig = __commonJS((exports) => {
26705
27245
  exports.getRuntimeConfig = getRuntimeConfig;
26706
27246
  });
26707
27247
 
26708
- // ../node_modules/.pnpm/@aws-sdk+region-config-resolver@3.972.8/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.js
27248
+ // ../node_modules/.pnpm/@aws-sdk+region-config-resolver@3.972.9/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.js
26709
27249
  var require_stsRegionDefaultResolver = __commonJS((exports) => {
26710
27250
  Object.defineProperty(exports, "__esModule", { value: true });
26711
27251
  exports.warning = undefined;
@@ -26728,7 +27268,7 @@ var require_stsRegionDefaultResolver = __commonJS((exports) => {
26728
27268
  };
26729
27269
  });
26730
27270
 
26731
- // ../node_modules/.pnpm/@aws-sdk+region-config-resolver@3.972.8/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js
27271
+ // ../node_modules/.pnpm/@aws-sdk+region-config-resolver@3.972.9/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js
26732
27272
  var require_dist_cjs58 = __commonJS((exports) => {
26733
27273
  var stsRegionDefaultResolver = require_stsRegionDefaultResolver();
26734
27274
  var configResolver = require_dist_cjs42();
@@ -26764,7 +27304,7 @@ var require_dist_cjs58 = __commonJS((exports) => {
26764
27304
  });
26765
27305
  });
26766
27306
 
26767
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js
27307
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js
26768
27308
  var require_sso_oidc = __commonJS((exports) => {
26769
27309
  var middlewareHostHeader = require_dist_cjs31();
26770
27310
  var middlewareLogger = require_dist_cjs32();
@@ -26921,7 +27461,7 @@ var require_sso_oidc = __commonJS((exports) => {
26921
27461
  });
26922
27462
  });
26923
27463
 
26924
- // ../node_modules/.pnpm/@aws-sdk+token-providers@3.1009.0/node_modules/@aws-sdk/token-providers/dist-cjs/index.js
27464
+ // ../node_modules/.pnpm/@aws-sdk+token-providers@3.1014.0/node_modules/@aws-sdk/token-providers/dist-cjs/index.js
26925
27465
  var require_dist_cjs59 = __commonJS((exports) => {
26926
27466
  var client = require_client();
26927
27467
  var httpAuthSchemes = require_httpAuthSchemes();
@@ -27064,7 +27604,7 @@ var require_dist_cjs59 = __commonJS((exports) => {
27064
27604
  exports.nodeProvider = nodeProvider;
27065
27605
  });
27066
27606
 
27067
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js
27607
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js
27068
27608
  var require_httpAuthSchemeProvider3 = __commonJS((exports) => {
27069
27609
  Object.defineProperty(exports, "__esModule", { value: true });
27070
27610
  exports.resolveHttpAuthSchemeConfig = exports.defaultSSOHttpAuthSchemeProvider = exports.defaultSSOHttpAuthSchemeParametersProvider = undefined;
@@ -27122,7 +27662,7 @@ var require_httpAuthSchemeProvider3 = __commonJS((exports) => {
27122
27662
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
27123
27663
  });
27124
27664
 
27125
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js
27665
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js
27126
27666
  var require_ruleset3 = __commonJS((exports) => {
27127
27667
  Object.defineProperty(exports, "__esModule", { value: true });
27128
27668
  exports.ruleSet = undefined;
@@ -27253,7 +27793,7 @@ var require_ruleset3 = __commonJS((exports) => {
27253
27793
  exports.ruleSet = _data;
27254
27794
  });
27255
27795
 
27256
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js
27796
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js
27257
27797
  var require_endpointResolver3 = __commonJS((exports) => {
27258
27798
  Object.defineProperty(exports, "__esModule", { value: true });
27259
27799
  exports.defaultEndpointResolver = undefined;
@@ -27274,7 +27814,7 @@ var require_endpointResolver3 = __commonJS((exports) => {
27274
27814
  util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
27275
27815
  });
27276
27816
 
27277
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/SSOServiceException.js
27817
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/SSOServiceException.js
27278
27818
  var require_SSOServiceException = __commonJS((exports) => {
27279
27819
  Object.defineProperty(exports, "__esModule", { value: true });
27280
27820
  exports.SSOServiceException = exports.__ServiceException = undefined;
@@ -27292,7 +27832,7 @@ var require_SSOServiceException = __commonJS((exports) => {
27292
27832
  exports.SSOServiceException = SSOServiceException;
27293
27833
  });
27294
27834
 
27295
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/errors.js
27835
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/errors.js
27296
27836
  var require_errors3 = __commonJS((exports) => {
27297
27837
  Object.defineProperty(exports, "__esModule", { value: true });
27298
27838
  exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = undefined;
@@ -27355,7 +27895,7 @@ var require_errors3 = __commonJS((exports) => {
27355
27895
  exports.UnauthorizedException = UnauthorizedException;
27356
27896
  });
27357
27897
 
27358
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/schemas/schemas_0.js
27898
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/schemas/schemas_0.js
27359
27899
  var require_schemas_03 = __commonJS((exports) => {
27360
27900
  Object.defineProperty(exports, "__esModule", { value: true });
27361
27901
  exports.GetRoleCredentials$ = exports.RoleCredentials$ = exports.GetRoleCredentialsResponse$ = exports.GetRoleCredentialsRequest$ = exports.errorTypeRegistries = exports.UnauthorizedException$ = exports.TooManyRequestsException$ = exports.ResourceNotFoundException$ = exports.InvalidRequestException$ = exports.SSOServiceException$ = undefined;
@@ -27448,7 +27988,7 @@ var require_schemas_03 = __commonJS((exports) => {
27448
27988
  ];
27449
27989
  });
27450
27990
 
27451
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.shared.js
27991
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.shared.js
27452
27992
  var require_runtimeConfig_shared2 = __commonJS((exports) => {
27453
27993
  Object.defineProperty(exports, "__esModule", { value: true });
27454
27994
  exports.getRuntimeConfig = undefined;
@@ -27500,7 +28040,7 @@ var require_runtimeConfig_shared2 = __commonJS((exports) => {
27500
28040
  exports.getRuntimeConfig = getRuntimeConfig;
27501
28041
  });
27502
28042
 
27503
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.js
28043
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.js
27504
28044
  var require_runtimeConfig2 = __commonJS((exports) => {
27505
28045
  Object.defineProperty(exports, "__esModule", { value: true });
27506
28046
  exports.getRuntimeConfig = undefined;
@@ -27553,7 +28093,7 @@ var require_runtimeConfig2 = __commonJS((exports) => {
27553
28093
  exports.getRuntimeConfig = getRuntimeConfig;
27554
28094
  });
27555
28095
 
27556
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js
28096
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js
27557
28097
  var require_sso = __commonJS((exports) => {
27558
28098
  var middlewareHostHeader = require_dist_cjs31();
27559
28099
  var middlewareLogger = require_dist_cjs32();
@@ -27699,14 +28239,14 @@ var require_sso = __commonJS((exports) => {
27699
28239
  });
27700
28240
  });
27701
28241
 
27702
- // ../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.20/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js
28242
+ // ../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.23/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js
27703
28243
  var require_loadSso_BKDNrsal = __commonJS((exports) => {
27704
28244
  var sso = require_sso();
27705
28245
  exports.GetRoleCredentialsCommand = sso.GetRoleCredentialsCommand;
27706
28246
  exports.SSOClient = sso.SSOClient;
27707
28247
  });
27708
28248
 
27709
- // ../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.20/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
28249
+ // ../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.972.23/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
27710
28250
  var require_dist_cjs60 = __commonJS((exports) => {
27711
28251
  var propertyProvider = require_dist_cjs19();
27712
28252
  var sharedIniFileLoader = require_dist_cjs45();
@@ -27883,7 +28423,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
27883
28423
  exports.validateSsoProfile = validateSsoProfile;
27884
28424
  });
27885
28425
 
27886
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js
28426
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js
27887
28427
  var require_httpAuthSchemeProvider4 = __commonJS((exports) => {
27888
28428
  Object.defineProperty(exports, "__esModule", { value: true });
27889
28429
  exports.resolveHttpAuthSchemeConfig = exports.defaultSigninHttpAuthSchemeProvider = exports.defaultSigninHttpAuthSchemeParametersProvider = undefined;
@@ -27941,7 +28481,7 @@ var require_httpAuthSchemeProvider4 = __commonJS((exports) => {
27941
28481
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
27942
28482
  });
27943
28483
 
27944
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js
28484
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js
27945
28485
  var require_ruleset4 = __commonJS((exports) => {
27946
28486
  Object.defineProperty(exports, "__esModule", { value: true });
27947
28487
  exports.ruleSet = undefined;
@@ -28099,7 +28639,7 @@ var require_ruleset4 = __commonJS((exports) => {
28099
28639
  exports.ruleSet = _data;
28100
28640
  });
28101
28641
 
28102
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js
28642
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js
28103
28643
  var require_endpointResolver4 = __commonJS((exports) => {
28104
28644
  Object.defineProperty(exports, "__esModule", { value: true });
28105
28645
  exports.defaultEndpointResolver = undefined;
@@ -28120,7 +28660,7 @@ var require_endpointResolver4 = __commonJS((exports) => {
28120
28660
  util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
28121
28661
  });
28122
28662
 
28123
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js
28663
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js
28124
28664
  var require_SigninServiceException = __commonJS((exports) => {
28125
28665
  Object.defineProperty(exports, "__esModule", { value: true });
28126
28666
  exports.SigninServiceException = exports.__ServiceException = undefined;
@@ -28138,7 +28678,7 @@ var require_SigninServiceException = __commonJS((exports) => {
28138
28678
  exports.SigninServiceException = SigninServiceException;
28139
28679
  });
28140
28680
 
28141
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js
28681
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js
28142
28682
  var require_errors4 = __commonJS((exports) => {
28143
28683
  Object.defineProperty(exports, "__esModule", { value: true });
28144
28684
  exports.ValidationException = exports.TooManyRequestsError = exports.InternalServerException = exports.AccessDeniedException = undefined;
@@ -28209,7 +28749,7 @@ var require_errors4 = __commonJS((exports) => {
28209
28749
  exports.ValidationException = ValidationException;
28210
28750
  });
28211
28751
 
28212
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js
28752
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js
28213
28753
  var require_schemas_04 = __commonJS((exports) => {
28214
28754
  Object.defineProperty(exports, "__esModule", { value: true });
28215
28755
  exports.CreateOAuth2Token$ = exports.CreateOAuth2TokenResponseBody$ = exports.CreateOAuth2TokenResponse$ = exports.CreateOAuth2TokenRequestBody$ = exports.CreateOAuth2TokenRequest$ = exports.AccessToken$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.TooManyRequestsError$ = exports.InternalServerException$ = exports.AccessDeniedException$ = exports.SigninServiceException$ = undefined;
@@ -28337,7 +28877,7 @@ var require_schemas_04 = __commonJS((exports) => {
28337
28877
  ];
28338
28878
  });
28339
28879
 
28340
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js
28880
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js
28341
28881
  var require_runtimeConfig_shared3 = __commonJS((exports) => {
28342
28882
  Object.defineProperty(exports, "__esModule", { value: true });
28343
28883
  exports.getRuntimeConfig = undefined;
@@ -28389,7 +28929,7 @@ var require_runtimeConfig_shared3 = __commonJS((exports) => {
28389
28929
  exports.getRuntimeConfig = getRuntimeConfig;
28390
28930
  });
28391
28931
 
28392
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.js
28932
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.js
28393
28933
  var require_runtimeConfig3 = __commonJS((exports) => {
28394
28934
  Object.defineProperty(exports, "__esModule", { value: true });
28395
28935
  exports.getRuntimeConfig = undefined;
@@ -28442,7 +28982,7 @@ var require_runtimeConfig3 = __commonJS((exports) => {
28442
28982
  exports.getRuntimeConfig = getRuntimeConfig;
28443
28983
  });
28444
28984
 
28445
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js
28985
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js
28446
28986
  var require_signin = __commonJS((exports) => {
28447
28987
  var middlewareHostHeader = require_dist_cjs31();
28448
28988
  var middlewareLogger = require_dist_cjs32();
@@ -28597,7 +29137,7 @@ var require_signin = __commonJS((exports) => {
28597
29137
  });
28598
29138
  });
28599
29139
 
28600
- // ../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.20/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js
29140
+ // ../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.23/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js
28601
29141
  var require_dist_cjs61 = __commonJS((exports) => {
28602
29142
  var client = require_client();
28603
29143
  var propertyProvider = require_dist_cjs19();
@@ -28873,7 +29413,7 @@ var require_dist_cjs61 = __commonJS((exports) => {
28873
29413
  exports.fromLoginCredentials = fromLoginCredentials;
28874
29414
  });
28875
29415
 
28876
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js
29416
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js
28877
29417
  var require_httpAuthSchemeProvider5 = __commonJS((exports) => {
28878
29418
  Object.defineProperty(exports, "__esModule", { value: true });
28879
29419
  exports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = undefined;
@@ -28937,7 +29477,7 @@ var require_httpAuthSchemeProvider5 = __commonJS((exports) => {
28937
29477
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
28938
29478
  });
28939
29479
 
28940
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js
29480
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js
28941
29481
  var require_EndpointParameters = __commonJS((exports) => {
28942
29482
  Object.defineProperty(exports, "__esModule", { value: true });
28943
29483
  exports.commonParams = exports.resolveClientEndpointParameters = undefined;
@@ -28959,7 +29499,7 @@ var require_EndpointParameters = __commonJS((exports) => {
28959
29499
  };
28960
29500
  });
28961
29501
 
28962
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js
29502
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js
28963
29503
  var require_ruleset5 = __commonJS((exports) => {
28964
29504
  Object.defineProperty(exports, "__esModule", { value: true });
28965
29505
  exports.ruleSet = undefined;
@@ -29141,7 +29681,7 @@ var require_ruleset5 = __commonJS((exports) => {
29141
29681
  exports.ruleSet = _data;
29142
29682
  });
29143
29683
 
29144
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js
29684
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js
29145
29685
  var require_endpointResolver5 = __commonJS((exports) => {
29146
29686
  Object.defineProperty(exports, "__esModule", { value: true });
29147
29687
  exports.defaultEndpointResolver = undefined;
@@ -29162,7 +29702,7 @@ var require_endpointResolver5 = __commonJS((exports) => {
29162
29702
  util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
29163
29703
  });
29164
29704
 
29165
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js
29705
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js
29166
29706
  var require_STSServiceException = __commonJS((exports) => {
29167
29707
  Object.defineProperty(exports, "__esModule", { value: true });
29168
29708
  exports.STSServiceException = exports.__ServiceException = undefined;
@@ -29180,7 +29720,7 @@ var require_STSServiceException = __commonJS((exports) => {
29180
29720
  exports.STSServiceException = STSServiceException;
29181
29721
  });
29182
29722
 
29183
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js
29723
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js
29184
29724
  var require_errors5 = __commonJS((exports) => {
29185
29725
  Object.defineProperty(exports, "__esModule", { value: true });
29186
29726
  exports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = undefined;
@@ -29285,7 +29825,7 @@ var require_errors5 = __commonJS((exports) => {
29285
29825
  exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
29286
29826
  });
29287
29827
 
29288
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js
29828
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js
29289
29829
  var require_schemas_05 = __commonJS((exports) => {
29290
29830
  Object.defineProperty(exports, "__esModule", { value: true });
29291
29831
  exports.AssumeRoleWithWebIdentity$ = exports.AssumeRole$ = exports.Tag$ = exports.ProvidedContext$ = exports.PolicyDescriptorType$ = exports.Credentials$ = exports.AssumeRoleWithWebIdentityResponse$ = exports.AssumeRoleWithWebIdentityRequest$ = exports.AssumeRoleResponse$ = exports.AssumeRoleRequest$ = exports.AssumedRoleUser$ = exports.errorTypeRegistries = exports.RegionDisabledException$ = exports.PackedPolicyTooLargeException$ = exports.MalformedPolicyDocumentException$ = exports.InvalidIdentityTokenException$ = exports.IDPRejectedClaimException$ = exports.IDPCommunicationErrorException$ = exports.ExpiredTokenException$ = exports.STSServiceException$ = undefined;
@@ -29483,7 +30023,7 @@ var require_schemas_05 = __commonJS((exports) => {
29483
30023
  ];
29484
30024
  });
29485
30025
 
29486
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js
30026
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js
29487
30027
  var require_runtimeConfig_shared4 = __commonJS((exports) => {
29488
30028
  Object.defineProperty(exports, "__esModule", { value: true });
29489
30029
  exports.getRuntimeConfig = undefined;
@@ -29536,7 +30076,7 @@ var require_runtimeConfig_shared4 = __commonJS((exports) => {
29536
30076
  exports.getRuntimeConfig = getRuntimeConfig;
29537
30077
  });
29538
30078
 
29539
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js
30079
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js
29540
30080
  var require_runtimeConfig4 = __commonJS((exports) => {
29541
30081
  Object.defineProperty(exports, "__esModule", { value: true });
29542
30082
  exports.getRuntimeConfig = undefined;
@@ -29602,7 +30142,7 @@ var require_runtimeConfig4 = __commonJS((exports) => {
29602
30142
  exports.getRuntimeConfig = getRuntimeConfig;
29603
30143
  });
29604
30144
 
29605
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js
30145
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js
29606
30146
  var require_httpAuthExtensionConfiguration = __commonJS((exports) => {
29607
30147
  Object.defineProperty(exports, "__esModule", { value: true });
29608
30148
  exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = undefined;
@@ -29647,7 +30187,7 @@ var require_httpAuthExtensionConfiguration = __commonJS((exports) => {
29647
30187
  exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
29648
30188
  });
29649
30189
 
29650
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js
30190
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js
29651
30191
  var require_runtimeExtensions = __commonJS((exports) => {
29652
30192
  Object.defineProperty(exports, "__esModule", { value: true });
29653
30193
  exports.resolveRuntimeExtensions = undefined;
@@ -29663,7 +30203,7 @@ var require_runtimeExtensions = __commonJS((exports) => {
29663
30203
  exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
29664
30204
  });
29665
30205
 
29666
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js
30206
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js
29667
30207
  var require_STSClient = __commonJS((exports) => {
29668
30208
  Object.defineProperty(exports, "__esModule", { value: true });
29669
30209
  exports.STSClient = exports.__Client = undefined;
@@ -29723,7 +30263,7 @@ var require_STSClient = __commonJS((exports) => {
29723
30263
  exports.STSClient = STSClient;
29724
30264
  });
29725
30265
 
29726
- // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.10/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
30266
+ // ../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
29727
30267
  var require_sts = __commonJS((exports) => {
29728
30268
  var STSClient = require_STSClient();
29729
30269
  var smithyClient = require_dist_cjs23();
@@ -29904,7 +30444,7 @@ var require_sts = __commonJS((exports) => {
29904
30444
  });
29905
30445
  });
29906
30446
 
29907
- // ../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.18/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
30447
+ // ../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.21/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
29908
30448
  var require_dist_cjs62 = __commonJS((exports) => {
29909
30449
  var sharedIniFileLoader = require_dist_cjs45();
29910
30450
  var propertyProvider = require_dist_cjs19();
@@ -29977,7 +30517,7 @@ var require_dist_cjs62 = __commonJS((exports) => {
29977
30517
  exports.fromProcess = fromProcess;
29978
30518
  });
29979
30519
 
29980
- // ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.20/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js
30520
+ // ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.23/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js
29981
30521
  var require_fromWebToken = __commonJS((exports) => {
29982
30522
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
29983
30523
  if (k2 === undefined)
@@ -30053,7 +30593,7 @@ var require_fromWebToken = __commonJS((exports) => {
30053
30593
  exports.fromWebToken = fromWebToken;
30054
30594
  });
30055
30595
 
30056
- // ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.20/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js
30596
+ // ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.23/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js
30057
30597
  var require_fromTokenFile = __commonJS((exports) => {
30058
30598
  Object.defineProperty(exports, "__esModule", { value: true });
30059
30599
  exports.fromTokenFile = undefined;
@@ -30089,7 +30629,7 @@ var require_fromTokenFile = __commonJS((exports) => {
30089
30629
  exports.fromTokenFile = fromTokenFile;
30090
30630
  });
30091
30631
 
30092
- // ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.20/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js
30632
+ // ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.23/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js
30093
30633
  var require_dist_cjs63 = __commonJS((exports) => {
30094
30634
  var fromTokenFile = require_fromTokenFile();
30095
30635
  var fromWebToken = require_fromWebToken();
@@ -30111,7 +30651,7 @@ var require_dist_cjs63 = __commonJS((exports) => {
30111
30651
  });
30112
30652
  });
30113
30653
 
30114
- // ../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.20/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
30654
+ // ../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.972.23/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
30115
30655
  var require_dist_cjs64 = __commonJS((exports) => {
30116
30656
  var sharedIniFileLoader = require_dist_cjs45();
30117
30657
  var propertyProvider = require_dist_cjs19();
@@ -30299,7 +30839,7 @@ var require_dist_cjs64 = __commonJS((exports) => {
30299
30839
  exports.fromIni = fromIni;
30300
30840
  });
30301
30841
 
30302
- // ../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.972.21/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
30842
+ // ../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.972.24/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
30303
30843
  var require_dist_cjs65 = __commonJS((exports) => {
30304
30844
  var credentialProviderEnv = require_dist_cjs51();
30305
30845
  var propertyProvider = require_dist_cjs19();
@@ -31401,7 +31941,7 @@ var require_dist_cjs70 = __commonJS((exports) => {
31401
31941
  exports.readableStreamHasher = readableStreamHasher;
31402
31942
  });
31403
31943
 
31404
- // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1011.0/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js
31944
+ // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1014.0/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js
31405
31945
  var require_runtimeConfig_shared5 = __commonJS((exports) => {
31406
31946
  Object.defineProperty(exports, "__esModule", { value: true });
31407
31947
  exports.getRuntimeConfig = undefined;
@@ -31460,7 +32000,7 @@ var require_runtimeConfig_shared5 = __commonJS((exports) => {
31460
32000
  exports.getRuntimeConfig = getRuntimeConfig;
31461
32001
  });
31462
32002
 
31463
- // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1011.0/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js
32003
+ // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1014.0/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js
31464
32004
  var require_runtimeConfig5 = __commonJS((exports) => {
31465
32005
  Object.defineProperty(exports, "__esModule", { value: true });
31466
32006
  exports.getRuntimeConfig = undefined;
@@ -31797,7 +32337,7 @@ var require_dist_cjs73 = __commonJS((exports) => {
31797
32337
  exports.waiterServiceDefaults = waiterServiceDefaults;
31798
32338
  });
31799
32339
 
31800
- // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1011.0/node_modules/@aws-sdk/client-s3/dist-cjs/index.js
32340
+ // ../node_modules/.pnpm/@aws-sdk+client-s3@3.1014.0/node_modules/@aws-sdk/client-s3/dist-cjs/index.js
31801
32341
  var require_dist_cjs74 = __commonJS((exports) => {
31802
32342
  var middlewareExpectContinue = require_dist_cjs3();
31803
32343
  var middlewareFlexibleChecksums = require_dist_cjs30();
@@ -62838,7 +63378,7 @@ var useKey = (envKey, initKey = "context") => {
62838
63378
  return null;
62839
63379
  };
62840
63380
 
62841
- // ../node_modules/.pnpm/@kevisual+router@0.1.6/node_modules/@kevisual/router/dist/router.js
63381
+ // ../node_modules/.pnpm/@kevisual+router@0.2.2/node_modules/@kevisual/router/dist/router.js
62842
63382
  import { createRequire as createRequire2 } from "node:module";
62843
63383
  import { webcrypto as crypto2 } from "node:crypto";
62844
63384
  import http from "node:http";
@@ -80087,7 +80627,7 @@ var fromJSONSchema2 = (args = {}, opts) => {
80087
80627
  }
80088
80628
  return resultArgs;
80089
80629
  };
80090
- var pickValue = ["path", "key", "id", "description", "type", "middleware", "metadata"];
80630
+ var pickValue = ["path", "key", "rid", "description", "type", "middleware", "metadata"];
80091
80631
  var tool = {
80092
80632
  schema: exports_external
80093
80633
  };
@@ -80107,7 +80647,7 @@ var createSkill = (skill) => {
80107
80647
  class Route {
80108
80648
  path;
80109
80649
  key;
80110
- id;
80650
+ rid;
80111
80651
  run;
80112
80652
  nextRoute;
80113
80653
  description;
@@ -80125,7 +80665,7 @@ class Route {
80125
80665
  this.key = key;
80126
80666
  const pathKey = `${path}$$${key}`;
80127
80667
  if (opts) {
80128
- this.id = opts.id || hashIdMd5Sync(pathKey);
80668
+ this.rid = opts.rid || hashIdMd5Sync(pathKey);
80129
80669
  this.run = opts.run;
80130
80670
  this.nextRoute = opts.nextRoute;
80131
80671
  this.description = opts.description;
@@ -80137,8 +80677,8 @@ class Route {
80137
80677
  } else {
80138
80678
  this.middleware = [];
80139
80679
  }
80140
- if (!this.id) {
80141
- this.id = hashIdMd5Sync(pathKey);
80680
+ if (!this.rid) {
80681
+ this.rid = hashIdMd5Sync(pathKey);
80142
80682
  }
80143
80683
  this.isDebug = opts?.isDebug ?? false;
80144
80684
  }
@@ -80244,14 +80784,14 @@ class QueryRouter {
80244
80784
  this.routes = this.routes.filter((r) => r.path === route.path && r.key == route.key);
80245
80785
  }
80246
80786
  removeById(uniqueId) {
80247
- this.routes = this.routes.filter((r) => r.id !== uniqueId);
80787
+ this.routes = this.routes.filter((r) => r.rid !== uniqueId);
80248
80788
  }
80249
80789
  async runRoute(path, key, ctx) {
80250
80790
  const route = this.routes.find((r) => r.path === path && r.key === key);
80251
80791
  const maxNextRoute = this.maxNextRoute;
80252
80792
  ctx = ctx || {};
80253
80793
  ctx.currentPath = path;
80254
- ctx.currentId = route?.id;
80794
+ ctx.currentId = route?.rid;
80255
80795
  ctx.currentKey = key;
80256
80796
  ctx.currentRoute = route;
80257
80797
  ctx.index = (ctx.index || 0) + 1;
@@ -80278,11 +80818,11 @@ class QueryRouter {
80278
80818
  let route2;
80279
80819
  const isString2 = typeof item === "string";
80280
80820
  if (isString2) {
80281
- route2 = this.routes.find((r) => r.id === item);
80821
+ route2 = this.routes.find((r) => r.rid === item);
80282
80822
  } else {
80283
80823
  route2 = this.routes.find((r) => {
80284
- if (item.id) {
80285
- return r.id === item.id;
80824
+ if (item.rid) {
80825
+ return r.rid === item.rid;
80286
80826
  } else {
80287
80827
  return r.path === item.path && r.key == item.key;
80288
80828
  }
@@ -80331,8 +80871,8 @@ class QueryRouter {
80331
80871
  ctx.message = e.message;
80332
80872
  ctx.body = null;
80333
80873
  } else {
80334
- console.error(`[router error] fn:${route.path}-${route.key}:${route.id}`);
80335
- console.error(`[router error] middleware:${middleware.path}-${middleware.key}:${middleware.id}`);
80874
+ console.error(`[router error] fn:${route.path}-${route.key}:${route.rid}`);
80875
+ console.error(`[router error] middleware:${middleware.path}-${middleware.key}:${middleware.rid}`);
80336
80876
  console.error(e);
80337
80877
  ctx.code = 500;
80338
80878
  ctx.message = "Internal Server Error";
@@ -80360,7 +80900,7 @@ class QueryRouter {
80360
80900
  ctx.code = e.code;
80361
80901
  ctx.message = e.message;
80362
80902
  } else {
80363
- console.error(`[router error] fn:${route.path}-${route.key}:${route.id}`);
80903
+ console.error(`[router error] fn:${route.path}-${route.key}:${route.rid}`);
80364
80904
  console.error(`[router error] error`, e);
80365
80905
  ctx.code = 500;
80366
80906
  ctx.message = "Internal Server Error";
@@ -80376,8 +80916,8 @@ class QueryRouter {
80376
80916
  if (route.nextRoute.path || route.nextRoute.key) {
80377
80917
  path2 = route.nextRoute.path;
80378
80918
  key2 = route.nextRoute.key;
80379
- } else if (route.nextRoute.id) {
80380
- const nextRoute = this.routes.find((r) => r.id === route.nextRoute.id);
80919
+ } else if (route.nextRoute.rid) {
80920
+ const nextRoute = this.routes.find((r) => r.rid === route.nextRoute.rid);
80381
80921
  if (nextRoute) {
80382
80922
  path2 = nextRoute.path;
80383
80923
  key2 = nextRoute.key;
@@ -80441,8 +80981,8 @@ class QueryRouter {
80441
80981
  let key = message.key;
80442
80982
  if (path) {
80443
80983
  return await this.parse({ ...message, path, key }, { ...this.context, ...ctx });
80444
- } else if (message.id) {
80445
- const route = this.routes.find((r) => r.id === message.id);
80984
+ } else if (message.rid) {
80985
+ const route = this.routes.find((r) => r.rid === message.rid);
80446
80986
  if (route) {
80447
80987
  path = route.path;
80448
80988
  key = route.key;
@@ -80515,10 +81055,10 @@ class QueryRouter {
80515
81055
  return this.routes.find((r) => r.path === path && r.key === key);
80516
81056
  }
80517
81057
  findRoute(opts) {
80518
- const { path, key, id } = opts || {};
81058
+ const { path, key, rid } = opts || {};
80519
81059
  return this.routes.find((r) => {
80520
- if (id) {
80521
- return r.id === id;
81060
+ if (rid) {
81061
+ return r.rid === rid;
80522
81062
  }
80523
81063
  if (path) {
80524
81064
  if (key !== undefined) {
@@ -80539,14 +81079,14 @@ class QueryRouter {
80539
81079
  const tokenUser = ctx.state;
80540
81080
  let isUser = !!tokenUser;
80541
81081
  const list = this.getList(opts?.filter).filter((item) => {
80542
- if (item.id === "auth" || item.id === "auth-can" || item.id === "check-auth-admin" || item.id === "auth-admin") {
81082
+ if (item.rid === "auth" || item.rid === "auth-can" || item.rid === "check-auth-admin" || item.rid === "auth-admin") {
80543
81083
  return false;
80544
81084
  }
80545
81085
  return true;
80546
81086
  });
80547
81087
  ctx.body = {
80548
81088
  list: list.map((item) => {
80549
- const route = pick(item, ["id", "path", "key", "description", "middleware", "metadata"]);
81089
+ const route = pick(item, ["rid", "path", "key", "description", "middleware", "metadata"]);
80550
81090
  return toJSONSchemaRoute(route);
80551
81091
  }),
80552
81092
  isUser
@@ -80616,14 +81156,14 @@ class QueryRouterServer extends QueryRouter {
80616
81156
  return super.run(msg, ctx);
80617
81157
  }
80618
81158
  async runAction(api2, payload, ctx) {
80619
- const { path, key, id } = api2;
80620
- return this.run({ path, key, id, payload }, ctx);
81159
+ const { path, key, rid } = api2;
81160
+ return this.run({ path, key, rid, payload }, ctx);
80621
81161
  }
80622
81162
  async createAuth(fun) {
80623
81163
  this.route({
80624
81164
  path: "auth",
80625
81165
  key: "auth",
80626
- id: "auth",
81166
+ rid: "auth",
80627
81167
  description: "token验证"
80628
81168
  }).define(async (ctx) => {
80629
81169
  if (fun) {
@@ -80633,7 +81173,7 @@ class QueryRouterServer extends QueryRouter {
80633
81173
  this.route({
80634
81174
  path: "auth-admin",
80635
81175
  key: "auth-admin",
80636
- id: "auth-admin",
81176
+ rid: "auth-admin",
80637
81177
  description: "admin token验证",
80638
81178
  middleware: ["auth"]
80639
81179
  }).define(async (ctx) => {
@@ -80644,7 +81184,7 @@ class QueryRouterServer extends QueryRouter {
80644
81184
  this.route({
80645
81185
  path: "auth-can",
80646
81186
  key: "auth-can",
80647
- id: "auth-can",
81187
+ rid: "auth-can",
80648
81188
  description: "权限验证"
80649
81189
  }).define(async (ctx) => {
80650
81190
  if (fun) {
@@ -81576,7 +82116,7 @@ class App extends QueryRouterServer {
81576
82116
  }
81577
82117
  }
81578
82118
 
81579
- // ../node_modules/.pnpm/@kevisual+router@0.1.6/node_modules/@kevisual/router/dist/router-simple.js
82119
+ // ../node_modules/.pnpm/@kevisual+router@0.2.2/node_modules/@kevisual/router/dist/router-simple.js
81580
82120
  import url3 from "node:url";
81581
82121
  var __create3 = Object.create;
81582
82122
  var __getProtoOf3 = Object.getPrototypeOf;
@@ -92871,7 +93411,7 @@ class Query {
92871
93411
  }
92872
93412
  }
92873
93413
 
92874
- // ../node_modules/.pnpm/@kevisual+router@0.1.6/node_modules/@kevisual/router/dist/router-browser.js
93414
+ // ../node_modules/.pnpm/@kevisual+router@0.2.2/node_modules/@kevisual/router/dist/router-browser.js
92875
93415
  var __create5 = Object.create;
92876
93416
  var __getProtoOf5 = Object.getPrototypeOf;
92877
93417
  var __defProp5 = Object.defineProperty;
@@ -125688,7 +126228,7 @@ function filter(data, query) {
125688
126228
  return executor.execute(ast, data);
125689
126229
  }
125690
126230
 
125691
- // ../node_modules/.pnpm/@kevisual+api@0.0.64_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/query/query-proxy/router-api-proxy.ts
126231
+ // ../node_modules/.pnpm/@kevisual+api@0.0.65_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/query/query-proxy/router-api-proxy.ts
125692
126232
  var initApi = async (opts) => {
125693
126233
  const router = opts?.router;
125694
126234
  const item = opts?.item;
@@ -140224,7 +140764,7 @@ class Query2 {
140224
140764
  }
140225
140765
  }
140226
140766
 
140227
- // ../node_modules/.pnpm/@kevisual+api@0.0.64_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/dist/query-login-node.js
140767
+ // ../node_modules/.pnpm/@kevisual+api@0.0.65_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/dist/query-login-node.js
140228
140768
  import { homedir as homedir2 } from "node:os";
140229
140769
  import { join, dirname } from "node:path";
140230
140770
  import fs15 from "node:fs";
@@ -140234,15 +140774,29 @@ var __getProtoOf6 = Object.getPrototypeOf;
140234
140774
  var __defProp6 = Object.defineProperty;
140235
140775
  var __getOwnPropNames6 = Object.getOwnPropertyNames;
140236
140776
  var __hasOwnProp6 = Object.prototype.hasOwnProperty;
140777
+ function __accessProp5(key) {
140778
+ return this[key];
140779
+ }
140780
+ var __toESMCache_node5;
140781
+ var __toESMCache_esm5;
140237
140782
  var __toESM6 = (mod, isNodeMode, target) => {
140783
+ var canCache = mod != null && typeof mod === "object";
140784
+ if (canCache) {
140785
+ var cache = isNodeMode ? __toESMCache_node5 ??= new WeakMap : __toESMCache_esm5 ??= new WeakMap;
140786
+ var cached4 = cache.get(mod);
140787
+ if (cached4)
140788
+ return cached4;
140789
+ }
140238
140790
  target = mod != null ? __create6(__getProtoOf6(mod)) : {};
140239
140791
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp6(target, "default", { value: mod, enumerable: true }) : target;
140240
140792
  for (let key of __getOwnPropNames6(mod))
140241
140793
  if (!__hasOwnProp6.call(to, key))
140242
140794
  __defProp6(to, key, {
140243
- get: () => mod[key],
140795
+ get: __accessProp5.bind(mod, key),
140244
140796
  enumerable: true
140245
140797
  });
140798
+ if (canCache)
140799
+ cache.set(mod, to);
140246
140800
  return to;
140247
140801
  };
140248
140802
  var __commonJS6 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
@@ -140624,10 +141178,6 @@ class Query3 {
140624
141178
  });
140625
141179
  }
140626
141180
  }
140627
- const headers2 = req.headers || {};
140628
- if (options?.token && !headers2["Authorization"]) {
140629
- headers2["Authorization"] = `Bearer ${options.token}`;
140630
- }
140631
141181
  } catch (e) {
140632
141182
  console.error("request beforeFn error", e, req);
140633
141183
  return wrapperError3({
@@ -140688,20 +141238,20 @@ class Query3 {
140688
141238
  this.afterResponse = fn;
140689
141239
  }
140690
141240
  async fetchText(urlOrOptions, options) {
140691
- let _options = { method: "GET", ...options };
141241
+ let _options = { ...options };
140692
141242
  if (typeof urlOrOptions === "string" && !_options.url) {
140693
141243
  _options.url = urlOrOptions;
140694
141244
  }
140695
141245
  if (typeof urlOrOptions === "object") {
140696
141246
  _options = { ...urlOrOptions, ..._options };
140697
141247
  }
140698
- const headers = { ...this.headers, ..._options.headers };
140699
- if (options?.token && !headers["Authorization"] && _options.method !== "GET") {
140700
- headers["Authorization"] = `Bearer ${options.token}`;
140701
- }
140702
141248
  const res = await adapter3({
141249
+ method: "GET",
140703
141250
  ..._options,
140704
- headers
141251
+ headers: {
141252
+ ...this.headers,
141253
+ ..._options?.headers || {}
141254
+ }
140705
141255
  });
140706
141256
  if (res && !res.code) {
140707
141257
  return {
@@ -141570,6 +142120,9 @@ class QueryLogin extends BaseQuery {
141570
142120
  const res = await this.refreshLoginUser();
141571
142121
  if (res.code === 200) {
141572
142122
  return res.data?.accessToken || null;
142123
+ } else {
142124
+ this.storage.removeItem("token");
142125
+ await this.cacheStore.clearCurrentUser();
141573
142126
  }
141574
142127
  return null;
141575
142128
  }
@@ -144764,7 +145317,7 @@ app.route({
144764
145317
  }).addTo(app, {
144765
145318
  overwrite: false
144766
145319
  });
144767
- // ../node_modules/.pnpm/@opencode-ai+sdk@1.2.27/node_modules/@opencode-ai/sdk/dist/gen/core/serverSentEvents.gen.js
145320
+ // ../node_modules/.pnpm/@opencode-ai+sdk@1.3.0/node_modules/@opencode-ai/sdk/dist/gen/core/serverSentEvents.gen.js
144768
145321
  var createSseClient = ({ onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url: url4, ...options }) => {
144769
145322
  let lastEventId;
144770
145323
  const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
@@ -144873,7 +145426,7 @@ var createSseClient = ({ onSseError, onSseEvent, responseTransformer, responseVa
144873
145426
  return { stream: stream2 };
144874
145427
  };
144875
145428
 
144876
- // ../node_modules/.pnpm/@opencode-ai+sdk@1.2.27/node_modules/@opencode-ai/sdk/dist/gen/core/auth.gen.js
145429
+ // ../node_modules/.pnpm/@opencode-ai+sdk@1.3.0/node_modules/@opencode-ai/sdk/dist/gen/core/auth.gen.js
144877
145430
  var getAuthToken = async (auth, callback) => {
144878
145431
  const token = typeof callback === "function" ? await callback(auth) : callback;
144879
145432
  if (!token) {
@@ -144888,12 +145441,12 @@ var getAuthToken = async (auth, callback) => {
144888
145441
  return token;
144889
145442
  };
144890
145443
 
144891
- // ../node_modules/.pnpm/@opencode-ai+sdk@1.2.27/node_modules/@opencode-ai/sdk/dist/gen/core/bodySerializer.gen.js
145444
+ // ../node_modules/.pnpm/@opencode-ai+sdk@1.3.0/node_modules/@opencode-ai/sdk/dist/gen/core/bodySerializer.gen.js
144892
145445
  var jsonBodySerializer = {
144893
145446
  bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
144894
145447
  };
144895
145448
 
144896
- // ../node_modules/.pnpm/@opencode-ai+sdk@1.2.27/node_modules/@opencode-ai/sdk/dist/gen/core/pathSerializer.gen.js
145449
+ // ../node_modules/.pnpm/@opencode-ai+sdk@1.3.0/node_modules/@opencode-ai/sdk/dist/gen/core/pathSerializer.gen.js
144897
145450
  var separatorArrayExplode = (style) => {
144898
145451
  switch (style) {
144899
145452
  case "label":
@@ -144996,7 +145549,7 @@ var serializeObjectParam = ({ allowReserved, explode, name, style, value, valueO
144996
145549
  return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
144997
145550
  };
144998
145551
 
144999
- // ../node_modules/.pnpm/@opencode-ai+sdk@1.2.27/node_modules/@opencode-ai/sdk/dist/gen/core/utils.gen.js
145552
+ // ../node_modules/.pnpm/@opencode-ai+sdk@1.3.0/node_modules/@opencode-ai/sdk/dist/gen/core/utils.gen.js
145000
145553
  var PATH_PARAM_RE = /\{[^{}]+\}/g;
145001
145554
  var defaultPathSerializer = ({ path: path18, url: _url4 }) => {
145002
145555
  let url4 = _url4;
@@ -145064,7 +145617,7 @@ var getUrl = ({ baseUrl, path: path18, query: query2, querySerializer, url: _url
145064
145617
  return url4;
145065
145618
  };
145066
145619
 
145067
- // ../node_modules/.pnpm/@opencode-ai+sdk@1.2.27/node_modules/@opencode-ai/sdk/dist/gen/client/utils.gen.js
145620
+ // ../node_modules/.pnpm/@opencode-ai+sdk@1.3.0/node_modules/@opencode-ai/sdk/dist/gen/client/utils.gen.js
145068
145621
  var createQuerySerializer = ({ allowReserved, array: array5, object: object4 } = {}) => {
145069
145622
  const querySerializer = (queryParams) => {
145070
145623
  const search = [];
@@ -145272,7 +145825,7 @@ var createConfig = (override = {}) => ({
145272
145825
  ...override
145273
145826
  });
145274
145827
 
145275
- // ../node_modules/.pnpm/@opencode-ai+sdk@1.2.27/node_modules/@opencode-ai/sdk/dist/gen/client/client.gen.js
145828
+ // ../node_modules/.pnpm/@opencode-ai+sdk@1.3.0/node_modules/@opencode-ai/sdk/dist/gen/client/client.gen.js
145276
145829
  var createClient = (config6 = {}) => {
145277
145830
  let _config = mergeConfigs(createConfig(), config6);
145278
145831
  const getConfig2 = () => ({ ..._config });
@@ -145419,7 +145972,7 @@ var createClient = (config6 = {}) => {
145419
145972
  trace: makeMethod("TRACE")
145420
145973
  };
145421
145974
  };
145422
- // ../node_modules/.pnpm/@opencode-ai+sdk@1.2.27/node_modules/@opencode-ai/sdk/dist/gen/core/params.gen.js
145975
+ // ../node_modules/.pnpm/@opencode-ai+sdk@1.3.0/node_modules/@opencode-ai/sdk/dist/gen/core/params.gen.js
145423
145976
  var extraPrefixesMap = {
145424
145977
  $body_: "body",
145425
145978
  $headers_: "headers",
@@ -145427,12 +145980,12 @@ var extraPrefixesMap = {
145427
145980
  $query_: "query"
145428
145981
  };
145429
145982
  var extraPrefixes = Object.entries(extraPrefixesMap);
145430
- // ../node_modules/.pnpm/@opencode-ai+sdk@1.2.27/node_modules/@opencode-ai/sdk/dist/gen/client.gen.js
145983
+ // ../node_modules/.pnpm/@opencode-ai+sdk@1.3.0/node_modules/@opencode-ai/sdk/dist/gen/client.gen.js
145431
145984
  var client = createClient(createConfig({
145432
145985
  baseUrl: "http://localhost:4096"
145433
145986
  }));
145434
145987
 
145435
- // ../node_modules/.pnpm/@opencode-ai+sdk@1.2.27/node_modules/@opencode-ai/sdk/dist/gen/sdk.gen.js
145988
+ // ../node_modules/.pnpm/@opencode-ai+sdk@1.3.0/node_modules/@opencode-ai/sdk/dist/gen/sdk.gen.js
145436
145989
  class _HeyApiClient {
145437
145990
  _client = client;
145438
145991
  constructor(args2) {
@@ -146102,7 +146655,7 @@ class OpencodeClient extends _HeyApiClient {
146102
146655
  event = new Event({ client: this._client });
146103
146656
  }
146104
146657
 
146105
- // ../node_modules/.pnpm/@opencode-ai+sdk@1.2.27/node_modules/@opencode-ai/sdk/dist/client.js
146658
+ // ../node_modules/.pnpm/@opencode-ai+sdk@1.3.0/node_modules/@opencode-ai/sdk/dist/client.js
146106
146659
  function createOpencodeClient(config6) {
146107
146660
  if (!config6?.fetch) {
146108
146661
  const customFetch = (req) => {
@@ -146123,7 +146676,7 @@ function createOpencodeClient(config6) {
146123
146676
  const client2 = createClient(config6);
146124
146677
  return new OpencodeClient({ client: client2 });
146125
146678
  }
146126
- // ../node_modules/.pnpm/@opencode-ai+sdk@1.2.27/node_modules/@opencode-ai/sdk/dist/server.js
146679
+ // ../node_modules/.pnpm/@opencode-ai+sdk@1.3.0/node_modules/@opencode-ai/sdk/dist/server.js
146127
146680
  import { spawn as spawn3 } from "node:child_process";
146128
146681
  async function createOpencodeServer(options) {
146129
146682
  options = Object.assign({
@@ -146192,7 +146745,7 @@ Server output: ${output}`;
146192
146745
  }
146193
146746
  };
146194
146747
  }
146195
- // ../node_modules/.pnpm/@opencode-ai+sdk@1.2.27/node_modules/@opencode-ai/sdk/dist/index.js
146748
+ // ../node_modules/.pnpm/@opencode-ai+sdk@1.3.0/node_modules/@opencode-ai/sdk/dist/index.js
146196
146749
  async function createOpencode(options) {
146197
146750
  const server2 = await createOpencodeServer({
146198
146751
  ...options
@@ -146206,7 +146759,7 @@ async function createOpencode(options) {
146206
146759
  };
146207
146760
  }
146208
146761
 
146209
- // ../node_modules/.pnpm/get-port@7.1.0/node_modules/get-port/index.js
146762
+ // ../node_modules/.pnpm/get-port@7.2.0/node_modules/get-port/index.js
146210
146763
  import net from "node:net";
146211
146764
  import os5 from "node:os";
146212
146765
 
@@ -146220,6 +146773,7 @@ var lockedPorts = {
146220
146773
  young: new Set
146221
146774
  };
146222
146775
  var releaseOldLockedPortsIntervalMs = 1000 * 15;
146776
+ var reservedPorts = new Set;
146223
146777
  var minPort = 1024;
146224
146778
  var maxPort = 65535;
146225
146779
  var timeout2;
@@ -146259,6 +146813,7 @@ var getAvailablePort = async (options, hosts) => {
146259
146813
  }
146260
146814
  return options.port;
146261
146815
  };
146816
+ var isLockedPort = (port) => lockedPorts.old.has(port) || lockedPorts.young.has(port) || reservedPorts.has(port);
146262
146817
  var portCheckSequence = function* (ports) {
146263
146818
  if (ports) {
146264
146819
  yield* ports;
@@ -146288,6 +146843,7 @@ async function getPorts(options) {
146288
146843
  exclude = new Set(excludeIterable);
146289
146844
  }
146290
146845
  }
146846
+ const { reserve, ...netOptions } = options ?? {};
146291
146847
  if (timeout2 === undefined) {
146292
146848
  timeout2 = setTimeout(() => {
146293
146849
  timeout2 = undefined;
@@ -146304,14 +146860,18 @@ async function getPorts(options) {
146304
146860
  if (exclude.has(port)) {
146305
146861
  continue;
146306
146862
  }
146307
- let availablePort = await getAvailablePort({ ...options, port }, hosts);
146308
- while (lockedPorts.old.has(availablePort) || lockedPorts.young.has(availablePort)) {
146863
+ let availablePort = await getAvailablePort({ ...netOptions, port }, hosts);
146864
+ while (isLockedPort(availablePort)) {
146309
146865
  if (port !== 0) {
146310
146866
  throw new Locked(port);
146311
146867
  }
146312
- availablePort = await getAvailablePort({ ...options, port }, hosts);
146868
+ availablePort = await getAvailablePort({ ...netOptions, port }, hosts);
146869
+ }
146870
+ if (reserve) {
146871
+ reservedPorts.add(availablePort);
146872
+ } else {
146873
+ lockedPorts.young.add(availablePort);
146313
146874
  }
146314
- lockedPorts.young.add(availablePort);
146315
146875
  return availablePort;
146316
146876
  } catch (error54) {
146317
146877
  if (!["EADDRINUSE", "EACCES"].includes(error54.code) && !(error54 instanceof Locked)) {
@@ -148459,7 +149019,7 @@ var checkAuth = async (ctx, isAdmin = false) => {
148459
149019
  };
148460
149020
  app.route({
148461
149021
  path: "auth",
148462
- id: "auth",
149022
+ rid: "auth",
148463
149023
  description: "获取当前登录用户信息, 第一个登录的用户为管理员用户"
148464
149024
  }).define(async (ctx) => {
148465
149025
  if (!ctx.query?.token && ctx.appId === app.appId) {
@@ -148472,7 +149032,7 @@ app.route({
148472
149032
  }).addTo(app);
148473
149033
  app.route({
148474
149034
  path: "auth-admin",
148475
- id: "auth-admin",
149035
+ rid: "auth-admin",
148476
149036
  description: "管理员鉴权, 获取用户信息,并验证是否为管理员。"
148477
149037
  }).define(async (ctx) => {
148478
149038
  if (!ctx.query?.token && ctx.appId === app.appId) {
@@ -149153,7 +149713,7 @@ var import_busboy = __toESM(require_lib2(), 1);
149153
149713
  import path20 from "path";
149154
149714
  import fs23 from "fs";
149155
149715
 
149156
- // ../node_modules/.pnpm/@kevisual+router@0.1.6/node_modules/@kevisual/router/src/server/cookie.ts
149716
+ // ../node_modules/.pnpm/@kevisual+router@0.2.2/node_modules/@kevisual/router/src/server/cookie.ts
149157
149717
  var NullObject2 = /* @__PURE__ */ (() => {
149158
149718
  const C2 = function() {};
149159
149719
  C2.prototype = Object.create(null);