@talisdev/bibliographic-resource-parsers-lib 5.27.0 → 5.27.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.
@@ -1,4 +1,4 @@
1
- function d(e, t, r) {
1
+ function m(e, t, r) {
2
2
  function n(a, c) {
3
3
  var u;
4
4
  Object.defineProperty(a, "_zod", {
@@ -25,7 +25,7 @@ function d(e, t, r) {
25
25
  value: (a) => r?.Parent && a instanceof r.Parent ? !0 : a?._zod?.traits?.has(e)
26
26
  }), Object.defineProperty(i, "name", { value: e }), i;
27
27
  }
28
- class Oe extends Error {
28
+ class xe extends Error {
29
29
  constructor() {
30
30
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
31
31
  }
@@ -36,14 +36,14 @@ class yo extends Error {
36
36
  }
37
37
  }
38
38
  const Eo = {};
39
- function de(e) {
39
+ function me(e) {
40
40
  return Eo;
41
41
  }
42
42
  function Ws(e) {
43
43
  const t = Object.values(e).filter((n) => typeof n == "number");
44
44
  return Object.entries(e).filter(([n, o]) => t.indexOf(+n) === -1).map(([n, o]) => o);
45
45
  }
46
- function dr(e, t) {
46
+ function mr(e, t) {
47
47
  return typeof t == "bigint" ? t.toString() : t;
48
48
  }
49
49
  function yr(e) {
@@ -333,11 +333,11 @@ const Ao = (e, t) => {
333
333
  }), Object.defineProperty(e, "issues", {
334
334
  value: t,
335
335
  enumerable: !1
336
- }), e.message = JSON.stringify(t, dr, 2), Object.defineProperty(e, "toString", {
336
+ }), e.message = JSON.stringify(t, mr, 2), Object.defineProperty(e, "toString", {
337
337
  value: () => e.message,
338
338
  enumerable: !1
339
339
  });
340
- }, wo = d("$ZodError", Ao), Ro = d("$ZodError", Ao, { Parent: Error });
340
+ }, wo = m("$ZodError", Ao), Ro = m("$ZodError", Ao, { Parent: Error });
341
341
  function ii(e, t = (r) => r.message) {
342
342
  const r = {}, n = [];
343
343
  for (const o of e.issues)
@@ -368,9 +368,9 @@ function ai(e, t = (r) => r.message) {
368
368
  const Ar = (e) => (t, r, n, o) => {
369
369
  const s = n ? Object.assign(n, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: r, issues: [] }, s);
370
370
  if (i instanceof Promise)
371
- throw new Oe();
371
+ throw new xe();
372
372
  if (i.issues.length) {
373
- const a = new (o?.Err ?? e)(i.issues.map((c) => ge(c, s, de())));
373
+ const a = new (o?.Err ?? e)(i.issues.map((c) => ge(c, s, me())));
374
374
  throw So(a, o?.callee), a;
375
375
  }
376
376
  return i.value;
@@ -378,24 +378,24 @@ const Ar = (e) => (t, r, n, o) => {
378
378
  const s = n ? Object.assign(n, { async: !0 }) : { async: !0 };
379
379
  let i = t._zod.run({ value: r, issues: [] }, s);
380
380
  if (i instanceof Promise && (i = await i), i.issues.length) {
381
- const a = new (o?.Err ?? e)(i.issues.map((c) => ge(c, s, de())));
381
+ const a = new (o?.Err ?? e)(i.issues.map((c) => ge(c, s, me())));
382
382
  throw So(a, o?.callee), a;
383
383
  }
384
384
  return i.value;
385
385
  }, st = (e) => (t, r, n) => {
386
386
  const o = n ? { ...n, async: !1 } : { async: !1 }, s = t._zod.run({ value: r, issues: [] }, o);
387
387
  if (s instanceof Promise)
388
- throw new Oe();
388
+ throw new xe();
389
389
  return s.issues.length ? {
390
390
  success: !1,
391
- error: new (e ?? wo)(s.issues.map((i) => ge(i, o, de())))
391
+ error: new (e ?? wo)(s.issues.map((i) => ge(i, o, me())))
392
392
  } : { success: !0, data: s.value };
393
393
  }, ci = /* @__PURE__ */ st(Ro), it = (e) => async (t, r, n) => {
394
394
  const o = n ? Object.assign(n, { async: !0 }) : { async: !0 };
395
395
  let s = t._zod.run({ value: r, issues: [] }, o);
396
396
  return s instanceof Promise && (s = await s), s.issues.length ? {
397
397
  success: !1,
398
- error: new e(s.issues.map((i) => ge(i, o, de())))
398
+ error: new e(s.issues.map((i) => ge(i, o, me())))
399
399
  } : { success: !0, data: s.value };
400
400
  }, ui = /* @__PURE__ */ it(Ro), li = (e) => (t, r, n) => {
401
401
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
@@ -403,25 +403,25 @@ const Ar = (e) => (t, r, n, o) => {
403
403
  }, pi = (e) => (t, r, n) => Ar(e)(t, r, n), hi = (e) => async (t, r, n) => {
404
404
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
405
405
  return wr(e)(t, r, o);
406
- }, fi = (e) => async (t, r, n) => wr(e)(t, r, n), mi = (e) => (t, r, n) => {
406
+ }, fi = (e) => async (t, r, n) => wr(e)(t, r, n), di = (e) => (t, r, n) => {
407
407
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
408
408
  return st(e)(t, r, o);
409
- }, di = (e) => (t, r, n) => st(e)(t, r, n), gi = (e) => async (t, r, n) => {
409
+ }, mi = (e) => (t, r, n) => st(e)(t, r, n), gi = (e) => async (t, r, n) => {
410
410
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
411
411
  return it(e)(t, r, o);
412
412
  }, vi = (e) => async (t, r, n) => it(e)(t, r, n), bi = /^[cC][^\s-]{8,}$/, _i = /^[0-9a-z]+$/, yi = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ei = /^[0-9a-vA-V]{20}$/, Si = /^[A-Za-z0-9]{27}$/, $i = /^[a-zA-Z0-9_-]{21}$/, Ai = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, wi = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Kr = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Ri = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ii = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
413
413
  function ki() {
414
414
  return new RegExp(Ii, "u");
415
415
  }
416
- const Ci = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Pi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Oi = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, xi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ni = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Io = /^[A-Za-z0-9_-]*$/, zi = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Li = /^\+(?:[0-9]){6,14}[0-9]$/, ko = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Ti = /* @__PURE__ */ new RegExp(`^${ko}$`);
416
+ const Ci = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Pi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, xi = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Oi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ni = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Io = /^[A-Za-z0-9_-]*$/, zi = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Li = /^\+(?:[0-9]){6,14}[0-9]$/, ko = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Ti = /* @__PURE__ */ new RegExp(`^${ko}$`);
417
417
  function Co(e) {
418
418
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
419
419
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
420
420
  }
421
- function Zi(e) {
421
+ function qi(e) {
422
422
  return new RegExp(`^${Co(e)}$`);
423
423
  }
424
- function qi(e) {
424
+ function Zi(e) {
425
425
  const t = Co({ precision: e.precision }), r = ["Z"];
426
426
  e.local && r.push(""), e.offset && r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
427
427
  const n = `${t}(?:${r.join("|")})`;
@@ -430,14 +430,14 @@ function qi(e) {
430
430
  const ji = (e) => {
431
431
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
432
432
  return new RegExp(`^${t}$`);
433
- }, Di = /^-?\d+$/, Bi = /^-?\d+(?:\.\d+)?/, Ui = /^null$/i, Vi = /^[^A-Z]*$/, Fi = /^[^a-z]*$/, se = /* @__PURE__ */ d("$ZodCheck", (e, t) => {
433
+ }, Di = /^-?\d+$/, Bi = /^-?\d+(?:\.\d+)?/, Ui = /^null$/i, Vi = /^[^A-Z]*$/, Fi = /^[^a-z]*$/, se = /* @__PURE__ */ m("$ZodCheck", (e, t) => {
434
434
  var r;
435
435
  e._zod ?? (e._zod = {}), e._zod.def = t, (r = e._zod).onattach ?? (r.onattach = []);
436
436
  }), Po = {
437
437
  number: "number",
438
438
  bigint: "bigint",
439
439
  object: "date"
440
- }, Oo = /* @__PURE__ */ d("$ZodCheckLessThan", (e, t) => {
440
+ }, xo = /* @__PURE__ */ m("$ZodCheckLessThan", (e, t) => {
441
441
  se.init(e, t);
442
442
  const r = Po[typeof t.value];
443
443
  e._zod.onattach.push((n) => {
@@ -454,7 +454,7 @@ const ji = (e) => {
454
454
  continue: !t.abort
455
455
  });
456
456
  };
457
- }), xo = /* @__PURE__ */ d("$ZodCheckGreaterThan", (e, t) => {
457
+ }), Oo = /* @__PURE__ */ m("$ZodCheckGreaterThan", (e, t) => {
458
458
  se.init(e, t);
459
459
  const r = Po[typeof t.value];
460
460
  e._zod.onattach.push((n) => {
@@ -471,7 +471,7 @@ const ji = (e) => {
471
471
  continue: !t.abort
472
472
  });
473
473
  };
474
- }), Ji = /* @__PURE__ */ d("$ZodCheckMultipleOf", (e, t) => {
474
+ }), Ji = /* @__PURE__ */ m("$ZodCheckMultipleOf", (e, t) => {
475
475
  se.init(e, t), e._zod.onattach.push((r) => {
476
476
  var n;
477
477
  (n = r._zod.bag).multipleOf ?? (n.multipleOf = t.value);
@@ -487,7 +487,7 @@ const ji = (e) => {
487
487
  continue: !t.abort
488
488
  });
489
489
  };
490
- }), Mi = /* @__PURE__ */ d("$ZodCheckNumberFormat", (e, t) => {
490
+ }), Mi = /* @__PURE__ */ m("$ZodCheckNumberFormat", (e, t) => {
491
491
  se.init(e, t), t.format = t.format || "float64";
492
492
  const r = t.format?.includes("int"), n = r ? "int" : "number", [o, s] = Ks[t.format];
493
493
  e._zod.onattach.push((i) => {
@@ -544,7 +544,7 @@ const ji = (e) => {
544
544
  inst: e
545
545
  });
546
546
  };
547
- }), Wi = /* @__PURE__ */ d("$ZodCheckMaxLength", (e, t) => {
547
+ }), Wi = /* @__PURE__ */ m("$ZodCheckMaxLength", (e, t) => {
548
548
  var r;
549
549
  se.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
550
550
  const o = n.value;
@@ -567,7 +567,7 @@ const ji = (e) => {
567
567
  continue: !t.abort
568
568
  });
569
569
  };
570
- }), Gi = /* @__PURE__ */ d("$ZodCheckMinLength", (e, t) => {
570
+ }), Gi = /* @__PURE__ */ m("$ZodCheckMinLength", (e, t) => {
571
571
  var r;
572
572
  se.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
573
573
  const o = n.value;
@@ -590,7 +590,7 @@ const ji = (e) => {
590
590
  continue: !t.abort
591
591
  });
592
592
  };
593
- }), Xi = /* @__PURE__ */ d("$ZodCheckLengthEquals", (e, t) => {
593
+ }), Xi = /* @__PURE__ */ m("$ZodCheckLengthEquals", (e, t) => {
594
594
  var r;
595
595
  se.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
596
596
  const o = n.value;
@@ -613,7 +613,7 @@ const ji = (e) => {
613
613
  continue: !t.abort
614
614
  });
615
615
  };
616
- }), at = /* @__PURE__ */ d("$ZodCheckStringFormat", (e, t) => {
616
+ }), at = /* @__PURE__ */ m("$ZodCheckStringFormat", (e, t) => {
617
617
  var r, n;
618
618
  se.init(e, t), e._zod.onattach.push((o) => {
619
619
  const s = o._zod.bag;
@@ -630,7 +630,7 @@ const ji = (e) => {
630
630
  });
631
631
  }) : (n = e._zod).check ?? (n.check = () => {
632
632
  });
633
- }), Hi = /* @__PURE__ */ d("$ZodCheckRegex", (e, t) => {
633
+ }), Hi = /* @__PURE__ */ m("$ZodCheckRegex", (e, t) => {
634
634
  at.init(e, t), e._zod.check = (r) => {
635
635
  t.pattern.lastIndex = 0, !t.pattern.test(r.value) && r.issues.push({
636
636
  origin: "string",
@@ -642,11 +642,11 @@ const ji = (e) => {
642
642
  continue: !t.abort
643
643
  });
644
644
  };
645
- }), Yi = /* @__PURE__ */ d("$ZodCheckLowerCase", (e, t) => {
645
+ }), Yi = /* @__PURE__ */ m("$ZodCheckLowerCase", (e, t) => {
646
646
  t.pattern ?? (t.pattern = Vi), at.init(e, t);
647
- }), Ki = /* @__PURE__ */ d("$ZodCheckUpperCase", (e, t) => {
647
+ }), Ki = /* @__PURE__ */ m("$ZodCheckUpperCase", (e, t) => {
648
648
  t.pattern ?? (t.pattern = Fi), at.init(e, t);
649
- }), Qi = /* @__PURE__ */ d("$ZodCheckIncludes", (e, t) => {
649
+ }), Qi = /* @__PURE__ */ m("$ZodCheckIncludes", (e, t) => {
650
650
  se.init(e, t);
651
651
  const r = ze(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
652
652
  t.pattern = n, e._zod.onattach.push((o) => {
@@ -663,7 +663,7 @@ const ji = (e) => {
663
663
  continue: !t.abort
664
664
  });
665
665
  };
666
- }), ea = /* @__PURE__ */ d("$ZodCheckStartsWith", (e, t) => {
666
+ }), ea = /* @__PURE__ */ m("$ZodCheckStartsWith", (e, t) => {
667
667
  se.init(e, t);
668
668
  const r = new RegExp(`^${ze(t.prefix)}.*`);
669
669
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
@@ -680,7 +680,7 @@ const ji = (e) => {
680
680
  continue: !t.abort
681
681
  });
682
682
  };
683
- }), ta = /* @__PURE__ */ d("$ZodCheckEndsWith", (e, t) => {
683
+ }), ta = /* @__PURE__ */ m("$ZodCheckEndsWith", (e, t) => {
684
684
  se.init(e, t);
685
685
  const r = new RegExp(`.*${ze(t.suffix)}$`);
686
686
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
@@ -697,7 +697,7 @@ const ji = (e) => {
697
697
  continue: !t.abort
698
698
  });
699
699
  };
700
- }), ra = /* @__PURE__ */ d("$ZodCheckOverwrite", (e, t) => {
700
+ }), ra = /* @__PURE__ */ m("$ZodCheckOverwrite", (e, t) => {
701
701
  se.init(e, t), e._zod.check = (r) => {
702
702
  r.value = t.tx(r.value);
703
703
  };
@@ -729,7 +729,7 @@ const oa = {
729
729
  major: 4,
730
730
  minor: 1,
731
731
  patch: 12
732
- }, W = /* @__PURE__ */ d("$ZodType", (e, t) => {
732
+ }, W = /* @__PURE__ */ m("$ZodType", (e, t) => {
733
733
  var r;
734
734
  e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = oa;
735
735
  const n = [...e._zod.def.checks ?? []];
@@ -750,17 +750,17 @@ const oa = {
750
750
  continue;
751
751
  } else if (u)
752
752
  continue;
753
- const m = i.issues.length, g = f._zod.check(i);
753
+ const d = i.issues.length, g = f._zod.check(i);
754
754
  if (g instanceof Promise && c?.async === !1)
755
- throw new Oe();
755
+ throw new xe();
756
756
  if (l || g instanceof Promise)
757
757
  l = (l ?? Promise.resolve()).then(async () => {
758
- await g, i.issues.length !== m && (u || (u = Ce(i, m)));
758
+ await g, i.issues.length !== d && (u || (u = Ce(i, d)));
759
759
  });
760
760
  else {
761
- if (i.issues.length === m)
761
+ if (i.issues.length === d)
762
762
  continue;
763
- u || (u = Ce(i, m));
763
+ u || (u = Ce(i, d));
764
764
  }
765
765
  }
766
766
  return l ? l.then(() => i) : i;
@@ -770,7 +770,7 @@ const oa = {
770
770
  const u = o(a, n, c);
771
771
  if (u instanceof Promise) {
772
772
  if (c.async === !1)
773
- throw new Oe();
773
+ throw new xe();
774
774
  return u.then((l) => e._zod.parse(l, c));
775
775
  }
776
776
  return e._zod.parse(u, c);
@@ -785,7 +785,7 @@ const oa = {
785
785
  const c = e._zod.parse(i, a);
786
786
  if (c instanceof Promise) {
787
787
  if (a.async === !1)
788
- throw new Oe();
788
+ throw new xe();
789
789
  return c.then((u) => o(u, n, a));
790
790
  }
791
791
  return o(c, n, a);
@@ -803,7 +803,7 @@ const oa = {
803
803
  vendor: "zod",
804
804
  version: 1
805
805
  };
806
- }), Rr = /* @__PURE__ */ d("$ZodString", (e, t) => {
806
+ }), Rr = /* @__PURE__ */ m("$ZodString", (e, t) => {
807
807
  W.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? ji(e._zod.bag), e._zod.parse = (r, n) => {
808
808
  if (t.coerce)
809
809
  try {
@@ -817,11 +817,11 @@ const oa = {
817
817
  inst: e
818
818
  }), r;
819
819
  };
820
- }), M = /* @__PURE__ */ d("$ZodStringFormat", (e, t) => {
820
+ }), M = /* @__PURE__ */ m("$ZodStringFormat", (e, t) => {
821
821
  at.init(e, t), Rr.init(e, t);
822
- }), sa = /* @__PURE__ */ d("$ZodGUID", (e, t) => {
822
+ }), sa = /* @__PURE__ */ m("$ZodGUID", (e, t) => {
823
823
  t.pattern ?? (t.pattern = wi), M.init(e, t);
824
- }), ia = /* @__PURE__ */ d("$ZodUUID", (e, t) => {
824
+ }), ia = /* @__PURE__ */ m("$ZodUUID", (e, t) => {
825
825
  if (t.version) {
826
826
  const n = {
827
827
  v1: 1,
@@ -839,9 +839,9 @@ const oa = {
839
839
  } else
840
840
  t.pattern ?? (t.pattern = Kr());
841
841
  M.init(e, t);
842
- }), aa = /* @__PURE__ */ d("$ZodEmail", (e, t) => {
842
+ }), aa = /* @__PURE__ */ m("$ZodEmail", (e, t) => {
843
843
  t.pattern ?? (t.pattern = Ri), M.init(e, t);
844
- }), ca = /* @__PURE__ */ d("$ZodURL", (e, t) => {
844
+ }), ca = /* @__PURE__ */ m("$ZodURL", (e, t) => {
845
845
  M.init(e, t), e._zod.check = (r) => {
846
846
  try {
847
847
  const n = r.value.trim(), o = new URL(n);
@@ -873,34 +873,34 @@ const oa = {
873
873
  });
874
874
  }
875
875
  };
876
- }), ua = /* @__PURE__ */ d("$ZodEmoji", (e, t) => {
876
+ }), ua = /* @__PURE__ */ m("$ZodEmoji", (e, t) => {
877
877
  t.pattern ?? (t.pattern = ki()), M.init(e, t);
878
- }), la = /* @__PURE__ */ d("$ZodNanoID", (e, t) => {
878
+ }), la = /* @__PURE__ */ m("$ZodNanoID", (e, t) => {
879
879
  t.pattern ?? (t.pattern = $i), M.init(e, t);
880
- }), pa = /* @__PURE__ */ d("$ZodCUID", (e, t) => {
880
+ }), pa = /* @__PURE__ */ m("$ZodCUID", (e, t) => {
881
881
  t.pattern ?? (t.pattern = bi), M.init(e, t);
882
- }), ha = /* @__PURE__ */ d("$ZodCUID2", (e, t) => {
882
+ }), ha = /* @__PURE__ */ m("$ZodCUID2", (e, t) => {
883
883
  t.pattern ?? (t.pattern = _i), M.init(e, t);
884
- }), fa = /* @__PURE__ */ d("$ZodULID", (e, t) => {
884
+ }), fa = /* @__PURE__ */ m("$ZodULID", (e, t) => {
885
885
  t.pattern ?? (t.pattern = yi), M.init(e, t);
886
- }), ma = /* @__PURE__ */ d("$ZodXID", (e, t) => {
886
+ }), da = /* @__PURE__ */ m("$ZodXID", (e, t) => {
887
887
  t.pattern ?? (t.pattern = Ei), M.init(e, t);
888
- }), da = /* @__PURE__ */ d("$ZodKSUID", (e, t) => {
888
+ }), ma = /* @__PURE__ */ m("$ZodKSUID", (e, t) => {
889
889
  t.pattern ?? (t.pattern = Si), M.init(e, t);
890
- }), ga = /* @__PURE__ */ d("$ZodISODateTime", (e, t) => {
891
- t.pattern ?? (t.pattern = qi(t)), M.init(e, t);
892
- }), va = /* @__PURE__ */ d("$ZodISODate", (e, t) => {
893
- t.pattern ?? (t.pattern = Ti), M.init(e, t);
894
- }), ba = /* @__PURE__ */ d("$ZodISOTime", (e, t) => {
890
+ }), ga = /* @__PURE__ */ m("$ZodISODateTime", (e, t) => {
895
891
  t.pattern ?? (t.pattern = Zi(t)), M.init(e, t);
896
- }), _a = /* @__PURE__ */ d("$ZodISODuration", (e, t) => {
892
+ }), va = /* @__PURE__ */ m("$ZodISODate", (e, t) => {
893
+ t.pattern ?? (t.pattern = Ti), M.init(e, t);
894
+ }), ba = /* @__PURE__ */ m("$ZodISOTime", (e, t) => {
895
+ t.pattern ?? (t.pattern = qi(t)), M.init(e, t);
896
+ }), _a = /* @__PURE__ */ m("$ZodISODuration", (e, t) => {
897
897
  t.pattern ?? (t.pattern = Ai), M.init(e, t);
898
- }), ya = /* @__PURE__ */ d("$ZodIPv4", (e, t) => {
898
+ }), ya = /* @__PURE__ */ m("$ZodIPv4", (e, t) => {
899
899
  t.pattern ?? (t.pattern = Ci), M.init(e, t), e._zod.onattach.push((r) => {
900
900
  const n = r._zod.bag;
901
901
  n.format = "ipv4";
902
902
  });
903
- }), Ea = /* @__PURE__ */ d("$ZodIPv6", (e, t) => {
903
+ }), Ea = /* @__PURE__ */ m("$ZodIPv6", (e, t) => {
904
904
  t.pattern ?? (t.pattern = Pi), M.init(e, t), e._zod.onattach.push((r) => {
905
905
  const n = r._zod.bag;
906
906
  n.format = "ipv6";
@@ -917,10 +917,10 @@ const oa = {
917
917
  });
918
918
  }
919
919
  };
920
- }), Sa = /* @__PURE__ */ d("$ZodCIDRv4", (e, t) => {
921
- t.pattern ?? (t.pattern = Oi), M.init(e, t);
922
- }), $a = /* @__PURE__ */ d("$ZodCIDRv6", (e, t) => {
923
- t.pattern ?? (t.pattern = xi), M.init(e, t), e._zod.check = (r) => {
920
+ }), Sa = /* @__PURE__ */ m("$ZodCIDRv4", (e, t) => {
921
+ t.pattern ?? (t.pattern = xi), M.init(e, t);
922
+ }), $a = /* @__PURE__ */ m("$ZodCIDRv6", (e, t) => {
923
+ t.pattern ?? (t.pattern = Oi), M.init(e, t), e._zod.check = (r) => {
924
924
  const n = r.value.split("/");
925
925
  try {
926
926
  if (n.length !== 2)
@@ -956,7 +956,7 @@ function No(e) {
956
956
  return !1;
957
957
  }
958
958
  }
959
- const Aa = /* @__PURE__ */ d("$ZodBase64", (e, t) => {
959
+ const Aa = /* @__PURE__ */ m("$ZodBase64", (e, t) => {
960
960
  t.pattern ?? (t.pattern = Ni), M.init(e, t), e._zod.onattach.push((r) => {
961
961
  r._zod.bag.contentEncoding = "base64";
962
962
  }), e._zod.check = (r) => {
@@ -975,7 +975,7 @@ function wa(e) {
975
975
  const t = e.replace(/[-_]/g, (n) => n === "-" ? "+" : "/"), r = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
976
976
  return No(r);
977
977
  }
978
- const Ra = /* @__PURE__ */ d("$ZodBase64URL", (e, t) => {
978
+ const Ra = /* @__PURE__ */ m("$ZodBase64URL", (e, t) => {
979
979
  t.pattern ?? (t.pattern = Io), M.init(e, t), e._zod.onattach.push((r) => {
980
980
  r._zod.bag.contentEncoding = "base64url";
981
981
  }), e._zod.check = (r) => {
@@ -987,7 +987,7 @@ const Ra = /* @__PURE__ */ d("$ZodBase64URL", (e, t) => {
987
987
  continue: !t.abort
988
988
  });
989
989
  };
990
- }), Ia = /* @__PURE__ */ d("$ZodE164", (e, t) => {
990
+ }), Ia = /* @__PURE__ */ m("$ZodE164", (e, t) => {
991
991
  t.pattern ?? (t.pattern = Li), M.init(e, t);
992
992
  });
993
993
  function ka(e, t = null) {
@@ -1004,7 +1004,7 @@ function ka(e, t = null) {
1004
1004
  return !1;
1005
1005
  }
1006
1006
  }
1007
- const Ca = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1007
+ const Ca = /* @__PURE__ */ m("$ZodJWT", (e, t) => {
1008
1008
  M.init(e, t), e._zod.check = (r) => {
1009
1009
  ka(r.value, t.alg) || r.issues.push({
1010
1010
  code: "invalid_format",
@@ -1014,7 +1014,7 @@ const Ca = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1014
1014
  continue: !t.abort
1015
1015
  });
1016
1016
  };
1017
- }), zo = /* @__PURE__ */ d("$ZodNumber", (e, t) => {
1017
+ }), zo = /* @__PURE__ */ m("$ZodNumber", (e, t) => {
1018
1018
  W.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Bi, e._zod.parse = (r, n) => {
1019
1019
  if (t.coerce)
1020
1020
  try {
@@ -1033,9 +1033,9 @@ const Ca = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1033
1033
  ...s ? { received: s } : {}
1034
1034
  }), r;
1035
1035
  };
1036
- }), Pa = /* @__PURE__ */ d("$ZodNumber", (e, t) => {
1036
+ }), Pa = /* @__PURE__ */ m("$ZodNumber", (e, t) => {
1037
1037
  Mi.init(e, t), zo.init(e, t);
1038
- }), Oa = /* @__PURE__ */ d("$ZodNull", (e, t) => {
1038
+ }), xa = /* @__PURE__ */ m("$ZodNull", (e, t) => {
1039
1039
  W.init(e, t), e._zod.pattern = Ui, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, n) => {
1040
1040
  const o = r.value;
1041
1041
  return o === null || r.issues.push({
@@ -1045,9 +1045,9 @@ const Ca = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1045
1045
  inst: e
1046
1046
  }), r;
1047
1047
  };
1048
- }), xa = /* @__PURE__ */ d("$ZodUnknown", (e, t) => {
1048
+ }), Oa = /* @__PURE__ */ m("$ZodUnknown", (e, t) => {
1049
1049
  W.init(e, t), e._zod.parse = (r) => r;
1050
- }), Na = /* @__PURE__ */ d("$ZodNever", (e, t) => {
1050
+ }), Na = /* @__PURE__ */ m("$ZodNever", (e, t) => {
1051
1051
  W.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
1052
1052
  expected: "never",
1053
1053
  code: "invalid_type",
@@ -1058,7 +1058,7 @@ const Ca = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1058
1058
  function Qr(e, t, r) {
1059
1059
  e.issues.length && t.issues.push(...Pe(r, e.issues)), t.value[r] = e.value;
1060
1060
  }
1061
- const za = /* @__PURE__ */ d("$ZodArray", (e, t) => {
1061
+ const za = /* @__PURE__ */ m("$ZodArray", (e, t) => {
1062
1062
  W.init(e, t), e._zod.parse = (r, n) => {
1063
1063
  const o = r.value;
1064
1064
  if (!Array.isArray(o))
@@ -1107,7 +1107,7 @@ function To(e, t, r, n, o, s) {
1107
1107
  continue;
1108
1108
  }
1109
1109
  const f = c.run({ value: t[l], issues: [] }, n);
1110
- f instanceof Promise ? e.push(f.then((m) => rt(m, r, l, t))) : rt(f, r, l, t);
1110
+ f instanceof Promise ? e.push(f.then((d) => rt(d, r, l, t))) : rt(f, r, l, t);
1111
1111
  }
1112
1112
  return i.length && r.issues.push({
1113
1113
  code: "unrecognized_keys",
@@ -1116,7 +1116,7 @@ function To(e, t, r, n, o, s) {
1116
1116
  inst: s
1117
1117
  }), e.length ? Promise.all(e).then(() => r) : r;
1118
1118
  }
1119
- const La = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1119
+ const La = /* @__PURE__ */ m("$ZodObject", (e, t) => {
1120
1120
  if (W.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1121
1121
  const a = t.shape;
1122
1122
  Object.defineProperty(t, "shape", {
@@ -1155,24 +1155,24 @@ const La = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1155
1155
  }), a;
1156
1156
  a.value = {};
1157
1157
  const l = [], f = i.shape;
1158
- for (const m of i.keys) {
1159
- const C = f[m]._zod.run({ value: u[m], issues: [] }, c);
1160
- C instanceof Promise ? l.push(C.then((v) => rt(v, a, m, u))) : rt(C, a, m, u);
1158
+ for (const d of i.keys) {
1159
+ const C = f[d]._zod.run({ value: u[d], issues: [] }, c);
1160
+ C instanceof Promise ? l.push(C.then((v) => rt(v, a, d, u))) : rt(C, a, d, u);
1161
1161
  }
1162
1162
  return s ? To(l, u, a, c, n.value, e) : l.length ? Promise.all(l).then(() => a) : a;
1163
1163
  };
1164
- }), Ta = /* @__PURE__ */ d("$ZodObjectJIT", (e, t) => {
1164
+ }), Ta = /* @__PURE__ */ m("$ZodObjectJIT", (e, t) => {
1165
1165
  La.init(e, t);
1166
- const r = e._zod.parse, n = yr(() => Lo(t)), o = (m) => {
1166
+ const r = e._zod.parse, n = yr(() => Lo(t)), o = (d) => {
1167
1167
  const g = new na(["shape", "payload", "ctx"]), C = n.value, v = (N) => {
1168
1168
  const B = Yr(N);
1169
1169
  return `shape[${B}]._zod.run({ value: input[${B}], issues: [] }, ctx)`;
1170
1170
  };
1171
1171
  g.write("const input = payload.value;");
1172
1172
  const P = /* @__PURE__ */ Object.create(null);
1173
- let Z = 0;
1173
+ let q = 0;
1174
1174
  for (const N of C.keys)
1175
- P[N] = `key_${Z++}`;
1175
+ P[N] = `key_${q++}`;
1176
1176
  g.write("const newResult = {};");
1177
1177
  for (const N of C.keys) {
1178
1178
  const B = P[N], Y = Yr(N);
@@ -1197,20 +1197,20 @@ const La = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1197
1197
  }
1198
1198
  g.write("payload.value = newResult;"), g.write("return payload;");
1199
1199
  const H = g.compile();
1200
- return (N, B) => H(m, N, B);
1200
+ return (N, B) => H(d, N, B);
1201
1201
  };
1202
1202
  let s;
1203
1203
  const i = tt, a = !Eo.jitless, u = a && Xs.value, l = t.catchall;
1204
1204
  let f;
1205
- e._zod.parse = (m, g) => {
1205
+ e._zod.parse = (d, g) => {
1206
1206
  f ?? (f = n.value);
1207
- const C = m.value;
1208
- return i(C) ? a && u && g?.async === !1 && g.jitless !== !0 ? (s || (s = o(t.shape)), m = s(m, g), l ? To([], C, m, g, f, e) : m) : r(m, g) : (m.issues.push({
1207
+ const C = d.value;
1208
+ return i(C) ? a && u && g?.async === !1 && g.jitless !== !0 ? (s || (s = o(t.shape)), d = s(d, g), l ? To([], C, d, g, f, e) : d) : r(d, g) : (d.issues.push({
1209
1209
  expected: "object",
1210
1210
  code: "invalid_type",
1211
1211
  input: C,
1212
1212
  inst: e
1213
- }), m);
1213
+ }), d);
1214
1214
  };
1215
1215
  });
1216
1216
  function en(e, t, r, n) {
@@ -1222,10 +1222,10 @@ function en(e, t, r, n) {
1222
1222
  code: "invalid_union",
1223
1223
  input: t.value,
1224
1224
  inst: r,
1225
- errors: e.map((s) => s.issues.map((i) => ge(i, n, de())))
1225
+ errors: e.map((s) => s.issues.map((i) => ge(i, n, me())))
1226
1226
  }), t);
1227
1227
  }
1228
- const Za = /* @__PURE__ */ d("$ZodUnion", (e, t) => {
1228
+ const qa = /* @__PURE__ */ m("$ZodUnion", (e, t) => {
1229
1229
  W.init(e, t), U(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), U(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), U(e._zod, "values", () => {
1230
1230
  if (t.options.every((o) => o._zod.values))
1231
1231
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
@@ -1256,7 +1256,7 @@ const Za = /* @__PURE__ */ d("$ZodUnion", (e, t) => {
1256
1256
  }
1257
1257
  return i ? Promise.all(a).then((c) => en(c, o, e, s)) : en(a, o, e, s);
1258
1258
  };
1259
- }), qa = /* @__PURE__ */ d("$ZodIntersection", (e, t) => {
1259
+ }), Za = /* @__PURE__ */ m("$ZodIntersection", (e, t) => {
1260
1260
  W.init(e, t), e._zod.parse = (r, n) => {
1261
1261
  const o = r.value, s = t.left._zod.run({ value: o, issues: [] }, n), i = t.right._zod.run({ value: o, issues: [] }, n);
1262
1262
  return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([c, u]) => tn(r, c, u)) : tn(r, s, i);
@@ -1305,7 +1305,7 @@ function tn(e, t, r) {
1305
1305
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);
1306
1306
  return e.value = n.data, e;
1307
1307
  }
1308
- const ja = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1308
+ const ja = /* @__PURE__ */ m("$ZodRecord", (e, t) => {
1309
1309
  W.init(e, t), e._zod.parse = (r, n) => {
1310
1310
  const o = r.value;
1311
1311
  if (!Ne(o))
@@ -1347,7 +1347,7 @@ const ja = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1347
1347
  r.issues.push({
1348
1348
  code: "invalid_key",
1349
1349
  origin: "record",
1350
- issues: a.issues.map((u) => ge(u, n, de())),
1350
+ issues: a.issues.map((u) => ge(u, n, me())),
1351
1351
  input: i,
1352
1352
  path: [i],
1353
1353
  inst: e
@@ -1362,7 +1362,7 @@ const ja = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1362
1362
  }
1363
1363
  return s.length ? Promise.all(s).then(() => r) : r;
1364
1364
  };
1365
- }), Da = /* @__PURE__ */ d("$ZodEnum", (e, t) => {
1365
+ }), Da = /* @__PURE__ */ m("$ZodEnum", (e, t) => {
1366
1366
  W.init(e, t);
1367
1367
  const r = Ws(t.entries), n = new Set(r);
1368
1368
  e._zod.values = n, e._zod.pattern = new RegExp(`^(${r.filter((o) => Hs.has(typeof o)).map((o) => typeof o == "string" ? ze(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
@@ -1374,7 +1374,7 @@ const ja = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1374
1374
  inst: e
1375
1375
  }), o;
1376
1376
  };
1377
- }), Ba = /* @__PURE__ */ d("$ZodLiteral", (e, t) => {
1377
+ }), Ba = /* @__PURE__ */ m("$ZodLiteral", (e, t) => {
1378
1378
  if (W.init(e, t), t.values.length === 0)
1379
1379
  throw new Error("Cannot create literal schema with no valid values");
1380
1380
  e._zod.values = new Set(t.values), e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? ze(r) : r ? ze(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, n) => {
@@ -1386,7 +1386,7 @@ const ja = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1386
1386
  inst: e
1387
1387
  }), r;
1388
1388
  };
1389
- }), Ua = /* @__PURE__ */ d("$ZodTransform", (e, t) => {
1389
+ }), Ua = /* @__PURE__ */ m("$ZodTransform", (e, t) => {
1390
1390
  W.init(e, t), e._zod.parse = (r, n) => {
1391
1391
  if (n.direction === "backward")
1392
1392
  throw new yo(e.constructor.name);
@@ -1394,14 +1394,14 @@ const ja = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1394
1394
  if (n.async)
1395
1395
  return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (r.value = i, r));
1396
1396
  if (o instanceof Promise)
1397
- throw new Oe();
1397
+ throw new xe();
1398
1398
  return r.value = o, r;
1399
1399
  };
1400
1400
  });
1401
1401
  function rn(e, t) {
1402
1402
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1403
1403
  }
1404
- const Va = /* @__PURE__ */ d("$ZodOptional", (e, t) => {
1404
+ const Va = /* @__PURE__ */ m("$ZodOptional", (e, t) => {
1405
1405
  W.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", U(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), U(e._zod, "pattern", () => {
1406
1406
  const r = t.innerType._zod.pattern;
1407
1407
  return r ? new RegExp(`^(${Sr(r.source)})?$`) : void 0;
@@ -1412,12 +1412,12 @@ const Va = /* @__PURE__ */ d("$ZodOptional", (e, t) => {
1412
1412
  }
1413
1413
  return r.value === void 0 ? r : t.innerType._zod.run(r, n);
1414
1414
  };
1415
- }), Fa = /* @__PURE__ */ d("$ZodNullable", (e, t) => {
1415
+ }), Fa = /* @__PURE__ */ m("$ZodNullable", (e, t) => {
1416
1416
  W.init(e, t), U(e._zod, "optin", () => t.innerType._zod.optin), U(e._zod, "optout", () => t.innerType._zod.optout), U(e._zod, "pattern", () => {
1417
1417
  const r = t.innerType._zod.pattern;
1418
1418
  return r ? new RegExp(`^(${Sr(r.source)}|null)$`) : void 0;
1419
1419
  }), U(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
1420
- }), Ja = /* @__PURE__ */ d("$ZodDefault", (e, t) => {
1420
+ }), Ja = /* @__PURE__ */ m("$ZodDefault", (e, t) => {
1421
1421
  W.init(e, t), e._zod.optin = "optional", U(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1422
1422
  if (n.direction === "backward")
1423
1423
  return t.innerType._zod.run(r, n);
@@ -1430,9 +1430,9 @@ const Va = /* @__PURE__ */ d("$ZodOptional", (e, t) => {
1430
1430
  function nn(e, t) {
1431
1431
  return e.value === void 0 && (e.value = t.defaultValue), e;
1432
1432
  }
1433
- const Ma = /* @__PURE__ */ d("$ZodPrefault", (e, t) => {
1433
+ const Ma = /* @__PURE__ */ m("$ZodPrefault", (e, t) => {
1434
1434
  W.init(e, t), e._zod.optin = "optional", U(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (n.direction === "backward" || r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
1435
- }), Wa = /* @__PURE__ */ d("$ZodNonOptional", (e, t) => {
1435
+ }), Wa = /* @__PURE__ */ m("$ZodNonOptional", (e, t) => {
1436
1436
  W.init(e, t), U(e._zod, "values", () => {
1437
1437
  const r = t.innerType._zod.values;
1438
1438
  return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
@@ -1449,7 +1449,7 @@ function on(e, t) {
1449
1449
  inst: t
1450
1450
  }), e;
1451
1451
  }
1452
- const Ga = /* @__PURE__ */ d("$ZodCatch", (e, t) => {
1452
+ const Ga = /* @__PURE__ */ m("$ZodCatch", (e, t) => {
1453
1453
  W.init(e, t), U(e._zod, "optin", () => t.innerType._zod.optin), U(e._zod, "optout", () => t.innerType._zod.optout), U(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1454
1454
  if (n.direction === "backward")
1455
1455
  return t.innerType._zod.run(r, n);
@@ -1457,18 +1457,18 @@ const Ga = /* @__PURE__ */ d("$ZodCatch", (e, t) => {
1457
1457
  return o instanceof Promise ? o.then((s) => (r.value = s.value, s.issues.length && (r.value = t.catchValue({
1458
1458
  ...r,
1459
1459
  error: {
1460
- issues: s.issues.map((i) => ge(i, n, de()))
1460
+ issues: s.issues.map((i) => ge(i, n, me()))
1461
1461
  },
1462
1462
  input: r.value
1463
1463
  }), r.issues = []), r)) : (r.value = o.value, o.issues.length && (r.value = t.catchValue({
1464
1464
  ...r,
1465
1465
  error: {
1466
- issues: o.issues.map((s) => ge(s, n, de()))
1466
+ issues: o.issues.map((s) => ge(s, n, me()))
1467
1467
  },
1468
1468
  input: r.value
1469
1469
  }), r.issues = []), r);
1470
1470
  };
1471
- }), Xa = /* @__PURE__ */ d("$ZodPipe", (e, t) => {
1471
+ }), Xa = /* @__PURE__ */ m("$ZodPipe", (e, t) => {
1472
1472
  W.init(e, t), U(e._zod, "values", () => t.in._zod.values), U(e._zod, "optin", () => t.in._zod.optin), U(e._zod, "optout", () => t.out._zod.optout), U(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (r, n) => {
1473
1473
  if (n.direction === "backward") {
1474
1474
  const s = t.out._zod.run(r, n);
@@ -1481,7 +1481,7 @@ const Ga = /* @__PURE__ */ d("$ZodCatch", (e, t) => {
1481
1481
  function He(e, t, r) {
1482
1482
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, r);
1483
1483
  }
1484
- const Ha = /* @__PURE__ */ d("$ZodReadonly", (e, t) => {
1484
+ const Ha = /* @__PURE__ */ m("$ZodReadonly", (e, t) => {
1485
1485
  W.init(e, t), U(e._zod, "propValues", () => t.innerType._zod.propValues), U(e._zod, "values", () => t.innerType._zod.values), U(e._zod, "optin", () => t.innerType._zod.optin), U(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
1486
1486
  if (n.direction === "backward")
1487
1487
  return t.innerType._zod.run(r, n);
@@ -1492,7 +1492,7 @@ const Ha = /* @__PURE__ */ d("$ZodReadonly", (e, t) => {
1492
1492
  function sn(e) {
1493
1493
  return e.value = Object.freeze(e.value), e;
1494
1494
  }
1495
- const Ya = /* @__PURE__ */ d("$ZodCustom", (e, t) => {
1495
+ const Ya = /* @__PURE__ */ m("$ZodCustom", (e, t) => {
1496
1496
  se.init(e, t), W.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
1497
1497
  const n = r.value, o = t.fn(n);
1498
1498
  if (o instanceof Promise)
@@ -1616,7 +1616,7 @@ function sc(e, t) {
1616
1616
  ...S(t)
1617
1617
  });
1618
1618
  }
1619
- function Zo(e, t) {
1619
+ function qo(e, t) {
1620
1620
  return new e({
1621
1621
  type: "string",
1622
1622
  format: "url",
@@ -1697,7 +1697,7 @@ function fc(e, t) {
1697
1697
  ...S(t)
1698
1698
  });
1699
1699
  }
1700
- function mc(e, t) {
1700
+ function dc(e, t) {
1701
1701
  return new e({
1702
1702
  type: "string",
1703
1703
  format: "ipv6",
@@ -1706,7 +1706,7 @@ function mc(e, t) {
1706
1706
  ...S(t)
1707
1707
  });
1708
1708
  }
1709
- function dc(e, t) {
1709
+ function mc(e, t) {
1710
1710
  return new e({
1711
1711
  type: "string",
1712
1712
  format: "cidrv4",
@@ -1830,7 +1830,7 @@ function Cc(e, t) {
1830
1830
  });
1831
1831
  }
1832
1832
  function un(e, t) {
1833
- return new Oo({
1833
+ return new xo({
1834
1834
  check: "less_than",
1835
1835
  ...S(t),
1836
1836
  value: e,
@@ -1838,7 +1838,7 @@ function un(e, t) {
1838
1838
  });
1839
1839
  }
1840
1840
  function $t(e, t) {
1841
- return new Oo({
1841
+ return new xo({
1842
1842
  check: "less_than",
1843
1843
  ...S(t),
1844
1844
  value: e,
@@ -1846,7 +1846,7 @@ function $t(e, t) {
1846
1846
  });
1847
1847
  }
1848
1848
  function ln(e, t) {
1849
- return new xo({
1849
+ return new Oo({
1850
1850
  check: "greater_than",
1851
1851
  ...S(t),
1852
1852
  value: e,
@@ -1854,7 +1854,7 @@ function ln(e, t) {
1854
1854
  });
1855
1855
  }
1856
1856
  function At(e, t) {
1857
- return new xo({
1857
+ return new Oo({
1858
1858
  check: "greater_than",
1859
1859
  ...S(t),
1860
1860
  value: e,
@@ -1868,7 +1868,7 @@ function pn(e, t) {
1868
1868
  value: e
1869
1869
  });
1870
1870
  }
1871
- function qo(e, t) {
1871
+ function Zo(e, t) {
1872
1872
  return new Wi({
1873
1873
  check: "max_length",
1874
1874
  ...S(t),
@@ -1897,14 +1897,14 @@ function Pc(e, t) {
1897
1897
  pattern: e
1898
1898
  });
1899
1899
  }
1900
- function Oc(e) {
1900
+ function xc(e) {
1901
1901
  return new Yi({
1902
1902
  check: "string_format",
1903
1903
  format: "lowercase",
1904
1904
  ...S(e)
1905
1905
  });
1906
1906
  }
1907
- function xc(e) {
1907
+ function Oc(e) {
1908
1908
  return new Ki({
1909
1909
  check: "string_format",
1910
1910
  format: "uppercase",
@@ -1944,10 +1944,10 @@ function Ue(e) {
1944
1944
  function Tc(e) {
1945
1945
  return Ue((t) => t.normalize(e));
1946
1946
  }
1947
- function Zc() {
1947
+ function qc() {
1948
1948
  return Ue((e) => e.trim());
1949
1949
  }
1950
- function qc() {
1950
+ function Zc() {
1951
1951
  return Ue((e) => e.toLowerCase());
1952
1952
  }
1953
1953
  function jc() {
@@ -1998,25 +1998,25 @@ function Fc(e, t) {
1998
1998
  });
1999
1999
  return r._zod.check = e, r;
2000
2000
  }
2001
- const Jc = /* @__PURE__ */ d("ZodISODateTime", (e, t) => {
2001
+ const Jc = /* @__PURE__ */ m("ZodISODateTime", (e, t) => {
2002
2002
  ga.init(e, t), G.init(e, t);
2003
2003
  });
2004
2004
  function Mc(e) {
2005
2005
  return Ec(Jc, e);
2006
2006
  }
2007
- const Wc = /* @__PURE__ */ d("ZodISODate", (e, t) => {
2007
+ const Wc = /* @__PURE__ */ m("ZodISODate", (e, t) => {
2008
2008
  va.init(e, t), G.init(e, t);
2009
2009
  });
2010
2010
  function Gc(e) {
2011
2011
  return Sc(Wc, e);
2012
2012
  }
2013
- const Xc = /* @__PURE__ */ d("ZodISOTime", (e, t) => {
2013
+ const Xc = /* @__PURE__ */ m("ZodISOTime", (e, t) => {
2014
2014
  ba.init(e, t), G.init(e, t);
2015
2015
  });
2016
2016
  function Hc(e) {
2017
2017
  return $c(Xc, e);
2018
2018
  }
2019
- const Yc = /* @__PURE__ */ d("ZodISODuration", (e, t) => {
2019
+ const Yc = /* @__PURE__ */ m("ZodISODuration", (e, t) => {
2020
2020
  _a.init(e, t), G.init(e, t);
2021
2021
  });
2022
2022
  function Kc(e) {
@@ -2034,13 +2034,13 @@ const Qc = (e, t) => {
2034
2034
  },
2035
2035
  addIssue: {
2036
2036
  value: (r) => {
2037
- e.issues.push(r), e.message = JSON.stringify(e.issues, dr, 2);
2037
+ e.issues.push(r), e.message = JSON.stringify(e.issues, mr, 2);
2038
2038
  }
2039
2039
  // enumerable: false,
2040
2040
  },
2041
2041
  addIssues: {
2042
2042
  value: (r) => {
2043
- e.issues.push(...r), e.message = JSON.stringify(e.issues, dr, 2);
2043
+ e.issues.push(...r), e.message = JSON.stringify(e.issues, mr, 2);
2044
2044
  }
2045
2045
  // enumerable: false,
2046
2046
  },
@@ -2051,14 +2051,14 @@ const Qc = (e, t) => {
2051
2051
  // enumerable: false,
2052
2052
  }
2053
2053
  });
2054
- }, ie = d("ZodError", Qc, {
2054
+ }, ie = m("ZodError", Qc, {
2055
2055
  Parent: Error
2056
- }), eu = /* @__PURE__ */ Ar(ie), tu = /* @__PURE__ */ wr(ie), ru = /* @__PURE__ */ st(ie), nu = /* @__PURE__ */ it(ie), ou = /* @__PURE__ */ li(ie), su = /* @__PURE__ */ pi(ie), iu = /* @__PURE__ */ hi(ie), au = /* @__PURE__ */ fi(ie), cu = /* @__PURE__ */ mi(ie), uu = /* @__PURE__ */ di(ie), lu = /* @__PURE__ */ gi(ie), pu = /* @__PURE__ */ vi(ie), X = /* @__PURE__ */ d("ZodType", (e, t) => (W.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(Ae(t, {
2056
+ }), eu = /* @__PURE__ */ Ar(ie), tu = /* @__PURE__ */ wr(ie), ru = /* @__PURE__ */ st(ie), nu = /* @__PURE__ */ it(ie), ou = /* @__PURE__ */ li(ie), su = /* @__PURE__ */ pi(ie), iu = /* @__PURE__ */ hi(ie), au = /* @__PURE__ */ fi(ie), cu = /* @__PURE__ */ di(ie), uu = /* @__PURE__ */ mi(ie), lu = /* @__PURE__ */ gi(ie), pu = /* @__PURE__ */ vi(ie), X = /* @__PURE__ */ m("ZodType", (e, t) => (W.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(Ae(t, {
2057
2057
  checks: [
2058
2058
  ...t.checks ?? [],
2059
2059
  ...r.map((n) => typeof n == "function" ? { _zod: { check: n, def: { check: "custom" }, onattach: [] } } : n)
2060
2060
  ]
2061
- })), e.clone = (r, n) => ve(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => eu(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => ru(e, r, n), e.parseAsync = async (r, n) => tu(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => nu(e, r, n), e.spa = e.safeParseAsync, e.encode = (r, n) => ou(e, r, n), e.decode = (r, n) => su(e, r, n), e.encodeAsync = async (r, n) => iu(e, r, n), e.decodeAsync = async (r, n) => au(e, r, n), e.safeEncode = (r, n) => cu(e, r, n), e.safeDecode = (r, n) => uu(e, r, n), e.safeEncodeAsync = async (r, n) => lu(e, r, n), e.safeDecodeAsync = async (r, n) => pu(e, r, n), e.refine = (r, n) => e.check(rl(r, n)), e.superRefine = (r) => e.check(nl(r)), e.overwrite = (r) => e.check(Ue(r)), e.optional = () => le(e), e.nullable = () => dn(e), e.nullish = () => le(dn(e)), e.nonoptional = (r) => Xu(e, r), e.array = () => j(e), e.or = (r) => pe([e, r]), e.and = (r) => ju(e, r), e.transform = (r) => gn(e, Vu(r)), e.default = (r) => Mu(e, r), e.prefault = (r) => Gu(e, r), e.catch = (r) => Yu(e, r), e.pipe = (r) => gn(e, r), e.readonly = () => el(e), e.describe = (r) => {
2061
+ })), e.clone = (r, n) => ve(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => eu(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => ru(e, r, n), e.parseAsync = async (r, n) => tu(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => nu(e, r, n), e.spa = e.safeParseAsync, e.encode = (r, n) => ou(e, r, n), e.decode = (r, n) => su(e, r, n), e.encodeAsync = async (r, n) => iu(e, r, n), e.decodeAsync = async (r, n) => au(e, r, n), e.safeEncode = (r, n) => cu(e, r, n), e.safeDecode = (r, n) => uu(e, r, n), e.safeEncodeAsync = async (r, n) => lu(e, r, n), e.safeDecodeAsync = async (r, n) => pu(e, r, n), e.refine = (r, n) => e.check(rl(r, n)), e.superRefine = (r) => e.check(nl(r)), e.overwrite = (r) => e.check(Ue(r)), e.optional = () => le(e), e.nullable = () => mn(e), e.nullish = () => le(mn(e)), e.nonoptional = (r) => Xu(e, r), e.array = () => j(e), e.or = (r) => pe([e, r]), e.and = (r) => ju(e, r), e.transform = (r) => gn(e, Vu(r)), e.default = (r) => Mu(e, r), e.prefault = (r) => Gu(e, r), e.catch = (r) => Yu(e, r), e.pipe = (r) => gn(e, r), e.readonly = () => el(e), e.describe = (r) => {
2062
2062
  const n = e.clone();
2063
2063
  return Ye.add(n, { description: r }), n;
2064
2064
  }, Object.defineProperty(e, "description", {
@@ -2071,61 +2071,61 @@ const Qc = (e, t) => {
2071
2071
  return Ye.get(e);
2072
2072
  const n = e.clone();
2073
2073
  return Ye.add(n, r[0]), n;
2074
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Do = /* @__PURE__ */ d("_ZodString", (e, t) => {
2074
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Do = /* @__PURE__ */ m("_ZodString", (e, t) => {
2075
2075
  Rr.init(e, t), X.init(e, t);
2076
2076
  const r = e._zod.bag;
2077
- e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Pc(...n)), e.includes = (...n) => e.check(Nc(...n)), e.startsWith = (...n) => e.check(zc(...n)), e.endsWith = (...n) => e.check(Lc(...n)), e.min = (...n) => e.check(nt(...n)), e.max = (...n) => e.check(qo(...n)), e.length = (...n) => e.check(jo(...n)), e.nonempty = (...n) => e.check(nt(1, ...n)), e.lowercase = (n) => e.check(Oc(n)), e.uppercase = (n) => e.check(xc(n)), e.trim = () => e.check(Zc()), e.normalize = (...n) => e.check(Tc(...n)), e.toLowerCase = () => e.check(qc()), e.toUpperCase = () => e.check(jc());
2078
- }), hu = /* @__PURE__ */ d("ZodString", (e, t) => {
2079
- Rr.init(e, t), Do.init(e, t), e.email = (r) => e.check(tc(fu, r)), e.url = (r) => e.check(Zo(Bo, r)), e.jwt = (r) => e.check(yc(Cu, r)), e.emoji = (r) => e.check(ic(du, r)), e.guid = (r) => e.check(cn(hn, r)), e.uuid = (r) => e.check(rc(Ke, r)), e.uuidv4 = (r) => e.check(nc(Ke, r)), e.uuidv6 = (r) => e.check(oc(Ke, r)), e.uuidv7 = (r) => e.check(sc(Ke, r)), e.nanoid = (r) => e.check(ac(gu, r)), e.guid = (r) => e.check(cn(hn, r)), e.cuid = (r) => e.check(cc(vu, r)), e.cuid2 = (r) => e.check(uc(bu, r)), e.ulid = (r) => e.check(lc(_u, r)), e.base64 = (r) => e.check(vc(Ru, r)), e.base64url = (r) => e.check(bc(Iu, r)), e.xid = (r) => e.check(pc(yu, r)), e.ksuid = (r) => e.check(hc(Eu, r)), e.ipv4 = (r) => e.check(fc(Su, r)), e.ipv6 = (r) => e.check(mc($u, r)), e.cidrv4 = (r) => e.check(dc(Au, r)), e.cidrv6 = (r) => e.check(gc(wu, r)), e.e164 = (r) => e.check(_c(ku, r)), e.datetime = (r) => e.check(Mc(r)), e.date = (r) => e.check(Gc(r)), e.time = (r) => e.check(Hc(r)), e.duration = (r) => e.check(Kc(r));
2077
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Pc(...n)), e.includes = (...n) => e.check(Nc(...n)), e.startsWith = (...n) => e.check(zc(...n)), e.endsWith = (...n) => e.check(Lc(...n)), e.min = (...n) => e.check(nt(...n)), e.max = (...n) => e.check(Zo(...n)), e.length = (...n) => e.check(jo(...n)), e.nonempty = (...n) => e.check(nt(1, ...n)), e.lowercase = (n) => e.check(xc(n)), e.uppercase = (n) => e.check(Oc(n)), e.trim = () => e.check(qc()), e.normalize = (...n) => e.check(Tc(...n)), e.toLowerCase = () => e.check(Zc()), e.toUpperCase = () => e.check(jc());
2078
+ }), hu = /* @__PURE__ */ m("ZodString", (e, t) => {
2079
+ Rr.init(e, t), Do.init(e, t), e.email = (r) => e.check(tc(fu, r)), e.url = (r) => e.check(qo(Bo, r)), e.jwt = (r) => e.check(yc(Cu, r)), e.emoji = (r) => e.check(ic(mu, r)), e.guid = (r) => e.check(cn(hn, r)), e.uuid = (r) => e.check(rc(Ke, r)), e.uuidv4 = (r) => e.check(nc(Ke, r)), e.uuidv6 = (r) => e.check(oc(Ke, r)), e.uuidv7 = (r) => e.check(sc(Ke, r)), e.nanoid = (r) => e.check(ac(gu, r)), e.guid = (r) => e.check(cn(hn, r)), e.cuid = (r) => e.check(cc(vu, r)), e.cuid2 = (r) => e.check(uc(bu, r)), e.ulid = (r) => e.check(lc(_u, r)), e.base64 = (r) => e.check(vc(Ru, r)), e.base64url = (r) => e.check(bc(Iu, r)), e.xid = (r) => e.check(pc(yu, r)), e.ksuid = (r) => e.check(hc(Eu, r)), e.ipv4 = (r) => e.check(fc(Su, r)), e.ipv6 = (r) => e.check(dc($u, r)), e.cidrv4 = (r) => e.check(mc(Au, r)), e.cidrv6 = (r) => e.check(gc(wu, r)), e.e164 = (r) => e.check(_c(ku, r)), e.datetime = (r) => e.check(Mc(r)), e.date = (r) => e.check(Gc(r)), e.time = (r) => e.check(Hc(r)), e.duration = (r) => e.check(Kc(r));
2080
2080
  });
2081
2081
  function p(e) {
2082
2082
  return ec(hu, e);
2083
2083
  }
2084
- const G = /* @__PURE__ */ d("ZodStringFormat", (e, t) => {
2084
+ const G = /* @__PURE__ */ m("ZodStringFormat", (e, t) => {
2085
2085
  M.init(e, t), Do.init(e, t);
2086
- }), fu = /* @__PURE__ */ d("ZodEmail", (e, t) => {
2086
+ }), fu = /* @__PURE__ */ m("ZodEmail", (e, t) => {
2087
2087
  aa.init(e, t), G.init(e, t);
2088
- }), hn = /* @__PURE__ */ d("ZodGUID", (e, t) => {
2088
+ }), hn = /* @__PURE__ */ m("ZodGUID", (e, t) => {
2089
2089
  sa.init(e, t), G.init(e, t);
2090
- }), Ke = /* @__PURE__ */ d("ZodUUID", (e, t) => {
2090
+ }), Ke = /* @__PURE__ */ m("ZodUUID", (e, t) => {
2091
2091
  ia.init(e, t), G.init(e, t);
2092
- }), Bo = /* @__PURE__ */ d("ZodURL", (e, t) => {
2092
+ }), Bo = /* @__PURE__ */ m("ZodURL", (e, t) => {
2093
2093
  ca.init(e, t), G.init(e, t);
2094
2094
  });
2095
- function mu(e) {
2096
- return Zo(Bo, e);
2095
+ function du(e) {
2096
+ return qo(Bo, e);
2097
2097
  }
2098
- const du = /* @__PURE__ */ d("ZodEmoji", (e, t) => {
2098
+ const mu = /* @__PURE__ */ m("ZodEmoji", (e, t) => {
2099
2099
  ua.init(e, t), G.init(e, t);
2100
- }), gu = /* @__PURE__ */ d("ZodNanoID", (e, t) => {
2100
+ }), gu = /* @__PURE__ */ m("ZodNanoID", (e, t) => {
2101
2101
  la.init(e, t), G.init(e, t);
2102
- }), vu = /* @__PURE__ */ d("ZodCUID", (e, t) => {
2102
+ }), vu = /* @__PURE__ */ m("ZodCUID", (e, t) => {
2103
2103
  pa.init(e, t), G.init(e, t);
2104
- }), bu = /* @__PURE__ */ d("ZodCUID2", (e, t) => {
2104
+ }), bu = /* @__PURE__ */ m("ZodCUID2", (e, t) => {
2105
2105
  ha.init(e, t), G.init(e, t);
2106
- }), _u = /* @__PURE__ */ d("ZodULID", (e, t) => {
2106
+ }), _u = /* @__PURE__ */ m("ZodULID", (e, t) => {
2107
2107
  fa.init(e, t), G.init(e, t);
2108
- }), yu = /* @__PURE__ */ d("ZodXID", (e, t) => {
2109
- ma.init(e, t), G.init(e, t);
2110
- }), Eu = /* @__PURE__ */ d("ZodKSUID", (e, t) => {
2108
+ }), yu = /* @__PURE__ */ m("ZodXID", (e, t) => {
2111
2109
  da.init(e, t), G.init(e, t);
2112
- }), Su = /* @__PURE__ */ d("ZodIPv4", (e, t) => {
2110
+ }), Eu = /* @__PURE__ */ m("ZodKSUID", (e, t) => {
2111
+ ma.init(e, t), G.init(e, t);
2112
+ }), Su = /* @__PURE__ */ m("ZodIPv4", (e, t) => {
2113
2113
  ya.init(e, t), G.init(e, t);
2114
- }), $u = /* @__PURE__ */ d("ZodIPv6", (e, t) => {
2114
+ }), $u = /* @__PURE__ */ m("ZodIPv6", (e, t) => {
2115
2115
  Ea.init(e, t), G.init(e, t);
2116
- }), Au = /* @__PURE__ */ d("ZodCIDRv4", (e, t) => {
2116
+ }), Au = /* @__PURE__ */ m("ZodCIDRv4", (e, t) => {
2117
2117
  Sa.init(e, t), G.init(e, t);
2118
- }), wu = /* @__PURE__ */ d("ZodCIDRv6", (e, t) => {
2118
+ }), wu = /* @__PURE__ */ m("ZodCIDRv6", (e, t) => {
2119
2119
  $a.init(e, t), G.init(e, t);
2120
- }), Ru = /* @__PURE__ */ d("ZodBase64", (e, t) => {
2120
+ }), Ru = /* @__PURE__ */ m("ZodBase64", (e, t) => {
2121
2121
  Aa.init(e, t), G.init(e, t);
2122
- }), Iu = /* @__PURE__ */ d("ZodBase64URL", (e, t) => {
2122
+ }), Iu = /* @__PURE__ */ m("ZodBase64URL", (e, t) => {
2123
2123
  Ra.init(e, t), G.init(e, t);
2124
- }), ku = /* @__PURE__ */ d("ZodE164", (e, t) => {
2124
+ }), ku = /* @__PURE__ */ m("ZodE164", (e, t) => {
2125
2125
  Ia.init(e, t), G.init(e, t);
2126
- }), Cu = /* @__PURE__ */ d("ZodJWT", (e, t) => {
2126
+ }), Cu = /* @__PURE__ */ m("ZodJWT", (e, t) => {
2127
2127
  Ca.init(e, t), G.init(e, t);
2128
- }), Uo = /* @__PURE__ */ d("ZodNumber", (e, t) => {
2128
+ }), Uo = /* @__PURE__ */ m("ZodNumber", (e, t) => {
2129
2129
  zo.init(e, t), X.init(e, t), e.gt = (n, o) => e.check(ln(n, o)), e.gte = (n, o) => e.check(At(n, o)), e.min = (n, o) => e.check(At(n, o)), e.lt = (n, o) => e.check(un(n, o)), e.lte = (n, o) => e.check($t(n, o)), e.max = (n, o) => e.check($t(n, o)), e.int = (n) => e.check(fn(n)), e.safe = (n) => e.check(fn(n)), e.positive = (n) => e.check(ln(0, n)), e.nonnegative = (n) => e.check(At(0, n)), e.negative = (n) => e.check(un(0, n)), e.nonpositive = (n) => e.check($t(0, n)), e.multipleOf = (n, o) => e.check(pn(n, o)), e.step = (n, o) => e.check(pn(n, o)), e.finite = () => e;
2130
2130
  const r = e._zod.bag;
2131
2131
  e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null;
@@ -2133,40 +2133,40 @@ const du = /* @__PURE__ */ d("ZodEmoji", (e, t) => {
2133
2133
  function Vo(e) {
2134
2134
  return wc(Uo, e);
2135
2135
  }
2136
- const Pu = /* @__PURE__ */ d("ZodNumberFormat", (e, t) => {
2136
+ const Pu = /* @__PURE__ */ m("ZodNumberFormat", (e, t) => {
2137
2137
  Pa.init(e, t), Uo.init(e, t);
2138
2138
  });
2139
2139
  function fn(e) {
2140
2140
  return Rc(Pu, e);
2141
2141
  }
2142
- const Ou = /* @__PURE__ */ d("ZodNull", (e, t) => {
2143
- Oa.init(e, t), X.init(e, t);
2142
+ const xu = /* @__PURE__ */ m("ZodNull", (e, t) => {
2143
+ xa.init(e, t), X.init(e, t);
2144
2144
  });
2145
2145
  function ot(e) {
2146
- return Ic(Ou, e);
2146
+ return Ic(xu, e);
2147
2147
  }
2148
- const xu = /* @__PURE__ */ d("ZodUnknown", (e, t) => {
2149
- xa.init(e, t), X.init(e, t);
2148
+ const Ou = /* @__PURE__ */ m("ZodUnknown", (e, t) => {
2149
+ Oa.init(e, t), X.init(e, t);
2150
2150
  });
2151
- function mn() {
2152
- return kc(xu);
2151
+ function dn() {
2152
+ return kc(Ou);
2153
2153
  }
2154
- const Nu = /* @__PURE__ */ d("ZodNever", (e, t) => {
2154
+ const Nu = /* @__PURE__ */ m("ZodNever", (e, t) => {
2155
2155
  Na.init(e, t), X.init(e, t);
2156
2156
  });
2157
2157
  function zu(e) {
2158
2158
  return Cc(Nu, e);
2159
2159
  }
2160
- const Lu = /* @__PURE__ */ d("ZodArray", (e, t) => {
2161
- za.init(e, t), X.init(e, t), e.element = t.element, e.min = (r, n) => e.check(nt(r, n)), e.nonempty = (r) => e.check(nt(1, r)), e.max = (r, n) => e.check(qo(r, n)), e.length = (r, n) => e.check(jo(r, n)), e.unwrap = () => e.element;
2160
+ const Lu = /* @__PURE__ */ m("ZodArray", (e, t) => {
2161
+ za.init(e, t), X.init(e, t), e.element = t.element, e.min = (r, n) => e.check(nt(r, n)), e.nonempty = (r) => e.check(nt(1, r)), e.max = (r, n) => e.check(Zo(r, n)), e.length = (r, n) => e.check(jo(r, n)), e.unwrap = () => e.element;
2162
2162
  });
2163
2163
  function j(e, t) {
2164
2164
  return Dc(Lu, e, t);
2165
2165
  }
2166
- const Tu = /* @__PURE__ */ d("ZodObject", (e, t) => {
2167
- Ta.init(e, t), X.init(e, t), U(e, "shape", () => t.shape), e.keyof = () => Ve(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: mn() }), e.loose = () => e.clone({ ...e._zod.def, catchall: mn() }), e.strict = () => e.clone({ ...e._zod.def, catchall: zu() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => ti(e, r), e.safeExtend = (r) => ri(e, r), e.merge = (r) => ni(e, r), e.pick = (r) => Qs(e, r), e.omit = (r) => ei(e, r), e.partial = (...r) => oi(Jo, e, r[0]), e.required = (...r) => si(Mo, e, r[0]);
2166
+ const Tu = /* @__PURE__ */ m("ZodObject", (e, t) => {
2167
+ Ta.init(e, t), X.init(e, t), U(e, "shape", () => t.shape), e.keyof = () => Ve(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: dn() }), e.loose = () => e.clone({ ...e._zod.def, catchall: dn() }), e.strict = () => e.clone({ ...e._zod.def, catchall: zu() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => ti(e, r), e.safeExtend = (r) => ri(e, r), e.merge = (r) => ni(e, r), e.pick = (r) => Qs(e, r), e.omit = (r) => ei(e, r), e.partial = (...r) => oi(Jo, e, r[0]), e.required = (...r) => si(Mo, e, r[0]);
2168
2168
  });
2169
- function k(e, t) {
2169
+ function w(e, t) {
2170
2170
  const r = {
2171
2171
  type: "object",
2172
2172
  shape: e ?? {},
@@ -2174,27 +2174,27 @@ function k(e, t) {
2174
2174
  };
2175
2175
  return new Tu(r);
2176
2176
  }
2177
- const Zu = /* @__PURE__ */ d("ZodUnion", (e, t) => {
2178
- Za.init(e, t), X.init(e, t), e.options = t.options;
2177
+ const qu = /* @__PURE__ */ m("ZodUnion", (e, t) => {
2178
+ qa.init(e, t), X.init(e, t), e.options = t.options;
2179
2179
  });
2180
2180
  function pe(e, t) {
2181
- return new Zu({
2181
+ return new qu({
2182
2182
  type: "union",
2183
2183
  options: e,
2184
2184
  ...S(t)
2185
2185
  });
2186
2186
  }
2187
- const qu = /* @__PURE__ */ d("ZodIntersection", (e, t) => {
2188
- qa.init(e, t), X.init(e, t);
2187
+ const Zu = /* @__PURE__ */ m("ZodIntersection", (e, t) => {
2188
+ Za.init(e, t), X.init(e, t);
2189
2189
  });
2190
2190
  function ju(e, t) {
2191
- return new qu({
2191
+ return new Zu({
2192
2192
  type: "intersection",
2193
2193
  left: e,
2194
2194
  right: t
2195
2195
  });
2196
2196
  }
2197
- const Du = /* @__PURE__ */ d("ZodRecord", (e, t) => {
2197
+ const Du = /* @__PURE__ */ m("ZodRecord", (e, t) => {
2198
2198
  ja.init(e, t), X.init(e, t), e.keyType = t.keyType, e.valueType = t.valueType;
2199
2199
  });
2200
2200
  function Fo(e, t, r) {
@@ -2205,7 +2205,7 @@ function Fo(e, t, r) {
2205
2205
  ...S(r)
2206
2206
  });
2207
2207
  }
2208
- const vr = /* @__PURE__ */ d("ZodEnum", (e, t) => {
2208
+ const vr = /* @__PURE__ */ m("ZodEnum", (e, t) => {
2209
2209
  Da.init(e, t), X.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2210
2210
  const r = new Set(Object.keys(t.entries));
2211
2211
  e.extract = (n, o) => {
@@ -2244,7 +2244,7 @@ function Ve(e, t) {
2244
2244
  ...S(t)
2245
2245
  });
2246
2246
  }
2247
- const Bu = /* @__PURE__ */ d("ZodLiteral", (e, t) => {
2247
+ const Bu = /* @__PURE__ */ m("ZodLiteral", (e, t) => {
2248
2248
  Ba.init(e, t), X.init(e, t), e.values = new Set(t.values), Object.defineProperty(e, "value", {
2249
2249
  get() {
2250
2250
  if (t.values.length > 1)
@@ -2260,7 +2260,7 @@ function J(e, t) {
2260
2260
  ...S(t)
2261
2261
  });
2262
2262
  }
2263
- const Uu = /* @__PURE__ */ d("ZodTransform", (e, t) => {
2263
+ const Uu = /* @__PURE__ */ m("ZodTransform", (e, t) => {
2264
2264
  Ua.init(e, t), X.init(e, t), e._zod.parse = (r, n) => {
2265
2265
  if (n.direction === "backward")
2266
2266
  throw new yo(e.constructor.name);
@@ -2282,7 +2282,7 @@ function Vu(e) {
2282
2282
  transform: e
2283
2283
  });
2284
2284
  }
2285
- const Jo = /* @__PURE__ */ d("ZodOptional", (e, t) => {
2285
+ const Jo = /* @__PURE__ */ m("ZodOptional", (e, t) => {
2286
2286
  Va.init(e, t), X.init(e, t), e.unwrap = () => e._zod.def.innerType;
2287
2287
  });
2288
2288
  function le(e) {
@@ -2291,16 +2291,16 @@ function le(e) {
2291
2291
  innerType: e
2292
2292
  });
2293
2293
  }
2294
- const Fu = /* @__PURE__ */ d("ZodNullable", (e, t) => {
2294
+ const Fu = /* @__PURE__ */ m("ZodNullable", (e, t) => {
2295
2295
  Fa.init(e, t), X.init(e, t), e.unwrap = () => e._zod.def.innerType;
2296
2296
  });
2297
- function dn(e) {
2297
+ function mn(e) {
2298
2298
  return new Fu({
2299
2299
  type: "nullable",
2300
2300
  innerType: e
2301
2301
  });
2302
2302
  }
2303
- const Ju = /* @__PURE__ */ d("ZodDefault", (e, t) => {
2303
+ const Ju = /* @__PURE__ */ m("ZodDefault", (e, t) => {
2304
2304
  Ja.init(e, t), X.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2305
2305
  });
2306
2306
  function Mu(e, t) {
@@ -2312,7 +2312,7 @@ function Mu(e, t) {
2312
2312
  }
2313
2313
  });
2314
2314
  }
2315
- const Wu = /* @__PURE__ */ d("ZodPrefault", (e, t) => {
2315
+ const Wu = /* @__PURE__ */ m("ZodPrefault", (e, t) => {
2316
2316
  Ma.init(e, t), X.init(e, t), e.unwrap = () => e._zod.def.innerType;
2317
2317
  });
2318
2318
  function Gu(e, t) {
@@ -2324,7 +2324,7 @@ function Gu(e, t) {
2324
2324
  }
2325
2325
  });
2326
2326
  }
2327
- const Mo = /* @__PURE__ */ d("ZodNonOptional", (e, t) => {
2327
+ const Mo = /* @__PURE__ */ m("ZodNonOptional", (e, t) => {
2328
2328
  Wa.init(e, t), X.init(e, t), e.unwrap = () => e._zod.def.innerType;
2329
2329
  });
2330
2330
  function Xu(e, t) {
@@ -2334,7 +2334,7 @@ function Xu(e, t) {
2334
2334
  ...S(t)
2335
2335
  });
2336
2336
  }
2337
- const Hu = /* @__PURE__ */ d("ZodCatch", (e, t) => {
2337
+ const Hu = /* @__PURE__ */ m("ZodCatch", (e, t) => {
2338
2338
  Ga.init(e, t), X.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2339
2339
  });
2340
2340
  function Yu(e, t) {
@@ -2344,7 +2344,7 @@ function Yu(e, t) {
2344
2344
  catchValue: typeof t == "function" ? t : () => t
2345
2345
  });
2346
2346
  }
2347
- const Ku = /* @__PURE__ */ d("ZodPipe", (e, t) => {
2347
+ const Ku = /* @__PURE__ */ m("ZodPipe", (e, t) => {
2348
2348
  Xa.init(e, t), X.init(e, t), e.in = t.in, e.out = t.out;
2349
2349
  });
2350
2350
  function gn(e, t) {
@@ -2355,7 +2355,7 @@ function gn(e, t) {
2355
2355
  // ...util.normalizeParams(params),
2356
2356
  });
2357
2357
  }
2358
- const Qu = /* @__PURE__ */ d("ZodReadonly", (e, t) => {
2358
+ const Qu = /* @__PURE__ */ m("ZodReadonly", (e, t) => {
2359
2359
  Ha.init(e, t), X.init(e, t), e.unwrap = () => e._zod.def.innerType;
2360
2360
  });
2361
2361
  function el(e) {
@@ -2364,7 +2364,7 @@ function el(e) {
2364
2364
  innerType: e
2365
2365
  });
2366
2366
  }
2367
- const Wo = /* @__PURE__ */ d("ZodCustom", (e, t) => {
2367
+ const Wo = /* @__PURE__ */ m("ZodCustom", (e, t) => {
2368
2368
  Ya.init(e, t), X.init(e, t);
2369
2369
  });
2370
2370
  function tl(e, t) {
@@ -2377,7 +2377,7 @@ function nl(e) {
2377
2377
  return Vc(e);
2378
2378
  }
2379
2379
  var E = /* @__PURE__ */ ((e) => (e.Article = "article", e.AudioDocument = "audiodocument", e.AudioVisualDocument = "audiovisualdocument", e.Book = "book", e.Bookitem = "bookitem", e.Conference = "conference", e.Document = "document", e.Image = "image", e.Issue = "issue", e.Journal = "journal", e.Preprint = "preprint", e.Proceeding = "proceeding", e.Report = "report", e.Unknown = "unknown", e.Webpage = "webpage", e))(E || {});
2380
- const ld = pe([
2380
+ const gm = pe([
2381
2381
  J(
2382
2382
  "book"
2383
2383
  /* Book */
@@ -2406,7 +2406,7 @@ const ld = pe([
2406
2406
  "unknown"
2407
2407
  /* Unknown */
2408
2408
  )
2409
- ]), pd = pe([
2409
+ ]), vm = pe([
2410
2410
  J(
2411
2411
  "article"
2412
2412
  /* Article */
@@ -2435,7 +2435,7 @@ const ld = pe([
2435
2435
  "unknown"
2436
2436
  /* Unknown */
2437
2437
  )
2438
- ]), be = k({
2438
+ ]), be = w({
2439
2439
  artnum: p(),
2440
2440
  atitle: p(),
2441
2441
  aufirst: p(),
@@ -2476,11 +2476,11 @@ const ld = pe([
2476
2476
  title: p(),
2477
2477
  tpages: p(),
2478
2478
  volume: p()
2479
- }).partial(), Go = k({
2479
+ }).partial(), Go = w({
2480
2480
  bibid: p(),
2481
2481
  doi: p(),
2482
2482
  uri: p()
2483
- }).partial(), hd = be.pick({
2483
+ }).partial(), bm = be.pick({
2484
2484
  atitle: !0,
2485
2485
  aufirst: !0,
2486
2486
  aulast: !0,
@@ -2506,7 +2506,7 @@ const ld = pe([
2506
2506
  tpages: !0,
2507
2507
  series: !0,
2508
2508
  spage: !0
2509
- }).partial(), fd = be.pick({
2509
+ }).partial(), _m = be.pick({
2510
2510
  artnum: !0,
2511
2511
  atitle: !0,
2512
2512
  aufirst: !0,
@@ -2538,29 +2538,29 @@ const ld = pe([
2538
2538
  ssn: !0,
2539
2539
  quarter: !0,
2540
2540
  volume: !0
2541
- }).partial(), md = be.pick({
2541
+ }).partial(), ym = be.pick({
2542
2542
  au: !0,
2543
2543
  date: !0,
2544
2544
  isbn: !0,
2545
2545
  pub: !0,
2546
2546
  title: !0
2547
- }).partial(), dd = be.pick({
2547
+ }).partial(), Em = be.pick({
2548
2548
  au: !0,
2549
2549
  date: !0,
2550
2550
  pub: !0,
2551
2551
  title: !0
2552
- }).partial(), gd = be.pick({
2552
+ }).partial(), Sm = be.pick({
2553
2553
  au: !0,
2554
2554
  date: !0,
2555
2555
  pub: !0,
2556
2556
  title: !0,
2557
2557
  spage: !0,
2558
2558
  epage: !0
2559
- }).partial(), vd = be.pick({
2559
+ }).partial(), $m = be.pick({
2560
2560
  au: !0,
2561
2561
  date: !0,
2562
2562
  title: !0
2563
- }).partial(), ol = k({
2563
+ }).partial(), ol = w({
2564
2564
  ...be.shape,
2565
2565
  ...Go.shape
2566
2566
  }), Q = (e, t) => ({
@@ -2612,18 +2612,18 @@ const ld = pe([
2612
2612
  ].reduce(r, {});
2613
2613
  return Object.keys(n).length === 0 ? null : n;
2614
2614
  }, fl = (e) => URL.canParse(e) ? new URL(e).searchParams : new URLSearchParams(e);
2615
- function bd(e) {
2615
+ function Am(e) {
2616
2616
  return typeof e != "string" ? !1 : Object.values(E).includes(e);
2617
2617
  }
2618
2618
  var Se = /* @__PURE__ */ ((e) => (e.CA = "CA", e.EUAPAC = "EUAPAC", e))(Se || {});
2619
- const Ko = k({
2619
+ const Ko = w({
2620
2620
  id: p(),
2621
2621
  name: p(),
2622
2622
  region: Ve(Se)
2623
- }), _d = k({
2623
+ }), wm = w({
2624
2624
  tenants: j(Ko)
2625
- }), bn = 9 * 1024 * 1024, ml = k({
2626
- url: mu({
2625
+ }), bn = 9 * 1024 * 1024, dl = w({
2626
+ url: du({
2627
2627
  error: (e) => e.input === void 0 ? 'should have the required string property "url"' : '"url" must be a string'
2628
2628
  }),
2629
2629
  html: p({
@@ -2640,21 +2640,21 @@ const Ko = k({
2640
2640
  error: (e) => e.input === void 0 ? 'should have the required string property "region"' : '"region" must be a string of EUAPAC or CA'
2641
2641
  })
2642
2642
  });
2643
- function yd(e) {
2644
- return ml.safeParse(e).success;
2643
+ function Rm(e) {
2644
+ return dl.safeParse(e).success;
2645
2645
  }
2646
- const Qo = k({
2646
+ const Qo = w({
2647
2647
  name: p(),
2648
2648
  region: Ve(Se),
2649
2649
  apps: Fo(p(), p())
2650
- }), dl = Fo(p(), Qo), gl = (e) => Qo.safeParse(e).success, vl = (e) => dl.safeParse(e).success;
2650
+ }), ml = Fo(p(), Qo), gl = (e) => Qo.safeParse(e).success, vl = (e) => ml.safeParse(e).success;
2651
2651
  function bl(e) {
2652
2652
  return Ko.safeParse(e).success;
2653
2653
  }
2654
- function Ed(e) {
2654
+ function Im(e) {
2655
2655
  return typeof e == "string" && Object.keys(Se).includes(e);
2656
2656
  }
2657
- const Sd = (e) => {
2657
+ const km = (e) => {
2658
2658
  if (!vl(e))
2659
2659
  throw new Error("Error: the customer list data is invalid.");
2660
2660
  return { tenants: Object.entries(e).map(
@@ -2667,27 +2667,27 @@ const Sd = (e) => {
2667
2667
  if (!bl(o))
2668
2668
  throw new Error(`Invalid tenant: ${JSON.stringify(o)}`);
2669
2669
  return o;
2670
- }, es = k({
2670
+ }, es = w({
2671
2671
  parserType: p(),
2672
2672
  parserName: p().nullable(),
2673
2673
  uri: p(),
2674
2674
  referrer: p()
2675
- }), ts = k({
2675
+ }), ts = w({
2676
2676
  parserType: p(),
2677
2677
  parserName: p().nullable(),
2678
2678
  referrer: p()
2679
- }), rs = k({
2679
+ }), rs = w({
2680
2680
  bookmarkingWorkflowUrl: ot(),
2681
2681
  resource: ot()
2682
- }), ns = k({
2682
+ }), ns = w({
2683
2683
  bookmarkingWorkflowUrl: p(),
2684
2684
  resource: ot()
2685
- }), os = k({
2685
+ }), os = w({
2686
2686
  bookmarkingWorkflowUrl: ot(),
2687
2687
  resource: ol
2688
- }), ss = k({
2688
+ }), ss = w({
2689
2689
  z3988SearchResult: J(!0)
2690
- }), is = k({
2690
+ }), is = w({
2691
2691
  summonSearchResult: J(!0)
2692
2692
  }), kr = pe([
2693
2693
  ns,
@@ -2695,18 +2695,18 @@ const Sd = (e) => {
2695
2695
  os,
2696
2696
  ss,
2697
2697
  is
2698
- ]), yl = k({
2698
+ ]), yl = w({
2699
2699
  meta: es
2700
- }).and(kr), El = k({
2700
+ }).and(kr), El = w({
2701
2701
  meta: ts
2702
2702
  }).and(kr);
2703
- function $d(e) {
2703
+ function Cm(e) {
2704
2704
  return { bookmarkingWorkflowUrl: e, resource: null };
2705
2705
  }
2706
2706
  function T() {
2707
2707
  return { bookmarkingWorkflowUrl: null, resource: null };
2708
2708
  }
2709
- function w(e) {
2709
+ function R(e) {
2710
2710
  return { bookmarkingWorkflowUrl: null, resource: e };
2711
2711
  }
2712
2712
  function Sl() {
@@ -2723,7 +2723,7 @@ const Al = (e) => {
2723
2723
  if (t.length === 0)
2724
2724
  return T();
2725
2725
  const r = t.map(Al).find((n) => n !== null);
2726
- return r ? w(r) : T();
2726
+ return r ? R(r) : T();
2727
2727
  }, wl = (e) => {
2728
2728
  const t = Array.from(e.querySelectorAll(".author > a")).map((r) => r.textContent.trim()).filter(Boolean);
2729
2729
  return t.length ? t : void 0;
@@ -2747,13 +2747,13 @@ const Al = (e) => {
2747
2747
  "#rpi-attribute-book_details-publisher > .rpi-attribute-value > span"
2748
2748
  )?.textContent ?? void 0, Pl = (e) => e.querySelector(
2749
2749
  "#rpi-attribute-book_details-series > .rpi-attribute-value > a"
2750
- )?.textContent ?? void 0, Ol = (e) => {
2750
+ )?.textContent ?? void 0, xl = (e) => {
2751
2751
  const t = e.querySelector(
2752
2752
  "#rpi-attribute-book_details-fiona_pages > .rpi-attribute-value > span"
2753
2753
  )?.textContent ?? void 0;
2754
2754
  return (t ? /\d+/.exec(t)?.[0] : null) ?? void 0;
2755
- }, xl = ({ url: e, document: t }) => {
2756
- const r = wl(t), n = Rl(t), o = Il(t), s = kl(t), i = Cl(t), a = Pl(t), c = t.getElementById("productTitle")?.textContent.trim() ?? void 0, u = Ol(t);
2755
+ }, Ol = ({ url: e, document: t }) => {
2756
+ const r = wl(t), n = Rl(t), o = Il(t), s = kl(t), i = Cl(t), a = Pl(t), c = t.getElementById("productTitle")?.textContent.trim() ?? void 0, u = xl(t);
2757
2757
  return {
2758
2758
  bookmarkingWorkflowUrl: null,
2759
2759
  resource: Q(E.Book, {
@@ -2785,7 +2785,7 @@ const Al = (e) => {
2785
2785
  };
2786
2786
  }, zl = (e) => {
2787
2787
  const t = e.querySelector(".article-header .source")?.textContent, r = t?.match(/\d{4}-\d{2}-\d{2}/)?.[0], n = t?.match(/Pages (\d+-\d+)/), [o, s] = (n?.[1].split("-") ?? []).map((u) => u.trim()), { jtitle: i, volume: a, issue: c } = Nl(e);
2788
- return w(
2788
+ return R(
2789
2789
  D(E.Article, {
2790
2790
  au: as(e),
2791
2791
  atitle: cs(e),
@@ -2799,7 +2799,7 @@ const Al = (e) => {
2799
2799
  );
2800
2800
  }, Ll = (e) => {
2801
2801
  const [t, r] = e.querySelectorAll(".source"), { date: n, pub: o } = us(r), s = e.querySelector(".browse__book-toc"), [i, a] = (s?.querySelector("h1")?.textContent.split(",") ?? []).map((c) => c.trim());
2802
- return w(
2802
+ return R(
2803
2803
  Q(E.Book, {
2804
2804
  btitle: i,
2805
2805
  edition: a,
@@ -2819,9 +2819,9 @@ const Al = (e) => {
2819
2819
  date: s,
2820
2820
  pub: i
2821
2821
  };
2822
- }, Zl = (e) => {
2822
+ }, ql = (e) => {
2823
2823
  const { edition: t, btitle: r, date: n, pub: o } = Tl(e), s = e.querySelector(".article-header .source")?.textContent, i = /(\d+-\d+|[IVXLCDM]+-[IVXLCDM]+)/i, a = s?.match(i), [c, u] = (a?.[1].split("-") ?? []).map((l) => l.trim());
2824
- return w(
2824
+ return R(
2825
2825
  Q(E.Bookitem, {
2826
2826
  au: as(e),
2827
2827
  atitle: cs(e),
@@ -2833,12 +2833,12 @@ const Al = (e) => {
2833
2833
  epage: u
2834
2834
  })
2835
2835
  );
2836
- }, ql = /^[0-9X]$/, Pr = (e) => {
2836
+ }, Zl = /^[0-9X]$/, Pr = (e) => {
2837
2837
  if (!e)
2838
2838
  return;
2839
2839
  let t = "";
2840
2840
  for (const r of e)
2841
- ql.test(r) && (t += r);
2841
+ Zl.test(r) && (t += r);
2842
2842
  if (t)
2843
2843
  return t;
2844
2844
  }, jl = (e, t) => {
@@ -2848,7 +2848,7 @@ const Al = (e) => {
2848
2848
  null,
2849
2849
  XPathResult.ANY_TYPE
2850
2850
  ), i = Pr(s.iterateNext()?.textContent);
2851
- return w({
2851
+ return R({
2852
2852
  genre: E.Document,
2853
2853
  title: r,
2854
2854
  pub: n,
@@ -2874,7 +2874,7 @@ const Al = (e) => {
2874
2874
  };
2875
2875
  }, Ul = (e) => {
2876
2876
  const { date: t, volume: r, issue: n } = Bl(e);
2877
- return w(
2877
+ return R(
2878
2878
  D(E.Journal, {
2879
2879
  jtitle: Dl(e),
2880
2880
  date: t,
@@ -2901,7 +2901,7 @@ const Vl = (e) => Object.values(ps).includes(
2901
2901
  case "Book":
2902
2902
  return Ll(t);
2903
2903
  case "Book Chapter":
2904
- return Zl(t);
2904
+ return ql(t);
2905
2905
  case "Full Text Article":
2906
2906
  return zl(t);
2907
2907
  case "Journal":
@@ -2911,7 +2911,7 @@ const Vl = (e) => Object.values(ps).includes(
2911
2911
  case void 0:
2912
2912
  return T();
2913
2913
  }
2914
- }, we = k({
2914
+ }, we = w({
2915
2915
  "@context": p()
2916
2916
  }), Ml = (e) => we.safeParse(e).success, hs = 'script[type="application/ld+json"]', fs = (e) => Array.from(e.querySelectorAll(hs)), ct = (e) => e.querySelector(hs), Fe = (e) => {
2917
2917
  const t = e.textContent;
@@ -2925,17 +2925,17 @@ const Vl = (e) => Object.values(ps).includes(
2925
2925
  return null;
2926
2926
  }
2927
2927
  return null;
2928
- }, Wl = k({
2928
+ }, Wl = w({
2929
2929
  "@id": p(),
2930
2930
  "@type": p(),
2931
- author: k({
2931
+ author: w({
2932
2932
  "@id": p()
2933
2933
  }).optional(),
2934
2934
  datePublished: p().optional(),
2935
2935
  dateModified: p().optional(),
2936
2936
  description: p().optional(),
2937
2937
  inLanguage: p().optional(),
2938
- isPartOf: k({
2938
+ isPartOf: w({
2939
2939
  "@id": p()
2940
2940
  }).optional(),
2941
2941
  name: p().optional(),
@@ -2964,12 +2964,12 @@ const Vl = (e) => Object.values(ps).includes(
2964
2964
  bookmarkingWorkflowUrl: null,
2965
2965
  resource: Ql(t)
2966
2966
  } : T();
2967
- }, ms = () => T(), h = (e, t, r) => {
2967
+ }, ds = () => T(), h = (e, t, r) => {
2968
2968
  const n = te(e, t, r);
2969
2969
  return n.length > 0 ? n[0] : void 0;
2970
2970
  }, te = (e, t, r) => Array.from(
2971
2971
  e.querySelectorAll(`meta[${t}='${r}']`)
2972
- ).map((n) => n.getAttribute("content")).filter((n) => !!n?.trim()), ds = (e) => {
2972
+ ).map((n) => n.getAttribute("content")).filter((n) => !!n?.trim()), ms = (e) => {
2973
2973
  const t = /* @__PURE__ */ new Map(), r = e.split(";").filter((n) => !!n);
2974
2974
  for (const n of r) {
2975
2975
  const [o, s, i] = n.split(":");
@@ -2986,7 +2986,7 @@ const Vl = (e) => Object.values(ps).includes(
2986
2986
  null,
2987
2987
  XPathResult.STRING_TYPE
2988
2988
  ).stringValue.trim();
2989
- return w(
2989
+ return R(
2990
2990
  D(E.Journal, {
2991
2991
  pub: a,
2992
2992
  jtitle: t,
@@ -2999,8 +2999,8 @@ const Vl = (e) => Object.values(ps).includes(
2999
2999
  const n = te(e, "name", "citation_issn");
3000
3000
  return n.length === 2 ? (t = n[1], r = n[0]) : t = n[0], { eissn: t, issn: r };
3001
3001
  }, op = (e) => {
3002
- const t = h(e, "name", "citation_journal_title"), r = h(e, "name", "citation_title"), n = te(e, "name", "citation_author"), o = h(e, "name", "citation_doi"), { eissn: s, issn: i } = np(e), a = h(e, "name", "citation_publisher"), c = h(e, "name", "citation_publication_date"), u = h(e, "name", "citation_volume"), l = h(e, "name", "citation_issue"), f = h(e, "name", "citation_firstpage"), m = h(e, "name", "citation_lastpage");
3003
- return w(
3002
+ const t = h(e, "name", "citation_journal_title"), r = h(e, "name", "citation_title"), n = te(e, "name", "citation_author"), o = h(e, "name", "citation_doi"), { eissn: s, issn: i } = np(e), a = h(e, "name", "citation_publisher"), c = h(e, "name", "citation_publication_date"), u = h(e, "name", "citation_volume"), l = h(e, "name", "citation_issue"), f = h(e, "name", "citation_firstpage"), d = h(e, "name", "citation_lastpage");
3003
+ return R(
3004
3004
  D(E.Article, {
3005
3005
  jtitle: t,
3006
3006
  atitle: r,
@@ -3013,7 +3013,7 @@ const Vl = (e) => Object.values(ps).includes(
3013
3013
  volume: u,
3014
3014
  issue: l,
3015
3015
  spage: f,
3016
- epage: m
3016
+ epage: d
3017
3017
  })
3018
3018
  );
3019
3019
  }, sp = ({ document: e, url: t }) => {
@@ -3031,7 +3031,7 @@ const ip = (e) => {
3031
3031
  const t = h(e, "name", "pbContext");
3032
3032
  if (!t)
3033
3033
  return y.None;
3034
- const r = ds(t);
3034
+ const r = ms(t);
3035
3035
  switch (r.has("page") ? r.get("page")?.value : null) {
3036
3036
  case "Article/Chapter View":
3037
3037
  return y.Article;
@@ -3077,7 +3077,7 @@ const ip = (e) => {
3077
3077
  volume: f,
3078
3078
  doi: n
3079
3079
  });
3080
- }, mp = (e) => {
3080
+ }, dp = (e) => {
3081
3081
  const t = gs(e.document), r = t.get("issn"), n = t.get("eissn"), o = pp(e.document), s = hp(e.document), i = s.get("issue"), a = s.get("volume"), c = s.get("date");
3082
3082
  return D(E.Journal, {
3083
3083
  eissn: n,
@@ -3088,12 +3088,12 @@ const ip = (e) => {
3088
3088
  volume: a,
3089
3089
  date: c
3090
3090
  });
3091
- }, dp = (e) => {
3091
+ }, mp = (e) => {
3092
3092
  switch (ip(e.document)) {
3093
3093
  case y.Article:
3094
- return w(fp(e));
3094
+ return R(fp(e));
3095
3095
  case y.Journal:
3096
- return w(mp(e));
3096
+ return R(dp(e));
3097
3097
  default:
3098
3098
  return T();
3099
3099
  }
@@ -3104,7 +3104,7 @@ const ip = (e) => {
3104
3104
  "citation_article_type"
3105
3105
  );
3106
3106
  return t === "JOUR" && r ? y.Article : t === "CHP" ? y.Chapter : e.querySelector(".book-edition-year")?.textContent.includes("Book") ? y.Book : e.getElementById("journal-title") ? y.Journal : y.None;
3107
- }, Or = (e) => h(e, "name", "citation_doi") ?? h(e, "name", "dc.identifier") ?? e.querySelector(".doi .anchor-text")?.textContent ?? void 0, vp = (e) => {
3107
+ }, xr = (e) => h(e, "name", "citation_doi") ?? h(e, "name", "dc.identifier") ?? e.querySelector(".doi .anchor-text")?.textContent ?? void 0, vp = (e) => {
3108
3108
  const t = Array.from(
3109
3109
  e.querySelectorAll(".kf-details .kf-detail-item:has(h3)")
3110
3110
  ), r = /* @__PURE__ */ new Map();
@@ -3113,7 +3113,7 @@ const ip = (e) => {
3113
3113
  o && s && r.set(o, s);
3114
3114
  }
3115
3115
  return r;
3116
- }, xr = (e, t) => {
3116
+ }, Or = (e, t) => {
3117
3117
  const r = Array.from(e.querySelectorAll(t)).map((n) => n.textContent).filter((n) => !!n);
3118
3118
  return r.length > 0 ? r : void 0;
3119
3119
  }, bp = (e) => {
@@ -3125,7 +3125,7 @@ const ip = (e) => {
3125
3125
  if (t)
3126
3126
  return URL.canParse(t) ? new URL(t).pathname.substring(1) : t;
3127
3127
  }, yp = (e) => {
3128
- const t = vp(e), r = h(e, "property", "og:title"), n = h(e, "property", "og:book:isbn"), o = t.get("Published"), s = xr(e, ".authors-container .author-detail h3"), i = Or(e) ?? _p(t);
3128
+ const t = vp(e), r = h(e, "property", "og:title"), n = h(e, "property", "og:book:isbn"), o = t.get("Published"), s = Or(e, ".authors-container .author-detail h3"), i = xr(e) ?? _p(t);
3129
3129
  return Q(E.Book, {
3130
3130
  au: s,
3131
3131
  date: o,
@@ -3134,7 +3134,7 @@ const ip = (e) => {
3134
3134
  title: r
3135
3135
  });
3136
3136
  }, Ep = (e) => {
3137
- const t = h(e, "property", "og:title"), r = h(e, "property", "og:book:isbn"), n = h(e, "name", "citation_publication_date"), o = xr(e, ".author-group .button-link-text"), s = h(e, "name", "citation_firstpage"), i = h(e, "name", "citation_lastpage"), a = h(e, "name", "citation_publisher"), c = Or(e), u = h(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3137
+ const t = h(e, "property", "og:title"), r = h(e, "property", "og:book:isbn"), n = h(e, "name", "citation_publication_date"), o = Or(e, ".author-group .button-link-text"), s = h(e, "name", "citation_firstpage"), i = h(e, "name", "citation_lastpage"), a = h(e, "name", "citation_publisher"), c = xr(e), u = h(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3138
3138
  return Q(E.Bookitem, {
3139
3139
  au: o,
3140
3140
  btitle: u,
@@ -3147,7 +3147,7 @@ const ip = (e) => {
3147
3147
  title: t
3148
3148
  });
3149
3149
  }, Sp = (e) => {
3150
- const t = h(e, "property", "og:title"), r = h(e, "name", "citation_issn"), n = h(e, "name", "citation_publication_date"), o = xr(e, ".author-group .button-link-text"), s = h(e, "name", "citation_publisher"), i = h(e, "name", "citation_firstpage"), a = h(e, "name", "citation_issue"), c = h(e, "name", "citation_volume"), u = Or(e), l = h(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3150
+ const t = h(e, "property", "og:title"), r = h(e, "name", "citation_issn"), n = h(e, "name", "citation_publication_date"), o = Or(e, ".author-group .button-link-text"), s = h(e, "name", "citation_publisher"), i = h(e, "name", "citation_firstpage"), a = h(e, "name", "citation_issue"), c = h(e, "name", "citation_volume"), u = xr(e), l = h(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3151
3151
  return D(E.Article, {
3152
3152
  au: o,
3153
3153
  jtitle: l,
@@ -3169,19 +3169,19 @@ const ip = (e) => {
3169
3169
  }, Ap = ({ document: e }) => {
3170
3170
  switch (gp(e)) {
3171
3171
  case y.Book:
3172
- return w(yp(e));
3172
+ return R(yp(e));
3173
3173
  case y.Chapter:
3174
- return w(Ep(e));
3174
+ return R(Ep(e));
3175
3175
  case y.Article:
3176
- return w(Sp(e));
3176
+ return R(Sp(e));
3177
3177
  case y.Journal:
3178
- return w($p(e));
3178
+ return R($p(e));
3179
3179
  default:
3180
3180
  return T();
3181
3181
  }
3182
3182
  }, wp = (e) => {
3183
3183
  const t = h(e, "name", "pbContext");
3184
- return t && ds(t).has("article") ? y.Article : y.Journal;
3184
+ return t && ms(t).has("article") ? y.Article : y.Journal;
3185
3185
  }, Rp = (e) => {
3186
3186
  const t = e.querySelector(".itemPageRangeHistory");
3187
3187
  if (!t)
@@ -3219,29 +3219,29 @@ const ip = (e) => {
3219
3219
  doi: r,
3220
3220
  title: t
3221
3221
  });
3222
- }, Op = ({ document: e }) => {
3222
+ }, xp = ({ document: e }) => {
3223
3223
  switch (wp(e)) {
3224
3224
  case y.Article:
3225
- return w(Cp(e));
3225
+ return R(Cp(e));
3226
3226
  case y.Journal:
3227
- return w(Pp(e));
3227
+ return R(Pp(e));
3228
3228
  default:
3229
3229
  return T();
3230
3230
  }
3231
- }, Ad = (e) => kr.safeParse(e).success, wd = (e) => yl.safeParse(e).success, Rd = (e) => El.safeParse(e).success, Id = (e) => es.safeParse(e).success, kd = (e) => ts.safeParse(e).success;
3232
- function Cd(e) {
3231
+ }, Pm = (e) => kr.safeParse(e).success, xm = (e) => yl.safeParse(e).success, Om = (e) => El.safeParse(e).success, Nm = (e) => es.safeParse(e).success, zm = (e) => ts.safeParse(e).success;
3232
+ function Lm(e) {
3233
3233
  return ns.safeParse(e).success;
3234
3234
  }
3235
3235
  function Nr(e) {
3236
3236
  return os.safeParse(e).success;
3237
3237
  }
3238
- function xp(e) {
3238
+ function Op(e) {
3239
3239
  return ss.safeParse(e).success;
3240
3240
  }
3241
3241
  function Np(e) {
3242
3242
  return is.safeParse(e).success;
3243
3243
  }
3244
- function Pd(e) {
3244
+ function Tm(e) {
3245
3245
  return rs.safeParse(e).success;
3246
3246
  }
3247
3247
  const zp = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textContent.trim() === "DOI:")?.nextElementSibling?.querySelector('span[property="identifier"]')?.textContent ?? void 0, Lp = (e) => {
@@ -3254,7 +3254,7 @@ const zp = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textCont
3254
3254
  return n;
3255
3255
  const o = zp(r);
3256
3256
  return o && (n.resource.rft_id = [`info:doi/${o}`]), n.resource.bibid = Lp(t), n;
3257
- }, Zp = we.extend({
3257
+ }, qp = we.extend({
3258
3258
  "@type": J("VideoObject"),
3259
3259
  name: p(),
3260
3260
  author: p(),
@@ -3263,11 +3263,11 @@ const zp = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textCont
3263
3263
  uploadDate: p(),
3264
3264
  duration: p(),
3265
3265
  thumbnailUrl: j(p())
3266
- }), qp = (e) => Zp.safeParse(e).success, jp = (e) => {
3266
+ }), Zp = (e) => qp.safeParse(e).success, jp = (e) => {
3267
3267
  const t = fs(e);
3268
3268
  if (t.length === 0)
3269
3269
  return null;
3270
- const r = t.map(Fe).filter(qp);
3270
+ const r = t.map(Fe).filter(Zp);
3271
3271
  return r.length !== 1 ? null : r[0];
3272
3272
  }, Dp = ({
3273
3273
  url: e,
@@ -3288,17 +3288,17 @@ const zp = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textCont
3288
3288
  if (n.length !== 0)
3289
3289
  return n;
3290
3290
  };
3291
- var Je = /* @__PURE__ */ ((e) => (e.Book = "Book", e.Journal = "Journal", e.Periodical = "Periodical", e.PublicationVolume = "PublicationVolume", e.ScholarlyArticle = "ScholarlyArticle", e.VideoObject = "VideoObject", e.WebPage = "WebPage", e))(Je || {}), me = /* @__PURE__ */ ((e) => (e.Article = "article", e.Book = "book", e.Paper = "Paper", e.Video = "video.other", e.Website = "website", e))(me || {}), ae = /* @__PURE__ */ ((e) => (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))(ae || {});
3292
- const _s = k({
3291
+ var Je = /* @__PURE__ */ ((e) => (e.Book = "Book", e.Journal = "Journal", e.Periodical = "Periodical", e.PublicationVolume = "PublicationVolume", e.ScholarlyArticle = "ScholarlyArticle", e.VideoObject = "VideoObject", e.WebPage = "WebPage", e))(Je || {}), de = /* @__PURE__ */ ((e) => (e.Article = "article", e.Book = "book", e.Paper = "Paper", e.Video = "video.other", e.Website = "website", e))(de || {}), ae = /* @__PURE__ */ ((e) => (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))(ae || {});
3292
+ const _s = w({
3293
3293
  "@type": J(Je.ScholarlyArticle),
3294
3294
  author: j(
3295
- k({
3295
+ w({
3296
3296
  "@type": p(),
3297
3297
  name: p()
3298
3298
  })
3299
3299
  ).optional(),
3300
3300
  editor: j(
3301
- k({
3301
+ w({
3302
3302
  "@type": p(),
3303
3303
  name: p()
3304
3304
  })
@@ -3308,27 +3308,27 @@ const _s = k({
3308
3308
  issn: j(p()).optional(),
3309
3309
  pageStart: p().optional(),
3310
3310
  pageEnd: p().optional(),
3311
- isPartOf: k({
3311
+ isPartOf: w({
3312
3312
  "@type": pe([p(), j(p())]),
3313
3313
  name: p(),
3314
3314
  issn: j(p()).optional(),
3315
3315
  volumeNumber: p().optional(),
3316
3316
  isbn: j(p()).optional()
3317
3317
  }),
3318
- publisher: k({
3318
+ publisher: w({
3319
3319
  "@type": p(),
3320
3320
  name: p()
3321
3321
  }).optional()
3322
3322
  }), ys = (e) => _s.safeParse(e).success, Bp = we.extend({
3323
3323
  "@type": J(Je.WebPage),
3324
3324
  mainEntity: _s
3325
- }), Up = (e) => Bp.safeParse(e).success, Vp = k({
3325
+ }), Up = (e) => Bp.safeParse(e).success, Vp = w({
3326
3326
  "@type": j(p()),
3327
3327
  name: p().optional(),
3328
3328
  issn: j(p()),
3329
3329
  volumeNumber: p().optional()
3330
3330
  }), _n = (e) => Vp.safeParse(e).success, Fp = (e, t) => h(e, "name", "citation_issn") ?? h(e, "name", "prism.issn") ?? (ys(t.isPartOf) ? t.isPartOf.issn?.[0] : void 0), yn = (e, t) => {
3331
- const r = bs(t), n = h(e, "name", "citation_online_date"), o = vs(e), s = h(e, "name", "citation_issue"), i = Fp(e, t), a = _n(t.isPartOf) && t.isPartOf.issn.length > 0 ? t.isPartOf.issn[1] : void 0, c = t.pageStart, u = t.pageEnd, l = t.headline, f = t.isPartOf.name, m = _n(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
3331
+ const r = bs(t), n = h(e, "name", "citation_online_date"), o = vs(e), s = h(e, "name", "citation_issue"), i = Fp(e, t), a = _n(t.isPartOf) && t.isPartOf.issn.length > 0 ? t.isPartOf.issn[1] : void 0, c = t.pageStart, u = t.pageEnd, l = t.headline, f = t.isPartOf.name, d = _n(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
3332
3332
  return D(E.Article, {
3333
3333
  au: r,
3334
3334
  date: n,
@@ -3340,19 +3340,19 @@ const _s = k({
3340
3340
  epage: u,
3341
3341
  atitle: l,
3342
3342
  jtitle: f,
3343
- volume: m
3343
+ volume: d
3344
3344
  });
3345
3345
  }, Jp = we.extend({
3346
3346
  "@type": J(Je.Book),
3347
3347
  copyrightYear: p().optional(),
3348
3348
  author: j(
3349
- k({
3349
+ w({
3350
3350
  "@type": p(),
3351
3351
  name: p()
3352
3352
  })
3353
3353
  ).optional(),
3354
3354
  editor: j(
3355
- k({
3355
+ w({
3356
3356
  "@type": p(),
3357
3357
  name: p()
3358
3358
  })
@@ -3360,7 +3360,7 @@ const _s = k({
3360
3360
  isbn: p().optional(),
3361
3361
  name: p().optional(),
3362
3362
  numberOfPages: Vo().optional(),
3363
- publisher: k({
3363
+ publisher: w({
3364
3364
  "@type": p(),
3365
3365
  name: p()
3366
3366
  }).optional()
@@ -3398,18 +3398,18 @@ const _s = k({
3398
3398
  tpages: c,
3399
3399
  pub: u
3400
3400
  });
3401
- }, Xp = k({
3401
+ }, Xp = w({
3402
3402
  "@type": J("Periodical"),
3403
3403
  name: p(),
3404
3404
  url: p(),
3405
3405
  issn: j(p()),
3406
3406
  editor: j(
3407
- k({
3407
+ w({
3408
3408
  givenName: p(),
3409
3409
  familyName: p()
3410
3410
  })
3411
3411
  ),
3412
- publisher: k({
3412
+ publisher: w({
3413
3413
  name: p()
3414
3414
  }),
3415
3415
  description: p()
@@ -3424,7 +3424,7 @@ const _s = k({
3424
3424
  issn: o,
3425
3425
  pub: s
3426
3426
  });
3427
- }, Kp = k({
3427
+ }, Kp = w({
3428
3428
  "@type": J(Je.VideoObject),
3429
3429
  name: p().optional(),
3430
3430
  description: p().optional(),
@@ -3449,13 +3449,13 @@ const _s = k({
3449
3449
  });
3450
3450
  }, rh = (e, t) => {
3451
3451
  const r = h(t, "property", "og:type");
3452
- return r === me.Article && e.includes(ae.Article) ? y.Article : r === me.Book && (e.includes(ae.Book) || e.includes(ae.ReferenceWork)) ? y.Book : r === me.Paper && e.includes(ae.Chapter) ? y.Chapter : r === me.Paper && (e.includes(ae.ReferenceWorkEntry) || e.includes(ae.Protocol)) ? y.Article : r === me.Video && e.includes(ae.Video) ? y.AudioVisual : r === me.Website && (e.includes(ae.Collections) || e.includes(ae.JournalIssue)) ? y.Webpage : r === me.Website && e.includes(ae.Journal) ? y.Journal : y.None;
3453
- }, nh = (e, t, r) => e === y.AudioVisual && Qp(r) ? w(eh(t, r)) : e === y.Book && Mp(r) ? w(Gp(t, r)) : (e === y.Chapter || e === y.Article) && ys(r) ? w(yn(t, r)) : e === y.Article && Up(r) ? w(
3452
+ return r === de.Article && e.includes(ae.Article) ? y.Article : r === de.Book && (e.includes(ae.Book) || e.includes(ae.ReferenceWork)) ? y.Book : r === de.Paper && e.includes(ae.Chapter) ? y.Chapter : r === de.Paper && (e.includes(ae.ReferenceWorkEntry) || e.includes(ae.Protocol)) ? y.Article : r === de.Video && e.includes(ae.Video) ? y.AudioVisual : r === de.Website && (e.includes(ae.Collections) || e.includes(ae.JournalIssue)) ? y.Webpage : r === de.Website && e.includes(ae.Journal) ? y.Journal : y.None;
3453
+ }, nh = (e, t, r) => e === y.AudioVisual && Qp(r) ? R(eh(t, r)) : e === y.Book && Mp(r) ? R(Gp(t, r)) : (e === y.Chapter || e === y.Article) && ys(r) ? R(yn(t, r)) : e === y.Article && Up(r) ? R(
3454
3454
  yn(t, r.mainEntity)
3455
- ) : e === y.Journal && Hp(r) ? w(Yp(r)) : T(), oh = ({ url: e, document: t }) => {
3455
+ ) : e === y.Journal && Hp(r) ? R(Yp(r)) : T(), oh = ({ url: e, document: t }) => {
3456
3456
  const r = rh(e, t);
3457
3457
  if (r === y.Webpage)
3458
- return w(th(t));
3458
+ return R(th(t));
3459
3459
  const n = ct(t);
3460
3460
  if (!n)
3461
3461
  return T();
@@ -3469,7 +3469,23 @@ const _s = k({
3469
3469
  "Online ISSN",
3470
3470
  "Print ISSN"
3471
3471
  /* PrintIssn */
3472
- ]), En = (e, t) => {
3472
+ ]), ih = w({
3473
+ content: w({
3474
+ item: w({
3475
+ title: p(),
3476
+ "published-date": p()
3477
+ }),
3478
+ group: w({
3479
+ volume: p(),
3480
+ issue: p()
3481
+ }),
3482
+ series: w({
3483
+ title: p(),
3484
+ type: p(),
3485
+ eissn: p()
3486
+ })
3487
+ }).optional()
3488
+ }), En = (e, t) => {
3473
3489
  if (!e)
3474
3490
  return;
3475
3491
  const r = e.indexOf(t);
@@ -3478,9 +3494,22 @@ const _s = k({
3478
3494
  const r = /\d+/.exec(e);
3479
3495
  if (r?.[0])
3480
3496
  return r[0];
3481
- }, ih = (e) => {
3482
- const t = h(e, "property", "og:type");
3483
- return t === "Book" || t === "books.book" ? y.Book : t === "Chapter" ? y.Chapter : t === "Journal" ? y.Journal : t === "Article" ? y.Article : y.None;
3497
+ }, ah = (e) => {
3498
+ const t = e.querySelectorAll("script"), n = Array.from(t).find(
3499
+ (o) => o.textContent.includes("adobeDataLayerJson")
3500
+ )?.textContent.match(
3501
+ /var adobeDataLayerJson = (\{.*?});/s
3502
+ );
3503
+ if (!(!n || n.length !== 2))
3504
+ try {
3505
+ const o = JSON.parse(n[1]);
3506
+ return ih.parse(o);
3507
+ } catch {
3508
+ return;
3509
+ }
3510
+ }, ch = (e, t) => {
3511
+ const r = h(e, "property", "og:type"), n = t.includes("epdf");
3512
+ return r === "Book" || r === "books.book" ? y.Book : r === "Chapter" ? y.Chapter : r === "Journal" ? y.Journal : r === "Article" || n ? y.Article : y.None;
3484
3513
  }, ut = (e) => {
3485
3514
  const t = te(
3486
3515
  e,
@@ -3490,7 +3519,7 @@ const _s = k({
3490
3519
  e.querySelectorAll("#product-details-content .product-authors")
3491
3520
  ).map((o) => o.textContent).filter((o) => !!o), n = /* @__PURE__ */ new Set([...t, ...r]);
3492
3521
  return n.size > 0 ? [...n] : void 0;
3493
- }, ah = (e) => {
3522
+ }, uh = (e) => {
3494
3523
  const t = Array.from(
3495
3524
  e.querySelectorAll("#product-details-content .text-piped p")
3496
3525
  ).map((r) => r.textContent).find((r) => r.endsWith(" pages"));
@@ -3529,7 +3558,7 @@ const _s = k({
3529
3558
  ].filter((n) => !!n)
3530
3559
  );
3531
3560
  return r.size > 0 ? [...r].join(",") : void 0;
3532
- }, ch = (e) => {
3561
+ }, lh = (e) => {
3533
3562
  let t, r;
3534
3563
  const n = e.querySelector(
3535
3564
  ".cover-image__details div:first-of-type"
@@ -3539,8 +3568,40 @@ const _s = k({
3539
3568
  o.textContent && (t = br(o.textContent)), s.textContent && (r = br(s.textContent));
3540
3569
  }
3541
3570
  return { volume: t, issue: r };
3542
- }, uh = (e) => {
3543
- const t = lt(e), r = ut(e), n = h(e, "property", "og:title"), o = pt(e, t), s = zr(e, t), i = Es(e, t), a = ah(e);
3571
+ }, ph = (e) => {
3572
+ const r = Array.from(
3573
+ e.querySelectorAll(".authors .author")
3574
+ ).map((n) => n.textContent.trim().replace(",", "")).filter((n) => !!n);
3575
+ return r.length > 0 ? r : void 0;
3576
+ }, hh = (e) => {
3577
+ const t = Array.from(
3578
+ e.querySelectorAll(".details-section .details-entry")
3579
+ ), r = t.find(
3580
+ (i) => i.querySelector(".details-label")?.textContent.trim() === "ISSN"
3581
+ ), n = t.find(
3582
+ (i) => i.querySelector(".details-label")?.textContent.trim() === "eISSN"
3583
+ );
3584
+ let o, s;
3585
+ return r && (o = r.querySelector(".details-value")?.textContent.trim()), n && (s = n.querySelector(".details-value")?.textContent.trim()), {
3586
+ issn: o,
3587
+ eissn: s
3588
+ };
3589
+ }, fh = (e) => {
3590
+ if (!e?.content?.group)
3591
+ return { volume: void 0, issue: void 0 };
3592
+ const t = e.content.group.volume, r = e.content.group.issue;
3593
+ return r === "0" && t === "0" ? { volume: void 0, issue: void 0 } : { volume: t, issue: r };
3594
+ }, dh = (e) => {
3595
+ const n = Array.from(
3596
+ e.querySelectorAll(".details-section .details-entry")
3597
+ ).find(
3598
+ (i) => i.querySelector(".details-label")?.textContent.trim() === "Pages"
3599
+ )?.querySelector(".details-value")?.textContent.trim(), [o, s] = (n?.split("-") ?? [void 0, void 0]).map(
3600
+ (i) => i?.trim()
3601
+ );
3602
+ return o?.toLowerCase() === "n/a" && s?.toLowerCase() === "n/a" ? { spage: void 0, epage: void 0 } : { spage: o, epage: s };
3603
+ }, mh = (e) => {
3604
+ const t = lt(e), r = ut(e), n = h(e, "property", "og:title"), o = pt(e, t), s = zr(e, t), i = Es(e, t), a = uh(e);
3544
3605
  return Q(E.Book, {
3545
3606
  au: r,
3546
3607
  date: o,
@@ -3549,7 +3610,7 @@ const _s = k({
3549
3610
  pages: a,
3550
3611
  title: n
3551
3612
  });
3552
- }, lh = (e) => {
3613
+ }, gh = (e) => {
3553
3614
  const t = lt(e), r = ut(e), n = h(e, "name", "citation_book_title"), o = pt(e, t), s = zr(e, t), i = Es(e, t), a = h(e, "name", "citation_publisher"), c = h(e, "property", "og:title");
3554
3615
  return Q(E.Bookitem, {
3555
3616
  au: r,
@@ -3560,14 +3621,14 @@ const _s = k({
3560
3621
  pub: a,
3561
3622
  title: c
3562
3623
  });
3563
- }, ph = (e) => {
3624
+ }, vh = (e) => {
3564
3625
  const t = lt(e), r = ut(e), n = pt(e, t), o = t.get(
3565
3626
  "Online ISSN"
3566
3627
  /* OnlineIssn */
3567
3628
  ), s = t.get(
3568
3629
  "Print ISSN"
3569
3630
  /* PrintIssn */
3570
- ), i = h(e, "property", "og:title"), { volume: a, issue: c } = ch(e);
3631
+ ), i = h(e, "property", "og:title"), { volume: a, issue: c } = lh(e);
3571
3632
  return D(E.Journal, {
3572
3633
  au: r,
3573
3634
  date: n,
@@ -3577,34 +3638,39 @@ const _s = k({
3577
3638
  title: i,
3578
3639
  volume: a
3579
3640
  });
3580
- }, hh = (e) => {
3581
- const t = lt(e), r = ut(e), n = pt(e, t), o = zr(e, t), s = h(e, "name", "citation_issn"), i = h(e, "name", "citation_journal_title"), a = h(e, "property", "og:title");
3641
+ }, bh = (e) => {
3642
+ const t = lt(e), r = ah(e), n = ut(e) ?? ph(e), o = pt(e, t) ?? r?.content?.item["published-date"], s = zr(e, t), { issn: i, eissn: a } = hh(e), { volume: c, issue: u } = fh(r), l = h(e, "property", "og:title") ?? r?.content?.item.title, f = h(e, "name", "citation_journal_title") ?? r?.content?.series.title, { spage: d, epage: g } = dh(e);
3582
3643
  return D(E.Article, {
3583
- au: r,
3584
- date: n,
3585
- doi: o,
3586
- issn: s,
3587
- jtitle: i,
3588
- title: a
3644
+ au: n,
3645
+ date: o,
3646
+ doi: s,
3647
+ eissn: a,
3648
+ issn: i ?? h(e, "name", "citation_issn"),
3649
+ issue: u,
3650
+ jtitle: f,
3651
+ title: l,
3652
+ volume: c,
3653
+ spage: d,
3654
+ epage: g
3589
3655
  });
3590
- }, fh = ({ document: e }) => {
3591
- switch (ih(e)) {
3656
+ }, _h = ({ document: e, url: t }) => {
3657
+ switch (ch(e, t)) {
3592
3658
  case y.Book:
3593
- return w(uh(e));
3659
+ return R(mh(e));
3594
3660
  case y.Chapter:
3595
- return w(lh(e));
3661
+ return R(gh(e));
3596
3662
  case y.Journal:
3597
- return w(ph(e));
3663
+ return R(vh(e));
3598
3664
  case y.Article:
3599
- return w(hh(e));
3665
+ return R(bh(e));
3600
3666
  default:
3601
3667
  return T();
3602
3668
  }
3603
- }, mh = (e) => {
3669
+ }, yh = (e) => {
3604
3670
  const t = te(e, "name", "citation_author");
3605
3671
  return t.length > 0 ? t : void 0;
3606
- }, dh = ({ document: e }) => {
3607
- const t = mh(e), r = h(e, "name", "citation_publication_date"), n = h(e, "name", "citation_doi"), o = h(e, "name", "citation_isbn"), s = h(e, "name", "citation_publisher"), i = h(e, "name", "citation_title") ?? e.title, a = _e({
3672
+ }, Eh = ({ document: e }) => {
3673
+ const t = yh(e), r = h(e, "name", "citation_publication_date"), n = h(e, "name", "citation_doi"), o = h(e, "name", "citation_isbn"), s = h(e, "name", "citation_publisher"), i = h(e, "name", "citation_title") ?? e.title, a = _e({
3608
3674
  au: t,
3609
3675
  date: r,
3610
3676
  doi: n,
@@ -3612,8 +3678,8 @@ const _s = k({
3612
3678
  pub: s,
3613
3679
  title: i
3614
3680
  });
3615
- return w(a);
3616
- }, gh = ({
3681
+ return R(a);
3682
+ }, Sh = ({
3617
3683
  document: e
3618
3684
  }) => Array.from(e.querySelectorAll(".Z3988")).length <= 1 ? T() : Sl(), Lr = (e) => {
3619
3685
  if (!(!e || e.length === 0))
@@ -3627,38 +3693,38 @@ function Tr(e, t) {
3627
3693
  }).filter((n) => n);
3628
3694
  return Lr(r) ?? null;
3629
3695
  }
3630
- const je = (e, t) => Tr(e, [t])?.trim(), vh = (e) => {
3696
+ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
3631
3697
  const t = e.querySelector(
3632
3698
  ".content-meta-data__authors"
3633
3699
  )?.textContent;
3634
3700
  if (t)
3635
3701
  return t.split(/,\s+|\s+and\s+/).filter((r) => !!r);
3636
- }, bh = (e) => {
3702
+ }, Ah = (e) => {
3637
3703
  const t = Array.from(
3638
3704
  e.querySelectorAll('.tombstone-metadata [data-qa="item-authors"]')
3639
3705
  ).map((r) => r.textContent).filter((r) => !!r);
3640
3706
  return t.length ? t : void 0;
3641
- }, _h = (e) => {
3707
+ }, wh = (e) => {
3642
3708
  const t = Array.from(
3643
3709
  e.querySelectorAll(
3644
3710
  '.item-authors [data-qa="item-contributors"], .item-authors [data-qa="item-creators"]'
3645
3711
  )
3646
3712
  ).map((r) => r.textContent).filter((r) => !!r);
3647
3713
  return t.length ? t : void 0;
3648
- }, yh = (e) => {
3714
+ }, Rh = (e) => {
3649
3715
  const t = Array.from(
3650
3716
  e.querySelectorAll(".contrib-type-author .name")
3651
3717
  ).map((r) => r.textContent).filter((r) => !!r);
3652
3718
  return t.length ? t : void 0;
3653
3719
  }, Re = (e) => {
3654
3720
  const t = /* @__PURE__ */ new Set([
3655
- ..._h(e) ?? [],
3656
- ...vh(e) ?? [],
3657
- ...yh(e) ?? [],
3658
- ...bh(e) ?? []
3721
+ ...wh(e) ?? [],
3722
+ ...$h(e) ?? [],
3723
+ ...Rh(e) ?? [],
3724
+ ...Ah(e) ?? []
3659
3725
  ]);
3660
3726
  return t.size ? [...t] : void 0;
3661
- }, Ie = (e, t) => e.querySelector('[data-qa="published-date"]')?.textContent ?? e.querySelector(".summary-image")?.textContent ?? xe(t?.get("date")) ?? xe(t?.get("copyright date")) ?? xe(t?.get("published date")), Ss = (e) => {
3727
+ }, Ie = (e, t) => e.querySelector('[data-qa="published-date"]')?.textContent ?? e.querySelector(".summary-image")?.textContent ?? Oe(t?.get("date")) ?? Oe(t?.get("copyright date")) ?? Oe(t?.get("published date")), Ss = (e) => {
3662
3728
  const t = e.find((r) => r.startsWith("https://doi.org/"));
3663
3729
  if (t)
3664
3730
  return t.replace("https://doi.org/", "");
@@ -3666,7 +3732,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), vh = (e) => {
3666
3732
  const t = e.get("local identifier");
3667
3733
  if (t?.length)
3668
3734
  return Ss(t);
3669
- }, Eh = (e) => e.querySelector(".doi")?.getAttribute("href") ?? void 0, xe = (e) => {
3735
+ }, Ih = (e) => e.querySelector(".doi")?.getAttribute("href") ?? void 0, Oe = (e) => {
3670
3736
  if (e?.length)
3671
3737
  return e[0];
3672
3738
  }, ke = (e) => {
@@ -3678,24 +3744,24 @@ const je = (e, t) => Tr(e, [t])?.trim(), vh = (e) => {
3678
3744
  !r || !n.length || t.set(r, n);
3679
3745
  }), t;
3680
3746
  }, As = (e) => {
3681
- const t = ke(e), r = e.querySelector(".summary-journal"), n = Array.from(r?.childNodes ?? []), o = n[0]?.textContent ?? e.querySelector(".journal-link")?.textContent ?? void 0, s = n[2]?.textContent?.replace(/Published By:\s+?/i, "") ?? xe(t.get("publisher")) ?? e.querySelector(".publisher-link")?.textContent ?? void 0;
3747
+ const t = ke(e), r = e.querySelector(".summary-journal"), n = Array.from(r?.childNodes ?? []), o = n[0]?.textContent ?? e.querySelector(".journal-link")?.textContent ?? void 0, s = n[2]?.textContent?.replace(/Published By:\s+?/i, "") ?? Oe(t.get("publisher")) ?? e.querySelector(".publisher-link")?.textContent ?? void 0;
3682
3748
  return {
3683
3749
  pub: s && s.trim() !== "" ? s : void 0,
3684
3750
  jtitle: o && o.trim() !== "" ? o : void 0
3685
3751
  };
3686
- }, Sh = (e) => {
3752
+ }, kh = (e) => {
3687
3753
  const t = Tr(e, [
3688
3754
  '[data-qa="journal"]:first-child cite',
3689
3755
  '[data-qa="copyright-statement"] > cite',
3690
3756
  '[data-qa="collection-links"] mfe-content-details-pharos-link'
3691
3757
  ]);
3692
3758
  return t && t.trim() !== "" ? t : void 0;
3693
- }, ht = (e) => he(e.querySelector('[data-qa="page-count"]')?.textContent), Me = (e, t) => e.querySelector(".publisher-link")?.textContent ?? xe(t?.get("publisher")), ye = (e) => e.querySelector('[data-qa="item-title"]')?.textContent.trim() ?? e.querySelector("mfe-turnaway-pharos-heading")?.textContent.trim() ?? e.querySelector(".metadata mfe-toc-pharos-heading")?.textContent.trim() ?? e.querySelector(".journal_header-title")?.textContent.trim() ?? void 0, Ee = (e) => {
3759
+ }, ht = (e) => he(e.querySelector('[data-qa="page-count"]')?.textContent), Me = (e, t) => e.querySelector(".publisher-link")?.textContent ?? Oe(t?.get("publisher")), ye = (e) => e.querySelector('[data-qa="item-title"]')?.textContent.trim() ?? e.querySelector("mfe-turnaway-pharos-heading")?.textContent.trim() ?? e.querySelector(".metadata mfe-toc-pharos-heading")?.textContent.trim() ?? e.querySelector(".journal_header-title")?.textContent.trim() ?? void 0, Ee = (e) => {
3694
3760
  if (!URL.canParse(e))
3695
3761
  return;
3696
3762
  const t = new URL(e);
3697
3763
  return t.origin + t.pathname;
3698
- }, $h = (e) => {
3764
+ }, Ch = (e) => {
3699
3765
  const t = e.querySelector(
3700
3766
  ".ccda-container > :first-child"
3701
3767
  );
@@ -3706,7 +3772,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), vh = (e) => {
3706
3772
  s.startsWith("Volume") ? n = he(s) : s.startsWith("Issue") && (r = he(s));
3707
3773
  }
3708
3774
  return { issue: r, volume: n };
3709
- }, Ah = (e) => {
3775
+ }, Ph = (e) => {
3710
3776
  const t = e.querySelector('[data-qa="item-src-info"]')?.textContent ?? h(e, "property", "og:description") ?? h(e, "name", "description");
3711
3777
  if (!t)
3712
3778
  return {};
@@ -3714,7 +3780,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), vh = (e) => {
3714
3780
  t
3715
3781
  ), l = u ? u[1] : void 0;
3716
3782
  return { issue: s, volume: n, spage: a, epage: c, pages: l };
3717
- }, wh = (e) => {
3783
+ }, xh = (e) => {
3718
3784
  const t = Tr(e, [
3719
3785
  "mfe-turnaway-pharos-link",
3720
3786
  '[data-qa="item-src-info"]'
@@ -3726,12 +3792,12 @@ const je = (e, t) => Tr(e, [t])?.trim(), vh = (e) => {
3726
3792
  return s ? s[0] : void 0;
3727
3793
  });
3728
3794
  return Lr(n);
3729
- }, Rh = (e, t) => {
3730
- const r = ye(e), n = Re(e), o = Ie(e) ?? wh(e), s = As(e), i = s.jtitle ?? Sh(e) ?? void 0, a = s.pub, c = $h(e), u = Ah(e), l = c.issue ?? u.issue, f = c.volume ?? u.volume, m = ht(e) ?? u.pages, g = u.spage, C = u.epage, v = Ee(t), P = Ss(
3795
+ }, Oh = (e, t) => {
3796
+ const r = ye(e), n = Re(e), o = Ie(e) ?? xh(e), s = As(e), i = s.jtitle ?? kh(e) ?? void 0, a = s.pub, c = Ch(e), u = Ph(e), l = c.issue ?? u.issue, f = c.volume ?? u.volume, d = ht(e) ?? u.pages, g = u.spage, C = u.epage, v = Ee(t), P = Ss(
3731
3797
  Array.from(
3732
3798
  e.querySelector(".content-meta-data-stables")?.childNodes ?? []
3733
- ).map((Z) => Z.textContent ?? "")
3734
- ) ?? Eh(e);
3799
+ ).map((q) => q.textContent ?? "")
3800
+ ) ?? Ih(e);
3735
3801
  return D(E.Article, {
3736
3802
  atitle: r,
3737
3803
  au: n,
@@ -3740,13 +3806,13 @@ const je = (e, t) => Tr(e, [t])?.trim(), vh = (e) => {
3740
3806
  epage: C,
3741
3807
  issue: l,
3742
3808
  jtitle: i,
3743
- pages: m,
3809
+ pages: d,
3744
3810
  pub: a,
3745
3811
  spage: g,
3746
3812
  uri: v,
3747
3813
  volume: f
3748
3814
  });
3749
- }, Ih = (e, t) => {
3815
+ }, Nh = (e, t) => {
3750
3816
  const r = ke(e), n = Re(e), o = Ie(e, r), s = ye(e), i = Me(e, r), a = Ee(t);
3751
3817
  return _e({
3752
3818
  au: n,
@@ -3755,7 +3821,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), vh = (e) => {
3755
3821
  title: s,
3756
3822
  uri: a
3757
3823
  });
3758
- }, kh = (e, t) => {
3824
+ }, zh = (e, t) => {
3759
3825
  const r = ke(e), n = Re(e), o = ye(e), s = Ie(e), i = ht(e), a = Me(e, r), c = Ee(t), u = $s(r);
3760
3826
  return Q(E.Book, {
3761
3827
  au: n,
@@ -3766,10 +3832,10 @@ const je = (e, t) => Tr(e, [t])?.trim(), vh = (e) => {
3766
3832
  title: o,
3767
3833
  uri: c
3768
3834
  });
3769
- }, Ch = (e, t) => {
3835
+ }, Lh = (e, t) => {
3770
3836
  const r = ke(e), n = Re(e), o = ye(e), s = e.querySelector(".book-title-link")?.textContent ?? void 0, i = Ie(e, r), a = Array.from(
3771
3837
  e.querySelectorAll('[data-qa="book"] > span')
3772
- ).map((m) => m.textContent), c = ht(e), u = a.find((m) => m.includes("pp."))?.match(/(\d+)-(\d+)/) ?? void 0, l = Me(e, r), f = Ee(t);
3838
+ ).map((d) => d.textContent), c = ht(e), u = a.find((d) => d.includes("pp."))?.match(/(\d+)-(\d+)/) ?? void 0, l = Me(e, r), f = Ee(t);
3773
3839
  return Q(E.Bookitem, {
3774
3840
  atitle: o,
3775
3841
  au: n,
@@ -3781,7 +3847,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), vh = (e) => {
3781
3847
  spage: u?.[1],
3782
3848
  uri: f
3783
3849
  });
3784
- }, Ph = (e, t) => {
3850
+ }, Th = (e, t) => {
3785
3851
  const r = ke(e), n = Re(e), o = ye(e), s = Ie(e), i = ht(e), a = Me(e, r), c = Ee(t), u = $s(r);
3786
3852
  return Q(E.Document, {
3787
3853
  au: n,
@@ -3792,7 +3858,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), vh = (e) => {
3792
3858
  title: o,
3793
3859
  uri: c
3794
3860
  });
3795
- }, Oh = (e, t) => {
3861
+ }, qh = (e, t) => {
3796
3862
  const r = ke(e), n = Re(e), o = Ie(e, r), s = ye(e), i = Ee(t);
3797
3863
  return sl({
3798
3864
  au: n,
@@ -3800,7 +3866,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), vh = (e) => {
3800
3866
  title: s,
3801
3867
  uri: i
3802
3868
  });
3803
- }, xh = (e, t) => {
3869
+ }, Zh = (e, t) => {
3804
3870
  const { pub: r } = As(e), n = ye(e), o = e.querySelector(".eissn")?.textContent.replace(/EISSN\s+/, "").trim() ?? void 0, s = e.querySelector(".issn")?.textContent.replace(/ISSN\s+/, "").trim() ?? void 0, i = Ee(t);
3805
3871
  return D(E.Journal, {
3806
3872
  eissn: o,
@@ -3811,7 +3877,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), vh = (e) => {
3811
3877
  });
3812
3878
  };
3813
3879
  var oe = /* @__PURE__ */ ((e) => (e.Article = "journal article", e.Audio = "audio", e.Book = "book", e.Chapter = "book chapter", e.Document = "document", e.Image = "image", e.Journal = "journal", e.ResearchReport = "research report", e.Serial = "serial", e.Video = "video", e))(oe || {});
3814
- const Nh = (e, t) => {
3880
+ const jh = (e, t) => {
3815
3881
  const r = ke(e), n = Re(e), o = Ie(e, r), s = ye(e), i = Me(e, r), a = Ee(t);
3816
3882
  return _e({
3817
3883
  au: n,
@@ -3820,39 +3886,39 @@ const Nh = (e, t) => {
3820
3886
  title: s,
3821
3887
  uri: a
3822
3888
  });
3823
- }, zh = (e) => Object.values(oe).includes(e), Lh = (e) => {
3889
+ }, Dh = (e) => Object.values(oe).includes(e), Bh = (e) => {
3824
3890
  if (e.querySelector(".journal_header-title"))
3825
3891
  return oe.Journal;
3826
3892
  if (e.querySelector(".journal-link"))
3827
3893
  return oe.Article;
3828
3894
  const n = e.querySelector(".content-type > span")?.textContent.toLowerCase().trim() ?? e.querySelector(".content-meta-data-label")?.textContent.toLowerCase().trim();
3829
- return zh(n) ? n : null;
3830
- }, Th = (e, t) => {
3831
- switch (Lh(e)) {
3895
+ return Dh(n) ? n : null;
3896
+ }, Uh = (e, t) => {
3897
+ switch (Bh(e)) {
3832
3898
  case oe.Article:
3833
3899
  case oe.Serial:
3834
- return Rh(e, t);
3900
+ return Oh(e, t);
3835
3901
  case oe.Audio:
3836
- return Ih(e, t);
3902
+ return Nh(e, t);
3837
3903
  case oe.Book:
3838
- return kh(e, t);
3904
+ return zh(e, t);
3839
3905
  case oe.Chapter:
3840
3906
  case oe.ResearchReport:
3841
- return Ch(e, t);
3907
+ return Lh(e, t);
3842
3908
  case oe.Document:
3843
- return Ph(e, t);
3909
+ return Th(e, t);
3844
3910
  case oe.Image:
3845
- return Oh(e, t);
3911
+ return qh(e, t);
3846
3912
  case oe.Journal:
3847
- return xh(e, t);
3913
+ return Zh(e, t);
3848
3914
  case oe.Video:
3849
- return Nh(e, t);
3915
+ return jh(e, t);
3850
3916
  default:
3851
3917
  return null;
3852
3918
  }
3853
- }, Zh = ({ document: e, url: t }) => {
3854
- const r = Th(e, t);
3855
- return r ? w(r) : T();
3919
+ }, Vh = ({ document: e, url: t }) => {
3920
+ const r = Uh(e, t);
3921
+ return r ? R(r) : T();
3856
3922
  }, De = (e) => {
3857
3923
  if (e) {
3858
3924
  if (typeof e == "string")
@@ -3867,7 +3933,7 @@ const Nh = (e, t) => {
3867
3933
  const t = new Set(e.filter((r) => !!r));
3868
3934
  if (t.size !== 0)
3869
3935
  return [...t];
3870
- }, qh = (e) => {
3936
+ }, Fh = (e) => {
3871
3937
  const t = ws(e.mainEntity.creator);
3872
3938
  return t ? [t] : void 0;
3873
3939
  }, We = ({
@@ -3876,9 +3942,9 @@ const Nh = (e, t) => {
3876
3942
  }) => ({
3877
3943
  bibid: e,
3878
3944
  title: t
3879
- }), jh = (e, t) => {
3945
+ }), Jh = (e, t) => {
3880
3946
  const r = Qe(
3881
- ...(e && qh(e)) ?? [],
3947
+ ...(e && Fh(e)) ?? [],
3882
3948
  ...t.authors ?? []
3883
3949
  ), n = Qe(...t.eissns ?? []), o = Qe(
3884
3950
  e?.mainEntity.isbn ? Pr(e.mainEntity.isbn) : void 0,
@@ -3904,7 +3970,7 @@ const Nh = (e, t) => {
3904
3970
  title: e?.name ?? t.title,
3905
3971
  volume: e?.mainEntity.volumeNumber
3906
3972
  };
3907
- }, Dh = (e) => D(E.Article, {
3973
+ }, Mh = (e) => D(E.Article, {
3908
3974
  ...We(e),
3909
3975
  au: e.authors,
3910
3976
  doi: e.doi,
@@ -3916,12 +3982,12 @@ const Nh = (e, t) => {
3916
3982
  pub: e.publisher,
3917
3983
  spage: e.spage,
3918
3984
  volume: e.volume
3919
- }), Bh = (e) => _e({
3985
+ }), Wh = (e) => _e({
3920
3986
  ...We(e),
3921
3987
  au: e.authors,
3922
3988
  date: e.date,
3923
3989
  pub: e.publisher
3924
- }), Uh = (e) => Q(E.Book, {
3990
+ }), Gh = (e) => Q(E.Book, {
3925
3991
  ...We(e),
3926
3992
  au: e.authors,
3927
3993
  date: e.date,
@@ -3931,26 +3997,26 @@ const Nh = (e, t) => {
3931
3997
  isbn: e.isbn,
3932
3998
  pub: e.publisher,
3933
3999
  spage: e.spage
3934
- }), Vh = (e) => D(E.Journal, {
4000
+ }), Xh = (e) => D(E.Journal, {
3935
4001
  ...We(e),
3936
4002
  date: e.date,
3937
4003
  doi: e.doi,
3938
4004
  eissn: e.eissn,
3939
4005
  issn: e.issn,
3940
4006
  pub: e.publisher
3941
- }), Sn = k({
4007
+ }), Sn = w({
3942
4008
  "@type": J("Organization"),
3943
4009
  name: pe([p(), j(p())])
3944
- }), $n = k({
4010
+ }), $n = w({
3945
4011
  "@type": J("Person"),
3946
4012
  name: pe([p(), j(p())])
3947
- }), Fh = we.extend({
3948
- identifier: k({
4013
+ }), Hh = we.extend({
4014
+ identifier: w({
3949
4015
  "@type": p(),
3950
4016
  propertyID: p(),
3951
4017
  value: p()
3952
4018
  }),
3953
- mainEntity: k({
4019
+ mainEntity: w({
3954
4020
  "@type": p(),
3955
4021
  "@id": p(),
3956
4022
  creator: le(
@@ -3971,26 +4037,26 @@ const Nh = (e, t) => {
3971
4037
  volumeNumber: le(p())
3972
4038
  }),
3973
4039
  name: p()
3974
- }), Jh = (e) => {
4040
+ }), Yh = (e) => {
3975
4041
  const t = ct(e);
3976
4042
  if (!t)
3977
4043
  return null;
3978
- const r = Fe(t), n = Fh.safeParse(r);
4044
+ const r = Fe(t), n = Hh.safeParse(r);
3979
4045
  return n.success ? n.data : null;
3980
- }, Mh = (e) => _e({
4046
+ }, Kh = (e) => _e({
3981
4047
  ...We(e),
3982
4048
  au: e.authors,
3983
4049
  date: e.date,
3984
4050
  pub: e.publisher
3985
- }), Wh = /([0-9]{4}-[0-9]{1,2}-[0-9]{1,2}|[0-9]{4}-[0-9]{1,2}|[0-9]{4})/, An = /(E?ISBN|E?ISSN|DOI)\s*:\s*/g, Zr = (e) => `*:has([title*="${e}" i]) + .item-details-element-container prm-highlight`, Gh = (e) => {
4051
+ }), Qh = /([0-9]{4}-[0-9]{1,2}-[0-9]{1,2}|[0-9]{4}-[0-9]{1,2}|[0-9]{4})/, An = /(E?ISBN|E?ISSN|DOI)\s*:\s*/g, qr = (e) => `*:has([title*="${e}" i]) + .item-details-element-container prm-highlight`, ef = (e) => {
3986
4052
  if (!e)
3987
4053
  return;
3988
- const t = Wh.exec(e);
4054
+ const t = Qh.exec(e);
3989
4055
  if (t)
3990
4056
  return t.length > 1 ? t[1] : void 0;
3991
- }, Xh = (e) => {
4057
+ }, tf = (e) => {
3992
4058
  const t = Array.from(
3993
- e.querySelectorAll(Zr("Identifier"))
4059
+ e.querySelectorAll(qr("Identifier"))
3994
4060
  ), r = {};
3995
4061
  return t.map((n) => n.textContent).filter((n) => !!n).forEach((n) => {
3996
4062
  const o = [];
@@ -4005,17 +4071,17 @@ const Nh = (e, t) => {
4005
4071
  r[i] ??= [], r[i].push(n.substring(a, o[c + 1]?.index));
4006
4072
  });
4007
4073
  }), r;
4008
- }, Hh = (e) => Array.from(e.querySelectorAll(Zr("Author"))).filter(
4074
+ }, rf = (e) => Array.from(e.querySelectorAll(qr("Author"))).filter(
4009
4075
  (t) => !!t.textContent && t.parentElement !== null && t.parentElement.getAttribute("aria-hidden") !== "true"
4010
- ).map((t) => t.textContent.trim()), fe = (e, t) => e.querySelector(Zr(t))?.textContent.trim(), Yh = (e) => {
4011
- const t = fe(e, "Creation Date"), r = fe(e, "Edition"), n = fe(e, "Publication Date"), o = fe(e, "Is Part Of"), s = fe(e, "Publisher"), i = fe(e, "Title"), a = fe(e, "MMS ID") ?? fe(e, "Record ID"), c = Hh(e), u = Xh(e), [l] = o?.split(",") ?? [], f = Gh(n ?? t), m = [...u.isbn ?? [], ...u.eisbn ?? []].map((g) => Pr(g)).filter((g) => !!g);
4076
+ ).map((t) => t.textContent.trim()), fe = (e, t) => e.querySelector(qr(t))?.textContent.trim(), nf = (e) => {
4077
+ const t = fe(e, "Creation Date"), r = fe(e, "Edition"), n = fe(e, "Publication Date"), o = fe(e, "Is Part Of"), s = fe(e, "Publisher"), i = fe(e, "Title"), a = fe(e, "MMS ID") ?? fe(e, "Record ID"), c = rf(e), u = tf(e), [l] = o?.split(",") ?? [], f = ef(n ?? t), d = [...u.isbn ?? [], ...u.eisbn ?? []].map((g) => Pr(g)).filter((g) => !!g);
4012
4078
  return {
4013
4079
  authors: c,
4014
4080
  date: f,
4015
4081
  dois: u.doi,
4016
4082
  edition: r,
4017
4083
  eissns: u.eissn,
4018
- isbns: m,
4084
+ isbns: d,
4019
4085
  issns: u.issn,
4020
4086
  jtitle: l,
4021
4087
  lcn: a,
@@ -4024,33 +4090,33 @@ const Nh = (e, t) => {
4024
4090
  };
4025
4091
  };
4026
4092
  var Rs = /* @__PURE__ */ ((e) => (e.Article = "Article", e.Book = "Book", e.Periodical = "Periodical", e.Journal = "Journal", e.AudioCD = "Audio CD", e.CreativeWork = "CreativeWork", e.Movie = "Movie", e.Video = "Video", e))(Rs || {});
4027
- const Kh = (e) => Object.values(Rs).includes(e), Qh = (e, t) => {
4093
+ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4028
4094
  const r = t?.mainEntity["@type"] ?? e.querySelector(".media-content-type")?.textContent ?? void 0;
4029
- if (Kh(r))
4095
+ if (of(r))
4030
4096
  return r;
4031
- }, ef = ({ document: e }) => {
4032
- const t = Jh(e), r = Yh(e), n = jh(t, r);
4033
- switch (Qh(e, t)) {
4097
+ }, af = ({ document: e }) => {
4098
+ const t = Yh(e), r = nf(e), n = Jh(t, r);
4099
+ switch (sf(e, t)) {
4034
4100
  case "Article":
4035
- return w(Dh(n));
4101
+ return R(Mh(n));
4036
4102
  case "Book":
4037
- return w(Uh(n));
4103
+ return R(Gh(n));
4038
4104
  case "Periodical":
4039
4105
  case "Journal":
4040
- return w(Vh(n));
4106
+ return R(Xh(n));
4041
4107
  case "Audio CD":
4042
4108
  case "CreativeWork":
4043
- return w(Bh(n));
4109
+ return R(Wh(n));
4044
4110
  case "Movie":
4045
4111
  case "Video":
4046
- return w(Mh(n));
4112
+ return R(Kh(n));
4047
4113
  default:
4048
4114
  return T();
4049
4115
  }
4050
- }, tf = (e) => {
4116
+ }, cf = (e) => {
4051
4117
  const t = e.querySelectorAll('[id="Info"] > p'), n = Array.from(t).find((s) => s.textContent.includes("Document Type"))?.textContent, o = h(e, "name", "DC.identifier");
4052
4118
  return o?.startsWith("info:doi/") || n?.includes("Article") ? y.Article : o?.startsWith("urn:issn:") ? y.Journal : void 0;
4053
- }, rf = (e) => {
4119
+ }, uf = (e) => {
4054
4120
  const t = h(
4055
4121
  e,
4056
4122
  "name",
@@ -4062,34 +4128,34 @@ const Kh = (e) => Object.values(Rs).includes(e), Qh = (e, t) => {
4062
4128
  issue: o,
4063
4129
  pages: s
4064
4130
  };
4065
- }, nf = (e) => {
4131
+ }, lf = (e) => {
4066
4132
  const t = h(e, "name", "DC.identifier");
4067
4133
  return (t ? t.split("info:doi/") : null)?.[1] ?? void 0;
4068
- }, of = (e) => e.evaluate(
4134
+ }, pf = (e) => e.evaluate(
4069
4135
  '//*[@id="altLayoutPublisherLogo"]/p/a[1]',
4070
4136
  e,
4071
4137
  null,
4072
4138
  XPathResult.STRING_TYPE,
4073
4139
  null
4074
- ).stringValue, sf = (e) => {
4140
+ ).stringValue, hf = (e) => {
4075
4141
  const [t, r] = e ? e.trim().split("-") : [void 0, void 0], n = r?.replace(/\(\d+\)/, "").trim();
4076
4142
  return {
4077
4143
  spage: t,
4078
4144
  epage: n
4079
4145
  };
4080
- }, af = (e) => {
4146
+ }, ff = (e) => {
4081
4147
  const t = h(e, "name", "DCTERMS.issued");
4082
4148
  if (!t)
4083
4149
  return;
4084
4150
  const n = /\d{4}/.exec(t);
4085
4151
  return n ? n[0] : void 0;
4086
- }, cf = (e) => {
4087
- const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = af(e), o = rf(e), s = o.journalTitle?.trim(), i = o.volume?.trim(), a = o.issue?.trim(), c = o.pages ? sf(o.pages) : void 0, u = c?.spage, l = c?.epage, f = te(e, "name", "DC.creator"), m = nf(e);
4152
+ }, df = (e) => {
4153
+ const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = ff(e), o = uf(e), s = o.journalTitle?.trim(), i = o.volume?.trim(), a = o.issue?.trim(), c = o.pages ? hf(o.pages) : void 0, u = c?.spage, l = c?.epage, f = te(e, "name", "DC.creator"), d = lf(e);
4088
4154
  return D(E.Article, {
4089
4155
  au: f,
4090
4156
  jtitle: s,
4091
4157
  date: n,
4092
- doi: m,
4158
+ doi: d,
4093
4159
  issue: a,
4094
4160
  pub: r,
4095
4161
  spage: u,
@@ -4097,113 +4163,113 @@ const Kh = (e) => Object.values(Rs).includes(e), Qh = (e, t) => {
4097
4163
  atitle: t,
4098
4164
  volume: i
4099
4165
  });
4100
- }, uf = (e) => {
4101
- const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = of(e);
4166
+ }, mf = (e) => {
4167
+ const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = pf(e);
4102
4168
  return D(E.Journal, {
4103
4169
  issn: n,
4104
4170
  title: t,
4105
4171
  pub: r
4106
4172
  });
4107
- }, lf = ({
4173
+ }, gf = ({
4108
4174
  document: e
4109
4175
  }) => {
4110
- switch (tf(e)) {
4176
+ switch (cf(e)) {
4111
4177
  case y.Article:
4112
- return w(cf(e));
4178
+ return R(df(e));
4113
4179
  case y.Journal:
4114
- return w(uf(e));
4180
+ return R(mf(e));
4115
4181
  default:
4116
4182
  return T();
4117
4183
  }
4118
- }, pf = /^\d{4}-\d{3}[\dX]$/i, hf = (e) => pf.test(e), Is = (e) => {
4119
- const t = e.filter(hf);
4184
+ }, vf = /^\d{4}-\d{3}[\dX]$/i, bf = (e) => vf.test(e), Is = (e) => {
4185
+ const t = e.filter(bf);
4120
4186
  return t.length ? t : void 0;
4121
- }, qr = (e) => {
4187
+ }, Zr = (e) => {
4122
4188
  const t = te(e, "name", "citation_author");
4123
4189
  return t.length ? t : void 0;
4124
- }, jr = (e) => h(e, "name", "citation_publication_date")?.match(/^\d{4}/)?.[0], ff = (e) => h(e, "name", "citation_doi"), ks = (e) => {
4190
+ }, jr = (e) => h(e, "name", "citation_publication_date")?.match(/^\d{4}/)?.[0], _f = (e) => h(e, "name", "citation_doi"), ks = (e) => {
4125
4191
  const t = te(e, "name", "citation_isbn");
4126
4192
  return t.length ? t.join(",") : void 0;
4127
- }, Cs = (e) => Is(te(e, "name", "citation_issn")), Dr = (e) => h(e, "name", "citation_journal_title"), Br = (e) => h(e, "name", "citation_publisher"), ft = (e) => h(e, "name", "citation_title"), mf = (e) => h(e, "name", "citation_doi"), Ur = (e) => h(e, "name", "citation_firstpage"), Vr = (e) => h(e, "name", "citation_lastpage"), df = (e) => h(e, "name", "citation_issue"), gf = (e) => h(e, "name", "citation_volume"), vf = (e) => D(E.Article, {
4193
+ }, Cs = (e) => Is(te(e, "name", "citation_issn")), Dr = (e) => h(e, "name", "citation_journal_title"), Br = (e) => h(e, "name", "citation_publisher"), ft = (e) => h(e, "name", "citation_title"), yf = (e) => h(e, "name", "citation_doi"), Ur = (e) => h(e, "name", "citation_firstpage"), Vr = (e) => h(e, "name", "citation_lastpage"), Ef = (e) => h(e, "name", "citation_issue"), Sf = (e) => h(e, "name", "citation_volume"), $f = (e) => D(E.Article, {
4128
4194
  atitle: ft(e),
4129
- au: qr(e),
4195
+ au: Zr(e),
4130
4196
  date: jr(e),
4131
- doi: ff(e),
4197
+ doi: _f(e),
4132
4198
  issn: Cs(e)?.[0],
4133
- issue: df(e),
4199
+ issue: Ef(e),
4134
4200
  jtitle: Dr(e),
4135
4201
  pub: Br(e),
4136
- volume: gf(e),
4202
+ volume: Sf(e),
4137
4203
  spage: Ur(e),
4138
4204
  epage: Vr(e)
4139
- }), bf = (e) => Q(E.Bookitem, {
4205
+ }), Af = (e) => Q(E.Bookitem, {
4140
4206
  atitle: ft(e),
4141
- au: qr(e),
4207
+ au: Zr(e),
4142
4208
  btitle: Dr(e),
4143
4209
  date: jr(e),
4144
4210
  isbn: ks(e),
4145
4211
  pub: Br(e),
4146
4212
  spage: Ur(e),
4147
4213
  epage: Vr(e)
4148
- }), _f = (e) => il({
4214
+ }), wf = (e) => il({
4149
4215
  title: ft(e),
4150
- au: qr(e),
4216
+ au: Zr(e),
4151
4217
  date: jr(e),
4152
4218
  pub: Br(e),
4153
4219
  spage: Ur(e),
4154
4220
  epage: Vr(e)
4155
- }), Ps = (e) => !!e.isbn, yf = (e) => !!e.issn || e.type === "Article" && !!e.journalTitle || !Ps(e) && !!e.journalTitle, Ef = (e) => !!e.title, Sf = (e) => {
4221
+ }), Ps = (e) => !!e.isbn, Rf = (e) => !!e.issn || e.type === "Article" && !!e.journalTitle || !Ps(e) && !!e.journalTitle, If = (e) => !!e.title, kf = (e) => {
4156
4222
  const t = {
4157
- type: mf(e),
4223
+ type: yf(e),
4158
4224
  isbn: ks(e),
4159
4225
  issn: Cs(e),
4160
4226
  journalTitle: Dr(e),
4161
4227
  title: ft(e)
4162
4228
  };
4163
- return Ps(t) ? bf(e) : yf(t) ? vf(e) : Ef(t) ? _f(e) : null;
4164
- }, $f = ({ document: e }) => {
4165
- const t = Sf(e);
4166
- return t ? w(t) : T();
4167
- }, Af = k({
4229
+ return Ps(t) ? Af(e) : Rf(t) ? $f(e) : If(t) ? wf(e) : null;
4230
+ }, Cf = ({ document: e }) => {
4231
+ const t = kf(e);
4232
+ return t ? R(t) : T();
4233
+ }, Pf = w({
4168
4234
  "@content": p(),
4169
4235
  datePublished: p().optional(),
4170
- mainEntity: k({
4236
+ mainEntity: w({
4171
4237
  type: p().optional(),
4172
4238
  name: p().optional(),
4173
4239
  author: j(
4174
- k({
4240
+ w({
4175
4241
  name: p()
4176
4242
  })
4177
4243
  ).optional(),
4178
- publisher: k({
4244
+ publisher: w({
4179
4245
  type: p(),
4180
4246
  name: p()
4181
4247
  }).optional(),
4182
4248
  isbn: p().optional()
4183
4249
  })
4184
- }), wf = (e) => Af.safeParse(e).success, Rf = (e) => {
4250
+ }), xf = (e) => Pf.safeParse(e).success, Of = (e) => {
4185
4251
  const t = e.textContent;
4186
4252
  if (!t)
4187
4253
  return null;
4188
4254
  try {
4189
4255
  const r = JSON.parse(t);
4190
- if (wf(r))
4256
+ if (xf(r))
4191
4257
  return r;
4192
4258
  } catch {
4193
4259
  return null;
4194
4260
  }
4195
4261
  return null;
4196
- }, If = ({ document: e }) => {
4262
+ }, Nf = ({ document: e }) => {
4197
4263
  const t = ct(e);
4198
4264
  if (!t)
4199
4265
  return T();
4200
- const r = Rf(t);
4266
+ const r = Of(t);
4201
4267
  if (!r)
4202
4268
  return T();
4203
4269
  const n = r.mainEntity.type, o = r.mainEntity.author?.map((u) => u.name), s = r.datePublished?.substring(0, 4), i = r.mainEntity.name, a = r.mainEntity.isbn, c = r.mainEntity.publisher?.name;
4204
4270
  switch (n) {
4205
4271
  case "Book":
4206
- return w(
4272
+ return R(
4207
4273
  Q(E.Book, {
4208
4274
  au: o,
4209
4275
  date: s,
@@ -4215,21 +4281,21 @@ const Kh = (e) => Object.values(Rs).includes(e), Qh = (e, t) => {
4215
4281
  default:
4216
4282
  return T();
4217
4283
  }
4218
- }, kf = we.extend({
4284
+ }, zf = we.extend({
4219
4285
  "@type": p().optional(),
4220
4286
  name: p().optional(),
4221
4287
  copyrightYear: Vo().optional(),
4222
4288
  author: j(
4223
- k({
4289
+ w({
4224
4290
  name: p()
4225
4291
  })
4226
4292
  ).optional(),
4227
4293
  publisher: j(
4228
- k({
4294
+ w({
4229
4295
  name: p()
4230
4296
  })
4231
4297
  ).optional()
4232
- }), Cf = (e) => kf.safeParse(e).success, Pf = ({
4298
+ }), Lf = (e) => zf.safeParse(e).success, Tf = ({
4233
4299
  document: e,
4234
4300
  url: t
4235
4301
  }) => {
@@ -4237,12 +4303,12 @@ const Kh = (e) => Object.values(Rs).includes(e), Qh = (e, t) => {
4237
4303
  if (!r)
4238
4304
  return T();
4239
4305
  const n = Fe(r);
4240
- if (!n || !Cf(n))
4306
+ if (!n || !Lf(n))
4241
4307
  return T();
4242
4308
  const o = n["@type"], s = n.author?.map((l) => l.name), i = n.copyrightYear?.toString() ?? h(e, "property", "og:book:release_date"), a = n.name, c = Lr(n.publisher?.map((l) => l.name)), u = h(e, "property", "og:book:isbn");
4243
4309
  switch (o) {
4244
4310
  case "Book":
4245
- return w(
4311
+ return R(
4246
4312
  Q(E.Book, {
4247
4313
  au: s,
4248
4314
  date: i,
@@ -4255,15 +4321,15 @@ const Kh = (e) => Object.values(Rs).includes(e), Qh = (e, t) => {
4255
4321
  default:
4256
4322
  return T();
4257
4323
  }
4258
- }, Of = (e) => {
4324
+ }, qf = (e) => {
4259
4325
  const t = Array.from(e.querySelectorAll("a[rel=author]")).map((r) => r.textContent.trim()).filter(Boolean);
4260
4326
  return t.length ? t : void 0;
4261
- }, xf = (e) => {
4327
+ }, Zf = (e) => {
4262
4328
  const t = Array.from(e.querySelectorAll("strong")).filter((r) => r.textContent.startsWith("ISBN")).map((r) => r.nextElementSibling?.textContent.trim());
4263
4329
  if (t.length !== 0)
4264
4330
  return t[0]?.replace(/\s+/, ",");
4265
- }, Nf = ({ url: e, document: t }) => {
4266
- const r = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, n = Of(t), o = h(t, "property", "article:published_time"), s = xf(t), i = Q(E.Book, {
4331
+ }, jf = ({ url: e, document: t }) => {
4332
+ const r = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, n = qf(t), o = h(t, "property", "article:published_time"), s = Zf(t), i = Q(E.Book, {
4267
4333
  au: n,
4268
4334
  date: o?.substring(0, 4),
4269
4335
  isbn: s,
@@ -4271,32 +4337,32 @@ const Kh = (e) => Object.values(Rs).includes(e), Qh = (e, t) => {
4271
4337
  title: r,
4272
4338
  uri: e
4273
4339
  });
4274
- return w(i);
4275
- }, zf = ({
4340
+ return R(i);
4341
+ }, Df = ({
4276
4342
  document: e,
4277
4343
  url: t
4278
4344
  }) => {
4279
- switch (Lf(t)) {
4345
+ switch (Bf(t)) {
4280
4346
  case y.Chapter:
4281
- return w(Df(e));
4347
+ return R(Mf(e));
4282
4348
  case y.Book:
4283
- return w(Bf(e));
4349
+ return R(Wf(e));
4284
4350
  case y.Article:
4285
- return w(Tf(e));
4351
+ return R(Uf(e));
4286
4352
  case y.Journal:
4287
- return w(Zf(e));
4353
+ return R(Vf(e));
4288
4354
  default:
4289
4355
  return T();
4290
4356
  }
4291
- }, Lf = (e) => {
4357
+ }, Bf = (e) => {
4292
4358
  const { pathname: t } = new URL(e);
4293
4359
  return t.includes("/books/abs/") ? y.Chapter : t.includes("/books/") ? y.Book : /\/journals\/.+\/article\//.exec(t) != null ? y.Article : t.includes("/journals/") ? y.Journal : y.None;
4294
- }, Tf = (e) => {
4360
+ }, Uf = (e) => {
4295
4361
  const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_journal_title"), n = h(e, "name", "citation_doi"), o = h(e, "name", "citation_volume"), s = h(e, "name", "citation_issue"), i = h(e, "name", "citation_firstpage"), a = h(e, "name", "citation_lastpage"), c = h(
4296
4362
  e,
4297
4363
  "name",
4298
4364
  "citation_publication_date"
4299
- )?.substring(0, 4), u = h(e, "name", "citation_publisher"), l = Os(e), f = Is(
4365
+ )?.substring(0, 4), u = h(e, "name", "citation_publisher"), l = xs(e), f = Is(
4300
4366
  te(e, "name", "citation_issn")
4301
4367
  );
4302
4368
  return D(E.Article, {
@@ -4312,8 +4378,8 @@ const Kh = (e) => Object.values(Rs).includes(e), Qh = (e, t) => {
4312
4378
  date: c,
4313
4379
  pub: u
4314
4380
  });
4315
- }, Zf = (e) => {
4316
- const t = qf(e), r = jf(e), n = r.find(
4381
+ }, Vf = (e) => {
4382
+ const t = Ff(e), r = Jf(e), n = r.find(
4317
4383
  (a) => a.type === "Print"
4318
4384
  /* Print */
4319
4385
  ), o = r.find(
@@ -4325,7 +4391,7 @@ const Kh = (e) => Object.values(Rs).includes(e), Qh = (e, t) => {
4325
4391
  issn: s,
4326
4392
  eissn: i
4327
4393
  });
4328
- }, qf = (e) => e.querySelector("h1.title")?.textContent.trim() ?? void 0, jf = (e) => {
4394
+ }, Ff = (e) => e.querySelector("h1.title")?.textContent.trim() ?? void 0, Jf = (e) => {
4329
4395
  const r = Array.from(e.querySelectorAll("span.bold")).find(
4330
4396
  (s) => s.textContent.trim() === "ISSN:"
4331
4397
  ), n = /^([0-9]{4}-[0-9]{3}[0-9X]) \((Print|Online)\)/, o = [];
@@ -4333,7 +4399,7 @@ const Kh = (e) => Object.values(Rs).includes(e), Qh = (e, t) => {
4333
4399
  const a = i.textContent.trim(), c = n.exec(a);
4334
4400
  c && o.push({ value: c[1], type: c[2] });
4335
4401
  }), o;
4336
- }, Df = (e) => {
4402
+ }, Mf = (e) => {
4337
4403
  const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_inbook_title"), n = h(e, "name", "citation_doi"), o = h(
4338
4404
  e,
4339
4405
  "name",
@@ -4346,12 +4412,12 @@ const Kh = (e) => Object.values(Rs).includes(e), Qh = (e, t) => {
4346
4412
  date: o,
4347
4413
  pub: s
4348
4414
  });
4349
- }, Bf = (e) => {
4415
+ }, Wf = (e) => {
4350
4416
  const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_doi"), n = h(e, "name", "citation_isbn"), o = h(
4351
4417
  e,
4352
4418
  "name",
4353
4419
  "citation_publication_date"
4354
- )?.substring(0, 4), s = h(e, "name", "citation_publisher"), i = Os(e);
4420
+ )?.substring(0, 4), s = h(e, "name", "citation_publisher"), i = xs(e);
4355
4421
  return Q(E.Book, {
4356
4422
  title: t,
4357
4423
  au: i,
@@ -4360,10 +4426,10 @@ const Kh = (e) => Object.values(Rs).includes(e), Qh = (e, t) => {
4360
4426
  date: o,
4361
4427
  pub: s
4362
4428
  });
4363
- }, Os = (e) => {
4429
+ }, xs = (e) => {
4364
4430
  const t = te(e, "name", "citation_author");
4365
4431
  return t.length ? t : void 0;
4366
- }, Uf = (e) => {
4432
+ }, Gf = (e) => {
4367
4433
  switch (h(e, "property", "og:type")) {
4368
4434
  case "Article":
4369
4435
  return "Article";
@@ -4373,9 +4439,9 @@ const Kh = (e) => Object.values(Rs).includes(e), Qh = (e, t) => {
4373
4439
  return;
4374
4440
  }
4375
4441
  };
4376
- function Vf(e) {
4442
+ function Xf(e) {
4377
4443
  const t = h(e, "property", "og:title"), r = h(e, "name", "dc.Publisher"), n = h(e, "name", "publication_doi");
4378
- return w(
4444
+ return R(
4379
4445
  D(E.Journal, {
4380
4446
  jtitle: t,
4381
4447
  pub: r,
@@ -4383,9 +4449,9 @@ function Vf(e) {
4383
4449
  })
4384
4450
  );
4385
4451
  }
4386
- function Ff(e) {
4452
+ function Hf(e) {
4387
4453
  const t = h(e, "name", "dc.Title"), r = te(e, "name", "dc.Creator"), n = h(e, "name", "dc.Date")?.substring(0, 4), o = h(e, "name", "publication_doi"), s = h(e, "name", "citation_journal_title"), i = h(e, "name", "dc.Publisher");
4388
- return w(
4454
+ return R(
4389
4455
  D(E.Article, {
4390
4456
  atitle: t,
4391
4457
  au: r,
@@ -4396,16 +4462,16 @@ function Ff(e) {
4396
4462
  })
4397
4463
  );
4398
4464
  }
4399
- const Jf = ({ document: e }) => {
4400
- switch (Uf(e)) {
4465
+ const Yf = ({ document: e }) => {
4466
+ switch (Gf(e)) {
4401
4467
  case "Journal":
4402
- return Vf(e);
4468
+ return Xf(e);
4403
4469
  case "Article":
4404
- return Ff(e);
4470
+ return Hf(e);
4405
4471
  default:
4406
4472
  return T();
4407
4473
  }
4408
- }, Mf = (e) => {
4474
+ }, Kf = (e) => {
4409
4475
  if (!e)
4410
4476
  return;
4411
4477
  const [t, r] = e.trim().split("-");
@@ -4413,11 +4479,11 @@ const Jf = ({ document: e }) => {
4413
4479
  spage: t,
4414
4480
  epage: r
4415
4481
  };
4416
- }, Wf = (e) => {
4482
+ }, Qf = (e) => {
4417
4483
  const { pathname: t } = new URL(e);
4418
4484
  if (t.includes("/article/"))
4419
4485
  return y.Article;
4420
- }, Gf = (e) => {
4486
+ }, ed = (e) => {
4421
4487
  const t = h(e, "name", "DC.Source"), r = h(e, "name", "DC.Title"), n = te(e, "name", "DC.Creator.PersonalName"), o = h(e, "name", "DC.Source.ISSN"), s = h(e, "name", "citation_date")?.substring(
4422
4488
  0,
4423
4489
  4
@@ -4425,7 +4491,7 @@ const Jf = ({ document: e }) => {
4425
4491
  e,
4426
4492
  "name",
4427
4493
  "DC.Identifier.pageNumber"
4428
- ), l = u ? Mf(u) : void 0, f = l?.spage, m = l?.epage;
4494
+ ), l = u ? Kf(u) : void 0, f = l?.spage, d = l?.epage;
4429
4495
  return D(E.Article, {
4430
4496
  jtitle: t,
4431
4497
  atitle: r,
@@ -4433,20 +4499,20 @@ const Jf = ({ document: e }) => {
4433
4499
  issn: o,
4434
4500
  date: s,
4435
4501
  spage: f,
4436
- epage: m,
4502
+ epage: d,
4437
4503
  volume: i,
4438
4504
  issue: a,
4439
4505
  uri: c
4440
4506
  });
4441
- }, Xf = ({ document: e, url: t }) => {
4442
- switch (Wf(t)) {
4507
+ }, td = ({ document: e, url: t }) => {
4508
+ switch (Qf(t)) {
4443
4509
  case y.Article:
4444
- return w(Gf(e));
4510
+ return R(ed(e));
4445
4511
  default:
4446
4512
  return T();
4447
4513
  }
4448
- }, Hf = (e) => {
4449
- switch (Yf(e)) {
4514
+ }, rd = (e) => {
4515
+ switch (nd(e)) {
4450
4516
  case "eBook":
4451
4517
  return "Book";
4452
4518
  case "Reference":
@@ -4454,10 +4520,10 @@ const Jf = ({ document: e }) => {
4454
4520
  default:
4455
4521
  return;
4456
4522
  }
4457
- }, Yf = (e) => e.querySelector("#vol-contentType a")?.textContent ?? void 0;
4458
- function Kf(e, t) {
4459
- const r = xs(e), n = _r(e), o = Ns(e), s = zs(e), i = Ls(e), a = Ts(e), c = _r(e), u = t, { startPage: l, endPage: f } = Zs(e) ?? {};
4460
- return w(
4523
+ }, nd = (e) => e.querySelector("#vol-contentType a")?.textContent ?? void 0;
4524
+ function od(e, t) {
4525
+ const r = Os(e), n = _r(e), o = Ns(e), s = zs(e), i = Ls(e), a = Ts(e), c = _r(e), u = t, { startPage: l, endPage: f } = qs(e) ?? {};
4526
+ return R(
4461
4527
  Q(E.Book, {
4462
4528
  au: r,
4463
4529
  btitle: n,
@@ -4472,16 +4538,16 @@ function Kf(e, t) {
4472
4538
  })
4473
4539
  );
4474
4540
  }
4475
- function Qf(e, t) {
4476
- const r = xs(e), n = wn(e), o = _r(e), s = Ns(e), i = zs(e), a = Ls(e), c = Ts(e), u = wn(e), l = t, { startPage: f, endPage: m } = Zs(e) ?? {};
4477
- return w(
4541
+ function sd(e, t) {
4542
+ const r = Os(e), n = wn(e), o = _r(e), s = Ns(e), i = zs(e), a = Ls(e), c = Ts(e), u = wn(e), l = t, { startPage: f, endPage: d } = qs(e) ?? {};
4543
+ return R(
4478
4544
  Q(E.Book, {
4479
4545
  au: r,
4480
4546
  atitle: n,
4481
4547
  btitle: o,
4482
4548
  date: s,
4483
4549
  doi: i,
4484
- epage: m,
4550
+ epage: d,
4485
4551
  isbn: a,
4486
4552
  pub: c,
4487
4553
  spage: f,
@@ -4490,36 +4556,36 @@ function Qf(e, t) {
4490
4556
  })
4491
4557
  );
4492
4558
  }
4493
- const xs = (e) => {
4559
+ const Os = (e) => {
4494
4560
  const t = e.querySelectorAll(
4495
4561
  "div#article_author p.author-bio b"
4496
4562
  ), r = Array.from(t).map((n) => n.textContent).filter((n) => !!n).map((n) => n.trim());
4497
4563
  return r.length > 0 ? r : void 0;
4498
- }, Le = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, em = (e) => h(e, "property", "og:title"), _r = (e) => Le(e, "titlevalue") ?? em(e), wn = (e) => Le(e, "chapter-title-squid"), Ns = (e) => Le(e, "pubdate-squid"), zs = (e) => Le(e, "doi-squid"), Ls = (e) => Le(e, "isbn-squid"), Ts = (e) => Le(e, "pubname-squid"), Zs = (e) => {
4564
+ }, Le = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, id = (e) => h(e, "property", "og:title"), _r = (e) => Le(e, "titlevalue") ?? id(e), wn = (e) => Le(e, "chapter-title-squid"), Ns = (e) => Le(e, "pubdate-squid"), zs = (e) => Le(e, "doi-squid"), Ls = (e) => Le(e, "isbn-squid"), Ts = (e) => Le(e, "pubname-squid"), qs = (e) => {
4499
4565
  const t = e.querySelector("#pageRange")?.textContent ?? void 0;
4500
4566
  if (!t) return;
4501
4567
  const n = /(\d+)–(\d+)/.exec(t);
4502
4568
  if (n)
4503
4569
  return { startPage: n[1], endPage: n[2] };
4504
- }, tm = ({
4570
+ }, ad = ({
4505
4571
  document: e,
4506
4572
  url: t
4507
4573
  }) => {
4508
- switch (Hf(e)) {
4574
+ switch (rd(e)) {
4509
4575
  case "Book":
4510
- return Kf(e, t);
4576
+ return od(e, t);
4511
4577
  case "Chapter":
4512
- return Qf(e, t);
4578
+ return sd(e, t);
4513
4579
  default:
4514
4580
  return T();
4515
4581
  }
4516
- }, rm = (e, t) => e.evaluate(
4582
+ }, cd = (e, t) => e.evaluate(
4517
4583
  `//*[@class="singleRecord_view_label"][contains(text(), "${t}")]/following-sibling::*[@class="singleRecord_view_data"]`,
4518
4584
  e,
4519
4585
  null,
4520
4586
  XPathResult.STRING_TYPE
4521
- ).stringValue.toLowerCase().trim(), nm = (e) => {
4522
- switch (rm(e, "Medium")) {
4587
+ ).stringValue.toLowerCase().trim(), ud = (e) => {
4588
+ switch (cd(e, "Medium")) {
4523
4589
  case "book":
4524
4590
  case "e-book":
4525
4591
  return E.Book;
@@ -4528,16 +4594,16 @@ const xs = (e) => {
4528
4594
  default:
4529
4595
  return E.Unknown;
4530
4596
  }
4531
- }, om = (e) => {
4597
+ }, ld = (e) => {
4532
4598
  delete e.rft_id;
4533
- }, sm = (e) => {
4599
+ }, pd = (e) => {
4534
4600
  const t = Cr(e);
4535
4601
  if (Nr(t)) {
4536
- const r = nm(e.document);
4537
- t.resource.genre = r, om(t.resource);
4602
+ const r = ud(e.document);
4603
+ t.resource.genre = r, ld(t.resource);
4538
4604
  }
4539
4605
  return t;
4540
- }, im = (e) => {
4606
+ }, hd = (e) => {
4541
4607
  const t = h(e, "name", "type")?.toLowerCase(), r = h(e, "name", "og:type")?.toLowerCase(), n = h(
4542
4608
  e,
4543
4609
  "name",
@@ -4548,7 +4614,7 @@ const xs = (e) => {
4548
4614
  const o = h(e, "name", "twitter:title")?.trim(), s = h(e, "name", "description")?.trim();
4549
4615
  if (o || s)
4550
4616
  return y.Webpage;
4551
- }, am = (e) => {
4617
+ }, fd = (e) => {
4552
4618
  const t = h(e, "name", "DC.Title"), r = h(e, "name", "DC.Publisher"), n = h(e, "name", "DC.Date"), o = h(e, "name", "DC.Identifier"), s = h(e, "name", "citation_journal_title"), i = h(e, "name", "citation_volume"), a = h(e, "name", "citation_issn"), c = te(e, "name", "citation_author");
4553
4619
  return D(E.Article, {
4554
4620
  au: c,
@@ -4560,34 +4626,34 @@ const xs = (e) => {
4560
4626
  title: t,
4561
4627
  volume: i
4562
4628
  });
4563
- }, cm = (e, t) => {
4629
+ }, dd = (e, t) => {
4564
4630
  const r = h(t, "name", "twitter:title");
4565
4631
  return Ir({
4566
4632
  uri: e,
4567
4633
  title: r
4568
4634
  });
4569
- }, um = ({
4635
+ }, md = ({
4570
4636
  url: e,
4571
4637
  document: t
4572
4638
  }) => {
4573
- switch (im(t)) {
4639
+ switch (hd(t)) {
4574
4640
  case y.Article:
4575
- return w(am(t));
4641
+ return R(fd(t));
4576
4642
  case y.Webpage:
4577
- return w(cm(e, t));
4643
+ return R(dd(e, t));
4578
4644
  }
4579
4645
  return T();
4580
- }, lm = ({
4646
+ }, gd = ({
4581
4647
  document: e
4582
4648
  }) => Array.from(
4583
4649
  e.querySelectorAll(
4584
4650
  ".availability.documentSummaryAvailability.availabilityContent"
4585
4651
  )
4586
- ).length <= 1 ? T() : $l(), pm = /([0-9]{4})\s+at/;
4587
- function hm(e) {
4652
+ ).length <= 1 ? T() : $l(), vd = /([0-9]{4})\s+at/;
4653
+ function bd(e) {
4588
4654
  if (!e)
4589
4655
  return;
4590
- const t = pm.exec(e);
4656
+ const t = vd.exec(e);
4591
4657
  if (t && t.length > 1)
4592
4658
  return t[1];
4593
4659
  }
@@ -4596,7 +4662,7 @@ function Rn(e, t) {
4596
4662
  if (r.length !== 0)
4597
4663
  return r[0].textContent;
4598
4664
  }
4599
- function fm(e) {
4665
+ function _d(e) {
4600
4666
  const t = {};
4601
4667
  return Array.from(e.getElementsByTagName("li")).reduce(
4602
4668
  (r, n) => {
@@ -4606,39 +4672,39 @@ function fm(e) {
4606
4672
  t
4607
4673
  );
4608
4674
  }
4609
- function mm(e) {
4675
+ function yd(e) {
4610
4676
  const t = e.getElementsByClassName("information");
4611
4677
  if (t.length === 0)
4612
4678
  return {};
4613
- const r = fm(t[0]), n = hm(r.Published), o = r.Show;
4679
+ const r = _d(t[0]), n = bd(r.Published), o = r.Show;
4614
4680
  return {
4615
4681
  date: n,
4616
4682
  series: o
4617
4683
  };
4618
4684
  }
4619
- const dm = ({
4685
+ const Ed = ({
4620
4686
  url: e,
4621
4687
  document: t
4622
4688
  }) => {
4623
4689
  if (!new URL(e).searchParams.has("i"))
4624
4690
  return T();
4625
- const n = E.AudioDocument, o = h(t, "property", "og:site_name"), s = h(t, "property", "og:title"), i = mm(t);
4626
- return w({
4691
+ const n = E.AudioDocument, o = h(t, "property", "og:site_name"), s = h(t, "property", "og:title"), i = yd(t);
4692
+ return R({
4627
4693
  genre: n,
4628
4694
  pub: o,
4629
4695
  title: s,
4630
4696
  uri: e,
4631
4697
  ...i
4632
4698
  });
4633
- }, gm = (e) => {
4699
+ }, Sd = (e) => {
4634
4700
  const t = h(e, "name", "citation_date");
4635
4701
  return t ? t.split("/").find((o) => /^\d{4}/.test(o)) ?? void 0 : void 0;
4636
- }, vm = (e) => {
4702
+ }, $d = (e) => {
4637
4703
  const t = e.querySelector("#arxiv-doi-link")?.textContent;
4638
4704
  return t ? t.replace("https://doi.org/", "").trim() : void 0;
4639
- }, bm = ({ document: e }) => {
4640
- const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_pdf_url"), n = te(e, "name", "citation_author"), o = gm(e), s = vm(e);
4641
- return !t && n.length === 0 && !o && !s ? T() : w(
4705
+ }, Ad = ({ document: e }) => {
4706
+ const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_pdf_url"), n = te(e, "name", "citation_author"), o = Sd(e), s = $d(e);
4707
+ return !t && n.length === 0 && !o && !s ? T() : R(
4642
4708
  D(E.Article, {
4643
4709
  au: n,
4644
4710
  date: o,
@@ -4647,7 +4713,7 @@ const dm = ({
4647
4713
  uri: r
4648
4714
  })
4649
4715
  );
4650
- }, _m = (e) => {
4716
+ }, wd = (e) => {
4651
4717
  const t = je(
4652
4718
  e,
4653
4719
  "div.director-section div.term-info-section-items"
@@ -4656,7 +4722,7 @@ const dm = ({
4656
4722
  return;
4657
4723
  const r = t.split(",").map((n) => n.replace(/\s+/g, " ").trim()).filter((n) => n.length > 0);
4658
4724
  return r.length > 0 ? r : void 0;
4659
- }, ym = (e) => {
4725
+ }, Rd = (e) => {
4660
4726
  const t = /* @__PURE__ */ new Map();
4661
4727
  return Array.from(e.querySelectorAll(".info-section-container")).forEach(
4662
4728
  (r) => {
@@ -4669,61 +4735,61 @@ const dm = ({
4669
4735
  o.length && t.set(n, o);
4670
4736
  }
4671
4737
  ), t;
4672
- }, Em = ({
4738
+ }, Id = ({
4673
4739
  url: e,
4674
4740
  document: t
4675
4741
  }) => {
4676
- const r = ym(t), n = _m(t) ?? r.get("director"), o = je(t, "div.product-release-year"), s = je(
4742
+ const r = Rd(t), n = wd(t) ?? r.get("director"), o = je(t, "div.product-release-year"), s = je(
4677
4743
  t,
4678
4744
  "div.studio-section div.term-info-section-item"
4679
- ) ?? xe(r.get("supplier")), i = je(t, ".product-title") ?? je(t, ".movie-title"), a = _e({
4745
+ ) ?? Oe(r.get("supplier")), i = je(t, ".product-title") ?? je(t, ".movie-title"), a = _e({
4680
4746
  au: n,
4681
4747
  date: o,
4682
4748
  pub: s,
4683
4749
  title: i,
4684
4750
  uri: e
4685
4751
  });
4686
- return w(a);
4752
+ return R(a);
4687
4753
  };
4688
4754
  var L = /* @__PURE__ */ ((e) => (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))(L || {});
4689
4755
  const In = {
4690
- NoResourceFound: ms,
4756
+ NoResourceFound: ds,
4691
4757
  Z3988: Cr,
4692
- Z3988SearchResult: gh,
4693
- Amazon: xl,
4758
+ Z3988SearchResult: Sh,
4759
+ Amazon: Ol,
4694
4760
  CupOfJo: ep,
4695
- Jstor: Zh,
4761
+ Jstor: Vh,
4696
4762
  Youtube: Dp,
4697
- SagePub: dp,
4698
- SageVideo: dh,
4763
+ SagePub: mp,
4764
+ SageVideo: Eh,
4699
4765
  ScienceDirect: Ap,
4700
4766
  Springer: oh,
4701
- TaylorFrancis: Op,
4702
- Wiley: fh,
4767
+ TaylorFrancis: xp,
4768
+ Wiley: _h,
4703
4769
  VuFind: Tp,
4704
4770
  ClinicalKey: Jl,
4705
4771
  DOAJ: sp,
4706
- Primo: ef,
4707
- IngentaConnect: lf,
4708
- Ebscohost: $f,
4709
- OpenStax: If,
4710
- OpenTextbook: Pf,
4711
- Milne: Nf,
4712
- CambridgeJournalsOnline: zf,
4713
- AhaJournals: Jf,
4714
- Ijees: Xf,
4715
- BloomsburyCollections: tm,
4716
- HeritageCirqa: sm,
4717
- BritishMedicalJournal: um,
4718
- SummonSearchResult: lm,
4719
- ApplePodcasts: dm,
4720
- Arxiv: bm,
4721
- KanopyVideo: Em
4722
- }, Sm = "5.27.0", qs = () => Sm, $m = ["com.au", "com", "ca", "co.uk", "de", "fr", "nl"], Am = $m.flatMap((e) => [
4772
+ Primo: af,
4773
+ IngentaConnect: gf,
4774
+ Ebscohost: Cf,
4775
+ OpenStax: Nf,
4776
+ OpenTextbook: Tf,
4777
+ Milne: jf,
4778
+ CambridgeJournalsOnline: Df,
4779
+ AhaJournals: Yf,
4780
+ Ijees: td,
4781
+ BloomsburyCollections: ad,
4782
+ HeritageCirqa: pd,
4783
+ BritishMedicalJournal: md,
4784
+ SummonSearchResult: gd,
4785
+ ApplePodcasts: Ed,
4786
+ Arxiv: Ad,
4787
+ KanopyVideo: Id
4788
+ }, kd = "5.27.1", Zs = () => kd, Cd = ["com.au", "com", "ca", "co.uk", "de", "fr", "nl"], Pd = Cd.flatMap((e) => [
4723
4789
  `amazon.${e}`,
4724
4790
  `www.amazon.${e}`
4725
- ]), Od = {
4726
- version: qs(),
4791
+ ]), qm = {
4792
+ version: Zs(),
4727
4793
  siteRegistrations: [
4728
4794
  {
4729
4795
  matcher: {
@@ -4755,7 +4821,7 @@ const In = {
4755
4821
  parsers: [L.ScienceDirect]
4756
4822
  },
4757
4823
  {
4758
- matcher: { hostnames: Am },
4824
+ matcher: { hostnames: Pd },
4759
4825
  name: "Amazon",
4760
4826
  parsers: [L.Amazon]
4761
4827
  },
@@ -4928,27 +4994,27 @@ const In = {
4928
4994
  parsers: [L.KanopyVideo]
4929
4995
  }
4930
4996
  ]
4931
- }, js = k({
4997
+ }, js = w({
4932
4998
  hostnames: j(p()).min(1)
4933
- }), Ds = k({
4999
+ }), Ds = w({
4934
5000
  regexp: p()
4935
5001
  }), Bs = pe([
4936
5002
  js,
4937
5003
  Ds
4938
- ]), Us = k({
5004
+ ]), Us = w({
4939
5005
  matcher: Bs,
4940
5006
  name: p(),
4941
5007
  parsers: j(p()),
4942
5008
  libraryVersionRange: p().optional()
4943
- }), wm = k({
5009
+ }), xd = w({
4944
5010
  siteRegistrations: j(Us),
4945
5011
  version: p()
4946
- }), xd = (e) => wm.safeParse(e).success, Nd = (e) => Us.safeParse(e).success, zd = (e) => Bs.safeParse(e).success, Rm = (e) => Object.values(L).includes(e), Im = (e) => typeof e == "object" && e !== null, km = k({
5012
+ }), Zm = (e) => xd.safeParse(e).success, jm = (e) => Us.safeParse(e).success, Dm = (e) => Bs.safeParse(e).success, Od = (e) => Object.values(L).includes(e), Nd = (e) => typeof e == "object" && e !== null, zd = w({
4947
5013
  url: p(),
4948
- document: tl(Im)
4949
- }), Ld = (e) => km.safeParse(e).success;
5014
+ document: tl(Nd)
5015
+ }), Bm = (e) => zd.safeParse(e).success;
4950
5016
  var et = { exports: {} }, wt, kn;
4951
- function mt() {
5017
+ function dt() {
4952
5018
  if (kn) return wt;
4953
5019
  kn = 1;
4954
5020
  const e = "2.0.0", t = 256, r = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
@@ -4973,7 +5039,7 @@ function mt() {
4973
5039
  }, wt;
4974
5040
  }
4975
5041
  var Rt, Cn;
4976
- function dt() {
5042
+ function mt() {
4977
5043
  return Cn || (Cn = 1, Rt = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...t) => console.error("SEMVER", ...t) : () => {
4978
5044
  }), Rt;
4979
5045
  }
@@ -4984,36 +5050,36 @@ function Ge() {
4984
5050
  MAX_SAFE_COMPONENT_LENGTH: r,
4985
5051
  MAX_SAFE_BUILD_LENGTH: n,
4986
5052
  MAX_LENGTH: o
4987
- } = mt(), s = dt();
5053
+ } = dt(), s = mt();
4988
5054
  t = e.exports = {};
4989
5055
  const i = t.re = [], a = t.safeRe = [], c = t.src = [], u = t.safeSrc = [], l = t.t = {};
4990
5056
  let f = 0;
4991
- const m = "[a-zA-Z0-9-]", g = [
5057
+ const d = "[a-zA-Z0-9-]", g = [
4992
5058
  ["\\s", 1],
4993
5059
  ["\\d", o],
4994
- [m, n]
5060
+ [d, n]
4995
5061
  ], C = (P) => {
4996
- for (const [Z, H] of g)
4997
- P = P.split(`${Z}*`).join(`${Z}{0,${H}}`).split(`${Z}+`).join(`${Z}{1,${H}}`);
5062
+ for (const [q, H] of g)
5063
+ P = P.split(`${q}*`).join(`${q}{0,${H}}`).split(`${q}+`).join(`${q}{1,${H}}`);
4998
5064
  return P;
4999
- }, v = (P, Z, H) => {
5000
- const N = C(Z), B = f++;
5001
- s(P, B, Z), l[P] = B, c[B] = Z, u[B] = N, i[B] = new RegExp(Z, H ? "g" : void 0), a[B] = new RegExp(N, H ? "g" : void 0);
5065
+ }, v = (P, q, H) => {
5066
+ const N = C(q), B = f++;
5067
+ s(P, B, q), l[P] = B, c[B] = q, u[B] = N, i[B] = new RegExp(q, H ? "g" : void 0), a[B] = new RegExp(N, H ? "g" : void 0);
5002
5068
  };
5003
- v("NUMERICIDENTIFIER", "0|[1-9]\\d*"), v("NUMERICIDENTIFIERLOOSE", "\\d+"), v("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${m}*`), v("MAINVERSION", `(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`), v("MAINVERSIONLOOSE", `(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`), v("PRERELEASEIDENTIFIER", `(?:${c[l.NONNUMERICIDENTIFIER]}|${c[l.NUMERICIDENTIFIER]})`), v("PRERELEASEIDENTIFIERLOOSE", `(?:${c[l.NONNUMERICIDENTIFIER]}|${c[l.NUMERICIDENTIFIERLOOSE]})`), v("PRERELEASE", `(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`), v("PRERELEASELOOSE", `(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`), v("BUILDIDENTIFIER", `${m}+`), v("BUILD", `(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`), v("FULLPLAIN", `v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`), v("FULL", `^${c[l.FULLPLAIN]}$`), v("LOOSEPLAIN", `[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`), v("LOOSE", `^${c[l.LOOSEPLAIN]}$`), v("GTLT", "((?:<|>)?=?)"), v("XRANGEIDENTIFIERLOOSE", `${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), v("XRANGEIDENTIFIER", `${c[l.NUMERICIDENTIFIER]}|x|X|\\*`), v("XRANGEPLAIN", `[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`), v("XRANGEPLAINLOOSE", `[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`), v("XRANGE", `^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`), v("XRANGELOOSE", `^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`), v("COERCEPLAIN", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`), v("COERCE", `${c[l.COERCEPLAIN]}(?:$|[^\\d])`), v("COERCEFULL", c[l.COERCEPLAIN] + `(?:${c[l.PRERELEASE]})?(?:${c[l.BUILD]})?(?:$|[^\\d])`), v("COERCERTL", c[l.COERCE], !0), v("COERCERTLFULL", c[l.COERCEFULL], !0), v("LONETILDE", "(?:~>?)"), v("TILDETRIM", `(\\s*)${c[l.LONETILDE]}\\s+`, !0), t.tildeTrimReplace = "$1~", v("TILDE", `^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`), v("TILDELOOSE", `^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`), v("LONECARET", "(?:\\^)"), v("CARETTRIM", `(\\s*)${c[l.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", v("CARET", `^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`), v("CARETLOOSE", `^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`), v("COMPARATORLOOSE", `^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`), v("COMPARATOR", `^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`), v("COMPARATORTRIM", `(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`, !0), t.comparatorTrimReplace = "$1$2$3", v("HYPHENRANGE", `^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`), v("HYPHENRANGELOOSE", `^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`), v("STAR", "(<|>)?=?\\s*\\*"), v("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), v("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
5069
+ v("NUMERICIDENTIFIER", "0|[1-9]\\d*"), v("NUMERICIDENTIFIERLOOSE", "\\d+"), v("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${d}*`), v("MAINVERSION", `(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`), v("MAINVERSIONLOOSE", `(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`), v("PRERELEASEIDENTIFIER", `(?:${c[l.NONNUMERICIDENTIFIER]}|${c[l.NUMERICIDENTIFIER]})`), v("PRERELEASEIDENTIFIERLOOSE", `(?:${c[l.NONNUMERICIDENTIFIER]}|${c[l.NUMERICIDENTIFIERLOOSE]})`), v("PRERELEASE", `(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`), v("PRERELEASELOOSE", `(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`), v("BUILDIDENTIFIER", `${d}+`), v("BUILD", `(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`), v("FULLPLAIN", `v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`), v("FULL", `^${c[l.FULLPLAIN]}$`), v("LOOSEPLAIN", `[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`), v("LOOSE", `^${c[l.LOOSEPLAIN]}$`), v("GTLT", "((?:<|>)?=?)"), v("XRANGEIDENTIFIERLOOSE", `${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), v("XRANGEIDENTIFIER", `${c[l.NUMERICIDENTIFIER]}|x|X|\\*`), v("XRANGEPLAIN", `[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`), v("XRANGEPLAINLOOSE", `[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`), v("XRANGE", `^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`), v("XRANGELOOSE", `^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`), v("COERCEPLAIN", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`), v("COERCE", `${c[l.COERCEPLAIN]}(?:$|[^\\d])`), v("COERCEFULL", c[l.COERCEPLAIN] + `(?:${c[l.PRERELEASE]})?(?:${c[l.BUILD]})?(?:$|[^\\d])`), v("COERCERTL", c[l.COERCE], !0), v("COERCERTLFULL", c[l.COERCEFULL], !0), v("LONETILDE", "(?:~>?)"), v("TILDETRIM", `(\\s*)${c[l.LONETILDE]}\\s+`, !0), t.tildeTrimReplace = "$1~", v("TILDE", `^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`), v("TILDELOOSE", `^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`), v("LONECARET", "(?:\\^)"), v("CARETTRIM", `(\\s*)${c[l.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", v("CARET", `^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`), v("CARETLOOSE", `^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`), v("COMPARATORLOOSE", `^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`), v("COMPARATOR", `^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`), v("COMPARATORTRIM", `(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`, !0), t.comparatorTrimReplace = "$1$2$3", v("HYPHENRANGE", `^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`), v("HYPHENRANGELOOSE", `^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`), v("STAR", "(<|>)?=?\\s*\\*"), v("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), v("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
5004
5070
  })(et, et.exports)), et.exports;
5005
5071
  }
5006
- var It, On;
5072
+ var It, xn;
5007
5073
  function Fr() {
5008
- if (On) return It;
5009
- On = 1;
5074
+ if (xn) return It;
5075
+ xn = 1;
5010
5076
  const e = Object.freeze({ loose: !0 }), t = Object.freeze({});
5011
5077
  return It = (n) => n ? typeof n != "object" ? e : n : t, It;
5012
5078
  }
5013
- var kt, xn;
5079
+ var kt, On;
5014
5080
  function Vs() {
5015
- if (xn) return kt;
5016
- xn = 1;
5081
+ if (On) return kt;
5082
+ On = 1;
5017
5083
  const e = /^[0-9]+$/, t = (n, o) => {
5018
5084
  if (typeof n == "number" && typeof o == "number")
5019
5085
  return n === o ? 0 : n < o ? -1 : 1;
@@ -5029,7 +5095,7 @@ var Ct, Nn;
5029
5095
  function ne() {
5030
5096
  if (Nn) return Ct;
5031
5097
  Nn = 1;
5032
- const e = dt(), { MAX_LENGTH: t, MAX_SAFE_INTEGER: r } = mt(), { safeRe: n, t: o } = Ge(), s = Fr(), { compareIdentifiers: i } = Vs();
5098
+ const e = mt(), { MAX_LENGTH: t, MAX_SAFE_INTEGER: r } = dt(), { safeRe: n, t: o } = Ge(), s = Fr(), { compareIdentifiers: i } = Vs();
5033
5099
  class a {
5034
5100
  constructor(u, l) {
5035
5101
  if (l = s(l), u instanceof a) {
@@ -5052,13 +5118,13 @@ function ne() {
5052
5118
  throw new TypeError("Invalid minor version");
5053
5119
  if (this.patch > r || this.patch < 0)
5054
5120
  throw new TypeError("Invalid patch version");
5055
- f[4] ? this.prerelease = f[4].split(".").map((m) => {
5056
- if (/^[0-9]+$/.test(m)) {
5057
- const g = +m;
5121
+ f[4] ? this.prerelease = f[4].split(".").map((d) => {
5122
+ if (/^[0-9]+$/.test(d)) {
5123
+ const g = +d;
5058
5124
  if (g >= 0 && g < r)
5059
5125
  return g;
5060
5126
  }
5061
- return m;
5127
+ return d;
5062
5128
  }) : this.prerelease = [], this.build = f[5] ? f[5].split(".") : [], this.format();
5063
5129
  }
5064
5130
  format() {
@@ -5087,32 +5153,32 @@ function ne() {
5087
5153
  return 0;
5088
5154
  let l = 0;
5089
5155
  do {
5090
- const f = this.prerelease[l], m = u.prerelease[l];
5091
- if (e("prerelease compare", l, f, m), f === void 0 && m === void 0)
5156
+ const f = this.prerelease[l], d = u.prerelease[l];
5157
+ if (e("prerelease compare", l, f, d), f === void 0 && d === void 0)
5092
5158
  return 0;
5093
- if (m === void 0)
5159
+ if (d === void 0)
5094
5160
  return 1;
5095
5161
  if (f === void 0)
5096
5162
  return -1;
5097
- if (f === m)
5163
+ if (f === d)
5098
5164
  continue;
5099
- return i(f, m);
5165
+ return i(f, d);
5100
5166
  } while (++l);
5101
5167
  }
5102
5168
  compareBuild(u) {
5103
5169
  u instanceof a || (u = new a(u, this.options));
5104
5170
  let l = 0;
5105
5171
  do {
5106
- const f = this.build[l], m = u.build[l];
5107
- if (e("build compare", l, f, m), f === void 0 && m === void 0)
5172
+ const f = this.build[l], d = u.build[l];
5173
+ if (e("build compare", l, f, d), f === void 0 && d === void 0)
5108
5174
  return 0;
5109
- if (m === void 0)
5175
+ if (d === void 0)
5110
5176
  return 1;
5111
5177
  if (f === void 0)
5112
5178
  return -1;
5113
- if (f === m)
5179
+ if (f === d)
5114
5180
  continue;
5115
- return i(f, m);
5181
+ return i(f, d);
5116
5182
  } while (++l);
5117
5183
  }
5118
5184
  // preminor will bump the version up to the next minor release, and immediately
@@ -5122,8 +5188,8 @@ function ne() {
5122
5188
  if (!l && f === !1)
5123
5189
  throw new Error("invalid increment argument: identifier is empty");
5124
5190
  if (l) {
5125
- const m = `-${l}`.match(this.options.loose ? n[o.PRERELEASELOOSE] : n[o.PRERELEASE]);
5126
- if (!m || m[1] !== l)
5191
+ const d = `-${l}`.match(this.options.loose ? n[o.PRERELEASELOOSE] : n[o.PRERELEASE]);
5192
+ if (!d || d[1] !== l)
5127
5193
  throw new Error(`invalid identifier: ${l}`);
5128
5194
  }
5129
5195
  }
@@ -5159,9 +5225,9 @@ function ne() {
5159
5225
  // This probably shouldn't be used publicly.
5160
5226
  // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
5161
5227
  case "pre": {
5162
- const m = Number(f) ? 1 : 0;
5228
+ const d = Number(f) ? 1 : 0;
5163
5229
  if (this.prerelease.length === 0)
5164
- this.prerelease = [m];
5230
+ this.prerelease = [d];
5165
5231
  else {
5166
5232
  let g = this.prerelease.length;
5167
5233
  for (; --g >= 0; )
@@ -5169,11 +5235,11 @@ function ne() {
5169
5235
  if (g === -1) {
5170
5236
  if (l === this.prerelease.join(".") && f === !1)
5171
5237
  throw new Error("invalid increment argument: identifier already exists");
5172
- this.prerelease.push(m);
5238
+ this.prerelease.push(d);
5173
5239
  }
5174
5240
  }
5175
5241
  if (l) {
5176
- let g = [l, m];
5242
+ let g = [l, d];
5177
5243
  f === !1 && (g = [l]), i(this.prerelease[0], l) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = g) : this.prerelease = g;
5178
5244
  }
5179
5245
  break;
@@ -5203,30 +5269,30 @@ function Te() {
5203
5269
  }
5204
5270
  }, Pt;
5205
5271
  }
5206
- var Ot, Ln;
5207
- function Cm() {
5208
- if (Ln) return Ot;
5272
+ var xt, Ln;
5273
+ function Ld() {
5274
+ if (Ln) return xt;
5209
5275
  Ln = 1;
5210
5276
  const e = Te();
5211
- return Ot = (r, n) => {
5277
+ return xt = (r, n) => {
5212
5278
  const o = e(r, n);
5213
5279
  return o ? o.version : null;
5214
- }, Ot;
5280
+ }, xt;
5215
5281
  }
5216
- var xt, Tn;
5217
- function Pm() {
5218
- if (Tn) return xt;
5282
+ var Ot, Tn;
5283
+ function Td() {
5284
+ if (Tn) return Ot;
5219
5285
  Tn = 1;
5220
5286
  const e = Te();
5221
- return xt = (r, n) => {
5287
+ return Ot = (r, n) => {
5222
5288
  const o = e(r.trim().replace(/^[=v]+/, ""), n);
5223
5289
  return o ? o.version : null;
5224
- }, xt;
5290
+ }, Ot;
5225
5291
  }
5226
- var Nt, Zn;
5227
- function Om() {
5228
- if (Zn) return Nt;
5229
- Zn = 1;
5292
+ var Nt, qn;
5293
+ function qd() {
5294
+ if (qn) return Nt;
5295
+ qn = 1;
5230
5296
  const e = ne();
5231
5297
  return Nt = (r, n, o, s, i) => {
5232
5298
  typeof o == "string" && (i = s, s = o, o = void 0);
@@ -5240,10 +5306,10 @@ function Om() {
5240
5306
  }
5241
5307
  }, Nt;
5242
5308
  }
5243
- var zt, qn;
5244
- function xm() {
5245
- if (qn) return zt;
5246
- qn = 1;
5309
+ var zt, Zn;
5310
+ function Zd() {
5311
+ if (Zn) return zt;
5312
+ Zn = 1;
5247
5313
  const e = Te();
5248
5314
  return zt = (r, n) => {
5249
5315
  const o = e(r, null, !0), s = e(n, null, !0), i = o.compare(s);
@@ -5256,40 +5322,40 @@ function xm() {
5256
5322
  if (u.compareMain(c) === 0)
5257
5323
  return u.minor && !u.patch ? "minor" : "patch";
5258
5324
  }
5259
- const m = l ? "pre" : "";
5260
- return o.major !== s.major ? m + "major" : o.minor !== s.minor ? m + "minor" : o.patch !== s.patch ? m + "patch" : "prerelease";
5325
+ const d = l ? "pre" : "";
5326
+ return o.major !== s.major ? d + "major" : o.minor !== s.minor ? d + "minor" : o.patch !== s.patch ? d + "patch" : "prerelease";
5261
5327
  }, zt;
5262
5328
  }
5263
5329
  var Lt, jn;
5264
- function Nm() {
5330
+ function jd() {
5265
5331
  if (jn) return Lt;
5266
5332
  jn = 1;
5267
5333
  const e = ne();
5268
5334
  return Lt = (r, n) => new e(r, n).major, Lt;
5269
5335
  }
5270
5336
  var Tt, Dn;
5271
- function zm() {
5337
+ function Dd() {
5272
5338
  if (Dn) return Tt;
5273
5339
  Dn = 1;
5274
5340
  const e = ne();
5275
5341
  return Tt = (r, n) => new e(r, n).minor, Tt;
5276
5342
  }
5277
- var Zt, Bn;
5278
- function Lm() {
5279
- if (Bn) return Zt;
5343
+ var qt, Bn;
5344
+ function Bd() {
5345
+ if (Bn) return qt;
5280
5346
  Bn = 1;
5281
5347
  const e = ne();
5282
- return Zt = (r, n) => new e(r, n).patch, Zt;
5348
+ return qt = (r, n) => new e(r, n).patch, qt;
5283
5349
  }
5284
- var qt, Un;
5285
- function Tm() {
5286
- if (Un) return qt;
5350
+ var Zt, Un;
5351
+ function Ud() {
5352
+ if (Un) return Zt;
5287
5353
  Un = 1;
5288
5354
  const e = Te();
5289
- return qt = (r, n) => {
5355
+ return Zt = (r, n) => {
5290
5356
  const o = e(r, n);
5291
5357
  return o && o.prerelease.length ? o.prerelease : null;
5292
- }, qt;
5358
+ }, Zt;
5293
5359
  }
5294
5360
  var jt, Vn;
5295
5361
  function ce() {
@@ -5299,14 +5365,14 @@ function ce() {
5299
5365
  return jt = (r, n, o) => new e(r, o).compare(new e(n, o)), jt;
5300
5366
  }
5301
5367
  var Dt, Fn;
5302
- function Zm() {
5368
+ function Vd() {
5303
5369
  if (Fn) return Dt;
5304
5370
  Fn = 1;
5305
5371
  const e = ce();
5306
5372
  return Dt = (r, n, o) => e(n, r, o), Dt;
5307
5373
  }
5308
5374
  var Bt, Jn;
5309
- function qm() {
5375
+ function Fd() {
5310
5376
  if (Jn) return Bt;
5311
5377
  Jn = 1;
5312
5378
  const e = ce();
@@ -5323,14 +5389,14 @@ function Jr() {
5323
5389
  }, Ut;
5324
5390
  }
5325
5391
  var Vt, Wn;
5326
- function jm() {
5392
+ function Jd() {
5327
5393
  if (Wn) return Vt;
5328
5394
  Wn = 1;
5329
5395
  const e = Jr();
5330
5396
  return Vt = (r, n) => r.sort((o, s) => e(o, s, n)), Vt;
5331
5397
  }
5332
5398
  var Ft, Gn;
5333
- function Dm() {
5399
+ function Md() {
5334
5400
  if (Gn) return Ft;
5335
5401
  Gn = 1;
5336
5402
  const e = Jr();
@@ -5409,7 +5475,7 @@ function Ms() {
5409
5475
  }, Yt;
5410
5476
  }
5411
5477
  var Kt, ro;
5412
- function Bm() {
5478
+ function Wd() {
5413
5479
  if (ro) return Kt;
5414
5480
  ro = 1;
5415
5481
  const e = ne(), t = Te(), { safeRe: r, t: n } = Ge();
@@ -5431,12 +5497,12 @@ function Bm() {
5431
5497
  }
5432
5498
  if (a === null)
5433
5499
  return null;
5434
- const c = a[2], u = a[3] || "0", l = a[4] || "0", f = i.includePrerelease && a[5] ? `-${a[5]}` : "", m = i.includePrerelease && a[6] ? `+${a[6]}` : "";
5435
- return t(`${c}.${u}.${l}${f}${m}`, i);
5500
+ const c = a[2], u = a[3] || "0", l = a[4] || "0", f = i.includePrerelease && a[5] ? `-${a[5]}` : "", d = i.includePrerelease && a[6] ? `+${a[6]}` : "";
5501
+ return t(`${c}.${u}.${l}${f}${d}`, i);
5436
5502
  }, Kt;
5437
5503
  }
5438
5504
  var Qt, no;
5439
- function Um() {
5505
+ function Gd() {
5440
5506
  if (no) return Qt;
5441
5507
  no = 1;
5442
5508
  class e {
@@ -5470,21 +5536,21 @@ function ue() {
5470
5536
  oo = 1;
5471
5537
  const e = /\s+/g;
5472
5538
  class t {
5473
- constructor(b, R) {
5474
- if (R = o(R), b instanceof t)
5475
- return b.loose === !!R.loose && b.includePrerelease === !!R.includePrerelease ? b : new t(b.raw, R);
5539
+ constructor(b, I) {
5540
+ if (I = o(I), b instanceof t)
5541
+ return b.loose === !!I.loose && b.includePrerelease === !!I.includePrerelease ? b : new t(b.raw, I);
5476
5542
  if (b instanceof s)
5477
5543
  return this.raw = b.value, this.set = [[b]], this.formatted = void 0, this;
5478
- if (this.options = R, this.loose = !!R.loose, this.includePrerelease = !!R.includePrerelease, this.raw = b.trim().replace(e, " "), this.set = this.raw.split("||").map(($) => this.parseRange($.trim())).filter(($) => $.length), !this.set.length)
5544
+ if (this.options = I, this.loose = !!I.loose, this.includePrerelease = !!I.includePrerelease, this.raw = b.trim().replace(e, " "), this.set = this.raw.split("||").map(($) => this.parseRange($.trim())).filter(($) => $.length), !this.set.length)
5479
5545
  throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
5480
5546
  if (this.set.length > 1) {
5481
5547
  const $ = this.set[0];
5482
- if (this.set = this.set.filter((I) => !v(I[0])), this.set.length === 0)
5548
+ if (this.set = this.set.filter((k) => !v(k[0])), this.set.length === 0)
5483
5549
  this.set = [$];
5484
5550
  else if (this.set.length > 1) {
5485
- for (const I of this.set)
5486
- if (I.length === 1 && P(I[0])) {
5487
- this.set = [I];
5551
+ for (const k of this.set)
5552
+ if (k.length === 1 && P(k[0])) {
5553
+ this.set = [k];
5488
5554
  break;
5489
5555
  }
5490
5556
  }
@@ -5496,9 +5562,9 @@ function ue() {
5496
5562
  this.formatted = "";
5497
5563
  for (let b = 0; b < this.set.length; b++) {
5498
5564
  b > 0 && (this.formatted += "||");
5499
- const R = this.set[b];
5500
- for (let $ = 0; $ < R.length; $++)
5501
- $ > 0 && (this.formatted += " "), this.formatted += R[$].toString().trim();
5565
+ const I = this.set[b];
5566
+ for (let $ = 0; $ < I.length; $++)
5567
+ $ > 0 && (this.formatted += " "), this.formatted += I[$].toString().trim();
5502
5568
  }
5503
5569
  }
5504
5570
  return this.formatted;
@@ -5510,14 +5576,14 @@ function ue() {
5510
5576
  return this.range;
5511
5577
  }
5512
5578
  parseRange(b) {
5513
- const $ = ((this.options.includePrerelease && g) | (this.options.loose && C)) + ":" + b, I = n.get($);
5514
- if (I)
5515
- return I;
5516
- const A = this.options.loose, O = A ? c[u.HYPHENRANGELOOSE] : c[u.HYPHENRANGE];
5517
- b = b.replace(O, Et(this.options.includePrerelease)), i("hyphen replace", b), b = b.replace(c[u.COMPARATORTRIM], l), i("comparator trim", b), b = b.replace(c[u.TILDETRIM], f), i("tilde trim", b), b = b.replace(c[u.CARETTRIM], m), i("caret trim", b);
5518
- let q = b.split(" ").map((K) => H(K, this.options)).join(" ").split(/\s+/).map((K) => yt(K, this.options));
5519
- A && (q = q.filter((K) => (i("loose invalid filter", K, this.options), !!K.match(c[u.COMPARATORLOOSE])))), i("range list", q);
5520
- const z = /* @__PURE__ */ new Map(), V = q.map((K) => new s(K, this.options));
5579
+ const $ = ((this.options.includePrerelease && g) | (this.options.loose && C)) + ":" + b, k = n.get($);
5580
+ if (k)
5581
+ return k;
5582
+ const A = this.options.loose, x = A ? c[u.HYPHENRANGELOOSE] : c[u.HYPHENRANGE];
5583
+ b = b.replace(x, Et(this.options.includePrerelease)), i("hyphen replace", b), b = b.replace(c[u.COMPARATORTRIM], l), i("comparator trim", b), b = b.replace(c[u.TILDETRIM], f), i("tilde trim", b), b = b.replace(c[u.CARETTRIM], d), i("caret trim", b);
5584
+ let Z = b.split(" ").map((K) => H(K, this.options)).join(" ").split(/\s+/).map((K) => yt(K, this.options));
5585
+ A && (Z = Z.filter((K) => (i("loose invalid filter", K, this.options), !!K.match(c[u.COMPARATORLOOSE])))), i("range list", Z);
5586
+ const z = /* @__PURE__ */ new Map(), V = Z.map((K) => new s(K, this.options));
5521
5587
  for (const K of V) {
5522
5588
  if (v(K))
5523
5589
  return [K];
@@ -5527,10 +5593,10 @@ function ue() {
5527
5593
  const re = [...z.values()];
5528
5594
  return n.set($, re), re;
5529
5595
  }
5530
- intersects(b, R) {
5596
+ intersects(b, I) {
5531
5597
  if (!(b instanceof t))
5532
5598
  throw new TypeError("a Range is required");
5533
- return this.set.some(($) => Z($, R) && b.set.some((I) => Z(I, R) && $.every((A) => I.every((O) => A.intersects(O, R)))));
5599
+ return this.set.some(($) => q($, I) && b.set.some((k) => q(k, I) && $.every((A) => k.every((x) => A.intersects(x, I)))));
5534
5600
  }
5535
5601
  // if ANY of the sets match ALL of its comparators, then pass
5536
5602
  test(b) {
@@ -5542,58 +5608,58 @@ function ue() {
5542
5608
  } catch {
5543
5609
  return !1;
5544
5610
  }
5545
- for (let R = 0; R < this.set.length; R++)
5546
- if (St(this.set[R], b, this.options))
5611
+ for (let I = 0; I < this.set.length; I++)
5612
+ if (St(this.set[I], b, this.options))
5547
5613
  return !0;
5548
5614
  return !1;
5549
5615
  }
5550
5616
  }
5551
5617
  er = t;
5552
- const r = Um(), n = new r(), o = Fr(), s = vt(), i = dt(), a = ne(), {
5618
+ const r = Gd(), n = new r(), o = Fr(), s = vt(), i = mt(), a = ne(), {
5553
5619
  safeRe: c,
5554
5620
  t: u,
5555
5621
  comparatorTrimReplace: l,
5556
5622
  tildeTrimReplace: f,
5557
- caretTrimReplace: m
5558
- } = Ge(), { FLAG_INCLUDE_PRERELEASE: g, FLAG_LOOSE: C } = mt(), v = (_) => _.value === "<0.0.0-0", P = (_) => _.value === "", Z = (_, b) => {
5559
- let R = !0;
5623
+ caretTrimReplace: d
5624
+ } = Ge(), { FLAG_INCLUDE_PRERELEASE: g, FLAG_LOOSE: C } = dt(), v = (_) => _.value === "<0.0.0-0", P = (_) => _.value === "", q = (_, b) => {
5625
+ let I = !0;
5560
5626
  const $ = _.slice();
5561
- let I = $.pop();
5562
- for (; R && $.length; )
5563
- R = $.every((A) => I.intersects(A, b)), I = $.pop();
5564
- return R;
5565
- }, H = (_, b) => (_ = _.replace(c[u.BUILD], ""), i("comp", _, b), _ = F(_, b), i("caret", _), _ = B(_, b), i("tildes", _), _ = x(_, b), i("xrange", _), _ = _t(_, b), i("stars", _), _), N = (_) => !_ || _.toLowerCase() === "x" || _ === "*", B = (_, b) => _.trim().split(/\s+/).map((R) => Y(R, b)).join(" "), Y = (_, b) => {
5566
- const R = b.loose ? c[u.TILDELOOSE] : c[u.TILDE];
5567
- return _.replace(R, ($, I, A, O, q) => {
5568
- i("tilde", _, $, I, A, O, q);
5627
+ let k = $.pop();
5628
+ for (; I && $.length; )
5629
+ I = $.every((A) => k.intersects(A, b)), k = $.pop();
5630
+ return I;
5631
+ }, H = (_, b) => (_ = _.replace(c[u.BUILD], ""), i("comp", _, b), _ = F(_, b), i("caret", _), _ = B(_, b), i("tildes", _), _ = O(_, b), i("xrange", _), _ = _t(_, b), i("stars", _), _), N = (_) => !_ || _.toLowerCase() === "x" || _ === "*", B = (_, b) => _.trim().split(/\s+/).map((I) => Y(I, b)).join(" "), Y = (_, b) => {
5632
+ const I = b.loose ? c[u.TILDELOOSE] : c[u.TILDE];
5633
+ return _.replace(I, ($, k, A, x, Z) => {
5634
+ i("tilde", _, $, k, A, x, Z);
5569
5635
  let z;
5570
- return N(I) ? z = "" : N(A) ? z = `>=${I}.0.0 <${+I + 1}.0.0-0` : N(O) ? z = `>=${I}.${A}.0 <${I}.${+A + 1}.0-0` : q ? (i("replaceTilde pr", q), z = `>=${I}.${A}.${O}-${q} <${I}.${+A + 1}.0-0`) : z = `>=${I}.${A}.${O} <${I}.${+A + 1}.0-0`, i("tilde return", z), z;
5636
+ return N(k) ? z = "" : N(A) ? z = `>=${k}.0.0 <${+k + 1}.0.0-0` : N(x) ? z = `>=${k}.${A}.0 <${k}.${+A + 1}.0-0` : Z ? (i("replaceTilde pr", Z), z = `>=${k}.${A}.${x}-${Z} <${k}.${+A + 1}.0-0`) : z = `>=${k}.${A}.${x} <${k}.${+A + 1}.0-0`, i("tilde return", z), z;
5571
5637
  });
5572
- }, F = (_, b) => _.trim().split(/\s+/).map((R) => ee(R, b)).join(" "), ee = (_, b) => {
5638
+ }, F = (_, b) => _.trim().split(/\s+/).map((I) => ee(I, b)).join(" "), ee = (_, b) => {
5573
5639
  i("caret", _, b);
5574
- const R = b.loose ? c[u.CARETLOOSE] : c[u.CARET], $ = b.includePrerelease ? "-0" : "";
5575
- return _.replace(R, (I, A, O, q, z) => {
5576
- i("caret", _, I, A, O, q, z);
5640
+ const I = b.loose ? c[u.CARETLOOSE] : c[u.CARET], $ = b.includePrerelease ? "-0" : "";
5641
+ return _.replace(I, (k, A, x, Z, z) => {
5642
+ i("caret", _, k, A, x, Z, z);
5577
5643
  let V;
5578
- return N(A) ? V = "" : N(O) ? V = `>=${A}.0.0${$} <${+A + 1}.0.0-0` : N(q) ? A === "0" ? V = `>=${A}.${O}.0${$} <${A}.${+O + 1}.0-0` : V = `>=${A}.${O}.0${$} <${+A + 1}.0.0-0` : z ? (i("replaceCaret pr", z), A === "0" ? O === "0" ? V = `>=${A}.${O}.${q}-${z} <${A}.${O}.${+q + 1}-0` : V = `>=${A}.${O}.${q}-${z} <${A}.${+O + 1}.0-0` : V = `>=${A}.${O}.${q}-${z} <${+A + 1}.0.0-0`) : (i("no pr"), A === "0" ? O === "0" ? V = `>=${A}.${O}.${q}${$} <${A}.${O}.${+q + 1}-0` : V = `>=${A}.${O}.${q}${$} <${A}.${+O + 1}.0-0` : V = `>=${A}.${O}.${q} <${+A + 1}.0.0-0`), i("caret return", V), V;
5644
+ return N(A) ? V = "" : N(x) ? V = `>=${A}.0.0${$} <${+A + 1}.0.0-0` : N(Z) ? A === "0" ? V = `>=${A}.${x}.0${$} <${A}.${+x + 1}.0-0` : V = `>=${A}.${x}.0${$} <${+A + 1}.0.0-0` : z ? (i("replaceCaret pr", z), A === "0" ? x === "0" ? V = `>=${A}.${x}.${Z}-${z} <${A}.${x}.${+Z + 1}-0` : V = `>=${A}.${x}.${Z}-${z} <${A}.${+x + 1}.0-0` : V = `>=${A}.${x}.${Z}-${z} <${+A + 1}.0.0-0`) : (i("no pr"), A === "0" ? x === "0" ? V = `>=${A}.${x}.${Z}${$} <${A}.${x}.${+Z + 1}-0` : V = `>=${A}.${x}.${Z}${$} <${A}.${+x + 1}.0-0` : V = `>=${A}.${x}.${Z} <${+A + 1}.0.0-0`), i("caret return", V), V;
5579
5645
  });
5580
- }, x = (_, b) => (i("replaceXRanges", _, b), _.split(/\s+/).map((R) => Ze(R, b)).join(" ")), Ze = (_, b) => {
5646
+ }, O = (_, b) => (i("replaceXRanges", _, b), _.split(/\s+/).map((I) => qe(I, b)).join(" ")), qe = (_, b) => {
5581
5647
  _ = _.trim();
5582
- const R = b.loose ? c[u.XRANGELOOSE] : c[u.XRANGE];
5583
- return _.replace(R, ($, I, A, O, q, z) => {
5584
- i("xRange", _, $, I, A, O, q, z);
5585
- const V = N(A), re = V || N(O), K = re || N(q), qe = K;
5586
- return I === "=" && qe && (I = ""), z = b.includePrerelease ? "-0" : "", V ? I === ">" || I === "<" ? $ = "<0.0.0-0" : $ = "*" : I && qe ? (re && (O = 0), q = 0, I === ">" ? (I = ">=", re ? (A = +A + 1, O = 0, q = 0) : (O = +O + 1, q = 0)) : I === "<=" && (I = "<", re ? A = +A + 1 : O = +O + 1), I === "<" && (z = "-0"), $ = `${I + A}.${O}.${q}${z}`) : re ? $ = `>=${A}.0.0${z} <${+A + 1}.0.0-0` : K && ($ = `>=${A}.${O}.0${z} <${A}.${+O + 1}.0-0`), i("xRange return", $), $;
5648
+ const I = b.loose ? c[u.XRANGELOOSE] : c[u.XRANGE];
5649
+ return _.replace(I, ($, k, A, x, Z, z) => {
5650
+ i("xRange", _, $, k, A, x, Z, z);
5651
+ const V = N(A), re = V || N(x), K = re || N(Z), Ze = K;
5652
+ return k === "=" && Ze && (k = ""), z = b.includePrerelease ? "-0" : "", V ? k === ">" || k === "<" ? $ = "<0.0.0-0" : $ = "*" : k && Ze ? (re && (x = 0), Z = 0, k === ">" ? (k = ">=", re ? (A = +A + 1, x = 0, Z = 0) : (x = +x + 1, Z = 0)) : k === "<=" && (k = "<", re ? A = +A + 1 : x = +x + 1), k === "<" && (z = "-0"), $ = `${k + A}.${x}.${Z}${z}`) : re ? $ = `>=${A}.0.0${z} <${+A + 1}.0.0-0` : K && ($ = `>=${A}.${x}.0${z} <${A}.${+x + 1}.0-0`), i("xRange return", $), $;
5587
5653
  });
5588
- }, _t = (_, b) => (i("replaceStars", _, b), _.trim().replace(c[u.STAR], "")), yt = (_, b) => (i("replaceGTE0", _, b), _.trim().replace(c[b.includePrerelease ? u.GTE0PRE : u.GTE0], "")), Et = (_) => (b, R, $, I, A, O, q, z, V, re, K, qe) => (N($) ? R = "" : N(I) ? R = `>=${$}.0.0${_ ? "-0" : ""}` : N(A) ? R = `>=${$}.${I}.0${_ ? "-0" : ""}` : O ? R = `>=${R}` : R = `>=${R}${_ ? "-0" : ""}`, N(V) ? z = "" : N(re) ? z = `<${+V + 1}.0.0-0` : N(K) ? z = `<${V}.${+re + 1}.0-0` : qe ? z = `<=${V}.${re}.${K}-${qe}` : _ ? z = `<${V}.${re}.${+K + 1}-0` : z = `<=${z}`, `${R} ${z}`.trim()), St = (_, b, R) => {
5654
+ }, _t = (_, b) => (i("replaceStars", _, b), _.trim().replace(c[u.STAR], "")), yt = (_, b) => (i("replaceGTE0", _, b), _.trim().replace(c[b.includePrerelease ? u.GTE0PRE : u.GTE0], "")), Et = (_) => (b, I, $, k, A, x, Z, z, V, re, K, Ze) => (N($) ? I = "" : N(k) ? I = `>=${$}.0.0${_ ? "-0" : ""}` : N(A) ? I = `>=${$}.${k}.0${_ ? "-0" : ""}` : x ? I = `>=${I}` : I = `>=${I}${_ ? "-0" : ""}`, N(V) ? z = "" : N(re) ? z = `<${+V + 1}.0.0-0` : N(K) ? z = `<${V}.${+re + 1}.0-0` : Ze ? z = `<=${V}.${re}.${K}-${Ze}` : _ ? z = `<${V}.${re}.${+K + 1}-0` : z = `<=${z}`, `${I} ${z}`.trim()), St = (_, b, I) => {
5589
5655
  for (let $ = 0; $ < _.length; $++)
5590
5656
  if (!_[$].test(b))
5591
5657
  return !1;
5592
- if (b.prerelease.length && !R.includePrerelease) {
5658
+ if (b.prerelease.length && !I.includePrerelease) {
5593
5659
  for (let $ = 0; $ < _.length; $++)
5594
5660
  if (i(_[$].semver), _[$].semver !== s.ANY && _[$].semver.prerelease.length > 0) {
5595
- const I = _[$].semver;
5596
- if (I.major === b.major && I.minor === b.minor && I.patch === b.patch)
5661
+ const k = _[$].semver;
5662
+ if (k.major === b.major && k.minor === b.minor && k.patch === b.patch)
5597
5663
  return !0;
5598
5664
  }
5599
5665
  return !1;
@@ -5620,10 +5686,10 @@ function vt() {
5620
5686
  l = l.trim().split(/\s+/).join(" "), i("comparator", l, f), this.options = f, this.loose = !!f.loose, this.parse(l), this.semver === e ? this.value = "" : this.value = this.operator + this.semver.version, i("comp", this);
5621
5687
  }
5622
5688
  parse(l) {
5623
- const f = this.options.loose ? n[o.COMPARATORLOOSE] : n[o.COMPARATOR], m = l.match(f);
5624
- if (!m)
5689
+ const f = this.options.loose ? n[o.COMPARATORLOOSE] : n[o.COMPARATOR], d = l.match(f);
5690
+ if (!d)
5625
5691
  throw new TypeError(`Invalid comparator: ${l}`);
5626
- this.operator = m[1] !== void 0 ? m[1] : "", this.operator === "=" && (this.operator = ""), m[2] ? this.semver = new a(m[2], this.options.loose) : this.semver = e;
5692
+ this.operator = d[1] !== void 0 ? d[1] : "", this.operator === "=" && (this.operator = ""), d[2] ? this.semver = new a(d[2], this.options.loose) : this.semver = e;
5627
5693
  }
5628
5694
  toString() {
5629
5695
  return this.value;
@@ -5646,7 +5712,7 @@ function vt() {
5646
5712
  }
5647
5713
  }
5648
5714
  tr = t;
5649
- const r = Fr(), { safeRe: n, t: o } = Ge(), s = Ms(), i = dt(), a = ne(), c = ue();
5715
+ const r = Fr(), { safeRe: n, t: o } = Ge(), s = Ms(), i = mt(), a = ne(), c = ue();
5650
5716
  return tr;
5651
5717
  }
5652
5718
  var rr, io;
@@ -5664,14 +5730,14 @@ function bt() {
5664
5730
  }, rr;
5665
5731
  }
5666
5732
  var nr, ao;
5667
- function Vm() {
5733
+ function Xd() {
5668
5734
  if (ao) return nr;
5669
5735
  ao = 1;
5670
5736
  const e = ue();
5671
5737
  return nr = (r, n) => new e(r, n).set.map((o) => o.map((s) => s.value).join(" ").trim().split(" ")), nr;
5672
5738
  }
5673
5739
  var or, co;
5674
- function Fm() {
5740
+ function Hd() {
5675
5741
  if (co) return or;
5676
5742
  co = 1;
5677
5743
  const e = ne(), t = ue();
@@ -5688,7 +5754,7 @@ function Fm() {
5688
5754
  }, or;
5689
5755
  }
5690
5756
  var sr, uo;
5691
- function Jm() {
5757
+ function Yd() {
5692
5758
  if (uo) return sr;
5693
5759
  uo = 1;
5694
5760
  const e = ne(), t = ue();
@@ -5705,7 +5771,7 @@ function Jm() {
5705
5771
  }, sr;
5706
5772
  }
5707
5773
  var ir, lo;
5708
- function Mm() {
5774
+ function Kd() {
5709
5775
  if (lo) return ir;
5710
5776
  lo = 1;
5711
5777
  const e = ne(), t = ue(), r = gt();
@@ -5741,7 +5807,7 @@ function Mm() {
5741
5807
  }, ir;
5742
5808
  }
5743
5809
  var ar, po;
5744
- function Wm() {
5810
+ function Qd() {
5745
5811
  if (po) return ar;
5746
5812
  po = 1;
5747
5813
  const e = ue();
@@ -5758,15 +5824,15 @@ function Xr() {
5758
5824
  if (ho) return cr;
5759
5825
  ho = 1;
5760
5826
  const e = ne(), t = vt(), { ANY: r } = t, n = ue(), o = bt(), s = gt(), i = Mr(), a = Gr(), c = Wr();
5761
- return cr = (l, f, m, g) => {
5827
+ return cr = (l, f, d, g) => {
5762
5828
  l = new e(l, g), f = new n(f, g);
5763
- let C, v, P, Z, H;
5764
- switch (m) {
5829
+ let C, v, P, q, H;
5830
+ switch (d) {
5765
5831
  case ">":
5766
- C = s, v = a, P = i, Z = ">", H = ">=";
5832
+ C = s, v = a, P = i, q = ">", H = ">=";
5767
5833
  break;
5768
5834
  case "<":
5769
- C = i, v = c, P = s, Z = "<", H = "<=";
5835
+ C = i, v = c, P = s, q = "<", H = "<=";
5770
5836
  break;
5771
5837
  default:
5772
5838
  throw new TypeError('Must provide a hilo val of "<" or ">"');
@@ -5778,7 +5844,7 @@ function Xr() {
5778
5844
  let Y = null, F = null;
5779
5845
  if (B.forEach((ee) => {
5780
5846
  ee.semver === r && (ee = new t(">=0.0.0")), Y = Y || ee, F = F || ee, C(ee.semver, Y.semver, g) ? Y = ee : P(ee.semver, F.semver, g) && (F = ee);
5781
- }), Y.operator === Z || Y.operator === H || (!F.operator || F.operator === Z) && v(l, F.semver))
5847
+ }), Y.operator === q || Y.operator === H || (!F.operator || F.operator === q) && v(l, F.semver))
5782
5848
  return !1;
5783
5849
  if (F.operator === H && P(l, F.semver))
5784
5850
  return !1;
@@ -5787,138 +5853,138 @@ function Xr() {
5787
5853
  }, cr;
5788
5854
  }
5789
5855
  var ur, fo;
5790
- function Gm() {
5856
+ function em() {
5791
5857
  if (fo) return ur;
5792
5858
  fo = 1;
5793
5859
  const e = Xr();
5794
5860
  return ur = (r, n, o) => e(r, n, ">", o), ur;
5795
5861
  }
5796
5862
  var lr, mo;
5797
- function Xm() {
5863
+ function tm() {
5798
5864
  if (mo) return lr;
5799
5865
  mo = 1;
5800
5866
  const e = Xr();
5801
5867
  return lr = (r, n, o) => e(r, n, "<", o), lr;
5802
5868
  }
5803
5869
  var pr, go;
5804
- function Hm() {
5870
+ function rm() {
5805
5871
  if (go) return pr;
5806
5872
  go = 1;
5807
5873
  const e = ue();
5808
5874
  return pr = (r, n, o) => (r = new e(r, o), n = new e(n, o), r.intersects(n, o)), pr;
5809
5875
  }
5810
5876
  var hr, vo;
5811
- function Ym() {
5877
+ function nm() {
5812
5878
  if (vo) return hr;
5813
5879
  vo = 1;
5814
5880
  const e = bt(), t = ce();
5815
5881
  return hr = (r, n, o) => {
5816
5882
  const s = [];
5817
5883
  let i = null, a = null;
5818
- const c = r.sort((m, g) => t(m, g, o));
5819
- for (const m of c)
5820
- e(m, n, o) ? (a = m, i || (i = m)) : (a && s.push([i, a]), a = null, i = null);
5884
+ const c = r.sort((d, g) => t(d, g, o));
5885
+ for (const d of c)
5886
+ e(d, n, o) ? (a = d, i || (i = d)) : (a && s.push([i, a]), a = null, i = null);
5821
5887
  i && s.push([i, null]);
5822
5888
  const u = [];
5823
- for (const [m, g] of s)
5824
- m === g ? u.push(m) : !g && m === c[0] ? u.push("*") : g ? m === c[0] ? u.push(`<=${g}`) : u.push(`${m} - ${g}`) : u.push(`>=${m}`);
5889
+ for (const [d, g] of s)
5890
+ d === g ? u.push(d) : !g && d === c[0] ? u.push("*") : g ? d === c[0] ? u.push(`<=${g}`) : u.push(`${d} - ${g}`) : u.push(`>=${d}`);
5825
5891
  const l = u.join(" || "), f = typeof n.raw == "string" ? n.raw : String(n);
5826
5892
  return l.length < f.length ? l : n;
5827
5893
  }, hr;
5828
5894
  }
5829
5895
  var fr, bo;
5830
- function Km() {
5896
+ function om() {
5831
5897
  if (bo) return fr;
5832
5898
  bo = 1;
5833
- const e = ue(), t = vt(), { ANY: r } = t, n = bt(), o = ce(), s = (f, m, g = {}) => {
5834
- if (f === m)
5899
+ const e = ue(), t = vt(), { ANY: r } = t, n = bt(), o = ce(), s = (f, d, g = {}) => {
5900
+ if (f === d)
5835
5901
  return !0;
5836
- f = new e(f, g), m = new e(m, g);
5902
+ f = new e(f, g), d = new e(d, g);
5837
5903
  let C = !1;
5838
5904
  e: for (const v of f.set) {
5839
- for (const P of m.set) {
5840
- const Z = c(v, P, g);
5841
- if (C = C || Z !== null, Z)
5905
+ for (const P of d.set) {
5906
+ const q = c(v, P, g);
5907
+ if (C = C || q !== null, q)
5842
5908
  continue e;
5843
5909
  }
5844
5910
  if (C)
5845
5911
  return !1;
5846
5912
  }
5847
5913
  return !0;
5848
- }, i = [new t(">=0.0.0-0")], a = [new t(">=0.0.0")], c = (f, m, g) => {
5849
- if (f === m)
5914
+ }, i = [new t(">=0.0.0-0")], a = [new t(">=0.0.0")], c = (f, d, g) => {
5915
+ if (f === d)
5850
5916
  return !0;
5851
5917
  if (f.length === 1 && f[0].semver === r) {
5852
- if (m.length === 1 && m[0].semver === r)
5918
+ if (d.length === 1 && d[0].semver === r)
5853
5919
  return !0;
5854
5920
  g.includePrerelease ? f = i : f = a;
5855
5921
  }
5856
- if (m.length === 1 && m[0].semver === r) {
5922
+ if (d.length === 1 && d[0].semver === r) {
5857
5923
  if (g.includePrerelease)
5858
5924
  return !0;
5859
- m = a;
5925
+ d = a;
5860
5926
  }
5861
5927
  const C = /* @__PURE__ */ new Set();
5862
5928
  let v, P;
5863
- for (const x of f)
5864
- x.operator === ">" || x.operator === ">=" ? v = u(v, x, g) : x.operator === "<" || x.operator === "<=" ? P = l(P, x, g) : C.add(x.semver);
5929
+ for (const O of f)
5930
+ O.operator === ">" || O.operator === ">=" ? v = u(v, O, g) : O.operator === "<" || O.operator === "<=" ? P = l(P, O, g) : C.add(O.semver);
5865
5931
  if (C.size > 1)
5866
5932
  return null;
5867
- let Z;
5933
+ let q;
5868
5934
  if (v && P) {
5869
- if (Z = o(v.semver, P.semver, g), Z > 0)
5935
+ if (q = o(v.semver, P.semver, g), q > 0)
5870
5936
  return null;
5871
- if (Z === 0 && (v.operator !== ">=" || P.operator !== "<="))
5937
+ if (q === 0 && (v.operator !== ">=" || P.operator !== "<="))
5872
5938
  return null;
5873
5939
  }
5874
- for (const x of C) {
5875
- if (v && !n(x, String(v), g) || P && !n(x, String(P), g))
5940
+ for (const O of C) {
5941
+ if (v && !n(O, String(v), g) || P && !n(O, String(P), g))
5876
5942
  return null;
5877
- for (const Ze of m)
5878
- if (!n(x, String(Ze), g))
5943
+ for (const qe of d)
5944
+ if (!n(O, String(qe), g))
5879
5945
  return !1;
5880
5946
  return !0;
5881
5947
  }
5882
5948
  let H, N, B, Y, F = P && !g.includePrerelease && P.semver.prerelease.length ? P.semver : !1, ee = v && !g.includePrerelease && v.semver.prerelease.length ? v.semver : !1;
5883
5949
  F && F.prerelease.length === 1 && P.operator === "<" && F.prerelease[0] === 0 && (F = !1);
5884
- for (const x of m) {
5885
- if (Y = Y || x.operator === ">" || x.operator === ">=", B = B || x.operator === "<" || x.operator === "<=", v) {
5886
- if (ee && x.semver.prerelease && x.semver.prerelease.length && x.semver.major === ee.major && x.semver.minor === ee.minor && x.semver.patch === ee.patch && (ee = !1), x.operator === ">" || x.operator === ">=") {
5887
- if (H = u(v, x, g), H === x && H !== v)
5950
+ for (const O of d) {
5951
+ if (Y = Y || O.operator === ">" || O.operator === ">=", B = B || O.operator === "<" || O.operator === "<=", v) {
5952
+ if (ee && O.semver.prerelease && O.semver.prerelease.length && O.semver.major === ee.major && O.semver.minor === ee.minor && O.semver.patch === ee.patch && (ee = !1), O.operator === ">" || O.operator === ">=") {
5953
+ if (H = u(v, O, g), H === O && H !== v)
5888
5954
  return !1;
5889
- } else if (v.operator === ">=" && !n(v.semver, String(x), g))
5955
+ } else if (v.operator === ">=" && !n(v.semver, String(O), g))
5890
5956
  return !1;
5891
5957
  }
5892
5958
  if (P) {
5893
- if (F && x.semver.prerelease && x.semver.prerelease.length && x.semver.major === F.major && x.semver.minor === F.minor && x.semver.patch === F.patch && (F = !1), x.operator === "<" || x.operator === "<=") {
5894
- if (N = l(P, x, g), N === x && N !== P)
5959
+ if (F && O.semver.prerelease && O.semver.prerelease.length && O.semver.major === F.major && O.semver.minor === F.minor && O.semver.patch === F.patch && (F = !1), O.operator === "<" || O.operator === "<=") {
5960
+ if (N = l(P, O, g), N === O && N !== P)
5895
5961
  return !1;
5896
- } else if (P.operator === "<=" && !n(P.semver, String(x), g))
5962
+ } else if (P.operator === "<=" && !n(P.semver, String(O), g))
5897
5963
  return !1;
5898
5964
  }
5899
- if (!x.operator && (P || v) && Z !== 0)
5965
+ if (!O.operator && (P || v) && q !== 0)
5900
5966
  return !1;
5901
5967
  }
5902
- return !(v && B && !P && Z !== 0 || P && Y && !v && Z !== 0 || ee || F);
5903
- }, u = (f, m, g) => {
5968
+ return !(v && B && !P && q !== 0 || P && Y && !v && q !== 0 || ee || F);
5969
+ }, u = (f, d, g) => {
5904
5970
  if (!f)
5905
- return m;
5906
- const C = o(f.semver, m.semver, g);
5907
- return C > 0 ? f : C < 0 || m.operator === ">" && f.operator === ">=" ? m : f;
5908
- }, l = (f, m, g) => {
5971
+ return d;
5972
+ const C = o(f.semver, d.semver, g);
5973
+ return C > 0 ? f : C < 0 || d.operator === ">" && f.operator === ">=" ? d : f;
5974
+ }, l = (f, d, g) => {
5909
5975
  if (!f)
5910
- return m;
5911
- const C = o(f.semver, m.semver, g);
5912
- return C < 0 ? f : C > 0 || m.operator === "<" && f.operator === "<=" ? m : f;
5976
+ return d;
5977
+ const C = o(f.semver, d.semver, g);
5978
+ return C < 0 ? f : C > 0 || d.operator === "<" && f.operator === "<=" ? d : f;
5913
5979
  };
5914
5980
  return fr = s, fr;
5915
5981
  }
5916
- var mr, _o;
5917
- function Qm() {
5918
- if (_o) return mr;
5982
+ var dr, _o;
5983
+ function sm() {
5984
+ if (_o) return dr;
5919
5985
  _o = 1;
5920
- const e = Ge(), t = mt(), r = ne(), n = Vs(), o = Te(), s = Cm(), i = Pm(), a = Om(), c = xm(), u = Nm(), l = zm(), f = Lm(), m = Tm(), g = ce(), C = Zm(), v = qm(), P = Jr(), Z = jm(), H = Dm(), N = gt(), B = Mr(), Y = Fs(), F = Js(), ee = Wr(), x = Gr(), Ze = Ms(), _t = Bm(), yt = vt(), Et = ue(), St = bt(), _ = Vm(), b = Fm(), R = Jm(), $ = Mm(), I = Wm(), A = Xr(), O = Gm(), q = Xm(), z = Hm(), V = Ym(), re = Km();
5921
- return mr = {
5986
+ const e = Ge(), t = dt(), r = ne(), n = Vs(), o = Te(), s = Ld(), i = Td(), a = qd(), c = Zd(), u = jd(), l = Dd(), f = Bd(), d = Ud(), g = ce(), C = Vd(), v = Fd(), P = Jr(), q = Jd(), H = Md(), N = gt(), B = Mr(), Y = Fs(), F = Js(), ee = Wr(), O = Gr(), qe = Ms(), _t = Wd(), yt = vt(), Et = ue(), St = bt(), _ = Xd(), b = Hd(), I = Yd(), $ = Kd(), k = Qd(), A = Xr(), x = em(), Z = tm(), z = rm(), V = nm(), re = om();
5987
+ return dr = {
5922
5988
  parse: o,
5923
5989
  valid: s,
5924
5990
  clean: i,
@@ -5927,32 +5993,32 @@ function Qm() {
5927
5993
  major: u,
5928
5994
  minor: l,
5929
5995
  patch: f,
5930
- prerelease: m,
5996
+ prerelease: d,
5931
5997
  compare: g,
5932
5998
  rcompare: C,
5933
5999
  compareLoose: v,
5934
6000
  compareBuild: P,
5935
- sort: Z,
6001
+ sort: q,
5936
6002
  rsort: H,
5937
6003
  gt: N,
5938
6004
  lt: B,
5939
6005
  eq: Y,
5940
6006
  neq: F,
5941
6007
  gte: ee,
5942
- lte: x,
5943
- cmp: Ze,
6008
+ lte: O,
6009
+ cmp: qe,
5944
6010
  coerce: _t,
5945
6011
  Comparator: yt,
5946
6012
  Range: Et,
5947
6013
  satisfies: St,
5948
6014
  toComparators: _,
5949
6015
  maxSatisfying: b,
5950
- minSatisfying: R,
6016
+ minSatisfying: I,
5951
6017
  minVersion: $,
5952
- validRange: I,
6018
+ validRange: k,
5953
6019
  outside: A,
5954
- gtr: O,
5955
- ltr: q,
6020
+ gtr: x,
6021
+ ltr: Z,
5956
6022
  intersects: z,
5957
6023
  simplifyRange: V,
5958
6024
  subset: re,
@@ -5964,23 +6030,23 @@ function Qm() {
5964
6030
  RELEASE_TYPES: t.RELEASE_TYPES,
5965
6031
  compareIdentifiers: n.compareIdentifiers,
5966
6032
  rcompareIdentifiers: n.rcompareIdentifiers
5967
- }, mr;
6033
+ }, dr;
5968
6034
  }
5969
- var ed = Qm();
5970
- const td = (e, t) => rd(t) ? t.hostnames.includes(new URL(e).hostname) : nd(t) ? !!e.match(t.regexp) : !1, rd = (e) => js.safeParse(e).success, nd = (e) => Ds.safeParse(e).success, od = (e, t) => t ? ed.satisfies(e, t) : !0, sd = (e, t, r) => od(
6035
+ var im = sm();
6036
+ const am = (e, t) => cm(t) ? t.hostnames.includes(new URL(e).hostname) : um(t) ? !!e.match(t.regexp) : !1, cm = (e) => js.safeParse(e).success, um = (e) => Ds.safeParse(e).success, lm = (e, t) => t ? im.satisfies(e, t) : !0, pm = (e, t, r) => lm(
5971
6037
  t,
5972
6038
  r.libraryVersionRange
5973
- ) && td(e, r.matcher), id = (e, t) => e.siteRegistrations.filter(
5974
- (r) => sd(t, qs(), r)
5975
- ), ad = (e, t) => id(e, t).flatMap(
6039
+ ) && am(e, r.matcher), hm = (e, t) => e.siteRegistrations.filter(
6040
+ (r) => pm(t, Zs(), r)
6041
+ ), fm = (e, t) => hm(e, t).flatMap(
5976
6042
  ({ parsers: o, name: s }) => o.filter(
5977
- (i) => Rm(i) && i in In
6043
+ (i) => Od(i) && i in In
5978
6044
  ).map((i) => ({ parser: In[i], parserType: i, name: s }))
5979
- ), cd = (e, t) => {
5980
- const r = ad(e, t.url);
6045
+ ), dm = (e, t) => {
6046
+ const r = fm(e, t.url);
5981
6047
  for (const { parser: n, parserType: o, name: s } of r) {
5982
6048
  const i = n(t);
5983
- if (Nr(i) || xp(i) || Np(i))
6049
+ if (Nr(i) || Op(i) || Np(i))
5984
6050
  return {
5985
6051
  ...i,
5986
6052
  meta: {
@@ -5992,7 +6058,7 @@ const td = (e, t) => rd(t) ? t.hostnames.includes(new URL(e).hostname) : nd(t) ?
5992
6058
  };
5993
6059
  }
5994
6060
  return {
5995
- ...ms(),
6061
+ ...ds(),
5996
6062
  meta: {
5997
6063
  parserName: null,
5998
6064
  parserType: L.NoResourceFound,
@@ -6000,106 +6066,106 @@ const td = (e, t) => rd(t) ? t.hostnames.includes(new URL(e).hostname) : nd(t) ?
6000
6066
  referrer: t.url
6001
6067
  }
6002
6068
  };
6003
- }, Td = (e, t) => {
6004
- const r = cd(e, t), { uri: n, ...o } = r.meta;
6069
+ }, Um = (e, t) => {
6070
+ const r = dm(e, t), { uri: n, ...o } = r.meta;
6005
6071
  return {
6006
6072
  ...r,
6007
6073
  meta: o
6008
6074
  };
6009
- }, ud = (e, t) => {
6075
+ }, mm = (e, t) => {
6010
6076
  switch (t) {
6011
6077
  case Se.CA:
6012
6078
  return new URL(`https://${e}.rl.ca.talis.com`);
6013
6079
  default:
6014
6080
  return new URL(`https://${e}.rl.talis.com`);
6015
6081
  }
6016
- }, Zd = (e, t) => {
6017
- const r = ud(e, t);
6082
+ }, Vm = (e, t) => {
6083
+ const r = mm(e, t);
6018
6084
  return new URL("/ui/forms/bookmarklet.html", r);
6019
- }, qd = (e, t, r) => {
6085
+ }, Fm = (e, t, r) => {
6020
6086
  const n = pl(t);
6021
6087
  n.append("fast", "true"), n.append("breakout", "true"), r && (r.parserName && n.append("targetTitle", r.parserName), n.append("referrer", r.referrer));
6022
6088
  const o = new URL(e.toString());
6023
6089
  return o.search = n.toString(), o;
6024
6090
  };
6025
6091
  export {
6026
- ld as BookGenresSchema,
6027
- dl as CustomerListSchema,
6092
+ gm as BookGenresSchema,
6093
+ ml as CustomerListSchema,
6028
6094
  Qo as CustomerSchema,
6029
6095
  ns as DirectLinkOnlyResultSchema,
6030
6096
  E as Genre,
6031
6097
  js as HostnamesMatcherSchema,
6032
- pd as JournalGenresSchema,
6098
+ vm as JournalGenresSchema,
6033
6099
  Ho as NON_OPENURL_PROPERTIES,
6034
6100
  Go as NonOpenUrlPropertiesSchema,
6035
6101
  rs as NothingParsedResultSchema,
6036
6102
  al as OPENURL_KEYS,
6037
- md as OpenUrlAudioVisualResourceSchema,
6038
- hd as OpenUrlBookResourceSchema,
6039
- gd as OpenUrlDocumentResourceSchema,
6040
- dd as OpenUrlImageResourceSchema,
6041
- fd as OpenUrlJournalResourceSchema,
6103
+ ym as OpenUrlAudioVisualResourceSchema,
6104
+ bm as OpenUrlBookResourceSchema,
6105
+ Sm as OpenUrlDocumentResourceSchema,
6106
+ Em as OpenUrlImageResourceSchema,
6107
+ _m as OpenUrlJournalResourceSchema,
6042
6108
  be as OpenUrlResourceSchema,
6043
6109
  os as OpenUrlResultSchema,
6044
- vd as OpenUrlWebpageResourceSchema,
6110
+ $m as OpenUrlWebpageResourceSchema,
6045
6111
  In as PARSERS,
6046
- wm as ParserRegistrySchema,
6112
+ xd as ParserRegistrySchema,
6047
6113
  L as ParserType,
6048
6114
  es as ParsingMetadataSchema,
6049
6115
  ts as ParsingMetadataV2Schema,
6050
- ml as ParsingRequestSchema,
6116
+ dl as ParsingRequestSchema,
6051
6117
  yl as ParsingResponseSchema,
6052
6118
  El as ParsingResponseV2Schema,
6053
6119
  kr as ParsingResultSchema,
6054
- Od as REGISTRY,
6120
+ qm as REGISTRY,
6055
6121
  Ds as RegExpMatcherSchema,
6056
- km as ResourceDataSchema,
6122
+ zd as ResourceDataSchema,
6057
6123
  ol as ResourceSchema,
6058
6124
  Us as SiteRegistrationSchema,
6059
6125
  is as SummonSearchResultSchema,
6060
6126
  Se as TenantRegion,
6061
- _d as TenantRegistrySchema,
6127
+ wm as TenantRegistrySchema,
6062
6128
  Ko as TenantSchema,
6063
6129
  Bs as UrlMatcherSchema,
6064
6130
  ss as Z3988SearchResultSchema,
6065
- Sd as convertCustomerListToTenantRegistry,
6131
+ km as convertCustomerListToTenantRegistry,
6066
6132
  _e as createAudioVisual,
6067
6133
  Q as createBook,
6068
6134
  il as createDocument,
6069
6135
  sl as createImage,
6070
6136
  D as createJournal,
6071
6137
  Ir as createWebpage,
6072
- $d as directLinkOnly,
6138
+ Cm as directLinkOnly,
6073
6139
  hl as fromOpenUrl,
6074
- Zd as getBaseBookmarkingUrl,
6075
- qs as getLibraryVersion,
6140
+ Vm as getBaseBookmarkingUrl,
6141
+ Zs as getLibraryVersion,
6076
6142
  gl as isCustomer,
6077
6143
  vl as isCustomerList,
6078
- Cd as isDirectLinkOnlyResult,
6079
- bd as isGenre,
6080
- Pd as isNothingParsedResult,
6144
+ Lm as isDirectLinkOnlyResult,
6145
+ Am as isGenre,
6146
+ Tm as isNothingParsedResult,
6081
6147
  Nr as isOpenUrlResult,
6082
- xd as isParserRegistry,
6083
- Rm as isParserType,
6084
- Id as isParsingMetadata,
6085
- kd as isParsingMetadataV2,
6086
- yd as isParsingRequest,
6087
- wd as isParsingResponse,
6088
- Rd as isParsingResponseV2,
6089
- Ad as isParsingResult,
6090
- Ld as isResourceData,
6091
- Nd as isSiteRegistration,
6148
+ Zm as isParserRegistry,
6149
+ Od as isParserType,
6150
+ Nm as isParsingMetadata,
6151
+ zm as isParsingMetadataV2,
6152
+ Rm as isParsingRequest,
6153
+ xm as isParsingResponse,
6154
+ Om as isParsingResponseV2,
6155
+ Pm as isParsingResult,
6156
+ Bm as isResourceData,
6157
+ jm as isSiteRegistration,
6092
6158
  Np as isSummonSearchResult,
6093
6159
  bl as isTenant,
6094
- Ed as isTenantRegion,
6095
- zd as isUrlMatcher,
6096
- xp as isZ3988SearchResult,
6160
+ Im as isTenantRegion,
6161
+ Dm as isUrlMatcher,
6162
+ Op as isZ3988SearchResult,
6097
6163
  T as nothingParsed,
6098
- w as openUrlResource,
6099
- cd as parseResource,
6100
- Td as parseResourceV2,
6164
+ R as openUrlResource,
6165
+ dm as parseResource,
6166
+ Um as parseResourceV2,
6101
6167
  $l as summonSearchResult,
6102
- qd as toBookmarkingWorkflowUrl,
6168
+ Fm as toBookmarkingWorkflowUrl,
6103
6169
  pl as toOpenUrl,
6104
6170
  Sl as z3988SearchResult
6105
6171
  };