@dpuse/dpuse-tool-file-previewer 0.0.62 → 0.0.63

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.
@@ -6435,7 +6435,7 @@ var Pe = /* @__PURE__ */ o(((e, t) => {
6435
6435
  DataDescriptor: 134695760,
6436
6436
  CentralFileHeader: 33639248,
6437
6437
  EndOfCentralDirectory: 101010256
6438
- }, E = {
6438
+ }, Le = {
6439
6439
  get(e) {
6440
6440
  return {
6441
6441
  signature: x.get(e, 0),
@@ -6444,7 +6444,7 @@ var Pe = /* @__PURE__ */ o(((e, t) => {
6444
6444
  };
6445
6445
  },
6446
6446
  len: 16
6447
- }, Le = {
6447
+ }, Re = {
6448
6448
  get(e) {
6449
6449
  let t = y.get(e, 6);
6450
6450
  return {
@@ -6460,7 +6460,7 @@ var Pe = /* @__PURE__ */ o(((e, t) => {
6460
6460
  };
6461
6461
  },
6462
6462
  len: 30
6463
- }, Re = {
6463
+ }, ze = {
6464
6464
  get(e) {
6465
6465
  return {
6466
6466
  signature: x.get(e, 0),
@@ -6474,7 +6474,7 @@ var Pe = /* @__PURE__ */ o(((e, t) => {
6474
6474
  };
6475
6475
  },
6476
6476
  len: 22
6477
- }, ze = {
6477
+ }, Be = {
6478
6478
  get(e) {
6479
6479
  let t = y.get(e, 8);
6480
6480
  return {
@@ -6495,13 +6495,13 @@ var Pe = /* @__PURE__ */ o(((e, t) => {
6495
6495
  };
6496
6496
  //#endregion
6497
6497
  //#region node_modules/@tokenizer/inflate/lib/ZipHandler.js
6498
- function D(e) {
6498
+ function Ve(e) {
6499
6499
  let t = new Uint8Array(x.len);
6500
6500
  return x.put(t, 0, e), t;
6501
6501
  }
6502
- var O = (0, Ie.default)("tokenizer:inflate"), k = 262144, Be = D(T.DataDescriptor), A = D(T.EndOfCentralDirectory), j = class e {
6502
+ var E = (0, Ie.default)("tokenizer:inflate"), D = 262144, He = Ve(T.DataDescriptor), O = Ve(T.EndOfCentralDirectory), k = class e {
6503
6503
  constructor(e) {
6504
- this.tokenizer = e, this.syncBuffer = new Uint8Array(k);
6504
+ this.tokenizer = e, this.syncBuffer = new Uint8Array(D);
6505
6505
  }
6506
6506
  async isZip() {
6507
6507
  return await this.peekSignature() === T.LocalFileHeader;
@@ -6512,24 +6512,24 @@ var O = (0, Ie.default)("tokenizer:inflate"), k = 262144, Be = D(T.DataDescripto
6512
6512
  async findEndOfCentralDirectoryLocator() {
6513
6513
  let e = this.tokenizer, t = Math.min(16384, e.fileInfo.size), n = this.syncBuffer.subarray(0, t);
6514
6514
  await this.tokenizer.readBuffer(n, { position: e.fileInfo.size - t });
6515
- for (let r = n.length - 4; r >= 0; r--) if (n[r] === A[0] && n[r + 1] === A[1] && n[r + 2] === A[2] && n[r + 3] === A[3]) return e.fileInfo.size - t + r;
6515
+ for (let r = n.length - 4; r >= 0; r--) if (n[r] === O[0] && n[r + 1] === O[1] && n[r + 2] === O[2] && n[r + 3] === O[3]) return e.fileInfo.size - t + r;
6516
6516
  return -1;
6517
6517
  }
6518
6518
  async readCentralDirectory() {
6519
6519
  if (!this.tokenizer.supportsRandomAccess()) {
6520
- O("Cannot reading central-directory without random-read support");
6520
+ E("Cannot reading central-directory without random-read support");
6521
6521
  return;
6522
6522
  }
6523
- O("Reading central-directory...");
6523
+ E("Reading central-directory...");
6524
6524
  let e = this.tokenizer.position, t = await this.findEndOfCentralDirectoryLocator();
6525
6525
  if (t > 0) {
6526
- O("Central-directory 32-bit signature found");
6527
- let n = await this.tokenizer.readToken(Re, t), r = [];
6526
+ E("Central-directory 32-bit signature found");
6527
+ let n = await this.tokenizer.readToken(ze, t), r = [];
6528
6528
  this.tokenizer.setPosition(n.offsetOfStartOfCd);
6529
6529
  for (let e = 0; e < n.nrOfEntriesOfSize; ++e) {
6530
- let t = await this.tokenizer.readToken(ze);
6530
+ let t = await this.tokenizer.readToken(Be);
6531
6531
  if (t.signature !== T.CentralFileHeader) throw Error("Expected Central-File-Header signature");
6532
- t.filename = await this.tokenizer.readToken(new S(t.filenameLength, "utf-8")), await this.tokenizer.ignore(t.extraFieldLength), await this.tokenizer.ignore(t.fileCommentLength), r.push(t), O(`Add central-directory file-entry: n=${e + 1}/${r.length}: filename=${r[e].filename}`);
6532
+ t.filename = await this.tokenizer.readToken(new S(t.filenameLength, "utf-8")), await this.tokenizer.ignore(t.extraFieldLength), await this.tokenizer.ignore(t.fileCommentLength), r.push(t), E(`Add central-directory file-entry: n=${e + 1}/${r.length}: filename=${r[e].filename}`);
6533
6533
  }
6534
6534
  return this.tokenizer.setPosition(e), r;
6535
6535
  }
@@ -6546,20 +6546,20 @@ var O = (0, Ie.default)("tokenizer:inflate"), k = 262144, Be = D(T.DataDescripto
6546
6546
  n = !!r.stop;
6547
6547
  let i;
6548
6548
  if (await this.tokenizer.ignore(t.extraFieldLength), t.dataDescriptor && t.compressedSize === 0) {
6549
- let e = [], n = k;
6550
- O("Compressed-file-size unknown, scanning for next data-descriptor-signature....");
6549
+ let e = [], n = D;
6550
+ E("Compressed-file-size unknown, scanning for next data-descriptor-signature....");
6551
6551
  let i = -1;
6552
- for (; i < 0 && n === k;) {
6553
- n = await this.tokenizer.peekBuffer(this.syncBuffer, { mayBeLess: !0 }), i = Ve(this.syncBuffer.subarray(0, n), Be);
6552
+ for (; i < 0 && n === D;) {
6553
+ n = await this.tokenizer.peekBuffer(this.syncBuffer, { mayBeLess: !0 }), i = Ue(this.syncBuffer.subarray(0, n), He);
6554
6554
  let t = i >= 0 ? i : n;
6555
6555
  if (r.handler) {
6556
6556
  let n = new Uint8Array(t);
6557
6557
  await this.tokenizer.readBuffer(n), e.push(n);
6558
6558
  } else await this.tokenizer.ignore(t);
6559
6559
  }
6560
- O(`Found data-descriptor-signature at pos=${this.tokenizer.position}`), r.handler && await this.inflate(t, He(e), r.handler);
6561
- } else r.handler ? (O(`Reading compressed-file-data: ${t.compressedSize} bytes`), i = new Uint8Array(t.compressedSize), await this.tokenizer.readBuffer(i), await this.inflate(t, i, r.handler)) : (O(`Ignoring compressed-file-data: ${t.compressedSize} bytes`), await this.tokenizer.ignore(t.compressedSize));
6562
- if (O(`Reading data-descriptor at pos=${this.tokenizer.position}`), t.dataDescriptor && (await this.tokenizer.readToken(E)).signature !== 134695760) throw Error(`Expected data-descriptor-signature at position ${this.tokenizer.position - E.len}`);
6560
+ E(`Found data-descriptor-signature at pos=${this.tokenizer.position}`), r.handler && await this.inflate(t, We(e), r.handler);
6561
+ } else r.handler ? (E(`Reading compressed-file-data: ${t.compressedSize} bytes`), i = new Uint8Array(t.compressedSize), await this.tokenizer.readBuffer(i), await this.inflate(t, i, r.handler)) : (E(`Ignoring compressed-file-data: ${t.compressedSize} bytes`), await this.tokenizer.ignore(t.compressedSize));
6562
+ if (E(`Reading data-descriptor at pos=${this.tokenizer.position}`), t.dataDescriptor && (await this.tokenizer.readToken(Le)).signature !== 134695760) throw Error(`Expected data-descriptor-signature at position ${this.tokenizer.position - Le.len}`);
6563
6563
  } while (!n);
6564
6564
  }
6565
6565
  async iterateOverCentralDirectory(e, t) {
@@ -6580,7 +6580,7 @@ var O = (0, Ie.default)("tokenizer:inflate"), k = 262144, Be = D(T.DataDescripto
6580
6580
  async inflate(t, n, r) {
6581
6581
  if (t.compressedMethod === 0) return r(n);
6582
6582
  if (t.compressedMethod !== 8) throw Error(`Unsupported ZIP compression method: ${t.compressedMethod}`);
6583
- return O(`Decompress filename=${t.filename}, compressed-size=${n.length}`), r(await e.decompressDeflateRaw(n));
6583
+ return E(`Decompress filename=${t.filename}, compressed-size=${n.length}`), r(await e.decompressDeflateRaw(n));
6584
6584
  }
6585
6585
  static async decompressDeflateRaw(e) {
6586
6586
  let t = new ReadableStream({ start(t) {
@@ -6597,14 +6597,14 @@ var O = (0, Ie.default)("tokenizer:inflate"), k = 262144, Be = D(T.DataDescripto
6597
6597
  async readLocalFileHeader() {
6598
6598
  let e = await this.tokenizer.peekToken(x);
6599
6599
  if (e === T.LocalFileHeader) {
6600
- let e = await this.tokenizer.readToken(Le);
6600
+ let e = await this.tokenizer.readToken(Re);
6601
6601
  return e.filename = await this.tokenizer.readToken(new S(e.filenameLength, "utf-8")), e;
6602
6602
  }
6603
6603
  if (e === T.CentralFileHeader) return !1;
6604
6604
  throw Error(e === 3759263696 ? "Encrypted ZIP" : "Unexpected signature");
6605
6605
  }
6606
6606
  };
6607
- function Ve(e, t) {
6607
+ function Ue(e, t) {
6608
6608
  let n = e.length, r = t.length;
6609
6609
  if (r > n) return -1;
6610
6610
  for (let i = 0; i <= n - r; i++) {
@@ -6617,14 +6617,14 @@ function Ve(e, t) {
6617
6617
  }
6618
6618
  return -1;
6619
6619
  }
6620
- function He(e) {
6620
+ function We(e) {
6621
6621
  let t = e.reduce((e, t) => e + t.length, 0), n = new Uint8Array(t), r = 0;
6622
6622
  for (let t of e) n.set(t, r), r += t.length;
6623
6623
  return n;
6624
6624
  }
6625
6625
  //#endregion
6626
6626
  //#region node_modules/@tokenizer/inflate/lib/GzipHandler.js
6627
- var Ue = class {
6627
+ var Ge = class {
6628
6628
  constructor(e) {
6629
6629
  this.tokenizer = e;
6630
6630
  }
@@ -6639,25 +6639,25 @@ var Ue = class {
6639
6639
  t.enqueue(n.subarray(0, r));
6640
6640
  } }).pipeThrough(new DecompressionStream("gzip"));
6641
6641
  }
6642
- }, We = Object.prototype.toString, Ge = "[object Uint8Array]";
6643
- function Ke(e, t, n) {
6644
- return e ? e.constructor === t || We.call(e) === n : !1;
6642
+ }, Ke = Object.prototype.toString, qe = "[object Uint8Array]";
6643
+ function Je(e, t, n) {
6644
+ return e ? e.constructor === t || Ke.call(e) === n : !1;
6645
6645
  }
6646
- function qe(e) {
6647
- return Ke(e, Uint8Array, Ge);
6646
+ function Ye(e) {
6647
+ return Je(e, Uint8Array, qe);
6648
6648
  }
6649
- function Je(e) {
6650
- if (!qe(e)) throw TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``);
6649
+ function Xe(e) {
6650
+ if (!Ye(e)) throw TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``);
6651
6651
  }
6652
- function Ye(e, t) {
6652
+ function Ze(e, t) {
6653
6653
  if (e.length === 0) return /* @__PURE__ */ new Uint8Array();
6654
6654
  t ??= e.reduce((e, t) => e + t.length, 0);
6655
6655
  let n = new Uint8Array(t), r = 0;
6656
- for (let t of e) Je(t), n.set(t, r), r += t.length;
6656
+ for (let t of e) Xe(t), n.set(t, r), r += t.length;
6657
6657
  return n;
6658
6658
  }
6659
6659
  new globalThis.TextDecoder("utf8"), new globalThis.TextEncoder(), Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
6660
- function M(e) {
6660
+ function Qe(e) {
6661
6661
  let { byteLength: t } = e;
6662
6662
  if (t === 6) return e.getUint16(0) * 2 ** 32 + e.getUint32(2);
6663
6663
  if (t === 5) return e.getUint8(0) * 2 ** 32 + e.getUint32(1);
@@ -6668,7 +6668,7 @@ function M(e) {
6668
6668
  }
6669
6669
  //#endregion
6670
6670
  //#region node_modules/file-type/source/tokens.js
6671
- function N(e, t) {
6671
+ function $e(e, t) {
6672
6672
  if (t === "utf-16le") {
6673
6673
  let t = [];
6674
6674
  for (let n = 0; n < e.length; n++) {
@@ -6687,7 +6687,7 @@ function N(e, t) {
6687
6687
  }
6688
6688
  return [...e].map((e) => e.charCodeAt(0));
6689
6689
  }
6690
- function Xe(e, t = 0) {
6690
+ function et(e, t = 0) {
6691
6691
  let n = Number.parseInt(new S(6).get(e, 148).replace(/\0.*$/v, "").trim(), 8);
6692
6692
  if (Number.isNaN(n)) return !1;
6693
6693
  let r = 256;
@@ -6695,26 +6695,26 @@ function Xe(e, t = 0) {
6695
6695
  for (let n = t + 156; n < t + 512; n++) r += e[n];
6696
6696
  return n === r;
6697
6697
  }
6698
- var Ze = {
6698
+ var tt = {
6699
6699
  get: (e, t) => e[t + 3] & 127 | (e[t + 2] & 127) << 7 | (e[t + 1] & 127) << 14 | (e[t] & 127) << 21,
6700
6700
  len: 4
6701
- }, Qe = /* @__PURE__ */ "jpg,png,apng,gif,webp,flif,xcf,cr2,cr3,orf,arw,dng,nef,rw2,raf,tif,bmp,icns,jxr,psd,indd,zip,tar,rar,gz,bz2,7z,dmg,mp4,mid,mkv,webm,mov,avi,mpg,mp2,mp3,m4a,oga,ogg,ogv,opus,flac,wav,spx,amr,pdf,epub,elf,macho,exe,swf,rtf,wasm,woff,woff2,eot,ttf,otf,ttc,ico,flv,ps,xz,sqlite,nes,crx,xpi,cab,deb,ar,rpm,Z,lz,cfb,mxf,mts,blend,bpg,docx,pptx,xlsx,3gp,3g2,j2c,jp2,jpm,jpx,mj2,aif,qcp,odt,ods,odp,xml,mobi,heic,cur,ktx,ape,wv,dcm,ics,glb,pcap,dsf,lnk,alias,voc,ac3,m4v,m4p,m4b,f4v,f4p,f4b,f4a,mie,asf,ogm,ogx,mpc,arrow,shp,aac,mp1,it,s3m,xm,skp,avif,eps,lzh,pgp,asar,stl,chm,3mf,zst,jxl,vcf,jls,pst,dwg,parquet,class,arj,cpio,ace,avro,icc,fbx,vsdx,vtt,apk,drc,lz4,potx,xltx,dotx,xltm,ott,ots,otp,odg,otg,xlsm,docm,dotm,potm,pptm,jar,jmp,rm,sav,ppsm,ppsx,tar.gz,reg,dat,key,numbers,pages,iso".split(","), $e = /* @__PURE__ */ "image/jpeg,image/png,image/gif,image/webp,image/flif,image/x-xcf,image/x-canon-cr2,image/x-canon-cr3,image/tiff,image/bmp,image/vnd.ms-photo,image/vnd.adobe.photoshop,application/x-indesign,application/epub+zip,application/x-xpinstall,application/vnd.ms-powerpoint.slideshow.macroenabled.12,application/vnd.oasis.opendocument.text,application/vnd.oasis.opendocument.spreadsheet,application/vnd.oasis.opendocument.presentation,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.slideshow,application/zip,application/x-tar,application/x-rar-compressed,application/gzip,application/x-bzip2,application/x-7z-compressed,application/x-apple-diskimage,application/vnd.apache.arrow.file,video/mp4,audio/midi,video/matroska,video/webm,video/quicktime,video/vnd.avi,audio/wav,audio/qcelp,audio/x-ms-asf,video/x-ms-asf,application/vnd.ms-asf,video/mpeg,video/3gpp,audio/mpeg,audio/mp4,video/ogg,audio/ogg,audio/ogg; codecs=opus,application/ogg,audio/flac,audio/ape,audio/wavpack,audio/amr,application/pdf,application/x-elf,application/x-mach-binary,application/x-msdownload,application/x-shockwave-flash,application/rtf,application/wasm,font/woff,font/woff2,application/vnd.ms-fontobject,font/ttf,font/otf,font/collection,image/x-icon,video/x-flv,application/postscript,application/eps,application/x-xz,application/x-sqlite3,application/x-nintendo-nes-rom,application/x-google-chrome-extension,application/vnd.ms-cab-compressed,application/x-deb,application/x-unix-archive,application/x-rpm,application/x-compress,application/lzip,application/x-cfb,application/x-mie,application/mxf,video/mp2t,application/x-blender,image/bpg,image/j2c,image/jp2,image/jpx,image/jpm,image/mj2,audio/aiff,application/xml,application/x-mobipocket-ebook,image/heif,image/heif-sequence,image/heic,image/heic-sequence,image/icns,image/ktx,application/dicom,audio/x-musepack,text/calendar,text/vcard,text/vtt,model/gltf-binary,application/vnd.tcpdump.pcap,audio/x-dsf,application/x-ms-shortcut,application/x-ft-apple.alias,audio/x-voc,audio/vnd.dolby.dd-raw,audio/x-m4a,image/apng,image/x-olympus-orf,image/x-sony-arw,image/x-adobe-dng,image/x-nikon-nef,image/x-panasonic-rw2,image/x-fujifilm-raf,video/x-m4v,video/3gpp2,application/x-esri-shape,audio/aac,audio/x-it,audio/x-s3m,audio/x-xm,video/MP1S,video/MP2P,application/vnd.sketchup.skp,image/avif,application/x-lzh-compressed,application/pgp-encrypted,application/x-asar,model/stl,application/vnd.ms-htmlhelp,model/3mf,image/jxl,application/zstd,image/jls,application/vnd.ms-outlook,image/vnd.dwg,application/vnd.apache.parquet,application/java-vm,application/x-arj,application/x-cpio,application/x-ace-compressed,application/avro,application/vnd.iccprofile,application/x-ft-fbx,application/vnd.visio,application/vnd.android.package-archive,application/x-ft-draco,application/x-lz4,application/vnd.openxmlformats-officedocument.presentationml.template,application/vnd.openxmlformats-officedocument.spreadsheetml.template,application/vnd.openxmlformats-officedocument.wordprocessingml.template,application/vnd.ms-excel.template.macroenabled.12,application/vnd.oasis.opendocument.text-template,application/vnd.oasis.opendocument.spreadsheet-template,application/vnd.oasis.opendocument.presentation-template,application/vnd.oasis.opendocument.graphics,application/vnd.oasis.opendocument.graphics-template,application/vnd.ms-excel.sheet.macroenabled.12,application/vnd.ms-word.document.macroenabled.12,application/vnd.ms-word.template.macroenabled.12,application/vnd.ms-powerpoint.template.macroenabled.12,application/vnd.ms-powerpoint.presentation.macroenabled.12,application/java-archive,application/vnd.rn-realmedia,application/x-spss-sav,application/x-ms-regedit,application/x-ft-windows-registry-hive,application/x-jmp-data,application/vnd.apple.keynote,application/vnd.apple.numbers,application/vnd.apple.pages,application/x-iso9660-image".split(","), P = 16777216, F = class extends Error {};
6702
- function I(e, t, n) {
6703
- if (!Number.isFinite(e) || e < 0 || e > t) throw new F(`${n} has invalid size ${e} (maximum ${t} bytes)`);
6701
+ }, nt = /* @__PURE__ */ "jpg,png,apng,gif,webp,flif,xcf,cr2,cr3,orf,arw,dng,nef,rw2,raf,tif,bmp,icns,jxr,psd,indd,zip,tar,rar,gz,bz2,7z,dmg,mp4,mid,mkv,webm,mov,avi,mpg,mp2,mp3,m4a,oga,ogg,ogv,opus,flac,wav,spx,amr,pdf,epub,elf,macho,exe,swf,rtf,wasm,woff,woff2,eot,ttf,otf,ttc,ico,flv,ps,xz,sqlite,nes,crx,xpi,cab,deb,ar,rpm,Z,lz,cfb,mxf,mts,blend,bpg,docx,pptx,xlsx,3gp,3g2,j2c,jp2,jpm,jpx,mj2,aif,qcp,odt,ods,odp,xml,mobi,heic,cur,ktx,ape,wv,dcm,ics,glb,pcap,dsf,lnk,alias,voc,ac3,m4v,m4p,m4b,f4v,f4p,f4b,f4a,mie,asf,ogm,ogx,mpc,arrow,shp,aac,mp1,it,s3m,xm,skp,avif,eps,lzh,pgp,asar,stl,chm,3mf,zst,jxl,vcf,jls,pst,dwg,parquet,class,arj,cpio,ace,avro,icc,fbx,vsdx,vtt,apk,drc,lz4,potx,xltx,dotx,xltm,ott,ots,otp,odg,otg,xlsm,docm,dotm,potm,pptm,jar,jmp,rm,sav,ppsm,ppsx,tar.gz,reg,dat,key,numbers,pages,iso".split(","), rt = /* @__PURE__ */ "image/jpeg,image/png,image/gif,image/webp,image/flif,image/x-xcf,image/x-canon-cr2,image/x-canon-cr3,image/tiff,image/bmp,image/vnd.ms-photo,image/vnd.adobe.photoshop,application/x-indesign,application/epub+zip,application/x-xpinstall,application/vnd.ms-powerpoint.slideshow.macroenabled.12,application/vnd.oasis.opendocument.text,application/vnd.oasis.opendocument.spreadsheet,application/vnd.oasis.opendocument.presentation,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.slideshow,application/zip,application/x-tar,application/x-rar-compressed,application/gzip,application/x-bzip2,application/x-7z-compressed,application/x-apple-diskimage,application/vnd.apache.arrow.file,video/mp4,audio/midi,video/matroska,video/webm,video/quicktime,video/vnd.avi,audio/wav,audio/qcelp,audio/x-ms-asf,video/x-ms-asf,application/vnd.ms-asf,video/mpeg,video/3gpp,audio/mpeg,audio/mp4,video/ogg,audio/ogg,audio/ogg; codecs=opus,application/ogg,audio/flac,audio/ape,audio/wavpack,audio/amr,application/pdf,application/x-elf,application/x-mach-binary,application/x-msdownload,application/x-shockwave-flash,application/rtf,application/wasm,font/woff,font/woff2,application/vnd.ms-fontobject,font/ttf,font/otf,font/collection,image/x-icon,video/x-flv,application/postscript,application/eps,application/x-xz,application/x-sqlite3,application/x-nintendo-nes-rom,application/x-google-chrome-extension,application/vnd.ms-cab-compressed,application/x-deb,application/x-unix-archive,application/x-rpm,application/x-compress,application/lzip,application/x-cfb,application/x-mie,application/mxf,video/mp2t,application/x-blender,image/bpg,image/j2c,image/jp2,image/jpx,image/jpm,image/mj2,audio/aiff,application/xml,application/x-mobipocket-ebook,image/heif,image/heif-sequence,image/heic,image/heic-sequence,image/icns,image/ktx,application/dicom,audio/x-musepack,text/calendar,text/vcard,text/vtt,model/gltf-binary,application/vnd.tcpdump.pcap,audio/x-dsf,application/x-ms-shortcut,application/x-ft-apple.alias,audio/x-voc,audio/vnd.dolby.dd-raw,audio/x-m4a,image/apng,image/x-olympus-orf,image/x-sony-arw,image/x-adobe-dng,image/x-nikon-nef,image/x-panasonic-rw2,image/x-fujifilm-raf,video/x-m4v,video/3gpp2,application/x-esri-shape,audio/aac,audio/x-it,audio/x-s3m,audio/x-xm,video/MP1S,video/MP2P,application/vnd.sketchup.skp,image/avif,application/x-lzh-compressed,application/pgp-encrypted,application/x-asar,model/stl,application/vnd.ms-htmlhelp,model/3mf,image/jxl,application/zstd,image/jls,application/vnd.ms-outlook,image/vnd.dwg,application/vnd.apache.parquet,application/java-vm,application/x-arj,application/x-cpio,application/x-ace-compressed,application/avro,application/vnd.iccprofile,application/x-ft-fbx,application/vnd.visio,application/vnd.android.package-archive,application/x-ft-draco,application/x-lz4,application/vnd.openxmlformats-officedocument.presentationml.template,application/vnd.openxmlformats-officedocument.spreadsheetml.template,application/vnd.openxmlformats-officedocument.wordprocessingml.template,application/vnd.ms-excel.template.macroenabled.12,application/vnd.oasis.opendocument.text-template,application/vnd.oasis.opendocument.spreadsheet-template,application/vnd.oasis.opendocument.presentation-template,application/vnd.oasis.opendocument.graphics,application/vnd.oasis.opendocument.graphics-template,application/vnd.ms-excel.sheet.macroenabled.12,application/vnd.ms-word.document.macroenabled.12,application/vnd.ms-word.template.macroenabled.12,application/vnd.ms-powerpoint.template.macroenabled.12,application/vnd.ms-powerpoint.presentation.macroenabled.12,application/java-archive,application/vnd.rn-realmedia,application/x-spss-sav,application/x-ms-regedit,application/x-ft-windows-registry-hive,application/x-jmp-data,application/vnd.apple.keynote,application/vnd.apple.numbers,application/vnd.apple.pages,application/x-iso9660-image".split(","), A = 16777216, j = class extends Error {};
6702
+ function M(e, t, n) {
6703
+ if (!Number.isFinite(e) || e < 0 || e > t) throw new j(`${n} has invalid size ${e} (maximum ${t} bytes)`);
6704
6704
  return e;
6705
6705
  }
6706
- async function L(e, t, { maximumLength: n = P, reason: r = "skip" } = {}) {
6707
- let i = I(t, n, r);
6706
+ async function N(e, t, { maximumLength: n = A, reason: r = "skip" } = {}) {
6707
+ let i = M(t, n, r);
6708
6708
  await e.ignore(i);
6709
6709
  }
6710
- async function R(e, t, n, { maximumLength: r = t.length, reason: i = "read" } = {}) {
6711
- let a = I(n?.length ?? t.length, r, i);
6710
+ async function P(e, t, n, { maximumLength: r = t.length, reason: i = "read" } = {}) {
6711
+ let a = M(n?.length ?? t.length, r, i);
6712
6712
  return e.readBuffer(t, {
6713
6713
  ...n,
6714
6714
  length: a
6715
6715
  });
6716
6716
  }
6717
- function z(e, t, n) {
6717
+ function F(e, t, n) {
6718
6718
  n = {
6719
6719
  offset: 0,
6720
6720
  ...n
@@ -6724,31 +6724,31 @@ function z(e, t, n) {
6724
6724
  } else if (i !== e[r + n.offset]) return !1;
6725
6725
  return !0;
6726
6726
  }
6727
- function B(e) {
6727
+ function I(e) {
6728
6728
  let t = e.fileInfo.size;
6729
6729
  return !Number.isFinite(t) || t === 2 ** 53 - 1;
6730
6730
  }
6731
- function V(e, t, n) {
6732
- return B(e) && e.position - t > n;
6731
+ function L(e, t, n) {
6732
+ return I(e) && e.position - t > n;
6733
6733
  }
6734
6734
  //#endregion
6735
6735
  //#region node_modules/file-type/source/detectors/zip.js
6736
- var H = 1048576, U = 1024, et = 2 ** 31 - 1, W = H, tt = /* @__PURE__ */ new Set([
6736
+ var R = 1048576, it = 1024, at = 2 ** 31 - 1, ot = R, st = /* @__PURE__ */ new Set([
6737
6737
  "Unexpected signature",
6738
6738
  "Encrypted ZIP",
6739
6739
  "Expected Central-File-Header signature"
6740
- ]), nt = [
6740
+ ]), ct = [
6741
6741
  "ZIP entry count exceeds ",
6742
6742
  "Unsupported ZIP compression method:",
6743
6743
  "ZIP entry compressed data exceeds ",
6744
6744
  "ZIP entry decompressed data exceeds ",
6745
6745
  "Expected data-descriptor-signature at position "
6746
- ], rt = /* @__PURE__ */ new Set([
6746
+ ], lt = /* @__PURE__ */ new Set([
6747
6747
  "Z_BUF_ERROR",
6748
6748
  "Z_DATA_ERROR",
6749
6749
  "ERR_INVALID_STATE"
6750
6750
  ]);
6751
- async function it(e, { maximumLength: t = H } = {}) {
6751
+ async function ut(e, { maximumLength: t = R } = {}) {
6752
6752
  let n = new ReadableStream({ start(t) {
6753
6753
  t.enqueue(e), t.close();
6754
6754
  } }).pipeThrough(new DecompressionStream("deflate-raw")).getReader(), r = [], i = 0;
@@ -6768,28 +6768,28 @@ async function it(e, { maximumLength: t = H } = {}) {
6768
6768
  for (let e of r) a.set(e, o), o += e.length;
6769
6769
  return a;
6770
6770
  }
6771
- function at(e, t) {
6771
+ function dt(e, t) {
6772
6772
  let n = new Uint8Array(t), r = 0;
6773
6773
  for (let t of e) n.set(t, r), r += t.length;
6774
6774
  return n;
6775
6775
  }
6776
- function ot(e) {
6776
+ function ft(e) {
6777
6777
  let t = e.fileInfo.size, n = Number.isFinite(t) ? Math.max(0, t - e.position) : 2 ** 53 - 1;
6778
- return Math.min(n, et);
6778
+ return Math.min(n, at);
6779
6779
  }
6780
- function st(e) {
6781
- if (e instanceof C || e instanceof F) return !0;
6780
+ function pt(e) {
6781
+ if (e instanceof C || e instanceof j) return !0;
6782
6782
  if (!(e instanceof Error)) return !1;
6783
- if (tt.has(e.message) || rt.has(e.code)) return !0;
6784
- for (let t of nt) if (e.message.startsWith(t)) return !0;
6783
+ if (st.has(e.message) || lt.has(e.code)) return !0;
6784
+ for (let t of ct) if (e.message.startsWith(t)) return !0;
6785
6785
  return !1;
6786
6786
  }
6787
- function G(e, t = H) {
6787
+ function mt(e, t = R) {
6788
6788
  let n = [e.compressedSize, e.uncompressedSize];
6789
6789
  for (let e of n) if (!Number.isFinite(e) || e < 0 || e > t) return !1;
6790
6790
  return !0;
6791
6791
  }
6792
- function ct() {
6792
+ function ht() {
6793
6793
  return {
6794
6794
  hasDocumentEntry: !1,
6795
6795
  hasMasterSlideEntry: !1,
@@ -6797,10 +6797,10 @@ function ct() {
6797
6797
  hasCalculationEngineEntry: !1
6798
6798
  };
6799
6799
  }
6800
- function lt(e, t) {
6800
+ function gt(e, t) {
6801
6801
  t === "Index/Document.iwa" && (e.hasDocumentEntry = !0), t.startsWith("Index/MasterSlide") && (e.hasMasterSlideEntry = !0), t.startsWith("Index/Tables/") && (e.hasTablesEntry = !0), t === "Index/CalculationEngine.iwa" && (e.hasCalculationEngineEntry = !0);
6802
6802
  }
6803
- function K(e) {
6803
+ function _t(e) {
6804
6804
  if (e.hasDocumentEntry) return e.hasMasterSlideEntry ? {
6805
6805
  ext: "key",
6806
6806
  mime: "application/vnd.apple.keynote"
@@ -6812,7 +6812,7 @@ function K(e) {
6812
6812
  mime: "application/vnd.apple.pages"
6813
6813
  };
6814
6814
  }
6815
- function q(e) {
6815
+ function vt(e) {
6816
6816
  switch (e = e.toLowerCase(), e) {
6817
6817
  case "application/epub+zip": return {
6818
6818
  ext: "epub",
@@ -6916,7 +6916,7 @@ function q(e) {
6916
6916
  };
6917
6917
  }
6918
6918
  }
6919
- function ut() {
6919
+ function yt() {
6920
6920
  return {
6921
6921
  hasContentTypesEntry: !1,
6922
6922
  hasParsedContentTypesEntry: !1,
@@ -6928,10 +6928,10 @@ function ut() {
6928
6928
  hasThreeDimensionalModelEntry: !1
6929
6929
  };
6930
6930
  }
6931
- function dt(e, t) {
6931
+ function bt(e, t) {
6932
6932
  t.startsWith("word/") && (e.hasWordDirectory = !0), t.startsWith("ppt/") && (e.hasPresentationDirectory = !0), t.startsWith("xl/") && (e.hasSpreadsheetDirectory = !0), t.startsWith("3D/") && t.endsWith(".model") && (e.hasThreeDimensionalModelEntry = !0);
6933
6933
  }
6934
- function J(e) {
6934
+ function xt(e) {
6935
6935
  if (e.hasWordDirectory) return {
6936
6936
  ext: "docx",
6937
6937
  mime: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
@@ -6949,10 +6949,10 @@ function J(e) {
6949
6949
  mime: "model/3mf"
6950
6950
  };
6951
6951
  }
6952
- function Y(e) {
6953
- if (!(!e.hasContentTypesEntry || e.hasUnparseableContentTypes || e.isParsingContentTypes || e.hasParsedContentTypesEntry)) return J(e);
6952
+ function St(e) {
6953
+ if (!(!e.hasContentTypesEntry || e.hasUnparseableContentTypes || e.isParsingContentTypes || e.hasParsedContentTypesEntry)) return xt(e);
6954
6954
  }
6955
- function ft(e) {
6955
+ function Ct(e) {
6956
6956
  let t = e.indexOf(".main+xml\"");
6957
6957
  if (t === -1) {
6958
6958
  let t = "application/vnd.ms-package.3dmanufacturing-3dmodel+xml";
@@ -6961,78 +6961,78 @@ function ft(e) {
6961
6961
  let n = e.slice(0, t), r = n.lastIndexOf("\"");
6962
6962
  return n.slice(r + 1);
6963
6963
  }
6964
- var pt = 134695760, X = 16, mt = 15;
6965
- function ht(e, t) {
6966
- if (e.length < X) return -1;
6967
- let n = e.length - X;
6968
- for (let r = 0; r <= n; r++) if (x.get(e, r) === pt && x.get(e, r + 8) === t + r) return r;
6964
+ var z = 134695760, B = 16, wt = 15;
6965
+ function Tt(e, t) {
6966
+ if (e.length < B) return -1;
6967
+ let n = e.length - B;
6968
+ for (let r = 0; r <= n; r++) if (x.get(e, r) === z && x.get(e, r + 8) === t + r) return r;
6969
6969
  return -1;
6970
6970
  }
6971
- async function gt(e, { shouldBuffer: t, maximumLength: n = H } = {}) {
6971
+ async function Et(e, { shouldBuffer: t, maximumLength: n = R } = {}) {
6972
6972
  let { syncBuffer: r } = e, { length: i } = r, a = [], o = 0;
6973
6973
  for (;;) {
6974
- let s = await e.tokenizer.peekBuffer(r, { mayBeLess: !0 }), c = ht(r.subarray(0, s), o), l = c >= 0 ? 0 : s === i ? Math.min(mt, s - 1) : 0, u = c >= 0 ? c : s - l;
6974
+ let s = await e.tokenizer.peekBuffer(r, { mayBeLess: !0 }), c = Tt(r.subarray(0, s), o), l = c >= 0 ? 0 : s === i ? Math.min(wt, s - 1) : 0, u = c >= 0 ? c : s - l;
6975
6975
  if (u === 0) break;
6976
- if (o += u, o > n) throw new F(`ZIP entry data descriptor not found within ${n} bytes`);
6976
+ if (o += u, o > n) throw new j(`ZIP entry data descriptor not found within ${n} bytes`);
6977
6977
  if (t) {
6978
6978
  let t = new Uint8Array(u);
6979
6979
  await e.tokenizer.readBuffer(t), a.push(t);
6980
6980
  } else await e.tokenizer.ignore(u);
6981
6981
  if (c >= 0) break;
6982
6982
  }
6983
- if (B(e.tokenizer) || (e.knownSizeDescriptorScannedBytes += o), t) return at(a, o);
6983
+ if (I(e.tokenizer) || (e.knownSizeDescriptorScannedBytes += o), t) return dt(a, o);
6984
6984
  }
6985
- function _t(e, t) {
6986
- return B(e.tokenizer) ? Math.max(0, P - (e.tokenizer.position - t)) : Math.max(0, H - e.knownSizeDescriptorScannedBytes);
6985
+ function Dt(e, t) {
6986
+ return I(e.tokenizer) ? Math.max(0, A - (e.tokenizer.position - t)) : Math.max(0, R - e.knownSizeDescriptorScannedBytes);
6987
6987
  }
6988
- async function vt(e, t, { shouldBuffer: n, maximumDescriptorLength: r = H } = {}) {
6989
- if (t.dataDescriptor && t.compressedSize === 0) return gt(e, {
6988
+ async function Ot(e, t, { shouldBuffer: n, maximumDescriptorLength: r = R } = {}) {
6989
+ if (t.dataDescriptor && t.compressedSize === 0) return Et(e, {
6990
6990
  shouldBuffer: n,
6991
6991
  maximumLength: r
6992
6992
  });
6993
6993
  if (!n) {
6994
- await L(e.tokenizer, t.compressedSize, {
6995
- maximumLength: B(e.tokenizer) ? H : e.tokenizer.fileInfo.size,
6994
+ await N(e.tokenizer, t.compressedSize, {
6995
+ maximumLength: I(e.tokenizer) ? R : e.tokenizer.fileInfo.size,
6996
6996
  reason: "ZIP entry compressed data"
6997
6997
  });
6998
6998
  return;
6999
6999
  }
7000
- let i = ot(e.tokenizer);
7000
+ let i = ft(e.tokenizer);
7001
7001
  if (!Number.isFinite(t.compressedSize) || t.compressedSize < 0 || t.compressedSize > i) throw Error(`ZIP entry compressed data exceeds ${i} bytes`);
7002
7002
  let a = new Uint8Array(t.compressedSize);
7003
7003
  return await e.tokenizer.readBuffer(a), a;
7004
7004
  }
7005
- j.prototype.inflate = async function(e, t, n) {
7005
+ k.prototype.inflate = async function(e, t, n) {
7006
7006
  if (e.compressedMethod === 0) return n(t);
7007
7007
  if (e.compressedMethod !== 8) throw Error(`Unsupported ZIP compression method: ${e.compressedMethod}`);
7008
- return n(await it(t, { maximumLength: H }));
7009
- }, j.prototype.unzip = async function(e) {
7008
+ return n(await ut(t, { maximumLength: R }));
7009
+ }, k.prototype.unzip = async function(e) {
7010
7010
  let t = !1, n = 0, r = this.tokenizer.position;
7011
7011
  this.knownSizeDescriptorScannedBytes = 0;
7012
7012
  do {
7013
- if (V(this.tokenizer, r, 16777216)) throw new F(`ZIP stream probing exceeds ${P} bytes`);
7013
+ if (L(this.tokenizer, r, 16777216)) throw new j(`ZIP stream probing exceeds ${A} bytes`);
7014
7014
  let i = await this.readLocalFileHeader();
7015
7015
  if (!i) break;
7016
- if (n++, n > U) throw Error(`ZIP entry count exceeds ${U}`);
7016
+ if (n++, n > it) throw Error(`ZIP entry count exceeds ${it}`);
7017
7017
  let a = e(i);
7018
7018
  t = !!a.stop, await this.tokenizer.ignore(i.extraFieldLength);
7019
- let o = await vt(this, i, {
7019
+ let o = await Ot(this, i, {
7020
7020
  shouldBuffer: !!a.handler,
7021
- maximumDescriptorLength: Math.min(H, _t(this, r))
7021
+ maximumDescriptorLength: Math.min(R, Dt(this, r))
7022
7022
  });
7023
7023
  if (a.handler && await this.inflate(i, o, a.handler), i.dataDescriptor) {
7024
- let e = new Uint8Array(X);
7025
- if (await this.tokenizer.readBuffer(e), x.get(e, 0) !== pt) throw Error(`Expected data-descriptor-signature at position ${this.tokenizer.position - e.length}`);
7024
+ let e = new Uint8Array(B);
7025
+ if (await this.tokenizer.readBuffer(e), x.get(e, 0) !== z) throw Error(`Expected data-descriptor-signature at position ${this.tokenizer.position - e.length}`);
7026
7026
  }
7027
- if (V(this.tokenizer, r, 16777216)) throw new F(`ZIP stream probing exceeds ${P} bytes`);
7027
+ if (L(this.tokenizer, r, 16777216)) throw new j(`ZIP stream probing exceeds ${A} bytes`);
7028
7028
  } while (!t);
7029
7029
  };
7030
- async function yt(e) {
7031
- let t, n = ut(), r = ct();
7030
+ async function kt(e) {
7031
+ let t, n = yt(), r = ht();
7032
7032
  try {
7033
- await new j(e).unzip((e) => {
7034
- if (dt(n, e.filename), lt(r, e.filename), r.hasDocumentEntry && (r.hasMasterSlideEntry || r.hasTablesEntry)) return t = K(r), { stop: !0 };
7035
- let i = e.filename === "[Content_Types].xml", a = Y(n);
7033
+ await new k(e).unzip((e) => {
7034
+ if (bt(n, e.filename), gt(r, e.filename), r.hasDocumentEntry && (r.hasMasterSlideEntry || r.hasTablesEntry)) return t = _t(r), { stop: !0 };
7035
+ let i = e.filename === "[Content_Types].xml", a = St(n);
7036
7036
  if (!i && a) return t = a, { stop: !0 };
7037
7037
  switch (e.filename) {
7038
7038
  case "META-INF/mozilla.rsa": return t = {
@@ -7043,16 +7043,16 @@ async function yt(e) {
7043
7043
  ext: "jar",
7044
7044
  mime: "application/java-archive"
7045
7045
  }, { stop: !0 };
7046
- case "mimetype": return G(e, W) ? {
7046
+ case "mimetype": return mt(e, ot) ? {
7047
7047
  async handler(e) {
7048
- t = q(new TextDecoder("utf-8").decode(e).trim());
7048
+ t = vt(new TextDecoder("utf-8").decode(e).trim());
7049
7049
  },
7050
7050
  stop: !0
7051
7051
  } : {};
7052
- case "[Content_Types].xml": return n.hasContentTypesEntry = !0, G(e, W) ? (n.isParsingContentTypes = !0, {
7052
+ case "[Content_Types].xml": return n.hasContentTypesEntry = !0, mt(e, ot) ? (n.isParsingContentTypes = !0, {
7053
7053
  async handler(e) {
7054
- let r = ft(new TextDecoder("utf-8").decode(e));
7055
- r && (t = q(r)), n.hasParsedContentTypesEntry = !0, n.isParsingContentTypes = !1;
7054
+ let r = Ct(new TextDecoder("utf-8").decode(e));
7055
+ r && (t = vt(r)), n.hasParsedContentTypesEntry = !0, n.isParsingContentTypes = !1;
7056
7056
  },
7057
7057
  stop: !0
7058
7058
  }) : (n.hasUnparseableContentTypes = !0, {});
@@ -7063,24 +7063,24 @@ async function yt(e) {
7063
7063
  }
7064
7064
  });
7065
7065
  } catch (e) {
7066
- if (!st(e)) throw e;
7067
- n.isParsingContentTypes && (n.isParsingContentTypes = !1, n.hasUnparseableContentTypes = !0), !t && (e instanceof C || e instanceof F) && !n.hasContentTypesEntry && (t = J(n));
7066
+ if (!pt(e)) throw e;
7067
+ n.isParsingContentTypes && (n.isParsingContentTypes = !1, n.hasUnparseableContentTypes = !0), !t && (e instanceof C || e instanceof j) && !n.hasContentTypesEntry && (t = xt(n));
7068
7068
  }
7069
- let i = B(e) && r.hasDocumentEntry && !r.hasMasterSlideEntry && !r.hasTablesEntry && !r.hasCalculationEngineEntry ? void 0 : K(r);
7070
- return t ?? Y(n) ?? i ?? {
7069
+ let i = I(e) && r.hasDocumentEntry && !r.hasMasterSlideEntry && !r.hasTablesEntry && !r.hasCalculationEngineEntry ? void 0 : _t(r);
7070
+ return t ?? St(n) ?? i ?? {
7071
7071
  ext: "zip",
7072
7072
  mime: "application/zip"
7073
7073
  };
7074
7074
  }
7075
7075
  //#endregion
7076
7076
  //#region node_modules/file-type/source/detectors/ebml.js
7077
- var bt = 64, xt = 1048576, St = 256;
7078
- async function Ct(e) {
7077
+ var At = 64, jt = 1048576, Mt = 256;
7078
+ async function Nt(e) {
7079
7079
  async function t() {
7080
7080
  let t = await e.peekNumber(ge), n = 128, r = 0;
7081
7081
  for (; (t & n) === 0 && n !== 0;) ++r, n >>= 1;
7082
7082
  let i = new Uint8Array(r + 1);
7083
- return await R(e, i, void 0, {
7083
+ return await P(e, i, void 0, {
7084
7084
  maximumLength: i.length,
7085
7085
  reason: "EBML field"
7086
7086
  }), i;
@@ -7090,22 +7090,22 @@ async function Ct(e) {
7090
7090
  n[0] ^= 128 >> n.length - 1;
7091
7091
  let r = Math.min(6, n.length), i = new DataView(e.buffer), a = new DataView(n.buffer, n.length - r, r);
7092
7092
  return {
7093
- id: M(i),
7094
- len: M(a)
7093
+ id: Qe(i),
7094
+ len: Qe(a)
7095
7095
  };
7096
7096
  }
7097
7097
  async function r(t) {
7098
7098
  let r = 0;
7099
7099
  for (; t > 0;) {
7100
- if (r++, r > St || V(e, a, 16777216)) return;
7100
+ if (r++, r > Mt || L(e, a, 16777216)) return;
7101
7101
  let i = e.position, o = await n();
7102
7102
  if (o.id === 17026) {
7103
- if (o.len > bt) return;
7104
- let t = I(o.len, bt, "EBML DocType");
7103
+ if (o.len > At) return;
7104
+ let t = M(o.len, At, "EBML DocType");
7105
7105
  return (await e.readToken(new S(t))).replaceAll(/\0.*$/gv, "");
7106
7106
  }
7107
- if (B(e) && (!Number.isFinite(o.len) || o.len < 0 || o.len > xt) || (await L(e, o.len, {
7108
- maximumLength: B(e) ? xt : e.fileInfo.size,
7107
+ if (I(e) && (!Number.isFinite(o.len) || o.len < 0 || o.len > jt) || (await N(e, o.len, {
7108
+ maximumLength: I(e) ? jt : e.fileInfo.size,
7109
7109
  reason: "EBML payload"
7110
7110
  }), --t, e.position <= i)) return;
7111
7111
  }
@@ -7124,11 +7124,11 @@ async function Ct(e) {
7124
7124
  }
7125
7125
  //#endregion
7126
7126
  //#region node_modules/file-type/source/detectors/png.js
7127
- var wt = 512, Tt = 16777216, Et = 1048576;
7128
- function Dt(e) {
7127
+ var Pt = 512, Ft = 16777216, It = 1048576;
7128
+ function Lt(e) {
7129
7129
  return !!(e.codePointAt(0) & 32);
7130
7130
  }
7131
- async function Ot(e) {
7131
+ async function Rt(e) {
7132
7132
  let t = {
7133
7133
  ext: "png",
7134
7134
  mime: "image/png"
@@ -7143,9 +7143,9 @@ async function Ot(e) {
7143
7143
  type: await e.readToken(new S(4, "latin1"))
7144
7144
  };
7145
7145
  }
7146
- let i = B(e), a = e.position, o = 0, s = !1;
7146
+ let i = I(e), a = e.position, o = 0, s = !1;
7147
7147
  do {
7148
- if (o++, o > wt || V(e, a, Tt)) break;
7148
+ if (o++, o > Pt || L(e, a, Ft)) break;
7149
7149
  let c = e.position, l = await r();
7150
7150
  if (l.length < 0) return;
7151
7151
  if (l.type === "IHDR") {
@@ -7157,14 +7157,14 @@ async function Ot(e) {
7157
7157
  case "acTL": return n;
7158
7158
  default:
7159
7159
  if (!s && l.type !== "CgBI") return;
7160
- if (i && l.length > Et) return s && Dt(l.type) ? t : void 0;
7160
+ if (i && l.length > It) return s && Lt(l.type) ? t : void 0;
7161
7161
  try {
7162
- await L(e, l.length + 4, {
7162
+ await N(e, l.length + 4, {
7163
7163
  maximumLength: i ? 1048580 : e.fileInfo.size,
7164
7164
  reason: "PNG chunk payload"
7165
7165
  });
7166
7166
  } catch (e) {
7167
- if (!i && (e instanceof F || e instanceof C)) return t;
7167
+ if (!i && (e instanceof j || e instanceof C)) return t;
7168
7168
  throw e;
7169
7169
  }
7170
7170
  }
@@ -7174,13 +7174,13 @@ async function Ot(e) {
7174
7174
  }
7175
7175
  //#endregion
7176
7176
  //#region node_modules/file-type/source/detectors/asf.js
7177
- var kt = 512, Z = 1048576;
7178
- async function At(e) {
7177
+ var zt = 512, Bt = 1048576;
7178
+ async function Vt(e) {
7179
7179
  let t = !1;
7180
7180
  try {
7181
7181
  async function n() {
7182
7182
  let t = /* @__PURE__ */ new Uint8Array(16);
7183
- return await R(e, t, void 0, {
7183
+ return await P(e, t, void 0, {
7184
7184
  maximumLength: t.length,
7185
7185
  reason: "ASF header GUID"
7186
7186
  }), {
@@ -7188,18 +7188,18 @@ async function At(e) {
7188
7188
  size: Number(await e.readToken(ye))
7189
7189
  };
7190
7190
  }
7191
- await L(e, 30, {
7191
+ await N(e, 30, {
7192
7192
  maximumLength: 30,
7193
7193
  reason: "ASF header prelude"
7194
7194
  });
7195
- let r = B(e), i = e.position, a = 0;
7196
- for (; e.position + 24 < e.fileInfo.size && (a++, !(a > kt || V(e, i, 16777216)));) {
7195
+ let r = I(e), i = e.position, a = 0;
7196
+ for (; e.position + 24 < e.fileInfo.size && (a++, !(a > zt || L(e, i, 16777216)));) {
7197
7197
  let i = e.position, a = await n(), o = a.size - 24;
7198
7198
  if (!Number.isFinite(o) || o < 0) {
7199
7199
  t = !0;
7200
7200
  break;
7201
7201
  }
7202
- if (z(a.id, [
7202
+ if (F(a.id, [
7203
7203
  145,
7204
7204
  7,
7205
7205
  220,
@@ -7218,10 +7218,10 @@ async function At(e) {
7218
7218
  101
7219
7219
  ])) {
7220
7220
  let t = /* @__PURE__ */ new Uint8Array(16);
7221
- if (o -= await R(e, t, void 0, {
7221
+ if (o -= await P(e, t, void 0, {
7222
7222
  maximumLength: t.length,
7223
7223
  reason: "ASF stream type GUID"
7224
- }), z(t, [
7224
+ }), F(t, [
7225
7225
  64,
7226
7226
  158,
7227
7227
  105,
@@ -7242,7 +7242,7 @@ async function At(e) {
7242
7242
  ext: "asf",
7243
7243
  mime: "audio/x-ms-asf"
7244
7244
  };
7245
- if (z(t, [
7245
+ if (F(t, [
7246
7246
  192,
7247
7247
  239,
7248
7248
  25,
@@ -7265,12 +7265,12 @@ async function At(e) {
7265
7265
  };
7266
7266
  break;
7267
7267
  }
7268
- if (r && o > Z) {
7268
+ if (r && o > Bt) {
7269
7269
  t = !0;
7270
7270
  break;
7271
7271
  }
7272
- if (await L(e, o, {
7273
- maximumLength: r ? Z : e.fileInfo.size,
7272
+ if (await N(e, o, {
7273
+ maximumLength: r ? Bt : e.fileInfo.size,
7274
7274
  reason: "ASF header payload"
7275
7275
  }), e.position <= i) {
7276
7276
  t = !0;
@@ -7278,7 +7278,7 @@ async function At(e) {
7278
7278
  }
7279
7279
  }
7280
7280
  } catch (n) {
7281
- if (n instanceof C || n instanceof F) B(e) && (t = !0);
7281
+ if (n instanceof C || n instanceof j) I(e) && (t = !0);
7282
7282
  else throw n;
7283
7283
  }
7284
7284
  if (!t) return {
@@ -7288,34 +7288,34 @@ async function At(e) {
7288
7288
  }
7289
7289
  //#endregion
7290
7290
  //#region node_modules/file-type/source/index.js
7291
- var Q = 4100, jt = 4096, Mt = P, Nt = 1, Pt = 100, $ = P, Ft = 512, It = 256, Lt = 1048576, Rt = P;
7292
- function zt(e) {
7293
- return Number.isFinite(e) ? Math.max(1, Math.trunc(e)) : Q;
7291
+ var V = 4100, Ht = 4096, Ut = A, Wt = 1, Gt = 100, H = A, Kt = 512, qt = 256, Jt = 1048576, Yt = A;
7292
+ function Xt(e) {
7293
+ return Number.isFinite(e) ? Math.max(1, Math.trunc(e)) : V;
7294
7294
  }
7295
- function Bt(e) {
7296
- return Number.isFinite(e) ? Math.max(0, Math.min(jt, Math.trunc(e))) : 0;
7295
+ function Zt(e) {
7296
+ return Number.isFinite(e) ? Math.max(0, Math.min(Ht, Math.trunc(e))) : 0;
7297
7297
  }
7298
- function Vt(e) {
7298
+ function Qt(e) {
7299
7299
  return Number.isFinite(e) ? Math.max(0, e) : 2 ** 53 - 1;
7300
7300
  }
7301
- function Ht(e) {
7301
+ function $t(e) {
7302
7302
  return import(
7303
7303
  /* @vite-ignore */
7304
7304
  /* webpackIgnore: true */
7305
7305
  e
7306
7306
  );
7307
7307
  }
7308
- function Ut(e) {
7308
+ function en(e) {
7309
7309
  return e.pipeThrough(new TransformStream());
7310
7310
  }
7311
- function Wt(e, t) {
7311
+ function tn(e, t) {
7312
7312
  return t === void 0 ? e.read() : (t.throwIfAborted(), Promise.race([e.read(), new Promise((n, r) => {
7313
7313
  t.addEventListener("abort", () => {
7314
7314
  r(t.reason), e.cancel(t.reason).catch(() => {});
7315
7315
  }, { once: !0 });
7316
7316
  })]));
7317
7317
  }
7318
- function Gt(e, t) {
7318
+ function nn(e, t) {
7319
7319
  let n = e.getReader(), r = 0, i = !1, a = !1, o = async (e) => {
7320
7320
  i || a || (a = !0, await n.cancel(e));
7321
7321
  };
@@ -7342,12 +7342,12 @@ function Gt(e, t) {
7342
7342
  }
7343
7343
  });
7344
7344
  }
7345
- async function Kt(e, t) {
7346
- return new qt(t).fromBuffer(e);
7345
+ async function rn(e, t) {
7346
+ return new an(t).fromBuffer(e);
7347
7347
  }
7348
- var qt = class e {
7348
+ var an = class e {
7349
7349
  constructor(e) {
7350
- let t = Bt(e?.mpegOffsetTolerance);
7350
+ let t = Zt(e?.mpegOffsetTolerance);
7351
7351
  this.options = {
7352
7352
  ...e,
7353
7353
  mpegOffsetTolerance: t
@@ -7367,7 +7367,7 @@ var qt = class e {
7367
7367
  return { ...this.tokenizerOptions };
7368
7368
  }
7369
7369
  createTokenizerFromWebStream(e) {
7370
- return je(Ut(e), this.getTokenizerOptions());
7370
+ return je(en(e), this.getTokenizerOptions());
7371
7371
  }
7372
7372
  async parseTokenizer(e, t = 0) {
7373
7373
  this.detectionReentryCount = t;
@@ -7377,7 +7377,7 @@ var qt = class e {
7377
7377
  try {
7378
7378
  r = await t.detect(e);
7379
7379
  } catch (e) {
7380
- if (e instanceof C || e instanceof F) return;
7380
+ if (e instanceof C || e instanceof j) return;
7381
7381
  throw e;
7382
7382
  }
7383
7383
  if (r) return r;
@@ -7408,7 +7408,7 @@ var qt = class e {
7408
7408
  }
7409
7409
  async fromFile(e) {
7410
7410
  this.options.signal?.throwIfAborted();
7411
- let [{ default: t }, { FileTokenizer: n }] = await Promise.all([Ht("node:fs/promises"), Ht("strtok3")]), r = await t.open(e, t.constants.O_RDONLY | t.constants.O_NONBLOCK), i = await r.stat();
7411
+ let [{ default: t }, { FileTokenizer: n }] = await Promise.all([$t("node:fs/promises"), $t("strtok3")]), r = await t.open(e, t.constants.O_RDONLY | t.constants.O_NONBLOCK), i = await r.stat();
7412
7412
  if (!i.isFile()) {
7413
7413
  await r.close();
7414
7414
  return;
@@ -7424,10 +7424,10 @@ var qt = class e {
7424
7424
  }
7425
7425
  async toDetectionStream(e, t) {
7426
7426
  this.options.signal?.throwIfAborted();
7427
- let n = zt(t?.sampleSize ?? 4100), r, i = !1, a = e.getReader(), o = [], s = 0;
7427
+ let n = Xt(t?.sampleSize ?? 4100), r, i = !1, a = e.getReader(), o = [], s = 0;
7428
7428
  try {
7429
7429
  for (; s < n;) {
7430
- let { value: e, done: t } = await Wt(a, this.options.signal);
7430
+ let { value: e, done: t } = await tn(a, this.options.signal);
7431
7431
  if (t || !e) {
7432
7432
  i = !0;
7433
7433
  break;
@@ -7435,14 +7435,14 @@ var qt = class e {
7435
7435
  o.push(e), s += e.length;
7436
7436
  }
7437
7437
  if (!i && s === n) {
7438
- let { value: e, done: t } = await Wt(a, this.options.signal);
7438
+ let { value: e, done: t } = await tn(a, this.options.signal);
7439
7439
  t || !e ? i = !0 : (o.push(e), s += e.length);
7440
7440
  }
7441
7441
  } finally {
7442
7442
  a.releaseLock();
7443
7443
  }
7444
7444
  if (s > 0) {
7445
- let e = o.length === 1 ? o[0] : Ye(o);
7445
+ let e = o.length === 1 ? o[0] : Ze(o);
7446
7446
  try {
7447
7447
  r = await this.fromBuffer(e.subarray(0, n));
7448
7448
  } catch (e) {
@@ -7465,16 +7465,16 @@ var qt = class e {
7465
7465
  return l.fileType = r, l;
7466
7466
  }
7467
7467
  async detectGzip(t) {
7468
- if (this.gzipProbeDepth >= Nt) return {
7468
+ if (this.gzipProbeDepth >= Wt) return {
7469
7469
  ext: "gz",
7470
7470
  mime: "application/gzip"
7471
7471
  };
7472
- let n = Gt(new Ue(t).inflate(), Mt), r = B(t), i, a, o, s;
7472
+ let n = nn(new Ge(t).inflate(), Ut), r = I(t), i, a, o, s;
7473
7473
  if (r) {
7474
7474
  let t = new AbortController();
7475
7475
  i = setTimeout(() => {
7476
- t.abort(new DOMException(`Operation timed out after ${Pt} ms`, "TimeoutError"));
7477
- }, Pt), a = this.options.signal === void 0 ? t.signal : AbortSignal.any([this.options.signal, t.signal]), o = new e({
7476
+ t.abort(new DOMException(`Operation timed out after ${Gt} ms`, "TimeoutError"));
7477
+ }, Gt), a = this.options.signal === void 0 ? t.signal : AbortSignal.any([this.options.signal, t.signal]), o = new e({
7478
7478
  ...this.options,
7479
7479
  signal: a
7480
7480
  }), o.gzipProbeDepth = this.gzipProbeDepth + 1;
@@ -7495,13 +7495,13 @@ var qt = class e {
7495
7495
  };
7496
7496
  }
7497
7497
  check(e, t) {
7498
- return z(this.buffer, e, t);
7498
+ return F(this.buffer, e, t);
7499
7499
  }
7500
7500
  checkString(e, t) {
7501
- return this.check(N(e, t?.encoding), t);
7501
+ return this.check($e(e, t?.encoding), t);
7502
7502
  }
7503
7503
  detectConfident = async (e) => {
7504
- if (this.buffer = new Uint8Array(Q), e.fileInfo.size === void 0 && (e.fileInfo.size = 2 ** 53 - 1), this.tokenizer = e, B(e) && (await e.peekBuffer(this.buffer, {
7504
+ if (this.buffer = new Uint8Array(V), e.fileInfo.size === void 0 && (e.fileInfo.size = 2 ** 53 - 1), this.tokenizer = e, I(e) && (await e.peekBuffer(this.buffer, {
7505
7505
  length: 3,
7506
7506
  mayBeLess: !0
7507
7507
  }), this.check([
@@ -7554,7 +7554,7 @@ var qt = class e {
7554
7554
  239,
7555
7555
  187,
7556
7556
  191
7557
- ])) return this.detectionReentryCount >= It ? void 0 : (this.detectionReentryCount++, await this.tokenizer.ignore(3), this.detectConfident(e));
7557
+ ])) return this.detectionReentryCount >= qt ? void 0 : (this.detectionReentryCount++, await this.tokenizer.ignore(3), this.detectConfident(e));
7558
7558
  if (this.check([
7559
7559
  71,
7560
7560
  73,
@@ -7585,26 +7585,26 @@ var qt = class e {
7585
7585
  mime: "application/x-bzip2"
7586
7586
  };
7587
7587
  if (this.checkString("ID3")) {
7588
- await L(e, 6, {
7588
+ await N(e, 6, {
7589
7589
  maximumLength: 6,
7590
7590
  reason: "ID3 header prefix"
7591
7591
  });
7592
- let t = await e.readToken(Ze), n = B(e);
7593
- if (!Number.isFinite(t) || t < 0 || n && (t > $ || e.position + t > $)) return;
7592
+ let t = await e.readToken(tt), n = I(e);
7593
+ if (!Number.isFinite(t) || t < 0 || n && (t > H || e.position + t > H)) return;
7594
7594
  if (e.position + t > e.fileInfo.size) return n ? void 0 : {
7595
7595
  ext: "mp3",
7596
7596
  mime: "audio/mpeg"
7597
7597
  };
7598
7598
  try {
7599
- await L(e, t, {
7600
- maximumLength: n ? $ : e.fileInfo.size,
7599
+ await N(e, t, {
7600
+ maximumLength: n ? H : e.fileInfo.size,
7601
7601
  reason: "ID3 payload"
7602
7602
  });
7603
7603
  } catch (e) {
7604
7604
  if (e instanceof C) return;
7605
7605
  throw e;
7606
7606
  }
7607
- return this.detectionReentryCount >= It ? void 0 : (this.detectionReentryCount++, this.parseTokenizer(e, this.detectionReentryCount));
7607
+ return this.detectionReentryCount >= qt ? void 0 : (this.detectionReentryCount++, this.parseTokenizer(e, this.detectionReentryCount));
7608
7608
  }
7609
7609
  if (this.checkString("MP+")) return {
7610
7610
  ext: "mpc",
@@ -7659,11 +7659,11 @@ var qt = class e {
7659
7659
  75,
7660
7660
  3,
7661
7661
  4
7662
- ])) return yt(e);
7662
+ ])) return kt(e);
7663
7663
  if (this.checkString("OggS")) {
7664
7664
  await e.ignore(28);
7665
7665
  let t = /* @__PURE__ */ new Uint8Array(8);
7666
- return await e.readBuffer(t), z(t, [
7666
+ return await e.readBuffer(t), F(t, [
7667
7667
  79,
7668
7668
  112,
7669
7669
  117,
@@ -7675,7 +7675,7 @@ var qt = class e {
7675
7675
  ]) ? {
7676
7676
  ext: "opus",
7677
7677
  mime: "audio/ogg; codecs=opus"
7678
- } : z(t, [
7678
+ } : F(t, [
7679
7679
  128,
7680
7680
  116,
7681
7681
  104,
@@ -7686,7 +7686,7 @@ var qt = class e {
7686
7686
  ]) ? {
7687
7687
  ext: "ogv",
7688
7688
  mime: "video/ogg"
7689
- } : z(t, [
7689
+ } : F(t, [
7690
7690
  1,
7691
7691
  118,
7692
7692
  105,
@@ -7697,7 +7697,7 @@ var qt = class e {
7697
7697
  ]) ? {
7698
7698
  ext: "ogm",
7699
7699
  mime: "video/ogg"
7700
- } : z(t, [
7700
+ } : F(t, [
7701
7701
  127,
7702
7702
  70,
7703
7703
  76,
@@ -7706,7 +7706,7 @@ var qt = class e {
7706
7706
  ]) ? {
7707
7707
  ext: "oga",
7708
7708
  mime: "audio/ogg"
7709
- } : z(t, [
7709
+ } : F(t, [
7710
7710
  83,
7711
7711
  112,
7712
7712
  101,
@@ -7717,7 +7717,7 @@ var qt = class e {
7717
7717
  ]) ? {
7718
7718
  ext: "spx",
7719
7719
  mime: "audio/ogg"
7720
- } : z(t, [
7720
+ } : F(t, [
7721
7721
  1,
7722
7722
  118,
7723
7723
  111,
@@ -7828,7 +7828,7 @@ var qt = class e {
7828
7828
  69,
7829
7829
  223,
7830
7830
  163
7831
- ])) return Ct(e);
7831
+ ])) return Nt(e);
7832
7832
  if (this.checkString("SQLi")) return {
7833
7833
  ext: "sqlite",
7834
7834
  mime: "application/x-sqlite3"
@@ -8110,7 +8110,7 @@ var qt = class e {
8110
8110
  10,
8111
8111
  26,
8112
8112
  10
8113
- ])) return Ot(e);
8113
+ ])) return Rt(e);
8114
8114
  if (this.check([
8115
8115
  65,
8116
8116
  82,
@@ -8328,7 +8328,7 @@ var qt = class e {
8328
8328
  17,
8329
8329
  166,
8330
8330
  217
8331
- ])) return At(e);
8331
+ ])) return Vt(e);
8332
8332
  if (this.check([
8333
8333
  171,
8334
8334
  75,
@@ -8695,7 +8695,7 @@ var qt = class e {
8695
8695
  0,
8696
8696
  0,
8697
8697
  0
8698
- ], { offset: 257 }) && Xe(this.buffer)) return {
8698
+ ], { offset: 257 }) && et(this.buffer)) return {
8699
8699
  ext: "tar",
8700
8700
  mime: "application/x-tar"
8701
8701
  };
@@ -8731,15 +8731,15 @@ var qt = class e {
8731
8731
  position: 32769,
8732
8732
  length: 5,
8733
8733
  mayBeLess: !0
8734
- }), z(t, N("CD001"))) return {
8734
+ }), F(t, $e("CD001"))) return {
8735
8735
  ext: "iso",
8736
8736
  mime: "application/x-iso9660-image"
8737
8737
  };
8738
8738
  }
8739
8739
  };
8740
8740
  detectImprecise = async (e) => {
8741
- this.buffer = new Uint8Array(Q);
8742
- let t = Vt(e.fileInfo.size);
8741
+ this.buffer = new Uint8Array(V);
8742
+ let t = Qt(e.fileInfo.size);
8743
8743
  if (await e.peekBuffer(this.buffer, {
8744
8744
  length: Math.min(8, t),
8745
8745
  mayBeLess: !0
@@ -8808,7 +8808,7 @@ var qt = class e {
8808
8808
  }
8809
8809
  async readTiffIFD(e) {
8810
8810
  let t = await this.tokenizer.readToken(e ? b : y);
8811
- if (!(t > Ft) && !(B(this.tokenizer) && 2 + t * 12 > Rt)) for (let n = 0; n < t; ++n) {
8811
+ if (!(t > Kt) && !(I(this.tokenizer) && 2 + t * 12 > Yt)) for (let n = 0; n < t; ++n) {
8812
8812
  let t = await this.readTiffTag(e);
8813
8813
  if (t) return t;
8814
8814
  }
@@ -8832,10 +8832,10 @@ var qt = class e {
8832
8832
  };
8833
8833
  }
8834
8834
  }
8835
- if (B(this.tokenizer) && r > Lt) return t;
8836
- let n = B(this.tokenizer) ? Rt : this.tokenizer.fileInfo.size;
8835
+ if (I(this.tokenizer) && r > Jt) return t;
8836
+ let n = I(this.tokenizer) ? Yt : this.tokenizer.fileInfo.size;
8837
8837
  try {
8838
- await L(this.tokenizer, r, {
8838
+ await N(this.tokenizer, r, {
8839
8839
  maximumLength: n,
8840
8840
  reason: "TIFF IFD offset"
8841
8841
  });
@@ -8900,30 +8900,382 @@ var qt = class e {
8900
8900
  }
8901
8901
  }
8902
8902
  };
8903
- new Set(Qe), new Set($e);
8903
+ new Set(nt), new Set(rt);
8904
8904
  //#endregion
8905
- //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-errors.es.js
8906
- var Jt = 2048, Yt = class extends Error {
8905
+ //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js
8906
+ function U(e) {
8907
+ return new Map(Object.entries(e));
8908
+ }
8909
+ var on = {
8910
+ lang: void 0,
8911
+ message: void 0,
8912
+ abortEarly: void 0,
8913
+ abortPipeEarly: void 0
8914
+ };
8915
+ /* @__NO_SIDE_EFFECTS__ */
8916
+ function sn(e) {
8917
+ return e ? {
8918
+ lang: e?.lang ?? void 0,
8919
+ message: e?.message,
8920
+ abortEarly: e?.abortEarly ?? void 0,
8921
+ abortPipeEarly: e?.abortPipeEarly ?? void 0
8922
+ } : on;
8923
+ }
8924
+ /* @__NO_SIDE_EFFECTS__ */
8925
+ function cn(e) {
8926
+ let t = typeof e;
8927
+ return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
8928
+ }
8929
+ function W(e, t, n, r, i) {
8930
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ cn(a), c = {
8931
+ kind: e.kind,
8932
+ type: e.type,
8933
+ input: a,
8934
+ expected: o,
8935
+ received: s,
8936
+ message: `Invalid ${t}: ${o ? `Expected ${o} but r` : "R"}eceived ${s}`,
8937
+ requirement: e.requirement,
8938
+ path: i?.path,
8939
+ issues: i?.issues,
8940
+ lang: r.lang,
8941
+ abortEarly: r.abortEarly,
8942
+ abortPipeEarly: r.abortPipeEarly
8943
+ }, l = e.kind === "schema", u = i?.message ?? e.message ?? (e.reference, c.lang, void 0) ?? (l ? (c.lang, void 0) : null) ?? r.message ?? (c.lang, void 0);
8944
+ u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
8945
+ }
8946
+ /* @__NO_SIDE_EFFECTS__ */
8947
+ function ln(e, t) {
8948
+ return e === t || Number.isNaN(e) && Number.isNaN(t);
8949
+ }
8950
+ /* @__NO_SIDE_EFFECTS__ */
8951
+ function un(e, t) {
8952
+ let n = [...new Set(e)];
8953
+ return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
8954
+ }
8955
+ function G(e) {
8956
+ return e["~standard"] = {
8957
+ version: 1,
8958
+ vendor: "valibot",
8959
+ validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ sn())
8960
+ }, e;
8961
+ }
8962
+ /* @__NO_SIDE_EFFECTS__ */
8963
+ function dn(e, t, n) {
8964
+ return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
8965
+ }
8966
+ /* @__NO_SIDE_EFFECTS__ */
8967
+ function K(e, t, n) {
8968
+ return typeof e.default == "function" ? e.default(t, n) : e.default;
8969
+ }
8970
+ /* @__NO_SIDE_EFFECTS__ */
8971
+ function fn(e, t) {
8972
+ return G({
8973
+ kind: "schema",
8974
+ type: "literal",
8975
+ reference: fn,
8976
+ expects: /* @__PURE__ */ cn(e),
8977
+ async: !1,
8978
+ literal: e,
8979
+ message: t,
8980
+ "~run"(e, t) {
8981
+ return /* @__PURE__ */ ln(e.value, this.literal) ? e.typed = !0 : W(this, "type", e, t), e;
8982
+ }
8983
+ });
8984
+ }
8985
+ /* @__NO_SIDE_EFFECTS__ */
8986
+ function q(e, t) {
8987
+ return G({
8988
+ kind: "schema",
8989
+ type: "nullable",
8990
+ reference: q,
8991
+ expects: `(${e.expects} | null)`,
8992
+ async: !1,
8993
+ wrapped: e,
8994
+ default: t,
8995
+ "~run"(e, t) {
8996
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ K(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
8997
+ }
8998
+ });
8999
+ }
9000
+ /* @__NO_SIDE_EFFECTS__ */
9001
+ function J(e) {
9002
+ return G({
9003
+ kind: "schema",
9004
+ type: "number",
9005
+ reference: J,
9006
+ expects: "number",
9007
+ async: !1,
9008
+ message: e,
9009
+ "~run"(e, t) {
9010
+ return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : W(this, "type", e, t), e;
9011
+ }
9012
+ });
9013
+ }
9014
+ /* @__NO_SIDE_EFFECTS__ */
9015
+ function Y(e, t) {
9016
+ return G({
9017
+ kind: "schema",
9018
+ type: "optional",
9019
+ reference: Y,
9020
+ expects: `(${e.expects} | undefined)`,
9021
+ async: !1,
9022
+ wrapped: e,
9023
+ default: t,
9024
+ "~run"(e, t) {
9025
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ K(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
9026
+ }
9027
+ });
9028
+ }
9029
+ /* @__NO_SIDE_EFFECTS__ */
9030
+ function X(e, t) {
9031
+ return G({
9032
+ kind: "schema",
9033
+ type: "strict_object",
9034
+ reference: X,
9035
+ expects: "Object",
9036
+ async: !1,
9037
+ entries: e,
9038
+ message: t,
9039
+ "~run"(e, t) {
9040
+ let n = e.value;
9041
+ if (n && typeof n == "object") {
9042
+ e.typed = !0, e.value = {};
9043
+ for (let r in this.entries) {
9044
+ let i = this.entries[r];
9045
+ if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
9046
+ let a = r in n ? n[r] : /* @__PURE__ */ K(i), o = i["~run"]({ value: a }, t);
9047
+ if (o.issues) {
9048
+ let i = {
9049
+ type: "object",
9050
+ origin: "value",
9051
+ input: n,
9052
+ key: r,
9053
+ value: a
9054
+ };
9055
+ for (let t of o.issues) t.path ? t.path.unshift(i) : t.path = [i], e.issues?.push(t);
9056
+ if (e.issues ||= o.issues, t.abortEarly) {
9057
+ e.typed = !1;
9058
+ break;
9059
+ }
9060
+ }
9061
+ o.typed || (e.typed = !1), e.value[r] = o.value;
9062
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ dn(i);
9063
+ else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (W(this, "key", e, t, {
9064
+ input: void 0,
9065
+ expected: `"${r}"`,
9066
+ path: [{
9067
+ type: "object",
9068
+ origin: "key",
9069
+ input: n,
9070
+ key: r,
9071
+ value: n[r]
9072
+ }]
9073
+ }), t.abortEarly)) break;
9074
+ }
9075
+ if (!e.issues || !t.abortEarly) {
9076
+ for (let r in n) if (!Object.prototype.hasOwnProperty.call(this.entries, r)) {
9077
+ W(this, "key", e, t, {
9078
+ input: r,
9079
+ expected: "never",
9080
+ path: [{
9081
+ type: "object",
9082
+ origin: "key",
9083
+ input: n,
9084
+ key: r,
9085
+ value: n[r]
9086
+ }]
9087
+ });
9088
+ break;
9089
+ }
9090
+ }
9091
+ } else W(this, "type", e, t);
9092
+ return e;
9093
+ }
9094
+ });
9095
+ }
9096
+ /* @__NO_SIDE_EFFECTS__ */
9097
+ function Z(e) {
9098
+ return G({
9099
+ kind: "schema",
9100
+ type: "string",
9101
+ reference: Z,
9102
+ expects: "string",
9103
+ async: !1,
9104
+ message: e,
9105
+ "~run"(e, t) {
9106
+ return typeof e.value == "string" ? e.typed = !0 : W(this, "type", e, t), e;
9107
+ }
9108
+ });
9109
+ }
9110
+ /* @__NO_SIDE_EFFECTS__ */
9111
+ function pn(e) {
9112
+ let t;
9113
+ if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
9114
+ else t = n.issues;
9115
+ return t;
9116
+ }
9117
+ /* @__NO_SIDE_EFFECTS__ */
9118
+ function mn(e, t) {
9119
+ return G({
9120
+ kind: "schema",
9121
+ type: "union",
9122
+ reference: mn,
9123
+ expects: /* @__PURE__ */ un(e.map((e) => e.expects), "|"),
9124
+ async: !1,
9125
+ options: e,
9126
+ message: t,
9127
+ "~run"(e, t) {
9128
+ let n, r, i;
9129
+ for (let a of this.options) {
9130
+ let o = a["~run"]({ value: e.value }, t);
9131
+ if (o.typed) {
9132
+ if (o.issues) r ? r.push(o) : r = [o];
9133
+ else {
9134
+ n = o;
9135
+ break;
9136
+ }
9137
+ } else i ? i.push(o) : i = [o];
9138
+ }
9139
+ if (n) return n;
9140
+ if (r) {
9141
+ if (r.length === 1) return r[0];
9142
+ W(this, "type", e, t, { issues: /* @__PURE__ */ pn(r) }), e.typed = !0;
9143
+ } else if (i?.length === 1) return i[0];
9144
+ else W(this, "type", e, t, { issues: /* @__PURE__ */ pn(i) });
9145
+ return e;
9146
+ }
9147
+ });
9148
+ }
9149
+ var hn = {
9150
+ id: /* @__PURE__ */ Z(),
9151
+ label: /* @__PURE__ */ X({
9152
+ en: /* @__PURE__ */ Y(/* @__PURE__ */ Z()),
9153
+ es: /* @__PURE__ */ Y(/* @__PURE__ */ Z())
9154
+ }),
9155
+ description: /* @__PURE__ */ X({
9156
+ en: /* @__PURE__ */ Y(/* @__PURE__ */ Z()),
9157
+ es: /* @__PURE__ */ Y(/* @__PURE__ */ Z())
9158
+ }),
9159
+ icon: /* @__PURE__ */ q(/* @__PURE__ */ Z()),
9160
+ iconDark: /* @__PURE__ */ q(/* @__PURE__ */ Z())
9161
+ }, Q = (e) => /* @__PURE__ */ mn(e.map((e) => /* @__PURE__ */ fn(e))), gn = Q([
9162
+ "app",
9163
+ "connector",
9164
+ "connectorConnection",
9165
+ "context",
9166
+ "contextArea",
9167
+ "contextModel",
9168
+ "contextModelDimension",
9169
+ "contextModelDimensionHierarchy",
9170
+ "contextModelEntity",
9171
+ "contextModelEntityDataItem",
9172
+ "contextModelEntityEvent",
9173
+ "contextModelEntityPrimaryMeasure",
9174
+ "contextModelSecondaryMeasure",
9175
+ "cookbook",
9176
+ "cookbookRecipe",
9177
+ "dataView",
9178
+ "engine",
9179
+ "eventQuery",
9180
+ "presenter",
9181
+ "presenterPresentation",
9182
+ "tool"
9183
+ ]), _n = Q([
9184
+ "danger",
9185
+ "success",
9186
+ "warning"
9187
+ ]), vn = Q([
9188
+ "alpha",
9189
+ "beta",
9190
+ "releaseCandidate",
9191
+ "generalAvailability"
9192
+ ]), yn = /* @__PURE__ */ X({
9193
+ color: _n,
9194
+ label: /* @__PURE__ */ Z()
9195
+ }), bn = {
9196
+ ...hn,
9197
+ typeId: gn
9198
+ };
9199
+ ({ ...bn });
9200
+ var xn = {
9201
+ ...bn,
9202
+ firstCreatedAt: /* @__PURE__ */ q(/* @__PURE__ */ J()),
9203
+ lastUpdatedAt: /* @__PURE__ */ q(/* @__PURE__ */ J()),
9204
+ status: /* @__PURE__ */ q(yn),
9205
+ statusId: /* @__PURE__ */ q(vn)
9206
+ };
9207
+ ({ ...xn }), U({ en: "Data Positioning Events" }), U({ en: "Delimited Text" }), U({ en: "JSON" }), U({ en: "SPSS" }), U({ en: "XLSX" }), U({ en: "XML" }), U({ en: "Newline" }), U({ en: "Carriage Return" }), U({ en: "Carriage Return/Newline" }), U({ en: "Colon" }), U({ en: "Comma" }), U({ en: "Exclamation Mark" }), U({ en: "Record Separator" }), U({ en: "Semicolon" }), U({ en: "Space" }), U({ en: "Tab" }), U({ en: "Underscore" }), U({ en: "Unit Separator" }), U({ en: "Vertical Bar" }), Q([
9208
+ "app",
9209
+ "engine",
9210
+ "connector",
9211
+ "cookbook",
9212
+ "presenter",
9213
+ "tool"
9214
+ ]);
9215
+ var $ = {
9216
+ ...xn,
9217
+ vendorAccountURL: /* @__PURE__ */ q(/* @__PURE__ */ Z()),
9218
+ vendorDocumentationURL: /* @__PURE__ */ q(/* @__PURE__ */ Z()),
9219
+ vendorHomeURL: /* @__PURE__ */ q(/* @__PURE__ */ Z()),
9220
+ version: /* @__PURE__ */ Z()
9221
+ };
9222
+ ({ ...$ }), Q([
9223
+ "abortOperation",
9224
+ "auditObjectContent",
9225
+ "createObject",
9226
+ "describeConnection",
9227
+ "dropObject",
9228
+ "findObject",
9229
+ "getInfo",
9230
+ "getReadableStream",
9231
+ "getRecord",
9232
+ "listNodes",
9233
+ "previewObject",
9234
+ "removeRecords",
9235
+ "retrieveChunks",
9236
+ "retrieveRecords",
9237
+ "upsertRecords"
9238
+ ]), Q([
9239
+ "application",
9240
+ "curatedDataset",
9241
+ "database",
9242
+ "fileStore"
9243
+ ]), Q([
9244
+ "bidirectional",
9245
+ "destination",
9246
+ "source",
9247
+ "unknown"
9248
+ ]), Q([
9249
+ "apiKey",
9250
+ "disabled",
9251
+ "oAuth2",
9252
+ "none"
9253
+ ]), { ...$ }, Q(["list"]), { ...$ }, Q([
9254
+ "list",
9255
+ "render",
9256
+ "setColorMode"
9257
+ ]), { ...$ };
9258
+ var Sn = 2048, Cn = class extends Error {
8907
9259
  data;
8908
9260
  locator;
8909
9261
  constructor(e, t, n, r) {
8910
9262
  super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
8911
9263
  }
8912
- }, Xt = class extends Yt {
9264
+ }, wn = class extends Cn {
8913
9265
  constructor(e, t, n, r) {
8914
9266
  super(e, t, n, r), this.name = "FetchError";
8915
9267
  }
8916
9268
  };
8917
- async function Zt(e, t, n) {
9269
+ async function Tn(e, t, n) {
8918
9270
  let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
8919
9271
  try {
8920
9272
  a = await e.text();
8921
9273
  } catch (e) {
8922
- a = `<body unavailable: ${Qt(e).message}>`;
9274
+ a = `<body unavailable: ${En(e).message}>`;
8923
9275
  }
8924
- return new Xt(i, n, { body: $t(a) });
9276
+ return new wn(i, n, { body: Dn(a) });
8925
9277
  }
8926
- function Qt(e) {
9278
+ function En(e) {
8927
9279
  if (e instanceof Error) return e;
8928
9280
  if (typeof e == "string") return Error(e);
8929
9281
  if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return Error(String(e));
@@ -8935,10 +9287,10 @@ function Qt(e) {
8935
9287
  }
8936
9288
  return /* @__PURE__ */ Error("Unknown error");
8937
9289
  }
8938
- function $t(e) {
8939
- if (e != null && e !== "") return e.length > Jt ? `${e.slice(0, Jt)}... [truncated]` : e;
9290
+ function Dn(e) {
9291
+ if (e != null && e !== "") return e.length > Sn ? `${e.slice(0, Sn)}... [truncated]` : e;
8940
9292
  }
8941
- var en = {
9293
+ var On = {
8942
9294
  ascii: {
8943
9295
  id: "ascii",
8944
9296
  groupId: null,
@@ -9234,15 +9586,15 @@ var en = {
9234
9586
  isDecodable: !0
9235
9587
  }
9236
9588
  };
9237
- function tn(e) {
9238
- return Object.hasOwn(en, e);
9589
+ function kn(e) {
9590
+ return Object.hasOwn(On, e);
9239
9591
  }
9240
9592
  //#endregion
9241
9593
  //#region src/index.ts
9242
- var nn = {
9594
+ var An = {
9243
9595
  id: "utf-8",
9244
9596
  confidenceLevel: void 0
9245
- }, rn = {
9597
+ }, jn = {
9246
9598
  arrow: {
9247
9599
  label: "Columnar format for tables of data.",
9248
9600
  isAutoDetectable: !0,
@@ -9407,17 +9759,17 @@ var nn = {
9407
9759
  isSupported: !1,
9408
9760
  notes: ""
9409
9761
  }
9410
- }, an = class {
9762
+ }, Mn = class {
9411
9763
  async previewFile(e, t, n) {
9412
9764
  let r = await fetch(encodeURI(e), {
9413
9765
  headers: { Range: `bytes=0-${String(n ?? 4095)}` },
9414
9766
  signal: t
9415
9767
  });
9416
- if (!r.ok) throw await Zt(r, `Failed to fetch '${e}' file.`, "dpuse-tool-file-previewer.previewRemoteFile");
9417
- return await on(new Uint8Array(await r.arrayBuffer()));
9768
+ if (!r.ok) throw await Tn(r, `Failed to fetch '${e}' file.`, "dpuse-tool-file-previewer.previewRemoteFile");
9769
+ return await Nn(new Uint8Array(await r.arrayBuffer()));
9418
9770
  }
9419
9771
  };
9420
- async function on(e) {
9772
+ async function Nn(e) {
9421
9773
  if (e.length === 0) return {
9422
9774
  bytes: e,
9423
9775
  dataFormatId: void 0,
@@ -9426,19 +9778,19 @@ async function on(e) {
9426
9778
  fileTypeConfig: void 0,
9427
9779
  text: void 0
9428
9780
  };
9429
- let t = await Kt(e);
9781
+ let t = await rn(e);
9430
9782
  if (t == null) {
9431
- let n = cn(e, sn(e));
9783
+ let n = Fn(e, Pn(e));
9432
9784
  return {
9433
9785
  bytes: e,
9434
- dataFormatId: ln(n.text) ? "json" : "dtv",
9786
+ dataFormatId: In(n.text) ? "json" : "dtv",
9435
9787
  encodingId: n.encoding.id,
9436
9788
  encodingConfidenceLevel: n.encoding.confidenceLevel,
9437
9789
  fileTypeConfig: t,
9438
9790
  text: n.text
9439
9791
  };
9440
9792
  }
9441
- let n = rn[t.ext];
9793
+ let n = jn[t.ext];
9442
9794
  return n == null ? {
9443
9795
  bytes: e,
9444
9796
  dataFormatId: void 0,
@@ -9455,7 +9807,7 @@ async function on(e) {
9455
9807
  text: void 0
9456
9808
  };
9457
9809
  }
9458
- function sn(e) {
9810
+ function Pn(e) {
9459
9811
  if (e[0] === 239 && e[1] === 187 && e[2] === 191) return {
9460
9812
  confidenceLevel: 100,
9461
9813
  id: "utf-8"
@@ -9474,23 +9826,23 @@ function sn(e) {
9474
9826
  }, n = t.name.toLowerCase();
9475
9827
  return {
9476
9828
  confidenceLevel: t.confidence,
9477
- id: tn(n) ? n : "utf-8"
9829
+ id: kn(n) ? n : "utf-8"
9478
9830
  };
9479
9831
  }
9480
- function cn(e, t) {
9832
+ function Fn(e, t) {
9481
9833
  try {
9482
9834
  return {
9483
9835
  encoding: t,
9484
- text: new TextDecoder(t.id).decode(un(e))
9836
+ text: new TextDecoder(t.id).decode(Ln(e))
9485
9837
  };
9486
9838
  } catch {
9487
9839
  return {
9488
- encoding: nn,
9489
- text: new TextDecoder(nn.id, { fatal: !1 }).decode(un(e))
9840
+ encoding: An,
9841
+ text: new TextDecoder(An.id, { fatal: !1 }).decode(Ln(e))
9490
9842
  };
9491
9843
  }
9492
9844
  }
9493
- function ln(e) {
9845
+ function In(e) {
9494
9846
  let t = e.trimStart();
9495
9847
  if (t.length > 2) {
9496
9848
  let e = t[0], n = e === "{", r = e === "[", i = /"\s*:\s*/.test(t), a = /\b(?:true|false|null)\b/.test(t), o = t.includes("\"");
@@ -9498,7 +9850,7 @@ function ln(e) {
9498
9850
  }
9499
9851
  return !1;
9500
9852
  }
9501
- function un(e) {
9853
+ function Ln(e) {
9502
9854
  let t = e, n = t.length;
9503
9855
  for (let e = n - 1; e >= 0; e--) {
9504
9856
  let n = t[e];
@@ -9514,4 +9866,4 @@ function un(e) {
9514
9866
  return t;
9515
9867
  }
9516
9868
  //#endregion
9517
- export { an as Tool };
9869
+ export { Mn as Tool };