@evercam/ui 0.0.47-beta.4 → 0.0.48
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/attributes.json +6 -1
- package/dist/index.mjs +585 -478
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/ETimeline.vue.d.ts +9 -4
- package/dist/src/components/EVideoEmbed.vue.d.ts +45 -0
- package/dist/src/index.d.ts +54 -5
- package/dist/src/types.d.ts +3 -0
- package/dist/src/utils.d.ts +3 -2
- package/dist/style.css +1 -1
- package/dist/styles.css +3 -0
- package/dist/tags.json +2 -1
- package/dist/web-types.json +22 -3
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import X from "vue";
|
|
2
2
|
import * as u from "d3";
|
|
3
|
-
import
|
|
3
|
+
import V from "moment-timezone";
|
|
4
4
|
var T = /* @__PURE__ */ ((e) => (e.dot = "dot", e.xs = "xs", e.sm = "sm", e.md = "base", e.base = "base", e.lg = "lg", e.xl = "xl", e["2xl"] = "2xl", e["3xl"] = "3xl", e["4xl"] = "4xl", e["5xl"] = "5xl", e["6xl"] = "6xl", e["7xl"] = "7xl", e["8xl"] = "8xl", e["9xl"] = "9xl", e))(T || {}), j = /* @__PURE__ */ ((e) => (e.warning = "warning", e.error = "error", e.info = "info", e.success = "success", e.primary = "primary", e.brand = "brand", e.default = "default", e))(j || {}), ee = /* @__PURE__ */ ((e) => (e.overview = "overview", e.detailed = "detailed", e.detailedBackground = "detailedBackground", e))(ee || {}), te = /* @__PURE__ */ ((e) => (e.bars = "bars", e.lineGraph = "lineGraph", e))(te || {});
|
|
5
|
-
const tt =
|
|
5
|
+
const tt = X.extend({
|
|
6
6
|
name: "EBadge",
|
|
7
7
|
props: {
|
|
8
8
|
text: {
|
|
@@ -52,14 +52,14 @@ const tt = q.extend({
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
function
|
|
55
|
+
function I(e, t, r, i, a, o, n, h) {
|
|
56
56
|
var l = typeof e == "function" ? e.options : e;
|
|
57
|
-
t && (l.render = t, l.staticRenderFns = r, l._compiled = !0),
|
|
57
|
+
t && (l.render = t, l.staticRenderFns = r, l._compiled = !0), i && (l.functional = !0), o && (l._scopeId = "data-v-" + o);
|
|
58
58
|
var s;
|
|
59
|
-
if (
|
|
59
|
+
if (n ? (s = function(m) {
|
|
60
60
|
m = m || // cached call
|
|
61
61
|
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
62
|
-
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !m && typeof __VUE_SSR_CONTEXT__ != "undefined" && (m = __VUE_SSR_CONTEXT__), a && a.call(this, m), m && m._registeredComponents && m._registeredComponents.add(
|
|
62
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !m && typeof __VUE_SSR_CONTEXT__ != "undefined" && (m = __VUE_SSR_CONTEXT__), a && a.call(this, m), m && m._registeredComponents && m._registeredComponents.add(n);
|
|
63
63
|
}, l._ssrRegister = s) : a && (s = h ? function() {
|
|
64
64
|
a.call(
|
|
65
65
|
this,
|
|
@@ -84,17 +84,17 @@ function X(e, t, r, n, a, o, i, h) {
|
|
|
84
84
|
var rt = function() {
|
|
85
85
|
var t = this, r = t._self._c;
|
|
86
86
|
return r("span", { staticClass: "e-badge", class: t.badgeClasses }, [t.showText ? r("span", [t._v(t._s(t.text))]) : t._e()]);
|
|
87
|
-
},
|
|
87
|
+
}, it = [], nt = /* @__PURE__ */ I(
|
|
88
88
|
tt,
|
|
89
89
|
rt,
|
|
90
|
-
|
|
90
|
+
it,
|
|
91
91
|
!1,
|
|
92
92
|
null,
|
|
93
93
|
null,
|
|
94
94
|
null,
|
|
95
95
|
null
|
|
96
96
|
);
|
|
97
|
-
const Fe =
|
|
97
|
+
const Fe = nt.exports, st = X.extend({
|
|
98
98
|
name: "EAvatar",
|
|
99
99
|
components: {
|
|
100
100
|
Badge: Fe
|
|
@@ -153,7 +153,7 @@ var at = function() {
|
|
|
153
153
|
}), t.showBadge ? r("div", { staticClass: "e-avatar__badge e-absolute e-top-0 e-right-0" }, [t._t("badge", function() {
|
|
154
154
|
return [r("Badge", { attrs: { text: t.badgeText, color: t.badgeColor, size: t.badgeSize } })];
|
|
155
155
|
})], 2) : t._e()], 2);
|
|
156
|
-
}, ot = [], lt = /* @__PURE__ */
|
|
156
|
+
}, ot = [], lt = /* @__PURE__ */ I(
|
|
157
157
|
st,
|
|
158
158
|
at,
|
|
159
159
|
ot,
|
|
@@ -167,7 +167,7 @@ const ut = lt.exports;
|
|
|
167
167
|
function ct(e) {
|
|
168
168
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
169
169
|
}
|
|
170
|
-
var Me = {},
|
|
170
|
+
var Me = {}, Pe = {}, he = {};
|
|
171
171
|
(function(e) {
|
|
172
172
|
Object.defineProperty(e, "__esModule", {
|
|
173
173
|
value: !0
|
|
@@ -182,19 +182,19 @@ var Me = {}, ze = {}, he = {};
|
|
|
182
182
|
return "0";
|
|
183
183
|
if (/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(r))
|
|
184
184
|
return r.replace(/^[+-]?/, (a) => a === "-" ? "" : "-");
|
|
185
|
-
let
|
|
185
|
+
let i = [
|
|
186
186
|
"var",
|
|
187
187
|
"calc",
|
|
188
188
|
"min",
|
|
189
189
|
"max",
|
|
190
190
|
"clamp"
|
|
191
191
|
];
|
|
192
|
-
for (const a of
|
|
192
|
+
for (const a of i)
|
|
193
193
|
if (r.includes(`${a}(`))
|
|
194
194
|
return `calc(${r} * -1)`;
|
|
195
195
|
}
|
|
196
196
|
})(he);
|
|
197
|
-
var
|
|
197
|
+
var ze = {};
|
|
198
198
|
(function(e) {
|
|
199
199
|
Object.defineProperty(e, "__esModule", {
|
|
200
200
|
value: !0
|
|
@@ -381,8 +381,8 @@ var Pe = {};
|
|
|
381
381
|
"willChange",
|
|
382
382
|
"content"
|
|
383
383
|
];
|
|
384
|
-
})(
|
|
385
|
-
var
|
|
384
|
+
})(ze);
|
|
385
|
+
var Le = {};
|
|
386
386
|
(function(e) {
|
|
387
387
|
Object.defineProperty(e, "__esModule", {
|
|
388
388
|
value: !0
|
|
@@ -392,17 +392,17 @@ var Ge = {};
|
|
|
392
392
|
return t;
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
|
-
function t(r,
|
|
396
|
-
return r === void 0 ?
|
|
397
|
-
...new Set(
|
|
395
|
+
function t(r, i) {
|
|
396
|
+
return r === void 0 ? i : Array.isArray(r) ? r : [
|
|
397
|
+
...new Set(i.filter((o) => r !== !1 && r[o] !== !1).concat(Object.keys(r).filter((o) => r[o] !== !1)))
|
|
398
398
|
];
|
|
399
399
|
}
|
|
400
|
-
})(
|
|
401
|
-
var me = {},
|
|
402
|
-
return { isColorSupported: !1, reset:
|
|
400
|
+
})(Le);
|
|
401
|
+
var me = {}, ie = {}, pe = { exports: {} }, P = String, Ge = function() {
|
|
402
|
+
return { isColorSupported: !1, reset: P, bold: P, dim: P, italic: P, underline: P, inverse: P, hidden: P, strikethrough: P, black: P, red: P, green: P, yellow: P, blue: P, magenta: P, cyan: P, white: P, gray: P, bgBlack: P, bgRed: P, bgGreen: P, bgYellow: P, bgBlue: P, bgMagenta: P, bgCyan: P, bgWhite: P };
|
|
403
403
|
};
|
|
404
|
-
pe.exports =
|
|
405
|
-
pe.exports.createColors =
|
|
404
|
+
pe.exports = Ge();
|
|
405
|
+
pe.exports.createColors = Ge;
|
|
406
406
|
var He = pe.exports;
|
|
407
407
|
(function(e) {
|
|
408
408
|
Object.defineProperty(e, "__esModule", {
|
|
@@ -417,14 +417,14 @@ var He = pe.exports;
|
|
|
417
417
|
}
|
|
418
418
|
t(e, {
|
|
419
419
|
dim: function() {
|
|
420
|
-
return
|
|
420
|
+
return n;
|
|
421
421
|
},
|
|
422
422
|
default: function() {
|
|
423
423
|
return h;
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
|
-
const r = /* @__PURE__ */
|
|
427
|
-
function
|
|
426
|
+
const r = /* @__PURE__ */ i(He);
|
|
427
|
+
function i(l) {
|
|
428
428
|
return l && l.__esModule ? l : {
|
|
429
429
|
default: l
|
|
430
430
|
};
|
|
@@ -433,7 +433,7 @@ var He = pe.exports;
|
|
|
433
433
|
function o(l, s, c) {
|
|
434
434
|
typeof process != "undefined" && process.env.JEST_WORKER_ID || c && a.has(c) || (c && a.add(c), console.warn(""), s.forEach((v) => console.warn(l, "-", v)));
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function n(l) {
|
|
437
437
|
return r.default.dim(l);
|
|
438
438
|
}
|
|
439
439
|
const h = {
|
|
@@ -462,7 +462,7 @@ var He = pe.exports;
|
|
|
462
462
|
]);
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
|
-
})(
|
|
465
|
+
})(ie);
|
|
466
466
|
(function(e) {
|
|
467
467
|
Object.defineProperty(e, "__esModule", {
|
|
468
468
|
value: !0
|
|
@@ -472,15 +472,15 @@ var He = pe.exports;
|
|
|
472
472
|
return a;
|
|
473
473
|
}
|
|
474
474
|
});
|
|
475
|
-
const t = /* @__PURE__ */ r(
|
|
475
|
+
const t = /* @__PURE__ */ r(ie);
|
|
476
476
|
function r(o) {
|
|
477
477
|
return o && o.__esModule ? o : {
|
|
478
478
|
default: o
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
t.default.warn(`${
|
|
483
|
-
`As of Tailwind CSS ${o}, \`${
|
|
481
|
+
function i({ version: o, from: n, to: h }) {
|
|
482
|
+
t.default.warn(`${n}-color-renamed`, [
|
|
483
|
+
`As of Tailwind CSS ${o}, \`${n}\` has been renamed to \`${h}\`.`,
|
|
484
484
|
"Update your configuration file to silence this warning."
|
|
485
485
|
]);
|
|
486
486
|
}
|
|
@@ -777,35 +777,35 @@ var He = pe.exports;
|
|
|
777
777
|
950: "#4c0519"
|
|
778
778
|
},
|
|
779
779
|
get lightBlue() {
|
|
780
|
-
return
|
|
780
|
+
return i({
|
|
781
781
|
version: "v2.2",
|
|
782
782
|
from: "lightBlue",
|
|
783
783
|
to: "sky"
|
|
784
784
|
}), this.sky;
|
|
785
785
|
},
|
|
786
786
|
get warmGray() {
|
|
787
|
-
return
|
|
787
|
+
return i({
|
|
788
788
|
version: "v3.0",
|
|
789
789
|
from: "warmGray",
|
|
790
790
|
to: "stone"
|
|
791
791
|
}), this.stone;
|
|
792
792
|
},
|
|
793
793
|
get trueGray() {
|
|
794
|
-
return
|
|
794
|
+
return i({
|
|
795
795
|
version: "v3.0",
|
|
796
796
|
from: "trueGray",
|
|
797
797
|
to: "neutral"
|
|
798
798
|
}), this.neutral;
|
|
799
799
|
},
|
|
800
800
|
get coolGray() {
|
|
801
|
-
return
|
|
801
|
+
return i({
|
|
802
802
|
version: "v3.0",
|
|
803
803
|
from: "coolGray",
|
|
804
804
|
to: "gray"
|
|
805
805
|
}), this.gray;
|
|
806
806
|
},
|
|
807
807
|
get blueGray() {
|
|
808
|
-
return
|
|
808
|
+
return i({
|
|
809
809
|
version: "v3.0",
|
|
810
810
|
from: "blueGray",
|
|
811
811
|
to: "slate"
|
|
@@ -823,15 +823,15 @@ var je = {};
|
|
|
823
823
|
return t;
|
|
824
824
|
}
|
|
825
825
|
});
|
|
826
|
-
function t(r, ...
|
|
827
|
-
for (let
|
|
828
|
-
for (let h in
|
|
826
|
+
function t(r, ...i) {
|
|
827
|
+
for (let n of i) {
|
|
828
|
+
for (let h in n) {
|
|
829
829
|
var a;
|
|
830
|
-
!(r == null || (a = r.hasOwnProperty) === null || a === void 0) && a.call(r, h) || (r[h] =
|
|
830
|
+
!(r == null || (a = r.hasOwnProperty) === null || a === void 0) && a.call(r, h) || (r[h] = n[h]);
|
|
831
831
|
}
|
|
832
|
-
for (let h of Object.getOwnPropertySymbols(
|
|
832
|
+
for (let h of Object.getOwnPropertySymbols(n)) {
|
|
833
833
|
var o;
|
|
834
|
-
!(r == null || (o = r.hasOwnProperty) === null || o === void 0) && o.call(r, h) || (r[h] =
|
|
834
|
+
!(r == null || (o = r.hasOwnProperty) === null || o === void 0) && o.call(r, h) || (r[h] = n[h]);
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
837
|
return r;
|
|
@@ -850,13 +850,13 @@ var Be = {};
|
|
|
850
850
|
function t(r) {
|
|
851
851
|
if (Array.isArray(r))
|
|
852
852
|
return r;
|
|
853
|
-
let
|
|
854
|
-
if (
|
|
853
|
+
let i = r.split("[").length - 1, a = r.split("]").length - 1;
|
|
854
|
+
if (i !== a)
|
|
855
855
|
throw new Error(`Path is invalid. Has unbalanced brackets: ${r}`);
|
|
856
856
|
return r.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean);
|
|
857
857
|
}
|
|
858
858
|
})(Be);
|
|
859
|
-
var
|
|
859
|
+
var Re = {}, ne = {};
|
|
860
860
|
(function(e) {
|
|
861
861
|
Object.defineProperty(e, "__esModule", {
|
|
862
862
|
value: !0
|
|
@@ -879,7 +879,7 @@ var We = {}, ie = {};
|
|
|
879
879
|
return c;
|
|
880
880
|
}
|
|
881
881
|
});
|
|
882
|
-
const r = /* @__PURE__ */ a(He),
|
|
882
|
+
const r = /* @__PURE__ */ a(He), i = /* @__PURE__ */ a(ie);
|
|
883
883
|
function a(v) {
|
|
884
884
|
return v && v.__esModule ? v : {
|
|
885
885
|
default: v
|
|
@@ -894,7 +894,7 @@ var We = {}, ie = {};
|
|
|
894
894
|
get relativeContentPathsByDefault() {
|
|
895
895
|
return !1;
|
|
896
896
|
}
|
|
897
|
-
},
|
|
897
|
+
}, n = {
|
|
898
898
|
future: [
|
|
899
899
|
"hoverOnlyWhenSupported",
|
|
900
900
|
"respectDefaultRingColorOpacity",
|
|
@@ -907,33 +907,33 @@ var We = {}, ie = {};
|
|
|
907
907
|
]
|
|
908
908
|
};
|
|
909
909
|
function h(v, m) {
|
|
910
|
-
if (
|
|
910
|
+
if (n.future.includes(m)) {
|
|
911
911
|
var E, y, k;
|
|
912
912
|
return v.future === "all" || ((k = (y = v == null || (E = v.future) === null || E === void 0 ? void 0 : E[m]) !== null && y !== void 0 ? y : o[m]) !== null && k !== void 0 ? k : !1);
|
|
913
913
|
}
|
|
914
|
-
if (
|
|
915
|
-
var A,
|
|
916
|
-
return v.experimental === "all" || ((
|
|
914
|
+
if (n.experimental.includes(m)) {
|
|
915
|
+
var A, z, L;
|
|
916
|
+
return v.experimental === "all" || ((L = (z = v == null || (A = v.experimental) === null || A === void 0 ? void 0 : A[m]) !== null && z !== void 0 ? z : o[m]) !== null && L !== void 0 ? L : !1);
|
|
917
917
|
}
|
|
918
918
|
return !1;
|
|
919
919
|
}
|
|
920
920
|
function l(v) {
|
|
921
921
|
if (v.experimental === "all")
|
|
922
|
-
return
|
|
922
|
+
return n.experimental;
|
|
923
923
|
var m;
|
|
924
|
-
return Object.keys((m = v == null ? void 0 : v.experimental) !== null && m !== void 0 ? m : {}).filter((E) =>
|
|
924
|
+
return Object.keys((m = v == null ? void 0 : v.experimental) !== null && m !== void 0 ? m : {}).filter((E) => n.experimental.includes(E) && v.experimental[E]);
|
|
925
925
|
}
|
|
926
926
|
function s(v) {
|
|
927
927
|
if (process.env.JEST_WORKER_ID === void 0 && l(v).length > 0) {
|
|
928
928
|
let m = l(v).map((E) => r.default.yellow(E)).join(", ");
|
|
929
|
-
|
|
929
|
+
i.default.warn("experimental-flags-enabled", [
|
|
930
930
|
`You have enabled experimental features: ${m}`,
|
|
931
931
|
"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."
|
|
932
932
|
]);
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
|
-
const c =
|
|
936
|
-
})(
|
|
935
|
+
const c = n;
|
|
936
|
+
})(ne);
|
|
937
937
|
(function(e) {
|
|
938
938
|
Object.defineProperty(e, "__esModule", {
|
|
939
939
|
value: !0
|
|
@@ -943,63 +943,63 @@ var We = {}, ie = {};
|
|
|
943
943
|
return o;
|
|
944
944
|
}
|
|
945
945
|
});
|
|
946
|
-
const t =
|
|
947
|
-
function n
|
|
946
|
+
const t = ne, r = /* @__PURE__ */ a(ie);
|
|
947
|
+
function i(n) {
|
|
948
948
|
if (typeof WeakMap != "function")
|
|
949
949
|
return null;
|
|
950
950
|
var h = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap();
|
|
951
|
-
return (
|
|
951
|
+
return (i = function(s) {
|
|
952
952
|
return s ? l : h;
|
|
953
|
-
})(
|
|
953
|
+
})(n);
|
|
954
954
|
}
|
|
955
|
-
function a(
|
|
956
|
-
if (!h &&
|
|
957
|
-
return
|
|
958
|
-
if (
|
|
955
|
+
function a(n, h) {
|
|
956
|
+
if (!h && n && n.__esModule)
|
|
957
|
+
return n;
|
|
958
|
+
if (n === null || typeof n != "object" && typeof n != "function")
|
|
959
959
|
return {
|
|
960
|
-
default:
|
|
960
|
+
default: n
|
|
961
961
|
};
|
|
962
|
-
var l =
|
|
963
|
-
if (l && l.has(
|
|
964
|
-
return l.get(
|
|
962
|
+
var l = i(h);
|
|
963
|
+
if (l && l.has(n))
|
|
964
|
+
return l.get(n);
|
|
965
965
|
var s = {}, c = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
966
|
-
for (var v in
|
|
967
|
-
if (v !== "default" && Object.prototype.hasOwnProperty.call(
|
|
968
|
-
var m = c ? Object.getOwnPropertyDescriptor(
|
|
969
|
-
m && (m.get || m.set) ? Object.defineProperty(s, v, m) : s[v] =
|
|
966
|
+
for (var v in n)
|
|
967
|
+
if (v !== "default" && Object.prototype.hasOwnProperty.call(n, v)) {
|
|
968
|
+
var m = c ? Object.getOwnPropertyDescriptor(n, v) : null;
|
|
969
|
+
m && (m.get || m.set) ? Object.defineProperty(s, v, m) : s[v] = n[v];
|
|
970
970
|
}
|
|
971
|
-
return s.default =
|
|
971
|
+
return s.default = n, l && l.set(n, s), s;
|
|
972
972
|
}
|
|
973
|
-
function o(
|
|
973
|
+
function o(n) {
|
|
974
974
|
if ((() => {
|
|
975
|
-
if (
|
|
975
|
+
if (n.purge || !n.content || !Array.isArray(n.content) && !(typeof n.content == "object" && n.content !== null))
|
|
976
976
|
return !1;
|
|
977
|
-
if (Array.isArray(
|
|
978
|
-
return
|
|
979
|
-
if (typeof
|
|
980
|
-
if (Object.keys(
|
|
977
|
+
if (Array.isArray(n.content))
|
|
978
|
+
return n.content.every((s) => typeof s == "string" ? !0 : !(typeof (s == null ? void 0 : s.raw) != "string" || s != null && s.extension && typeof (s == null ? void 0 : s.extension) != "string"));
|
|
979
|
+
if (typeof n.content == "object" && n.content !== null) {
|
|
980
|
+
if (Object.keys(n.content).some((s) => ![
|
|
981
981
|
"files",
|
|
982
982
|
"relative",
|
|
983
983
|
"extract",
|
|
984
984
|
"transform"
|
|
985
985
|
].includes(s)))
|
|
986
986
|
return !1;
|
|
987
|
-
if (Array.isArray(
|
|
988
|
-
if (!
|
|
987
|
+
if (Array.isArray(n.content.files)) {
|
|
988
|
+
if (!n.content.files.every((s) => typeof s == "string" ? !0 : !(typeof (s == null ? void 0 : s.raw) != "string" || s != null && s.extension && typeof (s == null ? void 0 : s.extension) != "string")))
|
|
989
989
|
return !1;
|
|
990
|
-
if (typeof
|
|
991
|
-
for (let s of Object.values(
|
|
990
|
+
if (typeof n.content.extract == "object") {
|
|
991
|
+
for (let s of Object.values(n.content.extract))
|
|
992
992
|
if (typeof s != "function")
|
|
993
993
|
return !1;
|
|
994
|
-
} else if (!(
|
|
994
|
+
} else if (!(n.content.extract === void 0 || typeof n.content.extract == "function"))
|
|
995
995
|
return !1;
|
|
996
|
-
if (typeof
|
|
997
|
-
for (let s of Object.values(
|
|
996
|
+
if (typeof n.content.transform == "object") {
|
|
997
|
+
for (let s of Object.values(n.content.transform))
|
|
998
998
|
if (typeof s != "function")
|
|
999
999
|
return !1;
|
|
1000
|
-
} else if (!(
|
|
1000
|
+
} else if (!(n.content.transform === void 0 || typeof n.content.transform == "function"))
|
|
1001
1001
|
return !1;
|
|
1002
|
-
if (typeof
|
|
1002
|
+
if (typeof n.content.relative != "boolean" && typeof n.content.relative != "undefined")
|
|
1003
1003
|
return !1;
|
|
1004
1004
|
}
|
|
1005
1005
|
return !0;
|
|
@@ -1009,12 +1009,12 @@ var We = {}, ie = {};
|
|
|
1009
1009
|
"The `purge`/`content` options have changed in Tailwind CSS v3.0.",
|
|
1010
1010
|
"Update your configuration file to eliminate this warning.",
|
|
1011
1011
|
"https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"
|
|
1012
|
-
]),
|
|
1012
|
+
]), n.safelist = (() => {
|
|
1013
1013
|
var s;
|
|
1014
|
-
let { content: c, purge: v, safelist: m } =
|
|
1014
|
+
let { content: c, purge: v, safelist: m } = n;
|
|
1015
1015
|
return Array.isArray(m) ? m : Array.isArray(c == null ? void 0 : c.safelist) ? c.safelist : Array.isArray(v == null ? void 0 : v.safelist) ? v.safelist : Array.isArray(v == null || (s = v.options) === null || s === void 0 ? void 0 : s.safelist) ? v.options.safelist : [];
|
|
1016
|
-
})(),
|
|
1017
|
-
let { blocklist: s } =
|
|
1016
|
+
})(), n.blocklist = (() => {
|
|
1017
|
+
let { blocklist: s } = n;
|
|
1018
1018
|
if (Array.isArray(s)) {
|
|
1019
1019
|
if (s.every((c) => typeof c == "string"))
|
|
1020
1020
|
return s;
|
|
@@ -1024,35 +1024,35 @@ var We = {}, ie = {};
|
|
|
1024
1024
|
]);
|
|
1025
1025
|
}
|
|
1026
1026
|
return [];
|
|
1027
|
-
})(), typeof
|
|
1027
|
+
})(), typeof n.prefix == "function")
|
|
1028
1028
|
r.default.warn("prefix-function", [
|
|
1029
1029
|
"As of Tailwind CSS v3.0, `prefix` cannot be a function.",
|
|
1030
1030
|
"Update `prefix` in your configuration to be a string to eliminate this warning.",
|
|
1031
1031
|
"https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"
|
|
1032
|
-
]),
|
|
1032
|
+
]), n.prefix = "";
|
|
1033
1033
|
else {
|
|
1034
1034
|
var l;
|
|
1035
|
-
|
|
1035
|
+
n.prefix = (l = n.prefix) !== null && l !== void 0 ? l : "";
|
|
1036
1036
|
}
|
|
1037
|
-
|
|
1037
|
+
n.content = {
|
|
1038
1038
|
relative: (() => {
|
|
1039
|
-
let { content: s } =
|
|
1040
|
-
return s != null && s.relative ? s.relative : (0, t.flagEnabled)(
|
|
1039
|
+
let { content: s } = n;
|
|
1040
|
+
return s != null && s.relative ? s.relative : (0, t.flagEnabled)(n, "relativeContentPathsByDefault");
|
|
1041
1041
|
})(),
|
|
1042
1042
|
files: (() => {
|
|
1043
|
-
let { content: s, purge: c } =
|
|
1043
|
+
let { content: s, purge: c } = n;
|
|
1044
1044
|
return Array.isArray(c) ? c : Array.isArray(c == null ? void 0 : c.content) ? c.content : Array.isArray(s) ? s : Array.isArray(s == null ? void 0 : s.content) ? s.content : Array.isArray(s == null ? void 0 : s.files) ? s.files : [];
|
|
1045
1045
|
})(),
|
|
1046
1046
|
extract: (() => {
|
|
1047
1047
|
let s = (() => {
|
|
1048
|
-
var m, E, y, k, A,
|
|
1049
|
-
return !((m =
|
|
1048
|
+
var m, E, y, k, A, z, L, M, G, H;
|
|
1049
|
+
return !((m = n.purge) === null || m === void 0) && m.extract ? n.purge.extract : !((E = n.content) === null || E === void 0) && E.extract ? n.content.extract : !((y = n.purge) === null || y === void 0 || (k = y.extract) === null || k === void 0) && k.DEFAULT ? n.purge.extract.DEFAULT : !((A = n.content) === null || A === void 0 || (z = A.extract) === null || z === void 0) && z.DEFAULT ? n.content.extract.DEFAULT : !((L = n.purge) === null || L === void 0 || (M = L.options) === null || M === void 0) && M.extractors ? n.purge.options.extractors : !((G = n.content) === null || G === void 0 || (H = G.options) === null || H === void 0) && H.extractors ? n.content.options.extractors : {};
|
|
1050
1050
|
})(), c = {}, v = (() => {
|
|
1051
1051
|
var m, E, y, k;
|
|
1052
|
-
if (!((m =
|
|
1053
|
-
return
|
|
1054
|
-
if (!((y =
|
|
1055
|
-
return
|
|
1052
|
+
if (!((m = n.purge) === null || m === void 0 || (E = m.options) === null || E === void 0) && E.defaultExtractor)
|
|
1053
|
+
return n.purge.options.defaultExtractor;
|
|
1054
|
+
if (!((y = n.content) === null || y === void 0 || (k = y.options) === null || k === void 0) && k.defaultExtractor)
|
|
1055
|
+
return n.content.options.defaultExtractor;
|
|
1056
1056
|
})();
|
|
1057
1057
|
if (v !== void 0 && (c.DEFAULT = v), typeof s == "function")
|
|
1058
1058
|
c.DEFAULT = s;
|
|
@@ -1067,12 +1067,12 @@ var We = {}, ie = {};
|
|
|
1067
1067
|
transform: (() => {
|
|
1068
1068
|
let s = (() => {
|
|
1069
1069
|
var v, m, E, y, k, A;
|
|
1070
|
-
return !((v =
|
|
1070
|
+
return !((v = n.purge) === null || v === void 0) && v.transform ? n.purge.transform : !((m = n.content) === null || m === void 0) && m.transform ? n.content.transform : !((E = n.purge) === null || E === void 0 || (y = E.transform) === null || y === void 0) && y.DEFAULT ? n.purge.transform.DEFAULT : !((k = n.content) === null || k === void 0 || (A = k.transform) === null || A === void 0) && A.DEFAULT ? n.content.transform.DEFAULT : {};
|
|
1071
1071
|
})(), c = {};
|
|
1072
1072
|
return typeof s == "function" && (c.DEFAULT = s), typeof s == "object" && s !== null && Object.assign(c, s), c;
|
|
1073
1073
|
})()
|
|
1074
1074
|
};
|
|
1075
|
-
for (let s of
|
|
1075
|
+
for (let s of n.content.files)
|
|
1076
1076
|
if (typeof s == "string" && /{([^,]*?)}/g.test(s)) {
|
|
1077
1077
|
r.default.warn("invalid-glob-braces", [
|
|
1078
1078
|
`The glob pattern ${(0, r.dim)(s)} in your Tailwind CSS configuration is invalid.`,
|
|
@@ -1080,10 +1080,10 @@ var We = {}, ie = {};
|
|
|
1080
1080
|
]);
|
|
1081
1081
|
break;
|
|
1082
1082
|
}
|
|
1083
|
-
return
|
|
1083
|
+
return n;
|
|
1084
1084
|
}
|
|
1085
|
-
})(
|
|
1086
|
-
var
|
|
1085
|
+
})(Re);
|
|
1086
|
+
var We = {};
|
|
1087
1087
|
(function(e) {
|
|
1088
1088
|
Object.defineProperty(e, "__esModule", {
|
|
1089
1089
|
value: !0
|
|
@@ -1096,10 +1096,10 @@ var Re = {};
|
|
|
1096
1096
|
function t(r) {
|
|
1097
1097
|
if (Object.prototype.toString.call(r) !== "[object Object]")
|
|
1098
1098
|
return !1;
|
|
1099
|
-
const
|
|
1100
|
-
return
|
|
1099
|
+
const i = Object.getPrototypeOf(r);
|
|
1100
|
+
return i === null || i === Object.prototype;
|
|
1101
1101
|
}
|
|
1102
|
-
})(
|
|
1102
|
+
})(We);
|
|
1103
1103
|
var Ue = {};
|
|
1104
1104
|
(function(e) {
|
|
1105
1105
|
Object.defineProperty(e, "__esModule", {
|
|
@@ -1111,8 +1111,8 @@ var Ue = {};
|
|
|
1111
1111
|
}
|
|
1112
1112
|
});
|
|
1113
1113
|
function t(r) {
|
|
1114
|
-
return Array.isArray(r) ? r.map((
|
|
1115
|
-
|
|
1114
|
+
return Array.isArray(r) ? r.map((i) => t(i)) : typeof r == "object" && r !== null ? Object.fromEntries(Object.entries(r).map(([i, a]) => [
|
|
1115
|
+
i,
|
|
1116
1116
|
t(a)
|
|
1117
1117
|
])) : r;
|
|
1118
1118
|
}
|
|
@@ -1903,15 +1903,15 @@ var ge = {}, ve = {}, Ve = {};
|
|
|
1903
1903
|
return E;
|
|
1904
1904
|
}
|
|
1905
1905
|
});
|
|
1906
|
-
const r = /* @__PURE__ */
|
|
1907
|
-
function
|
|
1906
|
+
const r = /* @__PURE__ */ i(Ve);
|
|
1907
|
+
function i(y) {
|
|
1908
1908
|
return y && y.__esModule ? y : {
|
|
1909
1909
|
default: y
|
|
1910
1910
|
};
|
|
1911
1911
|
}
|
|
1912
|
-
let a = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, o = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,
|
|
1912
|
+
let a = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, o = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, n = /(?:\d+|\d*\.\d+)%?/, h = /(?:\s*,\s*|\s+)/, l = /\s*[,/]\s*/, s = /var\(--(?:[^ )]*?)\)/, c = new RegExp(`^(rgba?)\\(\\s*(${n.source}|${s.source})(?:${h.source}(${n.source}|${s.source}))?(?:${h.source}(${n.source}|${s.source}))?(?:${l.source}(${n.source}|${s.source}))?\\s*\\)$`), v = new RegExp(`^(hsla?)\\(\\s*((?:${n.source})(?:deg|rad|grad|turn)?|${s.source})(?:${h.source}(${n.source}|${s.source}))?(?:${h.source}(${n.source}|${s.source}))?(?:${l.source}(${n.source}|${s.source}))?\\s*\\)$`);
|
|
1913
1913
|
function m(y, { loose: k = !1 } = {}) {
|
|
1914
|
-
var A,
|
|
1914
|
+
var A, z;
|
|
1915
1915
|
if (typeof y != "string")
|
|
1916
1916
|
return null;
|
|
1917
1917
|
if (y = y.trim(), y === "transparent")
|
|
@@ -1927,89 +1927,89 @@ var ge = {}, ve = {}, Ve = {};
|
|
|
1927
1927
|
if (y in r.default)
|
|
1928
1928
|
return {
|
|
1929
1929
|
mode: "rgb",
|
|
1930
|
-
color: r.default[y].map((
|
|
1930
|
+
color: r.default[y].map((R) => R.toString())
|
|
1931
1931
|
};
|
|
1932
|
-
let
|
|
1932
|
+
let L = y.replace(o, (R, N, W, g, D) => [
|
|
1933
1933
|
"#",
|
|
1934
1934
|
N,
|
|
1935
1935
|
N,
|
|
1936
|
-
|
|
1937
|
-
|
|
1936
|
+
W,
|
|
1937
|
+
W,
|
|
1938
1938
|
g,
|
|
1939
1939
|
g,
|
|
1940
1940
|
D ? D + D : ""
|
|
1941
1941
|
].join("")).match(a);
|
|
1942
|
-
if (
|
|
1942
|
+
if (L !== null)
|
|
1943
1943
|
return {
|
|
1944
1944
|
mode: "rgb",
|
|
1945
1945
|
color: [
|
|
1946
|
-
parseInt(
|
|
1947
|
-
parseInt(
|
|
1948
|
-
parseInt(
|
|
1949
|
-
].map((
|
|
1950
|
-
alpha:
|
|
1946
|
+
parseInt(L[1], 16),
|
|
1947
|
+
parseInt(L[2], 16),
|
|
1948
|
+
parseInt(L[3], 16)
|
|
1949
|
+
].map((R) => R.toString()),
|
|
1950
|
+
alpha: L[4] ? (parseInt(L[4], 16) / 255).toString() : void 0
|
|
1951
1951
|
};
|
|
1952
1952
|
var M;
|
|
1953
|
-
let
|
|
1954
|
-
if (
|
|
1953
|
+
let G = (M = y.match(c)) !== null && M !== void 0 ? M : y.match(v);
|
|
1954
|
+
if (G === null)
|
|
1955
1955
|
return null;
|
|
1956
1956
|
let H = [
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
].filter(Boolean).map((
|
|
1957
|
+
G[2],
|
|
1958
|
+
G[3],
|
|
1959
|
+
G[4]
|
|
1960
|
+
].filter(Boolean).map((R) => R.toString());
|
|
1961
1961
|
return H.length === 2 && H[0].startsWith("var(") ? {
|
|
1962
|
-
mode:
|
|
1962
|
+
mode: G[1],
|
|
1963
1963
|
color: [
|
|
1964
1964
|
H[0]
|
|
1965
1965
|
],
|
|
1966
1966
|
alpha: H[1]
|
|
1967
|
-
} : !k && H.length !== 3 || H.length < 3 && !H.some((
|
|
1968
|
-
mode:
|
|
1967
|
+
} : !k && H.length !== 3 || H.length < 3 && !H.some((R) => /^var\(.*?\)$/.test(R)) ? null : {
|
|
1968
|
+
mode: G[1],
|
|
1969
1969
|
color: H,
|
|
1970
|
-
alpha: (A =
|
|
1970
|
+
alpha: (A = G[5]) === null || A === void 0 || (z = A.toString) === null || z === void 0 ? void 0 : z.call(A)
|
|
1971
1971
|
};
|
|
1972
1972
|
}
|
|
1973
1973
|
function E({ mode: y, color: k, alpha: A }) {
|
|
1974
|
-
let
|
|
1975
|
-
return y === "rgba" || y === "hsla" ? `${y}(${k.join(", ")}${
|
|
1974
|
+
let z = A !== void 0;
|
|
1975
|
+
return y === "rgba" || y === "hsla" ? `${y}(${k.join(", ")}${z ? `, ${A}` : ""})` : `${y}(${k.join(" ")}${z ? ` / ${A}` : ""})`;
|
|
1976
1976
|
}
|
|
1977
1977
|
})(ve);
|
|
1978
1978
|
(function(e) {
|
|
1979
1979
|
Object.defineProperty(e, "__esModule", {
|
|
1980
1980
|
value: !0
|
|
1981
1981
|
});
|
|
1982
|
-
function t(o,
|
|
1983
|
-
for (var h in
|
|
1982
|
+
function t(o, n) {
|
|
1983
|
+
for (var h in n)
|
|
1984
1984
|
Object.defineProperty(o, h, {
|
|
1985
1985
|
enumerable: !0,
|
|
1986
|
-
get:
|
|
1986
|
+
get: n[h]
|
|
1987
1987
|
});
|
|
1988
1988
|
}
|
|
1989
1989
|
t(e, {
|
|
1990
1990
|
withAlphaValue: function() {
|
|
1991
|
-
return
|
|
1991
|
+
return i;
|
|
1992
1992
|
},
|
|
1993
1993
|
default: function() {
|
|
1994
1994
|
return a;
|
|
1995
1995
|
}
|
|
1996
1996
|
});
|
|
1997
1997
|
const r = ve;
|
|
1998
|
-
function
|
|
1998
|
+
function i(o, n, h) {
|
|
1999
1999
|
if (typeof o == "function")
|
|
2000
2000
|
return o({
|
|
2001
|
-
opacityValue:
|
|
2001
|
+
opacityValue: n
|
|
2002
2002
|
});
|
|
2003
2003
|
let l = (0, r.parseColor)(o, {
|
|
2004
2004
|
loose: !0
|
|
2005
2005
|
});
|
|
2006
2006
|
return l === null ? h : (0, r.formatColor)({
|
|
2007
2007
|
...l,
|
|
2008
|
-
alpha:
|
|
2008
|
+
alpha: n
|
|
2009
2009
|
});
|
|
2010
2010
|
}
|
|
2011
|
-
function a({ color: o, property:
|
|
2012
|
-
let l = [].concat(
|
|
2011
|
+
function a({ color: o, property: n, variable: h }) {
|
|
2012
|
+
let l = [].concat(n);
|
|
2013
2013
|
if (typeof o == "function")
|
|
2014
2014
|
return {
|
|
2015
2015
|
[h]: "1",
|
|
@@ -2050,13 +2050,13 @@ var ye = {}, qe = {}, se = {};
|
|
|
2050
2050
|
return t;
|
|
2051
2051
|
}
|
|
2052
2052
|
});
|
|
2053
|
-
function t(r,
|
|
2054
|
-
let a = [], o = [],
|
|
2053
|
+
function t(r, i) {
|
|
2054
|
+
let a = [], o = [], n = 0, h = !1;
|
|
2055
2055
|
for (let l = 0; l < r.length; l++) {
|
|
2056
2056
|
let s = r[l];
|
|
2057
|
-
a.length === 0 && s ===
|
|
2057
|
+
a.length === 0 && s === i[0] && !h && (i.length === 1 || r.slice(l, l + i.length) === i) && (o.push(r.slice(n, l)), n = l + i.length), h ? h = !1 : s === "\\" && (h = !0), s === "(" || s === "[" || s === "{" ? a.push(s) : (s === ")" && a[a.length - 1] === "(" || s === "]" && a[a.length - 1] === "[" || s === "}" && a[a.length - 1] === "{") && a.pop();
|
|
2058
2058
|
}
|
|
2059
|
-
return o.push(r.slice(
|
|
2059
|
+
return o.push(r.slice(n)), o;
|
|
2060
2060
|
}
|
|
2061
2061
|
})(se);
|
|
2062
2062
|
(function(e) {
|
|
@@ -2072,27 +2072,27 @@ var ye = {}, qe = {}, se = {};
|
|
|
2072
2072
|
}
|
|
2073
2073
|
t(e, {
|
|
2074
2074
|
parseBoxShadowValue: function() {
|
|
2075
|
-
return
|
|
2075
|
+
return n;
|
|
2076
2076
|
},
|
|
2077
2077
|
formatBoxShadowValue: function() {
|
|
2078
2078
|
return h;
|
|
2079
2079
|
}
|
|
2080
2080
|
});
|
|
2081
2081
|
const r = se;
|
|
2082
|
-
let
|
|
2082
|
+
let i = /* @__PURE__ */ new Set([
|
|
2083
2083
|
"inset",
|
|
2084
2084
|
"inherit",
|
|
2085
2085
|
"initial",
|
|
2086
2086
|
"revert",
|
|
2087
2087
|
"unset"
|
|
2088
2088
|
]), a = /\ +(?![^(]*\))/g, o = /^-?(\d+|\.\d+)(.*?)$/g;
|
|
2089
|
-
function
|
|
2089
|
+
function n(l) {
|
|
2090
2090
|
return (0, r.splitAtTopLevelOnly)(l, ",").map((c) => {
|
|
2091
2091
|
let v = c.trim(), m = {
|
|
2092
2092
|
raw: v
|
|
2093
2093
|
}, E = v.split(a), y = /* @__PURE__ */ new Set();
|
|
2094
2094
|
for (let k of E)
|
|
2095
|
-
o.lastIndex = 0, !y.has("KEYWORD") &&
|
|
2095
|
+
o.lastIndex = 0, !y.has("KEYWORD") && i.has(k) ? (m.keyword = k, y.add("KEYWORD")) : o.test(k) ? y.has("X") ? y.has("Y") ? y.has("BLUR") ? y.has("SPREAD") || (m.spread = k, y.add("SPREAD")) : (m.blur = k, y.add("BLUR")) : (m.y = k, y.add("Y")) : (m.x = k, y.add("X")) : m.color ? (m.unknown || (m.unknown = []), m.unknown.push(k)) : m.color = k;
|
|
2096
2096
|
return m.valid = m.x !== void 0 && m.y !== void 0, m;
|
|
2097
2097
|
});
|
|
2098
2098
|
}
|
|
@@ -2111,11 +2111,11 @@ var ye = {}, qe = {}, se = {};
|
|
|
2111
2111
|
Object.defineProperty(e, "__esModule", {
|
|
2112
2112
|
value: !0
|
|
2113
2113
|
});
|
|
2114
|
-
function t(d,
|
|
2115
|
-
for (var F in
|
|
2114
|
+
function t(d, w) {
|
|
2115
|
+
for (var F in w)
|
|
2116
2116
|
Object.defineProperty(d, F, {
|
|
2117
2117
|
enumerable: !0,
|
|
2118
|
-
get:
|
|
2118
|
+
get: w[F]
|
|
2119
2119
|
});
|
|
2120
2120
|
}
|
|
2121
2121
|
t(e, {
|
|
@@ -2135,13 +2135,13 @@ var ye = {}, qe = {}, se = {};
|
|
|
2135
2135
|
return A;
|
|
2136
2136
|
},
|
|
2137
2137
|
lineWidth: function() {
|
|
2138
|
-
return
|
|
2138
|
+
return L;
|
|
2139
2139
|
},
|
|
2140
2140
|
shadow: function() {
|
|
2141
2141
|
return M;
|
|
2142
2142
|
},
|
|
2143
2143
|
color: function() {
|
|
2144
|
-
return
|
|
2144
|
+
return G;
|
|
2145
2145
|
},
|
|
2146
2146
|
image: function() {
|
|
2147
2147
|
return H;
|
|
@@ -2165,34 +2165,34 @@ var ye = {}, qe = {}, se = {};
|
|
|
2165
2165
|
return $;
|
|
2166
2166
|
}
|
|
2167
2167
|
});
|
|
2168
|
-
const r = ve,
|
|
2168
|
+
const r = ve, i = qe, a = se;
|
|
2169
2169
|
let o = [
|
|
2170
2170
|
"min",
|
|
2171
2171
|
"max",
|
|
2172
2172
|
"clamp",
|
|
2173
2173
|
"calc"
|
|
2174
2174
|
];
|
|
2175
|
-
function
|
|
2176
|
-
return o.some((
|
|
2175
|
+
function n(d) {
|
|
2176
|
+
return o.some((w) => new RegExp(`^${w}\\(.*\\)`).test(d));
|
|
2177
2177
|
}
|
|
2178
2178
|
const h = "--tw-placeholder", l = new RegExp(h, "g");
|
|
2179
|
-
function s(d,
|
|
2180
|
-
return d.startsWith("--") ? `var(${d})` : d.includes("url(") ? d.split(/(url\(.*?\))/g).filter(Boolean).map((F) => /^url\(.*?\)$/.test(F) ? F : s(F, !1)).join("") : (d = d.replace(/([^\\])_+/g, (F, O) => O + " ".repeat(F.length - 1)).replace(/^_/g, " ").replace(/\\_/g, "_"),
|
|
2179
|
+
function s(d, w = !0) {
|
|
2180
|
+
return d.startsWith("--") ? `var(${d})` : d.includes("url(") ? d.split(/(url\(.*?\))/g).filter(Boolean).map((F) => /^url\(.*?\)$/.test(F) ? F : s(F, !1)).join("") : (d = d.replace(/([^\\])_+/g, (F, O) => O + " ".repeat(F.length - 1)).replace(/^_/g, " ").replace(/\\_/g, "_"), w && (d = d.trim()), d = c(d), d);
|
|
2181
2181
|
}
|
|
2182
2182
|
function c(d) {
|
|
2183
|
-
return d.replace(/(calc|min|max|clamp)\(.+\)/g, (
|
|
2183
|
+
return d.replace(/(calc|min|max|clamp)\(.+\)/g, (w) => {
|
|
2184
2184
|
let F = [];
|
|
2185
|
-
return
|
|
2185
|
+
return w.replace(/var\((--.+?)[,)]/g, (O, K) => (F.push(K), O.replace(K, h))).replace(/(-?\d*\.?\d(?!\b-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ").replace(l, () => F.shift());
|
|
2186
2186
|
});
|
|
2187
2187
|
}
|
|
2188
2188
|
function v(d) {
|
|
2189
2189
|
return d.startsWith("url(");
|
|
2190
2190
|
}
|
|
2191
2191
|
function m(d) {
|
|
2192
|
-
return !isNaN(Number(d)) ||
|
|
2192
|
+
return !isNaN(Number(d)) || n(d);
|
|
2193
2193
|
}
|
|
2194
2194
|
function E(d) {
|
|
2195
|
-
return d.endsWith("%") && m(d.slice(0, -1)) ||
|
|
2195
|
+
return d.endsWith("%") && m(d.slice(0, -1)) || n(d);
|
|
2196
2196
|
}
|
|
2197
2197
|
let k = `(?:${[
|
|
2198
2198
|
"cm",
|
|
@@ -2228,39 +2228,39 @@ var ye = {}, qe = {}, se = {};
|
|
|
2228
2228
|
"cqmax"
|
|
2229
2229
|
].join("|")})`;
|
|
2230
2230
|
function A(d) {
|
|
2231
|
-
return d === "0" || new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${k}$`).test(d) ||
|
|
2231
|
+
return d === "0" || new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${k}$`).test(d) || n(d);
|
|
2232
2232
|
}
|
|
2233
|
-
let
|
|
2233
|
+
let z = /* @__PURE__ */ new Set([
|
|
2234
2234
|
"thin",
|
|
2235
2235
|
"medium",
|
|
2236
2236
|
"thick"
|
|
2237
2237
|
]);
|
|
2238
|
-
function
|
|
2239
|
-
return
|
|
2238
|
+
function L(d) {
|
|
2239
|
+
return z.has(d);
|
|
2240
2240
|
}
|
|
2241
2241
|
function M(d) {
|
|
2242
|
-
let
|
|
2243
|
-
for (let F of
|
|
2242
|
+
let w = (0, i.parseBoxShadowValue)(s(d));
|
|
2243
|
+
for (let F of w)
|
|
2244
2244
|
if (!F.valid)
|
|
2245
2245
|
return !1;
|
|
2246
2246
|
return !0;
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2249
|
-
let
|
|
2248
|
+
function G(d) {
|
|
2249
|
+
let w = 0;
|
|
2250
2250
|
return (0, a.splitAtTopLevelOnly)(d, "_").every((O) => (O = s(O), O.startsWith("var(") ? !0 : (0, r.parseColor)(O, {
|
|
2251
2251
|
loose: !0
|
|
2252
|
-
}) !== null ? (
|
|
2252
|
+
}) !== null ? (w++, !0) : !1)) ? w > 0 : !1;
|
|
2253
2253
|
}
|
|
2254
2254
|
function H(d) {
|
|
2255
|
-
let
|
|
2255
|
+
let w = 0;
|
|
2256
2256
|
return (0, a.splitAtTopLevelOnly)(d, ",").every((O) => (O = s(O), O.startsWith("var(") ? !0 : v(O) || N(O) || [
|
|
2257
2257
|
"element(",
|
|
2258
2258
|
"image(",
|
|
2259
2259
|
"cross-fade(",
|
|
2260
2260
|
"image-set("
|
|
2261
|
-
].some((K) => O.startsWith(K)) ? (
|
|
2261
|
+
].some((K) => O.startsWith(K)) ? (w++, !0) : !1)) ? w > 0 : !1;
|
|
2262
2262
|
}
|
|
2263
|
-
let
|
|
2263
|
+
let R = /* @__PURE__ */ new Set([
|
|
2264
2264
|
"conic-gradient",
|
|
2265
2265
|
"linear-gradient",
|
|
2266
2266
|
"radial-gradient",
|
|
@@ -2270,12 +2270,12 @@ var ye = {}, qe = {}, se = {};
|
|
|
2270
2270
|
]);
|
|
2271
2271
|
function N(d) {
|
|
2272
2272
|
d = s(d);
|
|
2273
|
-
for (let
|
|
2274
|
-
if (d.startsWith(`${
|
|
2273
|
+
for (let w of R)
|
|
2274
|
+
if (d.startsWith(`${w}(`))
|
|
2275
2275
|
return !0;
|
|
2276
2276
|
return !1;
|
|
2277
2277
|
}
|
|
2278
|
-
let
|
|
2278
|
+
let W = /* @__PURE__ */ new Set([
|
|
2279
2279
|
"center",
|
|
2280
2280
|
"top",
|
|
2281
2281
|
"right",
|
|
@@ -2283,12 +2283,12 @@ var ye = {}, qe = {}, se = {};
|
|
|
2283
2283
|
"left"
|
|
2284
2284
|
]);
|
|
2285
2285
|
function g(d) {
|
|
2286
|
-
let
|
|
2287
|
-
return (0, a.splitAtTopLevelOnly)(d, "_").every((O) => (O = s(O), O.startsWith("var(") ? !0 :
|
|
2286
|
+
let w = 0;
|
|
2287
|
+
return (0, a.splitAtTopLevelOnly)(d, "_").every((O) => (O = s(O), O.startsWith("var(") ? !0 : W.has(O) || A(O) || E(O) ? (w++, !0) : !1)) ? w > 0 : !1;
|
|
2288
2288
|
}
|
|
2289
2289
|
function D(d) {
|
|
2290
|
-
let
|
|
2291
|
-
return (0, a.splitAtTopLevelOnly)(d, ",").every((O) => (O = s(O), O.startsWith("var(") ? !0 : O.includes(" ") && !/(['"])([^"']+)\1/g.test(O) || /^\d/g.test(O) ? !1 : (
|
|
2290
|
+
let w = 0;
|
|
2291
|
+
return (0, a.splitAtTopLevelOnly)(d, ",").every((O) => (O = s(O), O.startsWith("var(") ? !0 : O.includes(" ") && !/(['"])([^"']+)\1/g.test(O) || /^\d/g.test(O) ? !1 : (w++, !0))) ? w > 0 : !1;
|
|
2292
2292
|
}
|
|
2293
2293
|
let C = /* @__PURE__ */ new Set([
|
|
2294
2294
|
"serif",
|
|
@@ -2336,17 +2336,17 @@ var Xe = {};
|
|
|
2336
2336
|
}), Object.defineProperty(e, "backgroundSize", {
|
|
2337
2337
|
enumerable: !0,
|
|
2338
2338
|
get: function() {
|
|
2339
|
-
return
|
|
2339
|
+
return i;
|
|
2340
2340
|
}
|
|
2341
2341
|
});
|
|
2342
2342
|
const t = ye, r = se;
|
|
2343
|
-
function
|
|
2343
|
+
function i(a) {
|
|
2344
2344
|
let o = [
|
|
2345
2345
|
"cover",
|
|
2346
2346
|
"contain"
|
|
2347
2347
|
];
|
|
2348
|
-
return (0, r.splitAtTopLevelOnly)(a, ",").every((
|
|
2349
|
-
let h = (0, r.splitAtTopLevelOnly)(
|
|
2348
|
+
return (0, r.splitAtTopLevelOnly)(a, ",").every((n) => {
|
|
2349
|
+
let h = (0, r.splitAtTopLevelOnly)(n, "_").filter(Boolean);
|
|
2350
2350
|
return h.length === 1 && o.includes(h[0]) ? !0 : h.length !== 1 && h.length !== 2 ? !1 : h.every((l) => (0, t.length)(l) || (0, t.percentage)(l) || l === "auto");
|
|
2351
2351
|
});
|
|
2352
2352
|
}
|
|
@@ -2373,22 +2373,22 @@ var Xe = {};
|
|
|
2373
2373
|
return k;
|
|
2374
2374
|
},
|
|
2375
2375
|
asColor: function() {
|
|
2376
|
-
return
|
|
2376
|
+
return z;
|
|
2377
2377
|
},
|
|
2378
2378
|
asLookupValue: function() {
|
|
2379
|
-
return
|
|
2379
|
+
return L;
|
|
2380
2380
|
},
|
|
2381
2381
|
typeMap: function() {
|
|
2382
|
-
return
|
|
2382
|
+
return G;
|
|
2383
2383
|
},
|
|
2384
2384
|
coerceValue: function() {
|
|
2385
2385
|
return N;
|
|
2386
2386
|
},
|
|
2387
2387
|
getMatchingTypes: function() {
|
|
2388
|
-
return
|
|
2388
|
+
return W;
|
|
2389
2389
|
}
|
|
2390
2390
|
});
|
|
2391
|
-
const r = /* @__PURE__ */ l(Ie),
|
|
2391
|
+
const r = /* @__PURE__ */ l(Ie), i = ge, a = ye, o = /* @__PURE__ */ l(he), n = Xe, h = ne;
|
|
2392
2392
|
function l(g) {
|
|
2393
2393
|
return g && g.__esModule ? g : {
|
|
2394
2394
|
default: g
|
|
@@ -2446,7 +2446,7 @@ var Xe = {};
|
|
|
2446
2446
|
function A(g) {
|
|
2447
2447
|
return (0, a.normalize)(g.slice(1, -1));
|
|
2448
2448
|
}
|
|
2449
|
-
function
|
|
2449
|
+
function z(g, D = {}, { tailwindConfig: C = {} } = {}) {
|
|
2450
2450
|
var f;
|
|
2451
2451
|
if (((f = D.values) === null || f === void 0 ? void 0 : f[g]) !== void 0) {
|
|
2452
2452
|
var b;
|
|
@@ -2454,15 +2454,15 @@ var Xe = {};
|
|
|
2454
2454
|
}
|
|
2455
2455
|
let [x, p] = y(g);
|
|
2456
2456
|
if (p !== void 0) {
|
|
2457
|
-
var $, d,
|
|
2457
|
+
var $, d, w, F;
|
|
2458
2458
|
let O = (F = ($ = D.values) === null || $ === void 0 ? void 0 : $[x]) !== null && F !== void 0 ? F : E(x) ? x.slice(1, -1) : void 0;
|
|
2459
|
-
return O === void 0 ? void 0 : (O = k(O), E(p) ? (0,
|
|
2459
|
+
return O === void 0 ? void 0 : (O = k(O), E(p) ? (0, i.withAlphaValue)(O, A(p)) : ((d = C.theme) === null || d === void 0 || (w = d.opacity) === null || w === void 0 ? void 0 : w[p]) === void 0 ? void 0 : (0, i.withAlphaValue)(O, C.theme.opacity[p]));
|
|
2460
2460
|
}
|
|
2461
2461
|
return m(g, D, {
|
|
2462
2462
|
validate: a.color
|
|
2463
2463
|
});
|
|
2464
2464
|
}
|
|
2465
|
-
function
|
|
2465
|
+
function L(g, D = {}) {
|
|
2466
2466
|
var C;
|
|
2467
2467
|
return (C = D.values) === null || C === void 0 ? void 0 : C[g];
|
|
2468
2468
|
}
|
|
@@ -2471,15 +2471,15 @@ var Xe = {};
|
|
|
2471
2471
|
validate: g
|
|
2472
2472
|
});
|
|
2473
2473
|
}
|
|
2474
|
-
let
|
|
2474
|
+
let G = {
|
|
2475
2475
|
any: m,
|
|
2476
|
-
color:
|
|
2476
|
+
color: z,
|
|
2477
2477
|
url: M(a.url),
|
|
2478
2478
|
image: M(a.image),
|
|
2479
2479
|
length: M(a.length),
|
|
2480
2480
|
percentage: M(a.percentage),
|
|
2481
2481
|
position: M(a.position),
|
|
2482
|
-
lookup:
|
|
2482
|
+
lookup: L,
|
|
2483
2483
|
"generic-name": M(a.genericName),
|
|
2484
2484
|
"family-name": M(a.familyName),
|
|
2485
2485
|
number: M(a.number),
|
|
@@ -2487,9 +2487,9 @@ var Xe = {};
|
|
|
2487
2487
|
"absolute-size": M(a.absoluteSize),
|
|
2488
2488
|
"relative-size": M(a.relativeSize),
|
|
2489
2489
|
shadow: M(a.shadow),
|
|
2490
|
-
size: M(
|
|
2491
|
-
}, H = Object.keys(
|
|
2492
|
-
function
|
|
2490
|
+
size: M(n.backgroundSize)
|
|
2491
|
+
}, H = Object.keys(G);
|
|
2492
|
+
function R(g, D) {
|
|
2493
2493
|
let C = g.indexOf(D);
|
|
2494
2494
|
return C === -1 ? [
|
|
2495
2495
|
void 0,
|
|
@@ -2502,7 +2502,7 @@ var Xe = {};
|
|
|
2502
2502
|
function N(g, D, C, f) {
|
|
2503
2503
|
if (C.values && D in C.values)
|
|
2504
2504
|
for (let { type: x } of g != null ? g : []) {
|
|
2505
|
-
let p =
|
|
2505
|
+
let p = G[x](D, C, {
|
|
2506
2506
|
tailwindConfig: f
|
|
2507
2507
|
});
|
|
2508
2508
|
if (p !== void 0)
|
|
@@ -2513,7 +2513,7 @@ var Xe = {};
|
|
|
2513
2513
|
];
|
|
2514
2514
|
}
|
|
2515
2515
|
if (E(D)) {
|
|
2516
|
-
let x = D.slice(1, -1), [p, $] =
|
|
2516
|
+
let x = D.slice(1, -1), [p, $] = R(x, ":");
|
|
2517
2517
|
if (!/^[\w-_]+$/g.test(p))
|
|
2518
2518
|
$ = x;
|
|
2519
2519
|
else if (p !== void 0 && !H.includes(p))
|
|
@@ -2525,20 +2525,20 @@ var Xe = {};
|
|
|
2525
2525
|
null
|
|
2526
2526
|
];
|
|
2527
2527
|
}
|
|
2528
|
-
let b =
|
|
2528
|
+
let b = W(g, D, C, f);
|
|
2529
2529
|
for (let x of b)
|
|
2530
2530
|
return x;
|
|
2531
2531
|
return [];
|
|
2532
2532
|
}
|
|
2533
|
-
function*
|
|
2533
|
+
function* W(g, D, C, f) {
|
|
2534
2534
|
let b = (0, h.flagEnabled)(f, "generalizedModifiers"), [x, p] = y(D);
|
|
2535
2535
|
if (b && C.modifiers != null && (C.modifiers === "any" || typeof C.modifiers == "object" && (p && E(p) || p in C.modifiers)) || (x = D, p = void 0), p !== void 0 && x === "" && (x = "DEFAULT"), p !== void 0 && typeof C.modifiers == "object") {
|
|
2536
|
-
var d,
|
|
2537
|
-
let F = (
|
|
2536
|
+
var d, w;
|
|
2537
|
+
let F = (w = (d = C.modifiers) === null || d === void 0 ? void 0 : d[p]) !== null && w !== void 0 ? w : null;
|
|
2538
2538
|
F !== null ? p = F : E(p) && (p = A(p));
|
|
2539
2539
|
}
|
|
2540
2540
|
for (let { type: F } of g != null ? g : []) {
|
|
2541
|
-
let O =
|
|
2541
|
+
let O = G[F](x, C, {
|
|
2542
2542
|
tailwindConfig: f
|
|
2543
2543
|
});
|
|
2544
2544
|
O !== void 0 && (yield [
|
|
@@ -2572,7 +2572,7 @@ var Ye = {};
|
|
|
2572
2572
|
return C;
|
|
2573
2573
|
}
|
|
2574
2574
|
});
|
|
2575
|
-
const t = /* @__PURE__ */ E(he), r = /* @__PURE__ */ E(
|
|
2575
|
+
const t = /* @__PURE__ */ E(he), r = /* @__PURE__ */ E(ze), i = /* @__PURE__ */ E(Le), a = /* @__PURE__ */ E(me), o = je, n = Be, h = Re, l = /* @__PURE__ */ E(We), s = Ue, c = Ne, v = ge, m = /* @__PURE__ */ E(Ye);
|
|
2576
2576
|
function E(f) {
|
|
2577
2577
|
return f && f.__esModule ? f : {
|
|
2578
2578
|
default: f
|
|
@@ -2605,10 +2605,10 @@ var Ye = {};
|
|
|
2605
2605
|
}), {});
|
|
2606
2606
|
}
|
|
2607
2607
|
};
|
|
2608
|
-
function
|
|
2608
|
+
function z(f, ...b) {
|
|
2609
2609
|
return y(f) ? f(...b) : f;
|
|
2610
2610
|
}
|
|
2611
|
-
function
|
|
2611
|
+
function L(f) {
|
|
2612
2612
|
return f.reduce((b, { extend: x }) => k(b, x, (p, $) => p === void 0 ? [
|
|
2613
2613
|
$
|
|
2614
2614
|
] : Array.isArray(p) ? [
|
|
@@ -2624,10 +2624,10 @@ var Ye = {};
|
|
|
2624
2624
|
...f.reduce((b, x) => (0, o.defaults)(b, x), {}),
|
|
2625
2625
|
// In order to resolve n config objects, we combine all of their `extend` properties
|
|
2626
2626
|
// into arrays instead of objects so they aren't overridden.
|
|
2627
|
-
extend:
|
|
2627
|
+
extend: L(f)
|
|
2628
2628
|
};
|
|
2629
2629
|
}
|
|
2630
|
-
function
|
|
2630
|
+
function G(f, b) {
|
|
2631
2631
|
if (Array.isArray(f) && (0, l.default)(f[0]))
|
|
2632
2632
|
return f.concat(b);
|
|
2633
2633
|
if (Array.isArray(b) && (0, l.default)(b[0]) && (0, l.default)(f))
|
|
@@ -2639,33 +2639,33 @@ var Ye = {};
|
|
|
2639
2639
|
return b;
|
|
2640
2640
|
}
|
|
2641
2641
|
function H({ extend: f, ...b }) {
|
|
2642
|
-
return k(b, f, (x, p) => !y(x) && !p.some(y) ? k({}, x, ...p,
|
|
2642
|
+
return k(b, f, (x, p) => !y(x) && !p.some(y) ? k({}, x, ...p, G) : ($, d) => k({}, ...[
|
|
2643
2643
|
x,
|
|
2644
2644
|
...p
|
|
2645
|
-
].map((
|
|
2645
|
+
].map((w) => z(w, $, d)), G));
|
|
2646
2646
|
}
|
|
2647
|
-
function*
|
|
2648
|
-
let b = (0,
|
|
2647
|
+
function* R(f) {
|
|
2648
|
+
let b = (0, n.toPath)(f);
|
|
2649
2649
|
if (b.length === 0 || (yield b, Array.isArray(f)))
|
|
2650
2650
|
return;
|
|
2651
2651
|
let x = /^(.*?)\s*\/\s*([^/]+)$/, p = f.match(x);
|
|
2652
2652
|
if (p !== null) {
|
|
2653
|
-
let [, $, d] = p,
|
|
2654
|
-
|
|
2653
|
+
let [, $, d] = p, w = (0, n.toPath)($);
|
|
2654
|
+
w.alpha = d, yield w;
|
|
2655
2655
|
}
|
|
2656
2656
|
}
|
|
2657
2657
|
function N(f) {
|
|
2658
2658
|
const b = (x, p) => {
|
|
2659
|
-
for (const $ of
|
|
2660
|
-
let d = 0,
|
|
2661
|
-
for (;
|
|
2662
|
-
|
|
2663
|
-
if (
|
|
2659
|
+
for (const $ of R(x)) {
|
|
2660
|
+
let d = 0, w = f;
|
|
2661
|
+
for (; w != null && d < $.length; )
|
|
2662
|
+
w = w[$[d++]], w = y(w) && ($.alpha === void 0 || d <= $.length - 1) ? w(b, A) : w;
|
|
2663
|
+
if (w !== void 0) {
|
|
2664
2664
|
if ($.alpha !== void 0) {
|
|
2665
|
-
let F = (0, c.parseColorFormat)(
|
|
2665
|
+
let F = (0, c.parseColorFormat)(w);
|
|
2666
2666
|
return (0, v.withAlphaValue)(F, $.alpha, (0, m.default)(F));
|
|
2667
2667
|
}
|
|
2668
|
-
return (0, l.default)(
|
|
2668
|
+
return (0, l.default)(w) ? (0, s.cloneDeep)(w) : w;
|
|
2669
2669
|
}
|
|
2670
2670
|
}
|
|
2671
2671
|
return p;
|
|
@@ -2675,7 +2675,7 @@ var Ye = {};
|
|
|
2675
2675
|
...A
|
|
2676
2676
|
}), Object.keys(f).reduce((x, p) => (x[p] = y(f[p]) ? f[p](b, A) : f[p], x), {});
|
|
2677
2677
|
}
|
|
2678
|
-
function
|
|
2678
|
+
function W(f) {
|
|
2679
2679
|
let b = [];
|
|
2680
2680
|
return f.forEach((x) => {
|
|
2681
2681
|
b = [
|
|
@@ -2686,11 +2686,11 @@ var Ye = {};
|
|
|
2686
2686
|
const $ = (p = x == null ? void 0 : x.plugins) !== null && p !== void 0 ? p : [];
|
|
2687
2687
|
$.length !== 0 && $.forEach((d) => {
|
|
2688
2688
|
d.__isOptionsFunction && (d = d());
|
|
2689
|
-
var
|
|
2689
|
+
var w;
|
|
2690
2690
|
b = [
|
|
2691
2691
|
...b,
|
|
2692
|
-
...
|
|
2693
|
-
(
|
|
2692
|
+
...W([
|
|
2693
|
+
(w = d == null ? void 0 : d.config) !== null && w !== void 0 ? w : {}
|
|
2694
2694
|
])
|
|
2695
2695
|
];
|
|
2696
2696
|
});
|
|
@@ -2701,7 +2701,7 @@ var Ye = {};
|
|
|
2701
2701
|
...f
|
|
2702
2702
|
].reduceRight((x, p) => y(p) ? p({
|
|
2703
2703
|
corePlugins: x
|
|
2704
|
-
}) : (0,
|
|
2704
|
+
}) : (0, i.default)(p, x), r.default);
|
|
2705
2705
|
}
|
|
2706
2706
|
function D(f) {
|
|
2707
2707
|
return [
|
|
@@ -2713,7 +2713,7 @@ var Ye = {};
|
|
|
2713
2713
|
}
|
|
2714
2714
|
function C(f) {
|
|
2715
2715
|
let b = [
|
|
2716
|
-
...
|
|
2716
|
+
...W(f),
|
|
2717
2717
|
{
|
|
2718
2718
|
prefix: "",
|
|
2719
2719
|
important: !1,
|
|
@@ -2727,7 +2727,7 @@ var Ye = {};
|
|
|
2727
2727
|
plugins: D(f.map(($) => (p = $ == null ? void 0 : $.plugins) !== null && p !== void 0 ? p : []))
|
|
2728
2728
|
}, ...b));
|
|
2729
2729
|
}
|
|
2730
|
-
})(
|
|
2730
|
+
})(Pe);
|
|
2731
2731
|
var Ze = {}, dt = {
|
|
2732
2732
|
content: [],
|
|
2733
2733
|
presets: [],
|
|
@@ -3728,15 +3728,15 @@ var Ze = {}, dt = {
|
|
|
3728
3728
|
return a;
|
|
3729
3729
|
}
|
|
3730
3730
|
});
|
|
3731
|
-
const t = /* @__PURE__ */
|
|
3732
|
-
function
|
|
3731
|
+
const t = /* @__PURE__ */ i(dt), r = ne;
|
|
3732
|
+
function i(o) {
|
|
3733
3733
|
return o && o.__esModule ? o : {
|
|
3734
3734
|
default: o
|
|
3735
3735
|
};
|
|
3736
3736
|
}
|
|
3737
3737
|
function a(o) {
|
|
3738
|
-
var
|
|
3739
|
-
const h = ((
|
|
3738
|
+
var n;
|
|
3739
|
+
const h = ((n = o == null ? void 0 : o.presets) !== null && n !== void 0 ? n : [
|
|
3740
3740
|
t.default
|
|
3741
3741
|
]).slice().reverse().flatMap((c) => a(c instanceof Function ? c() : c)), l = {
|
|
3742
3742
|
// Add experimental configs here...
|
|
@@ -3775,17 +3775,17 @@ var Ze = {}, dt = {
|
|
|
3775
3775
|
return a;
|
|
3776
3776
|
}
|
|
3777
3777
|
});
|
|
3778
|
-
const t = /* @__PURE__ */
|
|
3779
|
-
function
|
|
3778
|
+
const t = /* @__PURE__ */ i(Pe), r = /* @__PURE__ */ i(Ze);
|
|
3779
|
+
function i(o) {
|
|
3780
3780
|
return o && o.__esModule ? o : {
|
|
3781
3781
|
default: o
|
|
3782
3782
|
};
|
|
3783
3783
|
}
|
|
3784
3784
|
function a(...o) {
|
|
3785
|
-
let [, ...
|
|
3785
|
+
let [, ...n] = (0, r.default)(o[0]);
|
|
3786
3786
|
return (0, t.default)([
|
|
3787
3787
|
...o,
|
|
3788
|
-
...
|
|
3788
|
+
...n
|
|
3789
3789
|
]);
|
|
3790
3790
|
}
|
|
3791
3791
|
})(Me);
|
|
@@ -3916,14 +3916,14 @@ const mt = {
|
|
|
3916
3916
|
pattern: /e-content-(around|baseline|between|center|end|evenly|normal|start|stretch)/
|
|
3917
3917
|
}
|
|
3918
3918
|
]
|
|
3919
|
-
}, Ke = ht(gt), vt = Ke.theme.fontSize, yt = Ke.theme.colors,
|
|
3919
|
+
}, Ke = ht(gt), vt = Ke.theme.fontSize, yt = Ke.theme.colors, or = [
|
|
3920
3920
|
T.dot,
|
|
3921
3921
|
T.xs,
|
|
3922
3922
|
T.sm,
|
|
3923
3923
|
T.md,
|
|
3924
3924
|
T.lg,
|
|
3925
3925
|
T.xl
|
|
3926
|
-
],
|
|
3926
|
+
], lr = [
|
|
3927
3927
|
T.xs,
|
|
3928
3928
|
T.sm,
|
|
3929
3929
|
T.md,
|
|
@@ -3945,14 +3945,14 @@ const mt = {
|
|
|
3945
3945
|
T["7xl"],
|
|
3946
3946
|
T["8xl"],
|
|
3947
3947
|
T["9xl"]
|
|
3948
|
-
],
|
|
3948
|
+
], ur = [
|
|
3949
3949
|
j.warning,
|
|
3950
3950
|
j.error,
|
|
3951
3951
|
j.info,
|
|
3952
3952
|
j.success,
|
|
3953
3953
|
j.primary,
|
|
3954
3954
|
j.default
|
|
3955
|
-
],
|
|
3955
|
+
], cr = [
|
|
3956
3956
|
"play",
|
|
3957
3957
|
"pause",
|
|
3958
3958
|
"ended",
|
|
@@ -3963,7 +3963,7 @@ const mt = {
|
|
|
3963
3963
|
"canplay",
|
|
3964
3964
|
"canplaythrough",
|
|
3965
3965
|
"statechanged"
|
|
3966
|
-
], xt =
|
|
3966
|
+
], xt = X.extend({
|
|
3967
3967
|
name: "EIcon",
|
|
3968
3968
|
props: {
|
|
3969
3969
|
icon: {
|
|
@@ -3987,8 +3987,8 @@ const mt = {
|
|
|
3987
3987
|
}), {});
|
|
3988
3988
|
},
|
|
3989
3989
|
iconClasses() {
|
|
3990
|
-
var
|
|
3991
|
-
const e = this.sizes[this.size] || this.sizes[T.sm], t = `${((a = (
|
|
3990
|
+
var i, a;
|
|
3991
|
+
const e = this.sizes[this.size] || this.sizes[T.sm], t = `${((a = (i = this.icon) == null ? void 0 : i.split(" ")) == null ? void 0 : a.length) > 1 ? this.icon : `fa fa-${this.icon}`}`;
|
|
3992
3992
|
return [
|
|
3993
3993
|
"e-inline-flex e-items-center e-justify-center e-rounded-full",
|
|
3994
3994
|
this.color,
|
|
@@ -4001,7 +4001,7 @@ const mt = {
|
|
|
4001
4001
|
var _t = function() {
|
|
4002
4002
|
var t = this, r = t._self._c;
|
|
4003
4003
|
return r("div", { staticClass: "e-icon" }, [r("i", { class: t.iconClasses })]);
|
|
4004
|
-
}, wt = [], Ct = /* @__PURE__ */
|
|
4004
|
+
}, wt = [], Ct = /* @__PURE__ */ I(
|
|
4005
4005
|
xt,
|
|
4006
4006
|
_t,
|
|
4007
4007
|
wt,
|
|
@@ -4011,7 +4011,7 @@ var _t = function() {
|
|
|
4011
4011
|
null,
|
|
4012
4012
|
null
|
|
4013
4013
|
);
|
|
4014
|
-
const St = Ct.exports, Tt =
|
|
4014
|
+
const St = Ct.exports, Tt = X.extend({
|
|
4015
4015
|
name: "ESpinner",
|
|
4016
4016
|
props: {
|
|
4017
4017
|
dark: {
|
|
@@ -4079,7 +4079,7 @@ var Et = function() {
|
|
|
4079
4079
|
"e-spinner--dark": t.dark,
|
|
4080
4080
|
"e-spinner--grey": !t.color
|
|
4081
4081
|
}, style: { opacity: t.opacity }, attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1629.32 1608.86", width: t.computedSize, height: t.computedSize } }, [r("path", { staticClass: "e-spinner__primary", style: t.getNthPathStyle(0), attrs: { d: "m1254.12,591.61C992.01,401.11,439.78,0,439.78,0h601.2c14.3,0,48.95,9.02,62.54,38.01,55.27,117.88,111.32,235.46,170.48,351.43,33.16,70.9-8.99,170.35-19.87,202.16" } }), r("path", { staticClass: "e-spinner__secondary", style: t.getNthPathStyle(1), attrs: { d: "m1404.65,131.67c-29.37,89.94-55.8,170.95-82.25,251.93-4.05.87-8.1,1.73-12.15,2.61-40.61-83.95-81.21-167.9-123.12-254.54h217.51Z" } }), r("path", { staticClass: "e-spinner__primary", style: t.getNthPathStyle(2), attrs: { d: "m1129.06,1093.51c100.75-307.98,312.75-956.75,312.75-956.75,0,0,180.36,558.53,184.75,572.14,4.39,13.59,6.45,49.34-16.96,71.19-95.21,88.81-189.88,178.28-282.06,270.2-57.29,53.34-164.86,43.8-198.48,43.21" } }), r("path", { staticClass: "e-spinner__secondary", style: t.getNthPathStyle(3), attrs: { d: "m1342.3,1083.06c66.6-63.43,133.22-126.86,207.93-197.98,21.51,73.55,40.3,137.81,60.64,207.37h-263.35c-1.75-3.13-3.48-6.27-5.22-9.39" } }), r("path", { staticClass: "e-spinner__primary", style: t.getNthPathStyle(4), attrs: { d: "m610.27,1137.17c324.03-.53,1006.55-1.85,1006.55-1.85,0,0-474.19,345.83-485.74,354.25-11.55,8.42-44.87,21.56-72.94,6.14-114.11-62.68-228.69-124.66-344.81-183.5-68.56-37.76-93.12-142.93-103.06-175.04" } }), r("path", { staticClass: "e-spinner__secondary", style: t.getNthPathStyle(5), attrs: { d: "m938.58,1468.29c-62.81,42.58-118.35,80.24-180.28,122.23-28.35-87.22-54.62-168.03-80.89-248.86,2.62-2.92,5.26-5.85,7.9-8.76,81.89,43.78,163.79,87.56,253.26,135.39" } }), r("path", { staticClass: "e-spinner__primary", style: t.getNthPathStyle(6), attrs: { d: "m413.07,652.86c101.35,307.77,314.99,956,314.99,956,0,0-476.23-343.04-487.83-351.39-11.58-8.36-34.44-35.93-28.52-67.4,24.07-127.96,47.3-256.13,67.09-384.8,14.54-76.9,106.84-132.96,134.28-152.42" } }), r("path", { staticClass: "e-spinner__secondary", style: t.getNthPathStyle(7), attrs: { d: "m197.48,1068.8c-62.36-47.73-115.99-88.79-176.78-135.33,75.54-54.91,146.18-106.24,216.83-157.57,3.73,2.24,7.45,4.47,11.19,6.71-16.36,91.3-32.7,182.61-51.25,286.19" } }), r("path", { staticClass: "e-spinner__primary", style: t.getNthPathStyle(8), attrs: { d: "m813.58,314.41C551.63,505.15,0,907.07,0,907.07c0,0,180.68-558.4,185.09-572.01,4.39-13.59,23.65-43.78,55.41-47.8,129.19-16.29,258.32-33.41,386.86-53.99,77.67-9.72,159.3,60.97,186.22,81.13" } }), r("path", { staticClass: "e-spinner__secondary", style: t.getNthPathStyle(9), attrs: { d: "m635.14,199.78c-91.99,12.38-183.97,24.77-288.07,38.76,25.77-73.18,48.3-137.14,73.8-209.53,76.56,55.41,147.27,106.58,217.97,157.75-1.23,4.34-2.46,8.68-3.69,13.02" } })]);
|
|
4082
|
-
}, $t = [], Dt = /* @__PURE__ */
|
|
4082
|
+
}, $t = [], Dt = /* @__PURE__ */ I(
|
|
4083
4083
|
Tt,
|
|
4084
4084
|
Et,
|
|
4085
4085
|
$t,
|
|
@@ -4089,7 +4089,7 @@ var Et = function() {
|
|
|
4089
4089
|
null,
|
|
4090
4090
|
null
|
|
4091
4091
|
);
|
|
4092
|
-
const Je = Dt.exports, kt =
|
|
4092
|
+
const Je = Dt.exports, kt = X.extend({
|
|
4093
4093
|
props: {
|
|
4094
4094
|
align: {
|
|
4095
4095
|
type: String,
|
|
@@ -4152,7 +4152,7 @@ const Je = Dt.exports, kt = q.extend({
|
|
|
4152
4152
|
var Ot = function() {
|
|
4153
4153
|
var t = this, r = t._self._c;
|
|
4154
4154
|
return t._self._setupProxy, r("div", { staticClass: "e-row e-flex e-flex-wrap", class: t.rowClasses }, [t._t("default")], 2);
|
|
4155
|
-
}, At = [], Ft = /* @__PURE__ */
|
|
4155
|
+
}, At = [], Ft = /* @__PURE__ */ I(
|
|
4156
4156
|
kt,
|
|
4157
4157
|
Ot,
|
|
4158
4158
|
At,
|
|
@@ -4162,7 +4162,7 @@ var Ot = function() {
|
|
|
4162
4162
|
null,
|
|
4163
4163
|
null
|
|
4164
4164
|
);
|
|
4165
|
-
const Mt = Ft.exports,
|
|
4165
|
+
const Mt = Ft.exports, Pt = X.extend({
|
|
4166
4166
|
props: {
|
|
4167
4167
|
alignSelf: {
|
|
4168
4168
|
type: String,
|
|
@@ -4266,46 +4266,58 @@ const Mt = Ft.exports, zt = q.extend({
|
|
|
4266
4266
|
}
|
|
4267
4267
|
}
|
|
4268
4268
|
});
|
|
4269
|
-
var
|
|
4269
|
+
var zt = function() {
|
|
4270
4270
|
var t = this, r = t._self._c;
|
|
4271
4271
|
return r("div", { staticClass: "e-col", class: t.colClasses }, [t._t("default")], 2);
|
|
4272
|
-
},
|
|
4273
|
-
zt,
|
|
4272
|
+
}, Lt = [], Gt = /* @__PURE__ */ I(
|
|
4274
4273
|
Pt,
|
|
4275
|
-
|
|
4274
|
+
zt,
|
|
4275
|
+
Lt,
|
|
4276
4276
|
!1,
|
|
4277
4277
|
null,
|
|
4278
4278
|
null,
|
|
4279
4279
|
null,
|
|
4280
4280
|
null
|
|
4281
4281
|
);
|
|
4282
|
-
const Ht =
|
|
4282
|
+
const Ht = Gt.exports;
|
|
4283
4283
|
function Qe() {
|
|
4284
|
-
|
|
4284
|
+
const e = document;
|
|
4285
|
+
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
4285
4286
|
}
|
|
4286
4287
|
function jt(e) {
|
|
4287
4288
|
if (Qe())
|
|
4288
|
-
return new Promise((
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4289
|
+
return new Promise((r) => r(null));
|
|
4290
|
+
const t = e;
|
|
4291
|
+
if (t.requestFullscreen)
|
|
4292
|
+
return t == null ? void 0 : t.requestFullscreen();
|
|
4293
|
+
if (t.mozRequestFullScreen)
|
|
4294
|
+
return t == null ? void 0 : t.mozRequestFullScreen();
|
|
4295
|
+
if (t.webkitRequestFullScreen)
|
|
4296
|
+
return t == null ? void 0 : t.webkitRequestFullScreen();
|
|
4297
|
+
if (t.msRequestFullscreen)
|
|
4298
|
+
return t == null ? void 0 : t.msRequestFullscreen();
|
|
4297
4299
|
}
|
|
4298
4300
|
function Bt() {
|
|
4299
4301
|
if (!Qe())
|
|
4300
|
-
return new Promise((
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4302
|
+
return new Promise((t) => t(null));
|
|
4303
|
+
const e = document;
|
|
4304
|
+
if (e.exitFullscreen)
|
|
4305
|
+
return e.exitFullscreen();
|
|
4306
|
+
if (e.mozCancelFullScreen)
|
|
4307
|
+
return e.mozCancelFullScreen();
|
|
4308
|
+
if (e.webkitCancelFullScreen)
|
|
4309
|
+
return e.webkitCancelFullScreen();
|
|
4310
|
+
if (e.msExitFullscreen)
|
|
4311
|
+
return e.msExitFullscreen();
|
|
4312
|
+
}
|
|
4313
|
+
function Rt(e, t) {
|
|
4314
|
+
let r = null;
|
|
4315
|
+
return function(...i) {
|
|
4316
|
+
const a = this;
|
|
4317
|
+
r !== null && clearTimeout(r), r = setTimeout(() => {
|
|
4318
|
+
r = null, e.apply(a, i);
|
|
4319
|
+
}, t || 1e3);
|
|
4320
|
+
};
|
|
4309
4321
|
}
|
|
4310
4322
|
const le = new Intl.NumberFormat(void 0, {
|
|
4311
4323
|
minimumIntegerDigits: 2
|
|
@@ -4322,11 +4334,11 @@ const le = new Intl.NumberFormat(void 0, {
|
|
|
4322
4334
|
"statechanged",
|
|
4323
4335
|
"error"
|
|
4324
4336
|
], J = (e) => {
|
|
4325
|
-
const t = Math.floor(e % 60), r = Math.floor(e / 60) % 60,
|
|
4326
|
-
return
|
|
4337
|
+
const t = Math.floor(e % 60), r = Math.floor(e / 60) % 60, i = Math.floor(e / 3600);
|
|
4338
|
+
return i === 0 ? `${r}:${le.format(t)}` : `${i}:${le.format(
|
|
4327
4339
|
r
|
|
4328
4340
|
)}:${le.format(t)}`;
|
|
4329
|
-
}, Wt =
|
|
4341
|
+
}, Wt = X.extend({
|
|
4330
4342
|
name: "VideoPlayer",
|
|
4331
4343
|
components: {
|
|
4332
4344
|
ESpinner: Je
|
|
@@ -4398,11 +4410,11 @@ const le = new Intl.NumberFormat(void 0, {
|
|
|
4398
4410
|
const t = this.$refs.player, r = this.$refs.timelineContainer;
|
|
4399
4411
|
t.addEventListener(
|
|
4400
4412
|
e,
|
|
4401
|
-
(
|
|
4413
|
+
(i) => {
|
|
4402
4414
|
e === "loadeddata" && (this.videoLength = J(t.duration)), e === "timeupdate" && (this.percentagePlayed = t.currentTime / t.duration * 100, r.style.setProperty(
|
|
4403
4415
|
"--progress-position",
|
|
4404
4416
|
this.percentagePlayed.toString()
|
|
4405
|
-
)), this.$emit(e, { event:
|
|
4417
|
+
)), this.$emit(e, { event: i, player: this });
|
|
4406
4418
|
},
|
|
4407
4419
|
!0
|
|
4408
4420
|
);
|
|
@@ -4411,11 +4423,11 @@ const le = new Intl.NumberFormat(void 0, {
|
|
|
4411
4423
|
const t = this.$refs.player, r = this.$refs.timelineContainer;
|
|
4412
4424
|
t.addEventListener(
|
|
4413
4425
|
e,
|
|
4414
|
-
(
|
|
4426
|
+
(i) => {
|
|
4415
4427
|
e === "loadeddata" && (this.videoLength = J(t.duration)), e === "timeupdate" && (this.percentagePlayed = t.currentTime / t.duration * 100, r.style.setProperty(
|
|
4416
4428
|
"--progress-position",
|
|
4417
4429
|
this.percentagePlayed.toString()
|
|
4418
|
-
)), this.$emit(e, { event:
|
|
4430
|
+
)), this.$emit(e, { event: i, player: this });
|
|
4419
4431
|
},
|
|
4420
4432
|
!0
|
|
4421
4433
|
);
|
|
@@ -4531,7 +4543,7 @@ const le = new Intl.NumberFormat(void 0, {
|
|
|
4531
4543
|
const t = this.$refs.player;
|
|
4532
4544
|
if (!document.body.contains(t))
|
|
4533
4545
|
return;
|
|
4534
|
-
const r = this.$refs.timelineContainer,
|
|
4546
|
+
const r = this.$refs.timelineContainer, i = r.getBoundingClientRect(), a = Math.min(Math.max(0, e.x - i.x), i.width) / i.width;
|
|
4535
4547
|
r.style.setProperty(
|
|
4536
4548
|
"--preview-position",
|
|
4537
4549
|
a.toString()
|
|
@@ -4545,18 +4557,18 @@ const le = new Intl.NumberFormat(void 0, {
|
|
|
4545
4557
|
t.currentTime += e;
|
|
4546
4558
|
},
|
|
4547
4559
|
async toggleScrubbing(e) {
|
|
4548
|
-
const t = this.$refs.timelineContainer, r = this.$refs.videoContainer,
|
|
4549
|
-
if (!
|
|
4560
|
+
const t = this.$refs.timelineContainer, r = this.$refs.videoContainer, i = this.$refs.player;
|
|
4561
|
+
if (!i)
|
|
4550
4562
|
return;
|
|
4551
4563
|
const a = t.getBoundingClientRect(), o = Math.min(Math.max(0, e.x - a.x), a.width) / a.width;
|
|
4552
4564
|
if (this.isScrubbing = (e.buttons & 1) === 1, r.classList.toggle("scrubbing", this.isScrubbing), this.isScrubbing) {
|
|
4553
|
-
this.wasPaused =
|
|
4565
|
+
this.wasPaused = i.paused, await i.pause(), this.handleTimelineUpdate(e);
|
|
4554
4566
|
return;
|
|
4555
4567
|
}
|
|
4556
|
-
if (this.realtime = o * this.videoDuration,
|
|
4568
|
+
if (this.realtime = o * this.videoDuration, i.currentTime = o * this.videoDuration, this.wasPaused)
|
|
4557
4569
|
return;
|
|
4558
|
-
const
|
|
4559
|
-
|
|
4570
|
+
const n = i.play();
|
|
4571
|
+
n !== void 0 && n.then(() => this.handleTimelineUpdate(e)).catch(console.error);
|
|
4560
4572
|
},
|
|
4561
4573
|
handleKeyDown(e) {
|
|
4562
4574
|
var r;
|
|
@@ -4581,10 +4593,10 @@ const le = new Intl.NumberFormat(void 0, {
|
|
|
4581
4593
|
}
|
|
4582
4594
|
}
|
|
4583
4595
|
});
|
|
4584
|
-
var
|
|
4596
|
+
var Ut = function() {
|
|
4585
4597
|
var t = this, r = t._self._c;
|
|
4586
|
-
return r("div", { ref: "videoContainer", staticClass: "video-container paused", attrs: { "data-volume-level": "high" } }, [r("video", t._g(t._b({ ref: "player", attrs: { controls: !1, preload: "auto" }, on: { ended: t.handleEnded, click: t.togglePlay, loadedmetadata: t.getDuration, timeupdate: t.handleTimeUpdate, loadeddata: t.handleLoading } }, "video", t.videoOptions, !1), t.videoListeners), t._l(t.sourceItems, function(
|
|
4587
|
-
return r("source", { key:
|
|
4598
|
+
return r("div", { ref: "videoContainer", staticClass: "video-container paused", attrs: { "data-volume-level": "high" } }, [r("video", t._g(t._b({ ref: "player", attrs: { controls: !1, preload: "auto" }, on: { ended: t.handleEnded, click: t.togglePlay, loadedmetadata: t.getDuration, timeupdate: t.handleTimeUpdate, loadeddata: t.handleLoading } }, "video", t.videoOptions, !1), t.videoListeners), t._l(t.sourceItems, function(i) {
|
|
4599
|
+
return r("source", t._g({ key: i.src, attrs: { src: i.src, type: i.type }, on: { error: t.handle404Error } }, t.videoListeners));
|
|
4588
4600
|
}), 0), t.isLoading ? r("div", { staticClass: "spinner-container" }, [r("ESpinner", { attrs: { size: "9xl", opacity: "0.6", dark: !0 } })], 1) : t._e(), t.isError ? r("div", { staticClass: "spinner-container e-gap-3" }, [r("i", { staticClass: "fa-solid fa-video-slash fa-2xl e-align-middle" }), r("span", [t._v("This video file cannot be played.")])]) : t._e(), r("div", { class: ["video-controls-container", t.withControls] }, [r("div", { staticClass: "controls" }, [r("button", { ref: "playPauseBtn", staticClass: "play-pause-btn fa-lg fa-solid", class: {
|
|
4589
4601
|
"fa-play": !t.playing,
|
|
4590
4602
|
"fa-pause": t.playing
|
|
@@ -4592,37 +4604,37 @@ var Rt = function() {
|
|
|
4592
4604
|
"fa-expand": !t.isFullscreen,
|
|
4593
4605
|
"fa-compress": t.isFullscreen
|
|
4594
4606
|
}, on: { click: t.toggleFullscreenMode } })])])]);
|
|
4595
|
-
},
|
|
4607
|
+
}, Nt = [function() {
|
|
4596
4608
|
var e = this, t = e._self._c;
|
|
4597
4609
|
return t("div", { staticClass: "timeline" }, [t("div", { staticClass: "thumb-indicator" })]);
|
|
4598
|
-
}],
|
|
4610
|
+
}], It = /* @__PURE__ */ I(
|
|
4599
4611
|
Wt,
|
|
4600
|
-
Rt,
|
|
4601
4612
|
Ut,
|
|
4613
|
+
Nt,
|
|
4602
4614
|
!1,
|
|
4603
4615
|
null,
|
|
4604
|
-
"
|
|
4616
|
+
"dd8ff405",
|
|
4605
4617
|
null,
|
|
4606
4618
|
null
|
|
4607
4619
|
);
|
|
4608
|
-
const
|
|
4609
|
-
const t = u.utcFormat("%_d")(e),
|
|
4620
|
+
const Vt = It.exports, re = (e) => {
|
|
4621
|
+
const t = u.utcFormat("%_d")(e), i = {
|
|
4610
4622
|
1: "st",
|
|
4611
4623
|
2: "nd",
|
|
4612
4624
|
3: "rd"
|
|
4613
4625
|
}[t.charAt(1)] || "th";
|
|
4614
|
-
return `${t}${
|
|
4626
|
+
return `${t}${i}`;
|
|
4615
4627
|
}, xe = (e) => new Date(
|
|
4616
4628
|
Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate() + 1)
|
|
4617
|
-
).getUTCDate() === 1 ? "" : u.utcFormat("%-d")(e), Y = (e) => ["0", " 0", "00"].includes(u.utcFormat("%H")(e)) ? "" : `${u.utcFormat("%H")(e)}h`,
|
|
4629
|
+
).getUTCDate() === 1 ? "" : u.utcFormat("%-d")(e), Y = (e) => ["0", " 0", "00"].includes(u.utcFormat("%H")(e)) ? "" : `${u.utcFormat("%H")(e)}h`, q = (e) => {
|
|
4618
4630
|
const t = u.utcFormat("%H:%M")(e);
|
|
4619
4631
|
return t === "00:00" ? "" : t;
|
|
4620
4632
|
}, ue = (e) => u.utcFormat("%M:%S")(e), _e = (e) => `${u.utcFormat("%Hh%Mm")(e)}`, fe = (e) => {
|
|
4621
|
-
const t =
|
|
4622
|
-
return t || `${
|
|
4633
|
+
const t = q(e), r = re(e), i = u.utcFormat("%B")(e);
|
|
4634
|
+
return t || `${i} ${r}`;
|
|
4623
4635
|
}, ce = (e) => {
|
|
4624
|
-
const t =
|
|
4625
|
-
return t && r % 6 === 0 ? `${a} ${
|
|
4636
|
+
const t = q(e), r = Number.parseInt(u.utcFormat("%H")(e)), i = re(e), a = u.utcFormat("%B")(e);
|
|
4637
|
+
return t && r % 6 === 0 ? `${a} ${i} ${t}` : fe(e);
|
|
4626
4638
|
}, Z = (e) => (t) => {
|
|
4627
4639
|
const r = u.utcFormat("%H")(t);
|
|
4628
4640
|
return !(u.utcFormat("%M")(t) === "00" && Number.parseInt(r) % e === 0);
|
|
@@ -4630,8 +4642,8 @@ const It = Nt.exports, re = (e) => {
|
|
|
4630
4642
|
const r = u.utcFormat("%M")(t);
|
|
4631
4643
|
return Number.parseInt(r) % e !== 0;
|
|
4632
4644
|
}, we = (e) => (t) => {
|
|
4633
|
-
const r = u.utcFormat("%M")(t),
|
|
4634
|
-
return Number.parseInt(r) % e !== 0 && Number.parseInt(
|
|
4645
|
+
const r = u.utcFormat("%M")(t), i = u.utcFormat("%S")(t);
|
|
4646
|
+
return Number.parseInt(r) % e !== 0 && Number.parseInt(i) === 0;
|
|
4635
4647
|
}, S = {
|
|
4636
4648
|
_10_seconds: 25e-6,
|
|
4637
4649
|
_20_seconds: 1e-4,
|
|
@@ -4655,7 +4667,7 @@ const It = Nt.exports, re = (e) => {
|
|
|
4655
4667
|
infinity: 1 / 0
|
|
4656
4668
|
};
|
|
4657
4669
|
var Se, Te, Ee, $e, De, ke, Oe, Ae;
|
|
4658
|
-
const
|
|
4670
|
+
const qt = {
|
|
4659
4671
|
[ee.overview]: [
|
|
4660
4672
|
{
|
|
4661
4673
|
precision: S._30_seconds,
|
|
@@ -4691,8 +4703,8 @@ const Vt = {
|
|
|
4691
4703
|
precision: S._2_hours,
|
|
4692
4704
|
interval: u.utcHour.every(6),
|
|
4693
4705
|
format: (e) => {
|
|
4694
|
-
const t =
|
|
4695
|
-
return t || `${
|
|
4706
|
+
const t = q(e), r = re(e), i = u.utcFormat("%B")(e);
|
|
4707
|
+
return t || `${i} ${r}`;
|
|
4696
4708
|
}
|
|
4697
4709
|
},
|
|
4698
4710
|
{
|
|
@@ -4741,27 +4753,27 @@ const Vt = {
|
|
|
4741
4753
|
{
|
|
4742
4754
|
precision: S._1_minute,
|
|
4743
4755
|
interval: u.utcMinute.filter(de(5)),
|
|
4744
|
-
format:
|
|
4756
|
+
format: q
|
|
4745
4757
|
},
|
|
4746
4758
|
{
|
|
4747
4759
|
precision: S._2_minutes,
|
|
4748
4760
|
interval: (Ee = u.utcMinute.every(2)) == null ? void 0 : Ee.filter(de(10)),
|
|
4749
|
-
format:
|
|
4761
|
+
format: q
|
|
4750
4762
|
},
|
|
4751
4763
|
{
|
|
4752
4764
|
precision: S._5_minutes,
|
|
4753
4765
|
interval: ($e = u.utcMinute.every(5)) == null ? void 0 : $e.filter(de(20)),
|
|
4754
|
-
format:
|
|
4766
|
+
format: q
|
|
4755
4767
|
},
|
|
4756
4768
|
{
|
|
4757
4769
|
precision: S._15_minutes,
|
|
4758
4770
|
interval: (De = u.utcMinute.every(15)) == null ? void 0 : De.filter(Z(1)),
|
|
4759
|
-
format:
|
|
4771
|
+
format: q
|
|
4760
4772
|
},
|
|
4761
4773
|
{
|
|
4762
4774
|
precision: S._30_minutes,
|
|
4763
4775
|
interval: (ke = u.utcMinute.every(30)) == null ? void 0 : ke.filter(Z(2)),
|
|
4764
|
-
format:
|
|
4776
|
+
format: q
|
|
4765
4777
|
},
|
|
4766
4778
|
{
|
|
4767
4779
|
precision: S._1_hour,
|
|
@@ -4907,8 +4919,8 @@ const Vt = {
|
|
|
4907
4919
|
e.getUTCFullYear(),
|
|
4908
4920
|
e.getUTCMonth() + 1,
|
|
4909
4921
|
0
|
|
4910
|
-
).getUTCDate(),
|
|
4911
|
-
return t ===
|
|
4922
|
+
).getUTCDate(), i = Math.ceil(r / 5);
|
|
4923
|
+
return t === i || t === 2 * i || t === 3 * i || t === 4 * i;
|
|
4912
4924
|
}),
|
|
4913
4925
|
format: ""
|
|
4914
4926
|
},
|
|
@@ -4919,8 +4931,8 @@ const Vt = {
|
|
|
4919
4931
|
e.getUTCFullYear(),
|
|
4920
4932
|
e.getUTCMonth() + 1,
|
|
4921
4933
|
0
|
|
4922
|
-
).getUTCDate(),
|
|
4923
|
-
return t ===
|
|
4934
|
+
).getUTCDate(), i = Math.ceil(r / 4);
|
|
4935
|
+
return t === i || t === 2 * i || t === 3 * i;
|
|
4924
4936
|
}),
|
|
4925
4937
|
format: ""
|
|
4926
4938
|
},
|
|
@@ -4931,8 +4943,8 @@ const Vt = {
|
|
|
4931
4943
|
e.getUTCFullYear(),
|
|
4932
4944
|
e.getUTCMonth() + 1,
|
|
4933
4945
|
0
|
|
4934
|
-
).getUTCDate(),
|
|
4935
|
-
return t ===
|
|
4946
|
+
).getUTCDate(), i = Math.ceil(r / 2);
|
|
4947
|
+
return t === i;
|
|
4936
4948
|
}),
|
|
4937
4949
|
format: ""
|
|
4938
4950
|
},
|
|
@@ -4954,25 +4966,26 @@ const Vt = {
|
|
|
4954
4966
|
console.error("Invalid callback function provided to v-resize-observer");
|
|
4955
4967
|
return;
|
|
4956
4968
|
}
|
|
4957
|
-
const
|
|
4969
|
+
const i = new ResizeObserver(
|
|
4958
4970
|
(a) => {
|
|
4959
4971
|
a[0] && r(a[0]);
|
|
4960
4972
|
}
|
|
4961
4973
|
);
|
|
4962
|
-
|
|
4974
|
+
i.observe(e), e.__resizeObserver__ = i;
|
|
4963
4975
|
},
|
|
4964
4976
|
unbind(e) {
|
|
4965
4977
|
e.__resizeObserver__ && (e.__resizeObserver__.disconnect(), delete e.__resizeObserver__);
|
|
4966
4978
|
}
|
|
4967
|
-
},
|
|
4979
|
+
}, Xt = [
|
|
4968
4980
|
{
|
|
4969
4981
|
name: "resize-observer",
|
|
4970
4982
|
definition: et
|
|
4971
4983
|
}
|
|
4972
|
-
],
|
|
4984
|
+
], _ = {
|
|
4973
4985
|
eventGroup: "event-group",
|
|
4974
4986
|
eventGroupBg: "event-group-bg",
|
|
4975
4987
|
eventRect: "event-rect",
|
|
4988
|
+
eventRectText: "event-rect-text",
|
|
4976
4989
|
labelBg: "label-bg",
|
|
4977
4990
|
labelBgFill: "label-bg-fill",
|
|
4978
4991
|
labelText: "label-text",
|
|
@@ -4987,7 +5000,7 @@ const Vt = {
|
|
|
4987
5000
|
}, Q = {
|
|
4988
5001
|
areaGradient: "area-gradient",
|
|
4989
5002
|
loadingGradient: "loading-gradient"
|
|
4990
|
-
},
|
|
5003
|
+
}, Yt = X.extend({
|
|
4991
5004
|
name: "ETimeline",
|
|
4992
5005
|
directives: {
|
|
4993
5006
|
resizeObserver: et
|
|
@@ -4999,7 +5012,7 @@ const Vt = {
|
|
|
4999
5012
|
},
|
|
5000
5013
|
xAxesConfig: {
|
|
5001
5014
|
type: Object,
|
|
5002
|
-
default: () =>
|
|
5015
|
+
default: () => qt
|
|
5003
5016
|
},
|
|
5004
5017
|
dark: {
|
|
5005
5018
|
type: Boolean,
|
|
@@ -5045,10 +5058,14 @@ const Vt = {
|
|
|
5045
5058
|
type: Number,
|
|
5046
5059
|
default: 1
|
|
5047
5060
|
},
|
|
5048
|
-
|
|
5061
|
+
barHeight: {
|
|
5049
5062
|
type: Number,
|
|
5050
5063
|
default: 18
|
|
5051
5064
|
},
|
|
5065
|
+
barYPadding: {
|
|
5066
|
+
type: Number,
|
|
5067
|
+
default: 0
|
|
5068
|
+
},
|
|
5052
5069
|
lineGraphMinHeight: {
|
|
5053
5070
|
type: Number,
|
|
5054
5071
|
default: 60
|
|
@@ -5081,7 +5098,6 @@ const Vt = {
|
|
|
5081
5098
|
zoomBehavior: null,
|
|
5082
5099
|
isMouseDown: !1,
|
|
5083
5100
|
axisHeight: 22,
|
|
5084
|
-
eventGroupPadding: 0,
|
|
5085
5101
|
isHoveringEvent: !1,
|
|
5086
5102
|
hoveredEvent: null,
|
|
5087
5103
|
isHoveringTimeline: !1,
|
|
@@ -5101,10 +5117,17 @@ const Vt = {
|
|
|
5101
5117
|
leftCurtainWidth: 50,
|
|
5102
5118
|
rightCurtainWidth: 50,
|
|
5103
5119
|
isHoveringCurtain: !1,
|
|
5104
|
-
isDraggingCurtain: !1
|
|
5120
|
+
isDraggingCurtain: !1,
|
|
5121
|
+
characterWidth: 7.5,
|
|
5122
|
+
textPadding: 5,
|
|
5123
|
+
debouncedOnResize: () => {
|
|
5124
|
+
}
|
|
5105
5125
|
};
|
|
5106
5126
|
},
|
|
5107
5127
|
computed: {
|
|
5128
|
+
barChartHeight() {
|
|
5129
|
+
return this.barHeight + this.barYPadding;
|
|
5130
|
+
},
|
|
5108
5131
|
classes() {
|
|
5109
5132
|
return {
|
|
5110
5133
|
wrapper: {
|
|
@@ -5141,18 +5164,18 @@ const Vt = {
|
|
|
5141
5164
|
labelRectWidth() {
|
|
5142
5165
|
return Object.values(
|
|
5143
5166
|
this.eventsGroups
|
|
5144
|
-
).reduce((r,
|
|
5167
|
+
).reduce((r, i) => {
|
|
5145
5168
|
var a;
|
|
5146
|
-
return Math.max(r, (a =
|
|
5147
|
-
}, 0) *
|
|
5169
|
+
return Math.max(r, (a = i.label) == null ? void 0 : a.length);
|
|
5170
|
+
}, 0) * this.characterWidth + 2 * this.textPadding;
|
|
5148
5171
|
},
|
|
5149
5172
|
combinedXAxesHeight() {
|
|
5150
5173
|
const e = Object.keys(this.xAxesConfig).length - 1;
|
|
5151
5174
|
return this.axisHeight * e;
|
|
5152
5175
|
},
|
|
5153
5176
|
timelineHeight() {
|
|
5154
|
-
const e = Object.keys(this.barGroups).length, t = this.hasLineGraphChart ? this.lineGraphChartHeight : 0, r = this.
|
|
5155
|
-
return this.combinedXAxesHeight + t +
|
|
5177
|
+
const e = Object.keys(this.barGroups).length, t = this.hasLineGraphChart ? this.lineGraphChartHeight : 0, r = this.barChartHeight * e;
|
|
5178
|
+
return this.combinedXAxesHeight + t + r;
|
|
5156
5179
|
},
|
|
5157
5180
|
filteredEventsGroups() {
|
|
5158
5181
|
const e = Object.entries(this.eventsGroups).filter(
|
|
@@ -5234,6 +5257,9 @@ const Vt = {
|
|
|
5234
5257
|
this.isHoveringTimeline = !1;
|
|
5235
5258
|
}
|
|
5236
5259
|
},
|
|
5260
|
+
created() {
|
|
5261
|
+
this.debouncedOnResize = Rt(this.handleResize, 100);
|
|
5262
|
+
},
|
|
5237
5263
|
mounted() {
|
|
5238
5264
|
this.initTimeline();
|
|
5239
5265
|
},
|
|
@@ -5258,28 +5284,28 @@ const Vt = {
|
|
|
5258
5284
|
const e = this.svg.append("defs");
|
|
5259
5285
|
Object.entries(this.filteredEventsGroups).forEach(
|
|
5260
5286
|
([t, r]) => {
|
|
5261
|
-
const { color:
|
|
5262
|
-
if (o.append("stop").attr("offset", "0%").attr("stop-color",
|
|
5263
|
-
const
|
|
5264
|
-
|
|
5287
|
+
const { color: i, chartType: a } = r, o = e.append("linearGradient").attr("id", `${Q.loadingGradient}-${t}`).attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
5288
|
+
if (o.append("stop").attr("offset", "0%").attr("stop-color", i).attr("stop-opacity", "0"), o.append("stop").attr("offset", "50%").attr("stop-color", i).attr("stop-opacity", "0.6"), o.append("stop").attr("offset", "100%").attr("stop-color", i).attr("stop-opacity", "0"), a === te.lineGraph) {
|
|
5289
|
+
const n = e.append("linearGradient").attr("id", `${Q.areaGradient}-${t}`).attr("x1", "0%").attr("x2", "0%").attr("y1", "0%").attr("y2", "100%");
|
|
5290
|
+
n.append("stop").attr("offset", "0%").style("stop-color", i).style("stop-opacity", 0.3), n.append("stop").attr("offset", "38%").style("stop-color", i).style("stop-opacity", 0);
|
|
5265
5291
|
}
|
|
5266
5292
|
}
|
|
5267
5293
|
);
|
|
5268
5294
|
},
|
|
5269
5295
|
initUtcOffset() {
|
|
5270
5296
|
const e = this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate;
|
|
5271
|
-
this.utcOffset =
|
|
5297
|
+
this.utcOffset = V.parseZone(e).utcOffset();
|
|
5272
5298
|
},
|
|
5273
5299
|
initTimeScale(e, t) {
|
|
5274
|
-
const r = e || this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate,
|
|
5275
|
-
this.timeScale = u.scaleTime().domain([this.tzStringToDate(r), this.tzStringToDate(
|
|
5300
|
+
const r = e || this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, i = t || this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate;
|
|
5301
|
+
this.timeScale = u.scaleTime().domain([this.tzStringToDate(r), this.tzStringToDate(i)]).range([0, this.timeline.offsetWidth]), this.initialTimeScale = this.timeScale.copy(), this.updateCurrentTimeScaleDensity();
|
|
5276
5302
|
},
|
|
5277
5303
|
initXAxes() {
|
|
5278
5304
|
let e = 0;
|
|
5279
5305
|
const t = 5;
|
|
5280
5306
|
for (const r in this.xAxesConfig) {
|
|
5281
|
-
const
|
|
5282
|
-
this.xAxes[r] =
|
|
5307
|
+
const i = this.createAxis(r);
|
|
5308
|
+
this.xAxes[r] = i, this.svg.append("g").classed(_.xAxis, !0).classed(`${_.xAxis}-${r}`, !0).attr("transform", `translate(0, ${e || t})`).call(i), this.translateTicksText(r), e += this.axisHeight;
|
|
5283
5309
|
}
|
|
5284
5310
|
},
|
|
5285
5311
|
initYScale() {
|
|
@@ -5291,7 +5317,7 @@ const Vt = {
|
|
|
5291
5317
|
this.disableZoom || (this.zoomBehavior = u.zoom().on("zoom", this.handleZoom).scaleExtent([this.minZoom, this.maxZoom]), this.svg.call(this.zoomBehavior));
|
|
5292
5318
|
},
|
|
5293
5319
|
initSelectedTimestampCursor() {
|
|
5294
|
-
this.svg.append("line").attr("class",
|
|
5320
|
+
this.svg.append("line").attr("class", _.selectedTimestampCursor).style("stroke", "red").style("stroke-width", "1px").style("opacity", 0).attr("x1", 0).attr("x2", 0).attr("y1", 0).attr("y2", this.timelineHeight), this.repositionSelectedTimestampCursor();
|
|
5295
5321
|
},
|
|
5296
5322
|
updateAndRedrawTimeline() {
|
|
5297
5323
|
const { startDate: e, endDate: t } = this.getCurrentTimeBounds();
|
|
@@ -5301,7 +5327,7 @@ const Vt = {
|
|
|
5301
5327
|
this.svg && this.svg.remove(), this.countsByTimestamp = {};
|
|
5302
5328
|
},
|
|
5303
5329
|
repositionSelectedTimestampCursor() {
|
|
5304
|
-
const e = this.svg.select(`.${
|
|
5330
|
+
const e = this.svg.select(`.${_.selectedTimestampCursor}`);
|
|
5305
5331
|
if (!this.selectedTimestamp) {
|
|
5306
5332
|
e.style("opacity", 0);
|
|
5307
5333
|
return;
|
|
@@ -5321,10 +5347,10 @@ const Vt = {
|
|
|
5321
5347
|
if (this.visibleFrom && this.visibleFrom.getTime() === e.getTime() && this.visibleTo && this.visibleTo.getTime() === t.getTime())
|
|
5322
5348
|
return;
|
|
5323
5349
|
this.visibleFrom = e, this.visibleTo = t;
|
|
5324
|
-
const r = this.dateToTzString(this.visibleFrom),
|
|
5350
|
+
const r = this.dateToTzString(this.visibleFrom), i = this.dateToTzString(this.visibleTo);
|
|
5325
5351
|
this.$emit("visible-interval-change", {
|
|
5326
5352
|
fromDate: r,
|
|
5327
|
-
toDate:
|
|
5353
|
+
toDate: i,
|
|
5328
5354
|
transform: this.transformDiff
|
|
5329
5355
|
});
|
|
5330
5356
|
},
|
|
@@ -5342,18 +5368,18 @@ const Vt = {
|
|
|
5342
5368
|
};
|
|
5343
5369
|
},
|
|
5344
5370
|
handleResize({ contentRect: e }) {
|
|
5345
|
-
this.svg && (this.svg.attr("width", e.width), this.
|
|
5371
|
+
this.svg && (this.svg.attr("width", e.width), this.updateAndRedrawTimeline());
|
|
5346
5372
|
},
|
|
5347
5373
|
handleDarkModeChange() {
|
|
5348
5374
|
if (!this.showLabels)
|
|
5349
5375
|
return;
|
|
5350
5376
|
const e = this;
|
|
5351
|
-
this.svg.selectAll(`.${
|
|
5377
|
+
this.svg.selectAll(`.${_.labelBg}`).each(function() {
|
|
5352
5378
|
u.select(this).style("fill", e.dark ? "black" : "white");
|
|
5353
|
-
}), this.svg.selectAll(`.${
|
|
5379
|
+
}), this.svg.selectAll(`.${_.labelBgFill}`).each(function() {
|
|
5354
5380
|
const t = u.select(this), r = t.node().dataset.color;
|
|
5355
5381
|
t.style("fill", e.getLabelBackgroundColor(r)).style("stroke", e.getTextFillColor(r)).style("stroke-width", 0.25);
|
|
5356
|
-
}), this.svg.selectAll(`.${
|
|
5382
|
+
}), this.svg.selectAll(`.${_.labelText}`).each(function() {
|
|
5357
5383
|
const t = u.select(this), r = t.node().dataset.color;
|
|
5358
5384
|
t.style("fill", e.getTextFillColor(r));
|
|
5359
5385
|
});
|
|
@@ -5373,12 +5399,13 @@ const Vt = {
|
|
|
5373
5399
|
const t = e.offsetX, r = this.timeScale.invert(t);
|
|
5374
5400
|
this.hoveredTimestamp = this.dateToTzString(r), this.isHoveringTimeline = !0, this.$emit("hovered-timestamp", this.hoveredTimestamp), this.cursor.style.left = t + "px", this.tooltip && (this.eventTooltipStyle = {
|
|
5375
5401
|
left: `${t}px`,
|
|
5376
|
-
bottom: `${this.timeline.getBoundingClientRect().height}px
|
|
5402
|
+
bottom: `${this.timeline.getBoundingClientRect().height}px`,
|
|
5403
|
+
zIndex: 100
|
|
5377
5404
|
}, this.repositionSelectedTimestampCursor());
|
|
5378
5405
|
},
|
|
5379
5406
|
handleClick(e) {
|
|
5380
|
-
const t = e.offsetX, r = this.timeScale.invert(t),
|
|
5381
|
-
this.$emit("date-clicked",
|
|
5407
|
+
const t = e.offsetX, r = this.timeScale.invert(t), i = this.dateToTzString(r);
|
|
5408
|
+
this.$emit("date-clicked", i), this.isHoveringEvent && this.$emit("event-clicked", {
|
|
5382
5409
|
event: this.hoveredEvent,
|
|
5383
5410
|
type: this.hoveredEventType
|
|
5384
5411
|
});
|
|
@@ -5386,9 +5413,9 @@ const Vt = {
|
|
|
5386
5413
|
handleLineMouseOver(e, t, r) {
|
|
5387
5414
|
this.hoveredCounts = Object.entries(
|
|
5388
5415
|
this.countsByTimestamp[`${t.timestamp}`]
|
|
5389
|
-
).reduce((
|
|
5390
|
-
const [o,
|
|
5391
|
-
return [...
|
|
5416
|
+
).reduce((i, a) => {
|
|
5417
|
+
const [o, n] = a;
|
|
5418
|
+
return [...i, { type: o, count: n }];
|
|
5392
5419
|
}, []), this.hoveredEvent = t, this.isHoveringEvent = !0, this.$emit("event-mouseover", {
|
|
5393
5420
|
eventData: t,
|
|
5394
5421
|
eventType: r,
|
|
@@ -5405,20 +5432,20 @@ const Vt = {
|
|
|
5405
5432
|
this.isHoveringEvent = !1, this.hoveredEvent = null, this.$emit("event-mouseout");
|
|
5406
5433
|
},
|
|
5407
5434
|
handleLabelMouseOver(e) {
|
|
5408
|
-
u.selectAll(`.${
|
|
5409
|
-
`${
|
|
5435
|
+
u.selectAll(`.${_.lineGraphGroup}-${e}`).classed(
|
|
5436
|
+
`${_.lineGraphGroup}--highlighted`,
|
|
5410
5437
|
!0
|
|
5411
|
-
), u.selectAll(`.${
|
|
5412
|
-
`${
|
|
5438
|
+
), u.selectAll(`.${_.lineGraphGroup}-label`).classed(
|
|
5439
|
+
`${_.lineGraphGroup}-label--highlighted`,
|
|
5413
5440
|
!0
|
|
5414
5441
|
);
|
|
5415
5442
|
},
|
|
5416
5443
|
handleLabelMouseLeave(e) {
|
|
5417
|
-
u.selectAll(`.${
|
|
5418
|
-
`${
|
|
5444
|
+
u.selectAll(`.${_.lineGraphGroup}-${e}`).classed(
|
|
5445
|
+
`${_.lineGraphGroup}--highlighted`,
|
|
5419
5446
|
!1
|
|
5420
|
-
), u.selectAll(`.${
|
|
5421
|
-
`${
|
|
5447
|
+
), u.selectAll(`.${_.lineGraphGroup}-label`).classed(
|
|
5448
|
+
`${_.lineGraphGroup}-label--highlighted`,
|
|
5422
5449
|
!1
|
|
5423
5450
|
);
|
|
5424
5451
|
},
|
|
@@ -5430,8 +5457,8 @@ const Vt = {
|
|
|
5430
5457
|
scale: r,
|
|
5431
5458
|
translation: e.transform.x - this.lastTransform.x
|
|
5432
5459
|
}, this.lastTransform = { ...e.transform };
|
|
5433
|
-
for (const
|
|
5434
|
-
this.rescaleAxis(
|
|
5460
|
+
for (const i in this.xAxes)
|
|
5461
|
+
this.rescaleAxis(i, t), this.translateTicksText(i);
|
|
5435
5462
|
this.updateBarCharts(), this.updateLineGraphs(), this.updateLineGraphHoverZones(), this.repositionSelectedTimestampCursor(), this.emitVisibleInterval(), this.emitCurtainChange();
|
|
5436
5463
|
},
|
|
5437
5464
|
emitCurtainChange() {
|
|
@@ -5442,12 +5469,12 @@ const Vt = {
|
|
|
5442
5469
|
});
|
|
5443
5470
|
},
|
|
5444
5471
|
calculateDateRangeFromCurtains() {
|
|
5445
|
-
const e = this.timeline.offsetWidth, t = this.timeScale.domain(), r = t[1].getTime() - t[0].getTime(),
|
|
5446
|
-
return { startDate: o, endDate:
|
|
5472
|
+
const e = this.timeline.offsetWidth, t = this.timeScale.domain(), r = t[1].getTime() - t[0].getTime(), i = (this.leftCurtainWidth - this.curtainHandleWidth * 2) / e * r, a = (this.rightCurtainWidth + this.curtainHandleWidth * 2) / e * r, o = new Date(t[0].getTime() + i), n = new Date(t[1].getTime() - a);
|
|
5473
|
+
return { startDate: o, endDate: n };
|
|
5447
5474
|
},
|
|
5448
5475
|
updateCurtainsOnResize(e) {
|
|
5449
|
-
const { startDate: t, endDate: r } = this.calculateDateRangeFromCurtains(),
|
|
5450
|
-
this.leftCurtainWidth = o / a * e, this.rightCurtainWidth =
|
|
5476
|
+
const { startDate: t, endDate: r } = this.calculateDateRangeFromCurtains(), i = this.timeScale.domain(), a = i[1].getTime() - i[0].getTime(), o = t.getTime() - i[0].getTime(), n = i[1].getTime() - r.getTime();
|
|
5477
|
+
this.leftCurtainWidth = o / a * e, this.rightCurtainWidth = n / a * e, this.svg.select(`.${_.curtain}--left`).attr("width", this.leftCurtainWidth), this.svg.select(`.${_.curtain}--right`).attr(
|
|
5451
5478
|
"x",
|
|
5452
5479
|
e - this.rightCurtainWidth + this.curtainHandleWidth * 2
|
|
5453
5480
|
).attr("width", this.rightCurtainWidth);
|
|
@@ -5464,44 +5491,46 @@ const Vt = {
|
|
|
5464
5491
|
e.x,
|
|
5465
5492
|
this.timeline.offsetWidth - this.rightCurtainWidth
|
|
5466
5493
|
);
|
|
5467
|
-
this.leftCurtainWidth = Math.max(0, t), this.svg.select(`.${
|
|
5494
|
+
this.leftCurtainWidth = Math.max(0, t), this.svg.select(`.${_.curtain}--left`).attr("width", this.leftCurtainWidth), this.emitCurtainChange();
|
|
5468
5495
|
},
|
|
5469
5496
|
handleRightDrag(e) {
|
|
5470
5497
|
e.sourceEvent.stopPropagation();
|
|
5471
5498
|
const t = this.timeline.offsetWidth, r = Math.min(
|
|
5472
5499
|
this.timeline.offsetWidth - e.x,
|
|
5473
5500
|
this.timeline.offsetWidth - this.leftCurtainWidth
|
|
5474
|
-
),
|
|
5475
|
-
this.rightCurtainWidth = Math.max(0, r), this.svg.select(`.${
|
|
5501
|
+
), i = t - r;
|
|
5502
|
+
this.rightCurtainWidth = Math.max(0, r), this.svg.select(`.${_.curtain}--right`).attr("width", this.rightCurtainWidth).attr("x", i), this.emitCurtainChange();
|
|
5476
5503
|
},
|
|
5477
5504
|
zoomToStartAndEndDates() {
|
|
5478
|
-
const e = this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, t = this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate, r = this.tzStringToDate(e),
|
|
5479
|
-
this.timeScale = u.scaleTime().domain(o).range(
|
|
5505
|
+
const e = this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, t = this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate, r = this.tzStringToDate(e), i = this.tzStringToDate(t), a = this.timeline.offsetWidth, o = [r, i], n = [0, a];
|
|
5506
|
+
this.timeScale = u.scaleTime().domain(o).range(n), this.initialTimeScale = this.timeScale.copy(), this.updateCurrentTimeScaleDensity();
|
|
5480
5507
|
for (const h in this.xAxes)
|
|
5481
5508
|
this.rescaleAxis(h, this.timeScale), this.translateTicksText(h);
|
|
5482
5509
|
this.updateBarCharts(), this.updateLineGraphs(), this.updateLineGraphHoverZones(), this.repositionSelectedTimestampCursor();
|
|
5483
5510
|
},
|
|
5484
5511
|
rescaleAxis(e, t) {
|
|
5485
|
-
const r = this.xAxes[e],
|
|
5512
|
+
const r = this.xAxes[e], i = this.getAxisTicksConfig(
|
|
5486
5513
|
this.xAxesConfig[e]
|
|
5487
5514
|
);
|
|
5488
|
-
r.scale(t).ticks(
|
|
5515
|
+
r.scale(t).ticks(i.interval).tickFormat(i.formatFn).tickSizeOuter(0), this.svg.select(`.${_.xAxis}-${e}`).call(r);
|
|
5489
5516
|
},
|
|
5490
5517
|
translateTicksText(e) {
|
|
5491
|
-
this.svg.select(`.${
|
|
5518
|
+
this.svg.select(`.${_.xAxis}-${e}`).selectAll(".tick text").each(function() {
|
|
5492
5519
|
let t = u.select(this), r = t.node().getBBox();
|
|
5493
5520
|
t.attr("x", r.height / 2).attr("y", 0).style("text-anchor", "start");
|
|
5494
5521
|
});
|
|
5495
5522
|
},
|
|
5496
5523
|
updateBarCharts() {
|
|
5497
|
-
const e = `.${
|
|
5498
|
-
this.svg.selectAll(e).attr("x", this.getEventRectX).attr("width", this.getEventRectWidth)
|
|
5524
|
+
const e = `.${_.eventGroup} > rect.${_.eventRect}`;
|
|
5525
|
+
this.svg.selectAll(e).attr("x", this.getEventRectX).attr("width", this.getEventRectWidth);
|
|
5526
|
+
const t = `.${_.eventGroup} > text.${_.eventRectText}`;
|
|
5527
|
+
this.svg.selectAll(t).attr("x", (r) => this.getEventRectX(r) + this.textPadding).text(this.getEventText);
|
|
5499
5528
|
},
|
|
5500
5529
|
updateLineGraphs() {
|
|
5501
5530
|
Object.entries(this.lineGraphGroups).forEach(([e]) => {
|
|
5502
5531
|
const t = u.area().x((r) => this.timeScale(this.tzStringToDate(r.timestamp))).y0(this.timelineHeight).y1((r) => this.yScale(r.count)).curve(u.curveMonotoneX);
|
|
5503
5532
|
this.svg.selectAll(
|
|
5504
|
-
`.${
|
|
5533
|
+
`.${_.lineGraphPath}-${e}`
|
|
5505
5534
|
).attr("d", (r) => t(r));
|
|
5506
5535
|
});
|
|
5507
5536
|
},
|
|
@@ -5509,14 +5538,14 @@ const Vt = {
|
|
|
5509
5538
|
Object.keys(this.lineGraphGroups).forEach((e) => {
|
|
5510
5539
|
const t = this;
|
|
5511
5540
|
this.svg.selectAll(
|
|
5512
|
-
`.${
|
|
5541
|
+
`.${_.lineGraphDot}-${e}`
|
|
5513
5542
|
).each(function(r) {
|
|
5514
5543
|
u.select(this).attr("cx", t.timeScale(t.tzStringToDate(r.timestamp))).attr("cy", t.yScale(r.count));
|
|
5515
5544
|
}), this.svg.selectAll(
|
|
5516
|
-
`.${
|
|
5545
|
+
`.${_.lineGraphHoverZone}-${e}`
|
|
5517
5546
|
).each(function(r) {
|
|
5518
|
-
const
|
|
5519
|
-
u.select(this).attr("x",
|
|
5547
|
+
const i = t.timeScale(t.tzStringToDate(r.timestamp).getTime()) - 15;
|
|
5548
|
+
u.select(this).attr("x", i).attr("y", 0).attr("width", 30).attr("height", t.lineGraphChartHeight);
|
|
5520
5549
|
});
|
|
5521
5550
|
});
|
|
5522
5551
|
},
|
|
@@ -5527,20 +5556,25 @@ const Vt = {
|
|
|
5527
5556
|
if (!e)
|
|
5528
5557
|
return 0;
|
|
5529
5558
|
if (e.startDate && e.endDate) {
|
|
5530
|
-
const t = new Date(e.startDate), r = new Date(e.endDate),
|
|
5531
|
-
return Math.max(
|
|
5559
|
+
const t = new Date(e.startDate), r = new Date(e.endDate), i = this.timeScale(r) - this.timeScale(t);
|
|
5560
|
+
return Math.max(i, this.rectMinWidth);
|
|
5532
5561
|
} else {
|
|
5533
5562
|
const t = 1 / (this.currentTimeScaleDensity * 3600);
|
|
5534
5563
|
return Math.max(t, this.rectMinWidth);
|
|
5535
5564
|
}
|
|
5536
5565
|
},
|
|
5566
|
+
getEventText(e) {
|
|
5567
|
+
var i;
|
|
5568
|
+
const r = (this.getEventRectWidth(e) - this.textPadding) / this.characterWidth;
|
|
5569
|
+
return r < 4 ? "" : ((i = e.text) == null ? void 0 : i.length) <= r ? e.text : `${e.text.slice(0, r - 3)}...`;
|
|
5570
|
+
},
|
|
5537
5571
|
initCurtains() {
|
|
5538
5572
|
if (!this.curtains)
|
|
5539
5573
|
return;
|
|
5540
5574
|
const e = this.timeline.offsetWidth, t = this.timelineHeight;
|
|
5541
|
-
this.svg.append("rect").classed(`${
|
|
5575
|
+
this.svg.append("rect").classed(`${_.curtain} ${_.curtain}--left`, !0).attr("width", this.leftCurtainWidth).attr("height", t + this.curtainHandleWidth * 2).attr("y", -this.curtainHandleWidth).attr("x", -this.curtainHandleWidth).attr("fill", "rgba(0, 0, 0, 0.5)").on("mouseenter", () => this.isHoveringCurtain = !0).on("mouseleave", () => this.isHoveringCurtain = !1).call(
|
|
5542
5576
|
u.drag().on("start", this.handleDragStart).on("drag", this.handleLeftDrag).on("end", this.handleDragEnd)
|
|
5543
|
-
), this.svg.append("rect").classed(`${
|
|
5577
|
+
), this.svg.append("rect").classed(`${_.curtain} ${_.curtain}--right`, !0).attr(
|
|
5544
5578
|
"x",
|
|
5545
5579
|
e - this.rightCurtainWidth + this.curtainHandleWidth * 2
|
|
5546
5580
|
).attr("y", -this.curtainHandleWidth).attr("width", this.rightCurtainWidth + this.curtainHandleWidth * 2).attr("height", t + this.curtainHandleWidth * 2).attr("fill", "rgba(0, 0, 0, 0.5)").on("mouseenter", () => this.isHoveringCurtain = !0).on("mouseleave", () => this.isHoveringCurtain = !1).call(
|
|
@@ -5548,33 +5582,33 @@ const Vt = {
|
|
|
5548
5582
|
);
|
|
5549
5583
|
},
|
|
5550
5584
|
drawEventsGroups() {
|
|
5551
|
-
this.svg.selectAll(`g.${
|
|
5585
|
+
this.svg.selectAll(`g.${_.eventGroup}`).remove(), this.drawLineGraphEventsGroups(), this.drawBarEventsGroups();
|
|
5552
5586
|
},
|
|
5553
5587
|
drawLineGraphEventsGroups() {
|
|
5554
5588
|
const e = this.combinedXAxesHeight, t = this.insertZerosAtInterval ? this.filledGapsLineGraphGroups : this.lineGraphGroups;
|
|
5555
|
-
Object.entries(t).forEach(([r,
|
|
5589
|
+
Object.entries(t).forEach(([r, i]) => {
|
|
5556
5590
|
const a = this.svg.append("g").classed(
|
|
5557
|
-
`${
|
|
5591
|
+
`${_.lineGraphGroup} ${_.lineGraphGroup}-${r}`,
|
|
5558
5592
|
!0
|
|
5559
|
-
).attr("transform", `translate(0,${e})`), { color: o, events:
|
|
5593
|
+
).attr("transform", `translate(0,${e})`), { color: o, events: n } = i;
|
|
5560
5594
|
this.drawLineGraph({
|
|
5561
|
-
events:
|
|
5595
|
+
events: n,
|
|
5562
5596
|
gElement: a,
|
|
5563
5597
|
color: o,
|
|
5564
5598
|
type: r
|
|
5565
5599
|
}), this.drawLineGraphHoverZones({
|
|
5566
|
-
events:
|
|
5600
|
+
events: n,
|
|
5567
5601
|
gElement: a,
|
|
5568
5602
|
color: o,
|
|
5569
5603
|
type: r
|
|
5570
5604
|
});
|
|
5571
5605
|
}), Object.entries(this.lineGraphGroups).forEach(
|
|
5572
|
-
([r,
|
|
5573
|
-
const { color: o, isLoading:
|
|
5606
|
+
([r, i], a) => {
|
|
5607
|
+
const { color: o, isLoading: n, label: h } = i, l = this.lineGraphChartHeight - this.barChartHeight * (a + 1), s = e + this.lineGraphChartHeight - this.barChartHeight, c = this.svg.append("g").classed(`${_.lineGraphGroup}-label`, !0).attr("transform", `translate(0,${e})`).on("mouseover", () => this.handleLabelMouseOver(r)).on("mouseleave", () => this.handleLabelMouseLeave(r));
|
|
5574
5608
|
this.drawProgressIndicator({
|
|
5575
5609
|
type: r,
|
|
5576
5610
|
color: o,
|
|
5577
|
-
isLoading:
|
|
5611
|
+
isLoading: n,
|
|
5578
5612
|
yPosition: s
|
|
5579
5613
|
}), this.drawTextLabel({
|
|
5580
5614
|
color: o,
|
|
@@ -5589,64 +5623,64 @@ const Vt = {
|
|
|
5589
5623
|
events: e,
|
|
5590
5624
|
gElement: t,
|
|
5591
5625
|
color: r,
|
|
5592
|
-
type:
|
|
5626
|
+
type: i
|
|
5593
5627
|
}) {
|
|
5594
|
-
const a = u.area().x((
|
|
5595
|
-
t.append("defs").append("clipPath").attr("id", o).append("rect").attr("width", this.timeline.offsetWidth).attr("height", this.lineGraphChartHeight), t.append("path").datum(e).classed(`${
|
|
5628
|
+
const a = u.area().x((n) => this.timeScale(this.tzStringToDate(n.timestamp))).y0(this.timelineHeight).y1((n) => this.yScale(n.count)).curve(u.curveMonotoneX), o = `clip-${i}`;
|
|
5629
|
+
t.append("defs").append("clipPath").attr("id", o).append("rect").attr("width", this.timeline.offsetWidth).attr("height", this.lineGraphChartHeight), t.append("path").datum(e).classed(`${_.lineGraphPath}-${i}`, !0).attr("fill", `url(#${Q.areaGradient}-${i})`).attr("stroke", r).attr("stroke-linejoin", "round").attr("stroke-linecap", "round").attr("stroke-width", 1).attr("d", (n) => a(n)).attr("clip-path", `url(#${o})`);
|
|
5596
5630
|
},
|
|
5597
5631
|
drawLineGraphHoverZones({
|
|
5598
5632
|
events: e,
|
|
5599
5633
|
gElement: t,
|
|
5600
5634
|
color: r,
|
|
5601
|
-
type:
|
|
5635
|
+
type: i
|
|
5602
5636
|
}) {
|
|
5603
5637
|
e.forEach((a) => {
|
|
5604
5638
|
const o = `${a.timestamp}`;
|
|
5605
5639
|
this.countsByTimestamp[o] = {
|
|
5606
5640
|
...this.countsByTimestamp[o] || {},
|
|
5607
|
-
[
|
|
5641
|
+
[i]: a.count
|
|
5608
5642
|
};
|
|
5609
|
-
const
|
|
5610
|
-
`${
|
|
5643
|
+
const n = t.append("circle").classed(
|
|
5644
|
+
`${_.lineGraphDot} ${_.lineGraphDot}-${i}`,
|
|
5611
5645
|
!0
|
|
5612
5646
|
).attr("cx", this.timeScale(this.tzStringToDate(a.timestamp))).attr("cy", this.yScale(a.count)).attr("r", 1.5).attr("fill", r).attr("stroke-width", 0).datum(a);
|
|
5613
5647
|
this.dotsByTimestamp[o] = [
|
|
5614
5648
|
...this.dotsByTimestamp[o] || [],
|
|
5615
|
-
|
|
5616
|
-
], t.append("rect").classed(`${
|
|
5617
|
-
this.handleLineMouseOver(h, a,
|
|
5618
|
-
(l) => l.classed(`${
|
|
5649
|
+
n
|
|
5650
|
+
], t.append("rect").classed(`${_.lineGraphHoverZone}-${i}`, !0).attr("x", this.timeScale(this.tzStringToDate(a.timestamp)) - 15).attr("y", 0).attr("width", 30).attr("height", this.lineGraphChartHeight).attr("fill", "transparent").datum(a).on("mouseover", (h) => {
|
|
5651
|
+
this.handleLineMouseOver(h, a, i), this.dotsByTimestamp[o].forEach(
|
|
5652
|
+
(l) => l.classed(`${_.lineGraphDot}--active`, !0)
|
|
5619
5653
|
);
|
|
5620
5654
|
}).on("mouseout", () => {
|
|
5621
5655
|
this.handleLineMouseOut(), this.dotsByTimestamp[o].forEach(
|
|
5622
|
-
(h) => h.classed(`${
|
|
5656
|
+
(h) => h.classed(`${_.lineGraphDot}--active`, !1)
|
|
5623
5657
|
);
|
|
5624
5658
|
});
|
|
5625
5659
|
});
|
|
5626
5660
|
},
|
|
5627
5661
|
drawBarEventsGroups() {
|
|
5628
5662
|
Object.entries(this.barGroups).forEach(([e, t], r) => {
|
|
5629
|
-
const { color:
|
|
5663
|
+
const { color: i, bgColor: a, label: o, events: n, isLoading: h } = t, l = this.hasLineGraphChart ? this.lineGraphChartHeight : 0, s = r * this.barChartHeight + this.combinedXAxesHeight + l;
|
|
5630
5664
|
this.drawProgressIndicator({
|
|
5631
5665
|
yPosition: s,
|
|
5632
5666
|
type: e,
|
|
5633
|
-
color:
|
|
5634
|
-
isLoading:
|
|
5667
|
+
color: i,
|
|
5668
|
+
isLoading: h
|
|
5635
5669
|
});
|
|
5636
|
-
const c = this.svg.append("g").attr("data-color",
|
|
5670
|
+
const c = this.svg.append("g").attr("data-color", i).classed(_.eventGroup, !0).classed(`${_.eventGroup}-${e}`, !0);
|
|
5637
5671
|
this.drawBackground({
|
|
5638
|
-
color:
|
|
5672
|
+
color: a || i,
|
|
5639
5673
|
gElement: c,
|
|
5640
5674
|
yPosition: s
|
|
5641
5675
|
}), this.drawBars({
|
|
5642
|
-
events:
|
|
5643
|
-
color:
|
|
5676
|
+
events: n,
|
|
5677
|
+
color: i,
|
|
5644
5678
|
gElement: c,
|
|
5645
5679
|
yPosition: s,
|
|
5646
5680
|
type: e
|
|
5647
5681
|
}), this.drawTextLabel({
|
|
5648
|
-
color:
|
|
5649
|
-
label:
|
|
5682
|
+
color: i,
|
|
5683
|
+
label: o,
|
|
5650
5684
|
gElement: c,
|
|
5651
5685
|
yPosition: s
|
|
5652
5686
|
});
|
|
@@ -5658,7 +5692,7 @@ const Vt = {
|
|
|
5658
5692
|
isLoading: r
|
|
5659
5693
|
}) {
|
|
5660
5694
|
this.svg.append("rect").classed(
|
|
5661
|
-
`${
|
|
5695
|
+
`${_.loadingIndicator} ${_.loadingIndicator}-${t}`,
|
|
5662
5696
|
!0
|
|
5663
5697
|
).attr("x", 0).attr("y", e).attr("width", this.timeline.offsetWidth / 3).attr("height", this.barChartHeight).attr("fill", `url(#${Q.loadingGradient}-${t})`).style("visibility", r ? "visible" : "hidden");
|
|
5664
5698
|
},
|
|
@@ -5667,78 +5701,81 @@ const Vt = {
|
|
|
5667
5701
|
yPosition: t,
|
|
5668
5702
|
gElement: r
|
|
5669
5703
|
}) {
|
|
5670
|
-
r.append("rect").attr("class",
|
|
5704
|
+
r.append("rect").attr("class", _.eventGroupBg).attr("x", 0).attr("y", t).attr("width", this.timeline.offsetWidth).attr("height", this.barChartHeight).attr("fill", u.color(e).toString()).style("opacity", 0.1);
|
|
5671
5705
|
},
|
|
5672
5706
|
drawBars({
|
|
5673
5707
|
events: e,
|
|
5674
5708
|
gElement: t,
|
|
5675
5709
|
yPosition: r,
|
|
5676
|
-
color:
|
|
5710
|
+
color: i,
|
|
5677
5711
|
type: a
|
|
5678
5712
|
}) {
|
|
5679
5713
|
const o = this;
|
|
5680
|
-
t.selectAll(
|
|
5681
|
-
u.select(this).classed(`${
|
|
5714
|
+
t.selectAll(_.eventRect).data(e).enter().append("rect").classed(_.eventRect, !0).attr("x", this.getEventRectX).attr("y", r + this.barYPadding / 2).attr("ry", 1.5).attr("rx", 1.5).attr("width", this.getEventRectWidth).attr("height", this.barChartHeight - this.barYPadding).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").style("fill", (n) => n.color || i).on("mouseover", function(n, h) {
|
|
5715
|
+
u.select(this).classed(`${_.eventRect}--hovered`, !0), o.handleBarMouseOver(n, h, a);
|
|
5682
5716
|
}).on("mouseout", function() {
|
|
5683
|
-
u.select(this).classed(`${
|
|
5684
|
-
})
|
|
5717
|
+
u.select(this).classed(`${_.eventRect}--hovered`, !1), o.handleBarMouseOut();
|
|
5718
|
+
}), t.selectAll(_.eventRectText).data(e.filter((n) => !!n.text)).enter().append("text").attr("class", _.eventRectText).attr("x", (n) => this.getEventRectX(n) + this.textPadding).attr("y", r + this.barChartHeight / 2).attr("dy", "0.35em").style("text-anchor", "start").style("font-size", "12px").style("font-weight", 600).style("stroke-linejoin", "round").style("paint-order", "stroke").style("pointer-events", "none").style(
|
|
5719
|
+
"fill",
|
|
5720
|
+
(n) => this.getTextFillColor(n.color || i, 0.75)
|
|
5721
|
+
).text(this.getEventText);
|
|
5685
5722
|
},
|
|
5686
5723
|
drawTextLabel({
|
|
5687
5724
|
gElement: e,
|
|
5688
5725
|
yPosition: t,
|
|
5689
5726
|
color: r,
|
|
5690
|
-
label:
|
|
5727
|
+
label: i
|
|
5691
5728
|
}) {
|
|
5692
5729
|
if (!this.showLabels)
|
|
5693
5730
|
return;
|
|
5694
5731
|
const a = {
|
|
5695
5732
|
x: -5,
|
|
5696
5733
|
y: t,
|
|
5697
|
-
w: this.labelRectWidth
|
|
5734
|
+
w: this.labelRectWidth,
|
|
5698
5735
|
h: this.barChartHeight,
|
|
5699
5736
|
radius: 3
|
|
5700
5737
|
};
|
|
5701
|
-
e.append("rect").attr("class",
|
|
5738
|
+
e.append("rect").attr("class", _.labelBg).attr("data-color", r).attr("x", a.x).attr("y", a.y).attr("width", a.w).attr("height", a.h).attr("rx", a.radius).attr("ry", a.radius).style("fill", this.dark ? "#131a29" : "white"), e.append("rect").attr("class", _.labelBgFill).attr("data-color", r).attr("x", a.x).attr("y", a.y).attr("width", a.w).attr("height", a.h).attr("rx", a.radius).attr("ry", a.radius).style("fill", this.getLabelBackgroundColor(r)).style("stroke", this.getTextFillColor(r)).style("stroke-width", 0.25), e.append("text").attr("class", _.labelText).attr("data-color", r).attr("x", 5).attr("y", t + this.barChartHeight / 2).attr("dy", "0.35em").style("text-anchor", "start").style("font-size", "12px").style("font-weight", 500).style("stroke-linejoin", "round").style("paint-order", "stroke").style("fill", this.getTextFillColor(r)).text(i);
|
|
5702
5739
|
},
|
|
5703
|
-
getTextFillColor(e) {
|
|
5704
|
-
var
|
|
5705
|
-
return (this.dark ? (
|
|
5740
|
+
getTextFillColor(e, t = 0) {
|
|
5741
|
+
var r, i;
|
|
5742
|
+
return (this.dark ? (r = u.color(e)) == null ? void 0 : r.brighter(1.5 + t) : (i = u.color(e)) == null ? void 0 : i.darker(2 + t)).toString();
|
|
5706
5743
|
},
|
|
5707
5744
|
getLabelBackgroundColor(e) {
|
|
5708
5745
|
let t = u.color(e);
|
|
5709
5746
|
return t.opacity = this.dark ? 0.2 : 0.5, t.toString();
|
|
5710
5747
|
},
|
|
5711
5748
|
tzStringToDate(e) {
|
|
5712
|
-
return
|
|
5749
|
+
return V(e).add(this.utcOffset, "minutes").toDate();
|
|
5713
5750
|
},
|
|
5714
5751
|
dateToTzString(e) {
|
|
5715
5752
|
const t = new Date(e).getTimezoneOffset();
|
|
5716
|
-
return
|
|
5753
|
+
return V(e).add(t, "minutes").utcOffset(this.utcOffset, !0).format();
|
|
5717
5754
|
},
|
|
5718
5755
|
getCurrentTimeBounds() {
|
|
5719
5756
|
const e = this.timeScale.domain();
|
|
5720
5757
|
return { startDate: e[0], endDate: e[1] };
|
|
5721
5758
|
},
|
|
5722
5759
|
getFormattedTimestamp(e) {
|
|
5723
|
-
return
|
|
5760
|
+
return V.parseZone(e).format("YYYY-MM-DDTHH:mm:ss");
|
|
5724
5761
|
},
|
|
5725
5762
|
fillTimeGaps(e) {
|
|
5726
5763
|
if (e.length <= 1)
|
|
5727
5764
|
return e;
|
|
5728
|
-
const t = this.insertZerosAtInterval, r = (o) => o.clone().add(1, t),
|
|
5765
|
+
const t = this.insertZerosAtInterval, r = (o) => o.clone().add(1, t), i = (o) => o.clone().subtract(1, t);
|
|
5729
5766
|
let a = [];
|
|
5730
5767
|
for (let o = 0; o < e.length; o++) {
|
|
5731
|
-
const
|
|
5732
|
-
if (a.push(
|
|
5768
|
+
const n = e[o];
|
|
5769
|
+
if (a.push(n), o === e.length - 1)
|
|
5733
5770
|
break;
|
|
5734
|
-
const h = e[o + 1], l =
|
|
5771
|
+
const h = e[o + 1], l = V(n.timestamp), s = V(h.timestamp);
|
|
5735
5772
|
if (s.diff(l, t) > 1) {
|
|
5736
|
-
const c = r(l).toISOString(), v =
|
|
5773
|
+
const c = r(l).toISOString(), v = i(s).toISOString();
|
|
5737
5774
|
a.push({ timestamp: c, count: 0 }), c !== v && a.push({ timestamp: v, count: 0 });
|
|
5738
5775
|
}
|
|
5739
5776
|
}
|
|
5740
5777
|
if (this.flattenLineGraphEnds) {
|
|
5741
|
-
const o =
|
|
5778
|
+
const o = V(e[0].timestamp), n = V(e[e.length - 1].timestamp), h = i(o).toISOString(), l = r(n).toISOString();
|
|
5742
5779
|
a = [
|
|
5743
5780
|
{ timestamp: h, count: 0 },
|
|
5744
5781
|
...a,
|
|
@@ -5749,69 +5786,138 @@ const Vt = {
|
|
|
5749
5786
|
},
|
|
5750
5787
|
fillEvents(e) {
|
|
5751
5788
|
return this.placeholderLineChartGroup.map((t) => e.find(
|
|
5752
|
-
(
|
|
5789
|
+
(i) => i.timestamp === t.timestamp
|
|
5753
5790
|
) || t);
|
|
5754
5791
|
}
|
|
5755
5792
|
}
|
|
5756
5793
|
});
|
|
5757
|
-
var
|
|
5794
|
+
var Zt = function() {
|
|
5758
5795
|
var t = this, r = t._self._c;
|
|
5759
|
-
return r("div", { staticClass: "e-relative e-timeline e-border e-rounded", class: t.classes.wrapper }, [r("div", { staticClass: "e-timeline__background e-w-full e-h-full e-absolute e-top-0 e-rounded", class: t.classes.background }), r("div", { directives: [{ name: "resize-observer", rawName: "v-resize-observer", value: t.
|
|
5796
|
+
return r("div", { staticClass: "e-relative e-timeline e-border e-rounded", class: t.classes.wrapper }, [r("div", { staticClass: "e-timeline__background e-w-full e-h-full e-absolute e-top-0 e-rounded", class: t.classes.background }), r("div", { directives: [{ name: "resize-observer", rawName: "v-resize-observer", value: t.debouncedOnResize, expression: "debouncedOnResize" }], ref: "timelineContainer", staticClass: "e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden e-overflow-hidden" }), r("div", { directives: [{ name: "show", rawName: "v-show", value: t.isHoveringTimeline && !t.isInteractingWithCurtain, expression: "isHoveringTimeline && !isInteractingWithCurtain" }], ref: "cursor", staticClass: "e-timeline__cursor e-absolute e-bg-green-600 e-w-px e-h-full e-top-0 e-pointer-events-none" }), r("div", { ref: "tooltip", staticClass: "e-absolute", style: t.eventTooltipStyle }, [t._t("tooltip", function() {
|
|
5760
5797
|
return [r("div", { directives: [{ name: "show", rawName: "v-show", value: t.isHoveringTimeline && !t.isHoveringEvent && !t.isInteractingWithCurtain && !t.cursorTimestamp, expression: `
|
|
5761
5798
|
isHoveringTimeline &&
|
|
5762
5799
|
!isHoveringEvent &&
|
|
5763
5800
|
!isInteractingWithCurtain &&
|
|
5764
5801
|
!cursorTimestamp
|
|
5765
5802
|
` }], staticClass: "e-timeline__tooltip e-border e-rounded e-px-2 -e-left-2/4 e-relative", class: t.classes.tooltipSlot }, [t._v(" " + t._s(t.hoveredTimestamp) + " ")])];
|
|
5766
|
-
}, { timestamp: t.hoveredTimestamp, active: t.isHoveringTimeline && !t.isInteractingWithCurtain && !t.cursorTimestamp })], 2), r("div", { ref: "eventPreviewTooltip", staticClass: "e-absolute", style: t.eventTooltipStyle }, [t._t("eventTooltip", function() {
|
|
5767
|
-
return [t.showEventTooltip && (t.hoveredEvent || t.hoveredCounts.length) ? r("div", { directives: [{ name: "show", rawName: "v-show", value: t.isHoveringEvent && !t.isInteractingWithCurtain, expression: "isHoveringEvent && !isInteractingWithCurtain" }], staticClass: "e-timeline__event-tooltip e-border e-rounded e-px-2 -e-left-2/4 e-relative", class: t.classes.eventTooltipSlot }, [t.hoveredCounts.length ? r("div", [r("strong", [t._v("Timestamp")]), t._v(": " + t._s(t.hoveredEvent.timestamp) + " "), t._l(t.hoveredCounts, function(
|
|
5768
|
-
return r("div", { key: a }, [r("strong", [t._v(t._s(
|
|
5803
|
+
}, { timestamp: t.hoveredTimestamp, active: t.isHoveringTimeline && !t.isInteractingWithCurtain && !t.cursorTimestamp })], 2), r("div", { ref: "eventPreviewTooltip", staticClass: "e-absolute e-z-50", style: t.eventTooltipStyle }, [t._t("eventTooltip", function() {
|
|
5804
|
+
return [t.showEventTooltip && (t.hoveredEvent || t.hoveredCounts.length) ? r("div", { directives: [{ name: "show", rawName: "v-show", value: t.isHoveringEvent && !t.isInteractingWithCurtain, expression: "isHoveringEvent && !isInteractingWithCurtain" }], staticClass: "e-timeline__event-tooltip e-border e-rounded e-px-2 -e-left-2/4 e-relative", class: t.classes.eventTooltipSlot }, [t.hoveredCounts.length ? r("div", [r("strong", [t._v("Timestamp")]), t._v(": " + t._s(t.hoveredEvent.timestamp) + " "), t._l(t.hoveredCounts, function(i, a) {
|
|
5805
|
+
return r("div", { key: a }, [r("strong", [t._v(t._s(i.type) + " Count")]), t._v(": " + t._s(i.count) + " ")]);
|
|
5769
5806
|
})], 2) : t.hoveredEvent ? r("div", [t.hoveredEvent.timestamp ? r("div", [r("strong", [t._v("Event time")]), t._v(": " + t._s(t.hoveredEvent.timestamp) + " ")]) : t._e(), t.hoveredEvent.startDate ? r("div", [r("strong", [t._v("From")]), t._v(":" + t._s(t.hoveredEvent.startDate) + " ")]) : t._e(), t.hoveredEvent.endDate ? r("div", [r("strong", [t._v("To")]), t._v(":" + t._s(t.hoveredEvent.endDate) + " ")]) : t._e()]) : t._e()]) : t._e()];
|
|
5770
5807
|
}, { event: t.hoveredEvent, counts: t.hoveredCounts, active: t.isHoveringEvent && !t.isInteractingWithCurtain, type: t.hoveredEventType })], 2)]);
|
|
5771
|
-
},
|
|
5772
|
-
Xt,
|
|
5808
|
+
}, Kt = [], Jt = /* @__PURE__ */ I(
|
|
5773
5809
|
Yt,
|
|
5774
5810
|
Zt,
|
|
5811
|
+
Kt,
|
|
5775
5812
|
!1,
|
|
5776
5813
|
null,
|
|
5777
5814
|
null,
|
|
5778
5815
|
null,
|
|
5779
5816
|
null
|
|
5780
5817
|
);
|
|
5781
|
-
const
|
|
5818
|
+
const Qt = Jt.exports, er = {
|
|
5819
|
+
name: "EVideoEmbed",
|
|
5820
|
+
props: {
|
|
5821
|
+
videoUrl: {
|
|
5822
|
+
type: String,
|
|
5823
|
+
required: !0
|
|
5824
|
+
},
|
|
5825
|
+
platform: {
|
|
5826
|
+
type: String,
|
|
5827
|
+
required: !0,
|
|
5828
|
+
validator: (e) => ["youtube", "vimeo"].includes(e)
|
|
5829
|
+
},
|
|
5830
|
+
iframeListeners: {
|
|
5831
|
+
type: Object,
|
|
5832
|
+
default: () => ({})
|
|
5833
|
+
},
|
|
5834
|
+
iframeOptions: {
|
|
5835
|
+
type: Object,
|
|
5836
|
+
default: () => ({})
|
|
5837
|
+
}
|
|
5838
|
+
},
|
|
5839
|
+
computed: {
|
|
5840
|
+
videoId() {
|
|
5841
|
+
if (this.platform === "youtube") {
|
|
5842
|
+
const e = (
|
|
5843
|
+
// eslint-disable-next-line no-useless-escape
|
|
5844
|
+
/^.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#\&\?]*).*/
|
|
5845
|
+
), t = this.videoUrl.match(e);
|
|
5846
|
+
return t && t[1].length === 11 ? t[1] : void 0;
|
|
5847
|
+
} else if (this.platform === "vimeo") {
|
|
5848
|
+
const e = this.videoUrl.match(/vimeo\.com\/(\d+)/);
|
|
5849
|
+
return e ? e[1] : void 0;
|
|
5850
|
+
}
|
|
5851
|
+
},
|
|
5852
|
+
embedUrl() {
|
|
5853
|
+
var e;
|
|
5854
|
+
if (this.platform === "youtube") {
|
|
5855
|
+
const t = new URLSearchParams({
|
|
5856
|
+
quality: "1080p",
|
|
5857
|
+
...this.iframeOptions
|
|
5858
|
+
});
|
|
5859
|
+
return `https://www.youtube.com/embed/${this.videoId}?${t.toString()}`;
|
|
5860
|
+
} else if (this.platform === "vimeo" && this.videoId) {
|
|
5861
|
+
const t = (e = this.videoUrl.split("/").pop()) == null ? void 0 : e.split("?")[0], r = new URLSearchParams({
|
|
5862
|
+
h: t || "",
|
|
5863
|
+
quality: "1080p",
|
|
5864
|
+
...this.iframeOptions
|
|
5865
|
+
});
|
|
5866
|
+
return `https://player.vimeo.com/video/${this.videoId}?${r.toString()}`;
|
|
5867
|
+
}
|
|
5868
|
+
return "";
|
|
5869
|
+
}
|
|
5870
|
+
}
|
|
5871
|
+
};
|
|
5872
|
+
var tr = function() {
|
|
5873
|
+
var t = this, r = t._self._c;
|
|
5874
|
+
return r("div", { staticClass: "video-embed" }, [r("iframe", t._g(t._b({ attrs: { src: t.embedUrl, frameborder: "0", allowfullscreen: "", width: "100%", height: "100%", allow: "autoplay; fullscreen; picture-in-picture" } }, "iframe", t.iframeOptions, !1), t.iframeListeners))]);
|
|
5875
|
+
}, rr = [], ir = /* @__PURE__ */ I(
|
|
5876
|
+
er,
|
|
5877
|
+
tr,
|
|
5878
|
+
rr,
|
|
5879
|
+
!1,
|
|
5880
|
+
null,
|
|
5881
|
+
"0ecf4a71",
|
|
5882
|
+
null,
|
|
5883
|
+
null
|
|
5884
|
+
);
|
|
5885
|
+
const nr = ir.exports, Ce = {
|
|
5782
5886
|
EAvatar: ut,
|
|
5783
5887
|
EBadge: Fe,
|
|
5784
5888
|
EIcon: St,
|
|
5785
5889
|
ESpinner: Je,
|
|
5786
5890
|
ERow: Mt,
|
|
5787
5891
|
ECol: Ht,
|
|
5788
|
-
EVideoPlayer:
|
|
5789
|
-
ETimeline:
|
|
5790
|
-
|
|
5892
|
+
EVideoPlayer: Vt,
|
|
5893
|
+
ETimeline: Qt,
|
|
5894
|
+
EVideoEmbed: nr
|
|
5895
|
+
}, dr = {
|
|
5791
5896
|
install(e) {
|
|
5792
5897
|
Object.keys(Ce).forEach((t) => {
|
|
5793
5898
|
e.component(t, Ce[t]);
|
|
5794
|
-
}),
|
|
5899
|
+
}), Xt.forEach(({ name: t, definition: r }) => {
|
|
5795
5900
|
e.directive(t, r);
|
|
5796
5901
|
});
|
|
5797
5902
|
}
|
|
5798
5903
|
};
|
|
5799
5904
|
export {
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5905
|
+
lr as AvatarSizes,
|
|
5906
|
+
ur as BadgeColors,
|
|
5907
|
+
or as BadgeSizes,
|
|
5803
5908
|
j as BaseColor,
|
|
5804
5909
|
yt as Colors,
|
|
5805
|
-
|
|
5910
|
+
Xt as DirectivesMap,
|
|
5806
5911
|
ut as EAvatar,
|
|
5807
5912
|
Fe as EBadge,
|
|
5808
5913
|
Ht as ECol,
|
|
5809
5914
|
St as EIcon,
|
|
5810
5915
|
Mt as ERow,
|
|
5811
5916
|
Je as ESpinner,
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5917
|
+
Qt as ETimeline,
|
|
5918
|
+
cr as EVENTS,
|
|
5919
|
+
nr as EVideoEmbed,
|
|
5920
|
+
Vt as EVideoPlayer,
|
|
5815
5921
|
bt as IconSizes,
|
|
5816
5922
|
et as ResizeObserverDirective,
|
|
5817
5923
|
T as Size,
|
|
@@ -5819,7 +5925,8 @@ export {
|
|
|
5819
5925
|
ee as TimelineAxis,
|
|
5820
5926
|
te as TimelineChartType,
|
|
5821
5927
|
Ce as components,
|
|
5822
|
-
|
|
5928
|
+
Rt as debounce,
|
|
5929
|
+
dr as default,
|
|
5823
5930
|
Bt as exitFullScreen,
|
|
5824
5931
|
Ke as fullConfig,
|
|
5825
5932
|
Qe as isFullScreen,
|