@talisdev/bibliographic-resource-parsers-lib 5.39.0 → 5.41.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.
@@ -3389,17 +3389,17 @@ var ts = (e) => {
3389
3389
  case Ws.Guideline: return zs(t, e);
3390
3390
  case void 0: return z();
3391
3391
  }
3392
- }, Js = j({ "@context": O() }), Ys = (e) => Js.safeParse(e).success, Xs = "script[type=\"application/ld+json\"]", Zs = (e) => Array.from(e.querySelectorAll(Xs)), Qs = (e) => e.querySelector(Xs), $s = (e) => {
3392
+ }, W = j({ "@context": O() }), Js = (e) => W.safeParse(e).success, Ys = "script[type=\"application/ld+json\"]", Xs = (e) => Array.from(e.querySelectorAll(Ys)), Zs = (e) => e.querySelector(Ys), Qs = (e) => {
3393
3393
  let t = e.textContent;
3394
3394
  if (!t) return null;
3395
3395
  try {
3396
3396
  let e = JSON.parse(t);
3397
- if (Ys(e)) return e;
3397
+ if (Js(e)) return e;
3398
3398
  } catch {
3399
3399
  return null;
3400
3400
  }
3401
3401
  return null;
3402
- }, ec = j({
3402
+ }, $s = j({
3403
3403
  "@id": O(),
3404
3404
  "@type": O(),
3405
3405
  author: j({ "@id": O() }).optional(),
@@ -3410,33 +3410,33 @@ var ts = (e) => {
3410
3410
  isPartOf: j({ "@id": O() }).optional(),
3411
3411
  name: O().optional(),
3412
3412
  url: O().optional()
3413
- }), tc = Js.extend({ "@graph": A(ec) }), nc = (e) => tc.safeParse(e).success, rc = (e) => {
3414
- let t = Zs(e);
3413
+ }), ec = W.extend({ "@graph": A($s) }), tc = (e) => ec.safeParse(e).success, nc = (e) => {
3414
+ let t = Xs(e);
3415
3415
  if (t.length === 0) return null;
3416
- let n = t.map($s).filter(nc).map((e) => e["@graph"]);
3416
+ let n = t.map(Qs).filter(tc).map((e) => e["@graph"]);
3417
3417
  return n.length === 1 ? n[0] : null;
3418
- }, ic = (e, t) => e.find((e) => e["@type"] === t) ?? null, ac = (e, t) => e.find((e) => e["@id"] === t) ?? null, oc = (e) => {
3419
- let t = ic(e, "WebPage");
3418
+ }, rc = (e, t) => e.find((e) => e["@type"] === t) ?? null, ic = (e, t) => e.find((e) => e["@id"] === t) ?? null, ac = (e) => {
3419
+ let t = rc(e, "WebPage");
3420
3420
  if (!t) return null;
3421
- let n = t.author ? ac(e, t.author["@id"]) : void 0;
3421
+ let n = t.author ? ic(e, t.author["@id"]) : void 0;
3422
3422
  return _o({
3423
3423
  au: n?.name ? [n.name] : void 0,
3424
3424
  date: t.datePublished,
3425
3425
  title: t.name
3426
3426
  });
3427
- }, sc = ({ document: e }) => {
3428
- let t = rc(e);
3427
+ }, oc = ({ document: e }) => {
3428
+ let t = nc(e);
3429
3429
  return t ? {
3430
3430
  bookmarkingWorkflowUrl: null,
3431
- resource: oc(t)
3431
+ resource: ac(t)
3432
3432
  } : z();
3433
- }, cc = () => z(), lc = /* @__PURE__ */ function(e) {
3433
+ }, sc = () => z(), cc = /* @__PURE__ */ function(e) {
3434
3434
  return e.Journal = "journal", e.Article = "article", e;
3435
- }(lc || {}), uc = (e) => {
3435
+ }(cc || {}), lc = (e) => {
3436
3436
  let { pathname: t } = new URL(e);
3437
- if (t.startsWith("/toc/")) return lc.Journal;
3438
- if (t.startsWith("/article/")) return lc.Article;
3439
- }, dc = (e) => {
3437
+ if (t.startsWith("/toc/")) return cc.Journal;
3438
+ if (t.startsWith("/article/")) return cc.Article;
3439
+ }, uc = (e) => {
3440
3440
  let t = e.querySelector("header h1 span")?.firstChild?.textContent?.trim(), n = (e.querySelector("header p span")?.textContent.trim())?.match(/\d{4}-\d{3}[\dX]/g) ?? [], [r, i] = [n[0], n[1]], a = e.evaluate("//dt[contains(text(), \"Publisher\")]/following-sibling::dd/a", e, null, XPathResult.STRING_TYPE).stringValue.trim();
3441
3441
  return B(L(F.Journal, {
3442
3442
  pub: a,
@@ -3444,14 +3444,14 @@ var ts = (e) => {
3444
3444
  issn: r,
3445
3445
  eissn: i
3446
3446
  }));
3447
- }, fc = (e) => {
3447
+ }, dc = (e) => {
3448
3448
  let t, n, r = H(e, "name", "citation_issn");
3449
3449
  return r.length === 2 ? (t = r[1], n = r[0]) : t = r[0], {
3450
3450
  eissn: t,
3451
3451
  issn: n
3452
3452
  };
3453
- }, pc = (e) => {
3454
- let t = V(e, "name", "citation_journal_title"), n = V(e, "name", "citation_title"), r = H(e, "name", "citation_author"), i = V(e, "name", "citation_doi"), { eissn: a, issn: o } = fc(e), s = V(e, "name", "citation_publisher"), c = V(e, "name", "citation_publication_date"), l = V(e, "name", "citation_volume"), u = V(e, "name", "citation_issue"), d = V(e, "name", "citation_firstpage"), f = V(e, "name", "citation_lastpage");
3453
+ }, fc = (e) => {
3454
+ let t = V(e, "name", "citation_journal_title"), n = V(e, "name", "citation_title"), r = H(e, "name", "citation_author"), i = V(e, "name", "citation_doi"), { eissn: a, issn: o } = dc(e), s = V(e, "name", "citation_publisher"), c = V(e, "name", "citation_publication_date"), l = V(e, "name", "citation_volume"), u = V(e, "name", "citation_issue"), d = V(e, "name", "citation_firstpage"), f = V(e, "name", "citation_lastpage");
3455
3455
  return B(L(F.Article, {
3456
3456
  jtitle: t,
3457
3457
  atitle: n,
@@ -3466,13 +3466,13 @@ var ts = (e) => {
3466
3466
  spage: d,
3467
3467
  epage: f
3468
3468
  }));
3469
- }, mc = ({ document: e, url: t }) => {
3470
- switch (uc(t)) {
3471
- case lc.Journal: return dc(e);
3472
- case lc.Article: return pc(e);
3469
+ }, pc = ({ document: e, url: t }) => {
3470
+ switch (lc(t)) {
3471
+ case cc.Journal: return uc(e);
3472
+ case cc.Article: return fc(e);
3473
3473
  case void 0: return z();
3474
3474
  }
3475
- }, hc = (e) => {
3475
+ }, mc = (e) => {
3476
3476
  let t = V(e, "name", "pbContext");
3477
3477
  if (!t) return U.None;
3478
3478
  let n = ds(t);
@@ -3481,23 +3481,23 @@ var ts = (e) => {
3481
3481
  case "Table of Contents": return U.Journal;
3482
3482
  default: return U.None;
3483
3483
  }
3484
- }, gc = (e) => {
3484
+ }, hc = (e) => {
3485
3485
  let t = e.querySelector("meta[property=\"article:author\"]")?.getAttribute("content")?.split(",").map((e) => e.trim());
3486
3486
  return t && t.length > 0 ? t : void 0;
3487
- }, _c = (e) => {
3487
+ }, gc = (e) => {
3488
3488
  let t = /* @__PURE__ */ new Map(), n = Array.from(e.querySelectorAll(".rlist>li>span")).map((e) => e.textContent.trim()).join(""), r = /^ISSN:\s(\d{4}-\d{3}(?:\d|X))/.exec(n);
3489
3489
  r && t.set("issn", r[1]);
3490
3490
  let i = /Online ISSN:\s(\d{4}-\d{3}(?:\d|X))/.exec(n);
3491
3491
  return i && t.set("eissn", i[1]), t;
3492
- }, vc = (e) => e.querySelector("span[property=\"isPartOf\"][typeof=\"PublicationVolume\"] > span[property=\"volumeNumber\"]")?.textContent ?? void 0, yc = (e) => e.querySelector("span[property=\"isPartOf\"][typeof=\"PublicationIssue\"] > span[property=\"issueNumber\"]")?.textContent ?? void 0, bc = (e) => e.querySelector("meta[name=\"dc.Identifier\"][scheme=\"doi\"]")?.getAttribute("content") ?? void 0, xc = (e) => e.querySelector("h1")?.textContent ?? void 0, Sc = (e) => {
3492
+ }, _c = (e) => e.querySelector("span[property=\"isPartOf\"][typeof=\"PublicationVolume\"] > span[property=\"volumeNumber\"]")?.textContent ?? void 0, vc = (e) => e.querySelector("span[property=\"isPartOf\"][typeof=\"PublicationIssue\"] > span[property=\"issueNumber\"]")?.textContent ?? void 0, yc = (e) => e.querySelector("meta[name=\"dc.Identifier\"][scheme=\"doi\"]")?.getAttribute("content") ?? void 0, bc = (e) => e.querySelector("h1")?.textContent ?? void 0, xc = (e) => {
3493
3493
  let t = /* @__PURE__ */ new Map(), n = e.querySelector("h2.heading-m")?.textContent, r = n?.match(/Issue\s+(\d+(?:-\d+)?)/);
3494
3494
  r && t.set("issue", r[1]);
3495
3495
  let i = n?.match(/Volume\s+(\d+)/);
3496
3496
  i && t.set("volume", i[1]);
3497
3497
  let a = n?.match(/(\d{4})$/);
3498
3498
  return a && t.set("date", a[1]), t;
3499
- }, Cc = (e) => {
3500
- let t = gc(e.document), n = V(e.document, "name", "dc.Date"), r = bc(e.document), i = _c(e.document), a = i.get("issn"), o = i.get("eissn"), s = yc(e.document), c = V(e.document, "name", "citation_journal_title"), l = V(e.document, "name", "dc.Publisher"), u = V(e.document, "name", "dc.Title"), d = vc(e.document);
3499
+ }, Sc = (e) => {
3500
+ let t = hc(e.document), n = V(e.document, "name", "dc.Date"), r = yc(e.document), i = gc(e.document), a = i.get("issn"), o = i.get("eissn"), s = vc(e.document), c = V(e.document, "name", "citation_journal_title"), l = V(e.document, "name", "dc.Publisher"), u = V(e.document, "name", "dc.Title"), d = _c(e.document);
3501
3501
  return L(F.Article, {
3502
3502
  au: t,
3503
3503
  date: n,
@@ -3510,8 +3510,8 @@ var ts = (e) => {
3510
3510
  volume: d,
3511
3511
  doi: r
3512
3512
  });
3513
- }, wc = (e) => {
3514
- let t = _c(e.document), n = t.get("issn"), r = t.get("eissn"), i = xc(e.document), a = Sc(e.document), o = a.get("issue"), s = a.get("volume"), c = a.get("date");
3513
+ }, Cc = (e) => {
3514
+ let t = gc(e.document), n = t.get("issn"), r = t.get("eissn"), i = bc(e.document), a = xc(e.document), o = a.get("issue"), s = a.get("volume"), c = a.get("date");
3515
3515
  return L(F.Journal, {
3516
3516
  eissn: r,
3517
3517
  issn: n,
@@ -3521,33 +3521,33 @@ var ts = (e) => {
3521
3521
  volume: s,
3522
3522
  date: c
3523
3523
  });
3524
- }, Tc = (e) => {
3525
- switch (hc(e.document)) {
3526
- case U.Article: return B(Cc(e));
3527
- case U.Journal: return B(wc(e));
3524
+ }, wc = (e) => {
3525
+ switch (mc(e.document)) {
3526
+ case U.Article: return B(Sc(e));
3527
+ case U.Journal: return B(Cc(e));
3528
3528
  default: return z();
3529
3529
  }
3530
- }, Ec = (e) => {
3530
+ }, Tc = (e) => {
3531
3531
  let t = V(e, "name", "citation_type"), n = V(e, "name", "citation_article_type");
3532
3532
  return t === "JOUR" && n ? U.Article : t === "CHP" ? U.Chapter : e.querySelector(".book-edition-year")?.textContent.includes("Book") ? U.Book : e.getElementById("journal-title") ? U.Journal : U.None;
3533
- }, Dc = (e) => V(e, "name", "citation_doi") ?? V(e, "name", "dc.identifier") ?? e.querySelector(".doi .anchor-text")?.textContent ?? void 0, Oc = (e) => {
3533
+ }, Ec = (e) => V(e, "name", "citation_doi") ?? V(e, "name", "dc.identifier") ?? e.querySelector(".doi .anchor-text")?.textContent ?? void 0, Dc = (e) => {
3534
3534
  let t = Array.from(e.querySelectorAll(".kf-details .kf-detail-item:has(h3)")), n = /* @__PURE__ */ new Map();
3535
3535
  for (let e of t) {
3536
3536
  let t = e.querySelector("h3")?.textContent, r = e.querySelector("p")?.textContent;
3537
3537
  t && r && n.set(t, r);
3538
3538
  }
3539
3539
  return n;
3540
- }, kc = (e, t) => {
3540
+ }, Oc = (e, t) => {
3541
3541
  let n = Array.from(e.querySelectorAll(t)).map((e) => e.textContent).filter((e) => !!e);
3542
3542
  return n.length > 0 ? n : void 0;
3543
- }, Ac = (e) => {
3543
+ }, kc = (e) => {
3544
3544
  let t = e.querySelector(".js-issn")?.textContent;
3545
3545
  if (t) return t.replace("Online ISSN: ", "");
3546
- }, jc = (e) => {
3546
+ }, Ac = (e) => {
3547
3547
  let t = e.get("DOI");
3548
3548
  if (t) return URL.canParse(t) ? new URL(t).pathname.substring(1) : t;
3549
- }, Mc = (e) => {
3550
- let t = Oc(e), n = V(e, "property", "og:title"), r = V(e, "property", "og:book:isbn"), i = t.get("Published"), a = kc(e, ".authors-container .author-detail h3"), o = Dc(e) ?? jc(t);
3549
+ }, jc = (e) => {
3550
+ let t = Dc(e), n = V(e, "property", "og:title"), r = V(e, "property", "og:book:isbn"), i = t.get("Published"), a = Oc(e, ".authors-container .author-detail h3"), o = Ec(e) ?? Ac(t);
3551
3551
  return I(F.Book, {
3552
3552
  au: a,
3553
3553
  date: i,
@@ -3555,8 +3555,8 @@ var ts = (e) => {
3555
3555
  isbn: r,
3556
3556
  title: n
3557
3557
  });
3558
- }, Nc = (e) => {
3559
- let t = V(e, "property", "og:title"), n = V(e, "property", "og:book:isbn"), r = V(e, "name", "citation_publication_date"), i = kc(e, ".author-group .button-link-text"), a = V(e, "name", "citation_firstpage"), o = V(e, "name", "citation_lastpage"), s = V(e, "name", "citation_publisher"), c = Dc(e), l = V(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3558
+ }, Mc = (e) => {
3559
+ let t = V(e, "property", "og:title"), n = V(e, "property", "og:book:isbn"), r = V(e, "name", "citation_publication_date"), i = Oc(e, ".author-group .button-link-text"), a = V(e, "name", "citation_firstpage"), o = V(e, "name", "citation_lastpage"), s = V(e, "name", "citation_publisher"), c = Ec(e), l = V(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3560
3560
  return I(F.Bookitem, {
3561
3561
  au: i,
3562
3562
  btitle: l,
@@ -3568,8 +3568,8 @@ var ts = (e) => {
3568
3568
  spage: a,
3569
3569
  title: t
3570
3570
  });
3571
- }, Pc = (e) => {
3572
- let t = V(e, "property", "og:title"), n = V(e, "name", "citation_issn"), r = V(e, "name", "citation_publication_date"), i = kc(e, ".author-group .button-link-text"), a = V(e, "name", "citation_publisher"), o = V(e, "name", "citation_firstpage"), s = V(e, "name", "citation_issue"), c = V(e, "name", "citation_volume"), l = Dc(e), u = V(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3571
+ }, Nc = (e) => {
3572
+ let t = V(e, "property", "og:title"), n = V(e, "name", "citation_issn"), r = V(e, "name", "citation_publication_date"), i = Oc(e, ".author-group .button-link-text"), a = V(e, "name", "citation_publisher"), o = V(e, "name", "citation_firstpage"), s = V(e, "name", "citation_issue"), c = V(e, "name", "citation_volume"), l = Ec(e), u = V(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3573
3573
  return L(F.Article, {
3574
3574
  au: i,
3575
3575
  jtitle: u,
@@ -3582,36 +3582,36 @@ var ts = (e) => {
3582
3582
  title: t,
3583
3583
  volume: c
3584
3584
  });
3585
- }, Fc = (e) => {
3586
- let t = e.getElementById("journal-title")?.textContent ?? void 0, n = Ac(e);
3585
+ }, Pc = (e) => {
3586
+ let t = e.getElementById("journal-title")?.textContent ?? void 0, n = kc(e);
3587
3587
  return L(F.Journal, {
3588
3588
  issn: n,
3589
3589
  title: t
3590
3590
  });
3591
- }, Ic = ({ document: e }) => {
3592
- switch (Ec(e)) {
3593
- case U.Book: return B(Mc(e));
3594
- case U.Chapter: return B(Nc(e));
3595
- case U.Article: return B(Pc(e));
3596
- case U.Journal: return B(Fc(e));
3591
+ }, Fc = ({ document: e }) => {
3592
+ switch (Tc(e)) {
3593
+ case U.Book: return B(jc(e));
3594
+ case U.Chapter: return B(Mc(e));
3595
+ case U.Article: return B(Nc(e));
3596
+ case U.Journal: return B(Pc(e));
3597
3597
  default: return z();
3598
3598
  }
3599
- }, Lc = (e) => {
3599
+ }, Ic = (e) => {
3600
3600
  let t = V(e, "name", "pbContext");
3601
3601
  return t && ds(t).has("article") ? U.Article : U.Journal;
3602
- }, Rc = (e) => {
3602
+ }, Lc = (e) => {
3603
3603
  let t = e.querySelector(".itemPageRangeHistory");
3604
3604
  if (!t) return;
3605
3605
  let n = Array.from(t.childNodes).find((e) => e.textContent?.trim().startsWith("Page"));
3606
3606
  if (n) return n.textContent?.replace(/Pages?/, "").trim() ?? void 0;
3607
- }, zc = (e) => {
3607
+ }, Rc = (e) => {
3608
3608
  let t = e.querySelector(".issue-heading")?.textContent;
3609
3609
  if (t) return t.split(",")[0]?.replace("Volume", "").trim();
3610
- }, Bc = (e) => {
3610
+ }, zc = (e) => {
3611
3611
  let t = e.querySelector(".issue-heading .nav-toc-list")?.textContent;
3612
3612
  if (t) return t.replace("Issue", "").trim();
3613
- }, Vc = (e) => {
3614
- let t = V(e, "property", "og:title"), n = V(e, "name", "dc.Publisher"), r = V(e, "name", "dc.Date"), i = V(e, "name", "publication_doi"), a = V(e, "name", "citation_journal_title"), o = H(e, "name", "dc.Creator"), s = zc(e), c = Bc(e), l = Rc(e), u = l?.includes("-") ? l.split("-")[0] : l, d = l?.includes("-") ? l.split("-")[1] : l;
3613
+ }, Bc = (e) => {
3614
+ let t = V(e, "property", "og:title"), n = V(e, "name", "dc.Publisher"), r = V(e, "name", "dc.Date"), i = V(e, "name", "publication_doi"), a = V(e, "name", "citation_journal_title"), o = H(e, "name", "dc.Creator"), s = Rc(e), c = zc(e), l = Lc(e), u = l?.includes("-") ? l.split("-")[0] : l, d = l?.includes("-") ? l.split("-")[1] : l;
3615
3615
  return L(F.Article, {
3616
3616
  au: o,
3617
3617
  jtitle: a,
@@ -3624,45 +3624,45 @@ var ts = (e) => {
3624
3624
  title: t,
3625
3625
  volume: s
3626
3626
  });
3627
- }, Hc = (e) => {
3627
+ }, Vc = (e) => {
3628
3628
  let t = V(e, "property", "og:title"), n = V(e, "name", "publication_doi");
3629
3629
  return L(F.Journal, {
3630
3630
  doi: n,
3631
3631
  title: t
3632
3632
  });
3633
- }, Uc = ({ document: e }) => {
3634
- switch (Lc(e)) {
3635
- case U.Article: return B(Vc(e));
3636
- case U.Journal: return B(Hc(e));
3633
+ }, Hc = ({ document: e }) => {
3634
+ switch (Ic(e)) {
3635
+ case U.Article: return B(Bc(e));
3636
+ case U.Journal: return B(Vc(e));
3637
3637
  default: return z();
3638
3638
  }
3639
- }, Wc = (e) => Xo.safeParse(e).success, Gc = (e) => Zo.safeParse(e).success, Kc = (e) => Wo.safeParse(e).success;
3640
- function qc(e) {
3639
+ }, Uc = (e) => Xo.safeParse(e).success, Wc = (e) => Zo.safeParse(e).success, Gc = (e) => Wo.safeParse(e).success;
3640
+ function Kc(e) {
3641
3641
  return Ko.safeParse(e).success;
3642
3642
  }
3643
- function Jc(e) {
3643
+ function qc(e) {
3644
3644
  return qo.safeParse(e).success;
3645
3645
  }
3646
- function Yc(e) {
3646
+ function Jc(e) {
3647
3647
  return Jo.safeParse(e).success;
3648
3648
  }
3649
- function Xc(e) {
3649
+ function Yc(e) {
3650
3650
  return Yo.safeParse(e).success;
3651
3651
  }
3652
- function Zc(e) {
3652
+ function Xc(e) {
3653
3653
  return Go.safeParse(e).success;
3654
3654
  }
3655
3655
  //#endregion
3656
3656
  //#region src/parsers/site/vu-find-parser.ts
3657
- var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textContent.trim() === "DOI:")?.nextElementSibling?.querySelector("span[property=\"identifier\"]")?.textContent ?? void 0, $c = (e) => {
3657
+ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textContent.trim() === "DOI:")?.nextElementSibling?.querySelector("span[property=\"identifier\"]")?.textContent ?? void 0, Qc = (e) => {
3658
3658
  let t = /Record\/(\d+)/.exec(e);
3659
3659
  if (t && t.length > 1) return t[1];
3660
- }, el = (e) => {
3660
+ }, $c = (e) => {
3661
3661
  let { url: t, document: n } = e, r = ns(e);
3662
- if (!Jc(r)) return r;
3663
- let i = Qc(n);
3664
- return i && (r.resource.rft_id = [`info:doi/${i}`]), r.resource.bibid = $c(t), r;
3665
- }, tl = Js.extend({
3662
+ if (!qc(r)) return r;
3663
+ let i = Zc(n);
3664
+ return i && (r.resource.rft_id = [`info:doi/${i}`]), r.resource.bibid = Qc(t), r;
3665
+ }, el = W.extend({
3666
3666
  "@type": N("VideoObject"),
3667
3667
  name: O(),
3668
3668
  author: O(),
@@ -3671,13 +3671,13 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3671
3671
  uploadDate: O(),
3672
3672
  duration: O(),
3673
3673
  thumbnailUrl: A(O())
3674
- }), nl = (e) => tl.safeParse(e).success, rl = (e) => {
3675
- let t = Zs(e);
3674
+ }), tl = (e) => el.safeParse(e).success, nl = (e) => {
3675
+ let t = Xs(e);
3676
3676
  if (t.length === 0) return null;
3677
- let n = t.map($s).filter(nl);
3677
+ let n = t.map(Qs).filter(tl);
3678
3678
  return n.length === 1 ? n[0] : null;
3679
- }, il = ({ url: e, document: t }) => {
3680
- let n = rl(t);
3679
+ }, rl = ({ url: e, document: t }) => {
3680
+ let n = nl(t);
3681
3681
  return n ? {
3682
3682
  bookmarkingWorkflowUrl: null,
3683
3683
  resource: R({
@@ -3687,17 +3687,17 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3687
3687
  uri: e
3688
3688
  })
3689
3689
  } : z();
3690
- }, al = (e) => V(e, "name", "doi") ?? V(e, "name", "DOI") ?? V(e, "name", "citation_doi") ?? V(e, "name", "dc.identifier") ?? V(e, "name", "prism.doi") ?? void 0, ol = (e) => {
3690
+ }, il = (e) => V(e, "name", "doi") ?? V(e, "name", "DOI") ?? V(e, "name", "citation_doi") ?? V(e, "name", "dc.identifier") ?? V(e, "name", "prism.doi") ?? void 0, al = (e) => {
3691
3691
  let t = e.editor?.map((e) => e.name) ?? [], n = [...e.author?.map((e) => e.name) ?? [], ...t];
3692
3692
  if (n.length !== 0) return n;
3693
- }, sl = /* @__PURE__ */ function(e) {
3693
+ }, ol = /* @__PURE__ */ function(e) {
3694
3694
  return e.Book = "Book", e.Journal = "Journal", e.Periodical = "Periodical", e.PublicationVolume = "PublicationVolume", e.ScholarlyArticle = "ScholarlyArticle", e.VideoObject = "VideoObject", e.WebPage = "WebPage", e;
3695
- }({}), cl = /* @__PURE__ */ function(e) {
3695
+ }({}), sl = /* @__PURE__ */ function(e) {
3696
3696
  return e.Article = "article", e.Book = "book", e.Paper = "Paper", e.Video = "video.other", e.Website = "website", e;
3697
- }({}), W = /* @__PURE__ */ function(e) {
3697
+ }({}), cl = /* @__PURE__ */ function(e) {
3698
3698
  return e.Article = "/article/", e.Book = "/book/", e.Chapter = "/chapter/", e.Video = "/video/", e.ReferenceWorkEntry = "/referenceworkentry/", e.ReferenceWork = "/referencework/", e.Protocol = "/protocol/", e.Collections = "/collections/", e.Journal = "/journal/", e.JournalIssue = "/volumes-and-issues/", e;
3699
3699
  }({}), ll = j({
3700
- "@type": N(sl.ScholarlyArticle),
3700
+ "@type": N(ol.ScholarlyArticle),
3701
3701
  author: A(j({
3702
3702
  "@type": O(),
3703
3703
  name: O()
@@ -3722,8 +3722,8 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3722
3722
  "@type": O(),
3723
3723
  name: O()
3724
3724
  }).optional()
3725
- }), ul = (e) => ll.safeParse(e).success, dl = Js.extend({
3726
- "@type": N(sl.WebPage),
3725
+ }), ul = (e) => ll.safeParse(e).success, dl = W.extend({
3726
+ "@type": N(ol.WebPage),
3727
3727
  mainEntity: ll
3728
3728
  }), fl = (e) => dl.safeParse(e).success, pl = j({
3729
3729
  "@type": A(O()),
@@ -3731,7 +3731,7 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3731
3731
  issn: A(O()),
3732
3732
  volumeNumber: O().optional()
3733
3733
  }), ml = (e) => pl.safeParse(e).success, hl = (e, t) => V(e, "name", "citation_issn") ?? V(e, "name", "prism.issn") ?? (ul(t.isPartOf) ? t.isPartOf.issn?.[0] : void 0), gl = (e, t) => {
3734
- let n = ol(t), r = V(e, "name", "citation_online_date"), i = al(e), a = V(e, "name", "citation_issue"), o = hl(e, t), s = ml(t.isPartOf) && t.isPartOf.issn.length > 0 ? t.isPartOf.issn[1] : void 0, c = t.pageStart, l = t.pageEnd, u = t.headline, d = t.isPartOf.name, f = ml(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
3734
+ let n = al(t), r = V(e, "name", "citation_online_date"), i = il(e), a = V(e, "name", "citation_issue"), o = hl(e, t), s = ml(t.isPartOf) && t.isPartOf.issn.length > 0 ? t.isPartOf.issn[1] : void 0, c = t.pageStart, l = t.pageEnd, u = t.headline, d = t.isPartOf.name, f = ml(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
3735
3735
  return L(F.Article, {
3736
3736
  au: n,
3737
3737
  date: r,
@@ -3745,8 +3745,8 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3745
3745
  jtitle: d,
3746
3746
  volume: f
3747
3747
  });
3748
- }, _l = Js.extend({
3749
- "@type": N(sl.Book),
3748
+ }, _l = W.extend({
3749
+ "@type": N(ol.Book),
3750
3750
  copyrightYear: O().optional(),
3751
3751
  author: A(j({
3752
3752
  "@type": O(),
@@ -3772,7 +3772,7 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3772
3772
  t && r && n.set(t, r);
3773
3773
  }), n;
3774
3774
  }, xl = (e, t) => {
3775
- let n = bl(e), r = ol(t), i = t.copyrightYear?.toString(), a = al(e) ?? n.get(yl.DOI), o = t.name ?? n.get(yl.BOOK_TITLE), s = t.isbn ?? n.get(yl.SOFTCOVER_ISBN), c = t.numberOfPages?.toString() ?? n.get(yl.NUMBER_OF_PAGES), l = t.publisher?.name ?? n.get(yl.PUBLISHER);
3775
+ let n = bl(e), r = al(t), i = t.copyrightYear?.toString(), a = il(e) ?? n.get(yl.DOI), o = t.name ?? n.get(yl.BOOK_TITLE), s = t.isbn ?? n.get(yl.SOFTCOVER_ISBN), c = t.numberOfPages?.toString() ?? n.get(yl.NUMBER_OF_PAGES), l = t.publisher?.name ?? n.get(yl.PUBLISHER);
3776
3776
  return I(F.Book, {
3777
3777
  au: r,
3778
3778
  date: i,
@@ -3803,7 +3803,7 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3803
3803
  pub: a
3804
3804
  });
3805
3805
  }, Tl = j({
3806
- "@type": N(sl.VideoObject),
3806
+ "@type": N(ol.VideoObject),
3807
3807
  name: O().optional(),
3808
3808
  description: O().optional(),
3809
3809
  thumbnailUrl: O().optional(),
@@ -3820,13 +3820,13 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3820
3820
  });
3821
3821
  }, Ol = (e) => _o({ title: V(e, "property", "og:title") }), kl = (e, t) => {
3822
3822
  let n = V(t, "property", "og:type");
3823
- return n === cl.Article && e.includes(W.Article) ? U.Article : n === cl.Book && (e.includes(W.Book) || e.includes(W.ReferenceWork)) ? U.Book : n === cl.Paper && e.includes(W.Chapter) ? U.Chapter : n === cl.Paper && (e.includes(W.ReferenceWorkEntry) || e.includes(W.Protocol)) ? U.Article : n === cl.Video && e.includes(W.Video) ? U.AudioVisual : n === cl.Website && (e.includes(W.Collections) || e.includes(W.JournalIssue)) ? U.Webpage : n === cl.Website && e.includes(W.Journal) ? U.Journal : U.None;
3823
+ return n === sl.Article && e.includes(cl.Article) ? U.Article : n === sl.Book && (e.includes(cl.Book) || e.includes(cl.ReferenceWork)) ? U.Book : n === sl.Paper && e.includes(cl.Chapter) ? U.Chapter : n === sl.Paper && (e.includes(cl.ReferenceWorkEntry) || e.includes(cl.Protocol)) ? U.Article : n === sl.Video && e.includes(cl.Video) ? U.AudioVisual : n === sl.Website && (e.includes(cl.Collections) || e.includes(cl.JournalIssue)) ? U.Webpage : n === sl.Website && e.includes(cl.Journal) ? U.Journal : U.None;
3824
3824
  }, Al = (e, t, n) => e === U.AudioVisual && El(n) ? B(Dl(t, n)) : e === U.Book && vl(n) ? B(xl(t, n)) : (e === U.Chapter || e === U.Article) && ul(n) ? B(gl(t, n)) : e === U.Article && fl(n) ? B(gl(t, n.mainEntity)) : e === U.Journal && Cl(n) ? B(wl(n)) : z(), jl = ({ url: e, document: t }) => {
3825
3825
  let n = kl(e, t);
3826
3826
  if (n === U.Webpage) return B(Ol(t));
3827
- let r = Qs(t);
3827
+ let r = Zs(t);
3828
3828
  if (!r) return z();
3829
- let i = $s(r);
3829
+ let i = Qs(r);
3830
3830
  return i ? Al(n, t, i) : z();
3831
3831
  }, G = /* @__PURE__ */ function(e) {
3832
3832
  return e.PrintIsbn = "Print ISBN", e.OnlineIsbn = "Online ISBN", e.Doi = "DOI", e.FirstPublished = "First published", e.OnlineIssn = "Online ISSN", e.PrintIssn = "Print ISSN", e;
@@ -4300,7 +4300,7 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4300
4300
  issn: O().optional(),
4301
4301
  name: O().optional(),
4302
4302
  volume: O().optional()
4303
- }), ad = Js.extend({
4303
+ }), ad = W.extend({
4304
4304
  identifier: j({
4305
4305
  "@type": O(),
4306
4306
  propertyID: O(),
@@ -4333,9 +4333,9 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4333
4333
  }),
4334
4334
  name: O()
4335
4335
  }), od = (e) => {
4336
- let t = Qs(e);
4336
+ let t = Zs(e);
4337
4337
  if (!t) return null;
4338
- let n = $s(t), r = ad.safeParse(n);
4338
+ let n = Qs(t), r = ad.safeParse(n);
4339
4339
  return r.success ? r.data : null;
4340
4340
  }, sd = (e) => L(F.Article, {
4341
4341
  ...Ju(e),
@@ -4567,7 +4567,7 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4567
4567
  }
4568
4568
  return null;
4569
4569
  }, of = ({ document: e }) => {
4570
- let t = Qs(e);
4570
+ let t = Zs(e);
4571
4571
  if (!t) return z();
4572
4572
  let n = af(t);
4573
4573
  if (!n) return z();
@@ -4582,16 +4582,16 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4582
4582
  }));
4583
4583
  default: return z();
4584
4584
  }
4585
- }, sf = Js.extend({
4585
+ }, sf = W.extend({
4586
4586
  "@type": O().optional(),
4587
4587
  name: O().optional(),
4588
4588
  copyrightYear: ha().optional(),
4589
4589
  author: A(j({ name: O() })).optional(),
4590
4590
  publisher: A(j({ name: O() })).optional()
4591
4591
  }), cf = (e) => sf.safeParse(e).success, lf = ({ document: e, url: t }) => {
4592
- let n = Qs(e);
4592
+ let n = Zs(e);
4593
4593
  if (!n) return z();
4594
- let r = $s(n);
4594
+ let r = Qs(n);
4595
4595
  if (!r || !cf(r)) return z();
4596
4596
  let i = r["@type"], a = r.author?.map((e) => e.name), o = r.copyrightYear?.toString() ?? V(e, "property", "og:book:release_date"), s = r.name, c = ru(r.publisher?.map((e) => e.name)), l = V(e, "property", "og:book:isbn");
4597
4597
  switch (i) {
@@ -4818,7 +4818,7 @@ var Lf = (e) => {
4818
4818
  delete e.rft_id;
4819
4819
  }, Zf = (e) => {
4820
4820
  let t = ns(e);
4821
- if (Jc(t)) {
4821
+ if (qc(t)) {
4822
4822
  let n = Yf(e.document);
4823
4823
  t.resource.genre = n, Xf(t.resource);
4824
4824
  }
@@ -5162,7 +5162,7 @@ var yp = (e) => {
5162
5162
  if (t) return t.replace("https://doi.org/", "").trim();
5163
5163
  }, pm = (e) => {
5164
5164
  let { document: t } = e, n = ns(e);
5165
- if (!Jc(n)) return n;
5165
+ if (!qc(n)) return n;
5166
5166
  let r = V(t, "name", "bepress_citation_date"), i = V(t, "name", "bepress_citation_pdf_url"), a = fm(t);
5167
5167
  return r && (n.resource.date = r), i && (n.resource.uri = i), a && (n.resource.rft_id = [a]), n;
5168
5168
  }, mm = (e) => {
@@ -5196,7 +5196,7 @@ var yp = (e) => {
5196
5196
  date: l,
5197
5197
  uri: u
5198
5198
  }));
5199
- }, xm = Js.extend({
5199
+ }, xm = W.extend({
5200
5200
  "@type": N("VideoObject"),
5201
5201
  name: O(),
5202
5202
  url: O(),
@@ -5209,9 +5209,9 @@ var yp = (e) => {
5209
5209
  name: O()
5210
5210
  }))]))
5211
5211
  }), Sm = (e) => {
5212
- let t = Qs(e);
5212
+ let t = Zs(e);
5213
5213
  if (!t) return null;
5214
- let n = $s(t), r = xm.safeParse(n);
5214
+ let n = Qs(t), r = xm.safeParse(n);
5215
5215
  return r.success ? r.data : null;
5216
5216
  }, Cm = (e) => {
5217
5217
  if (e.creator) return Array.isArray(e.creator) ? e.creator.map((e) => e.name) : [e.creator.name];
@@ -5225,25 +5225,113 @@ var yp = (e) => {
5225
5225
  au: n,
5226
5226
  uri: t.url
5227
5227
  }));
5228
+ }, Tm = W.extend({ publisher: j({
5229
+ "@type": N("Organization"),
5230
+ name: O()
5231
+ }) }), Em = W.extend({
5232
+ "@type": N("WebSite"),
5233
+ issn: O(),
5234
+ name: O()
5235
+ }), Dm = (e) => {
5236
+ let t = km(e), n = e.querySelector(".article-issue-info a")?.getAttribute("href") ?? "", r = /\/v(\d+)/i.exec(n), i = /\/n(\d+)/i.exec(n);
5237
+ return {
5238
+ jtitle: t?.name ?? void 0,
5239
+ issn: t?.issn ?? void 0,
5240
+ volume: r ? r[1] : void 0,
5241
+ issue: i ? i[1] : void 0
5242
+ };
5243
+ }, Om = (e) => {
5244
+ let t = Xs(e);
5245
+ return t.length === 0 ? null : t.map((e) => Qs(e)).filter((e) => e !== null);
5246
+ }, km = (e) => {
5247
+ let t = Om(e);
5248
+ if (!t) return;
5249
+ let n = t.map((e) => Em.safeParse(e)).find((e) => e.success);
5250
+ return n ? n.data : void 0;
5251
+ }, Am = (e) => {
5252
+ let t = Om(e);
5253
+ if (!t) return;
5254
+ let n = t.map((e) => Tm.safeParse(e)).find((e) => e.success);
5255
+ return n ? n.data.publisher.name : void 0;
5256
+ }, jm = (e) => V(e, "property", "article:author"), Mm = (e) => V(e, "property", "og:title"), Nm = (e) => {
5257
+ let t = V(e, "property", "article:published_time");
5258
+ return t ? t.split("T")[0] : void 0;
5259
+ }, Pm = (e) => V(e, "property", "og:url"), Fm = (e) => {
5260
+ let t = jm(e), n = Mm(e), r = Pm(e), i = Nm(e), a = Am(e), { volume: o, issue: s, issn: c, jtitle: l } = Dm(e);
5261
+ return L(F.Article, {
5262
+ au: t ? [t] : void 0,
5263
+ pub: a,
5264
+ uri: r,
5265
+ atitle: n,
5266
+ date: i,
5267
+ issn: c,
5268
+ jtitle: l,
5269
+ volume: o,
5270
+ issue: s
5271
+ });
5272
+ }, Im = (e) => {
5273
+ let t = jm(e), n = Mm(e), r = Pm(e), i = Nm(e), a = Am(e);
5274
+ return R({
5275
+ au: t ? [t] : void 0,
5276
+ pub: a,
5277
+ uri: r,
5278
+ title: n,
5279
+ date: i
5280
+ });
5281
+ }, Lm = (e) => {
5282
+ switch (V(e, "property", "og:type")) {
5283
+ case "article": return U.Article;
5284
+ case "podcast":
5285
+ case "film": return U.AudioVisual;
5286
+ default: return null;
5287
+ }
5288
+ }, Rm = (e) => {
5289
+ switch (Lm(e)) {
5290
+ case U.Article: return Fm(e);
5291
+ case U.AudioVisual: return Im(e);
5292
+ default: return null;
5293
+ }
5294
+ }, zm = ({ document: e }) => {
5295
+ let t = Rm(e);
5296
+ return t ? B(t) : z();
5297
+ }, Bm = (e) => {
5298
+ let t = /\/books\/([^/]+)/.exec(e);
5299
+ return t ? t[1] : void 0;
5300
+ }, Vm = (e) => {
5301
+ let t = e.querySelector(".sc-epFoly")?.textContent.trim();
5302
+ if (t) return t.split(";").map((e) => e.trim());
5303
+ }, Hm = (e) => {
5304
+ let t = e.querySelector("h3.sc-eEvSnX")?.textContent.trim();
5305
+ if (t) return t;
5306
+ let n = e.title.split("Ref:").pop();
5307
+ return n ? n.trim() : void 0;
5308
+ }, Um = ({ document: e, url: t }) => {
5309
+ let n = Hm(e), r = Bm(t), i = Vm(e);
5310
+ return !n && !i && !r ? z() : B(I(F.Book, {
5311
+ title: n,
5312
+ au: i,
5313
+ isbn: r,
5314
+ uri: t
5315
+ }));
5228
5316
  }, X = /* @__PURE__ */ function(e) {
5229
- return e.NoResourceFound = "NoResourceFound", e.Z3988 = "Z3988", e.Z3988SearchResult = "Z3988SearchResult", e.Amazon = "Amazon", e.CupOfJo = "CupOfJo", e.IngentaConnect = "IngentaConnect", e.Jstor = "Jstor", e.Milne = "Milne", e.Primo = "Primo", e.SagePub = "SagePub", e.SageVideo = "SageVideo", e.ScienceDirect = "ScienceDirect", e.Springer = "Springer", e.Youtube = "Youtube", e.TaylorFrancis = "TaylorFrancis", e.Wiley = "Wiley", e.VuFind = "VuFind", e.ClinicalKey = "ClinicalKey", e.DOAJ = "DOAJ", e.Ebscohost = "Ebscohost", e.OpenStax = "OpenStax", e.CambridgeJournalsOnline = "CambridgeJournalsOnline", e.OpenTextbook = "OpenTextbook", e.AhaJournals = "AhaJournals", e.Ijees = "Ijees", e.BloomsburyCollections = "BloomsburyCollections", e.HeritageCirqa = "HeritageCirqa", e.BritishMedicalJournal = "BritishMedicalJournal", e.SummonSearchResult = "SummonSearchResult", e.ApplePodcasts = "ApplePodcasts", e.Arxiv = "Arxiv", e.KanopyVideo = "KanopyVideo", e.LaTrobeOpal = "LaTrobeOpal", e.BYUScholarsArchive = "BYUScholarsArchive", e.Informit = "Informit", e.Brill = "Brill", e.HeinOnline = "HeinOnline", e.PrimoNde = "PrimoNde", e.MichiganLaw = "MichiganLaw", e.EbookCentral = "EbookCentral", e.AlexanderStreetPress = "AlexanderStreetPress", e;
5230
- }({}), Tm = {
5231
- [X.NoResourceFound]: cc,
5317
+ return e.NoResourceFound = "NoResourceFound", e.Z3988 = "Z3988", e.Z3988SearchResult = "Z3988SearchResult", e.Amazon = "Amazon", e.CupOfJo = "CupOfJo", e.IngentaConnect = "IngentaConnect", e.Jstor = "Jstor", e.Milne = "Milne", e.Primo = "Primo", e.SagePub = "SagePub", e.SageVideo = "SageVideo", e.ScienceDirect = "ScienceDirect", e.Springer = "Springer", e.Youtube = "Youtube", e.TaylorFrancis = "TaylorFrancis", e.Wiley = "Wiley", e.VuFind = "VuFind", e.ClinicalKey = "ClinicalKey", e.DOAJ = "DOAJ", e.Ebscohost = "Ebscohost", e.OpenStax = "OpenStax", e.CambridgeJournalsOnline = "CambridgeJournalsOnline", e.OpenTextbook = "OpenTextbook", e.AhaJournals = "AhaJournals", e.Ijees = "Ijees", e.BloomsburyCollections = "BloomsburyCollections", e.HeritageCirqa = "HeritageCirqa", e.BritishMedicalJournal = "BritishMedicalJournal", e.SummonSearchResult = "SummonSearchResult", e.ApplePodcasts = "ApplePodcasts", e.Arxiv = "Arxiv", e.KanopyVideo = "KanopyVideo", e.LaTrobeOpal = "LaTrobeOpal", e.BYUScholarsArchive = "BYUScholarsArchive", e.Informit = "Informit", e.Brill = "Brill", e.HeinOnline = "HeinOnline", e.PrimoNde = "PrimoNde", e.MichiganLaw = "MichiganLaw", e.EbookCentral = "EbookCentral", e.AlexanderStreetPress = "AlexanderStreetPress", e.LondonReviewOfBooks = "LondonReviewOfBooks", e.VitalSource = "VitalSource", e;
5318
+ }({}), Wm = {
5319
+ [X.NoResourceFound]: sc,
5232
5320
  [X.Z3988]: ns,
5233
5321
  [X.Z3988SearchResult]: nu,
5234
5322
  [X.Amazon]: us,
5235
- [X.CupOfJo]: sc,
5323
+ [X.CupOfJo]: oc,
5236
5324
  [X.Jstor]: Ru,
5237
- [X.Youtube]: il,
5238
- [X.SagePub]: Tc,
5325
+ [X.Youtube]: rl,
5326
+ [X.SagePub]: wc,
5239
5327
  [X.SageVideo]: tu,
5240
- [X.ScienceDirect]: Ic,
5328
+ [X.ScienceDirect]: Fc,
5241
5329
  [X.Springer]: jl,
5242
- [X.TaylorFrancis]: Uc,
5330
+ [X.TaylorFrancis]: Hc,
5243
5331
  [X.Wiley]: $l,
5244
- [X.VuFind]: el,
5332
+ [X.VuFind]: $c,
5245
5333
  [X.ClinicalKey]: qs,
5246
- [X.DOAJ]: mc,
5334
+ [X.DOAJ]: pc,
5247
5335
  [X.Primo]: Sd,
5248
5336
  [X.IngentaConnect]: jd,
5249
5337
  [X.Ebscohost]: tf,
@@ -5268,8 +5356,10 @@ var yp = (e) => {
5268
5356
  [X.PrimoNde]: dm,
5269
5357
  [X.MichiganLaw]: pm,
5270
5358
  [X.EbookCentral]: bm,
5271
- [X.AlexanderStreetPress]: wm
5272
- }, Em = "5.39.0", Dm = () => Em, Om = [
5359
+ [X.AlexanderStreetPress]: wm,
5360
+ [X.LondonReviewOfBooks]: zm,
5361
+ [X.VitalSource]: Um
5362
+ }, Gm = "5.41.0", Km = () => Gm, qm = [
5273
5363
  "com.au",
5274
5364
  "com",
5275
5365
  "ca",
@@ -5277,8 +5367,8 @@ var yp = (e) => {
5277
5367
  "de",
5278
5368
  "fr",
5279
5369
  "nl"
5280
- ].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]), km = {
5281
- version: Dm(),
5370
+ ].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]), Jm = {
5371
+ version: Km(),
5282
5372
  siteRegistrations: [
5283
5373
  {
5284
5374
  matcher: { regexp: "^https://[a-z0-9\\-]+\\.on\\.worldcat\\.org/search" },
@@ -5306,7 +5396,7 @@ var yp = (e) => {
5306
5396
  parsers: [X.ScienceDirect]
5307
5397
  },
5308
5398
  {
5309
- matcher: { hostnames: Om },
5399
+ matcher: { hostnames: qm },
5310
5400
  name: "Amazon",
5311
5401
  parsers: [X.Amazon]
5312
5402
  },
@@ -5494,20 +5584,30 @@ var yp = (e) => {
5494
5584
  matcher: { regexp: "^https://video[.-]alexanderstreet[.-]com" },
5495
5585
  name: "Alexander Street Press",
5496
5586
  parsers: [X.AlexanderStreetPress]
5587
+ },
5588
+ {
5589
+ matcher: { hostnames: ["www.lrb.co.uk"] },
5590
+ name: "London Review of Books",
5591
+ parsers: [X.LondonReviewOfBooks]
5592
+ },
5593
+ {
5594
+ matcher: { regexp: "^https://bookshelf-ref[.-]vitalsource[.-]com/reader/books" },
5595
+ name: "Vital Source Bookshelf",
5596
+ parsers: [X.VitalSource]
5497
5597
  }
5498
5598
  ]
5499
- }, Am = j({ hostnames: A(O()).min(1) }), jm = j({ regexp: O() }), Mm = M([Am, jm]), Nm = j({
5500
- matcher: Mm,
5599
+ }, Ym = j({ hostnames: A(O()).min(1) }), Xm = j({ regexp: O() }), Zm = M([Ym, Xm]), Qm = j({
5600
+ matcher: Zm,
5501
5601
  name: O(),
5502
5602
  parsers: A(O()),
5503
5603
  libraryVersionRange: O().optional()
5504
- }), Pm = j({
5505
- siteRegistrations: A(Nm),
5604
+ }), $m = j({
5605
+ siteRegistrations: A(Qm),
5506
5606
  version: O()
5507
- }), Fm = (e) => Pm.safeParse(e).success, Im = (e) => Nm.safeParse(e).success, Lm = (e) => Mm.safeParse(e).success, Rm = (e) => Object.values(X).includes(e), zm = j({
5607
+ }), eh = (e) => $m.safeParse(e).success, th = (e) => Qm.safeParse(e).success, nh = (e) => Zm.safeParse(e).success, rh = (e) => Object.values(X).includes(e), ih = j({
5508
5608
  url: O(),
5509
5609
  document: eo((e) => typeof e == "object" && !!e)
5510
- }), Bm = (e) => zm.safeParse(e).success, Vm = /* @__PURE__ */ e(((e, t) => {
5610
+ }), ah = (e) => ih.safeParse(e).success, oh = /* @__PURE__ */ e(((e, t) => {
5511
5611
  var n = "2.0.0", r = 256;
5512
5612
  t.exports = {
5513
5613
  MAX_LENGTH: r,
@@ -5527,10 +5627,10 @@ var yp = (e) => {
5527
5627
  FLAG_INCLUDE_PRERELEASE: 1,
5528
5628
  FLAG_LOOSE: 2
5529
5629
  };
5530
- })), Hm = /* @__PURE__ */ e(((e, t) => {
5630
+ })), sh = /* @__PURE__ */ e(((e, t) => {
5531
5631
  t.exports = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...e) => console.error("SEMVER", ...e) : () => {};
5532
- })), Um = /* @__PURE__ */ e(((e, t) => {
5533
- var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } = Vm(), a = Hm();
5632
+ })), ch = /* @__PURE__ */ e(((e, t) => {
5633
+ var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } = oh(), a = sh();
5534
5634
  e = t.exports = {};
5535
5635
  var o = e.re = [], s = e.safeRe = [], c = e.src = [], l = e.safeSrc = [], u = e.t = {}, d = 0, f = "[a-zA-Z0-9-]", p = [
5536
5636
  ["\\s", 1],
@@ -5544,10 +5644,10 @@ var yp = (e) => {
5544
5644
  a(e, i, t), u[e] = i, c[i] = t, l[i] = r, o[i] = new RegExp(t, n ? "g" : void 0), s[i] = new RegExp(r, n ? "g" : void 0);
5545
5645
  };
5546
5646
  h("NUMERICIDENTIFIER", "0|[1-9]\\d*"), h("NUMERICIDENTIFIERLOOSE", "\\d+"), h("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${f}*`), h("MAINVERSION", `(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`), h("MAINVERSIONLOOSE", `(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`), h("PRERELEASEIDENTIFIER", `(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`), h("PRERELEASEIDENTIFIERLOOSE", `(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`), h("PRERELEASE", `(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`), h("PRERELEASELOOSE", `(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`), h("BUILDIDENTIFIER", `${f}+`), h("BUILD", `(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`), h("FULLPLAIN", `v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`), h("FULL", `^${c[u.FULLPLAIN]}$`), h("LOOSEPLAIN", `[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`), h("LOOSE", `^${c[u.LOOSEPLAIN]}$`), h("GTLT", "((?:<|>)?=?)"), h("XRANGEIDENTIFIERLOOSE", `${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), h("XRANGEIDENTIFIER", `${c[u.NUMERICIDENTIFIER]}|x|X|\\*`), h("XRANGEPLAIN", `[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`), h("XRANGEPLAINLOOSE", `[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`), h("XRANGE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`), h("XRANGELOOSE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`), h("COERCEPLAIN", `(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`), h("COERCE", `${c[u.COERCEPLAIN]}(?:$|[^\\d])`), h("COERCEFULL", c[u.COERCEPLAIN] + `(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`), h("COERCERTL", c[u.COERCE], !0), h("COERCERTLFULL", c[u.COERCEFULL], !0), h("LONETILDE", "(?:~>?)"), h("TILDETRIM", `(\\s*)${c[u.LONETILDE]}\\s+`, !0), e.tildeTrimReplace = "$1~", h("TILDE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`), h("TILDELOOSE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`), h("LONECARET", "(?:\\^)"), h("CARETTRIM", `(\\s*)${c[u.LONECARET]}\\s+`, !0), e.caretTrimReplace = "$1^", h("CARET", `^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`), h("CARETLOOSE", `^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`), h("COMPARATORLOOSE", `^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`), h("COMPARATOR", `^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`), h("COMPARATORTRIM", `(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`, !0), e.comparatorTrimReplace = "$1$2$3", h("HYPHENRANGE", `^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`), h("HYPHENRANGELOOSE", `^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`), h("STAR", "(<|>)?=?\\s*\\*"), h("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), h("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
5547
- })), Wm = /* @__PURE__ */ e(((e, t) => {
5647
+ })), lh = /* @__PURE__ */ e(((e, t) => {
5548
5648
  var n = Object.freeze({ loose: !0 }), r = Object.freeze({});
5549
5649
  t.exports = (e) => e ? typeof e == "object" ? e : n : r;
5550
- })), Gm = /* @__PURE__ */ e(((e, t) => {
5650
+ })), uh = /* @__PURE__ */ e(((e, t) => {
5551
5651
  var n = /^[0-9]+$/, r = (e, t) => {
5552
5652
  if (typeof e == "number" && typeof t == "number") return e === t ? 0 : e < t ? -1 : 1;
5553
5653
  let r = n.test(e), i = n.test(t);
@@ -5558,7 +5658,7 @@ var yp = (e) => {
5558
5658
  rcompareIdentifiers: (e, t) => r(t, e)
5559
5659
  };
5560
5660
  })), Z = /* @__PURE__ */ e(((e, t) => {
5561
- var n = Hm(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: i } = Vm(), { safeRe: a, t: o } = Um(), s = Wm(), { compareIdentifiers: c } = Gm();
5661
+ var n = sh(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: i } = oh(), { safeRe: a, t: o } = ch(), s = lh(), { compareIdentifiers: c } = uh();
5562
5662
  t.exports = class e {
5563
5663
  constructor(t, c) {
5564
5664
  if (c = s(c), t instanceof e) {
@@ -5678,7 +5778,7 @@ var yp = (e) => {
5678
5778
  return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
5679
5779
  }
5680
5780
  };
5681
- })), Km = /* @__PURE__ */ e(((e, t) => {
5781
+ })), dh = /* @__PURE__ */ e(((e, t) => {
5682
5782
  var n = Z();
5683
5783
  t.exports = (e, t, r = !1) => {
5684
5784
  if (e instanceof n) return e;
@@ -5689,19 +5789,19 @@ var yp = (e) => {
5689
5789
  throw e;
5690
5790
  }
5691
5791
  };
5692
- })), qm = /* @__PURE__ */ e(((e, t) => {
5693
- var n = Km();
5792
+ })), fh = /* @__PURE__ */ e(((e, t) => {
5793
+ var n = dh();
5694
5794
  t.exports = (e, t) => {
5695
5795
  let r = n(e, t);
5696
5796
  return r ? r.version : null;
5697
5797
  };
5698
- })), Jm = /* @__PURE__ */ e(((e, t) => {
5699
- var n = Km();
5798
+ })), ph = /* @__PURE__ */ e(((e, t) => {
5799
+ var n = dh();
5700
5800
  t.exports = (e, t) => {
5701
5801
  let r = n(e.trim().replace(/^[=v]+/, ""), t);
5702
5802
  return r ? r.version : null;
5703
5803
  };
5704
- })), Ym = /* @__PURE__ */ e(((e, t) => {
5804
+ })), mh = /* @__PURE__ */ e(((e, t) => {
5705
5805
  var n = Z();
5706
5806
  t.exports = (e, t, r, i, a) => {
5707
5807
  typeof r == "string" && (a = i, i = r, r = void 0);
@@ -5711,8 +5811,8 @@ var yp = (e) => {
5711
5811
  return null;
5712
5812
  }
5713
5813
  };
5714
- })), Xm = /* @__PURE__ */ e(((e, t) => {
5715
- var n = Km();
5814
+ })), hh = /* @__PURE__ */ e(((e, t) => {
5815
+ var n = dh();
5716
5816
  t.exports = (e, t) => {
5717
5817
  let r = n(e, null, !0), i = n(t, null, !0), a = r.compare(i);
5718
5818
  if (a === 0) return null;
@@ -5724,17 +5824,17 @@ var yp = (e) => {
5724
5824
  let u = l ? "pre" : "";
5725
5825
  return r.major === i.major ? r.minor === i.minor ? r.patch === i.patch ? "prerelease" : u + "patch" : u + "minor" : u + "major";
5726
5826
  };
5727
- })), Zm = /* @__PURE__ */ e(((e, t) => {
5827
+ })), gh = /* @__PURE__ */ e(((e, t) => {
5728
5828
  var n = Z();
5729
5829
  t.exports = (e, t) => new n(e, t).major;
5730
- })), Qm = /* @__PURE__ */ e(((e, t) => {
5830
+ })), _h = /* @__PURE__ */ e(((e, t) => {
5731
5831
  var n = Z();
5732
5832
  t.exports = (e, t) => new n(e, t).minor;
5733
- })), $m = /* @__PURE__ */ e(((e, t) => {
5833
+ })), vh = /* @__PURE__ */ e(((e, t) => {
5734
5834
  var n = Z();
5735
5835
  t.exports = (e, t) => new n(e, t).patch;
5736
- })), eh = /* @__PURE__ */ e(((e, t) => {
5737
- var n = Km();
5836
+ })), yh = /* @__PURE__ */ e(((e, t) => {
5837
+ var n = dh();
5738
5838
  t.exports = (e, t) => {
5739
5839
  let r = n(e, t);
5740
5840
  return r && r.prerelease.length ? r.prerelease : null;
@@ -5742,44 +5842,44 @@ var yp = (e) => {
5742
5842
  })), Q = /* @__PURE__ */ e(((e, t) => {
5743
5843
  var n = Z();
5744
5844
  t.exports = (e, t, r) => new n(e, r).compare(new n(t, r));
5745
- })), th = /* @__PURE__ */ e(((e, t) => {
5845
+ })), bh = /* @__PURE__ */ e(((e, t) => {
5746
5846
  var n = Q();
5747
5847
  t.exports = (e, t, r) => n(t, e, r);
5748
- })), nh = /* @__PURE__ */ e(((e, t) => {
5848
+ })), xh = /* @__PURE__ */ e(((e, t) => {
5749
5849
  var n = Q();
5750
5850
  t.exports = (e, t) => n(e, t, !0);
5751
- })), rh = /* @__PURE__ */ e(((e, t) => {
5851
+ })), Sh = /* @__PURE__ */ e(((e, t) => {
5752
5852
  var n = Z();
5753
5853
  t.exports = (e, t, r) => {
5754
5854
  let i = new n(e, r), a = new n(t, r);
5755
5855
  return i.compare(a) || i.compareBuild(a);
5756
5856
  };
5757
- })), ih = /* @__PURE__ */ e(((e, t) => {
5758
- var n = rh();
5857
+ })), Ch = /* @__PURE__ */ e(((e, t) => {
5858
+ var n = Sh();
5759
5859
  t.exports = (e, t) => e.sort((e, r) => n(e, r, t));
5760
- })), ah = /* @__PURE__ */ e(((e, t) => {
5761
- var n = rh();
5860
+ })), wh = /* @__PURE__ */ e(((e, t) => {
5861
+ var n = Sh();
5762
5862
  t.exports = (e, t) => e.sort((e, r) => n(r, e, t));
5763
- })), oh = /* @__PURE__ */ e(((e, t) => {
5863
+ })), Th = /* @__PURE__ */ e(((e, t) => {
5764
5864
  var n = Q();
5765
5865
  t.exports = (e, t, r) => n(e, t, r) > 0;
5766
- })), sh = /* @__PURE__ */ e(((e, t) => {
5866
+ })), Eh = /* @__PURE__ */ e(((e, t) => {
5767
5867
  var n = Q();
5768
5868
  t.exports = (e, t, r) => n(e, t, r) < 0;
5769
- })), ch = /* @__PURE__ */ e(((e, t) => {
5869
+ })), Dh = /* @__PURE__ */ e(((e, t) => {
5770
5870
  var n = Q();
5771
5871
  t.exports = (e, t, r) => n(e, t, r) === 0;
5772
- })), lh = /* @__PURE__ */ e(((e, t) => {
5872
+ })), Oh = /* @__PURE__ */ e(((e, t) => {
5773
5873
  var n = Q();
5774
5874
  t.exports = (e, t, r) => n(e, t, r) !== 0;
5775
- })), uh = /* @__PURE__ */ e(((e, t) => {
5875
+ })), kh = /* @__PURE__ */ e(((e, t) => {
5776
5876
  var n = Q();
5777
5877
  t.exports = (e, t, r) => n(e, t, r) >= 0;
5778
- })), dh = /* @__PURE__ */ e(((e, t) => {
5878
+ })), Ah = /* @__PURE__ */ e(((e, t) => {
5779
5879
  var n = Q();
5780
5880
  t.exports = (e, t, r) => n(e, t, r) <= 0;
5781
- })), fh = /* @__PURE__ */ e(((e, t) => {
5782
- var n = ch(), r = lh(), i = oh(), a = uh(), o = sh(), s = dh();
5881
+ })), jh = /* @__PURE__ */ e(((e, t) => {
5882
+ var n = Dh(), r = Oh(), i = Th(), a = kh(), o = Eh(), s = Ah();
5783
5883
  t.exports = (e, t, c, l) => {
5784
5884
  switch (t) {
5785
5885
  case "===": return typeof e == "object" && (e = e.version), typeof c == "object" && (c = c.version), e === c;
@@ -5795,8 +5895,8 @@ var yp = (e) => {
5795
5895
  default: throw TypeError(`Invalid operator: ${t}`);
5796
5896
  }
5797
5897
  };
5798
- })), ph = /* @__PURE__ */ e(((e, t) => {
5799
- var n = Z(), r = Km(), { safeRe: i, t: a } = Um();
5898
+ })), Mh = /* @__PURE__ */ e(((e, t) => {
5899
+ var n = Z(), r = dh(), { safeRe: i, t: a } = ch();
5800
5900
  t.exports = (e, t) => {
5801
5901
  if (e instanceof n) return e;
5802
5902
  if (typeof e == "number" && (e = String(e)), typeof e != "string") return null;
@@ -5812,7 +5912,7 @@ var yp = (e) => {
5812
5912
  let s = o[2];
5813
5913
  return r(`${s}.${o[3] || "0"}.${o[4] || "0"}${t.includePrerelease && o[5] ? `-${o[5]}` : ""}${t.includePrerelease && o[6] ? `+${o[6]}` : ""}`, t);
5814
5914
  };
5815
- })), mh = /* @__PURE__ */ e(((e, t) => {
5915
+ })), Nh = /* @__PURE__ */ e(((e, t) => {
5816
5916
  t.exports = class {
5817
5917
  constructor() {
5818
5918
  this.max = 1e3, this.map = /* @__PURE__ */ new Map();
@@ -5902,7 +6002,7 @@ var yp = (e) => {
5902
6002
  return !1;
5903
6003
  }
5904
6004
  };
5905
- var r = new (mh())(), i = Wm(), a = hh(), o = Hm(), s = Z(), { safeRe: c, t: l, comparatorTrimReplace: u, tildeTrimReplace: d, caretTrimReplace: f } = Um(), { FLAG_INCLUDE_PRERELEASE: p, FLAG_LOOSE: m } = Vm(), h = (e) => e.value === "<0.0.0-0", g = (e) => e.value === "", _ = (e, t) => {
6005
+ var r = new (Nh())(), i = lh(), a = Ph(), o = sh(), s = Z(), { safeRe: c, t: l, comparatorTrimReplace: u, tildeTrimReplace: d, caretTrimReplace: f } = ch(), { FLAG_INCLUDE_PRERELEASE: p, FLAG_LOOSE: m } = oh(), h = (e) => e.value === "<0.0.0-0", g = (e) => e.value === "", _ = (e, t) => {
5906
6006
  let n = !0, r = e.slice(), i = r.pop();
5907
6007
  for (; n && r.length;) n = r.every((e) => i.intersects(e, t)), i = r.pop();
5908
6008
  return n;
@@ -5940,7 +6040,7 @@ var yp = (e) => {
5940
6040
  }
5941
6041
  return !0;
5942
6042
  };
5943
- })), hh = /* @__PURE__ */ e(((e, t) => {
6043
+ })), Ph = /* @__PURE__ */ e(((e, t) => {
5944
6044
  var n = Symbol("SemVer ANY");
5945
6045
  t.exports = class e {
5946
6046
  static get ANY() {
@@ -5975,8 +6075,8 @@ var yp = (e) => {
5975
6075
  return this.operator === "" ? this.value === "" ? !0 : new l(t.value, n).test(this.value) : t.operator === "" ? t.value === "" ? !0 : new l(this.value, n).test(t.semver) : (n = r(n), n.includePrerelease && (this.value === "<0.0.0-0" || t.value === "<0.0.0-0") || !n.includePrerelease && (this.value.startsWith("<0.0.0") || t.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && t.operator.startsWith(">") || this.operator.startsWith("<") && t.operator.startsWith("<") || this.semver.version === t.semver.version && this.operator.includes("=") && t.operator.includes("=") || o(this.semver, "<", t.semver, n) && this.operator.startsWith(">") && t.operator.startsWith("<") || o(this.semver, ">", t.semver, n) && this.operator.startsWith("<") && t.operator.startsWith(">")));
5976
6076
  }
5977
6077
  };
5978
- var r = Wm(), { safeRe: i, t: a } = Um(), o = fh(), s = Hm(), c = Z(), l = $();
5979
- })), gh = /* @__PURE__ */ e(((e, t) => {
6078
+ var r = lh(), { safeRe: i, t: a } = ch(), o = jh(), s = sh(), c = Z(), l = $();
6079
+ })), Fh = /* @__PURE__ */ e(((e, t) => {
5980
6080
  var n = $();
5981
6081
  t.exports = (e, t, r) => {
5982
6082
  try {
@@ -5986,10 +6086,10 @@ var yp = (e) => {
5986
6086
  }
5987
6087
  return t.test(e);
5988
6088
  };
5989
- })), _h = /* @__PURE__ */ e(((e, t) => {
6089
+ })), Ih = /* @__PURE__ */ e(((e, t) => {
5990
6090
  var n = $();
5991
6091
  t.exports = (e, t) => new n(e, t).set.map((e) => e.map((e) => e.value).join(" ").trim().split(" "));
5992
- })), vh = /* @__PURE__ */ e(((e, t) => {
6092
+ })), Lh = /* @__PURE__ */ e(((e, t) => {
5993
6093
  var n = Z(), r = $();
5994
6094
  t.exports = (e, t, i) => {
5995
6095
  let a = null, o = null, s = null;
@@ -6002,7 +6102,7 @@ var yp = (e) => {
6002
6102
  s.test(e) && (!a || o.compare(e) === -1) && (a = e, o = new n(a, i));
6003
6103
  }), a;
6004
6104
  };
6005
- })), yh = /* @__PURE__ */ e(((e, t) => {
6105
+ })), Rh = /* @__PURE__ */ e(((e, t) => {
6006
6106
  var n = Z(), r = $();
6007
6107
  t.exports = (e, t, i) => {
6008
6108
  let a = null, o = null, s = null;
@@ -6015,8 +6115,8 @@ var yp = (e) => {
6015
6115
  s.test(e) && (!a || o.compare(e) === 1) && (a = e, o = new n(a, i));
6016
6116
  }), a;
6017
6117
  };
6018
- })), bh = /* @__PURE__ */ e(((e, t) => {
6019
- var n = Z(), r = $(), i = oh();
6118
+ })), zh = /* @__PURE__ */ e(((e, t) => {
6119
+ var n = Z(), r = $(), i = Th();
6020
6120
  t.exports = (e, t) => {
6021
6121
  e = new r(e, t);
6022
6122
  let a = new n("0.0.0");
@@ -6040,7 +6140,7 @@ var yp = (e) => {
6040
6140
  }
6041
6141
  return a && e.test(a) ? a : null;
6042
6142
  };
6043
- })), xh = /* @__PURE__ */ e(((e, t) => {
6143
+ })), Bh = /* @__PURE__ */ e(((e, t) => {
6044
6144
  var n = $();
6045
6145
  t.exports = (e, t) => {
6046
6146
  try {
@@ -6049,8 +6149,8 @@ var yp = (e) => {
6049
6149
  return null;
6050
6150
  }
6051
6151
  };
6052
- })), Sh = /* @__PURE__ */ e(((e, t) => {
6053
- var n = Z(), r = hh(), { ANY: i } = r, a = $(), o = gh(), s = oh(), c = sh(), l = dh(), u = uh();
6152
+ })), Vh = /* @__PURE__ */ e(((e, t) => {
6153
+ var n = Z(), r = Ph(), { ANY: i } = r, a = $(), o = Fh(), s = Th(), c = Eh(), l = Ah(), u = kh();
6054
6154
  t.exports = (e, t, d, f) => {
6055
6155
  e = new n(e, f), t = new a(t, f);
6056
6156
  let p, m, h, g, _;
@@ -6072,17 +6172,17 @@ var yp = (e) => {
6072
6172
  }
6073
6173
  return !0;
6074
6174
  };
6075
- })), Ch = /* @__PURE__ */ e(((e, t) => {
6076
- var n = Sh();
6175
+ })), Hh = /* @__PURE__ */ e(((e, t) => {
6176
+ var n = Vh();
6077
6177
  t.exports = (e, t, r) => n(e, t, ">", r);
6078
- })), wh = /* @__PURE__ */ e(((e, t) => {
6079
- var n = Sh();
6178
+ })), Uh = /* @__PURE__ */ e(((e, t) => {
6179
+ var n = Vh();
6080
6180
  t.exports = (e, t, r) => n(e, t, "<", r);
6081
- })), Th = /* @__PURE__ */ e(((e, t) => {
6181
+ })), Wh = /* @__PURE__ */ e(((e, t) => {
6082
6182
  var n = $();
6083
6183
  t.exports = (e, t, r) => (e = new n(e, r), t = new n(t, r), e.intersects(t, r));
6084
- })), Eh = /* @__PURE__ */ e(((e, t) => {
6085
- var n = gh(), r = Q();
6184
+ })), Gh = /* @__PURE__ */ e(((e, t) => {
6185
+ var n = Fh(), r = Q();
6086
6186
  t.exports = (e, t, i) => {
6087
6187
  let a = [], o = null, s = null, c = e.sort((e, t) => r(e, t, i));
6088
6188
  for (let e of c) n(e, t, i) ? (s = e, o ||= e) : (s && a.push([o, s]), s = null, o = null);
@@ -6092,8 +6192,8 @@ var yp = (e) => {
6092
6192
  let u = l.join(" || "), d = typeof t.raw == "string" ? t.raw : String(t);
6093
6193
  return u.length < d.length ? u : t;
6094
6194
  };
6095
- })), Dh = /* @__PURE__ */ e(((e, t) => {
6096
- var n = $(), r = hh(), { ANY: i } = r, a = gh(), o = Q(), s = (e, t, r = {}) => {
6195
+ })), Kh = /* @__PURE__ */ e(((e, t) => {
6196
+ var n = $(), r = Ph(), { ANY: i } = r, a = Fh(), o = Q(), s = (e, t, r = {}) => {
6097
6197
  if (e === t) return !0;
6098
6198
  e = new n(e, r), t = new n(t, r);
6099
6199
  let i = !1;
@@ -6151,46 +6251,46 @@ var yp = (e) => {
6151
6251
  return r < 0 ? e : r > 0 || t.operator === "<" && e.operator === "<=" ? t : e;
6152
6252
  };
6153
6253
  t.exports = s;
6154
- })), Oh = (/* @__PURE__ */ e(((e, t) => {
6155
- var n = Um(), r = Vm(), i = Z(), a = Gm();
6254
+ })), qh = (/* @__PURE__ */ e(((e, t) => {
6255
+ var n = ch(), r = oh(), i = Z(), a = uh();
6156
6256
  t.exports = {
6157
- parse: Km(),
6158
- valid: qm(),
6159
- clean: Jm(),
6160
- inc: Ym(),
6161
- diff: Xm(),
6162
- major: Zm(),
6163
- minor: Qm(),
6164
- patch: $m(),
6165
- prerelease: eh(),
6257
+ parse: dh(),
6258
+ valid: fh(),
6259
+ clean: ph(),
6260
+ inc: mh(),
6261
+ diff: hh(),
6262
+ major: gh(),
6263
+ minor: _h(),
6264
+ patch: vh(),
6265
+ prerelease: yh(),
6166
6266
  compare: Q(),
6167
- rcompare: th(),
6168
- compareLoose: nh(),
6169
- compareBuild: rh(),
6170
- sort: ih(),
6171
- rsort: ah(),
6172
- gt: oh(),
6173
- lt: sh(),
6174
- eq: ch(),
6175
- neq: lh(),
6176
- gte: uh(),
6177
- lte: dh(),
6178
- cmp: fh(),
6179
- coerce: ph(),
6180
- Comparator: hh(),
6267
+ rcompare: bh(),
6268
+ compareLoose: xh(),
6269
+ compareBuild: Sh(),
6270
+ sort: Ch(),
6271
+ rsort: wh(),
6272
+ gt: Th(),
6273
+ lt: Eh(),
6274
+ eq: Dh(),
6275
+ neq: Oh(),
6276
+ gte: kh(),
6277
+ lte: Ah(),
6278
+ cmp: jh(),
6279
+ coerce: Mh(),
6280
+ Comparator: Ph(),
6181
6281
  Range: $(),
6182
- satisfies: gh(),
6183
- toComparators: _h(),
6184
- maxSatisfying: vh(),
6185
- minSatisfying: yh(),
6186
- minVersion: bh(),
6187
- validRange: xh(),
6188
- outside: Sh(),
6189
- gtr: Ch(),
6190
- ltr: wh(),
6191
- intersects: Th(),
6192
- simplifyRange: Eh(),
6193
- subset: Dh(),
6282
+ satisfies: Fh(),
6283
+ toComparators: Ih(),
6284
+ maxSatisfying: Lh(),
6285
+ minSatisfying: Rh(),
6286
+ minVersion: zh(),
6287
+ validRange: Bh(),
6288
+ outside: Vh(),
6289
+ gtr: Hh(),
6290
+ ltr: Uh(),
6291
+ intersects: Wh(),
6292
+ simplifyRange: Gh(),
6293
+ subset: Kh(),
6194
6294
  SemVer: i,
6195
6295
  re: n.re,
6196
6296
  src: n.src,
@@ -6200,15 +6300,15 @@ var yp = (e) => {
6200
6300
  compareIdentifiers: a.compareIdentifiers,
6201
6301
  rcompareIdentifiers: a.rcompareIdentifiers
6202
6302
  };
6203
- })))(), kh = (e, t) => Ah(t) ? t.hostnames.includes(new URL(e).hostname) : jh(t) ? !!e.match(t.regexp) : !1, Ah = (e) => Am.safeParse(e).success, jh = (e) => jm.safeParse(e).success, Mh = (e, t) => t ? (0, Oh.satisfies)(e, t) : !0, Nh = (e, t, n) => Mh(t, n.libraryVersionRange) && kh(e, n.matcher), Ph = (e, t) => e.siteRegistrations.filter((e) => Nh(t, Dm(), e)), Fh = (e, t) => Ph(e, t).flatMap(({ parsers: e, name: t }) => e.filter((e) => Rm(e) && e in Tm).map((e) => ({
6204
- parser: Tm[e],
6303
+ })))(), Jh = (e, t) => Yh(t) ? t.hostnames.includes(new URL(e).hostname) : Xh(t) ? !!e.match(t.regexp) : !1, Yh = (e) => Ym.safeParse(e).success, Xh = (e) => Xm.safeParse(e).success, Zh = (e, t) => t ? (0, qh.satisfies)(e, t) : !0, Qh = (e, t, n) => Zh(t, n.libraryVersionRange) && Jh(e, n.matcher), $h = (e, t) => e.siteRegistrations.filter((e) => Qh(t, Km(), e)), eg = (e, t) => $h(e, t).flatMap(({ parsers: e, name: t }) => e.filter((e) => rh(e) && e in Wm).map((e) => ({
6304
+ parser: Wm[e],
6205
6305
  parserType: e,
6206
6306
  name: t
6207
- }))), Ih = (e, t) => {
6208
- let n = Fh(e, t.url);
6307
+ }))), tg = (e, t) => {
6308
+ let n = eg(e, t.url);
6209
6309
  for (let { parser: e, parserType: r, name: i } of n) {
6210
6310
  let n = e(t);
6211
- if (Jc(n) || Yc(n) || Xc(n)) return {
6311
+ if (qc(n) || Jc(n) || Yc(n)) return {
6212
6312
  ...n,
6213
6313
  meta: {
6214
6314
  parserName: i,
@@ -6218,26 +6318,26 @@ var yp = (e) => {
6218
6318
  };
6219
6319
  }
6220
6320
  return {
6221
- ...cc(t),
6321
+ ...sc(t),
6222
6322
  meta: {
6223
6323
  parserName: null,
6224
6324
  parserType: X.NoResourceFound,
6225
6325
  referrer: t.url
6226
6326
  }
6227
6327
  };
6228
- }, Lh = (e, t) => {
6328
+ }, ng = (e, t) => {
6229
6329
  switch (t) {
6230
6330
  case Ao.CA: return new URL(`https://${e}.rl.ca.talis.com`);
6231
6331
  default: return new URL(`https://${e}.rl.talis.com`);
6232
6332
  }
6233
- }, Rh = (e, t) => {
6234
- let n = Lh(e, t);
6333
+ }, rg = (e, t) => {
6334
+ let n = ng(e, t);
6235
6335
  return new URL("/ui/forms/bookmarklet.html", n);
6236
- }, zh = (e, t, n) => {
6336
+ }, ig = (e, t, n) => {
6237
6337
  let r = To(t);
6238
6338
  r.append("fast", "true"), r.append("breakout", "true"), n && (n.parserName && r.append("targetTitle", n.parserName), r.append("referrer", n.referrer));
6239
6339
  let i = new URL(e.toString());
6240
6340
  return i.search = r.toString(), i;
6241
6341
  };
6242
6342
  //#endregion
6243
- export { ro as BookGenresSchema, Lo as CustomerListSchema, Io as CustomerSchema, Ko as DirectLinkOnlyResultSchema, F as Genre, Am as HostnamesMatcherSchema, io as JournalGenresSchema, bo as NON_OPENURL_PROPERTIES, oo as NonOpenUrlPropertiesSchema, Go as NothingParsedResultSchema, yo as OPENURL_KEYS, lo as OpenUrlAudioVisualResourceSchema, so as OpenUrlBookResourceSchema, fo as OpenUrlDocumentResourceSchema, uo as OpenUrlImageResourceSchema, co as OpenUrlJournalResourceSchema, ao as OpenUrlResourceSchema, qo as OpenUrlResultSchema, po as OpenUrlWebpageResourceSchema, Tm as PARSERS, Pm as ParserRegistrySchema, X as ParserType, Wo as ParsingMetadataSchema, Po as ParsingRequestSchema, Zo as ParsingResponseSchema, Xo as ParsingResultSchema, km as REGISTRY, jm as RegExpMatcherSchema, zm as ResourceDataSchema, mo as ResourceSchema, Nm as SiteRegistrationSchema, Yo as SummonSearchResultSchema, Ao as TenantRegion, Mo as TenantRegistrySchema, jo as TenantSchema, Mm as UrlMatcherSchema, Jo as Z3988SearchResultSchema, Ho as convertCustomerListToTenantRegistry, R as createAudioVisual, I as createBook, go as createDocument, ho as createImage, L as createJournal, _o as createWebpage, Qo as directLinkOnly, Do as fromOpenUrl, Rh as getBaseBookmarkingUrl, Dm as getLibraryVersion, Ro as isCustomer, zo as isCustomerList, qc as isDirectLinkOnlyResult, ko as isGenre, Zc as isNothingParsedResult, Jc as isOpenUrlResult, Fm as isParserRegistry, Rm as isParserType, Kc as isParsingMetadata, Fo as isParsingRequest, Gc as isParsingResponse, Wc as isParsingResult, Bm as isResourceData, Im as isSiteRegistration, Xc as isSummonSearchResult, Bo as isTenant, Vo as isTenantRegion, Lm as isUrlMatcher, Yc as isZ3988SearchResult, z as nothingParsed, B as openUrlResource, Ih as parseResource, es as summonSearchResult, zh as toBookmarkingWorkflowUrl, To as toOpenUrl, $o as z3988SearchResult };
6343
+ export { ro as BookGenresSchema, Lo as CustomerListSchema, Io as CustomerSchema, Ko as DirectLinkOnlyResultSchema, F as Genre, Ym as HostnamesMatcherSchema, io as JournalGenresSchema, bo as NON_OPENURL_PROPERTIES, oo as NonOpenUrlPropertiesSchema, Go as NothingParsedResultSchema, yo as OPENURL_KEYS, lo as OpenUrlAudioVisualResourceSchema, so as OpenUrlBookResourceSchema, fo as OpenUrlDocumentResourceSchema, uo as OpenUrlImageResourceSchema, co as OpenUrlJournalResourceSchema, ao as OpenUrlResourceSchema, qo as OpenUrlResultSchema, po as OpenUrlWebpageResourceSchema, Wm as PARSERS, $m as ParserRegistrySchema, X as ParserType, Wo as ParsingMetadataSchema, Po as ParsingRequestSchema, Zo as ParsingResponseSchema, Xo as ParsingResultSchema, Jm as REGISTRY, Xm as RegExpMatcherSchema, ih as ResourceDataSchema, mo as ResourceSchema, Qm as SiteRegistrationSchema, Yo as SummonSearchResultSchema, Ao as TenantRegion, Mo as TenantRegistrySchema, jo as TenantSchema, Zm as UrlMatcherSchema, Jo as Z3988SearchResultSchema, Ho as convertCustomerListToTenantRegistry, R as createAudioVisual, I as createBook, go as createDocument, ho as createImage, L as createJournal, _o as createWebpage, Qo as directLinkOnly, Do as fromOpenUrl, rg as getBaseBookmarkingUrl, Km as getLibraryVersion, Ro as isCustomer, zo as isCustomerList, Kc as isDirectLinkOnlyResult, ko as isGenre, Xc as isNothingParsedResult, qc as isOpenUrlResult, eh as isParserRegistry, rh as isParserType, Gc as isParsingMetadata, Fo as isParsingRequest, Wc as isParsingResponse, Uc as isParsingResult, ah as isResourceData, th as isSiteRegistration, Yc as isSummonSearchResult, Bo as isTenant, Vo as isTenantRegion, nh as isUrlMatcher, Jc as isZ3988SearchResult, z as nothingParsed, B as openUrlResource, tg as parseResource, es as summonSearchResult, ig as toBookmarkingWorkflowUrl, To as toOpenUrl, $o as z3988SearchResult };