@talisdev/bibliographic-resource-parsers-lib 5.27.1 → 5.28.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.
|
@@ -25,7 +25,7 @@ function m(e, t, r) {
|
|
|
25
25
|
value: (a) => r?.Parent && a instanceof r.Parent ? !0 : a?._zod?.traits?.has(e)
|
|
26
26
|
}), Object.defineProperty(i, "name", { value: e }), i;
|
|
27
27
|
}
|
|
28
|
-
class
|
|
28
|
+
class Oe extends Error {
|
|
29
29
|
constructor() {
|
|
30
30
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
31
31
|
}
|
|
@@ -368,7 +368,7 @@ function ai(e, t = (r) => r.message) {
|
|
|
368
368
|
const Ar = (e) => (t, r, n, o) => {
|
|
369
369
|
const s = n ? Object.assign(n, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: r, issues: [] }, s);
|
|
370
370
|
if (i instanceof Promise)
|
|
371
|
-
throw new
|
|
371
|
+
throw new Oe();
|
|
372
372
|
if (i.issues.length) {
|
|
373
373
|
const a = new (o?.Err ?? e)(i.issues.map((c) => ge(c, s, me())));
|
|
374
374
|
throw So(a, o?.callee), a;
|
|
@@ -385,7 +385,7 @@ const Ar = (e) => (t, r, n, o) => {
|
|
|
385
385
|
}, st = (e) => (t, r, n) => {
|
|
386
386
|
const o = n ? { ...n, async: !1 } : { async: !1 }, s = t._zod.run({ value: r, issues: [] }, o);
|
|
387
387
|
if (s instanceof Promise)
|
|
388
|
-
throw new
|
|
388
|
+
throw new Oe();
|
|
389
389
|
return s.issues.length ? {
|
|
390
390
|
success: !1,
|
|
391
391
|
error: new (e ?? wo)(s.issues.map((i) => ge(i, o, me())))
|
|
@@ -413,7 +413,7 @@ const Ar = (e) => (t, r, n, o) => {
|
|
|
413
413
|
function ki() {
|
|
414
414
|
return new RegExp(Ii, "u");
|
|
415
415
|
}
|
|
416
|
-
const Ci = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Pi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,
|
|
416
|
+
const Ci = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Pi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Oi = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, xi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ni = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Io = /^[A-Za-z0-9_-]*$/, zi = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Li = /^\+(?:[0-9]){6,14}[0-9]$/, ko = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Ti = /* @__PURE__ */ new RegExp(`^${ko}$`);
|
|
417
417
|
function Co(e) {
|
|
418
418
|
const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
419
419
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
@@ -437,7 +437,7 @@ const ji = (e) => {
|
|
|
437
437
|
number: "number",
|
|
438
438
|
bigint: "bigint",
|
|
439
439
|
object: "date"
|
|
440
|
-
},
|
|
440
|
+
}, Oo = /* @__PURE__ */ m("$ZodCheckLessThan", (e, t) => {
|
|
441
441
|
se.init(e, t);
|
|
442
442
|
const r = Po[typeof t.value];
|
|
443
443
|
e._zod.onattach.push((n) => {
|
|
@@ -454,7 +454,7 @@ const ji = (e) => {
|
|
|
454
454
|
continue: !t.abort
|
|
455
455
|
});
|
|
456
456
|
};
|
|
457
|
-
}),
|
|
457
|
+
}), xo = /* @__PURE__ */ m("$ZodCheckGreaterThan", (e, t) => {
|
|
458
458
|
se.init(e, t);
|
|
459
459
|
const r = Po[typeof t.value];
|
|
460
460
|
e._zod.onattach.push((n) => {
|
|
@@ -752,7 +752,7 @@ const oa = {
|
|
|
752
752
|
continue;
|
|
753
753
|
const d = i.issues.length, g = f._zod.check(i);
|
|
754
754
|
if (g instanceof Promise && c?.async === !1)
|
|
755
|
-
throw new
|
|
755
|
+
throw new Oe();
|
|
756
756
|
if (l || g instanceof Promise)
|
|
757
757
|
l = (l ?? Promise.resolve()).then(async () => {
|
|
758
758
|
await g, i.issues.length !== d && (u || (u = Ce(i, d)));
|
|
@@ -770,7 +770,7 @@ const oa = {
|
|
|
770
770
|
const u = o(a, n, c);
|
|
771
771
|
if (u instanceof Promise) {
|
|
772
772
|
if (c.async === !1)
|
|
773
|
-
throw new
|
|
773
|
+
throw new Oe();
|
|
774
774
|
return u.then((l) => e._zod.parse(l, c));
|
|
775
775
|
}
|
|
776
776
|
return e._zod.parse(u, c);
|
|
@@ -785,7 +785,7 @@ const oa = {
|
|
|
785
785
|
const c = e._zod.parse(i, a);
|
|
786
786
|
if (c instanceof Promise) {
|
|
787
787
|
if (a.async === !1)
|
|
788
|
-
throw new
|
|
788
|
+
throw new Oe();
|
|
789
789
|
return c.then((u) => o(u, n, a));
|
|
790
790
|
}
|
|
791
791
|
return o(c, n, a);
|
|
@@ -918,9 +918,9 @@ const oa = {
|
|
|
918
918
|
}
|
|
919
919
|
};
|
|
920
920
|
}), Sa = /* @__PURE__ */ m("$ZodCIDRv4", (e, t) => {
|
|
921
|
-
t.pattern ?? (t.pattern =
|
|
921
|
+
t.pattern ?? (t.pattern = Oi), M.init(e, t);
|
|
922
922
|
}), $a = /* @__PURE__ */ m("$ZodCIDRv6", (e, t) => {
|
|
923
|
-
t.pattern ?? (t.pattern =
|
|
923
|
+
t.pattern ?? (t.pattern = xi), M.init(e, t), e._zod.check = (r) => {
|
|
924
924
|
const n = r.value.split("/");
|
|
925
925
|
try {
|
|
926
926
|
if (n.length !== 2)
|
|
@@ -1035,7 +1035,7 @@ const Ca = /* @__PURE__ */ m("$ZodJWT", (e, t) => {
|
|
|
1035
1035
|
};
|
|
1036
1036
|
}), Pa = /* @__PURE__ */ m("$ZodNumber", (e, t) => {
|
|
1037
1037
|
Mi.init(e, t), zo.init(e, t);
|
|
1038
|
-
}),
|
|
1038
|
+
}), Oa = /* @__PURE__ */ m("$ZodNull", (e, t) => {
|
|
1039
1039
|
W.init(e, t), e._zod.pattern = Ui, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, n) => {
|
|
1040
1040
|
const o = r.value;
|
|
1041
1041
|
return o === null || r.issues.push({
|
|
@@ -1045,7 +1045,7 @@ const Ca = /* @__PURE__ */ m("$ZodJWT", (e, t) => {
|
|
|
1045
1045
|
inst: e
|
|
1046
1046
|
}), r;
|
|
1047
1047
|
};
|
|
1048
|
-
}),
|
|
1048
|
+
}), xa = /* @__PURE__ */ m("$ZodUnknown", (e, t) => {
|
|
1049
1049
|
W.init(e, t), e._zod.parse = (r) => r;
|
|
1050
1050
|
}), Na = /* @__PURE__ */ m("$ZodNever", (e, t) => {
|
|
1051
1051
|
W.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
|
|
@@ -1394,7 +1394,7 @@ const ja = /* @__PURE__ */ m("$ZodRecord", (e, t) => {
|
|
|
1394
1394
|
if (n.async)
|
|
1395
1395
|
return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (r.value = i, r));
|
|
1396
1396
|
if (o instanceof Promise)
|
|
1397
|
-
throw new
|
|
1397
|
+
throw new Oe();
|
|
1398
1398
|
return r.value = o, r;
|
|
1399
1399
|
};
|
|
1400
1400
|
});
|
|
@@ -1830,7 +1830,7 @@ function Cc(e, t) {
|
|
|
1830
1830
|
});
|
|
1831
1831
|
}
|
|
1832
1832
|
function un(e, t) {
|
|
1833
|
-
return new
|
|
1833
|
+
return new Oo({
|
|
1834
1834
|
check: "less_than",
|
|
1835
1835
|
...S(t),
|
|
1836
1836
|
value: e,
|
|
@@ -1838,7 +1838,7 @@ function un(e, t) {
|
|
|
1838
1838
|
});
|
|
1839
1839
|
}
|
|
1840
1840
|
function $t(e, t) {
|
|
1841
|
-
return new
|
|
1841
|
+
return new Oo({
|
|
1842
1842
|
check: "less_than",
|
|
1843
1843
|
...S(t),
|
|
1844
1844
|
value: e,
|
|
@@ -1846,7 +1846,7 @@ function $t(e, t) {
|
|
|
1846
1846
|
});
|
|
1847
1847
|
}
|
|
1848
1848
|
function ln(e, t) {
|
|
1849
|
-
return new
|
|
1849
|
+
return new xo({
|
|
1850
1850
|
check: "greater_than",
|
|
1851
1851
|
...S(t),
|
|
1852
1852
|
value: e,
|
|
@@ -1854,7 +1854,7 @@ function ln(e, t) {
|
|
|
1854
1854
|
});
|
|
1855
1855
|
}
|
|
1856
1856
|
function At(e, t) {
|
|
1857
|
-
return new
|
|
1857
|
+
return new xo({
|
|
1858
1858
|
check: "greater_than",
|
|
1859
1859
|
...S(t),
|
|
1860
1860
|
value: e,
|
|
@@ -1897,14 +1897,14 @@ function Pc(e, t) {
|
|
|
1897
1897
|
pattern: e
|
|
1898
1898
|
});
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1900
|
+
function Oc(e) {
|
|
1901
1901
|
return new Yi({
|
|
1902
1902
|
check: "string_format",
|
|
1903
1903
|
format: "lowercase",
|
|
1904
1904
|
...S(e)
|
|
1905
1905
|
});
|
|
1906
1906
|
}
|
|
1907
|
-
function
|
|
1907
|
+
function xc(e) {
|
|
1908
1908
|
return new Ki({
|
|
1909
1909
|
check: "string_format",
|
|
1910
1910
|
format: "uppercase",
|
|
@@ -2074,7 +2074,7 @@ const Qc = (e, t) => {
|
|
|
2074
2074
|
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Do = /* @__PURE__ */ m("_ZodString", (e, t) => {
|
|
2075
2075
|
Rr.init(e, t), X.init(e, t);
|
|
2076
2076
|
const r = e._zod.bag;
|
|
2077
|
-
e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Pc(...n)), e.includes = (...n) => e.check(Nc(...n)), e.startsWith = (...n) => e.check(zc(...n)), e.endsWith = (...n) => e.check(Lc(...n)), e.min = (...n) => e.check(nt(...n)), e.max = (...n) => e.check(Zo(...n)), e.length = (...n) => e.check(jo(...n)), e.nonempty = (...n) => e.check(nt(1, ...n)), e.lowercase = (n) => e.check(
|
|
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(Oc(n)), e.uppercase = (n) => e.check(xc(n)), e.trim = () => e.check(qc()), e.normalize = (...n) => e.check(Tc(...n)), e.toLowerCase = () => e.check(Zc()), e.toUpperCase = () => e.check(jc());
|
|
2078
2078
|
}), hu = /* @__PURE__ */ m("ZodString", (e, t) => {
|
|
2079
2079
|
Rr.init(e, t), Do.init(e, t), e.email = (r) => e.check(tc(fu, r)), e.url = (r) => e.check(qo(Bo, r)), e.jwt = (r) => e.check(yc(Cu, r)), e.emoji = (r) => e.check(ic(mu, r)), e.guid = (r) => e.check(cn(hn, r)), e.uuid = (r) => e.check(rc(Ke, r)), e.uuidv4 = (r) => e.check(nc(Ke, r)), e.uuidv6 = (r) => e.check(oc(Ke, r)), e.uuidv7 = (r) => e.check(sc(Ke, r)), e.nanoid = (r) => e.check(ac(gu, r)), e.guid = (r) => e.check(cn(hn, r)), e.cuid = (r) => e.check(cc(vu, r)), e.cuid2 = (r) => e.check(uc(bu, r)), e.ulid = (r) => e.check(lc(_u, r)), e.base64 = (r) => e.check(vc(Ru, r)), e.base64url = (r) => e.check(bc(Iu, r)), e.xid = (r) => e.check(pc(yu, r)), e.ksuid = (r) => e.check(hc(Eu, r)), e.ipv4 = (r) => e.check(fc(Su, r)), e.ipv6 = (r) => e.check(dc($u, r)), e.cidrv4 = (r) => e.check(mc(Au, r)), e.cidrv6 = (r) => e.check(gc(wu, r)), e.e164 = (r) => e.check(_c(ku, r)), e.datetime = (r) => e.check(Mc(r)), e.date = (r) => e.check(Gc(r)), e.time = (r) => e.check(Hc(r)), e.duration = (r) => e.check(Kc(r));
|
|
2080
2080
|
});
|
|
@@ -2139,17 +2139,17 @@ const Pu = /* @__PURE__ */ m("ZodNumberFormat", (e, t) => {
|
|
|
2139
2139
|
function fn(e) {
|
|
2140
2140
|
return Rc(Pu, e);
|
|
2141
2141
|
}
|
|
2142
|
-
const
|
|
2143
|
-
|
|
2142
|
+
const Ou = /* @__PURE__ */ m("ZodNull", (e, t) => {
|
|
2143
|
+
Oa.init(e, t), X.init(e, t);
|
|
2144
2144
|
});
|
|
2145
2145
|
function ot(e) {
|
|
2146
|
-
return Ic(
|
|
2146
|
+
return Ic(Ou, e);
|
|
2147
2147
|
}
|
|
2148
|
-
const
|
|
2149
|
-
|
|
2148
|
+
const xu = /* @__PURE__ */ m("ZodUnknown", (e, t) => {
|
|
2149
|
+
xa.init(e, t), X.init(e, t);
|
|
2150
2150
|
});
|
|
2151
2151
|
function dn() {
|
|
2152
|
-
return kc(
|
|
2152
|
+
return kc(xu);
|
|
2153
2153
|
}
|
|
2154
2154
|
const Nu = /* @__PURE__ */ m("ZodNever", (e, t) => {
|
|
2155
2155
|
Na.init(e, t), X.init(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) => ({
|
|
@@ -2612,17 +2612,17 @@ const gm = pe([
|
|
|
2612
2612
|
].reduce(r, {});
|
|
2613
2613
|
return Object.keys(n).length === 0 ? null : n;
|
|
2614
2614
|
}, fl = (e) => URL.canParse(e) ? new URL(e).searchParams : new URLSearchParams(e);
|
|
2615
|
-
function
|
|
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
|
+
}), Om = 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 xm(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() {
|
|
@@ -2723,7 +2723,7 @@ const Al = (e) => {
|
|
|
2723
2723
|
if (t.length === 0)
|
|
2724
2724
|
return T();
|
|
2725
2725
|
const r = t.map(Al).find((n) => n !== null);
|
|
2726
|
-
return r ?
|
|
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;
|
|
@@ -2747,13 +2747,13 @@ const Al = (e) => {
|
|
|
2747
2747
|
"#rpi-attribute-book_details-publisher > .rpi-attribute-value > span"
|
|
2748
2748
|
)?.textContent ?? void 0, Pl = (e) => e.querySelector(
|
|
2749
2749
|
"#rpi-attribute-book_details-series > .rpi-attribute-value > a"
|
|
2750
|
-
)?.textContent ?? void 0,
|
|
2750
|
+
)?.textContent ?? void 0, Ol = (e) => {
|
|
2751
2751
|
const t = e.querySelector(
|
|
2752
2752
|
"#rpi-attribute-book_details-fiona_pages > .rpi-attribute-value > span"
|
|
2753
2753
|
)?.textContent ?? void 0;
|
|
2754
2754
|
return (t ? /\d+/.exec(t)?.[0] : null) ?? void 0;
|
|
2755
|
-
},
|
|
2756
|
-
const r = wl(t), n = Rl(t), o = Il(t), s = kl(t), i = Cl(t), a = Pl(t), c = t.getElementById("productTitle")?.textContent.trim() ?? void 0, u =
|
|
2755
|
+
}, xl = ({ url: e, document: t }) => {
|
|
2756
|
+
const r = wl(t), n = Rl(t), o = Il(t), s = kl(t), i = Cl(t), a = Pl(t), c = t.getElementById("productTitle")?.textContent.trim() ?? void 0, u = Ol(t);
|
|
2757
2757
|
return {
|
|
2758
2758
|
bookmarkingWorkflowUrl: null,
|
|
2759
2759
|
resource: Q(E.Book, {
|
|
@@ -2785,7 +2785,7 @@ const Al = (e) => {
|
|
|
2785
2785
|
};
|
|
2786
2786
|
}, zl = (e) => {
|
|
2787
2787
|
const t = e.querySelector(".article-header .source")?.textContent, r = t?.match(/\d{4}-\d{2}-\d{2}/)?.[0], n = t?.match(/Pages (\d+-\d+)/), [o, s] = (n?.[1].split("-") ?? []).map((u) => u.trim()), { jtitle: i, volume: a, issue: c } = Nl(e);
|
|
2788
|
-
return
|
|
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,
|
|
@@ -2874,7 +2874,7 @@ const Al = (e) => {
|
|
|
2874
2874
|
};
|
|
2875
2875
|
}, Ul = (e) => {
|
|
2876
2876
|
const { date: t, volume: r, issue: n } = Bl(e);
|
|
2877
|
-
return
|
|
2877
|
+
return w(
|
|
2878
2878
|
D(E.Journal, {
|
|
2879
2879
|
jtitle: Dl(e),
|
|
2880
2880
|
date: t,
|
|
@@ -2911,7 +2911,7 @@ 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
2916
|
}), Ml = (e) => we.safeParse(e).success, hs = 'script[type="application/ld+json"]', fs = (e) => Array.from(e.querySelectorAll(hs)), ct = (e) => e.querySelector(hs), Fe = (e) => {
|
|
2917
2917
|
const t = e.textContent;
|
|
@@ -2925,17 +2925,17 @@ const Vl = (e) => Object.values(ps).includes(
|
|
|
2925
2925
|
return null;
|
|
2926
2926
|
}
|
|
2927
2927
|
return null;
|
|
2928
|
-
}, Wl =
|
|
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(),
|
|
@@ -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,
|
|
@@ -3000,7 +3000,7 @@ const Vl = (e) => Object.values(ps).includes(
|
|
|
3000
3000
|
return n.length === 2 ? (t = n[1], r = n[0]) : t = n[0], { eissn: t, issn: r };
|
|
3001
3001
|
}, op = (e) => {
|
|
3002
3002
|
const t = h(e, "name", "citation_journal_title"), r = h(e, "name", "citation_title"), n = te(e, "name", "citation_author"), o = h(e, "name", "citation_doi"), { eissn: s, issn: i } = np(e), a = h(e, "name", "citation_publisher"), c = h(e, "name", "citation_publication_date"), u = h(e, "name", "citation_volume"), l = h(e, "name", "citation_issue"), f = h(e, "name", "citation_firstpage"), d = h(e, "name", "citation_lastpage");
|
|
3003
|
-
return
|
|
3003
|
+
return w(
|
|
3004
3004
|
D(E.Article, {
|
|
3005
3005
|
jtitle: t,
|
|
3006
3006
|
atitle: r,
|
|
@@ -3091,9 +3091,9 @@ const ip = (e) => {
|
|
|
3091
3091
|
}, mp = (e) => {
|
|
3092
3092
|
switch (ip(e.document)) {
|
|
3093
3093
|
case y.Article:
|
|
3094
|
-
return
|
|
3094
|
+
return w(fp(e));
|
|
3095
3095
|
case y.Journal:
|
|
3096
|
-
return
|
|
3096
|
+
return w(dp(e));
|
|
3097
3097
|
default:
|
|
3098
3098
|
return T();
|
|
3099
3099
|
}
|
|
@@ -3104,7 +3104,7 @@ const ip = (e) => {
|
|
|
3104
3104
|
"citation_article_type"
|
|
3105
3105
|
);
|
|
3106
3106
|
return t === "JOUR" && r ? y.Article : t === "CHP" ? y.Chapter : e.querySelector(".book-edition-year")?.textContent.includes("Book") ? y.Book : e.getElementById("journal-title") ? y.Journal : y.None;
|
|
3107
|
-
},
|
|
3107
|
+
}, Or = (e) => h(e, "name", "citation_doi") ?? h(e, "name", "dc.identifier") ?? e.querySelector(".doi .anchor-text")?.textContent ?? void 0, vp = (e) => {
|
|
3108
3108
|
const t = Array.from(
|
|
3109
3109
|
e.querySelectorAll(".kf-details .kf-detail-item:has(h3)")
|
|
3110
3110
|
), r = /* @__PURE__ */ new Map();
|
|
@@ -3113,7 +3113,7 @@ const ip = (e) => {
|
|
|
3113
3113
|
o && s && r.set(o, s);
|
|
3114
3114
|
}
|
|
3115
3115
|
return r;
|
|
3116
|
-
},
|
|
3116
|
+
}, xr = (e, t) => {
|
|
3117
3117
|
const r = Array.from(e.querySelectorAll(t)).map((n) => n.textContent).filter((n) => !!n);
|
|
3118
3118
|
return r.length > 0 ? r : void 0;
|
|
3119
3119
|
}, bp = (e) => {
|
|
@@ -3125,7 +3125,7 @@ const ip = (e) => {
|
|
|
3125
3125
|
if (t)
|
|
3126
3126
|
return URL.canParse(t) ? new URL(t).pathname.substring(1) : t;
|
|
3127
3127
|
}, yp = (e) => {
|
|
3128
|
-
const t = vp(e), r = h(e, "property", "og:title"), n = h(e, "property", "og:book:isbn"), o = t.get("Published"), s =
|
|
3128
|
+
const t = vp(e), r = h(e, "property", "og:title"), n = h(e, "property", "og:book:isbn"), o = t.get("Published"), s = xr(e, ".authors-container .author-detail h3"), i = Or(e) ?? _p(t);
|
|
3129
3129
|
return Q(E.Book, {
|
|
3130
3130
|
au: s,
|
|
3131
3131
|
date: o,
|
|
@@ -3134,7 +3134,7 @@ const ip = (e) => {
|
|
|
3134
3134
|
title: r
|
|
3135
3135
|
});
|
|
3136
3136
|
}, Ep = (e) => {
|
|
3137
|
-
const t = h(e, "property", "og:title"), r = h(e, "property", "og:book:isbn"), n = h(e, "name", "citation_publication_date"), o =
|
|
3137
|
+
const t = h(e, "property", "og:title"), r = h(e, "property", "og:book:isbn"), n = h(e, "name", "citation_publication_date"), o = xr(e, ".author-group .button-link-text"), s = h(e, "name", "citation_firstpage"), i = h(e, "name", "citation_lastpage"), a = h(e, "name", "citation_publisher"), c = Or(e), u = h(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
|
|
3138
3138
|
return Q(E.Bookitem, {
|
|
3139
3139
|
au: o,
|
|
3140
3140
|
btitle: u,
|
|
@@ -3147,7 +3147,7 @@ const ip = (e) => {
|
|
|
3147
3147
|
title: t
|
|
3148
3148
|
});
|
|
3149
3149
|
}, Sp = (e) => {
|
|
3150
|
-
const t = h(e, "property", "og:title"), r = h(e, "name", "citation_issn"), n = h(e, "name", "citation_publication_date"), o =
|
|
3150
|
+
const t = h(e, "property", "og:title"), r = h(e, "name", "citation_issn"), n = h(e, "name", "citation_publication_date"), o = xr(e, ".author-group .button-link-text"), s = h(e, "name", "citation_publisher"), i = h(e, "name", "citation_firstpage"), a = h(e, "name", "citation_issue"), c = h(e, "name", "citation_volume"), u = Or(e), l = h(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
|
|
3151
3151
|
return D(E.Article, {
|
|
3152
3152
|
au: o,
|
|
3153
3153
|
jtitle: l,
|
|
@@ -3169,13 +3169,13 @@ 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
|
}
|
|
@@ -3219,29 +3219,29 @@ const ip = (e) => {
|
|
|
3219
3219
|
doi: r,
|
|
3220
3220
|
title: t
|
|
3221
3221
|
});
|
|
3222
|
-
},
|
|
3222
|
+
}, Op = ({ 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) {
|
|
3236
3236
|
return os.safeParse(e).success;
|
|
3237
3237
|
}
|
|
3238
|
-
function
|
|
3238
|
+
function xp(e) {
|
|
3239
3239
|
return ss.safeParse(e).success;
|
|
3240
3240
|
}
|
|
3241
3241
|
function Np(e) {
|
|
3242
3242
|
return is.safeParse(e).success;
|
|
3243
3243
|
}
|
|
3244
|
-
function
|
|
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) => {
|
|
@@ -3289,16 +3289,16 @@ const zp = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textCont
|
|
|
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,21 +3308,21 @@ 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()),
|
|
@@ -3346,13 +3346,13 @@ const _s = w({
|
|
|
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(),
|
|
@@ -3450,12 +3450,12 @@ const _s = w({
|
|
|
3450
3450
|
}, rh = (e, t) => {
|
|
3451
3451
|
const r = h(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
|
-
}, nh = (e, t, r) => e === y.AudioVisual && Qp(r) ?
|
|
3453
|
+
}, nh = (e, t, r) => e === y.AudioVisual && Qp(r) ? w(eh(t, r)) : e === y.Book && Mp(r) ? w(Gp(t, r)) : (e === y.Chapter || e === y.Article) && ys(r) ? w(yn(t, r)) : e === y.Article && Up(r) ? w(
|
|
3454
3454
|
yn(t, r.mainEntity)
|
|
3455
|
-
) : e === y.Journal && Hp(r) ?
|
|
3455
|
+
) : e === y.Journal && Hp(r) ? w(Yp(r)) : T(), oh = ({ url: e, document: t }) => {
|
|
3456
3456
|
const r = rh(e, t);
|
|
3457
3457
|
if (r === y.Webpage)
|
|
3458
|
-
return
|
|
3458
|
+
return w(th(t));
|
|
3459
3459
|
const n = ct(t);
|
|
3460
3460
|
if (!n)
|
|
3461
3461
|
return T();
|
|
@@ -3469,17 +3469,17 @@ const _s = w({
|
|
|
3469
3469
|
"Online ISSN",
|
|
3470
3470
|
"Print ISSN"
|
|
3471
3471
|
/* PrintIssn */
|
|
3472
|
-
]), ih =
|
|
3473
|
-
content:
|
|
3474
|
-
item:
|
|
3472
|
+
]), ih = 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()
|
|
@@ -3656,13 +3656,13 @@ const _s = w({
|
|
|
3656
3656
|
}, _h = ({ document: e, url: t }) => {
|
|
3657
3657
|
switch (ch(e, t)) {
|
|
3658
3658
|
case y.Book:
|
|
3659
|
-
return
|
|
3659
|
+
return w(mh(e));
|
|
3660
3660
|
case y.Chapter:
|
|
3661
|
-
return
|
|
3661
|
+
return w(gh(e));
|
|
3662
3662
|
case y.Journal:
|
|
3663
|
-
return
|
|
3663
|
+
return w(vh(e));
|
|
3664
3664
|
case y.Article:
|
|
3665
|
-
return
|
|
3665
|
+
return w(bh(e));
|
|
3666
3666
|
default:
|
|
3667
3667
|
return T();
|
|
3668
3668
|
}
|
|
@@ -3678,7 +3678,7 @@ const _s = w({
|
|
|
3678
3678
|
pub: s,
|
|
3679
3679
|
title: i
|
|
3680
3680
|
});
|
|
3681
|
-
return
|
|
3681
|
+
return w(a);
|
|
3682
3682
|
}, Sh = ({
|
|
3683
3683
|
document: e
|
|
3684
3684
|
}) => Array.from(e.querySelectorAll(".Z3988")).length <= 1 ? T() : Sl(), Lr = (e) => {
|
|
@@ -3724,7 +3724,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
|
|
|
3724
3724
|
...Ah(e) ?? []
|
|
3725
3725
|
]);
|
|
3726
3726
|
return t.size ? [...t] : void 0;
|
|
3727
|
-
}, Ie = (e, t) => e.querySelector('[data-qa="published-date"]')?.textContent ?? e.querySelector(".summary-image")?.textContent ??
|
|
3727
|
+
}, Ie = (e, t) => e.querySelector('[data-qa="published-date"]')?.textContent ?? e.querySelector(".summary-image")?.textContent ?? xe(t?.get("date")) ?? xe(t?.get("copyright date")) ?? xe(t?.get("published date")), Ss = (e) => {
|
|
3728
3728
|
const t = e.find((r) => r.startsWith("https://doi.org/"));
|
|
3729
3729
|
if (t)
|
|
3730
3730
|
return t.replace("https://doi.org/", "");
|
|
@@ -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
|
-
}, Ih = (e) => e.querySelector(".doi")?.getAttribute("href") ?? void 0,
|
|
3735
|
+
}, Ih = (e) => e.querySelector(".doi")?.getAttribute("href") ?? void 0, xe = (e) => {
|
|
3736
3736
|
if (e?.length)
|
|
3737
3737
|
return e[0];
|
|
3738
3738
|
}, ke = (e) => {
|
|
@@ -3744,7 +3744,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
|
|
|
3744
3744
|
!r || !n.length || t.set(r, n);
|
|
3745
3745
|
}), t;
|
|
3746
3746
|
}, As = (e) => {
|
|
3747
|
-
const t = ke(e), r = e.querySelector(".summary-journal"), n = Array.from(r?.childNodes ?? []), o = n[0]?.textContent ?? e.querySelector(".journal-link")?.textContent ?? void 0, s = n[2]?.textContent?.replace(/Published By:\s+?/i, "") ??
|
|
3747
|
+
const t = ke(e), r = e.querySelector(".summary-journal"), n = Array.from(r?.childNodes ?? []), o = n[0]?.textContent ?? e.querySelector(".journal-link")?.textContent ?? void 0, s = n[2]?.textContent?.replace(/Published By:\s+?/i, "") ?? xe(t.get("publisher")) ?? e.querySelector(".publisher-link")?.textContent ?? void 0;
|
|
3748
3748
|
return {
|
|
3749
3749
|
pub: s && s.trim() !== "" ? s : void 0,
|
|
3750
3750
|
jtitle: o && o.trim() !== "" ? o : void 0
|
|
@@ -3756,7 +3756,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
|
|
|
3756
3756
|
'[data-qa="collection-links"] mfe-content-details-pharos-link'
|
|
3757
3757
|
]);
|
|
3758
3758
|
return t && t.trim() !== "" ? t : void 0;
|
|
3759
|
-
}, ht = (e) => he(e.querySelector('[data-qa="page-count"]')?.textContent), Me = (e, t) => e.querySelector(".publisher-link")?.textContent ??
|
|
3759
|
+
}, ht = (e) => he(e.querySelector('[data-qa="page-count"]')?.textContent), Me = (e, t) => e.querySelector(".publisher-link")?.textContent ?? xe(t?.get("publisher")), ye = (e) => e.querySelector('[data-qa="item-title"]')?.textContent.trim() ?? e.querySelector("mfe-turnaway-pharos-heading")?.textContent.trim() ?? e.querySelector(".metadata mfe-toc-pharos-heading")?.textContent.trim() ?? e.querySelector(".journal_header-title")?.textContent.trim() ?? void 0, Ee = (e) => {
|
|
3760
3760
|
if (!URL.canParse(e))
|
|
3761
3761
|
return;
|
|
3762
3762
|
const t = new URL(e);
|
|
@@ -3780,7 +3780,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
|
|
|
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
|
+
}, Oh = (e) => {
|
|
3784
3784
|
const t = Tr(e, [
|
|
3785
3785
|
"mfe-turnaway-pharos-link",
|
|
3786
3786
|
'[data-qa="item-src-info"]'
|
|
@@ -3792,8 +3792,8 @@ 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
|
+
}, xh = (e, t) => {
|
|
3796
|
+
const r = ye(e), n = Re(e), o = Ie(e) ?? Oh(e), s = As(e), i = s.jtitle ?? kh(e) ?? void 0, a = s.pub, c = Ch(e), u = Ph(e), l = c.issue ?? u.issue, f = c.volume ?? u.volume, d = ht(e) ?? u.pages, g = u.spage, C = u.epage, v = Ee(t), P = Ss(
|
|
3797
3797
|
Array.from(
|
|
3798
3798
|
e.querySelector(".content-meta-data-stables")?.childNodes ?? []
|
|
3799
3799
|
).map((q) => q.textContent ?? "")
|
|
@@ -3897,7 +3897,7 @@ const jh = (e, t) => {
|
|
|
3897
3897
|
switch (Bh(e)) {
|
|
3898
3898
|
case oe.Article:
|
|
3899
3899
|
case oe.Serial:
|
|
3900
|
-
return
|
|
3900
|
+
return xh(e, t);
|
|
3901
3901
|
case oe.Audio:
|
|
3902
3902
|
return Nh(e, t);
|
|
3903
3903
|
case oe.Book:
|
|
@@ -3918,7 +3918,7 @@ const jh = (e, t) => {
|
|
|
3918
3918
|
}
|
|
3919
3919
|
}, Vh = ({ document: e, url: t }) => {
|
|
3920
3920
|
const r = Uh(e, t);
|
|
3921
|
-
return r ?
|
|
3921
|
+
return r ? w(r) : T();
|
|
3922
3922
|
}, De = (e) => {
|
|
3923
3923
|
if (e) {
|
|
3924
3924
|
if (typeof e == "string")
|
|
@@ -4004,19 +4004,19 @@ const jh = (e, t) => {
|
|
|
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
4013
|
}), Hh = we.extend({
|
|
4014
|
-
identifier:
|
|
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(
|
|
@@ -4098,18 +4098,18 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4098
4098
|
const t = Yh(e), r = nf(e), n = Jh(t, r);
|
|
4099
4099
|
switch (sf(e, t)) {
|
|
4100
4100
|
case "Article":
|
|
4101
|
-
return
|
|
4101
|
+
return w(Mh(n));
|
|
4102
4102
|
case "Book":
|
|
4103
|
-
return
|
|
4103
|
+
return w(Gh(n));
|
|
4104
4104
|
case "Periodical":
|
|
4105
4105
|
case "Journal":
|
|
4106
|
-
return
|
|
4106
|
+
return w(Xh(n));
|
|
4107
4107
|
case "Audio CD":
|
|
4108
4108
|
case "CreativeWork":
|
|
4109
|
-
return
|
|
4109
|
+
return w(Wh(n));
|
|
4110
4110
|
case "Movie":
|
|
4111
4111
|
case "Video":
|
|
4112
|
-
return
|
|
4112
|
+
return w(Kh(n));
|
|
4113
4113
|
default:
|
|
4114
4114
|
return T();
|
|
4115
4115
|
}
|
|
@@ -4175,9 +4175,9 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4175
4175
|
}) => {
|
|
4176
4176
|
switch (cf(e)) {
|
|
4177
4177
|
case y.Article:
|
|
4178
|
-
return
|
|
4178
|
+
return w(df(e));
|
|
4179
4179
|
case y.Journal:
|
|
4180
|
-
return
|
|
4180
|
+
return w(mf(e));
|
|
4181
4181
|
default:
|
|
4182
4182
|
return T();
|
|
4183
4183
|
}
|
|
@@ -4229,31 +4229,31 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4229
4229
|
return Ps(t) ? Af(e) : Rf(t) ? $f(e) : If(t) ? wf(e) : null;
|
|
4230
4230
|
}, Cf = ({ document: e }) => {
|
|
4231
4231
|
const t = kf(e);
|
|
4232
|
-
return t ?
|
|
4233
|
-
}, Pf =
|
|
4232
|
+
return t ? w(t) : T();
|
|
4233
|
+
}, Pf = 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
|
+
}), Of = (e) => Pf.safeParse(e).success, xf = (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 (Of(r))
|
|
4257
4257
|
return r;
|
|
4258
4258
|
} catch {
|
|
4259
4259
|
return null;
|
|
@@ -4263,13 +4263,13 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4263
4263
|
const t = ct(e);
|
|
4264
4264
|
if (!t)
|
|
4265
4265
|
return T();
|
|
4266
|
-
const r =
|
|
4266
|
+
const r = xf(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,
|
|
@@ -4286,12 +4286,12 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
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()
|
|
@@ -4308,7 +4308,7 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4308
4308
|
const o = n["@type"], s = n.author?.map((l) => l.name), i = n.copyrightYear?.toString() ?? h(e, "property", "og:book:release_date"), a = n.name, c = Lr(n.publisher?.map((l) => l.name)), u = h(e, "property", "og:book:isbn");
|
|
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,
|
|
@@ -4337,20 +4337,20 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4337
4337
|
title: r,
|
|
4338
4338
|
uri: e
|
|
4339
4339
|
});
|
|
4340
|
-
return
|
|
4340
|
+
return w(i);
|
|
4341
4341
|
}, Df = ({
|
|
4342
4342
|
document: e,
|
|
4343
4343
|
url: t
|
|
4344
4344
|
}) => {
|
|
4345
4345
|
switch (Bf(t)) {
|
|
4346
4346
|
case y.Chapter:
|
|
4347
|
-
return
|
|
4347
|
+
return w(Mf(e));
|
|
4348
4348
|
case y.Book:
|
|
4349
|
-
return
|
|
4349
|
+
return w(Wf(e));
|
|
4350
4350
|
case y.Article:
|
|
4351
|
-
return
|
|
4351
|
+
return w(Uf(e));
|
|
4352
4352
|
case y.Journal:
|
|
4353
|
-
return
|
|
4353
|
+
return w(Vf(e));
|
|
4354
4354
|
default:
|
|
4355
4355
|
return T();
|
|
4356
4356
|
}
|
|
@@ -4362,7 +4362,7 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4362
4362
|
e,
|
|
4363
4363
|
"name",
|
|
4364
4364
|
"citation_publication_date"
|
|
4365
|
-
)?.substring(0, 4), u = h(e, "name", "citation_publisher"), l =
|
|
4365
|
+
)?.substring(0, 4), u = h(e, "name", "citation_publisher"), l = Os(e), f = Is(
|
|
4366
4366
|
te(e, "name", "citation_issn")
|
|
4367
4367
|
);
|
|
4368
4368
|
return D(E.Article, {
|
|
@@ -4417,7 +4417,7 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4417
4417
|
e,
|
|
4418
4418
|
"name",
|
|
4419
4419
|
"citation_publication_date"
|
|
4420
|
-
)?.substring(0, 4), s = h(e, "name", "citation_publisher"), i =
|
|
4420
|
+
)?.substring(0, 4), s = h(e, "name", "citation_publisher"), i = Os(e);
|
|
4421
4421
|
return Q(E.Book, {
|
|
4422
4422
|
title: t,
|
|
4423
4423
|
au: i,
|
|
@@ -4426,7 +4426,7 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4426
4426
|
date: o,
|
|
4427
4427
|
pub: s
|
|
4428
4428
|
});
|
|
4429
|
-
},
|
|
4429
|
+
}, Os = (e) => {
|
|
4430
4430
|
const t = te(e, "name", "citation_author");
|
|
4431
4431
|
return t.length ? t : void 0;
|
|
4432
4432
|
}, Gf = (e) => {
|
|
@@ -4441,7 +4441,7 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
|
|
|
4441
4441
|
};
|
|
4442
4442
|
function Xf(e) {
|
|
4443
4443
|
const t = h(e, "property", "og:title"), r = h(e, "name", "dc.Publisher"), n = h(e, "name", "publication_doi");
|
|
4444
|
-
return
|
|
4444
|
+
return w(
|
|
4445
4445
|
D(E.Journal, {
|
|
4446
4446
|
jtitle: t,
|
|
4447
4447
|
pub: r,
|
|
@@ -4451,7 +4451,7 @@ function Xf(e) {
|
|
|
4451
4451
|
}
|
|
4452
4452
|
function Hf(e) {
|
|
4453
4453
|
const t = h(e, "name", "dc.Title"), r = te(e, "name", "dc.Creator"), n = h(e, "name", "dc.Date")?.substring(0, 4), o = h(e, "name", "publication_doi"), s = h(e, "name", "citation_journal_title"), i = h(e, "name", "dc.Publisher");
|
|
4454
|
-
return
|
|
4454
|
+
return w(
|
|
4455
4455
|
D(E.Article, {
|
|
4456
4456
|
atitle: t,
|
|
4457
4457
|
au: r,
|
|
@@ -4507,7 +4507,7 @@ const Yf = ({ document: e }) => {
|
|
|
4507
4507
|
}, td = ({ document: e, url: t }) => {
|
|
4508
4508
|
switch (Qf(t)) {
|
|
4509
4509
|
case y.Article:
|
|
4510
|
-
return
|
|
4510
|
+
return w(ed(e));
|
|
4511
4511
|
default:
|
|
4512
4512
|
return T();
|
|
4513
4513
|
}
|
|
@@ -4522,8 +4522,8 @@ 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 =
|
|
4526
|
-
return
|
|
4525
|
+
const r = xs(e), n = _r(e), o = Ns(e), s = zs(e), i = Ls(e), a = Ts(e), c = _r(e), u = t, { startPage: l, endPage: f } = qs(e) ?? {};
|
|
4526
|
+
return w(
|
|
4527
4527
|
Q(E.Book, {
|
|
4528
4528
|
au: r,
|
|
4529
4529
|
btitle: n,
|
|
@@ -4539,8 +4539,8 @@ function od(e, t) {
|
|
|
4539
4539
|
);
|
|
4540
4540
|
}
|
|
4541
4541
|
function sd(e, t) {
|
|
4542
|
-
const r =
|
|
4543
|
-
return
|
|
4542
|
+
const r = xs(e), n = wn(e), o = _r(e), s = Ns(e), i = zs(e), a = Ls(e), c = Ts(e), u = wn(e), l = t, { startPage: f, endPage: d } = qs(e) ?? {};
|
|
4543
|
+
return w(
|
|
4544
4544
|
Q(E.Book, {
|
|
4545
4545
|
au: r,
|
|
4546
4546
|
atitle: n,
|
|
@@ -4556,7 +4556,7 @@ function sd(e, t) {
|
|
|
4556
4556
|
})
|
|
4557
4557
|
);
|
|
4558
4558
|
}
|
|
4559
|
-
const
|
|
4559
|
+
const xs = (e) => {
|
|
4560
4560
|
const t = e.querySelectorAll(
|
|
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());
|
|
@@ -4638,9 +4638,9 @@ const Os = (e) => {
|
|
|
4638
4638
|
}) => {
|
|
4639
4639
|
switch (hd(t)) {
|
|
4640
4640
|
case y.Article:
|
|
4641
|
-
return
|
|
4641
|
+
return w(fd(t));
|
|
4642
4642
|
case y.Webpage:
|
|
4643
|
-
return
|
|
4643
|
+
return w(dd(e, t));
|
|
4644
4644
|
}
|
|
4645
4645
|
return T();
|
|
4646
4646
|
}, gd = ({
|
|
@@ -4689,7 +4689,7 @@ const Ed = ({
|
|
|
4689
4689
|
if (!new URL(e).searchParams.has("i"))
|
|
4690
4690
|
return T();
|
|
4691
4691
|
const n = E.AudioDocument, o = h(t, "property", "og:site_name"), s = h(t, "property", "og:title"), i = yd(t);
|
|
4692
|
-
return
|
|
4692
|
+
return w({
|
|
4693
4693
|
genre: n,
|
|
4694
4694
|
pub: o,
|
|
4695
4695
|
title: s,
|
|
@@ -4704,7 +4704,7 @@ const Ed = ({
|
|
|
4704
4704
|
return t ? t.replace("https://doi.org/", "").trim() : void 0;
|
|
4705
4705
|
}, Ad = ({ document: e }) => {
|
|
4706
4706
|
const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_pdf_url"), n = te(e, "name", "citation_author"), o = Sd(e), s = $d(e);
|
|
4707
|
-
return !t && n.length === 0 && !o && !s ? T() :
|
|
4707
|
+
return !t && n.length === 0 && !o && !s ? T() : w(
|
|
4708
4708
|
D(E.Article, {
|
|
4709
4709
|
au: n,
|
|
4710
4710
|
date: o,
|
|
@@ -4742,21 +4742,69 @@ const Ed = ({
|
|
|
4742
4742
|
const r = Rd(t), n = wd(t) ?? r.get("director"), o = je(t, "div.product-release-year"), s = je(
|
|
4743
4743
|
t,
|
|
4744
4744
|
"div.studio-section div.term-info-section-item"
|
|
4745
|
-
) ??
|
|
4745
|
+
) ?? xe(r.get("supplier")), i = je(t, ".product-title") ?? je(t, ".movie-title"), a = _e({
|
|
4746
4746
|
au: n,
|
|
4747
4747
|
date: o,
|
|
4748
4748
|
pub: s,
|
|
4749
4749
|
title: i,
|
|
4750
4750
|
uri: e
|
|
4751
4751
|
});
|
|
4752
|
-
return
|
|
4752
|
+
return w(a);
|
|
4753
|
+
}, kd = (e) => {
|
|
4754
|
+
if (h(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"] : h(e, "name", "DC.publisher");
|
|
4768
|
+
}
|
|
4769
|
+
function Od(e) {
|
|
4770
|
+
const t = h(
|
|
4771
|
+
e,
|
|
4772
|
+
"name",
|
|
4773
|
+
"citation_publication_date"
|
|
4774
|
+
);
|
|
4775
|
+
return t ? t.substring(0, 4) : h(e, "name", "citation_online_date")?.substring(
|
|
4776
|
+
0,
|
|
4777
|
+
4
|
|
4778
|
+
);
|
|
4779
|
+
}
|
|
4780
|
+
const xd = (e) => {
|
|
4781
|
+
const t = Cd(e), r = h(e, "name", "DataCite.title"), n = te(e, "name", "DataCite.contributor"), o = Od(e), s = h(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, f = 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: f,
|
|
4792
|
+
uri: d
|
|
4793
|
+
});
|
|
4794
|
+
}, Nd = ({ document: e }) => {
|
|
4795
|
+
switch (kd(e)) {
|
|
4796
|
+
case y.Article:
|
|
4797
|
+
return w(xd(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
4806
|
Z3988SearchResult: Sh,
|
|
4759
|
-
Amazon:
|
|
4807
|
+
Amazon: xl,
|
|
4760
4808
|
CupOfJo: ep,
|
|
4761
4809
|
Jstor: Vh,
|
|
4762
4810
|
Youtube: Dp,
|
|
@@ -4764,7 +4812,7 @@ const In = {
|
|
|
4764
4812
|
SageVideo: Eh,
|
|
4765
4813
|
ScienceDirect: Ap,
|
|
4766
4814
|
Springer: oh,
|
|
4767
|
-
TaylorFrancis:
|
|
4815
|
+
TaylorFrancis: Op,
|
|
4768
4816
|
Wiley: _h,
|
|
4769
4817
|
VuFind: Tp,
|
|
4770
4818
|
ClinicalKey: Jl,
|
|
@@ -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.28.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
|
{
|
|
@@ -4821,7 +4870,7 @@ const In = {
|
|
|
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
|
},
|
|
@@ -4992,27 +5041,34 @@ const In = {
|
|
|
4992
5041
|
matcher: { hostnames: ["kanopy.com", "www.kanopy.com"] },
|
|
4993
5042
|
name: "Kanopy Video",
|
|
4994
5043
|
parsers: [L.KanopyVideo]
|
|
5044
|
+
},
|
|
5045
|
+
{
|
|
5046
|
+
matcher: {
|
|
5047
|
+
hostnames: ["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;
|
|
@@ -5069,17 +5125,17 @@ function Ge() {
|
|
|
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*$");
|
|
5070
5126
|
})(et, et.exports)), et.exports;
|
|
5071
5127
|
}
|
|
5072
|
-
var It,
|
|
5128
|
+
var It, On;
|
|
5073
5129
|
function Fr() {
|
|
5074
|
-
if (
|
|
5075
|
-
|
|
5130
|
+
if (On) return It;
|
|
5131
|
+
On = 1;
|
|
5076
5132
|
const e = Object.freeze({ loose: !0 }), t = Object.freeze({});
|
|
5077
5133
|
return It = (n) => n ? typeof n != "object" ? e : n : t, It;
|
|
5078
5134
|
}
|
|
5079
|
-
var kt,
|
|
5135
|
+
var kt, xn;
|
|
5080
5136
|
function Vs() {
|
|
5081
|
-
if (
|
|
5082
|
-
|
|
5137
|
+
if (xn) return kt;
|
|
5138
|
+
xn = 1;
|
|
5083
5139
|
const e = /^[0-9]+$/, t = (n, o) => {
|
|
5084
5140
|
if (typeof n == "number" && typeof o == "number")
|
|
5085
5141
|
return n === o ? 0 : n < o ? -1 : 1;
|
|
@@ -5269,28 +5325,28 @@ function Te() {
|
|
|
5269
5325
|
}
|
|
5270
5326
|
}, Pt;
|
|
5271
5327
|
}
|
|
5272
|
-
var
|
|
5273
|
-
function
|
|
5274
|
-
if (Ln) return
|
|
5328
|
+
var Ot, Ln;
|
|
5329
|
+
function Bd() {
|
|
5330
|
+
if (Ln) return Ot;
|
|
5275
5331
|
Ln = 1;
|
|
5276
5332
|
const e = Te();
|
|
5277
|
-
return
|
|
5333
|
+
return Ot = (r, n) => {
|
|
5278
5334
|
const o = e(r, n);
|
|
5279
5335
|
return o ? o.version : null;
|
|
5280
|
-
},
|
|
5336
|
+
}, Ot;
|
|
5281
5337
|
}
|
|
5282
|
-
var
|
|
5283
|
-
function
|
|
5284
|
-
if (Tn) return
|
|
5338
|
+
var xt, Tn;
|
|
5339
|
+
function Ud() {
|
|
5340
|
+
if (Tn) return xt;
|
|
5285
5341
|
Tn = 1;
|
|
5286
5342
|
const e = Te();
|
|
5287
|
-
return
|
|
5343
|
+
return xt = (r, n) => {
|
|
5288
5344
|
const o = e(r.trim().replace(/^[=v]+/, ""), n);
|
|
5289
5345
|
return o ? o.version : null;
|
|
5290
|
-
},
|
|
5346
|
+
}, xt;
|
|
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();
|
|
@@ -5502,7 +5558,7 @@ function Wd() {
|
|
|
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 {
|
|
@@ -5579,8 +5635,8 @@ function ue() {
|
|
|
5579
5635
|
const $ = ((this.options.includePrerelease && g) | (this.options.loose && C)) + ":" + b, k = n.get($);
|
|
5580
5636
|
if (k)
|
|
5581
5637
|
return k;
|
|
5582
|
-
const A = this.options.loose,
|
|
5583
|
-
b = b.replace(
|
|
5638
|
+
const A = this.options.loose, O = A ? c[u.HYPHENRANGELOOSE] : c[u.HYPHENRANGE];
|
|
5639
|
+
b = b.replace(O, Et(this.options.includePrerelease)), i("hyphen replace", b), b = b.replace(c[u.COMPARATORTRIM], l), i("comparator trim", b), b = b.replace(c[u.TILDETRIM], f), i("tilde trim", b), b = b.replace(c[u.CARETTRIM], 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));
|
|
@@ -5596,7 +5652,7 @@ function ue() {
|
|
|
5596
5652
|
intersects(b, I) {
|
|
5597
5653
|
if (!(b instanceof t))
|
|
5598
5654
|
throw new TypeError("a Range is required");
|
|
5599
|
-
return this.set.some(($) => q($, I) && b.set.some((k) => q(k, I) && $.every((A) => k.every((
|
|
5655
|
+
return this.set.some(($) => q($, I) && b.set.some((k) => q(k, I) && $.every((A) => k.every((O) => A.intersects(O, I)))));
|
|
5600
5656
|
}
|
|
5601
5657
|
// if ANY of the sets match ALL of its comparators, then pass
|
|
5602
5658
|
test(b) {
|
|
@@ -5615,7 +5671,7 @@ 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,
|
|
@@ -5628,30 +5684,30 @@ function ue() {
|
|
|
5628
5684
|
for (; I && $.length; )
|
|
5629
5685
|
I = $.every((A) => k.intersects(A, b)), k = $.pop();
|
|
5630
5686
|
return I;
|
|
5631
|
-
}, H = (_, b) => (_ = _.replace(c[u.BUILD], ""), i("comp", _, b), _ = F(_, b), i("caret", _), _ = B(_, b), i("tildes", _), _ =
|
|
5687
|
+
}, H = (_, b) => (_ = _.replace(c[u.BUILD], ""), i("comp", _, b), _ = F(_, b), i("caret", _), _ = B(_, b), i("tildes", _), _ = x(_, b), i("xrange", _), _ = _t(_, b), i("stars", _), _), N = (_) => !_ || _.toLowerCase() === "x" || _ === "*", B = (_, b) => _.trim().split(/\s+/).map((I) => Y(I, b)).join(" "), Y = (_, b) => {
|
|
5632
5688
|
const I = b.loose ? c[u.TILDELOOSE] : c[u.TILDE];
|
|
5633
|
-
return _.replace(I, ($, k, A,
|
|
5634
|
-
i("tilde", _, $, k, A,
|
|
5689
|
+
return _.replace(I, ($, k, A, O, Z) => {
|
|
5690
|
+
i("tilde", _, $, k, A, O, Z);
|
|
5635
5691
|
let z;
|
|
5636
|
-
return N(k) ? z = "" : N(A) ? z = `>=${k}.0.0 <${+k + 1}.0.0-0` : N(
|
|
5692
|
+
return N(k) ? z = "" : N(A) ? z = `>=${k}.0.0 <${+k + 1}.0.0-0` : N(O) ? z = `>=${k}.${A}.0 <${k}.${+A + 1}.0-0` : Z ? (i("replaceTilde pr", Z), z = `>=${k}.${A}.${O}-${Z} <${k}.${+A + 1}.0-0`) : z = `>=${k}.${A}.${O} <${k}.${+A + 1}.0-0`, i("tilde return", z), z;
|
|
5637
5693
|
});
|
|
5638
5694
|
}, F = (_, b) => _.trim().split(/\s+/).map((I) => ee(I, b)).join(" "), ee = (_, b) => {
|
|
5639
5695
|
i("caret", _, b);
|
|
5640
5696
|
const I = b.loose ? c[u.CARETLOOSE] : c[u.CARET], $ = b.includePrerelease ? "-0" : "";
|
|
5641
|
-
return _.replace(I, (k, A,
|
|
5642
|
-
i("caret", _, k, A,
|
|
5697
|
+
return _.replace(I, (k, A, O, Z, z) => {
|
|
5698
|
+
i("caret", _, k, A, O, Z, z);
|
|
5643
5699
|
let V;
|
|
5644
|
-
return N(A) ? V = "" : N(
|
|
5700
|
+
return N(A) ? V = "" : N(O) ? V = `>=${A}.0.0${$} <${+A + 1}.0.0-0` : N(Z) ? A === "0" ? V = `>=${A}.${O}.0${$} <${A}.${+O + 1}.0-0` : V = `>=${A}.${O}.0${$} <${+A + 1}.0.0-0` : z ? (i("replaceCaret pr", z), A === "0" ? O === "0" ? V = `>=${A}.${O}.${Z}-${z} <${A}.${O}.${+Z + 1}-0` : V = `>=${A}.${O}.${Z}-${z} <${A}.${+O + 1}.0-0` : V = `>=${A}.${O}.${Z}-${z} <${+A + 1}.0.0-0`) : (i("no pr"), A === "0" ? O === "0" ? V = `>=${A}.${O}.${Z}${$} <${A}.${O}.${+Z + 1}-0` : V = `>=${A}.${O}.${Z}${$} <${A}.${+O + 1}.0-0` : V = `>=${A}.${O}.${Z} <${+A + 1}.0.0-0`), i("caret return", V), V;
|
|
5645
5701
|
});
|
|
5646
|
-
},
|
|
5702
|
+
}, x = (_, b) => (i("replaceXRanges", _, b), _.split(/\s+/).map((I) => qe(I, b)).join(" ")), qe = (_, b) => {
|
|
5647
5703
|
_ = _.trim();
|
|
5648
5704
|
const I = b.loose ? c[u.XRANGELOOSE] : c[u.XRANGE];
|
|
5649
|
-
return _.replace(I, ($, k, A,
|
|
5650
|
-
i("xRange", _, $, k, A,
|
|
5651
|
-
const V = N(A), re = V || N(
|
|
5652
|
-
return k === "=" && Ze && (k = ""), z = b.includePrerelease ? "-0" : "", V ? k === ">" || k === "<" ? $ = "<0.0.0-0" : $ = "*" : k && Ze ? (re && (
|
|
5705
|
+
return _.replace(I, ($, k, A, O, Z, z) => {
|
|
5706
|
+
i("xRange", _, $, k, A, O, Z, z);
|
|
5707
|
+
const V = N(A), re = V || N(O), K = re || N(Z), Ze = K;
|
|
5708
|
+
return k === "=" && Ze && (k = ""), z = b.includePrerelease ? "-0" : "", V ? k === ">" || k === "<" ? $ = "<0.0.0-0" : $ = "*" : k && Ze ? (re && (O = 0), Z = 0, k === ">" ? (k = ">=", re ? (A = +A + 1, O = 0, Z = 0) : (O = +O + 1, Z = 0)) : k === "<=" && (k = "<", re ? A = +A + 1 : O = +O + 1), k === "<" && (z = "-0"), $ = `${k + A}.${O}.${Z}${z}`) : re ? $ = `>=${A}.0.0${z} <${+A + 1}.0.0-0` : K && ($ = `>=${A}.${O}.0${z} <${A}.${+O + 1}.0-0`), i("xRange return", $), $;
|
|
5653
5709
|
});
|
|
5654
|
-
}, _t = (_, b) => (i("replaceStars", _, b), _.trim().replace(c[u.STAR], "")), yt = (_, b) => (i("replaceGTE0", _, b), _.trim().replace(c[b.includePrerelease ? u.GTE0PRE : u.GTE0], "")), Et = (_) => (b, I, $, k, A,
|
|
5710
|
+
}, _t = (_, b) => (i("replaceStars", _, b), _.trim().replace(c[u.STAR], "")), yt = (_, b) => (i("replaceGTE0", _, b), _.trim().replace(c[b.includePrerelease ? u.GTE0PRE : u.GTE0], "")), Et = (_) => (b, I, $, k, A, O, Z, z, V, re, K, Ze) => (N($) ? I = "" : N(k) ? I = `>=${$}.0.0${_ ? "-0" : ""}` : N(A) ? I = `>=${$}.${k}.0${_ ? "-0" : ""}` : O ? I = `>=${I}` : I = `>=${I}${_ ? "-0" : ""}`, N(V) ? z = "" : N(re) ? z = `<${+V + 1}.0.0-0` : N(K) ? z = `<${V}.${+re + 1}.0-0` : Ze ? z = `<=${V}.${re}.${K}-${Ze}` : _ ? z = `<${V}.${re}.${+K + 1}-0` : z = `<=${z}`, `${I} ${z}`.trim()), St = (_, b, I) => {
|
|
5655
5711
|
for (let $ = 0; $ < _.length; $++)
|
|
5656
5712
|
if (!_[$].test(b))
|
|
5657
5713
|
return !1;
|
|
@@ -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();
|
|
@@ -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();
|
|
@@ -5853,28 +5909,28 @@ function Xr() {
|
|
|
5853
5909
|
}, cr;
|
|
5854
5910
|
}
|
|
5855
5911
|
var ur, fo;
|
|
5856
|
-
function
|
|
5912
|
+
function im() {
|
|
5857
5913
|
if (fo) return ur;
|
|
5858
5914
|
fo = 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
5932
|
var hr, vo;
|
|
5877
|
-
function
|
|
5933
|
+
function um() {
|
|
5878
5934
|
if (vo) return hr;
|
|
5879
5935
|
vo = 1;
|
|
5880
5936
|
const e = bt(), t = ce();
|
|
@@ -5893,7 +5949,7 @@ function nm() {
|
|
|
5893
5949
|
}, hr;
|
|
5894
5950
|
}
|
|
5895
5951
|
var fr, bo;
|
|
5896
|
-
function
|
|
5952
|
+
function lm() {
|
|
5897
5953
|
if (bo) return fr;
|
|
5898
5954
|
bo = 1;
|
|
5899
5955
|
const e = ue(), t = vt(), { ANY: r } = t, n = bt(), o = ce(), s = (f, d, g = {}) => {
|
|
@@ -5926,8 +5982,8 @@ function om() {
|
|
|
5926
5982
|
}
|
|
5927
5983
|
const C = /* @__PURE__ */ new Set();
|
|
5928
5984
|
let v, P;
|
|
5929
|
-
for (const
|
|
5930
|
-
|
|
5985
|
+
for (const x of f)
|
|
5986
|
+
x.operator === ">" || x.operator === ">=" ? v = u(v, x, g) : x.operator === "<" || x.operator === "<=" ? P = l(P, x, g) : C.add(x.semver);
|
|
5931
5987
|
if (C.size > 1)
|
|
5932
5988
|
return null;
|
|
5933
5989
|
let q;
|
|
@@ -5937,32 +5993,32 @@ function om() {
|
|
|
5937
5993
|
if (q === 0 && (v.operator !== ">=" || P.operator !== "<="))
|
|
5938
5994
|
return null;
|
|
5939
5995
|
}
|
|
5940
|
-
for (const
|
|
5941
|
-
if (v && !n(
|
|
5996
|
+
for (const x of C) {
|
|
5997
|
+
if (v && !n(x, String(v), g) || P && !n(x, String(P), g))
|
|
5942
5998
|
return null;
|
|
5943
5999
|
for (const qe of d)
|
|
5944
|
-
if (!n(
|
|
6000
|
+
if (!n(x, String(qe), g))
|
|
5945
6001
|
return !1;
|
|
5946
6002
|
return !0;
|
|
5947
6003
|
}
|
|
5948
6004
|
let H, N, B, Y, F = P && !g.includePrerelease && P.semver.prerelease.length ? P.semver : !1, ee = v && !g.includePrerelease && v.semver.prerelease.length ? v.semver : !1;
|
|
5949
6005
|
F && F.prerelease.length === 1 && P.operator === "<" && F.prerelease[0] === 0 && (F = !1);
|
|
5950
|
-
for (const
|
|
5951
|
-
if (Y = Y ||
|
|
5952
|
-
if (ee &&
|
|
5953
|
-
if (H = u(v,
|
|
6006
|
+
for (const x of d) {
|
|
6007
|
+
if (Y = Y || x.operator === ">" || x.operator === ">=", B = B || x.operator === "<" || x.operator === "<=", v) {
|
|
6008
|
+
if (ee && x.semver.prerelease && x.semver.prerelease.length && x.semver.major === ee.major && x.semver.minor === ee.minor && x.semver.patch === ee.patch && (ee = !1), x.operator === ">" || x.operator === ">=") {
|
|
6009
|
+
if (H = u(v, x, g), H === x && H !== v)
|
|
5954
6010
|
return !1;
|
|
5955
|
-
} else if (v.operator === ">=" && !n(v.semver, String(
|
|
6011
|
+
} else if (v.operator === ">=" && !n(v.semver, String(x), g))
|
|
5956
6012
|
return !1;
|
|
5957
6013
|
}
|
|
5958
6014
|
if (P) {
|
|
5959
|
-
if (F &&
|
|
5960
|
-
if (N = l(P,
|
|
6015
|
+
if (F && x.semver.prerelease && x.semver.prerelease.length && x.semver.major === F.major && x.semver.minor === F.minor && x.semver.patch === F.patch && (F = !1), x.operator === "<" || x.operator === "<=") {
|
|
6016
|
+
if (N = l(P, x, g), N === x && N !== P)
|
|
5961
6017
|
return !1;
|
|
5962
|
-
} else if (P.operator === "<=" && !n(P.semver, String(
|
|
6018
|
+
} else if (P.operator === "<=" && !n(P.semver, String(x), g))
|
|
5963
6019
|
return !1;
|
|
5964
6020
|
}
|
|
5965
|
-
if (!
|
|
6021
|
+
if (!x.operator && (P || v) && q !== 0)
|
|
5966
6022
|
return !1;
|
|
5967
6023
|
}
|
|
5968
6024
|
return !(v && B && !P && q !== 0 || P && Y && !v && q !== 0 || ee || F);
|
|
@@ -5980,10 +6036,10 @@ function om() {
|
|
|
5980
6036
|
return fr = s, fr;
|
|
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(), f = 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(), x = Gr(), qe = Ms(), _t = Qd(), yt = vt(), Et = ue(), St = bt(), _ = tm(), b = rm(), I = nm(), $ = om(), k = sm(), A = Xr(), O = im(), Z = am(), z = cm(), V = um(), re = lm();
|
|
5987
6043
|
return dr = {
|
|
5988
6044
|
parse: o,
|
|
5989
6045
|
valid: s,
|
|
@@ -6005,7 +6061,7 @@ function sm() {
|
|
|
6005
6061
|
eq: Y,
|
|
6006
6062
|
neq: F,
|
|
6007
6063
|
gte: ee,
|
|
6008
|
-
lte:
|
|
6064
|
+
lte: x,
|
|
6009
6065
|
cmp: qe,
|
|
6010
6066
|
coerce: _t,
|
|
6011
6067
|
Comparator: yt,
|
|
@@ -6017,7 +6073,7 @@ function sm() {
|
|
|
6017
6073
|
minVersion: $,
|
|
6018
6074
|
validRange: k,
|
|
6019
6075
|
outside: A,
|
|
6020
|
-
gtr:
|
|
6076
|
+
gtr: O,
|
|
6021
6077
|
ltr: Z,
|
|
6022
6078
|
intersects: z,
|
|
6023
6079
|
simplifyRange: V,
|
|
@@ -6032,21 +6088,21 @@ function sm() {
|
|
|
6032
6088
|
rcompareIdentifiers: n.rcompareIdentifiers
|
|
6033
6089
|
}, dr;
|
|
6034
6090
|
}
|
|
6035
|
-
var
|
|
6036
|
-
const
|
|
6091
|
+
var hm = pm();
|
|
6092
|
+
const fm = (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 ? hm.satisfies(e, t) : !0, vm = (e, t, r) => gm(
|
|
6037
6093
|
t,
|
|
6038
6094
|
r.libraryVersionRange
|
|
6039
|
-
) &&
|
|
6040
|
-
(r) =>
|
|
6041
|
-
),
|
|
6095
|
+
) && fm(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
|
-
if (Nr(i) ||
|
|
6105
|
+
if (Nr(i) || xp(i) || Np(i))
|
|
6050
6106
|
return {
|
|
6051
6107
|
...i,
|
|
6052
6108
|
meta: {
|
|
@@ -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
|
+
Om 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
|
-
|
|
6194
|
+
Lm as directLinkOnly,
|
|
6139
6195
|
hl as fromOpenUrl,
|
|
6140
|
-
|
|
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
|
+
xm 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
|
-
|
|
6162
|
-
|
|
6216
|
+
Nm as isTenantRegion,
|
|
6217
|
+
Mm as isUrlMatcher,
|
|
6218
|
+
xp 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
|
};
|