@talisdev/bibliographic-resource-parsers-lib 5.27.1 → 5.29.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.
|
@@ -400,10 +400,10 @@ const Ar = (e) => (t, r, n, o) => {
|
|
|
400
400
|
}, ui = /* @__PURE__ */ it(Ro), li = (e) => (t, r, n) => {
|
|
401
401
|
const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
|
|
402
402
|
return Ar(e)(t, r, o);
|
|
403
|
-
}, pi = (e) => (t, r, n) => Ar(e)(t, r, n),
|
|
403
|
+
}, pi = (e) => (t, r, n) => Ar(e)(t, r, n), fi = (e) => async (t, r, n) => {
|
|
404
404
|
const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
|
|
405
405
|
return wr(e)(t, r, o);
|
|
406
|
-
},
|
|
406
|
+
}, hi = (e) => async (t, r, n) => wr(e)(t, r, n), di = (e) => (t, r, n) => {
|
|
407
407
|
const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
|
|
408
408
|
return st(e)(t, r, o);
|
|
409
409
|
}, mi = (e) => (t, r, n) => st(e)(t, r, n), gi = (e) => async (t, r, n) => {
|
|
@@ -744,13 +744,13 @@ const oa = {
|
|
|
744
744
|
else {
|
|
745
745
|
const o = (i, a, c) => {
|
|
746
746
|
let u = Ce(i), l;
|
|
747
|
-
for (const
|
|
748
|
-
if (
|
|
749
|
-
if (!
|
|
747
|
+
for (const h of a) {
|
|
748
|
+
if (h._zod.def.when) {
|
|
749
|
+
if (!h._zod.def.when(i))
|
|
750
750
|
continue;
|
|
751
751
|
} else if (u)
|
|
752
752
|
continue;
|
|
753
|
-
const d = i.issues.length, g =
|
|
753
|
+
const d = i.issues.length, g = h._zod.check(i);
|
|
754
754
|
if (g instanceof Promise && c?.async === !1)
|
|
755
755
|
throw new xe();
|
|
756
756
|
if (l || g instanceof Promise)
|
|
@@ -879,9 +879,9 @@ const oa = {
|
|
|
879
879
|
t.pattern ?? (t.pattern = $i), M.init(e, t);
|
|
880
880
|
}), pa = /* @__PURE__ */ m("$ZodCUID", (e, t) => {
|
|
881
881
|
t.pattern ?? (t.pattern = bi), M.init(e, t);
|
|
882
|
-
}),
|
|
882
|
+
}), fa = /* @__PURE__ */ m("$ZodCUID2", (e, t) => {
|
|
883
883
|
t.pattern ?? (t.pattern = _i), M.init(e, t);
|
|
884
|
-
}),
|
|
884
|
+
}), ha = /* @__PURE__ */ m("$ZodULID", (e, t) => {
|
|
885
885
|
t.pattern ?? (t.pattern = yi), M.init(e, t);
|
|
886
886
|
}), da = /* @__PURE__ */ m("$ZodXID", (e, t) => {
|
|
887
887
|
t.pattern ?? (t.pattern = Ei), M.init(e, t);
|
|
@@ -1106,8 +1106,8 @@ function To(e, t, r, n, o, s) {
|
|
|
1106
1106
|
i.push(l);
|
|
1107
1107
|
continue;
|
|
1108
1108
|
}
|
|
1109
|
-
const
|
|
1110
|
-
|
|
1109
|
+
const h = c.run({ value: t[l], issues: [] }, n);
|
|
1110
|
+
h instanceof Promise ? e.push(h.then((d) => rt(d, r, l, t))) : rt(h, r, l, t);
|
|
1111
1111
|
}
|
|
1112
1112
|
return i.length && r.issues.push({
|
|
1113
1113
|
code: "unrecognized_keys",
|
|
@@ -1135,8 +1135,8 @@ const La = /* @__PURE__ */ m("$ZodObject", (e, t) => {
|
|
|
1135
1135
|
const l = a[u]._zod;
|
|
1136
1136
|
if (l.values) {
|
|
1137
1137
|
c[u] ?? (c[u] = /* @__PURE__ */ new Set());
|
|
1138
|
-
for (const
|
|
1139
|
-
c[u].add(
|
|
1138
|
+
for (const h of l.values)
|
|
1139
|
+
c[u].add(h);
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
1142
|
return c;
|
|
@@ -1154,9 +1154,9 @@ const La = /* @__PURE__ */ m("$ZodObject", (e, t) => {
|
|
|
1154
1154
|
inst: e
|
|
1155
1155
|
}), a;
|
|
1156
1156
|
a.value = {};
|
|
1157
|
-
const l = [],
|
|
1157
|
+
const l = [], h = i.shape;
|
|
1158
1158
|
for (const d of i.keys) {
|
|
1159
|
-
const C =
|
|
1159
|
+
const C = h[d]._zod.run({ value: u[d], issues: [] }, c);
|
|
1160
1160
|
C instanceof Promise ? l.push(C.then((v) => rt(v, a, d, u))) : rt(C, a, d, u);
|
|
1161
1161
|
}
|
|
1162
1162
|
return s ? To(l, u, a, c, n.value, e) : l.length ? Promise.all(l).then(() => a) : a;
|
|
@@ -1201,11 +1201,11 @@ const La = /* @__PURE__ */ m("$ZodObject", (e, t) => {
|
|
|
1201
1201
|
};
|
|
1202
1202
|
let s;
|
|
1203
1203
|
const i = tt, a = !Eo.jitless, u = a && Xs.value, l = t.catchall;
|
|
1204
|
-
let
|
|
1204
|
+
let h;
|
|
1205
1205
|
e._zod.parse = (d, g) => {
|
|
1206
|
-
|
|
1206
|
+
h ?? (h = n.value);
|
|
1207
1207
|
const C = d.value;
|
|
1208
|
-
return i(C) ? a && u && g?.async === !1 && g.jitless !== !0 ? (s || (s = o(t.shape)), d = s(d, g), l ? To([], C, d, g,
|
|
1208
|
+
return i(C) ? a && u && g?.async === !1 && g.jitless !== !0 ? (s || (s = o(t.shape)), d = s(d, g), l ? To([], C, d, g, h, e) : d) : r(d, g) : (d.issues.push({
|
|
1209
1209
|
expected: "object",
|
|
1210
1210
|
code: "invalid_type",
|
|
1211
1211
|
input: C,
|
|
@@ -1679,7 +1679,7 @@ function pc(e, t) {
|
|
|
1679
1679
|
...S(t)
|
|
1680
1680
|
});
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1682
|
+
function fc(e, t) {
|
|
1683
1683
|
return new e({
|
|
1684
1684
|
type: "string",
|
|
1685
1685
|
format: "ksuid",
|
|
@@ -1688,7 +1688,7 @@ function hc(e, t) {
|
|
|
1688
1688
|
...S(t)
|
|
1689
1689
|
});
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1691
|
+
function hc(e, t) {
|
|
1692
1692
|
return new e({
|
|
1693
1693
|
type: "string",
|
|
1694
1694
|
format: "ipv4",
|
|
@@ -2053,7 +2053,7 @@ const Qc = (e, t) => {
|
|
|
2053
2053
|
});
|
|
2054
2054
|
}, ie = m("ZodError", Qc, {
|
|
2055
2055
|
Parent: Error
|
|
2056
|
-
}), eu = /* @__PURE__ */ Ar(ie), tu = /* @__PURE__ */ wr(ie), ru = /* @__PURE__ */ st(ie), nu = /* @__PURE__ */ it(ie), ou = /* @__PURE__ */ li(ie), su = /* @__PURE__ */ pi(ie), iu = /* @__PURE__ */
|
|
2056
|
+
}), eu = /* @__PURE__ */ Ar(ie), tu = /* @__PURE__ */ wr(ie), ru = /* @__PURE__ */ st(ie), nu = /* @__PURE__ */ it(ie), ou = /* @__PURE__ */ li(ie), su = /* @__PURE__ */ pi(ie), iu = /* @__PURE__ */ fi(ie), au = /* @__PURE__ */ hi(ie), cu = /* @__PURE__ */ di(ie), uu = /* @__PURE__ */ mi(ie), lu = /* @__PURE__ */ gi(ie), pu = /* @__PURE__ */ vi(ie), X = /* @__PURE__ */ m("ZodType", (e, t) => (W.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(Ae(t, {
|
|
2057
2057
|
checks: [
|
|
2058
2058
|
...t.checks ?? [],
|
|
2059
2059
|
...r.map((n) => typeof n == "function" ? { _zod: { check: n, def: { check: "custom" }, onattach: [] } } : n)
|
|
@@ -2075,17 +2075,17 @@ const Qc = (e, t) => {
|
|
|
2075
2075
|
Rr.init(e, t), X.init(e, t);
|
|
2076
2076
|
const r = e._zod.bag;
|
|
2077
2077
|
e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Pc(...n)), e.includes = (...n) => e.check(Nc(...n)), e.startsWith = (...n) => e.check(zc(...n)), e.endsWith = (...n) => e.check(Lc(...n)), e.min = (...n) => e.check(nt(...n)), e.max = (...n) => e.check(Zo(...n)), e.length = (...n) => e.check(jo(...n)), e.nonempty = (...n) => e.check(nt(1, ...n)), e.lowercase = (n) => e.check(xc(n)), e.uppercase = (n) => e.check(Oc(n)), e.trim = () => e.check(qc()), e.normalize = (...n) => e.check(Tc(...n)), e.toLowerCase = () => e.check(Zc()), e.toUpperCase = () => e.check(jc());
|
|
2078
|
-
}),
|
|
2079
|
-
Rr.init(e, t), Do.init(e, t), e.email = (r) => e.check(tc(
|
|
2078
|
+
}), fu = /* @__PURE__ */ m("ZodString", (e, t) => {
|
|
2079
|
+
Rr.init(e, t), Do.init(e, t), e.email = (r) => e.check(tc(hu, r)), e.url = (r) => e.check(qo(Bo, r)), e.jwt = (r) => e.check(yc(Cu, r)), e.emoji = (r) => e.check(ic(mu, r)), e.guid = (r) => e.check(cn(fn, r)), e.uuid = (r) => e.check(rc(Ke, r)), e.uuidv4 = (r) => e.check(nc(Ke, r)), e.uuidv6 = (r) => e.check(oc(Ke, r)), e.uuidv7 = (r) => e.check(sc(Ke, r)), e.nanoid = (r) => e.check(ac(gu, r)), e.guid = (r) => e.check(cn(fn, r)), e.cuid = (r) => e.check(cc(vu, r)), e.cuid2 = (r) => e.check(uc(bu, r)), e.ulid = (r) => e.check(lc(_u, r)), e.base64 = (r) => e.check(vc(Ru, r)), e.base64url = (r) => e.check(bc(Iu, r)), e.xid = (r) => e.check(pc(yu, r)), e.ksuid = (r) => e.check(fc(Eu, r)), e.ipv4 = (r) => e.check(hc(Su, r)), e.ipv6 = (r) => e.check(dc($u, r)), e.cidrv4 = (r) => e.check(mc(Au, r)), e.cidrv6 = (r) => e.check(gc(wu, r)), e.e164 = (r) => e.check(_c(ku, r)), e.datetime = (r) => e.check(Mc(r)), e.date = (r) => e.check(Gc(r)), e.time = (r) => e.check(Hc(r)), e.duration = (r) => e.check(Kc(r));
|
|
2080
2080
|
});
|
|
2081
2081
|
function p(e) {
|
|
2082
|
-
return ec(
|
|
2082
|
+
return ec(fu, e);
|
|
2083
2083
|
}
|
|
2084
2084
|
const G = /* @__PURE__ */ m("ZodStringFormat", (e, t) => {
|
|
2085
2085
|
M.init(e, t), Do.init(e, t);
|
|
2086
|
-
}),
|
|
2086
|
+
}), hu = /* @__PURE__ */ m("ZodEmail", (e, t) => {
|
|
2087
2087
|
aa.init(e, t), G.init(e, t);
|
|
2088
|
-
}),
|
|
2088
|
+
}), fn = /* @__PURE__ */ m("ZodGUID", (e, t) => {
|
|
2089
2089
|
sa.init(e, t), G.init(e, t);
|
|
2090
2090
|
}), Ke = /* @__PURE__ */ m("ZodUUID", (e, t) => {
|
|
2091
2091
|
ia.init(e, t), G.init(e, t);
|
|
@@ -2102,9 +2102,9 @@ const mu = /* @__PURE__ */ m("ZodEmoji", (e, t) => {
|
|
|
2102
2102
|
}), vu = /* @__PURE__ */ m("ZodCUID", (e, t) => {
|
|
2103
2103
|
pa.init(e, t), G.init(e, t);
|
|
2104
2104
|
}), bu = /* @__PURE__ */ m("ZodCUID2", (e, t) => {
|
|
2105
|
-
ha.init(e, t), G.init(e, t);
|
|
2106
|
-
}), _u = /* @__PURE__ */ m("ZodULID", (e, t) => {
|
|
2107
2105
|
fa.init(e, t), G.init(e, t);
|
|
2106
|
+
}), _u = /* @__PURE__ */ m("ZodULID", (e, t) => {
|
|
2107
|
+
ha.init(e, t), G.init(e, t);
|
|
2108
2108
|
}), yu = /* @__PURE__ */ m("ZodXID", (e, t) => {
|
|
2109
2109
|
da.init(e, t), G.init(e, t);
|
|
2110
2110
|
}), Eu = /* @__PURE__ */ m("ZodKSUID", (e, t) => {
|
|
@@ -2126,7 +2126,7 @@ const mu = /* @__PURE__ */ m("ZodEmoji", (e, t) => {
|
|
|
2126
2126
|
}), Cu = /* @__PURE__ */ m("ZodJWT", (e, t) => {
|
|
2127
2127
|
Ca.init(e, t), G.init(e, t);
|
|
2128
2128
|
}), Uo = /* @__PURE__ */ m("ZodNumber", (e, t) => {
|
|
2129
|
-
zo.init(e, t), X.init(e, t), e.gt = (n, o) => e.check(ln(n, o)), e.gte = (n, o) => e.check(At(n, o)), e.min = (n, o) => e.check(At(n, o)), e.lt = (n, o) => e.check(un(n, o)), e.lte = (n, o) => e.check($t(n, o)), e.max = (n, o) => e.check($t(n, o)), e.int = (n) => e.check(
|
|
2129
|
+
zo.init(e, t), X.init(e, t), e.gt = (n, o) => e.check(ln(n, o)), e.gte = (n, o) => e.check(At(n, o)), e.min = (n, o) => e.check(At(n, o)), e.lt = (n, o) => e.check(un(n, o)), e.lte = (n, o) => e.check($t(n, o)), e.max = (n, o) => e.check($t(n, o)), e.int = (n) => e.check(hn(n)), e.safe = (n) => e.check(hn(n)), e.positive = (n) => e.check(ln(0, n)), e.nonnegative = (n) => e.check(At(0, n)), e.negative = (n) => e.check(un(0, n)), e.nonpositive = (n) => e.check($t(0, n)), e.multipleOf = (n, o) => e.check(pn(n, o)), e.step = (n, o) => e.check(pn(n, o)), e.finite = () => e;
|
|
2130
2130
|
const r = e._zod.bag;
|
|
2131
2131
|
e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null;
|
|
2132
2132
|
});
|
|
@@ -2136,7 +2136,7 @@ function Vo(e) {
|
|
|
2136
2136
|
const Pu = /* @__PURE__ */ m("ZodNumberFormat", (e, t) => {
|
|
2137
2137
|
Pa.init(e, t), Uo.init(e, t);
|
|
2138
2138
|
});
|
|
2139
|
-
function
|
|
2139
|
+
function hn(e) {
|
|
2140
2140
|
return Rc(Pu, e);
|
|
2141
2141
|
}
|
|
2142
2142
|
const xu = /* @__PURE__ */ m("ZodNull", (e, t) => {
|
|
@@ -2166,7 +2166,7 @@ function j(e, t) {
|
|
|
2166
2166
|
const Tu = /* @__PURE__ */ m("ZodObject", (e, t) => {
|
|
2167
2167
|
Ta.init(e, t), X.init(e, t), U(e, "shape", () => t.shape), e.keyof = () => Ve(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: dn() }), e.loose = () => e.clone({ ...e._zod.def, catchall: dn() }), e.strict = () => e.clone({ ...e._zod.def, catchall: zu() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => ti(e, r), e.safeExtend = (r) => ri(e, r), e.merge = (r) => ni(e, r), e.pick = (r) => Qs(e, r), e.omit = (r) => ei(e, r), e.partial = (...r) => oi(Jo, e, r[0]), e.required = (...r) => si(Mo, e, r[0]);
|
|
2168
2168
|
});
|
|
2169
|
-
function
|
|
2169
|
+
function R(e, t) {
|
|
2170
2170
|
const r = {
|
|
2171
2171
|
type: "object",
|
|
2172
2172
|
shape: e ?? {},
|
|
@@ -2377,7 +2377,7 @@ function nl(e) {
|
|
|
2377
2377
|
return Vc(e);
|
|
2378
2378
|
}
|
|
2379
2379
|
var E = /* @__PURE__ */ ((e) => (e.Article = "article", e.AudioDocument = "audiodocument", e.AudioVisualDocument = "audiovisualdocument", e.Book = "book", e.Bookitem = "bookitem", e.Conference = "conference", e.Document = "document", e.Image = "image", e.Issue = "issue", e.Journal = "journal", e.Preprint = "preprint", e.Proceeding = "proceeding", e.Report = "report", e.Unknown = "unknown", e.Webpage = "webpage", e))(E || {});
|
|
2380
|
-
const
|
|
2380
|
+
const Sm = pe([
|
|
2381
2381
|
J(
|
|
2382
2382
|
"book"
|
|
2383
2383
|
/* Book */
|
|
@@ -2406,7 +2406,7 @@ const gm = pe([
|
|
|
2406
2406
|
"unknown"
|
|
2407
2407
|
/* Unknown */
|
|
2408
2408
|
)
|
|
2409
|
-
]),
|
|
2409
|
+
]), $m = pe([
|
|
2410
2410
|
J(
|
|
2411
2411
|
"article"
|
|
2412
2412
|
/* Article */
|
|
@@ -2435,7 +2435,7 @@ const gm = pe([
|
|
|
2435
2435
|
"unknown"
|
|
2436
2436
|
/* Unknown */
|
|
2437
2437
|
)
|
|
2438
|
-
]), be =
|
|
2438
|
+
]), be = R({
|
|
2439
2439
|
artnum: p(),
|
|
2440
2440
|
atitle: p(),
|
|
2441
2441
|
aufirst: p(),
|
|
@@ -2476,11 +2476,11 @@ const gm = pe([
|
|
|
2476
2476
|
title: p(),
|
|
2477
2477
|
tpages: p(),
|
|
2478
2478
|
volume: p()
|
|
2479
|
-
}).partial(), Go =
|
|
2479
|
+
}).partial(), Go = R({
|
|
2480
2480
|
bibid: p(),
|
|
2481
2481
|
doi: p(),
|
|
2482
2482
|
uri: p()
|
|
2483
|
-
}).partial(),
|
|
2483
|
+
}).partial(), Am = be.pick({
|
|
2484
2484
|
atitle: !0,
|
|
2485
2485
|
aufirst: !0,
|
|
2486
2486
|
aulast: !0,
|
|
@@ -2506,7 +2506,7 @@ const gm = pe([
|
|
|
2506
2506
|
tpages: !0,
|
|
2507
2507
|
series: !0,
|
|
2508
2508
|
spage: !0
|
|
2509
|
-
}).partial(),
|
|
2509
|
+
}).partial(), wm = be.pick({
|
|
2510
2510
|
artnum: !0,
|
|
2511
2511
|
atitle: !0,
|
|
2512
2512
|
aufirst: !0,
|
|
@@ -2538,29 +2538,29 @@ const gm = pe([
|
|
|
2538
2538
|
ssn: !0,
|
|
2539
2539
|
quarter: !0,
|
|
2540
2540
|
volume: !0
|
|
2541
|
-
}).partial(),
|
|
2541
|
+
}).partial(), Rm = be.pick({
|
|
2542
2542
|
au: !0,
|
|
2543
2543
|
date: !0,
|
|
2544
2544
|
isbn: !0,
|
|
2545
2545
|
pub: !0,
|
|
2546
2546
|
title: !0
|
|
2547
|
-
}).partial(),
|
|
2547
|
+
}).partial(), Im = be.pick({
|
|
2548
2548
|
au: !0,
|
|
2549
2549
|
date: !0,
|
|
2550
2550
|
pub: !0,
|
|
2551
2551
|
title: !0
|
|
2552
|
-
}).partial(),
|
|
2552
|
+
}).partial(), km = be.pick({
|
|
2553
2553
|
au: !0,
|
|
2554
2554
|
date: !0,
|
|
2555
2555
|
pub: !0,
|
|
2556
2556
|
title: !0,
|
|
2557
2557
|
spage: !0,
|
|
2558
2558
|
epage: !0
|
|
2559
|
-
}).partial(),
|
|
2559
|
+
}).partial(), Cm = be.pick({
|
|
2560
2560
|
au: !0,
|
|
2561
2561
|
date: !0,
|
|
2562
2562
|
title: !0
|
|
2563
|
-
}).partial(), ol =
|
|
2563
|
+
}).partial(), ol = R({
|
|
2564
2564
|
...be.shape,
|
|
2565
2565
|
...Go.shape
|
|
2566
2566
|
}), Q = (e, t) => ({
|
|
@@ -2598,8 +2598,8 @@ const gm = pe([
|
|
|
2598
2598
|
}, vn = (e, t, r, n) => {
|
|
2599
2599
|
const o = t.getAll(r).filter((s) => !!s).map((s) => s.trim());
|
|
2600
2600
|
return o.length === 0 ? e : { ...e, [n]: o };
|
|
2601
|
-
},
|
|
2602
|
-
const t =
|
|
2601
|
+
}, fl = (e) => {
|
|
2602
|
+
const t = hl(e), r = (o, s) => {
|
|
2603
2603
|
if (s === "au")
|
|
2604
2604
|
return vn(o, t, "rft.au", "au");
|
|
2605
2605
|
if (s === "rft_id")
|
|
@@ -2611,18 +2611,18 @@ const gm = pe([
|
|
|
2611
2611
|
...Ho
|
|
2612
2612
|
].reduce(r, {});
|
|
2613
2613
|
return Object.keys(n).length === 0 ? null : n;
|
|
2614
|
-
},
|
|
2615
|
-
function
|
|
2614
|
+
}, hl = (e) => URL.canParse(e) ? new URL(e).searchParams : new URLSearchParams(e);
|
|
2615
|
+
function Pm(e) {
|
|
2616
2616
|
return typeof e != "string" ? !1 : Object.values(E).includes(e);
|
|
2617
2617
|
}
|
|
2618
2618
|
var Se = /* @__PURE__ */ ((e) => (e.CA = "CA", e.EUAPAC = "EUAPAC", e))(Se || {});
|
|
2619
|
-
const Ko =
|
|
2619
|
+
const Ko = R({
|
|
2620
2620
|
id: p(),
|
|
2621
2621
|
name: p(),
|
|
2622
2622
|
region: Ve(Se)
|
|
2623
|
-
}),
|
|
2623
|
+
}), xm = R({
|
|
2624
2624
|
tenants: j(Ko)
|
|
2625
|
-
}), bn = 9 * 1024 * 1024, dl =
|
|
2625
|
+
}), bn = 9 * 1024 * 1024, dl = R({
|
|
2626
2626
|
url: du({
|
|
2627
2627
|
error: (e) => e.input === void 0 ? 'should have the required string property "url"' : '"url" must be a string'
|
|
2628
2628
|
}),
|
|
@@ -2640,10 +2640,10 @@ const Ko = w({
|
|
|
2640
2640
|
error: (e) => e.input === void 0 ? 'should have the required string property "region"' : '"region" must be a string of EUAPAC or CA'
|
|
2641
2641
|
})
|
|
2642
2642
|
});
|
|
2643
|
-
function
|
|
2643
|
+
function Om(e) {
|
|
2644
2644
|
return dl.safeParse(e).success;
|
|
2645
2645
|
}
|
|
2646
|
-
const Qo =
|
|
2646
|
+
const Qo = R({
|
|
2647
2647
|
name: p(),
|
|
2648
2648
|
region: Ve(Se),
|
|
2649
2649
|
apps: Fo(p(), p())
|
|
@@ -2651,10 +2651,10 @@ const Qo = w({
|
|
|
2651
2651
|
function bl(e) {
|
|
2652
2652
|
return Ko.safeParse(e).success;
|
|
2653
2653
|
}
|
|
2654
|
-
function
|
|
2654
|
+
function Nm(e) {
|
|
2655
2655
|
return typeof e == "string" && Object.keys(Se).includes(e);
|
|
2656
2656
|
}
|
|
2657
|
-
const
|
|
2657
|
+
const zm = (e) => {
|
|
2658
2658
|
if (!vl(e))
|
|
2659
2659
|
throw new Error("Error: the customer list data is invalid.");
|
|
2660
2660
|
return { tenants: Object.entries(e).map(
|
|
@@ -2667,27 +2667,27 @@ const km = (e) => {
|
|
|
2667
2667
|
if (!bl(o))
|
|
2668
2668
|
throw new Error(`Invalid tenant: ${JSON.stringify(o)}`);
|
|
2669
2669
|
return o;
|
|
2670
|
-
}, es =
|
|
2670
|
+
}, es = R({
|
|
2671
2671
|
parserType: p(),
|
|
2672
2672
|
parserName: p().nullable(),
|
|
2673
2673
|
uri: p(),
|
|
2674
2674
|
referrer: p()
|
|
2675
|
-
}), ts =
|
|
2675
|
+
}), ts = R({
|
|
2676
2676
|
parserType: p(),
|
|
2677
2677
|
parserName: p().nullable(),
|
|
2678
2678
|
referrer: p()
|
|
2679
|
-
}), rs =
|
|
2679
|
+
}), rs = R({
|
|
2680
2680
|
bookmarkingWorkflowUrl: ot(),
|
|
2681
2681
|
resource: ot()
|
|
2682
|
-
}), ns =
|
|
2682
|
+
}), ns = R({
|
|
2683
2683
|
bookmarkingWorkflowUrl: p(),
|
|
2684
2684
|
resource: ot()
|
|
2685
|
-
}), os =
|
|
2685
|
+
}), os = R({
|
|
2686
2686
|
bookmarkingWorkflowUrl: ot(),
|
|
2687
2687
|
resource: ol
|
|
2688
|
-
}), ss =
|
|
2688
|
+
}), ss = R({
|
|
2689
2689
|
z3988SearchResult: J(!0)
|
|
2690
|
-
}), is =
|
|
2690
|
+
}), is = R({
|
|
2691
2691
|
summonSearchResult: J(!0)
|
|
2692
2692
|
}), kr = pe([
|
|
2693
2693
|
ns,
|
|
@@ -2695,18 +2695,18 @@ const km = (e) => {
|
|
|
2695
2695
|
os,
|
|
2696
2696
|
ss,
|
|
2697
2697
|
is
|
|
2698
|
-
]), yl =
|
|
2698
|
+
]), yl = R({
|
|
2699
2699
|
meta: es
|
|
2700
|
-
}).and(kr), El =
|
|
2700
|
+
}).and(kr), El = R({
|
|
2701
2701
|
meta: ts
|
|
2702
2702
|
}).and(kr);
|
|
2703
|
-
function
|
|
2703
|
+
function Lm(e) {
|
|
2704
2704
|
return { bookmarkingWorkflowUrl: e, resource: null };
|
|
2705
2705
|
}
|
|
2706
2706
|
function T() {
|
|
2707
2707
|
return { bookmarkingWorkflowUrl: null, resource: null };
|
|
2708
2708
|
}
|
|
2709
|
-
function
|
|
2709
|
+
function w(e) {
|
|
2710
2710
|
return { bookmarkingWorkflowUrl: null, resource: e };
|
|
2711
2711
|
}
|
|
2712
2712
|
function Sl() {
|
|
@@ -2717,13 +2717,13 @@ function $l() {
|
|
|
2717
2717
|
}
|
|
2718
2718
|
const Al = (e) => {
|
|
2719
2719
|
const t = e.getAttribute("title");
|
|
2720
|
-
return t ?
|
|
2720
|
+
return t ? fl(t) : null;
|
|
2721
2721
|
}, Cr = ({ document: e }) => {
|
|
2722
2722
|
const t = Array.from(e.querySelectorAll(".Z3988"));
|
|
2723
2723
|
if (t.length === 0)
|
|
2724
2724
|
return T();
|
|
2725
2725
|
const r = t.map(Al).find((n) => n !== null);
|
|
2726
|
-
return r ?
|
|
2726
|
+
return r ? w(r) : T();
|
|
2727
2727
|
}, wl = (e) => {
|
|
2728
2728
|
const t = Array.from(e.querySelectorAll(".author > a")).map((r) => r.textContent.trim()).filter(Boolean);
|
|
2729
2729
|
return t.length ? t : void 0;
|
|
@@ -2768,7 +2768,7 @@ const Al = (e) => {
|
|
|
2768
2768
|
uri: e
|
|
2769
2769
|
})
|
|
2770
2770
|
};
|
|
2771
|
-
},
|
|
2771
|
+
}, fe = (e) => {
|
|
2772
2772
|
if (e)
|
|
2773
2773
|
return e.replace(/[^0-9]/g, "");
|
|
2774
2774
|
}, as = (e) => Array.from(e.querySelectorAll(".author-source-list li a")).filter((t) => t.childNodes.length > 0).map((t) => t.childNodes[0].textContent?.trim()).filter((t) => !!t), cs = (e) => e.querySelector(".article-header")?.querySelector("h1 span")?.textContent.trim(), us = (e) => ({ date: e?.textContent.match(/\d{4}/)?.[0], pub: "Elsevier Inc." }), Nl = (e) => {
|
|
@@ -2779,13 +2779,13 @@ const Al = (e) => {
|
|
|
2779
2779
|
(i) => i.trim()
|
|
2780
2780
|
);
|
|
2781
2781
|
return {
|
|
2782
|
-
volume:
|
|
2783
|
-
issue:
|
|
2782
|
+
volume: fe(o),
|
|
2783
|
+
issue: fe(s),
|
|
2784
2784
|
jtitle: n
|
|
2785
2785
|
};
|
|
2786
2786
|
}, zl = (e) => {
|
|
2787
2787
|
const t = e.querySelector(".article-header .source")?.textContent, r = t?.match(/\d{4}-\d{2}-\d{2}/)?.[0], n = t?.match(/Pages (\d+-\d+)/), [o, s] = (n?.[1].split("-") ?? []).map((u) => u.trim()), { jtitle: i, volume: a, issue: c } = Nl(e);
|
|
2788
|
-
return
|
|
2788
|
+
return w(
|
|
2789
2789
|
D(E.Article, {
|
|
2790
2790
|
au: as(e),
|
|
2791
2791
|
atitle: cs(e),
|
|
@@ -2799,7 +2799,7 @@ const Al = (e) => {
|
|
|
2799
2799
|
);
|
|
2800
2800
|
}, Ll = (e) => {
|
|
2801
2801
|
const [t, r] = e.querySelectorAll(".source"), { date: n, pub: o } = us(r), s = e.querySelector(".browse__book-toc"), [i, a] = (s?.querySelector("h1")?.textContent.split(",") ?? []).map((c) => c.trim());
|
|
2802
|
-
return
|
|
2802
|
+
return w(
|
|
2803
2803
|
Q(E.Book, {
|
|
2804
2804
|
btitle: i,
|
|
2805
2805
|
edition: a,
|
|
@@ -2821,7 +2821,7 @@ const Al = (e) => {
|
|
|
2821
2821
|
};
|
|
2822
2822
|
}, ql = (e) => {
|
|
2823
2823
|
const { edition: t, btitle: r, date: n, pub: o } = Tl(e), s = e.querySelector(".article-header .source")?.textContent, i = /(\d+-\d+|[IVXLCDM]+-[IVXLCDM]+)/i, a = s?.match(i), [c, u] = (a?.[1].split("-") ?? []).map((l) => l.trim());
|
|
2824
|
-
return
|
|
2824
|
+
return w(
|
|
2825
2825
|
Q(E.Bookitem, {
|
|
2826
2826
|
au: as(e),
|
|
2827
2827
|
atitle: cs(e),
|
|
@@ -2848,7 +2848,7 @@ const Al = (e) => {
|
|
|
2848
2848
|
null,
|
|
2849
2849
|
XPathResult.ANY_TYPE
|
|
2850
2850
|
), i = Pr(s.iterateNext()?.textContent);
|
|
2851
|
-
return
|
|
2851
|
+
return w({
|
|
2852
2852
|
genre: E.Document,
|
|
2853
2853
|
title: r,
|
|
2854
2854
|
pub: n,
|
|
@@ -2862,19 +2862,19 @@ const Al = (e) => {
|
|
|
2862
2862
|
const [a, c, u] = r.textContent.split(",").map((l) => l.trim());
|
|
2863
2863
|
return {
|
|
2864
2864
|
date: a,
|
|
2865
|
-
volume:
|
|
2866
|
-
issue:
|
|
2865
|
+
volume: fe(c),
|
|
2866
|
+
issue: fe(u)
|
|
2867
2867
|
};
|
|
2868
2868
|
}
|
|
2869
2869
|
const n = t?.querySelector("p")?.textContent, [o, s] = n?.split(",") ?? [];
|
|
2870
2870
|
return {
|
|
2871
2871
|
date: t?.querySelector(".source span")?.textContent ?? void 0,
|
|
2872
|
-
volume:
|
|
2873
|
-
issue:
|
|
2872
|
+
volume: fe(o),
|
|
2873
|
+
issue: fe(s)
|
|
2874
2874
|
};
|
|
2875
2875
|
}, Ul = (e) => {
|
|
2876
2876
|
const { date: t, volume: r, issue: n } = Bl(e);
|
|
2877
|
-
return
|
|
2877
|
+
return w(
|
|
2878
2878
|
D(E.Journal, {
|
|
2879
2879
|
jtitle: Dl(e),
|
|
2880
2880
|
date: t,
|
|
@@ -2911,9 +2911,9 @@ const Vl = (e) => Object.values(ps).includes(
|
|
|
2911
2911
|
case void 0:
|
|
2912
2912
|
return T();
|
|
2913
2913
|
}
|
|
2914
|
-
}, we =
|
|
2914
|
+
}, we = R({
|
|
2915
2915
|
"@context": p()
|
|
2916
|
-
}), Ml = (e) => we.safeParse(e).success,
|
|
2916
|
+
}), Ml = (e) => we.safeParse(e).success, fs = 'script[type="application/ld+json"]', hs = (e) => Array.from(e.querySelectorAll(fs)), ct = (e) => e.querySelector(fs), Fe = (e) => {
|
|
2917
2917
|
const t = e.textContent;
|
|
2918
2918
|
if (!t)
|
|
2919
2919
|
return null;
|
|
@@ -2925,17 +2925,17 @@ const Vl = (e) => Object.values(ps).includes(
|
|
|
2925
2925
|
return null;
|
|
2926
2926
|
}
|
|
2927
2927
|
return null;
|
|
2928
|
-
}, Wl =
|
|
2928
|
+
}, Wl = R({
|
|
2929
2929
|
"@id": p(),
|
|
2930
2930
|
"@type": p(),
|
|
2931
|
-
author:
|
|
2931
|
+
author: R({
|
|
2932
2932
|
"@id": p()
|
|
2933
2933
|
}).optional(),
|
|
2934
2934
|
datePublished: p().optional(),
|
|
2935
2935
|
dateModified: p().optional(),
|
|
2936
2936
|
description: p().optional(),
|
|
2937
2937
|
inLanguage: p().optional(),
|
|
2938
|
-
isPartOf:
|
|
2938
|
+
isPartOf: R({
|
|
2939
2939
|
"@id": p()
|
|
2940
2940
|
}).optional(),
|
|
2941
2941
|
name: p().optional(),
|
|
@@ -2943,7 +2943,7 @@ const Vl = (e) => Object.values(ps).includes(
|
|
|
2943
2943
|
}), Gl = we.extend({
|
|
2944
2944
|
"@graph": j(Wl)
|
|
2945
2945
|
}), Xl = (e) => Gl.safeParse(e).success, Hl = (e) => {
|
|
2946
|
-
const t =
|
|
2946
|
+
const t = hs(e);
|
|
2947
2947
|
if (t.length === 0)
|
|
2948
2948
|
return null;
|
|
2949
2949
|
const r = t.map(Fe).filter(Xl).map((n) => n["@graph"]);
|
|
@@ -2964,7 +2964,7 @@ const Vl = (e) => Object.values(ps).includes(
|
|
|
2964
2964
|
bookmarkingWorkflowUrl: null,
|
|
2965
2965
|
resource: Ql(t)
|
|
2966
2966
|
} : T();
|
|
2967
|
-
}, ds = () => T(),
|
|
2967
|
+
}, ds = () => T(), f = (e, t, r) => {
|
|
2968
2968
|
const n = te(e, t, r);
|
|
2969
2969
|
return n.length > 0 ? n[0] : void 0;
|
|
2970
2970
|
}, te = (e, t, r) => Array.from(
|
|
@@ -2986,7 +2986,7 @@ const Vl = (e) => Object.values(ps).includes(
|
|
|
2986
2986
|
null,
|
|
2987
2987
|
XPathResult.STRING_TYPE
|
|
2988
2988
|
).stringValue.trim();
|
|
2989
|
-
return
|
|
2989
|
+
return w(
|
|
2990
2990
|
D(E.Journal, {
|
|
2991
2991
|
pub: a,
|
|
2992
2992
|
jtitle: t,
|
|
@@ -2999,8 +2999,8 @@ const Vl = (e) => Object.values(ps).includes(
|
|
|
2999
2999
|
const n = te(e, "name", "citation_issn");
|
|
3000
3000
|
return n.length === 2 ? (t = n[1], r = n[0]) : t = n[0], { eissn: t, issn: r };
|
|
3001
3001
|
}, op = (e) => {
|
|
3002
|
-
const t =
|
|
3003
|
-
return
|
|
3002
|
+
const t = f(e, "name", "citation_journal_title"), r = f(e, "name", "citation_title"), n = te(e, "name", "citation_author"), o = f(e, "name", "citation_doi"), { eissn: s, issn: i } = np(e), a = f(e, "name", "citation_publisher"), c = f(e, "name", "citation_publication_date"), u = f(e, "name", "citation_volume"), l = f(e, "name", "citation_issue"), h = f(e, "name", "citation_firstpage"), d = f(e, "name", "citation_lastpage");
|
|
3003
|
+
return w(
|
|
3004
3004
|
D(E.Article, {
|
|
3005
3005
|
jtitle: t,
|
|
3006
3006
|
atitle: r,
|
|
@@ -3012,7 +3012,7 @@ const Vl = (e) => Object.values(ps).includes(
|
|
|
3012
3012
|
date: c,
|
|
3013
3013
|
volume: u,
|
|
3014
3014
|
issue: l,
|
|
3015
|
-
spage:
|
|
3015
|
+
spage: h,
|
|
3016
3016
|
epage: d
|
|
3017
3017
|
})
|
|
3018
3018
|
);
|
|
@@ -3028,7 +3028,7 @@ const Vl = (e) => Object.values(ps).includes(
|
|
|
3028
3028
|
};
|
|
3029
3029
|
var y = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Book = 1] = "Book", e[e.Chapter = 2] = "Chapter", e[e.Journal = 3] = "Journal", e[e.Article = 4] = "Article", e[e.AudioVisual = 5] = "AudioVisual", e[e.Webpage = 6] = "Webpage", e))(y || {});
|
|
3030
3030
|
const ip = (e) => {
|
|
3031
|
-
const t =
|
|
3031
|
+
const t = f(e, "name", "pbContext");
|
|
3032
3032
|
if (!t)
|
|
3033
3033
|
return y.None;
|
|
3034
3034
|
const r = ms(t);
|
|
@@ -3052,19 +3052,19 @@ const ip = (e) => {
|
|
|
3052
3052
|
'span[property="isPartOf"][typeof="PublicationVolume"] > span[property="volumeNumber"]'
|
|
3053
3053
|
)?.textContent ?? void 0, up = (e) => e.querySelector(
|
|
3054
3054
|
'span[property="isPartOf"][typeof="PublicationIssue"] > span[property="issueNumber"]'
|
|
3055
|
-
)?.textContent ?? void 0, lp = (e) => e.querySelector('meta[name="dc.Identifier"][scheme="doi"]')?.getAttribute("content") ?? void 0, pp = (e) => e.querySelector("h1")?.textContent ?? void 0,
|
|
3055
|
+
)?.textContent ?? void 0, lp = (e) => e.querySelector('meta[name="dc.Identifier"][scheme="doi"]')?.getAttribute("content") ?? void 0, pp = (e) => e.querySelector("h1")?.textContent ?? void 0, fp = (e) => {
|
|
3056
3056
|
const t = /* @__PURE__ */ new Map(), r = e.querySelector("h2.heading-m")?.textContent, n = r?.match(/Issue\s+(\d+(?:-\d+)?)/);
|
|
3057
3057
|
n && t.set("issue", n[1]);
|
|
3058
3058
|
const o = r?.match(/Volume\s+(\d+)/);
|
|
3059
3059
|
o && t.set("volume", o[1]);
|
|
3060
3060
|
const s = r?.match(/(\d{4})$/);
|
|
3061
3061
|
return s && t.set("date", s[1]), t;
|
|
3062
|
-
},
|
|
3063
|
-
const t = ap(e.document), r =
|
|
3062
|
+
}, hp = (e) => {
|
|
3063
|
+
const t = ap(e.document), r = f(e.document, "name", "dc.Date"), n = lp(e.document), o = gs(e.document), s = o.get("issn"), i = o.get("eissn"), a = up(e.document), c = f(
|
|
3064
3064
|
e.document,
|
|
3065
3065
|
"name",
|
|
3066
3066
|
"citation_journal_title"
|
|
3067
|
-
), u =
|
|
3067
|
+
), u = f(e.document, "name", "dc.Publisher"), l = f(e.document, "name", "dc.Title"), h = cp(e.document);
|
|
3068
3068
|
return D(E.Article, {
|
|
3069
3069
|
au: t,
|
|
3070
3070
|
date: r,
|
|
@@ -3074,11 +3074,11 @@ const ip = (e) => {
|
|
|
3074
3074
|
jtitle: c,
|
|
3075
3075
|
pub: u,
|
|
3076
3076
|
title: l,
|
|
3077
|
-
volume:
|
|
3077
|
+
volume: h,
|
|
3078
3078
|
doi: n
|
|
3079
3079
|
});
|
|
3080
3080
|
}, dp = (e) => {
|
|
3081
|
-
const t = gs(e.document), r = t.get("issn"), n = t.get("eissn"), o = pp(e.document), s =
|
|
3081
|
+
const t = gs(e.document), r = t.get("issn"), n = t.get("eissn"), o = pp(e.document), s = fp(e.document), i = s.get("issue"), a = s.get("volume"), c = s.get("date");
|
|
3082
3082
|
return D(E.Journal, {
|
|
3083
3083
|
eissn: n,
|
|
3084
3084
|
issn: r,
|
|
@@ -3091,20 +3091,20 @@ const ip = (e) => {
|
|
|
3091
3091
|
}, mp = (e) => {
|
|
3092
3092
|
switch (ip(e.document)) {
|
|
3093
3093
|
case y.Article:
|
|
3094
|
-
return
|
|
3094
|
+
return w(hp(e));
|
|
3095
3095
|
case y.Journal:
|
|
3096
|
-
return
|
|
3096
|
+
return w(dp(e));
|
|
3097
3097
|
default:
|
|
3098
3098
|
return T();
|
|
3099
3099
|
}
|
|
3100
3100
|
}, gp = (e) => {
|
|
3101
|
-
const t =
|
|
3101
|
+
const t = f(e, "name", "citation_type"), r = f(
|
|
3102
3102
|
e,
|
|
3103
3103
|
"name",
|
|
3104
3104
|
"citation_article_type"
|
|
3105
3105
|
);
|
|
3106
3106
|
return t === "JOUR" && r ? y.Article : t === "CHP" ? y.Chapter : e.querySelector(".book-edition-year")?.textContent.includes("Book") ? y.Book : e.getElementById("journal-title") ? y.Journal : y.None;
|
|
3107
|
-
}, xr = (e) =>
|
|
3107
|
+
}, xr = (e) => f(e, "name", "citation_doi") ?? f(e, "name", "dc.identifier") ?? e.querySelector(".doi .anchor-text")?.textContent ?? void 0, vp = (e) => {
|
|
3108
3108
|
const t = Array.from(
|
|
3109
3109
|
e.querySelectorAll(".kf-details .kf-detail-item:has(h3)")
|
|
3110
3110
|
), r = /* @__PURE__ */ new Map();
|
|
@@ -3125,7 +3125,7 @@ const ip = (e) => {
|
|
|
3125
3125
|
if (t)
|
|
3126
3126
|
return URL.canParse(t) ? new URL(t).pathname.substring(1) : t;
|
|
3127
3127
|
}, yp = (e) => {
|
|
3128
|
-
const t = vp(e), r =
|
|
3128
|
+
const t = vp(e), r = f(e, "property", "og:title"), n = f(e, "property", "og:book:isbn"), o = t.get("Published"), s = Or(e, ".authors-container .author-detail h3"), i = xr(e) ?? _p(t);
|
|
3129
3129
|
return Q(E.Book, {
|
|
3130
3130
|
au: s,
|
|
3131
3131
|
date: o,
|
|
@@ -3134,7 +3134,7 @@ const ip = (e) => {
|
|
|
3134
3134
|
title: r
|
|
3135
3135
|
});
|
|
3136
3136
|
}, Ep = (e) => {
|
|
3137
|
-
const t =
|
|
3137
|
+
const t = f(e, "property", "og:title"), r = f(e, "property", "og:book:isbn"), n = f(e, "name", "citation_publication_date"), o = Or(e, ".author-group .button-link-text"), s = f(e, "name", "citation_firstpage"), i = f(e, "name", "citation_lastpage"), a = f(e, "name", "citation_publisher"), c = xr(e), u = f(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
|
|
3138
3138
|
return Q(E.Bookitem, {
|
|
3139
3139
|
au: o,
|
|
3140
3140
|
btitle: u,
|
|
@@ -3147,7 +3147,7 @@ const ip = (e) => {
|
|
|
3147
3147
|
title: t
|
|
3148
3148
|
});
|
|
3149
3149
|
}, Sp = (e) => {
|
|
3150
|
-
const t =
|
|
3150
|
+
const t = f(e, "property", "og:title"), r = f(e, "name", "citation_issn"), n = f(e, "name", "citation_publication_date"), o = Or(e, ".author-group .button-link-text"), s = f(e, "name", "citation_publisher"), i = f(e, "name", "citation_firstpage"), a = f(e, "name", "citation_issue"), c = f(e, "name", "citation_volume"), u = xr(e), l = f(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
|
|
3151
3151
|
return D(E.Article, {
|
|
3152
3152
|
au: o,
|
|
3153
3153
|
jtitle: l,
|
|
@@ -3169,18 +3169,18 @@ const ip = (e) => {
|
|
|
3169
3169
|
}, Ap = ({ document: e }) => {
|
|
3170
3170
|
switch (gp(e)) {
|
|
3171
3171
|
case y.Book:
|
|
3172
|
-
return
|
|
3172
|
+
return w(yp(e));
|
|
3173
3173
|
case y.Chapter:
|
|
3174
|
-
return
|
|
3174
|
+
return w(Ep(e));
|
|
3175
3175
|
case y.Article:
|
|
3176
|
-
return
|
|
3176
|
+
return w(Sp(e));
|
|
3177
3177
|
case y.Journal:
|
|
3178
|
-
return
|
|
3178
|
+
return w($p(e));
|
|
3179
3179
|
default:
|
|
3180
3180
|
return T();
|
|
3181
3181
|
}
|
|
3182
3182
|
}, wp = (e) => {
|
|
3183
|
-
const t =
|
|
3183
|
+
const t = f(e, "name", "pbContext");
|
|
3184
3184
|
return t && ms(t).has("article") ? y.Article : y.Journal;
|
|
3185
3185
|
}, Rp = (e) => {
|
|
3186
3186
|
const t = e.querySelector(".itemPageRangeHistory");
|
|
@@ -3200,7 +3200,7 @@ const ip = (e) => {
|
|
|
3200
3200
|
)?.textContent;
|
|
3201
3201
|
return t ? t.replace("Issue", "").trim() : void 0;
|
|
3202
3202
|
}, Cp = (e) => {
|
|
3203
|
-
const t =
|
|
3203
|
+
const t = f(e, "property", "og:title"), r = f(e, "name", "dc.Publisher"), n = f(e, "name", "dc.Date"), o = f(e, "name", "publication_doi"), s = f(e, "name", "citation_journal_title"), i = te(e, "name", "dc.Creator"), a = Ip(e), c = kp(e), u = Rp(e), l = u?.includes("-") ? u.split("-")[0] : u, h = u?.includes("-") ? u.split("-")[1] : u;
|
|
3204
3204
|
return D(E.Article, {
|
|
3205
3205
|
au: i,
|
|
3206
3206
|
jtitle: s,
|
|
@@ -3209,12 +3209,12 @@ const ip = (e) => {
|
|
|
3209
3209
|
issue: c,
|
|
3210
3210
|
pub: r,
|
|
3211
3211
|
spage: l,
|
|
3212
|
-
epage:
|
|
3212
|
+
epage: h,
|
|
3213
3213
|
title: t,
|
|
3214
3214
|
volume: a
|
|
3215
3215
|
});
|
|
3216
3216
|
}, Pp = (e) => {
|
|
3217
|
-
const t =
|
|
3217
|
+
const t = f(e, "property", "og:title"), r = f(e, "name", "publication_doi");
|
|
3218
3218
|
return D(E.Journal, {
|
|
3219
3219
|
doi: r,
|
|
3220
3220
|
title: t
|
|
@@ -3222,14 +3222,14 @@ const ip = (e) => {
|
|
|
3222
3222
|
}, xp = ({ document: e }) => {
|
|
3223
3223
|
switch (wp(e)) {
|
|
3224
3224
|
case y.Article:
|
|
3225
|
-
return
|
|
3225
|
+
return w(Cp(e));
|
|
3226
3226
|
case y.Journal:
|
|
3227
|
-
return
|
|
3227
|
+
return w(Pp(e));
|
|
3228
3228
|
default:
|
|
3229
3229
|
return T();
|
|
3230
3230
|
}
|
|
3231
|
-
},
|
|
3232
|
-
function
|
|
3231
|
+
}, Tm = (e) => kr.safeParse(e).success, qm = (e) => yl.safeParse(e).success, Zm = (e) => El.safeParse(e).success, jm = (e) => es.safeParse(e).success, Dm = (e) => ts.safeParse(e).success;
|
|
3232
|
+
function Bm(e) {
|
|
3233
3233
|
return ns.safeParse(e).success;
|
|
3234
3234
|
}
|
|
3235
3235
|
function Nr(e) {
|
|
@@ -3241,7 +3241,7 @@ function Op(e) {
|
|
|
3241
3241
|
function Np(e) {
|
|
3242
3242
|
return is.safeParse(e).success;
|
|
3243
3243
|
}
|
|
3244
|
-
function
|
|
3244
|
+
function Um(e) {
|
|
3245
3245
|
return rs.safeParse(e).success;
|
|
3246
3246
|
}
|
|
3247
3247
|
const zp = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textContent.trim() === "DOI:")?.nextElementSibling?.querySelector('span[property="identifier"]')?.textContent ?? void 0, Lp = (e) => {
|
|
@@ -3264,7 +3264,7 @@ const zp = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textCont
|
|
|
3264
3264
|
duration: p(),
|
|
3265
3265
|
thumbnailUrl: j(p())
|
|
3266
3266
|
}), Zp = (e) => qp.safeParse(e).success, jp = (e) => {
|
|
3267
|
-
const t =
|
|
3267
|
+
const t = hs(e);
|
|
3268
3268
|
if (t.length === 0)
|
|
3269
3269
|
return null;
|
|
3270
3270
|
const r = t.map(Fe).filter(Zp);
|
|
@@ -3283,22 +3283,22 @@ const zp = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textCont
|
|
|
3283
3283
|
uri: e
|
|
3284
3284
|
})
|
|
3285
3285
|
} : T();
|
|
3286
|
-
}, vs = (e) =>
|
|
3286
|
+
}, vs = (e) => f(e, "name", "doi") ?? f(e, "name", "DOI") ?? f(e, "name", "citation_doi") ?? f(e, "name", "dc.identifier") ?? f(e, "name", "prism.doi") ?? void 0, bs = (e) => {
|
|
3287
3287
|
const t = e.editor?.map((o) => o.name) ?? [], n = [...e.author?.map((o) => o.name) ?? [], ...t];
|
|
3288
3288
|
if (n.length !== 0)
|
|
3289
3289
|
return n;
|
|
3290
3290
|
};
|
|
3291
3291
|
var Je = /* @__PURE__ */ ((e) => (e.Book = "Book", e.Journal = "Journal", e.Periodical = "Periodical", e.PublicationVolume = "PublicationVolume", e.ScholarlyArticle = "ScholarlyArticle", e.VideoObject = "VideoObject", e.WebPage = "WebPage", e))(Je || {}), de = /* @__PURE__ */ ((e) => (e.Article = "article", e.Book = "book", e.Paper = "Paper", e.Video = "video.other", e.Website = "website", e))(de || {}), ae = /* @__PURE__ */ ((e) => (e.Article = "/article/", e.Book = "/book/", e.Chapter = "/chapter/", e.Video = "/video/", e.ReferenceWorkEntry = "/referenceworkentry/", e.ReferenceWork = "/referencework/", e.Protocol = "/protocol/", e.Collections = "/collections/", e.Journal = "/journal/", e.JournalIssue = "/volumes-and-issues/", e))(ae || {});
|
|
3292
|
-
const _s =
|
|
3292
|
+
const _s = R({
|
|
3293
3293
|
"@type": J(Je.ScholarlyArticle),
|
|
3294
3294
|
author: j(
|
|
3295
|
-
|
|
3295
|
+
R({
|
|
3296
3296
|
"@type": p(),
|
|
3297
3297
|
name: p()
|
|
3298
3298
|
})
|
|
3299
3299
|
).optional(),
|
|
3300
3300
|
editor: j(
|
|
3301
|
-
|
|
3301
|
+
R({
|
|
3302
3302
|
"@type": p(),
|
|
3303
3303
|
name: p()
|
|
3304
3304
|
})
|
|
@@ -3308,27 +3308,27 @@ const _s = w({
|
|
|
3308
3308
|
issn: j(p()).optional(),
|
|
3309
3309
|
pageStart: p().optional(),
|
|
3310
3310
|
pageEnd: p().optional(),
|
|
3311
|
-
isPartOf:
|
|
3311
|
+
isPartOf: R({
|
|
3312
3312
|
"@type": pe([p(), j(p())]),
|
|
3313
3313
|
name: p(),
|
|
3314
3314
|
issn: j(p()).optional(),
|
|
3315
3315
|
volumeNumber: p().optional(),
|
|
3316
3316
|
isbn: j(p()).optional()
|
|
3317
3317
|
}),
|
|
3318
|
-
publisher:
|
|
3318
|
+
publisher: R({
|
|
3319
3319
|
"@type": p(),
|
|
3320
3320
|
name: p()
|
|
3321
3321
|
}).optional()
|
|
3322
3322
|
}), ys = (e) => _s.safeParse(e).success, Bp = we.extend({
|
|
3323
3323
|
"@type": J(Je.WebPage),
|
|
3324
3324
|
mainEntity: _s
|
|
3325
|
-
}), Up = (e) => Bp.safeParse(e).success, Vp =
|
|
3325
|
+
}), Up = (e) => Bp.safeParse(e).success, Vp = R({
|
|
3326
3326
|
"@type": j(p()),
|
|
3327
3327
|
name: p().optional(),
|
|
3328
3328
|
issn: j(p()),
|
|
3329
3329
|
volumeNumber: p().optional()
|
|
3330
|
-
}), _n = (e) => Vp.safeParse(e).success, Fp = (e, t) =>
|
|
3331
|
-
const r = bs(t), n =
|
|
3330
|
+
}), _n = (e) => Vp.safeParse(e).success, Fp = (e, t) => f(e, "name", "citation_issn") ?? f(e, "name", "prism.issn") ?? (ys(t.isPartOf) ? t.isPartOf.issn?.[0] : void 0), yn = (e, t) => {
|
|
3331
|
+
const r = bs(t), n = f(e, "name", "citation_online_date"), o = vs(e), s = f(e, "name", "citation_issue"), i = Fp(e, t), a = _n(t.isPartOf) && t.isPartOf.issn.length > 0 ? t.isPartOf.issn[1] : void 0, c = t.pageStart, u = t.pageEnd, l = t.headline, h = t.isPartOf.name, d = _n(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
|
|
3332
3332
|
return D(E.Article, {
|
|
3333
3333
|
au: r,
|
|
3334
3334
|
date: n,
|
|
@@ -3339,20 +3339,20 @@ const _s = w({
|
|
|
3339
3339
|
spage: c,
|
|
3340
3340
|
epage: u,
|
|
3341
3341
|
atitle: l,
|
|
3342
|
-
jtitle:
|
|
3342
|
+
jtitle: h,
|
|
3343
3343
|
volume: d
|
|
3344
3344
|
});
|
|
3345
3345
|
}, Jp = we.extend({
|
|
3346
3346
|
"@type": J(Je.Book),
|
|
3347
3347
|
copyrightYear: p().optional(),
|
|
3348
3348
|
author: j(
|
|
3349
|
-
|
|
3349
|
+
R({
|
|
3350
3350
|
"@type": p(),
|
|
3351
3351
|
name: p()
|
|
3352
3352
|
})
|
|
3353
3353
|
).optional(),
|
|
3354
3354
|
editor: j(
|
|
3355
|
-
|
|
3355
|
+
R({
|
|
3356
3356
|
"@type": p(),
|
|
3357
3357
|
name: p()
|
|
3358
3358
|
})
|
|
@@ -3360,7 +3360,7 @@ const _s = w({
|
|
|
3360
3360
|
isbn: p().optional(),
|
|
3361
3361
|
name: p().optional(),
|
|
3362
3362
|
numberOfPages: Vo().optional(),
|
|
3363
|
-
publisher:
|
|
3363
|
+
publisher: R({
|
|
3364
3364
|
"@type": p(),
|
|
3365
3365
|
name: p()
|
|
3366
3366
|
}).optional()
|
|
@@ -3398,18 +3398,18 @@ const _s = w({
|
|
|
3398
3398
|
tpages: c,
|
|
3399
3399
|
pub: u
|
|
3400
3400
|
});
|
|
3401
|
-
}, Xp =
|
|
3401
|
+
}, Xp = R({
|
|
3402
3402
|
"@type": J("Periodical"),
|
|
3403
3403
|
name: p(),
|
|
3404
3404
|
url: p(),
|
|
3405
3405
|
issn: j(p()),
|
|
3406
3406
|
editor: j(
|
|
3407
|
-
|
|
3407
|
+
R({
|
|
3408
3408
|
givenName: p(),
|
|
3409
3409
|
familyName: p()
|
|
3410
3410
|
})
|
|
3411
3411
|
),
|
|
3412
|
-
publisher:
|
|
3412
|
+
publisher: R({
|
|
3413
3413
|
name: p()
|
|
3414
3414
|
}),
|
|
3415
3415
|
description: p()
|
|
@@ -3424,7 +3424,7 @@ const _s = w({
|
|
|
3424
3424
|
issn: o,
|
|
3425
3425
|
pub: s
|
|
3426
3426
|
});
|
|
3427
|
-
}, Kp =
|
|
3427
|
+
}, Kp = R({
|
|
3428
3428
|
"@type": J(Je.VideoObject),
|
|
3429
3429
|
name: p().optional(),
|
|
3430
3430
|
description: p().optional(),
|
|
@@ -3432,36 +3432,36 @@ const _s = w({
|
|
|
3432
3432
|
uploadDate: p().optional(),
|
|
3433
3433
|
contentUrl: p().optional(),
|
|
3434
3434
|
duration: p().optional()
|
|
3435
|
-
}), Qp = (e) => Kp.safeParse(e).success,
|
|
3435
|
+
}), Qp = (e) => Kp.safeParse(e).success, ef = (e, t) => {
|
|
3436
3436
|
const r = Array.from(
|
|
3437
3437
|
e.querySelectorAll('dd[data-test="video-segment-author"]')
|
|
3438
|
-
).map((i) => i.textContent.trim()).filter((i) => !!i), n = t?.uploadDate ? new Date(t.uploadDate).getFullYear().toString() : void 0, o = t?.name ??
|
|
3438
|
+
).map((i) => i.textContent.trim()).filter((i) => !!i), n = t?.uploadDate ? new Date(t.uploadDate).getFullYear().toString() : void 0, o = t?.name ?? f(e, "property", "og:title") ?? void 0, s = e.querySelector("video-about-doi")?.textContent ?? void 0;
|
|
3439
3439
|
return _e({
|
|
3440
3440
|
au: r.length > 0 ? r : void 0,
|
|
3441
3441
|
date: n,
|
|
3442
3442
|
doi: s,
|
|
3443
3443
|
title: o
|
|
3444
3444
|
});
|
|
3445
|
-
},
|
|
3446
|
-
const t =
|
|
3445
|
+
}, tf = (e) => {
|
|
3446
|
+
const t = f(e, "property", "og:title");
|
|
3447
3447
|
return Ir({
|
|
3448
3448
|
title: t
|
|
3449
3449
|
});
|
|
3450
|
-
},
|
|
3451
|
-
const r =
|
|
3450
|
+
}, rf = (e, t) => {
|
|
3451
|
+
const r = f(t, "property", "og:type");
|
|
3452
3452
|
return r === de.Article && e.includes(ae.Article) ? y.Article : r === de.Book && (e.includes(ae.Book) || e.includes(ae.ReferenceWork)) ? y.Book : r === de.Paper && e.includes(ae.Chapter) ? y.Chapter : r === de.Paper && (e.includes(ae.ReferenceWorkEntry) || e.includes(ae.Protocol)) ? y.Article : r === de.Video && e.includes(ae.Video) ? y.AudioVisual : r === de.Website && (e.includes(ae.Collections) || e.includes(ae.JournalIssue)) ? y.Webpage : r === de.Website && e.includes(ae.Journal) ? y.Journal : y.None;
|
|
3453
|
-
},
|
|
3453
|
+
}, nf = (e, t, r) => e === y.AudioVisual && Qp(r) ? w(ef(t, r)) : e === y.Book && Mp(r) ? w(Gp(t, r)) : (e === y.Chapter || e === y.Article) && ys(r) ? w(yn(t, r)) : e === y.Article && Up(r) ? w(
|
|
3454
3454
|
yn(t, r.mainEntity)
|
|
3455
|
-
) : e === y.Journal && Hp(r) ?
|
|
3456
|
-
const r =
|
|
3455
|
+
) : e === y.Journal && Hp(r) ? w(Yp(r)) : T(), of = ({ url: e, document: t }) => {
|
|
3456
|
+
const r = rf(e, t);
|
|
3457
3457
|
if (r === y.Webpage)
|
|
3458
|
-
return
|
|
3458
|
+
return w(tf(t));
|
|
3459
3459
|
const n = ct(t);
|
|
3460
3460
|
if (!n)
|
|
3461
3461
|
return T();
|
|
3462
3462
|
const o = Fe(n);
|
|
3463
|
-
return o ?
|
|
3464
|
-
},
|
|
3463
|
+
return o ? nf(r, t, o) : T();
|
|
3464
|
+
}, sf = /* @__PURE__ */ new Set([
|
|
3465
3465
|
"Print ISBN",
|
|
3466
3466
|
"Online ISBN",
|
|
3467
3467
|
"DOI",
|
|
@@ -3469,17 +3469,17 @@ const _s = w({
|
|
|
3469
3469
|
"Online ISSN",
|
|
3470
3470
|
"Print ISSN"
|
|
3471
3471
|
/* PrintIssn */
|
|
3472
|
-
]),
|
|
3473
|
-
content:
|
|
3474
|
-
item:
|
|
3472
|
+
]), af = R({
|
|
3473
|
+
content: R({
|
|
3474
|
+
item: R({
|
|
3475
3475
|
title: p(),
|
|
3476
3476
|
"published-date": p()
|
|
3477
3477
|
}),
|
|
3478
|
-
group:
|
|
3478
|
+
group: R({
|
|
3479
3479
|
volume: p(),
|
|
3480
3480
|
issue: p()
|
|
3481
3481
|
}),
|
|
3482
|
-
series:
|
|
3482
|
+
series: R({
|
|
3483
3483
|
title: p(),
|
|
3484
3484
|
type: p(),
|
|
3485
3485
|
eissn: p()
|
|
@@ -3494,7 +3494,7 @@ const _s = w({
|
|
|
3494
3494
|
const r = /\d+/.exec(e);
|
|
3495
3495
|
if (r?.[0])
|
|
3496
3496
|
return r[0];
|
|
3497
|
-
},
|
|
3497
|
+
}, cf = (e) => {
|
|
3498
3498
|
const t = e.querySelectorAll("script"), n = Array.from(t).find(
|
|
3499
3499
|
(o) => o.textContent.includes("adobeDataLayerJson")
|
|
3500
3500
|
)?.textContent.match(
|
|
@@ -3503,12 +3503,12 @@ const _s = w({
|
|
|
3503
3503
|
if (!(!n || n.length !== 2))
|
|
3504
3504
|
try {
|
|
3505
3505
|
const o = JSON.parse(n[1]);
|
|
3506
|
-
return
|
|
3506
|
+
return af.parse(o);
|
|
3507
3507
|
} catch {
|
|
3508
3508
|
return;
|
|
3509
3509
|
}
|
|
3510
|
-
},
|
|
3511
|
-
const r =
|
|
3510
|
+
}, uf = (e, t) => {
|
|
3511
|
+
const r = f(e, "property", "og:type"), n = t.includes("epdf");
|
|
3512
3512
|
return r === "Book" || r === "books.book" ? y.Book : r === "Chapter" ? y.Chapter : r === "Journal" ? y.Journal : r === "Article" || n ? y.Article : y.None;
|
|
3513
3513
|
}, ut = (e) => {
|
|
3514
3514
|
const t = te(
|
|
@@ -3519,7 +3519,7 @@ const _s = w({
|
|
|
3519
3519
|
e.querySelectorAll("#product-details-content .product-authors")
|
|
3520
3520
|
).map((o) => o.textContent).filter((o) => !!o), n = /* @__PURE__ */ new Set([...t, ...r]);
|
|
3521
3521
|
return n.size > 0 ? [...n] : void 0;
|
|
3522
|
-
},
|
|
3522
|
+
}, lf = (e) => {
|
|
3523
3523
|
const t = Array.from(
|
|
3524
3524
|
e.querySelectorAll("#product-details-content .text-piped p")
|
|
3525
3525
|
).map((r) => r.textContent).find((r) => r.endsWith(" pages"));
|
|
@@ -3534,19 +3534,19 @@ const _s = w({
|
|
|
3534
3534
|
if (!o?.classList.contains("info_value"))
|
|
3535
3535
|
continue;
|
|
3536
3536
|
const s = En(n.textContent, ":"), i = En(o.textContent, ":");
|
|
3537
|
-
!s || !i ||
|
|
3537
|
+
!s || !i || sf.has(s) && t.set(s, i);
|
|
3538
3538
|
}
|
|
3539
3539
|
return t;
|
|
3540
|
-
}, pt = (e, t) =>
|
|
3540
|
+
}, pt = (e, t) => f(e, "property", "books:release_date") ?? f(e, "name", "citation_online_date") ?? t.get(
|
|
3541
3541
|
"First published"
|
|
3542
3542
|
/* FirstPublished */
|
|
3543
|
-
) ?? void 0, zr = (e, t) =>
|
|
3543
|
+
) ?? void 0, zr = (e, t) => f(e, "name", "dc.identifier") ?? f(e, "name", "citation_doi") ?? f(e, "name", "publication_doi") ?? t.get(
|
|
3544
3544
|
"DOI"
|
|
3545
3545
|
/* Doi */
|
|
3546
3546
|
) ?? void 0, Es = (e, t) => {
|
|
3547
3547
|
const r = new Set(
|
|
3548
3548
|
[
|
|
3549
|
-
|
|
3549
|
+
f(e, "property", "books:isbn"),
|
|
3550
3550
|
t.get(
|
|
3551
3551
|
"Print ISBN"
|
|
3552
3552
|
/* PrintIsbn */
|
|
@@ -3558,7 +3558,7 @@ const _s = w({
|
|
|
3558
3558
|
].filter((n) => !!n)
|
|
3559
3559
|
);
|
|
3560
3560
|
return r.size > 0 ? [...r].join(",") : void 0;
|
|
3561
|
-
},
|
|
3561
|
+
}, pf = (e) => {
|
|
3562
3562
|
let t, r;
|
|
3563
3563
|
const n = e.querySelector(
|
|
3564
3564
|
".cover-image__details div:first-of-type"
|
|
@@ -3568,12 +3568,12 @@ const _s = w({
|
|
|
3568
3568
|
o.textContent && (t = br(o.textContent)), s.textContent && (r = br(s.textContent));
|
|
3569
3569
|
}
|
|
3570
3570
|
return { volume: t, issue: r };
|
|
3571
|
-
},
|
|
3571
|
+
}, ff = (e) => {
|
|
3572
3572
|
const r = Array.from(
|
|
3573
3573
|
e.querySelectorAll(".authors .author")
|
|
3574
3574
|
).map((n) => n.textContent.trim().replace(",", "")).filter((n) => !!n);
|
|
3575
3575
|
return r.length > 0 ? r : void 0;
|
|
3576
|
-
},
|
|
3576
|
+
}, hf = (e) => {
|
|
3577
3577
|
const t = Array.from(
|
|
3578
3578
|
e.querySelectorAll(".details-section .details-entry")
|
|
3579
3579
|
), r = t.find(
|
|
@@ -3586,12 +3586,12 @@ const _s = w({
|
|
|
3586
3586
|
issn: o,
|
|
3587
3587
|
eissn: s
|
|
3588
3588
|
};
|
|
3589
|
-
},
|
|
3589
|
+
}, df = (e) => {
|
|
3590
3590
|
if (!e?.content?.group)
|
|
3591
3591
|
return { volume: void 0, issue: void 0 };
|
|
3592
3592
|
const t = e.content.group.volume, r = e.content.group.issue;
|
|
3593
3593
|
return r === "0" && t === "0" ? { volume: void 0, issue: void 0 } : { volume: t, issue: r };
|
|
3594
|
-
},
|
|
3594
|
+
}, mf = (e) => {
|
|
3595
3595
|
const n = Array.from(
|
|
3596
3596
|
e.querySelectorAll(".details-section .details-entry")
|
|
3597
3597
|
).find(
|
|
@@ -3600,8 +3600,8 @@ const _s = w({
|
|
|
3600
3600
|
(i) => i?.trim()
|
|
3601
3601
|
);
|
|
3602
3602
|
return o?.toLowerCase() === "n/a" && s?.toLowerCase() === "n/a" ? { spage: void 0, epage: void 0 } : { spage: o, epage: s };
|
|
3603
|
-
},
|
|
3604
|
-
const t = lt(e), r = ut(e), n =
|
|
3603
|
+
}, gf = (e) => {
|
|
3604
|
+
const t = lt(e), r = ut(e), n = f(e, "property", "og:title"), o = pt(e, t), s = zr(e, t), i = Es(e, t), a = lf(e);
|
|
3605
3605
|
return Q(E.Book, {
|
|
3606
3606
|
au: r,
|
|
3607
3607
|
date: o,
|
|
@@ -3610,8 +3610,8 @@ const _s = w({
|
|
|
3610
3610
|
pages: a,
|
|
3611
3611
|
title: n
|
|
3612
3612
|
});
|
|
3613
|
-
},
|
|
3614
|
-
const t = lt(e), r = ut(e), n =
|
|
3613
|
+
}, vf = (e) => {
|
|
3614
|
+
const t = lt(e), r = ut(e), n = f(e, "name", "citation_book_title"), o = pt(e, t), s = zr(e, t), i = Es(e, t), a = f(e, "name", "citation_publisher"), c = f(e, "property", "og:title");
|
|
3615
3615
|
return Q(E.Bookitem, {
|
|
3616
3616
|
au: r,
|
|
3617
3617
|
btitle: n,
|
|
@@ -3621,14 +3621,14 @@ const _s = w({
|
|
|
3621
3621
|
pub: a,
|
|
3622
3622
|
title: c
|
|
3623
3623
|
});
|
|
3624
|
-
},
|
|
3624
|
+
}, bf = (e) => {
|
|
3625
3625
|
const t = lt(e), r = ut(e), n = pt(e, t), o = t.get(
|
|
3626
3626
|
"Online ISSN"
|
|
3627
3627
|
/* OnlineIssn */
|
|
3628
3628
|
), s = t.get(
|
|
3629
3629
|
"Print ISSN"
|
|
3630
3630
|
/* PrintIssn */
|
|
3631
|
-
), i =
|
|
3631
|
+
), i = f(e, "property", "og:title"), { volume: a, issue: c } = pf(e);
|
|
3632
3632
|
return D(E.Journal, {
|
|
3633
3633
|
au: r,
|
|
3634
3634
|
date: n,
|
|
@@ -3638,39 +3638,39 @@ const _s = w({
|
|
|
3638
3638
|
title: i,
|
|
3639
3639
|
volume: a
|
|
3640
3640
|
});
|
|
3641
|
-
},
|
|
3642
|
-
const t = lt(e), r =
|
|
3641
|
+
}, _f = (e) => {
|
|
3642
|
+
const t = lt(e), r = cf(e), n = ut(e) ?? ff(e), o = pt(e, t) ?? r?.content?.item["published-date"], s = zr(e, t), { issn: i, eissn: a } = hf(e), { volume: c, issue: u } = df(r), l = f(e, "property", "og:title") ?? r?.content?.item.title, h = f(e, "name", "citation_journal_title") ?? r?.content?.series.title, { spage: d, epage: g } = mf(e);
|
|
3643
3643
|
return D(E.Article, {
|
|
3644
3644
|
au: n,
|
|
3645
3645
|
date: o,
|
|
3646
3646
|
doi: s,
|
|
3647
3647
|
eissn: a,
|
|
3648
|
-
issn: i ??
|
|
3648
|
+
issn: i ?? f(e, "name", "citation_issn"),
|
|
3649
3649
|
issue: u,
|
|
3650
|
-
jtitle:
|
|
3650
|
+
jtitle: h,
|
|
3651
3651
|
title: l,
|
|
3652
3652
|
volume: c,
|
|
3653
3653
|
spage: d,
|
|
3654
3654
|
epage: g
|
|
3655
3655
|
});
|
|
3656
|
-
},
|
|
3657
|
-
switch (
|
|
3656
|
+
}, yf = ({ document: e, url: t }) => {
|
|
3657
|
+
switch (uf(e, t)) {
|
|
3658
3658
|
case y.Book:
|
|
3659
|
-
return
|
|
3659
|
+
return w(gf(e));
|
|
3660
3660
|
case y.Chapter:
|
|
3661
|
-
return
|
|
3661
|
+
return w(vf(e));
|
|
3662
3662
|
case y.Journal:
|
|
3663
|
-
return
|
|
3663
|
+
return w(bf(e));
|
|
3664
3664
|
case y.Article:
|
|
3665
|
-
return
|
|
3665
|
+
return w(_f(e));
|
|
3666
3666
|
default:
|
|
3667
3667
|
return T();
|
|
3668
3668
|
}
|
|
3669
|
-
},
|
|
3669
|
+
}, Ef = (e) => {
|
|
3670
3670
|
const t = te(e, "name", "citation_author");
|
|
3671
3671
|
return t.length > 0 ? t : void 0;
|
|
3672
|
-
},
|
|
3673
|
-
const t =
|
|
3672
|
+
}, Sf = ({ document: e }) => {
|
|
3673
|
+
const t = Ef(e), r = f(e, "name", "citation_publication_date"), n = f(e, "name", "citation_doi"), o = f(e, "name", "citation_isbn"), s = f(e, "name", "citation_publisher"), i = f(e, "name", "citation_title") ?? e.title, a = _e({
|
|
3674
3674
|
au: t,
|
|
3675
3675
|
date: r,
|
|
3676
3676
|
doi: n,
|
|
@@ -3678,8 +3678,8 @@ const _s = w({
|
|
|
3678
3678
|
pub: s,
|
|
3679
3679
|
title: i
|
|
3680
3680
|
});
|
|
3681
|
-
return
|
|
3682
|
-
},
|
|
3681
|
+
return w(a);
|
|
3682
|
+
}, $f = ({
|
|
3683
3683
|
document: e
|
|
3684
3684
|
}) => Array.from(e.querySelectorAll(".Z3988")).length <= 1 ? T() : Sl(), Lr = (e) => {
|
|
3685
3685
|
if (!(!e || e.length === 0))
|
|
@@ -3693,35 +3693,35 @@ function Tr(e, t) {
|
|
|
3693
3693
|
}).filter((n) => n);
|
|
3694
3694
|
return Lr(r) ?? null;
|
|
3695
3695
|
}
|
|
3696
|
-
const je = (e, t) => Tr(e, [t])?.trim(),
|
|
3696
|
+
const je = (e, t) => Tr(e, [t])?.trim(), Af = (e) => {
|
|
3697
3697
|
const t = e.querySelector(
|
|
3698
3698
|
".content-meta-data__authors"
|
|
3699
3699
|
)?.textContent;
|
|
3700
3700
|
if (t)
|
|
3701
3701
|
return t.split(/,\s+|\s+and\s+/).filter((r) => !!r);
|
|
3702
|
-
},
|
|
3702
|
+
}, wf = (e) => {
|
|
3703
3703
|
const t = Array.from(
|
|
3704
3704
|
e.querySelectorAll('.tombstone-metadata [data-qa="item-authors"]')
|
|
3705
3705
|
).map((r) => r.textContent).filter((r) => !!r);
|
|
3706
3706
|
return t.length ? t : void 0;
|
|
3707
|
-
},
|
|
3707
|
+
}, Rf = (e) => {
|
|
3708
3708
|
const t = Array.from(
|
|
3709
3709
|
e.querySelectorAll(
|
|
3710
3710
|
'.item-authors [data-qa="item-contributors"], .item-authors [data-qa="item-creators"]'
|
|
3711
3711
|
)
|
|
3712
3712
|
).map((r) => r.textContent).filter((r) => !!r);
|
|
3713
3713
|
return t.length ? t : void 0;
|
|
3714
|
-
},
|
|
3714
|
+
}, If = (e) => {
|
|
3715
3715
|
const t = Array.from(
|
|
3716
3716
|
e.querySelectorAll(".contrib-type-author .name")
|
|
3717
3717
|
).map((r) => r.textContent).filter((r) => !!r);
|
|
3718
3718
|
return t.length ? t : void 0;
|
|
3719
3719
|
}, Re = (e) => {
|
|
3720
3720
|
const t = /* @__PURE__ */ new Set([
|
|
3721
|
-
...
|
|
3722
|
-
|
|
3723
|
-
...
|
|
3724
|
-
...
|
|
3721
|
+
...Rf(e) ?? [],
|
|
3722
|
+
...Af(e) ?? [],
|
|
3723
|
+
...If(e) ?? [],
|
|
3724
|
+
...wf(e) ?? []
|
|
3725
3725
|
]);
|
|
3726
3726
|
return t.size ? [...t] : void 0;
|
|
3727
3727
|
}, Ie = (e, t) => e.querySelector('[data-qa="published-date"]')?.textContent ?? e.querySelector(".summary-image")?.textContent ?? Oe(t?.get("date")) ?? Oe(t?.get("copyright date")) ?? Oe(t?.get("published date")), Ss = (e) => {
|
|
@@ -3732,7 +3732,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
|
|
|
3732
3732
|
const t = e.get("local identifier");
|
|
3733
3733
|
if (t?.length)
|
|
3734
3734
|
return Ss(t);
|
|
3735
|
-
},
|
|
3735
|
+
}, kf = (e) => e.querySelector(".doi")?.getAttribute("href") ?? void 0, Oe = (e) => {
|
|
3736
3736
|
if (e?.length)
|
|
3737
3737
|
return e[0];
|
|
3738
3738
|
}, ke = (e) => {
|
|
@@ -3749,19 +3749,19 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
|
|
|
3749
3749
|
pub: s && s.trim() !== "" ? s : void 0,
|
|
3750
3750
|
jtitle: o && o.trim() !== "" ? o : void 0
|
|
3751
3751
|
};
|
|
3752
|
-
},
|
|
3752
|
+
}, Cf = (e) => {
|
|
3753
3753
|
const t = Tr(e, [
|
|
3754
3754
|
'[data-qa="journal"]:first-child cite',
|
|
3755
3755
|
'[data-qa="copyright-statement"] > cite',
|
|
3756
3756
|
'[data-qa="collection-links"] mfe-content-details-pharos-link'
|
|
3757
3757
|
]);
|
|
3758
3758
|
return t && t.trim() !== "" ? t : void 0;
|
|
3759
|
-
},
|
|
3759
|
+
}, ft = (e) => fe(e.querySelector('[data-qa="page-count"]')?.textContent), Me = (e, t) => e.querySelector(".publisher-link")?.textContent ?? Oe(t?.get("publisher")), ye = (e) => e.querySelector('[data-qa="item-title"]')?.textContent.trim() ?? e.querySelector("mfe-turnaway-pharos-heading")?.textContent.trim() ?? e.querySelector(".metadata mfe-toc-pharos-heading")?.textContent.trim() ?? e.querySelector(".journal_header-title")?.textContent.trim() ?? void 0, Ee = (e) => {
|
|
3760
3760
|
if (!URL.canParse(e))
|
|
3761
3761
|
return;
|
|
3762
3762
|
const t = new URL(e);
|
|
3763
3763
|
return t.origin + t.pathname;
|
|
3764
|
-
},
|
|
3764
|
+
}, Pf = (e) => {
|
|
3765
3765
|
const t = e.querySelector(
|
|
3766
3766
|
".ccda-container > :first-child"
|
|
3767
3767
|
);
|
|
@@ -3769,18 +3769,18 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
|
|
|
3769
3769
|
if (t?.textContent.includes("Volume") || t?.textContent.includes("Issue")) {
|
|
3770
3770
|
const o = t.textContent.trim().split(/,\s+/);
|
|
3771
3771
|
for (const s of o)
|
|
3772
|
-
s.startsWith("Volume") ? n =
|
|
3772
|
+
s.startsWith("Volume") ? n = fe(s) : s.startsWith("Issue") && (r = fe(s));
|
|
3773
3773
|
}
|
|
3774
3774
|
return { issue: r, volume: n };
|
|
3775
|
-
},
|
|
3776
|
-
const t = e.querySelector('[data-qa="item-src-info"]')?.textContent ??
|
|
3775
|
+
}, xf = (e) => {
|
|
3776
|
+
const t = e.querySelector('[data-qa="item-src-info"]')?.textContent ?? f(e, "property", "og:description") ?? f(e, "name", "description");
|
|
3777
3777
|
if (!t)
|
|
3778
3778
|
return {};
|
|
3779
3779
|
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(
|
|
3780
3780
|
t
|
|
3781
3781
|
), l = u ? u[1] : void 0;
|
|
3782
3782
|
return { issue: s, volume: n, spage: a, epage: c, pages: l };
|
|
3783
|
-
},
|
|
3783
|
+
}, Of = (e) => {
|
|
3784
3784
|
const t = Tr(e, [
|
|
3785
3785
|
"mfe-turnaway-pharos-link",
|
|
3786
3786
|
'[data-qa="item-src-info"]'
|
|
@@ -3792,12 +3792,12 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
|
|
|
3792
3792
|
return s ? s[0] : void 0;
|
|
3793
3793
|
});
|
|
3794
3794
|
return Lr(n);
|
|
3795
|
-
},
|
|
3796
|
-
const r = ye(e), n = Re(e), o = Ie(e) ??
|
|
3795
|
+
}, Nf = (e, t) => {
|
|
3796
|
+
const r = ye(e), n = Re(e), o = Ie(e) ?? Of(e), s = As(e), i = s.jtitle ?? Cf(e) ?? void 0, a = s.pub, c = Pf(e), u = xf(e), l = c.issue ?? u.issue, h = c.volume ?? u.volume, d = ft(e) ?? u.pages, g = u.spage, C = u.epage, v = Ee(t), P = Ss(
|
|
3797
3797
|
Array.from(
|
|
3798
3798
|
e.querySelector(".content-meta-data-stables")?.childNodes ?? []
|
|
3799
3799
|
).map((q) => q.textContent ?? "")
|
|
3800
|
-
) ??
|
|
3800
|
+
) ?? kf(e);
|
|
3801
3801
|
return D(E.Article, {
|
|
3802
3802
|
atitle: r,
|
|
3803
3803
|
au: n,
|
|
@@ -3810,9 +3810,9 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
|
|
|
3810
3810
|
pub: a,
|
|
3811
3811
|
spage: g,
|
|
3812
3812
|
uri: v,
|
|
3813
|
-
volume:
|
|
3813
|
+
volume: h
|
|
3814
3814
|
});
|
|
3815
|
-
},
|
|
3815
|
+
}, zf = (e, t) => {
|
|
3816
3816
|
const r = ke(e), n = Re(e), o = Ie(e, r), s = ye(e), i = Me(e, r), a = Ee(t);
|
|
3817
3817
|
return _e({
|
|
3818
3818
|
au: n,
|
|
@@ -3821,8 +3821,8 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
|
|
|
3821
3821
|
title: s,
|
|
3822
3822
|
uri: a
|
|
3823
3823
|
});
|
|
3824
|
-
},
|
|
3825
|
-
const r = ke(e), n = Re(e), o = ye(e), s = Ie(e), i =
|
|
3824
|
+
}, Lf = (e, t) => {
|
|
3825
|
+
const r = ke(e), n = Re(e), o = ye(e), s = Ie(e), i = ft(e), a = Me(e, r), c = Ee(t), u = $s(r);
|
|
3826
3826
|
return Q(E.Book, {
|
|
3827
3827
|
au: n,
|
|
3828
3828
|
date: s,
|
|
@@ -3832,10 +3832,10 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
|
|
|
3832
3832
|
title: o,
|
|
3833
3833
|
uri: c
|
|
3834
3834
|
});
|
|
3835
|
-
},
|
|
3835
|
+
}, Tf = (e, t) => {
|
|
3836
3836
|
const r = ke(e), n = Re(e), o = ye(e), s = e.querySelector(".book-title-link")?.textContent ?? void 0, i = Ie(e, r), a = Array.from(
|
|
3837
3837
|
e.querySelectorAll('[data-qa="book"] > span')
|
|
3838
|
-
).map((d) => d.textContent), c =
|
|
3838
|
+
).map((d) => d.textContent), c = ft(e), u = a.find((d) => d.includes("pp."))?.match(/(\d+)-(\d+)/) ?? void 0, l = Me(e, r), h = Ee(t);
|
|
3839
3839
|
return Q(E.Bookitem, {
|
|
3840
3840
|
atitle: o,
|
|
3841
3841
|
au: n,
|
|
@@ -3845,10 +3845,10 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
|
|
|
3845
3845
|
pub: l,
|
|
3846
3846
|
pages: c,
|
|
3847
3847
|
spage: u?.[1],
|
|
3848
|
-
uri:
|
|
3848
|
+
uri: h
|
|
3849
3849
|
});
|
|
3850
|
-
},
|
|
3851
|
-
const r = ke(e), n = Re(e), o = ye(e), s = Ie(e), i =
|
|
3850
|
+
}, qf = (e, t) => {
|
|
3851
|
+
const r = ke(e), n = Re(e), o = ye(e), s = Ie(e), i = ft(e), a = Me(e, r), c = Ee(t), u = $s(r);
|
|
3852
3852
|
return Q(E.Document, {
|
|
3853
3853
|
au: n,
|
|
3854
3854
|
date: s,
|
|
@@ -3858,7 +3858,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
|
|
|
3858
3858
|
title: o,
|
|
3859
3859
|
uri: c
|
|
3860
3860
|
});
|
|
3861
|
-
},
|
|
3861
|
+
}, Zf = (e, t) => {
|
|
3862
3862
|
const r = ke(e), n = Re(e), o = Ie(e, r), s = ye(e), i = Ee(t);
|
|
3863
3863
|
return sl({
|
|
3864
3864
|
au: n,
|
|
@@ -3866,7 +3866,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
|
|
|
3866
3866
|
title: s,
|
|
3867
3867
|
uri: i
|
|
3868
3868
|
});
|
|
3869
|
-
},
|
|
3869
|
+
}, jf = (e, t) => {
|
|
3870
3870
|
const { pub: r } = As(e), n = ye(e), o = e.querySelector(".eissn")?.textContent.replace(/EISSN\s+/, "").trim() ?? void 0, s = e.querySelector(".issn")?.textContent.replace(/ISSN\s+/, "").trim() ?? void 0, i = Ee(t);
|
|
3871
3871
|
return D(E.Journal, {
|
|
3872
3872
|
eissn: o,
|
|
@@ -3877,7 +3877,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
|
|
|
3877
3877
|
});
|
|
3878
3878
|
};
|
|
3879
3879
|
var oe = /* @__PURE__ */ ((e) => (e.Article = "journal article", e.Audio = "audio", e.Book = "book", e.Chapter = "book chapter", e.Document = "document", e.Image = "image", e.Journal = "journal", e.ResearchReport = "research report", e.Serial = "serial", e.Video = "video", e))(oe || {});
|
|
3880
|
-
const
|
|
3880
|
+
const Df = (e, t) => {
|
|
3881
3881
|
const r = ke(e), n = Re(e), o = Ie(e, r), s = ye(e), i = Me(e, r), a = Ee(t);
|
|
3882
3882
|
return _e({
|
|
3883
3883
|
au: n,
|
|
@@ -3886,39 +3886,39 @@ const jh = (e, t) => {
|
|
|
3886
3886
|
title: s,
|
|
3887
3887
|
uri: a
|
|
3888
3888
|
});
|
|
3889
|
-
},
|
|
3889
|
+
}, Bf = (e) => Object.values(oe).includes(e), Uf = (e) => {
|
|
3890
3890
|
if (e.querySelector(".journal_header-title"))
|
|
3891
3891
|
return oe.Journal;
|
|
3892
3892
|
if (e.querySelector(".journal-link"))
|
|
3893
3893
|
return oe.Article;
|
|
3894
3894
|
const n = e.querySelector(".content-type > span")?.textContent.toLowerCase().trim() ?? e.querySelector(".content-meta-data-label")?.textContent.toLowerCase().trim();
|
|
3895
|
-
return
|
|
3896
|
-
},
|
|
3897
|
-
switch (
|
|
3895
|
+
return Bf(n) ? n : null;
|
|
3896
|
+
}, Vf = (e, t) => {
|
|
3897
|
+
switch (Uf(e)) {
|
|
3898
3898
|
case oe.Article:
|
|
3899
3899
|
case oe.Serial:
|
|
3900
|
-
return
|
|
3900
|
+
return Nf(e, t);
|
|
3901
3901
|
case oe.Audio:
|
|
3902
|
-
return
|
|
3902
|
+
return zf(e, t);
|
|
3903
3903
|
case oe.Book:
|
|
3904
|
-
return
|
|
3904
|
+
return Lf(e, t);
|
|
3905
3905
|
case oe.Chapter:
|
|
3906
3906
|
case oe.ResearchReport:
|
|
3907
|
-
return
|
|
3907
|
+
return Tf(e, t);
|
|
3908
3908
|
case oe.Document:
|
|
3909
|
-
return
|
|
3909
|
+
return qf(e, t);
|
|
3910
3910
|
case oe.Image:
|
|
3911
|
-
return
|
|
3911
|
+
return Zf(e, t);
|
|
3912
3912
|
case oe.Journal:
|
|
3913
|
-
return
|
|
3913
|
+
return jf(e, t);
|
|
3914
3914
|
case oe.Video:
|
|
3915
|
-
return
|
|
3915
|
+
return Df(e, t);
|
|
3916
3916
|
default:
|
|
3917
3917
|
return null;
|
|
3918
3918
|
}
|
|
3919
|
-
},
|
|
3920
|
-
const r =
|
|
3921
|
-
return r ?
|
|
3919
|
+
}, Ff = ({ document: e, url: t }) => {
|
|
3920
|
+
const r = Vf(e, t);
|
|
3921
|
+
return r ? w(r) : T();
|
|
3922
3922
|
}, De = (e) => {
|
|
3923
3923
|
if (e) {
|
|
3924
3924
|
if (typeof e == "string")
|
|
@@ -3933,7 +3933,7 @@ const jh = (e, t) => {
|
|
|
3933
3933
|
const t = new Set(e.filter((r) => !!r));
|
|
3934
3934
|
if (t.size !== 0)
|
|
3935
3935
|
return [...t];
|
|
3936
|
-
},
|
|
3936
|
+
}, Jf = (e) => {
|
|
3937
3937
|
const t = ws(e.mainEntity.creator);
|
|
3938
3938
|
return t ? [t] : void 0;
|
|
3939
3939
|
}, We = ({
|
|
@@ -3942,9 +3942,9 @@ const jh = (e, t) => {
|
|
|
3942
3942
|
}) => ({
|
|
3943
3943
|
bibid: e,
|
|
3944
3944
|
title: t
|
|
3945
|
-
}),
|
|
3945
|
+
}), Mf = (e, t) => {
|
|
3946
3946
|
const r = Qe(
|
|
3947
|
-
...(e &&
|
|
3947
|
+
...(e && Jf(e)) ?? [],
|
|
3948
3948
|
...t.authors ?? []
|
|
3949
3949
|
), n = Qe(...t.eissns ?? []), o = Qe(
|
|
3950
3950
|
e?.mainEntity.isbn ? Pr(e.mainEntity.isbn) : void 0,
|
|
@@ -3970,7 +3970,7 @@ const jh = (e, t) => {
|
|
|
3970
3970
|
title: e?.name ?? t.title,
|
|
3971
3971
|
volume: e?.mainEntity.volumeNumber
|
|
3972
3972
|
};
|
|
3973
|
-
},
|
|
3973
|
+
}, Wf = (e) => D(E.Article, {
|
|
3974
3974
|
...We(e),
|
|
3975
3975
|
au: e.authors,
|
|
3976
3976
|
doi: e.doi,
|
|
@@ -3982,12 +3982,12 @@ const jh = (e, t) => {
|
|
|
3982
3982
|
pub: e.publisher,
|
|
3983
3983
|
spage: e.spage,
|
|
3984
3984
|
volume: e.volume
|
|
3985
|
-
}),
|
|
3985
|
+
}), Gf = (e) => _e({
|
|
3986
3986
|
...We(e),
|
|
3987
3987
|
au: e.authors,
|
|
3988
3988
|
date: e.date,
|
|
3989
3989
|
pub: e.publisher
|
|
3990
|
-
}),
|
|
3990
|
+
}), Xf = (e) => Q(E.Book, {
|
|
3991
3991
|
...We(e),
|
|
3992
3992
|
au: e.authors,
|
|
3993
3993
|
date: e.date,
|
|
@@ -3997,26 +3997,26 @@ const jh = (e, t) => {
|
|
|
3997
3997
|
isbn: e.isbn,
|
|
3998
3998
|
pub: e.publisher,
|
|
3999
3999
|
spage: e.spage
|
|
4000
|
-
}),
|
|
4000
|
+
}), Hf = (e) => D(E.Journal, {
|
|
4001
4001
|
...We(e),
|
|
4002
4002
|
date: e.date,
|
|
4003
4003
|
doi: e.doi,
|
|
4004
4004
|
eissn: e.eissn,
|
|
4005
4005
|
issn: e.issn,
|
|
4006
4006
|
pub: e.publisher
|
|
4007
|
-
}), Sn =
|
|
4007
|
+
}), Sn = R({
|
|
4008
4008
|
"@type": J("Organization"),
|
|
4009
4009
|
name: pe([p(), j(p())])
|
|
4010
|
-
}), $n =
|
|
4010
|
+
}), $n = R({
|
|
4011
4011
|
"@type": J("Person"),
|
|
4012
4012
|
name: pe([p(), j(p())])
|
|
4013
|
-
}),
|
|
4014
|
-
identifier:
|
|
4013
|
+
}), Yf = we.extend({
|
|
4014
|
+
identifier: R({
|
|
4015
4015
|
"@type": p(),
|
|
4016
4016
|
propertyID: p(),
|
|
4017
4017
|
value: p()
|
|
4018
4018
|
}),
|
|
4019
|
-
mainEntity:
|
|
4019
|
+
mainEntity: R({
|
|
4020
4020
|
"@type": p(),
|
|
4021
4021
|
"@id": p(),
|
|
4022
4022
|
creator: le(
|
|
@@ -4037,24 +4037,24 @@ const jh = (e, t) => {
|
|
|
4037
4037
|
volumeNumber: le(p())
|
|
4038
4038
|
}),
|
|
4039
4039
|
name: p()
|
|
4040
|
-
}),
|
|
4040
|
+
}), Kf = (e) => {
|
|
4041
4041
|
const t = ct(e);
|
|
4042
4042
|
if (!t)
|
|
4043
4043
|
return null;
|
|
4044
|
-
const r = Fe(t), n =
|
|
4044
|
+
const r = Fe(t), n = Yf.safeParse(r);
|
|
4045
4045
|
return n.success ? n.data : null;
|
|
4046
|
-
},
|
|
4046
|
+
}, Qf = (e) => _e({
|
|
4047
4047
|
...We(e),
|
|
4048
4048
|
au: e.authors,
|
|
4049
4049
|
date: e.date,
|
|
4050
4050
|
pub: e.publisher
|
|
4051
|
-
}),
|
|
4051
|
+
}), eh = /([0-9]{4}-[0-9]{1,2}-[0-9]{1,2}|[0-9]{4}-[0-9]{1,2}|[0-9]{4})/, An = /(E?ISBN|E?ISSN|DOI)\s*:\s*/g, qr = (e) => `*:has([title*="${e}" i]) + .item-details-element-container prm-highlight`, th = (e) => {
|
|
4052
4052
|
if (!e)
|
|
4053
4053
|
return;
|
|
4054
|
-
const t =
|
|
4054
|
+
const t = eh.exec(e);
|
|
4055
4055
|
if (t)
|
|
4056
4056
|
return t.length > 1 ? t[1] : void 0;
|
|
4057
|
-
},
|
|
4057
|
+
}, rh = (e) => {
|
|
4058
4058
|
const t = Array.from(
|
|
4059
4059
|
e.querySelectorAll(qr("Identifier"))
|
|
4060
4060
|
), r = {};
|
|
@@ -4071,13 +4071,13 @@ const jh = (e, t) => {
|
|
|
4071
4071
|
r[i] ??= [], r[i].push(n.substring(a, o[c + 1]?.index));
|
|
4072
4072
|
});
|
|
4073
4073
|
}), r;
|
|
4074
|
-
},
|
|
4074
|
+
}, nh = (e) => Array.from(e.querySelectorAll(qr("Author"))).filter(
|
|
4075
4075
|
(t) => !!t.textContent && t.parentElement !== null && t.parentElement.getAttribute("aria-hidden") !== "true"
|
|
4076
|
-
).map((t) => t.textContent.trim()),
|
|
4077
|
-
const t =
|
|
4076
|
+
).map((t) => t.textContent.trim()), he = (e, t) => e.querySelector(qr(t))?.textContent.trim(), oh = (e) => {
|
|
4077
|
+
const t = he(e, "Creation Date"), r = he(e, "Edition"), n = he(e, "Publication Date"), o = he(e, "Is Part Of"), s = he(e, "Publisher"), i = he(e, "Title"), a = he(e, "MMS ID") ?? he(e, "Record ID"), c = nh(e), u = rh(e), [l] = o?.split(",") ?? [], h = th(n ?? t), d = [...u.isbn ?? [], ...u.eisbn ?? []].map((g) => Pr(g)).filter((g) => !!g);
|
|
4078
4078
|
return {
|
|
4079
4079
|
authors: c,
|
|
4080
|
-
date:
|
|
4080
|
+
date: h,
|
|
4081
4081
|
dois: u.doi,
|
|
4082
4082
|
edition: r,
|
|
4083
4083
|
eissns: u.eissn,
|
|
@@ -4090,34 +4090,34 @@ const jh = (e, t) => {
|
|
|
4090
4090
|
};
|
|
4091
4091
|
};
|
|
4092
4092
|
var Rs = /* @__PURE__ */ ((e) => (e.Article = "Article", e.Book = "Book", e.Periodical = "Periodical", e.Journal = "Journal", e.AudioCD = "Audio CD", e.CreativeWork = "CreativeWork", e.Movie = "Movie", e.Video = "Video", e))(Rs || {});
|
|
4093
|
-
const
|
|
4093
|
+
const sh = (e) => Object.values(Rs).includes(e), ih = (e, t) => {
|
|
4094
4094
|
const r = t?.mainEntity["@type"] ?? e.querySelector(".media-content-type")?.textContent ?? void 0;
|
|
4095
|
-
if (
|
|
4095
|
+
if (sh(r))
|
|
4096
4096
|
return r;
|
|
4097
|
-
},
|
|
4098
|
-
const t =
|
|
4099
|
-
switch (
|
|
4097
|
+
}, ah = ({ document: e }) => {
|
|
4098
|
+
const t = Kf(e), r = oh(e), n = Mf(t, r);
|
|
4099
|
+
switch (ih(e, t)) {
|
|
4100
4100
|
case "Article":
|
|
4101
|
-
return
|
|
4101
|
+
return w(Wf(n));
|
|
4102
4102
|
case "Book":
|
|
4103
|
-
return
|
|
4103
|
+
return w(Xf(n));
|
|
4104
4104
|
case "Periodical":
|
|
4105
4105
|
case "Journal":
|
|
4106
|
-
return
|
|
4106
|
+
return w(Hf(n));
|
|
4107
4107
|
case "Audio CD":
|
|
4108
4108
|
case "CreativeWork":
|
|
4109
|
-
return
|
|
4109
|
+
return w(Gf(n));
|
|
4110
4110
|
case "Movie":
|
|
4111
4111
|
case "Video":
|
|
4112
|
-
return
|
|
4112
|
+
return w(Qf(n));
|
|
4113
4113
|
default:
|
|
4114
4114
|
return T();
|
|
4115
4115
|
}
|
|
4116
|
-
},
|
|
4117
|
-
const t = e.querySelectorAll('[id="Info"] > p'), n = Array.from(t).find((s) => s.textContent.includes("Document Type"))?.textContent, o =
|
|
4116
|
+
}, ch = (e) => {
|
|
4117
|
+
const t = e.querySelectorAll('[id="Info"] > p'), n = Array.from(t).find((s) => s.textContent.includes("Document Type"))?.textContent, o = f(e, "name", "DC.identifier");
|
|
4118
4118
|
return o?.startsWith("info:doi/") || n?.includes("Article") ? y.Article : o?.startsWith("urn:issn:") ? y.Journal : void 0;
|
|
4119
|
-
},
|
|
4120
|
-
const t =
|
|
4119
|
+
}, uh = (e) => {
|
|
4120
|
+
const t = f(
|
|
4121
4121
|
e,
|
|
4122
4122
|
"name",
|
|
4123
4123
|
"DCTERMS.bibliographicCitation"
|
|
@@ -4128,31 +4128,31 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4128
4128
|
issue: o,
|
|
4129
4129
|
pages: s
|
|
4130
4130
|
};
|
|
4131
|
-
},
|
|
4132
|
-
const t =
|
|
4131
|
+
}, lh = (e) => {
|
|
4132
|
+
const t = f(e, "name", "DC.identifier");
|
|
4133
4133
|
return (t ? t.split("info:doi/") : null)?.[1] ?? void 0;
|
|
4134
|
-
},
|
|
4134
|
+
}, ph = (e) => e.evaluate(
|
|
4135
4135
|
'//*[@id="altLayoutPublisherLogo"]/p/a[1]',
|
|
4136
4136
|
e,
|
|
4137
4137
|
null,
|
|
4138
4138
|
XPathResult.STRING_TYPE,
|
|
4139
4139
|
null
|
|
4140
|
-
).stringValue,
|
|
4140
|
+
).stringValue, fh = (e) => {
|
|
4141
4141
|
const [t, r] = e ? e.trim().split("-") : [void 0, void 0], n = r?.replace(/\(\d+\)/, "").trim();
|
|
4142
4142
|
return {
|
|
4143
4143
|
spage: t,
|
|
4144
4144
|
epage: n
|
|
4145
4145
|
};
|
|
4146
|
-
},
|
|
4147
|
-
const t =
|
|
4146
|
+
}, hh = (e) => {
|
|
4147
|
+
const t = f(e, "name", "DCTERMS.issued");
|
|
4148
4148
|
if (!t)
|
|
4149
4149
|
return;
|
|
4150
4150
|
const n = /\d{4}/.exec(t);
|
|
4151
4151
|
return n ? n[0] : void 0;
|
|
4152
|
-
},
|
|
4153
|
-
const t =
|
|
4152
|
+
}, dh = (e) => {
|
|
4153
|
+
const t = f(e, "name", "DC.title"), r = f(e, "name", "DC.publisher"), n = hh(e), o = uh(e), s = o.journalTitle?.trim(), i = o.volume?.trim(), a = o.issue?.trim(), c = o.pages ? fh(o.pages) : void 0, u = c?.spage, l = c?.epage, h = te(e, "name", "DC.creator"), d = lh(e);
|
|
4154
4154
|
return D(E.Article, {
|
|
4155
|
-
au:
|
|
4155
|
+
au: h,
|
|
4156
4156
|
jtitle: s,
|
|
4157
4157
|
date: n,
|
|
4158
4158
|
doi: d,
|
|
@@ -4163,47 +4163,47 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4163
4163
|
atitle: t,
|
|
4164
4164
|
volume: i
|
|
4165
4165
|
});
|
|
4166
|
-
},
|
|
4167
|
-
const t =
|
|
4166
|
+
}, mh = (e) => {
|
|
4167
|
+
const t = f(e, "name", "DC.title"), r = f(e, "name", "DC.publisher"), n = ph(e);
|
|
4168
4168
|
return D(E.Journal, {
|
|
4169
4169
|
issn: n,
|
|
4170
4170
|
title: t,
|
|
4171
4171
|
pub: r
|
|
4172
4172
|
});
|
|
4173
|
-
},
|
|
4173
|
+
}, gh = ({
|
|
4174
4174
|
document: e
|
|
4175
4175
|
}) => {
|
|
4176
|
-
switch (
|
|
4176
|
+
switch (ch(e)) {
|
|
4177
4177
|
case y.Article:
|
|
4178
|
-
return
|
|
4178
|
+
return w(dh(e));
|
|
4179
4179
|
case y.Journal:
|
|
4180
|
-
return
|
|
4180
|
+
return w(mh(e));
|
|
4181
4181
|
default:
|
|
4182
4182
|
return T();
|
|
4183
4183
|
}
|
|
4184
|
-
},
|
|
4185
|
-
const t = e.filter(
|
|
4184
|
+
}, vh = /^\d{4}-\d{3}[\dX]$/i, bh = (e) => vh.test(e), Is = (e) => {
|
|
4185
|
+
const t = e.filter(bh);
|
|
4186
4186
|
return t.length ? t : void 0;
|
|
4187
4187
|
}, Zr = (e) => {
|
|
4188
4188
|
const t = te(e, "name", "citation_author");
|
|
4189
4189
|
return t.length ? t : void 0;
|
|
4190
|
-
}, jr = (e) =>
|
|
4190
|
+
}, jr = (e) => f(e, "name", "citation_publication_date")?.match(/^\d{4}/)?.[0], _h = (e) => f(e, "name", "citation_doi"), ks = (e) => {
|
|
4191
4191
|
const t = te(e, "name", "citation_isbn");
|
|
4192
4192
|
return t.length ? t.join(",") : void 0;
|
|
4193
|
-
}, Cs = (e) => Is(te(e, "name", "citation_issn")), Dr = (e) =>
|
|
4194
|
-
atitle:
|
|
4193
|
+
}, Cs = (e) => Is(te(e, "name", "citation_issn")), Dr = (e) => f(e, "name", "citation_journal_title"), Br = (e) => f(e, "name", "citation_publisher"), ht = (e) => f(e, "name", "citation_title"), yh = (e) => f(e, "name", "citation_doi"), Ur = (e) => f(e, "name", "citation_firstpage"), Vr = (e) => f(e, "name", "citation_lastpage"), Eh = (e) => f(e, "name", "citation_issue"), Sh = (e) => f(e, "name", "citation_volume"), $h = (e) => D(E.Article, {
|
|
4194
|
+
atitle: ht(e),
|
|
4195
4195
|
au: Zr(e),
|
|
4196
4196
|
date: jr(e),
|
|
4197
|
-
doi:
|
|
4197
|
+
doi: _h(e),
|
|
4198
4198
|
issn: Cs(e)?.[0],
|
|
4199
|
-
issue:
|
|
4199
|
+
issue: Eh(e),
|
|
4200
4200
|
jtitle: Dr(e),
|
|
4201
4201
|
pub: Br(e),
|
|
4202
|
-
volume:
|
|
4202
|
+
volume: Sh(e),
|
|
4203
4203
|
spage: Ur(e),
|
|
4204
4204
|
epage: Vr(e)
|
|
4205
|
-
}),
|
|
4206
|
-
atitle:
|
|
4205
|
+
}), Ah = (e) => Q(E.Bookitem, {
|
|
4206
|
+
atitle: ht(e),
|
|
4207
4207
|
au: Zr(e),
|
|
4208
4208
|
btitle: Dr(e),
|
|
4209
4209
|
date: jr(e),
|
|
@@ -4211,65 +4211,65 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4211
4211
|
pub: Br(e),
|
|
4212
4212
|
spage: Ur(e),
|
|
4213
4213
|
epage: Vr(e)
|
|
4214
|
-
}),
|
|
4215
|
-
title:
|
|
4214
|
+
}), wh = (e) => il({
|
|
4215
|
+
title: ht(e),
|
|
4216
4216
|
au: Zr(e),
|
|
4217
4217
|
date: jr(e),
|
|
4218
4218
|
pub: Br(e),
|
|
4219
4219
|
spage: Ur(e),
|
|
4220
4220
|
epage: Vr(e)
|
|
4221
|
-
}), Ps = (e) => !!e.isbn,
|
|
4221
|
+
}), Ps = (e) => !!e.isbn, Rh = (e) => !!e.issn || e.type === "Article" && !!e.journalTitle || !Ps(e) && !!e.journalTitle, Ih = (e) => !!e.title, kh = (e) => {
|
|
4222
4222
|
const t = {
|
|
4223
|
-
type:
|
|
4223
|
+
type: yh(e),
|
|
4224
4224
|
isbn: ks(e),
|
|
4225
4225
|
issn: Cs(e),
|
|
4226
4226
|
journalTitle: Dr(e),
|
|
4227
|
-
title:
|
|
4227
|
+
title: ht(e)
|
|
4228
4228
|
};
|
|
4229
|
-
return Ps(t) ?
|
|
4230
|
-
},
|
|
4231
|
-
const t =
|
|
4232
|
-
return t ?
|
|
4233
|
-
},
|
|
4229
|
+
return Ps(t) ? Ah(e) : Rh(t) ? $h(e) : Ih(t) ? wh(e) : null;
|
|
4230
|
+
}, Ch = ({ document: e }) => {
|
|
4231
|
+
const t = kh(e);
|
|
4232
|
+
return t ? w(t) : T();
|
|
4233
|
+
}, Ph = R({
|
|
4234
4234
|
"@content": p(),
|
|
4235
4235
|
datePublished: p().optional(),
|
|
4236
|
-
mainEntity:
|
|
4236
|
+
mainEntity: R({
|
|
4237
4237
|
type: p().optional(),
|
|
4238
4238
|
name: p().optional(),
|
|
4239
4239
|
author: j(
|
|
4240
|
-
|
|
4240
|
+
R({
|
|
4241
4241
|
name: p()
|
|
4242
4242
|
})
|
|
4243
4243
|
).optional(),
|
|
4244
|
-
publisher:
|
|
4244
|
+
publisher: R({
|
|
4245
4245
|
type: p(),
|
|
4246
4246
|
name: p()
|
|
4247
4247
|
}).optional(),
|
|
4248
4248
|
isbn: p().optional()
|
|
4249
4249
|
})
|
|
4250
|
-
}),
|
|
4250
|
+
}), xh = (e) => Ph.safeParse(e).success, Oh = (e) => {
|
|
4251
4251
|
const t = e.textContent;
|
|
4252
4252
|
if (!t)
|
|
4253
4253
|
return null;
|
|
4254
4254
|
try {
|
|
4255
4255
|
const r = JSON.parse(t);
|
|
4256
|
-
if (
|
|
4256
|
+
if (xh(r))
|
|
4257
4257
|
return r;
|
|
4258
4258
|
} catch {
|
|
4259
4259
|
return null;
|
|
4260
4260
|
}
|
|
4261
4261
|
return null;
|
|
4262
|
-
},
|
|
4262
|
+
}, Nh = ({ document: e }) => {
|
|
4263
4263
|
const t = ct(e);
|
|
4264
4264
|
if (!t)
|
|
4265
4265
|
return T();
|
|
4266
|
-
const r =
|
|
4266
|
+
const r = Oh(t);
|
|
4267
4267
|
if (!r)
|
|
4268
4268
|
return T();
|
|
4269
4269
|
const n = r.mainEntity.type, o = r.mainEntity.author?.map((u) => u.name), s = r.datePublished?.substring(0, 4), i = r.mainEntity.name, a = r.mainEntity.isbn, c = r.mainEntity.publisher?.name;
|
|
4270
4270
|
switch (n) {
|
|
4271
4271
|
case "Book":
|
|
4272
|
-
return
|
|
4272
|
+
return w(
|
|
4273
4273
|
Q(E.Book, {
|
|
4274
4274
|
au: o,
|
|
4275
4275
|
date: s,
|
|
@@ -4281,21 +4281,21 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4281
4281
|
default:
|
|
4282
4282
|
return T();
|
|
4283
4283
|
}
|
|
4284
|
-
},
|
|
4284
|
+
}, zh = we.extend({
|
|
4285
4285
|
"@type": p().optional(),
|
|
4286
4286
|
name: p().optional(),
|
|
4287
4287
|
copyrightYear: Vo().optional(),
|
|
4288
4288
|
author: j(
|
|
4289
|
-
|
|
4289
|
+
R({
|
|
4290
4290
|
name: p()
|
|
4291
4291
|
})
|
|
4292
4292
|
).optional(),
|
|
4293
4293
|
publisher: j(
|
|
4294
|
-
|
|
4294
|
+
R({
|
|
4295
4295
|
name: p()
|
|
4296
4296
|
})
|
|
4297
4297
|
).optional()
|
|
4298
|
-
}),
|
|
4298
|
+
}), Lh = (e) => zh.safeParse(e).success, Th = ({
|
|
4299
4299
|
document: e,
|
|
4300
4300
|
url: t
|
|
4301
4301
|
}) => {
|
|
@@ -4303,12 +4303,12 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4303
4303
|
if (!r)
|
|
4304
4304
|
return T();
|
|
4305
4305
|
const n = Fe(r);
|
|
4306
|
-
if (!n || !
|
|
4306
|
+
if (!n || !Lh(n))
|
|
4307
4307
|
return T();
|
|
4308
|
-
const o = n["@type"], s = n.author?.map((l) => l.name), i = n.copyrightYear?.toString() ??
|
|
4308
|
+
const o = n["@type"], s = n.author?.map((l) => l.name), i = n.copyrightYear?.toString() ?? f(e, "property", "og:book:release_date"), a = n.name, c = Lr(n.publisher?.map((l) => l.name)), u = f(e, "property", "og:book:isbn");
|
|
4309
4309
|
switch (o) {
|
|
4310
4310
|
case "Book":
|
|
4311
|
-
return
|
|
4311
|
+
return w(
|
|
4312
4312
|
Q(E.Book, {
|
|
4313
4313
|
au: s,
|
|
4314
4314
|
date: i,
|
|
@@ -4321,15 +4321,15 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4321
4321
|
default:
|
|
4322
4322
|
return T();
|
|
4323
4323
|
}
|
|
4324
|
-
},
|
|
4324
|
+
}, qh = (e) => {
|
|
4325
4325
|
const t = Array.from(e.querySelectorAll("a[rel=author]")).map((r) => r.textContent.trim()).filter(Boolean);
|
|
4326
4326
|
return t.length ? t : void 0;
|
|
4327
|
-
},
|
|
4327
|
+
}, Zh = (e) => {
|
|
4328
4328
|
const t = Array.from(e.querySelectorAll("strong")).filter((r) => r.textContent.startsWith("ISBN")).map((r) => r.nextElementSibling?.textContent.trim());
|
|
4329
4329
|
if (t.length !== 0)
|
|
4330
4330
|
return t[0]?.replace(/\s+/, ",");
|
|
4331
|
-
},
|
|
4332
|
-
const r = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, n =
|
|
4331
|
+
}, jh = ({ url: e, document: t }) => {
|
|
4332
|
+
const r = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, n = qh(t), o = f(t, "property", "article:published_time"), s = Zh(t), i = Q(E.Book, {
|
|
4333
4333
|
au: n,
|
|
4334
4334
|
date: o?.substring(0, 4),
|
|
4335
4335
|
isbn: s,
|
|
@@ -4337,32 +4337,32 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4337
4337
|
title: r,
|
|
4338
4338
|
uri: e
|
|
4339
4339
|
});
|
|
4340
|
-
return
|
|
4341
|
-
},
|
|
4340
|
+
return w(i);
|
|
4341
|
+
}, Dh = ({
|
|
4342
4342
|
document: e,
|
|
4343
4343
|
url: t
|
|
4344
4344
|
}) => {
|
|
4345
|
-
switch (
|
|
4345
|
+
switch (Bh(t)) {
|
|
4346
4346
|
case y.Chapter:
|
|
4347
|
-
return
|
|
4347
|
+
return w(Mh(e));
|
|
4348
4348
|
case y.Book:
|
|
4349
|
-
return
|
|
4349
|
+
return w(Wh(e));
|
|
4350
4350
|
case y.Article:
|
|
4351
|
-
return
|
|
4351
|
+
return w(Uh(e));
|
|
4352
4352
|
case y.Journal:
|
|
4353
|
-
return
|
|
4353
|
+
return w(Vh(e));
|
|
4354
4354
|
default:
|
|
4355
4355
|
return T();
|
|
4356
4356
|
}
|
|
4357
|
-
},
|
|
4357
|
+
}, Bh = (e) => {
|
|
4358
4358
|
const { pathname: t } = new URL(e);
|
|
4359
4359
|
return t.includes("/books/abs/") ? y.Chapter : t.includes("/books/") ? y.Book : /\/journals\/.+\/article\//.exec(t) != null ? y.Article : t.includes("/journals/") ? y.Journal : y.None;
|
|
4360
|
-
},
|
|
4361
|
-
const t =
|
|
4360
|
+
}, Uh = (e) => {
|
|
4361
|
+
const t = f(e, "name", "citation_title"), r = f(e, "name", "citation_journal_title"), n = f(e, "name", "citation_doi"), o = f(e, "name", "citation_volume"), s = f(e, "name", "citation_issue"), i = f(e, "name", "citation_firstpage"), a = f(e, "name", "citation_lastpage"), c = f(
|
|
4362
4362
|
e,
|
|
4363
4363
|
"name",
|
|
4364
4364
|
"citation_publication_date"
|
|
4365
|
-
)?.substring(0, 4), u =
|
|
4365
|
+
)?.substring(0, 4), u = f(e, "name", "citation_publisher"), l = xs(e), h = Is(
|
|
4366
4366
|
te(e, "name", "citation_issn")
|
|
4367
4367
|
);
|
|
4368
4368
|
return D(E.Article, {
|
|
@@ -4372,14 +4372,14 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4372
4372
|
doi: n,
|
|
4373
4373
|
volume: o,
|
|
4374
4374
|
issue: s,
|
|
4375
|
-
issn:
|
|
4375
|
+
issn: h?.[0],
|
|
4376
4376
|
spage: i,
|
|
4377
4377
|
epage: a,
|
|
4378
4378
|
date: c,
|
|
4379
4379
|
pub: u
|
|
4380
4380
|
});
|
|
4381
|
-
},
|
|
4382
|
-
const t =
|
|
4381
|
+
}, Vh = (e) => {
|
|
4382
|
+
const t = Fh(e), r = Jh(e), n = r.find(
|
|
4383
4383
|
(a) => a.type === "Print"
|
|
4384
4384
|
/* Print */
|
|
4385
4385
|
), o = r.find(
|
|
@@ -4391,7 +4391,7 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4391
4391
|
issn: s,
|
|
4392
4392
|
eissn: i
|
|
4393
4393
|
});
|
|
4394
|
-
},
|
|
4394
|
+
}, Fh = (e) => e.querySelector("h1.title")?.textContent.trim() ?? void 0, Jh = (e) => {
|
|
4395
4395
|
const r = Array.from(e.querySelectorAll("span.bold")).find(
|
|
4396
4396
|
(s) => s.textContent.trim() === "ISSN:"
|
|
4397
4397
|
), n = /^([0-9]{4}-[0-9]{3}[0-9X]) \((Print|Online)\)/, o = [];
|
|
@@ -4399,12 +4399,12 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4399
4399
|
const a = i.textContent.trim(), c = n.exec(a);
|
|
4400
4400
|
c && o.push({ value: c[1], type: c[2] });
|
|
4401
4401
|
}), o;
|
|
4402
|
-
},
|
|
4403
|
-
const t =
|
|
4402
|
+
}, Mh = (e) => {
|
|
4403
|
+
const t = f(e, "name", "citation_title"), r = f(e, "name", "citation_inbook_title"), n = f(e, "name", "citation_doi"), o = f(
|
|
4404
4404
|
e,
|
|
4405
4405
|
"name",
|
|
4406
4406
|
"citation_publication_date"
|
|
4407
|
-
)?.substring(0, 4), s =
|
|
4407
|
+
)?.substring(0, 4), s = f(e, "name", "citation_publisher");
|
|
4408
4408
|
return Q(E.Bookitem, {
|
|
4409
4409
|
atitle: t,
|
|
4410
4410
|
btitle: r,
|
|
@@ -4412,12 +4412,12 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4412
4412
|
date: o,
|
|
4413
4413
|
pub: s
|
|
4414
4414
|
});
|
|
4415
|
-
},
|
|
4416
|
-
const t =
|
|
4415
|
+
}, Wh = (e) => {
|
|
4416
|
+
const t = f(e, "name", "citation_title"), r = f(e, "name", "citation_doi"), n = f(e, "name", "citation_isbn"), o = f(
|
|
4417
4417
|
e,
|
|
4418
4418
|
"name",
|
|
4419
4419
|
"citation_publication_date"
|
|
4420
|
-
)?.substring(0, 4), s =
|
|
4420
|
+
)?.substring(0, 4), s = f(e, "name", "citation_publisher"), i = xs(e);
|
|
4421
4421
|
return Q(E.Book, {
|
|
4422
4422
|
title: t,
|
|
4423
4423
|
au: i,
|
|
@@ -4429,8 +4429,8 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4429
4429
|
}, xs = (e) => {
|
|
4430
4430
|
const t = te(e, "name", "citation_author");
|
|
4431
4431
|
return t.length ? t : void 0;
|
|
4432
|
-
},
|
|
4433
|
-
switch (
|
|
4432
|
+
}, Gh = (e) => {
|
|
4433
|
+
switch (f(e, "property", "og:type")) {
|
|
4434
4434
|
case "Article":
|
|
4435
4435
|
return "Article";
|
|
4436
4436
|
case "Journal":
|
|
@@ -4439,9 +4439,9 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4439
4439
|
return;
|
|
4440
4440
|
}
|
|
4441
4441
|
};
|
|
4442
|
-
function
|
|
4443
|
-
const t =
|
|
4444
|
-
return
|
|
4442
|
+
function Xh(e) {
|
|
4443
|
+
const t = f(e, "property", "og:title"), r = f(e, "name", "dc.Publisher"), n = f(e, "name", "publication_doi");
|
|
4444
|
+
return w(
|
|
4445
4445
|
D(E.Journal, {
|
|
4446
4446
|
jtitle: t,
|
|
4447
4447
|
pub: r,
|
|
@@ -4449,9 +4449,9 @@ function Xf(e) {
|
|
|
4449
4449
|
})
|
|
4450
4450
|
);
|
|
4451
4451
|
}
|
|
4452
|
-
function
|
|
4453
|
-
const t =
|
|
4454
|
-
return
|
|
4452
|
+
function Hh(e) {
|
|
4453
|
+
const t = f(e, "name", "dc.Title"), r = te(e, "name", "dc.Creator"), n = f(e, "name", "dc.Date")?.substring(0, 4), o = f(e, "name", "publication_doi"), s = f(e, "name", "citation_journal_title"), i = f(e, "name", "dc.Publisher");
|
|
4454
|
+
return w(
|
|
4455
4455
|
D(E.Article, {
|
|
4456
4456
|
atitle: t,
|
|
4457
4457
|
au: r,
|
|
@@ -4462,16 +4462,16 @@ function Hf(e) {
|
|
|
4462
4462
|
})
|
|
4463
4463
|
);
|
|
4464
4464
|
}
|
|
4465
|
-
const
|
|
4466
|
-
switch (
|
|
4465
|
+
const Yh = ({ document: e }) => {
|
|
4466
|
+
switch (Gh(e)) {
|
|
4467
4467
|
case "Journal":
|
|
4468
|
-
return
|
|
4468
|
+
return Xh(e);
|
|
4469
4469
|
case "Article":
|
|
4470
|
-
return
|
|
4470
|
+
return Hh(e);
|
|
4471
4471
|
default:
|
|
4472
4472
|
return T();
|
|
4473
4473
|
}
|
|
4474
|
-
},
|
|
4474
|
+
}, Kh = (e) => {
|
|
4475
4475
|
if (!e)
|
|
4476
4476
|
return;
|
|
4477
4477
|
const [t, r] = e.trim().split("-");
|
|
@@ -4479,35 +4479,35 @@ const Yf = ({ document: e }) => {
|
|
|
4479
4479
|
spage: t,
|
|
4480
4480
|
epage: r
|
|
4481
4481
|
};
|
|
4482
|
-
},
|
|
4482
|
+
}, Qh = (e) => {
|
|
4483
4483
|
const { pathname: t } = new URL(e);
|
|
4484
4484
|
if (t.includes("/article/"))
|
|
4485
4485
|
return y.Article;
|
|
4486
4486
|
}, ed = (e) => {
|
|
4487
|
-
const t =
|
|
4487
|
+
const t = f(e, "name", "DC.Source"), r = f(e, "name", "DC.Title"), n = te(e, "name", "DC.Creator.PersonalName"), o = f(e, "name", "DC.Source.ISSN"), s = f(e, "name", "citation_date")?.substring(
|
|
4488
4488
|
0,
|
|
4489
4489
|
4
|
|
4490
|
-
), i =
|
|
4490
|
+
), i = f(e, "name", "DC.Source.Volume"), a = f(e, "name", "DC.Source.Issue"), c = f(e, "name", "DC.Identifier.URI"), u = f(
|
|
4491
4491
|
e,
|
|
4492
4492
|
"name",
|
|
4493
4493
|
"DC.Identifier.pageNumber"
|
|
4494
|
-
), l = u ?
|
|
4494
|
+
), l = u ? Kh(u) : void 0, h = l?.spage, d = l?.epage;
|
|
4495
4495
|
return D(E.Article, {
|
|
4496
4496
|
jtitle: t,
|
|
4497
4497
|
atitle: r,
|
|
4498
4498
|
au: n,
|
|
4499
4499
|
issn: o,
|
|
4500
4500
|
date: s,
|
|
4501
|
-
spage:
|
|
4501
|
+
spage: h,
|
|
4502
4502
|
epage: d,
|
|
4503
4503
|
volume: i,
|
|
4504
4504
|
issue: a,
|
|
4505
4505
|
uri: c
|
|
4506
4506
|
});
|
|
4507
4507
|
}, td = ({ document: e, url: t }) => {
|
|
4508
|
-
switch (
|
|
4508
|
+
switch (Qh(t)) {
|
|
4509
4509
|
case y.Article:
|
|
4510
|
-
return
|
|
4510
|
+
return w(ed(e));
|
|
4511
4511
|
default:
|
|
4512
4512
|
return T();
|
|
4513
4513
|
}
|
|
@@ -4522,14 +4522,14 @@ const Yf = ({ document: e }) => {
|
|
|
4522
4522
|
}
|
|
4523
4523
|
}, nd = (e) => e.querySelector("#vol-contentType a")?.textContent ?? void 0;
|
|
4524
4524
|
function od(e, t) {
|
|
4525
|
-
const r = Os(e), n = _r(e), o = Ns(e), s = zs(e), i = Ls(e), a = Ts(e), c = _r(e), u = t, { startPage: l, endPage:
|
|
4526
|
-
return
|
|
4525
|
+
const r = Os(e), n = _r(e), o = Ns(e), s = zs(e), i = Ls(e), a = Ts(e), c = _r(e), u = t, { startPage: l, endPage: h } = qs(e) ?? {};
|
|
4526
|
+
return w(
|
|
4527
4527
|
Q(E.Book, {
|
|
4528
4528
|
au: r,
|
|
4529
4529
|
btitle: n,
|
|
4530
4530
|
date: o,
|
|
4531
4531
|
doi: s,
|
|
4532
|
-
epage:
|
|
4532
|
+
epage: h,
|
|
4533
4533
|
isbn: i,
|
|
4534
4534
|
pub: a,
|
|
4535
4535
|
spage: l,
|
|
@@ -4539,8 +4539,8 @@ function od(e, t) {
|
|
|
4539
4539
|
);
|
|
4540
4540
|
}
|
|
4541
4541
|
function sd(e, t) {
|
|
4542
|
-
const r = Os(e), n = wn(e), o = _r(e), s = Ns(e), i = zs(e), a = Ls(e), c = Ts(e), u = wn(e), l = t, { startPage:
|
|
4543
|
-
return
|
|
4542
|
+
const r = Os(e), n = wn(e), o = _r(e), s = Ns(e), i = zs(e), a = Ls(e), c = Ts(e), u = wn(e), l = t, { startPage: h, endPage: d } = qs(e) ?? {};
|
|
4543
|
+
return w(
|
|
4544
4544
|
Q(E.Book, {
|
|
4545
4545
|
au: r,
|
|
4546
4546
|
atitle: n,
|
|
@@ -4550,7 +4550,7 @@ function sd(e, t) {
|
|
|
4550
4550
|
epage: d,
|
|
4551
4551
|
isbn: a,
|
|
4552
4552
|
pub: c,
|
|
4553
|
-
spage:
|
|
4553
|
+
spage: h,
|
|
4554
4554
|
title: u,
|
|
4555
4555
|
uri: l
|
|
4556
4556
|
})
|
|
@@ -4561,7 +4561,7 @@ const Os = (e) => {
|
|
|
4561
4561
|
"div#article_author p.author-bio b"
|
|
4562
4562
|
), r = Array.from(t).map((n) => n.textContent).filter((n) => !!n).map((n) => n.trim());
|
|
4563
4563
|
return r.length > 0 ? r : void 0;
|
|
4564
|
-
}, Le = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, id = (e) =>
|
|
4564
|
+
}, Le = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, id = (e) => f(e, "property", "og:title"), _r = (e) => Le(e, "titlevalue") ?? id(e), wn = (e) => Le(e, "chapter-title-squid"), Ns = (e) => Le(e, "pubdate-squid"), zs = (e) => Le(e, "doi-squid"), Ls = (e) => Le(e, "isbn-squid"), Ts = (e) => Le(e, "pubname-squid"), qs = (e) => {
|
|
4565
4565
|
const t = e.querySelector("#pageRange")?.textContent ?? void 0;
|
|
4566
4566
|
if (!t) return;
|
|
4567
4567
|
const n = /(\d+)–(\d+)/.exec(t);
|
|
@@ -4603,19 +4603,19 @@ const Os = (e) => {
|
|
|
4603
4603
|
t.resource.genre = r, ld(t.resource);
|
|
4604
4604
|
}
|
|
4605
4605
|
return t;
|
|
4606
|
-
},
|
|
4607
|
-
const t =
|
|
4606
|
+
}, fd = (e) => {
|
|
4607
|
+
const t = f(e, "name", "type")?.toLowerCase(), r = f(e, "name", "og:type")?.toLowerCase(), n = f(
|
|
4608
4608
|
e,
|
|
4609
4609
|
"name",
|
|
4610
4610
|
"citation_article_type"
|
|
4611
4611
|
)?.toLowerCase();
|
|
4612
4612
|
if (t === "article" || n === "article" || r === "article")
|
|
4613
4613
|
return y.Article;
|
|
4614
|
-
const o =
|
|
4614
|
+
const o = f(e, "name", "twitter:title")?.trim(), s = f(e, "name", "description")?.trim();
|
|
4615
4615
|
if (o || s)
|
|
4616
4616
|
return y.Webpage;
|
|
4617
|
-
},
|
|
4618
|
-
const t =
|
|
4617
|
+
}, hd = (e) => {
|
|
4618
|
+
const t = f(e, "name", "DC.Title"), r = f(e, "name", "DC.Publisher"), n = f(e, "name", "DC.Date"), o = f(e, "name", "DC.Identifier"), s = f(e, "name", "citation_journal_title"), i = f(e, "name", "citation_volume"), a = f(e, "name", "citation_issn"), c = te(e, "name", "citation_author");
|
|
4619
4619
|
return D(E.Article, {
|
|
4620
4620
|
au: c,
|
|
4621
4621
|
jtitle: s,
|
|
@@ -4627,7 +4627,7 @@ const Os = (e) => {
|
|
|
4627
4627
|
volume: i
|
|
4628
4628
|
});
|
|
4629
4629
|
}, dd = (e, t) => {
|
|
4630
|
-
const r =
|
|
4630
|
+
const r = f(t, "name", "twitter:title");
|
|
4631
4631
|
return Ir({
|
|
4632
4632
|
uri: e,
|
|
4633
4633
|
title: r
|
|
@@ -4636,11 +4636,11 @@ const Os = (e) => {
|
|
|
4636
4636
|
url: e,
|
|
4637
4637
|
document: t
|
|
4638
4638
|
}) => {
|
|
4639
|
-
switch (
|
|
4639
|
+
switch (fd(t)) {
|
|
4640
4640
|
case y.Article:
|
|
4641
|
-
return
|
|
4641
|
+
return w(hd(t));
|
|
4642
4642
|
case y.Webpage:
|
|
4643
|
-
return
|
|
4643
|
+
return w(dd(e, t));
|
|
4644
4644
|
}
|
|
4645
4645
|
return T();
|
|
4646
4646
|
}, gd = ({
|
|
@@ -4688,8 +4688,8 @@ const Ed = ({
|
|
|
4688
4688
|
}) => {
|
|
4689
4689
|
if (!new URL(e).searchParams.has("i"))
|
|
4690
4690
|
return T();
|
|
4691
|
-
const n = E.AudioDocument, o =
|
|
4692
|
-
return
|
|
4691
|
+
const n = E.AudioDocument, o = f(t, "property", "og:site_name"), s = f(t, "property", "og:title"), i = yd(t);
|
|
4692
|
+
return w({
|
|
4693
4693
|
genre: n,
|
|
4694
4694
|
pub: o,
|
|
4695
4695
|
title: s,
|
|
@@ -4697,14 +4697,14 @@ const Ed = ({
|
|
|
4697
4697
|
...i
|
|
4698
4698
|
});
|
|
4699
4699
|
}, Sd = (e) => {
|
|
4700
|
-
const t =
|
|
4700
|
+
const t = f(e, "name", "citation_date");
|
|
4701
4701
|
return t ? t.split("/").find((o) => /^\d{4}/.test(o)) ?? void 0 : void 0;
|
|
4702
4702
|
}, $d = (e) => {
|
|
4703
4703
|
const t = e.querySelector("#arxiv-doi-link")?.textContent;
|
|
4704
4704
|
return t ? t.replace("https://doi.org/", "").trim() : void 0;
|
|
4705
4705
|
}, Ad = ({ document: e }) => {
|
|
4706
|
-
const t =
|
|
4707
|
-
return !t && n.length === 0 && !o && !s ? T() :
|
|
4706
|
+
const t = f(e, "name", "citation_title"), r = f(e, "name", "citation_pdf_url"), n = te(e, "name", "citation_author"), o = Sd(e), s = $d(e);
|
|
4707
|
+
return !t && n.length === 0 && !o && !s ? T() : w(
|
|
4708
4708
|
D(E.Article, {
|
|
4709
4709
|
au: n,
|
|
4710
4710
|
date: o,
|
|
@@ -4749,34 +4749,82 @@ const Ed = ({
|
|
|
4749
4749
|
title: i,
|
|
4750
4750
|
uri: e
|
|
4751
4751
|
});
|
|
4752
|
-
return
|
|
4752
|
+
return w(a);
|
|
4753
|
+
}, kd = (e) => {
|
|
4754
|
+
if (f(e, "property", "og:type") === "article")
|
|
4755
|
+
return y.Article;
|
|
4756
|
+
};
|
|
4757
|
+
function Cd(e) {
|
|
4758
|
+
const t = {}, r = e.querySelector("[data-id=layout-form]");
|
|
4759
|
+
return r && Array.from(r.getElementsByTagName("h2")).forEach((o) => {
|
|
4760
|
+
const s = o.textContent.toLowerCase(), a = Array.from(
|
|
4761
|
+
o.parentElement?.getElementsByTagName("span") ?? []
|
|
4762
|
+
).map((c) => c.textContent || "");
|
|
4763
|
+
s && (t[s] = a[0]);
|
|
4764
|
+
}), t;
|
|
4765
|
+
}
|
|
4766
|
+
function Pd(e, t, r) {
|
|
4767
|
+
return r.includes("publisher") ? t.publisher : r.includes("place of publication, exhibition, or creation") ? t["place of publication, exhibition, or creation"] : f(e, "name", "DC.publisher");
|
|
4768
|
+
}
|
|
4769
|
+
function xd(e) {
|
|
4770
|
+
const t = f(
|
|
4771
|
+
e,
|
|
4772
|
+
"name",
|
|
4773
|
+
"citation_publication_date"
|
|
4774
|
+
);
|
|
4775
|
+
return t ? t.substring(0, 4) : f(e, "name", "citation_online_date")?.substring(
|
|
4776
|
+
0,
|
|
4777
|
+
4
|
|
4778
|
+
);
|
|
4779
|
+
}
|
|
4780
|
+
const Od = (e) => {
|
|
4781
|
+
const t = Cd(e), r = f(e, "name", "DataCite.title"), n = te(e, "name", "DataCite.contributor"), o = xd(e), s = f(e, "name", "DC.identifier.DOI"), i = Object.keys(t), a = Pd(e, t, i), c = i.includes("journal") ? t.journal : void 0, u = i.includes("volume") ? t.volume : void 0, l = i.includes("issue") ? t.issue : void 0, h = i.includes("issn") ? t.issn : void 0, d = i.includes("electronic location (url)") ? t["electronic location (url)"] : void 0;
|
|
4782
|
+
return D(E.Article, {
|
|
4783
|
+
jtitle: c,
|
|
4784
|
+
atitle: r,
|
|
4785
|
+
pub: a,
|
|
4786
|
+
au: n,
|
|
4787
|
+
date: o,
|
|
4788
|
+
doi: s,
|
|
4789
|
+
volume: u,
|
|
4790
|
+
issue: l,
|
|
4791
|
+
issn: h,
|
|
4792
|
+
uri: d
|
|
4793
|
+
});
|
|
4794
|
+
}, Nd = ({ document: e }) => {
|
|
4795
|
+
switch (kd(e)) {
|
|
4796
|
+
case y.Article:
|
|
4797
|
+
return w(Od(e));
|
|
4798
|
+
default:
|
|
4799
|
+
return T();
|
|
4800
|
+
}
|
|
4753
4801
|
};
|
|
4754
|
-
var L = /* @__PURE__ */ ((e) => (e.NoResourceFound = "NoResourceFound", e.Z3988 = "Z3988", e.Z3988SearchResult = "Z3988SearchResult", e.Amazon = "Amazon", e.CupOfJo = "CupOfJo", e.IngentaConnect = "IngentaConnect", e.Jstor = "Jstor", e.Milne = "Milne", e.Primo = "Primo", e.SagePub = "SagePub", e.SageVideo = "SageVideo", e.ScienceDirect = "ScienceDirect", e.Springer = "Springer", e.Youtube = "Youtube", e.TaylorFrancis = "TaylorFrancis", e.Wiley = "Wiley", e.VuFind = "VuFind", e.ClinicalKey = "ClinicalKey", e.DOAJ = "DOAJ", e.Ebscohost = "Ebscohost", e.OpenStax = "OpenStax", e.CambridgeJournalsOnline = "CambridgeJournalsOnline", e.OpenTextbook = "OpenTextbook", e.AhaJournals = "AhaJournals", e.Ijees = "Ijees", e.BloomsburyCollections = "BloomsburyCollections", e.HeritageCirqa = "HeritageCirqa", e.BritishMedicalJournal = "BritishMedicalJournal", e.SummonSearchResult = "SummonSearchResult", e.ApplePodcasts = "ApplePodcasts", e.Arxiv = "Arxiv", e.KanopyVideo = "KanopyVideo", e))(L || {});
|
|
4802
|
+
var L = /* @__PURE__ */ ((e) => (e.NoResourceFound = "NoResourceFound", e.Z3988 = "Z3988", e.Z3988SearchResult = "Z3988SearchResult", e.Amazon = "Amazon", e.CupOfJo = "CupOfJo", e.IngentaConnect = "IngentaConnect", e.Jstor = "Jstor", e.Milne = "Milne", e.Primo = "Primo", e.SagePub = "SagePub", e.SageVideo = "SageVideo", e.ScienceDirect = "ScienceDirect", e.Springer = "Springer", e.Youtube = "Youtube", e.TaylorFrancis = "TaylorFrancis", e.Wiley = "Wiley", e.VuFind = "VuFind", e.ClinicalKey = "ClinicalKey", e.DOAJ = "DOAJ", e.Ebscohost = "Ebscohost", e.OpenStax = "OpenStax", e.CambridgeJournalsOnline = "CambridgeJournalsOnline", e.OpenTextbook = "OpenTextbook", e.AhaJournals = "AhaJournals", e.Ijees = "Ijees", e.BloomsburyCollections = "BloomsburyCollections", e.HeritageCirqa = "HeritageCirqa", e.BritishMedicalJournal = "BritishMedicalJournal", e.SummonSearchResult = "SummonSearchResult", e.ApplePodcasts = "ApplePodcasts", e.Arxiv = "Arxiv", e.KanopyVideo = "KanopyVideo", e.LaTrobeOpal = "LaTrobeOpal", e))(L || {});
|
|
4755
4803
|
const In = {
|
|
4756
4804
|
NoResourceFound: ds,
|
|
4757
4805
|
Z3988: Cr,
|
|
4758
|
-
Z3988SearchResult:
|
|
4806
|
+
Z3988SearchResult: $f,
|
|
4759
4807
|
Amazon: Ol,
|
|
4760
4808
|
CupOfJo: ep,
|
|
4761
|
-
Jstor:
|
|
4809
|
+
Jstor: Ff,
|
|
4762
4810
|
Youtube: Dp,
|
|
4763
4811
|
SagePub: mp,
|
|
4764
|
-
SageVideo:
|
|
4812
|
+
SageVideo: Sf,
|
|
4765
4813
|
ScienceDirect: Ap,
|
|
4766
|
-
Springer:
|
|
4814
|
+
Springer: of,
|
|
4767
4815
|
TaylorFrancis: xp,
|
|
4768
|
-
Wiley:
|
|
4816
|
+
Wiley: yf,
|
|
4769
4817
|
VuFind: Tp,
|
|
4770
4818
|
ClinicalKey: Jl,
|
|
4771
4819
|
DOAJ: sp,
|
|
4772
|
-
Primo:
|
|
4773
|
-
IngentaConnect:
|
|
4774
|
-
Ebscohost:
|
|
4775
|
-
OpenStax:
|
|
4776
|
-
OpenTextbook:
|
|
4777
|
-
Milne:
|
|
4778
|
-
CambridgeJournalsOnline:
|
|
4779
|
-
AhaJournals:
|
|
4820
|
+
Primo: ah,
|
|
4821
|
+
IngentaConnect: gh,
|
|
4822
|
+
Ebscohost: Ch,
|
|
4823
|
+
OpenStax: Nh,
|
|
4824
|
+
OpenTextbook: Th,
|
|
4825
|
+
Milne: jh,
|
|
4826
|
+
CambridgeJournalsOnline: Dh,
|
|
4827
|
+
AhaJournals: Yh,
|
|
4780
4828
|
Ijees: td,
|
|
4781
4829
|
BloomsburyCollections: ad,
|
|
4782
4830
|
HeritageCirqa: pd,
|
|
@@ -4784,11 +4832,12 @@ const In = {
|
|
|
4784
4832
|
SummonSearchResult: gd,
|
|
4785
4833
|
ApplePodcasts: Ed,
|
|
4786
4834
|
Arxiv: Ad,
|
|
4787
|
-
KanopyVideo: Id
|
|
4788
|
-
|
|
4835
|
+
KanopyVideo: Id,
|
|
4836
|
+
LaTrobeOpal: Nd
|
|
4837
|
+
}, zd = "5.29.0", Zs = () => zd, Ld = ["com.au", "com", "ca", "co.uk", "de", "fr", "nl"], Td = Ld.flatMap((e) => [
|
|
4789
4838
|
`amazon.${e}`,
|
|
4790
4839
|
`www.amazon.${e}`
|
|
4791
|
-
]),
|
|
4840
|
+
]), Vm = {
|
|
4792
4841
|
version: Zs(),
|
|
4793
4842
|
siteRegistrations: [
|
|
4794
4843
|
{
|
|
@@ -4806,7 +4855,7 @@ const In = {
|
|
|
4806
4855
|
parsers: [L.SummonSearchResult]
|
|
4807
4856
|
},
|
|
4808
4857
|
{
|
|
4809
|
-
matcher: {
|
|
4858
|
+
matcher: { regexp: "cupofjo[.-]com" },
|
|
4810
4859
|
name: "Cup of Jo",
|
|
4811
4860
|
parsers: [L.CupOfJo]
|
|
4812
4861
|
},
|
|
@@ -4816,30 +4865,35 @@ const In = {
|
|
|
4816
4865
|
parsers: [L.Youtube]
|
|
4817
4866
|
},
|
|
4818
4867
|
{
|
|
4819
|
-
matcher: {
|
|
4868
|
+
matcher: { regexp: "www[-.]sciencedirect[.-]com" },
|
|
4820
4869
|
name: "Science Direct",
|
|
4821
4870
|
parsers: [L.ScienceDirect]
|
|
4822
4871
|
},
|
|
4823
4872
|
{
|
|
4824
|
-
matcher: { hostnames:
|
|
4873
|
+
matcher: { hostnames: Td },
|
|
4825
4874
|
name: "Amazon",
|
|
4826
4875
|
parsers: [L.Amazon]
|
|
4827
4876
|
},
|
|
4877
|
+
{
|
|
4878
|
+
matcher: { regexp: "^https://sk\\.sagepub\\.com/video/" },
|
|
4879
|
+
name: "Sage Video",
|
|
4880
|
+
parsers: [L.SageVideo]
|
|
4881
|
+
},
|
|
4828
4882
|
{
|
|
4829
4883
|
matcher: {
|
|
4830
|
-
|
|
4884
|
+
regexp: "[/.-]((www|journals)[.-])?sagepub[.-]com"
|
|
4831
4885
|
},
|
|
4832
4886
|
name: "Sage Publishing",
|
|
4833
4887
|
parsers: [L.SagePub]
|
|
4834
4888
|
},
|
|
4835
4889
|
{
|
|
4836
|
-
matcher: {
|
|
4890
|
+
matcher: { regexp: "www[.-]tandfonline[.-]com" },
|
|
4837
4891
|
name: "Taylor & Francis",
|
|
4838
4892
|
parsers: [L.TaylorFrancis]
|
|
4839
4893
|
},
|
|
4840
4894
|
{
|
|
4841
4895
|
matcher: {
|
|
4842
|
-
|
|
4896
|
+
regexp: "[/.-]((www|onlinelibrary)[.-])?wiley[.-]com"
|
|
4843
4897
|
},
|
|
4844
4898
|
name: "Wiley",
|
|
4845
4899
|
parsers: [L.Wiley]
|
|
@@ -4857,15 +4911,10 @@ const In = {
|
|
|
4857
4911
|
parsers: [L.Z3988]
|
|
4858
4912
|
},
|
|
4859
4913
|
{
|
|
4860
|
-
matcher: {
|
|
4914
|
+
matcher: { regexp: "link[.-]springer[.-]com" },
|
|
4861
4915
|
name: "Springer",
|
|
4862
4916
|
parsers: [L.Springer]
|
|
4863
4917
|
},
|
|
4864
|
-
{
|
|
4865
|
-
matcher: { regexp: "^https://sk\\.sagepub\\.com/video/" },
|
|
4866
|
-
name: "Sage Video",
|
|
4867
|
-
parsers: [L.SageVideo]
|
|
4868
|
-
},
|
|
4869
4918
|
{
|
|
4870
4919
|
matcher: {
|
|
4871
4920
|
regexp: "^https://vufind\\.lboro\\.ac\\.uk/(Record|PrimoRecord)"
|
|
@@ -4874,145 +4923,152 @@ const In = {
|
|
|
4874
4923
|
parsers: [L.VuFind]
|
|
4875
4924
|
},
|
|
4876
4925
|
{
|
|
4877
|
-
matcher: {
|
|
4926
|
+
matcher: { regexp: "www[.-]clinicalkey[.-]com" },
|
|
4878
4927
|
name: "ClinicalKey",
|
|
4879
4928
|
parsers: [L.ClinicalKey]
|
|
4880
4929
|
},
|
|
4881
4930
|
{
|
|
4882
4931
|
matcher: {
|
|
4883
|
-
|
|
4932
|
+
regexp: "www[.-]jstor[.-]org"
|
|
4884
4933
|
},
|
|
4885
4934
|
name: "JSTOR",
|
|
4886
4935
|
parsers: [L.Jstor]
|
|
4887
4936
|
},
|
|
4888
4937
|
{
|
|
4889
|
-
matcher: {
|
|
4938
|
+
matcher: { regexp: "doaj[.-]org" },
|
|
4890
4939
|
name: "DOAJ",
|
|
4891
4940
|
parsers: [L.DOAJ]
|
|
4892
4941
|
},
|
|
4893
4942
|
{
|
|
4894
4943
|
matcher: {
|
|
4895
|
-
regexp: "
|
|
4944
|
+
regexp: "[/.-]ingentaconnect[.-]com"
|
|
4896
4945
|
},
|
|
4897
4946
|
name: "IngentaConnect",
|
|
4898
4947
|
parsers: [L.IngentaConnect]
|
|
4899
4948
|
},
|
|
4900
4949
|
{
|
|
4901
4950
|
matcher: {
|
|
4902
|
-
|
|
4951
|
+
regexp: "research[.-]ebsco[.-]com"
|
|
4903
4952
|
},
|
|
4904
4953
|
name: "EBSCOHost",
|
|
4905
4954
|
parsers: [L.Ebscohost]
|
|
4906
4955
|
},
|
|
4907
4956
|
{
|
|
4908
4957
|
matcher: {
|
|
4909
|
-
|
|
4958
|
+
regexp: "openstax[-.]org"
|
|
4910
4959
|
},
|
|
4911
4960
|
name: "OpenStax",
|
|
4912
4961
|
parsers: [L.OpenStax]
|
|
4913
4962
|
},
|
|
4914
4963
|
{
|
|
4915
4964
|
matcher: {
|
|
4916
|
-
|
|
4965
|
+
regexp: "open[.-]umn[.-]edu"
|
|
4917
4966
|
},
|
|
4918
4967
|
name: "OpenTextbook",
|
|
4919
4968
|
parsers: [L.OpenTextbook]
|
|
4920
4969
|
},
|
|
4921
4970
|
{
|
|
4922
4971
|
matcher: {
|
|
4923
|
-
|
|
4972
|
+
regexp: "milneopentextbooks[-.]org"
|
|
4924
4973
|
},
|
|
4925
4974
|
name: "Milne Open Textbooks",
|
|
4926
4975
|
parsers: [L.Milne]
|
|
4927
4976
|
},
|
|
4928
4977
|
{
|
|
4929
4978
|
matcher: {
|
|
4930
|
-
|
|
4979
|
+
regexp: "www[.-]perlego[.-]com"
|
|
4931
4980
|
},
|
|
4932
4981
|
name: "Perlego",
|
|
4933
4982
|
parsers: [L.Z3988]
|
|
4934
4983
|
},
|
|
4935
4984
|
{
|
|
4936
4985
|
matcher: {
|
|
4937
|
-
|
|
4986
|
+
regexp: "www[.-]ahajournals[.-]org"
|
|
4938
4987
|
},
|
|
4939
4988
|
name: "AHA Journals",
|
|
4940
4989
|
parsers: [L.AhaJournals]
|
|
4941
4990
|
},
|
|
4942
4991
|
{
|
|
4943
4992
|
matcher: {
|
|
4944
|
-
|
|
4993
|
+
regexp: "www[.-]cambridge[.-]org"
|
|
4945
4994
|
},
|
|
4946
4995
|
name: "Cambridge Journals Online",
|
|
4947
4996
|
parsers: [L.CambridgeJournalsOnline]
|
|
4948
4997
|
},
|
|
4949
4998
|
{
|
|
4950
4999
|
matcher: {
|
|
4951
|
-
|
|
5000
|
+
regexp: "www[.-]nieindia[.-]org"
|
|
4952
5001
|
},
|
|
4953
5002
|
name: "International Journal of Ecology and Environmental Sciences",
|
|
4954
5003
|
parsers: [L.Ijees]
|
|
4955
5004
|
},
|
|
4956
5005
|
{
|
|
4957
5006
|
matcher: {
|
|
4958
|
-
|
|
5007
|
+
regexp: "www[.-]bloomsburycollections[.-]com"
|
|
4959
5008
|
},
|
|
4960
5009
|
name: "Bloomsbury Collections",
|
|
4961
5010
|
parsers: [L.BloomsburyCollections]
|
|
4962
5011
|
},
|
|
4963
5012
|
{
|
|
4964
5013
|
matcher: {
|
|
4965
|
-
|
|
5014
|
+
regexp: "cirqahosting[.-]com"
|
|
4966
5015
|
},
|
|
4967
5016
|
name: "Heritage Cirqa",
|
|
4968
5017
|
parsers: [L.HeritageCirqa]
|
|
4969
5018
|
},
|
|
4970
5019
|
{
|
|
4971
5020
|
matcher: {
|
|
4972
|
-
|
|
5021
|
+
regexp: "www[.-]bmj[.-]com"
|
|
4973
5022
|
},
|
|
4974
5023
|
name: "British Medical Journal",
|
|
4975
5024
|
parsers: [L.BritishMedicalJournal]
|
|
4976
5025
|
},
|
|
4977
5026
|
{
|
|
4978
5027
|
matcher: {
|
|
4979
|
-
|
|
5028
|
+
regexp: "podcasts[.-]apple[.-]com"
|
|
4980
5029
|
},
|
|
4981
5030
|
name: "Apple Podcasts",
|
|
4982
5031
|
parsers: [L.ApplePodcasts]
|
|
4983
5032
|
},
|
|
4984
5033
|
{
|
|
4985
5034
|
matcher: {
|
|
4986
|
-
|
|
5035
|
+
regexp: "arxiv[.-]org"
|
|
4987
5036
|
},
|
|
4988
5037
|
name: "arxiv",
|
|
4989
5038
|
parsers: [L.Arxiv]
|
|
4990
5039
|
},
|
|
4991
5040
|
{
|
|
4992
|
-
matcher: {
|
|
5041
|
+
matcher: { regexp: "kanopy[.-]com" },
|
|
4993
5042
|
name: "Kanopy Video",
|
|
4994
5043
|
parsers: [L.KanopyVideo]
|
|
5044
|
+
},
|
|
5045
|
+
{
|
|
5046
|
+
matcher: {
|
|
5047
|
+
regexp: "opal[.-]latrobe[.-]edu[.-]au"
|
|
5048
|
+
},
|
|
5049
|
+
name: "La Trobe Opal",
|
|
5050
|
+
parsers: [L.LaTrobeOpal]
|
|
4995
5051
|
}
|
|
4996
5052
|
]
|
|
4997
|
-
}, js =
|
|
5053
|
+
}, js = R({
|
|
4998
5054
|
hostnames: j(p()).min(1)
|
|
4999
|
-
}), Ds =
|
|
5055
|
+
}), Ds = R({
|
|
5000
5056
|
regexp: p()
|
|
5001
5057
|
}), Bs = pe([
|
|
5002
5058
|
js,
|
|
5003
5059
|
Ds
|
|
5004
|
-
]), Us =
|
|
5060
|
+
]), Us = R({
|
|
5005
5061
|
matcher: Bs,
|
|
5006
5062
|
name: p(),
|
|
5007
5063
|
parsers: j(p()),
|
|
5008
5064
|
libraryVersionRange: p().optional()
|
|
5009
|
-
}),
|
|
5065
|
+
}), qd = R({
|
|
5010
5066
|
siteRegistrations: j(Us),
|
|
5011
5067
|
version: p()
|
|
5012
|
-
}),
|
|
5068
|
+
}), Fm = (e) => qd.safeParse(e).success, Jm = (e) => Us.safeParse(e).success, Mm = (e) => Bs.safeParse(e).success, Zd = (e) => Object.values(L).includes(e), jd = (e) => typeof e == "object" && e !== null, Dd = R({
|
|
5013
5069
|
url: p(),
|
|
5014
|
-
document: tl(
|
|
5015
|
-
}),
|
|
5070
|
+
document: tl(jd)
|
|
5071
|
+
}), Wm = (e) => Dd.safeParse(e).success;
|
|
5016
5072
|
var et = { exports: {} }, wt, kn;
|
|
5017
5073
|
function dt() {
|
|
5018
5074
|
if (kn) return wt;
|
|
@@ -5053,7 +5109,7 @@ function Ge() {
|
|
|
5053
5109
|
} = dt(), s = mt();
|
|
5054
5110
|
t = e.exports = {};
|
|
5055
5111
|
const i = t.re = [], a = t.safeRe = [], c = t.src = [], u = t.safeSrc = [], l = t.t = {};
|
|
5056
|
-
let
|
|
5112
|
+
let h = 0;
|
|
5057
5113
|
const d = "[a-zA-Z0-9-]", g = [
|
|
5058
5114
|
["\\s", 1],
|
|
5059
5115
|
["\\d", o],
|
|
@@ -5063,7 +5119,7 @@ function Ge() {
|
|
|
5063
5119
|
P = P.split(`${q}*`).join(`${q}{0,${H}}`).split(`${q}+`).join(`${q}{1,${H}}`);
|
|
5064
5120
|
return P;
|
|
5065
5121
|
}, v = (P, q, H) => {
|
|
5066
|
-
const N = C(q), B =
|
|
5122
|
+
const N = C(q), B = h++;
|
|
5067
5123
|
s(P, B, q), l[P] = B, c[B] = q, u[B] = N, i[B] = new RegExp(q, H ? "g" : void 0), a[B] = new RegExp(N, H ? "g" : void 0);
|
|
5068
5124
|
};
|
|
5069
5125
|
v("NUMERICIDENTIFIER", "0|[1-9]\\d*"), v("NUMERICIDENTIFIERLOOSE", "\\d+"), v("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${d}*`), v("MAINVERSION", `(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`), v("MAINVERSIONLOOSE", `(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`), v("PRERELEASEIDENTIFIER", `(?:${c[l.NONNUMERICIDENTIFIER]}|${c[l.NUMERICIDENTIFIER]})`), v("PRERELEASEIDENTIFIERLOOSE", `(?:${c[l.NONNUMERICIDENTIFIER]}|${c[l.NUMERICIDENTIFIERLOOSE]})`), v("PRERELEASE", `(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`), v("PRERELEASELOOSE", `(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`), v("BUILDIDENTIFIER", `${d}+`), v("BUILD", `(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`), v("FULLPLAIN", `v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`), v("FULL", `^${c[l.FULLPLAIN]}$`), v("LOOSEPLAIN", `[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`), v("LOOSE", `^${c[l.LOOSEPLAIN]}$`), v("GTLT", "((?:<|>)?=?)"), v("XRANGEIDENTIFIERLOOSE", `${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), v("XRANGEIDENTIFIER", `${c[l.NUMERICIDENTIFIER]}|x|X|\\*`), v("XRANGEPLAIN", `[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`), v("XRANGEPLAINLOOSE", `[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`), v("XRANGE", `^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`), v("XRANGELOOSE", `^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`), v("COERCEPLAIN", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`), v("COERCE", `${c[l.COERCEPLAIN]}(?:$|[^\\d])`), v("COERCEFULL", c[l.COERCEPLAIN] + `(?:${c[l.PRERELEASE]})?(?:${c[l.BUILD]})?(?:$|[^\\d])`), v("COERCERTL", c[l.COERCE], !0), v("COERCERTLFULL", c[l.COERCEFULL], !0), v("LONETILDE", "(?:~>?)"), v("TILDETRIM", `(\\s*)${c[l.LONETILDE]}\\s+`, !0), t.tildeTrimReplace = "$1~", v("TILDE", `^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`), v("TILDELOOSE", `^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`), v("LONECARET", "(?:\\^)"), v("CARETTRIM", `(\\s*)${c[l.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", v("CARET", `^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`), v("CARETLOOSE", `^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`), v("COMPARATORLOOSE", `^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`), v("COMPARATOR", `^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`), v("COMPARATORTRIM", `(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`, !0), t.comparatorTrimReplace = "$1$2$3", v("HYPHENRANGE", `^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`), v("HYPHENRANGELOOSE", `^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`), v("STAR", "(<|>)?=?\\s*\\*"), v("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), v("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
@@ -5109,23 +5165,23 @@ function ne() {
|
|
|
5109
5165
|
`version is longer than ${t} characters`
|
|
5110
5166
|
);
|
|
5111
5167
|
e("SemVer", u, l), this.options = l, this.loose = !!l.loose, this.includePrerelease = !!l.includePrerelease;
|
|
5112
|
-
const
|
|
5113
|
-
if (!
|
|
5168
|
+
const h = u.trim().match(l.loose ? n[o.LOOSE] : n[o.FULL]);
|
|
5169
|
+
if (!h)
|
|
5114
5170
|
throw new TypeError(`Invalid Version: ${u}`);
|
|
5115
|
-
if (this.raw = u, this.major = +
|
|
5171
|
+
if (this.raw = u, this.major = +h[1], this.minor = +h[2], this.patch = +h[3], this.major > r || this.major < 0)
|
|
5116
5172
|
throw new TypeError("Invalid major version");
|
|
5117
5173
|
if (this.minor > r || this.minor < 0)
|
|
5118
5174
|
throw new TypeError("Invalid minor version");
|
|
5119
5175
|
if (this.patch > r || this.patch < 0)
|
|
5120
5176
|
throw new TypeError("Invalid patch version");
|
|
5121
|
-
|
|
5177
|
+
h[4] ? this.prerelease = h[4].split(".").map((d) => {
|
|
5122
5178
|
if (/^[0-9]+$/.test(d)) {
|
|
5123
5179
|
const g = +d;
|
|
5124
5180
|
if (g >= 0 && g < r)
|
|
5125
5181
|
return g;
|
|
5126
5182
|
}
|
|
5127
5183
|
return d;
|
|
5128
|
-
}) : this.prerelease = [], this.build =
|
|
5184
|
+
}) : this.prerelease = [], this.build = h[5] ? h[5].split(".") : [], this.format();
|
|
5129
5185
|
}
|
|
5130
5186
|
format() {
|
|
5131
5187
|
return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
|
|
@@ -5153,39 +5209,39 @@ function ne() {
|
|
|
5153
5209
|
return 0;
|
|
5154
5210
|
let l = 0;
|
|
5155
5211
|
do {
|
|
5156
|
-
const
|
|
5157
|
-
if (e("prerelease compare", l,
|
|
5212
|
+
const h = this.prerelease[l], d = u.prerelease[l];
|
|
5213
|
+
if (e("prerelease compare", l, h, d), h === void 0 && d === void 0)
|
|
5158
5214
|
return 0;
|
|
5159
5215
|
if (d === void 0)
|
|
5160
5216
|
return 1;
|
|
5161
|
-
if (
|
|
5217
|
+
if (h === void 0)
|
|
5162
5218
|
return -1;
|
|
5163
|
-
if (
|
|
5219
|
+
if (h === d)
|
|
5164
5220
|
continue;
|
|
5165
|
-
return i(
|
|
5221
|
+
return i(h, d);
|
|
5166
5222
|
} while (++l);
|
|
5167
5223
|
}
|
|
5168
5224
|
compareBuild(u) {
|
|
5169
5225
|
u instanceof a || (u = new a(u, this.options));
|
|
5170
5226
|
let l = 0;
|
|
5171
5227
|
do {
|
|
5172
|
-
const
|
|
5173
|
-
if (e("build compare", l,
|
|
5228
|
+
const h = this.build[l], d = u.build[l];
|
|
5229
|
+
if (e("build compare", l, h, d), h === void 0 && d === void 0)
|
|
5174
5230
|
return 0;
|
|
5175
5231
|
if (d === void 0)
|
|
5176
5232
|
return 1;
|
|
5177
|
-
if (
|
|
5233
|
+
if (h === void 0)
|
|
5178
5234
|
return -1;
|
|
5179
|
-
if (
|
|
5235
|
+
if (h === d)
|
|
5180
5236
|
continue;
|
|
5181
|
-
return i(
|
|
5237
|
+
return i(h, d);
|
|
5182
5238
|
} while (++l);
|
|
5183
5239
|
}
|
|
5184
5240
|
// preminor will bump the version up to the next minor release, and immediately
|
|
5185
5241
|
// down to pre-release. premajor and prepatch work the same way.
|
|
5186
|
-
inc(u, l,
|
|
5242
|
+
inc(u, l, h) {
|
|
5187
5243
|
if (u.startsWith("pre")) {
|
|
5188
|
-
if (!l &&
|
|
5244
|
+
if (!l && h === !1)
|
|
5189
5245
|
throw new Error("invalid increment argument: identifier is empty");
|
|
5190
5246
|
if (l) {
|
|
5191
5247
|
const d = `-${l}`.match(this.options.loose ? n[o.PRERELEASELOOSE] : n[o.PRERELEASE]);
|
|
@@ -5195,18 +5251,18 @@ function ne() {
|
|
|
5195
5251
|
}
|
|
5196
5252
|
switch (u) {
|
|
5197
5253
|
case "premajor":
|
|
5198
|
-
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", l,
|
|
5254
|
+
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", l, h);
|
|
5199
5255
|
break;
|
|
5200
5256
|
case "preminor":
|
|
5201
|
-
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", l,
|
|
5257
|
+
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", l, h);
|
|
5202
5258
|
break;
|
|
5203
5259
|
case "prepatch":
|
|
5204
|
-
this.prerelease.length = 0, this.inc("patch", l,
|
|
5260
|
+
this.prerelease.length = 0, this.inc("patch", l, h), this.inc("pre", l, h);
|
|
5205
5261
|
break;
|
|
5206
5262
|
// If the input is a non-prerelease version, this acts the same as
|
|
5207
5263
|
// prepatch.
|
|
5208
5264
|
case "prerelease":
|
|
5209
|
-
this.prerelease.length === 0 && this.inc("patch", l,
|
|
5265
|
+
this.prerelease.length === 0 && this.inc("patch", l, h), this.inc("pre", l, h);
|
|
5210
5266
|
break;
|
|
5211
5267
|
case "release":
|
|
5212
5268
|
if (this.prerelease.length === 0)
|
|
@@ -5225,7 +5281,7 @@ function ne() {
|
|
|
5225
5281
|
// This probably shouldn't be used publicly.
|
|
5226
5282
|
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
5227
5283
|
case "pre": {
|
|
5228
|
-
const d = Number(
|
|
5284
|
+
const d = Number(h) ? 1 : 0;
|
|
5229
5285
|
if (this.prerelease.length === 0)
|
|
5230
5286
|
this.prerelease = [d];
|
|
5231
5287
|
else {
|
|
@@ -5233,14 +5289,14 @@ function ne() {
|
|
|
5233
5289
|
for (; --g >= 0; )
|
|
5234
5290
|
typeof this.prerelease[g] == "number" && (this.prerelease[g]++, g = -2);
|
|
5235
5291
|
if (g === -1) {
|
|
5236
|
-
if (l === this.prerelease.join(".") &&
|
|
5292
|
+
if (l === this.prerelease.join(".") && h === !1)
|
|
5237
5293
|
throw new Error("invalid increment argument: identifier already exists");
|
|
5238
5294
|
this.prerelease.push(d);
|
|
5239
5295
|
}
|
|
5240
5296
|
}
|
|
5241
5297
|
if (l) {
|
|
5242
5298
|
let g = [l, d];
|
|
5243
|
-
|
|
5299
|
+
h === !1 && (g = [l]), i(this.prerelease[0], l) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = g) : this.prerelease = g;
|
|
5244
5300
|
}
|
|
5245
5301
|
break;
|
|
5246
5302
|
}
|
|
@@ -5270,7 +5326,7 @@ function Te() {
|
|
|
5270
5326
|
}, Pt;
|
|
5271
5327
|
}
|
|
5272
5328
|
var xt, Ln;
|
|
5273
|
-
function
|
|
5329
|
+
function Bd() {
|
|
5274
5330
|
if (Ln) return xt;
|
|
5275
5331
|
Ln = 1;
|
|
5276
5332
|
const e = Te();
|
|
@@ -5280,7 +5336,7 @@ function Ld() {
|
|
|
5280
5336
|
}, xt;
|
|
5281
5337
|
}
|
|
5282
5338
|
var Ot, Tn;
|
|
5283
|
-
function
|
|
5339
|
+
function Ud() {
|
|
5284
5340
|
if (Tn) return Ot;
|
|
5285
5341
|
Tn = 1;
|
|
5286
5342
|
const e = Te();
|
|
@@ -5290,7 +5346,7 @@ function Td() {
|
|
|
5290
5346
|
}, Ot;
|
|
5291
5347
|
}
|
|
5292
5348
|
var Nt, qn;
|
|
5293
|
-
function
|
|
5349
|
+
function Vd() {
|
|
5294
5350
|
if (qn) return Nt;
|
|
5295
5351
|
qn = 1;
|
|
5296
5352
|
const e = ne();
|
|
@@ -5307,7 +5363,7 @@ function qd() {
|
|
|
5307
5363
|
}, Nt;
|
|
5308
5364
|
}
|
|
5309
5365
|
var zt, Zn;
|
|
5310
|
-
function
|
|
5366
|
+
function Fd() {
|
|
5311
5367
|
if (Zn) return zt;
|
|
5312
5368
|
Zn = 1;
|
|
5313
5369
|
const e = Te();
|
|
@@ -5327,28 +5383,28 @@ function Zd() {
|
|
|
5327
5383
|
}, zt;
|
|
5328
5384
|
}
|
|
5329
5385
|
var Lt, jn;
|
|
5330
|
-
function
|
|
5386
|
+
function Jd() {
|
|
5331
5387
|
if (jn) return Lt;
|
|
5332
5388
|
jn = 1;
|
|
5333
5389
|
const e = ne();
|
|
5334
5390
|
return Lt = (r, n) => new e(r, n).major, Lt;
|
|
5335
5391
|
}
|
|
5336
5392
|
var Tt, Dn;
|
|
5337
|
-
function
|
|
5393
|
+
function Md() {
|
|
5338
5394
|
if (Dn) return Tt;
|
|
5339
5395
|
Dn = 1;
|
|
5340
5396
|
const e = ne();
|
|
5341
5397
|
return Tt = (r, n) => new e(r, n).minor, Tt;
|
|
5342
5398
|
}
|
|
5343
5399
|
var qt, Bn;
|
|
5344
|
-
function
|
|
5400
|
+
function Wd() {
|
|
5345
5401
|
if (Bn) return qt;
|
|
5346
5402
|
Bn = 1;
|
|
5347
5403
|
const e = ne();
|
|
5348
5404
|
return qt = (r, n) => new e(r, n).patch, qt;
|
|
5349
5405
|
}
|
|
5350
5406
|
var Zt, Un;
|
|
5351
|
-
function
|
|
5407
|
+
function Gd() {
|
|
5352
5408
|
if (Un) return Zt;
|
|
5353
5409
|
Un = 1;
|
|
5354
5410
|
const e = Te();
|
|
@@ -5365,14 +5421,14 @@ function ce() {
|
|
|
5365
5421
|
return jt = (r, n, o) => new e(r, o).compare(new e(n, o)), jt;
|
|
5366
5422
|
}
|
|
5367
5423
|
var Dt, Fn;
|
|
5368
|
-
function
|
|
5424
|
+
function Xd() {
|
|
5369
5425
|
if (Fn) return Dt;
|
|
5370
5426
|
Fn = 1;
|
|
5371
5427
|
const e = ce();
|
|
5372
5428
|
return Dt = (r, n, o) => e(n, r, o), Dt;
|
|
5373
5429
|
}
|
|
5374
5430
|
var Bt, Jn;
|
|
5375
|
-
function
|
|
5431
|
+
function Hd() {
|
|
5376
5432
|
if (Jn) return Bt;
|
|
5377
5433
|
Jn = 1;
|
|
5378
5434
|
const e = ce();
|
|
@@ -5389,14 +5445,14 @@ function Jr() {
|
|
|
5389
5445
|
}, Ut;
|
|
5390
5446
|
}
|
|
5391
5447
|
var Vt, Wn;
|
|
5392
|
-
function
|
|
5448
|
+
function Yd() {
|
|
5393
5449
|
if (Wn) return Vt;
|
|
5394
5450
|
Wn = 1;
|
|
5395
5451
|
const e = Jr();
|
|
5396
5452
|
return Vt = (r, n) => r.sort((o, s) => e(o, s, n)), Vt;
|
|
5397
5453
|
}
|
|
5398
5454
|
var Ft, Gn;
|
|
5399
|
-
function
|
|
5455
|
+
function Kd() {
|
|
5400
5456
|
if (Gn) return Ft;
|
|
5401
5457
|
Gn = 1;
|
|
5402
5458
|
const e = Jr();
|
|
@@ -5475,7 +5531,7 @@ function Ms() {
|
|
|
5475
5531
|
}, Yt;
|
|
5476
5532
|
}
|
|
5477
5533
|
var Kt, ro;
|
|
5478
|
-
function
|
|
5534
|
+
function Qd() {
|
|
5479
5535
|
if (ro) return Kt;
|
|
5480
5536
|
ro = 1;
|
|
5481
5537
|
const e = ne(), t = Te(), { safeRe: r, t: n } = Ge();
|
|
@@ -5497,12 +5553,12 @@ function Wd() {
|
|
|
5497
5553
|
}
|
|
5498
5554
|
if (a === null)
|
|
5499
5555
|
return null;
|
|
5500
|
-
const c = a[2], u = a[3] || "0", l = a[4] || "0",
|
|
5501
|
-
return t(`${c}.${u}.${l}${
|
|
5556
|
+
const c = a[2], u = a[3] || "0", l = a[4] || "0", h = i.includePrerelease && a[5] ? `-${a[5]}` : "", d = i.includePrerelease && a[6] ? `+${a[6]}` : "";
|
|
5557
|
+
return t(`${c}.${u}.${l}${h}${d}`, i);
|
|
5502
5558
|
}, Kt;
|
|
5503
5559
|
}
|
|
5504
5560
|
var Qt, no;
|
|
5505
|
-
function
|
|
5561
|
+
function em() {
|
|
5506
5562
|
if (no) return Qt;
|
|
5507
5563
|
no = 1;
|
|
5508
5564
|
class e {
|
|
@@ -5580,7 +5636,7 @@ function ue() {
|
|
|
5580
5636
|
if (k)
|
|
5581
5637
|
return k;
|
|
5582
5638
|
const A = this.options.loose, x = A ? c[u.HYPHENRANGELOOSE] : c[u.HYPHENRANGE];
|
|
5583
|
-
b = b.replace(x, Et(this.options.includePrerelease)), i("hyphen replace", b), b = b.replace(c[u.COMPARATORTRIM], l), i("comparator trim", b), b = b.replace(c[u.TILDETRIM],
|
|
5639
|
+
b = b.replace(x, Et(this.options.includePrerelease)), i("hyphen replace", b), b = b.replace(c[u.COMPARATORTRIM], l), i("comparator trim", b), b = b.replace(c[u.TILDETRIM], h), i("tilde trim", b), b = b.replace(c[u.CARETTRIM], d), i("caret trim", b);
|
|
5584
5640
|
let Z = b.split(" ").map((K) => H(K, this.options)).join(" ").split(/\s+/).map((K) => yt(K, this.options));
|
|
5585
5641
|
A && (Z = Z.filter((K) => (i("loose invalid filter", K, this.options), !!K.match(c[u.COMPARATORLOOSE])))), i("range list", Z);
|
|
5586
5642
|
const z = /* @__PURE__ */ new Map(), V = Z.map((K) => new s(K, this.options));
|
|
@@ -5615,11 +5671,11 @@ function ue() {
|
|
|
5615
5671
|
}
|
|
5616
5672
|
}
|
|
5617
5673
|
er = t;
|
|
5618
|
-
const r =
|
|
5674
|
+
const r = em(), n = new r(), o = Fr(), s = vt(), i = mt(), a = ne(), {
|
|
5619
5675
|
safeRe: c,
|
|
5620
5676
|
t: u,
|
|
5621
5677
|
comparatorTrimReplace: l,
|
|
5622
|
-
tildeTrimReplace:
|
|
5678
|
+
tildeTrimReplace: h,
|
|
5623
5679
|
caretTrimReplace: d
|
|
5624
5680
|
} = Ge(), { FLAG_INCLUDE_PRERELEASE: g, FLAG_LOOSE: C } = dt(), v = (_) => _.value === "<0.0.0-0", P = (_) => _.value === "", q = (_, b) => {
|
|
5625
5681
|
let I = !0;
|
|
@@ -5677,16 +5733,16 @@ function vt() {
|
|
|
5677
5733
|
static get ANY() {
|
|
5678
5734
|
return e;
|
|
5679
5735
|
}
|
|
5680
|
-
constructor(l,
|
|
5681
|
-
if (
|
|
5682
|
-
if (l.loose === !!
|
|
5736
|
+
constructor(l, h) {
|
|
5737
|
+
if (h = r(h), l instanceof t) {
|
|
5738
|
+
if (l.loose === !!h.loose)
|
|
5683
5739
|
return l;
|
|
5684
5740
|
l = l.value;
|
|
5685
5741
|
}
|
|
5686
|
-
l = l.trim().split(/\s+/).join(" "), i("comparator", l,
|
|
5742
|
+
l = l.trim().split(/\s+/).join(" "), i("comparator", l, h), this.options = h, this.loose = !!h.loose, this.parse(l), this.semver === e ? this.value = "" : this.value = this.operator + this.semver.version, i("comp", this);
|
|
5687
5743
|
}
|
|
5688
5744
|
parse(l) {
|
|
5689
|
-
const
|
|
5745
|
+
const h = this.options.loose ? n[o.COMPARATORLOOSE] : n[o.COMPARATOR], d = l.match(h);
|
|
5690
5746
|
if (!d)
|
|
5691
5747
|
throw new TypeError(`Invalid comparator: ${l}`);
|
|
5692
5748
|
this.operator = d[1] !== void 0 ? d[1] : "", this.operator === "=" && (this.operator = ""), d[2] ? this.semver = new a(d[2], this.options.loose) : this.semver = e;
|
|
@@ -5705,10 +5761,10 @@ function vt() {
|
|
|
5705
5761
|
}
|
|
5706
5762
|
return s(l, this.operator, this.semver, this.options);
|
|
5707
5763
|
}
|
|
5708
|
-
intersects(l,
|
|
5764
|
+
intersects(l, h) {
|
|
5709
5765
|
if (!(l instanceof t))
|
|
5710
5766
|
throw new TypeError("a Comparator is required");
|
|
5711
|
-
return this.operator === "" ? this.value === "" ? !0 : new c(l.value,
|
|
5767
|
+
return this.operator === "" ? this.value === "" ? !0 : new c(l.value, h).test(this.value) : l.operator === "" ? l.value === "" ? !0 : new c(this.value, h).test(l.semver) : (h = r(h), h.includePrerelease && (this.value === "<0.0.0-0" || l.value === "<0.0.0-0") || !h.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, h) && this.operator.startsWith(">") && l.operator.startsWith("<") || s(this.semver, ">", l.semver, h) && this.operator.startsWith("<") && l.operator.startsWith(">")));
|
|
5712
5768
|
}
|
|
5713
5769
|
}
|
|
5714
5770
|
tr = t;
|
|
@@ -5730,14 +5786,14 @@ function bt() {
|
|
|
5730
5786
|
}, rr;
|
|
5731
5787
|
}
|
|
5732
5788
|
var nr, ao;
|
|
5733
|
-
function
|
|
5789
|
+
function tm() {
|
|
5734
5790
|
if (ao) return nr;
|
|
5735
5791
|
ao = 1;
|
|
5736
5792
|
const e = ue();
|
|
5737
5793
|
return nr = (r, n) => new e(r, n).set.map((o) => o.map((s) => s.value).join(" ").trim().split(" ")), nr;
|
|
5738
5794
|
}
|
|
5739
5795
|
var or, co;
|
|
5740
|
-
function
|
|
5796
|
+
function rm() {
|
|
5741
5797
|
if (co) return or;
|
|
5742
5798
|
co = 1;
|
|
5743
5799
|
const e = ne(), t = ue();
|
|
@@ -5754,7 +5810,7 @@ function Hd() {
|
|
|
5754
5810
|
}, or;
|
|
5755
5811
|
}
|
|
5756
5812
|
var sr, uo;
|
|
5757
|
-
function
|
|
5813
|
+
function nm() {
|
|
5758
5814
|
if (uo) return sr;
|
|
5759
5815
|
uo = 1;
|
|
5760
5816
|
const e = ne(), t = ue();
|
|
@@ -5771,7 +5827,7 @@ function Yd() {
|
|
|
5771
5827
|
}, sr;
|
|
5772
5828
|
}
|
|
5773
5829
|
var ir, lo;
|
|
5774
|
-
function
|
|
5830
|
+
function om() {
|
|
5775
5831
|
if (lo) return ir;
|
|
5776
5832
|
lo = 1;
|
|
5777
5833
|
const e = ne(), t = ue(), r = gt();
|
|
@@ -5785,14 +5841,14 @@ function Kd() {
|
|
|
5785
5841
|
const c = o.set[a];
|
|
5786
5842
|
let u = null;
|
|
5787
5843
|
c.forEach((l) => {
|
|
5788
|
-
const
|
|
5844
|
+
const h = new e(l.semver.version);
|
|
5789
5845
|
switch (l.operator) {
|
|
5790
5846
|
case ">":
|
|
5791
|
-
|
|
5847
|
+
h.prerelease.length === 0 ? h.patch++ : h.prerelease.push(0), h.raw = h.format();
|
|
5792
5848
|
/* fallthrough */
|
|
5793
5849
|
case "":
|
|
5794
5850
|
case ">=":
|
|
5795
|
-
(!u || r(
|
|
5851
|
+
(!u || r(h, u)) && (u = h);
|
|
5796
5852
|
break;
|
|
5797
5853
|
case "<":
|
|
5798
5854
|
case "<=":
|
|
@@ -5807,7 +5863,7 @@ function Kd() {
|
|
|
5807
5863
|
}, ir;
|
|
5808
5864
|
}
|
|
5809
5865
|
var ar, po;
|
|
5810
|
-
function
|
|
5866
|
+
function sm() {
|
|
5811
5867
|
if (po) return ar;
|
|
5812
5868
|
po = 1;
|
|
5813
5869
|
const e = ue();
|
|
@@ -5819,13 +5875,13 @@ function Qd() {
|
|
|
5819
5875
|
}
|
|
5820
5876
|
}, ar;
|
|
5821
5877
|
}
|
|
5822
|
-
var cr,
|
|
5878
|
+
var cr, fo;
|
|
5823
5879
|
function Xr() {
|
|
5824
|
-
if (
|
|
5825
|
-
|
|
5880
|
+
if (fo) return cr;
|
|
5881
|
+
fo = 1;
|
|
5826
5882
|
const e = ne(), t = vt(), { ANY: r } = t, n = ue(), o = bt(), s = gt(), i = Mr(), a = Gr(), c = Wr();
|
|
5827
|
-
return cr = (l,
|
|
5828
|
-
l = new e(l, g),
|
|
5883
|
+
return cr = (l, h, d, g) => {
|
|
5884
|
+
l = new e(l, g), h = new n(h, g);
|
|
5829
5885
|
let C, v, P, q, H;
|
|
5830
5886
|
switch (d) {
|
|
5831
5887
|
case ">":
|
|
@@ -5837,10 +5893,10 @@ function Xr() {
|
|
|
5837
5893
|
default:
|
|
5838
5894
|
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
5839
5895
|
}
|
|
5840
|
-
if (o(l,
|
|
5896
|
+
if (o(l, h, g))
|
|
5841
5897
|
return !1;
|
|
5842
|
-
for (let N = 0; N <
|
|
5843
|
-
const B =
|
|
5898
|
+
for (let N = 0; N < h.set.length; ++N) {
|
|
5899
|
+
const B = h.set[N];
|
|
5844
5900
|
let Y = null, F = null;
|
|
5845
5901
|
if (B.forEach((ee) => {
|
|
5846
5902
|
ee.semver === r && (ee = new t(">=0.0.0")), Y = Y || ee, F = F || ee, C(ee.semver, Y.semver, g) ? Y = ee : P(ee.semver, F.semver, g) && (F = ee);
|
|
@@ -5852,33 +5908,33 @@ function Xr() {
|
|
|
5852
5908
|
return !0;
|
|
5853
5909
|
}, cr;
|
|
5854
5910
|
}
|
|
5855
|
-
var ur,
|
|
5856
|
-
function
|
|
5857
|
-
if (
|
|
5858
|
-
|
|
5911
|
+
var ur, ho;
|
|
5912
|
+
function im() {
|
|
5913
|
+
if (ho) return ur;
|
|
5914
|
+
ho = 1;
|
|
5859
5915
|
const e = Xr();
|
|
5860
5916
|
return ur = (r, n, o) => e(r, n, ">", o), ur;
|
|
5861
5917
|
}
|
|
5862
5918
|
var lr, mo;
|
|
5863
|
-
function
|
|
5919
|
+
function am() {
|
|
5864
5920
|
if (mo) return lr;
|
|
5865
5921
|
mo = 1;
|
|
5866
5922
|
const e = Xr();
|
|
5867
5923
|
return lr = (r, n, o) => e(r, n, "<", o), lr;
|
|
5868
5924
|
}
|
|
5869
5925
|
var pr, go;
|
|
5870
|
-
function
|
|
5926
|
+
function cm() {
|
|
5871
5927
|
if (go) return pr;
|
|
5872
5928
|
go = 1;
|
|
5873
5929
|
const e = ue();
|
|
5874
5930
|
return pr = (r, n, o) => (r = new e(r, o), n = new e(n, o), r.intersects(n, o)), pr;
|
|
5875
5931
|
}
|
|
5876
|
-
var
|
|
5877
|
-
function
|
|
5878
|
-
if (vo) return
|
|
5932
|
+
var fr, vo;
|
|
5933
|
+
function um() {
|
|
5934
|
+
if (vo) return fr;
|
|
5879
5935
|
vo = 1;
|
|
5880
5936
|
const e = bt(), t = ce();
|
|
5881
|
-
return
|
|
5937
|
+
return fr = (r, n, o) => {
|
|
5882
5938
|
const s = [];
|
|
5883
5939
|
let i = null, a = null;
|
|
5884
5940
|
const c = r.sort((d, g) => t(d, g, o));
|
|
@@ -5888,20 +5944,20 @@ function nm() {
|
|
|
5888
5944
|
const u = [];
|
|
5889
5945
|
for (const [d, g] of s)
|
|
5890
5946
|
d === g ? u.push(d) : !g && d === c[0] ? u.push("*") : g ? d === c[0] ? u.push(`<=${g}`) : u.push(`${d} - ${g}`) : u.push(`>=${d}`);
|
|
5891
|
-
const l = u.join(" || "),
|
|
5892
|
-
return l.length <
|
|
5893
|
-
},
|
|
5947
|
+
const l = u.join(" || "), h = typeof n.raw == "string" ? n.raw : String(n);
|
|
5948
|
+
return l.length < h.length ? l : n;
|
|
5949
|
+
}, fr;
|
|
5894
5950
|
}
|
|
5895
|
-
var
|
|
5896
|
-
function
|
|
5897
|
-
if (bo) return
|
|
5951
|
+
var hr, bo;
|
|
5952
|
+
function lm() {
|
|
5953
|
+
if (bo) return hr;
|
|
5898
5954
|
bo = 1;
|
|
5899
|
-
const e = ue(), t = vt(), { ANY: r } = t, n = bt(), o = ce(), s = (
|
|
5900
|
-
if (
|
|
5955
|
+
const e = ue(), t = vt(), { ANY: r } = t, n = bt(), o = ce(), s = (h, d, g = {}) => {
|
|
5956
|
+
if (h === d)
|
|
5901
5957
|
return !0;
|
|
5902
|
-
|
|
5958
|
+
h = new e(h, g), d = new e(d, g);
|
|
5903
5959
|
let C = !1;
|
|
5904
|
-
e: for (const v of
|
|
5960
|
+
e: for (const v of h.set) {
|
|
5905
5961
|
for (const P of d.set) {
|
|
5906
5962
|
const q = c(v, P, g);
|
|
5907
5963
|
if (C = C || q !== null, q)
|
|
@@ -5911,13 +5967,13 @@ function om() {
|
|
|
5911
5967
|
return !1;
|
|
5912
5968
|
}
|
|
5913
5969
|
return !0;
|
|
5914
|
-
}, i = [new t(">=0.0.0-0")], a = [new t(">=0.0.0")], c = (
|
|
5915
|
-
if (
|
|
5970
|
+
}, i = [new t(">=0.0.0-0")], a = [new t(">=0.0.0")], c = (h, d, g) => {
|
|
5971
|
+
if (h === d)
|
|
5916
5972
|
return !0;
|
|
5917
|
-
if (
|
|
5973
|
+
if (h.length === 1 && h[0].semver === r) {
|
|
5918
5974
|
if (d.length === 1 && d[0].semver === r)
|
|
5919
5975
|
return !0;
|
|
5920
|
-
g.includePrerelease ?
|
|
5976
|
+
g.includePrerelease ? h = i : h = a;
|
|
5921
5977
|
}
|
|
5922
5978
|
if (d.length === 1 && d[0].semver === r) {
|
|
5923
5979
|
if (g.includePrerelease)
|
|
@@ -5926,7 +5982,7 @@ function om() {
|
|
|
5926
5982
|
}
|
|
5927
5983
|
const C = /* @__PURE__ */ new Set();
|
|
5928
5984
|
let v, P;
|
|
5929
|
-
for (const O of
|
|
5985
|
+
for (const O of h)
|
|
5930
5986
|
O.operator === ">" || O.operator === ">=" ? v = u(v, O, g) : O.operator === "<" || O.operator === "<=" ? P = l(P, O, g) : C.add(O.semver);
|
|
5931
5987
|
if (C.size > 1)
|
|
5932
5988
|
return null;
|
|
@@ -5966,24 +6022,24 @@ function om() {
|
|
|
5966
6022
|
return !1;
|
|
5967
6023
|
}
|
|
5968
6024
|
return !(v && B && !P && q !== 0 || P && Y && !v && q !== 0 || ee || F);
|
|
5969
|
-
}, u = (
|
|
5970
|
-
if (!
|
|
6025
|
+
}, u = (h, d, g) => {
|
|
6026
|
+
if (!h)
|
|
5971
6027
|
return d;
|
|
5972
|
-
const C = o(
|
|
5973
|
-
return C > 0 ?
|
|
5974
|
-
}, l = (
|
|
5975
|
-
if (!
|
|
6028
|
+
const C = o(h.semver, d.semver, g);
|
|
6029
|
+
return C > 0 ? h : C < 0 || d.operator === ">" && h.operator === ">=" ? d : h;
|
|
6030
|
+
}, l = (h, d, g) => {
|
|
6031
|
+
if (!h)
|
|
5976
6032
|
return d;
|
|
5977
|
-
const C = o(
|
|
5978
|
-
return C < 0 ?
|
|
6033
|
+
const C = o(h.semver, d.semver, g);
|
|
6034
|
+
return C < 0 ? h : C > 0 || d.operator === "<" && h.operator === "<=" ? d : h;
|
|
5979
6035
|
};
|
|
5980
|
-
return
|
|
6036
|
+
return hr = s, hr;
|
|
5981
6037
|
}
|
|
5982
6038
|
var dr, _o;
|
|
5983
|
-
function
|
|
6039
|
+
function pm() {
|
|
5984
6040
|
if (_o) return dr;
|
|
5985
6041
|
_o = 1;
|
|
5986
|
-
const e = Ge(), t = dt(), r = ne(), n = Vs(), o = Te(), s =
|
|
6042
|
+
const e = Ge(), t = dt(), r = ne(), n = Vs(), o = Te(), s = Bd(), i = Ud(), a = Vd(), c = Fd(), u = Jd(), l = Md(), h = Wd(), d = Gd(), g = ce(), C = Xd(), v = Hd(), P = Jr(), q = Yd(), H = Kd(), N = gt(), B = Mr(), Y = Fs(), F = Js(), ee = Wr(), O = Gr(), qe = Ms(), _t = Qd(), yt = vt(), Et = ue(), St = bt(), _ = tm(), b = rm(), I = nm(), $ = om(), k = sm(), A = Xr(), x = im(), Z = am(), z = cm(), V = um(), re = lm();
|
|
5987
6043
|
return dr = {
|
|
5988
6044
|
parse: o,
|
|
5989
6045
|
valid: s,
|
|
@@ -5992,7 +6048,7 @@ function sm() {
|
|
|
5992
6048
|
diff: c,
|
|
5993
6049
|
major: u,
|
|
5994
6050
|
minor: l,
|
|
5995
|
-
patch:
|
|
6051
|
+
patch: h,
|
|
5996
6052
|
prerelease: d,
|
|
5997
6053
|
compare: g,
|
|
5998
6054
|
rcompare: C,
|
|
@@ -6032,18 +6088,18 @@ function sm() {
|
|
|
6032
6088
|
rcompareIdentifiers: n.rcompareIdentifiers
|
|
6033
6089
|
}, dr;
|
|
6034
6090
|
}
|
|
6035
|
-
var
|
|
6036
|
-
const
|
|
6091
|
+
var fm = pm();
|
|
6092
|
+
const hm = (e, t) => dm(t) ? t.hostnames.includes(new URL(e).hostname) : mm(t) ? !!e.match(t.regexp) : !1, dm = (e) => js.safeParse(e).success, mm = (e) => Ds.safeParse(e).success, gm = (e, t) => t ? fm.satisfies(e, t) : !0, vm = (e, t, r) => gm(
|
|
6037
6093
|
t,
|
|
6038
6094
|
r.libraryVersionRange
|
|
6039
|
-
) &&
|
|
6040
|
-
(r) =>
|
|
6041
|
-
),
|
|
6095
|
+
) && hm(e, r.matcher), bm = (e, t) => e.siteRegistrations.filter(
|
|
6096
|
+
(r) => vm(t, Zs(), r)
|
|
6097
|
+
), _m = (e, t) => bm(e, t).flatMap(
|
|
6042
6098
|
({ parsers: o, name: s }) => o.filter(
|
|
6043
|
-
(i) =>
|
|
6099
|
+
(i) => Zd(i) && i in In
|
|
6044
6100
|
).map((i) => ({ parser: In[i], parserType: i, name: s }))
|
|
6045
|
-
),
|
|
6046
|
-
const r =
|
|
6101
|
+
), ym = (e, t) => {
|
|
6102
|
+
const r = _m(e, t.url);
|
|
6047
6103
|
for (const { parser: n, parserType: o, name: s } of r) {
|
|
6048
6104
|
const i = n(t);
|
|
6049
6105
|
if (Nr(i) || Op(i) || Np(i))
|
|
@@ -6066,50 +6122,50 @@ const am = (e, t) => cm(t) ? t.hostnames.includes(new URL(e).hostname) : um(t) ?
|
|
|
6066
6122
|
referrer: t.url
|
|
6067
6123
|
}
|
|
6068
6124
|
};
|
|
6069
|
-
},
|
|
6070
|
-
const r =
|
|
6125
|
+
}, Gm = (e, t) => {
|
|
6126
|
+
const r = ym(e, t), { uri: n, ...o } = r.meta;
|
|
6071
6127
|
return {
|
|
6072
6128
|
...r,
|
|
6073
6129
|
meta: o
|
|
6074
6130
|
};
|
|
6075
|
-
},
|
|
6131
|
+
}, Em = (e, t) => {
|
|
6076
6132
|
switch (t) {
|
|
6077
6133
|
case Se.CA:
|
|
6078
6134
|
return new URL(`https://${e}.rl.ca.talis.com`);
|
|
6079
6135
|
default:
|
|
6080
6136
|
return new URL(`https://${e}.rl.talis.com`);
|
|
6081
6137
|
}
|
|
6082
|
-
},
|
|
6083
|
-
const r =
|
|
6138
|
+
}, Xm = (e, t) => {
|
|
6139
|
+
const r = Em(e, t);
|
|
6084
6140
|
return new URL("/ui/forms/bookmarklet.html", r);
|
|
6085
|
-
},
|
|
6141
|
+
}, Hm = (e, t, r) => {
|
|
6086
6142
|
const n = pl(t);
|
|
6087
6143
|
n.append("fast", "true"), n.append("breakout", "true"), r && (r.parserName && n.append("targetTitle", r.parserName), n.append("referrer", r.referrer));
|
|
6088
6144
|
const o = new URL(e.toString());
|
|
6089
6145
|
return o.search = n.toString(), o;
|
|
6090
6146
|
};
|
|
6091
6147
|
export {
|
|
6092
|
-
|
|
6148
|
+
Sm as BookGenresSchema,
|
|
6093
6149
|
ml as CustomerListSchema,
|
|
6094
6150
|
Qo as CustomerSchema,
|
|
6095
6151
|
ns as DirectLinkOnlyResultSchema,
|
|
6096
6152
|
E as Genre,
|
|
6097
6153
|
js as HostnamesMatcherSchema,
|
|
6098
|
-
|
|
6154
|
+
$m as JournalGenresSchema,
|
|
6099
6155
|
Ho as NON_OPENURL_PROPERTIES,
|
|
6100
6156
|
Go as NonOpenUrlPropertiesSchema,
|
|
6101
6157
|
rs as NothingParsedResultSchema,
|
|
6102
6158
|
al as OPENURL_KEYS,
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6159
|
+
Rm as OpenUrlAudioVisualResourceSchema,
|
|
6160
|
+
Am as OpenUrlBookResourceSchema,
|
|
6161
|
+
km as OpenUrlDocumentResourceSchema,
|
|
6162
|
+
Im as OpenUrlImageResourceSchema,
|
|
6163
|
+
wm as OpenUrlJournalResourceSchema,
|
|
6108
6164
|
be as OpenUrlResourceSchema,
|
|
6109
6165
|
os as OpenUrlResultSchema,
|
|
6110
|
-
|
|
6166
|
+
Cm as OpenUrlWebpageResourceSchema,
|
|
6111
6167
|
In as PARSERS,
|
|
6112
|
-
|
|
6168
|
+
qd as ParserRegistrySchema,
|
|
6113
6169
|
L as ParserType,
|
|
6114
6170
|
es as ParsingMetadataSchema,
|
|
6115
6171
|
ts as ParsingMetadataV2Schema,
|
|
@@ -6117,55 +6173,55 @@ export {
|
|
|
6117
6173
|
yl as ParsingResponseSchema,
|
|
6118
6174
|
El as ParsingResponseV2Schema,
|
|
6119
6175
|
kr as ParsingResultSchema,
|
|
6120
|
-
|
|
6176
|
+
Vm as REGISTRY,
|
|
6121
6177
|
Ds as RegExpMatcherSchema,
|
|
6122
|
-
|
|
6178
|
+
Dd as ResourceDataSchema,
|
|
6123
6179
|
ol as ResourceSchema,
|
|
6124
6180
|
Us as SiteRegistrationSchema,
|
|
6125
6181
|
is as SummonSearchResultSchema,
|
|
6126
6182
|
Se as TenantRegion,
|
|
6127
|
-
|
|
6183
|
+
xm as TenantRegistrySchema,
|
|
6128
6184
|
Ko as TenantSchema,
|
|
6129
6185
|
Bs as UrlMatcherSchema,
|
|
6130
6186
|
ss as Z3988SearchResultSchema,
|
|
6131
|
-
|
|
6187
|
+
zm as convertCustomerListToTenantRegistry,
|
|
6132
6188
|
_e as createAudioVisual,
|
|
6133
6189
|
Q as createBook,
|
|
6134
6190
|
il as createDocument,
|
|
6135
6191
|
sl as createImage,
|
|
6136
6192
|
D as createJournal,
|
|
6137
6193
|
Ir as createWebpage,
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6194
|
+
Lm as directLinkOnly,
|
|
6195
|
+
fl as fromOpenUrl,
|
|
6196
|
+
Xm as getBaseBookmarkingUrl,
|
|
6141
6197
|
Zs as getLibraryVersion,
|
|
6142
6198
|
gl as isCustomer,
|
|
6143
6199
|
vl as isCustomerList,
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6200
|
+
Bm as isDirectLinkOnlyResult,
|
|
6201
|
+
Pm as isGenre,
|
|
6202
|
+
Um as isNothingParsedResult,
|
|
6147
6203
|
Nr as isOpenUrlResult,
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6204
|
+
Fm as isParserRegistry,
|
|
6205
|
+
Zd as isParserType,
|
|
6206
|
+
jm as isParsingMetadata,
|
|
6207
|
+
Dm as isParsingMetadataV2,
|
|
6208
|
+
Om as isParsingRequest,
|
|
6209
|
+
qm as isParsingResponse,
|
|
6210
|
+
Zm as isParsingResponseV2,
|
|
6211
|
+
Tm as isParsingResult,
|
|
6212
|
+
Wm as isResourceData,
|
|
6213
|
+
Jm as isSiteRegistration,
|
|
6158
6214
|
Np as isSummonSearchResult,
|
|
6159
6215
|
bl as isTenant,
|
|
6160
|
-
|
|
6161
|
-
|
|
6216
|
+
Nm as isTenantRegion,
|
|
6217
|
+
Mm as isUrlMatcher,
|
|
6162
6218
|
Op as isZ3988SearchResult,
|
|
6163
6219
|
T as nothingParsed,
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6220
|
+
w as openUrlResource,
|
|
6221
|
+
ym as parseResource,
|
|
6222
|
+
Gm as parseResourceV2,
|
|
6167
6223
|
$l as summonSearchResult,
|
|
6168
|
-
|
|
6224
|
+
Hm as toBookmarkingWorkflowUrl,
|
|
6169
6225
|
pl as toOpenUrl,
|
|
6170
6226
|
Sl as z3988SearchResult
|
|
6171
6227
|
};
|