@prose-reader/archive-reader 1.350.0 → 1.352.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -649,22 +649,24 @@ var Ue = async ({ archive: e, archiveOpf: t }) => {
649
649
  }, lt = (e) => H({
650
650
  renditionLayout: e.renditionLayout,
651
651
  kobo: e.renditionLayout === void 0 ? void 0 : { fixedLayout: e.renditionLayout === "pre-paginated" }
652
- }), ut = /* @__PURE__ */ new Set([
652
+ }), ut = /[0-9Xx]+/g, dt = /^(?:97[89])?\d{9}[\dXx]$/, ft = (e) => {
653
+ if (e == null) return;
654
+ let t = String(e).trim().replace(/^urn:isbn:/i, "").replace(/^isbn[:\s-]*/i, ""), n = t.replace(/[^0-9Xx]/g, "");
655
+ if (n.length === 10 || n.length === 13) return n.toUpperCase();
656
+ for (let e of t.match(ut) ?? []) if (dt.test(e)) return e.toUpperCase();
657
+ }, pt = (e) => {
658
+ let t = ft(e);
659
+ if (t !== void 0) return t.length === 10 || /^97[89]/.test(t) ? t : void 0;
660
+ }, mt = /* @__PURE__ */ new Set([
653
661
  8,
654
662
  12,
655
663
  13,
656
664
  14
657
- ]), dt = (e) => {
665
+ ]), Y = (e) => {
658
666
  if (e == null) return;
659
667
  let t = String(e).replace(/\D/g, "");
660
- if (!(t.length === 0 || !ut.has(t.length))) return t;
661
- }, ft = /(?:97[89])?\d{9}[\dXx]/, pt = (e) => {
662
- if (e == null) return;
663
- let t = String(e).trim().replace(/^urn:isbn:/i, "").replace(/^isbn[:\s-]*/i, ""), n = t.replace(/[^0-9Xx]/g, "");
664
- if (n.length === 10 || n.length === 13) return n.toUpperCase();
665
- let r = t.match(ft);
666
- if (r) return r[0].toUpperCase();
667
- }, mt = (e) => {
668
+ if (!(t.length === 0 || !mt.has(t.length))) return t;
669
+ }, ht = (e) => {
668
670
  if (e === void 0) return;
669
671
  let t = e.trim().match(/^(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?/);
670
672
  if (t === null) return;
@@ -674,15 +676,14 @@ var Ue = async ({ archive: e, archiveOpf: t }) => {
674
676
  ...r === void 0 ? {} : { month: Number.parseInt(r, 10) },
675
677
  ...i === void 0 ? {} : { day: Number.parseInt(i, 10) }
676
678
  };
677
- }, ht = (e) => {
679
+ }, gt = (e) => {
678
680
  let t = e.trim();
679
681
  if (/^https?:\/\//i.test(t)) try {
680
682
  let e = new URL(t);
681
683
  if ((e.protocol === "http:" || e.protocol === "https:") && e.hostname.length > 0) return "URL";
682
684
  } catch {}
683
- let n = pt(t);
684
- return n !== void 0 && (n.length === 10 || /^97[89]/.test(n)) ? "ISBN" : dt(t) === void 0 ? "Unknown" : "GTIN";
685
- }, gt = (e) => {
685
+ return pt(t) === void 0 ? Y(t) === void 0 ? "Unknown" : "GTIN" : "ISBN";
686
+ }, _t = (e) => {
686
687
  switch (e.trim().toLowerCase()) {
687
688
  case "isbn": return "ISBN";
688
689
  case "gtin": return "GTIN";
@@ -694,7 +695,7 @@ var Ue = async ({ archive: e, archiveOpf: t }) => {
694
695
  case "unknown": return "Unknown";
695
696
  default: return e.trim();
696
697
  }
697
- }, _t = {
698
+ }, vt = {
698
699
  art: "artist",
699
700
  aut: "author",
700
701
  clr: "colorist",
@@ -703,14 +704,14 @@ var Ue = async ({ archive: e, archiveOpf: t }) => {
703
704
  ill: "illustrator",
704
705
  nrt: "narrator",
705
706
  trl: "translator"
706
- }, vt = (e) => e.map((e) => {
707
- let t = e.roles.map((e) => _t[e.trim().toLowerCase()] ?? e);
707
+ }, yt = (e) => e.map((e) => {
708
+ let t = e.roles.map((e) => vt[e.trim().toLowerCase()] ?? e);
708
709
  return H({
709
710
  name: e.name,
710
711
  roles: t.length > 0 ? t : [e.source === "creator" ? "author" : "contributor"],
711
712
  sortAs: e.fileAs
712
713
  });
713
- }), Y = (e, t) => e.refines !== void 0 && e.refines.replace(/^#/, "") === t, yt = {
714
+ }), X = (e, t) => e.refines !== void 0 && e.refines.replace(/^#/, "") === t, bt = {
714
715
  "02": "ISBN",
715
716
  "03": "GTIN",
716
717
  "04": "UPC",
@@ -726,49 +727,49 @@ var Ue = async ({ archive: e, archiveOpf: t }) => {
726
727
  26: "DOI",
727
728
  34: "GTIN",
728
729
  35: "ARK"
729
- }, bt = (e) => {
730
+ }, xt = (e) => {
730
731
  let t = e?.value?.trim();
731
- if (!(t === void 0 || t.length === 0)) return e?.scheme?.trim().toLowerCase() === "onix:codelist5" ? yt[t] ?? t : t;
732
- }, xt = (e, t) => {
732
+ if (!(t === void 0 || t.length === 0)) return e?.scheme?.trim().toLowerCase() === "onix:codelist5" ? bt[t] ?? t : t;
733
+ }, St = (e, t) => {
733
734
  let n = e.id;
734
- if (n !== void 0) return bt(t.find((e) => e.property === "identifier-type" && Y(e, n) && e.value !== void 0));
735
- }, St = (e) => {
735
+ if (n !== void 0) return xt(t.find((e) => e.property === "identifier-type" && X(e, n) && e.value !== void 0));
736
+ }, Ct = (e) => {
736
737
  let t = e?.trim();
737
738
  if (t === void 0 || !/^\d+(\.\d+)?$/.test(t)) return;
738
739
  let n = Number.parseFloat(t);
739
740
  return Number.isFinite(n) ? n : void 0;
740
- }, Ct = (e) => {
741
+ }, wt = (e) => {
741
742
  let t = e?.trim();
742
743
  if (t === void 0 || !/^\d+$/.test(t)) return;
743
744
  let n = Number.parseInt(t, 10);
744
745
  return Number.isFinite(n) ? n : void 0;
745
- }, X = (e) => {
746
+ }, Z = (e) => {
746
747
  let t = e?.trim();
747
748
  return t !== void 0 && t.length > 0 ? t : void 0;
748
- }, Z = (e, t, n) => t === void 0 ? void 0 : e.find((e) => Y(e, t) && e.property === n && e.value !== void 0)?.value, wt = (e, t) => e.map((e) => H({
749
+ }, Q = (e, t, n) => t === void 0 ? void 0 : e.find((e) => X(e, t) && e.property === n && e.value !== void 0)?.value, Tt = (e, t) => e.map((e) => H({
749
750
  value: e.value,
750
- type: X(Z(t, e.id, "title-type"))?.toLowerCase(),
751
- displaySeq: Ct(Z(t, e.id, "display-seq")),
752
- sortAs: X(Z(t, e.id, "file-as"))
753
- })), Tt = (e, t) => {
751
+ type: Z(Q(t, e.id, "title-type"))?.toLowerCase(),
752
+ displaySeq: wt(Q(t, e.id, "display-seq")),
753
+ sortAs: Z(Q(t, e.id, "file-as"))
754
+ })), Et = (e, t) => {
754
755
  if (t === void 0) return;
755
756
  let n = e.flatMap((n) => {
756
- if (!Y(n, t) || n.property !== "dcterms:identifier") return [];
757
- let r = X(n.value);
757
+ if (!X(n, t) || n.property !== "dcterms:identifier") return [];
758
+ let r = Z(n.value);
758
759
  return r === void 0 ? [] : [{
759
760
  value: r,
760
- scheme: gt(bt(e.find((e) => n.id !== void 0 && Y(e, n.id) && e.property === "identifier-type")) ?? ht(r))
761
+ scheme: _t(xt(e.find((e) => n.id !== void 0 && X(e, n.id) && e.property === "identifier-type")) ?? gt(r))
761
762
  }];
762
763
  });
763
764
  return n.length > 0 ? n : void 0;
764
- }, Et = (e) => {
765
+ }, Dt = (e) => {
765
766
  let t = [], n = [];
766
767
  for (let r of e) {
767
768
  if (r.property !== "belongs-to-collection" || r.value === void 0) continue;
768
- let i = r.id, a = (t) => Z(e, i, t), o = a("collection-type")?.trim().toLowerCase(), s = H({
769
+ let i = r.id, a = (t) => Q(e, i, t), o = a("collection-type")?.trim().toLowerCase(), s = H({
769
770
  name: r.value,
770
- identifiers: Tt(e, i),
771
- position: St(a("group-position"))
771
+ identifiers: Et(e, i),
772
+ position: Ct(a("group-position"))
772
773
  });
773
774
  o === "series" ? t.push(s) : n.push(s);
774
775
  }
@@ -776,25 +777,25 @@ var Ue = async ({ archive: e, archiveOpf: t }) => {
776
777
  let n = e.find((e) => e.name?.toLowerCase() === "calibre:series" && e.content !== void 0)?.content;
777
778
  n !== void 0 && t.push(H({
778
779
  name: n,
779
- position: St(e.find((e) => e.name?.toLowerCase() === "calibre:series_index")?.content)
780
+ position: Ct(e.find((e) => e.name?.toLowerCase() === "calibre:series_index")?.content)
780
781
  }));
781
782
  }
782
783
  return {
783
784
  series: t,
784
785
  collection: n
785
786
  };
786
- }, Dt = (e) => {
787
+ }, Ot = (e) => {
787
788
  let t = e?.trim();
788
789
  if (t === "scrolled-continuous" || t === "scrolled-doc" || t === "paginated" || t === "auto") return t;
789
- }, Ot = (e) => {
790
+ }, kt = (e) => {
790
791
  let t = e?.trim();
791
792
  if (t === "none" || t === "landscape" || t === "portrait" || t === "both" || t === "auto") return t;
792
- }, kt = (e) => {
793
- let { titles: t, contributors: n, publisher: r, description: i, rights: a, languages: o, subjects: s, date: c, renditionLayoutMeta: l, renditionFlowMeta: u, renditionSpreadMeta: d, pageProgressionDirection: f, identifiers: p, metas: m, kind: h, creators: g, manifestItems: _, spineRows: v, spineTocIdref: y, coverHref: b, guide: x, ...S } = e, C = f?.trim().toLowerCase(), w = C === "ltr" || C === "rtl" ? C : void 0, T = l?.trim().toLowerCase(), E = T === "reflowable" || T === "pre-paginated" ? T : void 0, D = vt(n), O = wt(t, m), { series: k, collection: A } = Et(m), j = k.length > 0 || A.length > 0 ? H({
793
+ }, At = (e) => {
794
+ let { titles: t, contributors: n, publisher: r, description: i, rights: a, languages: o, subjects: s, date: c, renditionLayoutMeta: l, renditionFlowMeta: u, renditionSpreadMeta: d, pageProgressionDirection: f, identifiers: p, metas: m, kind: h, creators: g, manifestItems: _, spineRows: v, spineTocIdref: y, coverHref: b, guide: x, ...S } = e, C = f?.trim().toLowerCase(), w = C === "ltr" || C === "rtl" ? C : void 0, T = l?.trim().toLowerCase(), E = T === "reflowable" || T === "pre-paginated" ? T : void 0, D = yt(n), O = Tt(t, m), { series: k, collection: A } = Dt(m), j = k.length > 0 || A.length > 0 ? H({
794
795
  series: k.length > 0 ? k : void 0,
795
796
  collection: A.length > 0 ? A : void 0
796
797
  }) : void 0, M = H({
797
- date: mt(c),
798
+ date: ht(c),
798
799
  publisher: r
799
800
  });
800
801
  return H({
@@ -807,18 +808,18 @@ var Ue = async ({ archive: e, archiveOpf: t }) => {
807
808
  contributors: D.length > 0 ? D : void 0,
808
809
  readingDirection: w,
809
810
  renditionLayout: E,
810
- renditionFlow: Dt(u),
811
- renditionSpread: Ot(d),
811
+ renditionFlow: Ot(u),
812
+ renditionSpread: kt(d),
812
813
  identifiers: p.length > 0 ? p.map((e) => H({
813
814
  value: e.value,
814
- scheme: gt(e.scheme ?? xt(e, m) ?? ht(e.value)),
815
+ scheme: _t(e.scheme ?? St(e, m) ?? gt(e.value)),
815
816
  unique: e.unique
816
817
  })) : void 0,
817
818
  belongsTo: j,
818
819
  properties: m.length > 0 ? [...m] : void 0
819
820
  });
820
- }, At = (e) => e.kind === "comicInfo" ? ct(e) : e.kind === "kobo" ? lt(e) : e.kind === "apple" ? Ke(e) : kt(e), jt = (e) => {
821
- let t = e.opf === void 0 ? void 0 : kt(e.opf), n = e.comicInfo === void 0 ? void 0 : ct(e.comicInfo), r = e.apple === void 0 ? void 0 : Ke(e.apple), i = e.kobo === void 0 ? void 0 : lt(e.kobo), a = [...t?.identifiers ?? [], ...n?.identifiers ?? []], o = H({
821
+ }, jt = (e) => e.kind === "comicInfo" ? ct(e) : e.kind === "kobo" ? lt(e) : e.kind === "apple" ? Ke(e) : At(e), Mt = (e) => {
822
+ let t = e.opf === void 0 ? void 0 : At(e.opf), n = e.comicInfo === void 0 ? void 0 : ct(e.comicInfo), r = e.apple === void 0 ? void 0 : Ke(e.apple), i = e.kobo === void 0 ? void 0 : lt(e.kobo), a = [...t?.identifiers ?? [], ...n?.identifiers ?? []], o = H({
822
823
  date: t?.publication?.edition?.date ?? n?.publication?.edition?.date,
823
824
  publisher: t?.publication?.edition?.publisher ?? n?.publication?.edition?.publisher,
824
825
  imprint: t?.publication?.edition?.imprint ?? n?.publication?.edition?.imprint
@@ -844,7 +845,7 @@ var Ue = async ({ archive: e, archiveOpf: t }) => {
844
845
  apple: r?.apple,
845
846
  kobo: i?.kobo
846
847
  });
847
- }, Mt = (e) => {
848
+ }, Nt = (e) => {
848
849
  let t = [...e.records].sort((e, t) => p(e.uri, t.uri)), n = (e, t, r, i, a) => {
849
850
  let o = e.find((e) => e.title === t), [s, ...c] = r;
850
851
  return o ? s ? [...e.filter((e) => e !== o), {
@@ -873,71 +874,71 @@ var Ue = async ({ archive: e, archiveOpf: t }) => {
873
874
  let a = encodeURI(t.uri).replace(/#/g, "%23").replace(/\?/g, "%3F").replace(/\/$/, ""), o = t.uri.replace(/\/$/, "");
874
875
  return n(e, r, i, a, o);
875
876
  }, []);
876
- }, Nt = (e) => e ? e.children.map((e) => e instanceof _ ? e.text : e instanceof g ? Nt(e) : "").join("").trim() : "", Pt = (e) => k(e.properties).includes("nav"), Q = (e, { basePath: t }) => {
877
+ }, Pt = (e) => e ? e.children.map((e) => e instanceof _ ? e.text : e instanceof g ? Pt(e) : "").join("").trim() : "", Ft = (e) => k(e.properties).includes("nav"), It = (e, { basePath: t }) => {
877
878
  let n = {
878
879
  contents: [],
879
880
  path: "",
880
881
  containerHref: "",
881
882
  title: ""
882
883
  }, r = e.childNamed("span") || e.childNamed("a");
883
- n.title = (r?.attr.title || r?.val.trim() || Nt(r)) ?? "";
884
+ n.title = (r?.attr.title || r?.val.trim() || Pt(r)) ?? "";
884
885
  let i = r?.name;
885
886
  i !== "a" && (r = e.descendantWithPath(`${i}.a`), r && (i = r.name.toLowerCase())), i === "a" && r?.attr.href && (n.path = m(t, r.attr.href), n.containerHref = n.path);
886
887
  let a = e.childNamed("ol");
887
888
  if (a) {
888
889
  let e = a.childrenNamed("li");
889
- e && e.length > 0 && (n.contents = e.map((e) => Q(e, { basePath: t })));
890
+ e && e.length > 0 && (n.contents = e.map((e) => It(e, { basePath: t })));
890
891
  }
891
892
  return n;
892
- }, Ft = (e, { basePath: t }) => {
893
+ }, Lt = (e, { basePath: t }) => {
893
894
  let n = [], r;
894
895
  return e.descendantWithPath("body.nav.ol") ? r = e.descendantWithPath("body.nav.ol")?.children : e.descendantWithPath("body.section.nav.ol") && (r = e.descendantWithPath("body.section.nav.ol")?.children), r && r.length > 0 && r.filter((e) => e instanceof g && e.name === "li").forEach((e) => {
895
- n.push(Q(e, { basePath: t }));
896
+ n.push(It(e, { basePath: t }));
896
897
  }), n;
897
- }, It = async (e, t) => {
898
- let n = e.manifestItems.find(Pt);
898
+ }, Rt = async (e, t) => {
899
+ let n = e.manifestItems.find(Ft);
899
900
  if (n?.href) {
900
901
  let e = t.records.find((e) => e.uri.endsWith(n.href));
901
- if (e && !e.dir) return Ft(new h(await D(e)), { basePath: c(e.uri) });
902
+ if (e && !e.dir) return Lt(new h(await D(e)), { basePath: c(e.uri) });
902
903
  }
903
- }, Lt = (e, { basePath: t, prefix: n }) => {
904
+ }, zt = (e, { basePath: t, prefix: n }) => {
904
905
  let r = m(t, e?.childNamed(`${n}content`)?.attr.src || ""), i = {
905
906
  title: e?.descendantWithPath(`${n}navLabel.${n}text`)?.val || "",
906
907
  path: r,
907
908
  containerHref: r,
908
909
  contents: []
909
910
  }, a = e.childrenNamed(`${n}navPoint`);
910
- return a && a.length > 0 && (i.contents = a.map((e) => Lt(e, {
911
+ return a && a.length > 0 && (i.contents = a.map((e) => zt(e, {
911
912
  basePath: t,
912
913
  prefix: n
913
914
  }))), i;
914
- }, Rt = (e, { basePath: t }) => {
915
+ }, Bt = (e, { basePath: t }) => {
915
916
  let n = [], r = e.name, i = "";
916
917
  return r.indexOf(":") !== -1 && (i = `${r.split(":")[0]}:`), e.childNamed(`${i}navMap`)?.childrenNamed(`${i}navPoint`).forEach((e) => {
917
- n.push(Lt(e, {
918
+ n.push(zt(e, {
918
919
  basePath: t,
919
920
  prefix: i
920
921
  }));
921
922
  }), n;
922
- }, zt = async ({ opf: e, opfBasePath: t, archive: n }) => {
923
+ }, Vt = async ({ opf: e, opfBasePath: t, archive: n }) => {
923
924
  let r = e.spineTocIdref;
924
925
  if (r) {
925
926
  let i = e.manifestItems.find((e) => e.id === r);
926
927
  if (i) {
927
928
  let e = `${t}${t === "" ? "" : "/"}${i.href}`, r = n.records.find((t) => t.uri.endsWith(e));
928
- if (r && !r.dir) return Rt(new h(await D(r)), { basePath: c(r.uri) });
929
+ if (r && !r.dir) return Bt(new h(await D(r)), { basePath: c(r.uri) });
929
930
  }
930
931
  }
931
- }, Bt = async (e, { opf: t } = {}) => {
932
+ }, Ht = async (e, { opf: t } = {}) => {
932
933
  let n = t ?? await z(e);
933
- if (n) return await It(n.opf, e) || await zt({
934
+ if (n) return await Rt(n.opf, e) || await Vt({
934
935
  opf: n.opf,
935
936
  opfBasePath: n.basePath,
936
937
  archive: e
937
938
  }) || [];
938
- let r = Mt(e);
939
+ let r = Nt(e);
939
940
  return r.length === 0 ? void 0 : r;
940
- }, Vt = [
941
+ }, Ut = [
941
942
  "metadata",
942
943
  "readingOrder",
943
944
  "toc"
@@ -953,14 +954,14 @@ var Ue = async ({ archive: e, archiveOpf: t }) => {
953
954
  failed: !0
954
955
  };
955
956
  }
956
- }, Ht = (e) => {
957
+ }, Wt = (e) => {
957
958
  let t = (e) => e?.startsWith("audio/") === !0 || e?.startsWith("video/") === !0, n = e.filter((e) => e.renditionLayout === "pre-paginated" && !t(e.mediaType)).length;
958
959
  return n > 0 ? n : void 0;
959
- }, Ut = ({ archive: e, opf: t, comicInfo: n, apple: r, kobo: i }) => {
960
+ }, Gt = ({ archive: e, opf: t, comicInfo: n, apple: r, kobo: i }) => {
960
961
  let a = [];
961
962
  return t !== void 0 && t.value === void 0 && (t.failed || Ge(e)) && a.push("opf"), n?.failed && a.push("comicInfo"), r?.failed && a.push("apple"), i?.failed && a.push("kobo"), a;
962
- }, Wt = 3, Gt = async (e, t = {}) => {
963
- let n = new Set(t.include ?? Vt), r = n.has("metadata"), i = n.has("sources"), a = n.has("readingOrder"), o = n.has("toc"), s = t.layoutScan === !0 && (r || a), c = r || i || a || o ? await $(() => z(e), "opf") : void 0, l = c?.value, u = r || i || s, d = u ? await $(() => Ve(e), "comicInfo") : void 0, f = d?.value, p = u ? await $(() => Ie(e), "apple") : void 0, m = p?.value, h = u ? await $(() => He(e), "kobo") : void 0, g = h?.value, _ = r || s ? jt({
963
+ }, Kt = 3, qt = async (e, t = {}) => {
964
+ let n = new Set(t.include ?? Ut), r = n.has("metadata"), i = n.has("sources"), a = n.has("readingOrder"), o = n.has("toc"), s = t.layoutScan === !0 && (r || a), c = r || i || a || o ? await $(() => z(e), "opf") : void 0, l = c?.value, u = r || i || s, d = u ? await $(() => Ve(e), "comicInfo") : void 0, f = d?.value, p = u ? await $(() => Ie(e), "apple") : void 0, m = p?.value, h = u ? await $(() => He(e), "kobo") : void 0, g = h?.value, _ = r || s ? Mt({
964
965
  opf: l?.opf,
965
966
  comicInfo: f,
966
967
  apple: m,
@@ -976,16 +977,16 @@ var Ue = async ({ archive: e, archiveOpf: t }) => {
976
977
  let t = v ?? await U(e, { opf: l }), n = await Me(e, {
977
978
  opf: l,
978
979
  readingOrder: t
979
- }), r = _.numberOfPages ?? Ht(t);
980
+ }), r = _.numberOfPages ?? Wt(t);
980
981
  _ = H({
981
982
  ..._,
982
983
  cover: n,
983
984
  numberOfPages: r
984
985
  });
985
986
  }
986
- let y = o ? (await $(() => Bt(e, { opf: l }), "toc")).value : void 0, b = {
987
- version: Wt,
988
- unreadableSources: Ut({
987
+ let y = o ? (await $(() => Ht(e, { opf: l }), "toc")).value : void 0, b = {
988
+ version: Kt,
989
+ unreadableSources: Gt({
989
990
  archive: e,
990
991
  opf: c,
991
992
  comicInfo: d,
@@ -999,8 +1000,14 @@ var Ue = async ({ archive: e, archiveOpf: t }) => {
999
1000
  apple: m,
1000
1001
  kobo: g
1001
1002
  })), b;
1002
- }, Kt = (e) => e?.titles?.[0]?.value;
1003
+ }, Jt = (e) => e === "ISBN" || e === "GTIN", Yt = (e, t) => {
1004
+ for (let n of e ?? []) {
1005
+ if (!Jt(n.scheme)) continue;
1006
+ let e = t(n.value);
1007
+ if (e !== void 0) return e;
1008
+ }
1009
+ }, Xt = (e) => Yt(e, pt), Zt = (e) => Yt(e, Y), Qt = (e) => e?.titles?.[0]?.value;
1003
1010
  //#endregion
1004
- export { B as APPLE_IBOOKS_DISPLAY_OPTIONS_FILENAME, V as COMIC_INFO_FILENAME, he as COMIC_INFO_KNOWN_FIELDS, ze as COMIC_INFO_MANGA_VALUES, be as KOBO_DISPLAY_OPTIONS_FILENAME, i as arrayBufferFileAccessors, r as blobFileAccessors, e as createArchive, v as createArchiveFromArrayBufferList, n as createArchiveFromEntries, y as createArchiveFromText, b as createArchiveFromUrls, C as getArchiveFileRecordByUri, Re as getArchiveHasComicInfo, E as getArchiveImageRecords, O as getArchiveOpfInfo, Ue as getSpineItemFilesFromArchive, Ge as isArchiveEpub, Be as isComicInfoManga, S as isDirectoryRecord, x as isFileRecord, T as isImageRecord, Kt as mainTitle, dt as normalizeGtin, pt as normalizeIsbn, me as parseAppleDisplayOptionsXml, ye as parseComicInfo, Se as parseKoboXml, fe as parseOpf, mt as parseW3cDtfDate, Ie as readArchiveApple, Ve as readArchiveComicInfo, He as readArchiveKobo, z as readArchiveOpf, D as readRecordAsText, Pe as readingOrderDocumentsAllHaveViewport, Gt as resolveArchive, Me as resolveArchiveCover, At as resolveArchiveMetadata, U as resolveArchiveReadingOrder, Bt as resolveArchiveToc, jt as resolveMetadata, k as tokenizeXmlSpaceSeparatedList };
1011
+ export { B as APPLE_IBOOKS_DISPLAY_OPTIONS_FILENAME, V as COMIC_INFO_FILENAME, he as COMIC_INFO_KNOWN_FIELDS, ze as COMIC_INFO_MANGA_VALUES, be as KOBO_DISPLAY_OPTIONS_FILENAME, i as arrayBufferFileAccessors, r as blobFileAccessors, e as createArchive, v as createArchiveFromArrayBufferList, n as createArchiveFromEntries, y as createArchiveFromText, b as createArchiveFromUrls, C as getArchiveFileRecordByUri, Re as getArchiveHasComicInfo, E as getArchiveImageRecords, O as getArchiveOpfInfo, Ue as getSpineItemFilesFromArchive, Zt as gtinIdentifierValue, Ge as isArchiveEpub, Be as isComicInfoManga, S as isDirectoryRecord, x as isFileRecord, T as isImageRecord, Jt as isIsbnBearingScheme, Xt as isbnIdentifierValue, Qt as mainTitle, Y as normalizeGtin, ft as normalizeIsbn, me as parseAppleDisplayOptionsXml, ye as parseComicInfo, Se as parseKoboXml, fe as parseOpf, ht as parseW3cDtfDate, Ie as readArchiveApple, Ve as readArchiveComicInfo, He as readArchiveKobo, z as readArchiveOpf, D as readRecordAsText, Pe as readingOrderDocumentsAllHaveViewport, qt as resolveArchive, Me as resolveArchiveCover, jt as resolveArchiveMetadata, U as resolveArchiveReadingOrder, Ht as resolveArchiveToc, Mt as resolveMetadata, k as tokenizeXmlSpaceSeparatedList };
1005
1012
 
1006
1013
  //# sourceMappingURL=index.js.map