@spscommerce/utils 7.1.2 → 7.1.4
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.
- package/lib/{index.es.js → index.js} +288 -273
- package/lib/index.umd.cjs +1 -0
- package/package.json +10 -3
- package/vite.config.mjs +10 -10
- package/lib/index.cjs.js +0 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
function
|
|
2
|
-
return Array.isArray(e) ? e.reduce((t, n) => t.concat(
|
|
1
|
+
function ke(e) {
|
|
2
|
+
return Array.isArray(e) ? e.reduce((t, n) => t.concat(ke(n)), []) : e;
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function Qe(e, t) {
|
|
5
5
|
const n = new Set(t);
|
|
6
6
|
for (const r of e)
|
|
7
7
|
if (!n.has(r))
|
|
8
8
|
return !1;
|
|
9
9
|
return !0;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Fe() {
|
|
12
12
|
return this.pending = !1, typeof this.id < "u" ? (clearTimeout(this.id), delete this.id, !0) : !1;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Le(e, t, n) {
|
|
15
15
|
const r = function(...i) {
|
|
16
|
-
return new Promise((c,
|
|
16
|
+
return new Promise((c, l) => {
|
|
17
17
|
r.reset(), r.pending = !0;
|
|
18
18
|
function h() {
|
|
19
19
|
(async () => {
|
|
20
20
|
try {
|
|
21
|
-
let
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
21
|
+
let f = e.apply(n || this, i);
|
|
22
|
+
f instanceof Promise && (f = await f), c(f);
|
|
23
|
+
} catch (f) {
|
|
24
|
+
l(f);
|
|
25
25
|
} finally {
|
|
26
26
|
r.reset();
|
|
27
27
|
}
|
|
@@ -30,24 +30,24 @@ function De(e, t, n) {
|
|
|
30
30
|
r.id = window.setTimeout(h, t);
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
|
-
return r.reset =
|
|
33
|
+
return r.reset = Fe.bind(r), r;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Ne() {
|
|
36
36
|
return this.pending = !1, typeof this.id == "number" ? (window.cancelAnimationFrame(this.id), delete this.id, !0) : !1;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Be(e, t) {
|
|
39
39
|
const n = function(...o) {
|
|
40
40
|
n.pending && n.reset(), n.id = window.requestAnimationFrame(() => {
|
|
41
41
|
e && e.apply(t || this, o), n.reset();
|
|
42
42
|
}), n.pending = !0;
|
|
43
43
|
};
|
|
44
|
-
return n.pending = !1, n.reset =
|
|
44
|
+
return n.pending = !1, n.reset = Ne.bind(n), n;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Ye(e, t) {
|
|
47
47
|
const n = t ? e.bind(t) : e;
|
|
48
48
|
setTimeout(n, 0);
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const K = {
|
|
51
51
|
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
|
52
52
|
add: (e, t) => e + t,
|
|
53
53
|
and: (e, t) => e && t,
|
|
@@ -76,14 +76,14 @@ const W = {
|
|
|
76
76
|
sub: (e, t) => e - t,
|
|
77
77
|
xor: (e, t) => (e || t) && !(e && t)
|
|
78
78
|
};
|
|
79
|
-
function
|
|
79
|
+
function Ze(e, t) {
|
|
80
80
|
if (!Number.isInteger(e))
|
|
81
81
|
throw new Error("start must be an integer");
|
|
82
82
|
if (!Number.isInteger(t))
|
|
83
83
|
throw new Error("end must be an integer");
|
|
84
|
-
return new Array(Math.abs(t - e) + 1).fill(e).map(e > t ?
|
|
84
|
+
return new Array(Math.abs(t - e) + 1).fill(e).map(e > t ? K.sub : K.add);
|
|
85
85
|
}
|
|
86
|
-
class
|
|
86
|
+
class et {
|
|
87
87
|
constructor(t, n = {}) {
|
|
88
88
|
let r;
|
|
89
89
|
if (typeof Event == "function")
|
|
@@ -97,13 +97,13 @@ class ot {
|
|
|
97
97
|
const o = Object.getOwnPropertyDescriptors(Event.prototype);
|
|
98
98
|
for (const i of Object.keys(o)) {
|
|
99
99
|
const c = o[i];
|
|
100
|
-
for (const
|
|
101
|
-
typeof c[
|
|
100
|
+
for (const l of Object.keys(c))
|
|
101
|
+
typeof c[l] == "function" && (c[l] = c[l].bind(r));
|
|
102
102
|
}
|
|
103
103
|
Object.defineProperties(this, o);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
const
|
|
106
|
+
const tt = Object.freeze({
|
|
107
107
|
100: { name: "Insurance Plan Description" },
|
|
108
108
|
101: { name: "Name and Address Lists" },
|
|
109
109
|
104: { name: "Air Shipment Information" },
|
|
@@ -404,7 +404,7 @@ const it = Object.freeze({
|
|
|
404
404
|
998: { name: "Set Cancellation" },
|
|
405
405
|
999: { name: "Implementation Acknowledgment" }
|
|
406
406
|
});
|
|
407
|
-
function
|
|
407
|
+
function nt() {
|
|
408
408
|
return (e, t) => {
|
|
409
409
|
const n = `_${String(t)}`;
|
|
410
410
|
Object.defineProperties(e, {
|
|
@@ -427,58 +427,58 @@ function ct() {
|
|
|
427
427
|
});
|
|
428
428
|
};
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function rt(e) {
|
|
431
431
|
return (t, n, r) => {
|
|
432
432
|
const o = { ...r };
|
|
433
433
|
return o.get = function() {
|
|
434
434
|
const c = { ...o };
|
|
435
|
-
return c.value =
|
|
435
|
+
return c.value = Le(o.value, e, this), Object.defineProperty(this, n, c), c.value;
|
|
436
436
|
}, o.configurable = !0, delete o.writable, delete o.value, o;
|
|
437
437
|
};
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function at(e, t, n) {
|
|
440
440
|
const r = { ...n };
|
|
441
441
|
return n.get = function() {
|
|
442
442
|
const i = { ...r };
|
|
443
|
-
return i.value =
|
|
443
|
+
return i.value = Be(r.value, this), Object.defineProperty(this, t, i), i.value;
|
|
444
444
|
}, n.configurable = !0, delete n.writable, delete n.value, n;
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
const i = o || Object.getOwnPropertyDescriptor(n, r), c = i.get, { value:
|
|
446
|
+
function ot(e, t, n, r, o) {
|
|
447
|
+
const i = o || Object.getOwnPropertyDescriptor(n, r), c = i.get, { value: l } = i;
|
|
448
448
|
return i.get = function() {
|
|
449
|
-
const
|
|
450
|
-
for (const
|
|
451
|
-
typeof e[
|
|
449
|
+
const f = this, p = (l || c.call(this)).bind(this), m = { ...t, ...e };
|
|
450
|
+
for (const u of Object.keys(t))
|
|
451
|
+
typeof e[u] == "function" ? Object.defineProperty(p, u, {
|
|
452
452
|
get() {
|
|
453
|
-
return
|
|
453
|
+
return m[u](f);
|
|
454
454
|
}
|
|
455
|
-
}) :
|
|
455
|
+
}) : p[u] = m[u];
|
|
456
456
|
return Object.defineProperty(this, r, {
|
|
457
457
|
writable: !0,
|
|
458
458
|
configurable: !0,
|
|
459
459
|
enumerable: i.enumerable,
|
|
460
|
-
value:
|
|
461
|
-
}),
|
|
460
|
+
value: p
|
|
461
|
+
}), p;
|
|
462
462
|
}, delete i.value, delete i.writable, i;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function it(e, t, n) {
|
|
465
465
|
const r = { ...n };
|
|
466
466
|
return r.get = function() {
|
|
467
467
|
const i = { ...r }, c = r.value.bind(this);
|
|
468
468
|
return i.value = () => setTimeout(c, 0), Object.defineProperty(this, t, i), i.value;
|
|
469
469
|
}, r.configurable = !0, delete r.writable, delete r.value, r;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function ct(e, t) {
|
|
472
472
|
return !e || e < t[0] ? t[0] : e > t[1] ? t[1] : e;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function qe(e, t = 0) {
|
|
475
475
|
const n = String(e).split("."), r = n.length > 1 ? n[1].length : 0;
|
|
476
476
|
let o = e;
|
|
477
477
|
for (let i = r - 1; i >= t; i -= 1)
|
|
478
478
|
o = +`${Math.round(+`${o}e${i}`)}e-${i}`;
|
|
479
479
|
return o;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function st(e, t = 2) {
|
|
482
482
|
if (e > Number.MAX_SAFE_INTEGER)
|
|
483
483
|
throw new Error(
|
|
484
484
|
"Number is greater than MAX_SAFE_INTEGER; toFileSizeString does not support orders of magnitude higher than petabytes for this reason until BigInt achieves broad browser support."
|
|
@@ -491,61 +491,67 @@ function dt(e, t = 2) {
|
|
|
491
491
|
"TB",
|
|
492
492
|
"PB"
|
|
493
493
|
][n], o = n ? t : 0;
|
|
494
|
-
return
|
|
494
|
+
return qe(e / 1024 ** n, o).toFixed(o) + r;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function N(e) {
|
|
497
497
|
return typeof e == "string" ? e.match(/[^.[\]]+/g) || [] : [].concat(e);
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function _e(e, t, n) {
|
|
500
500
|
Object.defineProperty(
|
|
501
501
|
n,
|
|
502
502
|
e,
|
|
503
503
|
Object.getOwnPropertyDescriptor(t, e)
|
|
504
504
|
);
|
|
505
505
|
}
|
|
506
|
-
var
|
|
507
|
-
function
|
|
506
|
+
var P = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
507
|
+
function B(e) {
|
|
508
508
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
509
509
|
}
|
|
510
|
-
var
|
|
511
|
-
function
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
return
|
|
523
|
-
}
|
|
510
|
+
var F, X;
|
|
511
|
+
function xe() {
|
|
512
|
+
if (X) return F;
|
|
513
|
+
X = 1;
|
|
514
|
+
var e = "[object Object]";
|
|
515
|
+
function t(m) {
|
|
516
|
+
var u = !1;
|
|
517
|
+
if (m != null && typeof m.toString != "function")
|
|
518
|
+
try {
|
|
519
|
+
u = !!(m + "");
|
|
520
|
+
} catch {
|
|
521
|
+
}
|
|
522
|
+
return u;
|
|
523
|
+
}
|
|
524
|
+
function n(m, u) {
|
|
525
|
+
return function(g) {
|
|
526
|
+
return m(u(g));
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
var r = Function.prototype, o = Object.prototype, i = r.toString, c = o.hasOwnProperty, l = i.call(Object), h = o.toString, f = n(Object.getPrototypeOf, Object);
|
|
530
|
+
function C(m) {
|
|
531
|
+
return !!m && typeof m == "object";
|
|
532
|
+
}
|
|
533
|
+
function p(m) {
|
|
534
|
+
if (!C(m) || h.call(m) != e || t(m))
|
|
535
|
+
return !1;
|
|
536
|
+
var u = f(m);
|
|
537
|
+
if (u === null)
|
|
538
|
+
return !0;
|
|
539
|
+
var g = c.call(u, "constructor") && u.constructor;
|
|
540
|
+
return typeof g == "function" && g instanceof g && i.call(g) == l;
|
|
541
|
+
}
|
|
542
|
+
return F = p, F;
|
|
524
543
|
}
|
|
525
|
-
var Ve =
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
function ze(e) {
|
|
530
|
-
if (!We(e) || $e.call(e) != Be || qe(e))
|
|
531
|
-
return !1;
|
|
532
|
-
var t = Ue(e);
|
|
533
|
-
if (t === null)
|
|
534
|
-
return !0;
|
|
535
|
-
var n = _e.call(t, "constructor") && t.constructor;
|
|
536
|
-
return typeof n == "function" && n instanceof n && Q.call(n) == Ge;
|
|
537
|
-
}
|
|
538
|
-
var He = ze;
|
|
539
|
-
const f = /* @__PURE__ */ F(He);
|
|
540
|
-
function Ke(e) {
|
|
544
|
+
var Ve = xe();
|
|
545
|
+
const y = /* @__PURE__ */ B(Ve);
|
|
546
|
+
function Ge(e) {
|
|
541
547
|
Object.freeze(e);
|
|
542
548
|
for (const t of Object.keys(e)) {
|
|
543
549
|
const n = e[t];
|
|
544
|
-
(
|
|
550
|
+
(y(n) || Array.isArray(n)) && Ge(n);
|
|
545
551
|
}
|
|
546
552
|
}
|
|
547
|
-
var
|
|
548
|
-
function
|
|
553
|
+
var Ue = /* @__PURE__ */ ((e) => (e[e.ADDITION = 0] = "ADDITION", e[e.DELETION = 1] = "DELETION", e[e.ALTERATION = 2] = "ALTERATION", e))(Ue || {});
|
|
554
|
+
function $e(e, t, n = []) {
|
|
549
555
|
let r = [];
|
|
550
556
|
for (const o of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) {
|
|
551
557
|
const i = Object.prototype.hasOwnProperty.call(e, o), c = Object.prototype.hasOwnProperty.call(t, o);
|
|
@@ -559,8 +565,8 @@ function Je(e, t, n = []) {
|
|
|
559
565
|
key: o,
|
|
560
566
|
parentPath: n,
|
|
561
567
|
objects: [e, t]
|
|
562
|
-
}) :
|
|
563
|
-
|
|
568
|
+
}) : y(e[o]) && y(t[o]) || Array.isArray(e[o]) && Array.isArray(t[o]) ? r = r.concat(
|
|
569
|
+
$e(
|
|
564
570
|
e[o],
|
|
565
571
|
t[o],
|
|
566
572
|
[...n, o]
|
|
@@ -574,216 +580,225 @@ function Je(e, t, n = []) {
|
|
|
574
580
|
}
|
|
575
581
|
return r;
|
|
576
582
|
}
|
|
577
|
-
function
|
|
583
|
+
function We(e, t) {
|
|
578
584
|
for (const n of Object.keys(e)) {
|
|
579
585
|
const r = e[n];
|
|
580
|
-
|
|
586
|
+
y(r) || Array.isArray(r) ? We(r, t) : t(n, r, e);
|
|
581
587
|
}
|
|
582
588
|
}
|
|
583
|
-
function
|
|
589
|
+
function ze(e, t, n = []) {
|
|
584
590
|
t(n, e);
|
|
585
591
|
for (const r of Object.keys(e)) {
|
|
586
592
|
const o = e[r];
|
|
587
|
-
if (
|
|
593
|
+
if (y(o) || Array.isArray(o)) {
|
|
588
594
|
const i = n.concat(r);
|
|
589
|
-
|
|
595
|
+
ze(o, t, i);
|
|
590
596
|
}
|
|
591
597
|
}
|
|
592
598
|
}
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
A.exports;
|
|
600
|
-
(function(e, t) {
|
|
601
|
-
var n = 9007199254740991, r = "[object Arguments]", o = "[object Function]", i = "[object GeneratorFunction]", c = "[object Map]", m = "[object Object]", h = "[object Promise]", u = "[object Set]", O = "[object WeakMap]", d = "[object DataView]", b = /[\\^$.*+?()[\]{}|]/g, p = /^\[object .+?Constructor\]$/, ne = typeof I == "object" && I && I.Object === Object && I, re = typeof self == "object" && self && self.Object === Object && self, g = ne || re || Function("return this")(), N = t && !t.nodeType && t, L = N && !0 && e && !e.nodeType && e, ae = L && L.exports === N;
|
|
602
|
-
function oe(a, s) {
|
|
603
|
-
return a == null ? void 0 : a[s];
|
|
599
|
+
var L, J;
|
|
600
|
+
function He() {
|
|
601
|
+
if (J) return L;
|
|
602
|
+
J = 1;
|
|
603
|
+
function e(t) {
|
|
604
|
+
return t == null;
|
|
604
605
|
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
606
|
+
return L = e, L;
|
|
607
|
+
}
|
|
608
|
+
var Ke = He();
|
|
609
|
+
const Q = /* @__PURE__ */ B(Ke);
|
|
610
|
+
var I = { exports: {} };
|
|
611
|
+
I.exports;
|
|
612
|
+
var Y;
|
|
613
|
+
function Xe() {
|
|
614
|
+
return Y || (Y = 1, function(e, t) {
|
|
615
|
+
var n = 9007199254740991, r = "[object Arguments]", o = "[object Function]", i = "[object GeneratorFunction]", c = "[object Map]", l = "[object Object]", h = "[object Promise]", f = "[object Set]", C = "[object WeakMap]", p = "[object DataView]", m = /[\\^$.*+?()[\]{}|]/g, u = /^\[object .+?Constructor\]$/, g = typeof P == "object" && P && P.Object === Object && P, ie = typeof self == "object" && self && self.Object === Object && self, R = g || ie || Function("return this")(), q = t && !t.nodeType && t, _ = q && !0 && e && !e.nodeType && e, ce = _ && _.exports === q;
|
|
616
|
+
function se(a, s) {
|
|
617
|
+
return a == null ? void 0 : a[s];
|
|
618
|
+
}
|
|
619
|
+
function me(a) {
|
|
620
|
+
var s = !1;
|
|
621
|
+
if (a != null && typeof a.toString != "function")
|
|
622
|
+
try {
|
|
623
|
+
s = !!(a + "");
|
|
624
|
+
} catch {
|
|
625
|
+
}
|
|
626
|
+
return s;
|
|
627
|
+
}
|
|
628
|
+
function ue(a, s) {
|
|
629
|
+
return function(d) {
|
|
630
|
+
return a(s(d));
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
var le = Function.prototype, A = Object.prototype, T = R["__core-js_shared__"], x = function() {
|
|
634
|
+
var a = /[^.]+$/.exec(T && T.keys && T.keys.IE_PROTO || "");
|
|
635
|
+
return a ? "Symbol(src)_1." + a : "";
|
|
636
|
+
}(), V = le.toString, E = A.hasOwnProperty, O = A.toString, fe = RegExp(
|
|
637
|
+
"^" + V.call(E).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
638
|
+
), G = ce ? R.Buffer : void 0, U = A.propertyIsEnumerable, de = G ? G.isBuffer : void 0, pe = ue(Object.keys, Object), w = v(R, "DataView"), j = v(R, "Map"), M = v(R, "Promise"), D = v(R, "Set"), k = v(R, "WeakMap"), ge = !U.call({ valueOf: 1 }, "valueOf"), ye = S(w), he = S(j), Re = S(M), be = S(D), Se = S(k);
|
|
639
|
+
function Ce(a) {
|
|
640
|
+
return O.call(a);
|
|
641
|
+
}
|
|
642
|
+
function ve(a) {
|
|
643
|
+
if (!z(a) || Ie(a))
|
|
644
|
+
return !1;
|
|
645
|
+
var s = W(a) || me(a) ? fe : u;
|
|
646
|
+
return s.test(S(a));
|
|
647
|
+
}
|
|
648
|
+
function v(a, s) {
|
|
649
|
+
var d = se(a, s);
|
|
650
|
+
return ve(d) ? d : void 0;
|
|
651
|
+
}
|
|
652
|
+
var b = Ce;
|
|
653
|
+
(w && b(new w(new ArrayBuffer(1))) != p || j && b(new j()) != c || M && b(M.resolve()) != h || D && b(new D()) != f || k && b(new k()) != C) && (b = function(a) {
|
|
654
|
+
var s = O.call(a), d = s == l ? a.constructor : void 0, H = d ? S(d) : void 0;
|
|
655
|
+
if (H)
|
|
656
|
+
switch (H) {
|
|
657
|
+
case ye:
|
|
658
|
+
return p;
|
|
659
|
+
case he:
|
|
660
|
+
return c;
|
|
661
|
+
case Re:
|
|
662
|
+
return h;
|
|
663
|
+
case be:
|
|
664
|
+
return f;
|
|
665
|
+
case Se:
|
|
666
|
+
return C;
|
|
667
|
+
}
|
|
668
|
+
return s;
|
|
669
|
+
});
|
|
670
|
+
function Ie(a) {
|
|
671
|
+
return !!x && x in a;
|
|
672
|
+
}
|
|
673
|
+
function Ae(a) {
|
|
674
|
+
var s = a && a.constructor, d = typeof s == "function" && s.prototype || A;
|
|
675
|
+
return a === d;
|
|
676
|
+
}
|
|
677
|
+
function S(a) {
|
|
678
|
+
if (a != null) {
|
|
679
|
+
try {
|
|
680
|
+
return V.call(a);
|
|
681
|
+
} catch {
|
|
682
|
+
}
|
|
683
|
+
try {
|
|
684
|
+
return a + "";
|
|
685
|
+
} catch {
|
|
686
|
+
}
|
|
611
687
|
}
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
688
|
+
return "";
|
|
689
|
+
}
|
|
690
|
+
function Oe(a) {
|
|
691
|
+
return Te(a) && E.call(a, "callee") && (!U.call(a, "callee") || O.call(a) == r);
|
|
692
|
+
}
|
|
693
|
+
var Pe = Array.isArray;
|
|
694
|
+
function $(a) {
|
|
695
|
+
return a != null && je(a.length) && !W(a);
|
|
696
|
+
}
|
|
697
|
+
function Te(a) {
|
|
698
|
+
return Me(a) && $(a);
|
|
699
|
+
}
|
|
700
|
+
var Ee = de || De;
|
|
701
|
+
function we(a) {
|
|
702
|
+
if ($(a) && (Pe(a) || typeof a == "string" || typeof a.splice == "function" || Ee(a) || Oe(a)))
|
|
703
|
+
return !a.length;
|
|
704
|
+
var s = b(a);
|
|
705
|
+
if (s == c || s == f)
|
|
706
|
+
return !a.size;
|
|
707
|
+
if (ge || Ae(a))
|
|
708
|
+
return !pe(a).length;
|
|
709
|
+
for (var d in a)
|
|
710
|
+
if (E.call(a, d))
|
|
711
|
+
return !1;
|
|
712
|
+
return !0;
|
|
713
|
+
}
|
|
714
|
+
function W(a) {
|
|
715
|
+
var s = z(a) ? O.call(a) : "";
|
|
716
|
+
return s == o || s == i;
|
|
717
|
+
}
|
|
718
|
+
function je(a) {
|
|
719
|
+
return typeof a == "number" && a > -1 && a % 1 == 0 && a <= n;
|
|
720
|
+
}
|
|
721
|
+
function z(a) {
|
|
722
|
+
var s = typeof a;
|
|
723
|
+
return !!a && (s == "object" || s == "function");
|
|
724
|
+
}
|
|
725
|
+
function Me(a) {
|
|
726
|
+
return !!a && typeof a == "object";
|
|
727
|
+
}
|
|
728
|
+
function De() {
|
|
630
729
|
return !1;
|
|
631
|
-
var s = G(a) || ie(a) ? me : p;
|
|
632
|
-
return s.test(R(a));
|
|
633
|
-
}
|
|
634
|
-
function S(a, s) {
|
|
635
|
-
var l = oe(a, s);
|
|
636
|
-
return Se(l) ? l : void 0;
|
|
637
|
-
}
|
|
638
|
-
var y = he;
|
|
639
|
-
(E && y(new E(new ArrayBuffer(1))) != d || w && y(new w()) != c || M && y(M.resolve()) != h || j && y(new j()) != u || D && y(new D()) != O) && (y = function(a) {
|
|
640
|
-
var s = v.call(a), l = s == m ? a.constructor : void 0, U = l ? R(l) : void 0;
|
|
641
|
-
if (U)
|
|
642
|
-
switch (U) {
|
|
643
|
-
case de:
|
|
644
|
-
return d;
|
|
645
|
-
case pe:
|
|
646
|
-
return c;
|
|
647
|
-
case ge:
|
|
648
|
-
return h;
|
|
649
|
-
case ye:
|
|
650
|
-
return u;
|
|
651
|
-
case Re:
|
|
652
|
-
return O;
|
|
653
|
-
}
|
|
654
|
-
return s;
|
|
655
|
-
});
|
|
656
|
-
function be(a) {
|
|
657
|
-
return !!B && B in a;
|
|
658
|
-
}
|
|
659
|
-
function Ce(a) {
|
|
660
|
-
var s = a && a.constructor, l = typeof s == "function" && s.prototype || C;
|
|
661
|
-
return a === l;
|
|
662
|
-
}
|
|
663
|
-
function R(a) {
|
|
664
|
-
if (a != null) {
|
|
665
|
-
try {
|
|
666
|
-
return q.call(a);
|
|
667
|
-
} catch {
|
|
668
|
-
}
|
|
669
|
-
try {
|
|
670
|
-
return a + "";
|
|
671
|
-
} catch {
|
|
672
|
-
}
|
|
673
730
|
}
|
|
674
|
-
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
return a != null && Te(a.length) && !G(a);
|
|
682
|
-
}
|
|
683
|
-
function Ae(a) {
|
|
684
|
-
return Ee(a) && _(a);
|
|
685
|
-
}
|
|
686
|
-
var Oe = ue || we;
|
|
687
|
-
function Pe(a) {
|
|
688
|
-
if (_(a) && (Ie(a) || typeof a == "string" || typeof a.splice == "function" || Oe(a) || ve(a)))
|
|
689
|
-
return !a.length;
|
|
690
|
-
var s = y(a);
|
|
691
|
-
if (s == c || s == u)
|
|
692
|
-
return !a.size;
|
|
693
|
-
if (fe || Ce(a))
|
|
694
|
-
return !le(a).length;
|
|
695
|
-
for (var l in a)
|
|
696
|
-
if (T.call(a, l))
|
|
697
|
-
return !1;
|
|
698
|
-
return !0;
|
|
699
|
-
}
|
|
700
|
-
function G(a) {
|
|
701
|
-
var s = $(a) ? v.call(a) : "";
|
|
702
|
-
return s == o || s == i;
|
|
703
|
-
}
|
|
704
|
-
function Te(a) {
|
|
705
|
-
return typeof a == "number" && a > -1 && a % 1 == 0 && a <= n;
|
|
706
|
-
}
|
|
707
|
-
function $(a) {
|
|
708
|
-
var s = typeof a;
|
|
709
|
-
return !!a && (s == "object" || s == "function");
|
|
710
|
-
}
|
|
711
|
-
function Ee(a) {
|
|
712
|
-
return !!a && typeof a == "object";
|
|
713
|
-
}
|
|
714
|
-
function we() {
|
|
715
|
-
return !1;
|
|
716
|
-
}
|
|
717
|
-
e.exports = Pe;
|
|
718
|
-
})(A, A.exports);
|
|
719
|
-
var tt = A.exports;
|
|
720
|
-
const Y = /* @__PURE__ */ F(tt);
|
|
721
|
-
function H(e, t, n, r = !1) {
|
|
722
|
-
if (Y(t))
|
|
731
|
+
e.exports = we;
|
|
732
|
+
}(I, I.exports)), I.exports;
|
|
733
|
+
}
|
|
734
|
+
var Je = Xe();
|
|
735
|
+
const ne = /* @__PURE__ */ B(Je);
|
|
736
|
+
function Z(e, t, n, r = !1) {
|
|
737
|
+
if (ne(t))
|
|
723
738
|
return e;
|
|
724
739
|
let o = e;
|
|
725
|
-
for (const i of
|
|
726
|
-
let c = i,
|
|
740
|
+
for (const i of N(t)) {
|
|
741
|
+
let c = i, l;
|
|
727
742
|
if (typeof i == "string" && ([
|
|
728
743
|
,
|
|
729
744
|
c,
|
|
730
|
-
|
|
731
|
-
] = /^([^?]+)(\?)?$/.exec(i)), o = o[c],
|
|
745
|
+
l
|
|
746
|
+
] = /^([^?]+)(\?)?$/.exec(i)), o = o[c], Q(o) && (l || r))
|
|
732
747
|
return n;
|
|
733
748
|
}
|
|
734
|
-
return
|
|
749
|
+
return Q(o) ? n : o;
|
|
735
750
|
}
|
|
736
|
-
function
|
|
751
|
+
function mt(e, ...t) {
|
|
737
752
|
const n = new Set(t), r = {};
|
|
738
753
|
for (const o of Object.keys(e))
|
|
739
754
|
n.has(o) || (r[o] = e[o]);
|
|
740
755
|
return r;
|
|
741
756
|
}
|
|
742
|
-
function
|
|
757
|
+
function ut(e, t, n) {
|
|
743
758
|
if (typeof e != "object")
|
|
744
759
|
throw new Error("object is required");
|
|
745
|
-
if (
|
|
760
|
+
if (ne(t))
|
|
746
761
|
throw new Error("path is required");
|
|
747
|
-
const r =
|
|
762
|
+
const r = N(t), o = r.splice(r.length - 1, 1)[0];
|
|
748
763
|
let i = e;
|
|
749
764
|
for (const c of r)
|
|
750
765
|
if (i = i[c], typeof i != "object")
|
|
751
766
|
throw new Error(`Cannot set value at given path: Path deadends at ${String(c)}`);
|
|
752
767
|
i[o] = n;
|
|
753
768
|
}
|
|
754
|
-
function*
|
|
769
|
+
function* lt(e, t) {
|
|
755
770
|
yield e;
|
|
756
771
|
let n = e;
|
|
757
|
-
for (const r of
|
|
772
|
+
for (const r of N(t))
|
|
758
773
|
n = n[r], yield n;
|
|
759
774
|
}
|
|
760
|
-
function
|
|
775
|
+
function ee(...e) {
|
|
761
776
|
const t = {};
|
|
762
777
|
for (const n of e)
|
|
763
778
|
for (const r of Object.keys(n))
|
|
764
|
-
Object.prototype.hasOwnProperty.call(t, r) && Object.getOwnPropertyDescriptor(t, r).writable &&
|
|
779
|
+
Object.prototype.hasOwnProperty.call(t, r) && Object.getOwnPropertyDescriptor(t, r).writable && y(t[r]) ? t[r] = ee(t[r], n[r]) : y(n[r]) ? t[r] = ee({}, n[r]) : t[r] = n[r];
|
|
765
780
|
return t;
|
|
766
781
|
}
|
|
767
|
-
function
|
|
782
|
+
function te(...e) {
|
|
768
783
|
const t = {};
|
|
769
784
|
for (const n of e)
|
|
770
785
|
for (const r of Object.keys(n))
|
|
771
|
-
Object.prototype.hasOwnProperty.call(t, r) && Object.getOwnPropertyDescriptor(t, r).writable &&
|
|
786
|
+
Object.prototype.hasOwnProperty.call(t, r) && Object.getOwnPropertyDescriptor(t, r).writable && y(t[r]) ? t[r] = te(t[r], n[r]) : y(n[r]) ? t[r] = te({}, n[r]) : _e(r, n, t);
|
|
772
787
|
return t;
|
|
773
788
|
}
|
|
774
|
-
function
|
|
789
|
+
function ft(e) {
|
|
775
790
|
const t = [];
|
|
776
791
|
for (const n of Object.keys(e))
|
|
777
792
|
t.push(e[n]);
|
|
778
793
|
return t;
|
|
779
794
|
}
|
|
780
|
-
function
|
|
795
|
+
function dt(e, ...t) {
|
|
781
796
|
const n = e.reduce((o, i, c) => `${o}${c <= t.length ? String(t[c - 1]) : ""}${i}`), r = Math.min(
|
|
782
797
|
...n.split(/[\r\n]/).filter((o) => o.trim()).map((o) => /^ */.exec(o)[0].length)
|
|
783
798
|
);
|
|
784
799
|
return n.replace(new RegExp(`^ {${r}}`, "gm"), "").trim();
|
|
785
800
|
}
|
|
786
|
-
function
|
|
801
|
+
function pt(e) {
|
|
787
802
|
const t = /[A-Z]?B$/.exec(e);
|
|
788
803
|
if (!t)
|
|
789
804
|
throw new Error(
|
|
@@ -804,52 +819,52 @@ function St(e) {
|
|
|
804
819
|
throw new Error("parseFileSize does not support units above PB");
|
|
805
820
|
return Math.ceil(r * 1024 ** o);
|
|
806
821
|
}
|
|
807
|
-
const
|
|
808
|
-
function
|
|
809
|
-
const t = (n) => e.replace(
|
|
810
|
-
return t[
|
|
822
|
+
const re = /(<%=|{{)(.+?)(%>|}})/g, ae = /<%\?(.+?)%>(.+?)<\/%>/g, oe = Symbol("sps.utils.templateSrc");
|
|
823
|
+
function gt(e) {
|
|
824
|
+
const t = (n) => e.replace(ae, (r, o, i) => Z(n, o.trim()) ? i : "").replace(re, (r, o, i) => Z(n, i.trim(), ""));
|
|
825
|
+
return t[oe] = e, t;
|
|
811
826
|
}
|
|
812
|
-
function
|
|
813
|
-
return typeof e == "string" && (
|
|
827
|
+
function yt(e) {
|
|
828
|
+
return typeof e == "string" && (re.test(e) || ae.test(e));
|
|
814
829
|
}
|
|
815
|
-
function
|
|
816
|
-
return typeof e == "function" && Object.prototype.hasOwnProperty.call(e,
|
|
830
|
+
function ht(e) {
|
|
831
|
+
return typeof e == "function" && Object.prototype.hasOwnProperty.call(e, oe);
|
|
817
832
|
}
|
|
818
833
|
export {
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
834
|
+
et as CustomEvent,
|
|
835
|
+
Ue as DiffChange,
|
|
836
|
+
tt as EDI_DOCUMENT_TYPE,
|
|
837
|
+
K as Op,
|
|
838
|
+
nt as castToNumber,
|
|
839
|
+
dt as code,
|
|
840
|
+
ct as constrain,
|
|
841
|
+
_e as copyProperty,
|
|
842
|
+
N as crumblePath,
|
|
843
|
+
Le as debounce,
|
|
844
|
+
rt as debounced,
|
|
845
|
+
qe as decimalRound,
|
|
846
|
+
Ge as deepFreeze,
|
|
847
|
+
$e as diff,
|
|
848
|
+
ke as flatten,
|
|
849
|
+
We as forEachEntryDeep,
|
|
850
|
+
ze as forEachNestedObject,
|
|
851
|
+
Z as getPath,
|
|
852
|
+
Qe as isSubset,
|
|
853
|
+
yt as isTemplate,
|
|
854
|
+
ht as isTemplateFn,
|
|
855
|
+
Be as lockToAnimationFrames,
|
|
856
|
+
at as lockedToAnimationFrames,
|
|
857
|
+
ee as mergeDeep,
|
|
858
|
+
te as mergePropertiesDeep,
|
|
859
|
+
mt as omit,
|
|
860
|
+
Ye as onNextTick,
|
|
861
|
+
pt as parseFileSize,
|
|
862
|
+
Ze as range,
|
|
863
|
+
ut as setPath,
|
|
864
|
+
ot as simpleMetadataDecoratorApplicator,
|
|
865
|
+
gt as template,
|
|
866
|
+
it as tickDelay,
|
|
867
|
+
st as toFileSizeString,
|
|
868
|
+
lt as traversePath,
|
|
869
|
+
ft as values
|
|
855
870
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(c,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(c=typeof globalThis<"u"?globalThis:c||self,v(c.Utils={}))})(this,function(c){"use strict";function v(e){return Array.isArray(e)?e.reduce((n,t)=>n.concat(v(t)),[]):e}function he(e,n){const t=new Set(n);for(const a of e)if(!t.has(a))return!1;return!0}function be(){return this.pending=!1,typeof this.id<"u"?(clearTimeout(this.id),delete this.id,!0):!1}function W(e,n,t){const a=function(...o){return new Promise((s,f)=>{a.reset(),a.pending=!0;function b(){(async()=>{try{let d=e.apply(t||this,o);d instanceof Promise&&(d=await d),s(d)}catch(d){f(d)}finally{a.reset()}})()}a.id=window.setTimeout(b,n)})};return a.reset=be.bind(a),a}function Re(){return this.pending=!1,typeof this.id=="number"?(window.cancelAnimationFrame(this.id),delete this.id,!0):!1}function z(e,n){const t=function(...i){t.pending&&t.reset(),t.id=window.requestAnimationFrame(()=>{e&&e.apply(n||this,i),t.reset()}),t.pending=!0};return t.pending=!1,t.reset=Re.bind(t),t}function Se(e,n){const t=n?e.bind(n):e;setTimeout(t,0)}const M={add:(e,n)=>e+n,and:(e,n)=>e&&n,band:(e,n)=>e&n,bor:(e,n)=>e|n,bxor:(e,n)=>e^n,bnot:e=>~e,decr:e=>e-1,div:(e,n)=>e/n,eq:(e,n)=>e===n,exp:(e,n)=>e**n,gt:(e,n)=>e>n,gte:(e,n)=>e>=n,incr:e=>e+1,lshift:(e,n)=>e<<n,lt:(e,n)=>e<n,lte:(e,n)=>e<=n,mul:(e,n)=>e*n,neg:e=>-e,neq:(e,n)=>e!==n,not:e=>!e,or:(e,n)=>e||n,rem:(e,n)=>e%n,rshift:(e,n)=>e>>n,rshift_zf:(e,n)=>e>>>n,sub:(e,n)=>e-n,xor:(e,n)=>(e||n)&&!(e&&n)};function Ce(e,n){if(!Number.isInteger(e))throw new Error("start must be an integer");if(!Number.isInteger(n))throw new Error("end must be an integer");return new Array(Math.abs(n-e)+1).fill(e).map(e>n?M.sub:M.add)}class ve{constructor(n,t={}){let a;if(typeof Event=="function")a=new Event(n,t);else{a=document.createEvent("Event"),a.initEvent(n,t.bubbles,t.cancelable);for(const o of Object.keys(t))o!=="bubbles"&&o!=="cancelable"&&(a[o]=t[o])}Object.setPrototypeOf(this,a);const i=Object.getOwnPropertyDescriptors(Event.prototype);for(const o of Object.keys(i)){const s=i[o];for(const f of Object.keys(s))typeof s[f]=="function"&&(s[f]=s[f].bind(a))}Object.defineProperties(this,i)}}const Ie=Object.freeze({100:{name:"Insurance Plan Description"},101:{name:"Name and Address Lists"},104:{name:"Air Shipment Information"},106:{name:"Motor Carrier Rate Proposal"},107:{name:"Request for Motor Carrier Rate Proposal"},108:{name:"Response to a Motor Carrier Rate Proposal"},109:{name:"Vessel Content Details"},110:{name:"Air Freight Details and Invoice"},112:{name:"Property Damage Report"},120:{name:"Vehicle Shipping Order"},121:{name:"Vehicle Service"},124:{name:"Vehicle Damage"},125:{name:"Multilevel Railcar Load Details"},126:{name:"Vehicle Application Advice"},127:{name:"Vehicle Baying Order"},128:{name:"Dealer Information"},129:{name:"Vehicle Carrier Rate Update"},130:{name:"Student Educational Record (Transcript)"},131:{name:"Student Educational Record (Transcript) Acknowledgment"},135:{name:"Student Loan Application"},138:{name:"Testing Results Request and Report"},139:{name:"Student Loan Guarantee Result"},140:{name:"Product Registration"},141:{name:"Product Service Claim Response"},142:{name:"Product Service Claim"},143:{name:"Product Service Notification"},144:{name:"Student Loan Transfer and Status Verification"},146:{name:"Request for Student Educational Record (Transcript)"},147:{name:"Response to Request for Student Educational Record (Transcript)"},148:{name:"Report of Injury, Illness or Incident"},149:{name:"Notice of Tax Adjustment or Assessment"},150:{name:"Tax Rate Notification"},151:{name:"Electronic Filing of Tax Return Data Acknowledgment"},152:{name:"Statistical Government Information"},153:{name:"Unemployment Insurance Tax Claim or Charge Information"},154:{name:"Uniform Commercial Code Filing"},155:{name:"Business Credit Report"},157:{name:"Notice of Power of Attorney"},159:{name:"Motion Picture Booking Confirmation"},160:{name:"Transportation Automatic Equipment Identification"},161:{name:"Train Sheet"},169:{name:"Transportation Appointment Schedule Information"},170:{name:"Revenue Receipts Statement"},175:{name:"Court and Law Enforcement Notice"},176:{name:"Court Submission TYPE"},180:{name:"Return Merchandise Authorization and Notification"},185:{name:"Royalty Regulatory Report"},186:{name:"Insurance Underwriting Requirements Reporting"},188:{name:"Educational Course Inventory"},189:{name:"Application for Admission to Educational Institutions"},190:{name:"Student Enrollment Verification"},191:{name:"Student Loan Pre-Claims and Claims"},194:{name:"Grant or Assistance Application"},195:{name:"Federal Communications Commission (FCC) License Application"},196:{name:"Contractor Cost Data Reporting"},197:{name:"Real Estate Title Evidence"},198:{name:"Loan Verification Information"},199:{name:"Real Estate Settlement Information"},200:{name:"Mortgage Credit Report"},201:{name:"Residential Loan Application"},202:{name:"Secondary Mortgage Market Loan Delivery"},203:{name:"Secondary Mortgage Market Investor Report"},204:{name:"Motor Carrier Load Tender"},205:{name:"Mortgage Note"},206:{name:"Real Estate Inspection"},210:{name:"Motor Carrier Freight Details and Invoice"},211:{name:"Motor Carrier Bill of Lading",edifactId:"IFTMCE"},212:{name:"Motor Carrier Delivery Trailer Manifest"},213:{name:"Motor Carrier Shipment Status Inquiry"},214:{name:"Transportation Carrier Shipment Status Message"},215:{name:"Motor Carrier Pick-up Manifest"},216:{name:"Motor Carrier Shipment Pick-up Notification"},217:{name:"Motor Carrier Loading and Route Guide"},218:{name:"Motor Carrier Tariff Information"},219:{name:"Logistics Service Request"},220:{name:"Logistics Service Response"},222:{name:"Cartage Work Assignment"},223:{name:"Consolidators Freight Bill and Invoice"},224:{name:"Motor Carrier Summary Freight Bill Manifest"},225:{name:"Response to a Cartage Work Assignment"},240:{name:"Motor Carrier Package Status"},242:{name:"Data Status Tracking"},244:{name:"Product Source Information"},248:{name:"Account Assignment/Inquiry and Service/Status"},249:{name:"Animal Toxicological Data"},250:{name:"Purchase Order Shipment Management Document"},251:{name:"Pricing Support"},252:{name:"Insurance Producer Administration"},255:{name:"Underwriting Information Services"},256:{name:"Periodic Compensation"},260:{name:"Application for Mortgage Insurance Benefits"},261:{name:"Real Estate Information Request"},262:{name:"Real Estate Information Report"},263:{name:"Residential Mortgage Insurance Application Response"},264:{name:"Mortgage Loan Default Status"},265:{name:"Real Estate Title Insurance Services Order"},266:{name:"Mortgage or Property Record Change Notification"},267:{name:"Individual Life, Annuity and Disability Application"},268:{name:"Annuity Activity"},270:{name:"Eligibility, Coverage or Benefit Inquiry"},271:{name:"Eligibility, Coverage or Benefit Information"},272:{name:"Property and Casualty Loss Notification"},273:{name:"Insurance/Annuity Application Status"},274:{name:"Health Care Provider Information"},275:{name:"Patient Information"},276:{name:"Health Care Claim Status Request"},277:{name:"Health Care Claim Status Notification"},278:{name:"Health Care Services Insurance/Benefit Review Information"},280:{name:"Voter Registration Information"},285:{name:"Commercial Vehicle Safety and Credentials Information Exchange"},286:{name:"Commercial Vehicle Credentials"},288:{name:"Wage Determination"},290:{name:"Cooperative Advertising Agreements"},300:{name:"Reservation (Booking Request) (Ocean)"},301:{name:"Confirmation (Ocean)",edifactId:"IFTMBC"},303:{name:"Booking Cancellation (Ocean)"},304:{name:"Shipping Instructions"},309:{name:"U.S. Customs Manifest"},310:{name:"Freight Receipt and Invoice (Ocean)"},311:{name:"Canadian Customs Information"},312:{name:"Arrival Notice (Ocean)"},313:{name:"Shipment Status Inquiry (Ocean)"},315:{name:"Status Details (Ocean)"},317:{name:"Delivery/Pickup Order"},319:{name:"Terminal Information"},322:{name:"Terminal Operations and Intermodal Ramp Activity"},323:{name:"Vessel Schedule and Itinerary (Ocean)"},324:{name:"Vessel Stow Plan (Ocean)"},325:{name:"Consolidation of Goods In Container"},326:{name:"Consignment Summary List"},350:{name:"U.S. Customs Status Information"},352:{name:"U.S. Customs Carrier General Order Status"},353:{name:"U.S. Customs Events Advisory Details"},354:{name:"U.S. Customs Automated Manifest Archive Status"},355:{name:"U.S. Customs Acceptance/Rejection"},356:{name:"U.S. Customs Permit to Transfer Request"},357:{name:"U.S. Customs In-Bond Information"},358:{name:"U.S. Customs Consist Information"},361:{name:"Carrier Interchange Agreement (Ocean)"},362:{name:"Cargo Insurance Advice of Shipment"},404:{name:"Rail Carrier Shipment Information"},410:{name:"Rail Carrier Freight Details and Invoice"},411:{name:"Rail Carrier Freight Details and Invoice Summary"},412:{name:"Trailer or Container Repair Billing"},414:{name:"Rail Carhire Settlements"},417:{name:"Rail Carrier Waybill Interchange"},418:{name:"Rail Advance Interchange Consist"},419:{name:"Advance Car Disposition"},420:{name:"Car Handling Information"},421:{name:"Estimated Time of Arrival and Car Scheduling"},422:{name:"Shipper's Car Order"},423:{name:"Rail Industrial Switch List"},424:{name:"Rail Carrier Services Settlement"},425:{name:"Rail Waybill Request"},426:{name:"Rail Revenue Waybill"},427:{name:"Rail Waybill Response"},429:{name:"Railroad Retirement Activity"},431:{name:"Railroad Station Master File"},432:{name:"Rail Deprescription"},433:{name:"Railroad Reciprocal Switch File"},434:{name:"Railroad Mark Register Update Activity"},435:{name:"Standard Transportation Commodity Code (STCC) Master"},436:{name:"Locomotive Information"},437:{name:"Railroad Junctions and Interchanges Activity"},440:{name:"Shipment Weights"},451:{name:"Railroad Event Report"},452:{name:"Railroad Problem Log Inquiry or Advice"},453:{name:"Railroad Service Commitment Advice"},455:{name:"Railroad Parameter Trace Registration"},456:{name:"Railroad Equipment Inquiry or Advice"},460:{name:"Railroad Price Distribution Request or Response"},463:{name:"Rail Rate Reply"},466:{name:"Rate Request"},468:{name:"Rate Docket Journal Log"},470:{name:"Railroad Clearance"},475:{name:"Rail Route File Maintenance"},485:{name:"Ratemaking Action"},486:{name:"Rate Docket Expiration"},490:{name:"Rate Group Definition"},492:{name:"Miscellaneous Rates"},494:{name:"Rail Scale Rates"},500:{name:"Medical Event Reporting"},501:{name:"Vendor Performance Review"},503:{name:"Pricing History"},504:{name:"Clauses and Provisions"},511:{name:"Requisition"},517:{name:"Material Obligation Validation"},521:{name:"Income or Asset Offset"},527:{name:"Material Due-In and Receipt"},536:{name:"Logistics Reassignment"},540:{name:"Notice of Employment Status"},561:{name:"Contract Abstract"},567:{name:"Contract Completion Status"},568:{name:"Contract Payment Management Report"},601:{name:"U.S. Customs Export Shipment Information"},602:{name:"Transportation Services Tender"},620:{name:"Excavation Communication"},625:{name:"Well Information"},650:{name:"Maintenance Service Order"},715:{name:"Intermodal Group Loading Plan"},805:{name:"Contract Pricing Proposal"},806:{name:"Project Schedule Reporting"},810:{name:"Invoice",edifactId:"INVOIC"},811:{name:"Consolidated Service Invoice/Statement"},812:{name:"Credit/Debit Adjustment"},813:{name:"Electronic Filing of Tax Return Data"},814:{name:"General Request, Response or Confirmation"},815:{name:"Cryptographic Service Message"},816:{name:"Organizational Relationships"},818:{name:"Commission Sales Report"},819:{name:"Operating Expense Statement"},820:{name:"Payment Order/Remittance Advice",edifactId:"REMADV"},821:{name:"Financial Information Reporting"},822:{name:"Account Analysis"},823:{name:"Lockbox"},824:{name:"Application Advice",edifactId:"APERAK"},826:{name:"Tax Information Exchange"},827:{name:"Financial Return Notice"},828:{name:"Debit Authorization"},829:{name:"Payment Cancellation Request"},830:{name:"Planning Schedule with Release Capability",edifactId:"DELFOR"},831:{name:"Application Control Totals"},832:{name:"Price/Sales Catalog",edifactId:"PRICAT"},833:{name:"Mortgage Credit Report Order"},834:{name:"Benefit Enrollment and Maintenance"},835:{name:"Health Care Claim Payment/Advice"},836:{name:"Procurement Notices"},837:{name:"Health Care Claim"},838:{name:"Trading Partner Profile"},839:{name:"Project Cost Reporting"},840:{name:"Request for Quotation",edifactId:"REQUOTE"},841:{name:"Specifications/Technical Information"},842:{name:"Nonconformance Report"},843:{name:"Response to Request for Quotation",edifactId:"QUOTES"},844:{name:"Product Transfer Account Adjustment",edifactId:"SSDCLM"},845:{name:"Price Authorization Acknowledgment/Status",edifactId:"ATHSTS"},846:{name:"Inventory Inquiry/Advice",edifactId:"INVRPT"},847:{name:"Material Claim"},848:{name:"Material Safety Data Sheet"},849:{name:"Response to Product Transfer Account Adjustment"},850:{name:"Purchase Order",edifactId:"ORDERS"},851:{name:"Asset Schedule"},852:{name:"Product Activity Data",edifactId:"SLSRPT"},853:{name:"Routing and Carrier Instruction"},854:{name:"Shipment Delivery Discrepancy Information"},855:{name:"Purchase Order Acknowledgment",edifactId:"ORDRSP"},856:{name:"Advance Ship Notice/Manifest",edifactId:"DESADV"},857:{name:"Shipment and Billing Notice"},858:{name:"Shipment Information"},859:{name:"Freight Invoice"},860:{name:"Purchase Order Change",edifactId:"ORDCHG"},861:{name:"Receiving Advice/Acceptance Certificate",edifactId:"RECADV"},862:{name:"Shipping Schedule",edifactId:"DELJIT"},863:{name:"Report of Test Results"},864:{name:"Text Message"},865:{name:"Purchase Order Change",edifactId:"ORDRSP"},866:{name:"Production Sequence"},867:{name:"Product Transfer and Resale Report",edifactId:"SLSRPT"},868:{name:"Electronic Form Structure"},869:{name:"Order Status Inquiry",edifactId:"ORSSTA"},870:{name:"Order Status Report",edifactId:"ORDREP"},871:{name:"Component Parts Content"},872:{name:"Residential Mortgage Insurance Application"},875:{name:"Grocery Products Purchase Order"},876:{name:"Grocery Products Purchase Order Change"},877:{name:"Manufacturer Coupon Family Code Structure"},878:{name:"Product Authorization/De-authorization"},879:{name:"Price Information"},880:{name:"Grocery Products Invoice"},881:{name:"Manufacturer Coupon Redemption Detail"},882:{name:"Direct Store Delivery Summary Information"},883:{name:"Market Development Fund Allocation"},884:{name:"Market Development Fund Settlement"},885:{name:"Retail Account Characteristics"},886:{name:"Customer Call Reporting"},887:{name:"Coupon Notification"},888:{name:"Item Maintenance"},889:{name:"Promotion Announcement"},891:{name:"Deduction Research Report"},893:{name:"Item Information Request"},894:{name:"Delivery/Return Base Record"},895:{name:"Delivery/Return Acknowledgment or Adjustment"},896:{name:"Product Dimension Maintenance"},920:{name:"Loss or Damage Claim - General Commodities"},924:{name:"Loss or Damage Claim - Motor Vehicle"},925:{name:"Claim Tracer"},926:{name:"Claim Status Report and Tracer Reply"},928:{name:"Automotive Inspection Detail"},940:{name:"Warehouse Shipping Order"},943:{name:"Warehouse Stock Transfer Shipment Advice"},944:{name:"Warehouse Stock Transfer Receipt Advice"},945:{name:"Warehouse Shipping Advice"},947:{name:"Warehouse Inventory Adjustment Advice"},980:{name:"Functional Group Totals"},990:{name:"Response to a Load Tender"},996:{name:"File Transfer"},997:{name:"Functional Acknowledgment",edifactId:"CONTROL"},998:{name:"Set Cancellation"},999:{name:"Implementation Acknowledgment"}});function Ae(){return(e,n)=>{const t=`_${String(n)}`;Object.defineProperties(e,{[t]:{enumerable:!1,configurable:!0,writable:!0,value:void 0},[n]:{enumerable:!0,configurable:!0,get(){return this[t]},set(a){this[t]=Number(a)}}})}}function Oe(e){return(n,t,a)=>{const i={...a};return i.get=function(){const s={...i};return s.value=W(i.value,e,this),Object.defineProperty(this,t,s),s.value},i.configurable=!0,delete i.writable,delete i.value,i}}function Pe(e,n,t){const a={...t};return t.get=function(){const o={...a};return o.value=z(a.value,this),Object.defineProperty(this,n,o),o.value},t.configurable=!0,delete t.writable,delete t.value,t}function Te(e,n,t,a,i){const o=i||Object.getOwnPropertyDescriptor(t,a),s=o.get,{value:f}=o;return o.get=function(){const d=this,y=(f||s.call(this)).bind(this),u={...n,...e};for(const l of Object.keys(n))typeof e[l]=="function"?Object.defineProperty(y,l,{get(){return u[l](d)}}):y[l]=u[l];return Object.defineProperty(this,a,{writable:!0,configurable:!0,enumerable:o.enumerable,value:y}),y},delete o.value,delete o.writable,o}function Ee(e,n,t){const a={...t};return a.get=function(){const o={...a},s=a.value.bind(this);return o.value=()=>setTimeout(s,0),Object.defineProperty(this,n,o),o.value},a.configurable=!0,delete a.writable,delete a.value,a}function je(e,n){return!e||e<n[0]?n[0]:e>n[1]?n[1]:e}function H(e,n=0){const t=String(e).split("."),a=t.length>1?t[1].length:0;let i=e;for(let o=a-1;o>=n;o-=1)i=+`${Math.round(+`${i}e${o}`)}e-${o}`;return i}function Me(e,n=2){if(e>Number.MAX_SAFE_INTEGER)throw new Error("Number is greater than MAX_SAFE_INTEGER; toFileSizeString does not support orders of magnitude higher than petabytes for this reason until BigInt achieves broad browser support.");const t=Math.min(Math.floor(Math.log(e)/Math.log(1024)),5),a=["B","KB","MB","GB","TB","PB"][t],i=t?n:0;return H(e/1024**t,i).toFixed(i)+a}function P(e){return typeof e=="string"?e.match(/[^.[\]]+/g)||[]:[].concat(e)}function K(e,n,t){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}var T=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D,X;function we(){if(X)return D;X=1;var e="[object Object]";function n(u){var l=!1;if(u!=null&&typeof u.toString!="function")try{l=!!(u+"")}catch{}return l}function t(u,l){return function(h){return u(l(h))}}var a=Function.prototype,i=Object.prototype,o=a.toString,s=i.hasOwnProperty,f=o.call(Object),b=i.toString,d=t(Object.getPrototypeOf,Object);function A(u){return!!u&&typeof u=="object"}function y(u){if(!A(u)||b.call(u)!=e||n(u))return!1;var l=d(u);if(l===null)return!0;var h=s.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==f}return D=y,D}var De=we();const g=w(De);function J(e){Object.freeze(e);for(const n of Object.keys(e)){const t=e[n];(g(t)||Array.isArray(t))&&J(t)}}var Q=(e=>(e[e.ADDITION=0]="ADDITION",e[e.DELETION=1]="DELETION",e[e.ALTERATION=2]="ALTERATION",e))(Q||{});function Y(e,n,t=[]){let a=[];for(const i of new Set([...Object.keys(e),...Object.keys(n)])){const o=Object.prototype.hasOwnProperty.call(e,i),s=Object.prototype.hasOwnProperty.call(n,i);o&&!s?a.push({type:1,key:i,parentPath:t,objects:[e,n]}):!o&&s?a.push({type:0,key:i,parentPath:t,objects:[e,n]}):g(e[i])&&g(n[i])||Array.isArray(e[i])&&Array.isArray(n[i])?a=a.concat(Y(e[i],n[i],[...t,i])):e[i]!==n[i]&&a.push({type:2,key:i,parentPath:t,objects:[e,n]})}return a}function x(e,n){for(const t of Object.keys(e)){const a=e[t];g(a)||Array.isArray(a)?x(a,n):n(t,a,e)}}function Z(e,n,t=[]){n(t,e);for(const a of Object.keys(e)){const i=e[a];if(g(i)||Array.isArray(i)){const o=t.concat(a);Z(i,n,o)}}}var k,ee;function ke(){if(ee)return k;ee=1;function e(n){return n==null}return k=e,k}var Fe=ke();const ne=w(Fe);var I={exports:{}};I.exports;var te;function Ne(){return te||(te=1,function(e,n){var t=9007199254740991,a="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",s="[object Map]",f="[object Object]",b="[object Promise]",d="[object Set]",A="[object WeakMap]",y="[object DataView]",u=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,h=typeof T=="object"&&T&&T.Object===Object&&T,He=typeof self=="object"&&self&&self.Object===Object&&self,R=h||He||Function("return this")(),ce=n&&!n.nodeType&&n,se=ce&&!0&&e&&!e.nodeType&&e,Ke=se&&se.exports===ce;function Xe(r,m){return r==null?void 0:r[m]}function Je(r){var m=!1;if(r!=null&&typeof r.toString!="function")try{m=!!(r+"")}catch{}return m}function Qe(r,m){return function(p){return r(m(p))}}var Ye=Function.prototype,E=Object.prototype,B=R["__core-js_shared__"],me=function(){var r=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),ue=Ye.toString,q=E.hasOwnProperty,j=E.toString,xe=RegExp("^"+ue.call(q).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=Ke?R.Buffer:void 0,fe=E.propertyIsEnumerable,Ze=le?le.isBuffer:void 0,en=Qe(Object.keys,Object),_=O(R,"DataView"),V=O(R,"Map"),G=O(R,"Promise"),U=O(R,"Set"),$=O(R,"WeakMap"),nn=!fe.call({valueOf:1},"valueOf"),tn=C(_),an=C(V),rn=C(G),on=C(U),cn=C($);function sn(r){return j.call(r)}function mn(r){if(!ge(r)||un(r))return!1;var m=pe(r)||Je(r)?xe:l;return m.test(C(r))}function O(r,m){var p=Xe(r,m);return mn(p)?p:void 0}var S=sn;(_&&S(new _(new ArrayBuffer(1)))!=y||V&&S(new V)!=s||G&&S(G.resolve())!=b||U&&S(new U)!=d||$&&S(new $)!=A)&&(S=function(r){var m=j.call(r),p=m==f?r.constructor:void 0,ye=p?C(p):void 0;if(ye)switch(ye){case tn:return y;case an:return s;case rn:return b;case on:return d;case cn:return A}return m});function un(r){return!!me&&me in r}function ln(r){var m=r&&r.constructor,p=typeof m=="function"&&m.prototype||E;return r===p}function C(r){if(r!=null){try{return ue.call(r)}catch{}try{return r+""}catch{}}return""}function fn(r){return pn(r)&&q.call(r,"callee")&&(!fe.call(r,"callee")||j.call(r)==a)}var dn=Array.isArray;function de(r){return r!=null&&hn(r.length)&&!pe(r)}function pn(r){return bn(r)&&de(r)}var gn=Ze||Rn;function yn(r){if(de(r)&&(dn(r)||typeof r=="string"||typeof r.splice=="function"||gn(r)||fn(r)))return!r.length;var m=S(r);if(m==s||m==d)return!r.size;if(nn||ln(r))return!en(r).length;for(var p in r)if(q.call(r,p))return!1;return!0}function pe(r){var m=ge(r)?j.call(r):"";return m==i||m==o}function hn(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}function ge(r){var m=typeof r;return!!r&&(m=="object"||m=="function")}function bn(r){return!!r&&typeof r=="object"}function Rn(){return!1}e.exports=yn}(I,I.exports)),I.exports}var Le=Ne();const ae=w(Le);function F(e,n,t,a=!1){if(ae(n))return e;let i=e;for(const o of P(n)){let s=o,f;if(typeof o=="string"&&([,s,f]=/^([^?]+)(\?)?$/.exec(o)),i=i[s],ne(i)&&(f||a))return t}return ne(i)?t:i}function Be(e,...n){const t=new Set(n),a={};for(const i of Object.keys(e))t.has(i)||(a[i]=e[i]);return a}function qe(e,n,t){if(typeof e!="object")throw new Error("object is required");if(ae(n))throw new Error("path is required");const a=P(n),i=a.splice(a.length-1,1)[0];let o=e;for(const s of a)if(o=o[s],typeof o!="object")throw new Error(`Cannot set value at given path: Path deadends at ${String(s)}`);o[i]=t}function*_e(e,n){yield e;let t=e;for(const a of P(n))t=t[a],yield t}function N(...e){const n={};for(const t of e)for(const a of Object.keys(t))Object.prototype.hasOwnProperty.call(n,a)&&Object.getOwnPropertyDescriptor(n,a).writable&&g(n[a])?n[a]=N(n[a],t[a]):g(t[a])?n[a]=N({},t[a]):n[a]=t[a];return n}function L(...e){const n={};for(const t of e)for(const a of Object.keys(t))Object.prototype.hasOwnProperty.call(n,a)&&Object.getOwnPropertyDescriptor(n,a).writable&&g(n[a])?n[a]=L(n[a],t[a]):g(t[a])?n[a]=L({},t[a]):K(a,t,n);return n}function Ve(e){const n=[];for(const t of Object.keys(e))n.push(e[t]);return n}function Ge(e,...n){const t=e.reduce((i,o,s)=>`${i}${s<=n.length?String(n[s-1]):""}${o}`),a=Math.min(...t.split(/[\r\n]/).filter(i=>i.trim()).map(i=>/^ */.exec(i)[0].length));return t.replace(new RegExp(`^ {${a}}`,"gm"),"").trim()}function Ue(e){const n=/[A-Z]?B$/.exec(e);if(!n)throw new Error(`Input to parseFileSize ("${e}") doesn't seem like a file size; cannot identify a unit (e.g. KB, GB)`);const[t]=n,a=Number(e.replace(t,""));if(Number.isNaN(a))throw new Error(`Could not parse a number out of input to parseFileSize ("${e}")`);const i=["B","KB","MB","GB","TB","PB"].indexOf(t);if(i===-1)throw new Error("parseFileSize does not support units above PB");return Math.ceil(a*1024**i)}const re=/(<%=|{{)(.+?)(%>|}})/g,ie=/<%\?(.+?)%>(.+?)<\/%>/g,oe=Symbol("sps.utils.templateSrc");function $e(e){const n=t=>e.replace(ie,(a,i,o)=>F(t,i.trim())?o:"").replace(re,(a,i,o)=>F(t,o.trim(),""));return n[oe]=e,n}function We(e){return typeof e=="string"&&(re.test(e)||ie.test(e))}function ze(e){return typeof e=="function"&&Object.prototype.hasOwnProperty.call(e,oe)}c.CustomEvent=ve,c.DiffChange=Q,c.EDI_DOCUMENT_TYPE=Ie,c.Op=M,c.castToNumber=Ae,c.code=Ge,c.constrain=je,c.copyProperty=K,c.crumblePath=P,c.debounce=W,c.debounced=Oe,c.decimalRound=H,c.deepFreeze=J,c.diff=Y,c.flatten=v,c.forEachEntryDeep=x,c.forEachNestedObject=Z,c.getPath=F,c.isSubset=he,c.isTemplate=We,c.isTemplateFn=ze,c.lockToAnimationFrames=z,c.lockedToAnimationFrames=Pe,c.mergeDeep=N,c.mergePropertiesDeep=L,c.omit=Be,c.onNextTick=Se,c.parseFileSize=Ue,c.range=Ce,c.setPath=qe,c.simpleMetadataDecoratorApplicator=Te,c.template=$e,c.tickDelay=Ee,c.toFileSizeString=Me,c.traversePath=_e,c.values=Ve,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spscommerce/utils",
|
|
3
3
|
"description": "Utility items for frontend projects.",
|
|
4
|
-
"version": "7.1.
|
|
4
|
+
"version": "7.1.4",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/utils",
|
|
8
8
|
"homepage": "https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/utils#readme",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
9
|
+
"type": "module",
|
|
10
|
+
"main": "./lib/index.umd.cjs",
|
|
11
|
+
"module": "./lib/index.js",
|
|
11
12
|
"types": "./lib/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
"require": "./lib/index.umd.cjs",
|
|
15
|
+
"import": "./lib/index.js",
|
|
16
|
+
"default": "./lib/index.js",
|
|
17
|
+
"types": "./lib/index.d.ts"
|
|
18
|
+
},
|
|
12
19
|
"publishConfig": {
|
|
13
20
|
"access": "public"
|
|
14
21
|
},
|
package/vite.config.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import path from
|
|
1
|
+
import path from "path";
|
|
2
2
|
|
|
3
|
-
import { defineConfig } from
|
|
3
|
+
import { defineConfig } from "vite";
|
|
4
4
|
|
|
5
|
-
import pkg from
|
|
5
|
+
import pkg from "./package.json";
|
|
6
6
|
|
|
7
7
|
export default defineConfig({
|
|
8
8
|
test: {
|
|
9
9
|
globals: true,
|
|
10
|
-
environment: "jsdom"
|
|
11
|
-
},
|
|
10
|
+
environment: "jsdom",
|
|
11
|
+
},
|
|
12
12
|
build: {
|
|
13
13
|
lib: {
|
|
14
|
-
entry: path.resolve(__dirname,
|
|
15
|
-
|
|
16
|
-
fileName:
|
|
14
|
+
entry: path.resolve(__dirname, "src/index.ts"),
|
|
15
|
+
name: "Utils",
|
|
16
|
+
fileName: "index",
|
|
17
17
|
},
|
|
18
|
-
outDir: path.resolve(__dirname,
|
|
18
|
+
outDir: path.resolve(__dirname, "./lib"),
|
|
19
19
|
emptyOutDir: false,
|
|
20
20
|
rollupOptions: {
|
|
21
21
|
external: pkg.peerDependencies ? Object.keys(pkg.peerDependencies) : [],
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
|
-
});
|
|
24
|
+
});
|
package/lib/index.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function J(e){return Array.isArray(e)?e.reduce((t,n)=>t.concat(J(n)),[]):e}function _e(e,t){const n=new Set(t);for(const r of e)if(!n.has(r))return!1;return!0}function Ve(){return this.pending=!1,typeof this.id<"u"?(clearTimeout(this.id),delete this.id,!0):!1}function Q(e,t,n){const r=function(...i){return new Promise((c,m)=>{r.reset(),r.pending=!0;function R(){(async()=>{try{let u=e.apply(n||this,i);u instanceof Promise&&(u=await u),c(u)}catch(u){m(u)}finally{r.reset()}})()}r.id=window.setTimeout(R,t)})};return r.reset=Ve.bind(r),r}function Ge(){return this.pending=!1,typeof this.id=="number"?(window.cancelAnimationFrame(this.id),delete this.id,!0):!1}function Y(e,t){const n=function(...o){n.pending&&n.reset(),n.id=window.requestAnimationFrame(()=>{e&&e.apply(t||this,o),n.reset()}),n.pending=!0};return n.pending=!1,n.reset=Ge.bind(n),n}function $e(e,t){const n=t?e.bind(t):e;setTimeout(n,0)}const F={add:(e,t)=>e+t,and:(e,t)=>e&&t,band:(e,t)=>e&t,bor:(e,t)=>e|t,bxor:(e,t)=>e^t,bnot:e=>~e,decr:e=>e-1,div:(e,t)=>e/t,eq:(e,t)=>e===t,exp:(e,t)=>e**t,gt:(e,t)=>e>t,gte:(e,t)=>e>=t,incr:e=>e+1,lshift:(e,t)=>e<<t,lt:(e,t)=>e<t,lte:(e,t)=>e<=t,mul:(e,t)=>e*t,neg:e=>-e,neq:(e,t)=>e!==t,not:e=>!e,or:(e,t)=>e||t,rem:(e,t)=>e%t,rshift:(e,t)=>e>>t,rshift_zf:(e,t)=>e>>>t,sub:(e,t)=>e-t,xor:(e,t)=>(e||t)&&!(e&&t)};function Ue(e,t){if(!Number.isInteger(e))throw new Error("start must be an integer");if(!Number.isInteger(t))throw new Error("end must be an integer");return new Array(Math.abs(t-e)+1).fill(e).map(e>t?F.sub:F.add)}class We{constructor(t,n={}){let r;if(typeof Event=="function")r=new Event(t,n);else{r=document.createEvent("Event"),r.initEvent(t,n.bubbles,n.cancelable);for(const i of Object.keys(n))i!=="bubbles"&&i!=="cancelable"&&(r[i]=n[i])}Object.setPrototypeOf(this,r);const o=Object.getOwnPropertyDescriptors(Event.prototype);for(const i of Object.keys(o)){const c=o[i];for(const m of Object.keys(c))typeof c[m]=="function"&&(c[m]=c[m].bind(r))}Object.defineProperties(this,o)}}const ze=Object.freeze({100:{name:"Insurance Plan Description"},101:{name:"Name and Address Lists"},104:{name:"Air Shipment Information"},106:{name:"Motor Carrier Rate Proposal"},107:{name:"Request for Motor Carrier Rate Proposal"},108:{name:"Response to a Motor Carrier Rate Proposal"},109:{name:"Vessel Content Details"},110:{name:"Air Freight Details and Invoice"},112:{name:"Property Damage Report"},120:{name:"Vehicle Shipping Order"},121:{name:"Vehicle Service"},124:{name:"Vehicle Damage"},125:{name:"Multilevel Railcar Load Details"},126:{name:"Vehicle Application Advice"},127:{name:"Vehicle Baying Order"},128:{name:"Dealer Information"},129:{name:"Vehicle Carrier Rate Update"},130:{name:"Student Educational Record (Transcript)"},131:{name:"Student Educational Record (Transcript) Acknowledgment"},135:{name:"Student Loan Application"},138:{name:"Testing Results Request and Report"},139:{name:"Student Loan Guarantee Result"},140:{name:"Product Registration"},141:{name:"Product Service Claim Response"},142:{name:"Product Service Claim"},143:{name:"Product Service Notification"},144:{name:"Student Loan Transfer and Status Verification"},146:{name:"Request for Student Educational Record (Transcript)"},147:{name:"Response to Request for Student Educational Record (Transcript)"},148:{name:"Report of Injury, Illness or Incident"},149:{name:"Notice of Tax Adjustment or Assessment"},150:{name:"Tax Rate Notification"},151:{name:"Electronic Filing of Tax Return Data Acknowledgment"},152:{name:"Statistical Government Information"},153:{name:"Unemployment Insurance Tax Claim or Charge Information"},154:{name:"Uniform Commercial Code Filing"},155:{name:"Business Credit Report"},157:{name:"Notice of Power of Attorney"},159:{name:"Motion Picture Booking Confirmation"},160:{name:"Transportation Automatic Equipment Identification"},161:{name:"Train Sheet"},169:{name:"Transportation Appointment Schedule Information"},170:{name:"Revenue Receipts Statement"},175:{name:"Court and Law Enforcement Notice"},176:{name:"Court Submission TYPE"},180:{name:"Return Merchandise Authorization and Notification"},185:{name:"Royalty Regulatory Report"},186:{name:"Insurance Underwriting Requirements Reporting"},188:{name:"Educational Course Inventory"},189:{name:"Application for Admission to Educational Institutions"},190:{name:"Student Enrollment Verification"},191:{name:"Student Loan Pre-Claims and Claims"},194:{name:"Grant or Assistance Application"},195:{name:"Federal Communications Commission (FCC) License Application"},196:{name:"Contractor Cost Data Reporting"},197:{name:"Real Estate Title Evidence"},198:{name:"Loan Verification Information"},199:{name:"Real Estate Settlement Information"},200:{name:"Mortgage Credit Report"},201:{name:"Residential Loan Application"},202:{name:"Secondary Mortgage Market Loan Delivery"},203:{name:"Secondary Mortgage Market Investor Report"},204:{name:"Motor Carrier Load Tender"},205:{name:"Mortgage Note"},206:{name:"Real Estate Inspection"},210:{name:"Motor Carrier Freight Details and Invoice"},211:{name:"Motor Carrier Bill of Lading",edifactId:"IFTMCE"},212:{name:"Motor Carrier Delivery Trailer Manifest"},213:{name:"Motor Carrier Shipment Status Inquiry"},214:{name:"Transportation Carrier Shipment Status Message"},215:{name:"Motor Carrier Pick-up Manifest"},216:{name:"Motor Carrier Shipment Pick-up Notification"},217:{name:"Motor Carrier Loading and Route Guide"},218:{name:"Motor Carrier Tariff Information"},219:{name:"Logistics Service Request"},220:{name:"Logistics Service Response"},222:{name:"Cartage Work Assignment"},223:{name:"Consolidators Freight Bill and Invoice"},224:{name:"Motor Carrier Summary Freight Bill Manifest"},225:{name:"Response to a Cartage Work Assignment"},240:{name:"Motor Carrier Package Status"},242:{name:"Data Status Tracking"},244:{name:"Product Source Information"},248:{name:"Account Assignment/Inquiry and Service/Status"},249:{name:"Animal Toxicological Data"},250:{name:"Purchase Order Shipment Management Document"},251:{name:"Pricing Support"},252:{name:"Insurance Producer Administration"},255:{name:"Underwriting Information Services"},256:{name:"Periodic Compensation"},260:{name:"Application for Mortgage Insurance Benefits"},261:{name:"Real Estate Information Request"},262:{name:"Real Estate Information Report"},263:{name:"Residential Mortgage Insurance Application Response"},264:{name:"Mortgage Loan Default Status"},265:{name:"Real Estate Title Insurance Services Order"},266:{name:"Mortgage or Property Record Change Notification"},267:{name:"Individual Life, Annuity and Disability Application"},268:{name:"Annuity Activity"},270:{name:"Eligibility, Coverage or Benefit Inquiry"},271:{name:"Eligibility, Coverage or Benefit Information"},272:{name:"Property and Casualty Loss Notification"},273:{name:"Insurance/Annuity Application Status"},274:{name:"Health Care Provider Information"},275:{name:"Patient Information"},276:{name:"Health Care Claim Status Request"},277:{name:"Health Care Claim Status Notification"},278:{name:"Health Care Services Insurance/Benefit Review Information"},280:{name:"Voter Registration Information"},285:{name:"Commercial Vehicle Safety and Credentials Information Exchange"},286:{name:"Commercial Vehicle Credentials"},288:{name:"Wage Determination"},290:{name:"Cooperative Advertising Agreements"},300:{name:"Reservation (Booking Request) (Ocean)"},301:{name:"Confirmation (Ocean)",edifactId:"IFTMBC"},303:{name:"Booking Cancellation (Ocean)"},304:{name:"Shipping Instructions"},309:{name:"U.S. Customs Manifest"},310:{name:"Freight Receipt and Invoice (Ocean)"},311:{name:"Canadian Customs Information"},312:{name:"Arrival Notice (Ocean)"},313:{name:"Shipment Status Inquiry (Ocean)"},315:{name:"Status Details (Ocean)"},317:{name:"Delivery/Pickup Order"},319:{name:"Terminal Information"},322:{name:"Terminal Operations and Intermodal Ramp Activity"},323:{name:"Vessel Schedule and Itinerary (Ocean)"},324:{name:"Vessel Stow Plan (Ocean)"},325:{name:"Consolidation of Goods In Container"},326:{name:"Consignment Summary List"},350:{name:"U.S. Customs Status Information"},352:{name:"U.S. Customs Carrier General Order Status"},353:{name:"U.S. Customs Events Advisory Details"},354:{name:"U.S. Customs Automated Manifest Archive Status"},355:{name:"U.S. Customs Acceptance/Rejection"},356:{name:"U.S. Customs Permit to Transfer Request"},357:{name:"U.S. Customs In-Bond Information"},358:{name:"U.S. Customs Consist Information"},361:{name:"Carrier Interchange Agreement (Ocean)"},362:{name:"Cargo Insurance Advice of Shipment"},404:{name:"Rail Carrier Shipment Information"},410:{name:"Rail Carrier Freight Details and Invoice"},411:{name:"Rail Carrier Freight Details and Invoice Summary"},412:{name:"Trailer or Container Repair Billing"},414:{name:"Rail Carhire Settlements"},417:{name:"Rail Carrier Waybill Interchange"},418:{name:"Rail Advance Interchange Consist"},419:{name:"Advance Car Disposition"},420:{name:"Car Handling Information"},421:{name:"Estimated Time of Arrival and Car Scheduling"},422:{name:"Shipper's Car Order"},423:{name:"Rail Industrial Switch List"},424:{name:"Rail Carrier Services Settlement"},425:{name:"Rail Waybill Request"},426:{name:"Rail Revenue Waybill"},427:{name:"Rail Waybill Response"},429:{name:"Railroad Retirement Activity"},431:{name:"Railroad Station Master File"},432:{name:"Rail Deprescription"},433:{name:"Railroad Reciprocal Switch File"},434:{name:"Railroad Mark Register Update Activity"},435:{name:"Standard Transportation Commodity Code (STCC) Master"},436:{name:"Locomotive Information"},437:{name:"Railroad Junctions and Interchanges Activity"},440:{name:"Shipment Weights"},451:{name:"Railroad Event Report"},452:{name:"Railroad Problem Log Inquiry or Advice"},453:{name:"Railroad Service Commitment Advice"},455:{name:"Railroad Parameter Trace Registration"},456:{name:"Railroad Equipment Inquiry or Advice"},460:{name:"Railroad Price Distribution Request or Response"},463:{name:"Rail Rate Reply"},466:{name:"Rate Request"},468:{name:"Rate Docket Journal Log"},470:{name:"Railroad Clearance"},475:{name:"Rail Route File Maintenance"},485:{name:"Ratemaking Action"},486:{name:"Rate Docket Expiration"},490:{name:"Rate Group Definition"},492:{name:"Miscellaneous Rates"},494:{name:"Rail Scale Rates"},500:{name:"Medical Event Reporting"},501:{name:"Vendor Performance Review"},503:{name:"Pricing History"},504:{name:"Clauses and Provisions"},511:{name:"Requisition"},517:{name:"Material Obligation Validation"},521:{name:"Income or Asset Offset"},527:{name:"Material Due-In and Receipt"},536:{name:"Logistics Reassignment"},540:{name:"Notice of Employment Status"},561:{name:"Contract Abstract"},567:{name:"Contract Completion Status"},568:{name:"Contract Payment Management Report"},601:{name:"U.S. Customs Export Shipment Information"},602:{name:"Transportation Services Tender"},620:{name:"Excavation Communication"},625:{name:"Well Information"},650:{name:"Maintenance Service Order"},715:{name:"Intermodal Group Loading Plan"},805:{name:"Contract Pricing Proposal"},806:{name:"Project Schedule Reporting"},810:{name:"Invoice",edifactId:"INVOIC"},811:{name:"Consolidated Service Invoice/Statement"},812:{name:"Credit/Debit Adjustment"},813:{name:"Electronic Filing of Tax Return Data"},814:{name:"General Request, Response or Confirmation"},815:{name:"Cryptographic Service Message"},816:{name:"Organizational Relationships"},818:{name:"Commission Sales Report"},819:{name:"Operating Expense Statement"},820:{name:"Payment Order/Remittance Advice",edifactId:"REMADV"},821:{name:"Financial Information Reporting"},822:{name:"Account Analysis"},823:{name:"Lockbox"},824:{name:"Application Advice",edifactId:"APERAK"},826:{name:"Tax Information Exchange"},827:{name:"Financial Return Notice"},828:{name:"Debit Authorization"},829:{name:"Payment Cancellation Request"},830:{name:"Planning Schedule with Release Capability",edifactId:"DELFOR"},831:{name:"Application Control Totals"},832:{name:"Price/Sales Catalog",edifactId:"PRICAT"},833:{name:"Mortgage Credit Report Order"},834:{name:"Benefit Enrollment and Maintenance"},835:{name:"Health Care Claim Payment/Advice"},836:{name:"Procurement Notices"},837:{name:"Health Care Claim"},838:{name:"Trading Partner Profile"},839:{name:"Project Cost Reporting"},840:{name:"Request for Quotation",edifactId:"REQUOTE"},841:{name:"Specifications/Technical Information"},842:{name:"Nonconformance Report"},843:{name:"Response to Request for Quotation",edifactId:"QUOTES"},844:{name:"Product Transfer Account Adjustment",edifactId:"SSDCLM"},845:{name:"Price Authorization Acknowledgment/Status",edifactId:"ATHSTS"},846:{name:"Inventory Inquiry/Advice",edifactId:"INVRPT"},847:{name:"Material Claim"},848:{name:"Material Safety Data Sheet"},849:{name:"Response to Product Transfer Account Adjustment"},850:{name:"Purchase Order",edifactId:"ORDERS"},851:{name:"Asset Schedule"},852:{name:"Product Activity Data",edifactId:"SLSRPT"},853:{name:"Routing and Carrier Instruction"},854:{name:"Shipment Delivery Discrepancy Information"},855:{name:"Purchase Order Acknowledgment",edifactId:"ORDRSP"},856:{name:"Advance Ship Notice/Manifest",edifactId:"DESADV"},857:{name:"Shipment and Billing Notice"},858:{name:"Shipment Information"},859:{name:"Freight Invoice"},860:{name:"Purchase Order Change",edifactId:"ORDCHG"},861:{name:"Receiving Advice/Acceptance Certificate",edifactId:"RECADV"},862:{name:"Shipping Schedule",edifactId:"DELJIT"},863:{name:"Report of Test Results"},864:{name:"Text Message"},865:{name:"Purchase Order Change",edifactId:"ORDRSP"},866:{name:"Production Sequence"},867:{name:"Product Transfer and Resale Report",edifactId:"SLSRPT"},868:{name:"Electronic Form Structure"},869:{name:"Order Status Inquiry",edifactId:"ORSSTA"},870:{name:"Order Status Report",edifactId:"ORDREP"},871:{name:"Component Parts Content"},872:{name:"Residential Mortgage Insurance Application"},875:{name:"Grocery Products Purchase Order"},876:{name:"Grocery Products Purchase Order Change"},877:{name:"Manufacturer Coupon Family Code Structure"},878:{name:"Product Authorization/De-authorization"},879:{name:"Price Information"},880:{name:"Grocery Products Invoice"},881:{name:"Manufacturer Coupon Redemption Detail"},882:{name:"Direct Store Delivery Summary Information"},883:{name:"Market Development Fund Allocation"},884:{name:"Market Development Fund Settlement"},885:{name:"Retail Account Characteristics"},886:{name:"Customer Call Reporting"},887:{name:"Coupon Notification"},888:{name:"Item Maintenance"},889:{name:"Promotion Announcement"},891:{name:"Deduction Research Report"},893:{name:"Item Information Request"},894:{name:"Delivery/Return Base Record"},895:{name:"Delivery/Return Acknowledgment or Adjustment"},896:{name:"Product Dimension Maintenance"},920:{name:"Loss or Damage Claim - General Commodities"},924:{name:"Loss or Damage Claim - Motor Vehicle"},925:{name:"Claim Tracer"},926:{name:"Claim Status Report and Tracer Reply"},928:{name:"Automotive Inspection Detail"},940:{name:"Warehouse Shipping Order"},943:{name:"Warehouse Stock Transfer Shipment Advice"},944:{name:"Warehouse Stock Transfer Receipt Advice"},945:{name:"Warehouse Shipping Advice"},947:{name:"Warehouse Inventory Adjustment Advice"},980:{name:"Functional Group Totals"},990:{name:"Response to a Load Tender"},996:{name:"File Transfer"},997:{name:"Functional Acknowledgment",edifactId:"CONTROL"},998:{name:"Set Cancellation"},999:{name:"Implementation Acknowledgment"}});function He(){return(e,t)=>{const n=`_${String(t)}`;Object.defineProperties(e,{[n]:{enumerable:!1,configurable:!0,writable:!0,value:void 0},[t]:{enumerable:!0,configurable:!0,get(){return this[n]},set(r){this[n]=Number(r)}}})}}function Ke(e){return(t,n,r)=>{const o={...r};return o.get=function(){const c={...o};return c.value=Q(o.value,e,this),Object.defineProperty(this,n,c),c.value},o.configurable=!0,delete o.writable,delete o.value,o}}function Xe(e,t,n){const r={...n};return n.get=function(){const i={...r};return i.value=Y(r.value,this),Object.defineProperty(this,t,i),i.value},n.configurable=!0,delete n.writable,delete n.value,n}function Je(e,t,n,r,o){const i=o||Object.getOwnPropertyDescriptor(n,r),c=i.get,{value:m}=i;return i.get=function(){const u=this,d=(m||c.call(this)).bind(this),b={...t,...e};for(const p of Object.keys(t))typeof e[p]=="function"?Object.defineProperty(d,p,{get(){return b[p](u)}}):d[p]=b[p];return Object.defineProperty(this,r,{writable:!0,configurable:!0,enumerable:i.enumerable,value:d}),d},delete i.value,delete i.writable,i}function Qe(e,t,n){const r={...n};return r.get=function(){const i={...r},c=r.value.bind(this);return i.value=()=>setTimeout(c,0),Object.defineProperty(this,t,i),i.value},r.configurable=!0,delete r.writable,delete r.value,r}function Ye(e,t){return!e||e<t[0]?t[0]:e>t[1]?t[1]:e}function Z(e,t=0){const n=String(e).split("."),r=n.length>1?n[1].length:0;let o=e;for(let i=r-1;i>=t;i-=1)o=+`${Math.round(+`${o}e${i}`)}e-${i}`;return o}function Ze(e,t=2){if(e>Number.MAX_SAFE_INTEGER)throw new Error("Number is greater than MAX_SAFE_INTEGER; toFileSizeString does not support orders of magnitude higher than petabytes for this reason until BigInt achieves broad browser support.");const n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),5),r=["B","KB","MB","GB","TB","PB"][n],o=n?t:0;return Z(e/1024**n,o).toFixed(o)+r}function O(e){return typeof e=="string"?e.match(/[^.[\]]+/g)||[]:[].concat(e)}function ee(e,t,n){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}var I=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var et="[object Object]";function tt(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function nt(e,t){return function(n){return e(t(n))}}var rt=Function.prototype,te=Object.prototype,ne=rt.toString,at=te.hasOwnProperty,ot=ne.call(Object),it=te.toString,ct=nt(Object.getPrototypeOf,Object);function st(e){return!!e&&typeof e=="object"}function mt(e){if(!st(e)||it.call(e)!=et||tt(e))return!1;var t=ct(e);if(t===null)return!0;var n=at.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ne.call(n)==ot}var ut=mt;const f=q(ut);function re(e){Object.freeze(e);for(const t of Object.keys(e)){const n=e[t];(f(n)||Array.isArray(n))&&re(n)}}var ae=(e=>(e[e.ADDITION=0]="ADDITION",e[e.DELETION=1]="DELETION",e[e.ALTERATION=2]="ALTERATION",e))(ae||{});function oe(e,t,n=[]){let r=[];for(const o of new Set([...Object.keys(e),...Object.keys(t)])){const i=Object.prototype.hasOwnProperty.call(e,o),c=Object.prototype.hasOwnProperty.call(t,o);i&&!c?r.push({type:1,key:o,parentPath:n,objects:[e,t]}):!i&&c?r.push({type:0,key:o,parentPath:n,objects:[e,t]}):f(e[o])&&f(t[o])||Array.isArray(e[o])&&Array.isArray(t[o])?r=r.concat(oe(e[o],t[o],[...n,o])):e[o]!==t[o]&&r.push({type:2,key:o,parentPath:n,objects:[e,t]})}return r}function ie(e,t){for(const n of Object.keys(e)){const r=e[n];f(r)||Array.isArray(r)?ie(r,t):t(n,r,e)}}function ce(e,t,n=[]){t(n,e);for(const r of Object.keys(e)){const o=e[r];if(f(o)||Array.isArray(o)){const i=n.concat(r);ce(o,t,i)}}}function lt(e){return e==null}var ft=lt;const X=q(ft);var A={exports:{}};A.exports;(function(e,t){var n=9007199254740991,r="[object Arguments]",o="[object Function]",i="[object GeneratorFunction]",c="[object Map]",m="[object Object]",R="[object Promise]",u="[object Set]",P="[object WeakMap]",d="[object DataView]",b=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,fe=typeof I=="object"&&I&&I.Object===Object&&I,de=typeof self=="object"&&self&&self.Object===Object&&self,g=fe||de||Function("return this")(),x=t&&!t.nodeType&&t,_=x&&!0&&e&&!e.nodeType&&e,pe=_&&_.exports===x;function ge(a,s){return a==null?void 0:a[s]}function ye(a){var s=!1;if(a!=null&&typeof a.toString!="function")try{s=!!(a+"")}catch{}return s}function he(a,s){return function(l){return a(s(l))}}var Re=Function.prototype,C=Object.prototype,T=g["__core-js_shared__"],V=function(){var a=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),G=Re.toString,E=C.hasOwnProperty,v=C.toString,Se=RegExp("^"+G.call(E).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=pe?g.Buffer:void 0,U=C.propertyIsEnumerable,be=$?$.isBuffer:void 0,Ce=he(Object.keys,Object),M=S(g,"DataView"),w=S(g,"Map"),D=S(g,"Promise"),j=S(g,"Set"),k=S(g,"WeakMap"),ve=!U.call({valueOf:1},"valueOf"),Ie=h(M),Ae=h(w),Oe=h(D),Pe=h(j),Te=h(k);function Ee(a){return v.call(a)}function Me(a){if(!H(a)||we(a))return!1;var s=z(a)||ye(a)?Se:p;return s.test(h(a))}function S(a,s){var l=ge(a,s);return Me(l)?l:void 0}var y=Ee;(M&&y(new M(new ArrayBuffer(1)))!=d||w&&y(new w)!=c||D&&y(D.resolve())!=R||j&&y(new j)!=u||k&&y(new k)!=P)&&(y=function(a){var s=v.call(a),l=s==m?a.constructor:void 0,K=l?h(l):void 0;if(K)switch(K){case Ie:return d;case Ae:return c;case Oe:return R;case Pe:return u;case Te:return P}return s});function we(a){return!!V&&V in a}function De(a){var s=a&&a.constructor,l=typeof s=="function"&&s.prototype||C;return a===l}function h(a){if(a!=null){try{return G.call(a)}catch{}try{return a+""}catch{}}return""}function je(a){return Fe(a)&&E.call(a,"callee")&&(!U.call(a,"callee")||v.call(a)==r)}var ke=Array.isArray;function W(a){return a!=null&&Be(a.length)&&!z(a)}function Fe(a){return qe(a)&&W(a)}var Ne=be||xe;function Le(a){if(W(a)&&(ke(a)||typeof a=="string"||typeof a.splice=="function"||Ne(a)||je(a)))return!a.length;var s=y(a);if(s==c||s==u)return!a.size;if(ve||De(a))return!Ce(a).length;for(var l in a)if(E.call(a,l))return!1;return!0}function z(a){var s=H(a)?v.call(a):"";return s==o||s==i}function Be(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=n}function H(a){var s=typeof a;return!!a&&(s=="object"||s=="function")}function qe(a){return!!a&&typeof a=="object"}function xe(){return!1}e.exports=Le})(A,A.exports);var dt=A.exports;const se=q(dt);function N(e,t,n,r=!1){if(se(t))return e;let o=e;for(const i of O(t)){let c=i,m;if(typeof i=="string"&&([,c,m]=/^([^?]+)(\?)?$/.exec(i)),o=o[c],X(o)&&(m||r))return n}return X(o)?n:o}function pt(e,...t){const n=new Set(t),r={};for(const o of Object.keys(e))n.has(o)||(r[o]=e[o]);return r}function gt(e,t,n){if(typeof e!="object")throw new Error("object is required");if(se(t))throw new Error("path is required");const r=O(t),o=r.splice(r.length-1,1)[0];let i=e;for(const c of r)if(i=i[c],typeof i!="object")throw new Error(`Cannot set value at given path: Path deadends at ${String(c)}`);i[o]=n}function*yt(e,t){yield e;let n=e;for(const r of O(t))n=n[r],yield n}function L(...e){const t={};for(const n of e)for(const r of Object.keys(n))Object.prototype.hasOwnProperty.call(t,r)&&Object.getOwnPropertyDescriptor(t,r).writable&&f(t[r])?t[r]=L(t[r],n[r]):f(n[r])?t[r]=L({},n[r]):t[r]=n[r];return t}function B(...e){const t={};for(const n of e)for(const r of Object.keys(n))Object.prototype.hasOwnProperty.call(t,r)&&Object.getOwnPropertyDescriptor(t,r).writable&&f(t[r])?t[r]=B(t[r],n[r]):f(n[r])?t[r]=B({},n[r]):ee(r,n,t);return t}function ht(e){const t=[];for(const n of Object.keys(e))t.push(e[n]);return t}function Rt(e,...t){const n=e.reduce((o,i,c)=>`${o}${c<=t.length?String(t[c-1]):""}${i}`),r=Math.min(...n.split(/[\r\n]/).filter(o=>o.trim()).map(o=>/^ */.exec(o)[0].length));return n.replace(new RegExp(`^ {${r}}`,"gm"),"").trim()}function St(e){const t=/[A-Z]?B$/.exec(e);if(!t)throw new Error(`Input to parseFileSize ("${e}") doesn't seem like a file size; cannot identify a unit (e.g. KB, GB)`);const[n]=t,r=Number(e.replace(n,""));if(Number.isNaN(r))throw new Error(`Could not parse a number out of input to parseFileSize ("${e}")`);const o=["B","KB","MB","GB","TB","PB"].indexOf(n);if(o===-1)throw new Error("parseFileSize does not support units above PB");return Math.ceil(r*1024**o)}const me=/(<%=|{{)(.+?)(%>|}})/g,ue=/<%\?(.+?)%>(.+?)<\/%>/g,le=Symbol("sps.utils.templateSrc");function bt(e){const t=n=>e.replace(ue,(r,o,i)=>N(n,o.trim())?i:"").replace(me,(r,o,i)=>N(n,i.trim(),""));return t[le]=e,t}function Ct(e){return typeof e=="string"&&(me.test(e)||ue.test(e))}function vt(e){return typeof e=="function"&&Object.prototype.hasOwnProperty.call(e,le)}exports.CustomEvent=We;exports.DiffChange=ae;exports.EDI_DOCUMENT_TYPE=ze;exports.Op=F;exports.castToNumber=He;exports.code=Rt;exports.constrain=Ye;exports.copyProperty=ee;exports.crumblePath=O;exports.debounce=Q;exports.debounced=Ke;exports.decimalRound=Z;exports.deepFreeze=re;exports.diff=oe;exports.flatten=J;exports.forEachEntryDeep=ie;exports.forEachNestedObject=ce;exports.getPath=N;exports.isSubset=_e;exports.isTemplate=Ct;exports.isTemplateFn=vt;exports.lockToAnimationFrames=Y;exports.lockedToAnimationFrames=Xe;exports.mergeDeep=L;exports.mergePropertiesDeep=B;exports.omit=pt;exports.onNextTick=$e;exports.parseFileSize=St;exports.range=Ue;exports.setPath=gt;exports.simpleMetadataDecoratorApplicator=Je;exports.template=bt;exports.tickDelay=Qe;exports.toFileSizeString=Ze;exports.traversePath=yt;exports.values=ht;
|