@talisdev/bibliographic-resource-parsers-lib 5.25.0 → 5.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,25 +1,25 @@
1
1
  function d(e, t, r) {
2
- function n(a, u) {
3
- var c;
2
+ function n(a, c) {
3
+ var u;
4
4
  Object.defineProperty(a, "_zod", {
5
5
  value: a._zod ?? {},
6
6
  enumerable: !1
7
- }), (c = a._zod).traits ?? (c.traits = /* @__PURE__ */ new Set()), a._zod.traits.add(e), t(a, u);
7
+ }), (u = a._zod).traits ?? (u.traits = /* @__PURE__ */ new Set()), a._zod.traits.add(e), t(a, c);
8
8
  for (const l in i.prototype)
9
9
  l in a || Object.defineProperty(a, l, { value: i.prototype[l].bind(a) });
10
- a._zod.constr = i, a._zod.def = u;
10
+ a._zod.constr = i, a._zod.def = c;
11
11
  }
12
12
  const o = r?.Parent ?? Object;
13
13
  class s extends o {
14
14
  }
15
15
  Object.defineProperty(s, "name", { value: e });
16
16
  function i(a) {
17
- var u;
18
- const c = r?.Parent ? new s() : this;
19
- n(c, a), (u = c._zod).deferred ?? (u.deferred = []);
20
- for (const l of c._zod.deferred)
17
+ var c;
18
+ const u = r?.Parent ? new s() : this;
19
+ n(u, a), (c = u._zod).deferred ?? (c.deferred = []);
20
+ for (const l of u._zod.deferred)
21
21
  l();
22
- return c;
22
+ return u;
23
23
  }
24
24
  return Object.defineProperty(i, "init", { value: n }), Object.defineProperty(i, Symbol.hasInstance, {
25
25
  value: (a) => r?.Parent && a instanceof r.Parent ? !0 : a?._zod?.traits?.has(e)
@@ -67,8 +67,8 @@ function Ws(e, t) {
67
67
  const r = (e.toString().split(".")[1] || "").length, n = t.toString();
68
68
  let o = (n.split(".")[1] || "").length;
69
69
  if (o === 0 && /\d?e-\d?/.test(n)) {
70
- const u = n.match(/\d?e-(\d?)/);
71
- u?.[1] && (o = Number.parseInt(u[1]));
70
+ const c = n.match(/\d?e-(\d?)/);
71
+ c?.[1] && (o = Number.parseInt(c[1]));
72
72
  }
73
73
  const s = r > o ? r : o, i = Number.parseInt(e.toFixed(s).replace(".", "")), a = Number.parseInt(t.toFixed(s).replace(".", ""));
74
74
  return i % a / 10 ** s;
@@ -344,35 +344,33 @@ function si(e, t = (r) => r.message) {
344
344
  o.path.length > 0 ? (r[o.path[0]] = r[o.path[0]] || [], r[o.path[0]].push(t(o))) : n.push(t(o));
345
345
  return { formErrors: n, fieldErrors: r };
346
346
  }
347
- function ii(e, t) {
348
- const r = t || function(s) {
349
- return s.message;
350
- }, n = { _errors: [] }, o = (s) => {
351
- for (const i of s.issues)
352
- if (i.code === "invalid_union" && i.errors.length)
353
- i.errors.map((a) => o({ issues: a }));
354
- else if (i.code === "invalid_key")
355
- o({ issues: i.issues });
356
- else if (i.code === "invalid_element")
357
- o({ issues: i.issues });
358
- else if (i.path.length === 0)
359
- n._errors.push(r(i));
347
+ function ii(e, t = (r) => r.message) {
348
+ const r = { _errors: [] }, n = (o) => {
349
+ for (const s of o.issues)
350
+ if (s.code === "invalid_union" && s.errors.length)
351
+ s.errors.map((i) => n({ issues: i }));
352
+ else if (s.code === "invalid_key")
353
+ n({ issues: s.issues });
354
+ else if (s.code === "invalid_element")
355
+ n({ issues: s.issues });
356
+ else if (s.path.length === 0)
357
+ r._errors.push(t(s));
360
358
  else {
361
- let a = n, u = 0;
362
- for (; u < i.path.length; ) {
363
- const c = i.path[u];
364
- u === i.path.length - 1 ? (a[c] = a[c] || { _errors: [] }, a[c]._errors.push(r(i))) : a[c] = a[c] || { _errors: [] }, a = a[c], u++;
359
+ let i = r, a = 0;
360
+ for (; a < s.path.length; ) {
361
+ const c = s.path[a];
362
+ a === s.path.length - 1 ? (i[c] = i[c] || { _errors: [] }, i[c]._errors.push(t(s))) : i[c] = i[c] || { _errors: [] }, i = i[c], a++;
365
363
  }
366
364
  }
367
365
  };
368
- return o(e), n;
366
+ return n(e), r;
369
367
  }
370
368
  const Sr = (e) => (t, r, n, o) => {
371
369
  const s = n ? Object.assign(n, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: r, issues: [] }, s);
372
370
  if (i instanceof Promise)
373
371
  throw new Oe();
374
372
  if (i.issues.length) {
375
- const a = new (o?.Err ?? e)(i.issues.map((u) => ge(u, s, de())));
373
+ const a = new (o?.Err ?? e)(i.issues.map((c) => ge(c, s, de())));
376
374
  throw Eo(a, o?.callee), a;
377
375
  }
378
376
  return i.value;
@@ -380,7 +378,7 @@ const Sr = (e) => (t, r, n, o) => {
380
378
  const s = n ? Object.assign(n, { async: !0 }) : { async: !0 };
381
379
  let i = t._zod.run({ value: r, issues: [] }, s);
382
380
  if (i instanceof Promise && (i = await i), i.issues.length) {
383
- const a = new (o?.Err ?? e)(i.issues.map((u) => ge(u, s, de())));
381
+ const a = new (o?.Err ?? e)(i.issues.map((c) => ge(c, s, de())));
384
382
  throw Eo(a, o?.callee), a;
385
383
  }
386
384
  return i.value;
@@ -730,7 +728,7 @@ class ra {
730
728
  const na = {
731
729
  major: 4,
732
730
  minor: 1,
733
- patch: 11
731
+ patch: 12
734
732
  }, W = /* @__PURE__ */ d("$ZodType", (e, t) => {
735
733
  var r;
736
734
  e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = na;
@@ -744,53 +742,53 @@ const na = {
744
742
  e._zod.run = e._zod.parse;
745
743
  });
746
744
  else {
747
- const o = (i, a, u) => {
748
- let c = Ce(i), l;
745
+ const o = (i, a, c) => {
746
+ let u = Ce(i), l;
749
747
  for (const f of a) {
750
748
  if (f._zod.def.when) {
751
749
  if (!f._zod.def.when(i))
752
750
  continue;
753
- } else if (c)
751
+ } else if (u)
754
752
  continue;
755
753
  const m = i.issues.length, g = f._zod.check(i);
756
- if (g instanceof Promise && u?.async === !1)
754
+ if (g instanceof Promise && c?.async === !1)
757
755
  throw new Oe();
758
756
  if (l || g instanceof Promise)
759
757
  l = (l ?? Promise.resolve()).then(async () => {
760
- await g, i.issues.length !== m && (c || (c = Ce(i, m)));
758
+ await g, i.issues.length !== m && (u || (u = Ce(i, m)));
761
759
  });
762
760
  else {
763
761
  if (i.issues.length === m)
764
762
  continue;
765
- c || (c = Ce(i, m));
763
+ u || (u = Ce(i, m));
766
764
  }
767
765
  }
768
766
  return l ? l.then(() => i) : i;
769
- }, s = (i, a, u) => {
767
+ }, s = (i, a, c) => {
770
768
  if (Ce(i))
771
769
  return i.aborted = !0, i;
772
- const c = o(a, n, u);
773
- if (c instanceof Promise) {
774
- if (u.async === !1)
770
+ const u = o(a, n, c);
771
+ if (u instanceof Promise) {
772
+ if (c.async === !1)
775
773
  throw new Oe();
776
- return c.then((l) => e._zod.parse(l, u));
774
+ return u.then((l) => e._zod.parse(l, c));
777
775
  }
778
- return e._zod.parse(c, u);
776
+ return e._zod.parse(u, c);
779
777
  };
780
778
  e._zod.run = (i, a) => {
781
779
  if (a.skipChecks)
782
780
  return e._zod.parse(i, a);
783
781
  if (a.direction === "backward") {
784
- const c = e._zod.parse({ value: i.value, issues: [] }, { ...a, skipChecks: !0 });
785
- return c instanceof Promise ? c.then((l) => s(l, i, a)) : s(c, i, a);
782
+ const u = e._zod.parse({ value: i.value, issues: [] }, { ...a, skipChecks: !0 });
783
+ return u instanceof Promise ? u.then((l) => s(l, i, a)) : s(u, i, a);
786
784
  }
787
- const u = e._zod.parse(i, a);
788
- if (u instanceof Promise) {
785
+ const c = e._zod.parse(i, a);
786
+ if (c instanceof Promise) {
789
787
  if (a.async === !1)
790
788
  throw new Oe();
791
- return u.then((c) => o(c, n, a));
789
+ return c.then((u) => o(u, n, a));
792
790
  }
793
- return o(u, n, a);
791
+ return o(c, n, a);
794
792
  };
795
793
  }
796
794
  e["~standard"] = {
@@ -1073,11 +1071,11 @@ const Na = /* @__PURE__ */ d("$ZodArray", (e, t) => {
1073
1071
  r.value = Array(o.length);
1074
1072
  const s = [];
1075
1073
  for (let i = 0; i < o.length; i++) {
1076
- const a = o[i], u = t.element._zod.run({
1074
+ const a = o[i], c = t.element._zod.run({
1077
1075
  value: a,
1078
1076
  issues: []
1079
1077
  }, n);
1080
- u instanceof Promise ? s.push(u.then((c) => Yr(c, r, i))) : Yr(u, r, i);
1078
+ c instanceof Promise ? s.push(c.then((u) => Yr(u, r, i))) : Yr(c, r, i);
1081
1079
  }
1082
1080
  return s.length ? Promise.all(s).then(() => r) : r;
1083
1081
  };
@@ -1100,15 +1098,15 @@ function No(e) {
1100
1098
  };
1101
1099
  }
1102
1100
  function zo(e, t, r, n, o, s) {
1103
- const i = [], a = o.keySet, u = o.catchall._zod, c = u.def.type;
1101
+ const i = [], a = o.keySet, c = o.catchall._zod, u = c.def.type;
1104
1102
  for (const l of Object.keys(t)) {
1105
1103
  if (a.has(l))
1106
1104
  continue;
1107
- if (c === "never") {
1105
+ if (u === "never") {
1108
1106
  i.push(l);
1109
1107
  continue;
1110
1108
  }
1111
- const f = u.run({ value: t[l], issues: [] }, n);
1109
+ const f = c.run({ value: t[l], issues: [] }, n);
1112
1110
  f instanceof Promise ? e.push(f.then((m) => tt(m, r, l, t))) : tt(f, r, l, t);
1113
1111
  }
1114
1112
  return i.length && r.issues.push({
@@ -1123,45 +1121,45 @@ const za = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1123
1121
  const a = t.shape;
1124
1122
  Object.defineProperty(t, "shape", {
1125
1123
  get: () => {
1126
- const u = { ...a };
1124
+ const c = { ...a };
1127
1125
  return Object.defineProperty(t, "shape", {
1128
- value: u
1129
- }), u;
1126
+ value: c
1127
+ }), c;
1130
1128
  }
1131
1129
  });
1132
1130
  }
1133
1131
  const n = _r(() => No(t));
1134
1132
  U(e._zod, "propValues", () => {
1135
- const a = t.shape, u = {};
1136
- for (const c in a) {
1137
- const l = a[c]._zod;
1133
+ const a = t.shape, c = {};
1134
+ for (const u in a) {
1135
+ const l = a[u]._zod;
1138
1136
  if (l.values) {
1139
- u[c] ?? (u[c] = /* @__PURE__ */ new Set());
1137
+ c[u] ?? (c[u] = /* @__PURE__ */ new Set());
1140
1138
  for (const f of l.values)
1141
- u[c].add(f);
1139
+ c[u].add(f);
1142
1140
  }
1143
1141
  }
1144
- return u;
1142
+ return c;
1145
1143
  });
1146
1144
  const o = et, s = t.catchall;
1147
1145
  let i;
1148
- e._zod.parse = (a, u) => {
1146
+ e._zod.parse = (a, c) => {
1149
1147
  i ?? (i = n.value);
1150
- const c = a.value;
1151
- if (!o(c))
1148
+ const u = a.value;
1149
+ if (!o(u))
1152
1150
  return a.issues.push({
1153
1151
  expected: "object",
1154
1152
  code: "invalid_type",
1155
- input: c,
1153
+ input: u,
1156
1154
  inst: e
1157
1155
  }), a;
1158
1156
  a.value = {};
1159
1157
  const l = [], f = i.shape;
1160
1158
  for (const m of i.keys) {
1161
- const C = f[m]._zod.run({ value: c[m], issues: [] }, u);
1162
- C instanceof Promise ? l.push(C.then((v) => tt(v, a, m, c))) : tt(C, a, m, c);
1159
+ const C = f[m]._zod.run({ value: u[m], issues: [] }, c);
1160
+ C instanceof Promise ? l.push(C.then((v) => tt(v, a, m, u))) : tt(C, a, m, u);
1163
1161
  }
1164
- return s ? zo(l, c, a, u, n.value, e) : l.length ? Promise.all(l).then(() => a) : a;
1162
+ return s ? zo(l, u, a, c, n.value, e) : l.length ? Promise.all(l).then(() => a) : a;
1165
1163
  };
1166
1164
  }), La = /* @__PURE__ */ d("$ZodObjectJIT", (e, t) => {
1167
1165
  za.init(e, t);
@@ -1202,12 +1200,12 @@ const za = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1202
1200
  return (N, B) => H(m, N, B);
1203
1201
  };
1204
1202
  let s;
1205
- const i = et, a = !_o.jitless, c = a && Gs.value, l = t.catchall;
1203
+ const i = et, a = !_o.jitless, u = a && Gs.value, l = t.catchall;
1206
1204
  let f;
1207
1205
  e._zod.parse = (m, g) => {
1208
1206
  f ?? (f = n.value);
1209
1207
  const C = m.value;
1210
- return i(C) ? a && c && g?.async === !1 && g.jitless !== !0 ? (s || (s = o(t.shape)), m = s(m, g), l ? zo([], C, m, g, f, e) : m) : r(m, g) : (m.issues.push({
1208
+ return i(C) ? a && u && g?.async === !1 && g.jitless !== !0 ? (s || (s = o(t.shape)), m = s(m, g), l ? zo([], C, m, g, f, e) : m) : r(m, g) : (m.issues.push({
1211
1209
  expected: "object",
1212
1210
  code: "invalid_type",
1213
1211
  input: C,
@@ -1243,25 +1241,25 @@ const Ta = /* @__PURE__ */ d("$ZodUnion", (e, t) => {
1243
1241
  return n(o, s);
1244
1242
  let i = !1;
1245
1243
  const a = [];
1246
- for (const u of t.options) {
1247
- const c = u._zod.run({
1244
+ for (const c of t.options) {
1245
+ const u = c._zod.run({
1248
1246
  value: o.value,
1249
1247
  issues: []
1250
1248
  }, s);
1251
- if (c instanceof Promise)
1252
- a.push(c), i = !0;
1249
+ if (u instanceof Promise)
1250
+ a.push(u), i = !0;
1253
1251
  else {
1254
- if (c.issues.length === 0)
1255
- return c;
1256
- a.push(c);
1252
+ if (u.issues.length === 0)
1253
+ return u;
1254
+ a.push(u);
1257
1255
  }
1258
1256
  }
1259
- return i ? Promise.all(a).then((u) => Kr(u, o, e, s)) : Kr(a, o, e, s);
1257
+ return i ? Promise.all(a).then((c) => Kr(c, o, e, s)) : Kr(a, o, e, s);
1260
1258
  };
1261
1259
  }), Za = /* @__PURE__ */ d("$ZodIntersection", (e, t) => {
1262
1260
  W.init(e, t), e._zod.parse = (r, n) => {
1263
1261
  const o = r.value, s = t.left._zod.run({ value: o, issues: [] }, n), i = t.right._zod.run({ value: o, issues: [] }, n);
1264
- return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([u, c]) => Qr(r, u, c)) : Qr(r, s, i);
1262
+ return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([c, u]) => Qr(r, c, u)) : Qr(r, s, i);
1265
1263
  };
1266
1264
  });
1267
1265
  function dr(e, t) {
@@ -1321,16 +1319,16 @@ const qa = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1321
1319
  if (t.keyType._zod.values) {
1322
1320
  const i = t.keyType._zod.values;
1323
1321
  r.value = {};
1324
- for (const u of i)
1325
- if (typeof u == "string" || typeof u == "number" || typeof u == "symbol") {
1326
- const c = t.valueType._zod.run({ value: o[u], issues: [] }, n);
1327
- c instanceof Promise ? s.push(c.then((l) => {
1328
- l.issues.length && r.issues.push(...Pe(u, l.issues)), r.value[u] = l.value;
1329
- })) : (c.issues.length && r.issues.push(...Pe(u, c.issues)), r.value[u] = c.value);
1322
+ for (const c of i)
1323
+ if (typeof c == "string" || typeof c == "number" || typeof c == "symbol") {
1324
+ const u = t.valueType._zod.run({ value: o[c], issues: [] }, n);
1325
+ u instanceof Promise ? s.push(u.then((l) => {
1326
+ l.issues.length && r.issues.push(...Pe(c, l.issues)), r.value[c] = l.value;
1327
+ })) : (u.issues.length && r.issues.push(...Pe(c, u.issues)), r.value[c] = u.value);
1330
1328
  }
1331
1329
  let a;
1332
- for (const u in o)
1333
- i.has(u) || (a = a ?? [], a.push(u));
1330
+ for (const c in o)
1331
+ i.has(c) || (a = a ?? [], a.push(c));
1334
1332
  a && a.length > 0 && r.issues.push({
1335
1333
  code: "unrecognized_keys",
1336
1334
  input: o,
@@ -1349,17 +1347,17 @@ const qa = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1349
1347
  r.issues.push({
1350
1348
  code: "invalid_key",
1351
1349
  origin: "record",
1352
- issues: a.issues.map((c) => ge(c, n, de())),
1350
+ issues: a.issues.map((u) => ge(u, n, de())),
1353
1351
  input: i,
1354
1352
  path: [i],
1355
1353
  inst: e
1356
1354
  }), r.value[a.value] = a.value;
1357
1355
  continue;
1358
1356
  }
1359
- const u = t.valueType._zod.run({ value: o[i], issues: [] }, n);
1360
- u instanceof Promise ? s.push(u.then((c) => {
1361
- c.issues.length && r.issues.push(...Pe(i, c.issues)), r.value[a.value] = c.value;
1362
- })) : (u.issues.length && r.issues.push(...Pe(i, u.issues)), r.value[a.value] = u.value);
1357
+ const c = t.valueType._zod.run({ value: o[i], issues: [] }, n);
1358
+ c instanceof Promise ? s.push(c.then((u) => {
1359
+ u.issues.length && r.issues.push(...Pe(i, u.issues)), r.value[a.value] = u.value;
1360
+ })) : (c.issues.length && r.issues.push(...Pe(i, c.issues)), r.value[a.value] = c.value);
1363
1361
  }
1364
1362
  }
1365
1363
  return s.length ? Promise.all(s).then(() => r) : r;
@@ -2379,7 +2377,7 @@ function rl(e) {
2379
2377
  return Uc(e);
2380
2378
  }
2381
2379
  var y = /* @__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))(y || {});
2382
- const sd = pe([
2380
+ const id = pe([
2383
2381
  J(
2384
2382
  "book"
2385
2383
  /* Book */
@@ -2408,7 +2406,7 @@ const sd = pe([
2408
2406
  "unknown"
2409
2407
  /* Unknown */
2410
2408
  )
2411
- ]), id = pe([
2409
+ ]), ad = pe([
2412
2410
  J(
2413
2411
  "article"
2414
2412
  /* Article */
@@ -2482,7 +2480,7 @@ const sd = pe([
2482
2480
  bibid: p(),
2483
2481
  doi: p(),
2484
2482
  uri: p()
2485
- }).partial(), ad = be.pick({
2483
+ }).partial(), cd = be.pick({
2486
2484
  atitle: !0,
2487
2485
  aufirst: !0,
2488
2486
  aulast: !0,
@@ -2508,7 +2506,7 @@ const sd = pe([
2508
2506
  tpages: !0,
2509
2507
  series: !0,
2510
2508
  spage: !0
2511
- }).partial(), cd = be.pick({
2509
+ }).partial(), ud = be.pick({
2512
2510
  artnum: !0,
2513
2511
  atitle: !0,
2514
2512
  aufirst: !0,
@@ -2540,25 +2538,25 @@ const sd = pe([
2540
2538
  ssn: !0,
2541
2539
  quarter: !0,
2542
2540
  volume: !0
2543
- }).partial(), ud = be.pick({
2541
+ }).partial(), ld = be.pick({
2544
2542
  au: !0,
2545
2543
  date: !0,
2546
2544
  isbn: !0,
2547
2545
  pub: !0,
2548
2546
  title: !0
2549
- }).partial(), ld = be.pick({
2547
+ }).partial(), pd = be.pick({
2550
2548
  au: !0,
2551
2549
  date: !0,
2552
2550
  pub: !0,
2553
2551
  title: !0
2554
- }).partial(), pd = be.pick({
2552
+ }).partial(), hd = be.pick({
2555
2553
  au: !0,
2556
2554
  date: !0,
2557
2555
  pub: !0,
2558
2556
  title: !0,
2559
2557
  spage: !0,
2560
2558
  epage: !0
2561
- }).partial(), hd = be.pick({
2559
+ }).partial(), fd = be.pick({
2562
2560
  au: !0,
2563
2561
  date: !0,
2564
2562
  title: !0
@@ -2614,7 +2612,7 @@ const sd = pe([
2614
2612
  ].reduce(r, {});
2615
2613
  return Object.keys(n).length === 0 ? null : n;
2616
2614
  }, hl = (e) => URL.canParse(e) ? new URL(e).searchParams : new URLSearchParams(e);
2617
- function fd(e) {
2615
+ function md(e) {
2618
2616
  return typeof e != "string" ? !1 : Object.values(y).includes(e);
2619
2617
  }
2620
2618
  var ye = /* @__PURE__ */ ((e) => (e.CA = "CA", e.EUAPAC = "EUAPAC", e))(ye || {});
@@ -2622,7 +2620,7 @@ const Ho = k({
2622
2620
  id: p(),
2623
2621
  name: p(),
2624
2622
  region: Ue(ye)
2625
- }), md = k({
2623
+ }), dd = k({
2626
2624
  tenants: j(Ho)
2627
2625
  }), gn = 9 * 1024 * 1024, fl = k({
2628
2626
  url: fu({
@@ -2642,7 +2640,7 @@ const Ho = k({
2642
2640
  error: (e) => e.input === void 0 ? 'should have the required string property "region"' : '"region" must be a string of EUAPAC or CA'
2643
2641
  })
2644
2642
  });
2645
- function dd(e) {
2643
+ function gd(e) {
2646
2644
  return fl.safeParse(e).success;
2647
2645
  }
2648
2646
  const Yo = k({
@@ -2653,10 +2651,10 @@ const Yo = k({
2653
2651
  function vl(e) {
2654
2652
  return Ho.safeParse(e).success;
2655
2653
  }
2656
- function gd(e) {
2654
+ function vd(e) {
2657
2655
  return typeof e == "string" && Object.keys(ye).includes(e);
2658
2656
  }
2659
- const vd = (e) => {
2657
+ const bd = (e) => {
2660
2658
  if (!gl(e))
2661
2659
  throw new Error("Error: the customer list data is invalid.");
2662
2660
  return { tenants: Object.entries(e).map(
@@ -2702,7 +2700,7 @@ const vd = (e) => {
2702
2700
  }).and(Ir), El = k({
2703
2701
  meta: Qo
2704
2702
  }).and(Ir);
2705
- function bd(e) {
2703
+ function _d(e) {
2706
2704
  return { bookmarkingWorkflowUrl: e, resource: null };
2707
2705
  }
2708
2706
  function T() {
@@ -2755,7 +2753,7 @@ const Sl = (e) => {
2755
2753
  )?.textContent ?? void 0;
2756
2754
  return (t ? /\d+/.exec(t)?.[0] : null) ?? void 0;
2757
2755
  }, Ol = ({ url: e, document: t }) => {
2758
- const r = Al(t), n = wl(t), o = Rl(t), s = Il(t), i = kl(t), a = Cl(t), u = t.getElementById("productTitle")?.textContent.trim() ?? void 0, c = Pl(t);
2756
+ const r = Al(t), n = wl(t), o = Rl(t), s = Il(t), i = kl(t), a = Cl(t), c = t.getElementById("productTitle")?.textContent.trim() ?? void 0, u = Pl(t);
2759
2757
  return {
2760
2758
  bookmarkingWorkflowUrl: null,
2761
2759
  resource: Q(y.Book, {
@@ -2765,8 +2763,8 @@ const Sl = (e) => {
2765
2763
  isbn: o,
2766
2764
  pub: i,
2767
2765
  series: a,
2768
- title: u,
2769
- tpages: c,
2766
+ title: c,
2767
+ tpages: u,
2770
2768
  uri: e
2771
2769
  })
2772
2770
  };
@@ -2786,7 +2784,7 @@ const Sl = (e) => {
2786
2784
  jtitle: n
2787
2785
  };
2788
2786
  }, Nl = (e) => {
2789
- 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((c) => c.trim()), { jtitle: i, volume: a, issue: u } = xl(e);
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 } = xl(e);
2790
2788
  return w(
2791
2789
  D(y.Article, {
2792
2790
  au: ss(e),
@@ -2796,11 +2794,11 @@ const Sl = (e) => {
2796
2794
  date: r,
2797
2795
  jtitle: i,
2798
2796
  volume: a,
2799
- issue: u
2797
+ issue: c
2800
2798
  })
2801
2799
  );
2802
2800
  }, zl = (e) => {
2803
- const [t, r] = e.querySelectorAll(".source"), { date: n, pub: o } = as(r), s = e.querySelector(".browse__book-toc"), [i, a] = (s?.querySelector("h1")?.textContent.split(",") ?? []).map((u) => u.trim());
2801
+ const [t, r] = e.querySelectorAll(".source"), { date: n, pub: o } = as(r), s = e.querySelector(".browse__book-toc"), [i, a] = (s?.querySelector("h1")?.textContent.split(",") ?? []).map((c) => c.trim());
2804
2802
  return w(
2805
2803
  Q(y.Book, {
2806
2804
  btitle: i,
@@ -2822,7 +2820,7 @@ const Sl = (e) => {
2822
2820
  pub: i
2823
2821
  };
2824
2822
  }, Tl = (e) => {
2825
- const { edition: t, btitle: r, date: n, pub: o } = Ll(e), s = e.querySelector(".article-header .source")?.textContent, i = /(\d+-\d+|[IVXLCDM]+-[IVXLCDM]+)/i, a = s?.match(i), [u, c] = (a?.[1].split("-") ?? []).map((l) => l.trim());
2823
+ const { edition: t, btitle: r, date: n, pub: o } = Ll(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());
2826
2824
  return w(
2827
2825
  Q(y.Bookitem, {
2828
2826
  au: ss(e),
@@ -2831,8 +2829,8 @@ const Sl = (e) => {
2831
2829
  edition: t,
2832
2830
  pub: o,
2833
2831
  date: n,
2834
- spage: u,
2835
- epage: c
2832
+ spage: c,
2833
+ epage: u
2836
2834
  })
2837
2835
  );
2838
2836
  }, Zl = /^[0-9X]$/, Cr = (e) => {
@@ -2861,11 +2859,11 @@ const Sl = (e) => {
2861
2859
  }, cs = (e) => e.querySelector(".browse-toc") ?? e.querySelector(".browse__journal"), jl = (e) => cs(e)?.querySelector("h1")?.firstElementChild?.textContent.trim(), Dl = (e) => {
2862
2860
  const t = cs(e), r = t?.querySelector("figure figcaption.source");
2863
2861
  if (r) {
2864
- const [a, u, c] = r.textContent.split(",").map((l) => l.trim());
2862
+ const [a, c, u] = r.textContent.split(",").map((l) => l.trim());
2865
2863
  return {
2866
2864
  date: a,
2867
- volume: he(u),
2868
- issue: he(c)
2865
+ volume: he(c),
2866
+ issue: he(u)
2869
2867
  };
2870
2868
  }
2871
2869
  const n = t?.querySelector("p")?.textContent, [o, s] = n?.split(",") ?? [];
@@ -3001,7 +2999,7 @@ const Ul = (e) => Object.values(us).includes(
3001
2999
  const n = te(e, "name", "citation_issn");
3002
3000
  return n.length === 2 ? (t = n[1], r = n[0]) : t = n[0], { eissn: t, issn: r };
3003
3001
  }, np = (e) => {
3004
- 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 } = rp(e), a = h(e, "name", "citation_publisher"), u = h(e, "name", "citation_publication_date"), c = h(e, "name", "citation_volume"), l = h(e, "name", "citation_issue"), f = h(e, "name", "citation_firstpage"), m = h(e, "name", "citation_lastpage");
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 } = rp(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");
3005
3003
  return w(
3006
3004
  D(y.Article, {
3007
3005
  jtitle: t,
@@ -3011,8 +3009,8 @@ const Ul = (e) => Object.values(us).includes(
3011
3009
  eissn: s,
3012
3010
  issn: i,
3013
3011
  pub: a,
3014
- date: u,
3015
- volume: c,
3012
+ date: c,
3013
+ volume: u,
3016
3014
  issue: l,
3017
3015
  spage: f,
3018
3016
  epage: m
@@ -3062,25 +3060,25 @@ const sp = (e) => {
3062
3060
  const s = r?.match(/(\d{4})$/);
3063
3061
  return s && t.set("date", s[1]), t;
3064
3062
  }, hp = (e) => {
3065
- const t = ip(e.document), r = h(e.document, "name", "dc.Date"), n = up(e.document), o = ms(e.document), s = o.get("issn"), i = o.get("eissn"), a = cp(e.document), u = h(
3063
+ const t = ip(e.document), r = h(e.document, "name", "dc.Date"), n = up(e.document), o = ms(e.document), s = o.get("issn"), i = o.get("eissn"), a = cp(e.document), c = h(
3066
3064
  e.document,
3067
3065
  "name",
3068
3066
  "citation_journal_title"
3069
- ), c = h(e.document, "name", "dc.Publisher"), l = h(e.document, "name", "dc.Title"), f = ap(e.document);
3067
+ ), u = h(e.document, "name", "dc.Publisher"), l = h(e.document, "name", "dc.Title"), f = ap(e.document);
3070
3068
  return D(y.Article, {
3071
3069
  au: t,
3072
3070
  date: r,
3073
3071
  eissn: i,
3074
3072
  issn: s,
3075
3073
  issue: a,
3076
- jtitle: u,
3077
- pub: c,
3074
+ jtitle: c,
3075
+ pub: u,
3078
3076
  title: l,
3079
3077
  volume: f,
3080
3078
  doi: n
3081
3079
  });
3082
3080
  }, fp = (e) => {
3083
- const t = ms(e.document), r = t.get("issn"), n = t.get("eissn"), o = lp(e.document), s = pp(e.document), i = s.get("issue"), a = s.get("volume"), u = s.get("date");
3081
+ const t = ms(e.document), r = t.get("issn"), n = t.get("eissn"), o = lp(e.document), s = pp(e.document), i = s.get("issue"), a = s.get("volume"), c = s.get("date");
3084
3082
  return D(y.Journal, {
3085
3083
  eissn: n,
3086
3084
  issn: r,
@@ -3088,7 +3086,7 @@ const sp = (e) => {
3088
3086
  title: o,
3089
3087
  issue: i,
3090
3088
  volume: a,
3091
- date: u
3089
+ date: c
3092
3090
  });
3093
3091
  }, mp = (e) => {
3094
3092
  switch (sp(e.document)) {
@@ -3136,12 +3134,12 @@ const sp = (e) => {
3136
3134
  title: r
3137
3135
  });
3138
3136
  }, Ep = (e) => {
3139
- 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"), u = Pr(e), c = 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 = Pr(e), u = h(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3140
3138
  return Q(y.Bookitem, {
3141
3139
  au: o,
3142
- btitle: c,
3140
+ btitle: u,
3143
3141
  date: n,
3144
- doi: u,
3142
+ doi: c,
3145
3143
  epage: i,
3146
3144
  isbn: r,
3147
3145
  pub: a,
@@ -3149,18 +3147,18 @@ const sp = (e) => {
3149
3147
  title: t
3150
3148
  });
3151
3149
  }, yp = (e) => {
3152
- 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"), u = h(e, "name", "citation_volume"), c = Pr(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 = Pr(e), l = h(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3153
3151
  return D(y.Article, {
3154
3152
  au: o,
3155
3153
  jtitle: l,
3156
3154
  date: n,
3157
- doi: c,
3155
+ doi: u,
3158
3156
  issn: r,
3159
3157
  issue: a,
3160
3158
  pub: s,
3161
3159
  spage: i,
3162
3160
  title: t,
3163
- volume: u
3161
+ volume: c
3164
3162
  });
3165
3163
  }, $p = (e) => {
3166
3164
  const t = e.getElementById("journal-title")?.textContent ?? void 0, r = vp(e);
@@ -3202,13 +3200,13 @@ const sp = (e) => {
3202
3200
  )?.textContent;
3203
3201
  return t ? t.replace("Issue", "").trim() : void 0;
3204
3202
  }, kp = (e) => {
3205
- const t = h(e, "property", "og:title"), r = h(e, "name", "dc.Publisher"), n = h(e, "name", "dc.Date"), o = h(e, "name", "publication_doi"), s = h(e, "name", "citation_journal_title"), i = te(e, "name", "dc.Creator"), a = Rp(e), u = Ip(e), c = wp(e), l = c?.includes("-") ? c.split("-")[0] : c, f = c?.includes("-") ? c.split("-")[1] : c;
3203
+ const t = h(e, "property", "og:title"), r = h(e, "name", "dc.Publisher"), n = h(e, "name", "dc.Date"), o = h(e, "name", "publication_doi"), s = h(e, "name", "citation_journal_title"), i = te(e, "name", "dc.Creator"), a = Rp(e), c = Ip(e), u = wp(e), l = u?.includes("-") ? u.split("-")[0] : u, f = u?.includes("-") ? u.split("-")[1] : u;
3206
3204
  return D(y.Article, {
3207
3205
  au: i,
3208
3206
  jtitle: s,
3209
3207
  date: n,
3210
3208
  doi: o,
3211
- issue: u,
3209
+ issue: c,
3212
3210
  pub: r,
3213
3211
  spage: l,
3214
3212
  epage: f,
@@ -3230,8 +3228,8 @@ const sp = (e) => {
3230
3228
  default:
3231
3229
  return T();
3232
3230
  }
3233
- }, _d = (e) => Ir.safeParse(e).success, Ed = (e) => _l.safeParse(e).success, yd = (e) => El.safeParse(e).success, $d = (e) => Ko.safeParse(e).success, Sd = (e) => Qo.safeParse(e).success;
3234
- function Ad(e) {
3231
+ }, Ed = (e) => Ir.safeParse(e).success, yd = (e) => _l.safeParse(e).success, $d = (e) => El.safeParse(e).success, Sd = (e) => Ko.safeParse(e).success, Ad = (e) => Qo.safeParse(e).success;
3232
+ function wd(e) {
3235
3233
  return ts.safeParse(e).success;
3236
3234
  }
3237
3235
  function xr(e) {
@@ -3243,7 +3241,7 @@ function Op(e) {
3243
3241
  function xp(e) {
3244
3242
  return os.safeParse(e).success;
3245
3243
  }
3246
- function wd(e) {
3244
+ function Rd(e) {
3247
3245
  return es.safeParse(e).success;
3248
3246
  }
3249
3247
  const Np = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textContent.trim() === "DOI:")?.nextElementSibling?.querySelector('span[property="identifier"]')?.textContent ?? void 0, zp = (e) => {
@@ -3330,7 +3328,7 @@ const vs = k({
3330
3328
  issn: j(p()),
3331
3329
  volumeNumber: p().optional()
3332
3330
  }), vn = (e) => Up.safeParse(e).success, Fp = (e, t) => h(e, "name", "citation_issn") ?? h(e, "name", "prism.issn") ?? (bs(t.isPartOf) ? t.isPartOf.issn?.[0] : void 0), bn = (e, t) => {
3333
- const r = gs(t), n = h(e, "name", "citation_online_date"), o = ds(e), s = h(e, "name", "citation_issue"), i = Fp(e, t), a = vn(t.isPartOf) && t.isPartOf.issn.length > 0 ? t.isPartOf.issn[1] : void 0, u = t.pageStart, c = t.pageEnd, l = t.headline, f = t.isPartOf.name, m = vn(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
3331
+ const r = gs(t), n = h(e, "name", "citation_online_date"), o = ds(e), s = h(e, "name", "citation_issue"), i = Fp(e, t), a = vn(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 = vn(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
3334
3332
  return D(y.Article, {
3335
3333
  au: r,
3336
3334
  date: n,
@@ -3338,8 +3336,8 @@ const vs = k({
3338
3336
  issue: s,
3339
3337
  eissn: i,
3340
3338
  issn: a,
3341
- spage: u,
3342
- epage: c,
3339
+ spage: c,
3340
+ epage: u,
3343
3341
  atitle: l,
3344
3342
  jtitle: f,
3345
3343
  volume: m
@@ -3384,10 +3382,10 @@ const vs = k({
3384
3382
  ), a = t.isbn ?? r.get(
3385
3383
  "Softcover ISBN"
3386
3384
  /* SOFTCOVER_ISBN */
3387
- ), u = t.numberOfPages?.toString() ?? r.get(
3385
+ ), c = t.numberOfPages?.toString() ?? r.get(
3388
3386
  "Number of Pages"
3389
3387
  /* NUMBER_OF_PAGES */
3390
- ), c = t.publisher?.name ?? r.get(
3388
+ ), u = t.publisher?.name ?? r.get(
3391
3389
  "Publisher"
3392
3390
  /* PUBLISHER */
3393
3391
  );
@@ -3397,8 +3395,8 @@ const vs = k({
3397
3395
  doi: s,
3398
3396
  title: i,
3399
3397
  isbn: a,
3400
- tpages: u,
3401
- pub: c
3398
+ tpages: c,
3399
+ pub: u
3402
3400
  });
3403
3401
  }, Gp = k({
3404
3402
  "@type": J("Periodical"),
@@ -3552,7 +3550,7 @@ const vs = k({
3552
3550
  title: n
3553
3551
  });
3554
3552
  }, uh = (e) => {
3555
- const t = ut(e), r = ct(e), n = h(e, "name", "citation_book_title"), o = lt(e, t), s = Nr(e, t), i = _s(e, t), a = h(e, "name", "citation_publisher"), u = h(e, "property", "og:title");
3553
+ const t = ut(e), r = ct(e), n = h(e, "name", "citation_book_title"), o = lt(e, t), s = Nr(e, t), i = _s(e, t), a = h(e, "name", "citation_publisher"), c = h(e, "property", "og:title");
3556
3554
  return Q(y.Bookitem, {
3557
3555
  au: r,
3558
3556
  btitle: n,
@@ -3560,7 +3558,7 @@ const vs = k({
3560
3558
  doi: s,
3561
3559
  isbn: i,
3562
3560
  pub: a,
3563
- title: u
3561
+ title: c
3564
3562
  });
3565
3563
  }, lh = (e) => {
3566
3564
  const t = ut(e), r = ct(e), n = lt(e, t), o = t.get(
@@ -3569,13 +3567,13 @@ const vs = k({
3569
3567
  ), s = t.get(
3570
3568
  "Print ISSN"
3571
3569
  /* PrintIssn */
3572
- ), i = h(e, "property", "og:title"), { volume: a, issue: u } = ah(e);
3570
+ ), i = h(e, "property", "og:title"), { volume: a, issue: c } = ah(e);
3573
3571
  return D(y.Journal, {
3574
3572
  au: r,
3575
3573
  date: n,
3576
3574
  eissn: o,
3577
3575
  issn: s,
3578
- issue: u,
3576
+ issue: c,
3579
3577
  title: i,
3580
3578
  volume: a
3581
3579
  });
@@ -3668,7 +3666,7 @@ const gh = (e) => {
3668
3666
  const t = e.get("local identifier");
3669
3667
  if (t?.length)
3670
3668
  return ys(t);
3671
- }, qe = (e) => {
3669
+ }, Eh = (e) => e.querySelector(".doi")?.getAttribute("href") ?? void 0, qe = (e) => {
3672
3670
  if (e?.length)
3673
3671
  return e[0];
3674
3672
  }, ke = (e) => {
@@ -3685,7 +3683,7 @@ const gh = (e) => {
3685
3683
  pub: s && s.trim() !== "" ? s : void 0,
3686
3684
  jtitle: o && o.trim() !== "" ? o : void 0
3687
3685
  };
3688
- }, Eh = (e) => {
3686
+ }, yh = (e) => {
3689
3687
  const t = Es(e, [
3690
3688
  '[data-qa="journal"]:first-child cite',
3691
3689
  '[data-qa="copyright-statement"] > cite',
@@ -3697,7 +3695,7 @@ const gh = (e) => {
3697
3695
  return;
3698
3696
  const t = new URL(e);
3699
3697
  return t.origin + t.pathname;
3700
- }, yh = (e) => {
3698
+ }, $h = (e) => {
3701
3699
  const t = e.querySelector(
3702
3700
  ".ccda-container > :first-child"
3703
3701
  );
@@ -3708,15 +3706,15 @@ const gh = (e) => {
3708
3706
  s.startsWith("Volume") ? n = he(s) : s.startsWith("Issue") && (r = he(s));
3709
3707
  }
3710
3708
  return { issue: r, volume: n };
3711
- }, $h = (e) => {
3709
+ }, Sh = (e) => {
3712
3710
  const t = e.querySelector('[data-qa="item-src-info"]')?.textContent ?? h(e, "property", "og:description") ?? h(e, "name", "description");
3713
3711
  if (!t)
3714
3712
  return {};
3715
- const r = /Vol\.\s*(\d+)/.exec(t), n = r ? r[1] : void 0, o = /No\.\s*(\d+)/.exec(t), s = o ? o[1] : void 0, i = /pp\.\s*(\d+)-(\d+)/.exec(t), a = i ? i[1] : void 0, u = i ? i[2] : void 0, c = /pp\.\s*\d+-\d+\s*\((\d+)\s*pages\)/.exec(
3713
+ const r = /Vol\.\s*(\d+)/.exec(t), n = r ? r[1] : void 0, o = /No\.\s*(\d+)/.exec(t), s = o ? o[1] : void 0, i = /pp\.\s*(\d+)-(\d+)/.exec(t), a = i ? i[1] : void 0, c = i ? i[2] : void 0, u = /pp\.\s*\d+-\d+\s*\((\d+)\s*pages\)/.exec(
3716
3714
  t
3717
- ), l = c ? c[1] : void 0;
3718
- return { issue: s, volume: n, spage: a, epage: u, pages: l };
3719
- }, Sh = (e) => {
3715
+ ), l = u ? u[1] : void 0;
3716
+ return { issue: s, volume: n, spage: a, epage: c, pages: l };
3717
+ }, Ah = (e) => {
3720
3718
  const t = Es(e, [
3721
3719
  "mfe-turnaway-pharos-link",
3722
3720
  '[data-qa="item-src-info"]'
@@ -3728,12 +3726,12 @@ const gh = (e) => {
3728
3726
  return s ? s[0] : void 0;
3729
3727
  });
3730
3728
  return zr(n);
3731
- }, Ah = (e, t) => {
3732
- const r = _e(e), n = Re(e), o = Ie(e) ?? Sh(e), s = Ss(e), i = s.jtitle ?? Eh(e) ?? void 0, a = s.pub, u = yh(e), c = $h(e), l = u.issue ?? c.issue, f = u.volume ?? c.volume, m = pt(e) ?? c.pages, g = c.spage, C = c.epage, v = Ee(t), P = ys(
3729
+ }, wh = (e, t) => {
3730
+ const r = _e(e), n = Re(e), o = Ie(e) ?? Ah(e), s = Ss(e), i = s.jtitle ?? yh(e) ?? void 0, a = s.pub, c = $h(e), u = Sh(e), l = c.issue ?? u.issue, f = c.volume ?? u.volume, m = pt(e) ?? u.pages, g = u.spage, C = u.epage, v = Ee(t), P = ys(
3733
3731
  Array.from(
3734
3732
  e.querySelector(".content-meta-data-stables")?.childNodes ?? []
3735
3733
  ).map((Z) => Z.textContent ?? "")
3736
- );
3734
+ ) ?? Eh(e);
3737
3735
  return D(y.Article, {
3738
3736
  atitle: r,
3739
3737
  au: n,
@@ -3748,7 +3746,7 @@ const gh = (e) => {
3748
3746
  uri: v,
3749
3747
  volume: f
3750
3748
  });
3751
- }, wh = (e, t) => {
3749
+ }, Rh = (e, t) => {
3752
3750
  const r = ke(e), n = Re(e), o = Ie(e, r), s = _e(e), i = Je(e, r), a = Ee(t);
3753
3751
  return Ae({
3754
3752
  au: n,
@@ -3757,44 +3755,44 @@ const gh = (e) => {
3757
3755
  title: s,
3758
3756
  uri: a
3759
3757
  });
3760
- }, Rh = (e, t) => {
3761
- const r = ke(e), n = Re(e), o = _e(e), s = Ie(e), i = pt(e), a = Je(e, r), u = Ee(t), c = $s(r);
3758
+ }, Ih = (e, t) => {
3759
+ const r = ke(e), n = Re(e), o = _e(e), s = Ie(e), i = pt(e), a = Je(e, r), c = Ee(t), u = $s(r);
3762
3760
  return Q(y.Book, {
3763
3761
  au: n,
3764
3762
  date: s,
3765
- doi: c,
3763
+ doi: u,
3766
3764
  pages: i,
3767
3765
  pub: a,
3768
3766
  title: o,
3769
- uri: u
3767
+ uri: c
3770
3768
  });
3771
- }, Ih = (e, t) => {
3769
+ }, kh = (e, t) => {
3772
3770
  const r = ke(e), n = Re(e), o = _e(e), s = e.querySelector(".book-title-link")?.textContent ?? void 0, i = Ie(e, r), a = Array.from(
3773
3771
  e.querySelectorAll('[data-qa="book"] > span')
3774
- ).map((m) => m.textContent), u = pt(e), c = a.find((m) => m.includes("pp."))?.match(/(\d+)-(\d+)/) ?? void 0, l = Je(e, r), f = Ee(t);
3772
+ ).map((m) => m.textContent), c = pt(e), u = a.find((m) => m.includes("pp."))?.match(/(\d+)-(\d+)/) ?? void 0, l = Je(e, r), f = Ee(t);
3775
3773
  return Q(y.Bookitem, {
3776
3774
  atitle: o,
3777
3775
  au: n,
3778
3776
  btitle: s,
3779
3777
  date: i,
3780
- epage: c?.[2],
3778
+ epage: u?.[2],
3781
3779
  pub: l,
3782
- pages: u,
3783
- spage: c?.[1],
3780
+ pages: c,
3781
+ spage: u?.[1],
3784
3782
  uri: f
3785
3783
  });
3786
- }, kh = (e, t) => {
3787
- const r = ke(e), n = Re(e), o = _e(e), s = Ie(e), i = pt(e), a = Je(e, r), u = Ee(t), c = $s(r);
3784
+ }, Ch = (e, t) => {
3785
+ const r = ke(e), n = Re(e), o = _e(e), s = Ie(e), i = pt(e), a = Je(e, r), c = Ee(t), u = $s(r);
3788
3786
  return Q(y.Document, {
3789
3787
  au: n,
3790
3788
  date: s,
3791
- doi: c,
3789
+ doi: u,
3792
3790
  pages: i,
3793
3791
  pub: a,
3794
3792
  title: o,
3795
- uri: u
3793
+ uri: c
3796
3794
  });
3797
- }, Ch = (e, t) => {
3795
+ }, Ph = (e, t) => {
3798
3796
  const r = ke(e), n = Re(e), o = Ie(e, r), s = _e(e), i = Ee(t);
3799
3797
  return ol({
3800
3798
  au: n,
@@ -3802,7 +3800,7 @@ const gh = (e) => {
3802
3800
  title: s,
3803
3801
  uri: i
3804
3802
  });
3805
- }, Ph = (e, t) => {
3803
+ }, Oh = (e, t) => {
3806
3804
  const { pub: r } = Ss(e), n = _e(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);
3807
3805
  return D(y.Journal, {
3808
3806
  eissn: o,
@@ -3813,7 +3811,7 @@ const gh = (e) => {
3813
3811
  });
3814
3812
  };
3815
3813
  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 || {});
3816
- const Oh = (e, t) => {
3814
+ const xh = (e, t) => {
3817
3815
  const r = ke(e), n = Re(e), o = Ie(e, r), s = _e(e), i = Je(e, r), a = Ee(t);
3818
3816
  return Ae({
3819
3817
  au: n,
@@ -3822,38 +3820,38 @@ const Oh = (e, t) => {
3822
3820
  title: s,
3823
3821
  uri: a
3824
3822
  });
3825
- }, xh = (e) => Object.values(oe).includes(e), Nh = (e) => {
3823
+ }, Nh = (e) => Object.values(oe).includes(e), zh = (e) => {
3826
3824
  if (e.querySelector(".journal_header-title"))
3827
3825
  return oe.Journal;
3828
3826
  if (e.querySelector(".journal-link"))
3829
3827
  return oe.Article;
3830
3828
  const n = e.querySelector(".content-type > span")?.textContent.toLowerCase().trim() ?? e.querySelector(".content-meta-data-label")?.textContent.toLowerCase().trim();
3831
- return xh(n) ? n : null;
3832
- }, zh = (e, t) => {
3833
- switch (Nh(e)) {
3829
+ return Nh(n) ? n : null;
3830
+ }, Lh = (e, t) => {
3831
+ switch (zh(e)) {
3834
3832
  case oe.Article:
3835
3833
  case oe.Serial:
3836
- return Ah(e, t);
3837
- case oe.Audio:
3838
3834
  return wh(e, t);
3839
- case oe.Book:
3835
+ case oe.Audio:
3840
3836
  return Rh(e, t);
3837
+ case oe.Book:
3838
+ return Ih(e, t);
3841
3839
  case oe.Chapter:
3842
3840
  case oe.ResearchReport:
3843
- return Ih(e, t);
3844
- case oe.Document:
3845
3841
  return kh(e, t);
3846
- case oe.Image:
3842
+ case oe.Document:
3847
3843
  return Ch(e, t);
3848
- case oe.Journal:
3844
+ case oe.Image:
3849
3845
  return Ph(e, t);
3850
- case oe.Video:
3846
+ case oe.Journal:
3851
3847
  return Oh(e, t);
3848
+ case oe.Video:
3849
+ return xh(e, t);
3852
3850
  default:
3853
3851
  return null;
3854
3852
  }
3855
- }, Lh = ({ document: e, url: t }) => {
3856
- const r = zh(e, t);
3853
+ }, Th = ({ document: e, url: t }) => {
3854
+ const r = Lh(e, t);
3857
3855
  return r ? w(r) : T();
3858
3856
  }, je = (e) => {
3859
3857
  if (e) {
@@ -3869,7 +3867,7 @@ const Oh = (e, t) => {
3869
3867
  const t = new Set(e.filter((r) => !!r));
3870
3868
  if (t.size !== 0)
3871
3869
  return [...t];
3872
- }, Th = (e) => {
3870
+ }, Zh = (e) => {
3873
3871
  const t = As(e.mainEntity.creator);
3874
3872
  return t ? [t] : void 0;
3875
3873
  }, Me = ({
@@ -3878,9 +3876,9 @@ const Oh = (e, t) => {
3878
3876
  }) => ({
3879
3877
  bibid: e,
3880
3878
  title: t
3881
- }), Zh = (e, t) => {
3879
+ }), qh = (e, t) => {
3882
3880
  const r = Ke(
3883
- ...(e && Th(e)) ?? [],
3881
+ ...(e && Zh(e)) ?? [],
3884
3882
  ...t.authors ?? []
3885
3883
  ), n = Ke(...t.eissns ?? []), o = Ke(
3886
3884
  e?.mainEntity.isbn ? Cr(e.mainEntity.isbn) : void 0,
@@ -3906,7 +3904,7 @@ const Oh = (e, t) => {
3906
3904
  title: e?.name ?? t.title,
3907
3905
  volume: e?.mainEntity.volumeNumber
3908
3906
  };
3909
- }, qh = (e) => D(y.Article, {
3907
+ }, jh = (e) => D(y.Article, {
3910
3908
  ...Me(e),
3911
3909
  au: e.authors,
3912
3910
  doi: e.doi,
@@ -3918,12 +3916,12 @@ const Oh = (e, t) => {
3918
3916
  pub: e.publisher,
3919
3917
  spage: e.spage,
3920
3918
  volume: e.volume
3921
- }), jh = (e) => Ae({
3919
+ }), Dh = (e) => Ae({
3922
3920
  ...Me(e),
3923
3921
  au: e.authors,
3924
3922
  date: e.date,
3925
3923
  pub: e.publisher
3926
- }), Dh = (e) => Q(y.Book, {
3924
+ }), Bh = (e) => Q(y.Book, {
3927
3925
  ...Me(e),
3928
3926
  au: e.authors,
3929
3927
  date: e.date,
@@ -3933,7 +3931,7 @@ const Oh = (e, t) => {
3933
3931
  isbn: e.isbn,
3934
3932
  pub: e.publisher,
3935
3933
  spage: e.spage
3936
- }), Bh = (e) => D(y.Journal, {
3934
+ }), Uh = (e) => D(y.Journal, {
3937
3935
  ...Me(e),
3938
3936
  date: e.date,
3939
3937
  doi: e.doi,
@@ -3946,7 +3944,7 @@ const Oh = (e, t) => {
3946
3944
  }), yn = k({
3947
3945
  "@type": J("Person"),
3948
3946
  name: pe([p(), j(p())])
3949
- }), Uh = we.extend({
3947
+ }), Fh = we.extend({
3950
3948
  identifier: k({
3951
3949
  "@type": p(),
3952
3950
  propertyID: p(),
@@ -3973,24 +3971,24 @@ const Oh = (e, t) => {
3973
3971
  volumeNumber: le(p())
3974
3972
  }),
3975
3973
  name: p()
3976
- }), Fh = (e) => {
3974
+ }), Vh = (e) => {
3977
3975
  const t = at(e);
3978
3976
  if (!t)
3979
3977
  return null;
3980
- const r = Fe(t), n = Uh.safeParse(r);
3978
+ const r = Fe(t), n = Fh.safeParse(r);
3981
3979
  return n.success ? n.data : null;
3982
- }, Vh = (e) => Ae({
3980
+ }, Jh = (e) => Ae({
3983
3981
  ...Me(e),
3984
3982
  au: e.authors,
3985
3983
  date: e.date,
3986
3984
  pub: e.publisher
3987
- }), Jh = /([0-9]{4}-[0-9]{1,2}-[0-9]{1,2}|[0-9]{4}-[0-9]{1,2}|[0-9]{4})/, $n = /(E?ISBN|E?ISSN|DOI)\s*:\s*/g, Lr = (e) => `*:has([title*="${e}" i]) + .item-details-element-container prm-highlight`, Mh = (e) => {
3985
+ }), Mh = /([0-9]{4}-[0-9]{1,2}-[0-9]{1,2}|[0-9]{4}-[0-9]{1,2}|[0-9]{4})/, $n = /(E?ISBN|E?ISSN|DOI)\s*:\s*/g, Lr = (e) => `*:has([title*="${e}" i]) + .item-details-element-container prm-highlight`, Wh = (e) => {
3988
3986
  if (!e)
3989
3987
  return;
3990
- const t = Jh.exec(e);
3988
+ const t = Mh.exec(e);
3991
3989
  if (t)
3992
3990
  return t.length > 1 ? t[1] : void 0;
3993
- }, Wh = (e) => {
3991
+ }, Gh = (e) => {
3994
3992
  const t = Array.from(
3995
3993
  e.querySelectorAll(Lr("Identifier"))
3996
3994
  ), r = {};
@@ -4003,22 +4001,22 @@ const Oh = (e, t) => {
4003
4001
  index: s.index,
4004
4002
  start: $n.lastIndex
4005
4003
  });
4006
- o.forEach(({ id: i, start: a }, u) => {
4007
- r[i] ??= [], r[i].push(n.substring(a, o[u + 1]?.index));
4004
+ o.forEach(({ id: i, start: a }, c) => {
4005
+ r[i] ??= [], r[i].push(n.substring(a, o[c + 1]?.index));
4008
4006
  });
4009
4007
  }), r;
4010
- }, Gh = (e) => Array.from(e.querySelectorAll(Lr("Author"))).filter(
4008
+ }, Xh = (e) => Array.from(e.querySelectorAll(Lr("Author"))).filter(
4011
4009
  (t) => !!t.textContent && t.parentElement !== null && t.parentElement.getAttribute("aria-hidden") !== "true"
4012
- ).map((t) => t.textContent.trim()), fe = (e, t) => e.querySelector(Lr(t))?.textContent.trim(), Xh = (e) => {
4013
- 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"), u = Gh(e), c = Wh(e), [l] = o?.split(",") ?? [], f = Mh(n ?? t), m = [...c.isbn ?? [], ...c.eisbn ?? []].map((g) => Cr(g)).filter((g) => !!g);
4010
+ ).map((t) => t.textContent.trim()), fe = (e, t) => e.querySelector(Lr(t))?.textContent.trim(), Hh = (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 = Xh(e), u = Gh(e), [l] = o?.split(",") ?? [], f = Wh(n ?? t), m = [...u.isbn ?? [], ...u.eisbn ?? []].map((g) => Cr(g)).filter((g) => !!g);
4014
4012
  return {
4015
- authors: u,
4013
+ authors: c,
4016
4014
  date: f,
4017
- dois: c.doi,
4015
+ dois: u.doi,
4018
4016
  edition: r,
4019
- eissns: c.eissn,
4017
+ eissns: u.eissn,
4020
4018
  isbns: m,
4021
- issns: c.issn,
4019
+ issns: u.issn,
4022
4020
  jtitle: l,
4023
4021
  lcn: a,
4024
4022
  publisher: s,
@@ -4026,33 +4024,33 @@ const Oh = (e, t) => {
4026
4024
  };
4027
4025
  };
4028
4026
  var ws = /* @__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))(ws || {});
4029
- const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4027
+ const Yh = (e) => Object.values(ws).includes(e), Kh = (e, t) => {
4030
4028
  const r = t?.mainEntity["@type"] ?? e.querySelector(".media-content-type")?.textContent ?? void 0;
4031
- if (Hh(r))
4029
+ if (Yh(r))
4032
4030
  return r;
4033
- }, Kh = ({ document: e }) => {
4034
- const t = Fh(e), r = Xh(e), n = Zh(t, r);
4035
- switch (Yh(e, t)) {
4031
+ }, Qh = ({ document: e }) => {
4032
+ const t = Vh(e), r = Hh(e), n = qh(t, r);
4033
+ switch (Kh(e, t)) {
4036
4034
  case "Article":
4037
- return w(qh(n));
4035
+ return w(jh(n));
4038
4036
  case "Book":
4039
- return w(Dh(n));
4037
+ return w(Bh(n));
4040
4038
  case "Periodical":
4041
4039
  case "Journal":
4042
- return w(Bh(n));
4040
+ return w(Uh(n));
4043
4041
  case "Audio CD":
4044
4042
  case "CreativeWork":
4045
- return w(jh(n));
4043
+ return w(Dh(n));
4046
4044
  case "Movie":
4047
4045
  case "Video":
4048
- return w(Vh(n));
4046
+ return w(Jh(n));
4049
4047
  default:
4050
4048
  return T();
4051
4049
  }
4052
- }, Qh = (e) => {
4050
+ }, ef = (e) => {
4053
4051
  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");
4054
4052
  return o?.startsWith("info:doi/") || n?.includes("Article") ? E.Article : o?.startsWith("urn:issn:") ? E.Journal : void 0;
4055
- }, ef = (e) => {
4053
+ }, tf = (e) => {
4056
4054
  const t = h(
4057
4055
  e,
4058
4056
  "name",
@@ -4064,29 +4062,29 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4064
4062
  issue: o,
4065
4063
  pages: s
4066
4064
  };
4067
- }, tf = (e) => {
4065
+ }, rf = (e) => {
4068
4066
  const t = h(e, "name", "DC.identifier");
4069
4067
  return (t ? t.split("info:doi/") : null)?.[1] ?? void 0;
4070
- }, rf = (e) => e.evaluate(
4068
+ }, nf = (e) => e.evaluate(
4071
4069
  '//*[@id="altLayoutPublisherLogo"]/p/a[1]',
4072
4070
  e,
4073
4071
  null,
4074
4072
  XPathResult.STRING_TYPE,
4075
4073
  null
4076
- ).stringValue, nf = (e) => {
4074
+ ).stringValue, of = (e) => {
4077
4075
  const [t, r] = e ? e.trim().split("-") : [void 0, void 0], n = r?.replace(/\(\d+\)/, "").trim();
4078
4076
  return {
4079
4077
  spage: t,
4080
4078
  epage: n
4081
4079
  };
4082
- }, of = (e) => {
4080
+ }, sf = (e) => {
4083
4081
  const t = h(e, "name", "DCTERMS.issued");
4084
4082
  if (!t)
4085
4083
  return;
4086
4084
  const n = /\d{4}/.exec(t);
4087
4085
  return n ? n[0] : void 0;
4088
- }, sf = (e) => {
4089
- const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = of(e), o = ef(e), s = o.journalTitle?.trim(), i = o.volume?.trim(), a = o.issue?.trim(), u = o.pages ? nf(o.pages) : void 0, c = u?.spage, l = u?.epage, f = te(e, "name", "DC.creator"), m = tf(e);
4086
+ }, af = (e) => {
4087
+ const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = sf(e), o = tf(e), s = o.journalTitle?.trim(), i = o.volume?.trim(), a = o.issue?.trim(), c = o.pages ? of(o.pages) : void 0, u = c?.spage, l = c?.epage, f = te(e, "name", "DC.creator"), m = rf(e);
4090
4088
  return D(y.Article, {
4091
4089
  au: f,
4092
4090
  jtitle: s,
@@ -4094,51 +4092,51 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4094
4092
  doi: m,
4095
4093
  issue: a,
4096
4094
  pub: r,
4097
- spage: c,
4095
+ spage: u,
4098
4096
  epage: l,
4099
4097
  atitle: t,
4100
4098
  volume: i
4101
4099
  });
4102
- }, af = (e) => {
4103
- const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = rf(e);
4100
+ }, cf = (e) => {
4101
+ const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = nf(e);
4104
4102
  return D(y.Journal, {
4105
4103
  issn: n,
4106
4104
  title: t,
4107
4105
  pub: r
4108
4106
  });
4109
- }, cf = ({
4107
+ }, uf = ({
4110
4108
  document: e
4111
4109
  }) => {
4112
- switch (Qh(e)) {
4110
+ switch (ef(e)) {
4113
4111
  case E.Article:
4114
- return w(sf(e));
4115
- case E.Journal:
4116
4112
  return w(af(e));
4113
+ case E.Journal:
4114
+ return w(cf(e));
4117
4115
  default:
4118
4116
  return T();
4119
4117
  }
4120
- }, uf = /^\d{4}-\d{3}[\dX]$/i, lf = (e) => uf.test(e), Rs = (e) => {
4121
- const t = e.filter(lf);
4118
+ }, lf = /^\d{4}-\d{3}[\dX]$/i, pf = (e) => lf.test(e), Rs = (e) => {
4119
+ const t = e.filter(pf);
4122
4120
  return t.length ? t : void 0;
4123
4121
  }, Tr = (e) => {
4124
4122
  const t = te(e, "name", "citation_author");
4125
4123
  return t.length ? t : void 0;
4126
- }, Zr = (e) => h(e, "name", "citation_publication_date")?.match(/^\d{4}/)?.[0], pf = (e) => h(e, "name", "citation_doi"), Is = (e) => {
4124
+ }, Zr = (e) => h(e, "name", "citation_publication_date")?.match(/^\d{4}/)?.[0], hf = (e) => h(e, "name", "citation_doi"), Is = (e) => {
4127
4125
  const t = te(e, "name", "citation_isbn");
4128
4126
  return t.length ? t.join(",") : void 0;
4129
- }, ks = (e) => Rs(te(e, "name", "citation_issn")), qr = (e) => h(e, "name", "citation_journal_title"), jr = (e) => h(e, "name", "citation_publisher"), ht = (e) => h(e, "name", "citation_title"), hf = (e) => h(e, "name", "citation_doi"), Dr = (e) => h(e, "name", "citation_firstpage"), Br = (e) => h(e, "name", "citation_lastpage"), ff = (e) => h(e, "name", "citation_issue"), mf = (e) => h(e, "name", "citation_volume"), df = (e) => D(y.Article, {
4127
+ }, ks = (e) => Rs(te(e, "name", "citation_issn")), qr = (e) => h(e, "name", "citation_journal_title"), jr = (e) => h(e, "name", "citation_publisher"), ht = (e) => h(e, "name", "citation_title"), ff = (e) => h(e, "name", "citation_doi"), Dr = (e) => h(e, "name", "citation_firstpage"), Br = (e) => h(e, "name", "citation_lastpage"), mf = (e) => h(e, "name", "citation_issue"), df = (e) => h(e, "name", "citation_volume"), gf = (e) => D(y.Article, {
4130
4128
  atitle: ht(e),
4131
4129
  au: Tr(e),
4132
4130
  date: Zr(e),
4133
- doi: pf(e),
4131
+ doi: hf(e),
4134
4132
  issn: ks(e)?.[0],
4135
- issue: ff(e),
4133
+ issue: mf(e),
4136
4134
  jtitle: qr(e),
4137
4135
  pub: jr(e),
4138
- volume: mf(e),
4136
+ volume: df(e),
4139
4137
  spage: Dr(e),
4140
4138
  epage: Br(e)
4141
- }), gf = (e) => Q(y.Bookitem, {
4139
+ }), vf = (e) => Q(y.Bookitem, {
4142
4140
  atitle: ht(e),
4143
4141
  au: Tr(e),
4144
4142
  btitle: qr(e),
@@ -4147,26 +4145,26 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4147
4145
  pub: jr(e),
4148
4146
  spage: Dr(e),
4149
4147
  epage: Br(e)
4150
- }), vf = (e) => sl({
4148
+ }), bf = (e) => sl({
4151
4149
  title: ht(e),
4152
4150
  au: Tr(e),
4153
4151
  date: Zr(e),
4154
4152
  pub: jr(e),
4155
4153
  spage: Dr(e),
4156
4154
  epage: Br(e)
4157
- }), Cs = (e) => !!e.isbn, bf = (e) => !!e.issn || e.type === "Article" && !!e.journalTitle || !Cs(e) && !!e.journalTitle, _f = (e) => !!e.title, Ef = (e) => {
4155
+ }), Cs = (e) => !!e.isbn, _f = (e) => !!e.issn || e.type === "Article" && !!e.journalTitle || !Cs(e) && !!e.journalTitle, Ef = (e) => !!e.title, yf = (e) => {
4158
4156
  const t = {
4159
- type: hf(e),
4157
+ type: ff(e),
4160
4158
  isbn: Is(e),
4161
4159
  issn: ks(e),
4162
4160
  journalTitle: qr(e),
4163
4161
  title: ht(e)
4164
4162
  };
4165
- return Cs(t) ? gf(e) : bf(t) ? df(e) : _f(t) ? vf(e) : null;
4166
- }, yf = ({ document: e }) => {
4167
- const t = Ef(e);
4163
+ return Cs(t) ? vf(e) : _f(t) ? gf(e) : Ef(t) ? bf(e) : null;
4164
+ }, $f = ({ document: e }) => {
4165
+ const t = yf(e);
4168
4166
  return t ? w(t) : T();
4169
- }, $f = k({
4167
+ }, Sf = k({
4170
4168
  "@content": p(),
4171
4169
  datePublished: p().optional(),
4172
4170
  mainEntity: k({
@@ -4183,26 +4181,26 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4183
4181
  }).optional(),
4184
4182
  isbn: p().optional()
4185
4183
  })
4186
- }), Sf = (e) => $f.safeParse(e).success, Af = (e) => {
4184
+ }), Af = (e) => Sf.safeParse(e).success, wf = (e) => {
4187
4185
  const t = e.textContent;
4188
4186
  if (!t)
4189
4187
  return null;
4190
4188
  try {
4191
4189
  const r = JSON.parse(t);
4192
- if (Sf(r))
4190
+ if (Af(r))
4193
4191
  return r;
4194
4192
  } catch {
4195
4193
  return null;
4196
4194
  }
4197
4195
  return null;
4198
- }, wf = ({ document: e }) => {
4196
+ }, Rf = ({ document: e }) => {
4199
4197
  const t = at(e);
4200
4198
  if (!t)
4201
4199
  return T();
4202
- const r = Af(t);
4200
+ const r = wf(t);
4203
4201
  if (!r)
4204
4202
  return T();
4205
- const n = r.mainEntity.type, o = r.mainEntity.author?.map((c) => c.name), s = r.datePublished?.substring(0, 4), i = r.mainEntity.name, a = r.mainEntity.isbn, u = r.mainEntity.publisher?.name;
4203
+ 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;
4206
4204
  switch (n) {
4207
4205
  case "Book":
4208
4206
  return w(
@@ -4211,13 +4209,13 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4211
4209
  date: s,
4212
4210
  title: i,
4213
4211
  isbn: a,
4214
- pub: u
4212
+ pub: c
4215
4213
  })
4216
4214
  );
4217
4215
  default:
4218
4216
  return T();
4219
4217
  }
4220
- }, Rf = we.extend({
4218
+ }, If = we.extend({
4221
4219
  "@type": p().optional(),
4222
4220
  name: p().optional(),
4223
4221
  copyrightYear: Bo().optional(),
@@ -4231,7 +4229,7 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4231
4229
  name: p()
4232
4230
  })
4233
4231
  ).optional()
4234
- }), If = (e) => Rf.safeParse(e).success, kf = ({
4232
+ }), kf = (e) => If.safeParse(e).success, Cf = ({
4235
4233
  document: e,
4236
4234
  url: t
4237
4235
  }) => {
@@ -4239,9 +4237,9 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4239
4237
  if (!r)
4240
4238
  return T();
4241
4239
  const n = Fe(r);
4242
- if (!n || !If(n))
4240
+ if (!n || !kf(n))
4243
4241
  return T();
4244
- 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, u = zr(n.publisher?.map((l) => l.name)), c = h(e, "property", "og:book:isbn");
4242
+ 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 = zr(n.publisher?.map((l) => l.name)), u = h(e, "property", "og:book:isbn");
4245
4243
  switch (o) {
4246
4244
  case "Book":
4247
4245
  return w(
@@ -4249,23 +4247,23 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4249
4247
  au: s,
4250
4248
  date: i,
4251
4249
  title: a,
4252
- isbn: c,
4253
- pub: u,
4250
+ isbn: u,
4251
+ pub: c,
4254
4252
  uri: t
4255
4253
  })
4256
4254
  );
4257
4255
  default:
4258
4256
  return T();
4259
4257
  }
4260
- }, Cf = (e) => {
4258
+ }, Pf = (e) => {
4261
4259
  const t = Array.from(e.querySelectorAll("a[rel=author]")).map((r) => r.textContent.trim()).filter(Boolean);
4262
4260
  return t.length ? t : void 0;
4263
- }, Pf = (e) => {
4261
+ }, Of = (e) => {
4264
4262
  const t = Array.from(e.querySelectorAll("strong")).filter((r) => r.textContent.startsWith("ISBN")).map((r) => r.nextElementSibling?.textContent.trim());
4265
4263
  if (t.length !== 0)
4266
4264
  return t[0]?.replace(/\s+/, ",");
4267
- }, Of = ({ url: e, document: t }) => {
4268
- const r = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, n = Cf(t), o = h(t, "property", "article:published_time"), s = Pf(t), i = Q(y.Book, {
4265
+ }, xf = ({ url: e, document: t }) => {
4266
+ const r = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, n = Pf(t), o = h(t, "property", "article:published_time"), s = Of(t), i = Q(y.Book, {
4269
4267
  au: n,
4270
4268
  date: o?.substring(0, 4),
4271
4269
  isbn: s,
@@ -4274,31 +4272,31 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4274
4272
  uri: e
4275
4273
  });
4276
4274
  return w(i);
4277
- }, xf = ({
4275
+ }, Nf = ({
4278
4276
  document: e,
4279
4277
  url: t
4280
4278
  }) => {
4281
- switch (Nf(t)) {
4279
+ switch (zf(t)) {
4282
4280
  case E.Chapter:
4283
- return w(qf(e));
4284
- case E.Book:
4285
4281
  return w(jf(e));
4282
+ case E.Book:
4283
+ return w(Df(e));
4286
4284
  case E.Article:
4287
- return w(zf(e));
4288
- case E.Journal:
4289
4285
  return w(Lf(e));
4286
+ case E.Journal:
4287
+ return w(Tf(e));
4290
4288
  default:
4291
4289
  return T();
4292
4290
  }
4293
- }, Nf = (e) => {
4291
+ }, zf = (e) => {
4294
4292
  const { pathname: t } = new URL(e);
4295
4293
  return t.includes("/books/abs/") ? E.Chapter : t.includes("/books/") ? E.Book : /\/journals\/.+\/article\//.exec(t) != null ? E.Article : t.includes("/journals/") ? E.Journal : E.None;
4296
- }, zf = (e) => {
4297
- 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"), u = h(
4294
+ }, Lf = (e) => {
4295
+ 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(
4298
4296
  e,
4299
4297
  "name",
4300
4298
  "citation_publication_date"
4301
- )?.substring(0, 4), c = h(e, "name", "citation_publisher"), l = Ps(e), f = Rs(
4299
+ )?.substring(0, 4), u = h(e, "name", "citation_publisher"), l = Ps(e), f = Rs(
4302
4300
  te(e, "name", "citation_issn")
4303
4301
  );
4304
4302
  return D(y.Article, {
@@ -4311,11 +4309,11 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4311
4309
  issn: f?.[0],
4312
4310
  spage: i,
4313
4311
  epage: a,
4314
- date: u,
4315
- pub: c
4312
+ date: c,
4313
+ pub: u
4316
4314
  });
4317
- }, Lf = (e) => {
4318
- const t = Tf(e), r = Zf(e), n = r.find(
4315
+ }, Tf = (e) => {
4316
+ const t = Zf(e), r = qf(e), n = r.find(
4319
4317
  (a) => a.type === "Print"
4320
4318
  /* Print */
4321
4319
  ), o = r.find(
@@ -4327,15 +4325,15 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4327
4325
  issn: s,
4328
4326
  eissn: i
4329
4327
  });
4330
- }, Tf = (e) => e.querySelector("h1.title")?.textContent.trim() ?? void 0, Zf = (e) => {
4328
+ }, Zf = (e) => e.querySelector("h1.title")?.textContent.trim() ?? void 0, qf = (e) => {
4331
4329
  const r = Array.from(e.querySelectorAll("span.bold")).find(
4332
4330
  (s) => s.textContent.trim() === "ISSN:"
4333
4331
  ), n = /^([0-9]{4}-[0-9]{3}[0-9X]) \((Print|Online)\)/, o = [];
4334
4332
  return r && r.parentElement?.querySelectorAll("span.value")?.forEach((i) => {
4335
- const a = i.textContent.trim(), u = n.exec(a);
4336
- u && o.push({ value: u[1], type: u[2] });
4333
+ const a = i.textContent.trim(), c = n.exec(a);
4334
+ c && o.push({ value: c[1], type: c[2] });
4337
4335
  }), o;
4338
- }, qf = (e) => {
4336
+ }, jf = (e) => {
4339
4337
  const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_inbook_title"), n = h(e, "name", "citation_doi"), o = h(
4340
4338
  e,
4341
4339
  "name",
@@ -4348,7 +4346,7 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4348
4346
  date: o,
4349
4347
  pub: s
4350
4348
  });
4351
- }, jf = (e) => {
4349
+ }, Df = (e) => {
4352
4350
  const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_doi"), n = h(e, "name", "citation_isbn"), o = h(
4353
4351
  e,
4354
4352
  "name",
@@ -4365,7 +4363,7 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4365
4363
  }, Ps = (e) => {
4366
4364
  const t = te(e, "name", "citation_author");
4367
4365
  return t.length ? t : void 0;
4368
- }, Df = (e) => {
4366
+ }, Bf = (e) => {
4369
4367
  switch (h(e, "property", "og:type")) {
4370
4368
  case "Article":
4371
4369
  return "Article";
@@ -4375,7 +4373,7 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4375
4373
  return;
4376
4374
  }
4377
4375
  };
4378
- function Bf(e) {
4376
+ function Uf(e) {
4379
4377
  const t = h(e, "property", "og:title"), r = h(e, "name", "dc.Publisher"), n = h(e, "name", "publication_doi");
4380
4378
  return w(
4381
4379
  D(y.Journal, {
@@ -4385,7 +4383,7 @@ function Bf(e) {
4385
4383
  })
4386
4384
  );
4387
4385
  }
4388
- function Uf(e) {
4386
+ function Ff(e) {
4389
4387
  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");
4390
4388
  return w(
4391
4389
  D(y.Article, {
@@ -4398,16 +4396,16 @@ function Uf(e) {
4398
4396
  })
4399
4397
  );
4400
4398
  }
4401
- const Ff = ({ document: e }) => {
4402
- switch (Df(e)) {
4399
+ const Vf = ({ document: e }) => {
4400
+ switch (Bf(e)) {
4403
4401
  case "Journal":
4404
- return Bf(e);
4405
- case "Article":
4406
4402
  return Uf(e);
4403
+ case "Article":
4404
+ return Ff(e);
4407
4405
  default:
4408
4406
  return T();
4409
4407
  }
4410
- }, Vf = (e) => {
4408
+ }, Jf = (e) => {
4411
4409
  if (!e)
4412
4410
  return;
4413
4411
  const [t, r] = e.trim().split("-");
@@ -4415,19 +4413,19 @@ const Ff = ({ document: e }) => {
4415
4413
  spage: t,
4416
4414
  epage: r
4417
4415
  };
4418
- }, Jf = (e) => {
4416
+ }, Mf = (e) => {
4419
4417
  const { pathname: t } = new URL(e);
4420
4418
  if (t.includes("/article/"))
4421
4419
  return E.Article;
4422
- }, Mf = (e) => {
4420
+ }, Wf = (e) => {
4423
4421
  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(
4424
4422
  0,
4425
4423
  4
4426
- ), i = h(e, "name", "DC.Source.Volume"), a = h(e, "name", "DC.Source.Issue"), u = h(e, "name", "DC.Identifier.URI"), c = h(
4424
+ ), i = h(e, "name", "DC.Source.Volume"), a = h(e, "name", "DC.Source.Issue"), c = h(e, "name", "DC.Identifier.URI"), u = h(
4427
4425
  e,
4428
4426
  "name",
4429
4427
  "DC.Identifier.pageNumber"
4430
- ), l = c ? Vf(c) : void 0, f = l?.spage, m = l?.epage;
4428
+ ), l = u ? Jf(u) : void 0, f = l?.spage, m = l?.epage;
4431
4429
  return D(y.Article, {
4432
4430
  jtitle: t,
4433
4431
  atitle: r,
@@ -4438,17 +4436,17 @@ const Ff = ({ document: e }) => {
4438
4436
  epage: m,
4439
4437
  volume: i,
4440
4438
  issue: a,
4441
- uri: u
4439
+ uri: c
4442
4440
  });
4443
- }, Wf = ({ document: e, url: t }) => {
4444
- switch (Jf(t)) {
4441
+ }, Gf = ({ document: e, url: t }) => {
4442
+ switch (Mf(t)) {
4445
4443
  case E.Article:
4446
- return w(Mf(e));
4444
+ return w(Wf(e));
4447
4445
  default:
4448
4446
  return T();
4449
4447
  }
4450
- }, Gf = (e) => {
4451
- switch (Xf(e)) {
4448
+ }, Xf = (e) => {
4449
+ switch (Hf(e)) {
4452
4450
  case "eBook":
4453
4451
  return "Book";
4454
4452
  case "Reference":
@@ -4456,9 +4454,9 @@ const Ff = ({ document: e }) => {
4456
4454
  default:
4457
4455
  return;
4458
4456
  }
4459
- }, Xf = (e) => e.querySelector("#vol-contentType a")?.textContent ?? void 0;
4460
- function Hf(e, t) {
4461
- const r = Os(e), n = br(e), o = xs(e), s = Ns(e), i = zs(e), a = Ls(e), u = br(e), c = t, { startPage: l, endPage: f } = Ts(e) ?? {};
4457
+ }, Hf = (e) => e.querySelector("#vol-contentType a")?.textContent ?? void 0;
4458
+ function Yf(e, t) {
4459
+ const r = Os(e), n = br(e), o = xs(e), s = Ns(e), i = zs(e), a = Ls(e), c = br(e), u = t, { startPage: l, endPage: f } = Ts(e) ?? {};
4462
4460
  return w(
4463
4461
  Q(y.Book, {
4464
4462
  au: r,
@@ -4469,13 +4467,13 @@ function Hf(e, t) {
4469
4467
  isbn: i,
4470
4468
  pub: a,
4471
4469
  spage: l,
4472
- title: u,
4473
- uri: c
4470
+ title: c,
4471
+ uri: u
4474
4472
  })
4475
4473
  );
4476
4474
  }
4477
- function Yf(e, t) {
4478
- const r = Os(e), n = Sn(e), o = br(e), s = xs(e), i = Ns(e), a = zs(e), u = Ls(e), c = Sn(e), l = t, { startPage: f, endPage: m } = Ts(e) ?? {};
4475
+ function Kf(e, t) {
4476
+ const r = Os(e), n = Sn(e), o = br(e), s = xs(e), i = Ns(e), a = zs(e), c = Ls(e), u = Sn(e), l = t, { startPage: f, endPage: m } = Ts(e) ?? {};
4479
4477
  return w(
4480
4478
  Q(y.Book, {
4481
4479
  au: r,
@@ -4485,9 +4483,9 @@ function Yf(e, t) {
4485
4483
  doi: i,
4486
4484
  epage: m,
4487
4485
  isbn: a,
4488
- pub: u,
4486
+ pub: c,
4489
4487
  spage: f,
4490
- title: c,
4488
+ title: u,
4491
4489
  uri: l
4492
4490
  })
4493
4491
  );
@@ -4497,31 +4495,31 @@ const Os = (e) => {
4497
4495
  "div#article_author p.author-bio b"
4498
4496
  ), r = Array.from(t).map((n) => n.textContent).filter((n) => !!n).map((n) => n.trim());
4499
4497
  return r.length > 0 ? r : void 0;
4500
- }, ze = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, Kf = (e) => h(e, "property", "og:title"), br = (e) => ze(e, "titlevalue") ?? Kf(e), Sn = (e) => ze(e, "chapter-title-squid"), xs = (e) => ze(e, "pubdate-squid"), Ns = (e) => ze(e, "doi-squid"), zs = (e) => ze(e, "isbn-squid"), Ls = (e) => ze(e, "pubname-squid"), Ts = (e) => {
4498
+ }, ze = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, Qf = (e) => h(e, "property", "og:title"), br = (e) => ze(e, "titlevalue") ?? Qf(e), Sn = (e) => ze(e, "chapter-title-squid"), xs = (e) => ze(e, "pubdate-squid"), Ns = (e) => ze(e, "doi-squid"), zs = (e) => ze(e, "isbn-squid"), Ls = (e) => ze(e, "pubname-squid"), Ts = (e) => {
4501
4499
  const t = e.querySelector("#pageRange")?.textContent ?? void 0;
4502
4500
  if (!t) return;
4503
4501
  const n = /(\d+)–(\d+)/.exec(t);
4504
4502
  if (n)
4505
4503
  return { startPage: n[1], endPage: n[2] };
4506
- }, Qf = ({
4504
+ }, em = ({
4507
4505
  document: e,
4508
4506
  url: t
4509
4507
  }) => {
4510
- switch (Gf(e)) {
4508
+ switch (Xf(e)) {
4511
4509
  case "Book":
4512
- return Hf(e, t);
4513
- case "Chapter":
4514
4510
  return Yf(e, t);
4511
+ case "Chapter":
4512
+ return Kf(e, t);
4515
4513
  default:
4516
4514
  return T();
4517
4515
  }
4518
- }, em = (e, t) => e.evaluate(
4516
+ }, tm = (e, t) => e.evaluate(
4519
4517
  `//*[@class="singleRecord_view_label"][contains(text(), "${t}")]/following-sibling::*[@class="singleRecord_view_data"]`,
4520
4518
  e,
4521
4519
  null,
4522
4520
  XPathResult.STRING_TYPE
4523
- ).stringValue.toLowerCase().trim(), tm = (e) => {
4524
- switch (em(e, "Medium")) {
4521
+ ).stringValue.toLowerCase().trim(), rm = (e) => {
4522
+ switch (tm(e, "Medium")) {
4525
4523
  case "book":
4526
4524
  case "e-book":
4527
4525
  return y.Book;
@@ -4530,16 +4528,16 @@ const Os = (e) => {
4530
4528
  default:
4531
4529
  return y.Unknown;
4532
4530
  }
4533
- }, rm = (e) => {
4534
- delete e.rft_id;
4535
4531
  }, nm = (e) => {
4532
+ delete e.rft_id;
4533
+ }, om = (e) => {
4536
4534
  const t = kr(e);
4537
4535
  if (xr(t)) {
4538
- const r = tm(e.document);
4539
- t.resource.genre = r, rm(t.resource);
4536
+ const r = rm(e.document);
4537
+ t.resource.genre = r, nm(t.resource);
4540
4538
  }
4541
4539
  return t;
4542
- }, om = (e) => {
4540
+ }, sm = (e) => {
4543
4541
  const t = h(e, "name", "type")?.toLowerCase(), r = h(e, "name", "og:type")?.toLowerCase(), n = h(
4544
4542
  e,
4545
4543
  "name",
@@ -4550,10 +4548,10 @@ const Os = (e) => {
4550
4548
  const o = h(e, "name", "twitter:title")?.trim(), s = h(e, "name", "description")?.trim();
4551
4549
  if (o || s)
4552
4550
  return E.Webpage;
4553
- }, sm = (e) => {
4554
- 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"), u = te(e, "name", "citation_author");
4551
+ }, im = (e) => {
4552
+ 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");
4555
4553
  return D(y.Article, {
4556
- au: u,
4554
+ au: c,
4557
4555
  jtitle: s,
4558
4556
  date: n,
4559
4557
  doi: o,
@@ -4562,34 +4560,34 @@ const Os = (e) => {
4562
4560
  title: t,
4563
4561
  volume: i
4564
4562
  });
4565
- }, im = (e, t) => {
4563
+ }, am = (e, t) => {
4566
4564
  const r = h(t, "name", "twitter:title");
4567
4565
  return Rr({
4568
4566
  uri: e,
4569
4567
  title: r
4570
4568
  });
4571
- }, am = ({
4569
+ }, cm = ({
4572
4570
  url: e,
4573
4571
  document: t
4574
4572
  }) => {
4575
- switch (om(t)) {
4573
+ switch (sm(t)) {
4576
4574
  case E.Article:
4577
- return w(sm(t));
4575
+ return w(im(t));
4578
4576
  case E.Webpage:
4579
- return w(im(e, t));
4577
+ return w(am(e, t));
4580
4578
  }
4581
4579
  return T();
4582
- }, cm = ({
4580
+ }, um = ({
4583
4581
  document: e
4584
4582
  }) => Array.from(
4585
4583
  e.querySelectorAll(
4586
4584
  ".availability.documentSummaryAvailability.availabilityContent"
4587
4585
  )
4588
- ).length <= 1 ? T() : $l(), um = /([0-9]{4})\s+at/;
4589
- function lm(e) {
4586
+ ).length <= 1 ? T() : $l(), lm = /([0-9]{4})\s+at/;
4587
+ function pm(e) {
4590
4588
  if (!e)
4591
4589
  return;
4592
- const t = um.exec(e);
4590
+ const t = lm.exec(e);
4593
4591
  if (t && t.length > 1)
4594
4592
  return t[1];
4595
4593
  }
@@ -4598,7 +4596,7 @@ function An(e, t) {
4598
4596
  if (r.length !== 0)
4599
4597
  return r[0].textContent;
4600
4598
  }
4601
- function pm(e) {
4599
+ function hm(e) {
4602
4600
  const t = {};
4603
4601
  return Array.from(e.getElementsByTagName("li")).reduce(
4604
4602
  (r, n) => {
@@ -4608,23 +4606,23 @@ function pm(e) {
4608
4606
  t
4609
4607
  );
4610
4608
  }
4611
- function hm(e) {
4609
+ function fm(e) {
4612
4610
  const t = e.getElementsByClassName("information");
4613
4611
  if (t.length === 0)
4614
4612
  return {};
4615
- const r = pm(t[0]), n = lm(r.Published), o = r.Show;
4613
+ const r = hm(t[0]), n = pm(r.Published), o = r.Show;
4616
4614
  return {
4617
4615
  date: n,
4618
4616
  series: o
4619
4617
  };
4620
4618
  }
4621
- const fm = ({
4619
+ const mm = ({
4622
4620
  url: e,
4623
4621
  document: t
4624
4622
  }) => {
4625
4623
  if (!new URL(e).searchParams.has("i"))
4626
4624
  return T();
4627
- const n = y.AudioDocument, o = h(t, "property", "og:site_name"), s = h(t, "property", "og:title"), i = hm(t);
4625
+ const n = y.AudioDocument, o = h(t, "property", "og:site_name"), s = h(t, "property", "og:title"), i = fm(t);
4628
4626
  return w({
4629
4627
  genre: n,
4630
4628
  pub: o,
@@ -4632,14 +4630,14 @@ const fm = ({
4632
4630
  uri: e,
4633
4631
  ...i
4634
4632
  });
4635
- }, mm = (e) => {
4633
+ }, dm = (e) => {
4636
4634
  const t = h(e, "name", "citation_date");
4637
4635
  return t ? t.split("/").find((o) => /^\d{4}/.test(o)) ?? void 0 : void 0;
4638
- }, dm = (e) => {
4636
+ }, gm = (e) => {
4639
4637
  const t = e.querySelector("#arxiv-doi-link")?.textContent;
4640
4638
  return t ? t.replace("https://doi.org/", "").trim() : void 0;
4641
- }, gm = ({ document: e }) => {
4642
- const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_pdf_url"), n = te(e, "name", "citation_author"), o = mm(e), s = dm(e);
4639
+ }, vm = ({ document: e }) => {
4640
+ const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_pdf_url"), n = te(e, "name", "citation_author"), o = dm(e), s = gm(e);
4643
4641
  return !t && n.length === 0 && !o && !s ? T() : w(
4644
4642
  D(y.Article, {
4645
4643
  au: n,
@@ -4657,7 +4655,7 @@ const wn = {
4657
4655
  Z3988SearchResult: dh,
4658
4656
  Amazon: Ol,
4659
4657
  CupOfJo: Ql,
4660
- Jstor: Lh,
4658
+ Jstor: Th,
4661
4659
  Youtube: jp,
4662
4660
  SagePub: mp,
4663
4661
  SageVideo: mh,
@@ -4668,25 +4666,25 @@ const wn = {
4668
4666
  VuFind: Lp,
4669
4667
  ClinicalKey: Vl,
4670
4668
  DOAJ: op,
4671
- Primo: Kh,
4672
- IngentaConnect: cf,
4673
- Ebscohost: yf,
4674
- OpenStax: wf,
4675
- OpenTextbook: kf,
4676
- Milne: Of,
4677
- CambridgeJournalsOnline: xf,
4678
- AhaJournals: Ff,
4679
- Ijees: Wf,
4680
- BloomsburyCollections: Qf,
4681
- HeritageCirqa: nm,
4682
- BritishMedicalJournal: am,
4683
- SummonSearchResult: cm,
4684
- ApplePodcasts: fm,
4685
- Arxiv: gm
4686
- }, vm = "5.25.0", Zs = () => vm, bm = ["com.au", "com", "ca", "co.uk", "de", "fr", "nl"], _m = bm.flatMap((e) => [
4669
+ Primo: Qh,
4670
+ IngentaConnect: uf,
4671
+ Ebscohost: $f,
4672
+ OpenStax: Rf,
4673
+ OpenTextbook: Cf,
4674
+ Milne: xf,
4675
+ CambridgeJournalsOnline: Nf,
4676
+ AhaJournals: Vf,
4677
+ Ijees: Gf,
4678
+ BloomsburyCollections: em,
4679
+ HeritageCirqa: om,
4680
+ BritishMedicalJournal: cm,
4681
+ SummonSearchResult: um,
4682
+ ApplePodcasts: mm,
4683
+ Arxiv: vm
4684
+ }, bm = "5.26.0", Zs = () => bm, _m = ["com.au", "com", "ca", "co.uk", "de", "fr", "nl"], Em = _m.flatMap((e) => [
4687
4685
  `amazon.${e}`,
4688
4686
  `www.amazon.${e}`
4689
- ]), Rd = {
4687
+ ]), Id = {
4690
4688
  version: Zs(),
4691
4689
  siteRegistrations: [
4692
4690
  {
@@ -4719,7 +4717,7 @@ const wn = {
4719
4717
  parsers: [L.ScienceDirect]
4720
4718
  },
4721
4719
  {
4722
- matcher: { hostnames: _m },
4720
+ matcher: { hostnames: Em },
4723
4721
  name: "Amazon",
4724
4722
  parsers: [L.Amazon]
4725
4723
  },
@@ -4899,13 +4897,13 @@ const wn = {
4899
4897
  name: p(),
4900
4898
  parsers: j(p()),
4901
4899
  libraryVersionRange: p().optional()
4902
- }), Em = k({
4900
+ }), ym = k({
4903
4901
  siteRegistrations: j(Bs),
4904
4902
  version: p()
4905
- }), Id = (e) => Em.safeParse(e).success, kd = (e) => Bs.safeParse(e).success, Cd = (e) => Ds.safeParse(e).success, ym = (e) => Object.values(L).includes(e), $m = (e) => typeof e == "object" && e !== null, Sm = k({
4903
+ }), kd = (e) => ym.safeParse(e).success, Cd = (e) => Bs.safeParse(e).success, Pd = (e) => Ds.safeParse(e).success, $m = (e) => Object.values(L).includes(e), Sm = (e) => typeof e == "object" && e !== null, Am = k({
4906
4904
  url: p(),
4907
- document: el($m)
4908
- }), Pd = (e) => Sm.safeParse(e).success;
4905
+ document: el(Sm)
4906
+ }), Od = (e) => Am.safeParse(e).success;
4909
4907
  var Qe = { exports: {} }, At, Rn;
4910
4908
  function ft() {
4911
4909
  if (Rn) return At;
@@ -4945,7 +4943,7 @@ function We() {
4945
4943
  MAX_LENGTH: o
4946
4944
  } = ft(), s = mt();
4947
4945
  t = e.exports = {};
4948
- const i = t.re = [], a = t.safeRe = [], u = t.src = [], c = t.safeSrc = [], l = t.t = {};
4946
+ const i = t.re = [], a = t.safeRe = [], c = t.src = [], u = t.safeSrc = [], l = t.t = {};
4949
4947
  let f = 0;
4950
4948
  const m = "[a-zA-Z0-9-]", g = [
4951
4949
  ["\\s", 1],
@@ -4957,9 +4955,9 @@ function We() {
4957
4955
  return P;
4958
4956
  }, v = (P, Z, H) => {
4959
4957
  const N = C(Z), B = f++;
4960
- s(P, B, Z), l[P] = B, u[B] = Z, c[B] = N, i[B] = new RegExp(Z, H ? "g" : void 0), a[B] = new RegExp(N, H ? "g" : void 0);
4958
+ 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);
4961
4959
  };
4962
- v("NUMERICIDENTIFIER", "0|[1-9]\\d*"), v("NUMERICIDENTIFIERLOOSE", "\\d+"), v("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${m}*`), v("MAINVERSION", `(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`), v("MAINVERSIONLOOSE", `(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`), v("PRERELEASEIDENTIFIER", `(?:${u[l.NONNUMERICIDENTIFIER]}|${u[l.NUMERICIDENTIFIER]})`), v("PRERELEASEIDENTIFIERLOOSE", `(?:${u[l.NONNUMERICIDENTIFIER]}|${u[l.NUMERICIDENTIFIERLOOSE]})`), v("PRERELEASE", `(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`), v("PRERELEASELOOSE", `(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`), v("BUILDIDENTIFIER", `${m}+`), v("BUILD", `(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`), v("FULLPLAIN", `v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`), v("FULL", `^${u[l.FULLPLAIN]}$`), v("LOOSEPLAIN", `[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`), v("LOOSE", `^${u[l.LOOSEPLAIN]}$`), v("GTLT", "((?:<|>)?=?)"), v("XRANGEIDENTIFIERLOOSE", `${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), v("XRANGEIDENTIFIER", `${u[l.NUMERICIDENTIFIER]}|x|X|\\*`), v("XRANGEPLAIN", `[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`), v("XRANGEPLAINLOOSE", `[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`), v("XRANGE", `^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`), v("XRANGELOOSE", `^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`), v("COERCEPLAIN", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`), v("COERCE", `${u[l.COERCEPLAIN]}(?:$|[^\\d])`), v("COERCEFULL", u[l.COERCEPLAIN] + `(?:${u[l.PRERELEASE]})?(?:${u[l.BUILD]})?(?:$|[^\\d])`), v("COERCERTL", u[l.COERCE], !0), v("COERCERTLFULL", u[l.COERCEFULL], !0), v("LONETILDE", "(?:~>?)"), v("TILDETRIM", `(\\s*)${u[l.LONETILDE]}\\s+`, !0), t.tildeTrimReplace = "$1~", v("TILDE", `^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`), v("TILDELOOSE", `^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`), v("LONECARET", "(?:\\^)"), v("CARETTRIM", `(\\s*)${u[l.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", v("CARET", `^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`), v("CARETLOOSE", `^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`), v("COMPARATORLOOSE", `^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`), v("COMPARATOR", `^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`), v("COMPARATORTRIM", `(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`, !0), t.comparatorTrimReplace = "$1$2$3", v("HYPHENRANGE", `^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`), v("HYPHENRANGELOOSE", `^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`), v("STAR", "(<|>)?=?\\s*\\*"), v("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), v("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
4960
+ 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*$");
4963
4961
  })(Qe, Qe.exports)), Qe.exports;
4964
4962
  }
4965
4963
  var Rt, Cn;
@@ -4974,6 +4972,8 @@ function Us() {
4974
4972
  if (Pn) return It;
4975
4973
  Pn = 1;
4976
4974
  const e = /^[0-9]+$/, t = (n, o) => {
4975
+ if (typeof n == "number" && typeof o == "number")
4976
+ return n === o ? 0 : n < o ? -1 : 1;
4977
4977
  const s = e.test(n), i = e.test(o);
4978
4978
  return s && i && (n = +n, o = +o), n === o ? 0 : s && !i ? -1 : i && !s ? 1 : n < o ? -1 : 1;
4979
4979
  };
@@ -4988,22 +4988,22 @@ function ne() {
4988
4988
  On = 1;
4989
4989
  const e = mt(), { MAX_LENGTH: t, MAX_SAFE_INTEGER: r } = ft(), { safeRe: n, t: o } = We(), s = Ur(), { compareIdentifiers: i } = Us();
4990
4990
  class a {
4991
- constructor(c, l) {
4992
- if (l = s(l), c instanceof a) {
4993
- if (c.loose === !!l.loose && c.includePrerelease === !!l.includePrerelease)
4994
- return c;
4995
- c = c.version;
4996
- } else if (typeof c != "string")
4997
- throw new TypeError(`Invalid version. Must be a string. Got type "${typeof c}".`);
4998
- if (c.length > t)
4991
+ constructor(u, l) {
4992
+ if (l = s(l), u instanceof a) {
4993
+ if (u.loose === !!l.loose && u.includePrerelease === !!l.includePrerelease)
4994
+ return u;
4995
+ u = u.version;
4996
+ } else if (typeof u != "string")
4997
+ throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);
4998
+ if (u.length > t)
4999
4999
  throw new TypeError(
5000
5000
  `version is longer than ${t} characters`
5001
5001
  );
5002
- e("SemVer", c, l), this.options = l, this.loose = !!l.loose, this.includePrerelease = !!l.includePrerelease;
5003
- const f = c.trim().match(l.loose ? n[o.LOOSE] : n[o.FULL]);
5002
+ e("SemVer", u, l), this.options = l, this.loose = !!l.loose, this.includePrerelease = !!l.includePrerelease;
5003
+ const f = u.trim().match(l.loose ? n[o.LOOSE] : n[o.FULL]);
5004
5004
  if (!f)
5005
- throw new TypeError(`Invalid Version: ${c}`);
5006
- if (this.raw = c, this.major = +f[1], this.minor = +f[2], this.patch = +f[3], this.major > r || this.major < 0)
5005
+ throw new TypeError(`Invalid Version: ${u}`);
5006
+ if (this.raw = u, this.major = +f[1], this.minor = +f[2], this.patch = +f[3], this.major > r || this.major < 0)
5007
5007
  throw new TypeError("Invalid major version");
5008
5008
  if (this.minor > r || this.minor < 0)
5009
5009
  throw new TypeError("Invalid minor version");
@@ -5024,27 +5024,27 @@ function ne() {
5024
5024
  toString() {
5025
5025
  return this.version;
5026
5026
  }
5027
- compare(c) {
5028
- if (e("SemVer.compare", this.version, this.options, c), !(c instanceof a)) {
5029
- if (typeof c == "string" && c === this.version)
5027
+ compare(u) {
5028
+ if (e("SemVer.compare", this.version, this.options, u), !(u instanceof a)) {
5029
+ if (typeof u == "string" && u === this.version)
5030
5030
  return 0;
5031
- c = new a(c, this.options);
5031
+ u = new a(u, this.options);
5032
5032
  }
5033
- return c.version === this.version ? 0 : this.compareMain(c) || this.comparePre(c);
5033
+ return u.version === this.version ? 0 : this.compareMain(u) || this.comparePre(u);
5034
5034
  }
5035
- compareMain(c) {
5036
- return c instanceof a || (c = new a(c, this.options)), i(this.major, c.major) || i(this.minor, c.minor) || i(this.patch, c.patch);
5035
+ compareMain(u) {
5036
+ return u instanceof a || (u = new a(u, this.options)), this.major < u.major ? -1 : this.major > u.major ? 1 : this.minor < u.minor ? -1 : this.minor > u.minor ? 1 : this.patch < u.patch ? -1 : this.patch > u.patch ? 1 : 0;
5037
5037
  }
5038
- comparePre(c) {
5039
- if (c instanceof a || (c = new a(c, this.options)), this.prerelease.length && !c.prerelease.length)
5038
+ comparePre(u) {
5039
+ if (u instanceof a || (u = new a(u, this.options)), this.prerelease.length && !u.prerelease.length)
5040
5040
  return -1;
5041
- if (!this.prerelease.length && c.prerelease.length)
5041
+ if (!this.prerelease.length && u.prerelease.length)
5042
5042
  return 1;
5043
- if (!this.prerelease.length && !c.prerelease.length)
5043
+ if (!this.prerelease.length && !u.prerelease.length)
5044
5044
  return 0;
5045
5045
  let l = 0;
5046
5046
  do {
5047
- const f = this.prerelease[l], m = c.prerelease[l];
5047
+ const f = this.prerelease[l], m = u.prerelease[l];
5048
5048
  if (e("prerelease compare", l, f, m), f === void 0 && m === void 0)
5049
5049
  return 0;
5050
5050
  if (m === void 0)
@@ -5056,11 +5056,11 @@ function ne() {
5056
5056
  return i(f, m);
5057
5057
  } while (++l);
5058
5058
  }
5059
- compareBuild(c) {
5060
- c instanceof a || (c = new a(c, this.options));
5059
+ compareBuild(u) {
5060
+ u instanceof a || (u = new a(u, this.options));
5061
5061
  let l = 0;
5062
5062
  do {
5063
- const f = this.build[l], m = c.build[l];
5063
+ const f = this.build[l], m = u.build[l];
5064
5064
  if (e("build compare", l, f, m), f === void 0 && m === void 0)
5065
5065
  return 0;
5066
5066
  if (m === void 0)
@@ -5074,8 +5074,8 @@ function ne() {
5074
5074
  }
5075
5075
  // preminor will bump the version up to the next minor release, and immediately
5076
5076
  // down to pre-release. premajor and prepatch work the same way.
5077
- inc(c, l, f) {
5078
- if (c.startsWith("pre")) {
5077
+ inc(u, l, f) {
5078
+ if (u.startsWith("pre")) {
5079
5079
  if (!l && f === !1)
5080
5080
  throw new Error("invalid increment argument: identifier is empty");
5081
5081
  if (l) {
@@ -5084,7 +5084,7 @@ function ne() {
5084
5084
  throw new Error(`invalid identifier: ${l}`);
5085
5085
  }
5086
5086
  }
5087
- switch (c) {
5087
+ switch (u) {
5088
5088
  case "premajor":
5089
5089
  this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", l, f);
5090
5090
  break;
@@ -5136,7 +5136,7 @@ function ne() {
5136
5136
  break;
5137
5137
  }
5138
5138
  default:
5139
- throw new Error(`invalid increment argument: ${c}`);
5139
+ throw new Error(`invalid increment argument: ${u}`);
5140
5140
  }
5141
5141
  return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
5142
5142
  }
@@ -5161,7 +5161,7 @@ function Le() {
5161
5161
  }, Ct;
5162
5162
  }
5163
5163
  var Pt, Nn;
5164
- function Am() {
5164
+ function wm() {
5165
5165
  if (Nn) return Pt;
5166
5166
  Nn = 1;
5167
5167
  const e = Le();
@@ -5171,7 +5171,7 @@ function Am() {
5171
5171
  }, Pt;
5172
5172
  }
5173
5173
  var Ot, zn;
5174
- function wm() {
5174
+ function Rm() {
5175
5175
  if (zn) return Ot;
5176
5176
  zn = 1;
5177
5177
  const e = Le();
@@ -5181,7 +5181,7 @@ function wm() {
5181
5181
  }, Ot;
5182
5182
  }
5183
5183
  var xt, Ln;
5184
- function Rm() {
5184
+ function Im() {
5185
5185
  if (Ln) return xt;
5186
5186
  Ln = 1;
5187
5187
  const e = ne();
@@ -5198,7 +5198,7 @@ function Rm() {
5198
5198
  }, xt;
5199
5199
  }
5200
5200
  var Nt, Tn;
5201
- function Im() {
5201
+ function km() {
5202
5202
  if (Tn) return Nt;
5203
5203
  Tn = 1;
5204
5204
  const e = Le();
@@ -5206,40 +5206,40 @@ function Im() {
5206
5206
  const o = e(r, null, !0), s = e(n, null, !0), i = o.compare(s);
5207
5207
  if (i === 0)
5208
5208
  return null;
5209
- const a = i > 0, u = a ? o : s, c = a ? s : o, l = !!u.prerelease.length;
5210
- if (!!c.prerelease.length && !l) {
5211
- if (!c.patch && !c.minor)
5209
+ const a = i > 0, c = a ? o : s, u = a ? s : o, l = !!c.prerelease.length;
5210
+ if (!!u.prerelease.length && !l) {
5211
+ if (!u.patch && !u.minor)
5212
5212
  return "major";
5213
- if (c.compareMain(u) === 0)
5214
- return c.minor && !c.patch ? "minor" : "patch";
5213
+ if (u.compareMain(c) === 0)
5214
+ return u.minor && !u.patch ? "minor" : "patch";
5215
5215
  }
5216
5216
  const m = l ? "pre" : "";
5217
5217
  return o.major !== s.major ? m + "major" : o.minor !== s.minor ? m + "minor" : o.patch !== s.patch ? m + "patch" : "prerelease";
5218
5218
  }, Nt;
5219
5219
  }
5220
5220
  var zt, Zn;
5221
- function km() {
5221
+ function Cm() {
5222
5222
  if (Zn) return zt;
5223
5223
  Zn = 1;
5224
5224
  const e = ne();
5225
5225
  return zt = (r, n) => new e(r, n).major, zt;
5226
5226
  }
5227
5227
  var Lt, qn;
5228
- function Cm() {
5228
+ function Pm() {
5229
5229
  if (qn) return Lt;
5230
5230
  qn = 1;
5231
5231
  const e = ne();
5232
5232
  return Lt = (r, n) => new e(r, n).minor, Lt;
5233
5233
  }
5234
5234
  var Tt, jn;
5235
- function Pm() {
5235
+ function Om() {
5236
5236
  if (jn) return Tt;
5237
5237
  jn = 1;
5238
5238
  const e = ne();
5239
5239
  return Tt = (r, n) => new e(r, n).patch, Tt;
5240
5240
  }
5241
5241
  var Zt, Dn;
5242
- function Om() {
5242
+ function xm() {
5243
5243
  if (Dn) return Zt;
5244
5244
  Dn = 1;
5245
5245
  const e = Le();
@@ -5256,14 +5256,14 @@ function ce() {
5256
5256
  return qt = (r, n, o) => new e(r, o).compare(new e(n, o)), qt;
5257
5257
  }
5258
5258
  var jt, Un;
5259
- function xm() {
5259
+ function Nm() {
5260
5260
  if (Un) return jt;
5261
5261
  Un = 1;
5262
5262
  const e = ce();
5263
5263
  return jt = (r, n, o) => e(n, r, o), jt;
5264
5264
  }
5265
5265
  var Dt, Fn;
5266
- function Nm() {
5266
+ function zm() {
5267
5267
  if (Fn) return Dt;
5268
5268
  Fn = 1;
5269
5269
  const e = ce();
@@ -5280,14 +5280,14 @@ function Fr() {
5280
5280
  }, Bt;
5281
5281
  }
5282
5282
  var Ut, Jn;
5283
- function zm() {
5283
+ function Lm() {
5284
5284
  if (Jn) return Ut;
5285
5285
  Jn = 1;
5286
5286
  const e = Fr();
5287
5287
  return Ut = (r, n) => r.sort((o, s) => e(o, s, n)), Ut;
5288
5288
  }
5289
5289
  var Ft, Mn;
5290
- function Lm() {
5290
+ function Tm() {
5291
5291
  if (Mn) return Ft;
5292
5292
  Mn = 1;
5293
5293
  const e = Fr();
@@ -5340,33 +5340,33 @@ function Js() {
5340
5340
  if (Qn) return Ht;
5341
5341
  Qn = 1;
5342
5342
  const e = Fs(), t = Vs(), r = dt(), n = Jr(), o = Vr(), s = Mr();
5343
- return Ht = (a, u, c, l) => {
5344
- switch (u) {
5343
+ return Ht = (a, c, u, l) => {
5344
+ switch (c) {
5345
5345
  case "===":
5346
- return typeof a == "object" && (a = a.version), typeof c == "object" && (c = c.version), a === c;
5346
+ return typeof a == "object" && (a = a.version), typeof u == "object" && (u = u.version), a === u;
5347
5347
  case "!==":
5348
- return typeof a == "object" && (a = a.version), typeof c == "object" && (c = c.version), a !== c;
5348
+ return typeof a == "object" && (a = a.version), typeof u == "object" && (u = u.version), a !== u;
5349
5349
  case "":
5350
5350
  case "=":
5351
5351
  case "==":
5352
- return e(a, c, l);
5352
+ return e(a, u, l);
5353
5353
  case "!=":
5354
- return t(a, c, l);
5354
+ return t(a, u, l);
5355
5355
  case ">":
5356
- return r(a, c, l);
5356
+ return r(a, u, l);
5357
5357
  case ">=":
5358
- return n(a, c, l);
5358
+ return n(a, u, l);
5359
5359
  case "<":
5360
- return o(a, c, l);
5360
+ return o(a, u, l);
5361
5361
  case "<=":
5362
- return s(a, c, l);
5362
+ return s(a, u, l);
5363
5363
  default:
5364
- throw new TypeError(`Invalid operator: ${u}`);
5364
+ throw new TypeError(`Invalid operator: ${c}`);
5365
5365
  }
5366
5366
  }, Ht;
5367
5367
  }
5368
5368
  var Yt, eo;
5369
- function Tm() {
5369
+ function Zm() {
5370
5370
  if (eo) return Yt;
5371
5371
  eo = 1;
5372
5372
  const e = ne(), t = Le(), { safeRe: r, t: n } = We();
@@ -5388,12 +5388,12 @@ function Tm() {
5388
5388
  }
5389
5389
  if (a === null)
5390
5390
  return null;
5391
- const u = a[2], c = a[3] || "0", l = a[4] || "0", f = i.includePrerelease && a[5] ? `-${a[5]}` : "", m = i.includePrerelease && a[6] ? `+${a[6]}` : "";
5392
- return t(`${u}.${c}.${l}${f}${m}`, i);
5391
+ 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]}` : "";
5392
+ return t(`${c}.${u}.${l}${f}${m}`, i);
5393
5393
  }, Yt;
5394
5394
  }
5395
5395
  var Kt, to;
5396
- function Zm() {
5396
+ function qm() {
5397
5397
  if (to) return Kt;
5398
5398
  to = 1;
5399
5399
  class e {
@@ -5470,10 +5470,10 @@ function ue() {
5470
5470
  const S = ((this.options.includePrerelease && g) | (this.options.loose && C)) + ":" + b, I = n.get(S);
5471
5471
  if (I)
5472
5472
  return I;
5473
- const A = this.options.loose, O = A ? u[c.HYPHENRANGELOOSE] : u[c.HYPHENRANGE];
5474
- b = b.replace(O, Et(this.options.includePrerelease)), i("hyphen replace", b), b = b.replace(u[c.COMPARATORTRIM], l), i("comparator trim", b), b = b.replace(u[c.TILDETRIM], f), i("tilde trim", b), b = b.replace(u[c.CARETTRIM], m), i("caret trim", b);
5473
+ const A = this.options.loose, O = A ? c[u.HYPHENRANGELOOSE] : c[u.HYPHENRANGE];
5474
+ 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);
5475
5475
  let q = b.split(" ").map((K) => H(K, this.options)).join(" ").split(/\s+/).map((K) => _t(K, this.options));
5476
- A && (q = q.filter((K) => (i("loose invalid filter", K, this.options), !!K.match(u[c.COMPARATORLOOSE])))), i("range list", q);
5476
+ A && (q = q.filter((K) => (i("loose invalid filter", K, this.options), !!K.match(c[u.COMPARATORLOOSE])))), i("range list", q);
5477
5477
  const z = /* @__PURE__ */ new Map(), F = q.map((K) => new s(K, this.options));
5478
5478
  for (const K of F) {
5479
5479
  if (v(K))
@@ -5506,9 +5506,9 @@ function ue() {
5506
5506
  }
5507
5507
  }
5508
5508
  Qt = t;
5509
- const r = Zm(), n = new r(), o = Ur(), s = gt(), i = mt(), a = ne(), {
5510
- safeRe: u,
5511
- t: c,
5509
+ const r = qm(), n = new r(), o = Ur(), s = gt(), i = mt(), a = ne(), {
5510
+ safeRe: c,
5511
+ t: u,
5512
5512
  comparatorTrimReplace: l,
5513
5513
  tildeTrimReplace: f,
5514
5514
  caretTrimReplace: m
@@ -5519,8 +5519,8 @@ function ue() {
5519
5519
  for (; R && S.length; )
5520
5520
  R = S.every((A) => I.intersects(A, b)), I = S.pop();
5521
5521
  return R;
5522
- }, H = (_, b) => (i("comp", _, b), _ = V(_, b), i("caret", _), _ = B(_, b), i("tildes", _), _ = x(_, b), i("xrange", _), _ = bt(_, b), i("stars", _), _), N = (_) => !_ || _.toLowerCase() === "x" || _ === "*", B = (_, b) => _.trim().split(/\s+/).map((R) => Y(R, b)).join(" "), Y = (_, b) => {
5523
- const R = b.loose ? u[c.TILDELOOSE] : u[c.TILDE];
5522
+ }, H = (_, b) => (_ = _.replace(c[u.BUILD], ""), i("comp", _, b), _ = V(_, b), i("caret", _), _ = B(_, b), i("tildes", _), _ = x(_, b), i("xrange", _), _ = bt(_, b), i("stars", _), _), N = (_) => !_ || _.toLowerCase() === "x" || _ === "*", B = (_, b) => _.trim().split(/\s+/).map((R) => Y(R, b)).join(" "), Y = (_, b) => {
5523
+ const R = b.loose ? c[u.TILDELOOSE] : c[u.TILDE];
5524
5524
  return _.replace(R, (S, I, A, O, q) => {
5525
5525
  i("tilde", _, S, I, A, O, q);
5526
5526
  let z;
@@ -5528,7 +5528,7 @@ function ue() {
5528
5528
  });
5529
5529
  }, V = (_, b) => _.trim().split(/\s+/).map((R) => ee(R, b)).join(" "), ee = (_, b) => {
5530
5530
  i("caret", _, b);
5531
- const R = b.loose ? u[c.CARETLOOSE] : u[c.CARET], S = b.includePrerelease ? "-0" : "";
5531
+ const R = b.loose ? c[u.CARETLOOSE] : c[u.CARET], S = b.includePrerelease ? "-0" : "";
5532
5532
  return _.replace(R, (I, A, O, q, z) => {
5533
5533
  i("caret", _, I, A, O, q, z);
5534
5534
  let F;
@@ -5536,13 +5536,13 @@ function ue() {
5536
5536
  });
5537
5537
  }, x = (_, b) => (i("replaceXRanges", _, b), _.split(/\s+/).map((R) => Te(R, b)).join(" ")), Te = (_, b) => {
5538
5538
  _ = _.trim();
5539
- const R = b.loose ? u[c.XRANGELOOSE] : u[c.XRANGE];
5539
+ const R = b.loose ? c[u.XRANGELOOSE] : c[u.XRANGE];
5540
5540
  return _.replace(R, (S, I, A, O, q, z) => {
5541
5541
  i("xRange", _, S, I, A, O, q, z);
5542
5542
  const F = N(A), re = F || N(O), K = re || N(q), Ze = K;
5543
5543
  return I === "=" && Ze && (I = ""), z = b.includePrerelease ? "-0" : "", F ? I === ">" || I === "<" ? S = "<0.0.0-0" : S = "*" : I && Ze ? (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"), S = `${I + A}.${O}.${q}${z}`) : re ? S = `>=${A}.0.0${z} <${+A + 1}.0.0-0` : K && (S = `>=${A}.${O}.0${z} <${A}.${+O + 1}.0-0`), i("xRange return", S), S;
5544
5544
  });
5545
- }, bt = (_, b) => (i("replaceStars", _, b), _.trim().replace(u[c.STAR], "")), _t = (_, b) => (i("replaceGTE0", _, b), _.trim().replace(u[b.includePrerelease ? c.GTE0PRE : c.GTE0], "")), Et = (_) => (b, R, S, I, A, O, q, z, F, re, K, Ze) => (N(S) ? R = "" : N(I) ? R = `>=${S}.0.0${_ ? "-0" : ""}` : N(A) ? R = `>=${S}.${I}.0${_ ? "-0" : ""}` : O ? R = `>=${R}` : R = `>=${R}${_ ? "-0" : ""}`, N(F) ? z = "" : N(re) ? z = `<${+F + 1}.0.0-0` : N(K) ? z = `<${F}.${+re + 1}.0-0` : Ze ? z = `<=${F}.${re}.${K}-${Ze}` : _ ? z = `<${F}.${re}.${+K + 1}-0` : z = `<=${z}`, `${R} ${z}`.trim()), yt = (_, b, R) => {
5545
+ }, bt = (_, b) => (i("replaceStars", _, b), _.trim().replace(c[u.STAR], "")), _t = (_, b) => (i("replaceGTE0", _, b), _.trim().replace(c[b.includePrerelease ? u.GTE0PRE : u.GTE0], "")), Et = (_) => (b, R, S, I, A, O, q, z, F, re, K, Ze) => (N(S) ? R = "" : N(I) ? R = `>=${S}.0.0${_ ? "-0" : ""}` : N(A) ? R = `>=${S}.${I}.0${_ ? "-0" : ""}` : O ? R = `>=${R}` : R = `>=${R}${_ ? "-0" : ""}`, N(F) ? z = "" : N(re) ? z = `<${+F + 1}.0.0-0` : N(K) ? z = `<${F}.${+re + 1}.0-0` : Ze ? z = `<=${F}.${re}.${K}-${Ze}` : _ ? z = `<${F}.${re}.${+K + 1}-0` : z = `<=${z}`, `${R} ${z}`.trim()), yt = (_, b, R) => {
5546
5546
  for (let S = 0; S < _.length; S++)
5547
5547
  if (!_[S].test(b))
5548
5548
  return !1;
@@ -5599,11 +5599,11 @@ function gt() {
5599
5599
  intersects(l, f) {
5600
5600
  if (!(l instanceof t))
5601
5601
  throw new TypeError("a Comparator is required");
5602
- return this.operator === "" ? this.value === "" ? !0 : new u(l.value, f).test(this.value) : l.operator === "" ? l.value === "" ? !0 : new u(this.value, f).test(l.semver) : (f = r(f), f.includePrerelease && (this.value === "<0.0.0-0" || l.value === "<0.0.0-0") || !f.includePrerelease && (this.value.startsWith("<0.0.0") || l.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && l.operator.startsWith(">") || this.operator.startsWith("<") && l.operator.startsWith("<") || this.semver.version === l.semver.version && this.operator.includes("=") && l.operator.includes("=") || s(this.semver, "<", l.semver, f) && this.operator.startsWith(">") && l.operator.startsWith("<") || s(this.semver, ">", l.semver, f) && this.operator.startsWith("<") && l.operator.startsWith(">")));
5602
+ return this.operator === "" ? this.value === "" ? !0 : new c(l.value, f).test(this.value) : l.operator === "" ? l.value === "" ? !0 : new c(this.value, f).test(l.semver) : (f = r(f), f.includePrerelease && (this.value === "<0.0.0-0" || l.value === "<0.0.0-0") || !f.includePrerelease && (this.value.startsWith("<0.0.0") || l.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && l.operator.startsWith(">") || this.operator.startsWith("<") && l.operator.startsWith("<") || this.semver.version === l.semver.version && this.operator.includes("=") && l.operator.includes("=") || s(this.semver, "<", l.semver, f) && this.operator.startsWith(">") && l.operator.startsWith("<") || s(this.semver, ">", l.semver, f) && this.operator.startsWith("<") && l.operator.startsWith(">")));
5603
5603
  }
5604
5604
  }
5605
5605
  er = t;
5606
- const r = Ur(), { safeRe: n, t: o } = We(), s = Js(), i = mt(), a = ne(), u = ue();
5606
+ const r = Ur(), { safeRe: n, t: o } = We(), s = Js(), i = mt(), a = ne(), c = ue();
5607
5607
  return er;
5608
5608
  }
5609
5609
  var tr, oo;
@@ -5621,48 +5621,48 @@ function vt() {
5621
5621
  }, tr;
5622
5622
  }
5623
5623
  var rr, so;
5624
- function qm() {
5624
+ function jm() {
5625
5625
  if (so) return rr;
5626
5626
  so = 1;
5627
5627
  const e = ue();
5628
5628
  return rr = (r, n) => new e(r, n).set.map((o) => o.map((s) => s.value).join(" ").trim().split(" ")), rr;
5629
5629
  }
5630
5630
  var nr, io;
5631
- function jm() {
5631
+ function Dm() {
5632
5632
  if (io) return nr;
5633
5633
  io = 1;
5634
5634
  const e = ne(), t = ue();
5635
5635
  return nr = (n, o, s) => {
5636
- let i = null, a = null, u = null;
5636
+ let i = null, a = null, c = null;
5637
5637
  try {
5638
- u = new t(o, s);
5638
+ c = new t(o, s);
5639
5639
  } catch {
5640
5640
  return null;
5641
5641
  }
5642
- return n.forEach((c) => {
5643
- u.test(c) && (!i || a.compare(c) === -1) && (i = c, a = new e(i, s));
5642
+ return n.forEach((u) => {
5643
+ c.test(u) && (!i || a.compare(u) === -1) && (i = u, a = new e(i, s));
5644
5644
  }), i;
5645
5645
  }, nr;
5646
5646
  }
5647
5647
  var or, ao;
5648
- function Dm() {
5648
+ function Bm() {
5649
5649
  if (ao) return or;
5650
5650
  ao = 1;
5651
5651
  const e = ne(), t = ue();
5652
5652
  return or = (n, o, s) => {
5653
- let i = null, a = null, u = null;
5653
+ let i = null, a = null, c = null;
5654
5654
  try {
5655
- u = new t(o, s);
5655
+ c = new t(o, s);
5656
5656
  } catch {
5657
5657
  return null;
5658
5658
  }
5659
- return n.forEach((c) => {
5660
- u.test(c) && (!i || a.compare(c) === 1) && (i = c, a = new e(i, s));
5659
+ return n.forEach((u) => {
5660
+ c.test(u) && (!i || a.compare(u) === 1) && (i = u, a = new e(i, s));
5661
5661
  }), i;
5662
5662
  }, or;
5663
5663
  }
5664
5664
  var sr, co;
5665
- function Bm() {
5665
+ function Um() {
5666
5666
  if (co) return sr;
5667
5667
  co = 1;
5668
5668
  const e = ne(), t = ue(), r = dt();
@@ -5673,9 +5673,9 @@ function Bm() {
5673
5673
  return i;
5674
5674
  i = null;
5675
5675
  for (let a = 0; a < o.set.length; ++a) {
5676
- const u = o.set[a];
5677
- let c = null;
5678
- u.forEach((l) => {
5676
+ const c = o.set[a];
5677
+ let u = null;
5678
+ c.forEach((l) => {
5679
5679
  const f = new e(l.semver.version);
5680
5680
  switch (l.operator) {
5681
5681
  case ">":
@@ -5683,7 +5683,7 @@ function Bm() {
5683
5683
  /* fallthrough */
5684
5684
  case "":
5685
5685
  case ">=":
5686
- (!c || r(f, c)) && (c = f);
5686
+ (!u || r(f, u)) && (u = f);
5687
5687
  break;
5688
5688
  case "<":
5689
5689
  case "<=":
@@ -5692,13 +5692,13 @@ function Bm() {
5692
5692
  default:
5693
5693
  throw new Error(`Unexpected operation: ${l.operator}`);
5694
5694
  }
5695
- }), c && (!i || r(i, c)) && (i = c);
5695
+ }), u && (!i || r(i, u)) && (i = u);
5696
5696
  }
5697
5697
  return i && o.test(i) ? i : null;
5698
5698
  }, sr;
5699
5699
  }
5700
5700
  var ir, uo;
5701
- function Um() {
5701
+ function Fm() {
5702
5702
  if (uo) return ir;
5703
5703
  uo = 1;
5704
5704
  const e = ue();
@@ -5714,7 +5714,7 @@ var ar, lo;
5714
5714
  function Wr() {
5715
5715
  if (lo) return ar;
5716
5716
  lo = 1;
5717
- const e = ne(), t = gt(), { ANY: r } = t, n = ue(), o = vt(), s = dt(), i = Vr(), a = Mr(), u = Jr();
5717
+ const e = ne(), t = gt(), { ANY: r } = t, n = ue(), o = vt(), s = dt(), i = Vr(), a = Mr(), c = Jr();
5718
5718
  return ar = (l, f, m, g) => {
5719
5719
  l = new e(l, g), f = new n(f, g);
5720
5720
  let C, v, P, Z, H;
@@ -5723,7 +5723,7 @@ function Wr() {
5723
5723
  C = s, v = a, P = i, Z = ">", H = ">=";
5724
5724
  break;
5725
5725
  case "<":
5726
- C = i, v = u, P = s, Z = "<", H = "<=";
5726
+ C = i, v = c, P = s, Z = "<", H = "<=";
5727
5727
  break;
5728
5728
  default:
5729
5729
  throw new TypeError('Must provide a hilo val of "<" or ">"');
@@ -5744,47 +5744,47 @@ function Wr() {
5744
5744
  }, ar;
5745
5745
  }
5746
5746
  var cr, po;
5747
- function Fm() {
5747
+ function Vm() {
5748
5748
  if (po) return cr;
5749
5749
  po = 1;
5750
5750
  const e = Wr();
5751
5751
  return cr = (r, n, o) => e(r, n, ">", o), cr;
5752
5752
  }
5753
5753
  var ur, ho;
5754
- function Vm() {
5754
+ function Jm() {
5755
5755
  if (ho) return ur;
5756
5756
  ho = 1;
5757
5757
  const e = Wr();
5758
5758
  return ur = (r, n, o) => e(r, n, "<", o), ur;
5759
5759
  }
5760
5760
  var lr, fo;
5761
- function Jm() {
5761
+ function Mm() {
5762
5762
  if (fo) return lr;
5763
5763
  fo = 1;
5764
5764
  const e = ue();
5765
5765
  return lr = (r, n, o) => (r = new e(r, o), n = new e(n, o), r.intersects(n, o)), lr;
5766
5766
  }
5767
5767
  var pr, mo;
5768
- function Mm() {
5768
+ function Wm() {
5769
5769
  if (mo) return pr;
5770
5770
  mo = 1;
5771
5771
  const e = vt(), t = ce();
5772
5772
  return pr = (r, n, o) => {
5773
5773
  const s = [];
5774
5774
  let i = null, a = null;
5775
- const u = r.sort((m, g) => t(m, g, o));
5776
- for (const m of u)
5775
+ const c = r.sort((m, g) => t(m, g, o));
5776
+ for (const m of c)
5777
5777
  e(m, n, o) ? (a = m, i || (i = m)) : (a && s.push([i, a]), a = null, i = null);
5778
5778
  i && s.push([i, null]);
5779
- const c = [];
5779
+ const u = [];
5780
5780
  for (const [m, g] of s)
5781
- m === g ? c.push(m) : !g && m === u[0] ? c.push("*") : g ? m === u[0] ? c.push(`<=${g}`) : c.push(`${m} - ${g}`) : c.push(`>=${m}`);
5782
- const l = c.join(" || "), f = typeof n.raw == "string" ? n.raw : String(n);
5781
+ 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}`);
5782
+ const l = u.join(" || "), f = typeof n.raw == "string" ? n.raw : String(n);
5783
5783
  return l.length < f.length ? l : n;
5784
5784
  }, pr;
5785
5785
  }
5786
5786
  var hr, go;
5787
- function Wm() {
5787
+ function Gm() {
5788
5788
  if (go) return hr;
5789
5789
  go = 1;
5790
5790
  const e = ue(), t = gt(), { ANY: r } = t, n = vt(), o = ce(), s = (f, m, g = {}) => {
@@ -5794,7 +5794,7 @@ function Wm() {
5794
5794
  let C = !1;
5795
5795
  e: for (const v of f.set) {
5796
5796
  for (const P of m.set) {
5797
- const Z = u(v, P, g);
5797
+ const Z = c(v, P, g);
5798
5798
  if (C = C || Z !== null, Z)
5799
5799
  continue e;
5800
5800
  }
@@ -5802,7 +5802,7 @@ function Wm() {
5802
5802
  return !1;
5803
5803
  }
5804
5804
  return !0;
5805
- }, i = [new t(">=0.0.0-0")], a = [new t(">=0.0.0")], u = (f, m, g) => {
5805
+ }, i = [new t(">=0.0.0-0")], a = [new t(">=0.0.0")], c = (f, m, g) => {
5806
5806
  if (f === m)
5807
5807
  return !0;
5808
5808
  if (f.length === 1 && f[0].semver === r) {
@@ -5818,7 +5818,7 @@ function Wm() {
5818
5818
  const C = /* @__PURE__ */ new Set();
5819
5819
  let v, P;
5820
5820
  for (const x of f)
5821
- x.operator === ">" || x.operator === ">=" ? v = c(v, x, g) : x.operator === "<" || x.operator === "<=" ? P = l(P, x, g) : C.add(x.semver);
5821
+ x.operator === ">" || x.operator === ">=" ? v = u(v, x, g) : x.operator === "<" || x.operator === "<=" ? P = l(P, x, g) : C.add(x.semver);
5822
5822
  if (C.size > 1)
5823
5823
  return null;
5824
5824
  let Z;
@@ -5841,7 +5841,7 @@ function Wm() {
5841
5841
  for (const x of m) {
5842
5842
  if (Y = Y || x.operator === ">" || x.operator === ">=", B = B || x.operator === "<" || x.operator === "<=", v) {
5843
5843
  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 === ">=") {
5844
- if (H = c(v, x, g), H === x && H !== v)
5844
+ if (H = u(v, x, g), H === x && H !== v)
5845
5845
  return !1;
5846
5846
  } else if (v.operator === ">=" && !n(v.semver, String(x), g))
5847
5847
  return !1;
@@ -5857,7 +5857,7 @@ function Wm() {
5857
5857
  return !1;
5858
5858
  }
5859
5859
  return !(v && B && !P && Z !== 0 || P && Y && !v && Z !== 0 || ee || V);
5860
- }, c = (f, m, g) => {
5860
+ }, u = (f, m, g) => {
5861
5861
  if (!f)
5862
5862
  return m;
5863
5863
  const C = o(f.semver, m.semver, g);
@@ -5871,17 +5871,17 @@ function Wm() {
5871
5871
  return hr = s, hr;
5872
5872
  }
5873
5873
  var fr, vo;
5874
- function Gm() {
5874
+ function Xm() {
5875
5875
  if (vo) return fr;
5876
5876
  vo = 1;
5877
- const e = We(), t = ft(), r = ne(), n = Us(), o = Le(), s = Am(), i = wm(), a = Rm(), u = Im(), c = km(), l = Cm(), f = Pm(), m = Om(), g = ce(), C = xm(), v = Nm(), P = Fr(), Z = zm(), H = Lm(), N = dt(), B = Vr(), Y = Fs(), V = Vs(), ee = Jr(), x = Mr(), Te = Js(), bt = Tm(), _t = gt(), Et = ue(), yt = vt(), _ = qm(), b = jm(), R = Dm(), S = Bm(), I = Um(), A = Wr(), O = Fm(), q = Vm(), z = Jm(), F = Mm(), re = Wm();
5877
+ const e = We(), t = ft(), r = ne(), n = Us(), o = Le(), s = wm(), i = Rm(), a = Im(), c = km(), u = Cm(), l = Pm(), f = Om(), m = xm(), g = ce(), C = Nm(), v = zm(), P = Fr(), Z = Lm(), H = Tm(), N = dt(), B = Vr(), Y = Fs(), V = Vs(), ee = Jr(), x = Mr(), Te = Js(), bt = Zm(), _t = gt(), Et = ue(), yt = vt(), _ = jm(), b = Dm(), R = Bm(), S = Um(), I = Fm(), A = Wr(), O = Vm(), q = Jm(), z = Mm(), F = Wm(), re = Gm();
5878
5878
  return fr = {
5879
5879
  parse: o,
5880
5880
  valid: s,
5881
5881
  clean: i,
5882
5882
  inc: a,
5883
- diff: u,
5884
- major: c,
5883
+ diff: c,
5884
+ major: u,
5885
5885
  minor: l,
5886
5886
  patch: f,
5887
5887
  prerelease: m,
@@ -5923,18 +5923,18 @@ function Gm() {
5923
5923
  rcompareIdentifiers: n.rcompareIdentifiers
5924
5924
  }, fr;
5925
5925
  }
5926
- var Xm = Gm();
5927
- const Hm = (e, t) => Ym(t) ? t.hostnames.includes(new URL(e).hostname) : Km(t) ? !!e.match(t.regexp) : !1, Ym = (e) => qs.safeParse(e).success, Km = (e) => js.safeParse(e).success, Qm = (e, t) => t ? Xm.satisfies(e, t) : !0, ed = (e, t, r) => Qm(
5926
+ var Hm = Xm();
5927
+ const Ym = (e, t) => Km(t) ? t.hostnames.includes(new URL(e).hostname) : Qm(t) ? !!e.match(t.regexp) : !1, Km = (e) => qs.safeParse(e).success, Qm = (e) => js.safeParse(e).success, ed = (e, t) => t ? Hm.satisfies(e, t) : !0, td = (e, t, r) => ed(
5928
5928
  t,
5929
5929
  r.libraryVersionRange
5930
- ) && Hm(e, r.matcher), td = (e, t) => e.siteRegistrations.filter(
5931
- (r) => ed(t, Zs(), r)
5932
- ), rd = (e, t) => td(e, t).flatMap(
5930
+ ) && Ym(e, r.matcher), rd = (e, t) => e.siteRegistrations.filter(
5931
+ (r) => td(t, Zs(), r)
5932
+ ), nd = (e, t) => rd(e, t).flatMap(
5933
5933
  ({ parsers: o, name: s }) => o.filter(
5934
- (i) => ym(i) && i in wn
5934
+ (i) => $m(i) && i in wn
5935
5935
  ).map((i) => ({ parser: wn[i], parserType: i, name: s }))
5936
- ), nd = (e, t) => {
5937
- const r = rd(e, t.url);
5936
+ ), od = (e, t) => {
5937
+ const r = nd(e, t.url);
5938
5938
  for (const { parser: n, parserType: o, name: s } of r) {
5939
5939
  const i = n(t);
5940
5940
  if (xr(i) || Op(i) || xp(i))
@@ -5957,50 +5957,50 @@ const Hm = (e, t) => Ym(t) ? t.hostnames.includes(new URL(e).hostname) : Km(t) ?
5957
5957
  referrer: t.url
5958
5958
  }
5959
5959
  };
5960
- }, Od = (e, t) => {
5961
- const r = nd(e, t), { uri: n, ...o } = r.meta;
5960
+ }, xd = (e, t) => {
5961
+ const r = od(e, t), { uri: n, ...o } = r.meta;
5962
5962
  return {
5963
5963
  ...r,
5964
5964
  meta: o
5965
5965
  };
5966
- }, od = (e, t) => {
5966
+ }, sd = (e, t) => {
5967
5967
  switch (t) {
5968
5968
  case ye.CA:
5969
5969
  return new URL(`https://${e}.rl.ca.talis.com`);
5970
5970
  default:
5971
5971
  return new URL(`https://${e}.rl.talis.com`);
5972
5972
  }
5973
- }, xd = (e, t) => {
5974
- const r = od(e, t);
5973
+ }, Nd = (e, t) => {
5974
+ const r = sd(e, t);
5975
5975
  return new URL("/ui/forms/bookmarklet.html", r);
5976
- }, Nd = (e, t, r) => {
5976
+ }, zd = (e, t, r) => {
5977
5977
  const n = ll(t);
5978
5978
  n.append("fast", "true"), n.append("breakout", "true"), r && (r.parserName && n.append("targetTitle", r.parserName), n.append("referrer", r.referrer));
5979
5979
  const o = new URL(e.toString());
5980
5980
  return o.search = n.toString(), o;
5981
5981
  };
5982
5982
  export {
5983
- sd as BookGenresSchema,
5983
+ id as BookGenresSchema,
5984
5984
  ml as CustomerListSchema,
5985
5985
  Yo as CustomerSchema,
5986
5986
  ts as DirectLinkOnlyResultSchema,
5987
5987
  y as Genre,
5988
5988
  qs as HostnamesMatcherSchema,
5989
- id as JournalGenresSchema,
5989
+ ad as JournalGenresSchema,
5990
5990
  Go as NON_OPENURL_PROPERTIES,
5991
5991
  Mo as NonOpenUrlPropertiesSchema,
5992
5992
  es as NothingParsedResultSchema,
5993
5993
  il as OPENURL_KEYS,
5994
- ud as OpenUrlAudioVisualResourceSchema,
5995
- ad as OpenUrlBookResourceSchema,
5996
- pd as OpenUrlDocumentResourceSchema,
5997
- ld as OpenUrlImageResourceSchema,
5998
- cd as OpenUrlJournalResourceSchema,
5994
+ ld as OpenUrlAudioVisualResourceSchema,
5995
+ cd as OpenUrlBookResourceSchema,
5996
+ hd as OpenUrlDocumentResourceSchema,
5997
+ pd as OpenUrlImageResourceSchema,
5998
+ ud as OpenUrlJournalResourceSchema,
5999
5999
  be as OpenUrlResourceSchema,
6000
6000
  rs as OpenUrlResultSchema,
6001
- hd as OpenUrlWebpageResourceSchema,
6001
+ fd as OpenUrlWebpageResourceSchema,
6002
6002
  wn as PARSERS,
6003
- Em as ParserRegistrySchema,
6003
+ ym as ParserRegistrySchema,
6004
6004
  L as ParserType,
6005
6005
  Ko as ParsingMetadataSchema,
6006
6006
  Qo as ParsingMetadataV2Schema,
@@ -6008,55 +6008,55 @@ export {
6008
6008
  _l as ParsingResponseSchema,
6009
6009
  El as ParsingResponseV2Schema,
6010
6010
  Ir as ParsingResultSchema,
6011
- Rd as REGISTRY,
6011
+ Id as REGISTRY,
6012
6012
  js as RegExpMatcherSchema,
6013
- Sm as ResourceDataSchema,
6013
+ Am as ResourceDataSchema,
6014
6014
  nl as ResourceSchema,
6015
6015
  Bs as SiteRegistrationSchema,
6016
6016
  os as SummonSearchResultSchema,
6017
6017
  ye as TenantRegion,
6018
- md as TenantRegistrySchema,
6018
+ dd as TenantRegistrySchema,
6019
6019
  Ho as TenantSchema,
6020
6020
  Ds as UrlMatcherSchema,
6021
6021
  ns as Z3988SearchResultSchema,
6022
- vd as convertCustomerListToTenantRegistry,
6022
+ bd as convertCustomerListToTenantRegistry,
6023
6023
  Ae as createAudioVisual,
6024
6024
  Q as createBook,
6025
6025
  sl as createDocument,
6026
6026
  ol as createImage,
6027
6027
  D as createJournal,
6028
6028
  Rr as createWebpage,
6029
- bd as directLinkOnly,
6029
+ _d as directLinkOnly,
6030
6030
  pl as fromOpenUrl,
6031
- xd as getBaseBookmarkingUrl,
6031
+ Nd as getBaseBookmarkingUrl,
6032
6032
  Zs as getLibraryVersion,
6033
6033
  dl as isCustomer,
6034
6034
  gl as isCustomerList,
6035
- Ad as isDirectLinkOnlyResult,
6036
- fd as isGenre,
6037
- wd as isNothingParsedResult,
6035
+ wd as isDirectLinkOnlyResult,
6036
+ md as isGenre,
6037
+ Rd as isNothingParsedResult,
6038
6038
  xr as isOpenUrlResult,
6039
- Id as isParserRegistry,
6040
- ym as isParserType,
6041
- $d as isParsingMetadata,
6042
- Sd as isParsingMetadataV2,
6043
- dd as isParsingRequest,
6044
- Ed as isParsingResponse,
6045
- yd as isParsingResponseV2,
6046
- _d as isParsingResult,
6047
- Pd as isResourceData,
6048
- kd as isSiteRegistration,
6039
+ kd as isParserRegistry,
6040
+ $m as isParserType,
6041
+ Sd as isParsingMetadata,
6042
+ Ad as isParsingMetadataV2,
6043
+ gd as isParsingRequest,
6044
+ yd as isParsingResponse,
6045
+ $d as isParsingResponseV2,
6046
+ Ed as isParsingResult,
6047
+ Od as isResourceData,
6048
+ Cd as isSiteRegistration,
6049
6049
  xp as isSummonSearchResult,
6050
6050
  vl as isTenant,
6051
- gd as isTenantRegion,
6052
- Cd as isUrlMatcher,
6051
+ vd as isTenantRegion,
6052
+ Pd as isUrlMatcher,
6053
6053
  Op as isZ3988SearchResult,
6054
6054
  T as nothingParsed,
6055
6055
  w as openUrlResource,
6056
- nd as parseResource,
6057
- Od as parseResourceV2,
6056
+ od as parseResource,
6057
+ xd as parseResourceV2,
6058
6058
  $l as summonSearchResult,
6059
- Nd as toBookmarkingWorkflowUrl,
6059
+ zd as toBookmarkingWorkflowUrl,
6060
6060
  ll as toOpenUrl,
6061
6061
  yl as z3988SearchResult
6062
6062
  };