@sentry/craft 2.21.5 → 2.21.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/craft +1770 -635
  2. package/package.json +2 -2
package/dist/craft CHANGED
@@ -50568,12 +50568,12 @@ var require_prompt = __commonJS({
50568
50568
  var readline = require("readline");
50569
50569
  var _require = require_util();
50570
50570
  var action = _require.action;
50571
- var EventEmitter4 = require("events");
50571
+ var EventEmitter5 = require("events");
50572
50572
  var _require2 = require_src30();
50573
50573
  var beep = _require2.beep;
50574
50574
  var cursor2 = _require2.cursor;
50575
50575
  var color = require_kleur();
50576
- var Prompt = class extends EventEmitter4 {
50576
+ var Prompt = class extends EventEmitter5 {
50577
50577
  constructor(opts = {}) {
50578
50578
  super();
50579
50579
  this.firstRender = true;
@@ -53063,10 +53063,10 @@ var require_prompt2 = __commonJS({
53063
53063
  init_import_meta_url();
53064
53064
  var readline = require("readline");
53065
53065
  var { action } = require_util2();
53066
- var EventEmitter4 = require("events");
53066
+ var EventEmitter5 = require("events");
53067
53067
  var { beep, cursor: cursor2 } = require_src30();
53068
53068
  var color = require_kleur();
53069
- var Prompt = class extends EventEmitter4 {
53069
+ var Prompt = class extends EventEmitter5 {
53070
53070
  constructor(opts = {}) {
53071
53071
  super();
53072
53072
  this.firstRender = true;
@@ -55130,6 +55130,9 @@ function truncateForOutput(value, changelogUrl) {
55130
55130
  }
55131
55131
  return truncated + notice;
55132
55132
  }
55133
+ function disableChangelogMentions(changelog) {
55134
+ return changelog.replace(/ by @(\S+) in /g, " by **$1** in ");
55135
+ }
55133
55136
  var import_fs, import_path2, import_prompts, MAX_STEP_OUTPUT_BYTES, FALSY_ENV_VALUES2, GLOBAL_FLAGS;
55134
55137
  var init_helpers = __esm({
55135
55138
  "src/utils/helpers.ts"() {
@@ -61898,14 +61901,14 @@ var require_lib9 = __commonJS({
61898
61901
  function _interopDefault(ex) {
61899
61902
  return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
61900
61903
  }
61901
- var Stream2 = _interopDefault(require("stream"));
61904
+ var Stream3 = _interopDefault(require("stream"));
61902
61905
  var http4 = _interopDefault(require("http"));
61903
61906
  var Url = _interopDefault(require("url"));
61904
61907
  var whatwgUrl = _interopDefault(require_public_api());
61905
61908
  var https2 = _interopDefault(require("https"));
61906
61909
  var zlib2 = _interopDefault(require("zlib"));
61907
- var Readable5 = Stream2.Readable;
61908
- var BUFFER3 = Symbol("buffer");
61910
+ var Readable5 = Stream3.Readable;
61911
+ var BUFFER4 = Symbol("buffer");
61909
61912
  var TYPE2 = Symbol("type");
61910
61913
  var Blob2 = class _Blob {
61911
61914
  constructor() {
@@ -61927,7 +61930,7 @@ var require_lib9 = __commonJS({
61927
61930
  } else if (element instanceof ArrayBuffer) {
61928
61931
  buffer = Buffer.from(element);
61929
61932
  } else if (element instanceof _Blob) {
61930
- buffer = element[BUFFER3];
61933
+ buffer = element[BUFFER4];
61931
61934
  } else {
61932
61935
  buffer = Buffer.from(typeof element === "string" ? element : String(element));
61933
61936
  }
@@ -61935,23 +61938,23 @@ var require_lib9 = __commonJS({
61935
61938
  buffers.push(buffer);
61936
61939
  }
61937
61940
  }
61938
- this[BUFFER3] = Buffer.concat(buffers);
61941
+ this[BUFFER4] = Buffer.concat(buffers);
61939
61942
  let type2 = options && options.type !== void 0 && String(options.type).toLowerCase();
61940
61943
  if (type2 && !/[^\u0020-\u007E]/.test(type2)) {
61941
61944
  this[TYPE2] = type2;
61942
61945
  }
61943
61946
  }
61944
61947
  get size() {
61945
- return this[BUFFER3].length;
61948
+ return this[BUFFER4].length;
61946
61949
  }
61947
61950
  get type() {
61948
61951
  return this[TYPE2];
61949
61952
  }
61950
61953
  text() {
61951
- return Promise.resolve(this[BUFFER3].toString());
61954
+ return Promise.resolve(this[BUFFER4].toString());
61952
61955
  }
61953
61956
  arrayBuffer() {
61954
- const buf = this[BUFFER3];
61957
+ const buf = this[BUFFER4];
61955
61958
  const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
61956
61959
  return Promise.resolve(ab);
61957
61960
  }
@@ -61959,7 +61962,7 @@ var require_lib9 = __commonJS({
61959
61962
  const readable = new Readable5();
61960
61963
  readable._read = function() {
61961
61964
  };
61962
- readable.push(this[BUFFER3]);
61965
+ readable.push(this[BUFFER4]);
61963
61966
  readable.push(null);
61964
61967
  return readable;
61965
61968
  }
@@ -61986,10 +61989,10 @@ var require_lib9 = __commonJS({
61986
61989
  relativeEnd = Math.min(end, size);
61987
61990
  }
61988
61991
  const span = Math.max(relativeEnd - relativeStart, 0);
61989
- const buffer = this[BUFFER3];
61992
+ const buffer = this[BUFFER4];
61990
61993
  const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
61991
61994
  const blob = new _Blob([], { type: arguments[2] });
61992
- blob[BUFFER3] = slicedBuffer;
61995
+ blob[BUFFER4] = slicedBuffer;
61993
61996
  return blob;
61994
61997
  }
61995
61998
  };
@@ -62022,7 +62025,7 @@ var require_lib9 = __commonJS({
62022
62025
  } catch (e4) {
62023
62026
  }
62024
62027
  var INTERNALS = Symbol("Body internals");
62025
- var PassThrough2 = Stream2.PassThrough;
62028
+ var PassThrough2 = Stream3.PassThrough;
62026
62029
  function Body(body) {
62027
62030
  var _this = this;
62028
62031
  var _ref = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ref$size = _ref.size;
@@ -62039,7 +62042,7 @@ var require_lib9 = __commonJS({
62039
62042
  body = Buffer.from(body);
62040
62043
  } else if (ArrayBuffer.isView(body)) {
62041
62044
  body = Buffer.from(body.buffer, body.byteOffset, body.byteLength);
62042
- } else if (body instanceof Stream2) ;
62045
+ } else if (body instanceof Stream3) ;
62043
62046
  else {
62044
62047
  body = Buffer.from(String(body));
62045
62048
  }
@@ -62050,7 +62053,7 @@ var require_lib9 = __commonJS({
62050
62053
  };
62051
62054
  this.size = size;
62052
62055
  this.timeout = timeout;
62053
- if (body instanceof Stream2) {
62056
+ if (body instanceof Stream3) {
62054
62057
  body.on("error", function(err) {
62055
62058
  const error3 = err.name === "AbortError" ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, "system", err);
62056
62059
  _this[INTERNALS].error = error3;
@@ -62088,7 +62091,7 @@ var require_lib9 = __commonJS({
62088
62091
  type: ct.toLowerCase()
62089
62092
  }),
62090
62093
  {
62091
- [BUFFER3]: buf
62094
+ [BUFFER4]: buf
62092
62095
  }
62093
62096
  );
62094
62097
  });
@@ -62174,7 +62177,7 @@ var require_lib9 = __commonJS({
62174
62177
  if (Buffer.isBuffer(body)) {
62175
62178
  return Body.Promise.resolve(body);
62176
62179
  }
62177
- if (!(body instanceof Stream2)) {
62180
+ if (!(body instanceof Stream3)) {
62178
62181
  return Body.Promise.resolve(Buffer.alloc(0));
62179
62182
  }
62180
62183
  let accum = [];
@@ -62273,7 +62276,7 @@ var require_lib9 = __commonJS({
62273
62276
  if (instance.bodyUsed) {
62274
62277
  throw new Error("cannot clone body after it is used");
62275
62278
  }
62276
- if (body instanceof Stream2 && typeof body.getBoundary !== "function") {
62279
+ if (body instanceof Stream3 && typeof body.getBoundary !== "function") {
62277
62280
  p1 = new PassThrough2();
62278
62281
  p22 = new PassThrough2();
62279
62282
  body.pipe(p1);
@@ -62300,7 +62303,7 @@ var require_lib9 = __commonJS({
62300
62303
  return null;
62301
62304
  } else if (typeof body.getBoundary === "function") {
62302
62305
  return `multipart/form-data;boundary=${body.getBoundary()}`;
62303
- } else if (body instanceof Stream2) {
62306
+ } else if (body instanceof Stream3) {
62304
62307
  return null;
62305
62308
  } else {
62306
62309
  return "text/plain;charset=UTF-8";
@@ -62724,7 +62727,7 @@ var require_lib9 = __commonJS({
62724
62727
  }
62725
62728
  return parse_url(urlStr);
62726
62729
  }
62727
- var streamDestructionSupported = "destroy" in Stream2.Readable.prototype;
62730
+ var streamDestructionSupported = "destroy" in Stream3.Readable.prototype;
62728
62731
  function isRequest(input) {
62729
62732
  return typeof input === "object" && typeof input[INTERNALS$2] === "object";
62730
62733
  }
@@ -62831,7 +62834,7 @@ var require_lib9 = __commonJS({
62831
62834
  if (!/^https?:$/.test(parsedURL.protocol)) {
62832
62835
  throw new TypeError("Only HTTP(S) protocols are supported");
62833
62836
  }
62834
- if (request3.signal && request3.body instanceof Stream2.Readable && !streamDestructionSupported) {
62837
+ if (request3.signal && request3.body instanceof Stream3.Readable && !streamDestructionSupported) {
62835
62838
  throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");
62836
62839
  }
62837
62840
  let contentLengthValue = null;
@@ -62873,7 +62876,7 @@ var require_lib9 = __commonJS({
62873
62876
  AbortError.prototype.constructor = AbortError;
62874
62877
  AbortError.prototype.name = "AbortError";
62875
62878
  var URL$1 = Url.URL || whatwgUrl.URL;
62876
- var PassThrough$1 = Stream2.PassThrough;
62879
+ var PassThrough$1 = Stream3.PassThrough;
62877
62880
  var isDomainOrSubdomain = function isDomainOrSubdomain2(destination, original) {
62878
62881
  const orig = new URL$1(original).hostname;
62879
62882
  const dest = new URL$1(destination).hostname;
@@ -62898,7 +62901,7 @@ var require_lib9 = __commonJS({
62898
62901
  const abort = function abort2() {
62899
62902
  let error3 = new AbortError("The user aborted a request.");
62900
62903
  reject(error3);
62901
- if (request3.body && request3.body instanceof Stream2.Readable) {
62904
+ if (request3.body && request3.body instanceof Stream3.Readable) {
62902
62905
  destroyStream(request3.body, error3);
62903
62906
  }
62904
62907
  if (!response || !response.body) return;
@@ -63284,7 +63287,7 @@ var init_p_limit = __esm({
63284
63287
  var require_through = __commonJS({
63285
63288
  "node_modules/.pnpm/through@2.3.8/node_modules/through/index.js"(exports2, module2) {
63286
63289
  init_import_meta_url();
63287
- var Stream2 = require("stream");
63290
+ var Stream3 = require("stream");
63288
63291
  exports2 = module2.exports = through;
63289
63292
  through.through = through;
63290
63293
  function through(write, end, opts) {
@@ -63295,7 +63298,7 @@ var require_through = __commonJS({
63295
63298
  this.queue(null);
63296
63299
  };
63297
63300
  var ended = false, destroyed = false, buffer = [], _ended2 = false;
63298
- var stream2 = new Stream2();
63301
+ var stream2 = new Stream3();
63299
63302
  stream2.readable = stream2.writable = true;
63300
63303
  stream2.paused = false;
63301
63304
  stream2.autoDestroy = !(opts && opts.autoDestroy === false);
@@ -63422,10 +63425,10 @@ var require_split = __commonJS({
63422
63425
  }
63423
63426
  });
63424
63427
 
63425
- // node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.js
63428
+ // node_modules/.pnpm/minipass@7.1.3/node_modules/minipass/dist/esm/index.js
63426
63429
  var import_node_events3, import_node_stream2, import_node_string_decoder, proc, isStream, isReadable, isWritable, EOF, MAYBE_EMIT_END, EMITTED_END, EMITTING_END, EMITTED_ERROR, CLOSED, READ, FLUSH, FLUSHCHUNK, ENCODING, DECODER, FLOWING, PAUSED, RESUME, BUFFER, PIPES, BUFFERLENGTH, BUFFERPUSH, BUFFERSHIFT, OBJECTMODE, DESTROYED, ERROR, EMITDATA, EMITEND, EMITEND2, ASYNC, ABORT, ABORTED, SIGNAL, DATALISTENERS, DISCARDED, defer, nodefer, isEndish, isArrayBufferLike, isArrayBufferView, Pipe, PipeProxyErrors, isObjectModeOptions, isEncodingOptions, Minipass;
63427
63430
  var init_esm9 = __esm({
63428
- "node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.js"() {
63431
+ "node_modules/.pnpm/minipass@7.1.3/node_modules/minipass/dist/esm/index.js"() {
63429
63432
  init_import_meta_url();
63430
63433
  import_node_events3 = require("node:events");
63431
63434
  import_node_stream2 = __toESM(require("node:stream"), 1);
@@ -63507,7 +63510,7 @@ var init_esm9 = __esm({
63507
63510
  }
63508
63511
  constructor(src, dest, opts) {
63509
63512
  super(src, dest, opts);
63510
- this.proxyErrors = (er) => dest.emit("error", er);
63513
+ this.proxyErrors = (er) => this.dest.emit("error", er);
63511
63514
  src.on("error", this.proxyErrors);
63512
63515
  }
63513
63516
  };
@@ -64221,6 +64224,8 @@ var init_esm9 = __esm({
64221
64224
  return: stop,
64222
64225
  [Symbol.asyncIterator]() {
64223
64226
  return this;
64227
+ },
64228
+ [Symbol.asyncDispose]: async () => {
64224
64229
  }
64225
64230
  };
64226
64231
  }
@@ -64256,6 +64261,8 @@ var init_esm9 = __esm({
64256
64261
  return: stop,
64257
64262
  [Symbol.iterator]() {
64258
64263
  return this;
64264
+ },
64265
+ [Symbol.dispose]: () => {
64259
64266
  }
64260
64267
  };
64261
64268
  }
@@ -64695,10 +64702,10 @@ var init_esm10 = __esm({
64695
64702
  }
64696
64703
  });
64697
64704
 
64698
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/options.js
64705
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/options.js
64699
64706
  var argmap, isSyncFile, isAsyncFile, isSyncNoFile, isAsyncNoFile, isFile, dealiasKey, dealias;
64700
64707
  var init_options = __esm({
64701
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/options.js"() {
64708
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/options.js"() {
64702
64709
  init_import_meta_url();
64703
64710
  argmap = /* @__PURE__ */ new Map([
64704
64711
  ["C", "cwd"],
@@ -64750,10 +64757,10 @@ var init_options = __esm({
64750
64757
  }
64751
64758
  });
64752
64759
 
64753
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/make-command.js
64760
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/make-command.js
64754
64761
  var makeCommand;
64755
64762
  var init_make_command = __esm({
64756
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/make-command.js"() {
64763
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/make-command.js"() {
64757
64764
  init_import_meta_url();
64758
64765
  init_options();
64759
64766
  makeCommand = (syncFile, asyncFile, syncNoFile, asyncNoFile, validate5) => {
@@ -65207,10 +65214,10 @@ var init_esm11 = __esm({
65207
65214
  }
65208
65215
  });
65209
65216
 
65210
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/large-numbers.js
65217
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/large-numbers.js
65211
65218
  var encode, encodePositive, encodeNegative, parse, twos, pos, onesComp, twosComp;
65212
65219
  var init_large_numbers = __esm({
65213
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/large-numbers.js"() {
65220
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/large-numbers.js"() {
65214
65221
  init_import_meta_url();
65215
65222
  encode = (num, buf) => {
65216
65223
  if (!Number.isSafeInteger(num)) {
@@ -65294,10 +65301,10 @@ var init_large_numbers = __esm({
65294
65301
  }
65295
65302
  });
65296
65303
 
65297
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/types.js
65304
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/types.js
65298
65305
  var isCode, name, code;
65299
65306
  var init_types3 = __esm({
65300
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/types.js"() {
65307
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/types.js"() {
65301
65308
  init_import_meta_url();
65302
65309
  isCode = (c4) => name.has(c4);
65303
65310
  name = /* @__PURE__ */ new Map([
@@ -65343,10 +65350,10 @@ var init_types3 = __esm({
65343
65350
  }
65344
65351
  });
65345
65352
 
65346
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/header.js
65353
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/header.js
65347
65354
  var import_node_path5, Header, splitPrefix, decString, decDate, numToDate, decNumber, nanUndef, decSmallNumber, MAXNUM, encNumber, encSmallNumber, octalString, padOctal, encDate, NULLS, encString;
65348
65355
  var init_header = __esm({
65349
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/header.js"() {
65356
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/header.js"() {
65350
65357
  init_import_meta_url();
65351
65358
  import_node_path5 = require("node:path");
65352
65359
  init_large_numbers();
@@ -65555,10 +65562,10 @@ var init_header = __esm({
65555
65562
  }
65556
65563
  });
65557
65564
 
65558
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/pax.js
65565
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/pax.js
65559
65566
  var import_node_path6, Pax, merge3, parseKV, parseKVLine;
65560
65567
  var init_pax = __esm({
65561
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/pax.js"() {
65568
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/pax.js"() {
65562
65569
  init_import_meta_url();
65563
65570
  import_node_path6 = require("node:path");
65564
65571
  init_header();
@@ -65679,20 +65686,20 @@ var init_pax = __esm({
65679
65686
  }
65680
65687
  });
65681
65688
 
65682
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/normalize-windows-path.js
65689
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/normalize-windows-path.js
65683
65690
  var platform2, normalizeWindowsPath2;
65684
65691
  var init_normalize_windows_path = __esm({
65685
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/normalize-windows-path.js"() {
65692
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/normalize-windows-path.js"() {
65686
65693
  init_import_meta_url();
65687
65694
  platform2 = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
65688
65695
  normalizeWindowsPath2 = platform2 !== "win32" ? (p4) => p4 : (p4) => p4 && p4.replace(/\\/g, "/");
65689
65696
  }
65690
65697
  });
65691
65698
 
65692
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/read-entry.js
65699
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/read-entry.js
65693
65700
  var ReadEntry;
65694
65701
  var init_read_entry = __esm({
65695
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/read-entry.js"() {
65702
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/read-entry.js"() {
65696
65703
  init_import_meta_url();
65697
65704
  init_esm9();
65698
65705
  init_normalize_windows_path();
@@ -65814,10 +65821,10 @@ var init_read_entry = __esm({
65814
65821
  }
65815
65822
  });
65816
65823
 
65817
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/warn-method.js
65824
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/warn-method.js
65818
65825
  var warnMethod;
65819
65826
  var init_warn_method = __esm({
65820
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/warn-method.js"() {
65827
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/warn-method.js"() {
65821
65828
  init_import_meta_url();
65822
65829
  warnMethod = (self2, code2, message, data2 = {}) => {
65823
65830
  if (self2.file) {
@@ -65843,10 +65850,10 @@ var init_warn_method = __esm({
65843
65850
  }
65844
65851
  });
65845
65852
 
65846
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/parse.js
65853
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/parse.js
65847
65854
  var import_events2, maxMetaEntrySize, gzipHeader, zstdHeader, ZIP_HEADER_LEN, STATE, WRITEENTRY, READENTRY, NEXTENTRY, PROCESSENTRY, EX, GEX, META, EMITMETA, BUFFER2, QUEUE, ENDED, EMITTEDEND, EMIT, UNZIP, CONSUMECHUNK, CONSUMECHUNKSUB, CONSUMEBODY, CONSUMEMETA, CONSUMEHEADER, CONSUMING, BUFFERCONCAT, MAYBEEND, WRITING, ABORTED2, DONE, SAW_VALID_ENTRY, SAW_NULL_BLOCK, SAW_EOF, CLOSESTREAM, noop2, Parser;
65848
65855
  var init_parse = __esm({
65849
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/parse.js"() {
65856
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/parse.js"() {
65850
65857
  init_import_meta_url();
65851
65858
  import_events2 = require("events");
65852
65859
  init_esm11();
@@ -66343,10 +66350,10 @@ var init_parse = __esm({
66343
66350
  }
66344
66351
  });
66345
66352
 
66346
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/strip-trailing-slashes.js
66353
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/strip-trailing-slashes.js
66347
66354
  var stripTrailingSlashes;
66348
66355
  var init_strip_trailing_slashes = __esm({
66349
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/strip-trailing-slashes.js"() {
66356
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/strip-trailing-slashes.js"() {
66350
66357
  init_import_meta_url();
66351
66358
  stripTrailingSlashes = (str2) => {
66352
66359
  let i4 = str2.length - 1;
@@ -66360,10 +66367,10 @@ var init_strip_trailing_slashes = __esm({
66360
66367
  }
66361
66368
  });
66362
66369
 
66363
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/list.js
66370
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/list.js
66364
66371
  var import_node_fs4, import_path5, onReadEntryFunction, filesFilter, listFileSync, listFile, list;
66365
66372
  var init_list = __esm({
66366
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/list.js"() {
66373
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/list.js"() {
66367
66374
  init_import_meta_url();
66368
66375
  init_esm10();
66369
66376
  import_node_fs4 = __toESM(require("node:fs"), 1);
@@ -66463,10 +66470,10 @@ var init_list = __esm({
66463
66470
  }
66464
66471
  });
66465
66472
 
66466
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/mode-fix.js
66473
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/mode-fix.js
66467
66474
  var modeFix;
66468
66475
  var init_mode_fix = __esm({
66469
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/mode-fix.js"() {
66476
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/mode-fix.js"() {
66470
66477
  init_import_meta_url();
66471
66478
  modeFix = (mode, isDir, portable) => {
66472
66479
  mode &= 4095;
@@ -66489,10 +66496,10 @@ var init_mode_fix = __esm({
66489
66496
  }
66490
66497
  });
66491
66498
 
66492
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/strip-absolute-path.js
66499
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/strip-absolute-path.js
66493
66500
  var import_node_path7, isAbsolute2, parse3, stripAbsolutePath;
66494
66501
  var init_strip_absolute_path = __esm({
66495
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/strip-absolute-path.js"() {
66502
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/strip-absolute-path.js"() {
66496
66503
  init_import_meta_url();
66497
66504
  import_node_path7 = require("node:path");
66498
66505
  ({ isAbsolute: isAbsolute2, parse: parse3 } = import_node_path7.win32);
@@ -66510,10 +66517,10 @@ var init_strip_absolute_path = __esm({
66510
66517
  }
66511
66518
  });
66512
66519
 
66513
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/winchars.js
66520
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/winchars.js
66514
66521
  var raw, win, toWin, toRaw, encode2, decode;
66515
66522
  var init_winchars = __esm({
66516
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/winchars.js"() {
66523
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/winchars.js"() {
66517
66524
  init_import_meta_url();
66518
66525
  raw = ["|", "<", ">", "?", ":"];
66519
66526
  win = raw.map((char) => String.fromCharCode(61440 + char.charCodeAt(0)));
@@ -66524,10 +66531,10 @@ var init_winchars = __esm({
66524
66531
  }
66525
66532
  });
66526
66533
 
66527
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/write-entry.js
66534
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/write-entry.js
66528
66535
  var import_fs5, import_path6, prefixPath, maxReadSize, PROCESS, FILE, DIRECTORY, SYMLINK, HARDLINK, HEADER, READ2, LSTAT, ONLSTAT, ONREAD, ONREADLINK, OPENFILE, ONOPENFILE, CLOSE, MODE, AWAITDRAIN, ONDRAIN, PREFIX2, WriteEntry, WriteEntrySync, WriteEntryTar, getType;
66529
66536
  var init_write_entry = __esm({
66530
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/write-entry.js"() {
66537
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/write-entry.js"() {
66531
66538
  init_import_meta_url();
66532
66539
  import_fs5 = __toESM(require("fs"), 1);
66533
66540
  init_esm9();
@@ -67495,10 +67502,10 @@ var init_esm12 = __esm({
67495
67502
  }
67496
67503
  });
67497
67504
 
67498
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/pack.js
67505
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/pack.js
67499
67506
  var import_fs6, import_path7, PackJob, EOF2, ONSTAT, ENDED2, QUEUE2, CURRENT, PROCESS2, PROCESSING, PROCESSJOB, JOBS, JOBDONE, ADDFSENTRY, ADDTARENTRY, STAT, READDIR, ONREADDIR, PIPE, ENTRY, ENTRYOPT, WRITEENTRYCLASS, WRITE, ONDRAIN2, Pack, PackSync;
67500
67507
  var init_pack = __esm({
67501
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/pack.js"() {
67508
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/pack.js"() {
67502
67509
  init_import_meta_url();
67503
67510
  import_fs6 = __toESM(require("fs"), 1);
67504
67511
  init_write_entry();
@@ -67930,10 +67937,10 @@ var init_pack = __esm({
67930
67937
  }
67931
67938
  });
67932
67939
 
67933
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/create.js
67940
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/create.js
67934
67941
  var import_node_path8, createFileSync, createFile, addFilesSync, addFilesAsync, createSync, createAsync, create;
67935
67942
  var init_create = __esm({
67936
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/create.js"() {
67943
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/create.js"() {
67937
67944
  init_import_meta_url();
67938
67945
  init_esm10();
67939
67946
  import_node_path8 = __toESM(require("node:path"), 1);
@@ -68012,10 +68019,10 @@ var init_create = __esm({
68012
68019
  }
68013
68020
  });
68014
68021
 
68015
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/get-write-flag.js
68022
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/get-write-flag.js
68016
68023
  var import_fs7, platform3, isWindows, O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP, fMapEnabled, fMapLimit, fMapFlag, getWriteFlag;
68017
68024
  var init_get_write_flag = __esm({
68018
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/get-write-flag.js"() {
68025
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/get-write-flag.js"() {
68019
68026
  init_import_meta_url();
68020
68027
  import_fs7 = __toESM(require("fs"), 1);
68021
68028
  platform3 = process.env.__FAKE_PLATFORM__ || process.platform;
@@ -68113,10 +68120,10 @@ var init_esm13 = __esm({
68113
68120
  }
68114
68121
  });
68115
68122
 
68116
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/cwd-error.js
68123
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/cwd-error.js
68117
68124
  var CwdError;
68118
68125
  var init_cwd_error = __esm({
68119
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/cwd-error.js"() {
68126
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/cwd-error.js"() {
68120
68127
  init_import_meta_url();
68121
68128
  CwdError = class extends Error {
68122
68129
  path;
@@ -68134,10 +68141,10 @@ var init_cwd_error = __esm({
68134
68141
  }
68135
68142
  });
68136
68143
 
68137
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/symlink-error.js
68144
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/symlink-error.js
68138
68145
  var SymlinkError;
68139
68146
  var init_symlink_error = __esm({
68140
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/symlink-error.js"() {
68147
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/symlink-error.js"() {
68141
68148
  init_import_meta_url();
68142
68149
  SymlinkError = class extends Error {
68143
68150
  path;
@@ -68156,10 +68163,10 @@ var init_symlink_error = __esm({
68156
68163
  }
68157
68164
  });
68158
68165
 
68159
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/mkdir.js
68166
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/mkdir.js
68160
68167
  var import_node_fs6, import_promises2, import_node_path10, checkCwd, mkdir, mkdir_, onmkdir, checkCwdSync, mkdirSync2;
68161
68168
  var init_mkdir = __esm({
68162
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/mkdir.js"() {
68169
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/mkdir.js"() {
68163
68170
  init_import_meta_url();
68164
68171
  init_esm13();
68165
68172
  import_node_fs6 = __toESM(require("node:fs"), 1);
@@ -68178,9 +68185,9 @@ var init_mkdir = __esm({
68178
68185
  };
68179
68186
  mkdir = (dir, opt, cb) => {
68180
68187
  dir = normalizeWindowsPath2(dir);
68181
- const umask = opt.umask ?? 18;
68188
+ const umask2 = opt.umask ?? 18;
68182
68189
  const mode = opt.mode | 448;
68183
- const needChmod = (mode & umask) !== 0;
68190
+ const needChmod = (mode & umask2) !== 0;
68184
68191
  const uid = opt.uid;
68185
68192
  const gid = opt.gid;
68186
68193
  const doChown = typeof uid === "number" && typeof gid === "number" && (uid !== opt.processUid || gid !== opt.processGid);
@@ -68263,9 +68270,9 @@ var init_mkdir = __esm({
68263
68270
  };
68264
68271
  mkdirSync2 = (dir, opt) => {
68265
68272
  dir = normalizeWindowsPath2(dir);
68266
- const umask = opt.umask ?? 18;
68273
+ const umask2 = opt.umask ?? 18;
68267
68274
  const mode = opt.mode | 448;
68268
- const needChmod = (mode & umask) !== 0;
68275
+ const needChmod = (mode & umask2) !== 0;
68269
68276
  const uid = opt.uid;
68270
68277
  const gid = opt.gid;
68271
68278
  const doChown = typeof uid === "number" && typeof gid === "number" && (uid !== opt.processUid || gid !== opt.processGid);
@@ -68314,10 +68321,10 @@ var init_mkdir = __esm({
68314
68321
  }
68315
68322
  });
68316
68323
 
68317
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/normalize-unicode.js
68324
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/normalize-unicode.js
68318
68325
  var normalizeCache, MAX, cache2, normalizeUnicode;
68319
68326
  var init_normalize_unicode = __esm({
68320
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/normalize-unicode.js"() {
68327
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/normalize-unicode.js"() {
68321
68328
  init_import_meta_url();
68322
68329
  normalizeCache = /* @__PURE__ */ Object.create(null);
68323
68330
  MAX = 1e4;
@@ -68344,10 +68351,10 @@ var init_normalize_unicode = __esm({
68344
68351
  }
68345
68352
  });
68346
68353
 
68347
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/path-reservations.js
68354
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/path-reservations.js
68348
68355
  var import_node_path11, platform4, isWindows2, getDirs, PathReservations;
68349
68356
  var init_path_reservations = __esm({
68350
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/path-reservations.js"() {
68357
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/path-reservations.js"() {
68351
68358
  init_import_meta_url();
68352
68359
  import_node_path11 = require("node:path");
68353
68360
  init_normalize_unicode();
@@ -68485,10 +68492,19 @@ var init_path_reservations = __esm({
68485
68492
  }
68486
68493
  });
68487
68494
 
68488
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/unpack.js
68489
- var import_node_assert, import_node_crypto, import_node_fs7, import_node_path12, ONENTRY, CHECKFS, CHECKFS2, ISREUSABLE, MAKEFS, FILE2, DIRECTORY2, LINK, SYMLINK2, HARDLINK2, UNSUPPORTED, CHECKPATH, STRIPABSOLUTEPATH, MKDIR, ONERROR, PENDING, PEND, UNPEND, ENDED3, MAYBECLOSE, SKIP, DOCHOWN, UID, GID, CHECKED_CWD, platform5, isWindows3, DEFAULT_MAX_DEPTH, unlinkFile, unlinkFileSync, uint32, Unpack, callSync, UnpackSync;
68495
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/process-umask.js
68496
+ var umask;
68497
+ var init_process_umask = __esm({
68498
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/process-umask.js"() {
68499
+ init_import_meta_url();
68500
+ umask = () => process.umask();
68501
+ }
68502
+ });
68503
+
68504
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/unpack.js
68505
+ var import_node_assert, import_node_crypto, import_node_fs7, import_node_path12, ONENTRY, CHECKFS, CHECKFS2, ISREUSABLE, MAKEFS, FILE2, DIRECTORY2, LINK, SYMLINK2, HARDLINK2, ENSURE_NO_SYMLINK, UNSUPPORTED, CHECKPATH, STRIPABSOLUTEPATH, MKDIR, ONERROR, PENDING, PEND, UNPEND, ENDED3, MAYBECLOSE, SKIP, DOCHOWN, UID, GID, CHECKED_CWD, platform5, isWindows3, DEFAULT_MAX_DEPTH, unlinkFile, unlinkFileSync, uint32, Unpack, callSync, UnpackSync;
68490
68506
  var init_unpack = __esm({
68491
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/unpack.js"() {
68507
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/unpack.js"() {
68492
68508
  init_import_meta_url();
68493
68509
  init_esm10();
68494
68510
  import_node_assert = __toESM(require("node:assert"), 1);
@@ -68502,6 +68518,8 @@ var init_unpack = __esm({
68502
68518
  init_strip_absolute_path();
68503
68519
  init_winchars();
68504
68520
  init_path_reservations();
68521
+ init_symlink_error();
68522
+ init_process_umask();
68505
68523
  ONENTRY = Symbol("onEntry");
68506
68524
  CHECKFS = Symbol("checkFs");
68507
68525
  CHECKFS2 = Symbol("checkFs2");
@@ -68512,6 +68530,7 @@ var init_unpack = __esm({
68512
68530
  LINK = Symbol("link");
68513
68531
  SYMLINK2 = Symbol("symlink");
68514
68532
  HARDLINK2 = Symbol("hardlink");
68533
+ ENSURE_NO_SYMLINK = Symbol("ensureNoSymlink");
68515
68534
  UNSUPPORTED = Symbol("unsupported");
68516
68535
  CHECKPATH = Symbol("checkPath");
68517
68536
  STRIPABSOLUTEPATH = Symbol("stripAbsolutePath");
@@ -68620,7 +68639,7 @@ var init_unpack = __esm({
68620
68639
  this.unlink = !!opt.unlink;
68621
68640
  this.cwd = normalizeWindowsPath2(import_node_path12.default.resolve(opt.cwd || process.cwd()));
68622
68641
  this.strip = Number(opt.strip) || 0;
68623
- this.processUmask = !this.chmod ? 0 : typeof opt.processUmask === "number" ? opt.processUmask : process.umask();
68642
+ this.processUmask = !this.chmod ? 0 : typeof opt.processUmask === "number" ? opt.processUmask : umask();
68624
68643
  this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
68625
68644
  this.dmode = opt.dmode || 511 & ~this.umask;
68626
68645
  this.fmode = opt.fmode || 438 & ~this.umask;
@@ -68680,6 +68699,7 @@ var init_unpack = __esm({
68680
68699
  }
68681
68700
  return true;
68682
68701
  }
68702
+ // no IO, just string checking for absolute indicators
68683
68703
  [CHECKPATH](entry) {
68684
68704
  const p4 = normalizeWindowsPath2(entry.path);
68685
68705
  const parts = p4.split("/");
@@ -68894,11 +68914,33 @@ var init_unpack = __esm({
68894
68914
  entry.resume();
68895
68915
  }
68896
68916
  [SYMLINK2](entry, done) {
68897
- this[LINK](entry, String(entry.linkpath), "symlink", done);
68917
+ const parts = normalizeWindowsPath2(import_node_path12.default.relative(this.cwd, import_node_path12.default.resolve(import_node_path12.default.dirname(String(entry.absolute)), String(entry.linkpath)))).split("/");
68918
+ this[ENSURE_NO_SYMLINK](entry, this.cwd, parts, () => this[LINK](entry, String(entry.linkpath), "symlink", done), (er) => {
68919
+ this[ONERROR](er, entry);
68920
+ done();
68921
+ });
68898
68922
  }
68899
68923
  [HARDLINK2](entry, done) {
68900
68924
  const linkpath = normalizeWindowsPath2(import_node_path12.default.resolve(this.cwd, String(entry.linkpath)));
68901
- this[LINK](entry, linkpath, "link", done);
68925
+ const parts = normalizeWindowsPath2(String(entry.linkpath)).split("/");
68926
+ this[ENSURE_NO_SYMLINK](entry, this.cwd, parts, () => this[LINK](entry, linkpath, "link", done), (er) => {
68927
+ this[ONERROR](er, entry);
68928
+ done();
68929
+ });
68930
+ }
68931
+ [ENSURE_NO_SYMLINK](entry, cwd, parts, done, onError2) {
68932
+ const p4 = parts.shift();
68933
+ if (this.preservePaths || p4 === void 0)
68934
+ return done();
68935
+ const t4 = import_node_path12.default.resolve(cwd, p4);
68936
+ import_node_fs7.default.lstat(t4, (er, st) => {
68937
+ if (er)
68938
+ return done();
68939
+ if (st?.isSymbolicLink()) {
68940
+ return onError2(new SymlinkError(t4, import_node_path12.default.resolve(t4, parts.join("/"))));
68941
+ }
68942
+ this[ENSURE_NO_SYMLINK](entry, t4, parts, done, onError2);
68943
+ });
68902
68944
  }
68903
68945
  [PEND]() {
68904
68946
  this[PENDING]++;
@@ -69180,10 +69222,25 @@ var init_unpack = __esm({
69180
69222
  return er;
69181
69223
  }
69182
69224
  }
69225
+ [ENSURE_NO_SYMLINK](_entry, cwd, parts, done, onError2) {
69226
+ if (this.preservePaths || !parts.length)
69227
+ return done();
69228
+ let t4 = cwd;
69229
+ for (const p4 of parts) {
69230
+ t4 = import_node_path12.default.resolve(t4, p4);
69231
+ const [er, st] = callSync(() => import_node_fs7.default.lstatSync(t4));
69232
+ if (er)
69233
+ return done();
69234
+ if (st.isSymbolicLink()) {
69235
+ return onError2(new SymlinkError(t4, import_node_path12.default.resolve(cwd, parts.join("/"))));
69236
+ }
69237
+ }
69238
+ done();
69239
+ }
69183
69240
  [LINK](entry, linkpath, link, done) {
69184
- const ls = `${link}Sync`;
69241
+ const linkSync = `${link}Sync`;
69185
69242
  try {
69186
- import_node_fs7.default[ls](linkpath, String(entry.absolute));
69243
+ import_node_fs7.default[linkSync](linkpath, String(entry.absolute));
69187
69244
  done();
69188
69245
  entry.resume();
69189
69246
  } catch (er) {
@@ -69194,10 +69251,10 @@ var init_unpack = __esm({
69194
69251
  }
69195
69252
  });
69196
69253
 
69197
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/extract.js
69254
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/extract.js
69198
69255
  var import_node_fs8, extractFileSync, extractFile, extract;
69199
69256
  var init_extract = __esm({
69200
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/extract.js"() {
69257
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/extract.js"() {
69201
69258
  init_import_meta_url();
69202
69259
  init_esm10();
69203
69260
  import_node_fs8 = __toESM(require("node:fs"), 1);
@@ -69244,10 +69301,10 @@ var init_extract = __esm({
69244
69301
  }
69245
69302
  });
69246
69303
 
69247
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/replace.js
69304
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/replace.js
69248
69305
  var import_node_fs9, import_node_path13, replaceSync, streamSync, replaceAsync, addFilesSync2, addFilesAsync2, replace;
69249
69306
  var init_replace = __esm({
69250
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/replace.js"() {
69307
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/replace.js"() {
69251
69308
  init_import_meta_url();
69252
69309
  init_esm10();
69253
69310
  import_node_fs9 = __toESM(require("node:fs"), 1);
@@ -69457,10 +69514,10 @@ var init_replace = __esm({
69457
69514
  }
69458
69515
  });
69459
69516
 
69460
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/update.js
69517
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/update.js
69461
69518
  var update, mtimeFilter;
69462
69519
  var init_update = __esm({
69463
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/update.js"() {
69520
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/update.js"() {
69464
69521
  init_import_meta_url();
69465
69522
  init_make_command();
69466
69523
  init_replace();
@@ -69480,9 +69537,9 @@ var init_update = __esm({
69480
69537
  }
69481
69538
  });
69482
69539
 
69483
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/index.js
69540
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/index.js
69484
69541
  var init_esm14 = __esm({
69485
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/index.js"() {
69542
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/index.js"() {
69486
69543
  init_import_meta_url();
69487
69544
  init_create();
69488
69545
  init_create();
@@ -69908,15 +69965,15 @@ var require_fd_slicer = __commonJS({
69908
69965
  var Writable3 = stream2.Writable;
69909
69966
  var PassThrough2 = stream2.PassThrough;
69910
69967
  var Pend = require_pend();
69911
- var EventEmitter4 = require("events").EventEmitter;
69968
+ var EventEmitter5 = require("events").EventEmitter;
69912
69969
  exports2.createFromBuffer = createFromBuffer;
69913
69970
  exports2.createFromFd = createFromFd;
69914
69971
  exports2.BufferSlicer = BufferSlicer;
69915
69972
  exports2.FdSlicer = FdSlicer;
69916
- util6.inherits(FdSlicer, EventEmitter4);
69973
+ util6.inherits(FdSlicer, EventEmitter5);
69917
69974
  function FdSlicer(fd, options) {
69918
69975
  options = options || {};
69919
- EventEmitter4.call(this);
69976
+ EventEmitter5.call(this);
69920
69977
  this.fd = fd;
69921
69978
  this.pend = new Pend();
69922
69979
  this.pend.max = 1;
@@ -70060,9 +70117,9 @@ var require_fd_slicer = __commonJS({
70060
70117
  this.destroyed = true;
70061
70118
  this.context.unref();
70062
70119
  };
70063
- util6.inherits(BufferSlicer, EventEmitter4);
70120
+ util6.inherits(BufferSlicer, EventEmitter5);
70064
70121
  function BufferSlicer(buffer, options) {
70065
- EventEmitter4.call(this);
70122
+ EventEmitter5.call(this);
70066
70123
  options = options || {};
70067
70124
  this.refCount = 0;
70068
70125
  this.buffer = buffer;
@@ -70474,7 +70531,7 @@ var require_yauzl = __commonJS({
70474
70531
  var fd_slicer = require_fd_slicer();
70475
70532
  var crc32 = require_buffer_crc32();
70476
70533
  var util6 = require("util");
70477
- var EventEmitter4 = require("events").EventEmitter;
70534
+ var EventEmitter5 = require("events").EventEmitter;
70478
70535
  var Transform3 = require("stream").Transform;
70479
70536
  var PassThrough2 = require("stream").PassThrough;
70480
70537
  var Writable3 = require("stream").Writable;
@@ -70606,10 +70663,10 @@ var require_yauzl = __commonJS({
70606
70663
  callback(new Error("end of central directory record signature not found"));
70607
70664
  });
70608
70665
  }
70609
- util6.inherits(ZipFile, EventEmitter4);
70666
+ util6.inherits(ZipFile, EventEmitter5);
70610
70667
  function ZipFile(reader, centralDirectoryOffset, fileSize, entryCount, comment, autoClose, lazyEntries, decodeStrings, validateEntrySizes, strictFileNames) {
70611
70668
  var self2 = this;
70612
- EventEmitter4.call(self2);
70669
+ EventEmitter5.call(self2);
70613
70670
  self2.reader = reader;
70614
70671
  self2.reader.on("error", function(err) {
70615
70672
  emitError(self2, err);
@@ -70970,9 +71027,9 @@ var require_yauzl = __commonJS({
70970
71027
  }
70971
71028
  cb();
70972
71029
  };
70973
- util6.inherits(RandomAccessReader, EventEmitter4);
71030
+ util6.inherits(RandomAccessReader, EventEmitter5);
70974
71031
  function RandomAccessReader() {
70975
- EventEmitter4.call(this);
71032
+ EventEmitter5.call(this);
70976
71033
  this.refCount = 0;
70977
71034
  }
70978
71035
  RandomAccessReader.prototype.ref = function() {
@@ -81779,12 +81836,12 @@ var require_is_stream = __commonJS({
81779
81836
  "node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js"(exports2, module2) {
81780
81837
  "use strict";
81781
81838
  init_import_meta_url();
81782
- var isStream2 = (stream2) => stream2 !== null && typeof stream2 === "object" && typeof stream2.pipe === "function";
81783
- isStream2.writable = (stream2) => isStream2(stream2) && stream2.writable !== false && typeof stream2._write === "function" && typeof stream2._writableState === "object";
81784
- isStream2.readable = (stream2) => isStream2(stream2) && stream2.readable !== false && typeof stream2._read === "function" && typeof stream2._readableState === "object";
81785
- isStream2.duplex = (stream2) => isStream2.writable(stream2) && isStream2.readable(stream2);
81786
- isStream2.transform = (stream2) => isStream2.duplex(stream2) && typeof stream2._transform === "function";
81787
- module2.exports = isStream2;
81839
+ var isStream3 = (stream2) => stream2 !== null && typeof stream2 === "object" && typeof stream2.pipe === "function";
81840
+ isStream3.writable = (stream2) => isStream3(stream2) && stream2.writable !== false && typeof stream2._write === "function" && typeof stream2._writableState === "object";
81841
+ isStream3.readable = (stream2) => isStream3(stream2) && stream2.readable !== false && typeof stream2._read === "function" && typeof stream2._readableState === "object";
81842
+ isStream3.duplex = (stream2) => isStream3.writable(stream2) && isStream3.readable(stream2);
81843
+ isStream3.transform = (stream2) => isStream3.duplex(stream2) && typeof stream2._transform === "function";
81844
+ module2.exports = isStream3;
81788
81845
  }
81789
81846
  });
81790
81847
 
@@ -87716,7 +87773,7 @@ var require_data_stream = __commonJS({
87716
87773
  "node_modules/.pnpm/jws@4.0.1/node_modules/jws/lib/data-stream.js"(exports2, module2) {
87717
87774
  init_import_meta_url();
87718
87775
  var Buffer4 = require_safe_buffer().Buffer;
87719
- var Stream2 = require("stream");
87776
+ var Stream3 = require("stream");
87720
87777
  var util6 = require("util");
87721
87778
  function DataStream(data2) {
87722
87779
  this.buffer = null;
@@ -87743,7 +87800,7 @@ var require_data_stream = __commonJS({
87743
87800
  }
87744
87801
  throw new TypeError("Unexpected data type (" + typeof data2 + ")");
87745
87802
  }
87746
- util6.inherits(DataStream, Stream2);
87803
+ util6.inherits(DataStream, Stream3);
87747
87804
  DataStream.prototype.write = function write(data2) {
87748
87805
  this.buffer = Buffer4.concat([this.buffer, Buffer4.from(data2)]);
87749
87806
  this.emit("data", data2);
@@ -88042,7 +88099,7 @@ var require_sign_stream = __commonJS({
88042
88099
  var Buffer4 = require_safe_buffer().Buffer;
88043
88100
  var DataStream = require_data_stream();
88044
88101
  var jwa = require_jwa();
88045
- var Stream2 = require("stream");
88102
+ var Stream3 = require("stream");
88046
88103
  var toString2 = require_tostring();
88047
88104
  var util6 = require("util");
88048
88105
  function base64url(string, encoding) {
@@ -88086,7 +88143,7 @@ var require_sign_stream = __commonJS({
88086
88143
  this.sign();
88087
88144
  }.bind(this));
88088
88145
  }
88089
- util6.inherits(SignStream, Stream2);
88146
+ util6.inherits(SignStream, Stream3);
88090
88147
  SignStream.prototype.sign = function sign() {
88091
88148
  try {
88092
88149
  var signature = jwsSign({
@@ -88118,7 +88175,7 @@ var require_verify_stream = __commonJS({
88118
88175
  var Buffer4 = require_safe_buffer().Buffer;
88119
88176
  var DataStream = require_data_stream();
88120
88177
  var jwa = require_jwa();
88121
- var Stream2 = require("stream");
88178
+ var Stream3 = require("stream");
88122
88179
  var toString2 = require_tostring();
88123
88180
  var util6 = require("util");
88124
88181
  var JWS_REGEX = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;
@@ -88204,7 +88261,7 @@ var require_verify_stream = __commonJS({
88204
88261
  this.verify();
88205
88262
  }.bind(this));
88206
88263
  }
88207
- util6.inherits(VerifyStream, Stream2);
88264
+ util6.inherits(VerifyStream, Stream3);
88208
88265
  VerifyStream.prototype.verify = function verify() {
88209
88266
  try {
88210
88267
  var valid = jwsVerify(this.signature.buffer, this.algorithm, this.key.buffer);
@@ -94547,7 +94604,7 @@ var require_stream_writable = __commonJS({
94547
94604
  var internalUtil = {
94548
94605
  deprecate: require_node8()
94549
94606
  };
94550
- var Stream2 = require_stream();
94607
+ var Stream3 = require_stream();
94551
94608
  var Buffer4 = require("buffer").Buffer;
94552
94609
  var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
94553
94610
  };
@@ -94570,7 +94627,7 @@ var require_stream_writable = __commonJS({
94570
94627
  var ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END;
94571
94628
  var ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
94572
94629
  var errorOrDestroy = destroyImpl.errorOrDestroy;
94573
- require_inherits()(Writable3, Stream2);
94630
+ require_inherits()(Writable3, Stream3);
94574
94631
  function nop() {
94575
94632
  }
94576
94633
  function WritableState(options, stream2, isDuplex) {
@@ -94655,7 +94712,7 @@ var require_stream_writable = __commonJS({
94655
94712
  if (typeof options.destroy === "function") this._destroy = options.destroy;
94656
94713
  if (typeof options.final === "function") this._final = options.final;
94657
94714
  }
94658
- Stream2.call(this);
94715
+ Stream3.call(this);
94659
94716
  }
94660
94717
  Writable3.prototype.pipe = function() {
94661
94718
  errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());
@@ -95151,8 +95208,8 @@ var require_string_decoder = __commonJS({
95151
95208
  if (typeof nenc !== "string" && (Buffer4.isEncoding === isEncoding || !isEncoding(enc))) throw new Error("Unknown encoding: " + enc);
95152
95209
  return nenc || enc;
95153
95210
  }
95154
- exports2.StringDecoder = StringDecoder2;
95155
- function StringDecoder2(encoding) {
95211
+ exports2.StringDecoder = StringDecoder3;
95212
+ function StringDecoder3(encoding) {
95156
95213
  this.encoding = normalizeEncoding(encoding);
95157
95214
  var nb;
95158
95215
  switch (this.encoding) {
@@ -95179,7 +95236,7 @@ var require_string_decoder = __commonJS({
95179
95236
  this.lastTotal = 0;
95180
95237
  this.lastChar = Buffer4.allocUnsafe(nb);
95181
95238
  }
95182
- StringDecoder2.prototype.write = function(buf) {
95239
+ StringDecoder3.prototype.write = function(buf) {
95183
95240
  if (buf.length === 0) return "";
95184
95241
  var r4;
95185
95242
  var i4;
@@ -95194,9 +95251,9 @@ var require_string_decoder = __commonJS({
95194
95251
  if (i4 < buf.length) return r4 ? r4 + this.text(buf, i4) : this.text(buf, i4);
95195
95252
  return r4 || "";
95196
95253
  };
95197
- StringDecoder2.prototype.end = utf8End;
95198
- StringDecoder2.prototype.text = utf8Text;
95199
- StringDecoder2.prototype.fillLast = function(buf) {
95254
+ StringDecoder3.prototype.end = utf8End;
95255
+ StringDecoder3.prototype.text = utf8Text;
95256
+ StringDecoder3.prototype.fillLast = function(buf) {
95200
95257
  if (this.lastNeed <= buf.length) {
95201
95258
  buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
95202
95259
  return this.lastChar.toString(this.encoding, 0, this.lastTotal);
@@ -95741,7 +95798,7 @@ var require_stream_readable = __commonJS({
95741
95798
  var EElistenerCount = function EElistenerCount2(emitter, type2) {
95742
95799
  return emitter.listeners(type2).length;
95743
95800
  };
95744
- var Stream2 = require_stream();
95801
+ var Stream3 = require_stream();
95745
95802
  var Buffer4 = require("buffer").Buffer;
95746
95803
  var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
95747
95804
  };
@@ -95768,10 +95825,10 @@ var require_stream_readable = __commonJS({
95768
95825
  var ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF;
95769
95826
  var ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED;
95770
95827
  var ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
95771
- var StringDecoder2;
95828
+ var StringDecoder3;
95772
95829
  var createReadableStreamAsyncIterator;
95773
95830
  var from;
95774
- require_inherits()(Readable5, Stream2);
95831
+ require_inherits()(Readable5, Stream3);
95775
95832
  var errorOrDestroy = destroyImpl.errorOrDestroy;
95776
95833
  var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
95777
95834
  function prependListener(emitter, event, fn) {
@@ -95810,8 +95867,8 @@ var require_stream_readable = __commonJS({
95810
95867
  this.decoder = null;
95811
95868
  this.encoding = null;
95812
95869
  if (options.encoding) {
95813
- if (!StringDecoder2) StringDecoder2 = require_string_decoder().StringDecoder;
95814
- this.decoder = new StringDecoder2(options.encoding);
95870
+ if (!StringDecoder3) StringDecoder3 = require_string_decoder().StringDecoder;
95871
+ this.decoder = new StringDecoder3(options.encoding);
95815
95872
  this.encoding = options.encoding;
95816
95873
  }
95817
95874
  }
@@ -95825,7 +95882,7 @@ var require_stream_readable = __commonJS({
95825
95882
  if (typeof options.read === "function") this._read = options.read;
95826
95883
  if (typeof options.destroy === "function") this._destroy = options.destroy;
95827
95884
  }
95828
- Stream2.call(this);
95885
+ Stream3.call(this);
95829
95886
  }
95830
95887
  Object.defineProperty(Readable5.prototype, "destroyed", {
95831
95888
  // making it explicit this property is not enumerable
@@ -95932,8 +95989,8 @@ var require_stream_readable = __commonJS({
95932
95989
  return this._readableState.flowing === false;
95933
95990
  };
95934
95991
  Readable5.prototype.setEncoding = function(enc) {
95935
- if (!StringDecoder2) StringDecoder2 = require_string_decoder().StringDecoder;
95936
- var decoder = new StringDecoder2(enc);
95992
+ if (!StringDecoder3) StringDecoder3 = require_string_decoder().StringDecoder;
95993
+ var decoder = new StringDecoder3(enc);
95937
95994
  this._readableState.decoder = decoder;
95938
95995
  this._readableState.encoding = this._readableState.decoder.encoding;
95939
95996
  var p4 = this._readableState.buffer.head;
@@ -96227,7 +96284,7 @@ var require_stream_readable = __commonJS({
96227
96284
  return this;
96228
96285
  };
96229
96286
  Readable5.prototype.on = function(ev, fn) {
96230
- var res = Stream2.prototype.on.call(this, ev, fn);
96287
+ var res = Stream3.prototype.on.call(this, ev, fn);
96231
96288
  var state2 = this._readableState;
96232
96289
  if (ev === "data") {
96233
96290
  state2.readableListening = this.listenerCount("readable") > 0;
@@ -96249,14 +96306,14 @@ var require_stream_readable = __commonJS({
96249
96306
  };
96250
96307
  Readable5.prototype.addListener = Readable5.prototype.on;
96251
96308
  Readable5.prototype.removeListener = function(ev, fn) {
96252
- var res = Stream2.prototype.removeListener.call(this, ev, fn);
96309
+ var res = Stream3.prototype.removeListener.call(this, ev, fn);
96253
96310
  if (ev === "readable") {
96254
96311
  process.nextTick(updateReadableListening, this);
96255
96312
  }
96256
96313
  return res;
96257
96314
  };
96258
96315
  Readable5.prototype.removeAllListeners = function(ev) {
96259
- var res = Stream2.prototype.removeAllListeners.apply(this, arguments);
96316
+ var res = Stream3.prototype.removeAllListeners.apply(this, arguments);
96260
96317
  if (ev === "readable" || ev === void 0) {
96261
96318
  process.nextTick(updateReadableListening, this);
96262
96319
  }
@@ -96673,14 +96730,14 @@ var require_pipeline = __commonJS({
96673
96730
  var require_readable = __commonJS({
96674
96731
  "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/readable.js"(exports2, module2) {
96675
96732
  init_import_meta_url();
96676
- var Stream2 = require("stream");
96677
- if (process.env.READABLE_STREAM === "disable" && Stream2) {
96678
- module2.exports = Stream2.Readable;
96679
- Object.assign(module2.exports, Stream2);
96680
- module2.exports.Stream = Stream2;
96733
+ var Stream3 = require("stream");
96734
+ if (process.env.READABLE_STREAM === "disable" && Stream3) {
96735
+ module2.exports = Stream3.Readable;
96736
+ Object.assign(module2.exports, Stream3);
96737
+ module2.exports.Stream = Stream3;
96681
96738
  } else {
96682
96739
  exports2 = module2.exports = require_stream_readable();
96683
- exports2.Stream = Stream2 || exports2;
96740
+ exports2.Stream = Stream3 || exports2;
96684
96741
  exports2.Readable = exports2;
96685
96742
  exports2.Writable = require_stream_writable();
96686
96743
  exports2.Duplex = require_stream_duplex();
@@ -109573,7 +109630,7 @@ var init_storage = __esm({
109573
109630
  }
109574
109631
  });
109575
109632
 
109576
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/util.js
109633
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/util.js
109577
109634
  function getAllMatches(string, regex2) {
109578
109635
  const matches = [];
109579
109636
  let match3 = regex2.exec(string);
@@ -109594,7 +109651,7 @@ function isExist(v8) {
109594
109651
  }
109595
109652
  var nameStartChar, nameChar, nameRegexp, regexName, isName;
109596
109653
  var init_util5 = __esm({
109597
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/util.js"() {
109654
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/util.js"() {
109598
109655
  "use strict";
109599
109656
  init_import_meta_url();
109600
109657
  nameStartChar = ":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";
@@ -109608,7 +109665,7 @@ var init_util5 = __esm({
109608
109665
  }
109609
109666
  });
109610
109667
 
109611
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/validator.js
109668
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/validator.js
109612
109669
  function validate3(xmlData, options) {
109613
109670
  options = Object.assign({}, defaultOptions2, options);
109614
109671
  const tags = [];
@@ -109907,7 +109964,7 @@ function getPositionFromMatch(match3) {
109907
109964
  }
109908
109965
  var defaultOptions2, doubleQuote, singleQuote, validAttrStrRegxp;
109909
109966
  var init_validator = __esm({
109910
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/validator.js"() {
109967
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/validator.js"() {
109911
109968
  "use strict";
109912
109969
  init_import_meta_url();
109913
109970
  init_util5();
@@ -109922,10 +109979,37 @@ var init_validator = __esm({
109922
109979
  }
109923
109980
  });
109924
109981
 
109925
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
109982
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
109983
+ function normalizeProcessEntities(value) {
109984
+ if (typeof value === "boolean") {
109985
+ return {
109986
+ enabled: value,
109987
+ // true or false
109988
+ maxEntitySize: 1e4,
109989
+ maxExpansionDepth: 10,
109990
+ maxTotalExpansions: 1e3,
109991
+ maxExpandedLength: 1e5,
109992
+ allowedTags: null,
109993
+ tagFilter: null
109994
+ };
109995
+ }
109996
+ if (typeof value === "object" && value !== null) {
109997
+ return {
109998
+ enabled: value.enabled !== false,
109999
+ // default true if not specified
110000
+ maxEntitySize: value.maxEntitySize ?? 1e4,
110001
+ maxExpansionDepth: value.maxExpansionDepth ?? 10,
110002
+ maxTotalExpansions: value.maxTotalExpansions ?? 1e3,
110003
+ maxExpandedLength: value.maxExpandedLength ?? 1e5,
110004
+ allowedTags: value.allowedTags ?? null,
110005
+ tagFilter: value.tagFilter ?? null
110006
+ };
110007
+ }
110008
+ return normalizeProcessEntities(true);
110009
+ }
109926
110010
  var defaultOptions3, buildOptions;
109927
110011
  var init_OptionsBuilder = __esm({
109928
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"() {
110012
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"() {
109929
110013
  init_import_meta_url();
109930
110014
  defaultOptions3 = {
109931
110015
  preserveOrder: false,
@@ -109973,15 +110057,17 @@ var init_OptionsBuilder = __esm({
109973
110057
  captureMetaData: false
109974
110058
  };
109975
110059
  buildOptions = function(options) {
109976
- return Object.assign({}, defaultOptions3, options);
110060
+ const built = Object.assign({}, defaultOptions3, options);
110061
+ built.processEntities = normalizeProcessEntities(built.processEntities);
110062
+ return built;
109977
110063
  };
109978
110064
  }
109979
110065
  });
109980
110066
 
109981
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
110067
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
109982
110068
  var METADATA_SYMBOL, XmlNode;
109983
110069
  var init_xmlNode = __esm({
109984
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"() {
110070
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"() {
109985
110071
  "use strict";
109986
110072
  init_import_meta_url();
109987
110073
  if (typeof Symbol !== "function") {
@@ -110018,7 +110104,7 @@ var init_xmlNode = __esm({
110018
110104
  }
110019
110105
  });
110020
110106
 
110021
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
110107
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
110022
110108
  function hasSeq(data2, seq2, i4) {
110023
110109
  for (let j5 = 0; j5 < seq2.length; j5++) {
110024
110110
  if (seq2[j5] !== data2[i4 + j5 + 1]) return false;
@@ -110033,12 +110119,13 @@ function validateEntityName(name2) {
110033
110119
  }
110034
110120
  var DocTypeReader, skipWhitespace;
110035
110121
  var init_DocTypeReader = __esm({
110036
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"() {
110122
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"() {
110037
110123
  init_import_meta_url();
110038
110124
  init_util5();
110039
110125
  DocTypeReader = class {
110040
- constructor(processEntities) {
110041
- this.suppressValidationErr = !processEntities;
110126
+ constructor(options) {
110127
+ this.suppressValidationErr = !options;
110128
+ this.options = options;
110042
110129
  }
110043
110130
  readDocType(xmlData, i4) {
110044
110131
  const entities = {};
@@ -110053,11 +110140,13 @@ var init_DocTypeReader = __esm({
110053
110140
  i4 += 7;
110054
110141
  let entityName, val;
110055
110142
  [entityName, val, i4] = this.readEntityExp(xmlData, i4 + 1, this.suppressValidationErr);
110056
- if (val.indexOf("&") === -1)
110143
+ if (val.indexOf("&") === -1) {
110144
+ const escaped = entityName.replace(/[.\-+*:]/g, "\\.");
110057
110145
  entities[entityName] = {
110058
- regx: RegExp(`&${entityName};`, "g"),
110146
+ regx: RegExp(`&${escaped};`, "g"),
110059
110147
  val
110060
110148
  };
110149
+ }
110061
110150
  } else if (hasBody && hasSeq(xmlData, "!ELEMENT", i4)) {
110062
110151
  i4 += 8;
110063
110152
  const { index } = this.readElementExp(xmlData, i4 + 1);
@@ -110116,6 +110205,11 @@ var init_DocTypeReader = __esm({
110116
110205
  }
110117
110206
  let entityValue = "";
110118
110207
  [i4, entityValue] = this.readIdentifierVal(xmlData, i4, "entity");
110208
+ if (this.options.enabled !== false && this.options.maxEntitySize && entityValue.length > this.options.maxEntitySize) {
110209
+ throw new Error(
110210
+ `Entity "${entityName}" size (${entityValue.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`
110211
+ );
110212
+ }
110119
110213
  i4--;
110120
110214
  return [entityName, entityValue, i4];
110121
110215
  }
@@ -110391,7 +110485,7 @@ var init_strnum = __esm({
110391
110485
  }
110392
110486
  });
110393
110487
 
110394
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/ignoreAttributes.js
110488
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/ignoreAttributes.js
110395
110489
  function getIgnoreAttributesFn(ignoreAttributes) {
110396
110490
  if (typeof ignoreAttributes === "function") {
110397
110491
  return ignoreAttributes;
@@ -110411,18 +110505,19 @@ function getIgnoreAttributesFn(ignoreAttributes) {
110411
110505
  return () => false;
110412
110506
  }
110413
110507
  var init_ignoreAttributes = __esm({
110414
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/ignoreAttributes.js"() {
110508
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/ignoreAttributes.js"() {
110415
110509
  init_import_meta_url();
110416
110510
  }
110417
110511
  });
110418
110512
 
110419
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
110513
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
110420
110514
  function addExternalEntities(externalEntities) {
110421
110515
  const entKeys = Object.keys(externalEntities);
110422
110516
  for (let i4 = 0; i4 < entKeys.length; i4++) {
110423
110517
  const ent = entKeys[i4];
110518
+ const escaped = ent.replace(/[.\-+*:]/g, "\\.");
110424
110519
  this.lastEntities[ent] = {
110425
- regex: new RegExp("&" + ent + ";", "g"),
110520
+ regex: new RegExp("&" + escaped + ";", "g"),
110426
110521
  val: externalEntities[ent]
110427
110522
  };
110428
110523
  }
@@ -110433,7 +110528,7 @@ function parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode,
110433
110528
  val = val.trim();
110434
110529
  }
110435
110530
  if (val.length > 0) {
110436
- if (!escapeEntities) val = this.replaceEntitiesValue(val);
110531
+ if (!escapeEntities) val = this.replaceEntitiesValue(val, tagName, jPath);
110437
110532
  const newval = this.options.tagValueProcessor(tagName, val, jPath, hasAttributes, isLeafNode);
110438
110533
  if (newval === null || newval === void 0) {
110439
110534
  return val;
@@ -110465,7 +110560,7 @@ function resolveNameSpace(tagname) {
110465
110560
  }
110466
110561
  return tagname;
110467
110562
  }
110468
- function buildAttributesMap(attrStr, jPath) {
110563
+ function buildAttributesMap(attrStr, jPath, tagName) {
110469
110564
  if (this.options.ignoreAttributes !== true && typeof attrStr === "string") {
110470
110565
  const matches = getAllMatches(attrStr, attrsRegx);
110471
110566
  const len = matches.length;
@@ -110486,7 +110581,7 @@ function buildAttributesMap(attrStr, jPath) {
110486
110581
  if (this.options.trimValues) {
110487
110582
  oldVal = oldVal.trim();
110488
110583
  }
110489
- oldVal = this.replaceEntitiesValue(oldVal);
110584
+ oldVal = this.replaceEntitiesValue(oldVal, tagName, jPath);
110490
110585
  const newVal = this.options.attributeValueProcessor(attrName, oldVal, jPath);
110491
110586
  if (newVal === null || newVal === void 0) {
110492
110587
  attrs[aName] = oldVal;
@@ -110677,7 +110772,7 @@ function fromCodePoint2(str2, base, prefix) {
110677
110772
  }
110678
110773
  var OrderedObjParser, attrsRegx, parseXml, replaceEntitiesValue;
110679
110774
  var init_OrderedObjParser = __esm({
110680
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"() {
110775
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"() {
110681
110776
  "use strict";
110682
110777
  init_import_meta_url();
110683
110778
  init_util5();
@@ -110726,6 +110821,8 @@ var init_OrderedObjParser = __esm({
110726
110821
  this.saveTextToParentTag = saveTextToParentTag;
110727
110822
  this.addChild = addChild;
110728
110823
  this.ignoreAttributesFn = getIgnoreAttributesFn(this.options.ignoreAttributes);
110824
+ this.entityExpansionCount = 0;
110825
+ this.currentExpandedLength = 0;
110729
110826
  if (this.options.stopNodes && this.options.stopNodes.length > 0) {
110730
110827
  this.stopNodesExact = /* @__PURE__ */ new Set();
110731
110828
  this.stopNodesWildcard = /* @__PURE__ */ new Set();
@@ -110748,6 +110845,8 @@ var init_OrderedObjParser = __esm({
110748
110845
  let currentNode = xmlObj;
110749
110846
  let textData = "";
110750
110847
  let jPath = "";
110848
+ this.entityExpansionCount = 0;
110849
+ this.currentExpandedLength = 0;
110751
110850
  const docTypeReader = new DocTypeReader(this.options.processEntities);
110752
110851
  for (let i4 = 0; i4 < xmlData.length; i4++) {
110753
110852
  const ch = xmlData[i4];
@@ -110791,7 +110890,7 @@ var init_OrderedObjParser = __esm({
110791
110890
  const childNode = new XmlNode(tagData.tagName);
110792
110891
  childNode.add(this.options.textNodeName, "");
110793
110892
  if (tagData.tagName !== tagData.tagExp && tagData.attrExpPresent) {
110794
- childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath);
110893
+ childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath, tagData.tagName);
110795
110894
  }
110796
110895
  this.addChild(currentNode, childNode, jPath, i4);
110797
110896
  }
@@ -110869,10 +110968,7 @@ var init_OrderedObjParser = __esm({
110869
110968
  }
110870
110969
  const childNode = new XmlNode(tagName);
110871
110970
  if (tagName !== tagExp && attrExpPresent) {
110872
- childNode[":@"] = this.buildAttributesMap(
110873
- tagExp,
110874
- jPath
110875
- );
110971
+ childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
110876
110972
  }
110877
110973
  if (tagContent) {
110878
110974
  tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true);
@@ -110898,7 +110994,7 @@ var init_OrderedObjParser = __esm({
110898
110994
  }
110899
110995
  const childNode = new XmlNode(tagName);
110900
110996
  if (tagName !== tagExp && attrExpPresent) {
110901
- childNode[":@"] = this.buildAttributesMap(tagExp, jPath);
110997
+ childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
110902
110998
  }
110903
110999
  this.addChild(currentNode, childNode, jPath, startIndex);
110904
111000
  jPath = jPath.substr(0, jPath.lastIndexOf("."));
@@ -110906,7 +111002,7 @@ var init_OrderedObjParser = __esm({
110906
111002
  const childNode = new XmlNode(tagName);
110907
111003
  this.tagsNodeStack.push(currentNode);
110908
111004
  if (tagName !== tagExp && attrExpPresent) {
110909
- childNode[":@"] = this.buildAttributesMap(tagExp, jPath);
111005
+ childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
110910
111006
  }
110911
111007
  this.addChild(currentNode, childNode, jPath, startIndex);
110912
111008
  currentNode = childNode;
@@ -110921,30 +111017,65 @@ var init_OrderedObjParser = __esm({
110921
111017
  }
110922
111018
  return xmlObj.child;
110923
111019
  };
110924
- replaceEntitiesValue = function(val) {
110925
- if (this.options.processEntities) {
110926
- for (let entityName in this.docTypeEntities) {
110927
- const entity = this.docTypeEntities[entityName];
110928
- val = val.replace(entity.regx, entity.val);
111020
+ replaceEntitiesValue = function(val, tagName, jPath) {
111021
+ if (val.indexOf("&") === -1) {
111022
+ return val;
111023
+ }
111024
+ const entityConfig = this.options.processEntities;
111025
+ if (!entityConfig.enabled) {
111026
+ return val;
111027
+ }
111028
+ if (entityConfig.allowedTags) {
111029
+ if (!entityConfig.allowedTags.includes(tagName)) {
111030
+ return val;
110929
111031
  }
110930
- for (let entityName in this.lastEntities) {
110931
- const entity = this.lastEntities[entityName];
110932
- val = val.replace(entity.regex, entity.val);
111032
+ }
111033
+ if (entityConfig.tagFilter) {
111034
+ if (!entityConfig.tagFilter(tagName, jPath)) {
111035
+ return val;
110933
111036
  }
110934
- if (this.options.htmlEntities) {
110935
- for (let entityName in this.htmlEntities) {
110936
- const entity = this.htmlEntities[entityName];
110937
- val = val.replace(entity.regex, entity.val);
111037
+ }
111038
+ for (let entityName in this.docTypeEntities) {
111039
+ const entity = this.docTypeEntities[entityName];
111040
+ const matches = val.match(entity.regx);
111041
+ if (matches) {
111042
+ this.entityExpansionCount += matches.length;
111043
+ if (entityConfig.maxTotalExpansions && this.entityExpansionCount > entityConfig.maxTotalExpansions) {
111044
+ throw new Error(
111045
+ `Entity expansion limit exceeded: ${this.entityExpansionCount} > ${entityConfig.maxTotalExpansions}`
111046
+ );
111047
+ }
111048
+ const lengthBefore = val.length;
111049
+ val = val.replace(entity.regx, entity.val);
111050
+ if (entityConfig.maxExpandedLength) {
111051
+ this.currentExpandedLength += val.length - lengthBefore;
111052
+ if (this.currentExpandedLength > entityConfig.maxExpandedLength) {
111053
+ throw new Error(
111054
+ `Total expanded content size exceeded: ${this.currentExpandedLength} > ${entityConfig.maxExpandedLength}`
111055
+ );
111056
+ }
110938
111057
  }
110939
111058
  }
110940
- val = val.replace(this.ampEntity.regex, this.ampEntity.val);
110941
111059
  }
111060
+ if (val.indexOf("&") === -1) return val;
111061
+ for (let entityName in this.lastEntities) {
111062
+ const entity = this.lastEntities[entityName];
111063
+ val = val.replace(entity.regex, entity.val);
111064
+ }
111065
+ if (val.indexOf("&") === -1) return val;
111066
+ if (this.options.htmlEntities) {
111067
+ for (let entityName in this.htmlEntities) {
111068
+ const entity = this.htmlEntities[entityName];
111069
+ val = val.replace(entity.regex, entity.val);
111070
+ }
111071
+ }
111072
+ val = val.replace(this.ampEntity.regex, this.ampEntity.val);
110942
111073
  return val;
110943
111074
  };
110944
111075
  }
110945
111076
  });
110946
111077
 
110947
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/node2json.js
111078
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/node2json.js
110948
111079
  function prettify(node2, options) {
110949
111080
  return compress(node2, options);
110950
111081
  }
@@ -111029,7 +111160,7 @@ function isLeafTag(obj, options) {
111029
111160
  }
111030
111161
  var METADATA_SYMBOL2;
111031
111162
  var init_node2json = __esm({
111032
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/node2json.js"() {
111163
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/node2json.js"() {
111033
111164
  "use strict";
111034
111165
  init_import_meta_url();
111035
111166
  init_xmlNode();
@@ -111037,10 +111168,10 @@ var init_node2json = __esm({
111037
111168
  }
111038
111169
  });
111039
111170
 
111040
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
111171
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
111041
111172
  var XMLParser;
111042
111173
  var init_XMLParser = __esm({
111043
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"() {
111174
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"() {
111044
111175
  init_import_meta_url();
111045
111176
  init_OptionsBuilder();
111046
111177
  init_OrderedObjParser();
@@ -111109,9 +111240,9 @@ var init_XMLParser = __esm({
111109
111240
  }
111110
111241
  });
111111
111242
 
111112
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/fxp.js
111243
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/fxp.js
111113
111244
  var init_fxp = __esm({
111114
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/fxp.js"() {
111245
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/fxp.js"() {
111115
111246
  "use strict";
111116
111247
  init_import_meta_url();
111117
111248
  init_XMLParser();
@@ -116002,6 +116133,16 @@ var init_base4 = __esm({
116002
116133
  this.logger = logger.withScope(`[status-provider/${config3.name}]`);
116003
116134
  }
116004
116135
  logger;
116136
+ /**
116137
+ * Returns human-readable details about failed checks for the given revision.
116138
+ * Subclasses should override this to provide provider-specific information.
116139
+ *
116140
+ * @param _revision Git revision SHA
116141
+ * @returns Array of formatted strings describing each failed check
116142
+ */
116143
+ getFailureDetails(_revision) {
116144
+ return [];
116145
+ }
116005
116146
  /**
116006
116147
  * Waits for the builds to finish for the revision
116007
116148
  *
@@ -116024,6 +116165,12 @@ var init_base4 = __esm({
116024
116165
  if (spinner.isSpinning) {
116025
116166
  spinner.fail();
116026
116167
  }
116168
+ const failureDetails = this.getFailureDetails(revision);
116169
+ if (failureDetails.length > 0) {
116170
+ this.logger.error(
116171
+ "The following check(s) have not succeeded:\n" + failureDetails.join("\n")
116172
+ );
116173
+ }
116027
116174
  reportError(
116028
116175
  `Build(s) for revision ${revision} have not succeeded. Please check the revision's status.`
116029
116176
  );
@@ -116065,6 +116212,9 @@ var init_github2 = __esm({
116065
116212
  GitHubStatusProvider = class extends BaseStatusProvider {
116066
116213
  /** GitHub client */
116067
116214
  github;
116215
+ /** Cached API responses from the most recent getRevisionStatus() call */
116216
+ lastRevisionStatus;
116217
+ lastRevisionChecks;
116068
116218
  constructor(config3, githubConfig) {
116069
116219
  super(config3, githubConfig);
116070
116220
  this.github = getGitHubClient();
@@ -116082,11 +116232,7 @@ var init_github2 = __esm({
116082
116232
  );
116083
116233
  }
116084
116234
  }
116085
- const [
116086
- revisionStatus,
116087
- revisionCheckSuites,
116088
- revisionChecks
116089
- ] = await Promise.all([
116235
+ const [revisionStatus, revisionCheckSuites, revisionChecks] = await Promise.all([
116090
116236
  // 1. Commit status API
116091
116237
  this.getCommitApiStatus(revision),
116092
116238
  // 2. Check suites API
@@ -116094,6 +116240,8 @@ var init_github2 = __esm({
116094
116240
  // 3. Check runs API
116095
116241
  this.getRevisionChecks(revision)
116096
116242
  ]);
116243
+ this.lastRevisionStatus = revisionStatus;
116244
+ this.lastRevisionChecks = revisionChecks;
116097
116245
  if (contexts.length > 0) {
116098
116246
  for (const context2 of contexts) {
116099
116247
  const contextString = String(context2);
@@ -116140,9 +116288,7 @@ var init_github2 = __esm({
116140
116288
  commitApiStatusResult = "not_found" /* NOT_FOUND */;
116141
116289
  }
116142
116290
  } else {
116143
- commitApiStatusResult = this.getResultFromCommitApiStatus(
116144
- revisionStatus
116145
- );
116291
+ commitApiStatusResult = this.getResultFromCommitApiStatus(revisionStatus);
116146
116292
  }
116147
116293
  logger.debug(`Commit API status result: ${commitApiStatusResult}`);
116148
116294
  const revisionChecksResult = this.getResultFromRevisionChecks(
@@ -116276,12 +116422,10 @@ var init_github2 = __esm({
116276
116422
  */
116277
116423
  async getCommitApiStatus(revision) {
116278
116424
  logger.debug(`Fetching combined revision status...`);
116279
- const revisionStatusResponse = await this.github.repos.getCombinedStatusForRef(
116280
- {
116281
- ...this.githubConfig,
116282
- ref: revision
116283
- }
116284
- );
116425
+ const revisionStatusResponse = await this.github.repos.getCombinedStatusForRef({
116426
+ ...this.githubConfig,
116427
+ ref: revision
116428
+ });
116285
116429
  const revisionStatus = revisionStatusResponse.data;
116286
116430
  logger.debug("Combined revision status received.");
116287
116431
  logger.trace(revisionStatus);
@@ -116336,6 +116480,41 @@ var init_github2 = __esm({
116336
116480
  ...this.githubConfig
116337
116481
  });
116338
116482
  }
116483
+ /**
116484
+ * Returns details about failed checks using cached API responses from
116485
+ * the most recent getRevisionStatus() call.
116486
+ *
116487
+ * @param revision Git revision SHA (used for the "see all checks" link)
116488
+ */
116489
+ getFailureDetails(revision) {
116490
+ const details = [];
116491
+ if (this.lastRevisionStatus) {
116492
+ for (const status of this.lastRevisionStatus.statuses) {
116493
+ if (status.state !== "success" && status.state !== "pending") {
116494
+ const url2 = status.target_url ? ` \u2192 ${status.target_url}` : "";
116495
+ details.push(
116496
+ ` ${status.state.toUpperCase()}: ${status.context}${url2}`
116497
+ );
116498
+ }
116499
+ }
116500
+ }
116501
+ if (this.lastRevisionChecks) {
116502
+ for (const run of this.lastRevisionChecks.check_runs) {
116503
+ if (run.status === "completed" && run.conclusion !== "success" && run.conclusion !== "skipped") {
116504
+ const url2 = run.html_url ? ` \u2192 ${run.html_url}` : "";
116505
+ details.push(
116506
+ ` ${(run.conclusion || "unknown").toUpperCase()}: ${run.name}${url2}`
116507
+ );
116508
+ }
116509
+ }
116510
+ }
116511
+ const { owner, repo } = this.githubConfig;
116512
+ details.push(
116513
+ `
116514
+ See all checks: https://github.com/${owner}/${repo}/commit/${revision}`
116515
+ );
116516
+ return details;
116517
+ }
116339
116518
  };
116340
116519
  }
116341
116520
  });
@@ -116363,8 +116542,8 @@ var require_async = __commonJS({
116363
116542
  function fallback(fn) {
116364
116543
  setTimeout(fn, 0);
116365
116544
  }
116366
- function wrap(defer2) {
116367
- return (fn, ...args) => defer2(() => fn(...args));
116545
+ function wrap(defer3) {
116546
+ return (fn, ...args) => defer3(() => fn(...args));
116368
116547
  }
116369
116548
  var _defer;
116370
116549
  if (hasQueueMicrotask) {
@@ -120889,6 +121068,15 @@ async function fetchPRInfo(prNumber) {
120889
121068
  function isBumpType(value) {
120890
121069
  return BUMP_TYPES.has(value);
120891
121070
  }
121071
+ function getLineNumber(text, charIndex) {
121072
+ let count = 1;
121073
+ for (let i4 = 0; i4 < charIndex && i4 < text.length; i4++) {
121074
+ if (text[i4] === "\n") {
121075
+ count++;
121076
+ }
121077
+ }
121078
+ return count;
121079
+ }
120892
121080
  function escapeMarkdownPound(text) {
120893
121081
  return text.replace(/#/g, "&#35;");
120894
121082
  }
@@ -121005,7 +121193,12 @@ function extractChangeset(markdown, location) {
121005
121193
  const bodyStart = location.startIndex + location.headingLength;
121006
121194
  const body = markdown.substring(bodyStart, location.endIndex).trim();
121007
121195
  const name2 = location.title.replace(/\(.*\)$/, "").trim();
121008
- return { name: name2, body };
121196
+ const startLine = getLineNumber(markdown, location.startIndex);
121197
+ const endLine = getLineNumber(
121198
+ markdown,
121199
+ Math.max(location.startIndex, location.endIndex - 1)
121200
+ );
121201
+ return { name: name2, body, startLine, endLine };
121009
121202
  }
121010
121203
  function locateChangeset(markdown, predicate) {
121011
121204
  const tokens = d.lexer(markdown);
@@ -121924,7 +122117,7 @@ function isLatestRelease(githubRelease, version2) {
121924
122117
  const versionToPublish = parseVersion(version2);
121925
122118
  return latestVersion && versionToPublish ? versionGreaterOrEqualThan(versionToPublish, latestVersion) : true;
121926
122119
  }
121927
- var import_fs10, import_path11, DEFAULT_CONTENT_TYPE, GitHubTarget;
122120
+ var import_fs10, import_path11, DEFAULT_CONTENT_TYPE, GITHUB_RELEASE_BODY_MAX, GitHubTarget;
121928
122121
  var init_github3 = __esm({
121929
122122
  "src/targets/github.ts"() {
121930
122123
  init_import_meta_url();
@@ -121940,6 +122133,7 @@ var init_github3 = __esm({
121940
122133
  init_base5();
121941
122134
  init_logger2();
121942
122135
  DEFAULT_CONTENT_TYPE = "application/octet-stream";
122136
+ GITHUB_RELEASE_BODY_MAX = 125e3;
121943
122137
  GitHubTarget = class extends BaseTarget {
121944
122138
  /** Target name */
121945
122139
  name = "github";
@@ -121968,6 +122162,42 @@ var init_github3 = __esm({
121968
122162
  };
121969
122163
  this.github = getGitHubClient();
121970
122164
  }
122165
+ /**
122166
+ * Builds a permalink URL to the changelog file in the repository at a
122167
+ * specific revision, optionally anchored to the line range of the changeset.
122168
+ */
122169
+ buildChangelogPermalink(revision, changes) {
122170
+ const { owner, repo, changelog } = this.githubConfig;
122171
+ let url2 = `https://github.com/${owner}/${repo}/blob/${revision}/${changelog}`;
122172
+ if (changes?.startLine != null && changes?.endLine != null) {
122173
+ url2 += `#L${changes.startLine}-L${changes.endLine}`;
122174
+ }
122175
+ return url2;
122176
+ }
122177
+ /**
122178
+ * If the release body exceeds GitHub's maximum, truncate it at the last
122179
+ * line boundary that fits and append a link to the full changelog.
122180
+ */
122181
+ truncateBody(body, revision, changes) {
122182
+ if (body.length <= GITHUB_RELEASE_BODY_MAX) {
122183
+ return body;
122184
+ }
122185
+ const permalink = this.buildChangelogPermalink(revision, changes);
122186
+ const footer = `
122187
+
122188
+ ---
122189
+ _This changelog has been truncated. See the [full changelog](${permalink}) for all changes._`;
122190
+ const maxLength = GITHUB_RELEASE_BODY_MAX - footer.length;
122191
+ const truncateAt = body.lastIndexOf("\n", maxLength);
122192
+ const truncated = body.substring(
122193
+ 0,
122194
+ truncateAt > 0 ? truncateAt : maxLength
122195
+ );
122196
+ this.logger.warn(
122197
+ `Release body exceeds GitHub limit (${body.length} > ${GITHUB_RELEASE_BODY_MAX} chars). Truncating and linking to full changelog.`
122198
+ );
122199
+ return truncated + footer;
122200
+ }
121971
122201
  /**
121972
122202
  * Create a draft release for the given version.
121973
122203
  *
@@ -121993,15 +122223,16 @@ var init_github3 = __esm({
121993
122223
  draft: true
121994
122224
  };
121995
122225
  }
122226
+ const body = changes?.body ? this.truncateBody(changes.body, revision, changes) : void 0;
121996
122227
  const { data: data2 } = await this.github.repos.createRelease({
121997
122228
  draft: true,
121998
- name: tag2,
122229
+ name: changes?.name || tag2,
121999
122230
  owner: this.githubConfig.owner,
122000
122231
  prerelease: isPreview,
122001
122232
  repo: this.githubConfig.repo,
122002
122233
  tag_name: tag2,
122003
122234
  target_commitish: revision,
122004
- ...changes
122235
+ body
122005
122236
  });
122006
122237
  return data2;
122007
122238
  }
@@ -125361,9 +125592,893 @@ var init_esm19 = __esm({
125361
125592
  }
125362
125593
  });
125363
125594
 
125595
+ // node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.js
125596
+ var import_node_events4, import_node_stream3, import_node_string_decoder2, proc2, isStream2, isReadable2, isWritable2, EOF3, MAYBE_EMIT_END2, EMITTED_END2, EMITTING_END2, EMITTED_ERROR2, CLOSED2, READ3, FLUSH2, FLUSHCHUNK2, ENCODING2, DECODER2, FLOWING2, PAUSED2, RESUME2, BUFFER3, PIPES2, BUFFERLENGTH2, BUFFERPUSH2, BUFFERSHIFT2, OBJECTMODE2, DESTROYED2, ERROR2, EMITDATA2, EMITEND3, EMITEND22, ASYNC2, ABORT2, ABORTED3, SIGNAL2, DATALISTENERS2, DISCARDED2, defer2, nodefer2, isEndish2, isArrayBufferLike2, isArrayBufferView2, Pipe2, PipeProxyErrors2, isObjectModeOptions2, isEncodingOptions2, Minipass2;
125597
+ var init_esm20 = __esm({
125598
+ "node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.js"() {
125599
+ init_import_meta_url();
125600
+ import_node_events4 = require("node:events");
125601
+ import_node_stream3 = __toESM(require("node:stream"), 1);
125602
+ import_node_string_decoder2 = require("node:string_decoder");
125603
+ proc2 = typeof process === "object" && process ? process : {
125604
+ stdout: null,
125605
+ stderr: null
125606
+ };
125607
+ isStream2 = (s4) => !!s4 && typeof s4 === "object" && (s4 instanceof Minipass2 || s4 instanceof import_node_stream3.default || isReadable2(s4) || isWritable2(s4));
125608
+ isReadable2 = (s4) => !!s4 && typeof s4 === "object" && s4 instanceof import_node_events4.EventEmitter && typeof s4.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
125609
+ s4.pipe !== import_node_stream3.default.Writable.prototype.pipe;
125610
+ isWritable2 = (s4) => !!s4 && typeof s4 === "object" && s4 instanceof import_node_events4.EventEmitter && typeof s4.write === "function" && typeof s4.end === "function";
125611
+ EOF3 = Symbol("EOF");
125612
+ MAYBE_EMIT_END2 = Symbol("maybeEmitEnd");
125613
+ EMITTED_END2 = Symbol("emittedEnd");
125614
+ EMITTING_END2 = Symbol("emittingEnd");
125615
+ EMITTED_ERROR2 = Symbol("emittedError");
125616
+ CLOSED2 = Symbol("closed");
125617
+ READ3 = Symbol("read");
125618
+ FLUSH2 = Symbol("flush");
125619
+ FLUSHCHUNK2 = Symbol("flushChunk");
125620
+ ENCODING2 = Symbol("encoding");
125621
+ DECODER2 = Symbol("decoder");
125622
+ FLOWING2 = Symbol("flowing");
125623
+ PAUSED2 = Symbol("paused");
125624
+ RESUME2 = Symbol("resume");
125625
+ BUFFER3 = Symbol("buffer");
125626
+ PIPES2 = Symbol("pipes");
125627
+ BUFFERLENGTH2 = Symbol("bufferLength");
125628
+ BUFFERPUSH2 = Symbol("bufferPush");
125629
+ BUFFERSHIFT2 = Symbol("bufferShift");
125630
+ OBJECTMODE2 = Symbol("objectMode");
125631
+ DESTROYED2 = Symbol("destroyed");
125632
+ ERROR2 = Symbol("error");
125633
+ EMITDATA2 = Symbol("emitData");
125634
+ EMITEND3 = Symbol("emitEnd");
125635
+ EMITEND22 = Symbol("emitEnd2");
125636
+ ASYNC2 = Symbol("async");
125637
+ ABORT2 = Symbol("abort");
125638
+ ABORTED3 = Symbol("aborted");
125639
+ SIGNAL2 = Symbol("signal");
125640
+ DATALISTENERS2 = Symbol("dataListeners");
125641
+ DISCARDED2 = Symbol("discarded");
125642
+ defer2 = (fn) => Promise.resolve().then(fn);
125643
+ nodefer2 = (fn) => fn();
125644
+ isEndish2 = (ev) => ev === "end" || ev === "finish" || ev === "prefinish";
125645
+ isArrayBufferLike2 = (b5) => b5 instanceof ArrayBuffer || !!b5 && typeof b5 === "object" && b5.constructor && b5.constructor.name === "ArrayBuffer" && b5.byteLength >= 0;
125646
+ isArrayBufferView2 = (b5) => !Buffer.isBuffer(b5) && ArrayBuffer.isView(b5);
125647
+ Pipe2 = class {
125648
+ src;
125649
+ dest;
125650
+ opts;
125651
+ ondrain;
125652
+ constructor(src, dest, opts) {
125653
+ this.src = src;
125654
+ this.dest = dest;
125655
+ this.opts = opts;
125656
+ this.ondrain = () => src[RESUME2]();
125657
+ this.dest.on("drain", this.ondrain);
125658
+ }
125659
+ unpipe() {
125660
+ this.dest.removeListener("drain", this.ondrain);
125661
+ }
125662
+ // only here for the prototype
125663
+ /* c8 ignore start */
125664
+ proxyErrors(_er) {
125665
+ }
125666
+ /* c8 ignore stop */
125667
+ end() {
125668
+ this.unpipe();
125669
+ if (this.opts.end)
125670
+ this.dest.end();
125671
+ }
125672
+ };
125673
+ PipeProxyErrors2 = class extends Pipe2 {
125674
+ unpipe() {
125675
+ this.src.removeListener("error", this.proxyErrors);
125676
+ super.unpipe();
125677
+ }
125678
+ constructor(src, dest, opts) {
125679
+ super(src, dest, opts);
125680
+ this.proxyErrors = (er) => dest.emit("error", er);
125681
+ src.on("error", this.proxyErrors);
125682
+ }
125683
+ };
125684
+ isObjectModeOptions2 = (o4) => !!o4.objectMode;
125685
+ isEncodingOptions2 = (o4) => !o4.objectMode && !!o4.encoding && o4.encoding !== "buffer";
125686
+ Minipass2 = class extends import_node_events4.EventEmitter {
125687
+ [FLOWING2] = false;
125688
+ [PAUSED2] = false;
125689
+ [PIPES2] = [];
125690
+ [BUFFER3] = [];
125691
+ [OBJECTMODE2];
125692
+ [ENCODING2];
125693
+ [ASYNC2];
125694
+ [DECODER2];
125695
+ [EOF3] = false;
125696
+ [EMITTED_END2] = false;
125697
+ [EMITTING_END2] = false;
125698
+ [CLOSED2] = false;
125699
+ [EMITTED_ERROR2] = null;
125700
+ [BUFFERLENGTH2] = 0;
125701
+ [DESTROYED2] = false;
125702
+ [SIGNAL2];
125703
+ [ABORTED3] = false;
125704
+ [DATALISTENERS2] = 0;
125705
+ [DISCARDED2] = false;
125706
+ /**
125707
+ * true if the stream can be written
125708
+ */
125709
+ writable = true;
125710
+ /**
125711
+ * true if the stream can be read
125712
+ */
125713
+ readable = true;
125714
+ /**
125715
+ * If `RType` is Buffer, then options do not need to be provided.
125716
+ * Otherwise, an options object must be provided to specify either
125717
+ * {@link Minipass.SharedOptions.objectMode} or
125718
+ * {@link Minipass.SharedOptions.encoding}, as appropriate.
125719
+ */
125720
+ constructor(...args) {
125721
+ const options = args[0] || {};
125722
+ super();
125723
+ if (options.objectMode && typeof options.encoding === "string") {
125724
+ throw new TypeError("Encoding and objectMode may not be used together");
125725
+ }
125726
+ if (isObjectModeOptions2(options)) {
125727
+ this[OBJECTMODE2] = true;
125728
+ this[ENCODING2] = null;
125729
+ } else if (isEncodingOptions2(options)) {
125730
+ this[ENCODING2] = options.encoding;
125731
+ this[OBJECTMODE2] = false;
125732
+ } else {
125733
+ this[OBJECTMODE2] = false;
125734
+ this[ENCODING2] = null;
125735
+ }
125736
+ this[ASYNC2] = !!options.async;
125737
+ this[DECODER2] = this[ENCODING2] ? new import_node_string_decoder2.StringDecoder(this[ENCODING2]) : null;
125738
+ if (options && options.debugExposeBuffer === true) {
125739
+ Object.defineProperty(this, "buffer", { get: () => this[BUFFER3] });
125740
+ }
125741
+ if (options && options.debugExposePipes === true) {
125742
+ Object.defineProperty(this, "pipes", { get: () => this[PIPES2] });
125743
+ }
125744
+ const { signal } = options;
125745
+ if (signal) {
125746
+ this[SIGNAL2] = signal;
125747
+ if (signal.aborted) {
125748
+ this[ABORT2]();
125749
+ } else {
125750
+ signal.addEventListener("abort", () => this[ABORT2]());
125751
+ }
125752
+ }
125753
+ }
125754
+ /**
125755
+ * The amount of data stored in the buffer waiting to be read.
125756
+ *
125757
+ * For Buffer strings, this will be the total byte length.
125758
+ * For string encoding streams, this will be the string character length,
125759
+ * according to JavaScript's `string.length` logic.
125760
+ * For objectMode streams, this is a count of the items waiting to be
125761
+ * emitted.
125762
+ */
125763
+ get bufferLength() {
125764
+ return this[BUFFERLENGTH2];
125765
+ }
125766
+ /**
125767
+ * The `BufferEncoding` currently in use, or `null`
125768
+ */
125769
+ get encoding() {
125770
+ return this[ENCODING2];
125771
+ }
125772
+ /**
125773
+ * @deprecated - This is a read only property
125774
+ */
125775
+ set encoding(_enc) {
125776
+ throw new Error("Encoding must be set at instantiation time");
125777
+ }
125778
+ /**
125779
+ * @deprecated - Encoding may only be set at instantiation time
125780
+ */
125781
+ setEncoding(_enc) {
125782
+ throw new Error("Encoding must be set at instantiation time");
125783
+ }
125784
+ /**
125785
+ * True if this is an objectMode stream
125786
+ */
125787
+ get objectMode() {
125788
+ return this[OBJECTMODE2];
125789
+ }
125790
+ /**
125791
+ * @deprecated - This is a read-only property
125792
+ */
125793
+ set objectMode(_om) {
125794
+ throw new Error("objectMode must be set at instantiation time");
125795
+ }
125796
+ /**
125797
+ * true if this is an async stream
125798
+ */
125799
+ get ["async"]() {
125800
+ return this[ASYNC2];
125801
+ }
125802
+ /**
125803
+ * Set to true to make this stream async.
125804
+ *
125805
+ * Once set, it cannot be unset, as this would potentially cause incorrect
125806
+ * behavior. Ie, a sync stream can be made async, but an async stream
125807
+ * cannot be safely made sync.
125808
+ */
125809
+ set ["async"](a4) {
125810
+ this[ASYNC2] = this[ASYNC2] || !!a4;
125811
+ }
125812
+ // drop everything and get out of the flow completely
125813
+ [ABORT2]() {
125814
+ this[ABORTED3] = true;
125815
+ this.emit("abort", this[SIGNAL2]?.reason);
125816
+ this.destroy(this[SIGNAL2]?.reason);
125817
+ }
125818
+ /**
125819
+ * True if the stream has been aborted.
125820
+ */
125821
+ get aborted() {
125822
+ return this[ABORTED3];
125823
+ }
125824
+ /**
125825
+ * No-op setter. Stream aborted status is set via the AbortSignal provided
125826
+ * in the constructor options.
125827
+ */
125828
+ set aborted(_2) {
125829
+ }
125830
+ write(chunk, encoding, cb) {
125831
+ if (this[ABORTED3])
125832
+ return false;
125833
+ if (this[EOF3])
125834
+ throw new Error("write after end");
125835
+ if (this[DESTROYED2]) {
125836
+ this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" }));
125837
+ return true;
125838
+ }
125839
+ if (typeof encoding === "function") {
125840
+ cb = encoding;
125841
+ encoding = "utf8";
125842
+ }
125843
+ if (!encoding)
125844
+ encoding = "utf8";
125845
+ const fn = this[ASYNC2] ? defer2 : nodefer2;
125846
+ if (!this[OBJECTMODE2] && !Buffer.isBuffer(chunk)) {
125847
+ if (isArrayBufferView2(chunk)) {
125848
+ chunk = Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
125849
+ } else if (isArrayBufferLike2(chunk)) {
125850
+ chunk = Buffer.from(chunk);
125851
+ } else if (typeof chunk !== "string") {
125852
+ throw new Error("Non-contiguous data written to non-objectMode stream");
125853
+ }
125854
+ }
125855
+ if (this[OBJECTMODE2]) {
125856
+ if (this[FLOWING2] && this[BUFFERLENGTH2] !== 0)
125857
+ this[FLUSH2](true);
125858
+ if (this[FLOWING2])
125859
+ this.emit("data", chunk);
125860
+ else
125861
+ this[BUFFERPUSH2](chunk);
125862
+ if (this[BUFFERLENGTH2] !== 0)
125863
+ this.emit("readable");
125864
+ if (cb)
125865
+ fn(cb);
125866
+ return this[FLOWING2];
125867
+ }
125868
+ if (!chunk.length) {
125869
+ if (this[BUFFERLENGTH2] !== 0)
125870
+ this.emit("readable");
125871
+ if (cb)
125872
+ fn(cb);
125873
+ return this[FLOWING2];
125874
+ }
125875
+ if (typeof chunk === "string" && // unless it is a string already ready for us to use
125876
+ !(encoding === this[ENCODING2] && !this[DECODER2]?.lastNeed)) {
125877
+ chunk = Buffer.from(chunk, encoding);
125878
+ }
125879
+ if (Buffer.isBuffer(chunk) && this[ENCODING2]) {
125880
+ chunk = this[DECODER2].write(chunk);
125881
+ }
125882
+ if (this[FLOWING2] && this[BUFFERLENGTH2] !== 0)
125883
+ this[FLUSH2](true);
125884
+ if (this[FLOWING2])
125885
+ this.emit("data", chunk);
125886
+ else
125887
+ this[BUFFERPUSH2](chunk);
125888
+ if (this[BUFFERLENGTH2] !== 0)
125889
+ this.emit("readable");
125890
+ if (cb)
125891
+ fn(cb);
125892
+ return this[FLOWING2];
125893
+ }
125894
+ /**
125895
+ * Low-level explicit read method.
125896
+ *
125897
+ * In objectMode, the argument is ignored, and one item is returned if
125898
+ * available.
125899
+ *
125900
+ * `n` is the number of bytes (or in the case of encoding streams,
125901
+ * characters) to consume. If `n` is not provided, then the entire buffer
125902
+ * is returned, or `null` is returned if no data is available.
125903
+ *
125904
+ * If `n` is greater that the amount of data in the internal buffer,
125905
+ * then `null` is returned.
125906
+ */
125907
+ read(n4) {
125908
+ if (this[DESTROYED2])
125909
+ return null;
125910
+ this[DISCARDED2] = false;
125911
+ if (this[BUFFERLENGTH2] === 0 || n4 === 0 || n4 && n4 > this[BUFFERLENGTH2]) {
125912
+ this[MAYBE_EMIT_END2]();
125913
+ return null;
125914
+ }
125915
+ if (this[OBJECTMODE2])
125916
+ n4 = null;
125917
+ if (this[BUFFER3].length > 1 && !this[OBJECTMODE2]) {
125918
+ this[BUFFER3] = [
125919
+ this[ENCODING2] ? this[BUFFER3].join("") : Buffer.concat(this[BUFFER3], this[BUFFERLENGTH2])
125920
+ ];
125921
+ }
125922
+ const ret = this[READ3](n4 || null, this[BUFFER3][0]);
125923
+ this[MAYBE_EMIT_END2]();
125924
+ return ret;
125925
+ }
125926
+ [READ3](n4, chunk) {
125927
+ if (this[OBJECTMODE2])
125928
+ this[BUFFERSHIFT2]();
125929
+ else {
125930
+ const c4 = chunk;
125931
+ if (n4 === c4.length || n4 === null)
125932
+ this[BUFFERSHIFT2]();
125933
+ else if (typeof c4 === "string") {
125934
+ this[BUFFER3][0] = c4.slice(n4);
125935
+ chunk = c4.slice(0, n4);
125936
+ this[BUFFERLENGTH2] -= n4;
125937
+ } else {
125938
+ this[BUFFER3][0] = c4.subarray(n4);
125939
+ chunk = c4.subarray(0, n4);
125940
+ this[BUFFERLENGTH2] -= n4;
125941
+ }
125942
+ }
125943
+ this.emit("data", chunk);
125944
+ if (!this[BUFFER3].length && !this[EOF3])
125945
+ this.emit("drain");
125946
+ return chunk;
125947
+ }
125948
+ end(chunk, encoding, cb) {
125949
+ if (typeof chunk === "function") {
125950
+ cb = chunk;
125951
+ chunk = void 0;
125952
+ }
125953
+ if (typeof encoding === "function") {
125954
+ cb = encoding;
125955
+ encoding = "utf8";
125956
+ }
125957
+ if (chunk !== void 0)
125958
+ this.write(chunk, encoding);
125959
+ if (cb)
125960
+ this.once("end", cb);
125961
+ this[EOF3] = true;
125962
+ this.writable = false;
125963
+ if (this[FLOWING2] || !this[PAUSED2])
125964
+ this[MAYBE_EMIT_END2]();
125965
+ return this;
125966
+ }
125967
+ // don't let the internal resume be overwritten
125968
+ [RESUME2]() {
125969
+ if (this[DESTROYED2])
125970
+ return;
125971
+ if (!this[DATALISTENERS2] && !this[PIPES2].length) {
125972
+ this[DISCARDED2] = true;
125973
+ }
125974
+ this[PAUSED2] = false;
125975
+ this[FLOWING2] = true;
125976
+ this.emit("resume");
125977
+ if (this[BUFFER3].length)
125978
+ this[FLUSH2]();
125979
+ else if (this[EOF3])
125980
+ this[MAYBE_EMIT_END2]();
125981
+ else
125982
+ this.emit("drain");
125983
+ }
125984
+ /**
125985
+ * Resume the stream if it is currently in a paused state
125986
+ *
125987
+ * If called when there are no pipe destinations or `data` event listeners,
125988
+ * this will place the stream in a "discarded" state, where all data will
125989
+ * be thrown away. The discarded state is removed if a pipe destination or
125990
+ * data handler is added, if pause() is called, or if any synchronous or
125991
+ * asynchronous iteration is started.
125992
+ */
125993
+ resume() {
125994
+ return this[RESUME2]();
125995
+ }
125996
+ /**
125997
+ * Pause the stream
125998
+ */
125999
+ pause() {
126000
+ this[FLOWING2] = false;
126001
+ this[PAUSED2] = true;
126002
+ this[DISCARDED2] = false;
126003
+ }
126004
+ /**
126005
+ * true if the stream has been forcibly destroyed
126006
+ */
126007
+ get destroyed() {
126008
+ return this[DESTROYED2];
126009
+ }
126010
+ /**
126011
+ * true if the stream is currently in a flowing state, meaning that
126012
+ * any writes will be immediately emitted.
126013
+ */
126014
+ get flowing() {
126015
+ return this[FLOWING2];
126016
+ }
126017
+ /**
126018
+ * true if the stream is currently in a paused state
126019
+ */
126020
+ get paused() {
126021
+ return this[PAUSED2];
126022
+ }
126023
+ [BUFFERPUSH2](chunk) {
126024
+ if (this[OBJECTMODE2])
126025
+ this[BUFFERLENGTH2] += 1;
126026
+ else
126027
+ this[BUFFERLENGTH2] += chunk.length;
126028
+ this[BUFFER3].push(chunk);
126029
+ }
126030
+ [BUFFERSHIFT2]() {
126031
+ if (this[OBJECTMODE2])
126032
+ this[BUFFERLENGTH2] -= 1;
126033
+ else
126034
+ this[BUFFERLENGTH2] -= this[BUFFER3][0].length;
126035
+ return this[BUFFER3].shift();
126036
+ }
126037
+ [FLUSH2](noDrain = false) {
126038
+ do {
126039
+ } while (this[FLUSHCHUNK2](this[BUFFERSHIFT2]()) && this[BUFFER3].length);
126040
+ if (!noDrain && !this[BUFFER3].length && !this[EOF3])
126041
+ this.emit("drain");
126042
+ }
126043
+ [FLUSHCHUNK2](chunk) {
126044
+ this.emit("data", chunk);
126045
+ return this[FLOWING2];
126046
+ }
126047
+ /**
126048
+ * Pipe all data emitted by this stream into the destination provided.
126049
+ *
126050
+ * Triggers the flow of data.
126051
+ */
126052
+ pipe(dest, opts) {
126053
+ if (this[DESTROYED2])
126054
+ return dest;
126055
+ this[DISCARDED2] = false;
126056
+ const ended = this[EMITTED_END2];
126057
+ opts = opts || {};
126058
+ if (dest === proc2.stdout || dest === proc2.stderr)
126059
+ opts.end = false;
126060
+ else
126061
+ opts.end = opts.end !== false;
126062
+ opts.proxyErrors = !!opts.proxyErrors;
126063
+ if (ended) {
126064
+ if (opts.end)
126065
+ dest.end();
126066
+ } else {
126067
+ this[PIPES2].push(!opts.proxyErrors ? new Pipe2(this, dest, opts) : new PipeProxyErrors2(this, dest, opts));
126068
+ if (this[ASYNC2])
126069
+ defer2(() => this[RESUME2]());
126070
+ else
126071
+ this[RESUME2]();
126072
+ }
126073
+ return dest;
126074
+ }
126075
+ /**
126076
+ * Fully unhook a piped destination stream.
126077
+ *
126078
+ * If the destination stream was the only consumer of this stream (ie,
126079
+ * there are no other piped destinations or `'data'` event listeners)
126080
+ * then the flow of data will stop until there is another consumer or
126081
+ * {@link Minipass#resume} is explicitly called.
126082
+ */
126083
+ unpipe(dest) {
126084
+ const p4 = this[PIPES2].find((p5) => p5.dest === dest);
126085
+ if (p4) {
126086
+ if (this[PIPES2].length === 1) {
126087
+ if (this[FLOWING2] && this[DATALISTENERS2] === 0) {
126088
+ this[FLOWING2] = false;
126089
+ }
126090
+ this[PIPES2] = [];
126091
+ } else
126092
+ this[PIPES2].splice(this[PIPES2].indexOf(p4), 1);
126093
+ p4.unpipe();
126094
+ }
126095
+ }
126096
+ /**
126097
+ * Alias for {@link Minipass#on}
126098
+ */
126099
+ addListener(ev, handler10) {
126100
+ return this.on(ev, handler10);
126101
+ }
126102
+ /**
126103
+ * Mostly identical to `EventEmitter.on`, with the following
126104
+ * behavior differences to prevent data loss and unnecessary hangs:
126105
+ *
126106
+ * - Adding a 'data' event handler will trigger the flow of data
126107
+ *
126108
+ * - Adding a 'readable' event handler when there is data waiting to be read
126109
+ * will cause 'readable' to be emitted immediately.
126110
+ *
126111
+ * - Adding an 'endish' event handler ('end', 'finish', etc.) which has
126112
+ * already passed will cause the event to be emitted immediately and all
126113
+ * handlers removed.
126114
+ *
126115
+ * - Adding an 'error' event handler after an error has been emitted will
126116
+ * cause the event to be re-emitted immediately with the error previously
126117
+ * raised.
126118
+ */
126119
+ on(ev, handler10) {
126120
+ const ret = super.on(ev, handler10);
126121
+ if (ev === "data") {
126122
+ this[DISCARDED2] = false;
126123
+ this[DATALISTENERS2]++;
126124
+ if (!this[PIPES2].length && !this[FLOWING2]) {
126125
+ this[RESUME2]();
126126
+ }
126127
+ } else if (ev === "readable" && this[BUFFERLENGTH2] !== 0) {
126128
+ super.emit("readable");
126129
+ } else if (isEndish2(ev) && this[EMITTED_END2]) {
126130
+ super.emit(ev);
126131
+ this.removeAllListeners(ev);
126132
+ } else if (ev === "error" && this[EMITTED_ERROR2]) {
126133
+ const h4 = handler10;
126134
+ if (this[ASYNC2])
126135
+ defer2(() => h4.call(this, this[EMITTED_ERROR2]));
126136
+ else
126137
+ h4.call(this, this[EMITTED_ERROR2]);
126138
+ }
126139
+ return ret;
126140
+ }
126141
+ /**
126142
+ * Alias for {@link Minipass#off}
126143
+ */
126144
+ removeListener(ev, handler10) {
126145
+ return this.off(ev, handler10);
126146
+ }
126147
+ /**
126148
+ * Mostly identical to `EventEmitter.off`
126149
+ *
126150
+ * If a 'data' event handler is removed, and it was the last consumer
126151
+ * (ie, there are no pipe destinations or other 'data' event listeners),
126152
+ * then the flow of data will stop until there is another consumer or
126153
+ * {@link Minipass#resume} is explicitly called.
126154
+ */
126155
+ off(ev, handler10) {
126156
+ const ret = super.off(ev, handler10);
126157
+ if (ev === "data") {
126158
+ this[DATALISTENERS2] = this.listeners("data").length;
126159
+ if (this[DATALISTENERS2] === 0 && !this[DISCARDED2] && !this[PIPES2].length) {
126160
+ this[FLOWING2] = false;
126161
+ }
126162
+ }
126163
+ return ret;
126164
+ }
126165
+ /**
126166
+ * Mostly identical to `EventEmitter.removeAllListeners`
126167
+ *
126168
+ * If all 'data' event handlers are removed, and they were the last consumer
126169
+ * (ie, there are no pipe destinations), then the flow of data will stop
126170
+ * until there is another consumer or {@link Minipass#resume} is explicitly
126171
+ * called.
126172
+ */
126173
+ removeAllListeners(ev) {
126174
+ const ret = super.removeAllListeners(ev);
126175
+ if (ev === "data" || ev === void 0) {
126176
+ this[DATALISTENERS2] = 0;
126177
+ if (!this[DISCARDED2] && !this[PIPES2].length) {
126178
+ this[FLOWING2] = false;
126179
+ }
126180
+ }
126181
+ return ret;
126182
+ }
126183
+ /**
126184
+ * true if the 'end' event has been emitted
126185
+ */
126186
+ get emittedEnd() {
126187
+ return this[EMITTED_END2];
126188
+ }
126189
+ [MAYBE_EMIT_END2]() {
126190
+ if (!this[EMITTING_END2] && !this[EMITTED_END2] && !this[DESTROYED2] && this[BUFFER3].length === 0 && this[EOF3]) {
126191
+ this[EMITTING_END2] = true;
126192
+ this.emit("end");
126193
+ this.emit("prefinish");
126194
+ this.emit("finish");
126195
+ if (this[CLOSED2])
126196
+ this.emit("close");
126197
+ this[EMITTING_END2] = false;
126198
+ }
126199
+ }
126200
+ /**
126201
+ * Mostly identical to `EventEmitter.emit`, with the following
126202
+ * behavior differences to prevent data loss and unnecessary hangs:
126203
+ *
126204
+ * If the stream has been destroyed, and the event is something other
126205
+ * than 'close' or 'error', then `false` is returned and no handlers
126206
+ * are called.
126207
+ *
126208
+ * If the event is 'end', and has already been emitted, then the event
126209
+ * is ignored. If the stream is in a paused or non-flowing state, then
126210
+ * the event will be deferred until data flow resumes. If the stream is
126211
+ * async, then handlers will be called on the next tick rather than
126212
+ * immediately.
126213
+ *
126214
+ * If the event is 'close', and 'end' has not yet been emitted, then
126215
+ * the event will be deferred until after 'end' is emitted.
126216
+ *
126217
+ * If the event is 'error', and an AbortSignal was provided for the stream,
126218
+ * and there are no listeners, then the event is ignored, matching the
126219
+ * behavior of node core streams in the presense of an AbortSignal.
126220
+ *
126221
+ * If the event is 'finish' or 'prefinish', then all listeners will be
126222
+ * removed after emitting the event, to prevent double-firing.
126223
+ */
126224
+ emit(ev, ...args) {
126225
+ const data2 = args[0];
126226
+ if (ev !== "error" && ev !== "close" && ev !== DESTROYED2 && this[DESTROYED2]) {
126227
+ return false;
126228
+ } else if (ev === "data") {
126229
+ return !this[OBJECTMODE2] && !data2 ? false : this[ASYNC2] ? (defer2(() => this[EMITDATA2](data2)), true) : this[EMITDATA2](data2);
126230
+ } else if (ev === "end") {
126231
+ return this[EMITEND3]();
126232
+ } else if (ev === "close") {
126233
+ this[CLOSED2] = true;
126234
+ if (!this[EMITTED_END2] && !this[DESTROYED2])
126235
+ return false;
126236
+ const ret2 = super.emit("close");
126237
+ this.removeAllListeners("close");
126238
+ return ret2;
126239
+ } else if (ev === "error") {
126240
+ this[EMITTED_ERROR2] = data2;
126241
+ super.emit(ERROR2, data2);
126242
+ const ret2 = !this[SIGNAL2] || this.listeners("error").length ? super.emit("error", data2) : false;
126243
+ this[MAYBE_EMIT_END2]();
126244
+ return ret2;
126245
+ } else if (ev === "resume") {
126246
+ const ret2 = super.emit("resume");
126247
+ this[MAYBE_EMIT_END2]();
126248
+ return ret2;
126249
+ } else if (ev === "finish" || ev === "prefinish") {
126250
+ const ret2 = super.emit(ev);
126251
+ this.removeAllListeners(ev);
126252
+ return ret2;
126253
+ }
126254
+ const ret = super.emit(ev, ...args);
126255
+ this[MAYBE_EMIT_END2]();
126256
+ return ret;
126257
+ }
126258
+ [EMITDATA2](data2) {
126259
+ for (const p4 of this[PIPES2]) {
126260
+ if (p4.dest.write(data2) === false)
126261
+ this.pause();
126262
+ }
126263
+ const ret = this[DISCARDED2] ? false : super.emit("data", data2);
126264
+ this[MAYBE_EMIT_END2]();
126265
+ return ret;
126266
+ }
126267
+ [EMITEND3]() {
126268
+ if (this[EMITTED_END2])
126269
+ return false;
126270
+ this[EMITTED_END2] = true;
126271
+ this.readable = false;
126272
+ return this[ASYNC2] ? (defer2(() => this[EMITEND22]()), true) : this[EMITEND22]();
126273
+ }
126274
+ [EMITEND22]() {
126275
+ if (this[DECODER2]) {
126276
+ const data2 = this[DECODER2].end();
126277
+ if (data2) {
126278
+ for (const p4 of this[PIPES2]) {
126279
+ p4.dest.write(data2);
126280
+ }
126281
+ if (!this[DISCARDED2])
126282
+ super.emit("data", data2);
126283
+ }
126284
+ }
126285
+ for (const p4 of this[PIPES2]) {
126286
+ p4.end();
126287
+ }
126288
+ const ret = super.emit("end");
126289
+ this.removeAllListeners("end");
126290
+ return ret;
126291
+ }
126292
+ /**
126293
+ * Return a Promise that resolves to an array of all emitted data once
126294
+ * the stream ends.
126295
+ */
126296
+ async collect() {
126297
+ const buf = Object.assign([], {
126298
+ dataLength: 0
126299
+ });
126300
+ if (!this[OBJECTMODE2])
126301
+ buf.dataLength = 0;
126302
+ const p4 = this.promise();
126303
+ this.on("data", (c4) => {
126304
+ buf.push(c4);
126305
+ if (!this[OBJECTMODE2])
126306
+ buf.dataLength += c4.length;
126307
+ });
126308
+ await p4;
126309
+ return buf;
126310
+ }
126311
+ /**
126312
+ * Return a Promise that resolves to the concatenation of all emitted data
126313
+ * once the stream ends.
126314
+ *
126315
+ * Not allowed on objectMode streams.
126316
+ */
126317
+ async concat() {
126318
+ if (this[OBJECTMODE2]) {
126319
+ throw new Error("cannot concat in objectMode");
126320
+ }
126321
+ const buf = await this.collect();
126322
+ return this[ENCODING2] ? buf.join("") : Buffer.concat(buf, buf.dataLength);
126323
+ }
126324
+ /**
126325
+ * Return a void Promise that resolves once the stream ends.
126326
+ */
126327
+ async promise() {
126328
+ return new Promise((resolve7, reject) => {
126329
+ this.on(DESTROYED2, () => reject(new Error("stream destroyed")));
126330
+ this.on("error", (er) => reject(er));
126331
+ this.on("end", () => resolve7());
126332
+ });
126333
+ }
126334
+ /**
126335
+ * Asynchronous `for await of` iteration.
126336
+ *
126337
+ * This will continue emitting all chunks until the stream terminates.
126338
+ */
126339
+ [Symbol.asyncIterator]() {
126340
+ this[DISCARDED2] = false;
126341
+ let stopped = false;
126342
+ const stop = async () => {
126343
+ this.pause();
126344
+ stopped = true;
126345
+ return { value: void 0, done: true };
126346
+ };
126347
+ const next = () => {
126348
+ if (stopped)
126349
+ return stop();
126350
+ const res = this.read();
126351
+ if (res !== null)
126352
+ return Promise.resolve({ done: false, value: res });
126353
+ if (this[EOF3])
126354
+ return stop();
126355
+ let resolve7;
126356
+ let reject;
126357
+ const onerr = (er) => {
126358
+ this.off("data", ondata);
126359
+ this.off("end", onend);
126360
+ this.off(DESTROYED2, ondestroy);
126361
+ stop();
126362
+ reject(er);
126363
+ };
126364
+ const ondata = (value) => {
126365
+ this.off("error", onerr);
126366
+ this.off("end", onend);
126367
+ this.off(DESTROYED2, ondestroy);
126368
+ this.pause();
126369
+ resolve7({ value, done: !!this[EOF3] });
126370
+ };
126371
+ const onend = () => {
126372
+ this.off("error", onerr);
126373
+ this.off("data", ondata);
126374
+ this.off(DESTROYED2, ondestroy);
126375
+ stop();
126376
+ resolve7({ done: true, value: void 0 });
126377
+ };
126378
+ const ondestroy = () => onerr(new Error("stream destroyed"));
126379
+ return new Promise((res2, rej) => {
126380
+ reject = rej;
126381
+ resolve7 = res2;
126382
+ this.once(DESTROYED2, ondestroy);
126383
+ this.once("error", onerr);
126384
+ this.once("end", onend);
126385
+ this.once("data", ondata);
126386
+ });
126387
+ };
126388
+ return {
126389
+ next,
126390
+ throw: stop,
126391
+ return: stop,
126392
+ [Symbol.asyncIterator]() {
126393
+ return this;
126394
+ }
126395
+ };
126396
+ }
126397
+ /**
126398
+ * Synchronous `for of` iteration.
126399
+ *
126400
+ * The iteration will terminate when the internal buffer runs out, even
126401
+ * if the stream has not yet terminated.
126402
+ */
126403
+ [Symbol.iterator]() {
126404
+ this[DISCARDED2] = false;
126405
+ let stopped = false;
126406
+ const stop = () => {
126407
+ this.pause();
126408
+ this.off(ERROR2, stop);
126409
+ this.off(DESTROYED2, stop);
126410
+ this.off("end", stop);
126411
+ stopped = true;
126412
+ return { done: true, value: void 0 };
126413
+ };
126414
+ const next = () => {
126415
+ if (stopped)
126416
+ return stop();
126417
+ const value = this.read();
126418
+ return value === null ? stop() : { done: false, value };
126419
+ };
126420
+ this.once("end", stop);
126421
+ this.once(ERROR2, stop);
126422
+ this.once(DESTROYED2, stop);
126423
+ return {
126424
+ next,
126425
+ throw: stop,
126426
+ return: stop,
126427
+ [Symbol.iterator]() {
126428
+ return this;
126429
+ }
126430
+ };
126431
+ }
126432
+ /**
126433
+ * Destroy a stream, preventing it from being used for any further purpose.
126434
+ *
126435
+ * If the stream has a `close()` method, then it will be called on
126436
+ * destruction.
126437
+ *
126438
+ * After destruction, any attempt to write data, read data, or emit most
126439
+ * events will be ignored.
126440
+ *
126441
+ * If an error argument is provided, then it will be emitted in an
126442
+ * 'error' event.
126443
+ */
126444
+ destroy(er) {
126445
+ if (this[DESTROYED2]) {
126446
+ if (er)
126447
+ this.emit("error", er);
126448
+ else
126449
+ this.emit(DESTROYED2);
126450
+ return this;
126451
+ }
126452
+ this[DESTROYED2] = true;
126453
+ this[DISCARDED2] = true;
126454
+ this[BUFFER3].length = 0;
126455
+ this[BUFFERLENGTH2] = 0;
126456
+ const wc = this;
126457
+ if (typeof wc.close === "function" && !this[CLOSED2])
126458
+ wc.close();
126459
+ if (er)
126460
+ this.emit("error", er);
126461
+ else
126462
+ this.emit(DESTROYED2);
126463
+ return this;
126464
+ }
126465
+ /**
126466
+ * Alias for {@link isStream}
126467
+ *
126468
+ * Former export location, maintained for backwards compatibility.
126469
+ *
126470
+ * @deprecated
126471
+ */
126472
+ static get isStream() {
126473
+ return isStream2;
126474
+ }
126475
+ };
126476
+ }
126477
+ });
126478
+
125364
126479
  // node_modules/.pnpm/path-scurry@2.0.1/node_modules/path-scurry/dist/esm/index.js
125365
126480
  var import_node_path15, import_node_url, import_fs11, actualFS, import_promises5, realpathSync, defaultFS, fsFromOption, uncDriveRegexp, uncToDrive, eitherSep, UNKNOWN, IFIFO, IFCHR, IFDIR, IFBLK, IFREG, IFLNK, IFSOCK, IFMT, IFMT_UNKNOWN, READDIR_CALLED, LSTAT_CALLED, ENOTDIR, ENOENT, ENOREADLINK, ENOREALPATH, ENOCHILD, TYPEMASK, entToType, normalizeCache2, normalize4, normalizeNocaseCache, normalizeNocase, ResolveCache, ChildrenCache, setAsCwd, PathBase, PathWin32, PathPosix, PathScurryBase, PathScurryWin32, PathScurryPosix, PathScurryDarwin, Path, PathScurry;
125366
- var init_esm20 = __esm({
126481
+ var init_esm21 = __esm({
125367
126482
  "node_modules/.pnpm/path-scurry@2.0.1/node_modules/path-scurry/dist/esm/index.js"() {
125368
126483
  init_import_meta_url();
125369
126484
  init_esm19();
@@ -125372,7 +126487,7 @@ var init_esm20 = __esm({
125372
126487
  import_fs11 = require("fs");
125373
126488
  actualFS = __toESM(require("node:fs"), 1);
125374
126489
  import_promises5 = require("node:fs/promises");
125375
- init_esm9();
126490
+ init_esm20();
125376
126491
  realpathSync = import_fs11.realpathSync.native;
125377
126492
  defaultFS = {
125378
126493
  lstatSync: import_fs11.lstatSync,
@@ -126909,7 +128024,7 @@ var init_esm20 = __esm({
126909
128024
  entry = this.cwd;
126910
128025
  }
126911
128026
  const { withFileTypes = true, follow = false, filter: filter3, walkFilter } = opts;
126912
- const results = new Minipass({ objectMode: true });
128027
+ const results = new Minipass2({ objectMode: true });
126913
128028
  if (!filter3 || filter3(entry)) {
126914
128029
  results.write(withFileTypes ? entry : entry.fullpath());
126915
128030
  }
@@ -126978,7 +128093,7 @@ var init_esm20 = __esm({
126978
128093
  entry = this.cwd;
126979
128094
  }
126980
128095
  const { withFileTypes = true, follow = false, filter: filter3, walkFilter } = opts;
126981
- const results = new Minipass({ objectMode: true });
128096
+ const results = new Minipass2({ objectMode: true });
126982
128097
  const dirs = /* @__PURE__ */ new Set();
126983
128098
  if (!filter3 || filter3(entry)) {
126984
128099
  results.write(withFileTypes ? entry : entry.fullpath());
@@ -127602,7 +128717,7 @@ var makeIgnore, GlobUtil, GlobWalker, GlobStream;
127602
128717
  var init_walker = __esm({
127603
128718
  "node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/esm/walker.js"() {
127604
128719
  init_import_meta_url();
127605
- init_esm9();
128720
+ init_esm20();
127606
128721
  init_ignore();
127607
128722
  init_processor();
127608
128723
  makeIgnore = (ignore2, opts) => typeof ignore2 === "string" ? new Ignore2([ignore2], opts) : Array.isArray(ignore2) ? new Ignore2(ignore2, opts) : ignore2;
@@ -127899,7 +129014,7 @@ var init_walker = __esm({
127899
129014
  results;
127900
129015
  constructor(patterns, path27, opts) {
127901
129016
  super(patterns, path27, opts);
127902
- this.results = new Minipass({
129017
+ this.results = new Minipass2({
127903
129018
  signal: this.signal,
127904
129019
  objectMode: true
127905
129020
  });
@@ -127940,7 +129055,7 @@ var init_glob = __esm({
127940
129055
  init_import_meta_url();
127941
129056
  init_esm18();
127942
129057
  import_node_url2 = require("node:url");
127943
- init_esm20();
129058
+ init_esm21();
127944
129059
  init_pattern();
127945
129060
  init_walker();
127946
129061
  defaultPlatform4 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
@@ -128183,7 +129298,7 @@ function globIterate(pattern, options = {}) {
128183
129298
  return new Glob(pattern, options).iterate();
128184
129299
  }
128185
129300
  var streamSync2, stream, iterateSync, iterate, sync, glob;
128186
- var init_esm21 = __esm({
129301
+ var init_esm22 = __esm({
128187
129302
  "node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/esm/index.js"() {
128188
129303
  init_import_meta_url();
128189
129304
  init_esm18();
@@ -128428,7 +129543,7 @@ var init_workspaces = __esm({
128428
129543
  import_fs12 = require("fs");
128429
129544
  path19 = __toESM(require("path"));
128430
129545
  init_js_yaml();
128431
- init_esm21();
129546
+ init_esm22();
128432
129547
  init_logger2();
128433
129548
  }
128434
129549
  });
@@ -141801,45 +142916,45 @@ var init_awsExpectUnion = __esm({
141801
142916
  }
141802
142917
  });
141803
142918
 
141804
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/lib/fxp.cjs
142919
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/lib/fxp.cjs
141805
142920
  var require_fxp = __commonJS({
141806
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/lib/fxp.cjs"(exports2, module2) {
142921
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/lib/fxp.cjs"(exports2, module2) {
141807
142922
  init_import_meta_url();
141808
142923
  (() => {
141809
142924
  "use strict";
141810
- var t4 = { d: (e5, i5) => {
141811
- for (var n5 in i5) t4.o(i5, n5) && !t4.o(e5, n5) && Object.defineProperty(e5, n5, { enumerable: true, get: i5[n5] });
142925
+ var t4 = { d: (e5, n5) => {
142926
+ for (var i5 in n5) t4.o(n5, i5) && !t4.o(e5, i5) && Object.defineProperty(e5, i5, { enumerable: true, get: n5[i5] });
141812
142927
  }, o: (t5, e5) => Object.prototype.hasOwnProperty.call(t5, e5), r: (t5) => {
141813
142928
  "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t5, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t5, "__esModule", { value: true });
141814
142929
  } }, e4 = {};
141815
- t4.r(e4), t4.d(e4, { XMLBuilder: () => ut, XMLParser: () => et, XMLValidator: () => ft });
141816
- const i4 = ":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", n4 = new RegExp("^[" + i4 + "][" + i4 + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
142930
+ t4.r(e4), t4.d(e4, { XMLBuilder: () => dt, XMLParser: () => it, XMLValidator: () => gt });
142931
+ const n4 = ":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", i4 = new RegExp("^[" + n4 + "][" + n4 + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
141817
142932
  function s4(t5, e5) {
141818
- const i5 = [];
141819
- let n5 = e5.exec(t5);
141820
- for (; n5; ) {
142933
+ const n5 = [];
142934
+ let i5 = e5.exec(t5);
142935
+ for (; i5; ) {
141821
142936
  const s5 = [];
141822
- s5.startIndex = e5.lastIndex - n5[0].length;
141823
- const r5 = n5.length;
141824
- for (let t6 = 0; t6 < r5; t6++) s5.push(n5[t6]);
141825
- i5.push(s5), n5 = e5.exec(t5);
142937
+ s5.startIndex = e5.lastIndex - i5[0].length;
142938
+ const r5 = i5.length;
142939
+ for (let t6 = 0; t6 < r5; t6++) s5.push(i5[t6]);
142940
+ n5.push(s5), i5 = e5.exec(t5);
141826
142941
  }
141827
- return i5;
142942
+ return n5;
141828
142943
  }
141829
142944
  const r4 = function(t5) {
141830
- return !(null == n4.exec(t5));
142945
+ return !(null == i4.exec(t5));
141831
142946
  }, o4 = { allowBooleanAttributes: false, unpairedTags: [] };
141832
142947
  function a4(t5, e5) {
141833
142948
  e5 = Object.assign({}, o4, e5);
141834
- const i5 = [];
141835
- let n5 = false, s5 = false;
142949
+ const n5 = [];
142950
+ let i5 = false, s5 = false;
141836
142951
  "\uFEFF" === t5[0] && (t5 = t5.substr(1));
141837
142952
  for (let o5 = 0; o5 < t5.length; o5++) if ("<" === t5[o5] && "?" === t5[o5 + 1]) {
141838
142953
  if (o5 += 2, o5 = u6(t5, o5), o5.err) return o5;
141839
142954
  } else {
141840
142955
  if ("<" !== t5[o5]) {
141841
142956
  if (l4(t5[o5])) continue;
141842
- return x5("InvalidChar", "char '" + t5[o5] + "' is not expected.", b5(t5, o5));
142957
+ return m5("InvalidChar", "char '" + t5[o5] + "' is not expected.", b5(t5, o5));
141843
142958
  }
141844
142959
  {
141845
142960
  let a5 = o5;
@@ -141854,34 +142969,34 @@ var require_fxp = __commonJS({
141854
142969
  for (; o5 < t5.length && ">" !== t5[o5] && " " !== t5[o5] && " " !== t5[o5] && "\n" !== t5[o5] && "\r" !== t5[o5]; o5++) p5 += t5[o5];
141855
142970
  if (p5 = p5.trim(), "/" === p5[p5.length - 1] && (p5 = p5.substring(0, p5.length - 1), o5--), !r4(p5)) {
141856
142971
  let e6;
141857
- return e6 = 0 === p5.trim().length ? "Invalid space after '<'." : "Tag '" + p5 + "' is an invalid name.", x5("InvalidTag", e6, b5(t5, o5));
142972
+ return e6 = 0 === p5.trim().length ? "Invalid space after '<'." : "Tag '" + p5 + "' is an invalid name.", m5("InvalidTag", e6, b5(t5, o5));
141858
142973
  }
141859
142974
  const c5 = f4(t5, o5);
141860
- if (false === c5) return x5("InvalidAttr", "Attributes for '" + p5 + "' have open quote.", b5(t5, o5));
141861
- let N3 = c5.value;
141862
- if (o5 = c5.index, "/" === N3[N3.length - 1]) {
141863
- const i6 = o5 - N3.length;
141864
- N3 = N3.substring(0, N3.length - 1);
141865
- const s6 = g4(N3, e5);
141866
- if (true !== s6) return x5(s6.err.code, s6.err.msg, b5(t5, i6 + s6.err.line));
141867
- n5 = true;
142975
+ if (false === c5) return m5("InvalidAttr", "Attributes for '" + p5 + "' have open quote.", b5(t5, o5));
142976
+ let E4 = c5.value;
142977
+ if (o5 = c5.index, "/" === E4[E4.length - 1]) {
142978
+ const n6 = o5 - E4.length;
142979
+ E4 = E4.substring(0, E4.length - 1);
142980
+ const s6 = g4(E4, e5);
142981
+ if (true !== s6) return m5(s6.err.code, s6.err.msg, b5(t5, n6 + s6.err.line));
142982
+ i5 = true;
141868
142983
  } else if (d6) {
141869
- if (!c5.tagClosed) return x5("InvalidTag", "Closing tag '" + p5 + "' doesn't have proper closing.", b5(t5, o5));
141870
- if (N3.trim().length > 0) return x5("InvalidTag", "Closing tag '" + p5 + "' can't have attributes or invalid starting.", b5(t5, a5));
141871
- if (0 === i5.length) return x5("InvalidTag", "Closing tag '" + p5 + "' has not been opened.", b5(t5, a5));
142984
+ if (!c5.tagClosed) return m5("InvalidTag", "Closing tag '" + p5 + "' doesn't have proper closing.", b5(t5, o5));
142985
+ if (E4.trim().length > 0) return m5("InvalidTag", "Closing tag '" + p5 + "' can't have attributes or invalid starting.", b5(t5, a5));
142986
+ if (0 === n5.length) return m5("InvalidTag", "Closing tag '" + p5 + "' has not been opened.", b5(t5, a5));
141872
142987
  {
141873
- const e6 = i5.pop();
142988
+ const e6 = n5.pop();
141874
142989
  if (p5 !== e6.tagName) {
141875
- let i6 = b5(t5, e6.tagStartPos);
141876
- return x5("InvalidTag", "Expected closing tag '" + e6.tagName + "' (opened in line " + i6.line + ", col " + i6.col + ") instead of closing tag '" + p5 + "'.", b5(t5, a5));
142990
+ let n6 = b5(t5, e6.tagStartPos);
142991
+ return m5("InvalidTag", "Expected closing tag '" + e6.tagName + "' (opened in line " + n6.line + ", col " + n6.col + ") instead of closing tag '" + p5 + "'.", b5(t5, a5));
141877
142992
  }
141878
- 0 == i5.length && (s5 = true);
142993
+ 0 == n5.length && (s5 = true);
141879
142994
  }
141880
142995
  } else {
141881
- const r5 = g4(N3, e5);
141882
- if (true !== r5) return x5(r5.err.code, r5.err.msg, b5(t5, o5 - N3.length + r5.err.line));
141883
- if (true === s5) return x5("InvalidXml", "Multiple possible root nodes found.", b5(t5, o5));
141884
- -1 !== e5.unpairedTags.indexOf(p5) || i5.push({ tagName: p5, tagStartPos: a5 }), n5 = true;
142996
+ const r5 = g4(E4, e5);
142997
+ if (true !== r5) return m5(r5.err.code, r5.err.msg, b5(t5, o5 - E4.length + r5.err.line));
142998
+ if (true === s5) return m5("InvalidXml", "Multiple possible root nodes found.", b5(t5, o5));
142999
+ -1 !== e5.unpairedTags.indexOf(p5) || n5.push({ tagName: p5, tagStartPos: a5 }), i5 = true;
141885
143000
  }
141886
143001
  for (o5++; o5 < t5.length; o5++) if ("<" === t5[o5]) {
141887
143002
  if ("!" === t5[o5 + 1]) {
@@ -141891,25 +143006,25 @@ var require_fxp = __commonJS({
141891
143006
  if ("?" !== t5[o5 + 1]) break;
141892
143007
  if (o5 = u6(t5, ++o5), o5.err) return o5;
141893
143008
  } else if ("&" === t5[o5]) {
141894
- const e6 = m5(t5, o5);
141895
- if (-1 == e6) return x5("InvalidChar", "char '&' is not expected.", b5(t5, o5));
143009
+ const e6 = x5(t5, o5);
143010
+ if (-1 == e6) return m5("InvalidChar", "char '&' is not expected.", b5(t5, o5));
141896
143011
  o5 = e6;
141897
- } else if (true === s5 && !l4(t5[o5])) return x5("InvalidXml", "Extra text at the end", b5(t5, o5));
143012
+ } else if (true === s5 && !l4(t5[o5])) return m5("InvalidXml", "Extra text at the end", b5(t5, o5));
141898
143013
  "<" === t5[o5] && o5--;
141899
143014
  }
141900
143015
  }
141901
143016
  }
141902
- return n5 ? 1 == i5.length ? x5("InvalidTag", "Unclosed tag '" + i5[0].tagName + "'.", b5(t5, i5[0].tagStartPos)) : !(i5.length > 0) || x5("InvalidXml", "Invalid '" + JSON.stringify(i5.map(((t6) => t6.tagName)), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : x5("InvalidXml", "Start tag expected.", 1);
143017
+ return i5 ? 1 == n5.length ? m5("InvalidTag", "Unclosed tag '" + n5[0].tagName + "'.", b5(t5, n5[0].tagStartPos)) : !(n5.length > 0) || m5("InvalidXml", "Invalid '" + JSON.stringify(n5.map(((t6) => t6.tagName)), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : m5("InvalidXml", "Start tag expected.", 1);
141903
143018
  }
141904
143019
  function l4(t5) {
141905
143020
  return " " === t5 || " " === t5 || "\n" === t5 || "\r" === t5;
141906
143021
  }
141907
143022
  function u6(t5, e5) {
141908
- const i5 = e5;
143023
+ const n5 = e5;
141909
143024
  for (; e5 < t5.length; e5++) if ("?" != t5[e5] && " " != t5[e5]) ;
141910
143025
  else {
141911
- const n5 = t5.substr(i5, e5 - i5);
141912
- if (e5 > 5 && "xml" === n5) return x5("InvalidXml", "XML declaration allowed only at the start of the document.", b5(t5, e5));
143026
+ const i5 = t5.substr(n5, e5 - n5);
143027
+ if (e5 > 5 && "xml" === i5) return m5("InvalidXml", "XML declaration allowed only at the start of the document.", b5(t5, e5));
141913
143028
  if ("?" == t5[e5] && ">" == t5[e5 + 1]) {
141914
143029
  e5++;
141915
143030
  break;
@@ -141924,9 +143039,9 @@ var require_fxp = __commonJS({
141924
143039
  break;
141925
143040
  }
141926
143041
  } else if (t5.length > e5 + 8 && "D" === t5[e5 + 1] && "O" === t5[e5 + 2] && "C" === t5[e5 + 3] && "T" === t5[e5 + 4] && "Y" === t5[e5 + 5] && "P" === t5[e5 + 6] && "E" === t5[e5 + 7]) {
141927
- let i5 = 1;
141928
- for (e5 += 8; e5 < t5.length; e5++) if ("<" === t5[e5]) i5++;
141929
- else if (">" === t5[e5] && (i5--, 0 === i5)) break;
143042
+ let n5 = 1;
143043
+ for (e5 += 8; e5 < t5.length; e5++) if ("<" === t5[e5]) n5++;
143044
+ else if (">" === t5[e5] && (n5--, 0 === n5)) break;
141930
143045
  } else if (t5.length > e5 + 9 && "[" === t5[e5 + 1] && "C" === t5[e5 + 2] && "D" === t5[e5 + 3] && "A" === t5[e5 + 4] && "T" === t5[e5 + 5] && "A" === t5[e5 + 6] && "[" === t5[e5 + 7]) {
141931
143046
  for (e5 += 8; e5 < t5.length; e5++) if ("]" === t5[e5] && "]" === t5[e5 + 1] && ">" === t5[e5 + 2]) {
141932
143047
  e5 += 2;
@@ -141937,71 +143052,78 @@ var require_fxp = __commonJS({
141937
143052
  }
141938
143053
  const d5 = '"', p4 = "'";
141939
143054
  function f4(t5, e5) {
141940
- let i5 = "", n5 = "", s5 = false;
143055
+ let n5 = "", i5 = "", s5 = false;
141941
143056
  for (; e5 < t5.length; e5++) {
141942
- if (t5[e5] === d5 || t5[e5] === p4) "" === n5 ? n5 = t5[e5] : n5 !== t5[e5] || (n5 = "");
141943
- else if (">" === t5[e5] && "" === n5) {
143057
+ if (t5[e5] === d5 || t5[e5] === p4) "" === i5 ? i5 = t5[e5] : i5 !== t5[e5] || (i5 = "");
143058
+ else if (">" === t5[e5] && "" === i5) {
141944
143059
  s5 = true;
141945
143060
  break;
141946
143061
  }
141947
- i5 += t5[e5];
143062
+ n5 += t5[e5];
141948
143063
  }
141949
- return "" === n5 && { value: i5, index: e5, tagClosed: s5 };
143064
+ return "" === i5 && { value: n5, index: e5, tagClosed: s5 };
141950
143065
  }
141951
143066
  const c4 = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
141952
143067
  function g4(t5, e5) {
141953
- const i5 = s4(t5, c4), n5 = {};
141954
- for (let t6 = 0; t6 < i5.length; t6++) {
141955
- if (0 === i5[t6][1].length) return x5("InvalidAttr", "Attribute '" + i5[t6][2] + "' has no space in starting.", E3(i5[t6]));
141956
- if (void 0 !== i5[t6][3] && void 0 === i5[t6][4]) return x5("InvalidAttr", "Attribute '" + i5[t6][2] + "' is without value.", E3(i5[t6]));
141957
- if (void 0 === i5[t6][3] && !e5.allowBooleanAttributes) return x5("InvalidAttr", "boolean attribute '" + i5[t6][2] + "' is not allowed.", E3(i5[t6]));
141958
- const s5 = i5[t6][2];
141959
- if (!N2(s5)) return x5("InvalidAttr", "Attribute '" + s5 + "' is an invalid name.", E3(i5[t6]));
141960
- if (n5.hasOwnProperty(s5)) return x5("InvalidAttr", "Attribute '" + s5 + "' is repeated.", E3(i5[t6]));
141961
- n5[s5] = 1;
143068
+ const n5 = s4(t5, c4), i5 = {};
143069
+ for (let t6 = 0; t6 < n5.length; t6++) {
143070
+ if (0 === n5[t6][1].length) return m5("InvalidAttr", "Attribute '" + n5[t6][2] + "' has no space in starting.", N2(n5[t6]));
143071
+ if (void 0 !== n5[t6][3] && void 0 === n5[t6][4]) return m5("InvalidAttr", "Attribute '" + n5[t6][2] + "' is without value.", N2(n5[t6]));
143072
+ if (void 0 === n5[t6][3] && !e5.allowBooleanAttributes) return m5("InvalidAttr", "boolean attribute '" + n5[t6][2] + "' is not allowed.", N2(n5[t6]));
143073
+ const s5 = n5[t6][2];
143074
+ if (!E3(s5)) return m5("InvalidAttr", "Attribute '" + s5 + "' is an invalid name.", N2(n5[t6]));
143075
+ if (i5.hasOwnProperty(s5)) return m5("InvalidAttr", "Attribute '" + s5 + "' is repeated.", N2(n5[t6]));
143076
+ i5[s5] = 1;
141962
143077
  }
141963
143078
  return true;
141964
143079
  }
141965
- function m5(t5, e5) {
143080
+ function x5(t5, e5) {
141966
143081
  if (";" === t5[++e5]) return -1;
141967
143082
  if ("#" === t5[e5]) return (function(t6, e6) {
141968
- let i6 = /\d/;
141969
- for ("x" === t6[e6] && (e6++, i6 = /[\da-fA-F]/); e6 < t6.length; e6++) {
143083
+ let n6 = /\d/;
143084
+ for ("x" === t6[e6] && (e6++, n6 = /[\da-fA-F]/); e6 < t6.length; e6++) {
141970
143085
  if (";" === t6[e6]) return e6;
141971
- if (!t6[e6].match(i6)) break;
143086
+ if (!t6[e6].match(n6)) break;
141972
143087
  }
141973
143088
  return -1;
141974
143089
  })(t5, ++e5);
141975
- let i5 = 0;
141976
- for (; e5 < t5.length; e5++, i5++) if (!(t5[e5].match(/\w/) && i5 < 20)) {
143090
+ let n5 = 0;
143091
+ for (; e5 < t5.length; e5++, n5++) if (!(t5[e5].match(/\w/) && n5 < 20)) {
141977
143092
  if (";" === t5[e5]) break;
141978
143093
  return -1;
141979
143094
  }
141980
143095
  return e5;
141981
143096
  }
141982
- function x5(t5, e5, i5) {
141983
- return { err: { code: t5, msg: e5, line: i5.line || i5, col: i5.col } };
143097
+ function m5(t5, e5, n5) {
143098
+ return { err: { code: t5, msg: e5, line: n5.line || n5, col: n5.col } };
141984
143099
  }
141985
- function N2(t5) {
143100
+ function E3(t5) {
141986
143101
  return r4(t5);
141987
143102
  }
141988
143103
  function b5(t5, e5) {
141989
- const i5 = t5.substring(0, e5).split(/\r?\n/);
141990
- return { line: i5.length, col: i5[i5.length - 1].length + 1 };
143104
+ const n5 = t5.substring(0, e5).split(/\r?\n/);
143105
+ return { line: n5.length, col: n5[n5.length - 1].length + 1 };
141991
143106
  }
141992
- function E3(t5) {
143107
+ function N2(t5) {
141993
143108
  return t5.startIndex + t5[1].length;
141994
143109
  }
141995
- const v8 = { 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(t5, e5) {
143110
+ const y3 = { 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(t5, e5) {
141996
143111
  return e5;
141997
143112
  }, attributeValueProcessor: function(t5, e5) {
141998
143113
  return e5;
141999
- }, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t5, e5, i5) {
143114
+ }, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t5, e5, n5) {
142000
143115
  return t5;
142001
143116
  }, captureMetaData: false };
142002
- let T2;
142003
- T2 = "function" != typeof Symbol ? "@@xmlMetadata" : Symbol("XML Node Metadata");
142004
- class y3 {
143117
+ function T2(t5) {
143118
+ return "boolean" == typeof t5 ? { enabled: t5, maxEntitySize: 1e4, maxExpansionDepth: 10, maxTotalExpansions: 1e3, maxExpandedLength: 1e5, allowedTags: null, tagFilter: null } : "object" == typeof t5 && null !== t5 ? { enabled: false !== t5.enabled, maxEntitySize: t5.maxEntitySize ?? 1e4, maxExpansionDepth: t5.maxExpansionDepth ?? 10, maxTotalExpansions: t5.maxTotalExpansions ?? 1e3, maxExpandedLength: t5.maxExpandedLength ?? 1e5, allowedTags: t5.allowedTags ?? null, tagFilter: t5.tagFilter ?? null } : T2(true);
143119
+ }
143120
+ const w5 = function(t5) {
143121
+ const e5 = Object.assign({}, y3, t5);
143122
+ return e5.processEntities = T2(e5.processEntities), e5;
143123
+ };
143124
+ let v8;
143125
+ v8 = "function" != typeof Symbol ? "@@xmlMetadata" : Symbol("XML Node Metadata");
143126
+ class I3 {
142005
143127
  constructor(t5) {
142006
143128
  this.tagname = t5, this.child = [], this[":@"] = {};
142007
143129
  }
@@ -142009,151 +143131,155 @@ var require_fxp = __commonJS({
142009
143131
  "__proto__" === t5 && (t5 = "#__proto__"), this.child.push({ [t5]: e5 });
142010
143132
  }
142011
143133
  addChild(t5, e5) {
142012
- "__proto__" === t5.tagname && (t5.tagname = "#__proto__"), t5[":@"] && Object.keys(t5[":@"]).length > 0 ? this.child.push({ [t5.tagname]: t5.child, ":@": t5[":@"] }) : this.child.push({ [t5.tagname]: t5.child }), void 0 !== e5 && (this.child[this.child.length - 1][T2] = { startIndex: e5 });
143134
+ "__proto__" === t5.tagname && (t5.tagname = "#__proto__"), t5[":@"] && Object.keys(t5[":@"]).length > 0 ? this.child.push({ [t5.tagname]: t5.child, ":@": t5[":@"] }) : this.child.push({ [t5.tagname]: t5.child }), void 0 !== e5 && (this.child[this.child.length - 1][v8] = { startIndex: e5 });
142013
143135
  }
142014
143136
  static getMetaDataSymbol() {
142015
- return T2;
143137
+ return v8;
142016
143138
  }
142017
143139
  }
142018
- class w5 {
143140
+ class O {
142019
143141
  constructor(t5) {
142020
- this.suppressValidationErr = !t5;
143142
+ this.suppressValidationErr = !t5, this.options = t5;
142021
143143
  }
142022
143144
  readDocType(t5, e5) {
142023
- const i5 = {};
143145
+ const n5 = {};
142024
143146
  if ("O" !== t5[e5 + 3] || "C" !== t5[e5 + 4] || "T" !== t5[e5 + 5] || "Y" !== t5[e5 + 6] || "P" !== t5[e5 + 7] || "E" !== t5[e5 + 8]) throw new Error("Invalid Tag instead of DOCTYPE");
142025
143147
  {
142026
143148
  e5 += 9;
142027
- let n5 = 1, s5 = false, r5 = false, o5 = "";
143149
+ let i5 = 1, s5 = false, r5 = false, o5 = "";
142028
143150
  for (; e5 < t5.length; e5++) if ("<" !== t5[e5] || r5) if (">" === t5[e5]) {
142029
- if (r5 ? "-" === t5[e5 - 1] && "-" === t5[e5 - 2] && (r5 = false, n5--) : n5--, 0 === n5) break;
143151
+ if (r5 ? "-" === t5[e5 - 1] && "-" === t5[e5 - 2] && (r5 = false, i5--) : i5--, 0 === i5) break;
142030
143152
  } else "[" === t5[e5] ? s5 = true : o5 += t5[e5];
142031
143153
  else {
142032
- if (s5 && P2(t5, "!ENTITY", e5)) {
142033
- let n6, s6;
142034
- e5 += 7, [n6, s6, e5] = this.readEntityExp(t5, e5 + 1, this.suppressValidationErr), -1 === s6.indexOf("&") && (i5[n6] = { regx: RegExp(`&${n6};`, "g"), val: s6 });
142035
- } else if (s5 && P2(t5, "!ELEMENT", e5)) {
143154
+ if (s5 && A2(t5, "!ENTITY", e5)) {
143155
+ let i6, s6;
143156
+ if (e5 += 7, [i6, s6, e5] = this.readEntityExp(t5, e5 + 1, this.suppressValidationErr), -1 === s6.indexOf("&")) {
143157
+ const t6 = i6.replace(/[.\-+*:]/g, "\\.");
143158
+ n5[i6] = { regx: RegExp(`&${t6};`, "g"), val: s6 };
143159
+ }
143160
+ } else if (s5 && A2(t5, "!ELEMENT", e5)) {
142036
143161
  e5 += 8;
142037
- const { index: i6 } = this.readElementExp(t5, e5 + 1);
142038
- e5 = i6;
142039
- } else if (s5 && P2(t5, "!ATTLIST", e5)) e5 += 8;
142040
- else if (s5 && P2(t5, "!NOTATION", e5)) {
143162
+ const { index: n6 } = this.readElementExp(t5, e5 + 1);
143163
+ e5 = n6;
143164
+ } else if (s5 && A2(t5, "!ATTLIST", e5)) e5 += 8;
143165
+ else if (s5 && A2(t5, "!NOTATION", e5)) {
142041
143166
  e5 += 9;
142042
- const { index: i6 } = this.readNotationExp(t5, e5 + 1, this.suppressValidationErr);
142043
- e5 = i6;
143167
+ const { index: n6 } = this.readNotationExp(t5, e5 + 1, this.suppressValidationErr);
143168
+ e5 = n6;
142044
143169
  } else {
142045
- if (!P2(t5, "!--", e5)) throw new Error("Invalid DOCTYPE");
143170
+ if (!A2(t5, "!--", e5)) throw new Error("Invalid DOCTYPE");
142046
143171
  r5 = true;
142047
143172
  }
142048
- n5++, o5 = "";
143173
+ i5++, o5 = "";
142049
143174
  }
142050
- if (0 !== n5) throw new Error("Unclosed DOCTYPE");
143175
+ if (0 !== i5) throw new Error("Unclosed DOCTYPE");
142051
143176
  }
142052
- return { entities: i5, i: e5 };
143177
+ return { entities: n5, i: e5 };
142053
143178
  }
142054
143179
  readEntityExp(t5, e5) {
142055
- e5 = I3(t5, e5);
142056
- let i5 = "";
142057
- for (; e5 < t5.length && !/\s/.test(t5[e5]) && '"' !== t5[e5] && "'" !== t5[e5]; ) i5 += t5[e5], e5++;
142058
- if (O(i5), e5 = I3(t5, e5), !this.suppressValidationErr) {
143180
+ e5 = P2(t5, e5);
143181
+ let n5 = "";
143182
+ for (; e5 < t5.length && !/\s/.test(t5[e5]) && '"' !== t5[e5] && "'" !== t5[e5]; ) n5 += t5[e5], e5++;
143183
+ if (S2(n5), e5 = P2(t5, e5), !this.suppressValidationErr) {
142059
143184
  if ("SYSTEM" === t5.substring(e5, e5 + 6).toUpperCase()) throw new Error("External entities are not supported");
142060
143185
  if ("%" === t5[e5]) throw new Error("Parameter entities are not supported");
142061
143186
  }
142062
- let n5 = "";
142063
- return [e5, n5] = this.readIdentifierVal(t5, e5, "entity"), [i5, n5, --e5];
143187
+ let i5 = "";
143188
+ if ([e5, i5] = this.readIdentifierVal(t5, e5, "entity"), false !== this.options.enabled && this.options.maxEntitySize && i5.length > this.options.maxEntitySize) throw new Error(`Entity "${n5}" size (${i5.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);
143189
+ return [n5, i5, --e5];
142064
143190
  }
142065
143191
  readNotationExp(t5, e5) {
142066
- e5 = I3(t5, e5);
142067
- let i5 = "";
142068
- for (; e5 < t5.length && !/\s/.test(t5[e5]); ) i5 += t5[e5], e5++;
142069
- !this.suppressValidationErr && O(i5), e5 = I3(t5, e5);
142070
- const n5 = t5.substring(e5, e5 + 6).toUpperCase();
142071
- if (!this.suppressValidationErr && "SYSTEM" !== n5 && "PUBLIC" !== n5) throw new Error(`Expected SYSTEM or PUBLIC, found "${n5}"`);
142072
- e5 += n5.length, e5 = I3(t5, e5);
143192
+ e5 = P2(t5, e5);
143193
+ let n5 = "";
143194
+ for (; e5 < t5.length && !/\s/.test(t5[e5]); ) n5 += t5[e5], e5++;
143195
+ !this.suppressValidationErr && S2(n5), e5 = P2(t5, e5);
143196
+ const i5 = t5.substring(e5, e5 + 6).toUpperCase();
143197
+ if (!this.suppressValidationErr && "SYSTEM" !== i5 && "PUBLIC" !== i5) throw new Error(`Expected SYSTEM or PUBLIC, found "${i5}"`);
143198
+ e5 += i5.length, e5 = P2(t5, e5);
142073
143199
  let s5 = null, r5 = null;
142074
- if ("PUBLIC" === n5) [e5, s5] = this.readIdentifierVal(t5, e5, "publicIdentifier"), '"' !== t5[e5 = I3(t5, e5)] && "'" !== t5[e5] || ([e5, r5] = this.readIdentifierVal(t5, e5, "systemIdentifier"));
142075
- else if ("SYSTEM" === n5 && ([e5, r5] = this.readIdentifierVal(t5, e5, "systemIdentifier"), !this.suppressValidationErr && !r5)) throw new Error("Missing mandatory system identifier for SYSTEM notation");
142076
- return { notationName: i5, publicIdentifier: s5, systemIdentifier: r5, index: --e5 };
143200
+ if ("PUBLIC" === i5) [e5, s5] = this.readIdentifierVal(t5, e5, "publicIdentifier"), '"' !== t5[e5 = P2(t5, e5)] && "'" !== t5[e5] || ([e5, r5] = this.readIdentifierVal(t5, e5, "systemIdentifier"));
143201
+ else if ("SYSTEM" === i5 && ([e5, r5] = this.readIdentifierVal(t5, e5, "systemIdentifier"), !this.suppressValidationErr && !r5)) throw new Error("Missing mandatory system identifier for SYSTEM notation");
143202
+ return { notationName: n5, publicIdentifier: s5, systemIdentifier: r5, index: --e5 };
142077
143203
  }
142078
- readIdentifierVal(t5, e5, i5) {
142079
- let n5 = "";
143204
+ readIdentifierVal(t5, e5, n5) {
143205
+ let i5 = "";
142080
143206
  const s5 = t5[e5];
142081
143207
  if ('"' !== s5 && "'" !== s5) throw new Error(`Expected quoted string, found "${s5}"`);
142082
- for (e5++; e5 < t5.length && t5[e5] !== s5; ) n5 += t5[e5], e5++;
142083
- if (t5[e5] !== s5) throw new Error(`Unterminated ${i5} value`);
142084
- return [++e5, n5];
143208
+ for (e5++; e5 < t5.length && t5[e5] !== s5; ) i5 += t5[e5], e5++;
143209
+ if (t5[e5] !== s5) throw new Error(`Unterminated ${n5} value`);
143210
+ return [++e5, i5];
142085
143211
  }
142086
143212
  readElementExp(t5, e5) {
142087
- e5 = I3(t5, e5);
142088
- let i5 = "";
142089
- for (; e5 < t5.length && !/\s/.test(t5[e5]); ) i5 += t5[e5], e5++;
142090
- if (!this.suppressValidationErr && !r4(i5)) throw new Error(`Invalid element name: "${i5}"`);
143213
+ e5 = P2(t5, e5);
142091
143214
  let n5 = "";
142092
- if ("E" === t5[e5 = I3(t5, e5)] && P2(t5, "MPTY", e5)) e5 += 4;
142093
- else if ("A" === t5[e5] && P2(t5, "NY", e5)) e5 += 2;
143215
+ for (; e5 < t5.length && !/\s/.test(t5[e5]); ) n5 += t5[e5], e5++;
143216
+ if (!this.suppressValidationErr && !r4(n5)) throw new Error(`Invalid element name: "${n5}"`);
143217
+ let i5 = "";
143218
+ if ("E" === t5[e5 = P2(t5, e5)] && A2(t5, "MPTY", e5)) e5 += 4;
143219
+ else if ("A" === t5[e5] && A2(t5, "NY", e5)) e5 += 2;
142094
143220
  else if ("(" === t5[e5]) {
142095
- for (e5++; e5 < t5.length && ")" !== t5[e5]; ) n5 += t5[e5], e5++;
143221
+ for (e5++; e5 < t5.length && ")" !== t5[e5]; ) i5 += t5[e5], e5++;
142096
143222
  if (")" !== t5[e5]) throw new Error("Unterminated content model");
142097
143223
  } else if (!this.suppressValidationErr) throw new Error(`Invalid Element Expression, found "${t5[e5]}"`);
142098
- return { elementName: i5, contentModel: n5.trim(), index: e5 };
143224
+ return { elementName: n5, contentModel: i5.trim(), index: e5 };
142099
143225
  }
142100
143226
  readAttlistExp(t5, e5) {
142101
- e5 = I3(t5, e5);
142102
- let i5 = "";
142103
- for (; e5 < t5.length && !/\s/.test(t5[e5]); ) i5 += t5[e5], e5++;
142104
- O(i5), e5 = I3(t5, e5);
143227
+ e5 = P2(t5, e5);
142105
143228
  let n5 = "";
142106
143229
  for (; e5 < t5.length && !/\s/.test(t5[e5]); ) n5 += t5[e5], e5++;
142107
- if (!O(n5)) throw new Error(`Invalid attribute name: "${n5}"`);
142108
- e5 = I3(t5, e5);
143230
+ S2(n5), e5 = P2(t5, e5);
143231
+ let i5 = "";
143232
+ for (; e5 < t5.length && !/\s/.test(t5[e5]); ) i5 += t5[e5], e5++;
143233
+ if (!S2(i5)) throw new Error(`Invalid attribute name: "${i5}"`);
143234
+ e5 = P2(t5, e5);
142109
143235
  let s5 = "";
142110
143236
  if ("NOTATION" === t5.substring(e5, e5 + 8).toUpperCase()) {
142111
- if (s5 = "NOTATION", "(" !== t5[e5 = I3(t5, e5 += 8)]) throw new Error(`Expected '(', found "${t5[e5]}"`);
143237
+ if (s5 = "NOTATION", "(" !== t5[e5 = P2(t5, e5 += 8)]) throw new Error(`Expected '(', found "${t5[e5]}"`);
142112
143238
  e5++;
142113
- let i6 = [];
143239
+ let n6 = [];
142114
143240
  for (; e5 < t5.length && ")" !== t5[e5]; ) {
142115
- let n6 = "";
142116
- for (; e5 < t5.length && "|" !== t5[e5] && ")" !== t5[e5]; ) n6 += t5[e5], e5++;
142117
- if (n6 = n6.trim(), !O(n6)) throw new Error(`Invalid notation name: "${n6}"`);
142118
- i6.push(n6), "|" === t5[e5] && (e5++, e5 = I3(t5, e5));
143241
+ let i6 = "";
143242
+ for (; e5 < t5.length && "|" !== t5[e5] && ")" !== t5[e5]; ) i6 += t5[e5], e5++;
143243
+ if (i6 = i6.trim(), !S2(i6)) throw new Error(`Invalid notation name: "${i6}"`);
143244
+ n6.push(i6), "|" === t5[e5] && (e5++, e5 = P2(t5, e5));
142119
143245
  }
142120
143246
  if (")" !== t5[e5]) throw new Error("Unterminated list of notations");
142121
- e5++, s5 += " (" + i6.join("|") + ")";
143247
+ e5++, s5 += " (" + n6.join("|") + ")";
142122
143248
  } else {
142123
143249
  for (; e5 < t5.length && !/\s/.test(t5[e5]); ) s5 += t5[e5], e5++;
142124
- const i6 = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
142125
- if (!this.suppressValidationErr && !i6.includes(s5.toUpperCase())) throw new Error(`Invalid attribute type: "${s5}"`);
143250
+ const n6 = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
143251
+ if (!this.suppressValidationErr && !n6.includes(s5.toUpperCase())) throw new Error(`Invalid attribute type: "${s5}"`);
142126
143252
  }
142127
- e5 = I3(t5, e5);
143253
+ e5 = P2(t5, e5);
142128
143254
  let r5 = "";
142129
- return "#REQUIRED" === t5.substring(e5, e5 + 8).toUpperCase() ? (r5 = "#REQUIRED", e5 += 8) : "#IMPLIED" === t5.substring(e5, e5 + 7).toUpperCase() ? (r5 = "#IMPLIED", e5 += 7) : [e5, r5] = this.readIdentifierVal(t5, e5, "ATTLIST"), { elementName: i5, attributeName: n5, attributeType: s5, defaultValue: r5, index: e5 };
143255
+ return "#REQUIRED" === t5.substring(e5, e5 + 8).toUpperCase() ? (r5 = "#REQUIRED", e5 += 8) : "#IMPLIED" === t5.substring(e5, e5 + 7).toUpperCase() ? (r5 = "#IMPLIED", e5 += 7) : [e5, r5] = this.readIdentifierVal(t5, e5, "ATTLIST"), { elementName: n5, attributeName: i5, attributeType: s5, defaultValue: r5, index: e5 };
142130
143256
  }
142131
143257
  }
142132
- const I3 = (t5, e5) => {
143258
+ const P2 = (t5, e5) => {
142133
143259
  for (; e5 < t5.length && /\s/.test(t5[e5]); ) e5++;
142134
143260
  return e5;
142135
143261
  };
142136
- function P2(t5, e5, i5) {
142137
- for (let n5 = 0; n5 < e5.length; n5++) if (e5[n5] !== t5[i5 + n5 + 1]) return false;
143262
+ function A2(t5, e5, n5) {
143263
+ for (let i5 = 0; i5 < e5.length; i5++) if (e5[i5] !== t5[n5 + i5 + 1]) return false;
142138
143264
  return true;
142139
143265
  }
142140
- function O(t5) {
143266
+ function S2(t5) {
142141
143267
  if (r4(t5)) return t5;
142142
143268
  throw new Error(`Invalid entity name ${t5}`);
142143
143269
  }
142144
- const A2 = /^[-+]?0x[a-fA-F0-9]+$/, S2 = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, C3 = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true };
142145
- const V = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
142146
- function $2(t5) {
143270
+ const C3 = /^[-+]?0x[a-fA-F0-9]+$/, $2 = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, V = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true };
143271
+ const D3 = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
143272
+ function L2(t5) {
142147
143273
  return "function" == typeof t5 ? t5 : Array.isArray(t5) ? (e5) => {
142148
- for (const i5 of t5) {
142149
- if ("string" == typeof i5 && e5 === i5) return true;
142150
- if (i5 instanceof RegExp && i5.test(e5)) return true;
143274
+ for (const n5 of t5) {
143275
+ if ("string" == typeof n5 && e5 === n5) return true;
143276
+ if (n5 instanceof RegExp && n5.test(e5)) return true;
142151
143277
  }
142152
143278
  } : () => false;
142153
143279
  }
142154
- class D3 {
143280
+ class F3 {
142155
143281
  constructor(t5) {
142156
- if (this.options = t5, 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: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t6, e5) => Z2(e5, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t6, e5) => Z2(e5, 16, "&#x") } }, this.addExternalEntities = j5, this.parseXml = L2, this.parseTextData = M2, this.resolveNameSpace = F3, this.buildAttributesMap = k5, this.isItStopNode = Y, this.replaceEntitiesValue = B3, this.readStopNodeData = W2, this.saveTextToParentTag = R, this.addChild = U2, this.ignoreAttributesFn = $2(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
143282
+ if (this.options = t5, 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: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t6, e5) => K2(e5, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t6, e5) => K2(e5, 16, "&#x") } }, this.addExternalEntities = j5, this.parseXml = B3, this.parseTextData = M2, this.resolveNameSpace = _2, this.buildAttributesMap = U2, this.isItStopNode = X2, this.replaceEntitiesValue = Y, this.readStopNodeData = q5, this.saveTextToParentTag = G3, this.addChild = R, this.ignoreAttributesFn = L2(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.options.stopNodes && this.options.stopNodes.length > 0) {
142157
143283
  this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
142158
143284
  for (let t6 = 0; t6 < this.options.stopNodes.length; t6++) {
142159
143285
  const e5 = this.options.stopNodes[t6];
@@ -142164,316 +143290,323 @@ var require_fxp = __commonJS({
142164
143290
  }
142165
143291
  function j5(t5) {
142166
143292
  const e5 = Object.keys(t5);
142167
- for (let i5 = 0; i5 < e5.length; i5++) {
142168
- const n5 = e5[i5];
142169
- this.lastEntities[n5] = { regex: new RegExp("&" + n5 + ";", "g"), val: t5[n5] };
143293
+ for (let n5 = 0; n5 < e5.length; n5++) {
143294
+ const i5 = e5[n5], s5 = i5.replace(/[.\-+*:]/g, "\\.");
143295
+ this.lastEntities[i5] = { regex: new RegExp("&" + s5 + ";", "g"), val: t5[i5] };
142170
143296
  }
142171
143297
  }
142172
- function M2(t5, e5, i5, n5, s5, r5, o5) {
142173
- if (void 0 !== t5 && (this.options.trimValues && !n5 && (t5 = t5.trim()), t5.length > 0)) {
142174
- o5 || (t5 = this.replaceEntitiesValue(t5));
142175
- const n6 = this.options.tagValueProcessor(e5, t5, i5, s5, r5);
142176
- return null == n6 ? t5 : typeof n6 != typeof t5 || n6 !== t5 ? n6 : this.options.trimValues || t5.trim() === t5 ? q5(t5, this.options.parseTagValue, this.options.numberParseOptions) : t5;
143298
+ function M2(t5, e5, n5, i5, s5, r5, o5) {
143299
+ if (void 0 !== t5 && (this.options.trimValues && !i5 && (t5 = t5.trim()), t5.length > 0)) {
143300
+ o5 || (t5 = this.replaceEntitiesValue(t5, e5, n5));
143301
+ const i6 = this.options.tagValueProcessor(e5, t5, n5, s5, r5);
143302
+ return null == i6 ? t5 : typeof i6 != typeof t5 || i6 !== t5 ? i6 : this.options.trimValues || t5.trim() === t5 ? Z2(t5, this.options.parseTagValue, this.options.numberParseOptions) : t5;
142177
143303
  }
142178
143304
  }
142179
- function F3(t5) {
143305
+ function _2(t5) {
142180
143306
  if (this.options.removeNSPrefix) {
142181
- const e5 = t5.split(":"), i5 = "/" === t5.charAt(0) ? "/" : "";
143307
+ const e5 = t5.split(":"), n5 = "/" === t5.charAt(0) ? "/" : "";
142182
143308
  if ("xmlns" === e5[0]) return "";
142183
- 2 === e5.length && (t5 = i5 + e5[1]);
143309
+ 2 === e5.length && (t5 = n5 + e5[1]);
142184
143310
  }
142185
143311
  return t5;
142186
143312
  }
142187
- const _2 = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
142188
- function k5(t5, e5) {
143313
+ const k5 = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
143314
+ function U2(t5, e5, n5) {
142189
143315
  if (true !== this.options.ignoreAttributes && "string" == typeof t5) {
142190
- const i5 = s4(t5, _2), n5 = i5.length, r5 = {};
142191
- for (let t6 = 0; t6 < n5; t6++) {
142192
- const n6 = this.resolveNameSpace(i5[t6][1]);
142193
- if (this.ignoreAttributesFn(n6, e5)) continue;
142194
- let s5 = i5[t6][4], o5 = this.options.attributeNamePrefix + n6;
142195
- if (n6.length) if (this.options.transformAttributeName && (o5 = this.options.transformAttributeName(o5)), "__proto__" === o5 && (o5 = "#__proto__"), void 0 !== s5) {
142196
- this.options.trimValues && (s5 = s5.trim()), s5 = this.replaceEntitiesValue(s5);
142197
- const t7 = this.options.attributeValueProcessor(n6, s5, e5);
142198
- r5[o5] = null == t7 ? s5 : typeof t7 != typeof s5 || t7 !== s5 ? t7 : q5(s5, this.options.parseAttributeValue, this.options.numberParseOptions);
142199
- } else this.options.allowBooleanAttributes && (r5[o5] = true);
142200
- }
142201
- if (!Object.keys(r5).length) return;
143316
+ const i5 = s4(t5, k5), r5 = i5.length, o5 = {};
143317
+ for (let t6 = 0; t6 < r5; t6++) {
143318
+ const s5 = this.resolveNameSpace(i5[t6][1]);
143319
+ if (this.ignoreAttributesFn(s5, e5)) continue;
143320
+ let r6 = i5[t6][4], a5 = this.options.attributeNamePrefix + s5;
143321
+ if (s5.length) if (this.options.transformAttributeName && (a5 = this.options.transformAttributeName(a5)), "__proto__" === a5 && (a5 = "#__proto__"), void 0 !== r6) {
143322
+ this.options.trimValues && (r6 = r6.trim()), r6 = this.replaceEntitiesValue(r6, n5, e5);
143323
+ const t7 = this.options.attributeValueProcessor(s5, r6, e5);
143324
+ o5[a5] = null == t7 ? r6 : typeof t7 != typeof r6 || t7 !== r6 ? t7 : Z2(r6, this.options.parseAttributeValue, this.options.numberParseOptions);
143325
+ } else this.options.allowBooleanAttributes && (o5[a5] = true);
143326
+ }
143327
+ if (!Object.keys(o5).length) return;
142202
143328
  if (this.options.attributesGroupName) {
142203
143329
  const t6 = {};
142204
- return t6[this.options.attributesGroupName] = r5, t6;
143330
+ return t6[this.options.attributesGroupName] = o5, t6;
142205
143331
  }
142206
- return r5;
143332
+ return o5;
142207
143333
  }
142208
143334
  }
142209
- const L2 = function(t5) {
143335
+ const B3 = function(t5) {
142210
143336
  t5 = t5.replace(/\r\n?/g, "\n");
142211
- const e5 = new y3("!xml");
142212
- let i5 = e5, n5 = "", s5 = "";
142213
- const r5 = new w5(this.options.processEntities);
143337
+ const e5 = new I3("!xml");
143338
+ let n5 = e5, i5 = "", s5 = "";
143339
+ this.entityExpansionCount = 0, this.currentExpandedLength = 0;
143340
+ const r5 = new O(this.options.processEntities);
142214
143341
  for (let o5 = 0; o5 < t5.length; o5++) if ("<" === t5[o5]) if ("/" === t5[o5 + 1]) {
142215
- const e6 = G3(t5, ">", o5, "Closing Tag is not closed.");
143342
+ const e6 = z3(t5, ">", o5, "Closing Tag is not closed.");
142216
143343
  let r6 = t5.substring(o5 + 2, e6).trim();
142217
143344
  if (this.options.removeNSPrefix) {
142218
143345
  const t6 = r6.indexOf(":");
142219
143346
  -1 !== t6 && (r6 = r6.substr(t6 + 1));
142220
143347
  }
142221
- this.options.transformTagName && (r6 = this.options.transformTagName(r6)), i5 && (n5 = this.saveTextToParentTag(n5, i5, s5));
143348
+ this.options.transformTagName && (r6 = this.options.transformTagName(r6)), n5 && (i5 = this.saveTextToParentTag(i5, n5, s5));
142222
143349
  const a5 = s5.substring(s5.lastIndexOf(".") + 1);
142223
143350
  if (r6 && -1 !== this.options.unpairedTags.indexOf(r6)) throw new Error(`Unpaired tag can not be used as closing tag: </${r6}>`);
142224
143351
  let l5 = 0;
142225
- a5 && -1 !== this.options.unpairedTags.indexOf(a5) ? (l5 = s5.lastIndexOf(".", s5.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : l5 = s5.lastIndexOf("."), s5 = s5.substring(0, l5), i5 = this.tagsNodeStack.pop(), n5 = "", o5 = e6;
143352
+ a5 && -1 !== this.options.unpairedTags.indexOf(a5) ? (l5 = s5.lastIndexOf(".", s5.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : l5 = s5.lastIndexOf("."), s5 = s5.substring(0, l5), n5 = this.tagsNodeStack.pop(), i5 = "", o5 = e6;
142226
143353
  } else if ("?" === t5[o5 + 1]) {
142227
- let e6 = X2(t5, o5, false, "?>");
143354
+ let e6 = W2(t5, o5, false, "?>");
142228
143355
  if (!e6) throw new Error("Pi Tag is not closed.");
142229
- if (n5 = this.saveTextToParentTag(n5, i5, s5), this.options.ignoreDeclaration && "?xml" === e6.tagName || this.options.ignorePiTags) ;
143356
+ if (i5 = this.saveTextToParentTag(i5, n5, s5), this.options.ignoreDeclaration && "?xml" === e6.tagName || this.options.ignorePiTags) ;
142230
143357
  else {
142231
- const t6 = new y3(e6.tagName);
142232
- t6.add(this.options.textNodeName, ""), e6.tagName !== e6.tagExp && e6.attrExpPresent && (t6[":@"] = this.buildAttributesMap(e6.tagExp, s5)), this.addChild(i5, t6, s5, o5);
143358
+ const t6 = new I3(e6.tagName);
143359
+ t6.add(this.options.textNodeName, ""), e6.tagName !== e6.tagExp && e6.attrExpPresent && (t6[":@"] = this.buildAttributesMap(e6.tagExp, s5, e6.tagName)), this.addChild(n5, t6, s5, o5);
142233
143360
  }
142234
143361
  o5 = e6.closeIndex + 1;
142235
143362
  } else if ("!--" === t5.substr(o5 + 1, 3)) {
142236
- const e6 = G3(t5, "-->", o5 + 4, "Comment is not closed.");
143363
+ const e6 = z3(t5, "-->", o5 + 4, "Comment is not closed.");
142237
143364
  if (this.options.commentPropName) {
142238
143365
  const r6 = t5.substring(o5 + 4, e6 - 2);
142239
- n5 = this.saveTextToParentTag(n5, i5, s5), i5.add(this.options.commentPropName, [{ [this.options.textNodeName]: r6 }]);
143366
+ i5 = this.saveTextToParentTag(i5, n5, s5), n5.add(this.options.commentPropName, [{ [this.options.textNodeName]: r6 }]);
142240
143367
  }
142241
143368
  o5 = e6;
142242
143369
  } else if ("!D" === t5.substr(o5 + 1, 2)) {
142243
143370
  const e6 = r5.readDocType(t5, o5);
142244
143371
  this.docTypeEntities = e6.entities, o5 = e6.i;
142245
143372
  } else if ("![" === t5.substr(o5 + 1, 2)) {
142246
- const e6 = G3(t5, "]]>", o5, "CDATA is not closed.") - 2, r6 = t5.substring(o5 + 9, e6);
142247
- n5 = this.saveTextToParentTag(n5, i5, s5);
142248
- let a5 = this.parseTextData(r6, i5.tagname, s5, true, false, true, true);
142249
- null == a5 && (a5 = ""), this.options.cdataPropName ? i5.add(this.options.cdataPropName, [{ [this.options.textNodeName]: r6 }]) : i5.add(this.options.textNodeName, a5), o5 = e6 + 2;
143373
+ const e6 = z3(t5, "]]>", o5, "CDATA is not closed.") - 2, r6 = t5.substring(o5 + 9, e6);
143374
+ i5 = this.saveTextToParentTag(i5, n5, s5);
143375
+ let a5 = this.parseTextData(r6, n5.tagname, s5, true, false, true, true);
143376
+ null == a5 && (a5 = ""), this.options.cdataPropName ? n5.add(this.options.cdataPropName, [{ [this.options.textNodeName]: r6 }]) : n5.add(this.options.textNodeName, a5), o5 = e6 + 2;
142250
143377
  } else {
142251
- let r6 = X2(t5, o5, this.options.removeNSPrefix), a5 = r6.tagName;
143378
+ let r6 = W2(t5, o5, this.options.removeNSPrefix), a5 = r6.tagName;
142252
143379
  const l5 = r6.rawTagName;
142253
143380
  let u7 = r6.tagExp, h5 = r6.attrExpPresent, d6 = r6.closeIndex;
142254
143381
  if (this.options.transformTagName) {
142255
143382
  const t6 = this.options.transformTagName(a5);
142256
143383
  u7 === a5 && (u7 = t6), a5 = t6;
142257
143384
  }
142258
- i5 && n5 && "!xml" !== i5.tagname && (n5 = this.saveTextToParentTag(n5, i5, s5, false));
142259
- const p5 = i5;
142260
- p5 && -1 !== this.options.unpairedTags.indexOf(p5.tagname) && (i5 = this.tagsNodeStack.pop(), s5 = s5.substring(0, s5.lastIndexOf("."))), a5 !== e5.tagname && (s5 += s5 ? "." + a5 : a5);
143385
+ n5 && i5 && "!xml" !== n5.tagname && (i5 = this.saveTextToParentTag(i5, n5, s5, false));
143386
+ const p5 = n5;
143387
+ p5 && -1 !== this.options.unpairedTags.indexOf(p5.tagname) && (n5 = this.tagsNodeStack.pop(), s5 = s5.substring(0, s5.lastIndexOf("."))), a5 !== e5.tagname && (s5 += s5 ? "." + a5 : a5);
142261
143388
  const f5 = o5;
142262
143389
  if (this.isItStopNode(this.stopNodesExact, this.stopNodesWildcard, s5, a5)) {
142263
143390
  let e6 = "";
142264
143391
  if (u7.length > 0 && u7.lastIndexOf("/") === u7.length - 1) "/" === a5[a5.length - 1] ? (a5 = a5.substr(0, a5.length - 1), s5 = s5.substr(0, s5.length - 1), u7 = a5) : u7 = u7.substr(0, u7.length - 1), o5 = r6.closeIndex;
142265
143392
  else if (-1 !== this.options.unpairedTags.indexOf(a5)) o5 = r6.closeIndex;
142266
143393
  else {
142267
- const i6 = this.readStopNodeData(t5, l5, d6 + 1);
142268
- if (!i6) throw new Error(`Unexpected end of ${l5}`);
142269
- o5 = i6.i, e6 = i6.tagContent;
143394
+ const n6 = this.readStopNodeData(t5, l5, d6 + 1);
143395
+ if (!n6) throw new Error(`Unexpected end of ${l5}`);
143396
+ o5 = n6.i, e6 = n6.tagContent;
142270
143397
  }
142271
- const n6 = new y3(a5);
142272
- a5 !== u7 && h5 && (n6[":@"] = this.buildAttributesMap(u7, s5)), e6 && (e6 = this.parseTextData(e6, a5, s5, true, h5, true, true)), s5 = s5.substr(0, s5.lastIndexOf(".")), n6.add(this.options.textNodeName, e6), this.addChild(i5, n6, s5, f5);
143398
+ const i6 = new I3(a5);
143399
+ a5 !== u7 && h5 && (i6[":@"] = this.buildAttributesMap(u7, s5, a5)), e6 && (e6 = this.parseTextData(e6, a5, s5, true, h5, true, true)), s5 = s5.substr(0, s5.lastIndexOf(".")), i6.add(this.options.textNodeName, e6), this.addChild(n5, i6, s5, f5);
142273
143400
  } else {
142274
143401
  if (u7.length > 0 && u7.lastIndexOf("/") === u7.length - 1) {
142275
143402
  if ("/" === a5[a5.length - 1] ? (a5 = a5.substr(0, a5.length - 1), s5 = s5.substr(0, s5.length - 1), u7 = a5) : u7 = u7.substr(0, u7.length - 1), this.options.transformTagName) {
142276
143403
  const t7 = this.options.transformTagName(a5);
142277
143404
  u7 === a5 && (u7 = t7), a5 = t7;
142278
143405
  }
142279
- const t6 = new y3(a5);
142280
- a5 !== u7 && h5 && (t6[":@"] = this.buildAttributesMap(u7, s5)), this.addChild(i5, t6, s5, f5), s5 = s5.substr(0, s5.lastIndexOf("."));
143406
+ const t6 = new I3(a5);
143407
+ a5 !== u7 && h5 && (t6[":@"] = this.buildAttributesMap(u7, s5, a5)), this.addChild(n5, t6, s5, f5), s5 = s5.substr(0, s5.lastIndexOf("."));
142281
143408
  } else {
142282
- const t6 = new y3(a5);
142283
- this.tagsNodeStack.push(i5), a5 !== u7 && h5 && (t6[":@"] = this.buildAttributesMap(u7, s5)), this.addChild(i5, t6, s5, f5), i5 = t6;
143409
+ const t6 = new I3(a5);
143410
+ this.tagsNodeStack.push(n5), a5 !== u7 && h5 && (t6[":@"] = this.buildAttributesMap(u7, s5, a5)), this.addChild(n5, t6, s5, f5), n5 = t6;
142284
143411
  }
142285
- n5 = "", o5 = d6;
143412
+ i5 = "", o5 = d6;
142286
143413
  }
142287
143414
  }
142288
- else n5 += t5[o5];
143415
+ else i5 += t5[o5];
142289
143416
  return e5.child;
142290
143417
  };
142291
- function U2(t5, e5, i5, n5) {
142292
- this.options.captureMetaData || (n5 = void 0);
142293
- const s5 = this.options.updateTag(e5.tagname, i5, e5[":@"]);
142294
- false === s5 || ("string" == typeof s5 ? (e5.tagname = s5, t5.addChild(e5, n5)) : t5.addChild(e5, n5));
142295
- }
142296
- const B3 = function(t5) {
142297
- if (this.options.processEntities) {
142298
- for (let e5 in this.docTypeEntities) {
142299
- const i5 = this.docTypeEntities[e5];
142300
- t5 = t5.replace(i5.regx, i5.val);
142301
- }
142302
- for (let e5 in this.lastEntities) {
142303
- const i5 = this.lastEntities[e5];
142304
- t5 = t5.replace(i5.regex, i5.val);
142305
- }
142306
- if (this.options.htmlEntities) for (let e5 in this.htmlEntities) {
142307
- const i5 = this.htmlEntities[e5];
142308
- t5 = t5.replace(i5.regex, i5.val);
142309
- }
142310
- t5 = t5.replace(this.ampEntity.regex, this.ampEntity.val);
142311
- }
142312
- return t5;
142313
- };
142314
- function R(t5, e5, i5, n5) {
142315
- return t5 && (void 0 === n5 && (n5 = 0 === e5.child.length), void 0 !== (t5 = this.parseTextData(t5, e5.tagname, i5, false, !!e5[":@"] && 0 !== Object.keys(e5[":@"]).length, n5)) && "" !== t5 && e5.add(this.options.textNodeName, t5), t5 = ""), t5;
142316
- }
142317
- function Y(t5, e5, i5, n5) {
142318
- return !(!e5 || !e5.has(n5)) || !(!t5 || !t5.has(i5));
142319
- }
142320
- function G3(t5, e5, i5, n5) {
142321
- const s5 = t5.indexOf(e5, i5);
142322
- if (-1 === s5) throw new Error(n5);
143418
+ function R(t5, e5, n5, i5) {
143419
+ this.options.captureMetaData || (i5 = void 0);
143420
+ const s5 = this.options.updateTag(e5.tagname, n5, e5[":@"]);
143421
+ false === s5 || ("string" == typeof s5 ? (e5.tagname = s5, t5.addChild(e5, i5)) : t5.addChild(e5, i5));
143422
+ }
143423
+ const Y = function(t5, e5, n5) {
143424
+ if (-1 === t5.indexOf("&")) return t5;
143425
+ const i5 = this.options.processEntities;
143426
+ if (!i5.enabled) return t5;
143427
+ if (i5.allowedTags && !i5.allowedTags.includes(e5)) return t5;
143428
+ if (i5.tagFilter && !i5.tagFilter(e5, n5)) return t5;
143429
+ for (let e6 in this.docTypeEntities) {
143430
+ const n6 = this.docTypeEntities[e6], s5 = t5.match(n6.regx);
143431
+ if (s5) {
143432
+ if (this.entityExpansionCount += s5.length, i5.maxTotalExpansions && this.entityExpansionCount > i5.maxTotalExpansions) throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${i5.maxTotalExpansions}`);
143433
+ const e7 = t5.length;
143434
+ if (t5 = t5.replace(n6.regx, n6.val), i5.maxExpandedLength && (this.currentExpandedLength += t5.length - e7, this.currentExpandedLength > i5.maxExpandedLength)) throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${i5.maxExpandedLength}`);
143435
+ }
143436
+ }
143437
+ if (-1 === t5.indexOf("&")) return t5;
143438
+ for (let e6 in this.lastEntities) {
143439
+ const n6 = this.lastEntities[e6];
143440
+ t5 = t5.replace(n6.regex, n6.val);
143441
+ }
143442
+ if (-1 === t5.indexOf("&")) return t5;
143443
+ if (this.options.htmlEntities) for (let e6 in this.htmlEntities) {
143444
+ const n6 = this.htmlEntities[e6];
143445
+ t5 = t5.replace(n6.regex, n6.val);
143446
+ }
143447
+ return t5.replace(this.ampEntity.regex, this.ampEntity.val);
143448
+ };
143449
+ function G3(t5, e5, n5, i5) {
143450
+ return t5 && (void 0 === i5 && (i5 = 0 === e5.child.length), void 0 !== (t5 = this.parseTextData(t5, e5.tagname, n5, false, !!e5[":@"] && 0 !== Object.keys(e5[":@"]).length, i5)) && "" !== t5 && e5.add(this.options.textNodeName, t5), t5 = ""), t5;
143451
+ }
143452
+ function X2(t5, e5, n5, i5) {
143453
+ return !(!e5 || !e5.has(i5)) || !(!t5 || !t5.has(n5));
143454
+ }
143455
+ function z3(t5, e5, n5, i5) {
143456
+ const s5 = t5.indexOf(e5, n5);
143457
+ if (-1 === s5) throw new Error(i5);
142323
143458
  return s5 + e5.length - 1;
142324
143459
  }
142325
- function X2(t5, e5, i5, n5 = ">") {
142326
- const s5 = (function(t6, e6, i6 = ">") {
142327
- let n6, s6 = "";
143460
+ function W2(t5, e5, n5, i5 = ">") {
143461
+ const s5 = (function(t6, e6, n6 = ">") {
143462
+ let i6, s6 = "";
142328
143463
  for (let r6 = e6; r6 < t6.length; r6++) {
142329
143464
  let e7 = t6[r6];
142330
- if (n6) e7 === n6 && (n6 = "");
142331
- else if ('"' === e7 || "'" === e7) n6 = e7;
142332
- else if (e7 === i6[0]) {
142333
- if (!i6[1]) return { data: s6, index: r6 };
142334
- if (t6[r6 + 1] === i6[1]) return { data: s6, index: r6 };
143465
+ if (i6) e7 === i6 && (i6 = "");
143466
+ else if ('"' === e7 || "'" === e7) i6 = e7;
143467
+ else if (e7 === n6[0]) {
143468
+ if (!n6[1]) return { data: s6, index: r6 };
143469
+ if (t6[r6 + 1] === n6[1]) return { data: s6, index: r6 };
142335
143470
  } else " " === e7 && (e7 = " ");
142336
143471
  s6 += e7;
142337
143472
  }
142338
- })(t5, e5 + 1, n5);
143473
+ })(t5, e5 + 1, i5);
142339
143474
  if (!s5) return;
142340
143475
  let r5 = s5.data;
142341
143476
  const o5 = s5.index, a5 = r5.search(/\s/);
142342
143477
  let l5 = r5, u7 = true;
142343
143478
  -1 !== a5 && (l5 = r5.substring(0, a5), r5 = r5.substring(a5 + 1).trimStart());
142344
143479
  const h5 = l5;
142345
- if (i5) {
143480
+ if (n5) {
142346
143481
  const t6 = l5.indexOf(":");
142347
143482
  -1 !== t6 && (l5 = l5.substr(t6 + 1), u7 = l5 !== s5.data.substr(t6 + 1));
142348
143483
  }
142349
143484
  return { tagName: l5, tagExp: r5, closeIndex: o5, attrExpPresent: u7, rawTagName: h5 };
142350
143485
  }
142351
- function W2(t5, e5, i5) {
142352
- const n5 = i5;
143486
+ function q5(t5, e5, n5) {
143487
+ const i5 = n5;
142353
143488
  let s5 = 1;
142354
- for (; i5 < t5.length; i5++) if ("<" === t5[i5]) if ("/" === t5[i5 + 1]) {
142355
- const r5 = G3(t5, ">", i5, `${e5} is not closed`);
142356
- if (t5.substring(i5 + 2, r5).trim() === e5 && (s5--, 0 === s5)) return { tagContent: t5.substring(n5, i5), i: r5 };
142357
- i5 = r5;
142358
- } else if ("?" === t5[i5 + 1]) i5 = G3(t5, "?>", i5 + 1, "StopNode is not closed.");
142359
- else if ("!--" === t5.substr(i5 + 1, 3)) i5 = G3(t5, "-->", i5 + 3, "StopNode is not closed.");
142360
- else if ("![" === t5.substr(i5 + 1, 2)) i5 = G3(t5, "]]>", i5, "StopNode is not closed.") - 2;
143489
+ for (; n5 < t5.length; n5++) if ("<" === t5[n5]) if ("/" === t5[n5 + 1]) {
143490
+ const r5 = z3(t5, ">", n5, `${e5} is not closed`);
143491
+ if (t5.substring(n5 + 2, r5).trim() === e5 && (s5--, 0 === s5)) return { tagContent: t5.substring(i5, n5), i: r5 };
143492
+ n5 = r5;
143493
+ } else if ("?" === t5[n5 + 1]) n5 = z3(t5, "?>", n5 + 1, "StopNode is not closed.");
143494
+ else if ("!--" === t5.substr(n5 + 1, 3)) n5 = z3(t5, "-->", n5 + 3, "StopNode is not closed.");
143495
+ else if ("![" === t5.substr(n5 + 1, 2)) n5 = z3(t5, "]]>", n5, "StopNode is not closed.") - 2;
142361
143496
  else {
142362
- const n6 = X2(t5, i5, ">");
142363
- n6 && ((n6 && n6.tagName) === e5 && "/" !== n6.tagExp[n6.tagExp.length - 1] && s5++, i5 = n6.closeIndex);
143497
+ const i6 = W2(t5, n5, ">");
143498
+ i6 && ((i6 && i6.tagName) === e5 && "/" !== i6.tagExp[i6.tagExp.length - 1] && s5++, n5 = i6.closeIndex);
142364
143499
  }
142365
143500
  }
142366
- function q5(t5, e5, i5) {
143501
+ function Z2(t5, e5, n5) {
142367
143502
  if (e5 && "string" == typeof t5) {
142368
143503
  const e6 = t5.trim();
142369
143504
  return "true" === e6 || "false" !== e6 && (function(t6, e7 = {}) {
142370
- if (e7 = Object.assign({}, C3, e7), !t6 || "string" != typeof t6) return t6;
142371
- let i6 = t6.trim();
142372
- if (void 0 !== e7.skipLike && e7.skipLike.test(i6)) return t6;
143505
+ if (e7 = Object.assign({}, V, e7), !t6 || "string" != typeof t6) return t6;
143506
+ let n6 = t6.trim();
143507
+ if (void 0 !== e7.skipLike && e7.skipLike.test(n6)) return t6;
142373
143508
  if ("0" === t6) return 0;
142374
- if (e7.hex && A2.test(i6)) return (function(t7) {
143509
+ if (e7.hex && C3.test(n6)) return (function(t7) {
142375
143510
  if (parseInt) return parseInt(t7, 16);
142376
143511
  if (Number.parseInt) return Number.parseInt(t7, 16);
142377
143512
  if (window && window.parseInt) return window.parseInt(t7, 16);
142378
143513
  throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
142379
- })(i6);
142380
- if (-1 !== i6.search(/.+[eE].+/)) return (function(t7, e8, i7) {
142381
- if (!i7.eNotation) return t7;
142382
- const n6 = e8.match(V);
142383
- if (n6) {
142384
- let s5 = n6[1] || "";
142385
- const r5 = -1 === n6[3].indexOf("e") ? "E" : "e", o5 = n6[2], a5 = s5 ? t7[o5.length + 1] === r5 : t7[o5.length] === r5;
142386
- return o5.length > 1 && a5 ? t7 : 1 !== o5.length || !n6[3].startsWith(`.${r5}`) && n6[3][0] !== r5 ? i7.leadingZeros && !a5 ? (e8 = (n6[1] || "") + n6[3], Number(e8)) : t7 : Number(e8);
143514
+ })(n6);
143515
+ if (-1 !== n6.search(/.+[eE].+/)) return (function(t7, e8, n7) {
143516
+ if (!n7.eNotation) return t7;
143517
+ const i6 = e8.match(D3);
143518
+ if (i6) {
143519
+ let s5 = i6[1] || "";
143520
+ const r5 = -1 === i6[3].indexOf("e") ? "E" : "e", o5 = i6[2], a5 = s5 ? t7[o5.length + 1] === r5 : t7[o5.length] === r5;
143521
+ return o5.length > 1 && a5 ? t7 : 1 !== o5.length || !i6[3].startsWith(`.${r5}`) && i6[3][0] !== r5 ? n7.leadingZeros && !a5 ? (e8 = (i6[1] || "") + i6[3], Number(e8)) : t7 : Number(e8);
142387
143522
  }
142388
143523
  return t7;
142389
- })(t6, i6, e7);
143524
+ })(t6, n6, e7);
142390
143525
  {
142391
- const s5 = S2.exec(i6);
143526
+ const s5 = $2.exec(n6);
142392
143527
  if (s5) {
142393
143528
  const r5 = s5[1] || "", o5 = s5[2];
142394
- let a5 = (n5 = s5[3]) && -1 !== n5.indexOf(".") ? ("." === (n5 = n5.replace(/0+$/, "")) ? n5 = "0" : "." === n5[0] ? n5 = "0" + n5 : "." === n5[n5.length - 1] && (n5 = n5.substring(0, n5.length - 1)), n5) : n5;
143529
+ let a5 = (i5 = s5[3]) && -1 !== i5.indexOf(".") ? ("." === (i5 = i5.replace(/0+$/, "")) ? i5 = "0" : "." === i5[0] ? i5 = "0" + i5 : "." === i5[i5.length - 1] && (i5 = i5.substring(0, i5.length - 1)), i5) : i5;
142395
143530
  const l5 = r5 ? "." === t6[o5.length + 1] : "." === t6[o5.length];
142396
143531
  if (!e7.leadingZeros && (o5.length > 1 || 1 === o5.length && !l5)) return t6;
142397
143532
  {
142398
- const n6 = Number(i6), s6 = String(n6);
142399
- if (0 === n6 || -0 === n6) return n6;
142400
- if (-1 !== s6.search(/[eE]/)) return e7.eNotation ? n6 : t6;
142401
- if (-1 !== i6.indexOf(".")) return "0" === s6 || s6 === a5 || s6 === `${r5}${a5}` ? n6 : t6;
142402
- let l6 = o5 ? a5 : i6;
142403
- return o5 ? l6 === s6 || r5 + l6 === s6 ? n6 : t6 : l6 === s6 || l6 === r5 + s6 ? n6 : t6;
143533
+ const i6 = Number(n6), s6 = String(i6);
143534
+ if (0 === i6 || -0 === i6) return i6;
143535
+ if (-1 !== s6.search(/[eE]/)) return e7.eNotation ? i6 : t6;
143536
+ if (-1 !== n6.indexOf(".")) return "0" === s6 || s6 === a5 || s6 === `${r5}${a5}` ? i6 : t6;
143537
+ let l6 = o5 ? a5 : n6;
143538
+ return o5 ? l6 === s6 || r5 + l6 === s6 ? i6 : t6 : l6 === s6 || l6 === r5 + s6 ? i6 : t6;
142404
143539
  }
142405
143540
  }
142406
143541
  return t6;
142407
143542
  }
142408
- var n5;
142409
- })(t5, i5);
143543
+ var i5;
143544
+ })(t5, n5);
142410
143545
  }
142411
143546
  return void 0 !== t5 ? t5 : "";
142412
143547
  }
142413
- function Z2(t5, e5, i5) {
142414
- const n5 = Number.parseInt(t5, e5);
142415
- return n5 >= 0 && n5 <= 1114111 ? String.fromCodePoint(n5) : i5 + t5 + ";";
143548
+ function K2(t5, e5, n5) {
143549
+ const i5 = Number.parseInt(t5, e5);
143550
+ return i5 >= 0 && i5 <= 1114111 ? String.fromCodePoint(i5) : n5 + t5 + ";";
142416
143551
  }
142417
- const K2 = y3.getMetaDataSymbol();
142418
- function Q2(t5, e5) {
142419
- return z3(t5, e5);
143552
+ const Q2 = I3.getMetaDataSymbol();
143553
+ function J3(t5, e5) {
143554
+ return H2(t5, e5);
142420
143555
  }
142421
- function z3(t5, e5, i5) {
142422
- let n5;
143556
+ function H2(t5, e5, n5) {
143557
+ let i5;
142423
143558
  const s5 = {};
142424
143559
  for (let r5 = 0; r5 < t5.length; r5++) {
142425
- const o5 = t5[r5], a5 = J3(o5);
143560
+ const o5 = t5[r5], a5 = tt(o5);
142426
143561
  let l5 = "";
142427
- if (l5 = void 0 === i5 ? a5 : i5 + "." + a5, a5 === e5.textNodeName) void 0 === n5 ? n5 = o5[a5] : n5 += "" + o5[a5];
143562
+ if (l5 = void 0 === n5 ? a5 : n5 + "." + a5, a5 === e5.textNodeName) void 0 === i5 ? i5 = o5[a5] : i5 += "" + o5[a5];
142428
143563
  else {
142429
143564
  if (void 0 === a5) continue;
142430
143565
  if (o5[a5]) {
142431
- let t6 = z3(o5[a5], e5, l5);
142432
- const i6 = tt(t6, e5);
142433
- void 0 !== o5[K2] && (t6[K2] = o5[K2]), o5[":@"] ? H2(t6, o5[":@"], l5, e5) : 1 !== Object.keys(t6).length || void 0 === t6[e5.textNodeName] || e5.alwaysCreateTextNode ? 0 === Object.keys(t6).length && (e5.alwaysCreateTextNode ? t6[e5.textNodeName] = "" : t6 = "") : t6 = t6[e5.textNodeName], void 0 !== s5[a5] && s5.hasOwnProperty(a5) ? (Array.isArray(s5[a5]) || (s5[a5] = [s5[a5]]), s5[a5].push(t6)) : e5.isArray(a5, l5, i6) ? s5[a5] = [t6] : s5[a5] = t6;
143566
+ let t6 = H2(o5[a5], e5, l5);
143567
+ const n6 = nt(t6, e5);
143568
+ void 0 !== o5[Q2] && (t6[Q2] = o5[Q2]), o5[":@"] ? et(t6, o5[":@"], l5, e5) : 1 !== Object.keys(t6).length || void 0 === t6[e5.textNodeName] || e5.alwaysCreateTextNode ? 0 === Object.keys(t6).length && (e5.alwaysCreateTextNode ? t6[e5.textNodeName] = "" : t6 = "") : t6 = t6[e5.textNodeName], void 0 !== s5[a5] && s5.hasOwnProperty(a5) ? (Array.isArray(s5[a5]) || (s5[a5] = [s5[a5]]), s5[a5].push(t6)) : e5.isArray(a5, l5, n6) ? s5[a5] = [t6] : s5[a5] = t6;
142434
143569
  }
142435
143570
  }
142436
143571
  }
142437
- return "string" == typeof n5 ? n5.length > 0 && (s5[e5.textNodeName] = n5) : void 0 !== n5 && (s5[e5.textNodeName] = n5), s5;
143572
+ return "string" == typeof i5 ? i5.length > 0 && (s5[e5.textNodeName] = i5) : void 0 !== i5 && (s5[e5.textNodeName] = i5), s5;
142438
143573
  }
142439
- function J3(t5) {
143574
+ function tt(t5) {
142440
143575
  const e5 = Object.keys(t5);
142441
143576
  for (let t6 = 0; t6 < e5.length; t6++) {
142442
- const i5 = e5[t6];
142443
- if (":@" !== i5) return i5;
143577
+ const n5 = e5[t6];
143578
+ if (":@" !== n5) return n5;
142444
143579
  }
142445
143580
  }
142446
- function H2(t5, e5, i5, n5) {
143581
+ function et(t5, e5, n5, i5) {
142447
143582
  if (e5) {
142448
143583
  const s5 = Object.keys(e5), r5 = s5.length;
142449
143584
  for (let o5 = 0; o5 < r5; o5++) {
142450
143585
  const r6 = s5[o5];
142451
- n5.isArray(r6, i5 + "." + r6, true, true) ? t5[r6] = [e5[r6]] : t5[r6] = e5[r6];
143586
+ i5.isArray(r6, n5 + "." + r6, true, true) ? t5[r6] = [e5[r6]] : t5[r6] = e5[r6];
142452
143587
  }
142453
143588
  }
142454
143589
  }
142455
- function tt(t5, e5) {
142456
- const { textNodeName: i5 } = e5, n5 = Object.keys(t5).length;
142457
- return 0 === n5 || !(1 !== n5 || !t5[i5] && "boolean" != typeof t5[i5] && 0 !== t5[i5]);
143590
+ function nt(t5, e5) {
143591
+ const { textNodeName: n5 } = e5, i5 = Object.keys(t5).length;
143592
+ return 0 === i5 || !(1 !== i5 || !t5[n5] && "boolean" != typeof t5[n5] && 0 !== t5[n5]);
142458
143593
  }
142459
- class et {
143594
+ class it {
142460
143595
  constructor(t5) {
142461
- this.externalEntities = {}, this.options = (function(t6) {
142462
- return Object.assign({}, v8, t6);
142463
- })(t5);
143596
+ this.externalEntities = {}, this.options = w5(t5);
142464
143597
  }
142465
143598
  parse(t5, e5) {
142466
143599
  if ("string" != typeof t5 && t5.toString) t5 = t5.toString();
142467
143600
  else if ("string" != typeof t5) throw new Error("XML data is accepted in String or Bytes[] form.");
142468
143601
  if (e5) {
142469
143602
  true === e5 && (e5 = {});
142470
- const i6 = a4(t5, e5);
142471
- if (true !== i6) throw Error(`${i6.err.msg}:${i6.err.line}:${i6.err.col}`);
143603
+ const n6 = a4(t5, e5);
143604
+ if (true !== n6) throw Error(`${n6.err.msg}:${n6.err.line}:${n6.err.col}`);
142472
143605
  }
142473
- const i5 = new D3(this.options);
142474
- i5.addExternalEntities(this.externalEntities);
142475
- const n5 = i5.parseXml(t5);
142476
- return this.options.preserveOrder || void 0 === n5 ? n5 : Q2(n5, this.options);
143606
+ const n5 = new F3(this.options);
143607
+ n5.addExternalEntities(this.externalEntities);
143608
+ const i5 = n5.parseXml(t5);
143609
+ return this.options.preserveOrder || void 0 === i5 ? i5 : J3(i5, this.options);
142477
143610
  }
142478
143611
  addEntity(t5, e5) {
142479
143612
  if (-1 !== e5.indexOf("&")) throw new Error("Entity value can't have '&'");
@@ -142482,159 +143615,159 @@ var require_fxp = __commonJS({
142482
143615
  this.externalEntities[t5] = e5;
142483
143616
  }
142484
143617
  static getMetaDataSymbol() {
142485
- return y3.getMetaDataSymbol();
143618
+ return I3.getMetaDataSymbol();
142486
143619
  }
142487
143620
  }
142488
- function it(t5, e5) {
142489
- let i5 = "";
142490
- return e5.format && e5.indentBy.length > 0 && (i5 = "\n"), nt(t5, e5, "", i5);
143621
+ function st(t5, e5) {
143622
+ let n5 = "";
143623
+ return e5.format && e5.indentBy.length > 0 && (n5 = "\n"), rt(t5, e5, "", n5);
142491
143624
  }
142492
- function nt(t5, e5, i5, n5) {
143625
+ function rt(t5, e5, n5, i5) {
142493
143626
  let s5 = "", r5 = false;
142494
143627
  for (let o5 = 0; o5 < t5.length; o5++) {
142495
- const a5 = t5[o5], l5 = st(a5);
143628
+ const a5 = t5[o5], l5 = ot(a5);
142496
143629
  if (void 0 === l5) continue;
142497
143630
  let u7 = "";
142498
- if (u7 = 0 === i5.length ? l5 : `${i5}.${l5}`, l5 === e5.textNodeName) {
143631
+ if (u7 = 0 === n5.length ? l5 : `${n5}.${l5}`, l5 === e5.textNodeName) {
142499
143632
  let t6 = a5[l5];
142500
- ot(u7, e5) || (t6 = e5.tagValueProcessor(l5, t6), t6 = at(t6, e5)), r5 && (s5 += n5), s5 += t6, r5 = false;
143633
+ lt(u7, e5) || (t6 = e5.tagValueProcessor(l5, t6), t6 = ut(t6, e5)), r5 && (s5 += i5), s5 += t6, r5 = false;
142501
143634
  continue;
142502
143635
  }
142503
143636
  if (l5 === e5.cdataPropName) {
142504
- r5 && (s5 += n5), s5 += `<![CDATA[${a5[l5][0][e5.textNodeName]}]]>`, r5 = false;
143637
+ r5 && (s5 += i5), s5 += `<![CDATA[${a5[l5][0][e5.textNodeName]}]]>`, r5 = false;
142505
143638
  continue;
142506
143639
  }
142507
143640
  if (l5 === e5.commentPropName) {
142508
- s5 += n5 + `<!--${a5[l5][0][e5.textNodeName]}-->`, r5 = true;
143641
+ s5 += i5 + `<!--${a5[l5][0][e5.textNodeName]}-->`, r5 = true;
142509
143642
  continue;
142510
143643
  }
142511
143644
  if ("?" === l5[0]) {
142512
- const t6 = rt(a5[":@"], e5), i6 = "?xml" === l5 ? "" : n5;
143645
+ const t6 = at(a5[":@"], e5), n6 = "?xml" === l5 ? "" : i5;
142513
143646
  let o6 = a5[l5][0][e5.textNodeName];
142514
- o6 = 0 !== o6.length ? " " + o6 : "", s5 += i6 + `<${l5}${o6}${t6}?>`, r5 = true;
143647
+ o6 = 0 !== o6.length ? " " + o6 : "", s5 += n6 + `<${l5}${o6}${t6}?>`, r5 = true;
142515
143648
  continue;
142516
143649
  }
142517
- let h5 = n5;
143650
+ let h5 = i5;
142518
143651
  "" !== h5 && (h5 += e5.indentBy);
142519
- const d6 = n5 + `<${l5}${rt(a5[":@"], e5)}`, p5 = nt(a5[l5], e5, u7, h5);
142520
- -1 !== e5.unpairedTags.indexOf(l5) ? e5.suppressUnpairedNode ? s5 += d6 + ">" : s5 += d6 + "/>" : p5 && 0 !== p5.length || !e5.suppressEmptyNode ? p5 && p5.endsWith(">") ? s5 += d6 + `>${p5}${n5}</${l5}>` : (s5 += d6 + ">", p5 && "" !== n5 && (p5.includes("/>") || p5.includes("</")) ? s5 += n5 + e5.indentBy + p5 + n5 : s5 += p5, s5 += `</${l5}>`) : s5 += d6 + "/>", r5 = true;
143652
+ const d6 = i5 + `<${l5}${at(a5[":@"], e5)}`, p5 = rt(a5[l5], e5, u7, h5);
143653
+ -1 !== e5.unpairedTags.indexOf(l5) ? e5.suppressUnpairedNode ? s5 += d6 + ">" : s5 += d6 + "/>" : p5 && 0 !== p5.length || !e5.suppressEmptyNode ? p5 && p5.endsWith(">") ? s5 += d6 + `>${p5}${i5}</${l5}>` : (s5 += d6 + ">", p5 && "" !== i5 && (p5.includes("/>") || p5.includes("</")) ? s5 += i5 + e5.indentBy + p5 + i5 : s5 += p5, s5 += `</${l5}>`) : s5 += d6 + "/>", r5 = true;
142521
143654
  }
142522
143655
  return s5;
142523
143656
  }
142524
- function st(t5) {
143657
+ function ot(t5) {
142525
143658
  const e5 = Object.keys(t5);
142526
- for (let i5 = 0; i5 < e5.length; i5++) {
142527
- const n5 = e5[i5];
142528
- if (t5.hasOwnProperty(n5) && ":@" !== n5) return n5;
143659
+ for (let n5 = 0; n5 < e5.length; n5++) {
143660
+ const i5 = e5[n5];
143661
+ if (t5.hasOwnProperty(i5) && ":@" !== i5) return i5;
142529
143662
  }
142530
143663
  }
142531
- function rt(t5, e5) {
142532
- let i5 = "";
142533
- if (t5 && !e5.ignoreAttributes) for (let n5 in t5) {
142534
- if (!t5.hasOwnProperty(n5)) continue;
142535
- let s5 = e5.attributeValueProcessor(n5, t5[n5]);
142536
- s5 = at(s5, e5), true === s5 && e5.suppressBooleanAttributes ? i5 += ` ${n5.substr(e5.attributeNamePrefix.length)}` : i5 += ` ${n5.substr(e5.attributeNamePrefix.length)}="${s5}"`;
143664
+ function at(t5, e5) {
143665
+ let n5 = "";
143666
+ if (t5 && !e5.ignoreAttributes) for (let i5 in t5) {
143667
+ if (!t5.hasOwnProperty(i5)) continue;
143668
+ let s5 = e5.attributeValueProcessor(i5, t5[i5]);
143669
+ s5 = ut(s5, e5), true === s5 && e5.suppressBooleanAttributes ? n5 += ` ${i5.substr(e5.attributeNamePrefix.length)}` : n5 += ` ${i5.substr(e5.attributeNamePrefix.length)}="${s5}"`;
142537
143670
  }
142538
- return i5;
143671
+ return n5;
142539
143672
  }
142540
- function ot(t5, e5) {
142541
- let i5 = (t5 = t5.substr(0, t5.length - e5.textNodeName.length - 1)).substr(t5.lastIndexOf(".") + 1);
142542
- for (let n5 in e5.stopNodes) if (e5.stopNodes[n5] === t5 || e5.stopNodes[n5] === "*." + i5) return true;
143673
+ function lt(t5, e5) {
143674
+ let n5 = (t5 = t5.substr(0, t5.length - e5.textNodeName.length - 1)).substr(t5.lastIndexOf(".") + 1);
143675
+ for (let i5 in e5.stopNodes) if (e5.stopNodes[i5] === t5 || e5.stopNodes[i5] === "*." + n5) return true;
142543
143676
  return false;
142544
143677
  }
142545
- function at(t5, e5) {
142546
- if (t5 && t5.length > 0 && e5.processEntities) for (let i5 = 0; i5 < e5.entities.length; i5++) {
142547
- const n5 = e5.entities[i5];
142548
- t5 = t5.replace(n5.regex, n5.val);
143678
+ function ut(t5, e5) {
143679
+ if (t5 && t5.length > 0 && e5.processEntities) for (let n5 = 0; n5 < e5.entities.length; n5++) {
143680
+ const i5 = e5.entities[n5];
143681
+ t5 = t5.replace(i5.regex, i5.val);
142549
143682
  }
142550
143683
  return t5;
142551
143684
  }
142552
- const lt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t5, e5) {
143685
+ const ht = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t5, e5) {
142553
143686
  return e5;
142554
143687
  }, attributeValueProcessor: function(t5, e5) {
142555
143688
  return e5;
142556
143689
  }, 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 };
142557
- function ut(t5) {
142558
- this.options = Object.assign({}, lt, t5), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
143690
+ function dt(t5) {
143691
+ this.options = Object.assign({}, ht, t5), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
142559
143692
  return false;
142560
- } : (this.ignoreAttributesFn = $2(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = pt), this.processTextOrObjNode = ht, this.options.format ? (this.indentate = dt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
143693
+ } : (this.ignoreAttributesFn = L2(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = ct), this.processTextOrObjNode = pt, this.options.format ? (this.indentate = ft, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
142561
143694
  return "";
142562
143695
  }, this.tagEndChar = ">", this.newLine = "");
142563
143696
  }
142564
- function ht(t5, e5, i5, n5) {
142565
- const s5 = this.j2x(t5, i5 + 1, n5.concat(e5));
142566
- return void 0 !== t5[this.options.textNodeName] && 1 === Object.keys(t5).length ? this.buildTextValNode(t5[this.options.textNodeName], e5, s5.attrStr, i5) : this.buildObjectNode(s5.val, e5, s5.attrStr, i5);
143697
+ function pt(t5, e5, n5, i5) {
143698
+ const s5 = this.j2x(t5, n5 + 1, i5.concat(e5));
143699
+ return void 0 !== t5[this.options.textNodeName] && 1 === Object.keys(t5).length ? this.buildTextValNode(t5[this.options.textNodeName], e5, s5.attrStr, n5) : this.buildObjectNode(s5.val, e5, s5.attrStr, n5);
142567
143700
  }
142568
- function dt(t5) {
143701
+ function ft(t5) {
142569
143702
  return this.options.indentBy.repeat(t5);
142570
143703
  }
142571
- function pt(t5) {
143704
+ function ct(t5) {
142572
143705
  return !(!t5.startsWith(this.options.attributeNamePrefix) || t5 === this.options.textNodeName) && t5.substr(this.attrPrefixLen);
142573
143706
  }
142574
- ut.prototype.build = function(t5) {
142575
- return this.options.preserveOrder ? it(t5, this.options) : (Array.isArray(t5) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t5 = { [this.options.arrayNodeName]: t5 }), this.j2x(t5, 0, []).val);
142576
- }, ut.prototype.j2x = function(t5, e5, i5) {
142577
- let n5 = "", s5 = "";
142578
- const r5 = i5.join(".");
143707
+ dt.prototype.build = function(t5) {
143708
+ return this.options.preserveOrder ? st(t5, this.options) : (Array.isArray(t5) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t5 = { [this.options.arrayNodeName]: t5 }), this.j2x(t5, 0, []).val);
143709
+ }, dt.prototype.j2x = function(t5, e5, n5) {
143710
+ let i5 = "", s5 = "";
143711
+ const r5 = n5.join(".");
142579
143712
  for (let o5 in t5) if (Object.prototype.hasOwnProperty.call(t5, o5)) if (void 0 === t5[o5]) this.isAttribute(o5) && (s5 += "");
142580
143713
  else if (null === t5[o5]) this.isAttribute(o5) || o5 === this.options.cdataPropName ? s5 += "" : "?" === o5[0] ? s5 += this.indentate(e5) + "<" + o5 + "?" + this.tagEndChar : s5 += this.indentate(e5) + "<" + o5 + "/" + this.tagEndChar;
142581
143714
  else if (t5[o5] instanceof Date) s5 += this.buildTextValNode(t5[o5], o5, "", e5);
142582
143715
  else if ("object" != typeof t5[o5]) {
142583
- const i6 = this.isAttribute(o5);
142584
- if (i6 && !this.ignoreAttributesFn(i6, r5)) n5 += this.buildAttrPairStr(i6, "" + t5[o5]);
142585
- else if (!i6) if (o5 === this.options.textNodeName) {
143716
+ const n6 = this.isAttribute(o5);
143717
+ if (n6 && !this.ignoreAttributesFn(n6, r5)) i5 += this.buildAttrPairStr(n6, "" + t5[o5]);
143718
+ else if (!n6) if (o5 === this.options.textNodeName) {
142586
143719
  let e6 = this.options.tagValueProcessor(o5, "" + t5[o5]);
142587
143720
  s5 += this.replaceEntitiesValue(e6);
142588
143721
  } else s5 += this.buildTextValNode(t5[o5], o5, "", e5);
142589
143722
  } else if (Array.isArray(t5[o5])) {
142590
- const n6 = t5[o5].length;
143723
+ const i6 = t5[o5].length;
142591
143724
  let r6 = "", a5 = "";
142592
- for (let l5 = 0; l5 < n6; l5++) {
142593
- const n7 = t5[o5][l5];
142594
- if (void 0 === n7) ;
142595
- else if (null === n7) "?" === o5[0] ? s5 += this.indentate(e5) + "<" + o5 + "?" + this.tagEndChar : s5 += this.indentate(e5) + "<" + o5 + "/" + this.tagEndChar;
142596
- else if ("object" == typeof n7) if (this.options.oneListGroup) {
142597
- const t6 = this.j2x(n7, e5 + 1, i5.concat(o5));
142598
- r6 += t6.val, this.options.attributesGroupName && n7.hasOwnProperty(this.options.attributesGroupName) && (a5 += t6.attrStr);
142599
- } else r6 += this.processTextOrObjNode(n7, o5, e5, i5);
143725
+ for (let l5 = 0; l5 < i6; l5++) {
143726
+ const i7 = t5[o5][l5];
143727
+ if (void 0 === i7) ;
143728
+ else if (null === i7) "?" === o5[0] ? s5 += this.indentate(e5) + "<" + o5 + "?" + this.tagEndChar : s5 += this.indentate(e5) + "<" + o5 + "/" + this.tagEndChar;
143729
+ else if ("object" == typeof i7) if (this.options.oneListGroup) {
143730
+ const t6 = this.j2x(i7, e5 + 1, n5.concat(o5));
143731
+ r6 += t6.val, this.options.attributesGroupName && i7.hasOwnProperty(this.options.attributesGroupName) && (a5 += t6.attrStr);
143732
+ } else r6 += this.processTextOrObjNode(i7, o5, e5, n5);
142600
143733
  else if (this.options.oneListGroup) {
142601
- let t6 = this.options.tagValueProcessor(o5, n7);
143734
+ let t6 = this.options.tagValueProcessor(o5, i7);
142602
143735
  t6 = this.replaceEntitiesValue(t6), r6 += t6;
142603
- } else r6 += this.buildTextValNode(n7, o5, "", e5);
143736
+ } else r6 += this.buildTextValNode(i7, o5, "", e5);
142604
143737
  }
142605
143738
  this.options.oneListGroup && (r6 = this.buildObjectNode(r6, o5, a5, e5)), s5 += r6;
142606
143739
  } else if (this.options.attributesGroupName && o5 === this.options.attributesGroupName) {
142607
- const e6 = Object.keys(t5[o5]), i6 = e6.length;
142608
- for (let s6 = 0; s6 < i6; s6++) n5 += this.buildAttrPairStr(e6[s6], "" + t5[o5][e6[s6]]);
142609
- } else s5 += this.processTextOrObjNode(t5[o5], o5, e5, i5);
142610
- return { attrStr: n5, val: s5 };
142611
- }, ut.prototype.buildAttrPairStr = function(t5, e5) {
143740
+ const e6 = Object.keys(t5[o5]), n6 = e6.length;
143741
+ for (let s6 = 0; s6 < n6; s6++) i5 += this.buildAttrPairStr(e6[s6], "" + t5[o5][e6[s6]]);
143742
+ } else s5 += this.processTextOrObjNode(t5[o5], o5, e5, n5);
143743
+ return { attrStr: i5, val: s5 };
143744
+ }, dt.prototype.buildAttrPairStr = function(t5, e5) {
142612
143745
  return e5 = this.options.attributeValueProcessor(t5, "" + e5), e5 = this.replaceEntitiesValue(e5), this.options.suppressBooleanAttributes && "true" === e5 ? " " + t5 : " " + t5 + '="' + e5 + '"';
142613
- }, ut.prototype.buildObjectNode = function(t5, e5, i5, n5) {
142614
- if ("" === t5) return "?" === e5[0] ? this.indentate(n5) + "<" + e5 + i5 + "?" + this.tagEndChar : this.indentate(n5) + "<" + e5 + i5 + this.closeTag(e5) + this.tagEndChar;
143746
+ }, dt.prototype.buildObjectNode = function(t5, e5, n5, i5) {
143747
+ if ("" === t5) return "?" === e5[0] ? this.indentate(i5) + "<" + e5 + n5 + "?" + this.tagEndChar : this.indentate(i5) + "<" + e5 + n5 + this.closeTag(e5) + this.tagEndChar;
142615
143748
  {
142616
143749
  let s5 = "</" + e5 + this.tagEndChar, r5 = "";
142617
- return "?" === e5[0] && (r5 = "?", s5 = ""), !i5 && "" !== i5 || -1 !== t5.indexOf("<") ? false !== this.options.commentPropName && e5 === this.options.commentPropName && 0 === r5.length ? this.indentate(n5) + `<!--${t5}-->` + this.newLine : this.indentate(n5) + "<" + e5 + i5 + r5 + this.tagEndChar + t5 + this.indentate(n5) + s5 : this.indentate(n5) + "<" + e5 + i5 + r5 + ">" + t5 + s5;
143750
+ return "?" === e5[0] && (r5 = "?", s5 = ""), !n5 && "" !== n5 || -1 !== t5.indexOf("<") ? false !== this.options.commentPropName && e5 === this.options.commentPropName && 0 === r5.length ? this.indentate(i5) + `<!--${t5}-->` + this.newLine : this.indentate(i5) + "<" + e5 + n5 + r5 + this.tagEndChar + t5 + this.indentate(i5) + s5 : this.indentate(i5) + "<" + e5 + n5 + r5 + ">" + t5 + s5;
142618
143751
  }
142619
- }, ut.prototype.closeTag = function(t5) {
143752
+ }, dt.prototype.closeTag = function(t5) {
142620
143753
  let e5 = "";
142621
143754
  return -1 !== this.options.unpairedTags.indexOf(t5) ? this.options.suppressUnpairedNode || (e5 = "/") : e5 = this.options.suppressEmptyNode ? "/" : `></${t5}`, e5;
142622
- }, ut.prototype.buildTextValNode = function(t5, e5, i5, n5) {
142623
- if (false !== this.options.cdataPropName && e5 === this.options.cdataPropName) return this.indentate(n5) + `<![CDATA[${t5}]]>` + this.newLine;
142624
- if (false !== this.options.commentPropName && e5 === this.options.commentPropName) return this.indentate(n5) + `<!--${t5}-->` + this.newLine;
142625
- if ("?" === e5[0]) return this.indentate(n5) + "<" + e5 + i5 + "?" + this.tagEndChar;
143755
+ }, dt.prototype.buildTextValNode = function(t5, e5, n5, i5) {
143756
+ if (false !== this.options.cdataPropName && e5 === this.options.cdataPropName) return this.indentate(i5) + `<![CDATA[${t5}]]>` + this.newLine;
143757
+ if (false !== this.options.commentPropName && e5 === this.options.commentPropName) return this.indentate(i5) + `<!--${t5}-->` + this.newLine;
143758
+ if ("?" === e5[0]) return this.indentate(i5) + "<" + e5 + n5 + "?" + this.tagEndChar;
142626
143759
  {
142627
143760
  let s5 = this.options.tagValueProcessor(e5, t5);
142628
- return s5 = this.replaceEntitiesValue(s5), "" === s5 ? this.indentate(n5) + "<" + e5 + i5 + this.closeTag(e5) + this.tagEndChar : this.indentate(n5) + "<" + e5 + i5 + ">" + s5 + "</" + e5 + this.tagEndChar;
143761
+ return s5 = this.replaceEntitiesValue(s5), "" === s5 ? this.indentate(i5) + "<" + e5 + n5 + this.closeTag(e5) + this.tagEndChar : this.indentate(i5) + "<" + e5 + n5 + ">" + s5 + "</" + e5 + this.tagEndChar;
142629
143762
  }
142630
- }, ut.prototype.replaceEntitiesValue = function(t5) {
143763
+ }, dt.prototype.replaceEntitiesValue = function(t5) {
142631
143764
  if (t5 && t5.length > 0 && this.options.processEntities) for (let e5 = 0; e5 < this.options.entities.length; e5++) {
142632
- const i5 = this.options.entities[e5];
142633
- t5 = t5.replace(i5.regex, i5.val);
143765
+ const n5 = this.options.entities[e5];
143766
+ t5 = t5.replace(n5.regex, n5.val);
142634
143767
  }
142635
143768
  return t5;
142636
143769
  };
142637
- const ft = { validate: a4 };
143770
+ const gt = { validate: a4 };
142638
143771
  module2.exports = e4;
142639
143772
  })();
142640
143773
  }
@@ -162694,7 +163827,7 @@ var require_package6 = __commonJS({
162694
163827
  "package.json"(exports2, module2) {
162695
163828
  module2.exports = {
162696
163829
  name: "@sentry/craft",
162697
- version: "2.21.5",
163830
+ version: "2.21.7",
162698
163831
  description: "The universal sentry workflow CLI",
162699
163832
  main: "dist/craft",
162700
163833
  repository: "https://github.com/getsentry/craft",
@@ -162761,7 +163894,7 @@ var require_package6 = __commonJS({
162761
163894
  "source-map-support": "^0.5.20",
162762
163895
  split: "1.0.1",
162763
163896
  "string-length": "3.1.0",
162764
- tar: "7.5.7",
163897
+ tar: "7.5.8",
162765
163898
  tmp: "0.2.4",
162766
163899
  tslib: "^2.8.1",
162767
163900
  typescript: "^5.7.2",
@@ -162864,7 +163997,7 @@ function getPackage() {
162864
163997
  }
162865
163998
  function getPackageVersion() {
162866
163999
  const { version: version2 } = getPackage();
162867
- const buildInfo = "5cabbe7d6ae3730788393284d5071969d9309753";
164000
+ const buildInfo = "41defb379de52e5f0e3943944fa5575b22fb9f92";
162868
164001
  return buildInfo ? `${version2} (${buildInfo})` : version2;
162869
164002
  }
162870
164003
  function semVerToString(s4) {
@@ -171838,7 +172971,9 @@ async function prepareMain(argv) {
171838
172971
  setGitHubActionsOutput("sha", releaseSha);
171839
172972
  setGitHubActionsOutput("previous_tag", oldVersion || "");
171840
172973
  if (changelogBody) {
171841
- writeGitHubActionsFile("changelog", changelogBody);
172974
+ const isCalVer = argv.newVersion === "calver" || getVersioningPolicy() === "calver" /* CalVer */;
172975
+ const issueChangelog = isCalVer ? disableChangelogMentions(changelogBody) : changelogBody;
172976
+ writeGitHubActionsFile("changelog", issueChangelog);
171842
172977
  const resolvedChangelogPath = changelogPath || DEFAULT_CHANGELOG_PATH;
171843
172978
  const lineRange = await getChangelogLineRange(
171844
172979
  git,
@@ -171848,7 +172983,7 @@ async function prepareMain(argv) {
171848
172983
  const changelogFileUrl = `https://github.com/${githubConfig.owner}/${githubConfig.repo}/blob/${branchName}/${resolvedChangelogPath}` + lineRange;
171849
172984
  setGitHubActionsOutput(
171850
172985
  "changelog",
171851
- truncateForOutput(changelogBody, changelogFileUrl)
172986
+ truncateForOutput(issueChangelog, changelogFileUrl)
171852
172987
  );
171853
172988
  }
171854
172989
  logger.info(