@talisdev/bibliographic-resource-parsers-lib 5.38.0 → 5.40.1

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,25 +5196,123 @@ var yp = (e) => {
5196
5196
  date: l,
5197
5197
  uri: u
5198
5198
  }));
5199
+ }, xm = W.extend({
5200
+ "@type": N("VideoObject"),
5201
+ name: O(),
5202
+ url: O(),
5203
+ datePublished: O(),
5204
+ creator: P(M([j({
5205
+ "@type": N("Person"),
5206
+ name: O()
5207
+ }), A(j({
5208
+ "@type": N("Person"),
5209
+ name: O()
5210
+ }))]))
5211
+ }), Sm = (e) => {
5212
+ let t = Zs(e);
5213
+ if (!t) return null;
5214
+ let n = Qs(t), r = xm.safeParse(n);
5215
+ return r.success ? r.data : null;
5216
+ }, Cm = (e) => {
5217
+ if (e.creator) return Array.isArray(e.creator) ? e.creator.map((e) => e.name) : [e.creator.name];
5218
+ }, wm = ({ document: e }) => {
5219
+ let t = Sm(e);
5220
+ if (!t) return z();
5221
+ let n = Cm(t);
5222
+ return B(R({
5223
+ title: t.name,
5224
+ date: t.datePublished,
5225
+ au: n,
5226
+ uri: t.url
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();
5199
5297
  }, X = /* @__PURE__ */ function(e) {
5200
- 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;
5201
- }({}), xm = {
5202
- [X.NoResourceFound]: cc,
5298
+ 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;
5299
+ }({}), Bm = {
5300
+ [X.NoResourceFound]: sc,
5203
5301
  [X.Z3988]: ns,
5204
5302
  [X.Z3988SearchResult]: nu,
5205
5303
  [X.Amazon]: us,
5206
- [X.CupOfJo]: sc,
5304
+ [X.CupOfJo]: oc,
5207
5305
  [X.Jstor]: Ru,
5208
- [X.Youtube]: il,
5209
- [X.SagePub]: Tc,
5306
+ [X.Youtube]: rl,
5307
+ [X.SagePub]: wc,
5210
5308
  [X.SageVideo]: tu,
5211
- [X.ScienceDirect]: Ic,
5309
+ [X.ScienceDirect]: Fc,
5212
5310
  [X.Springer]: jl,
5213
- [X.TaylorFrancis]: Uc,
5311
+ [X.TaylorFrancis]: Hc,
5214
5312
  [X.Wiley]: $l,
5215
- [X.VuFind]: el,
5313
+ [X.VuFind]: $c,
5216
5314
  [X.ClinicalKey]: qs,
5217
- [X.DOAJ]: mc,
5315
+ [X.DOAJ]: pc,
5218
5316
  [X.Primo]: Sd,
5219
5317
  [X.IngentaConnect]: jd,
5220
5318
  [X.Ebscohost]: tf,
@@ -5238,8 +5336,10 @@ var yp = (e) => {
5238
5336
  [X.HeinOnline]: em,
5239
5337
  [X.PrimoNde]: dm,
5240
5338
  [X.MichiganLaw]: pm,
5241
- [X.EbookCentral]: bm
5242
- }, Sm = "5.38.0", Cm = () => Sm, wm = [
5339
+ [X.EbookCentral]: bm,
5340
+ [X.AlexanderStreetPress]: wm,
5341
+ [X.LondonReviewOfBooks]: zm
5342
+ }, Vm = "5.40.1", Hm = () => Vm, Um = [
5243
5343
  "com.au",
5244
5344
  "com",
5245
5345
  "ca",
@@ -5247,8 +5347,8 @@ var yp = (e) => {
5247
5347
  "de",
5248
5348
  "fr",
5249
5349
  "nl"
5250
- ].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]), Tm = {
5251
- version: Cm(),
5350
+ ].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]), Wm = {
5351
+ version: Hm(),
5252
5352
  siteRegistrations: [
5253
5353
  {
5254
5354
  matcher: { regexp: "^https://[a-z0-9\\-]+\\.on\\.worldcat\\.org/search" },
@@ -5276,7 +5376,7 @@ var yp = (e) => {
5276
5376
  parsers: [X.ScienceDirect]
5277
5377
  },
5278
5378
  {
5279
- matcher: { hostnames: wm },
5379
+ matcher: { hostnames: Um },
5280
5380
  name: "Amazon",
5281
5381
  parsers: [X.Amazon]
5282
5382
  },
@@ -5459,20 +5559,30 @@ var yp = (e) => {
5459
5559
  matcher: { regexp: "^https://ebookcentral[.-]proquest[.-]com/lib/" },
5460
5560
  name: "Ebook Central",
5461
5561
  parsers: [X.EbookCentral]
5562
+ },
5563
+ {
5564
+ matcher: { regexp: "^https://video[.-]alexanderstreet[.-]com" },
5565
+ name: "Alexander Street Press",
5566
+ parsers: [X.AlexanderStreetPress]
5567
+ },
5568
+ {
5569
+ matcher: { hostnames: ["www.lrb.co.uk"] },
5570
+ name: "London Review of Books",
5571
+ parsers: [X.LondonReviewOfBooks]
5462
5572
  }
5463
5573
  ]
5464
- }, Em = j({ hostnames: A(O()).min(1) }), Dm = j({ regexp: O() }), Om = M([Em, Dm]), km = j({
5465
- matcher: Om,
5574
+ }, Gm = j({ hostnames: A(O()).min(1) }), Km = j({ regexp: O() }), qm = M([Gm, Km]), Jm = j({
5575
+ matcher: qm,
5466
5576
  name: O(),
5467
5577
  parsers: A(O()),
5468
5578
  libraryVersionRange: O().optional()
5469
- }), Am = j({
5470
- siteRegistrations: A(km),
5579
+ }), Ym = j({
5580
+ siteRegistrations: A(Jm),
5471
5581
  version: O()
5472
- }), jm = (e) => Am.safeParse(e).success, Mm = (e) => km.safeParse(e).success, Nm = (e) => Om.safeParse(e).success, Pm = (e) => Object.values(X).includes(e), Fm = j({
5582
+ }), Xm = (e) => Ym.safeParse(e).success, Zm = (e) => Jm.safeParse(e).success, Qm = (e) => qm.safeParse(e).success, $m = (e) => Object.values(X).includes(e), eh = j({
5473
5583
  url: O(),
5474
5584
  document: eo((e) => typeof e == "object" && !!e)
5475
- }), Im = (e) => Fm.safeParse(e).success, Lm = /* @__PURE__ */ e(((e, t) => {
5585
+ }), th = (e) => eh.safeParse(e).success, nh = /* @__PURE__ */ e(((e, t) => {
5476
5586
  var n = "2.0.0", r = 256;
5477
5587
  t.exports = {
5478
5588
  MAX_LENGTH: r,
@@ -5492,10 +5602,10 @@ var yp = (e) => {
5492
5602
  FLAG_INCLUDE_PRERELEASE: 1,
5493
5603
  FLAG_LOOSE: 2
5494
5604
  };
5495
- })), Rm = /* @__PURE__ */ e(((e, t) => {
5605
+ })), rh = /* @__PURE__ */ e(((e, t) => {
5496
5606
  t.exports = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...e) => console.error("SEMVER", ...e) : () => {};
5497
- })), zm = /* @__PURE__ */ e(((e, t) => {
5498
- var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } = Lm(), a = Rm();
5607
+ })), ih = /* @__PURE__ */ e(((e, t) => {
5608
+ var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } = nh(), a = rh();
5499
5609
  e = t.exports = {};
5500
5610
  var o = e.re = [], s = e.safeRe = [], c = e.src = [], l = e.safeSrc = [], u = e.t = {}, d = 0, f = "[a-zA-Z0-9-]", p = [
5501
5611
  ["\\s", 1],
@@ -5509,10 +5619,10 @@ var yp = (e) => {
5509
5619
  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);
5510
5620
  };
5511
5621
  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*$");
5512
- })), Bm = /* @__PURE__ */ e(((e, t) => {
5622
+ })), ah = /* @__PURE__ */ e(((e, t) => {
5513
5623
  var n = Object.freeze({ loose: !0 }), r = Object.freeze({});
5514
5624
  t.exports = (e) => e ? typeof e == "object" ? e : n : r;
5515
- })), Vm = /* @__PURE__ */ e(((e, t) => {
5625
+ })), oh = /* @__PURE__ */ e(((e, t) => {
5516
5626
  var n = /^[0-9]+$/, r = (e, t) => {
5517
5627
  if (typeof e == "number" && typeof t == "number") return e === t ? 0 : e < t ? -1 : 1;
5518
5628
  let r = n.test(e), i = n.test(t);
@@ -5523,7 +5633,7 @@ var yp = (e) => {
5523
5633
  rcompareIdentifiers: (e, t) => r(t, e)
5524
5634
  };
5525
5635
  })), Z = /* @__PURE__ */ e(((e, t) => {
5526
- var n = Rm(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: i } = Lm(), { safeRe: a, t: o } = zm(), s = Bm(), { compareIdentifiers: c } = Vm();
5636
+ var n = rh(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: i } = nh(), { safeRe: a, t: o } = ih(), s = ah(), { compareIdentifiers: c } = oh();
5527
5637
  t.exports = class e {
5528
5638
  constructor(t, c) {
5529
5639
  if (c = s(c), t instanceof e) {
@@ -5643,7 +5753,7 @@ var yp = (e) => {
5643
5753
  return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
5644
5754
  }
5645
5755
  };
5646
- })), Hm = /* @__PURE__ */ e(((e, t) => {
5756
+ })), sh = /* @__PURE__ */ e(((e, t) => {
5647
5757
  var n = Z();
5648
5758
  t.exports = (e, t, r = !1) => {
5649
5759
  if (e instanceof n) return e;
@@ -5654,19 +5764,19 @@ var yp = (e) => {
5654
5764
  throw e;
5655
5765
  }
5656
5766
  };
5657
- })), Um = /* @__PURE__ */ e(((e, t) => {
5658
- var n = Hm();
5767
+ })), ch = /* @__PURE__ */ e(((e, t) => {
5768
+ var n = sh();
5659
5769
  t.exports = (e, t) => {
5660
5770
  let r = n(e, t);
5661
5771
  return r ? r.version : null;
5662
5772
  };
5663
- })), Wm = /* @__PURE__ */ e(((e, t) => {
5664
- var n = Hm();
5773
+ })), lh = /* @__PURE__ */ e(((e, t) => {
5774
+ var n = sh();
5665
5775
  t.exports = (e, t) => {
5666
5776
  let r = n(e.trim().replace(/^[=v]+/, ""), t);
5667
5777
  return r ? r.version : null;
5668
5778
  };
5669
- })), Gm = /* @__PURE__ */ e(((e, t) => {
5779
+ })), uh = /* @__PURE__ */ e(((e, t) => {
5670
5780
  var n = Z();
5671
5781
  t.exports = (e, t, r, i, a) => {
5672
5782
  typeof r == "string" && (a = i, i = r, r = void 0);
@@ -5676,8 +5786,8 @@ var yp = (e) => {
5676
5786
  return null;
5677
5787
  }
5678
5788
  };
5679
- })), Km = /* @__PURE__ */ e(((e, t) => {
5680
- var n = Hm();
5789
+ })), dh = /* @__PURE__ */ e(((e, t) => {
5790
+ var n = sh();
5681
5791
  t.exports = (e, t) => {
5682
5792
  let r = n(e, null, !0), i = n(t, null, !0), a = r.compare(i);
5683
5793
  if (a === 0) return null;
@@ -5689,17 +5799,17 @@ var yp = (e) => {
5689
5799
  let u = l ? "pre" : "";
5690
5800
  return r.major === i.major ? r.minor === i.minor ? r.patch === i.patch ? "prerelease" : u + "patch" : u + "minor" : u + "major";
5691
5801
  };
5692
- })), qm = /* @__PURE__ */ e(((e, t) => {
5802
+ })), fh = /* @__PURE__ */ e(((e, t) => {
5693
5803
  var n = Z();
5694
5804
  t.exports = (e, t) => new n(e, t).major;
5695
- })), Jm = /* @__PURE__ */ e(((e, t) => {
5805
+ })), ph = /* @__PURE__ */ e(((e, t) => {
5696
5806
  var n = Z();
5697
5807
  t.exports = (e, t) => new n(e, t).minor;
5698
- })), Ym = /* @__PURE__ */ e(((e, t) => {
5808
+ })), mh = /* @__PURE__ */ e(((e, t) => {
5699
5809
  var n = Z();
5700
5810
  t.exports = (e, t) => new n(e, t).patch;
5701
- })), Xm = /* @__PURE__ */ e(((e, t) => {
5702
- var n = Hm();
5811
+ })), hh = /* @__PURE__ */ e(((e, t) => {
5812
+ var n = sh();
5703
5813
  t.exports = (e, t) => {
5704
5814
  let r = n(e, t);
5705
5815
  return r && r.prerelease.length ? r.prerelease : null;
@@ -5707,44 +5817,44 @@ var yp = (e) => {
5707
5817
  })), Q = /* @__PURE__ */ e(((e, t) => {
5708
5818
  var n = Z();
5709
5819
  t.exports = (e, t, r) => new n(e, r).compare(new n(t, r));
5710
- })), Zm = /* @__PURE__ */ e(((e, t) => {
5820
+ })), gh = /* @__PURE__ */ e(((e, t) => {
5711
5821
  var n = Q();
5712
5822
  t.exports = (e, t, r) => n(t, e, r);
5713
- })), Qm = /* @__PURE__ */ e(((e, t) => {
5823
+ })), _h = /* @__PURE__ */ e(((e, t) => {
5714
5824
  var n = Q();
5715
5825
  t.exports = (e, t) => n(e, t, !0);
5716
- })), $m = /* @__PURE__ */ e(((e, t) => {
5826
+ })), vh = /* @__PURE__ */ e(((e, t) => {
5717
5827
  var n = Z();
5718
5828
  t.exports = (e, t, r) => {
5719
5829
  let i = new n(e, r), a = new n(t, r);
5720
5830
  return i.compare(a) || i.compareBuild(a);
5721
5831
  };
5722
- })), eh = /* @__PURE__ */ e(((e, t) => {
5723
- var n = $m();
5832
+ })), yh = /* @__PURE__ */ e(((e, t) => {
5833
+ var n = vh();
5724
5834
  t.exports = (e, t) => e.sort((e, r) => n(e, r, t));
5725
- })), th = /* @__PURE__ */ e(((e, t) => {
5726
- var n = $m();
5835
+ })), bh = /* @__PURE__ */ e(((e, t) => {
5836
+ var n = vh();
5727
5837
  t.exports = (e, t) => e.sort((e, r) => n(r, e, t));
5728
- })), nh = /* @__PURE__ */ e(((e, t) => {
5838
+ })), xh = /* @__PURE__ */ e(((e, t) => {
5729
5839
  var n = Q();
5730
5840
  t.exports = (e, t, r) => n(e, t, r) > 0;
5731
- })), rh = /* @__PURE__ */ e(((e, t) => {
5841
+ })), Sh = /* @__PURE__ */ e(((e, t) => {
5732
5842
  var n = Q();
5733
5843
  t.exports = (e, t, r) => n(e, t, r) < 0;
5734
- })), ih = /* @__PURE__ */ e(((e, t) => {
5844
+ })), Ch = /* @__PURE__ */ e(((e, t) => {
5735
5845
  var n = Q();
5736
5846
  t.exports = (e, t, r) => n(e, t, r) === 0;
5737
- })), ah = /* @__PURE__ */ e(((e, t) => {
5847
+ })), wh = /* @__PURE__ */ e(((e, t) => {
5738
5848
  var n = Q();
5739
5849
  t.exports = (e, t, r) => n(e, t, r) !== 0;
5740
- })), oh = /* @__PURE__ */ e(((e, t) => {
5850
+ })), Th = /* @__PURE__ */ e(((e, t) => {
5741
5851
  var n = Q();
5742
5852
  t.exports = (e, t, r) => n(e, t, r) >= 0;
5743
- })), sh = /* @__PURE__ */ e(((e, t) => {
5853
+ })), Eh = /* @__PURE__ */ e(((e, t) => {
5744
5854
  var n = Q();
5745
5855
  t.exports = (e, t, r) => n(e, t, r) <= 0;
5746
- })), ch = /* @__PURE__ */ e(((e, t) => {
5747
- var n = ih(), r = ah(), i = nh(), a = oh(), o = rh(), s = sh();
5856
+ })), Dh = /* @__PURE__ */ e(((e, t) => {
5857
+ var n = Ch(), r = wh(), i = xh(), a = Th(), o = Sh(), s = Eh();
5748
5858
  t.exports = (e, t, c, l) => {
5749
5859
  switch (t) {
5750
5860
  case "===": return typeof e == "object" && (e = e.version), typeof c == "object" && (c = c.version), e === c;
@@ -5760,8 +5870,8 @@ var yp = (e) => {
5760
5870
  default: throw TypeError(`Invalid operator: ${t}`);
5761
5871
  }
5762
5872
  };
5763
- })), lh = /* @__PURE__ */ e(((e, t) => {
5764
- var n = Z(), r = Hm(), { safeRe: i, t: a } = zm();
5873
+ })), Oh = /* @__PURE__ */ e(((e, t) => {
5874
+ var n = Z(), r = sh(), { safeRe: i, t: a } = ih();
5765
5875
  t.exports = (e, t) => {
5766
5876
  if (e instanceof n) return e;
5767
5877
  if (typeof e == "number" && (e = String(e)), typeof e != "string") return null;
@@ -5777,7 +5887,7 @@ var yp = (e) => {
5777
5887
  let s = o[2];
5778
5888
  return r(`${s}.${o[3] || "0"}.${o[4] || "0"}${t.includePrerelease && o[5] ? `-${o[5]}` : ""}${t.includePrerelease && o[6] ? `+${o[6]}` : ""}`, t);
5779
5889
  };
5780
- })), uh = /* @__PURE__ */ e(((e, t) => {
5890
+ })), kh = /* @__PURE__ */ e(((e, t) => {
5781
5891
  t.exports = class {
5782
5892
  constructor() {
5783
5893
  this.max = 1e3, this.map = /* @__PURE__ */ new Map();
@@ -5867,7 +5977,7 @@ var yp = (e) => {
5867
5977
  return !1;
5868
5978
  }
5869
5979
  };
5870
- var r = new (uh())(), i = Bm(), a = dh(), o = Rm(), s = Z(), { safeRe: c, t: l, comparatorTrimReplace: u, tildeTrimReplace: d, caretTrimReplace: f } = zm(), { FLAG_INCLUDE_PRERELEASE: p, FLAG_LOOSE: m } = Lm(), h = (e) => e.value === "<0.0.0-0", g = (e) => e.value === "", _ = (e, t) => {
5980
+ var r = new (kh())(), i = ah(), a = Ah(), o = rh(), s = Z(), { safeRe: c, t: l, comparatorTrimReplace: u, tildeTrimReplace: d, caretTrimReplace: f } = ih(), { FLAG_INCLUDE_PRERELEASE: p, FLAG_LOOSE: m } = nh(), h = (e) => e.value === "<0.0.0-0", g = (e) => e.value === "", _ = (e, t) => {
5871
5981
  let n = !0, r = e.slice(), i = r.pop();
5872
5982
  for (; n && r.length;) n = r.every((e) => i.intersects(e, t)), i = r.pop();
5873
5983
  return n;
@@ -5905,7 +6015,7 @@ var yp = (e) => {
5905
6015
  }
5906
6016
  return !0;
5907
6017
  };
5908
- })), dh = /* @__PURE__ */ e(((e, t) => {
6018
+ })), Ah = /* @__PURE__ */ e(((e, t) => {
5909
6019
  var n = Symbol("SemVer ANY");
5910
6020
  t.exports = class e {
5911
6021
  static get ANY() {
@@ -5940,8 +6050,8 @@ var yp = (e) => {
5940
6050
  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(">")));
5941
6051
  }
5942
6052
  };
5943
- var r = Bm(), { safeRe: i, t: a } = zm(), o = ch(), s = Rm(), c = Z(), l = $();
5944
- })), fh = /* @__PURE__ */ e(((e, t) => {
6053
+ var r = ah(), { safeRe: i, t: a } = ih(), o = Dh(), s = rh(), c = Z(), l = $();
6054
+ })), jh = /* @__PURE__ */ e(((e, t) => {
5945
6055
  var n = $();
5946
6056
  t.exports = (e, t, r) => {
5947
6057
  try {
@@ -5951,10 +6061,10 @@ var yp = (e) => {
5951
6061
  }
5952
6062
  return t.test(e);
5953
6063
  };
5954
- })), ph = /* @__PURE__ */ e(((e, t) => {
6064
+ })), Mh = /* @__PURE__ */ e(((e, t) => {
5955
6065
  var n = $();
5956
6066
  t.exports = (e, t) => new n(e, t).set.map((e) => e.map((e) => e.value).join(" ").trim().split(" "));
5957
- })), mh = /* @__PURE__ */ e(((e, t) => {
6067
+ })), Nh = /* @__PURE__ */ e(((e, t) => {
5958
6068
  var n = Z(), r = $();
5959
6069
  t.exports = (e, t, i) => {
5960
6070
  let a = null, o = null, s = null;
@@ -5967,7 +6077,7 @@ var yp = (e) => {
5967
6077
  s.test(e) && (!a || o.compare(e) === -1) && (a = e, o = new n(a, i));
5968
6078
  }), a;
5969
6079
  };
5970
- })), hh = /* @__PURE__ */ e(((e, t) => {
6080
+ })), Ph = /* @__PURE__ */ e(((e, t) => {
5971
6081
  var n = Z(), r = $();
5972
6082
  t.exports = (e, t, i) => {
5973
6083
  let a = null, o = null, s = null;
@@ -5980,8 +6090,8 @@ var yp = (e) => {
5980
6090
  s.test(e) && (!a || o.compare(e) === 1) && (a = e, o = new n(a, i));
5981
6091
  }), a;
5982
6092
  };
5983
- })), gh = /* @__PURE__ */ e(((e, t) => {
5984
- var n = Z(), r = $(), i = nh();
6093
+ })), Fh = /* @__PURE__ */ e(((e, t) => {
6094
+ var n = Z(), r = $(), i = xh();
5985
6095
  t.exports = (e, t) => {
5986
6096
  e = new r(e, t);
5987
6097
  let a = new n("0.0.0");
@@ -6005,7 +6115,7 @@ var yp = (e) => {
6005
6115
  }
6006
6116
  return a && e.test(a) ? a : null;
6007
6117
  };
6008
- })), _h = /* @__PURE__ */ e(((e, t) => {
6118
+ })), Ih = /* @__PURE__ */ e(((e, t) => {
6009
6119
  var n = $();
6010
6120
  t.exports = (e, t) => {
6011
6121
  try {
@@ -6014,8 +6124,8 @@ var yp = (e) => {
6014
6124
  return null;
6015
6125
  }
6016
6126
  };
6017
- })), vh = /* @__PURE__ */ e(((e, t) => {
6018
- var n = Z(), r = dh(), { ANY: i } = r, a = $(), o = fh(), s = nh(), c = rh(), l = sh(), u = oh();
6127
+ })), Lh = /* @__PURE__ */ e(((e, t) => {
6128
+ var n = Z(), r = Ah(), { ANY: i } = r, a = $(), o = jh(), s = xh(), c = Sh(), l = Eh(), u = Th();
6019
6129
  t.exports = (e, t, d, f) => {
6020
6130
  e = new n(e, f), t = new a(t, f);
6021
6131
  let p, m, h, g, _;
@@ -6037,17 +6147,17 @@ var yp = (e) => {
6037
6147
  }
6038
6148
  return !0;
6039
6149
  };
6040
- })), yh = /* @__PURE__ */ e(((e, t) => {
6041
- var n = vh();
6150
+ })), Rh = /* @__PURE__ */ e(((e, t) => {
6151
+ var n = Lh();
6042
6152
  t.exports = (e, t, r) => n(e, t, ">", r);
6043
- })), bh = /* @__PURE__ */ e(((e, t) => {
6044
- var n = vh();
6153
+ })), zh = /* @__PURE__ */ e(((e, t) => {
6154
+ var n = Lh();
6045
6155
  t.exports = (e, t, r) => n(e, t, "<", r);
6046
- })), xh = /* @__PURE__ */ e(((e, t) => {
6156
+ })), Bh = /* @__PURE__ */ e(((e, t) => {
6047
6157
  var n = $();
6048
6158
  t.exports = (e, t, r) => (e = new n(e, r), t = new n(t, r), e.intersects(t, r));
6049
- })), Sh = /* @__PURE__ */ e(((e, t) => {
6050
- var n = fh(), r = Q();
6159
+ })), Vh = /* @__PURE__ */ e(((e, t) => {
6160
+ var n = jh(), r = Q();
6051
6161
  t.exports = (e, t, i) => {
6052
6162
  let a = [], o = null, s = null, c = e.sort((e, t) => r(e, t, i));
6053
6163
  for (let e of c) n(e, t, i) ? (s = e, o ||= e) : (s && a.push([o, s]), s = null, o = null);
@@ -6057,8 +6167,8 @@ var yp = (e) => {
6057
6167
  let u = l.join(" || "), d = typeof t.raw == "string" ? t.raw : String(t);
6058
6168
  return u.length < d.length ? u : t;
6059
6169
  };
6060
- })), Ch = /* @__PURE__ */ e(((e, t) => {
6061
- var n = $(), r = dh(), { ANY: i } = r, a = fh(), o = Q(), s = (e, t, r = {}) => {
6170
+ })), Hh = /* @__PURE__ */ e(((e, t) => {
6171
+ var n = $(), r = Ah(), { ANY: i } = r, a = jh(), o = Q(), s = (e, t, r = {}) => {
6062
6172
  if (e === t) return !0;
6063
6173
  e = new n(e, r), t = new n(t, r);
6064
6174
  let i = !1;
@@ -6116,46 +6226,46 @@ var yp = (e) => {
6116
6226
  return r < 0 ? e : r > 0 || t.operator === "<" && e.operator === "<=" ? t : e;
6117
6227
  };
6118
6228
  t.exports = s;
6119
- })), wh = (/* @__PURE__ */ e(((e, t) => {
6120
- var n = zm(), r = Lm(), i = Z(), a = Vm();
6229
+ })), Uh = (/* @__PURE__ */ e(((e, t) => {
6230
+ var n = ih(), r = nh(), i = Z(), a = oh();
6121
6231
  t.exports = {
6122
- parse: Hm(),
6123
- valid: Um(),
6124
- clean: Wm(),
6125
- inc: Gm(),
6126
- diff: Km(),
6127
- major: qm(),
6128
- minor: Jm(),
6129
- patch: Ym(),
6130
- prerelease: Xm(),
6232
+ parse: sh(),
6233
+ valid: ch(),
6234
+ clean: lh(),
6235
+ inc: uh(),
6236
+ diff: dh(),
6237
+ major: fh(),
6238
+ minor: ph(),
6239
+ patch: mh(),
6240
+ prerelease: hh(),
6131
6241
  compare: Q(),
6132
- rcompare: Zm(),
6133
- compareLoose: Qm(),
6134
- compareBuild: $m(),
6135
- sort: eh(),
6136
- rsort: th(),
6137
- gt: nh(),
6138
- lt: rh(),
6139
- eq: ih(),
6140
- neq: ah(),
6141
- gte: oh(),
6142
- lte: sh(),
6143
- cmp: ch(),
6144
- coerce: lh(),
6145
- Comparator: dh(),
6242
+ rcompare: gh(),
6243
+ compareLoose: _h(),
6244
+ compareBuild: vh(),
6245
+ sort: yh(),
6246
+ rsort: bh(),
6247
+ gt: xh(),
6248
+ lt: Sh(),
6249
+ eq: Ch(),
6250
+ neq: wh(),
6251
+ gte: Th(),
6252
+ lte: Eh(),
6253
+ cmp: Dh(),
6254
+ coerce: Oh(),
6255
+ Comparator: Ah(),
6146
6256
  Range: $(),
6147
- satisfies: fh(),
6148
- toComparators: ph(),
6149
- maxSatisfying: mh(),
6150
- minSatisfying: hh(),
6151
- minVersion: gh(),
6152
- validRange: _h(),
6153
- outside: vh(),
6154
- gtr: yh(),
6155
- ltr: bh(),
6156
- intersects: xh(),
6157
- simplifyRange: Sh(),
6158
- subset: Ch(),
6257
+ satisfies: jh(),
6258
+ toComparators: Mh(),
6259
+ maxSatisfying: Nh(),
6260
+ minSatisfying: Ph(),
6261
+ minVersion: Fh(),
6262
+ validRange: Ih(),
6263
+ outside: Lh(),
6264
+ gtr: Rh(),
6265
+ ltr: zh(),
6266
+ intersects: Bh(),
6267
+ simplifyRange: Vh(),
6268
+ subset: Hh(),
6159
6269
  SemVer: i,
6160
6270
  re: n.re,
6161
6271
  src: n.src,
@@ -6165,15 +6275,15 @@ var yp = (e) => {
6165
6275
  compareIdentifiers: a.compareIdentifiers,
6166
6276
  rcompareIdentifiers: a.rcompareIdentifiers
6167
6277
  };
6168
- })))(), Th = (e, t) => Eh(t) ? t.hostnames.includes(new URL(e).hostname) : Dh(t) ? !!e.match(t.regexp) : !1, Eh = (e) => Em.safeParse(e).success, Dh = (e) => Dm.safeParse(e).success, Oh = (e, t) => t ? (0, wh.satisfies)(e, t) : !0, kh = (e, t, n) => Oh(t, n.libraryVersionRange) && Th(e, n.matcher), Ah = (e, t) => e.siteRegistrations.filter((e) => kh(t, Cm(), e)), jh = (e, t) => Ah(e, t).flatMap(({ parsers: e, name: t }) => e.filter((e) => Pm(e) && e in xm).map((e) => ({
6169
- parser: xm[e],
6278
+ })))(), Wh = (e, t) => Gh(t) ? t.hostnames.includes(new URL(e).hostname) : Kh(t) ? !!e.match(t.regexp) : !1, Gh = (e) => Gm.safeParse(e).success, Kh = (e) => Km.safeParse(e).success, qh = (e, t) => t ? (0, Uh.satisfies)(e, t) : !0, Jh = (e, t, n) => qh(t, n.libraryVersionRange) && Wh(e, n.matcher), Yh = (e, t) => e.siteRegistrations.filter((e) => Jh(t, Hm(), e)), Xh = (e, t) => Yh(e, t).flatMap(({ parsers: e, name: t }) => e.filter((e) => $m(e) && e in Bm).map((e) => ({
6279
+ parser: Bm[e],
6170
6280
  parserType: e,
6171
6281
  name: t
6172
- }))), Mh = (e, t) => {
6173
- let n = jh(e, t.url);
6282
+ }))), Zh = (e, t) => {
6283
+ let n = Xh(e, t.url);
6174
6284
  for (let { parser: e, parserType: r, name: i } of n) {
6175
6285
  let n = e(t);
6176
- if (Jc(n) || Yc(n) || Xc(n)) return {
6286
+ if (qc(n) || Jc(n) || Yc(n)) return {
6177
6287
  ...n,
6178
6288
  meta: {
6179
6289
  parserName: i,
@@ -6183,26 +6293,26 @@ var yp = (e) => {
6183
6293
  };
6184
6294
  }
6185
6295
  return {
6186
- ...cc(t),
6296
+ ...sc(t),
6187
6297
  meta: {
6188
6298
  parserName: null,
6189
6299
  parserType: X.NoResourceFound,
6190
6300
  referrer: t.url
6191
6301
  }
6192
6302
  };
6193
- }, Nh = (e, t) => {
6303
+ }, Qh = (e, t) => {
6194
6304
  switch (t) {
6195
6305
  case Ao.CA: return new URL(`https://${e}.rl.ca.talis.com`);
6196
6306
  default: return new URL(`https://${e}.rl.talis.com`);
6197
6307
  }
6198
- }, Ph = (e, t) => {
6199
- let n = Nh(e, t);
6308
+ }, $h = (e, t) => {
6309
+ let n = Qh(e, t);
6200
6310
  return new URL("/ui/forms/bookmarklet.html", n);
6201
- }, Fh = (e, t, n) => {
6311
+ }, eg = (e, t, n) => {
6202
6312
  let r = To(t);
6203
6313
  r.append("fast", "true"), r.append("breakout", "true"), n && (n.parserName && r.append("targetTitle", n.parserName), r.append("referrer", n.referrer));
6204
6314
  let i = new URL(e.toString());
6205
6315
  return i.search = r.toString(), i;
6206
6316
  };
6207
6317
  //#endregion
6208
- export { ro as BookGenresSchema, Lo as CustomerListSchema, Io as CustomerSchema, Ko as DirectLinkOnlyResultSchema, F as Genre, Em 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, xm as PARSERS, Am as ParserRegistrySchema, X as ParserType, Wo as ParsingMetadataSchema, Po as ParsingRequestSchema, Zo as ParsingResponseSchema, Xo as ParsingResultSchema, Tm as REGISTRY, Dm as RegExpMatcherSchema, Fm as ResourceDataSchema, mo as ResourceSchema, km as SiteRegistrationSchema, Yo as SummonSearchResultSchema, Ao as TenantRegion, Mo as TenantRegistrySchema, jo as TenantSchema, Om 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, Ph as getBaseBookmarkingUrl, Cm as getLibraryVersion, Ro as isCustomer, zo as isCustomerList, qc as isDirectLinkOnlyResult, ko as isGenre, Zc as isNothingParsedResult, Jc as isOpenUrlResult, jm as isParserRegistry, Pm as isParserType, Kc as isParsingMetadata, Fo as isParsingRequest, Gc as isParsingResponse, Wc as isParsingResult, Im as isResourceData, Mm as isSiteRegistration, Xc as isSummonSearchResult, Bo as isTenant, Vo as isTenantRegion, Nm as isUrlMatcher, Yc as isZ3988SearchResult, z as nothingParsed, B as openUrlResource, Mh as parseResource, es as summonSearchResult, Fh as toBookmarkingWorkflowUrl, To as toOpenUrl, $o as z3988SearchResult };
6318
+ export { ro as BookGenresSchema, Lo as CustomerListSchema, Io as CustomerSchema, Ko as DirectLinkOnlyResultSchema, F as Genre, Gm 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, Bm as PARSERS, Ym as ParserRegistrySchema, X as ParserType, Wo as ParsingMetadataSchema, Po as ParsingRequestSchema, Zo as ParsingResponseSchema, Xo as ParsingResultSchema, Wm as REGISTRY, Km as RegExpMatcherSchema, eh as ResourceDataSchema, mo as ResourceSchema, Jm as SiteRegistrationSchema, Yo as SummonSearchResultSchema, Ao as TenantRegion, Mo as TenantRegistrySchema, jo as TenantSchema, qm 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, $h as getBaseBookmarkingUrl, Hm as getLibraryVersion, Ro as isCustomer, zo as isCustomerList, Kc as isDirectLinkOnlyResult, ko as isGenre, Xc as isNothingParsedResult, qc as isOpenUrlResult, Xm as isParserRegistry, $m as isParserType, Gc as isParsingMetadata, Fo as isParsingRequest, Wc as isParsingResponse, Uc as isParsingResult, th as isResourceData, Zm as isSiteRegistration, Yc as isSummonSearchResult, Bo as isTenant, Vo as isTenantRegion, Qm as isUrlMatcher, Jc as isZ3988SearchResult, z as nothingParsed, B as openUrlResource, Zh as parseResource, es as summonSearchResult, eg as toBookmarkingWorkflowUrl, To as toOpenUrl, $o as z3988SearchResult };