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