@blueskyproject/tiled 0.0.5 → 0.0.6
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/dist/components/ButtonCopyToClipboard.d.ts +2 -1
- package/dist/components/ButtonCopyToClipboard.d.ts.map +1 -1
- package/dist/components/Tiled/types.d.ts +1 -1
- package/dist/components/Tiled/types.d.ts.map +1 -1
- package/dist/components/Tiled/useTiled.d.ts.map +1 -1
- package/dist/tiled.es.js +603 -602
- package/dist/tiled.umd.js +19 -19
- package/package.json +1 -1
package/dist/tiled.es.js
CHANGED
|
@@ -16,15 +16,15 @@ var bn;
|
|
|
16
16
|
function ls() {
|
|
17
17
|
if (bn) return Xt;
|
|
18
18
|
bn = 1;
|
|
19
|
-
var e = ft, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
20
|
-
function
|
|
19
|
+
var e = ft, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
20
|
+
function s(a, c, d) {
|
|
21
21
|
var f, A = {}, b = null, w = null;
|
|
22
22
|
d !== void 0 && (b = "" + d), c.key !== void 0 && (b = "" + c.key), c.ref !== void 0 && (w = c.ref);
|
|
23
|
-
for (f in c) r.call(c, f) && !
|
|
23
|
+
for (f in c) r.call(c, f) && !i.hasOwnProperty(f) && (A[f] = c[f]);
|
|
24
24
|
if (a && a.defaultProps) for (f in c = a.defaultProps, c) A[f] === void 0 && (A[f] = c[f]);
|
|
25
25
|
return { $$typeof: t, type: a, key: b, ref: w, props: A, _owner: o.current };
|
|
26
26
|
}
|
|
27
|
-
return Xt.Fragment = n, Xt.jsx =
|
|
27
|
+
return Xt.Fragment = n, Xt.jsx = s, Xt.jsxs = s, Xt;
|
|
28
28
|
}
|
|
29
29
|
var Qt = {};
|
|
30
30
|
/**
|
|
@@ -39,7 +39,7 @@ var Qt = {};
|
|
|
39
39
|
var vn;
|
|
40
40
|
function cs() {
|
|
41
41
|
return vn || (vn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
42
|
-
var e = ft, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"),
|
|
42
|
+
var e = ft, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), p = Symbol.iterator, g = "@@iterator";
|
|
43
43
|
function h(u) {
|
|
44
44
|
if (u === null || typeof u != "object")
|
|
45
45
|
return null;
|
|
@@ -67,7 +67,7 @@ function cs() {
|
|
|
67
67
|
var O = !1, E = !1, T = !1, S = !1, y = !1, N;
|
|
68
68
|
N = Symbol.for("react.module.reference");
|
|
69
69
|
function Ae(u) {
|
|
70
|
-
return !!(typeof u == "string" || typeof u == "function" || u === r || u ===
|
|
70
|
+
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || y || u === o || u === d || u === f || S || u === w || O || E || T || typeof u == "object" && u !== null && (u.$$typeof === b || u.$$typeof === A || u.$$typeof === s || u.$$typeof === a || u.$$typeof === c || // This needs to include all possible module reference object
|
|
71
71
|
// types supported by any Flight configuration anywhere since
|
|
72
72
|
// we don't know which Flight build this will end up being used
|
|
73
73
|
// with.
|
|
@@ -95,7 +95,7 @@ function cs() {
|
|
|
95
95
|
return "Fragment";
|
|
96
96
|
case n:
|
|
97
97
|
return "Portal";
|
|
98
|
-
case
|
|
98
|
+
case i:
|
|
99
99
|
return "Profiler";
|
|
100
100
|
case o:
|
|
101
101
|
return "StrictMode";
|
|
@@ -109,7 +109,7 @@ function cs() {
|
|
|
109
109
|
case a:
|
|
110
110
|
var v = u;
|
|
111
111
|
return ae(v) + ".Consumer";
|
|
112
|
-
case
|
|
112
|
+
case s:
|
|
113
113
|
var I = u;
|
|
114
114
|
return ae(I._context) + ".Provider";
|
|
115
115
|
case c:
|
|
@@ -190,7 +190,7 @@ function cs() {
|
|
|
190
190
|
te < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
var
|
|
193
|
+
var R = x.ReactCurrentDispatcher, H;
|
|
194
194
|
function Q(u, v, I) {
|
|
195
195
|
{
|
|
196
196
|
if (H === void 0)
|
|
@@ -222,7 +222,7 @@ function cs() {
|
|
|
222
222
|
var ee = Error.prepareStackTrace;
|
|
223
223
|
Error.prepareStackTrace = void 0;
|
|
224
224
|
var re;
|
|
225
|
-
re =
|
|
225
|
+
re = R.current, R.current = null, ce();
|
|
226
226
|
try {
|
|
227
227
|
if (v) {
|
|
228
228
|
var Y = function() {
|
|
@@ -275,7 +275,7 @@ function cs() {
|
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
} finally {
|
|
278
|
-
ue = !1,
|
|
278
|
+
ue = !1, R.current = re, Le(), Error.prepareStackTrace = ee;
|
|
279
279
|
}
|
|
280
280
|
var Ze = u ? u.displayName || u.name : "", ut = Ze ? Q(Ze) : "";
|
|
281
281
|
return typeof u == "function" && fe.set(u, ut), ut;
|
|
@@ -559,7 +559,7 @@ Check the top-level render call using <` + I + ">.");
|
|
|
559
559
|
typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function _(u) {
|
|
563
563
|
{
|
|
564
564
|
for (var v = Object.keys(u.props), I = 0; I < v.length; I++) {
|
|
565
565
|
var W = v[I];
|
|
@@ -613,7 +613,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
613
613
|
<%s key={someKey} {...props} />`, Or, ut, ts, ut), P[ut + Or] = !0;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
return u === r ?
|
|
616
|
+
return u === r ? _(ne) : ct(ne), ne;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
function me(u, v, I) {
|
|
@@ -666,10 +666,10 @@ function rr(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
666
666
|
for (r = 0, o = e.length; r < o; r++)
|
|
667
667
|
t.call(null, e[r], r, e);
|
|
668
668
|
else {
|
|
669
|
-
const
|
|
669
|
+
const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), s = i.length;
|
|
670
670
|
let a;
|
|
671
|
-
for (r = 0; r <
|
|
672
|
-
a =
|
|
671
|
+
for (r = 0; r < s; r++)
|
|
672
|
+
a = i[r], t.call(null, e[a], a, e);
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
function so(e, t) {
|
|
@@ -684,26 +684,26 @@ function so(e, t) {
|
|
|
684
684
|
const jt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, io = (e) => !er(e) && e !== jt;
|
|
685
685
|
function Vr() {
|
|
686
686
|
const { caseless: e } = io(this) && this || {}, t = {}, n = (r, o) => {
|
|
687
|
-
const
|
|
688
|
-
Ar(t[
|
|
687
|
+
const i = e && so(t, o) || o;
|
|
688
|
+
Ar(t[i]) && Ar(r) ? t[i] = Vr(t[i], r) : Ar(r) ? t[i] = Vr({}, r) : Vt(r) ? t[i] = r.slice() : t[i] = r;
|
|
689
689
|
};
|
|
690
690
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
691
691
|
arguments[r] && rr(arguments[r], n);
|
|
692
692
|
return t;
|
|
693
693
|
}
|
|
694
|
-
const Es = (e, t, n, { allOwnKeys: r } = {}) => (rr(t, (o,
|
|
695
|
-
n && We(o) ? e[
|
|
694
|
+
const Es = (e, t, n, { allOwnKeys: r } = {}) => (rr(t, (o, i) => {
|
|
695
|
+
n && We(o) ? e[i] = ro(o, n) : e[i] = o;
|
|
696
696
|
}, { allOwnKeys: r }), e), Rs = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), _s = (e, t, n, r) => {
|
|
697
697
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
698
698
|
value: t.prototype
|
|
699
699
|
}), n && Object.assign(e.prototype, n);
|
|
700
700
|
}, Os = (e, t, n, r) => {
|
|
701
|
-
let o,
|
|
701
|
+
let o, i, s;
|
|
702
702
|
const a = {};
|
|
703
703
|
if (t = t || {}, e == null) return t;
|
|
704
704
|
do {
|
|
705
|
-
for (o = Object.getOwnPropertyNames(e),
|
|
706
|
-
|
|
705
|
+
for (o = Object.getOwnPropertyNames(e), i = o.length; i-- > 0; )
|
|
706
|
+
s = o[i], (!r || r(s, e, t)) && !a[s] && (t[s] = e[s], a[s] = !0);
|
|
707
707
|
e = n !== !1 && on(e);
|
|
708
708
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
709
709
|
return t;
|
|
@@ -724,8 +724,8 @@ const Es = (e, t, n, { allOwnKeys: r } = {}) => (rr(t, (o, s) => {
|
|
|
724
724
|
const r = (e && e[Symbol.iterator]).call(e);
|
|
725
725
|
let o;
|
|
726
726
|
for (; (o = r.next()) && !o.done; ) {
|
|
727
|
-
const
|
|
728
|
-
t.call(e,
|
|
727
|
+
const i = o.value;
|
|
728
|
+
t.call(e, i[0], i[1]);
|
|
729
729
|
}
|
|
730
730
|
}, Ws = (e, t) => {
|
|
731
731
|
let n;
|
|
@@ -740,9 +740,9 @@ const Es = (e, t, n, { allOwnKeys: r } = {}) => (rr(t, (o, s) => {
|
|
|
740
740
|
}
|
|
741
741
|
), yn = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ms = Ue("RegExp"), ao = (e, t) => {
|
|
742
742
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
743
|
-
rr(n, (o,
|
|
744
|
-
let
|
|
745
|
-
(
|
|
743
|
+
rr(n, (o, i) => {
|
|
744
|
+
let s;
|
|
745
|
+
(s = t(o, i, e)) !== !1 && (r[i] = s || o);
|
|
746
746
|
}), Object.defineProperties(e, r);
|
|
747
747
|
}, Zs = (e) => {
|
|
748
748
|
ao(e, (t, n) => {
|
|
@@ -761,8 +761,8 @@ const Es = (e, t, n, { allOwnKeys: r } = {}) => (rr(t, (o, s) => {
|
|
|
761
761
|
});
|
|
762
762
|
}, Ds = (e, t) => {
|
|
763
763
|
const n = {}, r = (o) => {
|
|
764
|
-
o.forEach((
|
|
765
|
-
n[
|
|
764
|
+
o.forEach((i) => {
|
|
765
|
+
n[i] = !0;
|
|
766
766
|
});
|
|
767
767
|
};
|
|
768
768
|
return Vt(e) ? r(e) : r(String(e).split(t)), n;
|
|
@@ -788,18 +788,18 @@ const zs = (e) => {
|
|
|
788
788
|
return;
|
|
789
789
|
if (!("toJSON" in r)) {
|
|
790
790
|
t[o] = r;
|
|
791
|
-
const
|
|
792
|
-
return rr(r, (
|
|
793
|
-
const c = n(
|
|
794
|
-
!er(c) && (
|
|
795
|
-
}), t[o] = void 0,
|
|
791
|
+
const i = Vt(r) ? [] : {};
|
|
792
|
+
return rr(r, (s, a) => {
|
|
793
|
+
const c = n(s, o + 1);
|
|
794
|
+
!er(c) && (i[a] = c);
|
|
795
|
+
}), t[o] = void 0, i;
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
return r;
|
|
799
799
|
};
|
|
800
800
|
return n(e, 0);
|
|
801
|
-
}, Js = Ue("AsyncFunction"), Ys = (e) => e && (kr(e) || We(e)) && We(e.then) && We(e.catch), co = ((e, t) => e ? setImmediate : t ? ((n, r) => (jt.addEventListener("message", ({ source: o, data:
|
|
802
|
-
o === jt &&
|
|
801
|
+
}, Js = Ue("AsyncFunction"), Ys = (e) => e && (kr(e) || We(e)) && We(e.then) && We(e.catch), co = ((e, t) => e ? setImmediate : t ? ((n, r) => (jt.addEventListener("message", ({ source: o, data: i }) => {
|
|
802
|
+
o === jt && i === n && r.length && r.shift()();
|
|
803
803
|
}, !1), (o) => {
|
|
804
804
|
r.push(o), jt.postMessage(n, "*");
|
|
805
805
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
@@ -909,11 +909,11 @@ const uo = V.prototype, fo = {};
|
|
|
909
909
|
});
|
|
910
910
|
Object.defineProperties(V, fo);
|
|
911
911
|
Object.defineProperty(uo, "isAxiosError", { value: !0 });
|
|
912
|
-
V.from = (e, t, n, r, o,
|
|
913
|
-
const
|
|
914
|
-
return m.toFlatObject(e,
|
|
912
|
+
V.from = (e, t, n, r, o, i) => {
|
|
913
|
+
const s = Object.create(uo);
|
|
914
|
+
return m.toFlatObject(e, s, function(c) {
|
|
915
915
|
return c !== Error.prototype;
|
|
916
|
-
}, (a) => a !== "isAxiosError"), V.call(
|
|
916
|
+
}, (a) => a !== "isAxiosError"), V.call(s, e.message, t, n, r, o), s.cause = e, s.name = e.name, i && Object.assign(s, i), s;
|
|
917
917
|
};
|
|
918
918
|
const Qs = null;
|
|
919
919
|
function Hr(e) {
|
|
@@ -923,8 +923,8 @@ function Ao(e) {
|
|
|
923
923
|
return m.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
924
924
|
}
|
|
925
925
|
function In(e, t, n) {
|
|
926
|
-
return e ? e.concat(t).map(function(o,
|
|
927
|
-
return o = Ao(o), !n &&
|
|
926
|
+
return e ? e.concat(t).map(function(o, i) {
|
|
927
|
+
return o = Ao(o), !n && i ? "[" + o + "]" : o;
|
|
928
928
|
}).join(n ? "." : "") : t;
|
|
929
929
|
}
|
|
930
930
|
function qs(e) {
|
|
@@ -943,7 +943,7 @@ function Ir(e, t, n) {
|
|
|
943
943
|
}, !1, function(g, h) {
|
|
944
944
|
return !m.isUndefined(h[g]);
|
|
945
945
|
});
|
|
946
|
-
const r = n.metaTokens, o = n.visitor || f,
|
|
946
|
+
const r = n.metaTokens, o = n.visitor || f, i = n.dots, s = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && m.isSpecCompliantForm(t);
|
|
947
947
|
if (!m.isFunction(o))
|
|
948
948
|
throw new TypeError("visitor must be a function");
|
|
949
949
|
function d(p) {
|
|
@@ -963,12 +963,12 @@ function Ir(e, t, n) {
|
|
|
963
963
|
return g = Ao(g), x.forEach(function(C, O) {
|
|
964
964
|
!(m.isUndefined(C) || C === null) && t.append(
|
|
965
965
|
// eslint-disable-next-line no-nested-ternary
|
|
966
|
-
|
|
966
|
+
s === !0 ? In([g], O, i) : s === null ? g : g + "[]",
|
|
967
967
|
d(C)
|
|
968
968
|
);
|
|
969
969
|
}), !1;
|
|
970
970
|
}
|
|
971
|
-
return Hr(p) ? !0 : (t.append(In(h, g,
|
|
971
|
+
return Hr(p) ? !0 : (t.append(In(h, g, i), d(p)), !1);
|
|
972
972
|
}
|
|
973
973
|
const A = [], b = Object.assign($s, {
|
|
974
974
|
defaultVisitor: f,
|
|
@@ -1034,10 +1034,10 @@ function mo(e, t, n) {
|
|
|
1034
1034
|
serialize: n
|
|
1035
1035
|
});
|
|
1036
1036
|
const o = n && n.serialize;
|
|
1037
|
-
let
|
|
1038
|
-
if (o ?
|
|
1039
|
-
const
|
|
1040
|
-
|
|
1037
|
+
let i;
|
|
1038
|
+
if (o ? i = o(t, n) : i = m.isURLSearchParams(t) ? t.toString() : new sn(t, n).toString(r), i) {
|
|
1039
|
+
const s = e.indexOf("#");
|
|
1040
|
+
s !== -1 && (e = e.slice(0, s)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
1041
1041
|
}
|
|
1042
1042
|
return e;
|
|
1043
1043
|
}
|
|
@@ -1121,8 +1121,8 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ii
|
|
|
1121
1121
|
};
|
|
1122
1122
|
function li(e, t) {
|
|
1123
1123
|
return Ir(e, new Ee.classes.URLSearchParams(), Object.assign({
|
|
1124
|
-
visitor: function(n, r, o,
|
|
1125
|
-
return Ee.isNode && m.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) :
|
|
1124
|
+
visitor: function(n, r, o, i) {
|
|
1125
|
+
return Ee.isNode && m.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
1126
1126
|
}
|
|
1127
1127
|
}, t));
|
|
1128
1128
|
}
|
|
@@ -1133,17 +1133,17 @@ function ui(e) {
|
|
|
1133
1133
|
const t = {}, n = Object.keys(e);
|
|
1134
1134
|
let r;
|
|
1135
1135
|
const o = n.length;
|
|
1136
|
-
let
|
|
1136
|
+
let i;
|
|
1137
1137
|
for (r = 0; r < o; r++)
|
|
1138
|
-
|
|
1138
|
+
i = n[r], t[i] = e[i];
|
|
1139
1139
|
return t;
|
|
1140
1140
|
}
|
|
1141
1141
|
function go(e) {
|
|
1142
|
-
function t(n, r, o,
|
|
1143
|
-
let
|
|
1144
|
-
if (
|
|
1145
|
-
const a = Number.isFinite(+
|
|
1146
|
-
return
|
|
1142
|
+
function t(n, r, o, i) {
|
|
1143
|
+
let s = n[i++];
|
|
1144
|
+
if (s === "__proto__") return !0;
|
|
1145
|
+
const a = Number.isFinite(+s), c = i >= n.length;
|
|
1146
|
+
return s = !s && m.isArray(o) ? o.length : s, c ? (m.hasOwnProp(o, s) ? o[s] = [o[s], r] : o[s] = r, !a) : ((!o[s] || !m.isObject(o[s])) && (o[s] = []), t(n, r, o[s], i) && m.isArray(o[s]) && (o[s] = ui(o[s])), !a);
|
|
1147
1147
|
}
|
|
1148
1148
|
if (m.isFormData(e) && m.isFunction(e.entries)) {
|
|
1149
1149
|
const n = {};
|
|
@@ -1167,8 +1167,8 @@ const nr = {
|
|
|
1167
1167
|
transitional: ho,
|
|
1168
1168
|
adapter: ["xhr", "http", "fetch"],
|
|
1169
1169
|
transformRequest: [function(t, n) {
|
|
1170
|
-
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1,
|
|
1171
|
-
if (
|
|
1170
|
+
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, i = m.isObject(t);
|
|
1171
|
+
if (i && m.isHTMLForm(t) && (t = new FormData(t)), m.isFormData(t))
|
|
1172
1172
|
return o ? JSON.stringify(go(t)) : t;
|
|
1173
1173
|
if (m.isArrayBuffer(t) || m.isBuffer(t) || m.isStream(t) || m.isFile(t) || m.isBlob(t) || m.isReadableStream(t))
|
|
1174
1174
|
return t;
|
|
@@ -1177,7 +1177,7 @@ const nr = {
|
|
|
1177
1177
|
if (m.isURLSearchParams(t))
|
|
1178
1178
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
1179
1179
|
let a;
|
|
1180
|
-
if (
|
|
1180
|
+
if (i) {
|
|
1181
1181
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1182
1182
|
return li(t, this.formSerializer).toString();
|
|
1183
1183
|
if ((a = m.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
@@ -1189,18 +1189,18 @@ const nr = {
|
|
|
1189
1189
|
);
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
|
-
return
|
|
1192
|
+
return i || o ? (n.setContentType("application/json", !1), di(t)) : t;
|
|
1193
1193
|
}],
|
|
1194
1194
|
transformResponse: [function(t) {
|
|
1195
1195
|
const n = this.transitional || nr.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
1196
1196
|
if (m.isResponse(t) || m.isReadableStream(t))
|
|
1197
1197
|
return t;
|
|
1198
1198
|
if (t && m.isString(t) && (r && !this.responseType || o)) {
|
|
1199
|
-
const
|
|
1199
|
+
const s = !(n && n.silentJSONParsing) && o;
|
|
1200
1200
|
try {
|
|
1201
1201
|
return JSON.parse(t);
|
|
1202
1202
|
} catch (a) {
|
|
1203
|
-
if (
|
|
1203
|
+
if (s)
|
|
1204
1204
|
throw a.name === "SyntaxError" ? V.from(a, V.ERR_BAD_RESPONSE, this, null, this.response) : a;
|
|
1205
1205
|
}
|
|
1206
1206
|
}
|
|
@@ -1254,8 +1254,8 @@ const fi = m.toObjectSet([
|
|
|
1254
1254
|
const t = {};
|
|
1255
1255
|
let n, r, o;
|
|
1256
1256
|
return e && e.split(`
|
|
1257
|
-
`).forEach(function(
|
|
1258
|
-
o =
|
|
1257
|
+
`).forEach(function(s) {
|
|
1258
|
+
o = s.indexOf(":"), n = s.substring(0, o).trim().toLowerCase(), r = s.substring(o + 1).trim(), !(!n || t[n] && fi[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
1259
1259
|
}), t;
|
|
1260
1260
|
}, jn = Symbol("internals");
|
|
1261
1261
|
function qt(e) {
|
|
@@ -1289,8 +1289,8 @@ function gi(e, t) {
|
|
|
1289
1289
|
const n = m.toCamelCase(" " + t);
|
|
1290
1290
|
["get", "set", "has"].forEach((r) => {
|
|
1291
1291
|
Object.defineProperty(e, r + n, {
|
|
1292
|
-
value: function(o,
|
|
1293
|
-
return this[r].call(this, t, o,
|
|
1292
|
+
value: function(o, i, s) {
|
|
1293
|
+
return this[r].call(this, t, o, i, s);
|
|
1294
1294
|
},
|
|
1295
1295
|
configurable: !0
|
|
1296
1296
|
});
|
|
@@ -1302,23 +1302,23 @@ class Oe {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
set(t, n, r) {
|
|
1304
1304
|
const o = this;
|
|
1305
|
-
function
|
|
1305
|
+
function i(a, c, d) {
|
|
1306
1306
|
const f = qt(c);
|
|
1307
1307
|
if (!f)
|
|
1308
1308
|
throw new Error("header name must be a non-empty string");
|
|
1309
1309
|
const A = m.findKey(o, f);
|
|
1310
1310
|
(!A || o[A] === void 0 || d === !0 || d === void 0 && o[A] !== !1) && (o[A || c] = pr(a));
|
|
1311
1311
|
}
|
|
1312
|
-
const
|
|
1312
|
+
const s = (a, c) => m.forEach(a, (d, f) => i(d, f, c));
|
|
1313
1313
|
if (m.isPlainObject(t) || t instanceof this.constructor)
|
|
1314
|
-
|
|
1314
|
+
s(t, n);
|
|
1315
1315
|
else if (m.isString(t) && (t = t.trim()) && !mi(t))
|
|
1316
|
-
|
|
1316
|
+
s(Ai(t), n);
|
|
1317
1317
|
else if (m.isHeaders(t))
|
|
1318
1318
|
for (const [a, c] of t.entries())
|
|
1319
|
-
|
|
1319
|
+
i(c, a, r);
|
|
1320
1320
|
else
|
|
1321
|
-
t != null &&
|
|
1321
|
+
t != null && i(n, t, r);
|
|
1322
1322
|
return this;
|
|
1323
1323
|
}
|
|
1324
1324
|
get(t, n) {
|
|
@@ -1348,33 +1348,33 @@ class Oe {
|
|
|
1348
1348
|
delete(t, n) {
|
|
1349
1349
|
const r = this;
|
|
1350
1350
|
let o = !1;
|
|
1351
|
-
function s
|
|
1352
|
-
if (
|
|
1353
|
-
const a = m.findKey(r,
|
|
1351
|
+
function i(s) {
|
|
1352
|
+
if (s = qt(s), s) {
|
|
1353
|
+
const a = m.findKey(r, s);
|
|
1354
1354
|
a && (!n || Nr(r, r[a], a, n)) && (delete r[a], o = !0);
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
|
-
return m.isArray(t) ? t.forEach(
|
|
1357
|
+
return m.isArray(t) ? t.forEach(i) : i(t), o;
|
|
1358
1358
|
}
|
|
1359
1359
|
clear(t) {
|
|
1360
1360
|
const n = Object.keys(this);
|
|
1361
1361
|
let r = n.length, o = !1;
|
|
1362
1362
|
for (; r--; ) {
|
|
1363
|
-
const
|
|
1364
|
-
(!t || Nr(this, this[
|
|
1363
|
+
const i = n[r];
|
|
1364
|
+
(!t || Nr(this, this[i], i, t, !0)) && (delete this[i], o = !0);
|
|
1365
1365
|
}
|
|
1366
1366
|
return o;
|
|
1367
1367
|
}
|
|
1368
1368
|
normalize(t) {
|
|
1369
1369
|
const n = this, r = {};
|
|
1370
|
-
return m.forEach(this, (o,
|
|
1371
|
-
const
|
|
1372
|
-
if (
|
|
1373
|
-
n[
|
|
1370
|
+
return m.forEach(this, (o, i) => {
|
|
1371
|
+
const s = m.findKey(r, i);
|
|
1372
|
+
if (s) {
|
|
1373
|
+
n[s] = pr(o), delete n[i];
|
|
1374
1374
|
return;
|
|
1375
1375
|
}
|
|
1376
|
-
const a = t ? hi(
|
|
1377
|
-
a !==
|
|
1376
|
+
const a = t ? hi(i) : String(i).trim();
|
|
1377
|
+
a !== i && delete n[i], n[a] = pr(o), r[a] = !0;
|
|
1378
1378
|
}), this;
|
|
1379
1379
|
}
|
|
1380
1380
|
concat(...t) {
|
|
@@ -1407,11 +1407,11 @@ class Oe {
|
|
|
1407
1407
|
const r = (this[jn] = this[jn] = {
|
|
1408
1408
|
accessors: {}
|
|
1409
1409
|
}).accessors, o = this.prototype;
|
|
1410
|
-
function s
|
|
1411
|
-
const a = qt(
|
|
1412
|
-
r[a] || (gi(o,
|
|
1410
|
+
function i(s) {
|
|
1411
|
+
const a = qt(s);
|
|
1412
|
+
r[a] || (gi(o, s), r[a] = !0);
|
|
1413
1413
|
}
|
|
1414
|
-
return m.isArray(t) ? t.forEach(
|
|
1414
|
+
return m.isArray(t) ? t.forEach(i) : i(t), this;
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
1417
|
Oe.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
@@ -1427,10 +1427,10 @@ m.reduceDescriptors(Oe.prototype, ({ value: e }, t) => {
|
|
|
1427
1427
|
m.freezeMethods(Oe);
|
|
1428
1428
|
function Tr(e, t) {
|
|
1429
1429
|
const n = this || nr, r = t || n, o = Oe.from(r.headers);
|
|
1430
|
-
let
|
|
1430
|
+
let i = r.data;
|
|
1431
1431
|
return m.forEach(e, function(a) {
|
|
1432
|
-
|
|
1433
|
-
}), o.normalize(),
|
|
1432
|
+
i = a.call(n, i, o.normalize(), t ? t.status : void 0);
|
|
1433
|
+
}), o.normalize(), i;
|
|
1434
1434
|
}
|
|
1435
1435
|
function wo(e) {
|
|
1436
1436
|
return !!(e && e.__CANCEL__);
|
|
@@ -1458,45 +1458,45 @@ function wi(e) {
|
|
|
1458
1458
|
function bi(e, t) {
|
|
1459
1459
|
e = e || 10;
|
|
1460
1460
|
const n = new Array(e), r = new Array(e);
|
|
1461
|
-
let o = 0,
|
|
1461
|
+
let o = 0, i = 0, s;
|
|
1462
1462
|
return t = t !== void 0 ? t : 1e3, function(c) {
|
|
1463
|
-
const d = Date.now(), f = r[
|
|
1464
|
-
|
|
1465
|
-
let A =
|
|
1463
|
+
const d = Date.now(), f = r[i];
|
|
1464
|
+
s || (s = d), n[o] = c, r[o] = d;
|
|
1465
|
+
let A = i, b = 0;
|
|
1466
1466
|
for (; A !== o; )
|
|
1467
1467
|
b += n[A++], A = A % e;
|
|
1468
|
-
if (o = (o + 1) % e, o ===
|
|
1468
|
+
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), d - s < t)
|
|
1469
1469
|
return;
|
|
1470
1470
|
const w = f && d - f;
|
|
1471
1471
|
return w ? Math.round(b * 1e3 / w) : void 0;
|
|
1472
1472
|
};
|
|
1473
1473
|
}
|
|
1474
1474
|
function vi(e, t) {
|
|
1475
|
-
let n = 0, r = 1e3 / t, o,
|
|
1476
|
-
const
|
|
1477
|
-
n = f, o = null,
|
|
1475
|
+
let n = 0, r = 1e3 / t, o, i;
|
|
1476
|
+
const s = (d, f = Date.now()) => {
|
|
1477
|
+
n = f, o = null, i && (clearTimeout(i), i = null), e.apply(null, d);
|
|
1478
1478
|
};
|
|
1479
1479
|
return [(...d) => {
|
|
1480
1480
|
const f = Date.now(), A = f - n;
|
|
1481
|
-
A >= r ?
|
|
1482
|
-
|
|
1481
|
+
A >= r ? s(d, f) : (o = d, i || (i = setTimeout(() => {
|
|
1482
|
+
i = null, s(o);
|
|
1483
1483
|
}, r - A)));
|
|
1484
|
-
}, () => o &&
|
|
1484
|
+
}, () => o && s(o)];
|
|
1485
1485
|
}
|
|
1486
1486
|
const hr = (e, t, n = 3) => {
|
|
1487
1487
|
let r = 0;
|
|
1488
1488
|
const o = bi(50, 250);
|
|
1489
|
-
return vi((
|
|
1490
|
-
const
|
|
1491
|
-
r =
|
|
1489
|
+
return vi((i) => {
|
|
1490
|
+
const s = i.loaded, a = i.lengthComputable ? i.total : void 0, c = s - r, d = o(c), f = s <= a;
|
|
1491
|
+
r = s;
|
|
1492
1492
|
const A = {
|
|
1493
|
-
loaded:
|
|
1493
|
+
loaded: s,
|
|
1494
1494
|
total: a,
|
|
1495
|
-
progress: a ?
|
|
1495
|
+
progress: a ? s / a : void 0,
|
|
1496
1496
|
bytes: c,
|
|
1497
1497
|
rate: d || void 0,
|
|
1498
|
-
estimated: d && a && f ? (a -
|
|
1499
|
-
event:
|
|
1498
|
+
estimated: d && a && f ? (a - s) / d : void 0,
|
|
1499
|
+
event: i,
|
|
1500
1500
|
lengthComputable: a != null,
|
|
1501
1501
|
[t ? "download" : "upload"]: !0
|
|
1502
1502
|
};
|
|
@@ -1515,9 +1515,9 @@ const hr = (e, t, n = 3) => {
|
|
|
1515
1515
|
) : () => !0, yi = Ee.hasStandardBrowserEnv ? (
|
|
1516
1516
|
// Standard browser envs support document.cookie
|
|
1517
1517
|
{
|
|
1518
|
-
write(e, t, n, r, o,
|
|
1519
|
-
const
|
|
1520
|
-
m.isNumber(n) &&
|
|
1518
|
+
write(e, t, n, r, o, i) {
|
|
1519
|
+
const s = [e + "=" + encodeURIComponent(t)];
|
|
1520
|
+
m.isNumber(n) && s.push("expires=" + new Date(n).toGMTString()), m.isString(r) && s.push("path=" + r), m.isString(o) && s.push("domain=" + o), i === !0 && s.push("secure"), document.cookie = s.join("; ");
|
|
1521
1521
|
},
|
|
1522
1522
|
read(e) {
|
|
1523
1523
|
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
@@ -1561,11 +1561,11 @@ function _t(e, t) {
|
|
|
1561
1561
|
return r(void 0, d, A, b);
|
|
1562
1562
|
} else return r(d, f, A, b);
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1564
|
+
function i(d, f) {
|
|
1565
1565
|
if (!m.isUndefined(f))
|
|
1566
1566
|
return r(void 0, f);
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function s(d, f) {
|
|
1569
1569
|
if (m.isUndefined(f)) {
|
|
1570
1570
|
if (!m.isUndefined(d))
|
|
1571
1571
|
return r(void 0, d);
|
|
@@ -1578,33 +1578,33 @@ function _t(e, t) {
|
|
|
1578
1578
|
return r(void 0, d);
|
|
1579
1579
|
}
|
|
1580
1580
|
const c = {
|
|
1581
|
-
url:
|
|
1582
|
-
method:
|
|
1583
|
-
data:
|
|
1584
|
-
baseURL:
|
|
1585
|
-
transformRequest:
|
|
1586
|
-
transformResponse:
|
|
1587
|
-
paramsSerializer:
|
|
1588
|
-
timeout:
|
|
1589
|
-
timeoutMessage:
|
|
1590
|
-
withCredentials:
|
|
1591
|
-
withXSRFToken:
|
|
1592
|
-
adapter:
|
|
1593
|
-
responseType:
|
|
1594
|
-
xsrfCookieName:
|
|
1595
|
-
xsrfHeaderName:
|
|
1596
|
-
onUploadProgress:
|
|
1597
|
-
onDownloadProgress:
|
|
1598
|
-
decompress:
|
|
1599
|
-
maxContentLength:
|
|
1600
|
-
maxBodyLength:
|
|
1601
|
-
beforeRedirect:
|
|
1602
|
-
transport:
|
|
1603
|
-
httpAgent:
|
|
1604
|
-
httpsAgent:
|
|
1605
|
-
cancelToken:
|
|
1606
|
-
socketPath:
|
|
1607
|
-
responseEncoding:
|
|
1581
|
+
url: i,
|
|
1582
|
+
method: i,
|
|
1583
|
+
data: i,
|
|
1584
|
+
baseURL: s,
|
|
1585
|
+
transformRequest: s,
|
|
1586
|
+
transformResponse: s,
|
|
1587
|
+
paramsSerializer: s,
|
|
1588
|
+
timeout: s,
|
|
1589
|
+
timeoutMessage: s,
|
|
1590
|
+
withCredentials: s,
|
|
1591
|
+
withXSRFToken: s,
|
|
1592
|
+
adapter: s,
|
|
1593
|
+
responseType: s,
|
|
1594
|
+
xsrfCookieName: s,
|
|
1595
|
+
xsrfHeaderName: s,
|
|
1596
|
+
onUploadProgress: s,
|
|
1597
|
+
onDownloadProgress: s,
|
|
1598
|
+
decompress: s,
|
|
1599
|
+
maxContentLength: s,
|
|
1600
|
+
maxBodyLength: s,
|
|
1601
|
+
beforeRedirect: s,
|
|
1602
|
+
transport: s,
|
|
1603
|
+
httpAgent: s,
|
|
1604
|
+
httpsAgent: s,
|
|
1605
|
+
cancelToken: s,
|
|
1606
|
+
socketPath: s,
|
|
1607
|
+
responseEncoding: s,
|
|
1608
1608
|
validateStatus: a,
|
|
1609
1609
|
headers: (d, f, A) => o(_n(d), _n(f), A, !0)
|
|
1610
1610
|
};
|
|
@@ -1615,30 +1615,30 @@ function _t(e, t) {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
const xo = (e) => {
|
|
1617
1617
|
const t = _t({}, e);
|
|
1618
|
-
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName:
|
|
1619
|
-
t.headers =
|
|
1618
|
+
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: i, headers: s, auth: a } = t;
|
|
1619
|
+
t.headers = s = Oe.from(s), t.url = mo(vo(t.baseURL, t.url), e.params, e.paramsSerializer), a && s.set(
|
|
1620
1620
|
"Authorization",
|
|
1621
1621
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
1622
1622
|
);
|
|
1623
1623
|
let c;
|
|
1624
1624
|
if (m.isFormData(n)) {
|
|
1625
1625
|
if (Ee.hasStandardBrowserEnv || Ee.hasStandardBrowserWebWorkerEnv)
|
|
1626
|
-
|
|
1627
|
-
else if ((c =
|
|
1626
|
+
s.setContentType(void 0);
|
|
1627
|
+
else if ((c = s.getContentType()) !== !1) {
|
|
1628
1628
|
const [d, ...f] = c ? c.split(";").map((A) => A.trim()).filter(Boolean) : [];
|
|
1629
|
-
|
|
1629
|
+
s.setContentType([d || "multipart/form-data", ...f].join("; "));
|
|
1630
1630
|
}
|
|
1631
1631
|
}
|
|
1632
1632
|
if (Ee.hasStandardBrowserEnv && (r && m.isFunction(r) && (r = r(t)), r || r !== !1 && xi(t.url))) {
|
|
1633
|
-
const d = o &&
|
|
1634
|
-
d &&
|
|
1633
|
+
const d = o && i && yi.read(i);
|
|
1634
|
+
d && s.set(o, d);
|
|
1635
1635
|
}
|
|
1636
1636
|
return t;
|
|
1637
1637
|
}, Ci = typeof XMLHttpRequest < "u", Si = Ci && function(e) {
|
|
1638
1638
|
return new Promise(function(n, r) {
|
|
1639
1639
|
const o = xo(e);
|
|
1640
|
-
let
|
|
1641
|
-
const
|
|
1640
|
+
let i = o.data;
|
|
1641
|
+
const s = Oe.from(o.headers).normalize();
|
|
1642
1642
|
let { responseType: a, onUploadProgress: c, onDownloadProgress: d } = o, f, A, b, w, p;
|
|
1643
1643
|
function g() {
|
|
1644
1644
|
w && w(), p && p(), o.cancelToken && o.cancelToken.unsubscribe(f), o.signal && o.signal.removeEventListener("abort", f);
|
|
@@ -1679,7 +1679,7 @@ const xo = (e) => {
|
|
|
1679
1679
|
e,
|
|
1680
1680
|
h
|
|
1681
1681
|
)), h = null;
|
|
1682
|
-
},
|
|
1682
|
+
}, i === void 0 && s.setContentType(null), "setRequestHeader" in h && m.forEach(s.toJSON(), function(O, E) {
|
|
1683
1683
|
h.setRequestHeader(E, O);
|
|
1684
1684
|
}), m.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), a && a !== "json" && (h.responseType = o.responseType), d && ([b, p] = hr(d, !0), h.addEventListener("progress", b)), c && h.upload && ([A, w] = hr(c), h.upload.addEventListener("progress", A), h.upload.addEventListener("loadend", w)), (o.cancelToken || o.signal) && (f = (C) => {
|
|
1685
1685
|
h && (r(!C || C.type ? new Ht(null, e, h) : C), h.abort(), h = null);
|
|
@@ -1689,28 +1689,28 @@ const xo = (e) => {
|
|
|
1689
1689
|
r(new V("Unsupported protocol " + k + ":", V.ERR_BAD_REQUEST, e));
|
|
1690
1690
|
return;
|
|
1691
1691
|
}
|
|
1692
|
-
h.send(
|
|
1692
|
+
h.send(i || null);
|
|
1693
1693
|
});
|
|
1694
1694
|
}, ji = (e, t) => {
|
|
1695
1695
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1696
1696
|
if (t || n) {
|
|
1697
1697
|
let r = new AbortController(), o;
|
|
1698
|
-
const
|
|
1698
|
+
const i = function(d) {
|
|
1699
1699
|
if (!o) {
|
|
1700
1700
|
o = !0, a();
|
|
1701
1701
|
const f = d instanceof Error ? d : this.reason;
|
|
1702
1702
|
r.abort(f instanceof V ? f : new Ht(f instanceof Error ? f.message : f));
|
|
1703
1703
|
}
|
|
1704
1704
|
};
|
|
1705
|
-
let
|
|
1706
|
-
|
|
1705
|
+
let s = t && setTimeout(() => {
|
|
1706
|
+
s = null, i(new V(`timeout ${t} of ms exceeded`, V.ETIMEDOUT));
|
|
1707
1707
|
}, t);
|
|
1708
1708
|
const a = () => {
|
|
1709
|
-
e && (
|
|
1710
|
-
d.unsubscribe ? d.unsubscribe(
|
|
1709
|
+
e && (s && clearTimeout(s), s = null, e.forEach((d) => {
|
|
1710
|
+
d.unsubscribe ? d.unsubscribe(i) : d.removeEventListener("abort", i);
|
|
1711
1711
|
}), e = null);
|
|
1712
1712
|
};
|
|
1713
|
-
e.forEach((d) => d.addEventListener("abort",
|
|
1713
|
+
e.forEach((d) => d.addEventListener("abort", i));
|
|
1714
1714
|
const { signal: c } = r;
|
|
1715
1715
|
return c.unsubscribe = () => m.asap(a), c;
|
|
1716
1716
|
}
|
|
@@ -1744,8 +1744,8 @@ const xo = (e) => {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
}, On = (e, t, n, r) => {
|
|
1746
1746
|
const o = Ri(e, t);
|
|
1747
|
-
let
|
|
1748
|
-
|
|
1747
|
+
let i = 0, s, a = (c) => {
|
|
1748
|
+
s || (s = !0, r && r(c));
|
|
1749
1749
|
};
|
|
1750
1750
|
return new ReadableStream({
|
|
1751
1751
|
async pull(c) {
|
|
@@ -1757,7 +1757,7 @@ const xo = (e) => {
|
|
|
1757
1757
|
}
|
|
1758
1758
|
let A = f.byteLength;
|
|
1759
1759
|
if (n) {
|
|
1760
|
-
let b =
|
|
1760
|
+
let b = i += A;
|
|
1761
1761
|
n(b);
|
|
1762
1762
|
}
|
|
1763
1763
|
c.enqueue(new Uint8Array(f));
|
|
@@ -1820,8 +1820,8 @@ const Bi = async (e) => {
|
|
|
1820
1820
|
method: n,
|
|
1821
1821
|
data: r,
|
|
1822
1822
|
signal: o,
|
|
1823
|
-
cancelToken:
|
|
1824
|
-
timeout:
|
|
1823
|
+
cancelToken: i,
|
|
1824
|
+
timeout: s,
|
|
1825
1825
|
onDownloadProgress: a,
|
|
1826
1826
|
onUploadProgress: c,
|
|
1827
1827
|
responseType: d,
|
|
@@ -1830,7 +1830,7 @@ const Bi = async (e) => {
|
|
|
1830
1830
|
fetchOptions: b
|
|
1831
1831
|
} = xo(e);
|
|
1832
1832
|
d = d ? (d + "").toLowerCase() : "text";
|
|
1833
|
-
let w = ji([o,
|
|
1833
|
+
let w = ji([o, i && i.toAbortSignal()], s), p;
|
|
1834
1834
|
const g = w && w.unsubscribe && (() => {
|
|
1835
1835
|
w.unsubscribe();
|
|
1836
1836
|
});
|
|
@@ -1919,24 +1919,24 @@ const Bn = (e) => `- ${e}`, Wi = (e) => m.isFunction(e) || e === null || e === !
|
|
|
1919
1919
|
const { length: t } = e;
|
|
1920
1920
|
let n, r;
|
|
1921
1921
|
const o = {};
|
|
1922
|
-
for (let
|
|
1923
|
-
n = e[
|
|
1924
|
-
let
|
|
1925
|
-
if (r = n, !Wi(n) && (r = Jr[(
|
|
1926
|
-
throw new V(`Unknown adapter '${
|
|
1922
|
+
for (let i = 0; i < t; i++) {
|
|
1923
|
+
n = e[i];
|
|
1924
|
+
let s;
|
|
1925
|
+
if (r = n, !Wi(n) && (r = Jr[(s = String(n)).toLowerCase()], r === void 0))
|
|
1926
|
+
throw new V(`Unknown adapter '${s}'`);
|
|
1927
1927
|
if (r)
|
|
1928
1928
|
break;
|
|
1929
|
-
o[
|
|
1929
|
+
o[s || "#" + i] = r;
|
|
1930
1930
|
}
|
|
1931
1931
|
if (!r) {
|
|
1932
|
-
const
|
|
1932
|
+
const i = Object.entries(o).map(
|
|
1933
1933
|
([a, c]) => `adapter ${a} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1934
1934
|
);
|
|
1935
|
-
let
|
|
1936
|
-
` +
|
|
1937
|
-
`) : " " + Bn(
|
|
1935
|
+
let s = t ? i.length > 1 ? `since :
|
|
1936
|
+
` + i.map(Bn).join(`
|
|
1937
|
+
`) : " " + Bn(i[0]) : "as no adapter specified";
|
|
1938
1938
|
throw new V(
|
|
1939
|
-
"There is no suitable adapter to dispatch the request " +
|
|
1939
|
+
"There is no suitable adapter to dispatch the request " + s,
|
|
1940
1940
|
"ERR_NOT_SUPPORT"
|
|
1941
1941
|
);
|
|
1942
1942
|
}
|
|
@@ -1974,21 +1974,21 @@ const Co = "1.7.9", Sr = {};
|
|
|
1974
1974
|
});
|
|
1975
1975
|
const Tn = {};
|
|
1976
1976
|
Sr.transitional = function(t, n, r) {
|
|
1977
|
-
function o(
|
|
1978
|
-
return "[Axios v" + Co + "] Transitional option '" +
|
|
1977
|
+
function o(i, s) {
|
|
1978
|
+
return "[Axios v" + Co + "] Transitional option '" + i + "'" + s + (r ? ". " + r : "");
|
|
1979
1979
|
}
|
|
1980
|
-
return (
|
|
1980
|
+
return (i, s, a) => {
|
|
1981
1981
|
if (t === !1)
|
|
1982
1982
|
throw new V(
|
|
1983
|
-
o(
|
|
1983
|
+
o(s, " has been removed" + (n ? " in " + n : "")),
|
|
1984
1984
|
V.ERR_DEPRECATED
|
|
1985
1985
|
);
|
|
1986
|
-
return n && !Tn[
|
|
1986
|
+
return n && !Tn[s] && (Tn[s] = !0, console.warn(
|
|
1987
1987
|
o(
|
|
1988
|
-
|
|
1988
|
+
s,
|
|
1989
1989
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1990
1990
|
)
|
|
1991
|
-
)), t ? t(
|
|
1991
|
+
)), t ? t(i, s, a) : !0;
|
|
1992
1992
|
};
|
|
1993
1993
|
};
|
|
1994
1994
|
Sr.spelling = function(t) {
|
|
@@ -2000,15 +2000,15 @@ function Fi(e, t, n) {
|
|
|
2000
2000
|
const r = Object.keys(e);
|
|
2001
2001
|
let o = r.length;
|
|
2002
2002
|
for (; o-- > 0; ) {
|
|
2003
|
-
const
|
|
2004
|
-
if (
|
|
2005
|
-
const a = e[
|
|
2003
|
+
const i = r[o], s = t[i];
|
|
2004
|
+
if (s) {
|
|
2005
|
+
const a = e[i], c = a === void 0 || s(a, i, e);
|
|
2006
2006
|
if (c !== !0)
|
|
2007
|
-
throw new V("option " +
|
|
2007
|
+
throw new V("option " + i + " must be " + c, V.ERR_BAD_OPTION_VALUE);
|
|
2008
2008
|
continue;
|
|
2009
2009
|
}
|
|
2010
2010
|
if (n !== !0)
|
|
2011
|
-
throw new V("Unknown option " +
|
|
2011
|
+
throw new V("Unknown option " + i, V.ERR_BAD_OPTION);
|
|
2012
2012
|
}
|
|
2013
2013
|
}
|
|
2014
2014
|
const mr = {
|
|
@@ -2037,10 +2037,10 @@ class Et {
|
|
|
2037
2037
|
if (r instanceof Error) {
|
|
2038
2038
|
let o = {};
|
|
2039
2039
|
Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
|
|
2040
|
-
const
|
|
2040
|
+
const i = o.stack ? o.stack.replace(/^.+\n/, "") : "";
|
|
2041
2041
|
try {
|
|
2042
|
-
r.stack ?
|
|
2043
|
-
` +
|
|
2042
|
+
r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
2043
|
+
` + i) : r.stack = i;
|
|
2044
2044
|
} catch {
|
|
2045
2045
|
}
|
|
2046
2046
|
}
|
|
@@ -2049,7 +2049,7 @@ class Et {
|
|
|
2049
2049
|
}
|
|
2050
2050
|
_request(t, n) {
|
|
2051
2051
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = _t(this.defaults, n);
|
|
2052
|
-
const { transitional: r, paramsSerializer: o, headers:
|
|
2052
|
+
const { transitional: r, paramsSerializer: o, headers: i } = n;
|
|
2053
2053
|
r !== void 0 && mr.assertOptions(r, {
|
|
2054
2054
|
silentJSONParsing: qe.transitional(qe.boolean),
|
|
2055
2055
|
forcedJSONParsing: qe.transitional(qe.boolean),
|
|
@@ -2063,16 +2063,16 @@ class Et {
|
|
|
2063
2063
|
baseUrl: qe.spelling("baseURL"),
|
|
2064
2064
|
withXsrfToken: qe.spelling("withXSRFToken")
|
|
2065
2065
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
2066
|
-
let
|
|
2067
|
-
|
|
2068
|
-
|
|
2066
|
+
let s = i && m.merge(
|
|
2067
|
+
i.common,
|
|
2068
|
+
i[n.method]
|
|
2069
2069
|
);
|
|
2070
|
-
|
|
2070
|
+
i && m.forEach(
|
|
2071
2071
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
2072
2072
|
(p) => {
|
|
2073
|
-
delete
|
|
2073
|
+
delete i[p];
|
|
2074
2074
|
}
|
|
2075
|
-
), n.headers = Oe.concat(
|
|
2075
|
+
), n.headers = Oe.concat(s, i);
|
|
2076
2076
|
const a = [];
|
|
2077
2077
|
let c = !0;
|
|
2078
2078
|
this.interceptors.request.forEach(function(g) {
|
|
@@ -2126,14 +2126,14 @@ m.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
2126
2126
|
});
|
|
2127
2127
|
m.forEach(["post", "put", "patch"], function(t) {
|
|
2128
2128
|
function n(r) {
|
|
2129
|
-
return function(
|
|
2129
|
+
return function(i, s, a) {
|
|
2130
2130
|
return this.request(_t(a || {}, {
|
|
2131
2131
|
method: t,
|
|
2132
2132
|
headers: r ? {
|
|
2133
2133
|
"Content-Type": "multipart/form-data"
|
|
2134
2134
|
} : {},
|
|
2135
|
-
url:
|
|
2136
|
-
data:
|
|
2135
|
+
url: i,
|
|
2136
|
+
data: s
|
|
2137
2137
|
}));
|
|
2138
2138
|
};
|
|
2139
2139
|
}
|
|
@@ -2144,26 +2144,26 @@ class ln {
|
|
|
2144
2144
|
if (typeof t != "function")
|
|
2145
2145
|
throw new TypeError("executor must be a function.");
|
|
2146
2146
|
let n;
|
|
2147
|
-
this.promise = new Promise(function(
|
|
2148
|
-
n =
|
|
2147
|
+
this.promise = new Promise(function(i) {
|
|
2148
|
+
n = i;
|
|
2149
2149
|
});
|
|
2150
2150
|
const r = this;
|
|
2151
2151
|
this.promise.then((o) => {
|
|
2152
2152
|
if (!r._listeners) return;
|
|
2153
|
-
let
|
|
2154
|
-
for (;
|
|
2155
|
-
r._listeners[
|
|
2153
|
+
let i = r._listeners.length;
|
|
2154
|
+
for (; i-- > 0; )
|
|
2155
|
+
r._listeners[i](o);
|
|
2156
2156
|
r._listeners = null;
|
|
2157
2157
|
}), this.promise.then = (o) => {
|
|
2158
|
-
let
|
|
2159
|
-
const
|
|
2160
|
-
r.subscribe(a),
|
|
2158
|
+
let i;
|
|
2159
|
+
const s = new Promise((a) => {
|
|
2160
|
+
r.subscribe(a), i = a;
|
|
2161
2161
|
}).then(o);
|
|
2162
|
-
return
|
|
2163
|
-
r.unsubscribe(
|
|
2164
|
-
},
|
|
2165
|
-
}, t(function(
|
|
2166
|
-
r.reason || (r.reason = new Ht(
|
|
2162
|
+
return s.cancel = function() {
|
|
2163
|
+
r.unsubscribe(i);
|
|
2164
|
+
}, s;
|
|
2165
|
+
}, t(function(i, s, a) {
|
|
2166
|
+
r.reason || (r.reason = new Ht(i, s, a), n(r.reason));
|
|
2167
2167
|
});
|
|
2168
2168
|
}
|
|
2169
2169
|
/**
|
|
@@ -2998,7 +2998,7 @@ const Fr = {
|
|
|
2998
2998
|
return n.default = r + "/" + o, n;
|
|
2999
2999
|
}, Ui = (e) => {
|
|
3000
3000
|
var t = lr.question;
|
|
3001
|
-
return (e === "array" || e === "awkward" || e === "sparse") && (t = lr.brackestSqaure), e === "table" && (t = lr.table), e === "container" && (t = lr.folder), t;
|
|
3001
|
+
return (e === "array" || e === "awkward" || e === "sparse") && (t = lr.brackestSqaure), e === "table" && (t = lr.table), (e === "container" || e === "composite") && (t = lr.folder), t;
|
|
3002
3002
|
}, Mt = (e, t) => {
|
|
3003
3003
|
var r = e.attributes.ancestors.length > 0 ? e.attributes.ancestors.join("/") + "/" : "";
|
|
3004
3004
|
return r += e.id, r;
|
|
@@ -3107,35 +3107,35 @@ const un = () => {
|
|
|
3107
3107
|
Qi();
|
|
3108
3108
|
const Kt = async (e, t, n, r) => {
|
|
3109
3109
|
try {
|
|
3110
|
-
const o = t || jr,
|
|
3111
|
-
Ot &&
|
|
3112
|
-
const
|
|
3110
|
+
const o = t || jr, i = new URLSearchParams();
|
|
3111
|
+
Ot && i.append("api_key", Ot), cn && i.append("sort", "-");
|
|
3112
|
+
const s = i.toString(), a = o + "/search/" + (e || "") + (s ? "?" + s : ""), c = await de.get(a);
|
|
3113
3113
|
return n && n(c.data), c.data;
|
|
3114
3114
|
} catch (o) {
|
|
3115
3115
|
return console.error("Error searching path: ", o), console.log("If you are getting a CORS error, make sure to start tiled with the TILED_ALLOW_ORIGINS environment variable set to your frontend URL"), null;
|
|
3116
3116
|
}
|
|
3117
3117
|
}, $i = async (e, t, n, r, o) => {
|
|
3118
|
-
const
|
|
3119
|
-
|
|
3118
|
+
const i = jo();
|
|
3119
|
+
i && i !== e && (localStorage.removeItem("tiledApiKey"), localStorage.setItem("tiledApiKey", e)), Ot = e;
|
|
3120
3120
|
try {
|
|
3121
|
-
const
|
|
3121
|
+
const s = n || jr, a = new URLSearchParams();
|
|
3122
3122
|
a.append("api_key", e), cn && a.append("sort", "-");
|
|
3123
|
-
const c = a.toString(), d =
|
|
3123
|
+
const c = a.toString(), d = s + "/search/" + (t || "") + "?" + c;
|
|
3124
3124
|
return (await de.get(d)).data;
|
|
3125
|
-
} catch (
|
|
3126
|
-
return console.error("Error searching path: ",
|
|
3125
|
+
} catch (s) {
|
|
3126
|
+
return console.error("Error searching path: ", s), console.log("If you are getting a CORS error, make sure to start tiled with the TILED_ALLOW_ORIGINS environment variable set to your frontend URL"), null;
|
|
3127
3127
|
}
|
|
3128
3128
|
}, Wn = async (e, t, n, r) => {
|
|
3129
3129
|
try {
|
|
3130
|
-
const o = n || jr,
|
|
3130
|
+
const o = n || jr, s = (await de.get(o + "/table/partition/" + e + "?partition=" + t + "&format=application/json-seq" + (Ot ? "&api_key=" + Ot : ""))).data.trim().split(`
|
|
3131
3131
|
`).map((a) => JSON.parse(a));
|
|
3132
|
-
return r && r(
|
|
3132
|
+
return r && r(s), s;
|
|
3133
3133
|
} catch (o) {
|
|
3134
3134
|
return console.error("Error searching table data: ", o), null;
|
|
3135
3135
|
}
|
|
3136
3136
|
}, Fn = (e, t, n, r, o) => {
|
|
3137
|
-
const
|
|
3138
|
-
return (o || jr) + "/array/full/" + e + "?format=image/png&slice=" +
|
|
3137
|
+
const i = r && (r == null ? void 0 : r.length) > 0 ? r.join(",") + "," : "";
|
|
3138
|
+
return (o || jr) + "/array/full/" + e + "?format=image/png&slice=" + i + "::" + t + ",::" + n + (Ot ? "&api_key=" + Ot : "");
|
|
3139
3139
|
}, Ki = (e) => {
|
|
3140
3140
|
cn = e || !1;
|
|
3141
3141
|
};
|
|
@@ -3204,8 +3204,8 @@ function ra({
|
|
|
3204
3204
|
onRightArrowClick: n,
|
|
3205
3205
|
onHomeClick: r,
|
|
3206
3206
|
imageUrl: o = ea,
|
|
3207
|
-
title:
|
|
3208
|
-
secondaryTitle:
|
|
3207
|
+
title: i = "Tiled",
|
|
3208
|
+
secondaryTitle: s = ta,
|
|
3209
3209
|
handleExpandClick: a,
|
|
3210
3210
|
isExpanded: c,
|
|
3211
3211
|
...d
|
|
@@ -3232,8 +3232,8 @@ function ra({
|
|
|
3232
3232
|
}, className: "w-4/5 flex items-end justify-center space-x-4 mx-auto absolute left-1/2 transform -translate-x-1/2 hover:cursor-pointer hover:opacity-70", children: [
|
|
3233
3233
|
/* @__PURE__ */ l.jsx("img", { src: o, className: "w-16 h-auto " }),
|
|
3234
3234
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-4", children: [
|
|
3235
|
-
/* @__PURE__ */ l.jsx("h2", { className: "text-sky-900 font-semibold text-lg", children:
|
|
3236
|
-
/* @__PURE__ */ l.jsx("p", { className: "text-sm", children:
|
|
3235
|
+
/* @__PURE__ */ l.jsx("h2", { className: "text-sky-900 font-semibold text-lg", children: i }),
|
|
3236
|
+
/* @__PURE__ */ l.jsx("p", { className: "text-sm", children: s })
|
|
3237
3237
|
] })
|
|
3238
3238
|
] }),
|
|
3239
3239
|
/* @__PURE__ */ l.jsx("div", { className: "absolute top-0 right-0 mr-3 mt-3 h-6 aspect-square text-slate-500 hover:text-slate-900 hover:cursor-pointer", onClick: () => a(), children: c ? wt.arrowsPointingIn : wt.arrowsPointingOut })
|
|
@@ -3246,8 +3246,8 @@ function dn({
|
|
|
3246
3246
|
bgColor: n = "bg-sky-500",
|
|
3247
3247
|
hoverBgColor: r = "hover:bg-sky-600",
|
|
3248
3248
|
textColor: o = "text-white",
|
|
3249
|
-
styles:
|
|
3250
|
-
disabled:
|
|
3249
|
+
styles: i = "",
|
|
3250
|
+
disabled: s = !1,
|
|
3251
3251
|
size: a = "medium",
|
|
3252
3252
|
isSecondary: c,
|
|
3253
3253
|
...d
|
|
@@ -3266,14 +3266,14 @@ function dn({
|
|
|
3266
3266
|
return /* @__PURE__ */ l.jsx(
|
|
3267
3267
|
"button",
|
|
3268
3268
|
{
|
|
3269
|
-
disabled:
|
|
3269
|
+
disabled: s,
|
|
3270
3270
|
className: `
|
|
3271
3271
|
rounded-xl font-medium w-fit
|
|
3272
3272
|
${c ? "bg-transparent text-black border" : `${n} ${o}`}
|
|
3273
|
-
${
|
|
3273
|
+
${s ? "hover:cursor-not-allowed" : `${c ? "secondaryHoverBgColor" : r} hover:cursor-pointer`}
|
|
3274
3274
|
${A[a]}
|
|
3275
3275
|
${b[a]}
|
|
3276
|
-
${
|
|
3276
|
+
${i}
|
|
3277
3277
|
`,
|
|
3278
3278
|
onClick: (g) => f(g),
|
|
3279
3279
|
...d,
|
|
@@ -3287,8 +3287,8 @@ function Eo({
|
|
|
3287
3287
|
max: n,
|
|
3288
3288
|
value: r,
|
|
3289
3289
|
units: o,
|
|
3290
|
-
shorthandUnits:
|
|
3291
|
-
marks:
|
|
3290
|
+
shorthandUnits: i,
|
|
3291
|
+
marks: s,
|
|
3292
3292
|
step: a = 1,
|
|
3293
3293
|
showFill: c = !1,
|
|
3294
3294
|
size: d = "medium",
|
|
@@ -3307,9 +3307,9 @@ function Eo({
|
|
|
3307
3307
|
var N = Number(y.target.value);
|
|
3308
3308
|
k(N);
|
|
3309
3309
|
};
|
|
3310
|
-
if (
|
|
3311
|
-
for (let y = 0; y < (
|
|
3312
|
-
|
|
3310
|
+
if (s)
|
|
3311
|
+
for (let y = 0; y < (s == null ? void 0 : s.length); y++)
|
|
3312
|
+
s[y];
|
|
3313
3313
|
const E = ({ mark: y, displayValue: N = !0 }) => /* @__PURE__ */ l.jsx(
|
|
3314
3314
|
"div",
|
|
3315
3315
|
{
|
|
@@ -3318,7 +3318,7 @@ function Eo({
|
|
|
3318
3318
|
children: N && /* @__PURE__ */ l.jsxs("p", { className: "absolute text-center text-xs top-2 -translate-x-1/2 translate-y-full whitespace-nowrap", children: [
|
|
3319
3319
|
y,
|
|
3320
3320
|
" ",
|
|
3321
|
-
|
|
3321
|
+
i
|
|
3322
3322
|
] })
|
|
3323
3323
|
}
|
|
3324
3324
|
), T = (y) => `calc(${(y - t) / (n - t) * 100}% + ${-((y - t) / (n - t)) * x + x / 2}px)`, S = (y, N) => y.length - 1 === N || N === 0;
|
|
@@ -3349,9 +3349,9 @@ function Eo({
|
|
|
3349
3349
|
}
|
|
3350
3350
|
) })
|
|
3351
3351
|
] }) }),
|
|
3352
|
-
|
|
3353
|
-
(!
|
|
3354
|
-
(!
|
|
3352
|
+
s && /* @__PURE__ */ l.jsx("div", { className: "absolute z-0 w-full", children: s.map((y, N) => /* @__PURE__ */ l.jsx(E, { mark: y, displayValue: S(s, N) }, N.toString())) }),
|
|
3353
|
+
(!s || !s.includes(t)) && /* @__PURE__ */ l.jsx(E, { mark: t, displayValue: !0 }, t.toString()),
|
|
3354
|
+
(!s || !s.includes(n)) && /* @__PURE__ */ l.jsx(E, { mark: n, displayValue: !0 }, n.toString())
|
|
3355
3355
|
] }),
|
|
3356
3356
|
A && /* @__PURE__ */ l.jsxs("div", { className: "w-fit pl-2 text-gray-700 flex justify-center items-center", children: [
|
|
3357
3357
|
/* @__PURE__ */ l.jsx(
|
|
@@ -3372,7 +3372,7 @@ function na({
|
|
|
3372
3372
|
url: t,
|
|
3373
3373
|
isFullWidth: n
|
|
3374
3374
|
}) {
|
|
3375
|
-
const [r, o] = Z([]), [
|
|
3375
|
+
const [r, o] = Z([]), [i, s] = Z(""), [a, c] = Z(""), d = 1e6, f = e.attributes.structure.shape, b = f.length - 2, w = (h, x) => {
|
|
3376
3376
|
var k = r.map((C) => C.value);
|
|
3377
3377
|
k[x.index] = h, g(k), o((C) => {
|
|
3378
3378
|
var O = [...C];
|
|
@@ -3387,7 +3387,7 @@ function na({
|
|
|
3387
3387
|
x = N, k = N;
|
|
3388
3388
|
}
|
|
3389
3389
|
const T = Fn(p, k, x, h, t);
|
|
3390
|
-
|
|
3390
|
+
s(T);
|
|
3391
3391
|
const S = Fn(p, 1, 1, h, t);
|
|
3392
3392
|
c(S);
|
|
3393
3393
|
};
|
|
@@ -3400,7 +3400,7 @@ function na({
|
|
|
3400
3400
|
/* @__PURE__ */ l.jsxs("div", { className: `${b > 2 ? "flex-wrap" : "flex-col"} flex items-center justify-center w-full`, children: [
|
|
3401
3401
|
/* @__PURE__ */ l.jsxs("div", { className: `relative bg-slate-300 aspect-square m-auto ${n ? "w-7/12" : "w-72"}`, children: [
|
|
3402
3402
|
a && /* @__PURE__ */ l.jsx("div", { onClick: () => Ji(a), className: "absolute top-2 right-2 w-6 aspect-square hover:cursor-pointer hover:text-slate-500", children: wt.arrowTopRight }),
|
|
3403
|
-
|
|
3403
|
+
i && /* @__PURE__ */ l.jsx("img", { src: i, className: "w-full h-full" }),
|
|
3404
3404
|
/* @__PURE__ */ l.jsx("p", { className: "text-sm text-center text-slate-500", children: `True Dimensions: [${e.attributes.structure.shape.join(", ")}]` })
|
|
3405
3405
|
] }),
|
|
3406
3406
|
/* @__PURE__ */ l.jsx("div", { className: `${b > 0 ? "w-72" : "hidden"} flex flex-col space-y-4 pt-6 px-4`, children: r.map((h, x) => /* @__PURE__ */ l.jsx(Eo, { showSideInput: !1, min: h.min, max: h.max, value: h.value, onChange: (k) => w(k, h) }, x)) })
|
|
@@ -3419,28 +3419,28 @@ function oa() {
|
|
|
3419
3419
|
(function() {
|
|
3420
3420
|
var t = {}.hasOwnProperty;
|
|
3421
3421
|
function n() {
|
|
3422
|
-
for (var
|
|
3423
|
-
var a = arguments[
|
|
3424
|
-
a && (
|
|
3422
|
+
for (var i = "", s = 0; s < arguments.length; s++) {
|
|
3423
|
+
var a = arguments[s];
|
|
3424
|
+
a && (i = o(i, r(a)));
|
|
3425
3425
|
}
|
|
3426
|
-
return
|
|
3426
|
+
return i;
|
|
3427
3427
|
}
|
|
3428
|
-
function r(
|
|
3429
|
-
if (typeof
|
|
3430
|
-
return
|
|
3431
|
-
if (typeof
|
|
3428
|
+
function r(i) {
|
|
3429
|
+
if (typeof i == "string" || typeof i == "number")
|
|
3430
|
+
return i;
|
|
3431
|
+
if (typeof i != "object")
|
|
3432
3432
|
return "";
|
|
3433
|
-
if (Array.isArray(
|
|
3434
|
-
return n.apply(null,
|
|
3435
|
-
if (
|
|
3436
|
-
return
|
|
3437
|
-
var
|
|
3438
|
-
for (var a in
|
|
3439
|
-
t.call(
|
|
3440
|
-
return
|
|
3433
|
+
if (Array.isArray(i))
|
|
3434
|
+
return n.apply(null, i);
|
|
3435
|
+
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
|
|
3436
|
+
return i.toString();
|
|
3437
|
+
var s = "";
|
|
3438
|
+
for (var a in i)
|
|
3439
|
+
t.call(i, a) && i[a] && (s = o(s, a));
|
|
3440
|
+
return s;
|
|
3441
3441
|
}
|
|
3442
|
-
function o(
|
|
3443
|
-
return
|
|
3442
|
+
function o(i, s) {
|
|
3443
|
+
return s ? i ? i + " " + s : i + s : i;
|
|
3444
3444
|
}
|
|
3445
3445
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
3446
3446
|
})();
|
|
@@ -3449,10 +3449,10 @@ function oa() {
|
|
|
3449
3449
|
var sa = oa();
|
|
3450
3450
|
const Xr = /* @__PURE__ */ as(sa);
|
|
3451
3451
|
function ia({ tableItem: e, url: t }) {
|
|
3452
|
-
const [n, r] = Z([]), [o,
|
|
3452
|
+
const [n, r] = Z([]), [o, i] = Z([]), [s, a] = Z(0), [c, d] = Z(!0);
|
|
3453
3453
|
Z(!0);
|
|
3454
3454
|
const [f, A] = Z(""), [b, w] = Z(""), p = Ce(null), g = Ce(null), h = e.attributes.structure.npartitions, x = Mt(e), k = 20, C = n.length > 0 ? Object.keys(n[0]) : [], O = (S) => {
|
|
3455
|
-
r(S),
|
|
3455
|
+
r(S), i(S.slice(0, k)), d(!1);
|
|
3456
3456
|
}, E = $e((S) => {
|
|
3457
3457
|
d(!0), Wn(x, S, t, O), a(S);
|
|
3458
3458
|
}, [e]);
|
|
@@ -3462,7 +3462,7 @@ function ia({ tableItem: e, url: t }) {
|
|
|
3462
3462
|
a(0), Wn(S, 0, t, O);
|
|
3463
3463
|
}, [e]);
|
|
3464
3464
|
const T = $e(() => {
|
|
3465
|
-
|
|
3465
|
+
i((S) => {
|
|
3466
3466
|
const y = n.slice(S.length, S.length + k);
|
|
3467
3467
|
return [...S, ...y];
|
|
3468
3468
|
});
|
|
@@ -3490,26 +3490,27 @@ function ia({ tableItem: e, url: t }) {
|
|
|
3490
3490
|
] }),
|
|
3491
3491
|
/* @__PURE__ */ l.jsx("div", { ref: p, className: "h-4" })
|
|
3492
3492
|
] }),
|
|
3493
|
-
h > 1 && /* @__PURE__ */ l.jsx("div", { className: "pb-1 pt-4", children: /* @__PURE__ */ l.jsx(Eo, { label: "Partition Index", max: h - 1, min: 0, value:
|
|
3493
|
+
h > 1 && /* @__PURE__ */ l.jsx("div", { className: "pb-1 pt-4", children: /* @__PURE__ */ l.jsx(Eo, { label: "Partition Index", max: h - 1, min: 0, value: s, onChange: E }) }),
|
|
3494
3494
|
!1
|
|
3495
3495
|
] });
|
|
3496
3496
|
}
|
|
3497
|
-
const Ro = (e) => e.attributes.structure_family === "array", _o = (e) => e.attributes.structure_family === "table", aa = (e) => e.attributes.structure_family === "container", la = /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "", children: /* @__PURE__ */ l.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z" }) }), ca = /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "", children: /* @__PURE__ */ l.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75" }) });
|
|
3497
|
+
const Ro = (e) => e.attributes.structure_family === "array", _o = (e) => e.attributes.structure_family === "table", aa = (e) => e.attributes.structure_family === "container" || e.attributes.structure_family === "composite", la = /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "", children: /* @__PURE__ */ l.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z" }) }), ca = /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "", children: /* @__PURE__ */ l.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75" }) });
|
|
3498
3498
|
function Oo({
|
|
3499
3499
|
copyText: e,
|
|
3500
3500
|
cb: t,
|
|
3501
3501
|
size: n = "medium",
|
|
3502
|
-
|
|
3502
|
+
showText: r = !1,
|
|
3503
|
+
...o
|
|
3503
3504
|
}) {
|
|
3504
|
-
const [
|
|
3505
|
-
|
|
3505
|
+
const [i, s] = Z(!1), a = $e((d) => {
|
|
3506
|
+
d.preventDefault(), navigator.clipboard.writeText(e).then(() => {
|
|
3506
3507
|
s(!0), t && t(), setTimeout(() => {
|
|
3507
3508
|
s(!1);
|
|
3508
3509
|
}, 2e3);
|
|
3509
|
-
}).catch((
|
|
3510
|
-
console.error("Failed to copy: ",
|
|
3510
|
+
}).catch((f) => {
|
|
3511
|
+
console.error("Failed to copy: ", f);
|
|
3511
3512
|
});
|
|
3512
|
-
}, [e]),
|
|
3513
|
+
}, [e]), c = {
|
|
3513
3514
|
small: "h-6",
|
|
3514
3515
|
medium: "h-10",
|
|
3515
3516
|
large: "h-16"
|
|
@@ -3517,17 +3518,17 @@ function Oo({
|
|
|
3517
3518
|
return /* @__PURE__ */ l.jsx(
|
|
3518
3519
|
"button",
|
|
3519
3520
|
{
|
|
3520
|
-
...
|
|
3521
|
-
className: `${
|
|
3522
|
-
onClick: (
|
|
3523
|
-
children:
|
|
3521
|
+
...o,
|
|
3522
|
+
className: `${i ? "text-sky-500" : "text-slate-400"} ${c[n]} hover:text-sky-300 hover:cursor-pointer flex`,
|
|
3523
|
+
onClick: (d) => a(d),
|
|
3524
|
+
children: i ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
3524
3525
|
ca,
|
|
3525
3526
|
" ",
|
|
3526
|
-
/* @__PURE__ */ l.jsx("p", { children: "Copied" })
|
|
3527
|
+
r && /* @__PURE__ */ l.jsx("p", { children: "Copied" })
|
|
3527
3528
|
] }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
3528
3529
|
la,
|
|
3529
3530
|
" ",
|
|
3530
|
-
/* @__PURE__ */ l.jsx("p", { children: "copy meta link" })
|
|
3531
|
+
r && /* @__PURE__ */ l.jsx("p", { children: "copy meta link" })
|
|
3531
3532
|
] })
|
|
3532
3533
|
}
|
|
3533
3534
|
);
|
|
@@ -3536,16 +3537,16 @@ function ua({
|
|
|
3536
3537
|
item: e,
|
|
3537
3538
|
...t
|
|
3538
3539
|
}) {
|
|
3539
|
-
const n = Object.keys(e.links), r = (o,
|
|
3540
|
-
o.preventDefault(),
|
|
3540
|
+
const n = Object.keys(e.links), r = (o, i) => {
|
|
3541
|
+
o.preventDefault(), i && window.open(i, "_blank", "noopener,noreferrer");
|
|
3541
3542
|
};
|
|
3542
3543
|
return /* @__PURE__ */ l.jsxs("div", { ...t, children: [
|
|
3543
3544
|
/* @__PURE__ */ l.jsx("h3", { className: "m-auto text-left pl-4 text-sky-950", children: "Links" }),
|
|
3544
3545
|
/* @__PURE__ */ l.jsx("ul", { className: "flex w-full justify-start pl-8 space-x-6", children: n.map((o) => {
|
|
3545
|
-
var
|
|
3546
|
-
return typeof
|
|
3547
|
-
/* @__PURE__ */ l.jsx(Oo, { copyText:
|
|
3548
|
-
/* @__PURE__ */ l.jsx("a", { onClick: (
|
|
3546
|
+
var i = e.links[o];
|
|
3547
|
+
return typeof i != "string" ? null : /* @__PURE__ */ l.jsxs("li", { className: "flex space-x-1 text-sm", children: [
|
|
3548
|
+
/* @__PURE__ */ l.jsx(Oo, { copyText: i, size: "small" }),
|
|
3549
|
+
/* @__PURE__ */ l.jsx("a", { onClick: (s) => r(s, i), className: "text-blue-600 underline hover:text-blue-500", href: e.links[o], children: o })
|
|
3549
3550
|
] }, o);
|
|
3550
3551
|
}) }),
|
|
3551
3552
|
/* @__PURE__ */ l.jsx("h3", { className: "m-auto text-left pl-4 mt-2 text-sky-950", children: "Metadata" }),
|
|
@@ -3558,9 +3559,9 @@ function da({
|
|
|
3558
3559
|
previewSize: n = "medium",
|
|
3559
3560
|
url: r,
|
|
3560
3561
|
scrollContainerRef: o,
|
|
3561
|
-
...
|
|
3562
|
+
...i
|
|
3562
3563
|
}) {
|
|
3563
|
-
const [
|
|
3564
|
+
const [s, a] = Z(!1), c = {
|
|
3564
3565
|
hidden: "hidden",
|
|
3565
3566
|
small: "min-w-72",
|
|
3566
3567
|
medium: "min-w-96",
|
|
@@ -3568,13 +3569,13 @@ function da({
|
|
|
3568
3569
|
};
|
|
3569
3570
|
return $(() => {
|
|
3570
3571
|
o.current && (o.current.scrollLeft = o.current.scrollWidth);
|
|
3571
|
-
}, [
|
|
3572
|
+
}, [s]), /* @__PURE__ */ l.jsxs("div", { className: `${c[n]} flex-grow h-full flex flex-col overflow-y-auto relative max-w-full ${s && "min-w-full"}`, ...i, children: [
|
|
3572
3573
|
/* @__PURE__ */ l.jsxs("div", { className: "flex justify-between px-2 pt-2 absolute top-0 w-full", children: [
|
|
3573
|
-
/* @__PURE__ */ l.jsx("div", { className: "h-6 aspect-square hover:cursor-pointer hover:text-slate-600", onClick: () => a(!
|
|
3574
|
+
/* @__PURE__ */ l.jsx("div", { className: "h-6 aspect-square hover:cursor-pointer hover:text-slate-600", onClick: () => a(!s), children: s ? wt.arrowsPointingIn : wt.arrowsPointingOut }),
|
|
3574
3575
|
/* @__PURE__ */ l.jsx("div", { className: "h-6 aspect-square hover:cursor-pointer hover:text-slate-600", children: wt.arrowDownTray })
|
|
3575
3576
|
] }),
|
|
3576
3577
|
/* @__PURE__ */ l.jsxs("div", { className: "w-full flex flex-col items-center space-y-8 py-4", children: [
|
|
3577
|
-
Ro(e) && /* @__PURE__ */ l.jsx(na, { arrayItem: e, url: r, isFullWidth:
|
|
3578
|
+
Ro(e) && /* @__PURE__ */ l.jsx(na, { arrayItem: e, url: r, isFullWidth: s }),
|
|
3578
3579
|
_o(e) && /* @__PURE__ */ l.jsx(ia, { tableItem: e, url: r }),
|
|
3579
3580
|
t && /* @__PURE__ */ l.jsx(dn, { text: "Select", size: "medium", cb: () => t(e) })
|
|
3580
3581
|
] }),
|
|
@@ -3589,14 +3590,14 @@ function fa({
|
|
|
3589
3590
|
console.log("click"), console.log({ cb: r }), r !== void 0 && (console.log("about to run cb"), r());
|
|
3590
3591
|
};
|
|
3591
3592
|
return /* @__PURE__ */ l.jsx("div", { className: "w-full h-8 flex-shrink-0 pl-2 overflow-x-auto", ...t, children: /* @__PURE__ */ l.jsx("div", { className: "flex space-x-2", children: e && e.map((r, o) => {
|
|
3592
|
-
const
|
|
3593
|
-
return /* @__PURE__ */ l.jsxs("div", { className: `flex items-center max-w-32 space-x-1 ${!
|
|
3593
|
+
const i = e.length - 1 === o;
|
|
3594
|
+
return /* @__PURE__ */ l.jsxs("div", { className: `flex items-center max-w-32 space-x-1 ${!i && "hover:cursor-pointer hover:text-slate-500"}`, children: [
|
|
3594
3595
|
r.icon && /* @__PURE__ */ l.jsx("div", { className: "w-5 aspect-square flex-shrink-0", children: r.icon }),
|
|
3595
3596
|
/* @__PURE__ */ l.jsx(
|
|
3596
3597
|
"p",
|
|
3597
3598
|
{
|
|
3598
3599
|
className: "truncate",
|
|
3599
|
-
onClick:
|
|
3600
|
+
onClick: i ? () => {
|
|
3600
3601
|
} : () => n(r.onClick),
|
|
3601
3602
|
children: r.label
|
|
3602
3603
|
}
|
|
@@ -3656,9 +3657,9 @@ function An(e) {
|
|
|
3656
3657
|
}
|
|
3657
3658
|
function ha(e, t, n) {
|
|
3658
3659
|
n === void 0 && (n = !1);
|
|
3659
|
-
const r = sr(e), o = An(e),
|
|
3660
|
-
let
|
|
3661
|
-
return t.reference[
|
|
3660
|
+
const r = sr(e), o = An(e), i = fn(o);
|
|
3661
|
+
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
3662
|
+
return t.reference[i] > t.floating[i] && (s = br(s)), [s, br(s)];
|
|
3662
3663
|
}
|
|
3663
3664
|
function ga(e) {
|
|
3664
3665
|
const t = br(e);
|
|
@@ -3668,22 +3669,22 @@ function qr(e) {
|
|
|
3668
3669
|
return e.replace(/start|end/g, (t) => ma[t]);
|
|
3669
3670
|
}
|
|
3670
3671
|
function wa(e, t, n) {
|
|
3671
|
-
const r = ["left", "right"], o = ["right", "left"],
|
|
3672
|
+
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
|
|
3672
3673
|
switch (e) {
|
|
3673
3674
|
case "top":
|
|
3674
3675
|
case "bottom":
|
|
3675
3676
|
return n ? t ? o : r : t ? r : o;
|
|
3676
3677
|
case "left":
|
|
3677
3678
|
case "right":
|
|
3678
|
-
return t ?
|
|
3679
|
+
return t ? i : s;
|
|
3679
3680
|
default:
|
|
3680
3681
|
return [];
|
|
3681
3682
|
}
|
|
3682
3683
|
}
|
|
3683
3684
|
function ba(e, t, n, r) {
|
|
3684
3685
|
const o = sr(e);
|
|
3685
|
-
let
|
|
3686
|
-
return o && (
|
|
3686
|
+
let i = wa(Lt(e), n === "start", r);
|
|
3687
|
+
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(qr)))), i;
|
|
3687
3688
|
}
|
|
3688
3689
|
function br(e) {
|
|
3689
3690
|
return e.replace(/left|right|bottom|top/g, (t) => pa[t]);
|
|
@@ -3728,7 +3729,7 @@ function Mn(e, t, n) {
|
|
|
3728
3729
|
reference: r,
|
|
3729
3730
|
floating: o
|
|
3730
3731
|
} = e;
|
|
3731
|
-
const
|
|
3732
|
+
const i = Dt(t), s = An(t), a = fn(s), c = Lt(t), d = i === "y", f = r.x + r.width / 2 - o.width / 2, A = r.y + r.height / 2 - o.height / 2, b = r[a] / 2 - o[a] / 2;
|
|
3732
3733
|
let w;
|
|
3733
3734
|
switch (c) {
|
|
3734
3735
|
case "top":
|
|
@@ -3763,10 +3764,10 @@ function Mn(e, t, n) {
|
|
|
3763
3764
|
}
|
|
3764
3765
|
switch (sr(t)) {
|
|
3765
3766
|
case "start":
|
|
3766
|
-
w[
|
|
3767
|
+
w[s] -= b * (n && d ? -1 : 1);
|
|
3767
3768
|
break;
|
|
3768
3769
|
case "end":
|
|
3769
|
-
w[
|
|
3770
|
+
w[s] += b * (n && d ? -1 : 1);
|
|
3770
3771
|
break;
|
|
3771
3772
|
}
|
|
3772
3773
|
return w;
|
|
@@ -3775,10 +3776,10 @@ const xa = async (e, t, n) => {
|
|
|
3775
3776
|
const {
|
|
3776
3777
|
placement: r = "bottom",
|
|
3777
3778
|
strategy: o = "absolute",
|
|
3778
|
-
middleware:
|
|
3779
|
-
platform:
|
|
3780
|
-
} = n, a =
|
|
3781
|
-
let d = await
|
|
3779
|
+
middleware: i = [],
|
|
3780
|
+
platform: s
|
|
3781
|
+
} = n, a = i.filter(Boolean), c = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
3782
|
+
let d = await s.getElementRects({
|
|
3782
3783
|
reference: e,
|
|
3783
3784
|
floating: t,
|
|
3784
3785
|
strategy: o
|
|
@@ -3803,7 +3804,7 @@ const xa = async (e, t, n) => {
|
|
|
3803
3804
|
strategy: o,
|
|
3804
3805
|
middlewareData: w,
|
|
3805
3806
|
rects: d,
|
|
3806
|
-
platform:
|
|
3807
|
+
platform: s,
|
|
3807
3808
|
elements: {
|
|
3808
3809
|
reference: e,
|
|
3809
3810
|
floating: t
|
|
@@ -3815,7 +3816,7 @@ const xa = async (e, t, n) => {
|
|
|
3815
3816
|
...w[h],
|
|
3816
3817
|
...O
|
|
3817
3818
|
}
|
|
3818
|
-
}, E && p <= 50 && (p++, typeof E == "object" && (E.placement && (b = E.placement), E.rects && (d = E.rects === !0 ? await
|
|
3819
|
+
}, E && p <= 50 && (p++, typeof E == "object" && (E.placement && (b = E.placement), E.rects && (d = E.rects === !0 ? await s.getElementRects({
|
|
3819
3820
|
reference: e,
|
|
3820
3821
|
floating: t,
|
|
3821
3822
|
strategy: o
|
|
@@ -3838,8 +3839,8 @@ async function No(e, t) {
|
|
|
3838
3839
|
const {
|
|
3839
3840
|
x: r,
|
|
3840
3841
|
y: o,
|
|
3841
|
-
platform:
|
|
3842
|
-
rects:
|
|
3842
|
+
platform: i,
|
|
3843
|
+
rects: s,
|
|
3843
3844
|
elements: a,
|
|
3844
3845
|
strategy: c
|
|
3845
3846
|
} = e, {
|
|
@@ -3848,23 +3849,23 @@ async function No(e, t) {
|
|
|
3848
3849
|
elementContext: A = "floating",
|
|
3849
3850
|
altBoundary: b = !1,
|
|
3850
3851
|
padding: w = 0
|
|
3851
|
-
} = or(t, e), p = Bo(w), h = a[b ? A === "floating" ? "reference" : "floating" : A], x = vr(await
|
|
3852
|
-
element: (n = await (
|
|
3852
|
+
} = or(t, e), p = Bo(w), h = a[b ? A === "floating" ? "reference" : "floating" : A], x = vr(await i.getClippingRect({
|
|
3853
|
+
element: (n = await (i.isElement == null ? void 0 : i.isElement(h))) == null || n ? h : h.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
3853
3854
|
boundary: d,
|
|
3854
3855
|
rootBoundary: f,
|
|
3855
3856
|
strategy: c
|
|
3856
3857
|
})), k = A === "floating" ? {
|
|
3857
3858
|
x: r,
|
|
3858
3859
|
y: o,
|
|
3859
|
-
width:
|
|
3860
|
-
height:
|
|
3861
|
-
} :
|
|
3860
|
+
width: s.floating.width,
|
|
3861
|
+
height: s.floating.height
|
|
3862
|
+
} : s.reference, C = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), O = await (i.isElement == null ? void 0 : i.isElement(C)) ? await (i.getScale == null ? void 0 : i.getScale(C)) || {
|
|
3862
3863
|
x: 1,
|
|
3863
3864
|
y: 1
|
|
3864
3865
|
} : {
|
|
3865
3866
|
x: 1,
|
|
3866
3867
|
y: 1
|
|
3867
|
-
}, E = vr(
|
|
3868
|
+
}, E = vr(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
3868
3869
|
elements: a,
|
|
3869
3870
|
rect: k,
|
|
3870
3871
|
offsetParent: C,
|
|
@@ -3885,8 +3886,8 @@ const ya = (e) => ({
|
|
|
3885
3886
|
x: n,
|
|
3886
3887
|
y: r,
|
|
3887
3888
|
placement: o,
|
|
3888
|
-
rects:
|
|
3889
|
-
platform:
|
|
3889
|
+
rects: i,
|
|
3890
|
+
platform: s,
|
|
3890
3891
|
elements: a,
|
|
3891
3892
|
middlewareData: c
|
|
3892
3893
|
} = t, {
|
|
@@ -3898,10 +3899,10 @@ const ya = (e) => ({
|
|
|
3898
3899
|
const A = Bo(f), b = {
|
|
3899
3900
|
x: n,
|
|
3900
3901
|
y: r
|
|
3901
|
-
}, w = An(o), p = fn(w), g = await
|
|
3902
|
+
}, w = An(o), p = fn(w), g = await s.getDimensions(d), h = w === "y", x = h ? "top" : "left", k = h ? "bottom" : "right", C = h ? "clientHeight" : "clientWidth", O = i.reference[p] + i.reference[w] - b[w] - i.floating[p], E = b[w] - i.reference[w], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
|
|
3902
3903
|
let S = T ? T[C] : 0;
|
|
3903
|
-
(!S || !await (
|
|
3904
|
-
const y = O / 2 - E / 2, N = S / 2 - g[p] / 2 - 1, Ae = Zt(A[x], N), he = Zt(A[k], N), ae = Ae, se = S - g[p] - he, G = S / 2 - g[p] / 2 + y, te = Qr(ae, G, se), K = !c.arrow && sr(o) != null && G !== te &&
|
|
3904
|
+
(!S || !await (s.isElement == null ? void 0 : s.isElement(T))) && (S = a.floating[C] || i.floating[p]);
|
|
3905
|
+
const y = O / 2 - E / 2, N = S / 2 - g[p] / 2 - 1, Ae = Zt(A[x], N), he = Zt(A[k], N), ae = Ae, se = S - g[p] - he, G = S / 2 - g[p] / 2 + y, te = Qr(ae, G, se), K = !c.arrow && sr(o) != null && G !== te && i.reference[p] / 2 - (G < ae ? Ae : he) - g[p] / 2 < 0, X = K ? G < ae ? G - ae : G - se : 0;
|
|
3905
3906
|
return {
|
|
3906
3907
|
[w]: b[w] + X,
|
|
3907
3908
|
data: {
|
|
@@ -3922,8 +3923,8 @@ const ya = (e) => ({
|
|
|
3922
3923
|
var n, r;
|
|
3923
3924
|
const {
|
|
3924
3925
|
placement: o,
|
|
3925
|
-
middlewareData:
|
|
3926
|
-
rects:
|
|
3926
|
+
middlewareData: i,
|
|
3927
|
+
rects: s,
|
|
3927
3928
|
initialPlacement: a,
|
|
3928
3929
|
platform: c,
|
|
3929
3930
|
elements: d
|
|
@@ -3936,14 +3937,14 @@ const ya = (e) => ({
|
|
|
3936
3937
|
flipAlignment: g = !0,
|
|
3937
3938
|
...h
|
|
3938
3939
|
} = or(e, t);
|
|
3939
|
-
if ((n =
|
|
3940
|
+
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
3940
3941
|
return {};
|
|
3941
3942
|
const x = Lt(o), k = Dt(a), C = Lt(a) === a, O = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), E = b || (C || !g ? [br(a)] : ga(a)), T = p !== "none";
|
|
3942
3943
|
!b && T && E.push(...ba(a, g, p, O));
|
|
3943
3944
|
const S = [a, ...E], y = await No(t, h), N = [];
|
|
3944
|
-
let Ae = ((r =
|
|
3945
|
+
let Ae = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
3945
3946
|
if (f && N.push(y[x]), A) {
|
|
3946
|
-
const G = ha(o,
|
|
3947
|
+
const G = ha(o, s, O);
|
|
3947
3948
|
N.push(y[G[0]], y[G[1]]);
|
|
3948
3949
|
}
|
|
3949
3950
|
if (Ae = [...Ae, {
|
|
@@ -3951,7 +3952,7 @@ const ya = (e) => ({
|
|
|
3951
3952
|
overflows: N
|
|
3952
3953
|
}], !N.every((G) => G <= 0)) {
|
|
3953
3954
|
var he, ae;
|
|
3954
|
-
const G = (((he =
|
|
3955
|
+
const G = (((he = i.flip) == null ? void 0 : he.index) || 0) + 1, te = S[G];
|
|
3955
3956
|
if (te)
|
|
3956
3957
|
return {
|
|
3957
3958
|
data: {
|
|
@@ -3999,7 +4000,7 @@ async function Ia(e, t) {
|
|
|
3999
4000
|
placement: n,
|
|
4000
4001
|
platform: r,
|
|
4001
4002
|
elements: o
|
|
4002
|
-
} = e,
|
|
4003
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Lt(n), a = sr(n), c = Dt(n) === "y", d = ["left", "top"].includes(s) ? -1 : 1, f = i && c ? -1 : 1, A = or(t, e);
|
|
4003
4004
|
let {
|
|
4004
4005
|
mainAxis: b,
|
|
4005
4006
|
crossAxis: w,
|
|
@@ -4029,16 +4030,16 @@ const Ca = function(e) {
|
|
|
4029
4030
|
var n, r;
|
|
4030
4031
|
const {
|
|
4031
4032
|
x: o,
|
|
4032
|
-
y:
|
|
4033
|
-
placement:
|
|
4033
|
+
y: i,
|
|
4034
|
+
placement: s,
|
|
4034
4035
|
middlewareData: a
|
|
4035
4036
|
} = t, c = await Ia(t, e);
|
|
4036
|
-
return
|
|
4037
|
+
return s === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
|
|
4037
4038
|
x: o + c.x,
|
|
4038
|
-
y:
|
|
4039
|
+
y: i + c.y,
|
|
4039
4040
|
data: {
|
|
4040
4041
|
...c,
|
|
4041
|
-
placement:
|
|
4042
|
+
placement: s
|
|
4042
4043
|
}
|
|
4043
4044
|
};
|
|
4044
4045
|
}
|
|
@@ -4053,8 +4054,8 @@ const Ca = function(e) {
|
|
|
4053
4054
|
y: r,
|
|
4054
4055
|
placement: o
|
|
4055
4056
|
} = t, {
|
|
4056
|
-
mainAxis:
|
|
4057
|
-
crossAxis:
|
|
4057
|
+
mainAxis: i = !0,
|
|
4058
|
+
crossAxis: s = !1,
|
|
4058
4059
|
limiter: a = {
|
|
4059
4060
|
fn: (h) => {
|
|
4060
4061
|
let {
|
|
@@ -4073,11 +4074,11 @@ const Ca = function(e) {
|
|
|
4073
4074
|
y: r
|
|
4074
4075
|
}, f = await No(t, c), A = Dt(Lt(o)), b = Lo(A);
|
|
4075
4076
|
let w = d[b], p = d[A];
|
|
4076
|
-
if (
|
|
4077
|
+
if (i) {
|
|
4077
4078
|
const h = b === "y" ? "top" : "left", x = b === "y" ? "bottom" : "right", k = w + f[h], C = w - f[x];
|
|
4078
4079
|
w = Qr(k, w, C);
|
|
4079
4080
|
}
|
|
4080
|
-
if (
|
|
4081
|
+
if (s) {
|
|
4081
4082
|
const h = A === "y" ? "top" : "left", x = A === "y" ? "bottom" : "right", k = p + f[h], C = p - f[x];
|
|
4082
4083
|
p = Qr(k, p, C);
|
|
4083
4084
|
}
|
|
@@ -4092,8 +4093,8 @@ const Ca = function(e) {
|
|
|
4092
4093
|
x: g.x - n,
|
|
4093
4094
|
y: g.y - r,
|
|
4094
4095
|
enabled: {
|
|
4095
|
-
[b]:
|
|
4096
|
-
[A]:
|
|
4096
|
+
[b]: i,
|
|
4097
|
+
[A]: s
|
|
4097
4098
|
}
|
|
4098
4099
|
}
|
|
4099
4100
|
};
|
|
@@ -4199,10 +4200,10 @@ function Wo(e) {
|
|
|
4199
4200
|
function tr(e, t, n) {
|
|
4200
4201
|
var r;
|
|
4201
4202
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
4202
|
-
const o = Wo(e),
|
|
4203
|
-
if (
|
|
4204
|
-
const a = $r(
|
|
4205
|
-
return t.concat(
|
|
4203
|
+
const o = Wo(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = Fe(o);
|
|
4204
|
+
if (i) {
|
|
4205
|
+
const a = $r(s);
|
|
4206
|
+
return t.concat(s, s.visualViewport || [], ir(o) ? o : [], a && n ? tr(a) : []);
|
|
4206
4207
|
}
|
|
4207
4208
|
return t.concat(o, tr(o, [], n));
|
|
4208
4209
|
}
|
|
@@ -4212,8 +4213,8 @@ function $r(e) {
|
|
|
4212
4213
|
function Fo(e) {
|
|
4213
4214
|
const t = He(e);
|
|
4214
4215
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
4215
|
-
const o = et(e),
|
|
4216
|
-
return a && (n =
|
|
4216
|
+
const o = et(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, a = wr(n) !== i || wr(r) !== s;
|
|
4217
|
+
return a && (n = i, r = s), {
|
|
4217
4218
|
width: n,
|
|
4218
4219
|
height: r,
|
|
4219
4220
|
$: a
|
|
@@ -4229,11 +4230,11 @@ function Pt(e) {
|
|
|
4229
4230
|
const n = t.getBoundingClientRect(), {
|
|
4230
4231
|
width: r,
|
|
4231
4232
|
height: o,
|
|
4232
|
-
$:
|
|
4233
|
+
$: i
|
|
4233
4234
|
} = Fo(t);
|
|
4234
|
-
let
|
|
4235
|
-
return (!
|
|
4236
|
-
x:
|
|
4235
|
+
let s = (i ? wr(n.width) : n.width) / r, a = (i ? wr(n.height) : n.height) / o;
|
|
4236
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
4237
|
+
x: s,
|
|
4237
4238
|
y: a
|
|
4238
4239
|
};
|
|
4239
4240
|
}
|
|
@@ -4250,13 +4251,13 @@ function _a(e, t, n) {
|
|
|
4250
4251
|
}
|
|
4251
4252
|
function Bt(e, t, n, r) {
|
|
4252
4253
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
4253
|
-
const o = e.getBoundingClientRect(),
|
|
4254
|
-
let
|
|
4255
|
-
t && (r ? Ve(r) && (
|
|
4256
|
-
const a = _a(
|
|
4257
|
-
let c = (o.left + a.x) /
|
|
4258
|
-
if (
|
|
4259
|
-
const b = Fe(
|
|
4254
|
+
const o = e.getBoundingClientRect(), i = hn(e);
|
|
4255
|
+
let s = Ke(1);
|
|
4256
|
+
t && (r ? Ve(r) && (s = Pt(r)) : s = Pt(e));
|
|
4257
|
+
const a = _a(i, n, r) ? Po(i) : Ke(0);
|
|
4258
|
+
let c = (o.left + a.x) / s.x, d = (o.top + a.y) / s.y, f = o.width / s.x, A = o.height / s.y;
|
|
4259
|
+
if (i) {
|
|
4260
|
+
const b = Fe(i), w = r && Ve(r) ? Fe(r) : r;
|
|
4260
4261
|
let p = b, g = $r(p);
|
|
4261
4262
|
for (; g && r && w !== p; ) {
|
|
4262
4263
|
const h = Pt(g), x = g.getBoundingClientRect(), k = He(g), C = x.left + (g.clientLeft + parseFloat(k.paddingLeft)) * h.x, O = x.top + (g.clientTop + parseFloat(k.paddingTop)) * h.y;
|
|
@@ -4279,10 +4280,10 @@ function Mo(e, t, n) {
|
|
|
4279
4280
|
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
|
|
4280
4281
|
// RTL <body> scrollbar.
|
|
4281
4282
|
gn(e, r)
|
|
4282
|
-
)),
|
|
4283
|
+
)), i = r.top + t.scrollTop;
|
|
4283
4284
|
return {
|
|
4284
4285
|
x: o,
|
|
4285
|
-
y:
|
|
4286
|
+
y: i
|
|
4286
4287
|
};
|
|
4287
4288
|
}
|
|
4288
4289
|
function Oa(e) {
|
|
@@ -4292,19 +4293,19 @@ function Oa(e) {
|
|
|
4292
4293
|
offsetParent: r,
|
|
4293
4294
|
strategy: o
|
|
4294
4295
|
} = e;
|
|
4295
|
-
const
|
|
4296
|
-
if (r ===
|
|
4296
|
+
const i = o === "fixed", s = tt(r), a = t ? Rr(t.floating) : !1;
|
|
4297
|
+
if (r === s || a && i)
|
|
4297
4298
|
return n;
|
|
4298
4299
|
let c = {
|
|
4299
4300
|
scrollLeft: 0,
|
|
4300
4301
|
scrollTop: 0
|
|
4301
4302
|
}, d = Ke(1);
|
|
4302
4303
|
const f = Ke(0), A = et(r);
|
|
4303
|
-
if ((A || !A && !
|
|
4304
|
+
if ((A || !A && !i) && ((Ut(r) !== "body" || ir(s)) && (c = _r(r)), et(r))) {
|
|
4304
4305
|
const w = Bt(r);
|
|
4305
4306
|
d = Pt(r), f.x = w.x + r.clientLeft, f.y = w.y + r.clientTop;
|
|
4306
4307
|
}
|
|
4307
|
-
const b =
|
|
4308
|
+
const b = s && !A && !i ? Mo(s, c, !0) : Ke(0);
|
|
4308
4309
|
return {
|
|
4309
4310
|
width: n.width * d.x,
|
|
4310
4311
|
height: n.height * d.y,
|
|
@@ -4316,35 +4317,35 @@ function La(e) {
|
|
|
4316
4317
|
return Array.from(e.getClientRects());
|
|
4317
4318
|
}
|
|
4318
4319
|
function Ba(e) {
|
|
4319
|
-
const t = tt(e), n = _r(e), r = e.ownerDocument.body, o = Rt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth),
|
|
4320
|
-
let
|
|
4320
|
+
const t = tt(e), n = _r(e), r = e.ownerDocument.body, o = Rt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = Rt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
4321
|
+
let s = -n.scrollLeft + gn(e);
|
|
4321
4322
|
const a = -n.scrollTop;
|
|
4322
|
-
return He(r).direction === "rtl" && (
|
|
4323
|
+
return He(r).direction === "rtl" && (s += Rt(t.clientWidth, r.clientWidth) - o), {
|
|
4323
4324
|
width: o,
|
|
4324
|
-
height:
|
|
4325
|
-
x:
|
|
4325
|
+
height: i,
|
|
4326
|
+
x: s,
|
|
4326
4327
|
y: a
|
|
4327
4328
|
};
|
|
4328
4329
|
}
|
|
4329
4330
|
function Na(e, t) {
|
|
4330
4331
|
const n = Fe(e), r = tt(e), o = n.visualViewport;
|
|
4331
|
-
let
|
|
4332
|
+
let i = r.clientWidth, s = r.clientHeight, a = 0, c = 0;
|
|
4332
4333
|
if (o) {
|
|
4333
|
-
|
|
4334
|
+
i = o.width, s = o.height;
|
|
4334
4335
|
const d = mn();
|
|
4335
4336
|
(!d || d && t === "fixed") && (a = o.offsetLeft, c = o.offsetTop);
|
|
4336
4337
|
}
|
|
4337
4338
|
return {
|
|
4338
|
-
width:
|
|
4339
|
-
height:
|
|
4339
|
+
width: i,
|
|
4340
|
+
height: s,
|
|
4340
4341
|
x: a,
|
|
4341
4342
|
y: c
|
|
4342
4343
|
};
|
|
4343
4344
|
}
|
|
4344
4345
|
function Ta(e, t) {
|
|
4345
|
-
const n = Bt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft,
|
|
4346
|
+
const n = Bt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = et(e) ? Pt(e) : Ke(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, c = o * i.x, d = r * i.y;
|
|
4346
4347
|
return {
|
|
4347
|
-
width:
|
|
4348
|
+
width: s,
|
|
4348
4349
|
height: a,
|
|
4349
4350
|
x: c,
|
|
4350
4351
|
y: d
|
|
@@ -4378,11 +4379,11 @@ function Wa(e, t) {
|
|
|
4378
4379
|
if (n)
|
|
4379
4380
|
return n;
|
|
4380
4381
|
let r = tr(e, [], !1).filter((a) => Ve(a) && Ut(a) !== "body"), o = null;
|
|
4381
|
-
const
|
|
4382
|
-
let
|
|
4383
|
-
for (; Ve(
|
|
4384
|
-
const a = He(
|
|
4385
|
-
!c && a.position === "fixed" && (o = null), (
|
|
4382
|
+
const i = He(e).position === "fixed";
|
|
4383
|
+
let s = i ? bt(e) : e;
|
|
4384
|
+
for (; Ve(s) && !Gt(s); ) {
|
|
4385
|
+
const a = He(s), c = pn(s);
|
|
4386
|
+
!c && a.position === "fixed" && (o = null), (i ? !c && !o : !c && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || ir(s) && !c && Zo(e, s)) ? r = r.filter((f) => f !== s) : o = a, s = bt(s);
|
|
4386
4387
|
}
|
|
4387
4388
|
return t.set(e, r), r;
|
|
4388
4389
|
}
|
|
@@ -4393,7 +4394,7 @@ function Fa(e) {
|
|
|
4393
4394
|
rootBoundary: r,
|
|
4394
4395
|
strategy: o
|
|
4395
4396
|
} = e;
|
|
4396
|
-
const
|
|
4397
|
+
const s = [...n === "clippingAncestors" ? Rr(t) ? [] : Wa(t, this._c) : [].concat(n), r], a = s[0], c = s.reduce((d, f) => {
|
|
4397
4398
|
const A = Dn(t, f, o);
|
|
4398
4399
|
return d.top = Rt(A.top, d.top), d.right = Zt(A.right, d.right), d.bottom = Zt(A.bottom, d.bottom), d.left = Rt(A.left, d.left), d;
|
|
4399
4400
|
}, Dn(t, a, o));
|
|
@@ -4415,23 +4416,23 @@ function Pa(e) {
|
|
|
4415
4416
|
};
|
|
4416
4417
|
}
|
|
4417
4418
|
function Ma(e, t, n) {
|
|
4418
|
-
const r = et(t), o = tt(t),
|
|
4419
|
+
const r = et(t), o = tt(t), i = n === "fixed", s = Bt(e, !0, i, t);
|
|
4419
4420
|
let a = {
|
|
4420
4421
|
scrollLeft: 0,
|
|
4421
4422
|
scrollTop: 0
|
|
4422
4423
|
};
|
|
4423
4424
|
const c = Ke(0);
|
|
4424
|
-
if (r || !r && !
|
|
4425
|
+
if (r || !r && !i)
|
|
4425
4426
|
if ((Ut(t) !== "body" || ir(o)) && (a = _r(t)), r) {
|
|
4426
|
-
const b = Bt(t, !0,
|
|
4427
|
+
const b = Bt(t, !0, i, t);
|
|
4427
4428
|
c.x = b.x + t.clientLeft, c.y = b.y + t.clientTop;
|
|
4428
4429
|
} else o && (c.x = gn(o));
|
|
4429
|
-
const d = o && !r && !
|
|
4430
|
+
const d = o && !r && !i ? Mo(o, a) : Ke(0), f = s.left + a.scrollLeft - c.x - d.x, A = s.top + a.scrollTop - c.y - d.y;
|
|
4430
4431
|
return {
|
|
4431
4432
|
x: f,
|
|
4432
4433
|
y: A,
|
|
4433
|
-
width:
|
|
4434
|
-
height:
|
|
4434
|
+
width: s.width,
|
|
4435
|
+
height: s.height
|
|
4435
4436
|
};
|
|
4436
4437
|
}
|
|
4437
4438
|
function Mr(e) {
|
|
@@ -4496,12 +4497,12 @@ function Go(e, t) {
|
|
|
4496
4497
|
function Va(e, t) {
|
|
4497
4498
|
let n = null, r;
|
|
4498
4499
|
const o = tt(e);
|
|
4499
|
-
function
|
|
4500
|
+
function i() {
|
|
4500
4501
|
var a;
|
|
4501
4502
|
clearTimeout(r), (a = n) == null || a.disconnect(), n = null;
|
|
4502
4503
|
}
|
|
4503
|
-
function
|
|
4504
|
-
a === void 0 && (a = !1), c === void 0 && (c = 1),
|
|
4504
|
+
function s(a, c) {
|
|
4505
|
+
a === void 0 && (a = !1), c === void 0 && (c = 1), i();
|
|
4505
4506
|
const d = e.getBoundingClientRect(), {
|
|
4506
4507
|
left: f,
|
|
4507
4508
|
top: A,
|
|
@@ -4519,12 +4520,12 @@ function Va(e, t) {
|
|
|
4519
4520
|
const S = T[0].intersectionRatio;
|
|
4520
4521
|
if (S !== c) {
|
|
4521
4522
|
if (!O)
|
|
4522
|
-
return
|
|
4523
|
-
S ?
|
|
4524
|
-
|
|
4523
|
+
return s();
|
|
4524
|
+
S ? s(!1, S) : r = setTimeout(() => {
|
|
4525
|
+
s(!1, 1e-7);
|
|
4525
4526
|
}, 1e3);
|
|
4526
4527
|
}
|
|
4527
|
-
S === 1 && !Go(d, e.getBoundingClientRect()) &&
|
|
4528
|
+
S === 1 && !Go(d, e.getBoundingClientRect()) && s(), O = !1;
|
|
4528
4529
|
}
|
|
4529
4530
|
try {
|
|
4530
4531
|
n = new IntersectionObserver(E, {
|
|
@@ -4537,25 +4538,25 @@ function Va(e, t) {
|
|
|
4537
4538
|
}
|
|
4538
4539
|
n.observe(e);
|
|
4539
4540
|
}
|
|
4540
|
-
return
|
|
4541
|
+
return s(!0), i;
|
|
4541
4542
|
}
|
|
4542
4543
|
function Ha(e, t, n, r) {
|
|
4543
4544
|
r === void 0 && (r = {});
|
|
4544
4545
|
const {
|
|
4545
4546
|
ancestorScroll: o = !0,
|
|
4546
|
-
ancestorResize:
|
|
4547
|
-
elementResize:
|
|
4547
|
+
ancestorResize: i = !0,
|
|
4548
|
+
elementResize: s = typeof ResizeObserver == "function",
|
|
4548
4549
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
4549
4550
|
animationFrame: c = !1
|
|
4550
|
-
} = r, d = hn(e), f = o ||
|
|
4551
|
+
} = r, d = hn(e), f = o || i ? [...d ? tr(d) : [], ...tr(t)] : [];
|
|
4551
4552
|
f.forEach((x) => {
|
|
4552
4553
|
o && x.addEventListener("scroll", n, {
|
|
4553
4554
|
passive: !0
|
|
4554
|
-
}),
|
|
4555
|
+
}), i && x.addEventListener("resize", n);
|
|
4555
4556
|
});
|
|
4556
4557
|
const A = d && a ? Va(d, n) : null;
|
|
4557
4558
|
let b = -1, w = null;
|
|
4558
|
-
|
|
4559
|
+
s && (w = new ResizeObserver((x) => {
|
|
4559
4560
|
let [k] = x;
|
|
4560
4561
|
k && k.target === d && w && (w.unobserve(t), cancelAnimationFrame(b), b = requestAnimationFrame(() => {
|
|
4561
4562
|
var C;
|
|
@@ -4571,7 +4572,7 @@ function Ha(e, t, n, r) {
|
|
|
4571
4572
|
return n(), () => {
|
|
4572
4573
|
var x;
|
|
4573
4574
|
f.forEach((k) => {
|
|
4574
|
-
o && k.removeEventListener("scroll", n),
|
|
4575
|
+
o && k.removeEventListener("scroll", n), i && k.removeEventListener("resize", n);
|
|
4575
4576
|
}), A == null || A(), (x = w) == null || x.disconnect(), w = null, c && cancelAnimationFrame(p);
|
|
4576
4577
|
};
|
|
4577
4578
|
}
|
|
@@ -4579,13 +4580,13 @@ const Ua = Ca, za = Sa, Ja = ka, Ya = ya, Vn = (e, t, n) => {
|
|
|
4579
4580
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
4580
4581
|
platform: Ga,
|
|
4581
4582
|
...n
|
|
4582
|
-
},
|
|
4583
|
+
}, i = {
|
|
4583
4584
|
...o.platform,
|
|
4584
4585
|
_c: r
|
|
4585
4586
|
};
|
|
4586
4587
|
return xa(e, t, {
|
|
4587
4588
|
...o,
|
|
4588
|
-
platform:
|
|
4589
|
+
platform: i
|
|
4589
4590
|
});
|
|
4590
4591
|
};
|
|
4591
4592
|
/*
|
|
@@ -4596,19 +4597,19 @@ const Ua = Ca, za = Sa, Ja = ka, Ya = ya, Vn = (e, t, n) => {
|
|
|
4596
4597
|
*/
|
|
4597
4598
|
const Xa = "react-tooltip-core-styles", Qa = "react-tooltip-base-styles", Hn = { core: !1, base: !1 };
|
|
4598
4599
|
function Un({ css: e, id: t = Qa, type: n = "base", ref: r }) {
|
|
4599
|
-
var o,
|
|
4600
|
-
if (!e || typeof document > "u" || Hn[n] || n === "core" && typeof process < "u" && (!((o = process == null ? void 0 : process.env) === null || o === void 0) && o.REACT_TOOLTIP_DISABLE_CORE_STYLES) || n !== "base" && typeof process < "u" && (!((
|
|
4600
|
+
var o, i;
|
|
4601
|
+
if (!e || typeof document > "u" || Hn[n] || n === "core" && typeof process < "u" && (!((o = process == null ? void 0 : process.env) === null || o === void 0) && o.REACT_TOOLTIP_DISABLE_CORE_STYLES) || n !== "base" && typeof process < "u" && (!((i = process == null ? void 0 : process.env) === null || i === void 0) && i.REACT_TOOLTIP_DISABLE_BASE_STYLES)) return;
|
|
4601
4602
|
n === "core" && (t = Xa), r || (r = {});
|
|
4602
|
-
const { insertAt:
|
|
4603
|
+
const { insertAt: s } = r;
|
|
4603
4604
|
if (document.getElementById(t)) return;
|
|
4604
4605
|
const a = document.head || document.getElementsByTagName("head")[0], c = document.createElement("style");
|
|
4605
|
-
c.id = t, c.type = "text/css",
|
|
4606
|
+
c.id = t, c.type = "text/css", s === "top" && a.firstChild ? a.insertBefore(c, a.firstChild) : a.appendChild(c), c.styleSheet ? c.styleSheet.cssText = e : c.appendChild(document.createTextNode(e)), Hn[n] = !0;
|
|
4606
4607
|
}
|
|
4607
|
-
const zn = async ({ elementReference: e = null, tooltipReference: t = null, tooltipArrowReference: n = null, place: r = "top", offset: o = 10, strategy:
|
|
4608
|
+
const zn = async ({ elementReference: e = null, tooltipReference: t = null, tooltipArrowReference: n = null, place: r = "top", offset: o = 10, strategy: i = "absolute", middlewares: s = [Ua(Number(o)), Ja({ fallbackAxisSideDirection: "start" }), za({ padding: 5 })], border: a }) => {
|
|
4608
4609
|
if (!e) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: r };
|
|
4609
4610
|
if (t === null) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: r };
|
|
4610
|
-
const c =
|
|
4611
|
-
return n ? (c.push(Ya({ element: n, padding: 5 })), Vn(e, t, { placement: r, strategy:
|
|
4611
|
+
const c = s;
|
|
4612
|
+
return n ? (c.push(Ya({ element: n, padding: 5 })), Vn(e, t, { placement: r, strategy: i, middleware: c }).then(({ x: d, y: f, placement: A, middlewareData: b }) => {
|
|
4612
4613
|
var w, p;
|
|
4613
4614
|
const g = { left: `${d}px`, top: `${f}px`, border: a }, { x: h, y: x } = (w = b.arrow) !== null && w !== void 0 ? w : { x: 0, y: 0 }, k = (p = { top: "bottom", right: "left", bottom: "top", left: "right" }[A.split("-")[0]]) !== null && p !== void 0 ? p : "bottom", C = a && { borderBottom: a, borderRight: a };
|
|
4614
4615
|
let O = 0;
|
|
@@ -4617,21 +4618,21 @@ const zn = async ({ elementReference: e = null, tooltipReference: t = null, tool
|
|
|
4617
4618
|
O = E != null && E[1] ? Number(E[1]) : 1;
|
|
4618
4619
|
}
|
|
4619
4620
|
return { tooltipStyles: g, tooltipArrowStyles: { left: h != null ? `${h}px` : "", top: x != null ? `${x}px` : "", right: "", bottom: "", ...C, [k]: `-${4 + O}px` }, place: A };
|
|
4620
|
-
})) : Vn(e, t, { placement: "bottom", strategy:
|
|
4621
|
+
})) : Vn(e, t, { placement: "bottom", strategy: i, middleware: c }).then(({ x: d, y: f, placement: A }) => ({ tooltipStyles: { left: `${d}px`, top: `${f}px` }, tooltipArrowStyles: {}, place: A }));
|
|
4621
4622
|
}, Jn = (e, t) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(e, t), Yn = (e, t, n) => {
|
|
4622
4623
|
let r = null;
|
|
4623
|
-
const o = function(...
|
|
4624
|
-
const
|
|
4624
|
+
const o = function(...i) {
|
|
4625
|
+
const s = () => {
|
|
4625
4626
|
r = null;
|
|
4626
4627
|
};
|
|
4627
|
-
!r && (e.apply(this,
|
|
4628
|
+
!r && (e.apply(this, i), r = setTimeout(s, t));
|
|
4628
4629
|
};
|
|
4629
4630
|
return o.cancel = () => {
|
|
4630
4631
|
r && (clearTimeout(r), r = null);
|
|
4631
4632
|
}, o;
|
|
4632
4633
|
}, Xn = (e) => e !== null && !Array.isArray(e) && typeof e == "object", Kr = (e, t) => {
|
|
4633
4634
|
if (e === t) return !0;
|
|
4634
|
-
if (Array.isArray(e) && Array.isArray(t)) return e.length === t.length && e.every((o,
|
|
4635
|
+
if (Array.isArray(e) && Array.isArray(t)) return e.length === t.length && e.every((o, i) => Kr(o, t[i]));
|
|
4635
4636
|
if (Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
4636
4637
|
if (!Xn(e) || !Xn(t)) return e === t;
|
|
4637
4638
|
const n = Object.keys(e), r = Object.keys(t);
|
|
@@ -4661,7 +4662,7 @@ function Vo(e = Ka) {
|
|
|
4661
4662
|
return ss(tl).getTooltipData(e);
|
|
4662
4663
|
}
|
|
4663
4664
|
var Wt = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, Zr = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
|
|
4664
|
-
const rl = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o = "dark", anchorId:
|
|
4665
|
+
const rl = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o = "dark", anchorId: i, anchorSelect: s, place: a = "top", offset: c = 10, events: d = ["hover"], openOnClick: f = !1, positionStrategy: A = "absolute", middlewares: b, wrapper: w, delayShow: p = 0, delayHide: g = 0, float: h = !1, hidden: x = !1, noArrow: k = !1, clickable: C = !1, closeOnEsc: O = !1, closeOnScroll: E = !1, closeOnResize: T = !1, openEvents: S, closeEvents: y, globalCloseEvents: N, imperativeModeOnly: Ae, style: he, position: ae, afterShow: se, afterHide: G, disableTooltip: te, content: K, contentWrapperRef: X, isOpen: j, defaultIsOpen: le = !1, setIsOpen: we, activeAnchor: oe, setActiveAnchor: Ie, border: q, opacity: ce, arrowColor: Le, role: R = "tooltip" }) => {
|
|
4665
4666
|
var H;
|
|
4666
4667
|
const Q = Ce(null), ue = Ce(null), fe = Ce(null), _e = Ce(null), Be = Ce(null), [ze, Yt] = Z({ tooltipStyles: {}, tooltipArrowStyles: {}, place: a }), [ve, Je] = Z(!1), [Ye, Xe] = Z(!1), [ie, vt] = Z(null), xt = Ce(!1), rt = Ce(null), { anchorRefs: yt, setActiveAnchor: Nt } = Vo(t), nt = Ce(!1), [Ge, At] = Z([]), ot = Ce(!1), st = f || d.includes("click"), pt = st || (S == null ? void 0 : S.click) || (S == null ? void 0 : S.dblclick) || (S == null ? void 0 : S.mousedown), mt = S ? { ...S } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
|
|
4667
4668
|
!S && st && Object.assign(mt, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
|
|
@@ -4671,24 +4672,24 @@ const rl = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
4671
4672
|
Ae && (Object.assign(mt, { mouseenter: !1, focus: !1, click: !1, dblclick: !1, mousedown: !1 }), Object.assign(kt, { mouseleave: !1, blur: !1, click: !1, dblclick: !1, mouseup: !1 }), Object.assign(Ne, { escape: !1, scroll: !1, resize: !1, clickOutsideAnchor: !1 })), $a(() => (ot.current = !0, () => {
|
|
4672
4673
|
ot.current = !1;
|
|
4673
4674
|
}), []);
|
|
4674
|
-
const pe = (
|
|
4675
|
-
ot.current && (
|
|
4676
|
-
ot.current && (we == null || we(
|
|
4675
|
+
const pe = (_) => {
|
|
4676
|
+
ot.current && (_ && Xe(!0), setTimeout(() => {
|
|
4677
|
+
ot.current && (we == null || we(_), j === void 0 && Je(_));
|
|
4677
4678
|
}, 10));
|
|
4678
4679
|
};
|
|
4679
4680
|
$(() => {
|
|
4680
4681
|
if (j === void 0) return () => null;
|
|
4681
4682
|
j && Xe(!0);
|
|
4682
|
-
const
|
|
4683
|
+
const _ = setTimeout(() => {
|
|
4683
4684
|
Je(j);
|
|
4684
4685
|
}, 10);
|
|
4685
4686
|
return () => {
|
|
4686
|
-
clearTimeout(
|
|
4687
|
+
clearTimeout(_);
|
|
4687
4688
|
};
|
|
4688
4689
|
}, [j]), $(() => {
|
|
4689
4690
|
if (ve !== xt.current) if (De(Be), xt.current = ve, ve) se == null || se();
|
|
4690
4691
|
else {
|
|
4691
|
-
const
|
|
4692
|
+
const _ = ((P) => {
|
|
4692
4693
|
const D = P.match(/^([\d.]+)(ms|s)$/);
|
|
4693
4694
|
if (!D) return 0;
|
|
4694
4695
|
const [, me, xe] = D;
|
|
@@ -4696,60 +4697,60 @@ const rl = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
4696
4697
|
})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));
|
|
4697
4698
|
Be.current = setTimeout(() => {
|
|
4698
4699
|
Xe(!1), vt(null), G == null || G();
|
|
4699
|
-
},
|
|
4700
|
+
}, _ + 25);
|
|
4700
4701
|
}
|
|
4701
4702
|
}, [ve]);
|
|
4702
|
-
const Tt = (
|
|
4703
|
-
Yt((P) => Kr(P,
|
|
4704
|
-
}, It = (
|
|
4703
|
+
const Tt = (_) => {
|
|
4704
|
+
Yt((P) => Kr(P, _) ? P : _);
|
|
4705
|
+
}, It = (_ = p) => {
|
|
4705
4706
|
De(fe), Ye ? pe(!0) : fe.current = setTimeout(() => {
|
|
4706
4707
|
pe(!0);
|
|
4707
|
-
},
|
|
4708
|
-
}, ht = (
|
|
4708
|
+
}, _);
|
|
4709
|
+
}, ht = (_ = g) => {
|
|
4709
4710
|
De(_e), _e.current = setTimeout(() => {
|
|
4710
4711
|
nt.current || pe(!1);
|
|
4711
|
-
},
|
|
4712
|
-
}, it = (
|
|
4712
|
+
}, _);
|
|
4713
|
+
}, it = (_) => {
|
|
4713
4714
|
var P;
|
|
4714
|
-
if (!
|
|
4715
|
-
const D = (P =
|
|
4715
|
+
if (!_) return;
|
|
4716
|
+
const D = (P = _.currentTarget) !== null && P !== void 0 ? P : _.target;
|
|
4716
4717
|
if (!(D != null && D.isConnected)) return Ie(null), void Nt({ current: null });
|
|
4717
4718
|
p ? It() : pe(!0), Ie(D), Nt({ current: D }), De(_e);
|
|
4718
4719
|
}, at = () => {
|
|
4719
4720
|
C ? ht(g || 100) : g ? ht() : pe(!1), De(fe);
|
|
4720
|
-
}, Te = ({ x:
|
|
4721
|
+
}, Te = ({ x: _, y: P }) => {
|
|
4721
4722
|
var D;
|
|
4722
|
-
const me = { getBoundingClientRect: () => ({ x:
|
|
4723
|
+
const me = { getBoundingClientRect: () => ({ x: _, y: P, width: 0, height: 0, top: P, left: _, right: _, bottom: P }) };
|
|
4723
4724
|
zn({ place: (D = ie == null ? void 0 : ie.place) !== null && D !== void 0 ? D : a, offset: c, elementReference: me, tooltipReference: Q.current, tooltipArrowReference: ue.current, strategy: A, middlewares: b, border: q }).then((xe) => {
|
|
4724
4725
|
Tt(xe);
|
|
4725
4726
|
});
|
|
4726
|
-
}, Qe = (
|
|
4727
|
-
if (!
|
|
4728
|
-
const P =
|
|
4727
|
+
}, Qe = (_) => {
|
|
4728
|
+
if (!_) return;
|
|
4729
|
+
const P = _, D = { x: P.clientX, y: P.clientY };
|
|
4729
4730
|
Te(D), rt.current = D;
|
|
4730
|
-
}, lt = (
|
|
4731
|
+
}, lt = (_) => {
|
|
4731
4732
|
var P;
|
|
4732
4733
|
if (!ve) return;
|
|
4733
|
-
const D =
|
|
4734
|
-
D.isConnected && (!((P = Q.current) === null || P === void 0) && P.contains(D) || [document.querySelector(`[id='${
|
|
4735
|
-
}, Ct = Yn(it, 50), ge = Yn(at, 50), Re = (
|
|
4736
|
-
ge.cancel(), Ct(
|
|
4734
|
+
const D = _.target;
|
|
4735
|
+
D.isConnected && (!((P = Q.current) === null || P === void 0) && P.contains(D) || [document.querySelector(`[id='${i}']`), ...Ge].some((me) => me == null ? void 0 : me.contains(D)) || (pe(!1), De(fe)));
|
|
4736
|
+
}, Ct = Yn(it, 50), ge = Yn(at, 50), Re = (_) => {
|
|
4737
|
+
ge.cancel(), Ct(_);
|
|
4737
4738
|
}, F = () => {
|
|
4738
4739
|
Ct.cancel(), ge();
|
|
4739
4740
|
}, J = $e(() => {
|
|
4740
|
-
var
|
|
4741
|
-
const D = (
|
|
4741
|
+
var _, P;
|
|
4742
|
+
const D = (_ = ie == null ? void 0 : ie.position) !== null && _ !== void 0 ? _ : ae;
|
|
4742
4743
|
D ? Te(D) : h ? rt.current && Te(rt.current) : oe != null && oe.isConnected && zn({ place: (P = ie == null ? void 0 : ie.place) !== null && P !== void 0 ? P : a, offset: c, elementReference: oe, tooltipReference: Q.current, tooltipArrowReference: ue.current, strategy: A, middlewares: b, border: q }).then((me) => {
|
|
4743
4744
|
ot.current && Tt(me);
|
|
4744
4745
|
});
|
|
4745
4746
|
}, [ve, oe, K, he, a, ie == null ? void 0 : ie.place, c, A, ae, ie == null ? void 0 : ie.position, h]);
|
|
4746
4747
|
$(() => {
|
|
4747
|
-
var
|
|
4748
|
+
var _, P;
|
|
4748
4749
|
const D = new Set(yt);
|
|
4749
4750
|
Ge.forEach((M) => {
|
|
4750
4751
|
te != null && te(M) || D.add({ current: M });
|
|
4751
4752
|
});
|
|
4752
|
-
const me = document.querySelector(`[id='${
|
|
4753
|
+
const me = document.querySelector(`[id='${i}']`);
|
|
4753
4754
|
me && !(te != null && te(me)) && D.add({ current: me });
|
|
4754
4755
|
const xe = () => {
|
|
4755
4756
|
pe(!1);
|
|
@@ -4776,7 +4777,7 @@ const rl = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
4776
4777
|
}, ye = () => {
|
|
4777
4778
|
nt.current = !1, at();
|
|
4778
4779
|
};
|
|
4779
|
-
return C && !pt && ((
|
|
4780
|
+
return C && !pt && ((_ = Q.current) === null || _ === void 0 || _.addEventListener("mouseenter", U), (P = Q.current) === null || P === void 0 || P.addEventListener("mouseleave", ye)), I.forEach(({ event: M, listener: ne }) => {
|
|
4780
4781
|
D.forEach((je) => {
|
|
4781
4782
|
var Ze;
|
|
4782
4783
|
(Ze = je.current) === null || Ze === void 0 || Ze.addEventListener(M, ne);
|
|
@@ -4791,8 +4792,8 @@ const rl = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
4791
4792
|
});
|
|
4792
4793
|
};
|
|
4793
4794
|
}, [oe, J, Ye, yt, Ge, S, y, N, st, p, g]), $(() => {
|
|
4794
|
-
var
|
|
4795
|
-
let D = (P = (
|
|
4795
|
+
var _, P;
|
|
4796
|
+
let D = (P = (_ = ie == null ? void 0 : ie.anchorSelect) !== null && _ !== void 0 ? _ : s) !== null && P !== void 0 ? P : "";
|
|
4796
4797
|
!D && t && (D = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`);
|
|
4797
4798
|
const me = new MutationObserver((xe) => {
|
|
4798
4799
|
const Pe = [], Me = [];
|
|
@@ -4820,48 +4821,48 @@ const rl = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
4820
4821
|
return me.observe(document.body, { childList: !0, subtree: !0, attributes: !0, attributeFilter: ["data-tooltip-id"], attributeOldValue: !0 }), () => {
|
|
4821
4822
|
me.disconnect();
|
|
4822
4823
|
};
|
|
4823
|
-
}, [t,
|
|
4824
|
+
}, [t, s, ie == null ? void 0 : ie.anchorSelect, oe]), $(() => {
|
|
4824
4825
|
J();
|
|
4825
4826
|
}, [J]), $(() => {
|
|
4826
4827
|
if (!(X != null && X.current)) return () => null;
|
|
4827
|
-
const
|
|
4828
|
+
const _ = new ResizeObserver(() => {
|
|
4828
4829
|
setTimeout(() => J());
|
|
4829
4830
|
});
|
|
4830
|
-
return
|
|
4831
|
-
|
|
4831
|
+
return _.observe(X.current), () => {
|
|
4832
|
+
_.disconnect();
|
|
4832
4833
|
};
|
|
4833
4834
|
}, [K, X == null ? void 0 : X.current]), $(() => {
|
|
4834
|
-
var
|
|
4835
|
-
const P = document.querySelector(`[id='${
|
|
4836
|
-
oe && D.includes(oe) || Ie((
|
|
4837
|
-
}, [
|
|
4835
|
+
var _;
|
|
4836
|
+
const P = document.querySelector(`[id='${i}']`), D = [...Ge, P];
|
|
4837
|
+
oe && D.includes(oe) || Ie((_ = Ge[0]) !== null && _ !== void 0 ? _ : P);
|
|
4838
|
+
}, [i, Ge, oe]), $(() => (le && pe(!0), () => {
|
|
4838
4839
|
De(fe), De(_e);
|
|
4839
4840
|
}), []), $(() => {
|
|
4840
|
-
var
|
|
4841
|
-
let P = (
|
|
4841
|
+
var _;
|
|
4842
|
+
let P = (_ = ie == null ? void 0 : ie.anchorSelect) !== null && _ !== void 0 ? _ : s;
|
|
4842
4843
|
if (!P && t && (P = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`), P) try {
|
|
4843
4844
|
const D = Array.from(document.querySelectorAll(P));
|
|
4844
4845
|
At(D);
|
|
4845
4846
|
} catch {
|
|
4846
4847
|
At([]);
|
|
4847
4848
|
}
|
|
4848
|
-
}, [t,
|
|
4849
|
+
}, [t, s, ie == null ? void 0 : ie.anchorSelect]), $(() => {
|
|
4849
4850
|
fe.current && (De(fe), It(p));
|
|
4850
4851
|
}, [p]);
|
|
4851
4852
|
const Se = (H = ie == null ? void 0 : ie.content) !== null && H !== void 0 ? H : K, ct = ve && Object.keys(ze.tooltipStyles).length > 0;
|
|
4852
|
-
return to(e, () => ({ open: (
|
|
4853
|
-
if (
|
|
4854
|
-
document.querySelector(
|
|
4853
|
+
return to(e, () => ({ open: (_) => {
|
|
4854
|
+
if (_ != null && _.anchorSelect) try {
|
|
4855
|
+
document.querySelector(_.anchorSelect);
|
|
4855
4856
|
} catch {
|
|
4856
|
-
return void console.warn(`[react-tooltip] "${
|
|
4857
|
+
return void console.warn(`[react-tooltip] "${_.anchorSelect}" is not a valid CSS selector`);
|
|
4857
4858
|
}
|
|
4858
|
-
vt(
|
|
4859
|
-
}, close: (
|
|
4860
|
-
|
|
4861
|
-
}, activeAnchor: oe, place: ze.place, isOpen: !!(Ye && !x && Se && ct) })), Ye && !x && Se ? ft.createElement(w, { id: t, role:
|
|
4862
|
-
De(Be), ve ||
|
|
4859
|
+
vt(_ ?? null), _ != null && _.delay ? It(_.delay) : pe(!0);
|
|
4860
|
+
}, close: (_) => {
|
|
4861
|
+
_ != null && _.delay ? ht(_.delay) : pe(!1);
|
|
4862
|
+
}, activeAnchor: oe, place: ze.place, isOpen: !!(Ye && !x && Se && ct) })), Ye && !x && Se ? ft.createElement(w, { id: t, role: R, className: Xr("react-tooltip", Wt.tooltip, Zr.tooltip, Zr[o], n, `react-tooltip__place-${ze.place}`, Wt[ct ? "show" : "closing"], ct ? "react-tooltip__show" : "react-tooltip__closing", A === "fixed" && Wt.fixed, C && Wt.clickable), onTransitionEnd: (_) => {
|
|
4863
|
+
De(Be), ve || _.propertyName !== "opacity" || (Xe(!1), vt(null), G == null || G());
|
|
4863
4864
|
}, style: { ...he, ...ze.tooltipStyles, opacity: ce !== void 0 && ct ? ce : void 0 }, ref: Q }, Se, ft.createElement(w, { className: Xr("react-tooltip-arrow", Wt.arrow, Zr.arrow, r, k && Wt.noArrow), style: { ...ze.tooltipArrowStyles, background: Le ? `linear-gradient(to right bottom, transparent 50%, ${Le} 50%)` : void 0 }, ref: ue })) : null;
|
|
4864
|
-
}, nl = ({ content: e }) => ft.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), ol = ft.forwardRef(({ id: e, anchorId: t, anchorSelect: n, content: r, html: o, render:
|
|
4865
|
+
}, nl = ({ content: e }) => ft.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), ol = ft.forwardRef(({ id: e, anchorId: t, anchorSelect: n, content: r, html: o, render: i, className: s, classNameArrow: a, variant: c = "dark", place: d = "top", offset: f = 10, wrapper: A = "div", children: b = null, events: w = ["hover"], openOnClick: p = !1, positionStrategy: g = "absolute", middlewares: h, delayShow: x = 0, delayHide: k = 0, float: C = !1, hidden: O = !1, noArrow: E = !1, clickable: T = !1, closeOnEsc: S = !1, closeOnScroll: y = !1, closeOnResize: N = !1, openEvents: Ae, closeEvents: he, globalCloseEvents: ae, imperativeModeOnly: se = !1, style: G, position: te, isOpen: K, defaultIsOpen: X = !1, disableStyleInjection: j = !1, border: le, opacity: we, arrowColor: oe, setIsOpen: Ie, afterShow: q, afterHide: ce, disableTooltip: Le, role: R = "tooltip" }, H) => {
|
|
4865
4866
|
const [Q, ue] = Z(r), [fe, _e] = Z(o), [Be, ze] = Z(d), [Yt, ve] = Z(c), [Je, Ye] = Z(f), [Xe, ie] = Z(x), [vt, xt] = Z(k), [rt, yt] = Z(C), [Nt, nt] = Z(O), [Ge, At] = Z(A), [ot, st] = Z(w), [pt, mt] = Z(g), [kt, Ne] = Z(null), [pe, Tt] = Z(null), It = Ce(j), { anchorRefs: ht, activeAnchor: it } = Vo(e), at = (ge) => ge == null ? void 0 : ge.getAttributeNames().reduce((Re, F) => {
|
|
4866
4867
|
var J;
|
|
4867
4868
|
return F.startsWith("data-tooltip-") && (Re[F.replace(/^data-tooltip-/, "")] = (J = ge == null ? void 0 : ge.getAttribute(F)) !== null && J !== void 0 ? J : null), Re;
|
|
@@ -4947,10 +4948,10 @@ const rl = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
4947
4948
|
const xe = at(Se);
|
|
4948
4949
|
Te(xe);
|
|
4949
4950
|
});
|
|
4950
|
-
}),
|
|
4951
|
+
}), _ = { attributes: !0, childList: !1, subtree: !1 };
|
|
4951
4952
|
if (Se) {
|
|
4952
4953
|
const P = at(Se);
|
|
4953
|
-
Te(P), ct.observe(Se,
|
|
4954
|
+
Te(P), ct.observe(Se, _);
|
|
4954
4955
|
}
|
|
4955
4956
|
return () => {
|
|
4956
4957
|
ct.disconnect();
|
|
@@ -4960,12 +4961,12 @@ const rl = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: o
|
|
|
4960
4961
|
}, []);
|
|
4961
4962
|
let Qe = b;
|
|
4962
4963
|
const lt = Ce(null);
|
|
4963
|
-
if (
|
|
4964
|
-
const ge =
|
|
4964
|
+
if (i) {
|
|
4965
|
+
const ge = i({ content: (pe == null ? void 0 : pe.getAttribute("data-tooltip-content")) || Q || null, activeAnchor: pe });
|
|
4965
4966
|
Qe = ge ? ft.createElement("div", { ref: lt, className: "react-tooltip-content-wrapper" }, ge) : null;
|
|
4966
4967
|
} else Q && (Qe = Q);
|
|
4967
4968
|
fe && (Qe = ft.createElement(nl, { content: fe }));
|
|
4968
|
-
const Ct = { forwardRef: H, id: e, anchorId: t, anchorSelect: n, className: Xr(
|
|
4969
|
+
const Ct = { forwardRef: H, id: e, anchorId: t, anchorSelect: n, className: Xr(s, kt), classNameArrow: a, content: Qe, contentWrapperRef: lt, place: Be, variant: Yt, offset: Je, wrapper: Ge, events: ot, openOnClick: p, positionStrategy: pt, middlewares: h, delayShow: Xe, delayHide: vt, float: rt, hidden: Nt, noArrow: E, clickable: T, closeOnEsc: S, closeOnScroll: y, closeOnResize: N, openEvents: Ae, closeEvents: he, globalCloseEvents: ae, imperativeModeOnly: se, style: G, position: te, isOpen: K, defaultIsOpen: X, border: le, opacity: we, arrowColor: oe, setIsOpen: Ie, afterShow: q, afterHide: ce, disableTooltip: Le, activeAnchor: pe, setActiveAnchor: (ge) => Tt(ge), role: R };
|
|
4969
4970
|
return ft.createElement(rl, { ...Ct });
|
|
4970
4971
|
});
|
|
4971
4972
|
typeof window < "u" && window.addEventListener("react-tooltip-inject-styles", (e) => {
|
|
@@ -4991,17 +4992,17 @@ const wn = "-", il = (e) => {
|
|
|
4991
4992
|
conflictingClassGroupModifiers: r
|
|
4992
4993
|
} = e;
|
|
4993
4994
|
return {
|
|
4994
|
-
getClassGroupId: (
|
|
4995
|
-
const a =
|
|
4996
|
-
return a[0] === "" && a.length !== 1 && a.shift(), Uo(a, t) || al(
|
|
4995
|
+
getClassGroupId: (s) => {
|
|
4996
|
+
const a = s.split(wn);
|
|
4997
|
+
return a[0] === "" && a.length !== 1 && a.shift(), Uo(a, t) || al(s);
|
|
4997
4998
|
},
|
|
4998
|
-
getConflictingClassGroupIds: (
|
|
4999
|
-
const c = n[
|
|
5000
|
-
return a && r[
|
|
4999
|
+
getConflictingClassGroupIds: (s, a) => {
|
|
5000
|
+
const c = n[s] || [];
|
|
5001
|
+
return a && r[s] ? [...c, ...r[s]] : c;
|
|
5001
5002
|
}
|
|
5002
5003
|
};
|
|
5003
5004
|
}, Uo = (e, t) => {
|
|
5004
|
-
var
|
|
5005
|
+
var s;
|
|
5005
5006
|
if (e.length === 0)
|
|
5006
5007
|
return t.classGroupId;
|
|
5007
5008
|
const n = e[0], r = t.nextPart.get(n), o = r ? Uo(e.slice(1), r) : void 0;
|
|
@@ -5009,10 +5010,10 @@ const wn = "-", il = (e) => {
|
|
|
5009
5010
|
return o;
|
|
5010
5011
|
if (t.validators.length === 0)
|
|
5011
5012
|
return;
|
|
5012
|
-
const
|
|
5013
|
-
return (
|
|
5013
|
+
const i = e.join(wn);
|
|
5014
|
+
return (s = t.validators.find(({
|
|
5014
5015
|
validator: a
|
|
5015
|
-
}) => a(
|
|
5016
|
+
}) => a(i))) == null ? void 0 : s.classGroupId;
|
|
5016
5017
|
}, qn = /^\[(.+)\]$/, al = (e) => {
|
|
5017
5018
|
if (qn.test(e)) {
|
|
5018
5019
|
const t = qn.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
@@ -5033,8 +5034,8 @@ const wn = "-", il = (e) => {
|
|
|
5033
5034
|
}, en = (e, t, n, r) => {
|
|
5034
5035
|
e.forEach((o) => {
|
|
5035
5036
|
if (typeof o == "string") {
|
|
5036
|
-
const
|
|
5037
|
-
|
|
5037
|
+
const i = o === "" ? t : $n(t, o);
|
|
5038
|
+
i.classGroupId = n;
|
|
5038
5039
|
return;
|
|
5039
5040
|
}
|
|
5040
5041
|
if (typeof o == "function") {
|
|
@@ -5048,8 +5049,8 @@ const wn = "-", il = (e) => {
|
|
|
5048
5049
|
});
|
|
5049
5050
|
return;
|
|
5050
5051
|
}
|
|
5051
|
-
Object.entries(o).forEach(([
|
|
5052
|
-
en(
|
|
5052
|
+
Object.entries(o).forEach(([i, s]) => {
|
|
5053
|
+
en(s, $n(t, i), n, r);
|
|
5053
5054
|
});
|
|
5054
5055
|
});
|
|
5055
5056
|
}, $n = (e, t) => {
|
|
@@ -5069,19 +5070,19 @@ const wn = "-", il = (e) => {
|
|
|
5069
5070
|
}
|
|
5070
5071
|
};
|
|
5071
5072
|
let t = 0, n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
5072
|
-
const o = (
|
|
5073
|
-
n.set(
|
|
5073
|
+
const o = (i, s) => {
|
|
5074
|
+
n.set(i, s), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map());
|
|
5074
5075
|
};
|
|
5075
5076
|
return {
|
|
5076
|
-
get(
|
|
5077
|
-
let
|
|
5078
|
-
if (
|
|
5079
|
-
return
|
|
5080
|
-
if ((
|
|
5081
|
-
return o(
|
|
5077
|
+
get(i) {
|
|
5078
|
+
let s = n.get(i);
|
|
5079
|
+
if (s !== void 0)
|
|
5080
|
+
return s;
|
|
5081
|
+
if ((s = r.get(i)) !== void 0)
|
|
5082
|
+
return o(i, s), s;
|
|
5082
5083
|
},
|
|
5083
|
-
set(
|
|
5084
|
-
n.has(
|
|
5084
|
+
set(i, s) {
|
|
5085
|
+
n.has(i) ? n.set(i, s) : o(i, s);
|
|
5085
5086
|
}
|
|
5086
5087
|
};
|
|
5087
5088
|
}, tn = "!", rn = ":", dl = rn.length, fl = (e) => {
|
|
@@ -5090,13 +5091,13 @@ const wn = "-", il = (e) => {
|
|
|
5090
5091
|
experimentalParseClassName: n
|
|
5091
5092
|
} = e;
|
|
5092
5093
|
let r = (o) => {
|
|
5093
|
-
const
|
|
5094
|
-
let
|
|
5094
|
+
const i = [];
|
|
5095
|
+
let s = 0, a = 0, c = 0, d;
|
|
5095
5096
|
for (let p = 0; p < o.length; p++) {
|
|
5096
5097
|
let g = o[p];
|
|
5097
|
-
if (
|
|
5098
|
+
if (s === 0 && a === 0) {
|
|
5098
5099
|
if (g === rn) {
|
|
5099
|
-
|
|
5100
|
+
i.push(o.slice(c, p)), c = p + dl;
|
|
5100
5101
|
continue;
|
|
5101
5102
|
}
|
|
5102
5103
|
if (g === "/") {
|
|
@@ -5104,30 +5105,30 @@ const wn = "-", il = (e) => {
|
|
|
5104
5105
|
continue;
|
|
5105
5106
|
}
|
|
5106
5107
|
}
|
|
5107
|
-
g === "[" ?
|
|
5108
|
+
g === "[" ? s++ : g === "]" ? s-- : g === "(" ? a++ : g === ")" && a--;
|
|
5108
5109
|
}
|
|
5109
|
-
const f =
|
|
5110
|
+
const f = i.length === 0 ? o : o.substring(c), A = Al(f), b = A !== f, w = d && d > c ? d - c : void 0;
|
|
5110
5111
|
return {
|
|
5111
|
-
modifiers:
|
|
5112
|
+
modifiers: i,
|
|
5112
5113
|
hasImportantModifier: b,
|
|
5113
5114
|
baseClassName: A,
|
|
5114
5115
|
maybePostfixModifierPosition: w
|
|
5115
5116
|
};
|
|
5116
5117
|
};
|
|
5117
5118
|
if (t) {
|
|
5118
|
-
const o = t + rn,
|
|
5119
|
-
r = (
|
|
5119
|
+
const o = t + rn, i = r;
|
|
5120
|
+
r = (s) => s.startsWith(o) ? i(s.substring(o.length)) : {
|
|
5120
5121
|
isExternal: !0,
|
|
5121
5122
|
modifiers: [],
|
|
5122
5123
|
hasImportantModifier: !1,
|
|
5123
|
-
baseClassName:
|
|
5124
|
+
baseClassName: s,
|
|
5124
5125
|
maybePostfixModifierPosition: void 0
|
|
5125
5126
|
};
|
|
5126
5127
|
}
|
|
5127
5128
|
if (n) {
|
|
5128
5129
|
const o = r;
|
|
5129
|
-
r = (
|
|
5130
|
-
className:
|
|
5130
|
+
r = (i) => n({
|
|
5131
|
+
className: i,
|
|
5131
5132
|
parseClassName: o
|
|
5132
5133
|
});
|
|
5133
5134
|
}
|
|
@@ -5138,10 +5139,10 @@ const wn = "-", il = (e) => {
|
|
|
5138
5139
|
if (r.length <= 1)
|
|
5139
5140
|
return r;
|
|
5140
5141
|
const o = [];
|
|
5141
|
-
let
|
|
5142
|
-
return r.forEach((
|
|
5143
|
-
|
|
5144
|
-
}), o.push(...
|
|
5142
|
+
let i = [];
|
|
5143
|
+
return r.forEach((s) => {
|
|
5144
|
+
s[0] === "[" || t[s] ? (o.push(...i.sort(), s), i = []) : i.push(s);
|
|
5145
|
+
}), o.push(...i.sort()), o;
|
|
5145
5146
|
};
|
|
5146
5147
|
}, ml = (e) => ({
|
|
5147
5148
|
cache: ul(e.cacheSize),
|
|
@@ -5153,8 +5154,8 @@ const wn = "-", il = (e) => {
|
|
|
5153
5154
|
parseClassName: n,
|
|
5154
5155
|
getClassGroupId: r,
|
|
5155
5156
|
getConflictingClassGroupIds: o,
|
|
5156
|
-
sortModifiers:
|
|
5157
|
-
} = t,
|
|
5157
|
+
sortModifiers: i
|
|
5158
|
+
} = t, s = [], a = e.trim().split(hl);
|
|
5158
5159
|
let c = "";
|
|
5159
5160
|
for (let d = a.length - 1; d >= 0; d -= 1) {
|
|
5160
5161
|
const f = a[d], {
|
|
@@ -5180,14 +5181,14 @@ const wn = "-", il = (e) => {
|
|
|
5180
5181
|
}
|
|
5181
5182
|
h = !1;
|
|
5182
5183
|
}
|
|
5183
|
-
const k =
|
|
5184
|
-
if (
|
|
5184
|
+
const k = i(b).join(":"), C = w ? k + tn : k, O = C + x;
|
|
5185
|
+
if (s.includes(O))
|
|
5185
5186
|
continue;
|
|
5186
|
-
|
|
5187
|
+
s.push(O);
|
|
5187
5188
|
const E = o(x, h);
|
|
5188
5189
|
for (let T = 0; T < E.length; ++T) {
|
|
5189
5190
|
const S = E[T];
|
|
5190
|
-
|
|
5191
|
+
s.push(C + S);
|
|
5191
5192
|
}
|
|
5192
5193
|
c = f + (c.length > 0 ? " " + c : c);
|
|
5193
5194
|
}
|
|
@@ -5208,10 +5209,10 @@ const zo = (e) => {
|
|
|
5208
5209
|
return n;
|
|
5209
5210
|
};
|
|
5210
5211
|
function bl(e, ...t) {
|
|
5211
|
-
let n, r, o,
|
|
5212
|
-
function
|
|
5212
|
+
let n, r, o, i = s;
|
|
5213
|
+
function s(c) {
|
|
5213
5214
|
const d = t.reduce((f, A) => A(f), e());
|
|
5214
|
-
return n = ml(d), r = n.cache.get, o = n.cache.set,
|
|
5215
|
+
return n = ml(d), r = n.cache.get, o = n.cache.set, i = a, a(c);
|
|
5215
5216
|
}
|
|
5216
5217
|
function a(c) {
|
|
5217
5218
|
const d = r(c);
|
|
@@ -5221,7 +5222,7 @@ function bl(e, ...t) {
|
|
|
5221
5222
|
return o(c, f), f;
|
|
5222
5223
|
}
|
|
5223
5224
|
return function() {
|
|
5224
|
-
return
|
|
5225
|
+
return i(wl.apply(null, arguments));
|
|
5225
5226
|
};
|
|
5226
5227
|
}
|
|
5227
5228
|
const be = (e) => {
|
|
@@ -5239,7 +5240,7 @@ const be = (e) => {
|
|
|
5239
5240
|
const r = Yo.exec(e);
|
|
5240
5241
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
5241
5242
|
}, Qo = (e) => e === "position" || e === "percentage", qo = (e) => e === "image" || e === "url", $o = (e) => e === "length" || e === "size" || e === "bg-size", Ko = (e) => e === "length", Wl = (e) => e === "number", Fl = (e) => e === "family-name", es = (e) => e === "shadow", Pl = () => {
|
|
5242
|
-
const e = be("color"), t = be("font"), n = be("text"), r = be("font-weight"), o = be("tracking"),
|
|
5243
|
+
const e = be("color"), t = be("font"), n = be("text"), r = be("font-weight"), o = be("tracking"), i = be("leading"), s = be("breakpoint"), a = be("container"), c = be("spacing"), d = be("radius"), f = be("shadow"), A = be("inset-shadow"), b = be("text-shadow"), w = be("drop-shadow"), p = be("blur"), g = be("perspective"), h = be("aspect"), x = be("ease"), k = be("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
|
|
5243
5244
|
"center",
|
|
5244
5245
|
"top",
|
|
5245
5246
|
"bottom",
|
|
@@ -5273,7 +5274,7 @@ const be = (e) => {
|
|
|
5273
5274
|
d,
|
|
5274
5275
|
B,
|
|
5275
5276
|
L
|
|
5276
|
-
], ce = () => ["", z, $t, St], Le = () => ["solid", "dashed", "dotted", "double"],
|
|
5277
|
+
], ce = () => ["", z, $t, St], Le = () => ["solid", "dashed", "dotted", "double"], R = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], H = () => [z, Dr, eo, Kn], Q = () => [
|
|
5277
5278
|
// Deprecated since Tailwind CSS v4.0.0
|
|
5278
5279
|
"",
|
|
5279
5280
|
"none",
|
|
@@ -5939,7 +5940,7 @@ const be = (e) => {
|
|
|
5939
5940
|
"prose",
|
|
5940
5941
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
5941
5942
|
{
|
|
5942
|
-
screen: [
|
|
5943
|
+
screen: [s]
|
|
5943
5944
|
},
|
|
5944
5945
|
...X()
|
|
5945
5946
|
]
|
|
@@ -6057,7 +6058,7 @@ const be = (e) => {
|
|
|
6057
6058
|
leading: [{
|
|
6058
6059
|
leading: [
|
|
6059
6060
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
6060
|
-
|
|
6061
|
+
i,
|
|
6061
6062
|
...y()
|
|
6062
6063
|
]
|
|
6063
6064
|
}],
|
|
@@ -6734,14 +6735,14 @@ const be = (e) => {
|
|
|
6734
6735
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
6735
6736
|
*/
|
|
6736
6737
|
"mix-blend": [{
|
|
6737
|
-
"mix-blend": [...
|
|
6738
|
+
"mix-blend": [...R(), "plus-darker", "plus-lighter"]
|
|
6738
6739
|
}],
|
|
6739
6740
|
/**
|
|
6740
6741
|
* Background Blend Mode
|
|
6741
6742
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
6742
6743
|
*/
|
|
6743
6744
|
"bg-blend": [{
|
|
6744
|
-
"bg-blend":
|
|
6745
|
+
"bg-blend": R()
|
|
6745
6746
|
}],
|
|
6746
6747
|
/**
|
|
6747
6748
|
* Mask Clip
|
|
@@ -7714,11 +7715,11 @@ function nn(...e) {
|
|
|
7714
7715
|
}
|
|
7715
7716
|
const Zl = /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", stroke: "currentColor", viewBox: "0 0 256 256", children: /* @__PURE__ */ l.jsx("path", { fill: "currentColor", d: "M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z" }) }), Dl = /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", stroke: "currentColor", viewBox: "0 0 256 256", children: /* @__PURE__ */ l.jsx("path", { fill: "currentColor", d: "M48,48V208H80a8,8,0,0,1,0,16H40a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16ZM216,32H176a8,8,0,0,0,0,16h32V208H176a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Z" }) }), Gl = /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", stroke: "currentColor", viewBox: "0 0 256 256", children: /* @__PURE__ */ l.jsx("path", { fill: "currentColor", d: "M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM216,64V96H40V64ZM40,160H80v32H40Zm176,32H96V160H216v32Z" }) }), Vl = /* @__PURE__ */ l.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", stroke: "currentColor", viewBox: "0 0 256 256", children: /* @__PURE__ */ l.jsx("path", { fill: "currentColor", d: "M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }) }), Hl = (e) => {
|
|
7716
7717
|
var t = Vl, n = "";
|
|
7717
|
-
return (e === "array" || e === "awkward" || e === "sparse") && (t = Dl), e === "table" && (t = Gl), e === "container" && (t = Zl, n = "text-sky-700"), /* @__PURE__ */ l.jsx("div", { className: `w-6 aspect-square flex-shrink-0 ${n}`, children: t });
|
|
7718
|
+
return (e === "array" || e === "awkward" || e === "sparse") && (t = Dl), e === "table" && (t = Gl), (e === "container" || e === "composite") && (t = Zl, n = "text-sky-700"), /* @__PURE__ */ l.jsx("div", { className: `w-6 aspect-square flex-shrink-0 ${n}`, children: t });
|
|
7718
7719
|
};
|
|
7719
|
-
function Ul({ data: e, index: t, onItemClick: n, breadcrumbs: r, handleSelectClick: o, className:
|
|
7720
|
-
return /* @__PURE__ */ l.jsx("div", { className: nn("flex flex-col-reverse border-r border-r-slate-300 min-w-56 w-fit max-w-xs px-4 h-auto pt-2",
|
|
7721
|
-
let c = a.id
|
|
7720
|
+
function Ul({ data: e, index: t, onItemClick: n, breadcrumbs: r, handleSelectClick: o, className: i, showTooltip: s = !0 }) {
|
|
7721
|
+
return /* @__PURE__ */ l.jsx("div", { className: nn("flex flex-col-reverse border-r border-r-slate-300 min-w-56 w-fit max-w-xs px-4 h-auto pt-2", i), children: /* @__PURE__ */ l.jsx("ul", { className: "scrollbar-always-visible overflow-y-auto flex-grow peer-hover:text-slate-500 peer-hover:border peer-hover:border-blue-400 rounded-md", children: e.map((a) => {
|
|
7722
|
+
let c = `item-${a.id}${t}`;
|
|
7722
7723
|
return /* @__PURE__ */ l.jsxs(
|
|
7723
7724
|
"li",
|
|
7724
7725
|
{
|
|
@@ -7728,8 +7729,8 @@ function Ul({ data: e, index: t, onItemClick: n, breadcrumbs: r, handleSelectCli
|
|
|
7728
7729
|
children: [
|
|
7729
7730
|
Hl(a.attributes.structure_family),
|
|
7730
7731
|
/* @__PURE__ */ l.jsx("p", { className: "truncate max-w-full", children: a.id }),
|
|
7731
|
-
a.attributes.structure_family === "container" ? /* @__PURE__ */ l.jsx("p", { className: "absolute right-1 text-slate-500", children: ">" }) : "",
|
|
7732
|
-
o &&
|
|
7732
|
+
a.attributes.structure_family === "container" || a.attributes.structure_family === "composite" ? /* @__PURE__ */ l.jsx("p", { className: "absolute right-1 text-slate-500", children: ">" }) : "",
|
|
7733
|
+
o && s && /* @__PURE__ */ l.jsx(
|
|
7733
7734
|
ol,
|
|
7734
7735
|
{
|
|
7735
7736
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -7758,86 +7759,86 @@ function Ul({ data: e, index: t, onItemClick: n, breadcrumbs: r, handleSelectCli
|
|
|
7758
7759
|
);
|
|
7759
7760
|
}) }) });
|
|
7760
7761
|
}
|
|
7761
|
-
const zl = ({ url: e, apiKey: t, searchPath: n, bearerToken: r, initialSearchPath: o, reverseSort:
|
|
7762
|
-
const [
|
|
7762
|
+
const zl = ({ url: e, apiKey: t, searchPath: n, bearerToken: r, initialSearchPath: o, reverseSort: i }) => {
|
|
7763
|
+
const [s, a] = Z([]), [c, d] = Z([]), [f, A] = Z(), [b, w] = Z(), [p, g] = Z("hidden"), [h, x] = Z(null), [k, C] = Z(void 0), [O, E] = Z(null), T = Ce([]), S = Ce(-1), y = Lr(() => Xi(), []), N = Lr(() => o || y || null, [o]);
|
|
7763
7764
|
var Ae, he;
|
|
7764
7765
|
S.current > -1 && (Ae = () => {
|
|
7765
7766
|
if (S.current = S.current - 1, S.current < 0)
|
|
7766
|
-
Kt(n, e, (
|
|
7767
|
+
Kt(n, e, (R) => a([R])), d([]), A(""), w(""), g("hidden"), cr("");
|
|
7767
7768
|
else {
|
|
7768
|
-
const
|
|
7769
|
-
j(
|
|
7769
|
+
const R = T.current[S.current];
|
|
7770
|
+
j(R), cr(R);
|
|
7770
7771
|
}
|
|
7771
7772
|
}), S.current + 1 < T.current.length && (he = () => {
|
|
7772
7773
|
S.current = S.current + 1;
|
|
7773
|
-
const
|
|
7774
|
-
j(
|
|
7774
|
+
const R = T.current[S.current];
|
|
7775
|
+
j(R), cr(R);
|
|
7775
7776
|
});
|
|
7776
|
-
const ae = "medium", se = $e((
|
|
7777
|
+
const ae = "medium", se = $e((R, H) => {
|
|
7777
7778
|
a((Q) => {
|
|
7778
|
-
const ue = Q.slice(0,
|
|
7779
|
+
const ue = Q.slice(0, R.attributes.ancestors.length + 1);
|
|
7779
7780
|
return H ? [...ue, H] : ue;
|
|
7780
7781
|
});
|
|
7781
|
-
}, []), G = $e((
|
|
7782
|
+
}, []), G = $e((R) => {
|
|
7782
7783
|
d((H) => {
|
|
7783
7784
|
var Q = [...H];
|
|
7784
|
-
const ue =
|
|
7785
|
+
const ue = R.attributes.ancestors;
|
|
7785
7786
|
for (; Q.length > ue.length; )
|
|
7786
7787
|
Q.pop();
|
|
7787
7788
|
var fe = {
|
|
7788
|
-
label:
|
|
7789
|
-
icon: Ui(
|
|
7790
|
-
onClick: () => X(
|
|
7789
|
+
label: R.id,
|
|
7790
|
+
icon: Ui(R.attributes.structure_family),
|
|
7791
|
+
onClick: () => X(R)
|
|
7791
7792
|
};
|
|
7792
7793
|
return Q.push(fe), Q;
|
|
7793
7794
|
});
|
|
7794
7795
|
}, []), te = () => {
|
|
7795
7796
|
A(void 0), w(void 0), g("hidden");
|
|
7796
|
-
}, K = (
|
|
7797
|
-
S.current =
|
|
7798
|
-
}, X = $e((
|
|
7799
|
-
K(
|
|
7800
|
-
}, []), j = (
|
|
7801
|
-
Ro(
|
|
7802
|
-
}, le = $e((
|
|
7803
|
-
x(
|
|
7804
|
-
}, []), we = $e((
|
|
7805
|
-
x(
|
|
7806
|
-
}, []), oe = (
|
|
7797
|
+
}, K = (R) => {
|
|
7798
|
+
S.current = R.attributes.ancestors.length, T.current = T.current.slice(0, S.current), T.current = [...T.current, R];
|
|
7799
|
+
}, X = $e((R) => {
|
|
7800
|
+
K(R), j(R), cr(R);
|
|
7801
|
+
}, []), j = (R) => {
|
|
7802
|
+
Ro(R) ? le(R) : _o(R) ? we(R) : aa(R) ? oe(R) : (console.error("Error: No matching structure family found for: " + R.attributes.structure_family), console.log({ item: R }));
|
|
7803
|
+
}, le = $e((R) => {
|
|
7804
|
+
x(R), G(R), g(ae), se(R);
|
|
7805
|
+
}, []), we = $e((R) => {
|
|
7806
|
+
x(R), G(R), g(ae), se(R);
|
|
7807
|
+
}, []), oe = (R) => {
|
|
7807
7808
|
x(null);
|
|
7808
|
-
const H = Mt(
|
|
7809
|
-
Kt(H, e, (Q) => Ie(
|
|
7810
|
-
}, Ie = $e((
|
|
7811
|
-
se(
|
|
7809
|
+
const H = Mt(R);
|
|
7810
|
+
Kt(H, e, (Q) => Ie(R, Q)), te();
|
|
7811
|
+
}, Ie = $e((R, H) => {
|
|
7812
|
+
se(R, H), G(R);
|
|
7812
7813
|
}, []), q = () => {
|
|
7813
|
-
d([]), T.current = [], S.current = -1, x(null), g("hidden"), Kt(n, e, (
|
|
7814
|
+
d([]), T.current = [], S.current = -1, x(null), g("hidden"), Kt(n, e, (R) => a([R]));
|
|
7814
7815
|
}, ce = async () => {
|
|
7815
|
-
let
|
|
7816
|
-
r && qi(r), Ki(
|
|
7817
|
-
}, Le = (
|
|
7818
|
-
const Q =
|
|
7819
|
-
Q ? (X(Q), E((ue) => ue ? ue.slice(1) : null)) : (console.warn(`No matching item found for search path: ${
|
|
7816
|
+
let R = null;
|
|
7817
|
+
r && qi(r), Ki(i), t ? R = await $i(t, n, e) : R = await Kt(n, e), R !== null && typeof R != "string" && "data" in R ? a([R]) : C("No data found at the provided Tiled URL. Please check the URL or API key.");
|
|
7818
|
+
}, Le = (R) => {
|
|
7819
|
+
const Q = s[s.length - 1].data.find((ue) => ue.id === R);
|
|
7820
|
+
Q ? (X(Q), E((ue) => ue ? ue.slice(1) : null)) : (console.warn(`No matching item found for search path: ${R}`), E(null));
|
|
7820
7821
|
};
|
|
7821
7822
|
return $(() => {
|
|
7822
7823
|
try {
|
|
7823
7824
|
ce();
|
|
7824
|
-
} catch (
|
|
7825
|
-
console.error("error getting first tiled request: ",
|
|
7825
|
+
} catch (R) {
|
|
7826
|
+
console.error("error getting first tiled request: ", R), C("Error initializing Tiled data. Please check the console for more details.");
|
|
7826
7827
|
}
|
|
7827
7828
|
if (N) {
|
|
7828
|
-
let
|
|
7829
|
-
E(
|
|
7829
|
+
let R = N.split("/").filter(Boolean);
|
|
7830
|
+
E(R);
|
|
7830
7831
|
}
|
|
7831
7832
|
}, []), $(
|
|
7832
7833
|
() => {
|
|
7833
|
-
if (!(
|
|
7834
|
+
if (!(s.length <= 0) && !(!O || O.length === 0) && N && O) {
|
|
7834
7835
|
let H = N.split("/").filter(Boolean).length - O.length;
|
|
7835
|
-
|
|
7836
|
+
s.length === H + 1 && Le(O[0]);
|
|
7836
7837
|
}
|
|
7837
7838
|
},
|
|
7838
|
-
[O,
|
|
7839
|
+
[O, s]
|
|
7839
7840
|
), Lr(() => ({
|
|
7840
|
-
columns:
|
|
7841
|
+
columns: s,
|
|
7841
7842
|
breadcrumbs: c,
|
|
7842
7843
|
imageUrl: f,
|
|
7843
7844
|
popoutUrl: b,
|
|
@@ -7848,7 +7849,7 @@ const zl = ({ url: e, apiKey: t, searchPath: n, bearerToken: r, initialSearchPat
|
|
|
7848
7849
|
handleRightArrowClick: he,
|
|
7849
7850
|
resetAllData: q,
|
|
7850
7851
|
warning: k
|
|
7851
|
-
}), [
|
|
7852
|
+
}), [s, c, f, b, p, X, k]);
|
|
7852
7853
|
};
|
|
7853
7854
|
function Jl({
|
|
7854
7855
|
url: e,
|
|
@@ -7856,13 +7857,13 @@ function Jl({
|
|
|
7856
7857
|
singleColumnMode: n,
|
|
7857
7858
|
handleExpandClick: r,
|
|
7858
7859
|
isExpanded: o,
|
|
7859
|
-
apiKey:
|
|
7860
|
-
bearerToken:
|
|
7860
|
+
apiKey: i,
|
|
7861
|
+
bearerToken: s,
|
|
7861
7862
|
initialSearchPath: a,
|
|
7862
7863
|
reverseSort: c,
|
|
7863
7864
|
...d
|
|
7864
7865
|
}) {
|
|
7865
|
-
const f = Ce(null), A = zl({ url: e, apiKey:
|
|
7866
|
+
const f = Ce(null), A = zl({ url: e, apiKey: i, bearerToken: s, reverseSort: c });
|
|
7866
7867
|
if (!A)
|
|
7867
7868
|
return /* @__PURE__ */ l.jsx("div", { children: "Error: Unable to load tiled data. Check console for error logs." });
|
|
7868
7869
|
const {
|
|
@@ -7924,10 +7925,10 @@ function Yl({
|
|
|
7924
7925
|
handleSubmit: n,
|
|
7925
7926
|
...r
|
|
7926
7927
|
}) {
|
|
7927
|
-
const [o,
|
|
7928
|
+
const [o, i] = Z(null), s = async (c) => {
|
|
7928
7929
|
console.log({ url: c });
|
|
7929
7930
|
const d = await Kt("", c);
|
|
7930
|
-
d !== null && typeof d != "string" && "data" in d ? (console.log({ res: d }), n()) : (console.log({ res: d }),
|
|
7931
|
+
d !== null && typeof d != "string" && "data" in d ? (console.log({ res: d }), n()) : (console.log({ res: d }), i(
|
|
7931
7932
|
/* @__PURE__ */ l.jsxs("p", { className: "px-8", children: [
|
|
7932
7933
|
"Did not receive a valid response from ",
|
|
7933
7934
|
/* @__PURE__ */ l.jsx("b", { children: /* @__PURE__ */ l.jsx("i", { children: c }) }),
|
|
@@ -7935,7 +7936,7 @@ function Yl({
|
|
|
7935
7936
|
] })
|
|
7936
7937
|
));
|
|
7937
7938
|
}, a = (c) => {
|
|
7938
|
-
c.key === "Enter" && (c.preventDefault(),
|
|
7939
|
+
c.key === "Enter" && (c.preventDefault(), s(e));
|
|
7939
7940
|
};
|
|
7940
7941
|
return /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col justify-center items-center space-y-8 h-full w-full", ...r, children: [
|
|
7941
7942
|
/* @__PURE__ */ l.jsxs("div", { className: "h-1/2 flex flex-col space-y-8 justify-end py-8 items-center", children: [
|
|
@@ -7950,12 +7951,12 @@ function Yl({
|
|
|
7950
7951
|
onChange: (c) => t(c.target.value)
|
|
7951
7952
|
}
|
|
7952
7953
|
),
|
|
7953
|
-
/* @__PURE__ */ l.jsx(dn, { disabled: !e, text: "Submit", cb: () =>
|
|
7954
|
+
/* @__PURE__ */ l.jsx(dn, { disabled: !e, text: "Submit", cb: () => s(e) })
|
|
7954
7955
|
] }),
|
|
7955
7956
|
/* @__PURE__ */ l.jsx("div", { className: "h-1/2", children: o })
|
|
7956
7957
|
] });
|
|
7957
7958
|
}
|
|
7958
|
-
function Xl({ userInputApiKey: e, setIsViewerOpen: t, buttonModeText: n, selectedData: r, handleInputChange: o, userInputReverseSort:
|
|
7959
|
+
function Xl({ userInputApiKey: e, setIsViewerOpen: t, buttonModeText: n, selectedData: r, handleInputChange: o, userInputReverseSort: i, handleReverseSortChange: s }) {
|
|
7959
7960
|
return /* @__PURE__ */ l.jsxs("span", { className: "flex gap-2 items-center", children: [
|
|
7960
7961
|
/* @__PURE__ */ l.jsx("label", { htmlFor: "apikey", className: "text-gray-700 text-sm flex items-center", children: "API Key:" }),
|
|
7961
7962
|
/* @__PURE__ */ l.jsx(
|
|
@@ -7975,14 +7976,14 @@ function Xl({ userInputApiKey: e, setIsViewerOpen: t, buttonModeText: n, selecte
|
|
|
7975
7976
|
{
|
|
7976
7977
|
type: "checkbox",
|
|
7977
7978
|
className: "border border-gray-300 rounded-md px-2 py-1 h-fit",
|
|
7978
|
-
checked:
|
|
7979
|
-
onChange: (a) =>
|
|
7979
|
+
checked: i,
|
|
7980
|
+
onChange: (a) => s(a.target.checked),
|
|
7980
7981
|
name: "reverseSort"
|
|
7981
7982
|
}
|
|
7982
7983
|
),
|
|
7983
7984
|
/* @__PURE__ */ l.jsx("button", { className: "bg-blue-600 hover:bg-blue-500 text-white rounded-md px-2 py-1 h-fit ml-4", onClick: () => t(!0), children: n }),
|
|
7984
7985
|
/* @__PURE__ */ l.jsx("p", { className: " text-black text-nowrap overflow-x-auto max-w-72 min-w-36 w-fit bg-white hover:cursor-text px-1 py-1", children: r && r.self.split("/").pop() }),
|
|
7985
|
-
/* @__PURE__ */ l.jsx(Oo, { size: "small", copyText: r ? r.self : "" })
|
|
7986
|
+
/* @__PURE__ */ l.jsx(Oo, { size: "small", showText: !0, copyText: r ? r.self : "" })
|
|
7986
7987
|
] });
|
|
7987
7988
|
}
|
|
7988
7989
|
function ql({
|
|
@@ -7991,8 +7992,8 @@ function ql({
|
|
|
7991
7992
|
bearerToken: n,
|
|
7992
7993
|
size: r,
|
|
7993
7994
|
closeOnSelect: o = !1,
|
|
7994
|
-
isPopup:
|
|
7995
|
-
enableStartupScreen:
|
|
7995
|
+
isPopup: i,
|
|
7996
|
+
enableStartupScreen: s = !1,
|
|
7996
7997
|
tiledBaseUrl: a,
|
|
7997
7998
|
backgroundClassName: c,
|
|
7998
7999
|
contentClassName: d,
|
|
@@ -8041,7 +8042,7 @@ function ql({
|
|
|
8041
8042
|
"div",
|
|
8042
8043
|
{
|
|
8043
8044
|
className: nn(
|
|
8044
|
-
|
|
8045
|
+
i || b ? "fixed inset-0 z-50 bg-black/50 flex items-center justify-center" : `flex w-full h-full min-w-[600px] min-h-[500px] justify-center items-center ${r && j[r]} ${r && y && le[r]}`,
|
|
8045
8046
|
c
|
|
8046
8047
|
),
|
|
8047
8048
|
onClick: X,
|
|
@@ -8054,7 +8055,7 @@ function ql({
|
|
|
8054
8055
|
d
|
|
8055
8056
|
),
|
|
8056
8057
|
onClick: (q) => q.stopPropagation(),
|
|
8057
|
-
children:
|
|
8058
|
+
children: s && k ? /* @__PURE__ */ l.jsx(
|
|
8058
8059
|
Yl,
|
|
8059
8060
|
{
|
|
8060
8061
|
url: T,
|